function isSafari(){return/Safari/.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor)}function toJSDate(n){var r=n.split(" "),t=r[0].split("-"),i=r[1].split(":");return new Date(t[0],t[1],t[2],i[0],i[1],i[2],0)}function compareNine(n){return n>9?n:"0"+n}function addMins(n,t){return new Date(n.setMinutes(n.getMinutes()+t))}function toFixedNumber(n,t,i){var e=n.toString().replace("$","").replaceAll(",",""),u=Number(e),r,f;return isNaN(u)?n=="???"?"NA":n:u==0?0:(r=1,f=i==undefined?"":i,i!=undefined&&i.toLowerCase()=="mil"?r=1e6:i!=undefined&&i.toLowerCase()=="bil"&&(r=1e9),(u/r).toFixed(t)+" "+f)}function toFixedDatetime(n,t,i,r){var u=n.split("-");if(u.length==3){var f=u[0],e=u[1],o=u[2],s=new Date(e.concat("/",f,"/",o," ",t));return s.Format(i)+" - "+r}return new Date(n.concat(" ",t)).Format(i)+" - "+r}function toFixedDatetimeSec(n,t,i){var r=n.split("-");return r.length==3?(n=new Date(n.replace(/ /g,"T")),n.Format(t)+" - "+i):new Date(n.replace(/ /g,"T")).Format(t)+" - "+i}function toFixed(n,t){var r=1,i;return isNaN(n)?n:(n<0&&(r=-1),i=Math.pow(10,t),Math.round(Math.abs(n)*i)/i*r)}function getStockData(n,t){var h=$("#testOutstanding").text();if(n.valueM.length!=0){var i=n.valueM[0],e=i.price,c=i.priceChange,l=i.priceChangePercent,a=i.accumulatedVolume,v=h*e,y=i.price52wHigh,p=i.price52wLow,s=t.Series!=null&&typeof t.Series.EndTime!="undefined"?t.Series.EndTime:i.datePreviousClose,o=" ";$(".MicrosoftCorp_last").html("$"+toFixedNumber(e,2));var f=Number(c),r=toFixed(f,2),u=toFixed(Number(l.toString().replace("%","")),2);isNaN(r)||(r=r>0?"+$"+r:"-$"+Math.abs(r));isNaN(u)||(u=u>0?"+"+u+"%":u+"%");!isNaN(f)&&f<0?o=' class="MicrosoftCorp_percentChange"':(isNaN(f)||f==0)&&(o=' class="MicrosoftCorp_percentChange_none"');$(".MicrosoftCorp_Change").html(""+r+' (<\/span>'+u+')<\/span><\/span>');$(".MicrosoftCorp_price>a").css("display","inline-block").attr("aria-label","Microsoft current price is "+toFixedNumber(e,2)+"dollars, Today's change is "+r+", or "+u+" points.").attr("title","click to stock detail page");$(".MicrosoftCorp_volume").html(toFixedNumber(a,2,"Mil"));$(".MicrosoftCorp_cap").html(toFixedNumber(v,2,"Bil"));$(".MicrosoftCorp_yearhigh").html(toFixedNumber(y,2));$(".MicrosoftCorp_yearlow").html(toFixedNumber(p,2));$(".MicrosoftCorp_footer_time").html("Quotes delayed by up to 15 minutes. Price Quote as of "+toFixedDatetimeSec(s,"M/dd/yyyy h:mm:ss",'ET. Supplied by Refinitiv<\/a>'));$(".MicrosoftCorp_footer_time").attr("aria-label","Quotes delayed by up to 15 minutes. Price Quote as of "+toFixedDatetimeSec(s,"M/dd/yyyy h:mm:ss","ET"))}}function getStockChart(n){var i,u,t,r;if(n.length!=0&&typeof n.Series!="undefined"&&n.Series!=null){for(i=[],u=n.Series.PT[0].T,t=0;r=n.Series.PT[t];t++)i.push({P:r.P,T:t==0?u:r.T});$(".stock-chart-container").each(function(t){var r="stock-chart-container-"+t.toString(),u;$(this).attr("id",r);try{u=new StockChart({containerId:r,fill:"#5f5f5f",style:{fontSize:"18px",fill:"#424444",fontWeight:"normal"},data:i,PricePreviousClose:n.PricePreviousClose});u.draw()}catch(f){console.info(f.message);$(this).hide()}})}}var StockChart=function(n){this.defVal={containerId:"chart_container",data:[],PricePreviousClose:null,style:{},backgroundColor:"white",stroke:"gray",strokeWidth:1,fill:"steelblue",fillOpacity:"0.85"};this.opts=$.extend({},this.defVal,n);this.opts.style=$.extend({},{fontFamily:"Segoe UI",fontSize:"20px",fontWeight:"bold",fill:"#424444"},this.opts.style);makeSVG=function(n,t){var i=document.createElementNS("http://www.w3.org/2000/svg",n);for(var r in t)i.setAttribute(r,t[r]);return i}};StockChart.prototype={draw:function(){var k,d,l,tt,it,r,rt,ut,a,ft,et,ot,st,v,ht,vt,o,b,yt,pt;if($("#"+this.opts.containerId).empty(),!this.opts.data){$("#"+this.opts.containerId).hide();return}if(!this.opts.data.map){$("#"+this.opts.containerId).hide();return}k=Math.max.apply(Math,this.opts.data.map(function(n){return n.P}));this.opts.PricePreviousClose&&this.opts.PricePreviousClose>k&&(k=this.opts.PricePreviousClose);d=Math.min.apply(Math,this.opts.data.map(function(n){return n.P}));this.opts.PricePreviousClose&&this.opts.PricePreviousCloseRefinitiv<\/a>'));$(window).resize(function(){if(!!window.ActiveXObject||"ActiveXObject"in window){var n=430,t=$(".IRStock .stock-chart-container").width();t==0&&(t=n);var i=n*t/n,r=230*t/n,u="0 0 "+n*t/n+" 0";$(".IRStock .stock-chart-container svg").attr("width",i).attr("height",r);document.querySelector(".IRStock .stock-chart-container svg").setAttribute("viewBox",u);document.querySelector(".IRStock .stock-chart-container svg g").setAttribute("transform","scale("+t/n+")")}})})