(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[8983],{13398:function(t,e){var n,i,r,o;o=function(t){var e=Object.prototype.toString,n=Array.isArray||function(t){return"[object Array]"===e.call(t)};function i(t){return"function"==typeof t}function r(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function o(t,e){return null!=t&&"object"==typeof t&&e in t}var s=RegExp.prototype.test,a=/\S/;function l(t){return!function(t,e){return s.call(t,e)}(a,t)}var h={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="},c=/\s*/,u=/\s+/,p=/\s*=/,d=/\s*\}/,f=/#|\^|\/|>|\{|&|=|!/;function g(t){this.string=t,this.tail=t,this.pos=0}function v(t,e){this.view=t,this.cache={".":this.view},this.parent=e}function w(){this.cache={}}g.prototype.eos=function(){return""===this.tail},g.prototype.scan=function(t){var e=this.tail.match(t);if(!e||0!==e.index)return"";var n=e[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n},g.prototype.scanUntil=function(t){var e,n=this.tail.search(t);switch(n){case-1:e=this.tail,this.tail="";break;case 0:e="";break;default:e=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=e.length,e},v.prototype.push=function(t){return new v(t,this)},v.prototype.lookup=function(t){var e,n=this.cache;if(n.hasOwnProperty(t))e=n[t];else{for(var r,s,a=this,l=!1;a;){if(t.indexOf(".")>0)for(e=a.view,r=t.split("."),s=0;null!=e&&s0?r[r.length-1][4]:n;break;default:i.push(e)}return n }(function(t){for(var e,n,i=[],r=0,o=t.length;r"===o?s=this.renderPartial(r,e,n,i):"&"===o?s=this.unescapedValue(r,e):"name"===o?s=this.escapedValue(r,e):"text"===o&&(s=this.rawValue(r)),void 0!==s&&(a+=s);return a},w.prototype.renderSection=function(t,e,r,o){var s=this,a="",l=e.lookup(t[1]);if(l){if(n(l))for(var h=0,c=l.length;h"'`=\/]/g,(function(t){return h[t]}))},t.Scanner=g,t.Context=v,t.Writer=w},e&&"string"!=typeof e.nodeName?o(e):(i=[e],void 0===(r="function"==typeof(n=o)?n.apply(e,i):n)||(t.exports=r))},13958:(t,e,n)=>{"use strict";n.r(e),n.d(e,{PrivacyPreferenceDialog:()=>c});var i=n(59496),r=n(87995),o=n(61074),s=n(56840),a=n(32563),l=n(94673);let h=null;class c extends class{constructor(t,e,n){if(this._isOpened=!1,this.close=()=>{var t;null===(t=this.dialog)||void 0===t||t.close()},this.unmount=()=>{void 0!==this.dialog&&r.unmountComponentAtNode(this.dialog.$content.get(0))},this._handleLoginStateChange=()=>{window.is_authenticated||(this.close(),this.destroy())},this._afterOpenDialog=()=>{this._setInitialDialogWidth(),this._options.afterOpen&&this._options.afterOpen(),void 0!==this.dialog&&this.render()},this._beforeOpenDialog=t=>{this._fetchSavedDialogWidth(), this._options.beforeOpen?this._options.beforeOpen(t):t()},this._onDialogDestroy=()=>{window.loginStateChange.unsubscribe(this,this._handleLoginStateChange),this.unmount(),delete this.dialog,delete this._options,delete this._savedDialogWidth},this._fetchSavedDialogWidth=()=>{let t;try{t=s.getInt("support.dialog.width")}catch(t){return}this._savedDialogWidth=t},this._setInitialDialogWidth=()=>{const t=this._savedDialogWidth;void 0===this.dialog||a.mobiletouch||this.dialog.el.classList.contains("dialog-media__tablet")||void 0!==t||(this.dialog.el.style.width="50%")},this._options=e||{},this.props=t,n)return;const{closeOnEsc:i=!0}=this._options;this.dialog=(0,l.createFullscreenDialog)({...this._options,titleTemplate:"",closeButton:!1,closeOnEsc:i,destroyOnClose:!1,minimizeButton:!1,horizontalResize:!0,horizontalResizeSettingsKey:"support.dialog.width",beforeOpen:this._beforeOpenDialog,afterOpen:this._afterOpenDialog,onDestroy:this._onDialogDestroy}),window.loginStateChange.subscribe(this,this._handleLoginStateChange)}open(){var t;this._isOpened&&this.unmount(),null===(t=this.dialog)||void 0===t||t.open(),this._isOpened=!0}destroy(){void 0!==this.dialog&&this.dialog.destroy()}}{constructor(t,e){if(super(t,e),this.destroy=()=>{h=null,super.destroy()},this.render=async()=>{if(!this.dialog)return;r.render(i.createElement(o.Spinner,{size:"medium"}),this.dialog.$content.get(0));const{PrivacyPreference:t}=await Promise.resolve().then(n.bind(n,5401));r.render(i.createElement(t,{onClose:this.close}),this.dialog.$content.get(0))},null!==h)return h;h=this}}}}]);