/*!
 * Premium Stock Market Widgets
 * ------------------------------
 * Version 2.1.7d, built on Monday, June 22, 2020
 * Copyright (c) Financial apps and plugins <info@financialplugins.com>. All rights reserved.
 * Demo: https://financialplugins.com/products/premium-stock-market-widgets
 * Purchase (WordPress version): https://1.envato.market/az97R
 * Purchase (PHP version): https://1.envato.market/AQ17o
 * Like: https://www.facebook.com/financialplugins/
 * 
 */
(window.webpackJsonp96739=window.webpackJsonp96739||[]).push([[1],{458:function(t,e,a){"use strict";var i=a(462),s=a(463),r=a(464),n={data:function(){return{display:!1}},computed:{config:function(){return this.$store.getters[this.code+"/config"]},text:function(){return this.$store.getters[this.code+"/text"]},globalMarketData:function(){return this.$store.getters[this.code+"/marketData"]},code:function(){return this.$root.code},type:function(){return this.$attrs.type},api:function(){return this.$attrs.api},assets:function(){var t=[];if(this.config.assetRecognitionRegexp){var e=new RegExp(this.config.assetRecognitionRegexp,"i"),a=location.href.replace(this.config.websiteUrl+"/","").match(e);a&&void 0!==a[1]&&(t=[a[1].toUpperCase()])}return 0===t.length&&void 0!==this.$attrs.assets&&""!==this.$attrs.assets&&(t=this.$attrs.assets.toString().split(",")),t},assetsSubscription:function(){var t={type:this.marketDataType,subType:this.marketDataSubType,assets:this.assets,api:this.api};return"history"==this.marketDataType&&(t.range=this.$attrs.range,t.interval=this.$attrs.interval),t},fields:function(){return this.$attrs.fields?this.$attrs.fields.split(","):[]},classes:function(){return[this.code+"-"+this.$attrs.type,this.code+"-"+this.$attrs.template,this.code+"-"+this.$attrs.color]},classesWithIndicator:function(){var t=this.classes,e=this.quoteValue(this.assets[0],"change_abs"),a=e<0?this.code+"-down":e>0?this.code+"-up":"";return a&&-1==t.indexOf(a)&&t.push(a),t},marketDataLoaded:function(){var t=this,e=!1;if("table-history"==this.type||"chart"==this.type){var a=this.marketData(this.assets[0]);e=!(!a||a.symbol!=this.assets[0])}else{var i=0;this.assets.forEach(function(e){i+=t.quoteValue(e,"symbol")==e?1:0}),e=i==this.assets.length}return e},isChildWidget:function(){return void 0!==this.$parent.$parent.$parent&&void 0!==this.$parent.$parent.$parent.api},marketDataType:function(){return void 0!==this.$attrs["market-data-type"]?this.$attrs["market-data-type"]:"table-history"==this.type||"chart"==this.type?"history":"table-quotes"==this.type||"comparison"==this.type?"quotes-extended":"info"==this.type?"info":"button-link"==this.type?this.isChildWidget?this.$parent.$parent.$parent.marketDataType:"quotes":this.$data.forceMarketDataType||"quotes"},marketDataSubType:function(){return"history"==this.marketDataType?this.$attrs.range+"-"+this.$attrs.interval:"live"}},methods:{checkBoolean:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return void 0===t&&e||"boolean"==typeof t&&t||"string"==typeof t&&"true"==t},marketData:function(t){var e=null;return void 0!==this.globalMarketData[this.api]&&void 0!==this.globalMarketData[this.api][this.marketDataType]&&void 0!==this.globalMarketData[this.api][this.marketDataType][this.marketDataSubType]&&(e=this.globalMarketData[this.api][this.marketDataType][this.marketDataSubType][t]||null),e},quoteValue:function(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this.marketData(t);return i&&void 0!==i[e]?null!=a?i[e][a]:i[e]:""},quoteValueFormatted:function(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=new i.a,o=new s.a,u=new r.a,l=this.quoteValue(t,e,a);if("name"==e){var c=this.quoteValue(t,"name",a);return void 0!==this.config.assetNamesOverrides[t]?this.config.assetNamesOverrides[t]:c}if(["price","open","low","high","close","previous_close","change_abs","52_week_low","52_week_low_change_abs","52_week_high","52_week_high_change_abs","50_day_average","200_day_average","52_week_change","book_value","quick_ratio","current_ratio"].indexOf(e)>-1)l=n.variableDecimal(l);else if(["change_pct","52_week_low_change_pct","52_week_high_change_pct","5_year_avg_dividend_yield","payout_ratio","dividend_yield","annual_dividend_yield","short_pct_of_float","profit_margin","quarter_earnings_growth","gross_margin","operating_margin","ebitda_margin","return_on_assets","return_on_equity","earnings_growth","revenue_growth"].indexOf(e)>-1)l=n.percentage(100*l);else if(["shares_outstanding","shares_float","shares_short","net_income_to_common","market_cap","volume","average_volume","average_volume_10_days","total_cash","ebitda","total_debt","total_revenue","gross_profit","free_cashflow","operating_cashflow"].indexOf(e)>-1)l=n.bigNumber(l);else if("range"==e){var h=this.quoteValue(t,"low",a),p=this.quoteValue(t,"high",a);l=n.variableDecimal(h)+" - "+n.variableDecimal(p)}else if("52_week_range"==e){h=this.quoteValue(t,"52_week_low",a),p=this.quoteValue(t,"52_week_high",a);l=n.variableDecimal(h)+" - "+n.variableDecimal(p)}else"currency_symbol"==e?l=o.symbol(this.quoteValue(t,"currency",a)):["last_update","ex_dividend_date","last_split_date"].indexOf(e)>-1?l&&(l=u.long(l)):"date"==e?l=u.date(l):"date_time"==e?l=u.long(this.quoteValue(t,"date",a)):"last_update_ago"==e?l=u.ago(this.quoteValue(t,"last_update",a)):"number"==typeof l&&(l=n.decimal(l));return l},sortValue:function(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return["logo_name","logo_name_link"].indexOf(e)>-1?this.quoteValueFormatted(t,"name",a):e.match(/^portfolio_/)?this.portfolioValue(t,a,e):"last_update_ago"==e?this.quoteValue(t,"last_update",a):"date_time"==e?this.quoteValue(t,"date",a):this.quoteValue(t,e,a)||0},subscribeMarketData:function(t){this.$store.dispatch(this.code+"/subscribeMarketData",t||this.assetsSubscription)},disconnectDataSourcesAndClearMarketData:function(){this.$store.dispatch(this.code+"/disconnectDataSourcesAndClearMarketData")},translate:function(t){return void 0!==this.text[t]?this.text[t]:t}},created:function(){var t=this;this.$on("data-loaded",function(){t.display=!0,t.$nextTick(function(){"function"==typeof t.onDataLoaded&&t.onDataLoaded()})}),this.marketDataLoaded?this.$emit("data-loaded",{widgetType:this.type,eventType:"WIDGET_INIT_DATA_AVAILABLE"}):this.subscribeMarketData(),this.$watch("marketDataLoaded",function(e,a){!a&&e&&t.$emit("data-loaded",{widgetType:t.type,eventType:"WIDGET_INIT_DATA_LOADED"})}),this.$watch("$attrs.assets",function(e,a){t.marketDataLoaded?t.$emit("data-loaded",{widgetType:t.type,eventType:"ASSETS_CHANGE_DATA_AVAILABLE"}):t.api&&t.subscribeMarketData()})}},o=a(1),u=Object(o.a)(n,void 0,void 0,!1,null,null,null);u.options.__file="assets/js/src/components/widgets/_mixins/template.vue";e.a=u.exports},459:function(t,e,a){"use strict";var i=function(){var t=this.$createElement;return(this._self._c||t)("span",{class:this.classes},[this._v(this._s(this.$parent.quoteValueFormatted(this.asset,this.field,this.index)))])};i._withStripped=!0;var s={props:["asset","field","i","color-indicator"],computed:{classes:function(){var t=[this.$parent.code+"-field",this.$parent.code+"-field-"+this.field.replace(/_/g,"-")],e=this.value;return this.colorIndicator&&t.push(e<0?this.$parent.code+"-down":e>0?this.$parent.code+"-up":""),t},index:function(){return void 0!==this.i?parseFloat(this.i):null},value:function(){return this.$parent.quoteValue(this.asset,this.field,this.index)}}},r=a(1),n=Object(r.a)(s,i,[],!1,null,null,null);n.options.__file="assets/js/src/components/widgets/_parts/quote.vue";e.a=n.exports},460:function(t,e,a){"use strict";var i=function(){var t=this.$createElement,e=this._self._c||t;return this.url?e("span",{class:this.classes},[e("img",{attrs:{src:this.url}})]):this._e()};i._withStripped=!0;var s={props:["symbol"],data:function(){return{config:this.$parent.config}},computed:{classes:function(){return this.$parent.code+"-field-logo"},url:function(){return void 0!==this.config.assetsLogoImages[this.symbol]?this.config.pluginUrl+"/assets/images/logo/"+this.config.assetsLogoImages[this.symbol]:null}}},r=a(1),n=Object(r.a)(s,i,[],!1,null,null,null);n.options.__file="assets/js/src/components/widgets/_parts/logo.vue";e.a=n.exports},461:function(t,e,a){"use strict";var i=function(){var t=this.$createElement,e=this._self._c||t;return this.classes?e("i",{class:this.classes}):this._e()};i._withStripped=!0;var s={props:["asset","field","downClass","upClass"],computed:{classes:function(){var t=this.$parent.quoteValue(this.asset,this.field);return t<0?[this.downClass,this.$parent.code+"-down"]:t>0?[this.upClass,this.$parent.code+"-up"]:""}}},r=a(1),n=Object(r.a)(s,i,[],!1,null,null,null);n.options.__file="assets/js/src/components/widgets/_parts/quote-indicator.vue";e.a=n.exports},462:function(t,e,a){"use strict";a.d(e,"a",function(){return r});var i=a(65),s=a.n(i);function r(){var t=function(t){var e=s()(t).format("0,0.00");return"NaN"!==e?e:parseFloat(t).toFixed(2)};return{integer:function(t){return s()(t).format("0,0")},decimal:t,percentage:function(e){return t(e)+"%"},variableDecimal:function(t){var e,a=s()(t),i=Math.abs(a.value());i>=.01?e="0,0.00":0==i?e="0.00":1e-4<=i&&i<.01?e="0.0000":i<1e-4&&(e="0.00000000");var r=a.format(e);return"NaN"!==r?r:parseFloat(t).toFixed(8)},bigNumber:function(t){return s()(t).format("0,0.00a").toUpperCase()},compareNumbers:function(t,e){var a,i;if("number"==typeof t&&"number"==typeof e)a=t,i=e;else{var r=s()(1.1).format("0.0").substring(1,2),n=s()(1e3).format("0,0").substring(1,2);"."==n&&(t=t.replace(n,""),e=e.replace(n,"")),"."!=r&&(t=t.replace(r,"."),e=e.replace(r,".")),a=parseFloat(t.replace(/[^0-9.-]/g,"")),i=parseFloat(e.replace(/[^0-9.-]/g,""))}return t&&e&&!isNaN(a)&&!isNaN(i)?a>i?1:a<i?-1:0:t.localeCompare(e)}}}},463:function(t,e,a){"use strict";function i(){var t={USD:"$",AUD:"$",BRL:"R$",CAD:"$",CNY:"¥",EUR:"€",EGP:"£",GBP:"£",INR:"₹",ILS:"₪",IDR:"Rp",JPY:"¥",KPW:"₩",KRW:"₩",PLN:"zł",RUB:"₽",UAH:"₴",QAR:"﷼",GOLD:"Gold g"};return{symbol:function(e){return t[e]||e}}}a.d(e,"a",function(){return i})},464:function(t,e,a){"use strict";a.d(e,"a",function(){return r});var i=a(95),s=a.n(i);function r(){return{date:function(t){return s()(t).format("ll")},time:function(t){return s()(t).format("H:mm")},long:function(t){return s()(t).format("LLL")},ago:function(t){return s()(t).fromNow()}}}},465:function(t,e,a){"use strict";var i={computed:{template:function(){return this.$attrs.template}}},s=a(1),r=Object(s.a)(i,void 0,void 0,!1,null,null,null);r.options.__file="assets/js/src/components/widgets/_mixins/widget-type.vue";e.a=r.exports},475:function(t,e,a){"use strict";a.d(e,"a",function(){return r});var i=a(477);function s(t){return function(t){if(Array.isArray(t)){for(var e=0,a=new Array(t.length);e<t.length;e++)a[e]=t[e];return a}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function r(){var t=function(t){return"string"==typeof t&&void 0!==i[t]?i[t]:t};return{nameToHex:t,hexToRgb:function(t,e){var a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return a?"rgba("+parseInt(a[1],16)+","+parseInt(a[2],16)+","+parseInt(a[3],16)+","+e+")":"rgba(0,0,0,1)"},gradient:function(e,a,i,r){var n,o=o=[0,0,0,i];"bottom to top"==a?o=[0,i,0,0]:"left to right"==a?o=[0,0,i,0]:"right to left"==a&&(o=[i,0,0,0]);var u=(n=e.getContext("2d")).createLinearGradient.apply(n,s(o)),l=r.length;return r.forEach(function(e,a){u.addColorStop(a/l,t(e))}),u},shadeBlend:function(t,e,a){if("number"!=typeof t||t<-1||t>1||"string"!=typeof e||"r"!=e[0]&&"#"!=e[0]||a&&"string"!=typeof a)return null;this.sbcRip||(this.sbcRip=function(t){var e=t.length,a={};if(e>9){if((t=t.split(",")).length<3||t.length>4)return null;a[0]=i(t[0].split("(")[1]),a[1]=i(t[1]),a[2]=i(t[2]),a[3]=t[3]?parseFloat(t[3]):-1}else{if(8==e||6==e||e<4)return null;e<6&&(t="#"+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+(e>4?t[4]+""+t[4]:"")),t=i(t.slice(1),16),a[0]=t>>16&255,a[1]=t>>8&255,a[2]=255&t,a[3]=-1,9!=e&&5!=e||(a[3]=s(a[2]/255*1e4)/1e4,a[2]=a[1],a[1]=a[0],a[0]=t>>24&255)}return a});var i=parseInt,s=Math.round,r=e.length>9,n=(r="string"==typeof a?a.length>9||"c"==a&&!r:r,t<0),o=(t=n?-1*t:t,a=a&&"c"!=a?a:n?"#000000":"#FFFFFF",this.sbcRip(e)),u=this.sbcRip(a);return o&&u?r?"rgb"+(o[3]>-1||u[3]>-1?"a(":"(")+s((u[0]-o[0])*t+o[0])+","+s((u[1]-o[1])*t+o[1])+","+s((u[2]-o[2])*t+o[2])+(o[3]<0&&u[3]<0?")":","+(o[3]>-1&&u[3]>-1?s(1e4*((u[3]-o[3])*t+o[3]))/1e4:u[3]<0?o[3]:u[3])+")"):"#"+(4294967296+16777216*s((u[0]-o[0])*t+o[0])+65536*s((u[1]-o[1])*t+o[1])+256*s((u[2]-o[2])*t+o[2])+(o[3]>-1&&u[3]>-1?s(255*((u[3]-o[3])*t+o[3])):u[3]>-1?s(255*u[3]):o[3]>-1?s(255*o[3]):255)).toString(16).slice(1,o[3]>-1||u[3]>-1?void 0:-2):null}}}},477:function(t){t.exports={default:"#d4d4d5",red:"#DB2828",maroon:"#85144b",orange:"#F2711C",yellow:"#FBBD08",olive:"#B5CC18",green:"#21BA45",teal:"#00B5AD",blue:"#2185D0",aqua:"#7FDBFF",navy:"#001f3f",purple:"#A333C8",violet:"#6435C9",pink:"#E03997",brown:"#A5673F",grey:"#767676",black:"#000000"}}}]);