As a precautionary health measure for our support specialists in light of COVID-19, we're operating with a limited team. If you need help with a product whose support you had trouble reaching over the phone, consult its product-specific Help Center.

false
Search
Clear search
Close search
Google apps
Main menu
");return null==a||null==a.sheet?Sf:Oi(a.sheet,void 0!=b?b:null,c)} function Si(a){if(Uc&&!gd(10)||"function"!=typeof wb.DOMParser)return null;a=gg($e("Never attached to DOM."),""+a+"");return(new DOMParser).parseFromString(Vf(a),"text/html").body.children[0]} function Qi(a,b){if(!a)return Ff;var c=document.createElement("div").style;Ti(a).forEach(function(e){var f=Xc&&e in Ni?e:e.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");Ub(f,"--")||Ub(f,"var")||(e=Ji(a,e),e=ii(f,e,b),null!=e&&Ki(c,f,e))}); return hg(c.cssText||"")} function Ui(a){var b=Array.from(Bi(qi,a,"getElementsByTagName",["STYLE"])),c=xc(b,function(f){return vc(Fi(f).cssRules)}); c=Pi(c);c.sort(function(f,h){f=bi(f.selectorText);a:{h=bi(h.selectorText);for(var k=Math.min(f.length,h.length),l=0;lr?1:nh?1:f"+b+""),Ui(b),b=b.innerHTML);b=gg($e("Never attached to DOM."),b);var c=document.createElement("template");if(ij&&"content"in c)wg(c,b),c=c.content;else{var e=document.implementation.createHTMLDocument("x");c=e.body;wg(e.body,b)}b=document.createTreeWalker(c,NodeFilter.SHOW_ELEMENT| NodeFilter.SHOW_TEXT,null,!1);for(c=Yi?new WeakMap:new $i;e=b.nextNode();){c:{var f=e;switch(Hi(f)){case 3:f=Dj(this,f);break c;case 1:if("TEMPLATE"==Gi(f).toUpperCase())f=null;else{var h=Gi(f).toUpperCase();if(h in this.oa||"http://www.w3.org/1999/xhtml"!=Li(f))var k=null;else this.ha[h]?k=document.createElement(h):(k=Vh(document,"SPAN"),this.ua&&Di(k,"data-sanitizer-original-tag",h.toLowerCase()));if(k){var l=k,n=Ci(f);if(null!=n)for(var r=0;h=n[r];r++)if(h.specified){var t=f;var w=h;var x=w.name; if(Ub(x,"data-sanitizer-"))w=null;else{var E=Gi(t);w=w.value;var pa={tagName:Xb(E).toLowerCase(),attributeName:Xb(x).toLowerCase()},qa={Dq:void 0};"style"==pa.attributeName&&(qa.Dq=Ei(t));t=Bj(E,x);t in this.o?(x=this.o[t],w=x(w,pa,qa)):(x=Bj(null,x),x in this.o?(x=this.o[x],w=x(w,pa,qa)):w=null)}null!==w&&Di(l,h.name,w)}f=k}else f=null}break c;default:f=null}}if(f){if(1==Hi(f)&&c.set(e,f),e=Ii(e),h=!1,e)k=Hi(e),l=Gi(e).toLowerCase(),n=Ii(e),11!=k||n?"body"==l&&n&&(k=Ii(n))&&!Ii(k)&&(h=!0):h=!0,k= null,h||!e?k=a:1==Hi(e)&&(k=c.get(e)),k.content&&(k=k.content),k.appendChild(f)}else Yh(e)}c.clear&&c.clear()}else a=Vh(document,"SPAN");0")+1,a.lastIndexOf("b;)a.pop()} function Jj(a){a=Array(a);Ij(a,0);return a} ;var Kj=new Hj;Kj.__default=function(a,b,c){var e=typeof c;"object"===e||"function"===e?a[b]=c:null==c?a.removeAttribute(b):(e=0===b.lastIndexOf("xml:",0)?"http://www.w3.org/XML/1998/namespace":0===b.lastIndexOf("xlink:",0)?"http://www.w3.org/1999/xlink":null)?a.setAttributeNS(e,b,c):a.setAttribute(b,c)}; Kj.style=function(a,b,c){a=a.style;if("string"===typeof c)a.cssText=c;else{a.cssText="";for(var e in c)Gj.call(c,e)&&(b=c[e],0<=e.indexOf("-")?a.setProperty(e,b):a[e]=b)}}; function Lj(a,b,c,e){(e[b]||e.__default)(a,b,c)} ;var Mj=null;function Nj(a){this.node=a;this.o=[];this.deleted=[]} ;var Oj="undefined"!==typeof Node&&Node.prototype.getRootNode||function(){for(var a=this,b=a;a;)b=a,a=a.parentNode;return b};function Pj(a,b){this.o=null;this.ka=!1;this.ha=a;this.key=b;this.text=void 0} function Qj(a,b,c){b=new Pj(b,c);return a.__incrementalDOMData=b} function Rj(a,b){if(a.__incrementalDOMData)return a.__incrementalDOMData;var c=1===a.nodeType?a.localName:a.nodeName,e=1===a.nodeType?a.getAttribute("key"):null;b=Qj(a,c,1===a.nodeType?e||b:null);if(1===a.nodeType&&(a=a.attributes,c=a.length)){e=b.o||(b.o=Jj(c));for(var f=0,h=0;f\n \n \n\n'), "add.svg":$e('\n \n \n\n'),"announcement.svg":$e('\n \n \n\n'),"arrow_back.svg":$e('\n \n \n\n'), "arrow_drop_down.svg":$e('\n'),"arrow_drop_up.svg":$e('\n'),"arrow_forward.svg":$e('\n'), "attach_file.svg":$e('\n'),"auto_awesome.svg":$e('\n'), "calendar_today.svg":$e('\n'),"chat.svg":$e('\n \n \n\n'), "check.svg":$e('\n \n \n\n'),"check_circle.svg":$e('\n \n \n\n'), "check_circle_filled.svg":$e('\n \n \n \n \n\n'),"check_circle_outline.svg":$e('\n \n \n\n'), "close.svg":$e('\n \n \n\n'),"code.svg":$e('\n'),"content_copy.svg":$e('\n \n\n'), "delete_outline.svg":$e('\n'),"do_not_disturb.svg":$e('\n \n \n\n'), "down_arrow.svg":$e('\n \n \n\n'),"drive_document.svg":$e('\n \n \n\n'),"drive_image.svg":$e('\n \n \n\n'), "dvr.svg":$e('\n'),"email.svg":$e('\n \n \n\n'), "error.svg":$e('\n'),"error_outline.svg":$e('\n \n \n\n'), "event_available.svg":$e('\n \n \n\n'),"face.svg":$e('\n'), "featured_video.svg":$e('\n'),"filter_list.svg":$e('\n \n\n'),"format_bold.svg":$e('\n'), "format_clear.svg":$e('\n'),"format_indent_decrease.svg":$e('\n'), "format_indent_increase.svg":$e('\n'),"format_italic.svg":$e('\n'),"format_list_bulleted.svg":$e('\n'), "format_list_numbered.svg":$e('\n'),"format_quote.svg":$e('\n \n\n'), "format_underline.svg":$e('\n'),"help_outline.svg":$e('\n \n \n\n'), "highlight_alt.svg":$e('\n'),"info.svg":$e('\n \n \n\n'), "info_filled.svg":$e('\n'),"keep_pin_outline.svg":$e('\n \n \n\n'), "keyboard_arrow_up.svg":$e('\n \n \n\n'),"label.svg":$e('\n \n \n\n'), "label_off.svg":$e('\n \n \n\n'), "language.svg":$e('\n'), "link.svg":$e('\n'),"lock.svg":$e('\n \n \n \n\n'), "lock_open.svg":$e('\n \n \n \n\n'),"maximize.svg":$e('\n'), "minimize.svg":$e('\n'),"mode_edit.svg":$e('\n \n \n\n'),"more_vert.svg":$e('\n \n \n\n'), "navigate_before.svg":$e('\n'),"navigate_next.svg":$e('\n'),"notifications.svg":$e('\n'), "open_in_new.svg":$e('\n'),"phone.svg":$e('\n \n \n\n'), "play_arrow.svg":$e('\n \n \n\n'),"play_circle.svg":$e('\n \n \n\n'),"public.svg":$e('\n \n \n\n'), "question_answer.svg":$e('\n \n \n\n'),"remove_circle_outline.svg":$e('\n \n \n\n'), "restart_alt.svg":$e('\n \n \n\n'),"search.svg":$e('\n \n \n\n'), "send.svg":$e('\n'),"sentiment_very_satisfied.svg":$e('\n'), "star.svg":$e('\n'),"star_boarder.svg":$e('\n'), "storefront.svg":$e('\n \n\n'), "supervised_user_circle.svg":$e('\n \n \n \n \n\n'), "text_format.svg":$e('\n'),"thumb_down_alt.svg":$e('\n'), "thumb_up.svg":$e('\n'),"thumb_up_alt.svg":$e('\n'), "undo.svg":$e('\n'),"unfold_more.svg":$e('\n'), "unpin.svg":$e('\n \n \n\n'),"video_youtube.svg":$e('\n'), "video_youtube_outline.svg":$e('\n \n \n\n'), "visibility.svg":$e('\n \n \n\n'),"warning.svg":$e('\n \n \n\n')};var Qk="arrow_back arrow_forward chevron_left chevron_right exit_to_app first_page format_quote last_page navigate_before navigate_next open_in_new star_half gm/arrow_back gm/arrow_forward gm/format_quote gm/help_outline gm/play_arrow gm/open_in_new gm/undo".split(" ");function Rk(a){var b=a.icon,c=void 0===a.size?24:a.size,e=void 0===a.Ab?!1:a.Ab,f=void 0===a.Gd?[]:a.Gd;a=void 0===a.title?"":a.title;A.call(this,"sc.shared.MaterialIcon");this.icon=b;this.size=c;this.Gd=f;this.Ab=e;this.title=a} y(Rk,A);Rk.prototype.content=function(){var a=this,b=this.size/16+"rem",c={root:!0,baseline:this.Ab,flip:-1!==Qk.indexOf(this.icon)},e=0===this.icon.indexOf("gm/");e||(c["text-icon"]=!0);for(var f=u(this.Gd),h=f.next();!h.done;h=f.next())h=h.value,""!==h&&(c[h]=!0);e?this.element("div","class",c,"title",this.title,"style",{width:b,height:b},function(){vk(Pk[a.icon.replace("gm/","")+".svg"])}):this.element("div","class",c,"title",this.title,"style","font-size: "+b,this.icon)};function Sk(a,b,c,e){this.ka=a;this.ha=b;this.o=c;this.ma=void 0===e?1:e} function Tk(a){if(!a||"transparent"===a)return new Sk(0,0,0,0);var b=a.match(/\.?\d+(\.\d+)?/g);if(3>b.length)throw Error("Could not parse '"+a+"' as a color.");b.length=4;return new (Function.prototype.bind.apply(Sk,[null].concat(Ba(b.map(Number)))))} function Uk(a){var b=Vk(a,Wk);a=Vk(a,Xk);return 3.1>b&&a>b} var Xk=new Sk(0,0,0),Wk=new Sk(255,255,255);function Vk(a,b){a=.2126*Yk(a.ka)+.7152*Yk(a.ha)+.0722*Yk(a.o)+.05;b=.2126*Yk(b.ka)+.7152*Yk(b.ha)+.0722*Yk(b.o)+.05;return Math.max(a,b)/Math.min(a,b)} function Yk(a){a/=255;return.03928>a?a/12.92:Math.pow((a+.055)/1.055,2.4)} ;var Zk=[{opacity:0},{opacity:.16,offset:.25},{opacity:.16,offset:.5},{opacity:0}],$k={duration:300},al={duration:225,easing:"cubic-bezier(.4, .0, .2, 1)"};function bl(a){a=void 0===a?{}:a;a=void 0===a.Ll?!1:a.Ll;A.call(this,"sc.shared.MaterialInteractionOverlay");var b=this;this.ha=!1;this.parentElement=null;this.Ll=a;this.ta=function(c){cl(b,c.clientX,c.clientY,b.Ll)}; this.ma=function(){b.ha=!0;b.Ca()}; this.na=function(){b.ha=!1;b.Ca()}} y(bl,A);bl.prototype.content=function(){var a=this,b=Uk(Tk(getComputedStyle(this.element("span")).color));this.root=this.element("div","class",{root:!0,"light-text":b,hover:this.ha},"aria-hidden","true",function(){a.element("div","class","hover-overlay");a.element("div","class","pressed-overlay");a.o=a.element("div","class","ripple")}); dl(this)}; function dl(a){setTimeout(function(){var b,c,e=a.parentElement,f=null!==(c=a.getElement()&&(null===(b=a.getElement())||void 0===b?void 0:b.parentElement))&&void 0!==c?c:null;e!==f&&(e&&(e.removeEventListener("mousedown",a.ta),e.removeEventListener("mouseenter",a.ma),e.removeEventListener("mouseleave",a.na)),f&&(f.addEventListener("mousedown",a.ta),f.addEventListener("mouseenter",a.ma),f.addEventListener("mouseleave",a.na)),a.parentElement=f)},0)} function el(a,b){"Enter"!==b.code&&"Space"!==b.code||cl(a,0,0,!0)} function cl(a,b,c,e){var f;if(null!==(f=a.o)&&void 0!==f&&f.animate){var h=a.root.getBoundingClientRect(),k=.6*Math.max(h.width,h.height)/256,l=(Math.sqrt(Math.pow(h.width/2,2)+Math.pow(h.height/2,2))+10)/128;if(e)b=h="calc(50% - 128px)",k="scale("+k+")",l="scale("+l+")";else{b=b-h.left-128;var n=c-h.top-128;c=h.width/2-128-b;e=h.height/2-128-n;h=n+"px";b+="px";k="translate(0, 0) scale("+k+")";l="translate("+c+"px, "+e+"px) scale("+l+")"}k=[{transform:k},{transform:l}];a.o.style.top=h;a.o.style.left= b;a.o.style.transform=l;a.o.animate(Zk,$k);a.o.animate(k,al)}} ;function fl(a){a=void 0===a?{}:a;A.call(this,"sc.shared.MaterialButton");this.model=a instanceof Nk?a:new Nk(a);this.overlay=new bl;Dk(this,this.model)} y(fl,A);p=fl.prototype; p.content=function(a){var b=this;a&&this.model.Ce(a);var c=""!==this.model.Ja(),e=""!==this.model.sg();this.o=this.element(this.model.Ui()?"a":"button","href",this.model.Ui()||void 0,"class",{root:!0,text:1===this.model.getStyle()||2===this.model.getStyle()||8===this.model.getStyle(),"color-label":8===this.model.getStyle()||2===this.model.getStyle(),"color-hint":6===this.model.getStyle()&&c,hairline:3===this.model.getStyle(),href:!!this.model.Ui(),filled:4===this.model.getStyle(),"protected":5=== this.model.getStyle(),tonal:9===this.model.getStyle(),navigational:6===this.model.getStyle()&&!c,"navigational-alt":7===this.model.getStyle(),"left-icon":Ok(this.model),"right-icon":this.model.lk(),"icon-only":e&&!c,"small-icon":this.model.Pk,hidden:!this.model.Yl,compact:this.model.compact},"style",""===this.model.mm()?null:{"max-width":this.model.mm()},"type","button","aria-label",this.model.Ti(),"aria-expanded",this.model.Yt,"aria-controls",this.model.Xt,"disabled",this.model.qg(),"onclick",function(f){b.wb(f)}, "onkeydown",function(f){b.overlay&&el(b.overlay,f)},function(){e&&b.element("span","class","icon",new Rk({icon:b.model.sg(), size:b.model.Pk||c?18:24,Ab:!0}));c&&b.element("span","class",{overflow:""!==b.model.mm()},function(){nk(b.model.Ja())}); b.overlay.render()})}; p.wb=function(a){var b=this.model.om();b&&b({method:0===a.clientX&&0===a.clientY?1:2})}; p.Zb=function(a){this.model.Zb(a)}; p.Vc=ma(0);p.Ja=function(){return this.model.Ja()}; p.nb=function(a){this.model.nb(a)}; p.focus=function(){var a;null===(a=this.o)||void 0===a?void 0:a.focus()};function gl(a,b){this.value=a;this.icon=b} gl.prototype.toString=function(){return this.value}; var hl=new gl("error","gm/error_outline"),il=new gl("caution","gm/warning"),jl=new gl("success","gm/check_circle_outline");function kl(a){var b=a.message,c=a.type,e=a.position;a=void 0===a.Qm?void 0:a.Qm;A.call(this,"sc.shared.Callout");this.message=b;this.type=c;this.position=e;this.icon=new Rk({icon:c.icon,Ab:!0});void 0!==a&&(this.Qm=new fl({mb:a.mb,text:a.text,trigger:a.trigger,style:1,compact:!0}))} y(kl,A);kl.prototype.content=function(){var a=this;this.element("div","class","root "+this.type+" "+this.position,"aria-live","polite",function(){a.element("div","class","content",function(){a.icon.render();a.element("div","class","message",a.message)}); void 0!==a.Qm&&a.element("div","class","secondary-button",a.Qm)})};function ll(a,b,c){b=void 0===b?!0:b;void 0===c||c?rg(window,Oe(a)):(c=document.createElement("a"),yg(c,a),c.rel="noopener",b?(a=Oe(c.href),window.location.href=ig(a)):(a=Oe(c.href),window.location.replace(ig(a))))} ;function ml(a,b,c,e,f){var h=Error.call(this,a+"/"+b+" "+c+" "+e);this.message=h.message;"stack"in h&&(this.stack=h.stack);this.serviceName=a;this.path=b;this.type=c;this.statusCode=e;this.responseText=f} y(ml,Error);function nl(a){var b=a.serviceName;this.uf=a.uf;this.serviceName=b} nl.prototype.get=function(a,b,c,e){c=void 0===c?{}:c;e=void 0===e?new XMLHttpRequest:e;return ue(this,function h(){var k=this,l;return mb(h,function(n){if(1==n.o)return Ra(n,k.call("GET",a,c,e,"application/json+protobuf"),2);l=n.ha;try{return n.return(ie(b,l))}catch(r){throw ol(k,a),r;}})})}; function pl(a,b,c){c=void 0===c?{}:c;var e=void 0===e?new XMLHttpRequest:e;return ue(a,function h(){var k=this,l;return mb(h,function(n){if(1==n.o)return Ra(n,k.call("GET",b,c,e,"application/json"),2);l=n.ha;try{return n.return(JSON.parse(l))}catch(r){throw ol(k,b),r;}})})} nl.prototype.post=function(a,b,c,e,f){e=void 0===e?{}:e;f=void 0===f?new XMLHttpRequest:f;return ue(this,function k(){var l=this,n;return mb(k,function(r){if(1==r.o)return Ra(r,l.call("POST",a,e,f,"application/json+protobuf",b.Hb()),2);n=r.ha;try{return r.return(ie(c,n))}catch(t){throw ol(l,a),t;}})})}; function ql(a,b,c,e){e=void 0===e?{}:e;var f=void 0===f?new XMLHttpRequest:f;return ue(a,function k(){var l=this,n;return mb(k,function(r){if(1==r.o)return Ra(r,l.call("POST",b,e,f,"application/json",JSON.stringify(c)),2);n=r.ha;try{return r.return(JSON.parse(n))}catch(t){throw ol(l,b),t;}})})} nl.prototype.call=function(a,b,c,e,f,h){return ue(this,function l(){var n=this,r;return mb(l,function(t){r=n;return t.return(new Promise(function(w,x){var E="";if(c.query){for(var pa=[],qa=u(Object.entries(c.query)),sa=qa.next();!sa.done;sa=qa.next()){var va=u(sa.value);sa=va.next().value;va=va.next().value;va=Array.isArray(va)?va:[va];va=u(va);for(var za=va.next();!za.done;za=va.next())za=za.value,pa.push(encodeURIComponent(sa)+"="+encodeURIComponent(za))}0e.status||299this.ha&&(this.ha++,a.next=this.o,this.o=a)};var xl; function yl(){var a=wb.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!Bc("Presto")&&(a=function(){var f=Vh(document,"IFRAME");f.style.display="none";document.documentElement.appendChild(f);var h=f.contentWindow;f=h.document;f.open();f.close();var k="callImmediate"+Math.random(),l="file:"==h.location.protocol?"*":h.location.protocol+"//"+h.location.host;f=Jb(function(n){if(("*"==l||n.origin==l)&&n.data==k)this.port1.onmessage()},this); h.addEventListener("message",f,!1);this.port1={};this.port2={postMessage:function(){h.postMessage(k,l)}}}); if("undefined"!==typeof a&&!Ic()){var b=new a,c={},e=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var f=c.cb;c.cb=null;f()}}; return function(f){e.next={cb:f};e=e.next;b.port2.postMessage(0)}}return function(f){wb.setTimeout(f,0)}} ;function zl(a){wb.setTimeout(function(){throw a;},0)} ;function Al(){this.ha=this.o=null} Al.prototype.add=function(a,b){var c=Bl.get();c.set(a,b);this.ha?this.ha.next=c:this.o=c;this.ha=c}; Al.prototype.remove=function(){var a=null;this.o&&(a=this.o,this.o=this.o.next,this.o||(this.ha=null),a.next=null);return a}; var Bl=new wl(function(){return new Cl},function(a){return a.reset()}); function Cl(){this.next=this.scope=this.o=null} Cl.prototype.set=function(a,b){this.o=a;this.scope=b;this.next=null}; Cl.prototype.reset=function(){this.next=this.scope=this.o=null};function Dl(a,b){El||Fl();Gl||(El(),Gl=!0);Hl.add(a,b)} var El;function Fl(){if(wb.Promise&&wb.Promise.resolve){var a=wb.Promise.resolve(void 0);El=function(){a.then(Il)}}else El=function(){var b=Il; "function"!==typeof wb.setImmediate||wb.Window&&wb.Window.prototype&&!Bc("Edge")&&wb.Window.prototype.setImmediate==wb.setImmediate?(xl||(xl=yl()),xl(b)):wb.setImmediate(b)}} var Gl=!1,Hl=new Al;function Il(){for(var a;a=Hl.remove();){try{a.o.call(a.scope)}catch(b){zl(b)}Bl.put(a)}Gl=!1} ;function Jl(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}} ;function Kl(a){this.o=0;this.ta=void 0;this.ma=this.ha=this.ka=null;this.oa=this.na=!1;if(a!=yb)try{var b=this;a.call(void 0,function(c){Ll(b,2,c)},function(c){Ll(b,3,c)})}catch(c){Ll(this,3,c)}} function Ml(){this.next=this.context=this.o=this.ha=this.child=null;this.ka=!1} Ml.prototype.reset=function(){this.context=this.o=this.ha=this.child=null;this.ka=!1}; var Nl=new wl(function(){return new Ml},function(a){a.reset()}); function Ol(a,b,c){var e=Nl.get();e.ha=a;e.o=b;e.context=c;return e} function Pl(a){if(a instanceof Kl)return a;var b=new Kl(yb);Ll(b,2,a);return b} Kl.prototype.then=function(a,b,c){return Ql(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)}; Kl.prototype.$goog_Thenable=!0;function Rl(a,b,c){return Ql(a,null,b,c)} Kl.prototype.cancel=function(a){if(0==this.o){var b=new Sl(a);Dl(function(){Tl(this,b)},this)}}; function Tl(a,b){if(0==a.o)if(a.ka){var c=a.ka;if(c.ha){for(var e=0,f=null,h=null,k=c.ha;k&&(k.ka||(e++,k.child==a&&(f=k),!(f&&1=c.tabIndex?b:c})} ;var um=[];function vm(){var a=this;this.oa=this.o=null;this.ha=!1;this.ka=[];this.ma=[];this.na=function(b){if(a.o&&a.ha){var c=qm(a.o),e=sm(c),f;e&&(f=tm(c));switch(b.key){case "Tab":if(!e||!f)break;b.shiftKey?document.activeElement===e&&(b.preventDefault(),f.focus()):document.activeElement===f&&(b.preventDefault(),e.focus());break;case "Escape":b.stopPropagation(),a.oa()}}}} vm.prototype.init=function(a,b,c){c=void 0===c?!1:c;this.oa=b;if(this.o=a)this.o.addEventListener("keydown",this.na),c&&wm(this)}; function xm(a,b){if(b||!1!==b&&!a.ha)wm(a);else if(a.ha){for(ym(a);0\n \n \n '))); e.addEventListener("click",function(){a.o.setMonth(a.o.getMonth()+-1);Em(a)}); c.appendChild(e);e=document.createElement("button");e.className="next";e.setAttribute("title","Next month");e.setAttribute("aria-label","Next month");e.appendChild(Wh($e('\n \n \n ')));e.addEventListener("click",function(){a.o.setMonth(a.o.getMonth()+1);Em(a)}); c.appendChild(e);c=document.createElement("tr");c.appendChild(b);return c} function Dm(a){var b=document.createElement("tr");b.className="weekdays";for(var c=[],e=0;7>e;e++){var f=document.createElement("td");c.push(f);b.appendChild(f)}e=new Date(a.o);for(f=0;7>f;f++)c[e.getDay()].textContent=a.va?e.toLocaleString(a.na,{weekday:"narrow"}):"SMTWTFS"[e.getDay()],e.setDate(e.getDate()+1);return b} function Em(a){a.ma.textContent=a.va?a.o.toLocaleString(a.na,{month:"long",year:"numeric"}):a.o.getMonth()+1+"/"+a.o.getFullYear();a.ka.textContent="";var b=new Date(a.o);b.setDate(1);for(0e;e++){var f=document.createElement("td");if(b.getMonth()==a.o.getMonth()){var h=document.createElement("button");f.setAttribute("data-time",b.getTime());var k=!1;a.oa&&(k=a.oa.getTime()===b.getTime());h.textContent= b.getDate().toString();h.className="selectable";k&&Jg(h,"selected",!0);f.appendChild(h)}else f.className="unselectable";c.appendChild(f);b.setDate(b.getDate()+1)}a.ka.appendChild(c)}} function Fm(a){return new Date(a.getFullYear(),a.getMonth(),1)} Am.prototype.ua=function(a){this.ta=a}; Am.prototype.getElement=function(){return this.ha}; window.sc_createCalendar=function(a){a=new Am(a);return{setSelectDateCallback:a.ua.bind(a),getElement:a.getElement.bind(a)}};function Gm(a){z.call(this,a)} y(Gm,z);function Hm(a){a&&"function"==typeof a.dispose&&a.dispose()} ;function Im(){this.ua=this.ua;this.ta=this.ta} Im.prototype.ua=!1;Im.prototype.isDisposed=function(){return this.ua}; Im.prototype.dispose=function(){this.ua||(this.ua=!0,this.Bd())}; function Jm(a,b){a.ua?b():(a.ta||(a.ta=[]),a.ta.push(b))} Im.prototype.Bd=function(){if(this.ta)for(;this.ta.length;)this.ta.shift()()};function Km(a,b){this.type=a;this.o=this.target=b;this.defaultPrevented=this.ka=!1} Km.prototype.stopPropagation=function(){this.ka=!0}; Km.prototype.preventDefault=function(){this.defaultPrevented=!0};var Lm=function(){if(!wb.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}}); try{wb.addEventListener("test",yb,b),wb.removeEventListener("test",yb,b)}catch(c){}return a}();function Mm(a,b){Km.call(this,a?a.type:"");this.relatedTarget=this.o=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.ha=null;a&&this.init(a,b)} Nb(Mm,Km);var Nm={2:"touch",3:"pen",4:"mouse"}; Mm.prototype.init=function(a,b){var c=this.type=a.type,e=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.o=b;if(b=a.relatedTarget){if(Wc){a:{try{Rc(b.nodeName);var f=!0;break a}catch(h){}f=!1}f||(b=null)}}else"mouseover"==c?b=a.fromElement:"mouseout"==c&&(b=a.toElement);this.relatedTarget=b;e?(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY|| 0):(this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType="string"===typeof a.pointerType?a.pointerType:Nm[a.pointerType]||"";this.state=a.state;this.ha=a;a.defaultPrevented&&Mm.Sf.preventDefault.call(this)}; Mm.prototype.stopPropagation=function(){Mm.Sf.stopPropagation.call(this);this.ha.stopPropagation?this.ha.stopPropagation():this.ha.cancelBubble=!0}; Mm.prototype.preventDefault=function(){Mm.Sf.preventDefault.call(this);var a=this.ha;a.preventDefault?a.preventDefault():a.returnValue=!1};var Om="closure_listenable_"+(1E6*Math.random()|0);function Pm(a){return!(!a||!a[Om])} ;var Qm=0;function Rm(a,b,c,e,f){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!e;this.Jo=f;this.key=++Qm;this.Ve=this.Tn=!1} function Sm(a){a.Ve=!0;a.listener=null;a.proxy=null;a.src=null;a.Jo=null} ;function Tm(a){this.src=a;this.o={};this.ha=0} Tm.prototype.add=function(a,b,c,e,f){var h=a.toString();a=this.o[h];a||(a=this.o[h]=[],this.ha++);var k=Um(a,b,e,f);-1>>0);function bn(a){if("function"===typeof a)return a;a[kn]||(a[kn]=function(b){return a.handleEvent(b)}); return a[kn]} ;function ln(){Im.call(this);this.ma=new Tm(this);this.Oc=this;this.Ob=null} Nb(ln,Im);ln.prototype[Om]=!0;p=ln.prototype;p.sr=function(){return this.Ob}; p.addEventListener=function(a,b,c,e){$m(this,a,b,c,e)}; p.removeEventListener=function(a,b,c,e){hn(this,a,b,c,e)}; p.dispatchEvent=function(a){var b=this.sr();if(b){var c=[];for(var e=1;b;b=b.sr())c.push(b),++e}b=this.Oc;e=a.type||a;if("string"===typeof a)a=new Km(a,b);else if(a instanceof Km)a.target=a.target||b;else{var f=a;a=new Km(e,b);Hc(a,f)}f=!0;if(c)for(var h=c.length-1;!a.ka&&0<=h;h--){var k=a.o=c[h];f=k.am(e,!0,a)&&f}a.ka||(k=a.o=b,f=k.am(e,!0,a)&&f,a.ka||(f=k.am(e,!1,a)&&f));if(c)for(h=0;!a.ka&&hc&&(c=a.length);var e=a.indexOf("?");if(0>e||e>c){e=c;var f=""}else f=a.substring(e+1,c);a=[a.substr(0,e),f,a.substr(c)];c=a[1];a[1]=b?c?c+"&"+b:b:c;return a[0]+(a[1]?"?"+a[1]:"")+a[2]} function sn(a,b,c){if(Array.isArray(b))for(var e=0;e>>0);a={requestId:c,Vy:Rn(a,b,c),onLoad:b.onLoad,onError:b.onError||function(){}, kp:b.kp||function(){}, bC:b.bC||function(){}, rq:b.rq,Mz:b.pageType,Fk:b.Fk};b.qd&&("IFRAME"==b.qd.nodeName?(a.window=b.qd.contentWindow,a.qd=a.window.document.body):(a.window=window,a.qd=b.qd));return a} function Rn(a,b,c){var e=Sn(a)+"/apis/render?",f=a.ua,h=a.Ba,k=b.helpcenter,l=a.ta,n=a.va,r=a.Ha,t=a.Ga,w=a.Aa,x=b.pageType,E=b.pageId,pa=b.url,qa=b.Zg,sa=b.IF;c=["js_request_id."+c];if(b.extraParams)for(var va in b.extraParams)c.push(va+"."+b.extraParams[va]);a={v:1,key:f,request_source:h,helpcenter:k,hl:l,authuser:n,visit_id:r,view_id:t,psd:w,page_type:x,id:E,url:pa,components:qa,exclude_components:sa,extra_params:c,mendel_ids:a.ya,service_configuration:a.Ea,scdeb:a.wa,instant_preview:b.instantPreview, symptom:b.symptom};b="";for(var za in a)f=a[za],void 0!=f&&(Array.isArray(f)&&(f=f.join()),b&&(b+="&"),b+=za+"="+encodeURIComponent(f.toString()));return e+b} function Qn(a,b,c){try{var e=JSON.parse(c)}catch(f){b.onError({type:1,message:c});return}if(404!=e.application_error&&e.html){if(b.Fk){if(!e.page_metadata||!e.page_metadata.page_type){b.onError({type:4});return}if(se.get(e.page_metadata.page_type)!=b.Mz){b.onError({type:3});return}}e.page_metadata&&b.kp(e.page_metadata);b.qd?Tn(a,b,e.html):b.rq(function(f){"IFRAME"==f.nodeName?(b.window=f.contentWindow,b.qd=b.window.document.body):(b.window=window,b.qd=f);Tn(a,b,e.html)})}else b.onError({type:2})} function Tn(a,b,c){b.window.sc_scope=b.qd;b.onLoad&&(b.window[b.requestId]=function(e){b.onLoad(e.getChild(b.requestId))}); kg(b.qd,Bn(c));c=Array.from(b.qd.getElementsByTagName("script"));a.ka(b,c)} Ln.prototype.ka=function(a,b){for(;0a.ha.length;a.oa()} ;var Yn=lf(Ze($e("//www.youtube.com/player_api")));function Zn(a,b){a=Sg("play",a);b=Sg("play",b);return b===a?"":b} ;function $n(a){this.Aa="modal-backdrop "+a.className;this.va=a.Kl;this.ma=a.kv;this.wa=a.xz;this.oa=a.VD;this.ya=this.na=!1;this.ha=new vm;ao(this)} function ao(a){a.o=document.createElement("div");a.o.className=a.Aa;a.o.setAttribute("aria-hidden",!0);a.o.addEventListener("click",function(b){b.target==a.o&&(a.ka&&!a.ka()||a.close())}); a.ha.init(a.o,function(){a.ka&&!a.ka()||a.close()}); a.oa?(a.oa.parentNode.replaceChild(a.o,a.oa),a.ei(a.oa)):document.body.appendChild(a.o)} p=$n.prototype; p.close=function(){this.o.setAttribute("aria-hidden",!0);this.o.style.zIndex="";xm(this.ha,!1);Jg(this.o,this.va,!1);var a;if(a=null!=document.activeElement)a=0!=(document.activeElement.compareDocumentPosition(this.o)&Node.DOCUMENT_POSITION_CONTAINS);if(a)for(;0a||5a?a=0:a>c&&(a=c);return a-b} function mo(a){a.preventDefault()} ;function po(a,b,c){a.timeOfStartCall=(new Date).getTime();var e=c||wb,f=e.document,h=a.nonce||Bg(e);h&&!a.nonce&&(a.nonce=h);if("help"==a.flow){var k=xb("document.location.href",e);!a.helpCenterContext&&k&&(a.helpCenterContext=k.substring(0,1200));k=!0;if(b&&JSON&&JSON.stringify){var l=JSON.stringify(b);(k=1200>=l.length)&&(a.psdJson=l)}k||(b={invalidPsd:!0})}b=[a,b,c];e.GOOGLE_FEEDBACK_START_ARGUMENTS=b;c=a.serverUri||"//www.google.com/tools/feedback";if(k=e.GOOGLE_FEEDBACK_START)k.apply(e,b);else{e= c+"/load.js?";for(var n in a)b=a[n],null==b||Bb(b)||(e+=encodeURIComponent(n)+"="+encodeURIComponent(b)+"&");a=$h(Ph(f),"SCRIPT");h&&a.setAttribute("nonce",h);qg(a,Dn(e));f.body.appendChild(a)}} Mb("userfeedback.api.startFeedback",po);function qo(a){window.sc_trackStatsEvent(49,8);ro(a)} function ro(a){var b=a.productId,c=a.bucket,e=void 0===a.flow?"material":a.flow,f=void 0===a.Hq?!1:a.Hq,h=void 0===a.Ty?!0:a.Ty,k=a.FC,l=a.hb,n=a.onLoad,r=a.payload;a=a.description;var t=Qg(),w={};b=(w.flow=e,w.locale=t.lang,w.productId=b,w.disableSubmit=f,w);c&&(b.bucket=c);l&&(b.callback=l);n&&(b.onLoadCallback=n);t.sb_uri&&(b.serverUri=t.sb_uri);k&&(b.reportDataCallback=k);b.allowNonLoggedInFeedback=h;"submit"===e&&(b.report={description:a});var x={};r.forEach(function(E,pa){x[pa]=E}); po(b,x)} ;function so(){var a=Qg();a=new Map([["answer_id",a.pid],["bc_url",a.bcUrl],["environment_hostname",a.ehn],["external_name",a.ehc],["hc",a.hc],["hostname",a.host],["internal_ip",a.ii],["experiments",a.mendel_ids],["page_type",a.pt],["user_logged_in",a.li],["environment",a.env],["client",to()]]);a.set("escalation_availability_matching_frd_forms",xh().escalation_availability_matching_frd_forms);a.set("rule_service_escalation_availability_c2c_event_id",xh().rule_service_escalation_availability_c2c_event_id); a.set("rule_service_escalation_availability_c2c_synthesis_event_id",xh().rule_service_escalation_availability_c2c_synthesis_event_id);a.set("rule_service_escalation_availability_chat_event_id",xh().rule_service_escalation_availability_chat_event_id);a.set("rule_service_escalation_availability_chat_synthesis_event_id",xh().rule_service_escalation_availability_chat_synthesis_event_id);a.set("rule_service_escalation_availability_email_event_id",xh().rule_service_escalation_availability_email_event_id); a.set("rule_service_escalation_availability_email_synthesis_event_id",xh().rule_service_escalation_availability_email_synthesis_event_id);a.set("rule_service_escalation_availability_phone_event_id",xh().rule_service_escalation_availability_phone_event_id);a.set("rule_service_escalation_availability_phone_synthesis_event_id",xh().rule_service_escalation_availability_phone_synthesis_event_id);a.set("rule_service_extensible_contact_options_event_id",xh().rule_service_extensible_contact_options_event_id); a.set("rule_service_helpcenter_fields_synthesis_event_id",xh().rule_service_helpcenter_fields_synthesis_event_id);return a} function to(){var a=Qg().rs;switch(a){case 4:return"cases";case 1:return"helpcenter";default:return String(a)}} ;function uo(){vo(this)} function vo(a){a.o=(new $n({className:"material-dialog-backdrop",Kl:"material-dialog-backdrop--active",kv:"material-dialog-backdrop--locked",xz:"material-dialog-backdrop--disable-click-capture"})).Ut(function(){return!a.oa}); a.o.getElement().addEventListener("click",function(b){b=b.target;var c=b.getAttribute("data-material-dialog-action");c&&(a.ha&&a.ha(c),Ng(b,"material-dialog--disable-close")||a.close())})} uo.prototype.open=function(a){var b=this,c=a.querySelector(".material-dialog__title");c&&oo(c,a).reset().enable(Ng(a,"material-dialog--draggable"));var e=a.querySelector(".material-dialog__minimize-button");if(e){var f=e.getAttribute("data-material-dialog-minimized-aria-label"),h=function(){var k=document.createElement("button");k.className="material-dialog-minimized";k.textContent=c.textContent+"\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u2594";f&&k.setAttribute("aria-label",f);k.addEventListener("click", function(){b.o.open();document.body.removeChild(k)}); b.o.close();document.body.appendChild(k);k.focus()}; this.ma=function(){return e.removeEventListener("click",h)}; e.addEventListener("click",h)}this.oa=Ng(a,"material-dialog--disable-close");this.o.Ws(!Ng(a,"material-dialog--show-background")).Ts(Ng(a,"material-dialog--disable-click-capture")).ei(a).open();a.focus();return this}; uo.prototype.close=function(){this.o.close();this.ma&&this.ma();this.ka&&this.ka()}; uo.prototype.$c=function(a){this.ha=a;return this}; uo.prototype.hb=function(a){this.ka=a;return this}; uo.prototype.onClose=uo.prototype.hb;uo.prototype.onAction=uo.prototype.$c;uo.prototype.close=uo.prototype.close;uo.prototype.open=uo.prototype.open;function wo(a,b){var c=null;return function(e){for(var f=[],h=0;hc||0>a?0:a+b>=c?c-b:a} function Go(a){switch(a){case 1:case 3:return"100%";case 2:case 4:return"0%";default:return"50%"}} function Ho(a){var b,c;return null!==(c=null===(b=a.getElement())||void 0===b?void 0:b.getRootNode())&&void 0!==c?c:document} ;function Mo(a){var b=a.content,c=void 0===a.Eg?!0:a.Eg,e=void 0===a.Pl?"placement-start":a.Pl,f=void 0===a.sq?"alignment-start":a.sq,h=void 0===a.style?"style-normal":a.style,k=a.$n,l=te(a,"content useFixedBackdrop caretPlacement caretAlignment style containerPadding".split(" "));A.call(this,"sc.shared.MaterialRichTooltip");var n=this;this.ha=!1;this.vd=this.Id=0;this.ma=b;this.Eg=c;this.ta=e;this.na=f;this.ua=h;this.$n=k;this.o=new Fo(Object.assign({content:function(){No(n)}, Lp:!0,fn:!1,Ul:!1},l))} y(Mo,A);p=Mo.prototype;p.open=function(a){this.Eg?this.o.open(a):(this.ha=!0,this.Ca())}; p.isOpen=function(){return this.Eg?this.o.isOpen():this.ha}; p.close=function(){this.Eg?this.o.close():(this.ha=!1,this.Ca())}; function Oo(a,b){var c=b.Id;b=b.vd;a.Eg||(a.Id=null!==c&&void 0!==c?c:a.Id,a.vd=null!==b&&void 0!==b?b:a.vd,a.Ca())} p.Rd=function(){return!0}; p.content=function(){var a=this;this.Eg?this.o.render():this.element("div","class","popup-container","style",{visibility:this.ha?"visible":"hidden",transform:"translate("+this.Id+"px, "+this.vd+"px)"},function(){No(a)})}; function No(a){a.element("div","class","root "+a.ta+" "+a.ua,function(){a.element("div","class","container","style",{padding:a.$n},a.ma);a.element("div","class","clip-track "+a.na,function(){a.element("div","class","clip",function(){a.element("div","class","caret")})})})} ;var Po={QD:!1,Ml:!0};function Qo(){A.call(this,"sc.shared.MaterialSnackbar");this.ha=new fl;this.message="";this.$j=5E3;this.Rp=!1;this.state=2} y(Qo,A);Qo.prototype.open=function(a){var b=this,c=a.message,e=a.action,f=void 0===a.$j?5E3:a.$j;a=void 0===a.Rp?!1:a.Rp;if(0===this.state)return Promise.resolve();this.state=0;this.message=c;this.$j=f;this.Rp=a;e?this.action=Object.assign(Object.assign({},Po),e):this.action=void 0;this.Ca();Ro(this);return new Promise(function(h){b.hb=h})}; Qo.prototype.close=function(){0===this.state&&(this.o&&clearTimeout(this.o),this.state=1,this.message="",this.Ca())}; Qo.prototype.content=function(){var a=this;this.element("div","class",{root:!0,widescreen:this.Rp,"root-closed":2===this.state},function(){var b;a.element("div","class",{snackbar:!0,opened:0===a.state,closing:1===a.state,closed:2===a.state,"long-action":null===(b=a.action)||void 0===b?void 0:b.QD},"ontransitionend",function(c){var e;"opacity"===c.propertyName&&0!==a.state&&2!==a.state&&(a.state=2,a.Ca(),null===(e=a.hb)||void 0===e?void 0:e.call(a))},function(){a.element("div","role","status","aria-live", "assertive","class","message",a.message); So(a)})})}; function So(a){a.action&&a.element("div","class","action",function(){a.ha.render({text:a.action.actionText,trigger:function(){var b,c;a.action.Ml&&a.close();null===(c=(b=a.action).$c)||void 0===c?void 0:c.call(b)}})})} function Ro(a){a.action||(a.o=setTimeout(function(){a.close()},a.$j))} ;function To(){this.ma=[];this.ha=!1;this.oa=new Qo} To.prototype.initialize=function(a){a=void 0===a?document.body:a;if(this.ha)return this;this.ha=!0;Uo(this,a);return this}; To.prototype.open=function(a){this.ha&&(this.ma.push(a),Vo(this))}; To.prototype.close=function(){this.oa.close()}; To.prototype.Xa=function(){ue(this,function b(){var c=this;return mb(b,function(e){if(1==e.o)return c.ha?c.ka?Ra(e,c.ka,2):e.Va(2):e.return(c);c.o&&c.o.parentElement&&(c.o.parentElement.removeChild(c.o),c.o=void 0);c.ha=!1;return e.return(c)})})}; function Vo(a,b){b=void 0===b?!1:b;var c;ue(a,function f(){var h=this,k;return mb(f,function(l){if(1==l.o){k=h;if(!b&&h.ka)return l.return();if(0===h.ma.length)return null===(c=h.na)||void 0===c?void 0:c.call(h),delete h.ka,delete h.na,l.return();h.ka||(h.ka=new Promise(function(n){k.na=n})); return Ra(l,h.oa.open(h.ma[0]),2)}h.ma.shift();Vo(h,!0);Wa(l)})})} function Uo(a,b){"interactive"===document.readyState||"complete"===document.readyState?Wo(a,b):window.addEventListener("DOMContentLoaded",function(){Wo(a,b)})} function Wo(a,b){a.o=document.createElement("div");b.appendChild(a.o);qk(a.o,function(){a.oa.render()})} var Xo=new To;function Yo(a){var b=void 0===a?{}:a;a=void 0===b.size?"mspin-small":b.size;b=void 0===b.Vn?!1:b.Vn;A.call(this,"sc.shared.MaterialSpinner");this.size=a;this.Vn=b} y(Yo,A);Yo.prototype.content=function(){var a=this;this.element("div","class","mspin "+this.size+" "+(this.Vn?"mspin-centered":""),function(){a.element("div",function(){a.element("div")})})};function Zo(a){Jk.call(this);this.inputType="";this.jh=!1;this.Ge=!0;this.xk=this.rows=0;this.tm=this.text=this.label="";this.Xb=this.filled=!1;this.Ne=!0;this.disabled=this.Gp=!1;this.placeholder="";this.jf=[];this.error="";this.maxLength=void 0;this.yd=!1;this.Ce(a)} y(Zo,Jk);p=Zo.prototype; p.Ce=function(a){var b=void 0===a.jh?!1:a.jh,c=void 0===a.Ge?!0:a.Ge,e=void 0===a.rows?0:a.rows,f=void 0===a.xk?0:a.xk,h=void 0===a.label?"":a.label,k=void 0===a.placeholder?"":a.placeholder,l=void 0===a.text?"":a.text,n=void 0===a.tm?"":a.tm,r=void 0===a.filled?!1:a.filled,t=void 0===a.Xb?!1:a.Xb,w=void 0===a.Ne?!0:a.Ne,x=void 0===a.Gp?!1:a.Gp,E=void 0===a.disabled?!1:a.disabled,pa=void 0===a.Pd?void 0:a.Pd,qa=void 0===a.kh?void 0:a.kh,sa=void 0===a.Lf?void 0:a.Lf,va=void 0===a.jf?["self"]:a.jf, za=void 0===a.error?"":a.error,Ca=a.maxLength,Ma=void 0===a.yd?!1:a.yd;this.inputType=void 0===a.inputType?"":a.inputType;this.jh=b;this.rows=e;this.xk=f;this.label=h;this.placeholder=k;this.text=l;this.tm=n;this.filled=r;this.Xb=t;this.Ne=w;this.Gp=x;this.disabled=E;this.Pd=pa;this.kh=qa;this.Lf=sa;this.jf=va;this.error=za;this.Ge=c;this.maxLength=Ca;this.yd=Ma}; p.rk=function(){return this.Ge}; p.Cb=function(){return this.label}; p.Ja=function(){return this.text}; p.nb=function(a){a!==this.text&&(this.text=a,Mk(this,0))}; p.Zb=function(a){a!==this.disabled&&(this.disabled=a,Mk(this,3))}; p.od=function(){return this.maxLength};function $o(a){a=void 0===a?{}:a;A.call(this,"sc.shared.MaterialTextField");this.labelId=Ik();this.na=Ik();this.o=null;this.ma=!1;this.model=a instanceof Zo?a:new Zo(a);Dk(this,this.model)} y($o,A);function ap(a){return a.model.rk()?a.o?a.o:new Bo({label:a.model.placeholder,ym:a.model.Cb()?void 0:bp(a),floatingLabel:a.model.Ne,disabled:a.model.disabled,filled:a.model.filled,Xb:a.model.Xb,Cg:function(){return""!==a.model.Ja()}}):null} p=$o.prototype; p.content=function(a){var b=this;a&&this.model.Ce(a);this.o=ap(this);this.element("div","class","root",function(){b.model.Cb()&&b.element("label","class","label","id",b.labelId,b.model.Cb());b.o&&(b.o.error=!!b.model.error);b.element("div","class",{"input-container":!0,multiline:b.model.jh,dense:b.model.Xb,invalid:b.model.error,outlined:!b.model.filled,filled:b.model.filled,disabled:b.model.disabled},function(){b.element(b.model.Cb()?"div":"label","class",{box:!0,"box-no-label":b.model.filled&&!b.model.Ne, "filled-box":b.model.filled&&!b.model.Xb&&(b.model.Ne||b.model.jh),"filled-label":b.model.filled&&!b.model.Xb&&b.model.Ne,"outlined-box":!b.model.filled&&b.model.Ne},function(){b.ha=b.element(b.model.jh?"textarea":"input","class",{"native-control":!0,"native-control-filled":b.model.filled},"style",{padding:"0 15px","padding-bottom":b.model.filled?"0":"15px"},"placeholder",b.o?"":b.model.placeholder,"aria-placeholder",b.o?b.model.placeholder:"","type",b.model.inputType,"rows",b.model.rows,"disabled", b.model.disabled,"aria-labelledby",cp(b),"maxlength",b.model.od(),"onfocus",function(){return void b.kh()},"onblur",function(){return void b.Lf()},"oninput",function(){var f,h=b.ha.value; b.model.nb(h);null===(f=b.model.Pd)||void 0===f?void 0:f(h)},"aria-required",b.model.yd); b.ha.value=b.model.Ja();if(b.model.jh&&0===b.model.rows){var e=dp(b);b.ha.style.height=e+"px";0===e&&(b.ha.style.overflowY="hidden")}}); b.o&&(b.o.render(),Eo(b.o,b.model.placeholder))}); var c=b.model.error||b.model.tm;c&&(b.element("div","id",b.na,"class",{"helper-text":!0,"helper-text-invalid":b.model.error,"helper-text-disabled":b.model.disabled,"helper-text-filled":b.model.filled,"helper-text-outlined":!b.model.filled,"helper-text-hidden":!b.model.error&&b.model.Gp&&!b.ma},c),b.ha.setAttribute("aria-describedby",b.na))})}; function cp(a){return a.model.jf?a.model.jf.map(function(b){return"self"===b?bp(a):b}).join(" "):bp(a)} function bp(a){if(a.model.Cb()||a.model.placeholder)return a.labelId} function dp(a){var b=Number(getComputedStyle(a.ha).paddingLeft.replace(/[^0-9\.]/g,"")),c=a.ha.clientWidth-2*b;b=a.element("div","class","expander","style","width: "+c+"px",""+a.model.Ja()+"\u200b");if(a.model.xk){var e="\n".repeat(a.model.xk-1);a=a.element("div","class","expander","style","width: "+c+"px",""+e+"\u200b");return Math.min(b.clientHeight,a.clientHeight)}return b.clientHeight} p.kh=function(){var a;this.ma=!0;this.o&&this.o.focus();null===(a=this.model.kh)||void 0===a?void 0:a();this.Ca()}; p.Lf=function(){var a;this.ma=!1;this.o&&this.o.blur();null===(a=this.model.Lf)||void 0===a?void 0:a();this.Ca()}; p.Ja=function(){return this.model.Ja()}; p.nb=function(a){this.model.nb(a)}; function ep(a,b){a=a.model;b!==a.error&&(a.error=b,Mk(a,2))} p.hasError=function(){return!!this.model.error}; p.Zb=function(a){this.model.Zb(a)}; p.focus=function(){this.ha.focus()};function fp(a){var b=void 0===a.text?"":a.text,c=a.trigger,e=void 0===a.Ip?"":a.Ip,f=void 0===a.isRtl?!1:a.isRtl,h=void 0===a.vk?!0:a.vk,k=void 0===a.Pf?!1:a.Pf,l=void 0===a.Ok?10:a.Ok;a=void 0===a.hn?0:a.hn;A.call(this,"sc.shared.MaterialTooltip");var n=this;this.o=!1;this.Ok=l;this.hn=a;this.isRtl=f;this.text=b;this.trigger=c;this.Ip=e;this.vk=h;this.Pf=k;this.activate=function(){if(!n.Pf||gp(n,n.trigger))n.o=!0,n.Ca()}; this.deactivate=function(){n.o=!1;n.Ca()}; this.ha=function(r){var t=r.clientX,w=r.clientY;r=n.container.getBoundingClientRect();var x=r.right,E=r.bottom;w=r.top<=w&&w<=E;r.left<=t&&t<=x&&w||n.deactivate()}} y(fp,A);fp.prototype.content=function(){var a=this;hp(this);this.container=this.element("div","class","container","style",{display:this.o?"":"none",transform:this.isRtl?"translateX(-100%)":void 0,direction:this.isRtl?"rtl":void 0,"max-height":this.vk?"7rem":void 0},function(){var h=vk(a.text);h.classList.add(ip+"blob");for(var k=u(a.Ip.split(/ +/)),l=k.next();!l.done;l=k.next())(l=l.value)&&h.classList.add(l);a.vk?(h.style.webkitLineClamp="5",h.style.whiteSpace="normal"):h.style.display="inline-block"}); this.container.style.top="0";var b=this.container.getBoundingClientRect(),c=this.trigger.getBoundingClientRect(),e=c.x,f=c.y;0!==b.top&&(e=c.x-b.x,f=c.top-b.top);this.container.style.left=this.isRtl?e-this.Ok+"px":e+c.width+this.Ok+"px";this.container.style.marginTop=f-c.height/4+this.hn+"px";this.trigger.addEventListener("mouseenter",this.activate);this.trigger.addEventListener("mouseleave",this.ha);this.trigger.addEventListener("focus",this.activate);this.trigger.addEventListener("blur",this.deactivate); this.container&&this.container.addEventListener("mouseleave",this.deactivate)}; fp.prototype.Ca=function(){A.prototype.Ca.call(this);var a=this.getElement().firstChild;if(a){var b=window.innerHeight,c=document.documentElement.clientWidth,e=a.getBoundingClientRect();if(this.isRtl)0>=e.x&&(a.style.left=a.offsetWidth+10+"px");else if(e.right>=c){var f=Number(a.style.left.replace("px",""));a.style.left=Math.floor(f-(e.right-c))+"px"}e.bottom>=b&&(a.style.top=a.offsetHeight/2*-1+"px")}}; fp.prototype.we=function(){hp(this)}; function hp(a){a.trigger.removeEventListener("mouseenter",a.activate);a.trigger.removeEventListener("mouseleave",a.ha);a.trigger.removeEventListener("focus",a.activate);a.trigger.removeEventListener("blur",a.deactivate);a.container&&a.container.removeEventListener("mouseleave",a.deactivate)} function gp(a,b){if(b.scrollWidth>b.getBoundingClientRect().width)return!0;b=u(b.children);for(var c=b.next();!c.done;c=b.next())if(gp(a,c.value))return!0;return!1} var ip=zk("sc.shared.MaterialTooltip");function jp(a){return window.matchMedia("(max-width: "+a+")").matches} function kp(){return jp("37.5rem")} ;function lp(){this.ha={};this.o=0} p=lp.prototype;p.format=function(a){var b=Kh("SafeHtmlFormatter:");a=Kh(a).replace(new RegExp("\\{"+b+"[\\w&#;]+\\}","g"),Jb(this.zC,this,[]));return Xf(a,null)}; p.zC=function(a,b){a=this.ha[b];if(!a)return b;b="";a.Wc&&(b+="<"+a.Wc+a.attributes+">");a.html&&(b+=a.html);a.Pc&&(b+="");return b}; p.Wc=function(a,b){Yf(a);return mp(this,{Wc:a,attributes:dg(b)})}; p.Pc=function(a){Yf(a);return mp(this,{Pc:a})}; p.text=function(a){return mp(this,{html:Kh(a)})}; p.safeHtml=function(a){return mp(this,{html:Vf(a).toString()})}; function mp(a,b){a.o++;var c="{SafeHtmlFormatter:"+a.o+"_"+Oh()+"}";a.ha[Kh(c)]=b;return c} ;function np(a){this.ha=a;this.ka={};(a=Qg().hc)&&(this.ka.helpcenter=a)} p=np.prototype;p.dj=function(a){this.na=a;return this}; p.onError=function(a){this.ma=a;return this}; p.gs=function(a){this.oa=a;return this}; p.oh=function(a,b){this.ka[a]=b;return this}; p.start=function(){var a=this,b=new XMLHttpRequest;b.open("POST",Qg().upload_hostname+"/upload");b.withCredentials=!0;b.addEventListener("load",function(){try{var c=JSON.parse(b.responseText);op(a,c.sessionStatus.externalFieldTransfers[0].formPostInfo.url)}catch(e){pp(a)}}); b.addEventListener("error",function(){return pp(a)}); b.addEventListener("abort",function(){return pp(a)}); b.send(qp(this));return this}; function op(a,b){var c=new XMLHttpRequest;c.open("POST",b);c.withCredentials=!0;c.addEventListener("load",function(){try{var e=JSON.parse(c.responseText).sessionStatus.additionalInfo["uploader_service.GoogleRupioAdditionalInfo"].completionInfo.customerSpecificInfo;a.o=e.cns_filename;a.ta=e.document_id;a.na&&a.na()}catch(f){pp(a)}}); c.upload.addEventListener("progress",function(e){a.oa&&a.oa(e.lengthComputable?Math.max(e.loaded-(e.total-a.ha.size),0):0)}); c.addEventListener("error",function(){return pp(a)}); c.addEventListener("abort",function(){return pp(a)}); b=new FormData;b.append("Filedata",a.ha,a.ha.name);c.send(b)} function pp(a){a.ma&&a.ma()} function qp(a){var b=[{external:{name:"file",filename:a.ha.name,formPost:{}}}],c;for(c in a.ka)b.push({inlined:{name:c,content:a.ka[c],contentType:"text/plain"}});return JSON.stringify({protocolVersion:"0.8",createSessionRequest:{fields:b}})} p.dA=function(){return this.o}; p.Nh=function(){return this.ta}; np.prototype.getDocumentId=np.prototype.Nh;np.prototype.getCnsFilename=np.prototype.dA;np.prototype.start=np.prototype.start;np.prototype.setMetadata=np.prototype.oh;np.prototype.onProgress=np.prototype.gs;np.prototype.onError=np.prototype.onError;np.prototype.onSuccess=np.prototype.dj;var rp={"alumnus_expert.svg":$e('\n'),"bronze_expert.svg":$e('\n'), "community_specialist.svg":$e('\n'),"diamond_expert.svg":$e('\n'), "error_computer.svg":$e('\n'), "gold_expert.svg":$e('\n'), "google_employee.svg":$e('\n'),"legacy_expert.svg":$e('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n'), "logo_googleg_48dp.svg":$e('\n \n \n \n \n \n\n'), "page_desktop.svg":$e('\n'), "page_desktop_dark.svg":$e('\n'), "platinum_expert.svg":$e('\n'), "play.svg":$e('\n'),"search.svg":$e('\n'), "silver_expert.svg":$e('\n'), "stop.svg":$e('\n'),"workflow.svg":$e('\n'), "workflow_dark.svg":$e('\n')};function sp(a){A.call(this,"sc.shared.TsAssetInterop");this.o=a} y(sp,A);sp.prototype.content=function(){vk(rp[this.o])};var tp=new Map([[0,"workflow.svg"],[1,"legacy_expert.svg"],[2,"alumnus_expert.svg"],[3,"bronze_expert.svg"],[4,"silver_expert.svg"],[5,"gold_expert.svg"],[6,"platinum_expert.svg"],[7,"diamond_expert.svg"],[8,"community_specialist.svg"],[9,"google_employee.svg"],[10,"play.svg"],[11,"stop.svg"]]),up=new Map([[0,"workflow_dark.svg"]]); function vp(a){var b=void 0===a.Ab?!1:a.Ab,c=void 0===a.cr?!1:a.cr,e=a.icon,f=void 0===a.isDarkMode?!1:a.isDarkMode,h=void 0===a.size?24:a.size;a=a.title;A.call(this,"sc.icon.Icon");f=f&&up.has(e)?up.get(e):tp.get(e);if(void 0===f)throw Error("The icon asset "+e+" is undefined.");this.Ab=b;this.cr=c;this.size=h;this.o=new sp(f);this.title=a} y(vp,A);vp.prototype.content=function(){var a=this;this.element("div","class",{root:!0,baseline:this.Ab,flip:this.cr},"title",this.title,"style",{height:this.size+"px",width:this.size+"px"},function(){a.o.render()})};function wp(a){z.call(this,a,-1,xp)} y(wp,z);var xp=[1,2,3,4];function yp(a){z.call(this,a,-1,zp)} y(yp,z);var zp=[2];function Ap(a){z.call(this,a,31,Bp)} y(Ap,z);Ap.prototype.Pb=ma(4);Ap.prototype.Mc=ma(5);var Bp=[3,20,27];function Cp(a){if(!a)return"";a=a.split("#")[0].split("?")[0];a=a.toLowerCase();0==a.indexOf("//")&&(a=window.location.protocol+a);/^[\w\-]*:\/\//.test(a)||(a=window.location.href);var b=a.substring(a.indexOf("://")+3),c=b.indexOf("/");-1!=c&&(b=b.substring(0,c));c=a.substring(0,a.indexOf("://"));if(!c)throw Error("URI is missing protocol: "+a);if("http"!==c&&"https"!==c&&"chrome-extension"!==c&&"moz-extension"!==c&&"file"!==c&&"android-app"!==c&&"chrome-search"!==c&&"chrome-untrusted"!==c&&"chrome"!== c&&"app"!==c&&"devtools"!==c)throw Error("Invalid URI scheme in origin: "+c);a="";var e=b.indexOf(":");if(-1!=e){var f=b.substring(e+1);b=b.substring(0,e);if("http"===c&&"80"!==f||"https"===c&&"443"!==f)a=":"+f}return c+"://"+b+a} ;function Dp(){function a(){f[0]=1732584193;f[1]=4023233417;f[2]=2562383102;f[3]=271733878;f[4]=3285377520;t=r=0} function b(w){for(var x=k,E=0;64>E;E+=4)x[E/4]=w[E]<<24|w[E+1]<<16|w[E+2]<<8|w[E+3];for(E=16;80>E;E++)w=x[E-3]^x[E-8]^x[E-14]^x[E-16],x[E]=(w<<1|w>>>31)&4294967295;w=f[0];var pa=f[1],qa=f[2],sa=f[3],va=f[4];for(E=0;80>E;E++){if(40>E)if(20>E){var za=sa^pa&(qa^sa);var Ca=1518500249}else za=pa^qa^sa,Ca=1859775393;else 60>E?(za=pa&qa|sa&(pa|qa),Ca=2400959708):(za=pa^qa^sa,Ca=3395469782);za=((w<<5|w>>>27)&4294967295)+za+va+Ca+x[E]&4294967295;va=sa;sa=qa;qa=(pa<<30|pa>>>2)&4294967295;pa=w;w=za}f[0]=f[0]+ w&4294967295;f[1]=f[1]+pa&4294967295;f[2]=f[2]+qa&4294967295;f[3]=f[3]+sa&4294967295;f[4]=f[4]+va&4294967295} function c(w,x){if("string"===typeof w){w=unescape(encodeURIComponent(w));for(var E=[],pa=0,qa=w.length;par?c(l,56-r):c(l,64-(r-56));for(var E=63;56<=E;E--)h[E]=x&255,x>>>=8;b(h);for(E=x=0;5>E;E++)for(var pa=24;0<=pa;pa-=8)w[x++]=f[E]>>pa&255;return w} for(var f=[],h=[],k=[],l=[128],n=1;64>n;++n)l[n]=0;var r,t;a();return{reset:a,update:c,digest:e,digestString:function(){for(var w=e(),x="",E=0;El?"":0==l?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*l)).toUTCString();this.o.cookie=a+"="+b+c+k+l+e+(null!=f?";samesite="+ f:"")}; p.get=function(a,b){for(var c=a+"=",e=(this.o.cookie||"").split(";"),f=0,h;fa.xd()?"https://www.google.com/log?format=json&hasfast=true":"https://play.google.com/log?format=json&hasfast=true");return a.Ga} p.dispatch=function(a){if(a instanceof Ap)this.log(a);else{var b=new Ap;a=a.Hb();b=Vd(b,8,a);this.log(b)}}; function qq(a,b){b?(a.ka||(a.ka=new yp),b=b.Hb(),Vd(a.ka,4,b)):a.ka&&Vd(a.ka,4,void 0)} function rq(a){a.Ua=a.Ld} function sq(a,b){a.na=new Np(1>b?1:b);nn(a.o,a.na.Sa())} p.log=function(a){a=a.clone();var b=this.Ee++;Vd(a,21,b);this.Ba&&Vd(a,26,this.Ba);if(!Pd(a,1)){b=a;var c=Date.now().toString();Vd(b,1,c)}Qd(a,15)||Vd(a,15,60*(new Date).getTimezoneOffset());this.ka&&(b=this.ka.clone(),de(a,16,b));for(;1E3<=this.ha.length;)this.ha.shift(),++this.va;this.ha.push(a);this.dispatchEvent(new tq(a));this.Ha||this.o.enabled||this.o.start()}; p.flush=function(a,b){var c=this;if(0===this.ha.length)a&&a();else if(this.Ma)uq(this);else{var e=Date.now();if(this.mc>e&&this.RaE||401===E||0===E)c.ha=pa.concat(c.ha),c.Ha||c.o.enabled||c.o.start();b&&b("net-send-failed",E)},x=function(){c.Qa?c.Qa.send(r,t,w):c.yc(r,t,w)}; n?n.then(function(E){r.Ks["Content-Encoding"]="gzip";r.Ks["Content-Type"]="application/binary";r.body=E;r.ez=2;x()},function(){x()}):x()}}}}; p.ar=function(){this.Aa||(this.Ua&&uq(this),this.Da&&vq(this),this.flush())}; function uq(a){wq(a,32,10,function(b,c){b=vn(b,"format","json");b=window.navigator.sendBeacon(b,c.Hb());a.Ma&&!b&&(a.Ma=!1);return b})} function vq(a){wq(a,6,5,function(b,c){c=c.Hb();for(var e=[],f=0,h=0;h>=8);e[f++]=k}c=pd(e,3);b=un(b,"format","base64json","p",c);if(15360 .heading").getAttribute("data-search-dym-tracking-id"),a.Is(f,b,h,e,c)):(e=""!==Og("symptom"),a.ij(f,h,b.getAttribute("data-search-rank"),b.getAttribute("data-search-result-id"),b.getAttribute("data-search-request-id"),b.getAttribute("data-search-url"), b.getAttribute("data-search-flow"),b.getAttribute("data-search-ctx"),e,c))}} function Eq(a,b){function c(){h&&k&&((window.sc_delayLocationHandler=e)?e(f):gh(f))} if("_blank"==a.target||b.shiftKey||b.ctrlKey||b.metaKey)return null;var e=window.sc_delayLocationHandler,f,h=!1,k=!1;window.sc_delayLocationHandler=function(){h=!0;c()}; return function(l){k=!0;f=l;c()}} p.ij=function(a,b,c,e,f,h,k,l,n,r){b=Fq(n?"suggestion_clicked":"search_results_clicked",b,k,l);Bq(b,"q",a);Bq(b,"clickRank",c);Bq(b,"resultId",e);Bq(b,"requestId",f);Bq(b,"shownContentList",h);Gq(this,b,h,r)}; p.Is=function(a,b,c,e,f){c=Fq("sugesstion_clicked",c);Bq(c,"q",a);e&&Bq(c,"dymTrackingId",e);Gq(this,c,b,f)}; p.Hs=function(a,b,c){b=Fq("autocomplete_search_query",Qg().visit_id,b);Bq(b,"q",a);Gq(this,b,"",c)}; p.Fs=function(a,b,c,e){c=Fq("autocomplete_results_clicked",Qg().visit_id,c);Bq(c,"q",a);Bq(c,"shownContentList",b);Gq(this,c,b,e)}; p.Gs=function(a,b){b=Fq("autocomplete_click_impressions",Qg().visit_id,b);Bq(b,"shownContentList",a.join("|"));Hq(this,b,"sc_nullFunction")}; function Gq(a,b,c,e){e&&e instanceof Function?(window.sc_searchMetricsLinkCallback=function(){e(c)},Hq(a,b,"sc_searchMetricsLinkCallback")):Hq(a,b,"sc_nullFunction")} p.Ov=function(a){var b=Fq("article_help_link_clicked",Qg().visit_id,"help");Bq(b,"url",a);Hq(this,b,"sc_nullFunction")}; p.Uv=function(a){var b=Fq("opened_to_article",Qg().visit_id,"help");Bq(b,"shownContentList",a);Hq(this,b,"sc_nullFunction")}; p.Nm=function(a,b,c,e,f,h,k,l){e=e||Og("query")||Og("q");h=h||""!==Og("symptom");a=Fq(h?"shown_suggestions":"shown_search_results",a,f,k);Bq(a,"q",e);Bq(a,"requestId",b);Bq(a,"shownContentList",c.join("|"));l&&Bq(a,"dymTrackingId",l);Hq(this,a,"sc_nullFunction")}; function Iq(a,b,c){b=Fq(b,Qg().visit_id,"help");c&&Bq(b,"contactMode",c);Hq(a,b,"sc_nullFunction")} p.Rv=function(){Iq(this,"nd4c_requested")}; p.Qv=function(){Iq(this,"shown_contact_us","nd4c_email")}; p.Pv=function(){Iq(this,"contact_us_clicked","nd4c_email")}; p.Tv=function(){Iq(this,"shown_contact_us","nd4c_phone")}; p.Sv=function(){Iq(this,"contact_us_clicked","nd4c_phone")}; p.jj=function(a,b,c,e,f,h){a=Fq(void 0===h?"suggestion_clicked":h,a);Bq(a,"requestId",b);Bq(a,"resultId",c);void 0!==e&&Bq(a,"clickRank",e);void 0!==f&&Bq(a,"shownContentList",f);Hq(this,a,"sc_nullFunction")}; function Fq(a,b,c,e){a=Bq(Bq(Bq(Bq(Bq(Bq(Bq(new Aq,"flow",c||"support-content"),"gfSessionId",b),"hcName",Qg().hc),"locale",Qg().lang),"authuser",Qg().au),"useAnonymousMetrics","false"),"userAction",a);(e=e||Jq())&&Bq(a,"productSpecificContext",e);"help"===c&&Bq(a,"useInappHelpPanel","true");(c=th("productEscalationsId"))&&Bq(a,"productId",c);return a} function Jq(){var a=Qg().query_params.find(function(b){return"ec"==b.key}); return a?a.value:""} function Hq(a,b,c){if(a.o||"true"===th("initializeMojoMetrics")){Bq(b,"callback",c);a=Vh(document,"SCRIPT");a.onerror=window[c];var e=Object.fromEntries(b.ka.entries());c=Object.fromEntries(b.o.entries());b=hf(b.ha,e);b=gf(b).toString();b=mf.exec(b);e=b[3]||"";c=lf(b[1]+nf("?",b[2]||"",c)+nf("#",e,void 0));qg(a,c);document.body.appendChild(a)}} Cq.prototype.reportSearchResultsFeatureClick=Cq.prototype.jj;Cq.prototype.reportND4CTfnClicked=Cq.prototype.Sv;Cq.prototype.reportND4CTfnDisplayed=Cq.prototype.Tv;Cq.prototype.reportND4CEmailClicked=Cq.prototype.Pv;Cq.prototype.reportND4CEmailDisplayed=Cq.prototype.Qv;Cq.prototype.reportND4CRequested=Cq.prototype.Rv;Cq.prototype.reportImpressions=Cq.prototype.Nm;Cq.prototype.reportOpenedToArticle=Cq.prototype.Uv;Cq.prototype.reportArticleHelpLinkClicked=Cq.prototype.Ov; Cq.prototype.reportAutocompleteImpressions=Cq.prototype.Gs;Cq.prototype.reportAutocompleteClick=Cq.prototype.Fs;Cq.prototype.reportAutocompleteSearch=Cq.prototype.Hs;Cq.prototype.reportSpellingClick=Cq.prototype.Is;Cq.prototype.reportClick=Cq.prototype.ij;Cq.prototype.setUpMojoReportingForSpelling=Cq.prototype.ow;Cq.prototype.setUpMojoReportingForSearchResults=Cq.prototype.nw;var Kq;Mb("hcfe.MojoMetrics",Cq); window.sc_initMojoMetrics=function(){Kq||(Kq=new Cq,Kq.nw(),Kq.ow(),window.sc_trackSearchResultImpressions=window.sc_trackSearchResultEnabledRceTracking?window.sc_nullFunction:Kq.Nm.bind(Kq))};function Lq(){A.call(this,"sc.shared.material_dialog.DialogContent");this.o=new Yo} y(Lq,A);Lq.prototype.content=function(a){var b=this,c=a.title,e=a.content,f=a.Do,h=a.rb;this.element("div","class","root",function(){c&&b.element("h1","class","title",c);e&&b.element("div",e);f&&b.element("div",f);h&&b.element("div","class","loading-overlay",function(){b.o.render()})})};var Mq={vc:7,wc:7,Ul:!0,fn:!0};function Nq(a){var b=this,c=a.content,e=void 0===a.scope?document.body:a.scope,f=a.mb,h=te(a,["content","scope","ariaLabel"]);this.ha=new Map;this.scope=e;this.o=new Fo(Object.assign(Object.assign(Object.assign({},Mq),h),{hb:function(){var k;if(b.Hc)for(var l=u(b.ha),n=l.next();!n.done;n=l.next()){var r=u(n.value);n=r.next().value;(r=r.next().value)||n.removeAttribute("aria-hidden")}null===(k=h.hb)||void 0===k?void 0:k.call(h)}, content:function(){uk("div","role","dialog","aria-modal","true","aria-label",f,c)}}))} Nq.prototype.initialize=function(){var a=this;if(this.Hc)return this;this.Hc=document.createElement("div");this.Hc.setAttribute("aria-live","polite");this.scope.appendChild(this.Hc);qk(this.Hc,function(){a.o.render()}); return this}; Nq.prototype.Xa=function(){this.Hc&&(this.o.close(),this.Hc.remove(),this.Hc=void 0)}; Nq.prototype.open=function(a){a=void 0===a?{}:a;this.initialize();if(this.Hc)for(var b=this.Hc;b&&b!==document.body;){var c=b,e=Oq(c);if(e){e=u(e.childNodes);for(var f=e.next();!f.done;f=e.next())f=f.value,c!==f&&Bb(f)&&1===f.nodeType&&(this.ha.set(f,"true"===f.getAttribute("aria-hidden")),f.setAttribute("aria-hidden","true"))}b=Oq(b)}this.o.open(Object.assign({Kb:!0},a))}; Nq.prototype.close=function(){this.o.close()}; function Oq(a){return a.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&a.host&&a.mode?a.host:a.parentNode} ;function Pq(a){a=a.wb;A.call(this,"sc.tailwind.shared.rich_text_editor.attachment.FailedOverlay");this.wb=a} y(Pq,A);Pq.prototype.content=function(){var a=this;this.element("button","class","root","onclick",function(){return void a.wb()},"Failed to attach file, click here to try again.")};function Qq(){A.call(this,"sc.tailwind.shared.rich_text_editor.attachment.LoadingOverlay");this.o=new Yo} y(Qq,A);Qq.prototype.content=function(){var a=this;this.element("div","class","root",function(){a.o.render()})};function Rq(a){a=a.hd;A.call(this,"sc.tailwind.shared.rich_text_editor.attachment.RemoveButton");this.o=new Rk({icon:"gm/close",size:16,Ab:!0});this.overlay=new bl;this.hd=a} y(Rq,A);Rq.prototype.content=function(){var a=this;this.element("div","class","root",function(){a.element("button","class","remove-button","aria-label","Remove attachment","onclick",function(){return void a.hd()},"onkeydown",function(b){"Backspace"!==b.key&&"Delete"!==b.key||a.hd()},function(){a.o.render(); a.overlay.render()})})};function Sq(a){var b=a.Ns,c=a.hd;a=a.js;A.call(this,"sc.tailwind.shared.rich_text_editor.attachment.InlinedAttachment");this.na=new Qq;this.o=this.rb=!1;this.Ns=b;this.ta=new Rq({hd:c});this.ma=new Pq({wb:a})} y(Sq,A);Sq.prototype.Ec=function(a){this.rb!==a&&(this.rb=a,this.Ca())}; Sq.prototype.ha=function(a){this.o!==a&&(this.o=a,this.Ca())}; Sq.prototype.content=function(){var a=this;this.element("div","class","root",function(){og(a.element("img","class","image"),a.Ns);a.ta.render();a.rb?a.na.render():a.o&&a.ma.render()})};function Tq(a){var b=a.fileName,c=a.mimeType,e=a.hd;a=a.js;A.call(this,"sc.tailwind.shared.rich_text_editor.attachment.NonInlinedAttachment");this.na=new Qq;this.o=this.rb=!1;this.ta=new Rq({hd:e});e=b.lastIndexOf(".");b=-1===e?{base:b,extension:""}:{base:b.substring(0,e),extension:b.substring(e+1)};e=b.extension;this.base=b.base;this.extension=e;this.ua=xf("https://drive-thirdparty.googleusercontent.com/32/type/"+c);this.ma=new Pq({wb:a})} y(Tq,A);Tq.prototype.Ec=function(a){this.rb!==a&&(this.rb=a,this.Ca())}; Tq.prototype.ha=function(a){this.o!==a&&(this.o=a,this.Ca())}; Tq.prototype.content=function(){var a=this;this.element("div","class",{root:!0,"root-failed":this.o},function(){a.element("div","class","filename",a.base);a.element("div","class","extension",function(){og(a.element("img","class","icon"),a.ua);a.element("span",a.extension)}); a.ta.render();a.rb?a.na.render():a.o&&a.ma.render()})};function Uq(){this.documentId=this.mimeType=this.Of="";this.ka=this.ha=this.Ve=!1} function Vq(a){var b=new Uq;b.Of=a.name;b.mimeType=a.type;b.file=a;Wq(b);return b} function Xq(a){var b=new Uq;b.Of=a.originalFilename;b.mimeType=a.mimeType;b.Ac=a.Ac;b.documentId=a.documentId;Wq(b);return b} function Wq(a){a.dom=document.createElement("div");a.eh()?(a.dom.contentEditable="false",a.dom.style.display="inline-block",a.dom.style.maxWidth="100%",a.component=new Sq({Ns:sf(a.file),hd:function(){return void a.remove()}, js:function(){return void a.upload()}})):a.component=new Tq({fileName:a.Of, mimeType:a.mimeType,hd:function(){return void a.remove()}, js:function(){return void a.upload()}}); qk(a.dom,function(){a.component.render()})} p=Uq.prototype;p.render=function(){var a;null===(a=this.component)||void 0===a?void 0:a.render()}; p.eh=function(){if(!this.file)return!1;switch(this.mimeType){case "image/gif":case "image/jpeg":case "image/png":return!0;default:return!1}}; p.upload=function(){var a=this;this.Ec(!0);Yq(this,!1);this.o&&this.o();this.fileUpload=(new np(this.file)).dj(function(){a.Ec(!1);a.Ac=a.fileUpload.o;a.documentId=a.fileUpload.Nh();a.documentId||(a.documentId=Date.now().toString(16)+Math.floor(65536*Math.random()).toString(16));a.dom&&(a.dom.dataset.richTextEditorAttachmentDocumentId=a.documentId);a.o&&a.o()}).onError(function(){Yq(a,!0); a.Ec(!1);a.o&&a.o()}).oh("SupportContentForums","TailwindPost").start()}; p.remove=function(){this.Ve||(this.dom&&this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.Ve=!0,this.ma&&this.ma())}; p.Gm=function(a){this.o=a}; p.hd=function(a){this.ma=a}; p.Tj=function(a){a.appendChild(this.dom)}; p.jk=function(){return this.dom}; p.rb=function(){return this.ka}; p.hasError=function(){return this.ha}; p.Wi=function(){return{originalFilename:this.Of,mimeType:this.mimeType,Ac:this.Ac,documentId:this.documentId,deleted:this.Ve}}; p.Ec=function(a){var b;this.ka!==a&&(this.ka=a,null===(b=this.component)||void 0===b?void 0:b.Ec(a))}; function Yq(a,b){var c;a.ha!==b&&(a.ha=b,null===(c=a.component)||void 0===c?void 0:c.ha(b))} Uq.prototype.getUploadedFile=Uq.prototype.Wi;Uq.prototype.hasError=Uq.prototype.hasError;Uq.prototype.isLoading=Uq.prototype.rb;Uq.prototype.getDom=Uq.prototype.jk;Uq.prototype.appendDomTo=Uq.prototype.Tj;Uq.prototype.onRemove=Uq.prototype.hd;Uq.prototype.onStateChange=Uq.prototype.Gm;Uq.prototype.remove=Uq.prototype.remove;Uq.prototype.upload=Uq.prototype.upload;Uq.prototype.isInlinableImage=Uq.prototype.eh;Uq.fromUploadedFile=Xq;Uq.fromLocalFile=Vq;function Zq(a,b,c){this.o=a;this.ha=b;this.ka=void 0===c?!0:c} Zq.prototype.toString=function(){return this.o}; var $q=new Zq("attachFile",!1,!1),ar=new Zq("bold",!0),br=new Zq("italic",!0),cr=new Zq("underline",!0),dr=new Zq("code",!1),er=new Zq("insertUnorderedList",!0),fr=new Zq("insertOrderedList",!0),gr=new Zq("outdent",!0,!1),hr=new Zq("indent",!0,!1),ir=new Zq("insertLink",!1),jr=new Zq("removeFormat",!0,!1);var kr={Bt:{1E3:{other:"0K"},1E4:{other:"00K"},1E5:{other:"000K"},1E6:{other:"0M"},1E7:{other:"00M"},1E8:{other:"000M"},1E9:{other:"0B"},1E10:{other:"00B"},1E11:{other:"000B"},1E12:{other:"0T"},1E13:{other:"00T"},1E14:{other:"000T"}},bx:{1E3:{other:"0 thousand"},1E4:{other:"00 thousand"},1E5:{other:"000 thousand"},1E6:{other:"0 million"},1E7:{other:"00 million"},1E8:{other:"000 million"},1E9:{other:"0 billion"},1E10:{other:"00 billion"},1E11:{other:"000 billion"},1E12:{other:"0 trillion"},1E13:{other:"00 trillion"}, 1E14:{other:"000 trillion"}}},lr=kr;lr=kr;var mr={AED:[2,"dh","\u062f.\u0625."],ALL:[0,"Lek","Lek"],AUD:[2,"$","AU$"],BDT:[2,"\u09f3","Tk"],BGN:[2,"lev","lev"],BRL:[2,"R$","R$"],CAD:[2,"$","C$"],CDF:[2,"FrCD","CDF"],CHF:[2,"CHF","CHF"],CLP:[0,"$","CL$"],CNY:[2,"\u00a5","RMB\u00a5"],COP:[32,"$","COL$"],CRC:[0,"\u20a1","CR\u20a1"],CZK:[50,"K\u010d","K\u010d"],DKK:[50,"kr.","kr."],DOP:[2,"RD$","RD$"],EGP:[2,"\u00a3","LE"],ETB:[2,"Birr","Birr"],EUR:[2,"\u20ac","\u20ac"],GBP:[2,"\u00a3","GB\u00a3"],HKD:[2,"$","HK$"],HRK:[2,"kn","kn"],HUF:[34, "Ft","Ft"],IDR:[0,"Rp","Rp"],ILS:[34,"\u20aa","IL\u20aa"],INR:[2,"\u20b9","Rs"],IRR:[0,"Rial","IRR"],ISK:[0,"kr","kr"],JMD:[2,"$","JA$"],JPY:[0,"\u00a5","JP\u00a5"],KRW:[0,"\u20a9","KR\u20a9"],LKR:[2,"Rs","SLRs"],LTL:[2,"Lt","Lt"],MNT:[0,"\u20ae","MN\u20ae"],MVR:[2,"Rf","MVR"],MXN:[2,"$","Mex$"],MYR:[2,"RM","RM"],NOK:[50,"kr","NOkr"],PAB:[2,"B/.","B/."],PEN:[2,"S/.","S/."],PHP:[2,"\u20b1","PHP"],PKR:[0,"Rs","PKRs."],PLN:[50,"z\u0142","z\u0142"],RON:[2,"RON","RON"],RSD:[0,"din","RSD"],RUB:[50,"\u20bd", "RUB"],SAR:[2,"Rial","Rial"],SEK:[50,"kr","kr"],SGD:[2,"$","S$"],THB:[2,"\u0e3f","THB"],TRY:[2,"\u20ba","TRY"],TWD:[2,"$","NT$"],TZS:[0,"TSh","TSh"],UAH:[2,"\u0433\u0440\u043d.","UAH"],USD:[2,"$","US$"],UYU:[2,"$","$U"],VND:[48,"\u20ab","VN\u20ab"],YER:[0,"Rial","Rial"],ZAR:[2,"R","ZAR"]};var nr={Et:".",gq:",",Nt:"%",kq:"0",ky:"+",Mt:"-",Ft:"E",Ot:"\u2030",hq:"\u221e",ay:"NaN",Dt:"#,##0.###",qy:"#E0",jy:"#,##0%",ex:"\u00a4#,##0.00",fq:"USD"},or=nr;or=nr;function pr(a){this.ya=40;this.ka=1;this.Da=0;this.ha=3;this.Ba=this.ma=0;this.Ha=!1;this.Aa=this.ua="";this.oa=or.Mt;this.va="";this.o=1;this.ta=!1;this.na=[];this.Ea=this.Ga=!1;this.wa=0;if("number"===typeof a)switch(a){case 1:qr(this,or.Dt);break;case 2:qr(this,or.qy);break;case 3:qr(this,or.jy);break;case 4:a=or.ex;var b=["0"],c=mr[or.fq];if(c){c=c[0]&7;if(0f&&n++;break;case "0":if(0f&&n++;break;case ",":0h+k||1>a.Ba)throw Error('Malformed exponential pattern "'+b+'"');t=!1;break;default:c[0]--,t=!1}0==k&&0f&&0h+k)||0==n)throw Error('Malformed pattern "'+b+'"');l=h+k+l;a.ha=0<=f?l-f:0;0<=f&&(a.ma=h+k-f,0>a.ma&&(a.ma=0));a.ka=(0<=f?f:l)-h;a.Ea&&(a.ya=h+a.ka,0==a.ha&&0==a.ka&&(a.ka=1));a.na.push(Math.max(0,n));a.Ga= 0==f||f==l;e=c[0]-e;a.Aa=sr(a,b,c);c[0]this.oa.length?e=!1:this.ua.length=qa)E+=qa,l=!0;else if(pa==t.charAt(0)){if(h||k)break;E+=".";h=!0}else if(pa==w.charAt(0)&&("\u00a0"!=w.charAt(0)||b[0]+1this.ha)throw Error("Min value must be less than max value");if(isNaN(a))return or.ay;var b=[];var c=a,e=a;if(0==this.wa)var f=ur;else c=Math.abs(c),e=Math.abs(e),f=vr(this,1>=c?0:wr(c)).Lq,e=xr(e,-f),yr(this,e),c=xr(c,-f),c=yr(this,c),f=vr(this,f+wr(c.intValue));a=xr(a,-f.Lq);(c=0>a||0==a&&0>1/a)?f.Tr?b.push(f.Tr):(b.push(f.prefix),b.push(this.oa)):(b.push(f.prefix),b.push(this.ua));if(isFinite(a))if(a=a*(c?-1:1)*this.o,this.Ea)if(e=a,0==e)zr(this,e,this.ka, b),Ar(this,0,b);else{var h=Math.floor(Math.log(e)/Math.log(10)+2E-15);e=xr(e,-h);var k=this.ka;1this.ka?(k=h%this.ya,0>k&&(k=this.ya+k),e=xr(e,k),h-=k,k=1):1>this.ka?(h++,e=xr(e,-1)):(h-=this.ka-1,e=xr(e,this.ka-1));zr(this,e,k,b);Ar(this,h,b)}else zr(this,a,this.ka,b);else b.push(or.hq);c?f.Ur?b.push(f.Ur):(isFinite(a)&&b.push(f.suffix),b.push(this.va)):(isFinite(a)&&b.push(f.suffix),b.push(this.Aa));return b.join("")}; function yr(a,b){var c=xr(b,a.ha);0a.ha)throw Error("Min value must be less than max value");e||(e=[]);b=yr(a,b);var f=b.intValue,h=b.Yz,k=0h.length&&(h="1"+Nh("0",a.ha-h.length)+h);for(a=h.length;"0"==h.charAt(a-1)&&a>b+1;)a--;for(b=1;bb?(b=-b,c.push(or.Mt)):a.Ha&&c.push(or.ky);b=""+b;for(var e=or.kq,f=b.length;fa)return a-48;var b=or.kq.charCodeAt(0);return b<=a&&ab)return ur;b=Math.min(14,b);var c=a[xr(1,b)];for(--b;!c&&3<=b;)c=a[xr(1,b)],b--;if(!c)return ur;c=c.other;var e=a="",f=c.indexOf(";");0<=f&&(c=c.substring(0,f),f=c.substring(f+1))&&(e=/([^0]*)(0+)(.*)/.exec(f),a=e[1],e=e[3]);return c&&"0"!=c?(c=/([^0]*)(0+)(.*)/.exec(c))?{Lq:b+1-(c[2].length-1),Tr:a,Ur:e,prefix:c[1],suffix:c[3]}:ur:ur} function wr(a){if(!isFinite(a))return 0=r)&&(e=ts(),(f=e.focusNode)&&0!==(f.compareDocumentPosition(a.Wa.content)&Node.DOCUMENT_POSITION_CONTAINS))){for(var t=0;f&&f!==a.o;){if(f.nodeType===Node.TEXT_NODE){var w=f===e.focusNode?e.focusOffset:null!==(k=null===(h=f.textContent)||void 0===h?void 0:h.length)&&void 0!==k?k:0,x=Math.min(r,w);x<(null!==(n=null===(l=f.textContent)|| void 0===l?void 0:l.length)&&void 0!==n?n:0)&&(t=w-x);r-=x;if(!r)break}f=ns(f)}h=document.createRange();h.setStart(f,t);h.setEnd(e.focusNode,e.focusOffset);h.deleteContents();e.removeAllRanges();e.addRange(h)}}Mk(a.model,0)},function(){Uj=Vj.lastChild}),a.Wa=null!==(c=a.Wa)&&void 0!==c?c:new zs(a.o)); a.element("div","class","toolbar",function(){a.ua.render({Wa:a.Wa})}); a.ih.render();a.model.rk()&&a.ma.render()}); ht(this);this.ha||(this.na=(new this.qq({model:this.model,Wa:this.Wa})).initialize(),this.ta=(new this.Nr({model:this.model,Wa:this.Wa,ih:this.ih})).initialize(),this.va=(new this.Aq({model:this.model,Wa:this.Wa})).initialize(),this.ya=(new this.Mr({model:this.model,Wa:this.Wa})).initialize(),this.ha=!0);if(this.vm){var b=this.vm;delete this.vm;this.qj(b)}}; p.we=function(){var a,b,c,e;this.ha&&(null===(a=this.na)||void 0===a?void 0:a.Xa(),null===(b=this.ta)||void 0===b?void 0:b.Xa(),null===(c=this.va)||void 0===c?void 0:c.Xa(),null===(e=this.ya)||void 0===e?void 0:e.Xa(),this.na=void 0,this.ha=!1)}; p.focus=function(){if(this.o){this.o.focus();var a=document.createRange();a.selectNodeContents(this.o.lastChild||this.o);a.collapse(!1);var b=ts();b.removeAllRanges();b.addRange(a)}}; p.Rl=ma(7);p.rg=function(){if(!this.o)return"";this.o.normalize();ks(this.o);return qs(this.o).innerHTML}; p.Ja=function(){var a;if(!this.o)return"";this.o.normalize();ks(this.o);return null!==(a=qs(this.o).textContent)&&void 0!==a?a:""}; p.nb=function(a){var b=document.createElement("div");b.innerText=a;this.qj(b)}; p.qj=function(a){if(this.o){if("string"===typeof a){var b=document.createElement("div");kg(b,Ej(a));a=b}b=this.o;b.textContent="";a=u(a.childNodes);for(var c=a.next();!c.done;c=a.next())b.appendChild(c.value.cloneNode(!0));this.o.normalize();ks(this.o);Mk(this.model,0)}}; p.clear=function(){this.o&&(this.o.textContent="")}; p.Ol=ma(8);p.Fa=function(a){this.model.Fa(0,a);return this}; p.Ed=function(){return this.model.Ed()}; p.de=function(a){this.model.de(a)}; function ht(a){var b,c,e;var f=a.model;var h=null!==(e=null===(c=null===(b=a.o)||void 0===b?void 0:b.textContent)||void 0===c?void 0:c.length)&&void 0!==e?e:0;f.hintText?f=f.hintText:(h=Math.max(0,f.minLength-h),f=0>>0),x=[["js_request_id",w],["rr",1],["lc",1]],E=Mu();0]+)>)/gi,"")}; function Zu(a){var b;return null!==(b=Pd(a.o,3))&&void 0!==b?b:""} Yu.prototype.getUrl=function(){var a;return null!==(a=this.o.getUrl())&&void 0!==a?a:""}; Yu.prototype.Rc=function(){var a;return null!==(a=this.o.Rc())&&void 0!==a?a:""}; function $u(a){var b,c;return null!==(c=null===(b=be(a.o,Ru,26))||void 0===b?void 0:Pd(b,1))&&void 0!==c?c:0} function av(a){var b,c;return null!==(c=null===(b=be(a.o,Ru,26))||void 0===b?void 0:Pd(b,3))&&void 0!==c?c:0} function bv(a){var b,c;return null!==(c=null===(b=be(a.o,Ru,26))||void 0===b?void 0:Pd(b,4))&&void 0!==c?c:""} function cv(a){var b;a=null!==(b=Pd(a.o,4))&&void 0!==b?b:null;switch(a){case 81:return 0;case 72:return 1;case 62:case 63:case 65:return 2;case 70:return 3;case 21:return 4;default:return a?5:6}} ;function dv(a){z.call(this,a)} y(dv,z);dv.prototype.getType=function(){return Xd(this,1,0)}; dv.prototype.getId=function(){return me(this,2)}; dv.prototype.setId=function(a){return Vd(this,2,a)};function ev(a){z.call(this,a)} y(ev,z);function fv(a){z.call(this,a)} y(fv,z);var gv=[2,3,4,5,6,7];function hv(a){z.call(this,a)} y(hv,z);hv.prototype.getUrl=function(){return me(this,1)}; hv.prototype.lb=function(){return me(this,2)}; hv.prototype.uc=function(a){return Vd(this,2,a)};function iv(a){z.call(this,a)} y(iv,z);function jv(a){z.call(this,a)} y(jv,z);jv.prototype.Qh=function(){return me(this,1)}; function kv(a){var b=new Gm;var c=Math.floor(Date.now()/1E3);b=oe(b,c);de(a,2,b)} ;function lv(a){z.call(this,a,-1,mv)} y(lv,z);var mv=[1];function nv(a){z.call(this,a)} y(nv,z);nv.prototype.Hf=function(){return Xd(this,2,0)};function ov(a){z.call(this,a,-1,pv)} y(ov,z);var pv=[2];function qv(a){z.call(this,a)} y(qv,z);function rv(a){a=void 0===a?{}:a;this.kj=new (void 0===a.PC?nl:a.PC)({uf:Qg().mld+"/v1",serviceName:"MoltronLoggingService"})} function sv(a,b,c,e){var f=(void 0===e?{}:e).lz;ue(a,function k(){var l,n,r,t=this;return mb(k,function(w){if(!b||!c)return w.return();l=new jv;Vd(l,1,b);kv(l);Vd(l,3,c);Vd(l,5,3);f&&(n=new ev,Vd(n,1,1),Vd(n,2,f),r=new fv,ee(r,3,gv,n),de(l,6,r));return Ra(w,tv(t,l),0)})})} function uv(a,b,c,e){var f=(void 0===e?{Cr:!1}:e).Cr;ue(a,function k(){var l,n,r,t,w,x,E=this;return mb(k,function(pa){if(!b)return pa.return();l=[];n=u(c);for(r=n.next();!r.done;r=n.next())if(t=r.value)w=new jv,Vd(w,1,b),kv(w),Vd(w,3,t),Vd(w,5,1),f&&(x=new fv,Vd(x,1,3),de(w,6,x)),l.push(w);return Ra(pa,vv(E,l),0)})})} function wv(a,b){ue(a,function e(){var f,h,k=this;return mb(e,function(l){if(!b)return l.return();f=new jv;Vd(f,1,b);kv(f);h=new dv;Vd(h,1,3);h.setId("other");de(f,4,h);Vd(f,5,3);return Ra(l,tv(k,f),0)})})} function tv(a,b,c){c=void 0===c?!1:c;return ue(a,function f(){var h,k,l,n,r=this;return mb(f,function(t){if(1==t.o)return h=new qv,de(h,1,b),k={query:{key:Qg().mkey}},c&&(l=(Qg().ge||"").toLowerCase(),n=Mp([{key:"e",value:l}]))&&(k.withCredentials=!0,k.headers={Authorization:n}),$a(t,2),Ra(t,r.kj.post("log-moltron-interaction",h,nv,k),4);if(2!=t.o)return ab(t,0);cb(t);Wa(t)})})} function vv(a,b){return ue(a,function e(){var f,h=this;return mb(e,function(k){if(1==k.o)return f=new lv,fe(f,1,b),$a(k,2),Ra(k,h.kj.post("log-batch-moltron-interaction",f,ov,{query:{key:Qg().mkey}}),4);if(2!=k.o)return ab(k,0);cb(k);Wa(k)})})} ;function xv(a,b,c,e){rv.call(this);this.predictionId=a;this.o=b;this.dymTrackingId=c;this.sessionId=e} y(xv,rv);function yv(a){ue(a,function c(){var e=this,f,h;return mb(c,function(k){f=zv();Vd(f,1,e.predictionId);Vd(f,5,1);h=new iv;Vd(h,1,e.o?3:1);Vd(h,2,e.sessionId);de(f,8,h);return Ra(k,tv(e,f,!0),0)})})} function Av(a,b,c){ue(a,function f(){var h=this,k,l,n;return mb(f,function(r){k=zv();Vd(k,1,h.predictionId);Vd(k,3,b);Vd(k,5,3);l=new iv;Vd(l,1,h.o?4:2);Vd(l,2,h.sessionId);de(k,8,l);n=new hv;Vd(n,1,c);de(k,7,n);return Ra(r,tv(h,k,!0),0)})})} xv.prototype.jj=function(a,b){return ue(this,function e(){var f=this,h;return mb(e,function(k){h=Bv(f,a,4,b);return Ra(k,tv(f,h,!0),0)})})}; function Bv(a,b,c,e){var f=zv();Vd(f,1,a.predictionId);Vd(f,3,b);Vd(f,5,3);e&&(b=new hv,Vd(b,1,e),de(f,7,b));e=new iv;Vd(e,1,c);Vd(e,2,a.sessionId);de(f,8,e);return f} function zv(){var a=new jv;kv(a);return a} ;function Cv(a,b,c,e,f,h,k){this.context=a;this.dymTrackingId=b;this.flow=c;this.ha=e;this.query=f;this.requestId=h;this.sessionId=k;this.o=new Cq(!0)} function Dv(a,b){a.o.Nm(a.sessionId,a.requestId,b,a.query,a.flow,a.ha,a.context,a.dymTrackingId)} function Ev(a,b,c,e){a.o.ij(a.query,a.sessionId,b,c,a.requestId,e,a.flow,a.context,a.ha)} Cv.prototype.jj=function(a,b,c){this.o.jj(this.sessionId,this.requestId,a,b,c)};function Fv(a){var b=a.symptoms,c=void 0===a.limit?8:a.limit,e=void 0===a.helpcenterName?"":a.helpcenterName,f=void 0===a.ln?new Map:a.ln;a=void 0===a.Am?0:a.Am;A.call(this,"sc.symptoms.Symptoms");this.ha="true"===th("workflow__full-layout");this.isRendered=this.o=!1;this.symptoms=b;this.limit=c;this.helpcenterName=e;this.ln=f;this.Am=a} y(Fv,A);Fv.prototype.content=function(){var a=this,b=ce(this.symptoms,Wu,1).filter(function(c){var e;return""!==(null===(e=Pd(c,2))||void 0===e?void 0:e.trim())}); this.element("div","class","root",function(){a.element("div","class","container",function(){switch(a.Am){case 0:Gv(a,b);break;case 1:for(var c=0;ca.limit} function Mv(a){if(Iv(a)){a.o=!a.o;a.Ca();var b=a.o;rl(b?2:3,a.helpcenterName+"_symptoms_view_"+(b?"more":"less"),b?96:97)}} function Lv(a,b){rl(35,a.helpcenterName+"_symptoms_click_"+Pd(b,1)+(Wd(b,3)?"_active":""),98);if(!Wd(b,3)){a:{var c;b=null!==(c=Pd(b,1))&&void 0!==c?c:"";if(""!==b&&a.ln.has(b)&&(a=a.ln.get(b)))break a;a=""}a=a.split("?");c="?"+a[1];c=Gu(c);ll(""+a[0]+c,!0,!1)}} ;function Nv(a){this.o=a;this.ka=this.va=null;this.ha=[];this.na=document.createElement("input");this.ua=this.oa=-1;this.Ea=this.um.bind(this);this.Ba=this.ys.bind(this);this.Ga=this.wa=this.ya=0;this.ta=!1;this.Da=0;this.Aa=new vm;Ov(this)} function Ov(a){a.ma=document.createElement("div");a.ma.className=a.o.className;Jg(a.ma,"sc-select",!0);a.ma.setAttribute("tabindex",0);a.ma.setAttribute("role","listbox");a.ma.setAttribute("aria-expanded",!1);a.ma.addEventListener("mousedown",function(e){Ng(this.ka,"sc-select-show")?e.target==this.ka||this.ka.contains(e.target)||this.um():0==e.button&&Pv(this)}.bind(a)); a.ma.addEventListener("keydown",a.Nx.bind(a));a.va=document.createElement("span");a.ma.appendChild(a.va);var b=document.createElementNS("http://www.w3.org/2000/svg","svg");b.setAttribute("viewBox","0 0 48 48");var c=document.createElementNS("http://www.w3.org/2000/svg","path");c.setAttribute("d","M14 20l10 10 10-10z");b.appendChild(c);a.ma.appendChild(b);a.ka=document.createElement("ol");a.ka.addEventListener("mousemove",function(){this.ta=!0}.bind(a)); a.ka.addEventListener("scroll",function(){0a-1?this.ha.length-1:a-1;b!=a&&!Uv(this,b);)b=0>b-1?this.ha.length-1:b-1;a=b}Sv(this,a);this.ha[a].focus();this.ma.setAttribute("aria-activedescendant",this.ha[a].id); Vv(this);break;case 40:a.preventDefault();Ng(this.ka,"sc-select-show")||Pv(this);a=this.oa;if(0===this.ha.length)a=-1;else{for(b=(a+1)%this.ha.length;b!=a&&!Uv(this,b);)b=(b+1)%this.ha.length;a=b}Sv(this,a);this.ha[a].focus();this.ma.setAttribute("aria-activedescendant",this.ha[a].id);Vv(this)}}; function Vv(a){if(-1!=a.oa){var b=a.ha[a.oa];b.offsetTopa.ka.scrollTop+a.ka.offsetHeight&&(a.ta=!1,a.ka.scrollTop=b.offsetTop+b.offsetHeight-a.ka.offsetHeight)}} function Tv(a){var b=a.o.getAttribute("aria-label")||"";b&&(-1!==a.o.selectedIndex&&(b+=" ("+a.o[a.o.selectedIndex].innerText+")"),a.ma.setAttribute("aria-label",b))} p.dispose=function(){this.ma&&Zh(this.ma);this.ka=this.va=this.ma=null;this.ha=[]}; function Wv(a){a=u((a||document).getElementsByTagName("select"));for(var b=a.next();!b.done;b=a.next())b=b.value,"true"!==b.dataset.exclude&&new Nv(b)} window.sc_initSelects=function(){Wv(window.sc_scope)};function Xv(a){z.call(this,a,-1,Yv)} y(Xv,z);p=Xv.prototype;p.getId=function(){return Pd(this,1)}; p.setId=function(a){return Vd(this,1,a)}; p.getType=function(){return Pd(this,3)}; p.lb=function(){return Pd(this,4)}; p.uc=function(a){return Vd(this,4,a)}; p.og=function(){return Pd(this,5)}; p.Hk=ma(12);p.Sa=function(){return Pd(this,6)}; p.lc=function(a){return Vd(this,6,a)}; p.Db=function(){return Qd(this,6)}; p.Tm=function(a){Vd(this,20,a)}; var Yv=[2,11,12,16,17];function Zv(a){z.call(this,a,-1,$v)} y(Zv,z);Zv.prototype.Tm=function(a){Vd(this,5,a)}; function aw(a){z.call(this,a)} y(aw,z);function bw(a){z.call(this,a,3)} y(bw,z);function cw(a){return be(a,dw,1)} function ew(a){z.call(this,a)} y(ew,z);function fw(a){z.call(this,a)} y(fw,z);function dw(a){z.call(this,a,-1,gw)} y(dw,z);p=dw.prototype;p.getType=function(){return Pd(this,1)}; p.og=function(){return Pd(this,3)}; p.Hk=ma(11);p.Sa=function(){return Pd(this,4)}; p.lc=function(a){return Vd(this,4,a)}; p.Db=function(){return Qd(this,4)}; function hw(a){z.call(this,a)} y(hw,z);hw.prototype.Tm=function(a){Vd(this,3,a)}; function iw(a){z.call(this,a,-1,jw)} y(iw,z);var $v=[1],gw=[14,15,20,21],kw=[10,17],jw=[1];var lw=new Map([[1,"smart_button_event_handshake"],[2,"smart_button_event_execute"],[3,"smart_button_event_state_update"],[4,"smart_button_event_initialized"],[5,"smart_button_event_describe_buttons"],[6,"smart_button_event_rendered"]]);function mw(){var a=this;this.o=function(){}; this.ha=function(b){var c,e,f,h,k,l,n,r;if("detail"in b)if(b=ie(ew,b.detail.action),null===(e=null===(c=be(b,bw,1))||void 0===c?void 0:cw(c))||void 0===e?0:Sd(e,10,kw))(n=null===(h=null===(f=be(b,bw,1))||void 0===f?void 0:cw(f))||void 0===h?void 0:Pd(h,10===Td(h,kw)?10:-1))&&a.ka(n);else if(null===(l=null===(k=be(b,bw,1))||void 0===k?void 0:cw(k))||void 0===l?0:Sd(l,17,kw))if(f=null===(r=null===(n=be(b,bw,1))||void 0===n?void 0:cw(n))||void 0===r?void 0:ne(r,fw,17,kw))h=Pd(f,2),f=Pd(f,1),h&&f&&a.ka("/"+ h+"/workflow/"+f)}; this.ma=function(){var b=lw.get(1);b=new CustomEvent(b,{bubbles:!0,cancelable:!0});window.document.body.dispatchEvent(b)}; this.ka=ll;window.document.body.addEventListener(lw.get(6),this.ma);window.document.body.addEventListener(lw.get(5),this.o);window.document.body.addEventListener(lw.get(2),this.ha)} var nw;function ow(){void 0===nw&&(nw=new mw)} mw.prototype.dispose=function(){window.document.body.removeEventListener(lw.get(2),this.ha);window.document.body.removeEventListener(lw.get(6),this.ma);window.document.body.removeEventListener(lw.get(5),this.o)}; window.sc_initSmartButtonController=function(){ow()};function pw(a,b){a=void 0===a?95:a;b=void 0===b?133:b;A.call(this,"sc.shared.ErrorSvg");this.o=new sp("error_computer.svg");this.height=a;this.width=b} y(pw,A);pw.prototype.content=function(){var a=this;this.element("div","style",{width:this.width+"px",height:this.height+"px"},function(){a.o.render()})};function qw(a){this.ha=a;this.o=null} function rw(a){null===a.o&&(a.o=setTimeout(function(){null!==a.o&&(a.o=null,a.ha())},6E4))} ;function sw(){var a=this;this.ka=function(b){if(!("detail"in b))throw Error("Invalid event type received for state update. Expected CustomEvent.");if(void 0===a.ha)throw Error("No state update callback was provided.");b=ie(Zv,b.detail);a.ha(b)}} p=sw.prototype;p.sendInitCompleteEvent=function(){console.log("[Smart Buttons] Broadcasting init");tw(4,void 0)}; p.sendButtonAction=function(a,b){a={action:null===a||void 0===a?void 0:a.Hb(),buttonClientRect:b};tw(2,a)}; p.sendDescribeEvent=function(a){var b=new iw;a=u(a);for(var c=a.next();!c.done;c=a.next())ge(b,1,c.value,hw);b={action:b.Hb(),buttonClientRect:void 0};tw(5,b)}; p.sendButtonsRenderedEvent=function(){tw(6)}; p.initHandshakeListener=function(a){this.o=a;window.document.body.addEventListener(lw.get(1),this.o)}; p.initStateUpdateListener=function(a){this.ha=a;window.document.body.addEventListener(lw.get(3),this.ka)}; p.dispose=function(){window.document.body.removeEventListener(lw.get(3),this.ka);this.o&&window.document.body.removeEventListener(lw.get(1),this.o)}; function tw(a,b){a=lw.get(a);var c=new CustomEvent(a,{bubbles:!0,cancelable:!0,detail:b});console.log("[Smart Buttons] Broadcasting event "+a);console.log(b);window.document.body.dispatchEvent(c)} ;Object.keys({gE:0,fE:1,aE:2,dE:3,bE:4,eE:5,cE:6});function uw(a,b){this.o=a;this.metadata=b} uw.prototype.jd=function(a){this.o(a)}; function vw(){var a=this;this.ha=new Map;this.ka=function(){a.o.sendButtonsRenderedEvent()}; this.o=new sw;ww(this)} var xw;function yw(){if(xw&&!zw)return xw;xw=new vw;zw=!1;var a=xw;a.o.initHandshakeListener(a.oa.bind(a));a.o.initStateUpdateListener(a.ma.bind(a));a.o.sendInitCompleteEvent();return xw} function Aw(a,b,c,e){if(""===b)throw Error("Smart Button guid key is empty");a.ha.has(b)||a.ha.set(b,new uw(e,c))} vw.prototype.ma=function(a){var b,c,e=null!==(b=Pd(a,5))&&void 0!==b?b:"";if(!this.ha.has(e))throw Error("Smart Button guid key "+e+" does not exist. Cannot update state.");null===(c=this.ha.get(e))||void 0===c?void 0:c.jd(a)}; vw.prototype.oa=function(){console.log("[Smart Buttons] Received Handshake");var a=[];this.ha.forEach(function(b){a.push(b.metadata)}); this.o.sendDescribeEvent(a)}; vw.prototype.dispose=function(){var a;this.o.dispose();this.ha.clear();null===(a=ok().querySelector(".workflow"))||void 0===a?void 0:a.removeEventListener("dynamicFormRendered",this.ka)}; function ww(a){var b;null===(b=ok().querySelector(".workflow"))||void 0===b?void 0:b.addEventListener("dynamicFormRendered",a.ka)} var zw=!1;function Bw(a){var b=a.buttonTitle,c=a.contentId,e=a.helpcenterName,f=a.Qf;a=void 0===a.Fp?!0:a.Fp;A.call(this,"sc.smart_button.FatalErrorButton");this.o=new pw;this.buttonTitle=b;this.contentId=c;this.helpcenterName=e;this.Qf=f;this.Fp=a} y(Bw,A);Bw.prototype.content=function(){var a=this;this.element("div","class","^no-margin root",function(){a.element("div","class","^no-margin content",function(){a.o.render()}); a.element("div","class","^no-margin content",function(){a.element("div","class","^no-margin title","Hmm... something went wrong.");a.element("div","class","^no-margin error","The smart button requested did not load. Please complete actions manually.");a.Fp&&a.element("div","class","^no-margin feedback-link",a.Qf);a.element("div","class","^no-margin detail",function(){""!==a.buttonTitle&&a.element("div","class","^no-margin",(new Hr("The button title is {buttonTitle}.")).format({buttonTitle:a.buttonTitle})); a.element("div","class","^no-margin",(new Hr("The content ID is {contentId}.")).format({contentId:a.contentId}));a.element("div","class","^no-margin",(new Hr("The help center name is {helpcenterName}.")).format({helpcenterName:a.helpcenterName}))})})}); Cw(this)}; function Cw(a){var b;null===(b=window.sc_trackStatsImpressions)||void 0===b?void 0:b.call(window,[{type:99,id:a.contentId+"_button_"+a.buttonTitle}],!0)} ;var Dw=new Map([[1,"good"],[2,"error"]]);function Ew(){A.call(this,"sc.smart_button.Icon");this.o=!1} y(Ew,A);function Fw(a,b,c,e){a.ha=b;a.state=c;a.o=void 0===e?!1:e} Ew.prototype.content=function(){var a=this;if(void 0!==this.ha&&void 0!==this.state&&void 0!==this.o&&0!==this.state){var b={"^no-margin":!0,icon:!0,state:!this.o,"heading-icon":this.o},c=Dw.get(this.state);Dw.has(this.state)&&(b[c]=!0);var e="";"good"===c?e="Success icon":"error"===c&&(e="Failure icon");this.element("div","class",b,"aria-label",""!==e?e:null,function(){var f;null===(f=a.ha)||void 0===f?void 0:f.render()})}};function Gw(a){A.call(this,"sc.smart_button.SendFeedbackLink");var b=this;this.buttonTitle=a;this.o=function(){Hw(b)}; this.ha=function(c){"key"in c&&(" "===c.key||"Enter"===c.key)&&Hw(b)}} y(Gw,A);Gw.prototype.content=function(){var a,b;this.anchor=this.element("a","href","#","class","^no-margin link","Send feedback");null===(a=this.anchor)||void 0===a?void 0:a.addEventListener("click",this.o);null===(b=this.anchor)||void 0===b?void 0:b.addEventListener("keydown",this.ha)}; Gw.prototype.dispose=function(){var a,b;null===(a=this.anchor)||void 0===a?void 0:a.removeEventListener("click",this.o);null===(b=this.anchor)||void 0===b?void 0:b.removeEventListener("keydown",this.ha)}; function Hw(a){var b=so();b.set("smart_button_title",a.buttonTitle);qo({payload:b,productId:Number(Qg().fbid)})} ;function Iw(a){return 2===(null===a||void 0===a?void 0:Pd(a,3))} function Jw(a){return 1===(null===a||void 0===a?void 0:Pd(a,3))} function Kw(a){a=null===a||void 0===a?void 0:ce(a,aw,1);if(void 0===a)return!1;a=u(a);for(var b=a.next();!b.done;b=a.next())if(Lw(b.value))return!0;return!1} function Mw(a){a=Nw(a);if(0===a.length)return!1;a=u(a);for(var b=a.next();!b.done;b=a.next())if(!Lw(b.value))return!1;return!0} function Nw(a){return void 0===a?[]:(null===a||void 0===a?void 0:ce(a,aw,1))||[]} function Lw(a){return void 0!==a&&Qd(a,1)&&0!==Pd(a,1)} function Ow(a){return void 0!==a&&Qd(a,1)&&1===Pd(a,1)} function Pw(a){return void 0!==a&&Qd(a,1)&&2===Pd(a,1)} function Qw(a){return a.filter(function(b){return Pw(b)})} ;function Rw(a,b){b=void 0===b?!1:b;A.call(this,"sc.smart_button.StateHeading");this.Qf=a;this.ah=b;this.na=[];this.headingState=0;this.icon=new Ew} y(Rw,A);Rw.prototype.content=function(){var a;!(Iw(this.o)||Jw(this.o)||(null===(a=this.o)||void 0===a?0:Pd(a,2))||Mw(this.o))||Sw(this)}; Rw.prototype.jd=function(a){this.o=a;this.na=Nw(this.o);if(Iw(this.o))this.headingState=2;else if(Jw(this.o))this.headingState=1;else if(0=nx} function ox(a){return mx(a)>=px} function qx(a,b,c,e,f,h,k){this.rank=a;this.ka=b;this.o=c;this.ma=e;this.ha=f;this.icon=h;this.label=void 0===k?"":k} function mx(a){switch(a){case 0:return rx;case 30:return sx;case 1:return tx;case 2:return nx;case 3:return ux;case 4:return vx;case 5:return wx;case 20:return px;case 10:return xx;case 100:return yx;default:return rx}} qx.prototype.valueOf=function(){return this.rank}; function zx(a){return qu().Ki?a.o:a.ka} qx.prototype.sg=function(){return this.icon}; qx.prototype.Cb=function(){return this.label}; var rx=new qx(0,"#F1F3F4","#F1F3F4"),sx=new qx(1,"#F1F3F4","#F1F3F4",void 0,void 0,2),tx=new qx(2,"#896E63","#896E63","#896E63","#B9ABA3",3,"Bronze Member"),nx=new qx(3,"#9E9E9E","#9E9E9E","#5F6368","#BDC1C6",4,"Silver Product Expert"),ux=new qx(4,"#FFB300","#F9AB00","#E37400","#F9AB00",5,"Gold Product Expert"),vx=new qx(5,"#77909D","#718792","#455A64","#AFBEC5",6,"Platinum Product Expert"),wx=new qx(6,"#79A8FA","#79A8FA","#1A73E8","#8AB4F8",7,"Diamond Product Expert"),px=new qx(7,"#4285F4","#669DF6", "#1A73E8","#8AB4F8",8,"Community Specialist"),xx=new qx(8,"#4285F4","#669DF6","#1A73E8","#8AB4F8",9,"Community Manager"),yx=new qx(9,"#4285F4","#669DF6","#1A73E8","#8AB4F8",9,"Google Employee");var Ax=ya(["aria-"]),Bx=ya(["role"]),Cx=ya(["data-stats-"]);function Dx(a){this.o=a||document} Dx.prototype.init=function(){for(var a=this,b=this.o.querySelectorAll(".zippy"),c={},e=0;e=a.length} p.hasEmail=function(){var a;return!(null===(a=this.privateInfo)||void 0===a||!Pd(a,1))}; function ky(a){if(1!==a.forumUserInfos.size)throw Error("Expected only one forum to be populated for a call to `getRole`.");return Pd(be(a.forumUserInfos.values().next().value,wt,1),3)} function ly(a){var b;return null!==(b=Pd(a.publicInfo,5))&&void 0!==b?b:""} function my(a){a=ly(a);return 0===a.length||500>=a.length} function ny(a){var b;return null!==(b=Pd(a.publicInfo,4))&&void 0!==b?b:""} function oy(a){a=ny(a);return 0===a.length||80>=a.length} function py(a){var b;return null!==(b=Pd(a.publicInfo,2))&&void 0!==b?b:""} function qy(a,b){return ue(a,function e(){var f,h=this,k;return mb(e,function(l){if(1==l.o){var n=new Qt;Vd(n,1,b.originalFilename);Vd(n,3,b.documentId);b.Ac&&Vd(n,2,b.Ac);b.deleted&&Vd(n,4,!0);f=n;return Ra(l,h.Za.updateGlobalUserInfo({userId:h.getId(),avatar:f}),2)}k=l.ha;n=Pd(be(k,Bt,2),2);Vd(h.publicInfo,2,n);Mk(h,1);Wa(l)})})} function ry(a){var b;return null!==(b=Pd(a.publicInfo,6))&&void 0!==b?b:""} function sy(a){a=ry(a);if(0===a.length)return!0;try{return"https:"===(new URL(a)).protocol}catch(b){return!1}} function ty(a){var b;return null!==(b=Pd(a.publicInfo,7))&&void 0!==b?b:""} function uy(a){a=ty(a);if(0===a.length)return!0;try{var b=new URL(a);return"https:"===b.protocol&&gy.includes(b.hostname)}catch(c){return!1}} function iy(a){return jy(a)&&oy(a)&&my(a)&&sy(a)&&uy(a)} p.delete=function(){return ue(this,function b(){var c=this;return mb(b,function(e){if(1==e.o)return Ra(e,yu(c.Za,c.getId()),2);c.userId=0;c.o=new Bt;c.publicInfo=new Bt;c.privateInfo=new Ft;c.profileAbuse=new Et;Wa(e)})})}; p.reportAbuse=function(){return ue(this,function b(){var c=this,e;return mb(b,function(f){e=c.forumUserInfos.keys().next().value;return Ra(f,zu(c.Za,c.getId(),e),0)})})}; p.Xm=function(){var a,b;return null!==(b=null===(a=this.privateInfo)||void 0===a?void 0:Yd(a,4,!0))&&void 0!==b?b:!1}; function vy(a){var b,c;return null!==(c=null===(b=a.profileAbuse)||void 0===b?void 0:Qd(b,1))&&void 0!==c?c:!1} ;function wy(a,b,c,e){e=void 0===e?{}:e;if(ru())a=e.messageId,e=void 0===e.relative?!0:e.relative,c="/s/community/forum/"+b+"/thread/"+c,a&&(c+="/message/"+a),c=xy(c),c=e?yy(c):c.toString();else{var f=e;b=void 0===f.av?!1:f.av;e=void 0===f.language?su():f.language;var h=f.messageId;f=void 0===f.relative?!0:f.relative;c=xy("/"+a+"/thread/"+c);c.searchParams.set("hl",e);b&&c.searchParams.set("notify","new");h&&c.searchParams.set("msgid",""+h);c=f?yy(c):c.toString()}return c} function xy(a){a=new URL(a,qu().Qq);var b=qu().authuser;b&&a.searchParams.set("authuser",b);return a} function yy(a){return a.href.replace(a.origin,"")} ;function zy(){var a=Qg();a={Qq:a.ehn,oB:a.hc,Tq:a.ehc,language:a.lang,authuser:a.au,Ki:a.dark,experimentIds:a.tw_smei,pB:"embed"===(new URLSearchParams(location.search)).get("format")};pu?console.error("Global settings should only be initialized once."):pu=Object.assign({},a)} ;var Ay=["image/gif","image/jpeg","image/png"];function By(a){var b=a.user;a=void 0===a.Yq?np:a.Yq;A.call(this,"sc.tailwind.shared.AvatarUpload");this.ma=!1;this.user=b;this.Yq=a;this.na=Xo.initialize();this.ua=new Rk({icon:"gm/mode_edit"})} y(By,A);By.prototype.content=function(){var a=this;this.element("div","class","root",function(){if(a.ma&&a.o){a.ta||(a.ta=new Yo({size:"mspin-medium"}));var b=sf(a.o);a.element("img","class","preview","title","Uploading avatar","src",qf(b));a.ta.render()}Cy(a)})}; function Cy(a){a.ma||a.element("div","class","upload-container",function(){a.Pi=a.element("button","class","edit-button","title","Upload avatar","onclick",function(){var b;null===(b=a.ha)||void 0===b?void 0:b.click()},function(){a.ua.render()}); a.ha=a.element("input","accept",Ay.join(", "),"class","native-input","type","file","onchange",function(){var b;if(b=a.ha){var c;b=!(null===(c=a.ha.files)||void 0===c||!c.length)}b&&(b=a.ha,b=b.files?b.files[0]:void 0,a.o=b,Dy(a,a.o))})})} function Dy(a,b){a.ma=!0;a.Ca();var c=new a.Yq(b);c.dj(function(){return void Ey(a,c)}).onError(function(){a.na.open({message:"Unable to upload file"}); Fy(a)}).oh("SupportContentForums","TailwindAvatar").start()} function Ey(a,b){return ue(a,function e(){var f=this,h;return mb(e,function(k){switch(k.o){case 1:return h=f.Wi(f.o,b),$a(k,2),Ra(k,qy(f.user,h),4);case 4:f.na.open({message:"Avatar uploaded successfully"});ab(k,3);break;case 2:cb(k),f.na.open({message:"Unable to upload file"});case 3:Fy(f),Wa(k)}})})} function Fy(a){var b;delete a.o;a.ma=!1;a.Ca();null===(b=a.Pi)||void 0===b?void 0:b.focus()} By.prototype.Wi=function(a,b){return{originalFilename:a.name,mimeType:a.type,Ac:b.o,documentId:b.Nh(),deleted:!1}};function Gy(a){var b=a.user,c=a.size,e=void 0===a.fh?!1:a.fh,f=void 0===a.td?!1:a.td;a=void 0===a.Qp?!1:a.Qp;A.call(this,"sc.tailwind.shared.Avatar");this.user=b;this.size=c;this.fh=e;this.Qp=a;if(this.o=f&&lx(Hy(this)))this.ha=new By({user:b,td:f}),Dk(this,this.user,1)} y(Gy,A);Gy.prototype.content=function(){var a=this,b=zx(mx(Hy(this))),c=lx(Hy(this)),e=ox(Hy(this)),f={};this.element("div","class",(f.root=!0,f[this.size]=!0,f["at-least-silver"]=c,f["at-least-specialist"]=e,f),"style",{"background-color":c?b:null,"border-color":c?b:null},function(){e&&Iy(a);switch(0===a.user.getId()?0:py(a.user)&&lx(Hy(a))?3:a.fh?2:1){case 3:Jy(a);break;case 0:vk(Ky);break;case 2:Ly(a);break;default:My(a)}a.o&&a.ha.render()})}; function Iy(a){a.element("div","class","specialist-border",function(){(new vp({icon:mx(Hy(a)).sg(),size:Ny(a.size)})).render()})} function My(a){var b=a.user.getName().charAt(0).toLocaleUpperCase();a.element("svg","class","monogram","xlmns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",function(){a.element("circle","cx","12","cy","12","r","12","fill",fy[a.user.getId()%fy.length]);a.element("text","fill","#fff","font-size","16","text-anchor","middle","x","12","y","18",b)})} function Jy(a){a.element("img","class","avatar","onload",function(){return void a.Ca()},"src",py(a.user)).complete||a.element("div","class","avatar avatar-loading",function(){(new Yo).render()})} function Ly(a){a.element("svg","class","silhouette","xlmns","http://www.w3.org/2000/svg","fill",fy[a.user.getId()%fy.length],"viewBox","2 2 20 20",function(){a.element("path","d","M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z")})} function Hy(a){return a.Qp?ky(a.user):a.user.highestRole} function Ny(a){switch(a){case "large":return kp()?72:114;case "medium":return 40;case "small":return 24;default:return 0}} var Ky=$e('\n \n \n \n');function Oy(a){A.call(this,"sc.tailwind.shared.CategorySelect");this.model=a;Dk(this,this.model);a=Py(this.model);var b;var c=null!==(b=this.model.o)&&void 0!==b?b:0;this.select=new by({filled:!1,items:a,label:"Category",selectedIndex:c})} y(Oy,A);Oy.prototype.content=function(){var a=this;this.element("div","class","root",function(){a.select.render()})};function Qy(a){var b=a.categories,c=a.XC;Jk.call(this);this.categories=b;c&&(this.o=this.categories.findIndex(function(e){return e.id===c})+1,this.category=this.categories[this.o])} y(Qy,Jk);Qy.prototype.Qc=function(){return this.category}; Qy.prototype.ye=function(a){a!==this.category&&(this.category=a,Mk(this,0))}; function Py(a){return[{value:"Please select",trigger:function(){return void a.ye(void 0)}}].concat(Ba(a.categories.map(function(b){return{value:b.label, trigger:function(){return void a.ye(b)}}})))} ;function Ry(a){A.call(this,"sc.tailwind.shared.TitleField");var b=this;this.model=a;Dk(this,this.model);this.o=new $o({Ge:!0,label:"Tell us your question",placeholder:this.model.hint,Ne:!1,maxLength:this.model.od(),Pd:function(){b.model.nb(b.o.Ja())}})} y(Ry,A);Ry.prototype.content=function(){var a=this;this.o.nb(this.model.Ja());this.element("div","class","root",function(){a.o.render();Sy(a)})}; function Sy(a){a.element("div","class","helper-text",function(){var b=a.element;var c=a.o.Ja().length;c=c=a.model.od()?"Character limit is reached.":"";b.call(a,"div","class","limits-text",c);b=a.o.Ja().length;c=b+"/"+a.model.od();a.element("div","class","char-count","aria-label",c,"aria-live",b===a.model.od()?"assertive":void 0,c)})} ;function Ty(a){var b=void 0===a.text?"":a.text,c=void 0===a.hint?'Example: "How do I backup my photos?"':a.hint,e=void 0===a.minLength?10:a.minLength;a=void 0===a.maxLength?100:a.maxLength;Jk.call(this);this.text=b;this.hint=c;this.minLength=e;this.maxLength=a} y(Ty,Jk);Ty.prototype.od=function(){return this.maxLength}; Ty.prototype.nb=function(a){a=a.substring(0,this.maxLength);if(a!==this.text){var b=Uy(this);this.text=a;Mk(this,0);b!==Uy(this)&&Mk(this,1)}}; Ty.prototype.Ja=function(){return this.text.substring(0,this.maxLength)}; function Uy(a){var b=a.text.length;return b>=a.minLength&&b<=a.maxLength} ;function Vy(a){Jk.call(this);this.mb=this.text="";this.checked=this.disabled=!1;this.tabIndex=0;this.Ce(a)} y(Vy,Jk);Vy.prototype.Ce=function(a){var b=void 0===a.text?"":a.text,c=void 0===a.mb?"":a.mb,e=void 0===a.disabled?!1:a.disabled,f=void 0===a.tabIndex?0:a.tabIndex,h=a.content,k=a.He;this.checked=void 0===a.checked?!1:a.checked;this.text=b;this.mb=c;this.disabled=e;this.tabIndex=f;this.content=h;this.He=k}; Vy.prototype.Ja=function(){return this.text}; Vy.prototype.se=function(){return this.content}; Vy.prototype.Ti=function(){return this.mb};function Wy(a){a=void 0===a?{}:a;A.call(this,"sc.shared.MaterialCheckbox");this.model=a instanceof Vy?a:new Vy(a);this.overlay=new bl({Ll:!0});this.o=null;Dk(this,this.model)} y(Wy,A);Wy.prototype.content=function(a){var b=this;a&&this.model.Ce(a);this.element("label","class",{root:!0,disabled:this.model.disabled},function(){b.element("div","class","checkbox",function(){b.o=b.element("input","class","native-control","type","checkbox","aria-label",b.model.Ti(),"tabindex",b.model.tabIndex,"disabled",b.model.disabled,"onchange",function(){b.Fa()}); b.o.checked=!0===b.model.checked;b.o.indeterminate=null===b.model.checked;b.element("div","class","box",function(){b.element("svg","class","checkmark","viewBox","0 0 24 24",function(){b.element("path","class","checkmark-path","d","M1.73,12.91 8.1,19.28 22.79,4.59")}); b.element("div","class","mixedmark")}); b.overlay.render()}); var c=b.model.Ja(),e=b.model.se();c?nk(c):e&&e()})}; Wy.prototype.Fa=function(){if(this.o){var a=this.model,b=this.o.checked,c;a.checked!==b&&(a.checked=b,null===(c=a.He)||void 0===c?void 0:c.call(a,b),Mk(a,0))}};function Xy(a){z.call(this,a,-1,Yy)} y(Xy,z);Xy.prototype.lb=function(){return Pd(this,1)}; Xy.prototype.uc=function(a){return Vd(this,1,a)}; Xy.prototype.bc=function(){return Pd(this,2)}; Xy.prototype.be=function(a){return Vd(this,2,a)}; var Yy=[3];var Zy=new Map([[3,2],[2,1],[6,8],[8,4],[4,3],[5,11],[7,9]]);function $y(){Jk.apply(this,arguments);this.dependencies=[]} y($y,Jk);$y.prototype.Xd=function(){return 1===this.getState()}; $y.prototype.isPending=function(){return 0===this.getState()}; $y.prototype.Wh=ma(13);$y.prototype.sf=ma(14);var az=ya(["https://www.google.com/recaptcha/api.js?trustedtypes=true&render=explicit&onload=",""]);function bz(a,b){this.clientId=0;this.load(a,void 0===b?function(){}:b)} bz.prototype.load=function(a,b){var c=this;window.sc_renderRecaptcha=function(){window.grecaptcha&&a&&(c.clientId=window.grecaptcha.render(a,{sitekey:"6LcN-4saAAAAAGOz10SCh-KHThAjGiUum6B9HVft",badge:"inline",size:"invisible"}),b())}; var e=document.createElement("script");qg(e,Te(az,"sc_renderRecaptcha"));document.head.appendChild(e)}; bz.prototype.getResponse=function(){return ue(this,function b(){var c,e=this,f;return mb(b,function(h){switch(h.o){case 1:if(!window.grecaptcha)return h.return("");c=window.grecaptcha;$a(h,2);return Ra(h,new Promise(function(k){c.ready(k)}),4); case 4:return Ra(h,c.execute(e.clientId,{action:"submit"}),5);case 5:return f=h.ha,h.return(f||"");case 2:return cb(h),h.return("")}})})};function cz(){$y.apply(this,arguments);this.state=0;this.Wd=""} y(cz,$y);cz.prototype.getState=function(){return this.state}; cz.prototype.Cc=function(){var a,b,c,e,f,h,k=null!==(b=null===(a=this.o)||void 0===a?void 0:a.filter(function(l){var n;return null===(n=l.ha)||void 0===n?void 0:n.ha()}).map(function(l){return l.Ff()}).filter(this.ha))&&void 0!==b?b:[]; k=k.concat(null!==(e=null===(c=this.o)||void 0===c?void 0:c.filter(function(l){var n;return null===(n=l.ha)||void 0===n?void 0:n.ua()}).map(function(l){return l.Ff()}).filter(this.ha))&&void 0!==e?e:[]); return k.concat(null!==(h=null===(f=this.o)||void 0===f?void 0:f.filter(function(l){var n;return null===(n=l.ha)||void 0===n?void 0:n.va()}).map(function(l){return l.Ff()}).filter(this.ha))&&void 0!==h?h:[])}; cz.prototype.ha=function(a){return!!a.getId()&&a.Db()}; cz.prototype.Nd=ma(16);var dz=new Map([["CT_ANSWER","gm/drive_document"],["CT_FORUM_CONTENT","gm/question_answer"],["CT_SUPPORT_FORUM_THREAD","gm/question_answer"],["CT_YOUTUBE","gm/video_youtube"],[void 0,"gm/language"]]);function ez(a){var b;return null!==(b=dz.get(a.type))&&void 0!==b?b:"gm/drive_document"} function fz(a,b){var c=ez(a);return"CT_WORKFLOW"===a.type?new vp({icon:0}):new Rk({icon:c,size:b})} ;function gz(a,b,c){var e;a=u(a.querySelectorAll("a"));for(var f=a.next();!f.done;f=a.next())if(f=f.value,f.hasAttribute("target")||b){var h=null!==(e=f.getAttribute("aria-label"))&&void 0!==e?e:"";h.includes(c)||f.setAttribute("aria-label",h+(" ("+c+")"));f.getAttribute("target")||f.setAttribute("target","_blank")}} ;var hz;Mb("hcfe.Stats.getInstance",function(){return hz});function iz(a,b,c,e,f,h,k){A.call(this,"SmartJourney.Onebox");this.La=a;this.oneboxResult=b;this.openInNewWindow=c;this.o=e;this.na=f;this.ma=h;this.wb=k;this.ha=new Rk({icon:"gm/open_in_new"})} y(iz,A);iz.prototype.content=function(){var a=this;this.element("div","class",{result:!0,separator:this.ma},function(){var b=a.oneboxResult,c;null===(c=hz)||void 0===c?void 0:c.cn([{type:a.o}]);"CT_SNIPPET"!==b.type&&jz(a);kz(a);lz(a);if("CT_SNIPPET"!==b.type)switch(a.oneboxResult.type){case "CT_WORKFLOW":mz(a,a.La.get("Onebox.GET_STARTED"));break;default:mz(a,a.La.get("Onebox.READ_MORE"))}})}; function jz(a){a.element("div","class","content-header",function(){var b=ez(a.oneboxResult),c=fz(a.oneboxResult,16);a.element("span","class",{"content-icon":!0,"help-article":"gm/drive_document"===b,language:"gm/language"===b,"question-answer":"gm/question_answer"===b,youtube:"gm/video_youtube"===b},"aria-hidden","true",c);b=a.La.get("Onebox.HELP_ARTICLE");switch(a.oneboxResult.type){case "CT_WORKFLOW":b=a.La.get("Onebox.TROUBLESHOOTER")}a.element("span","class","content-label",b)})} function kz(a){var b=a.oneboxResult.title;a.openInNewWindow&&(b+=" ("+a.La.get("Onebox.OPENS_IN_A_NEW_WINDOW")+")");a.element("a","class","title","href",a.oneboxResult.url,"target","_blank","data-stats-ve",a.o,"data-stats-action",8,"aria-label",b,"onclick",a.wb,function(){var c;a.element("span",ct(null!==(c=a.oneboxResult.title)&&void 0!==c?c:""))})} function lz(a){var b=a.element("div","class","snippet",function(){var c;vk(ct(null!==(c=a.oneboxResult.snippet)&&void 0!==c?c:""))}); gz(b,a.openInNewWindow,a.La.get("Onebox.OPENS_IN_A_NEW_WINDOW"))} function mz(a,b){var c=b;a.openInNewWindow&&(c+=" ("+a.La.get("Onebox.OPENS_IN_A_NEW_WINDOW")+")");a.element("a","class","action-link","href",a.oneboxResult.url,"target",a.openInNewWindow?"_blank":"","data-stats-ve",a.na,"data-stats-action",8,"aria-label",c,"onclick",a.wb,function(){a.element("span",b);a.openInNewWindow&&a.ha.render()})} ;function nz(a,b){return ue(this,function e(){var f;return mb(e,function(h){if(1==h.o)return Ra(h,b.post({endpoint:"classifications",json:!0,queryParams:{v:"1"},request:oz(a)}),2);f=h.ha;var k=h.return;var l;if("get_categories"in f)var n={categories:null!==(l=f.get_categories.category)&&void 0!==l?l:[],predictionId:f.get_categories.prediction_id,highConfidenceTopK:f.get_categories.high_confidence_top_k};else throw Error("Unsupported classifications response");return k.call(h,n)})})} function oz(a){switch(a.method){case "get_categories":return{resource:{get_categories:{description:a.issueDescription,frd_value:a.nd.map(function(b){return b.ha()})}}}; default:throw Error("Unsupported classifications method");}} ;function pz(a,b){return ue(this,function e(){return mb(e,function(f){return f.return(b.get({endpoint:"search",json:!0,queryParams:{query:a.query,max_results:JSON.stringify(a.maxResults),origin_page_type:JSON.stringify(33),search_session_id:a.searchSessionId,symptom:a.symptom,user_context:a.userContext,v:"1"}}))})})} ;function qz(a){Jk.call(this);this.strings=a} y(qz,Jk);qz.prototype.get=function(a){var b;return null!==(b=this.strings[a])&&void 0!==b?b:""}; qz.prototype.set=function(a){this.strings=Object.assign(Object.assign({},this.strings),a);Mk(this)};function rz(a){z.call(this,a)} y(rz,z);function sz(a){z.call(this,a)} y(sz,z);function tz(a){z.call(this,a,-1,uz)} y(tz,z);var uz=[1];function vz(a){z.call(this,a)} y(vz,z);vz.prototype.getQuery=function(){return Pd(this,1)};function wz(a){z.call(this,a,-1,xz)} y(wz,z);var xz=[1];function yz(a){var b=a.items,c=a.Tc,e=void 0===a.nh?void 0:a.nh,f=void 0===a.vc?1:a.vc,h=void 0===a.wc?4:a.wc;a=a.hb;A.call(this,"hcfe.SearchSelect.Menu");var k=this;this.na=this.ha=!1;this.nh=e;this.items=b;this.Tc=c;this.Pm=-Infinity;this.Om=Infinity;this.ma=new Fo({content:function(){zz(k)}, Gg:4,vc:f,wc:h,Di:!0,hb:a})} y(yz,A);p=yz.prototype;p.content=function(){this.ma.render()}; function zz(a){a.element("div","class",{root:!0,"root-loading":a.ha},function(){a.na&&a.element("div","class","search-container",function(){a.element("div","class","input-container",function(){a.ta=a.element("input","class","search-field","placeholder",a.Tc.gw,"oninput",function(){var b;null===(b=a.nh)||void 0===b?void 0:b.call(a)},"disabled",a.ha)}); a.element("div","class","icon","onclick",function(){var b;null===(b=a.ta)||void 0===b?void 0:b.focus()},function(){var b; null!==(b=a.ua)&&void 0!==b?b:a.ua=new Rk({icon:"gm/search"});a.ua.render()})}); a.element("div","class","scroll-container","style",{minHeight:-Infinitya.Om?a.Om+"px":null},function(){a.ha&&a.element("div","class","loading-spinner",function(){(new Yo({size:"mspin-small"})).render()}); if(0a&&Infinity!==a&&(a=h);this.Pm=h;this.Om=a;this.Ca();this.ma.open({anchor:b,Id:c,vd:e,Kb:f})}; p.close=function(){this.ma.close()}; function Ez(a){return!!a.Zh&&Array.isArray(a.items)&&0b.length){f=[{state:5}];a.Aa.set("",f);n.Va(4);break}a.o.Ye(!0);a.o.open({Kb:!0});$a(n,5);return Ra(n,a.Ob(b.trim()),7);case 7:f=n.ha;0===f.length&&(f=[{state:4}]);a.o.Ye(!1);ab(n,4);break;case 5:h=cb(n),f=[{state:3}],a.o.Ye(!1),a.o.open({Kb:!0}), jA(h);case 4:return a.Aa.set("",f),k=a.o,l=k.Jg,Ra(n,Yz(a,!0),8);case 8:l.call(k,n.ha),a.o.Ca(),a.o.open({Kb:!0}),Wa(n)}})} function dA(a,b){return function(){a.ta=b;a.o.close();a.va&&a.va()}} Sz.prototype.getValues=function(){for(var a=[],b=u(this.ha.keys()),c=b.next();!c.done;c=b.next()){(c=c.value)&&!a.includes(c)&&a.push(c);c=u(this.ha.get(c));for(var e=c.next();!e.done;e=c.next())(e=e.value.Jc)&&!a.includes(e)&&a.push(e)}return a}; function $z(a,b){var c,e;return ob(function(f){if(1==f.o)return $a(f,2),Ra(f,a.ub(b),4);if(2!=f.o){c=f.ha;if(!c||0==c.length)return kA(a,b,Error("No results")),f.return();a.ha.set(b,c);return ab(f,0)}e=cb(f);kA(a,b,e);Wa(f)})} function kA(a,b,c){a.ha.set(b,[{state:2}]);a.Ra&&a.ua&&(a.ua=!1,a.Ra(c),Vz(a));jA(c)} function Vz(a){a.na=new $o({placeholder:"Google Ads Customer ID",Xb:!0,Pd:function(){a.ma=a.na.Ja().replace(Pz,"");a.$b()}, yd:a.$a})} function jA(a){a=new CustomEvent("cid_selector_fetch_error",{detail:a});ok().dispatchEvent(a)} function Tz(a){a.Aa.clear();a.Aa.set("",[Zz()])} function Zz(){return{value:"",trigger:function(){}, items:[],state:0}} ;function lA(a,b){this.ua=a;this.ya=b;this.ma="https://play.google.com/log?format=json&hasfast=true";this.oa=!1;this.va=xq;this.o=""} function mA(a){var b=new nq(a.ua,a.na?a.na:Mp,a.ya,a.va,a.ma,a.oa,!1,void 0,void 0,void 0,a.wa?a.wa:void 0);if(a.Aa){var c=a.Aa;Pd(c,1)||Vd(c,1,1);de(b.oa,1,c)}if(a.ha){c=a.ha;var e=be(b.oa,dq,1),f=be(e,bq,11);f||(f=new bq);Vd(f,7,c);de(e,11,f);Pd(e,1)||Vd(e,1,1);de(b.oa,1,e)}a.ta&&(b.wa=a.ta);a.o&&(b.Ba=a.o);a.ka&&qq(b,a.ka);a.Da&&(c=a.Da,b.ka||(b.ka=new yp),$d(b.ka,2,c));a.Ba&&(a=a.Ba,b.$a=!0,sq(b,a));return b} ;
Search Help Center
true
102095
");return null==a||null==a.sheet?dh:Wm(a.sheet,void 0!=b?b:null,c)} function $m(a){if(ef&&!rf(10)||"function"!=typeof id.DOMParser)return null;a=ih(""+a+"",null);return(new DOMParser).parseFromString(gh(a),"text/html").body.children[0]} function Ym(a,b){if(!a)return Tg;var c=document.createElement("div").style;an(a).forEach(function(e){var f=hf&&e in Vm?e:e.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");0!=f.lastIndexOf("--",0)&&0!=f.lastIndexOf("var",0)&&(e=Rm(a,e),e=qm(f,e,b),null!=e&&Sm(c,f,e))});return new Pg(c.cssText||"",Og)} function bn(a){var b=Array.from(Jm(ym,a,"getElementsByTagName",["STYLE"])),c=Fe(b,function(f){return le(Nm(f).cssRules)});c=Xm(c);c.sort(function(f,k){f=jm(f.selectorText);a:{k=jm(k.selectorText);for(var p=se,r=Math.min(f.length,k.length),t=0;t"+a+""),bn(a),a=a.innerHTML);a=ih(a,null);var c=document.createElement("template");if(hn&&"content"in c)Yh(c,a),c=c.content;else{var e=document.implementation.createHTMLDocument("x");c=e.body;Yh(e.body,a)}a=document.createTreeWalker(c,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,null,!1);for(c=dn?new WeakMap:new fn;e=a.nextNode();){a:{var f=e;switch(Pm(f)){case 3:f= kn(this,f);break a;case 1:if("TEMPLATE"==Om(f).toUpperCase())f=null;else{var k=Om(f).toUpperCase();if(k in this.ha||"http://www.w3.org/1999/xhtml"!=Tm(f))var p=null;else this.N[k]?p=document.createElement(k):(p=vj(document,"SPAN"),this.na&&Lm(p,"data-sanitizer-original-tag",k.toLowerCase()));if(p){var r=p,t=Km(f);if(null!=t)for(var y=0;k=t[y];y++)if(k.specified){var E=f;var ma=k;var na=ma.name;if(0==na.lastIndexOf("data-sanitizer-",0))ma=null;else{var ta=Om(E);ma=ma.value;var ua={tagName:Fd(ta).toLowerCase(),attributeName:Fd(na).toLowerCase()},sa={nh:void 0};"style"==ua.attributeName&&(sa.nh=Mm(E));E=ln(ta,na);E in this.v?(na=this.v[E],ma=na(ma,ua,sa)):(na=ln(null,na),na in this.v?(na=this.v[na],ma=na(ma,ua,sa)):ma=null)}null!==ma&&Lm(r,k.name,ma)}f=p}else f=null}break a;default:f=null}}if(f){if(1==Pm(f)&&c.set(e,f),e=Qm(e),k=!1,e)p=Pm(e),r=Om(e).toLowerCase(),t=Qm(e),11!=p||t?"body"==r&&t&&(p=Qm(t))&&!Qm(p)&&(k=!0):k=!0,p=null,k||!e?p=b:1==Pm(e)&&(p=c.get(e)),p.content&&(p=p.content),p.appendChild(f)}else xj(e)}c.clear&& c.clear();return b};var mn={APPLET:!0,AUDIO:!0,BASE:!0,BGSOUND:!0,EMBED:!0,FORM:!0,IFRAME:!0,ISINDEX:!0,KEYGEN:!0,LAYER:!0,LINK:!0,META:!0,OBJECT:!0,SCRIPT:!0,SVG:!0,STYLE:!0,TEMPLATE:!0,VIDEO:!0};var nn={A:!0,ABBR:!0,ACRONYM:!0,ADDRESS:!0,AREA:!0,ARTICLE:!0,ASIDE:!0,B:!0,BDI:!0,BDO:!0,BIG:!0,BLOCKQUOTE:!0,BR:!0,BUTTON:!0,CAPTION:!0,CENTER:!0,CITE:!0,CODE:!0,COL:!0,COLGROUP:!0,DATA:!0,DATALIST:!0,DD:!0,DEL:!0,DETAILS:!0,DFN:!0,DIALOG:!0,DIR:!0,DIV:!0,DL:!0,DT:!0,EM:!0,FIELDSET:!0,FIGCAPTION:!0,FIGURE:!0,FONT:!0,FOOTER:!0,FORM:!0,H1:!0,H2:!0,H3:!0,H4:!0,H5:!0,H6:!0,HEADER:!0,HGROUP:!0,HR:!0,I:!0,IMG:!0,INPUT:!0,INS:!0,KBD:!0,LABEL:!0,LEGEND:!0,LI:!0,MAIN:!0,MAP:!0,MARK:!0,MENU:!0,METER:!0,NAV:!0,NOSCRIPT:!0,OL:!0,OPTGROUP:!0,OPTION:!0,OUTPUT:!0,P:!0,PRE:!0,PROGRESS:!0,Q:!0,S:!0,SAMP:!0,SECTION:!0,SELECT:!0,SMALL:!0,SOURCE:!0,SPAN:!0,STRIKE:!0,STRONG:!0,STYLE:!0,SUB:!0,SUMMARY:!0,SUP:!0,TABLE:!0,TBODY:!0,TD:!0,TEXTAREA:!0,TFOOT:!0,TH:!0,THEAD:!0,TIME:!0,TR:!0,TT:!0,U:!0,UL:!0,VAR:!0,WBR:!0};var on={"ANNOTATION-XML":!0,"COLOR-PROFILE":!0,"FONT-FACE":!0,"FONT-FACE-SRC":!0,"FONT-FACE-URI":!0,"FONT-FACE-FORMAT":!0,"FONT-FACE-NAME":!0,"MISSING-GLYPH":!0};function pn(a){a=a||new qn;rn(a);this.v=Re(a.v);this.ha=Re(a.Ca);this.N=Re(a.Ia);this.na=a.va;a.ha.forEach(function(b){if(0!=b.lastIndexOf("data-",0))throw new Dd('Only "data-" attributes allowed, got: %s.',[b]);if(0==b.lastIndexOf("data-sanitizer-",0))throw new Dd('Attributes with "%s" prefix are not allowed, got: %s.',["data-sanitizer-",b]);this.v["* "+b.toUpperCase()]=sn},this);a.La.forEach(function(b){b=b.toUpperCase();if(-1==b.indexOf("-")||on[b])throw new Dd("Only valid custom element tag names allowed, got: %s.",[b]);this.N[b]=!0},this);this.ka=a.O;this.$=a.ya;this.O=null;this.ma=a.na} xd(pn,jn);function tn(a){return function(b,c){b=Fd(b);return(c=a(b,c))&&"about:invalid#zClosurez"!=Cg(c)?Cg(c):null}} function qn(){this.v={};Ud([gm,hm],function(a){Oe(a).forEach(function(b){this.v[b]=sn},this)},this);this.N={};this.ha=[];this.La=[];this.Ca=Re(mn);this.Ia=Re(nn);this.va=!1;this.Ma=Mg;this.ka=this.$=this.Pa=this.O=Vh;this.ya=null;this.ma=this.na=!1} function un(a,b){return function(c,e,f,k){c=a(c,e,f,k);return null==c?null:b(c,e,f,k)}} function vn(a,b,c,e){a[c]&&!b[c]&&(a[c]=un(a[c],e))} function rn(a){if(a.ma)throw Error("HtmlSanitizer.Builder.build() can only be used once.");vn(a.v,a.N,"* USEMAP",wn);var b=tn(a.Ma);["* ACTION","* CITE","* HREF"].forEach(function(e){vn(this.v,this.N,e,b)},a);var c=tn(a.O);["* LONGDESC","* SRC","LINK HREF"].forEach(function(e){vn(this.v,this.N,e,c)},a);["* FOR","* HEADERS","* NAME"].forEach(function(e){vn(this.v,this.N,e,ud(xn,this.Pa))},a);vn(a.v,a.N,"A TARGET",ud(yn,["_blank","_self"]));vn(a.v,a.N,"* CLASS",ud(zn,a.$));vn(a.v,a.N,"* ID",ud(An,a.$));vn(a.v,a.N,"* STYLE",ud(a.ka,c));a.ma=!0} function ln(a,b){a||(a="*");return(a+" "+b).toUpperCase()} function sn(a){return Fd(a)} function yn(a,b){b=Fd(b);return 0<=Td(a,b.toLowerCase())?b:null} function wn(a){return(a=Fd(a))&&"#"==a.charAt(0)?a:null} function xn(a,b,c){b=Fd(b);return a(b,c)} function zn(a,b,c){b=b.split(/(?:\s+)/);for(var e=[],f=0;f/i)&&a.match(/<\/td>$/i)&&(b=b||"td",a=""+a+"");a.match(/^/i)&&a.match(/<\/tr>$/i)&&(b=b||"tr",a=""+a+"");a.match(/^<(tbody|thead|tfoot)>/i)&&a.match(/<\/(tbody|thead|tfoot)>$/i)&&(b=b||a.match(/^<(tbody|thead|tfoot)>/i)[1],a=""+a+"
");a=Jn(a);b&&(a=a.querySelector(b).parentNode);return a} function In(a,b){for(var c=[a],e=null;e=c.pop();)Array.prototype.forEach.call(e.childNodes,function(f){f.nodeType===Node.TEXT_NODE?Kn(e,f,b):f.childNodes.length&&c.push(f)})} function Kn(a,b,c){if(b.textContent.match(Ln)){var e=b.nextSibling;a.removeChild(b);b=b.textContent;for(var f=null,k=[];f=Ln.exec(b);){0e&&(a=f+".autoNamespace"+this.$++);if(b){c&&(b=rd(b,c));var k=this.N[f];k||(k=[],this.N[f]=k);ce(k,this.v[a]);this.v[a]=b;k.push(b);this.O.hasOwnProperty(f)}else if(f.length)b=this.v[a],ce(this.N[f]||[],b),delete this.v[a];else if(1a.Ba?Math.floor(b*a.Ba):a.Ba,Ta:0a.Ta?Math.floor(b*a.Ta):a.Ta};a.Ta=Math.max(a.Ba,a.Ta);return a} function yo(a,b,c,e,f,k){var p=b.width-a.ha-a.ma;a.na=qp(p,b.width,b.height,pp(c,b.height),op(a,[1,2]));a.ka=qp(p,b.width,b.height,pp(f,b.height),op(a,[3,4]));c=b.height-a.na-a.ka;f=op(a,[3,4,1,2]);var r=0;for(p=0;pp){a=tp(f);for(e=b=0;ep-b-y.Ba.height&&y.yc&&(y.hc.height=0),b+=y.hc.height;return vi(b,k,c)}if(rk){a=tp(e);for(c=e=0;ck-e-t.Ba.width&&t.yc&&(t.hc.width=0),e+=t.hc.width;return vi(e,f,b)}if(pa,e=null!=b&&0b;if(null!=b&&(c&&e||!c&&!e)&&b=a.length?a:a.slice(0).sort(function(b,c){b=void 0!==b.Uc.Pf?b.Uc.Pf:20;c=void 0!==c.Uc.Pf?c.Uc.Pf:20;return b-c})} wo.prototype.setMargins=wo.prototype.Yc;wo.prototype.setMarginEnd=wo.prototype.vk;wo.prototype.setMarginStart=wo.prototype.yk;wo.prototype.setMarginLeft=wo.prototype.wk;wo.prototype.setMarginBottom=wo.prototype.uk;wo.prototype.setMarginRight=wo.prototype.xk;wo.prototype.setMarginTop=wo.prototype.zk;wd("aplos.chart.layout.DynamicLayout",wo);var up={pq:"WARNING",ERROR:"ERROR"};wd("aplos.util.MessageSeverity",up);up.WARNING="WARNING";up.ERROR="ERROR";var vp={mq:"UNTIL_REMOVED",lq:"UNTIL_DATA",Kp:"ONCE"};wd("aplos.util.MessageDuration",vp);vp.UNTIL_REMOVED="UNTIL_REMOVED";vp.UNTIL_FRESH_DATA="UNTIL_DATA";vp.ONCE="ONCE";function wp(a){this.v=a} wp.prototype.render=function(a){var b=a.filter(function(c){return"ERROR"===c.severity});b.length&&xp(this,b);b.length||(b=yp(this.v.Ja,zp),b.empty()||(b.style("display","none"),b.selectAll("div."+Ap).remove(),this.v.ab.style("display","")));a=a.filter(function(c){return"WARNING"===c.severity});Bp(this,a)};function xp(a,b){var c=zp,e=Cp,f=a.v,k=f.Ja;f.ab.style("display","none");a=yp(k,c);a.empty()&&(a=k.append("div").classed(c,!0),a.append("div").classed(Dp,!0),a.append("div").classed(Ep,!0));a.style("display",null);a.select("."+Ep).attr("class",Ep+" "+e);b=a.select("."+Dp).selectAll("div."+Ap).data(b);b.exit().remove();b=b.enter().append("div").merge(b);b.text(function(p){return p.message});b.attr("class",function(p){return Ap+" "+Fp+p.severity.toLowerCase()});a.style("position","absolute");b=(f.frameWidth()-a.node().offsetWidth)/2;f=(f.frameHeight()-a.node().offsetHeight)/2;b=Math.max(0,b);f=Math.max(0,f);a.style("left",b+"px");a.style("top",f+"px")} function Bp(a,b){var c=a.v.Ja.select("."+Gp);c.empty()&&(c=a.v.Ja.append("div").classed(Gp,!0));c.style("display",b.length?"":"none");c.classed(Hp,!0);var e="";b.forEach(function(f){e+=f.message+"\n"});c.attr("title",e.trim())} function yp(a,b){b=a.selectAll("."+b).nodes();for(var c=null,e=0;e>>0);function aq(a){if("function"===typeof a)return a;a[iq]||(a[iq]=function(b){return a.handleEvent(b)});return a[iq]} ;function jq(){this.port=this.v=null;this.N=[]} jq.prototype.load=function(){var a=this,b=kq();this.v=lq(b);mq().then(function(){document.body.appendChild(a.v)});return nq(this.v,b).then(function(c){for(a.port=c.ports[0];0e?c:c==e?c:e)});return c} wd("aplos.data.aggregations.max",yq);function vq(a,b){var c=0;b=b||Wh;a.forEach(function(e,f){e=b(e,f);null!=e&&("number"!==typeof e||!isNaN(e)&&isFinite(e))&&c++});return c} wd("aplos.data.aggregations.count",vq);function zq(a,b){var c=new Set;b=b||Wh;a.forEach(function(e,f){e=b(e,f);null!=e&&("number"!==typeof e||!isNaN(e)&&isFinite(e))&&c.add(e)});return c.size} wd("aplos.data.aggregations.countDistinct",zq);function Aq(a,b,c,e){if(2>a||!sq(a))throw Error("Number of quantiles must be an integer greater or equal to 2, but "+a+" was provided.");if(0>b||b>a||!sq(b))throw Error("Requested quantile must be an integer from 0 to the number of quanties, "+a+", but "+b+" was requested.");return Bq(b/a,c,e)} wd("aplos.data.aggregations.quantiles",Aq);function Bq(a,b,c){if(0>a||1c.length)var e=null;else{if(!c||2>c.length)e=null;else if(e=[],b){var f=Be(c,b),k=Ne(f);if(2>k.length)e=null;else for(f=De(k),c=0;cb?Date.UTC(b,3,7,10):Date.UTC(b,2,14,10);c-=864E5*(new Date(c)).getUTCDay();b=2007>b?Date.UTC(b,9,31,9):Date.UTC(b,10,7,9);b-=864E5*(new Date(b)).getUTCDay();return a>=c&&ae?(a=a.Gc(c+1)-e,(c*a+b-e)/a):ba&&b.setFullYear(b.getFullYear()-1900);return b} w=Tq.prototype;w.Me=Nq.Rk;w.Ne=Nq.Sk;w.clone=function(){var a=new Tq(this.date);a.Me=this.Me;a.Ne=this.Ne;return a};w.getFullYear=function(){return this.date.getFullYear()};w.getYear=function(){return this.getFullYear()};w.getMonth=function(){return this.date.getMonth()};w.getDate=function(){return this.date.getDate()};w.getTime=function(){return this.date.getTime()};w.getDay=function(){return this.date.getDay()};w.getUTCFullYear=function(){return this.date.getUTCFullYear()};w.getUTCMonth=function(){return this.date.getUTCMonth()};w.getUTCDate=function(){return this.date.getUTCDate()};w.getUTCDay=function(){return this.date.getDay()};w.getUTCHours=function(){return this.date.getUTCHours()};w.getUTCMinutes=function(){return this.date.getUTCMinutes()};w.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};w.set=function(a){this.date=new Date(a.getFullYear(),a.getMonth(),a.getDate())};w.setFullYear=function(a){this.date.setFullYear(a)};w.setYear=function(a){this.setFullYear(a)};w.setMonth=function(a){this.date.setMonth(a)};w.setDate=function(a){this.date.setDate(a)};w.setTime=function(a){this.date.setTime(a)};w.setUTCFullYear=function(a){this.date.setUTCFullYear(a)};w.setUTCMonth=function(a){this.date.setUTCMonth(a)};w.setUTCDate=function(a){this.date.setUTCDate(a)};w.add=function(a){if(a.N||a.months){var b=this.getMonth()+a.months+12*a.N,c=this.getYear()+Math.floor(b/12);b%=12;0>b&&(b+=12);var e=Math.min(Pq(c,b),this.getDate());this.setDate(1);this.setFullYear(c);this.setMonth(b);this.setDate(e)}a.days&&(c=this.getYear(),b=0<=c&&99>=c?-1900:0,a=new Date((new Date(c,this.getMonth(),this.getDate(),12)).getTime()+864E5*a.days),this.setDate(1),this.setFullYear(a.getFullYear()+b),this.setMonth(a.getMonth()),this.setDate(a.getDate()),Vq(this,a.getDate()))};w.fg=function(a){return[this.getFullYear(),di(this.getMonth()+1),di(this.getDate())].join(a?"-":"")+""};w.toString=function(){return this.fg()};function Vq(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()=c.vg?a-=c.Og-c.Hb:a<=c.Af&&(a-=c.Rf-c.Hb);return a} function br(a,b){b=b||"UTC";try{return Yq(a,"%Y-%m-%d %H:%M:%S",b)}catch(c){}try{return Yq(a,"%Y-%m-%d",b)}catch(c){}throw Error(a+" not of the form Y-M-D or Y-M-D H-M-S");} function cr(a,b,c){c=c||"UTC";var e=dr(b);er(a);Zq(c,"Invalid timezone specified");if("local"===c)return fr(a,e);var f=Math.floor(a/1E3);b=gr(f,c);switch(e){case "YEAR":return a=new Date(f+b),a=Date.UTC(a.getUTCFullYear(),0,1),c=gr(a,c),1E3*(a-c);case "QUARTER":return a=new Date(f+b),a=Date.UTC(a.getUTCFullYear(),3*Math.floor(a.getUTCMonth()/3),1),c=gr(a,c),1E3*(a-c);case "MONTH":return a=new Date(f+b),a=Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),1),c=gr(a,c),1E3*(a-c);case "WEEK":return a=new Xq,a.setTime(f+b),b=new Qq,b.days=-1*a.getUTCDay(),a.add(b),a=Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()),c=gr(a,c),1E3*(a-c);case "DAY":return a=new Date(f+b),a=Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()),c=gr(a,c),1E3*(a-c);case "HOUR":return a=f+b,1E3*hr(a-a%36E5-b,c);case "MINUTE":return a=f+b,1E3*hr(a-a%6E4-b,c);case "SECOND":return 1E3*hr(1E3*Math.floor(f/1E3),c);case "MILLISECOND":return 1E3*hr(Math.floor(f),c);case "MICROSECOND":return 1E3*hr(Math.floor(a)/1E3,c);default:throw Error("Unknown or unsupported date component for truncation:"+e+".");}} function ir(a,b,c,e){e=void 0===e?"UTC":e;if("local"===e){e=a;switch(b){case "YEAR":case "QUARTER":case "MONTH":"YEAR"===b?c*=12:"QUARTER"===b&&(c*=3);e=new Date(e/1E3);b=e.getFullYear();for(c=e.getMonth()+c;11c[a])f=a+2;else break;if(k=c.length|| 0>k)return{Hb:b,Af:null,vg:null,oh:null,Rf:null,Og:null};a=k;break}}e=b+6E7*c[a+1];f=b+6E7*c[a-1];return{Hb:e,Af:36E8*c[a],vg:36E8*c[a+2],oh:e-f,Rf:f,Og:b+6E7*c[a+3]}} function gr(a,b){return ar(1E3*a,b).Hb/1E3} function hr(a,b){var c=1E3*a;b=ar(c,b);var e=b.Rf-b.Hb;return a-(0>=e||c-e>b.Af?0:e)/1E3} function nr(a,b){if(!isFinite(b)||b!==parseInt(b,10))throw Error("value in "+a+" is not a finite integer.");} function Zq(a,b){if("string"!==typeof a)throw Error(b);} function er(a){if("number"!==typeof a)throw Error("Invalid timestamp");} for(var kr=/^(\+|-)(\d\d?)(?::(\d\d?))?$/,lr={"ETC/GMT+12":-432E5,"ETC/GMT+11":-396E5,"PACIFIC/MIDWAY":-396E5,"PACIFIC/NIUE":-396E5,"PACIFIC/PAGO_PAGO":-396E5,"PACIFIC/SAMOA":-396E5,"US/SAMOA":-396E5,"ETC/GMT+10":-36E6,HST:-36E6,"PACIFIC/HONOLULU":-36E6,"PACIFIC/JOHNSTON":-36E6,"PACIFIC/TAHITI":-36E6,"SYSTEMV/HST10":-36E6,"US/HAWAII":-36E6,"PACIFIC/MARQUESAS":-342E5,"ETC/GMT+9":-324E5,"PACIFIC/GAMBIER":-324E5,"SYSTEMV/YST9":-324E5,"ETC/GMT+8":-288E5,"PACIFIC/PITCAIRN":-288E5,"SYSTEMV/PST8":-288E5,"AMERICA/CRESTON":-252E5,"AMERICA/PHOENIX":-252E5,"ETC/GMT+7":-252E5,MST:-252E5,PNT:-252E5,"SYSTEMV/MST7":-252E5,"US/ARIZONA":-252E5,"AMERICA/REGINA":-216E5,"AMERICA/SWIFT_CURRENT":-216E5,"CANADA/EAST-SASKATCHEWAN":-216E5,"CANADA/SASKATCHEWAN":-216E5,"ETC/GMT+6":-216E5,"SYSTEMV/CST6":-216E5,"AMERICA/ATIKOKAN":-18E6,"AMERICA/CAYMAN":-18E6,"AMERICA/CORAL_HARBOUR":-18E6,"AMERICA/PANAMA":-18E6,EST:-18E6,"ETC/GMT+5":-18E6,"SYSTEMV/EST5":-18E6,"AMERICA/ANGUILLA":-144E5,"AMERICA/ANTIGUA":-144E5,"AMERICA/ARUBA":-144E5,"AMERICA/BLANC-SABLON":-144E5,"AMERICA/CARACAS":-144E5,"AMERICA/CURACAO":-144E5,"AMERICA/DOMINICA":-144E5,"AMERICA/GRENADA":-144E5,"AMERICA/GUADELOUPE":-144E5,"AMERICA/GUYANA":-144E5,"AMERICA/KRALENDIJK":-144E5,"AMERICA/LA_PAZ":-144E5,"AMERICA/LOWER_PRINCES":-144E5,"AMERICA/MARIGOT":-144E5,"AMERICA/MONTSERRAT":-144E5,"AMERICA/PORT_OF_SPAIN":-144E5,"AMERICA/PUERTO_RICO":-144E5,"AMERICA/ST_BARTHELEMY":-144E5,"AMERICA/ST_KITTS":-144E5,"AMERICA/ST_LUCIA":-144E5,"AMERICA/ST_THOMAS":-144E5,"AMERICA/ST_VINCENT":-144E5,"AMERICA/TORTOLA":-144E5,"AMERICA/VIRGIN":-144E5,"ETC/GMT+4":-144E5,PRT:-144E5,"SYSTEMV/AST4":-144E5,"AMERICA/CAYENNE":-108E5,"AMERICA/PARAMARIBO":-108E5,"ANTARCTICA/ROTHERA":-108E5,"ETC/GMT+3":-108E5,"ATLANTIC/SOUTH_GEORGIA":-72E5,"ETC/GMT+2":-72E5,"ATLANTIC/CAPE_VERDE":-36E5,"ETC/GMT+1":-36E5,"AFRICA/ABIDJAN":0,"AFRICA/ACCRA":0,"AFRICA/BAMAKO":0,"AFRICA/BANJUL":0,"AFRICA/BISSAU":0,"AFRICA/CONAKRY":0,"AFRICA/DAKAR":0,"AFRICA/FREETOWN":0,"AFRICA/LOME":0,"AFRICA/MONROVIA":0,"AFRICA/NOUAKCHOTT":0,"AFRICA/OUAGADOUGOU":0,"AFRICA/TIMBUKTU":0,"ATLANTIC/REYKJAVIK":0,"ATLANTIC/ST_HELENA":0,"ETC/GMT":0,"ETC/GMT+0":0,"ETC/GMT0":0,"ETC/GREENWICH":0,"ETC/UCT":0,"ETC/UNIVERSAL":0,"ETC/UTC":0,"ETC/ZULU":0,FACTORY:0,GMT:0,"GMT+0":0,GMT0:0,GREENWICH:0,ICELAND:0,UCT:0,UNIVERSAL:0,UTC:0,ZULU:0,"AFRICA/BANGUI":36E5,"AFRICA/BRAZZAVILLE":36E5,"AFRICA/DOUALA":36E5,"AFRICA/KINSHASA":36E5,"AFRICA/LAGOS":36E5,"AFRICA/LIBREVILLE":36E5,"AFRICA/LUANDA":36E5,"AFRICA/MALABO":36E5,"AFRICA/NIAMEY":36E5,"AFRICA/PORTO-NOVO":36E5,"AFRICA/SAO_TOME":36E5,"ETC/GMT-1":36E5,"AFRICA/BLANTYRE":72E5,"AFRICA/BUJUMBURA":72E5,"AFRICA/GABORONE":72E5,"AFRICA/HARARE":72E5,"AFRICA/JOHANNESBURG":72E5,"AFRICA/KIGALI":72E5,"AFRICA/LUBUMBASHI":72E5,"AFRICA/LUSAKA":72E5,"AFRICA/MAPUTO":72E5,"AFRICA/MASERU":72E5,"AFRICA/MBABANE":72E5,CAT:72E5,"ETC/GMT-2":72E5,"AFRICA/ADDIS_ABABA":108E5,"AFRICA/ASMARA":108E5,"AFRICA/ASMERA":108E5,"AFRICA/DAR_ES_SALAAM":108E5,"AFRICA/DJIBOUTI":108E5,"AFRICA/KAMPALA":108E5,"AFRICA/MOGADISHU":108E5,"AFRICA/NAIROBI":108E5,"ANTARCTICA/SYOWA":108E5,"ASIA/ADEN":108E5,"ASIA/BAHRAIN":108E5,"ASIA/KUWAIT":108E5,"ASIA/QATAR":108E5,"ASIA/RIYADH":108E5,EAT:108E5,"ETC/GMT-3":108E5,"INDIAN/ANTANANARIVO":108E5,"INDIAN/COMORO":108E5,"INDIAN/MAYOTTE":108E5,"ASIA/DUBAI":144E5,"ASIA/MUSCAT":144E5,"ETC/GMT-4":144E5,"INDIAN/MAHE":144E5,"INDIAN/REUNION":144E5,"ASIA/KABUL":162E5,"ANTARCTICA/MAWSON":18E6,"ETC/GMT-5":18E6,"INDIAN/KERGUELEN":18E6,"INDIAN/MALDIVES":18E6,"ASIA/CALCUTTA":198E5,"ASIA/COLOMBO":198E5,"ASIA/KOLKATA":198E5,IST:198E5,"ASIA/KATHMANDU":207E5,"ASIA/KATMANDU":207E5,"ANTARCTICA/VOSTOK":216E5,"ASIA/KASHGAR":216E5,"ASIA/THIMBU":216E5,"ASIA/THIMPHU":216E5,"ASIA/URUMQI":216E5,"ETC/GMT-6":216E5,"INDIAN/CHAGOS":216E5,"ASIA/RANGOON":234E5,"ASIA/YANGON":234E5,"INDIAN/COCOS":234E5,"ANTARCTICA/DAVIS":252E5,"ASIA/BANGKOK":252E5,"ASIA/HO_CHI_MINH":252E5,"ASIA/JAKARTA":252E5,"ASIA/PHNOM_PENH":252E5,"ASIA/PONTIANAK":252E5,"ASIA/SAIGON":252E5,"ASIA/VIENTIANE":252E5,"ETC/GMT-7":252E5,"INDIAN/CHRISTMAS":252E5,VST:252E5,"ANTARCTICA/CASEY":288E5,"ASIA/BRUNEI":288E5,"ASIA/KUALA_LUMPUR":288E5,"ASIA/KUCHING":288E5,"ASIA/MAKASSAR":288E5,"ASIA/SINGAPORE":288E5,"ASIA/UJUNG_PANDANG":288E5,"ETC/GMT-8":288E5,SINGAPORE:288E5,"ASIA/DILI":324E5,"ASIA/JAYAPURA":324E5,"ASIA/PYONGYANG":324E5,"ASIA/TOKYO":324E5,"ETC/GMT-9":324E5,JAPAN:324E5,JST:324E5,"PACIFIC/PALAU":324E5,ACT:342E5,"AUSTRALIA/DARWIN":342E5,"AUSTRALIA/NORTH":342E5,"ANTARCTICA/DUMONTDURVILLE":36E6,"ETC/GMT-10":36E6,"PACIFIC/CHUUK":36E6,"PACIFIC/GUAM":36E6,"PACIFIC/PORT_MORESBY":36E6,"PACIFIC/SAIPAN":36E6,"PACIFIC/TRUK":36E6,"PACIFIC/YAP":36E6,"ETC/GMT-11":396E5,"PACIFIC/BOUGAINVILLE":396E5,"PACIFIC/GUADALCANAL":396E5,"PACIFIC/KOSRAE":396E5,"PACIFIC/POHNPEI":396E5,"PACIFIC/PONAPE":396E5,SST:396E5,"ETC/GMT-12":432E5,KWAJALEIN:432E5,"PACIFIC/FUNAFUTI":432E5,"PACIFIC/KWAJALEIN":432E5,"PACIFIC/MAJURO":432E5,"PACIFIC/NAURU":432E5,"PACIFIC/TARAWA":432E5,"PACIFIC/WAKE":432E5,"PACIFIC/WALLIS":432E5,"ETC/GMT-13":468E5,"PACIFIC/ENDERBURY":468E5,"PACIFIC/FAKAOFO":468E5,"ETC/GMT-14":504E5,"PACIFIC/KIRITIMATI":504E5},mr={},or=[2770,60,7137,0,11506,60,16041,0,20410,60,24777,0,29146,60,33513,0,35194,60,42249,0,45106,60,50985,0,55354,60,59889,0,64090,60,68625,0,72994,60,77361,0,81730,60,86097,0,90466,60,94833,0,99202,60,103569,0,107938,60,112473,0,116674,60,121209,0,125578,60,129945,0,134314,60,138681,0,143050,60,147417,0,151282,60,156153,0,160018,60,165057,0,168754,60,173793,0,177490,60,182529,0,186394,60,191265,0,195130,60,200001,0,203866,60,208905,0,212602,60,217641,0,221338,60,226377,0,230242,60,235113,0,238978,60,243849,0,247714,60,252585,0,256450,60,261489,0,265186,60,270225,0,273922,60,278961,0,282826,60,287697,0,291562,60,296433,0,300298,60,305337,0,309034,60,314073,0,317770,60,322809,0,326002,60,331713,0,334738,60,340449,0,343474,60,349185,0,352378,60,358089,0,361114,60,366825,0,369850,60,375561,0,378586,60,384297,0,387322,60,393033,0,396058,60,401769,0,404962,60,410673,0,413698,60,419409,0,422434,60,428145,0,431170,60,436881,0,439906,60,445617,0,448810,60,454521,0,457546,60,463257,0,466282,60,471993,0,475018,60,480729,0,483754,60,489465,0,492490,60,498201,0,501394,60,507105,0,510130,60,515841,0,518866,60,524577,0,527602,60,533313,0,536338,60,542049,0,545242,60,550953,0,553978,60,559689,0,562714,60,568425,0,571450,60,577161,0,580186,60,585897,0,588922,60,594633,0],pr=Kc(["PST8PDT","America/Los_Angeles","US/Pacific"]),qr=pr.next();!qr.done;qr=pr.next()){var rr=qr.value.toUpperCase();mr[rr]={id:rr,yn:-480,Fo:or}} var sr={YEAR:"YEAR",QUARTER:"QUARTER",MONTH:"MONTH",WEEK:"WEEK",DAYOFYEAR:"DAYOFYEAR",DAY:"DAY",DAYOFWEEK:"DAYOFWEEK",HOUR:"HOUR",MINUTE:"MINUTE",SECOND:"SECOND",MILLISECOND:"MILLISECOND",MICROSECOND:"MICROSECOND"},tr={},ur;for(ur in sr)tr[sr[ur]]=ur;var vr=tr;function dr(a){if(!a)throw Error("Missing date component.");var b=vr[a.toUpperCase()];if(!b)throw Error("Invalid date component "+a);return b} function fr(a,b){var c=new Date(a/1E3);switch(b){case "YEAR":c=new Date(c.getFullYear(),0,1);break;case "QUARTER":c=new Date(c.getFullYear(),3*Math.floor(c.getMonth()/3),1);break;case "MONTH":c=new Date(c.getFullYear(),c.getMonth(),1);break;case "WEEK":a=-1*c.getDay();c=new Date(c.getFullYear(),c.getMonth(),c.getDate());c.setDate(c.getDate()+a);break;case "DAY":c=new Date(c.getFullYear(),c.getMonth(),c.getDate());break;case "HOUR":c=new Date(c.getFullYear(),c.getMonth(),c.getDate(),c.getHours());break;case "MINUTE":c=new Date(c.getFullYear(),c.getMonth(),c.getDate(),c.getHours(),c.getMinutes());break;case "SECOND":return 1E6*Math.floor(a/1E6);case "MILLISECOND":return 1E3*Math.floor(a/1E3);case "MICROSECOND":return Math.floor(a);default:throw Error("Unknown or unsupported date component for truncation:"+b+".");}return 1E3*c.getTime()} ;function wr(a,b){var c=xr(a,void 0===b?"__default__":b);return function(e){return null==e?"null":c(e/1E3)}} function xr(a,b){b=void 0===b?"__default__":b;var c=!1;0<=a.indexOf("%Z")&&(c=!0,a=a.replace("%Z","_tzhereplz_"));var e=yr();return function(f){if(null==f)return"null";"string"===typeof f&&(f=+f);md(f)&&(f=f.getTime());var k="__default__"===b?Fq:b,p=zr(a);if("local"===k){p=Ar(a);var r=f;k=-6E7*(new Date(f)).getTimezoneOffset()}else"UTC"===k||"+00:00"===k?(r=f,k=0):(f*=1E3,r=ar(f,k),r=(f+r.Hb)/1E3,k=jr(f,k));r=new Date(r);if(isNaN(r.getTime()))return"Invalid date";p=p(r);if(!c)return p;k=(0<=k?"+":"")+e(k);return p.replace("_tzhereplz_",k)}} function yr(){var a=ji("02.0f");return function(b){if(null==b)return"null";"string"===typeof b&&(b=+b);var c=0<=b?"":"-";b=Math.abs(b);var e=Math.floor(b/36E8);b=Math.floor((b-36E8*e)/6E7);return""+c+a(e)+":"+a(b)}} ;var Br=["COUNT","COUNT_DISTINCT","COUNT_DISTINCT_EST"],Cr="SUM AVG MIN MAX QUANTILE_50 QUANTILE_75 QUANTILE_90 QUANTILE_95 QUANTILE_99".split(" ").concat(Br),Dr=["MIN","MAX"].concat(Br),Er={},Fr=(Er[["string"]]={Vb:void 0,zc:!1,nc:"integer",tc:function(){return String},oc:"",xc:"aplos-string-cell",mc:Br,Fb:1,bc:"string",vc:function(a){return a},lc:function(a){return"COUNT_DISTINCT("+a+")"},kc:function(a){if(null==a)return"null";if("string"!==typeof a)return String(a);a=a.replace(/\\/g,"\\\\");a=a.replace(/"/g,'\\"');a=a.replace(/\n/g,"\\n");a=a.replace(/\r/g,"\\r");return'"'+a+'"'}},Er[["decimal"]]={Vb:void 0,zc:!1,nc:"decimal",tc:gi,oc:".2f",xc:"aplos-numeric-cell",mc:Cr,Fb:2,bc:"number",vc:function(a){return a},lc:function(a){return"SUM("+a+")"},kc:String},Er[["integer"]]={Vb:void 0,zc:!1,nc:"integer",tc:gi,oc:".0f",xc:"aplos-numeric-cell",mc:Cr,Fb:2,bc:"number",vc:function(a){return a},lc:function(a){return"SUM("+a+")"},kc:String},Er[["time_us"]]={Vb:.001,zc:!1,nc:"integer",tc:wr,oc:"%Y-%m-%d %H:%M:%S",xc:"aplos-date-cell",mc:Dr,Fb:3,bc:"number",vc:function(a){return a},lc:function(a){return"COUNT_DISTINCT("+a+")"},kc:function(a){md(a)&&(a=1E3*a.getTime());return String(a)}},Er[["time_ms"]]={Vb:1,zc:!1,nc:"integer",tc:xr,oc:"%Y-%m-%d %H:%M:%S",xc:"aplos-date-cell",mc:Dr,Fb:3,bc:"number",vc:function(a){return a},lc:function(a){return"COUNT_DISTINCT("+a+")"},kc:function(a){md(a)&&(a=a.getTime());return String(a)}},Er[["timestamp"]]={Vb:.001,zc:!1,nc:"integer",tc:wr,oc:"%Y-%m-%d %H:%M:%S",xc:"aplos-date-cell",mc:Dr,Fb:3,bc:"number",vc:function(a){return a},lc:function(a){return"COUNT_DISTINCT("+a+")"},kc:function(a){if(null==a)return"null";md(a)&&(a=1E3*a.getTime());return"TIMESTAMP_MICROS("+a+")"}},Er[["date"]]={Vb:.001,zc:!0,nc:"integer",tc:function(a){return wr(a,"UTC")},oc:"%Y-%m-%d",xc:"aplos-date-cell",mc:Dr,Fb:3,bc:"number",vc:function(a){return a},lc:function(a){return"COUNT_DISTINCT("+a+")"},kc:function(a){if(null==a)return"null";md(a)&&(a=1E3*a.getTime());return"DATE(TIMESTAMP_MICROS("+a+'), "UTC")'}},Er[["datetime"]]={Vb:.001,zc:!0,nc:"integer",tc:function(a){return wr(a,"UTC")},oc:"%Y-%m-%d %H:%M:%S",xc:"aplos-date-cell",mc:Dr,Fb:3,bc:"number",vc:function(a){return a},lc:function(a){return"COUNT_DISTINCT("+a+")"},kc:function(a){if(null==a)return"null";md(a)&&(a=1E3*a.getTime());return"DATETIME(TIMESTAMP_MICROS("+a+'), "UTC")'}},Er[["boolean"]]={Vb:void 0,zc:!1,nc:"integer",tc:function(){return String},oc:"",xc:"",mc:Br,Fb:4,bc:"boolean",vc:function(a){return a},lc:function(a){return"SUM(CASE WHEN "+a+" THEN 1 ELSE 0 END)"},kc:String},Er[["hll_sketch"]]={Vb:void 0,zc:!1,nc:"integer",tc:gi,oc:".0f",xc:"aplos-numeric-cell",mc:["HLL_COUNT.MERGE"],Fb:2,bc:"number",vc:function(a){return"HLL_COUNT.EXTRACT("+a+")"},lc:function(a){return"HLL_COUNT.MERGE("+a+")"},kc:String},Er[["message"]]={Vb:void 0,zc:!1,nc:"integer",tc:function(){return function(a){return JSON.stringify(a,null,2)}},oc:"",xc:"aplos-string-cell",mc:[],Fb:1,bc:"object",vc:function(a){return a},lc:function(a){return"COUNT_DISTINCT(TO_JSON_STRING("+a+"))"},kc:String},Er[["array"]]={Vb:void 0,zc:!1,nc:"integer",tc:function(){return function(a){return JSON.stringify(a,null,2)}},oc:"",xc:"aplos-string-cell",mc:[],Fb:1,bc:"object",vc:function(a){return a},lc:function(a){return"COUNT_DISTINCT(TO_JSON_STRING("+a+"))"},kc:String},Er[["kll_int64"]]={uj:!0,Vb:void 0,nc:"integer",tc:gi,oc:".0f",xc:"aplos-numeric-cell",mc:["KLL_INT64_QUANTILE_50","KLL_INT64_QUANTILE_75","KLL_INT64_QUANTILE_90","KLL_INT64_QUANTILE_95","KLL_INT64_QUANTILE_99"],Fb:2,bc:"number",vc:function(a){return"KLL_QUANTILES.EXTRACT_POINT_INT64("+a+", 0.5)"},lc:function(a){return"KLL_QUANTILES.MERGE_POINT_INT64("+a+", 0.5)"},kc:String},Er[["kll_double"]]={uj:!0,Vb:void 0,nc:"decimal",tc:gi,oc:".2f",xc:"aplos-numeric-cell",mc:["KLL_DOUBLE_QUANTILE_50","KLL_DOUBLE_QUANTILE_75","KLL_DOUBLE_QUANTILE_90","KLL_DOUBLE_QUANTILE_95","KLL_DOUBLE_QUANTILE_99"],Fb:2,bc:"number",vc:function(a){return"KLL_QUANTILES.EXTRACT_POINT_DOUBLE("+a+", 0.5)"},lc:function(a){return"KLL_QUANTILES.MERGE_POINT_DOUBLE("+a+", 0.5)"},kc:String},Er);function Gr(a){if("string"===typeof a)return"string";if("number"===typeof a)return"decimal";if("boolean"===typeof a)return"boolean";if(md(a))return"timestamp";if(null==a)return"string";throw Error("Unknown filter value type: "+a);} ;var Hr={EQUALS:"=",GREATER_THAN:">",LESS_THAN:"<",GREATER_THAN_EQUALS:">=",LESS_THAN_EQUALS:"<=",NOT_EQUALS:"!=",IN:"IN",NOT_IN:"NOT_IN",BETWEEN:"BETWEEN",NOT_BETWEEN:"NOT_BETWEEN",IS_NULL:"IS_NULL",IS_NOT_NULL:"IS_NOT_NULL",IS_INFINITY:"IS_INFINITY",IS_NOT_INFINITY:"IS_NOT_INFINITY",IS_NAN:"IS_NAN",IS_NOT_NAN:"IS_NOT_NAN",CONTAINS:"CONTAINS",DOES_NOT_CONTAIN:"DOES_NOT_CONTAIN",REGEX:"REGEX",NOT_REGEX:"NOT_REGEX"};wd("aplos.data.FilterOperator",Hr);function Ir(a,b,c){return Jr(b).lb(a,c)} function Kr(a,b){return(a=Jr(a).ze)?a(b):b} var Lr={},Rr=(Lr["="]={lb:function(a,b){return"null"===b[0]?Mr(a):a+" = "+b[0]},ze:null},Lr[">"]={lb:function(a,b){return a+" > "+b[0]},ze:function(a){return[Nr(a)]}},Lr["<"]={lb:function(a,b){return a+" < "+b[0]},ze:function(a){return[Or(a)]}},Lr[">="]={lb:function(a,b){return a+" >= "+b[0]},ze:function(a){return[Nr(a)]}},Lr["<="]={lb:function(a,b){return a+" <= "+b[0]},ze:function(a){return[Or(a)]}},Lr["!="]={lb:function(a,b){return"null"===b[0]?Pr(a):a+" != "+b[0]}},Lr.IN={lb:function(a,b){if(null==b||0===b.length)return"true = false";b=b.slice();var c=je(b,function(e){return"null"===e});if(c&&0===b.length)return Mr(a);b=a+" IN ("+b.join(",")+")";return c?"("+b+" OR "+Mr(a)+")":b}},Lr.NOT_IN={lb:function(a,b){if(null==b||0===b.length)return"true = true";b=b.slice();var c=je(b,function(e){return"null"===e});if(c&&0===b.length)return Pr(a);b=a+" NOT IN ("+b.join(",")+")";return c?"("+b+" AND "+Pr(a)+")":b}},Lr.BETWEEN={lb:function(a,b){return a+" BETWEEN "+b[0]+" AND "+b[1]},ze:function(a){return si(a)}},Lr.NOT_BETWEEN={lb:function(a,b){return a+" NOT BETWEEN "+b[0]+" AND "+b[1]},ze:function(a){return si(a)}},Lr.IS_NULL={lb:Mr},Lr.IS_NOT_NULL={lb:Pr},Lr.IS_INFINITY={lb:function(a){return"IS_INF("+a+")"}},Lr.IS_NOT_INFINITY={lb:function(a){return"NOT(IS_INF("+a+"))"}},Lr.IS_NAN={lb:function(a){return"IS_NAN("+a+")"}},Lr.IS_NOT_NAN={lb:function(a){return"NOT(IS_NAN("+a+"))"}},Lr.CONTAINS={lb:function(a,b){return Qr(a,b[0])}},Lr.DOES_NOT_CONTAIN={lb:function(a,b){return"NOT("+Qr(a,b[0])+")"}},Lr.REGEX={lb:function(a,b){return"REGEXP_MATCH("+a+", "+b[0]+")"}},Lr.NOT_REGEX={lb:function(a,b){return"NOT(REGEXP_MATCH("+a+", "+b[0]+"))"}},Lr);function Qr(a,b){b=b||"";b.startsWith('"')&&b.endsWith('"')&&(b=b.substring(1,b.length-1));b=(b||"").toString().replace(Sr,"\\\\$1");b=b.replace(/'/g,"\\'");return"REGEXP_MATCH("+a+", '(?is).*"+b+".*')"} function Mr(a){return a+" IS NULL"} function Pr(a){return a+" IS NOT NULL"} function Jr(a){if(null==Rr[a])throw Error("Unknown filter operator: "+a);return Rr[a]} var Sr=/([.?*+^$[\]\\(){}|-])/g;function Tr(a,b,c){if("string"!==typeof a)return a={zf:void 0!==a.column?a.column:a.zf,operator:void 0!==a.operator?a.operator:a.operator,value:void 0!==a.value?a.value:a.value},Array.isArray(a.value)&&("="===a.operator?a.operator="IN":"!="===a.operator&&(a.operator="NOT_IN")),a;if(null==b)throw Error("No operator specified.");return{zf:a,operator:b,value:void 0!==c?c:""}} wd("aplos.data.SimpleFilter",function(){});wd("aplos.data.SimpleFilter.Operator",Hr);wd("aplos.data.SimpleFilter.buildFromFilterOrValues",Tr);function Ur(a){for(var b=0;be&&(f=1));return null!=f?"ASC"===a?f:-1*f:0} var $r=Wr.bind(null,"ASC",!1);function Zr(a){return null==a?0:-Infinity===a?2:Infinity===a?4:"number"===typeof a&&isNaN(a)?1:3} var Xr=!1,Yr=/^-?[0-9]*(\.)?[0-9]+$/;wd("aplos.data.util.toFilterExpression",function(a,b,c,e){b=void 0===b?"=":b;c=void 0===c?!0:c;if(!0===c&&"="===b)return a;var f=[];void 0!==c&&(c=Array.isArray(c)?c:[c],c=Kr(b,c),c.forEach(function(k){var p=null==e?Gr(k):e;f.push(Fr[p].kc(k))}));return Ir(a,b,f)});wd("aplos.data.util.seriesHasData",function(a,b){return a.data.some(function(c){return null!=c[b]})});wd("aplos.data.util.sort",Wr);function as(a){this.sf=this.Sa=.35;this.rb=this.Qb=null;this.ka=new Set;this.v=[0,1];this.na=new Ek;this.N=0;this.Ma=!1;this.Va=null!=a?a:2;this.O=!0;this.ma=this.Xd=null;this.Zb=!1;this.ha=null;this.La=!1;this.Ia=1;this.Pa=0;this.va=null;this.Ya=1;this.rf=this.Pc=this.nf=this.qf=this.$=null;this.tf=new tj(0,0);this.Ca=this.ya=null;this.uc=void 0;this.ig=new bs(this);ds(this)} w=as.prototype;w.vi=function(a){this.Va=a;this.O=!0;return this};w.ak=function(a){this.Sa=a;2==this.Va&&this.vi(this.Va);return this};w.Pl=function(){return this.Sa};w.Yj=function(a,b){this.Qb=a;this.rb=b;this.O=!0;return this};w.Xg=function(a){this.rf=a;return this};w.Qe=function(){return this.rf};w.ub=function(){return this.na};w.ag=function(a){this.na=a;return this};w.Fk=function(a){this.Xd=a;return this};w.zi=function(a){this.ma=a;this.La||(this.ha=null);this.ma instanceof es&&(a=this.ma.Dg(),"function"===typeof a&&this.Od(a));this.O=!0;return this};w.Vm=function(){return this.ma};w.Xj=function(a){this.Ma=a;this.O=!0;return this};w.Od=function(a){this.uc=a;2===this.Va&&(this.O=!0)};function fs(a){a.ka.clear();a.La||(a.ha=null);a.O=!0} function gs(a,b,c,e){for(var f=0;f=e[0]*e[1]?NaN:b>e[0]!=e[1]>e[0]!=f[1]>f[0]?Nr(c):Or(c)} function js(a,b){return a.Xd||b||function(c){return null!=c?c.toString():""}} w.bandwidth=function(){ds(this);return 2==this.Va?this.Ka.bandwidth():this.va?2===this.Ya?this.Ka(this.va)-this.Ka(0):this.va||0:0};function ks(a){ds(a);return 2==a.Va?[kj(a.Ka,a.v[0]),kj(a.Ka,a.v[1])]:a.Ka.domain()} w.Ak=function(a){this.ha=a;this.La=null!=a;this.ti(1,0);return this};w.ti=function(a,b){this.Ia=a;this.Pa=b;this.O=!0};function ls(a,b,c,e,f,k,p){a.Zb!==k&&(a.O=!0);a.$=b;a.qf=c;a.nf=e;a.N=f;a.Zb=k;a.Pc=p} w.Ch=function(){var a=ni(this.N);null==this.Qe()&&this.na.Pj(this.$);return{position:a,Pf:10}};w.hg=function(a){var b=ni(this.N);b=gg(a,this.Qe(),b);if(null!=b)return b;b=this.range();this.range(1===this.N||3===this.N?[a.height,0]:[0,a.width]);var c=ms(this,this.Pc);a=this.na.ih(this.$,c,this.N,a,this.bandwidth(),this.Ca);this.range(b);return a};w.Eh=function(){return 0};w.Fh=function(){return 0};w.Wg=function(a){var b=a.right-a.left,c=a.bottom-a.top;if(1===this.N||3===this.N){var e=this.range();this.range(e[0]<=e[1]?[0,c]:[c,0])}else this.range([0,b]);this.tf=new tj(b,c);this.ya=a};w.Ef=function(){return this.ya};w.render=function(a,b){if(this.$){var c=this.ya;this.$.attr("transform","translate("+((1==this.N?c.right:c.left)-a.Kb())+", "+((2==this.N?c.bottom:c.top)-a.Lb())+")");c=ms(this,this.Pc);var e=is(this,0);if(isNaN(e))switch(this.N){case 0:e=a.wb();break;case 1:e=0;break;case 3:e=a.Za();break;case 2:e=0}var f={top:a.Lb(),right:a.Kb()+a.Za(),bottom:a.Lb()+a.wb(),left:a.Kb()};this.na.render(this.$,c,this.N,new tj(a.Za(),a.wb()),this.tf,this.bandwidth(),b,this.Ca,this.qf,e,this.nf,this.ya,f)}};function ms(a,b){ds(a);var c=ns(a),e=a.Xd;c.Ye()||(e=js(a,b));b=c.Mb(2==a.Va?null:a.Ka.domain(),Math.abs(a.v[0]-a.v[1]),Array.from(a.ka),e,a,a.ig).map(function(k){k&&void 0!==k.value||(k={value:k});void 0===k.location&&(k.location=Math.round(Jp(this,k.value)));return k},a).filter(function(k){return k.location>=Math.min(this.v[0],this.v[1])&&k.location<=Math.max(this.v[0],this.v[1])},a);var f=b.map(function(k){return k.value});b.forEach(function(k){null==k.label&&(k.label=e(k.value,f));k.label=k.label.toString()},a);return b} function os(a){if(!a.ha)if(2==a.Va){var b=Array.from(a.ka);0=b?[1,10]:[b/Math.sqrt(10),b*Math.sqrt(10)];case 3:return null==b?(a=Date.now(),[a-864E5,a]):[+b-432E5,+b+432E5];default:throw Error("Unsupported scale type: "+a.Va);}} w.Od=function(a){this.uc=a};w.Dg=function(){return this.uc};w.Ye=function(){return!1};w.Mb=function(a,b,c,e,f,k){this.Ka&&this.Ka.ticks?("function"===typeof this.uc&&this.Ka.domainOverride&&this.Ka.domainOverride(this.uc),a[0]==a[1]&&(a=ps(this,a[0])),a=this.Ka.domain(a||c).range([0,b]).ticks().map(function(t){return"number"===typeof t?+t.toFixed(7):t})):a=c;if(this.Lj&&k&&f){var p=2,r=Ip(a,f,e);for(e=r;k.v.na&&k.v.$&&k.v.na.Ii(e,k.v.$,k.v.N)&&2=b)return[];var f=this.mh||Ms(c),k=1E3*Fr[f].Vb;f=a[0]>a[1];c=si(c);a=si(a);0===c[1]-c[0]&&(a=c=[c[0]-36E8,c[0]+36E8]);var p=+c[0]*k;c=+a[0]*k;a=+a[1]*k;var r=Ns(this,(a-c)/(b/this.vn));b=r.interval;r=r.unit;var t=e;e&&(t=function(sa){return e(sa/1E3)});var y=t||Os(this,this.th[r].tick),E=t||Os(this,this.th[r].Dc);t=t||Os(this,this.th[r].transition);var ma=Ps(r);p=this.yg(b,r,c,p);for(var na=[];p<=a;){if(p>=c){var ta=y(p),ua="minor";ma&&this.lf(p,ma)===p&&(ua="major",t&&(ta=t(p)));na.push({value:p,Ih:ua,label:ta})}p=this.Ge(p,r,b)}E&&na.length&&(na[0].label=E(na[0].value));1!==k&&na.forEach(function(sa){sa.value=sa.value/k});return!1===f?na:na.reverse()};w.Fd=function(a,b,c){b=this.Mb(a,b,c);return b.length?si(b,function(e){return e.value}):a};function Ns(a,b){for(var c=Kc(a.Bi),e=c.next();!e.done;e=c.next())if(e=e.value,Qs[e.unit]*e.interval>=b)return e;return a.Bi[a.Bi.length-1]} function Ps(a){switch(a){case "MONTH":case "WEEK":return"YEAR";case "DAY":return"MONTH";case "HOUR":return"DAY";case "MINUTE":return"HOUR";case "SECOND":return"MINUTE";case "MILLISECOND":return"SECOND"}return null} w.lf=function(a,b){return cr(a,b,this.dh)};w.Ge=function(a,b,c){return ir(a,b,c,this.dh)};function Os(a,b){return b?wr(b,a.dh):null} w.yg=function(a,b,c,e){switch(b){case "WEEK":case "DAY":return"WEEK"===b?(b=this.lf(e,"WEEK"),b=this.Ge(b,"DAY",this.Lo),a*=7):b=this.lf(e,"DAY"),c=Math.floor((c-b)/864E8),c=Math.floor(c/a)*a,this.Ge(b,"DAY",c);default:return b=Ps(b)||"YEAR",this.lf(c,b)}};function Ms(a){a=si(a);return 3E11a[0]?"time_ms":"timestamp"} function Ks(a,b){if(!a)return a;var c=bi(a||"","\n");return c=b)return[];var f=a[0];f=f instanceof Date?1E13<+f?"microseconds":"date":"number"===typeof f?1E13=c[1]&&(a=Xs(this.Oh),r-p=Xs(b.Cb)&&(b.Cb=null);a=Xs(b.step)/a;aXs(b.Cb)&&(b.Cb=b.step));this.Jg=b}a=e||b.N||b.v;e=e||b.v;p=+p;c=new Wq;c.setTime(p);p=this.yg(c,b.step);c=b.Cb?this.yg(c,b.Cb):null;y=[];for(var E=!1;p.getTime()<=r;){var ma={};a:switch(f){case "milliseconds":var na= p.getTime();break a;case "microseconds":na=1E3*p.getTime();break a;default:na=new Date(p.getTime())}ma.value=na;c&&b.Cb&&c.getTime()<=p.getTime()?(ma.type="transition",ma.label=a(new Date(p.getTime())),Zs(c,b.Cb),E=!0):ma.label=e(new Date(p.getTime()));y.push(ma);Zs(p,b.step)}c&&y.length&&!E&&(y[0].type="transition",y[0].label=a(new Date(y[0].value*k)));t&&y.reverse();return y};w.Fd=function(a,b,c){b=this.Mb(a,b,c);return b.length?si(b,function(e){return e.value}):a};w.yg=function(a,b){if(b.N)var c=new Wq(Math.ceil(a.getFullYear()/b.N)*b.N);else if(b.months)c=new Wq(a.getFullYear(),Math.ceil(a.getMonth()/b.months)*b.months);else if(b.days){c=a.getDate();for(var e=a.getFullYear(),f=a.getMonth()-1;0<=f;f--)c+=Pq(e,f);c=new Wq(a.getFullYear(),0,Math.ceil(c/b.days)*b.days);0===b.days%7&&c.setDate(c.getDate()-c.getDay()+this.Ci)}else if(b.O)c=new Wq(a.getFullYear(),a.getMonth(),a.getDate(),Math.ceil(a.getHours()/b.O)*b.O);else if(b.$)c=new Wq(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),Math.ceil(a.getMinutes()/b.$)*b.$);else if(1<=b.v)c=new Wq(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),Math.ceil(a.getSeconds()/b.v)*b.v);else if(b.v)c=new Wq(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),Math.ceil(.001*a.getMilliseconds()/b.v)*b.v*1E3);else throw Error("Zero step is not valid.");c.getTime()a)throw Error("numTicks must be at least 2");this.oe=a;this.Le=!1;return this};w.Im=function(){return this.oe};w.ni=function(a){this.Qg=a;return this};w.Hm=function(){return this.Qg};w.rk=function(a){this.v=a;return this};w.tm=function(){return this.v};w.Vg=function(a){(this.Le=a)?this.oe=null:this.oe=5;return this};w.fm=function(){return this.Le};w.Ye=function(){return!1};w.Od=function(a){this.uc=a};w.Dg=function(){return this.uc};w.Mb=function(a,b,c,e,f){b=this.Le?Math.max(2,Math.floor(b/100)):this.oe;this.uc&&(a=this.uc(a));a=Array.isArray(a)?this.xh(this.Qg,b-1,a,this.v||!1):[];return f?Ip(a,f,e):a};w.Fd=function(a,b,c){b=this.Mb(a,b,c);return b.length?si(b):a};w.Te=function(a,b,c,e){var f=b[1]-b[0],k=0>f;f=Math.abs(f);var p=f/c;f=Math.pow(10,f?Math.floor(Math.log(p)/Math.LN10):0);for(var r=p,t=0;t=p&&(!e||r==Math.round(r))&&c*r+this.Ve(b,r)>=b[1]);t++);return(k?-1:1)*r};function bt(a){return 0>a?a+2E-10:0a[0]&&(c-=b);return c};$s.prototype.getDefaultViewport=$s.prototype.Fd;$s.prototype.getTicks=$s.prototype.Mb;$s.prototype.getNicingFunction=$s.prototype.Dg;$s.prototype.getDynamicTicks=$s.prototype.fm;$s.prototype.setDynamicTicks=$s.prototype.Vg;$s.prototype.getIntIntervalsOnly=$s.prototype.tm;$s.prototype.setIntIntervalsOnly=$s.prototype.rk;$s.prototype.getNiceCoefficients=$s.prototype.Hm;$s.prototype.setNiceCoefficients=$s.prototype.ni;$s.prototype.getNumTicks=$s.prototype.Im;$s.prototype.setNumTicks=$s.prototype.oi;var at=[1,1.25,1.5,2,2.5,3,4,5,6,7.5,8,10];wd("aplos.chart.BaseTickProvider",$s);function ct(){$s.call(this);this.Vg(!0);this.ni([.25,.5,.6,.75,.8,1,1.25,1.5,2,2.5,3,4,5,6,7.5,8,10]);this.Ig=!1} Zc(ct,$s);ct.prototype.xh=function(a,b,c,e){if(0===b&&(0c[1]||0>c[0]&&0c[1])break;if(this.Ig){if(p-c[0]f;f=Math.abs(f);var p=0==c?f/2:f/(c+1);f=Math.pow(10,f?Math.floor(Math.log(p)/Math.LN10):0);for(var r=null,t=null,y=0,E=0;E=p){var na=this.Ve(b,ma);if(c*ma+na>b[1])if(e)if(na=Math.floor((b[1]-na)/ma)+1,na>y)y=na;else break;else break;r=ma}t=ma}}null===r&&(r=null!==t?t:1);return(k?-1:1)*r};ct.prototype.Ve=function(a,b){return Math.ceil(a[0]/b)*b};wd("aplos.chart.DataTickProvider",ct);function dt(){} dt.prototype.Ye=function(){return!0};dt.prototype.Mb=function(a,b,c,e,f){a=et(c||a);b=[];f?(b=Ip(a,f,e),b.forEach(function(k){0===Math.log(Math.abs(+k.value))*Math.LOG10E%1?(k.label=e?k.label:ft(k.value),k.Ih="major"):(k.label="",k.Ih="minor")})):b=a;return b};dt.prototype.Fd=function(a,b,c){return si(et(c||a))};function et(a){a=a.filter(function(k){return 0!==k});var b=si(a),c=b[0],e=b[1];0>=c&&0<=e&&(a=a.filter(function(k){return 0f&&(e.push(a*(f+"e"+b)),b!==c);f++);1===a||e.reverse();return e} function ft(a){var b=0>a?"-":"";a=Math.log(Math.abs(a))*Math.LOG10E;if(0===a)return b+"1";if(1===a)return b+"10";a=(""+a).split("").map(function(c){return"-"===c?"-":"\u2070\u00b9\u00b2\u00b3\u2074\u2075\u2076\u2077\u2078\u2079"[c]}).join("");return b+"10"+a} wd("aplos.chart.LogTickProvider",dt);function gt(){this.ah=[]} gt.prototype.Ye=function(){return!1};gt.prototype.Mb=function(){return this.ah.map(function(a){return a&&void 0!==a.value?Re(a):a})};gt.prototype.Fd=function(a){return this.ah.length?si(this.ah,function(b){return null!=b.value?b.value:b}):a};gt.prototype.Gk=function(a){this.ah=a.slice();return this};gt.prototype.setTicks=gt.prototype.Gk;gt.prototype.getDefaultViewport=gt.prototype.Fd;gt.prototype.getTicks=gt.prototype.Mb;wd("aplos.chart.ManualTickProvider",gt);function ht(){$s.call(this)} Zc(ht,$s);ht.prototype.xh=function(a,b,c,e){4E-10=c[1])f=b;else{if(1===b)return si(it(this,a,2,1,c,e));f=Math.round(Math.abs(c[0])/(c[1]-c[0])*b);0===f?f=1:f===b&&(f=b-1)}0===c[1]-c[0]&&(0c[1]&&(c=[1.25*c[0],0]));return it(this,a,b,f,c,e)};function it(a,b,c,e,f,k){c=Math.max(1,c);var p=0;0>f[0]&&(p=a.Te(b,[f[0],0],e,k));var r=0;0c[0]&&0c[1]&&(c=[1.25*c[0],.75*c[1]]));if(1==b&&(0==c[0]||0==c[1]||0>c[0]&&0=c[1])?b?"data":"tight":b?"data":"quantum":a},renderingType:function(a,b){return"default"==a?b?"ticks":"gridlines":a},scaleType:0,showDomainAxisLine:!0,showBaseline:!0},log:{nicing:"tight",tickFormatter:function(a){var b=null;a&&(b="function"===typeof a?a:gi(a));return b},tickProviderType:function(a){return"default"==a?"tight":a},renderingType:function(a,b){return"default"==a?b?"ticks":"gridlines":a},scaleType:1,showDomainAxisLine:!0,showBaseline:!1},ordinal:{nicing:void 0,tickFormatter:function(a){var b=null;a&&(b="function"===typeof a?a:gi(a));return b},tickProviderType:function(a){return"default"==a?"tight":a},renderingType:function(a){return"default"==a?"labels":a},scaleType:2,showDomainAxisLine:!1,showBaseline:!1},time:{nicing:"none",tickFormatter:function(a){var b=null;a&&("function"===typeof a?b=a:b=xr(a));return b},tickProviderType:function(a){return"default"==a?"tight":a},renderingType:function(a,b){return"default"==a?b?"ticks":"gridlines":a},scaleType:3,showDomainAxisLine:!0,showBaseline:!1}};function vt(){} Zc(vt,mt);wd("aplos.chart.OldAxisSpecParser",vt);var wt=new mt;kt.current=wt;function xt(){} xt.prototype.fe=function(){};xt.prototype.Td=function(){};wd("aplos.chart.ShapeRenderer",xt);function yt(a,b,c){this.N=void 0!==c?c:!1;this.O=void 0!==b?b:!0;this.$=a;this.ha="0.6ex"} w=yt.prototype;w.fe=function(a,b,c,e,f,k,p){var r=(this.$+" "+b).trim();a=a.append("g").attr("class",r);this.Ac(a);a.append("text");this.Td(a,b,c,e,f,k,p)};w.Td=function(a,b,c,e,f,k,p){var r=null!=p.strokeWidth?p.strokeWidth:2,t=this.O?"white":k,y=this.Mc(a);1>y.size()&&(y=Ij(a.node()),b=(this.$+" "+b).trim(),y.attr("class",b),y.selectAll("*").remove(),this.Ac(y),y.append("text"),y=this.Mc(a));a=a.select("text");this.Sc(y,a,c,e,f,this.O,r,k,t,this.N?p.label:null)};w.Ac=function(){};w.Mc=function(){};w.Sc=function(){};function zt(a,b,c,e,f,k,p){c={dx:c,fill:k,"text-anchor":"middle",opacity:a.N?"1":"0"};ef||ff?(c.y=e,c.dy=a.ha):(c.dy=e,c["dominant-baseline"]="middle");lj(b,c);b.style("fill",k);b.style("font-size",1.25*f+"px");b.text(p)} wd("aplos.chart.shaperenderer.BaseLabelShape",yt);function At(){yt.call(this,"aplos-box-triangle-right-shape-group",!0,!1)} Zc(At,yt);At.prototype.Ac=function(a){a=a.append("g").attr("class","aplos-box-triangle-right-shape");a.append("rect").attr("class","primary");a.append("path").attr("class","secondary")};At.prototype.Mc=function(a){return a.select("g.aplos-box-triangle-right-shape")};At.prototype.Sc=function(a,b,c,e,f,k,p,r,t,y){var E=a.select(".primary");if(1>E.size())throw Error("No primary path found in update selection");var ma=a.select(".secondary");if(1>ma.size())throw Error("No secondary path found in update selection");var na=2*f,ta=na/16;lj(a,{fill:r,width:na+"px",height:na+"px",transform:"translate("+(c-f)+", "+(e-f)+")"});lj(E,{rx:2,ry:2,width:2*f,height:2*f,fill:k?r:"white",stroke:k?null:r,"stroke-width":k?"0":p});lj(ma,{d:"M5.5 3.5v9l6-4.5z",fill:"white",transform:"scale("+ ta+")"});zt(this,b,c,e,f,t,y)};wd("aplos.chart.shaperenderer.BoxTriangleRight",At);function Bt(a,b){yt.call(this,"aplos-circle-shape-group",a,b)} Zc(Bt,yt);Bt.prototype.Ac=function(a){a.append("circle").attr("class","aplos-circle-shape")};Bt.prototype.Mc=function(a){return a.select("circle.aplos-circle-shape")};Bt.prototype.Sc=function(a,b,c,e,f,k,p,r,t,y){lj(a,{cx:c,cy:isNaN(e)?null:e,r:f,fill:k?r:"white",stroke:k?null:r,"stroke-width":k?"0":p});zt(this,b,c,e,f,t,y)};wd("aplos.chart.shaperenderer.Circle",Bt);function Ct(){} Ct.prototype.fe=function(a,b,c,e,f,k,p,r,t){b=("aplos-cylinder-shape "+b).trim();a=a.append("line").attr("class",b);this.Td(a,b,c,e,f,k,p,r,t)};Ct.prototype.Td=function(a,b,c,e,f,k,p,r,t){lj(a,{x1:c,x2:r,y1:e,y2:t,"stroke-linecap":"round",stroke:k,"stroke-width":2*f})};wd("aplos.chart.shaperenderer.Cylinder",Ct);function Dt(a,b){yt.call(this,"aplos-equilateral-triangle-shape-group",a,b)} Zc(Dt,yt);Dt.prototype.Ac=function(a){a.append("polygon").attr("class","aplos-equilateral-triangle-shape")};Dt.prototype.Mc=function(a){return a.select("polygon.aplos-equilateral-triangle-shape")};Dt.prototype.Sc=function(a,b,c,e,f,k,p,r,t,y){var E=.866*f;lj(a,{points:c+","+(e-E)+" "+(c+f+","+(e+E)+" ")+(c-f+","+(e+E)),fill:k?r:"white",stroke:k?null:r,"stroke-width":k?"0":p});zt(this,b,c,e+f-E,f,t,y)};wd("aplos.chart.shaperenderer.EquilateralTriangle",Dt);function Et(){yt.call(this,"aplos-error-shape-group",!0,!1)} Zc(Et,yt);Et.prototype.Ac=function(a){a=a.append("g").attr("class","aplos-error-shape");a.append("circle").attr("class","secondary");a.append("path").attr("class","primary")};Et.prototype.Mc=function(a){return a.select("g.aplos-error-shape")};Et.prototype.Sc=function(a,b,c,e,f,k,p,r,t,y){k=a.select(".primary");if(1>k.size())throw Error("No primary path found in update selection");p=a.select(".secondary");if(1>p.size())throw Error("No secondary path found in update selection");var E=2*f,ma=2,na=2;if(36k.size())throw Error("No primary path found in update selection");p=a.select(".secondary");if(1>p.size())throw Error("No secondary path found in update selection");var E=2*f,ma=1.5,na=1.5;36k.size())throw Error("No primary path found in update selection");p=a.select(".secondary");if(1>p.size())throw Error("No secondary path found in update selection");f*=1.4;var E=2*f;if(36E.size())throw Error("No primary path found in update selection");k=a.select(".secondary");if(1>k.size())throw Error("No secondary path found in update selection");var ma=2*f,na=2;p=1;if(36Me(c)||1>a.length)return a;a.sort(function(E,ma){return $r(E[b],ma[b])});e=e||iu(a,b);for(var f=a[0],k=[],p=0,r=0;r=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height};w.distance=function(a){var b=a.xsa?1E3*sa:sa;ua.displayName=a.name;ua.description=ua.datum.description;ua.chartX=Jp(k,p?ua.time:ua.time/1E3);ua.chartY=0;sa=b.Dd()||yu;ua.label=sa(ua.time)},this);e.sort(function(ua,sa){return ua.$a-sa.$a});var r=[];if(0f.Za())break;E.$a>y.Ib.$a+100?(y.ld=E.$a-y.Ib.$a,y={Ib:E,hb:[]},r.push(y)):y.hb.push(E)}if(!y)return;if(y.Ib.$a+60>f.Za()){y.Gl=!0;0na.Ib.$a-100){var ta=(na.Ib.$a-ma.Ib.$a)/2+ma.Ib.$a;y=na.hb;e=ma.hb;na.hb=[];ma.hb=[];e.forEach(function(ua){ua.chartX> ta?na.hb.push(ua):ma.hb.push(ua)});y.forEach(function(ua){ua.chartX>ta?na.hb.push(ua):ma.hb.push(ua)});ma.ld=ta-ma.Ib.$a;na.ld=na.Ib.$a-ta;60>ma.ld&&(na.ld+=ma.ld,na.hb=[ma.Ib].concat(ma.hb).concat(na.hb),r.splice(r.length-2,1))}}else y.ld=f.Za()-y.Ib.$a}c.sj=r;so(b,c)}};w.render=function(a,b,c){var e=b.Jb();b=so(b);if(b.sj&&b.yq)if(0===a.data.length&&null==c.node())c.selectAll("*").remove();else return c.attr("transform","translate(0, -60)"),a=c.select(".background-rect"),a.size()||(a=c.append("rect").classed("background-rect",!0).style("fill","#fafafa")),a.attr("width",e.Za()).attr("height",60),c=c.selectAll(".event-annotation-content").data(b.sj),c.exit().remove(),a=c.enter().append("g").classed("event-annotation-content",!0),a.append("g").classed("subdominant-lines",!0),a.append("line").classed("marker-line",!0),a.append("line").classed("range-line",!0),a.append("g").classed("text-holder",!0),c=a.merge(c),c.each(function(f){var k=Ij(this),p=f.Ib,r=f.Gl,t=f.ld-4-10;lj(k,{transform:"translate("+p.$a+", 0)"});var y=k.select(".text-holder");y.append("text").classed("annotation-title",!0);y.append("text").classed("date",!0);y.append("text").classed("subdominant-additional-text",!0);y.attr("transform","translate("+(r?"-":"")+4+", 10)");var E=y.select("text.annotation-title").text(p.description);Nj(E.node(),t);E.attr("dy","1em");Oj(E.node(),p.description);E=y.select("text.date").text(p.label);Nj(E.node(),t);E.attr("dy","2.15em");Oj(E.node(),p.label);var ma=0Math.PI/180*this.N},a)).classed(Eu,!0).style("opacity","0").attr("transform",function(c){return"translate("+c.start+")"});a.Wa?b.transition().delay(a.Wa).duration(a.Wa).style("opacity","1"):b.style("opacity","1");a.O&&!ef?Gu(a,b):Hu(a,b);Iu(a,b);Ju(b);b.filter(function(){return!Ij(this).select("."+Ku).text()}).style("display","none")} function Gu(a,b){var c=a.Bb.Lf,e=a.Bb.le,f=a.Bb.position,k=a.Bb.padding;b=b.append("g").attr("transform",function(p){if(c&&e){var r=p.offset[0];p=p.offset[1];var t=k+e;t=0===r?0:0Math.PI&&qu(f.rect,b)?f.ke.style("display","none"):(f.ke.style("display",""),e=f.rect)})} function Hu(a,b){var c=a.Bb.Lf,e=a.Bb.le,f=a.Bb.padding,k=a.v;b.append("g").attr("transform",function(p){if(c&&e){var r=p.offset[0];p=p.offset[1];var t=f+e;t=0===r?0:0Math.PI/180*this.v},a)).classed(Pu,!0).attr("transform",function(c){return"translate("+c.start+")"});Ru(a,b);Su(a,b);b.empty()||(Tu(a,b),Uu(b),fk(b).filter(function(){return!Ij(this).select("."+Vu).text()}).style("display","none"))} function Ru(a,b){var c=a.Bb.Lf,e=a.Bb.le,f=a.Bb.position,k=a.Bb.padding;b=b.append("g").attr("transform",function(r){if(c&&e){var t=r.offset[0];r=r.offset[1];var y=k;0!==t&&0!==r&&(y+=e);y=0===t?0:0r?-k:k:0}else t=r.$c[0],r=r.$c[1],E=y=0;return"translate("+[t+y,r+E]+")"});var p=b=bk(b);b.select("div").empty()||(p=b.select("div"));p.attr("data-label-position",Wu(a,f)).append("div").classed(Vu,!0).style("opacity",0).each(ud(Xu,a.N));b.each(ud(function(r,t){r=Ij(this);var y=r.select("."+Vu),E=y.node();Gj(E,null,null,!0);if(c&&e){var ma=t.offset[0];t=t.offset[1]}else ma=t.$c[0],t=t.$c[1];y.style("text-align",0===ma?"center":0Math.PI&&qu(f.rect,b)?(f.ke.style("display","none"),f.Mh.style("display","none")):(f.ke.style("display",""),f.Mh.style("display",""),e=f.rect)})} function Tu(a,b){var c=ck(b).node().getBoundingClientRect();b.each(ud(function(e,f){var k=Ij(this),p=fk(k.select("g")),r=p.select("."+Vu).node().getBoundingClientRect(),t=Math.ceil(r.left+r.width-f.left-f.width)+5,y=Math.ceil(f.left-r.left)+5,E=(0f.top+f.height||r.leftf.left+f.width)k.style("display","none"),p.style("display","none")},a,c))} function Su(a,b){var c=a.Bb.le;b.append("line").classed(yw,!0).style("opacity",0).attr("x1",0).attr("y1",0).attr("x2",function(e){return e.offset[0]}).attr("y2",function(e){return e.offset[1]});0=k.length?"hidden":null},this));return r};w.qe=function(a,b,c,e,f){e=e.append("circle").attr("cx",f.width/2).attr("cy",f.height/2).attr("r",f.width/2);sk(e,function(){return c.color()(a,b)})};w.qd=function(a,b,c,e){var f=new qj(c,e),k=this.Ue(),p=this.Gd(),r=rj(f,new qj(0,0)),t=null;if(r>=p&&r<=k)for(f=(0<=f.x?0:Math.PI)+Math.atan(f.y/f.x)+Math.PI/2,k=Cw(this,a,b),p=0;p=r.startAngle&&f<=r.endAngle){t=Jw(this,a,b,r.data||{},p,c,e);break}return t};function Jw(a,b,c,e,f,k,p){var r=c.measure(),t=c.domain(),y=c.color(),E=Cw(a,b,c)[f];var ma=a.Ue();var na=a.Gd();E=(E.startAngle-Math.PI/2+(E.endAngle-Math.PI/2))/2;ma=na+(ma-na)/2;ma=new qj(Math.round(Math.cos(E)*ma),Math.round(Math.sin(E)*ma));E=c.Jb();na=ma.x+E.Za()/2;E=ma.y+E.wb()/2;b={index:f,datum:e,measure:r(e,f),domain:t(e,f),datumX:ma.x,datumY:ma.y,chartX:na,chartY:E,color:y(e,f),series:b,seriesConfig:c,relativeDistance:0,domainDistance:0,measureDistance:0};return b=a.Ab(b,k,p)} w.Ab=function(a,b,c){var e={domainDistance:0,measureDistance:0,relativeDistance:0};Ue(e,a);void 0!=b&&void 0!=c&&(e.relativeDistance=rj(new qj(e.datumX,e.datumY),new qj(b,c)));return e};w.je=function(a,b,c,e,f,k,p){f=void 0===f?[]:f;for(var r=0;rua.endAngle-ua.startAngle?sa.style("display","none"):sa.style("display","")});y.each(function(ua,sa){var Ba=Ij(this),ya=Ba.select("path"),Aa=p(ua.data,sa);ua=r(ua.data,sa);Ba.classed("highlight",0Aa);Ba.classed("selected",0ua);ya.attr("filter",0e.endAngle-e.startAngle&&(e.startAngle=e.endAngle);return a(e)}}} function Ow(a,b,c,e,f){var k=Mw(b);return ud(function(p,r){r=Td(e,r);p=Pw(p,r,c,e,f);return k.call(this,{startAngle:p,endAngle:p})},a)} function Kw(a,b,c,e,f){for(--b;0<=b;b--)for(var k=f(c[b],b),p=0;p=r.measureSize,t),E=r.domainPosition+r.domainSize/2;y=r.measurePosition+r.measureSize+(f?-1:1)*y;switch(this.v){case "vertical":if(k){var ma=-1*y;var na=".32em"}else ma=E,E=-1*y,na="middle"===this.N?".32em":null;break;default:k?(ma=E,E=y,na=null):(ma=y,na=".32em")}t=(t=r.validValue&&("above"===this.N||t>=this.ha))&&(k?y<=e:y>=c);r.barLabel={domainPosition:ma,measurePosition:E,valid:t,dy:na,"text-anchor":Xw(this,b),"dominant-baseline":Yw(this,b)}}};function Xw(a,b){switch(a.N){case "above":return"vertical"===a.v?"y"===b?"left":"middle":"y"===b?"middle":"left";case "bottom":return"vertical"===a.v?"y"===b?"left":"middle":"y"===b?"middle":"left";case "middle":return"middle";case "top":return"vertical"===a.v?"y"===b?"right":"middle":"y"===b?"middle":"right";default:throw Error("Unrecognized bar label position");}} function Yw(a,b){switch(a.N){case "above":return null;case "bottom":return null;case "middle":return"vertical"===a.v?null:"y"===b?"middle":null;case "top":return"vertical"===a.v?"x"===b?"hanging":null:"y"===b?"hanging":null;default:throw Error("Unrecognized bar label position");}} w.add=function(a){a.append("text").attr("class","bar-label")};w.update=function(a,b,c,e){a=a.select(".bar-label");var f="y"===c,k=this;a.each(function(p){var r=p.barLabel;if(r){var t=Ij(this),y=r.valid?1:0,E=null,ma=p.barLabel;if("above"===k.N){var na=p.chartX;ma=p.chartY}else"vertical"===k.v?f?(na=ma.measurePosition,ma=-1*ma.domainPosition):(na=-1*ma.measurePosition,ma=ma.domainPosition):(na=ma.domainPosition,ma=ma.measurePosition);na=new qj(na,ma);r.valid&&e.contains(na)||(E="none");t.text(p.label);b&&(t=t.transition().duration(b));switch(k.v){case "vertical":na= "y"===c?"rotate(-90)":"rotate(90)";break;default:na=null}lj(t,{x:r.domainPosition,y:r.measurePosition,dy:r.dy,opacity:y,display:E,"dominant-baseline":r["dominant-baseline"],transform:na});t.attr("text-anchor",Vj(r["text-anchor"],p.label));t.style("fill",k.O)}})};w.remove=function(a){a.selectAll(".bar-label").remove()};w.Vf=function(){return!0};Sw.prototype.getMinBarLength=Sw.prototype.Em;Sw.prototype.setMinBarLength=Sw.prototype.li;Sw.prototype.getLabelPosition=Sw.prototype.od;Sw.prototype.setLabelPosition=Sw.prototype.Ob;Sw.prototype.getLabelOrientation=Sw.prototype.vm;Sw.prototype.setLabelOrientation=Sw.prototype.sk;Sw.prototype.getLabelColor=Sw.prototype.Pe;Sw.prototype.setLabelColor=Sw.prototype.Xc;Sw.prototype.getLabelOffsetFunction=Sw.prototype.um;Sw.prototype.setLabelOffsetFunction=Sw.prototype.hf;function Tw(a,b){return a?-4:-b-4} function Uw(a,b){return a?b-4:-4} function Vw(a,b){return a?b/2:-b/2} function Ww(a,b){return a?4:-b+4} wd("module$contents$aplos$chart$renderer$BarLabels_BarLabels.Orientation",{HORIZONTAL:"horizontal",VERTICAL:"vertical"});wd("module$contents$aplos$chart$renderer$BarLabels_BarLabels.Position",{ABOVE:"above",BOTTOM:"bottom",MIDDLE:"middle",TOP:"top"});function Zw(){su.call(this);this.na=this.Sa=2;this.ha=null;this.va=0;this.Ca=this.$=1;this.ka=this.Ma=null;this.N=this.Ya=this.Ia=0;this.v=new Sw;this.ya=[this.v,new Xt];this.rb=Ck;this.Qb=null} Zc(Zw,su);function $w(a,b){a.ya.push(b);return a} function ax(a,b){ce(a.ya,a.v);a.v=b;$w(a,a.v)} w=Zw.prototype;w.Rl=function(){return this.v};w.oo=function(a){this.Ya=a;return this};w.Un=function(a){this.N=a;return this};w.Sl=function(){return this.N};w.Nd=function(a){this.rb=a;return this};w.il=function(a){return arguments.length&&null!=a?this.Md(a):this.Ec()};w.strokeWidth=function(a){return arguments.length&&null!=a?this.Sd(a):this.Jf()};w.Sd=function(a){this.Ia=a;return this};w.Jf=function(){return this.Ia};w.stack=function(a){return arguments.length&&null!=a?this.Rd(a):this.We()};w.Rd=function(a){this.$f(a?2:1);return this};w.We=function(){return 2===this.$};w.$f=function(a){this.$=a;return this};w.mm=function(){return this.$};w.to=function(a){return arguments.length&&null!=a?this.yi(a):this.Ca};w.yi=function(a){this.Ca=a;return this};w.Rm=function(){return this.Ca};w.Lg=function(a){return arguments.length&&void 0!==a?this.Yg(a):this.ka};w.Yg=function(a){this.ka=Math.max(0,a);return this};w.Dm=function(){return this.ka};w.Bk=function(a){this.Ma=Math.max(0,a);return this};w.Fm=function(){return this.Ma};w.jl=function(a){return arguments.length&&null!=a?this.$j(a):this.na};w.$j=function(a){this.na=a;return this};w.Ol=function(){return this.na};w.Xm=function(){return this.ha};w.Ik=function(a){this.ha=a;return this};w.kl=function(a){return arguments.length&&null!=a?this.dk(a):this.va};w.dk=function(a){this.va=a;return this};w.Ql=function(){return this.va};w.Nn=function(a){return arguments.length&&null!=a?this.ui(a):this.Sa};w.ui=function(a){this.Sa=a;return this};w.Lm=function(){return this.Sa};w.rd=function(){return-10};w.Jd=function(a){return a instanceof Zw};w.Vn=function(a){this.Qb=a;return this};w.Vc=function(a,b){var c=new Map,e=new Map,f=new Map,k=this.$;wu(this,a,b);for(var p=0,r=0;rt&&(b.barClass+=" inverse-highlight"),t=r(b.datum,a),0t&&(b.barClass+=" inverse-selected");c=vu(this);for(p=0;pf.length)throw Error('Number of series exceeds length of weight pattern "'+a.ha+'"');for(var k=[],p=0;py.measureSize?y.measurePosition+y.measureSize:y.measurePosition,y.domainSize,Math.abs(y.measureSize)):new pu(0>y.measureSize?y.measurePosition+y.measureSize:y.measurePosition,y.domainPosition,Math.abs(y.measureSize),y.domainSize);a:{var ma=Math.max(f.left,E.left);var na=Math.min(f.left+ f.width,E.left+E.width);if(ma<=na){var ta=Math.max(f.top,E.top);E=Math.min(f.top+f.height,E.top+E.height);if(ta<=E){ma=new pu(ma,ta,na-ma,E-ta);break a}}ma=null}if(null===ma)continue}if("function"!==typeof k||k(y,t,c,e))ma=nx(this,y,c,e),ma.domainDistance=e&&a<=k?0:Math.abs(a-p),measureDistance:c>=r&&c<=t?0:Math.abs(c-b),relativeDistance:rj(new qj(p,b),new qj(a,c))}} w.qe=function(a,b,c,e,f){var k=f.width;f=f.height;var p=e.append("g").attr("class","bar-group");e=c.Cc()(a,b);var r=Sn(c,"strokeWidth")?c.strokeWidth()(a,b):this.Ia;k=p.append("rect").attr("class","bar").attr("width",k).attr("height",f).attr("stroke-width",r).attr("stroke-dasharray",e).attr("x",0).attr("y",0).attr("rx",1);sk(k,function(){return c.color()(a,b)},!0);e&&"none"!==e.toLowerCase()&&k.attr("fill","transparent")};function kx(a){a=Ij(a).attr("data-rect").split(",");return{domainPosition:+a[0],measurePosition:+a[1],domainSize:+a[2],measureSize:+a[3]}} function mx(a,b,c,e){e={domainPosition:e.domainPosition,measurePosition:e.measurePosition,domainSize:e.domainSize,measureSize:e.measureSize};switch(a.Ya){case 1:e.domainPosition-=c;break;case 2:e.domainPosition+=c;break;default:e.measurePosition=b,e.measureSize=0}return e} function gx(a,b,c,e,f){var k=c.measureOffset,p=c.measure+k,r=is(f,k),t=is(f,p);if(cm(r)&&cm(t)){p=pMath.abs(t-r)?t=r:r+=(p?1:-1)*a.Ca);p?(p=0===k?Math.floor:Math.ceil,y=Math.ceil):(p=0===k?Math.ceil:Math.floor,y=Math.floor);r=p(r);t=y(t)}else t=r=null;p=Jp(e,c.domain);y=hs(e,c.domain)+b.barOffset;var E=b.barWidth,ma=r;r=t-r;var na=t=void 0,ta=Math.min(E/2,Math.abs(r),c.strokeWidth);E-=ta;y+=ta/2;r+=(0<=r?-1:1)*ta/2;if(null!=c.measureLowerBound&& null!=c.measureUpperBound){var ua=c.measureLowerBound,sa=c.measureUpperBound;null!=ua&&null!=sa&&(t=is(f,k+ua),na=is(f,k+sa))}a="x"==tu(a);k=b.barWidth/2;b=hs(e,c.domain)+b.barOffset+k;c=Jp(f,c.measure+c.measureOffset);return{barGroupCenter:p,chartX:a?b:c,chartY:a?c:b,domainPosition:y,domainSize:E,measurePosition:ma,measureSize:r,measureLowerBoundPosition:t,measureUpperBoundPosition:na,strokeWidth:ta}} w.re=function(){return!0};w.Eg=function(a,b){b=so(b);return null==b.barData?a.data:b.barData};Zw.prototype.setCssName=Zw.prototype.Vn;Zw.prototype.getRoundingRadiusPx=Zw.prototype.Lm;Zw.prototype.setRoundingRadiusPx=Zw.prototype.ui;Zw.prototype.roundingRadiusPx=Zw.prototype.Nn;Zw.prototype.getBarHorizontalMargin=Zw.prototype.Ql;Zw.prototype.setBarHorizontalMargin=Zw.prototype.dk;Zw.prototype.barHorizontalMargin=Zw.prototype.kl;Zw.prototype.setWeightPattern=Zw.prototype.Ik;Zw.prototype.getWeightPattern=Zw.prototype.Xm;Zw.prototype.getBarGroupInnerPadding=Zw.prototype.Ol;Zw.prototype.setBarGroupInnerPadding=Zw.prototype.$j;Zw.prototype.barGroupInnerPadding=Zw.prototype.jl;Zw.prototype.getMinBarWidth=Zw.prototype.Fm;Zw.prototype.setMinBarWidth=Zw.prototype.Bk;Zw.prototype.getMaxBarWidth=Zw.prototype.Dm;Zw.prototype.setMaxBarWidth=Zw.prototype.Yg;Zw.prototype.maxBarWidth=Zw.prototype.Lg;Zw.prototype.getStackedBarPadding=Zw.prototype.Rm;Zw.prototype.setStackedBarPadding=Zw.prototype.yi;Zw.prototype.stackedBarPadding=Zw.prototype.to;Zw.prototype.getGroupingType=Zw.prototype.mm;Zw.prototype.setGroupingType=Zw.prototype.$f;Zw.prototype.getStack=Zw.prototype.We;Zw.prototype.setStack=Zw.prototype.Rd;Zw.prototype.stack=Zw.prototype.stack;Zw.prototype.getStrokeWidth=Zw.prototype.Jf;Zw.prototype.setStrokeWidth=Zw.prototype.Sd;Zw.prototype.strokeWidth=Zw.prototype.strokeWidth;Zw.prototype.autoBarLabels=Zw.prototype.il;Zw.prototype.setColorHighlightStrategy=Zw.prototype.Nd;Zw.prototype.getBorderRenderingStrategy=Zw.prototype.Sl;Zw.prototype.setBorderRenderingStrategy=Zw.prototype.Un;Zw.prototype.setTransitionStrategy=Zw.prototype.oo;Zw.prototype.getBarLabelDecorator=Zw.prototype.Rl;function jx(a,b,c,e,f,k,p){if(null===a||null===b||null===c||null===e||null===k)return"";k=Math.min(Math.abs(e),k,c/2);p=1==p?"Z":"";return f?0<=e?"M"+b+" "+a+"h"+(e-k)+"a"+k+","+k+" 0 0 1 "+k+","+k+"v"+(c-2*k)+"a"+k+","+k+" 0 0 1 "+-k+","+k+"h"+-1*(e-k)+p:"M"+b+" "+a+"h"+(e+k)+"a"+k+","+k+" 0 0 0 "+-k+","+k+"v"+(c-2*k)+"a"+k+","+k+" 0 0 0 "+k+","+k+"h"+-1*(e+k)+p:0>=e?"M"+a+" "+b+"v"+(e+k)+"a"+k+","+k+" 0 0 1 "+k+","+-k+"h"+(c-2*k)+"a"+k+","+k+" 0 0 1 "+k+","+k+"v"+-1*(e+k)+p:"M"+a+" "+b+"v"+(e-k)+ "a"+k+","+k+" 0 0 0 "+k+","+k+"h"+(c-2*k)+"a"+k+","+k+" 0 0 0 "+k+","+-k+"v"+-1*(e-k)+p} function ex(a,b,c,e,f,k,p,r){e=Math.floor((e-(2*r+f*(a-1)))/a);k&&(e=Math.max(k,e));p&&(e=Math.min(p,e));return c&&0!=c.length?Math.floor(e*a*c[b]):e} function fx(a,b,c,e,f,k,p,r){var t=Math.floor((e-(2*r+f*(a-1)))/a),y=0;p&&t>p&&(y=Math.floor((t-p)*a/2));for(var E=t=0;E2*this.size&&Cx(this),!0):!1};function Cx(a){if(a.size!=a.v.length){for(var b=0,c=0;b=e.v.length)throw tx;var k=e.v[b++];return a?k:e.N[k]};return f};function Dx(a,b){return Object.prototype.hasOwnProperty.call(a,b)} ;function Ex(){su.call(this);this.va=null;this.ka=0;this.N=!1;this.ha=2;this.v=!1;this.na=null;this.$=3} Zc(Ex,su);w=Ex.prototype;w.Mn=function(a){if(null==a)return this.N;this.N=a;return this};w.Lg=function(a){if(void 0===a)return this.na;this.na=a;return this};w.strokeWidth=function(a){if(null==a)return this.$;this.$=a;return this};w.Ym=function(a){if(null==a)return this.ha;this.ha=a;return this};w.io=function(a,b){b?(this.va=null,this.ka=a||0):(this.va=a||0,this.ka=null);return this};w.stack=function(a){if(!arguments.length||null==a)return this.v;this.v=a;return this};w.Vc=function(a,b){for(var c=new Ax,e=new Ax,f=0;fua&&(ta.lineClass+=" inverse-highlight")};w.render=function(a,b,c,e){a=so(b).lineData;var f=is(b.nb(),0),k=this.N?"round":"butt";b=c.selectAll(".bar-target-line").data(a,function(y){return y.key});c=b.enter().append("line");a=b.exit();var p=c.merge(b),r=vu(this),t=tu(this);e&&(c.each(function(y){var E=Ij(this);lj(E,{display:y.validValue?null:"none","class":"bar-target-line "+y.lineClass,stroke:y.color,"stroke-linecap":k,"stroke-width":y.strokeWidth,"stroke-dasharray":y.dashPattern});E.attr(t+"1",y.domainPosition);E.attr(t+"2",y.domainPosition+y.domainSize);E.attr(r+"1",f);E.attr(r+"2",f)}),p=p.transition().duration(e),a=a.transition().duration(e),a.attr(r+"1",f),a.attr(r+"2",f));a.remove();p.each(function(y){var E=Ij(this);e&&(E=E.transition(p));lj(E,{display:y.validValue?null:"none","class":"bar-target-line "+y.lineClass,filter:y.filter,stroke:y.color,"stroke-linecap":k,"stroke-width":y.strokeWidth,"stroke-dasharray":y.dashPattern});E.attr(t+"1",y.domainPosition);E.attr(t+"2",y.domainPosition+y.domainSize);E.attr(r+"1",y.measurePosition);E.attr(r+"2",y.measurePosition)});return null};function Gx(a,b,c,e,f){a.v&&(c=1,b=0);return(0===b?f:0)+e+(b+1===c?f:0)} function Hx(a,b,c,e,f,k){if(a.v)return Math.floor((c-b)/2)-k;c=Math.floor((c-b)*f/2);0===e&&(c-=k);return c+(a.ha+b)*e} function Ix(a,b,c,e,f,k){var p=b.measureOffset,r=b.measure+p;cm(r)&&cm(p)||(r=0);p=Jp(k,r);var t=Jp(k,0);r=0>r;k=(k=t=e&&a<=k?0:Math.abs(a-p),b.domainDistance=c,b.measureDistance=f,b.relativeDistance=a,b):null};w.je=function(a,b,c,e,f){a=f||[];if(b=so(b).lineData)for(f=0;fya.chartX&&(k=!0);p=ya.chartX;Mx(this,ya);ya.pointClass="";var Aa=t(ya.datum,Ba);0Aa&&(ya.pointClass=(ya.pointClass+" inverse-highlight").trim());Aa=y(ya.datum,Ba);0Aa&&(ya.pointClass=(ya.pointClass+" inverse-selected").trim());ua&&(Aa=ya.domainOffset||0,E&&ma&&(ya.domainLowerBound=E(ya.datum,Ba),ya.domainUpperBound=ma(ya.datum,Ba),b||(ya.domainLowerBound+=Aa,ya.domainUpperBound+=Aa),null!==ya.domainLowerBound&&null!==ya.domainUpperBound&&(ya.domainLowerBoundPosition=is(e,ya.domainLowerBound,null),ya.domainUpperBoundPosition=is(e,ya.domainUpperBound,null),ya.errorBarColor=ya.color)),Aa=ya.measureOffset||0,ya.measureLowerBound=na(ya.datum,Ba),ya.measureUpperBound=ta(ya.datum,Ba),sa||(ya.measureLowerBound+=Aa,ya.measureUpperBound+=Aa),null!==ya.measureLowerBound&&null!==ya.measureUpperBound&&(ya.measureLowerBoundPosition=is(f,ya.measureLowerBound,null),ya.measureUpperBoundPosition=is(f,ya.measureUpperBound,null),ya.errorBarColor=ya.color));ya.shapeRenderer=a(ya.datum,ya.index)}k&&r.sort(function(Ca,Fa){return Ca.chartX-Fa.chartX});c.Eb=r;this.v.Nb(r,vu(this),e,f)}};function Lx(a,b,c){var e=a.ka;b.shapeRenderer&&(e=Kx(b.shapeRenderer));return uo(c,"shapeRenderer",function(f){return f.shapeRenderer?Kx(f.shapeRenderer):e})} function Mx(a,b){switch(a.N){case 1:b.labelX=isNaN(b.chartX)?null:b.chartX;b.labelY=isNaN(b.chartY)?null:b.chartY-6.5-b.radius;break;case 4:b.labelX=isNaN(b.chartX)?null:b.chartX;b.labelY=isNaN(b.chartY)?null:b.chartY;break;case 2:b.labelX=isNaN(b.chartX)?null:b.chartX-6.5-b.radius;b.labelY=isNaN(b.chartY)?null:b.chartY;break;case 3:b.labelX=isNaN(b.chartX)?null:b.chartX+6.5+b.radius;b.labelY=isNaN(b.chartY)?null:b.chartY;break;default:case 0:b.labelX=null,b.labelY=null}} w.render=function(a,b,c,e,f,k,p){a=is(b.nb(),0);f=so(b);var r=Sn(b,"datumHoverState")?b.md():function(){return 0};b=Sn(b,"datumClickState")?b.ae():function(){return 0};var t=c.node();Nx(this,f.Eb||[],t,a,e,k,p,r,b);return c.selectAll(".point-group")};function Nx(a,b,c,e,f,k,p,r,t){if(0===b.length)Ox(a,c,e,f);else{c=Ij(c).selectAll(".point-group").data(b,function(sa){return sa.key});c.exit().remove();var y=c.enter().append("g").attr("class","point-group");c=y.merge(c);a.v.Vf()||a.v.add(y,f,k);var E=function(sa,Ba){var ya=+sa.radius;if(0Aa.chartX&&(p=!0);t=Aa.chartX;Mx(this.v,Aa);this.ya&&(ta&&ua&&(Aa.domainLowerBound= ta(Aa.datum,ya),Aa.domainUpperBound=ua(Aa.datum,ya),null!==Aa.domainLowerBound&&null!==Aa.domainUpperBound&&(Ca=Aa.domainOffset||0,Aa.domainLowerBound+=Ca,Aa.domainUpperBound+=Ca,Aa.domainLowerBoundPosition=is(f,Ca+Aa.domainLowerBound),Aa.domainUpperBoundPosition=is(f,Ca+Aa.domainUpperBound),Aa.errorBarColor=Aa.color)),Aa.measureLowerBound=sa(Aa.datum,ya),Aa.measureUpperBound=Ba(Aa.datum,ya),null!=Aa.measureLowerBound&&null!=Aa.measureUpperBound&&(Ca=Aa.measureOffset||0,Aa.measureLowerBound+=Ca,Aa.measureUpperBound+= Ca,Aa.measureLowerBoundPosition=is(k,Ca+Aa.measureLowerBound),Aa.measureUpperBoundPosition=is(k,Ca+Aa.measureUpperBound),Aa.errorBarColor=Aa.color));Aa.shapeRenderer=b(Aa.datum,Aa.index);Aa.strokeWidth=na(Aa.datum,ya)}p&&y.sort(function(Ja,Ka){return Ja.chartX-Ka.chartX});var Fa=this.Sa?this.Sa(y,this):y;p=[];if(r)for(r=0;rQa&&(Oa+=" inverse-highlight");var Wa=ma(y[0].datum,0);0Wa&&(Oa+=" inverse-selected");Ea.push({color:Ka[0],Kg:Ka[1],Cc:Ka[2],Ie:Ka[3],Fl:Ja,wc:Fa,Lq:a.name,strokeWidth:Pa,Cq:Pa,Aq:0 Qa,id:"lineclip"+ik(),Ej:Oa})},this)}e.Eb=y;e.vj=p;e.Nf=Ea;this.N&&this.v.v.Nb(y,vu(this),f,k)}};w.render=function(a,b,c,e,f,k,p){var r=is(b.nb(),0),t=so(b),y=c.node();if(0!==a.data.length||null!=y){var E=c.select("g");E.node()&&E.classed("area-segments")||hk(y,'');var ma=zj(y);E=ma[1];var na=ma[2],ta=ma[3];y=ma[4];ma=ma[5];Xx(c,t.Nf,b);Yx(this,t.Nf,E,r,e,k);Zx(this,t.Nf,na,r,e,k);$x(this,t.vj,ta,r,e,k);ay(this,t.Nf,ma,r,e,k);this.N?this.v.render(a,b,Ij(y),e,f,k,p):(b=b.Nh(),so(b,{}),this.v.render({name:a.name,data:[]},b,Ij(y),e,f,k,p));return c.selectAll(".area, .line-series, .event-target, .error-area, .isolate-datum, .point-group")}};function Zx(a,b,c,e,f,k){if(a.ha)if(0===b.length)by(a,c,e,f);else if(Ij(c).attr("clip-path",k),f){k=Ij(c).selectAll(".line-series").data(b);k.exit().remove();b=Ij(c).selectAll(".event-target").data(b);b.exit().remove();c=k.enter().append("path");lj(c,{"class":function(t){return t.Ej},fill:"none"});k=c.merge(k);var p=b.enter().append("path");lj(p,{"class":"event-target",fill:"none"});b=p.merge(b);var r=cy().defined(function(t){return t.validValue}).curve(a.$).x(function(t){return t.chartX}).y(e);f&&(lj(c,{stroke:function(t){return t.Kg},"stroke-dasharray":function(t){return t.Cc},d:function(t){return r(t.wc)},"stroke-width":function(t){return t.strokeWidth}}),k=k.transition().duration(f),lj(p,{stroke:"transparent",opacity:"0",d:function(t){return r(t.wc)},"stroke-width":function(t){return Math.max(10,t.strokeWidth)}}),b=b.transition().duration(f));r.y(function(t){return t.chartY});lj(k,{"clip-path":function(t){return"url(#"+t.id+")"},stroke:function(t){return t.color},"stroke-dasharray":function(t){return t.Cc},d:function(t){return r(t.wc)},"stroke-width":function(t){return t.strokeWidth}});lj(b,{"clip-path":function(t){return"url(#"+t.id+")"},stroke:"transparent",opacity:"0",d:function(t){return r(t.wc)},"stroke-width":function(t){return Math.max(10,t.strokeWidth)}})}else dy(a,c,b),Ij(c).selectAll(".line-series").data(b),Ij(c).selectAll(".event-target").data(b);else hk(c,"")} function dy(a,b,c){for(var e="",f=cy().defined(function(r){return r.validValue}).curve(a.$).x(function(r){return a.Ca?Math.round(r.chartX):Math.round(100*r.chartX)/100}).y(function(r){r=cm(r.chartY)?r.chartY:1E4;return a.Ca?Math.round(r):Math.round(100*r)/100}),k=0;k';e+=''}hk(b,e)} function by(a,b,c,e){var f=Ij(b).selectAll(".line-series");e&&(f=f.transition().duration(e));var k=cy().defined(function(p){return p.validValue}).curve(a.$).x(function(p){return p.chartX}).y(c);f.attr("d",function(p){return k(p.wc)}).remove();Ij(b).selectAll(".event-target").remove()} function $x(a,b,c,e,f,k){b.length&&!a.N&&a.ha?(a=Ij(c).attr("clip-path",k).selectAll(".isolate-datum").data(b),a.exit().remove(),b=a.enter().append("path").attr("stroke-linecap","round"),a=b.merge(a),c={d:function(p){return"M"+p.chartX+","+e+"h0"},stroke:function(p){return p.color},"stroke-width":function(p){return 2*p.strokeWidth},"class":function(p){return"line-series isolate-datum"+(null!=p.datumClass?" "+p.datumClass:"")}},f&&(lj(b,c),a=a.transition().duration(f)),c.d=function(p){return"M"+p.chartX+","+p.chartY+"h0"},lj(a,c)):hk(c,"")} function Yx(a,b,c,e,f,k){if(a.va)if(0===b.length)ey(c,e,f);else{b=Ij(c).attr("clip-path",k).selectAll(".area").data(b);b.exit().remove();c=b.enter().append("path").attr("class","area").attr("stroke-width",0);b=c.merge(b);var p=fy().curve(a.Ma).defined(function(r){return r.validValue}).x(function(r){return r.chartX}).y1(e).y0(e);f&&(lj(c,{fill:function(r){return r.Kg},d:function(r){return p(r.wc)}}),b=b.transition().duration(f));p.y1(function(r){return r.chartY}).y0(function(r){return r.chartY0});lj(b,{"clip-path":function(r){return"url(#"+r.id+")"},fill:function(r){return r.Kg},d:function(r){return p(r.wc)},"class":function(r){return"area"+(null!=r.datumClass?" "+r.datumClass:"")}})}else hk(c,"")} function ey(a,b,c){a=Ij(a).selectAll(".area");c&&(a=a.transition().duration(c));var e=fy().defined(function(f){return f.validValue}).x(function(f){return f.chartX}).y1(b).y0(b);a.attr("d",function(f){return e(f.wc)}).remove()} function ay(a,b,c,e,f,k){if(a.ya)if(0===b.length||a.N)gy(c,e,f);else{b=Ij(c).attr("clip-path",k).selectAll(".error-area").data(b);b.exit().remove();c=b.enter().append("path");lj(c,{"class":"error-area","stroke-width":0});b=c.merge(b);var p=fy().curve(a.Ma).defined(function(r){return r.validValue}).x(function(r){return r.chartX}).y1(e).y0(e);f&&(lj(c,{fill:function(r){return r.color},d:function(r){return p(r.wc)}}),b=b.transition().duration(f));p.y1(function(r){return null!=r.measureUpperBoundPosition?r.measureUpperBoundPosition:r.chartY});p.y0(function(r){return null!=r.measureLowerBoundPosition?r.measureLowerBoundPosition:r.chartY});lj(b,{"clip-path":function(r){return"url(#"+r.id+")"},fill:function(r){return r.color},opacity:a.N?"0":".2",d:function(r){return p(r.wc)}})}else hk(c,"")} function gy(a,b,c){a=Ij(a).selectAll(".error-area");c&&(a=a.transition().duration(c));var e=fy().defined(function(f){return f.validValue}).x(function(f){return f.chartX}).y1(b).y0(b);a.attr("d",function(f){return e(f.wc)}).remove()} function Wx(a,b){var c=null!=a.O;return function(e,f){if(c)for(e=0;eE)return!0;if(tab||a>=r.length)return null;for(var t=Math.min(Math.max(iy(r,c),a),b),y=null,E=Number.MAX_VALUE,ma=Number.MAX_VALUE,na=t;na<=b&&!p(na);na++);for(b=t;b>=a&&!p(b);b--);null!=y&&(y=this.Ab(y,c,e));return y};function iy(a,b,c){c=void 0===c?!1:c;var e=pe(a,b,function(f,k){return f-k.chartX});if(0>e)return-e-1;if(c)for(;e=a?qk():rk()};function Ly(){return!1} w.jj=function(a,b,c,e){var f=Ky(a,b,c,e);c=Ky(a,b,c);e=Ky(a,b,void 0,e);a=Ky(a,b);return this.v[f]||this.v[c]||this.v[e]||this.v[a]||null};w.te=function(a,b,c,e,f){b=Ky(b,c,e,f);this.v[b]=a};w.$n=function(a){this.ha=a};w.Wf=function(a,b,c,e){b=Ky(b,c,e);this.N[b]=a};w.Xl=function(a){return this.$[a.toLowerCase()]||null};w.Wc=function(a,b){this.$[b.toLowerCase()]=a};w.Zc=function(a,b){this.ma[b.toLowerCase()]=a};function My(a,b){a.ha&&a.ha(b)} function Ky(a,b,c,e){a=[a.toString(),b.toString()];a.push((c||"").toLowerCase());a.push((e||"").toLowerCase());return a.join("-")} function Iy(a){var b=function(c){return function(e){var f=e.rendering?e.rendering:{};c&&null==f.domainAxisOuterPaddingPct&&null==f.domainAxisOuterPaddingPx&&(f.domainAxisOuterPaddingPx=this.na,f.domainAxisOuterPaddingPct=this.ka);e.rendering=f;return c?wt.Zi(e,6):wt.$i(e,6)}.bind(this)}.bind(a);a.te({rendering:{type:"default",barGroupPaddingPct:.35,minPxBetweenTicks:20}},0,0);a.Wf(b(!0),0,0);a.te({rendering:{type:"default",barGroupPaddingPct:.35,minPxBetweenTicks:2}},0,1);a.Wf(b(!0),0,1);a.te({rendering:{type:"default",barGroupPaddingPct:.35,domainAxisOuterPaddingPct:.35,minPxBetweenTicks:20}},0,0,"waterfall");a.te({rendering:{type:"default",barGroupPaddingPct:.35,domainAxisOuterPaddingPct:.35,minPxBetweenTicks:2}},0,1,"waterfall");a.te({ticks:{type:"default",numTicks:5},rendering:{type:"default",minPxBetweenTicks:14,showBaseline:!0}},1,0);a.Wf(b(!1),1,0);a.te({ticks:{type:"default",numTicks:5},rendering:{type:"default",minPxBetweenTicks:14,showBaseline:!0}},1,1);a.Wf(b(!1),1,1)} function Jy(a){a.Wc({},"eventAnnotation");a.Zc(function(){return new xu}.bind(a),"eventAnnotation");a.Wc({hideSingleArcBorder:!0,labelPadding:3,leaderLineLength:15,leaderLineTailLength:10,minLabelArcAngle:0,sortSlices:!1},"arc");a.Zc(function(b){var c=new zw(null!=b.arcInnerRadius?b.arcInnerRadius:0,null!=b.arcOuterRadius?b.arcOuterRadius:0);b=b.arc||b;null!=b.enableHtmlLabels&&c.ci(b.enableHtmlLabels);null!=b.hideSingleArcBorder&&(c.ma=b.hideSingleArcBorder);null!=b.labelPadding&&c.hi(b.labelPadding);null!=b.leaderLineLength&&c.ii(b.leaderLineLength);null!=b.leaderLineTailLength&&c.ji(b.leaderLineTailLength);null!=b.minLabelArcAngle&&c.mi(b.minLabelArcAngle);null!=b.showBackground&&(c.Ia=b.showBackground);null!=b.showHighlightShadow&&(c.La=b.showHighlightShadow);null!=b.sortSlices&&c.xi(b.sortSlices);return c}.bind(a),"arc");a.Wc({stack:!0,includeArea:!0},"area");a.Zc(function(b){return By(b)}.bind(a),"area");a.Wc({maxBarWidth:300,strokeWidth:2},"bar");a.Zc(function(b){var c=new Zw,e=c.v;b=b.bar||b;b=Fy(b);if(null!=b.groupingType)switch(b.groupingType){case "grouped":c.$f(1);break;case "stacked":c.$f(2);break;case "groupedStacked":c.$f(3);break;default:throw Error("Invalid bar grouping type: "+b.groupingType);}null!=b.labelColor&&null!=e&&e.Xc(b.labelColor);null!=b.labelOrientation&&null!=e&&e.sk(b.labelOrientation);null!=b.labelPosition&&null!=e&&e.Ob(b.labelPosition);null!=b.minBarWidth&&c.Bk(+b.minBarWidth);null!=b.maxBarWidth&&c.Yg(b.maxBarWidth);null!=b.minBarLengthForLabel&&null!=e&&e.li(b.minBarLengthForLabel);(null!=b.stack&&null==b.groupingType||0==b.groupingType)&&c.Rd(b.stack);null!=b.strokeWidth&&c.Sd(b.strokeWidth);null!=b.weightPattern&&c.Ik(b.weightPattern);Dy(c,b);Ey(c,b,!1);return c}.bind(a),"bar");a.Wc({maxBarWidth:300,strokeWidth:5},"barTarget");a.Zc(function(b){var c=new Ex;b=b.bartarget||b;null!=b.stack&&c.stack(b.stack);null!=b.maxBarWidth&&c.Lg(b.maxBarWidth);null!=b.strokeWidth&&c.strokeWidth(b.strokeWidth);return c}.bind(a),"barTarget");a.Wc({strokeWidth:2,legendKeyStrokeWidth:4},"line");a.Zc(function(b){return By(b)}.bind(a),"line");a.Wc({strokeWidth:1},"markerLine");a.Zc(function(b){var c=new uy;b=b.markerline||b;null!=b.greaterThanLabel&&c.rj(b.greaterThanLabel);null!=b.legendKeyStrokeWidth&&c.Mf(b.legendKeyStrokeWidth);null!=b.lessThanLabel&&c.Aj(b.lessThanLabel);null!=b.showSeriesName&&c.Jk(!!b.showSeriesName);null!=b.strokeWidth&&c.strokeWidth(b.strokeWidth);return c}.bind(a),"markerLine");a.Wc({},"point");a.Zc(function(b){var c=new Jx;b=b.point||b;null!=b.animatesFromDomainAxis&&c.Wj(b.animatesFromDomainAxis);if(null!=b.errorRenderer){var e=b;if(null!=e.errorRenderer)switch(e.errorRenderer){case "whiskers":c.di(new Xt);break;case "comparison_points":case "comparisonPoints":c.di(new Wt);break;default:throw Error('Unrecognized error renderer type: "'+e.errorRenderer+'"');}}null!=b.labelColor&&c.Xc(b.labelColor);null!=b.labelPosition&&Cy(c,b);null!=b.shapeRenderer&&c.Yf(b.shapeRenderer);Dy(c,b);return c}.bind(a),"point");a.Wc({},"waterfall");a.Zc(function(b){var c=Ay(),e=c.v;b=b.waterfall||b;b=Fy(b);null!=b.labelColor&&null!=e&&e.Xc(b.labelColor);null!=b.labelPosition&&null!=e&&e.Ob(b.labelPosition);null!=b.maxBarWidth&&c.Yg(b.maxBarWidth);null!=b.minBarLengthForLabel&&null!=e&&e.li(b.minBarLengthForLabel);null!=b.strokeWidth&&c.Sd(b.strokeWidth);Dy(c,b);return c}.bind(a),"waterfall")} Hy.prototype.setSeriesRendererFactory=Hy.prototype.Zc;Hy.prototype.setDefaultSeriesSeriesRendererSpec=Hy.prototype.Wc;Hy.prototype.getDefaultSeriesSeriesRendererSpec=Hy.prototype.Xl;Hy.prototype.setAxisFactory=Hy.prototype.Wf;Hy.prototype.setExtendedDefaultsCallback=Hy.prototype.$n;Hy.prototype.setDefaultAxisSpec=Hy.prototype.te;Hy.prototype.getDefaultAxisSpec=Hy.prototype.jj;wd("aplos.chart.style.AplosTemplateStyle",Hy);function Ny(){Hy.call(this);this.O+=" quantum-style"} Zc(Ny,Hy);wd("aplos.chart.style.QuantumStyle",Ny);var Oy=new Ny;wd("aplos.chart.Style.getCurrentStyle",function(){return Oy});wd("aplos.chart.Style.setCurrentStyle",function(a){Oy=a});wd("aplos.chart.Style.resetCurrentStyle",function(){Oy=new Ny});function Py(){this.N=0;this.O=null;this.v=[];this.$=Wh;this.ma=this.ka;this.ha=Wh} wd("aplos.data.DataPromise",Py);var Qy=!1;Py.setAllowSynchronousPromises=function(){Qy=!0};Py.prototype.Df=function(a){if(0!==this.N)return this;this.N=1;this.O=a;for(a=0;a')),document.body.appendChild(jk),jk.contentDocument.body.appendChild(wj(new mg(og,"\n \n
 
\n \n \n \n \n \n \n
"))));var r=jk.contentDocument,t=r.querySelector(p.tagName);t||(t=r.querySelector("div"));r=Jj(t);t=Jj(p);for(var y={},E=0;E>=8),b[c++]=f;a=Df(b,void 0)}return"data:image/svg+xml;base64,"+ a};Ty.prototype.toSvgDataUrl=Ty.prototype.Nk;Ty.prototype.Co=function(a){a=void 0===a?1:a;var b=document.createElement("canvas"),c=10*a;b.width=this.frameWidth()*a+2*c;b.height=this.frameHeight()*a+2*c;var e=new Image;e.src=this.Nk(a);var f=new Py;e.onload=function(){this.onerror=this.onload=null;try{var k=b.getContext("2d");k.fillStyle="#FFF";k.fillRect(0,0,b.width,b.height);k.drawImage(e,c,c);f.Df(b.toDataURL("image/png"))}catch(p){f.reject(p)}};e.onerror=function(){f.reject(Error("Svg image dataUrl failed to load"))};return f};Ty.prototype.toPngDataUrl=Ty.prototype.Co;Ty.prototype.getStyle=function(){return this.Ai};var Vy="aplos-chart",fz="aplos-chart-container";function gz(a,b,c){gz.base(this,"constructor",ke(a,["prelayout","postlayout"]),b,c);this.nf=this.Pc=null;this.Yc({top:40,end:20,start:20,bottom:20},{top:.333,end:.5,start:.5,bottom:.333})} wd("aplos.chart.SvgChartView",gz);xd(gz,Ty);var hz=0;gz.prototype.redraw=gz.prototype.df;gz.prototype.xd=function(){gz.Pb.xd.call(this);var a=this.Xe().node();a.setAttribute("width",this.frameWidth());a.setAttribute("height",this.frameHeight());this.ab.node().setAttribute("transform","translate("+this.Kb()+","+this.Lb()+")");this.Pc&&this.Pc.attr("width",this.Za()+1).attr("height",this.wb()+2)};gz.prototype.Xe=function(){return this.uo};gz.prototype.getSvg=gz.prototype.Xe;gz.prototype.Do=function(){var a=this.Xe().node(),b=document.createElement("style"),c=Tj(a),e=Jj(a);c.push("svg{font:"+e.fontStyle+" "+e.fontVariant+" "+e.fontWeight+" "+e.fontSize+" "+e.fontFamily+"}");b.textContent=c.join("\n");c=document.createElement("defs");c.appendChild(b);a.insertBefore(c,a.firstChild);b=(new XMLSerializer).serializeToString(a);a.removeChild(c);return b};gz.prototype.toSvgString=gz.prototype.Do;gz.prototype.getNearestDatumDetails=gz.prototype.Gf;var iz=document.implementation.hasFeature("org.w3c.svg","1.0")||document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Structure","1.1"),Wy="aplos-chart-container",Xy="aplos-chart-svg",Yy="aplos-draw-area";function jz(a,b,c){var e=this;gz.call(this,ke(a,"datumMouseover datumMouseout datumClick seriesMouseover seriesMouseout seriesClick".split(" ")),b,c);this.rb=new mo(this);this.na={};this.se={};this.Dk("hover",new eo);this.Ya=new kz;this.on("viewportChange.seriesChartView",function(){e.Ya.reset()})} xd(jz,gz);wd("aplos.chart.SeriesChartView",jz);jz.prototype.Dk=function(a,b){b.Sg("clearSelectedDatumDetailsCache",this.Xk.bind(this));var c=this.se,e=Un[a].selectionChange,f=this.Xa;f.O.hasOwnProperty(e)||$n(f,[e]);e=c[a];null!=e&&e.Sg("chartDelegate",null);c[a]=b;ez(this,b,a);return this};jz.prototype.setSelectionModel=jz.prototype.Dk;jz.prototype.ko=function(a){no(this.rb,a);return this};jz.prototype.setSeriesDefaults=jz.prototype.ko;jz.prototype.ub=function(a){return this.na[a||"__aplosDefault__"]||this.na.__aplosDefault__};jz.prototype.getRenderer=jz.prototype.ub;jz.prototype.$m=function(a){return!!this.na[a||"__aplosDefault__"]};jz.prototype.hasRenderer=jz.prototype.$m;jz.prototype.ag=function(a,b){b?(b.type&&(b=this.getStyle().nj(b)),this.na[a]=b):delete this.na[a];return this};jz.prototype.setRenderer=jz.prototype.ag;jz.prototype.ai=function(a){a.type&&(a=this.getStyle().nj(a));this.na.__aplosDefault__=a;return this};jz.prototype.setDefaultRenderer=jz.prototype.ai;jz.prototype.Zh=function(a,b){a=this.Ff(a,!0);a=a.filter(function(c){return!c.series||!c.series.overlay});(this.se[Tn[b]||"hover"]||null).Zg(a.map(function(c){return{series:c.series?c.series:null,datum:c.datum}}));return a.length};jz.prototype.selectDatum=jz.prototype.Zh;jz.prototype.Qn=function(a){this.Xa.mb("seriesMouseover",this,a,nj)};jz.prototype.selectSeries=jz.prototype.Qn;jz.prototype.ul=function(a){(this.se[Tn[a]||"hover"]||null).deselectAll()};jz.prototype.clearSelections=jz.prototype.ul;jz.prototype.Ff=function(a,b,c){var e=this.N||[],f=this.v||[];if(!e||!f)return[];if(nj){var k=mj(this.ab.node());var p=k[0];k=k[1]}for(var r=[],t=0;tb||b>this.Za())||!this.Wb&&(0>a||a>this.wb()))return[];for(var e=new pu(this.Kb(),this.Lb(),this.Za(),this.wb()),f=new qj(b+e.left,a+e.top),k=[],p=0;p=c)throw Error("LIKE pattern ends with a backslash.");f=a.charAt(++e);Bz(f)&&(b+="\\");b+=f;break;case "_":b+=".";break;case "%":b+=".*";break;default:Bz(f)&&(b+="\\"),b+=f}}return b+"$"} function Dz(a){try{return a=a.replace(/\\"/g,'"'),a=a.replace(/\\'/g,"'"),a=a.replace(/\\n/g,"\n"),a=a.replace(/\\t/g,"\t"),a=a.replace(/\\r/g,"\r"),a=a.replace(/\\\\/g,"\\"),a=a.replace(/\\U([\d\w]{8})/gi,function(b,c){return String.fromCharCode(parseInt(c.substring(0,4),16),parseInt(c.substring(4),16))}),a=a.replace(/\\u([\d\w]{4})/gi,function(b,c){return String.fromCharCode(parseInt(c,16))})}catch(b){throw Error('Unable to unescape "'+a+'" encountered error: '+b);}} function Ez(){} Ez.prototype.parse=function(){console&&console.error("No expression parser implementation was defined. Please ensure that aplos.data.GeneratedParser has been required.");throw Error("No expression parser implementation was defined.");};var Fz=new Ez;Fz=function(){function a(va,oc,fd,Vc){fd=fd||{};for(Vc=va.length;Vc--;fd[va[Vc]]=oc);return fd} function b(){this.Oc={}} var c=[1,8],e=[1,20],f=[1,26],k=[1,27],p=[1,30],r=[1,112],t=[1,113],y=[1,29],E=[1,28],ma=[1,83],na=[1,84],ta=[1,85],ua=[1,86],sa=[1,87],Ba=[1,88],ya=[1,89],Aa=[1,90],Ca=[1,91],Fa=[1,92],Ea=[1,93],Ja=[1,94],Ka=[1,95],Oa=[1,96],Pa=[1,97],Qa=[1,98],Wa=[1,99],Db=[1,111],Eb=[1,100],Fb=[1,101],Gb=[1,102],Hb=[1,103],Ib=[1,104],Jb=[1,105],$a=[1,106],Kb=[1,107],Lb=[1,108],Mb=[1,109],fb=[1,110],ub=[1,31],vb=[1,32],wb=[1,33],Nb=[1,34],Ob=[1,35],Pb=[1,36],Qb=[1,37],Rb=[1,38],Sb=[1,47],Tb=[1,48],Ub=[1,49],Vb= [1,50],Wb=[1,51],Xb=[1,52],Yb=[1,53],Zb=[1,54],$b=[1,55],ac=[1,56],bc=[1,57],xb=[1,58],cc=[1,59],dc=[1,60],ec=[1,61],yb=[1,62],fc=[1,63],gc=[1,64],Ra=[1,65],Za=[1,66],gb=[1,67],ab=[1,68],bb=[1,69],Xa=[1,70],Ya=[1,71],zb=[1,72],Ab=[1,73],hb=[1,74],cb=[1,75],La=[1,76],ib=[1,77],Bb=[1,78],hc=[1,79],jb=[1,80],Ua=[1,81],kb=[1,82],lb=[1,39],Va=[1,40],mb=[1,41],nb=[1,42],ob=[1,43],pb=[1,44],ic=[1,45],qb=[1,46],rb=[1,116],db=[1,117],sb=[1,118],lc=[1,119],pc=[1,120],uc=[1,121],zc=[1,122],rc=[1,123],Ac=[1,124],Cb=[1,125],Gc=[1,126],Ic=[1,128],Hc=[1,127],mc=[1,129],Bc=[1,130],Cc=[1,131],Dc=[1,132],sc=[1,133],qc=[1,134],Ec=[1,135],vc=[1,136],wc=[1,137],xc=[1,138],yc=[1,139],tb=[5,12,17,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,54,71,72,74,75,76,81,82,96,97,98,99],zg=[1,140],Hk=[1,150],Ag=[5,11,12,17,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,54,55,71,72,74,75,76,81,82,96,97,98,99],Ai=[1,180],Bi=[5,12,17,42,43,44,45,54,96,97,98,99],Ye=[1,233],tf=[1,250],Ci=[5,12,17,32,33,36,37,38,39,40,41,42,43,44,45,46,47,48,54,71,72,74,75,76,81,82,96,97,98,99],Ee=[5,12,17,36,37,38,39,40,41,42,43,44,45,46,47,48,54,71,72,74,75,76,81,82,96,97,98,99],oe=[2,37],Ze=[1,336],ie=[5,12,17,54,96,97,98,99],Ik=[96,97],Ei={trace:function(){},Oc:{},vo:{error:2,expressions:3,math:4,EOF:5,float_item:6,boolean_item:7,identifier_item:8,negated_identifier:9,string_item:10,"(":11,")":12,operator_expression:13,aggregation_function:14,scalar_operator:15,scalar_2_operator:16,",":17,scalar_n_operator:18,comma_values:19,scalar_function:20,scalar_2_function:21,scalar_n_functions:22,alias_functions:23,datetime_functions:24,case_function:25,cast_function:26,quantile_functions:27,native_function:28,misc_function_no_args:29,misc_function_one_arg:30,misc_function_n_args:31,"+":32,"-":33,"/":34,"*":35,"=":36,"!=":37,"<":38,"<=":39,">":40,">=":41,BETWEEN_OP:42,AND_OP:43,NOT_BETWEEN_OP:44,OR_OP:45,IS_NULL_OP:46,IS_TRUE_OP:47,IS_FALSE_OP:48,FLOAT_VALUE:49,STRING_VALUE:50,NATIVE_EXPR:51,NATIVE_AGGREGATE:52,misc_function_start:53,IDENTIFIER:54,DOT_OP:55,BOOLEAN_VALUE:56,token_item:57,ROUND:58,TRUNC:59,LN:60,LOG10:61,LOG:62,POW:63,EXP:64,LIKE:65,COUNT:66,DISTINCT:67,COUNT_DISTINCT_EST:68,NOT_OP:69,NOT_EQUAL_EXPR:70,LIKE_OP:71,NOT_LIKE_OP:72,IS_NOT_NULL:73,IS_NOT_NULL_OP:74,IS_NOT_TRUE_OP:75,IS_NOT_FALSE_OP:76,IF:77,IFNULL:78,NULLIF:79,COALESCE:80,IN_OP:81,NOT_IN_OP:82,NTH_QUANTILE:83,EXTRACT:84,DATE_TRUNC:85,DATETIME_TRUNC:86,TIMESTAMP_TRUNC:87,DATE_ADD:88,DATE_SUB:89,PARSETIME:90,FORMATTIME:91,TIMESTAMP:92,CAST:93,CASE:94,when_then_values:95,ELSE:96,END:97,WHEN:98,THEN:99,AVG:100,SUM:101,MIN:102,MAX:103,COUNT_DISTINCT:104,VARIANCE:105,STDDEV:106,HLL_COUNT_MERGE:107,ABS:108,SIGN:109,IS_INF:110,IS_NAN:111,SQRT:112,CEILING:113,FLOOR:114,COS:115,COSH:116,ACOS:117,ACOSH:118,SIN:119,SINH:120,ASIN:121,ASINH:122,TAN:123,TANH:124,ATAN:125,ATANH:126,IS_NULL:127,UNIX_MICROS:128,UNIX_MILLIS:129,TIMESTAMP_MICROS:130,TIMESTAMP_MILLIS:131,ENCODE_URI_COMPONENT:132,HLL_COUNT_EXTRACT:133,IEEE_DIVIDE:134,POWER:135,DIV:136,MOD:137,ATAN2:138,REGEXP_MATCH:139,GREATEST:140,LEAST:141,CONCAT:142,FORMAT:143,NOT_EXPR:144,EQUAL_EXPR:145,LESS_EXPR:146,LESS_OR_EQUAL_EXPR:147,GREATER_EXPR:148,GREATER_OR_EQUAL_EXPR:149,AND_EXPR:150,OR_EXPR:151,$accept:0,$end:1},eg:{2:"error",5:"EOF",11:"(",12:")",17:",",26:"cast_function",32:"+",33:"-",34:"/",35:"*",36:"=",37:"!=",38:"<",39:"<=",40:">",41:">=",42:"BETWEEN_OP",43:"AND_OP",44:"NOT_BETWEEN_OP",45:"OR_OP",46:"IS_NULL_OP",47:"IS_TRUE_OP",48:"IS_FALSE_OP",49:"FLOAT_VALUE",50:"STRING_VALUE",51:"NATIVE_EXPR",52:"NATIVE_AGGREGATE",54:"IDENTIFIER",55:"DOT_OP",56:"BOOLEAN_VALUE",58:"ROUND",59:"TRUNC",60:"LN",61:"LOG10",62:"LOG",63:"POW",64:"EXP",65:"LIKE",66:"COUNT",67:"DISTINCT",68:"COUNT_DISTINCT_EST",69:"NOT_OP",70:"NOT_EQUAL_EXPR",71:"LIKE_OP",72:"NOT_LIKE_OP",73:"IS_NOT_NULL",74:"IS_NOT_NULL_OP",75:"IS_NOT_TRUE_OP",76:"IS_NOT_FALSE_OP",77:"IF",78:"IFNULL",79:"NULLIF",80:"COALESCE",81:"IN_OP",82:"NOT_IN_OP",83:"NTH_QUANTILE",84:"EXTRACT",85:"DATE_TRUNC",86:"DATETIME_TRUNC",87:"TIMESTAMP_TRUNC",88:"DATE_ADD",89:"DATE_SUB",90:"PARSETIME",91:"FORMATTIME",92:"TIMESTAMP",93:"CAST",94:"CASE",96:"ELSE",97:"END",98:"WHEN",99:"THEN",100:"AVG",101:"SUM",102:"MIN",103:"MAX",104:"COUNT_DISTINCT",105:"VARIANCE",106:"STDDEV",107:"HLL_COUNT_MERGE",108:"ABS",109:"SIGN",110:"IS_INF",111:"IS_NAN",112:"SQRT",113:"CEILING",114:"FLOOR",115:"COS",116:"COSH",117:"ACOS",118:"ACOSH",119:"SIN",120:"SINH",121:"ASIN",122:"ASINH",123:"TAN",124:"TANH",125:"ATAN",126:"ATANH",127:"IS_NULL",128:"UNIX_MICROS",129:"UNIX_MILLIS",130:"TIMESTAMP_MICROS",131:"TIMESTAMP_MILLIS",132:"ENCODE_URI_COMPONENT",133:"HLL_COUNT_EXTRACT",134:"IEEE_DIVIDE",135:"POWER",136:"DIV",137:"MOD",138:"ATAN2",139:"REGEXP_MATCH",140:"GREATEST",141:"LEAST",142:"CONCAT",143:"FORMAT",144:"NOT_EXPR",145:"EQUAL_EXPR",146:"LESS_EXPR",147:"LESS_OR_EQUAL_EXPR",148:"GREATER_EXPR",149:"GREATER_OR_EQUAL_EXPR",150:"AND_EXPR",151:"OR_EXPR"},Sj:[0,[3,2],[4,1],[4,1],[4,1],[4,1],[4,1],[4,3],[4,1],[4,4],[4,4],[4,6],[4,4],[4,4],[4,6],[4,4],[4,1],[4,1],[4,1],[4,1],[4,1],[4,1],[4,1],[4,1],[4,1],[13,3],[13,3],[13,3],[13,3],[13,3],[13,3],[13,3],[13,3],[13,3],[13,3],[13,5],[13,5],[13,3],[13,3],[13,2],[13,2],[13,2],[6,2],[6,1],[10,1],[28,4],[28,4],[53,2],[29,2],[30,3],[31,3],[9,2],[8,1],[8,3],[7,1],[57,1],[19,3],[19,3],[23,4],[23,6],[23,4],[23,6],[23,4],[23,4],[23,4],[23,6],[23,6],[23,4],[23,6],[23,4],[23,5],[23,4],[23,2],[23,6],[23,3],[23,3],[23,4],[23,2],[23,2],[23,2],[23,8],[23,6],[23,6],[23,4],[23,5],[23,5],[23,5],[23,5],[27,8],[24,10],[24,10],[24,6],[24,6],[24,6],[24,8],[24,8],[24,8],[24,8],[24,8],[24,4],[24,6],[24,6],[25,5],[25,3],[95,4],[95,5],[14,1],[14,1],[14,1],[14,1],[14,1],[14,1],[14,1],[14,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[22,1],[22,1],[22,1],[22,1],[15,1],[16,1],[16,1],[16,1],[16,1],[16,1],[18,1],[18,1]],Qh:function(va,oc,fd,Vc,hd,za){va=za.length-1;switch(hd){case 1:return za[va-1];case 7:this.oa=za[va-1];break;case 9:case 10:case 13:this.oa={type:"function",name:za[va-3].toUpperCase(),params:[za[va-1]]};break;case 11:case 14:this.oa={type:"function",name:za[va-5].toUpperCase(),params:[za[va-3],za[va-1]]};break;case 12:case 15:this.oa={type:"function",name:za[va-3].toUpperCase(),params:za[va-1]};break;case 25:case 26:case 27:case 28:this.oa={type:"function",name:za[va-1],params:[za[va-2],za[va]]};break;case 29:this.oa={type:"function",name:"EQUAL",params:[za[va-2],za[va]]};break;case 30:this.oa={type:"function",name:"NOT_EQUAL",params:[za[va-2],za[va]]};break;case 31:this.oa={type:"function",name:"LESS",params:[za[va-2],za[va]]};break;case 32:this.oa={type:"function",name:"LESS_OR_EQUAL",params:[za[va-2],za[va]]};break;case 33:this.oa={type:"function",name:"GREATER",params:[za[va-2],za[va]]};break;case 34:this.oa={type:"function",name:"GREATER_OR_EQUAL",params:[za[va-2],za[va]]};break;case 35:this.oa={type:"function",name:"BETWEEN",params:[za[va-4],za[va-2],za[va]]};break;case 36:this.oa={type:"function",name:"NOT BETWEEN",params:[za[va-4],za[va-2],za[va]]};break;case 37:this.oa={type:"function",name:"AND",params:[za[va-2],za[va]]};break;case 38:this.oa={type:"function",name:"OR",params:[za[va-2],za[va]]};break;case 39:this.oa={type:"function",name:"IS NULL",params:[za[va-1]]};break;case 40:this.oa={type:"function",name:"IS TRUE",params:[za[va-1]]};break;case 41:this.oa={type:"function",name:"IS FALSE",params:[za[va-1]]};break;case 42:this.oa={type:"number",value:+-za[va]};break;case 43:this.oa={type:"number",value:+za[va]};break;case 44:this.oa={type:"string",value:Dz(za[va].substring(1,za[va].length-1))};break;case 45:case 46:this.oa={type:"function",name:za[va-3],params:[za[va-1]]};break;case 47:hd=za[va-1].pathParts.slice();if(2va.length&&(va+=this.$b.substr(0,20-va.length));return(va.substr(0,20)+(20Vc[0].length)){var Vc=va;var hd=fd;if(this.options.Ri){Vc=this.Lk(va,oc[fd]);if(!1!==Vc)return Vc;if(this.kg)Vc=!1;else return!1}else if(!this.options.flex)break}return Vc?(Vc=this.Lk(Vc,oc[hd]),!1!==Vc?Vc:!1):""===this.$b?this.Hi:this.parseError("Lexical error on line "+(this.Xb+1)+". Unrecognized text.\n"+ this.$g(),{text:"",Ok:null,line:this.Xb})},Bj:function(){var va=this.next();return va?va:this.Bj()},Si:function(va){this.Gb.push(va)},Hn:function(){return 0)/i,/^(?:>=)/i,/^(?:=)/i,/^(?:!=)/i,/^(?:<>)/i,/^(?:\.)/i,/^(?:BETWEEN)/i,/^(?:NOT BETWEEN)/i,/^(?:LIKE)/i,/^(?:NOT LIKE)/i,/^(?:IS NULL)/i,/^(?:IS NOT NULL)/i,/^(?:IS TRUE)/i,/^(?:IS NOT TRUE)/i,/^(?:IS FALSE)/i,/^(?:IS NOT FALSE)/i,/^(?:IN)/i,/^(?:NOT IN)/i,/^(?:CASE)/i,/^(?:WHEN)/i,/^(?:THEN)/i,/^(?:ELSE)/i,/^(?:END)/i,/^(?:COALESCE(?=\s*[(]))/i,/^(?:IF(?=\s*[(]))/i,/^(?:IFNULL(?=\s*[(]))/i,/^(?:NULLIF(?=\s*[(]))/i,/^(?:COUNT_DISTINCT(?=\s*[(]))/i,/^(?:COUNT_DISTINCT_EST(?=\s*[(]))/i,/^(?:PARSETIME(?=\s*[(]))/i,/^(?:FORMATTIME(?=\s*[(]))/i,/^(?:NTH_QUANTILE(?=\s*[(]))/i,/^(?:ENCODE_URI_COMPONENT(?=\s*[(]))/i,/^(?:\()/i,/^(?:\))/i,/^(?:,)/i,/^(?:')/i,/^(?:")/i,/^(?:")/i,/^(?:[0-9]*(\.[0-9]*)?([eE]-?[0-9]+)?\b)/i,/^(?:TRUE|FALSE)/i,/^(?:[a-zA-Z_][a-zA-Z0-9_]*\b)/i,/^(?:["](\\.|[^"])*["])/i,/^(?:['](\\.|[^'])*['])/i,/^(?:[`](\\.|[^`])*[`])/i,/^(?:$)/i,/^(?:.)/i,/^(?:.)/i],conditions:{CASE_MODE:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132],inclusive:!0},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132],inclusive:!0}}}}();b.prototype=Ei;Ei.v=b;return new b}();function Gz(a,b,c){if(null!=c&&"number"!==typeof c)throw Error("Provided value for "+b+' to "'+a+'" was of type '+typeof c+" but a number was expected.");} function Hz(a,b,c){if(null!=c&&("number"!==typeof c||!isNaN(c))&&isFinite(c)&&c!==parseInt(c,10))throw Error("Provided value for "+b+' to "'+a+'" was not an integer.');} function Iz(a,b,c,e,f){if(null!=c&&!(isNaN(c)||c>=e&&c<=f))throw Error("Value provided for "+b+' to "'+a+'" was out of the allowed range of ['+e+", "+f+"].");} function Jz(a,b){Gz("TRUNC(X, Y)","X",a);Gz("TRUNC(X, Y)","Y",b);Hz("TRUNC(X, Y)","Y",b);if(null==a||null==b)return null;if(isNaN(a)||isNaN(b))return NaN;if(!isFinite(a))return+a;a=0<=a?Number(Math.floor(a+"e"+b)):Number(Math.ceil(a+"e"+b));return 0<=b?Number(a+"e-"+b):Number(a+"e"+-b)} function Kz(a,b){Gz("LOG(X, Y)","X",a);Gz("LOG(X, Y)","X",b);return null==a||null==b?null:+a/+b} ;function Lz(a,b){var c=Array.prototype.slice.call(arguments),e=c.shift();if("undefined"==typeof e)throw Error("[goog.string.format] Template required");return e.replace(/%([0\- \+]*)(\d+)?(\.(\d+))?([%sfdiu])/g,function(f,k,p,r,t,y,E,ma){if("%"==y)return"%";var na=c.shift();if("undefined"==typeof na)throw Error("[goog.string.format] Not enough arguments");arguments[0]=na;return Mz[y].apply(null,arguments)})} var Mz={s:function(a,b,c){return isNaN(c)||""==c||a.length>=Number(c)?a:a=-1Number(a)?"-":0<=b.indexOf("+")?"+":0<=b.indexOf(" ")?" ":"";0<=Number(a)&&(e=k+e);if(isNaN(c)||e.length>=Number(c))return e;e=isNaN(f)?Math.abs(Number(a)).toString():Math.abs(Number(a)).toFixed(f);a=Number(c)-e.length-k.length;0<=b.indexOf("-",0)?e=k+e+ci(" ",a):(b=0<=b.indexOf("0",0)?"0":" ",e=k+ci(b,a)+e);return e},d:function(a,b,c,e,f,k,p,r){return Mz.f(parseInt(a,10),b,c,e,0,k,p,r)}};Mz.i=Mz.d;Mz.u=Mz.d;function Nz(a,b){if(null==a)return!1;if(0===b.length)return!0;b=Kc(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,a===c||typeof a!==typeof c)return!1;return!0} function Oz(a,b,c){if(null==b||null==c)return!1;if(typeof b!=typeof c)throw Error("Argument type mismatch in "+a+' comparison function: parameter 1 "'+b+'" is type '+typeof b+' but param2 "'+c+'" is type '+typeof c+".");switch(a){case "EQUAL":return b===c;case "NOT_EQUAL":return b!==c;case "LESS":return bc;case "GREATER_OR_EQUAL":return b>=c;default:throw Error('Unhandled binary operator "'+a+'".');}} function Pz(a,b){var c=b[0];if(b.some(function(e){return null==e}))return null;switch(a){case "+":for(a=1;a=e?Math.ceil(e-.5):Math.floor(e+.5);if(ec)throw Error("CAST result is out of range for integer type.");return e} function Wz(a,b,c){switch(typeof a){case "number":var e=a;break;case "boolean":e=a?1:0;break;case "string":if("inf"===a.toLowerCase()||"+inf"===a.toLowerCase()){e=Infinity;break}else if("-inf"===a.toLowerCase())e=-Infinity;else if("nan"===a.toLowerCase())e=NaN;else if(e=Number(a),isNaN(e))throw Error('CAST from string to a floating point value failed for "'+a+'" because of non-numeric characters.');if(isNaN(e)&&"nan"!==a.toLowerCase())throw Error('CAST from string to a floating point value failed for "'+ a+'".');break;default:throw Error("CAST from "+typeof a+" to a floating point value is not supported.");}if(null!=b&&null!=c&&isFinite(e)&&(ec))throw Error("CAST result "+e+" is out of range for target type.");return e} function Xz(a){if("number"===typeof a){if(Infinity===a)return"inf";if(-Infinity===a)return"-inf";if(isNaN(a))return"NaN"}return""+a} ;function Yz(a,b){var c=Zz;a=a?a.toUpperCase():a;c.v.has(a)||c.v.set(a,new Map);c=c.v.get(a);for(var e=Kc(Oe(b)),f=e.next();!f.done;f=e.next()){f=f.value;var k=f.toUpperCase();c.set(k,new $z(a,k,b[f]))}} function $z(a,b,c){this.O=a;this.N=b;this.v=c} $z.prototype.call=function(a){for(var b=[],c=0;ce)throw Error("Expected no more than "+c+" args for "+this.N);return this.v.vb?this.v.vb.apply(null,a):this.v.ta.apply(null,a)};$z.prototype.Na=function(a){return this.v.Na?this.v.Na.call(null,a):Uz(this.O,this.N,a)};var Zz=new function(){this.v=new Map};Yz("",{AVG:{vb:tq},COUNTIF:{vb:wq},SUM:{vb:uq},MIN:{vb:xq},MAX:{vb:yq},COUNT:{vb:vq},COUNT_DISTINCT:{vb:zq},NTH_QUANTILE:{vb:Aq},VARIANCE:{vb:Cq},STDDEV:{vb:Dq},"HLL_COUNT.MERGE":{vb:Eq},"HLL_COUNT.EXTRACT":{ua:1,wa:1,ta:function(){throw Error("HLL_COUNT.EXTRACT is not implemented on the client.");}},ABS:{ua:1,wa:1,ta:function(a){Gz("ABS(X)","X",a);return null!=a?Math.abs(+a):null}},SIGN:{ua:1,wa:1,ta:function(a){Gz("SIGN(X)","X",a);var b=Math.sign||function(c){c=+c;return 0===c||isNaN(c)?c:0Math.abs(a)&&-Infinity===b)return Infinity;if(1Math.abs(a)&&Infinity===b||-Infinity===a&&0>b)return 0;if(-Infinity===a&&0b)return 0;if(Infinity===a&&0b)return-Infinity;if(Infinity===a&&1a))throw Error('Value provided for X to "ATANH(X)" was out of the allowed range of (-1, 1).');var b=Math.atanh||function(c){return Math.log((1+c)/(1-c))/2};return null!=a?b(+a):null}},ATAN2:{ua:2,wa:2,ta:function(a,b){Gz("ATAN(Y, X)","X",a);Gz("ATAN(Y, X)","Y",b);return null==a||null==b?null:Math.atan2(+a,+b)}},REGEXP_MATCH:{ua:2,wa:2,ta:function(a,b){if("string"!==typeof a||"string"!==typeof b)return null;if(0==b.indexOf("(?i)")){b=b.substring(4);var c="i"}else 0==b.indexOf("(?is)")&&(b=b.substring(5),c="i");return RegExp(b,c).test(a)},qc:"REGEX"},ENCODE_URI_COMPONENT:{ua:1,wa:1,ta:function(a){return"string"!==typeof a?null:encodeURIComponent(a)}},FORMAT:{ua:2,wa:void 0,ta:function(a){return 2>arguments.length?null:Lz.apply(null,arguments)}},CONCAT:{ua:2,wa:void 0,ta:function(a){for(var b="",c=0;ca.length)throw Error("Expected at least one parameter for IN");return a[0]+" IN ("+a.slice(1).join(",")+")"},qc:"IN"},"NOT IN":{ua:1,ta:function(a,b){for(var c=[],e=1;ea.length)throw Error("Expected at least one parameter for NOT IN");return a[0]+" NOT IN ("+a.slice(1).join(",")+")"},qc:"NOT_IN"},"IS NULL":{ua:1,wa:1,ta:function(a){return null==a},Na:function(a){return Sz("IS NULL",a)},qc:"IS_NULL"},"IS TRUE":{ua:1,wa:1,ta:function(a){if(null==a)return!1;if("boolean"!==typeof a)throw Error("Argument type mismatch in IS TRUE param1 is type "+typeof a+" but must be boolean.");return!0===a},Na:function(a){return Sz("IS TRUE",a)}},"IS FALSE":{ua:1,wa:1,ta:function(a){if(null==a)return!1;if("boolean"!==typeof a)throw Error("Argument type mismatch in IS FALSE param1 is type "+typeof a+" but must be boolean.");return!1===a},Na:function(a){return Sz("IS FALSE",a)}},BETWEEN:{ua:3,wa:3,ta:function(a,b,c){return null==a||typeof a!==typeof b||typeof a!==typeof c?!1:b<=a&&a<=c},Na:function(a){return"("+a[0]+" BETWEEN "+a[1]+" AND "+a[2]+")"},qc:"BETWEEN"},"NOT BETWEEN":{ua:3,wa:3,ta:function(a,b,c){return null==a||typeof a!==typeof b||typeof a!==typeof c?!1:b>a||a>c},Na:function(a){return"("+a[0]+" NOT BETWEEN "+a[1]+" AND "+a[2]+")"},qc:"NOT_BETWEEN"},CAST:{ua:2,wa:2,ta:function(a,b){if(null==a)return null;switch(b.toUpperCase()){case "INT32":return Vz(a,-2147483648,2147483647);case "INT64":return Vz(a,-0x7fffffffffffffff,0x7fffffffffffffff);case "UINT64":return Vz(a,0,1.8446744073709552E19);case "FLOAT":return Wz(a,-3.4028234663852886E38,3.4028234663852886E38);case "DOUBLE":return Wz(a);case "BOOL":return Vr(a);case "STRING":return Xz(a);default:throw Error("CAST to "+b.toUpperCase()+" is not supported.");}},Na:function(a){if(2!==a.length)throw Error("Expected two parameters for cast.");var b=a[1].replace(/"/g,"");return"CAST("+a[0]+" AS "+b+")"}},UNIX_MICROS:{ua:1,wa:1,ta:function(a){return a}},UNIX_MILLIS:{ua:1,wa:1,ta:function(a){return a}},TIMESTAMP_MICROS:{ua:1,wa:1,ta:function(a){return a}},TIMESTAMP_MILLIS:{ua:1,wa:1,ta:function(a){return 1E3*a}},TIMESTAMP_SECONDS:{ua:1,wa:1,ta:function(a){return 1E6*a}},TIMESTAMP:{ua:1,wa:2,ta:br},DATE:{ua:1,wa:2,ta:function(a,b){return cr(a,"DAY",b)}},DATETIME:{ua:1,wa:1,ta:br},AND:{ua:2,ta:function(a){for(var b=[],c=0;c",a)},qc:">"},GREATER_OR_EQUAL:{ua:2,wa:2,ta:function(a,b){return Oz("GREATER_OR_EQUAL",a,b)},Na:function(a){return Rz(">=",a)},qc:">="},NATIVE_EXPR:{ua:1,wa:1,ta:function(){throw Error("NATIVE_EXPR not yet supported.");}},NATIVE_AGGREGATE:{ua:1,wa:1,vb:function(){throw Error("NATIVE_AGGREGATE not yet supported.");}},TO_JSON_STRING:{ua:1,wa:2,ta:function(a,b){return b?JSON.stringify(a,null,2):JSON.stringify(a)}}});Yz("KLL_QUANTILES",{EXTRACT_POINT_INT64:{ta:function(){throw Error("KLL EXTRACT is not supported for in-memory data.");}},MERGE_POINT_INT64:{vb:Bq},EXTRACT_POINT_DOUBLE:{ta:function(){throw Error("KLL EXTRACT is not supported for in-memory data.");}},MERGE_POINT_DOUBLE:{vb:Bq}});function aA(){this.ka={};this.va={};this.na={};this.ha=[];this.ma={};this.$=[];this.N=null;this.ya=[];this.O=[];this.v={}} w=aA.prototype;w.Mj=function(a,b){this.O.push({zf:a,order:b?b:"ASC"});return this};w.tl=function(){this.O=[];return this};w.Hf=function(){return this.O};w.ue=function(a){this.O=a.slice()};w.Cn=function(a,b,c,e){a={zf:a,measure:c,Rq:e||""};"function"===typeof b?a.vb=b:a.wq=b;this.ya.push(a);return this};w.Dn=function(a){this.N=a;return this};w.hl=function(a){Array.isArray(a)?Ud(a,function(b){bA(this,b,{Cd:"decimal",kf:null})},this):bA(this,a,{Cd:"decimal",kf:null});return this};w.fl=function(a){Array.isArray(a)?Ud(a,function(b){bA(this,b,{Cd:"boolean",kf:null})},this):bA(this,a,{Cd:"boolean",kf:null});return this};w.uj=function(a){a=this.v[a]?this.v[a]:null;var b;if(b=a&&a.Cd)a=a.Cd,b=!!a&&"number"===Fr[a].bc;return b?!0:!1};function bA(a,b,c){a.v[b]?(c.Cd&&(a.v[b].Cd=c.Cd),c.kf&&(a.v[b].kf=c.kf)):a.v[b]=c} w.al=function(a,b){this.ka[a]=b;return this};w.zl=function(a,b){this.va[a]=b;return this};w.Al=function(a,b){this.na[a]=b;delete this.ma[a];return this};w.Zm=function(a){return this.na[a]||this.ma[a]||this.ka[a]||this.N===a?!0:0<=Td(this.ha,a)};w.on=function(a){if(null==a||void 0==a)return this;"string"===typeof a&&(a=[a]);for(var b=0;b'):c&&"string"===typeof f&&(f=ai(f));return f} function oA(a,b){var c=b.getExpression().trim().replace(/ +/," ").trim().split(" ");if(2!==c.length)throw Error("nest expression requires two parameters");b=c[0];var e=c[1].split("."),f={nest_label:"NEST_TOP",nest_children:[],nest_child_map:{}};a=Pe(a.v[a.v.length-1],b.split("."));if(null==a)return null;if(!ld(a))throw Error('Error evaluating nest expression: "'+b+'" did not reference an Array');a.forEach(function(k){var p=f;(Pe(k,e)||"").split("|").forEach(function(r){var t=p.nest_child_map[r];t|| (t={nest_label:r,nest_children:[],nest_child_map:{}},p.nest_child_map[r]=t,p.nest_children.push(t));p=t});p.nest_children.push(k)});return f} ;function pA(a){this.v=a;this.O=this.N=-1;this.$=0} pA.prototype.next=function(){this.N++;var a=this.v[this.N];"\n"===a?(this.$++,this.O=-1):this.O++;return a};pA.prototype.index=function(){return this.N};function qA(a,b){if(0>b)throw Error("CharacterIterator can only skip forward");for(var c=0;c]*?>","gi"),close:new RegExp("]*?>","gi")})}for(y=0;y(ma?ma.length:0)&&(na=(ma=k.match(E.open))?ma.length:0,ma=k.match(E.close),(ma?ma.length:0)>na)){y=!0;break a}}}y=!1}y?(r=!0,(t=0<=f.toLowerCase().indexOf("'+k:f+'
'+k)&&Fn(a,b,t,e,void 0),y=Ij(a).select(".aplos-placeholder"),t=y.node(),f=t.parentNode,t=t.nextSibling?t.nextSibling:void 0,y.remove()):(f&&Fn(a,b,f,e,void 0),f=a);y=void 0;for(E=0;Ea.Ia-a.Pa?a.show():tB(a,b))})} function tB(a,b){a.ka||(XA(a.na,Math.max(.25*a.N,50)),a.ka=Zp(a.na,"tick",rd(a.An,a,b)),a.na.start())} w.An=function(a){a.Hd("hover").Id()?Date.now()-this.Ia>this.N&&this.show():qB(this)};function qB(a){a.na.stop();hq(a.ka);a.ka=null} w.qd=function(a,b){return this.va(a,b)};oB.prototype.setHovercardContainerStyle=oB.prototype.bo;oB.prototype.hide=oB.prototype.Jh;oB.prototype.followClosestSeries=oB.prototype.hj;oB.prototype.followTopMostSeries=oB.prototype.Il;oB.prototype.followNamedSeries=oB.prototype.Hl;oB.prototype.getPlacer=oB.prototype.Jm;oB.prototype.setPlacer=oB.prototype.ri;oB.prototype.placer=oB.prototype.Gn;oB.prototype.getContentRenderer=oB.prototype.Ed;oB.prototype.setContentRenderer=oB.prototype.yd;oB.prototype.contentRenderer=oB.prototype.ug;oB.prototype.getShowDelayMs=oB.prototype.Om;oB.prototype.setShowDelayMs=oB.prototype.Ek;oB.prototype.showDelayMs=oB.prototype.qo;oB.prototype.getTransitionMs=oB.prototype.Wm;oB.prototype.setTransitionMs=oB.prototype.Hk;oB.prototype.transitionMs=oB.prototype.xe;oB.prototype.getClassName=oB.prototype.Vl;oB.prototype.setClassName=oB.prototype.fk;oB.prototype.className=oB.prototype.className;wd("aplos.chart.behavior.Hovercard",oB);function uB(){this.ha=this.na=this.ma=this.v=this.O=this.N=this.ka=this.$=null} w=uB.prototype;w.yo=function(a){this.$=a;return this};w.zo=function(a){this.ka=a;return this};w.wo=function(a){this.N=a;return this};w.xo=function(a){this.O=a;return this};w.$d=function(a){this.v=a;return this};w.wl=function(a){this.ma=a;return this};w.container=function(a){this.ha=a;return this};w.Ug=function(a){this.na=a;return this};function vB(a){var b=IA?new GA:new JA;a.ma&&b.ue(a.ma);a.$&&b.ff(a.$);a.N&&b.ef(a.N);a.O&&b.Zf(a.O);a.ka&&b.dg(a.ka);a.v&&b.Xf(a.v);return b} w.Ti=function(){var a=(new oB).hj();a.yd(vB(this));var b=a.ri,c=new eB;null!=this.ha&&c.ik(this.ha);null!=this.na&&c.Ug(this.na);b.call(a,c);return a};w.nl=function(){var a=new dB;a.ug(vB(this));return a};uB.prototype.buildPieCard=uB.prototype.nl;uB.prototype.buildCard=uB.prototype.Ti;uB.prototype.positionOptions=uB.prototype.Ug;uB.prototype.container=uB.prototype.container;uB.prototype.contentRendererOrdering=uB.prototype.wl;uB.prototype.conversionFunctionMap=uB.prototype.$d;uB.prototype.templateFooter=uB.prototype.xo;uB.prototype.templateBody=uB.prototype.wo;uB.prototype.templateSeriesCategory=uB.prototype.zo;uB.prototype.templateHeader=uB.prototype.yo;wd("aplos.chart.behavior.hovercardutils.Builder",uB);function wB(a,b,c,e){var f=new uB;f.$=a?a:null;f.N=b?b:null;f.O=c?c:null;f.v=e?e:null;return f} wd("aplos.chart.behavior.hovercardutils.Builder.fromTemplate",wB);var xB={END:0,RIGHT:1,TOP:2,START:3,LEFT:4,BOTTOM:5,BOTTOM_START:6,BOTTOM_END:7,BOTTOM_LEFT:8,BOTTOM_RIGHT:9,BOTTOM_FULL_START:10,BOTTOM_FULL_END:11,BOTTOM_FULL_LEFT:12,BOTTOM_FULL_RIGHT:13,INSET:14,TOP_START:15,TOP_END:16,TOP_LEFT:17,TOP_RIGHT:18,TOP_FULL_START:19,TOP_FULL_END:20,TOP_FULL_LEFT:21,TOP_FULL_RIGHT:22};wd("aplos.chart.behavior.LegendPosition",xB);function yB(){this.v=0;this.$=null;this.N=!1} yB.prototype.position=function(a){if(!arguments.length||void 0===a)return this.v;this.v=a;return this};yB.prototype.O=function(a){if(!arguments.length||void 0===a)return this.$;this.$=a;return this};yB.prototype.Ld=function(a){if(!arguments.length||void 0===a)return this.N;this.N=a;return this};function zB(a){var b=a.v;a=a.N;3===b&&(b=a?1:4);0===b&&(b=a?4:1);15===b&&(b=a?18:17);16===b&&(b=a?17:18);19===b&&(b=a?22:21);20===b&&(b=a?21:22);6===b&&(b=a?9:8);7===b&&(b=a?8:9);10===b&&(b=a?13:12);11===b&&(b=a?12:13);return b} wd("aplos.chart.behavior.legend.LegendLayoutParams",yB);var AB={kj:function(a,b,c){return 14===zB(c)?b.wb():a.bottom-a.top},lj:function(a,b,c){return 14===zB(c)?b.Za():a.right-a.left},In:function(a,b,c,e,f){f=AB.Bm(a,b,c,e,f);e.style("top",AB.Cm(a,b,c)+"px").style("left",f+"px")},Bm:function(a,b,c,e,f){var k=void 0!==f?f:0;void 0!==f||e.empty()||(k=e.node().offsetWidth);switch(zB(c)){case 14:return c.Ld()?a.Kb()+a.Za()-k:a.Kb();case 4:case 1:return c.Ld()&&!e.empty()?b.right-k:b.left;case 17:case 21:case 8:case 12:return b.left;case 18:case 22:case 9:case 13:return b.right-k;default:return a=AB.lj(b,a,c),0=k?AB.Kk(f,p,c.height-k):f=p;var t=[];f.forEach(function(y){t.push({width:e,height:y})});return t},Oq:function(a,b,c){for(var e=c.height,f=[],k=0,p=[],r=0;r=k?AB.Kk(f,p,c.width-k):f=p;var t=[];f.forEach(function(y){t.push({width:y,height:e})});return t},Kk:function(a,b,c){for(var e=0;ec&&f.style("height",c+"px");a.ma||k.scrollHeight<=c&&f.style("overflow-y",null);e=AB.lj(a.O,b,a.v);if(Ee?p.style("width",r+"px"):Math.ceil(p.node().getBoundingClientRect().width)>r?p.style("width",r+"px"):p.style("width","auto");c=Math.ceil(k.getBoundingClientRect().width);0e?(f.style("overflow-x","auto"),f.style("width",Math.min(e,c)+"px")):(f.style("overflow-x"),f.style("width","auto"));IB(a,b)}else f.style("display","none"),f.selectAll(".aplos-legend-column").remove(),k.style("display","none")} function JB(a,b){var c=b.node().getBoundingClientRect(),e=c.top;a=(a.$?b.select(".aplos-legend-title").node():b.select(".aplos-legend-column").node()).getBoundingClientRect();b=b.select(".aplos-legend-column").selectAll(".aplos-legend-entry");b.empty()?c=0:(b=b.nodes()[b.size()-1].getBoundingClientRect(),c=c.height-(b.top+b.height-a.top));return{top:e,Ko:c}} function FB(a,b,c,e){var f=b.Ja.append("div").style("visibility","hidden");f.append(function(){return c.node().cloneNode(!0)});c=f.select(".aplos-legend");c.selectAll(".aplos-legend-column").remove();e=c.select(".aplos-legend-columns").append("div").classed("aplos-legend-column",!0).append("table").classed(GB(a),!0).style("width","100%").append("tbody").selectAll(".aplos-legend-entry").data(e);e=a.Ge(b,e);a.update(b,e,0);var k=JB(a,c),p=e.empty()?0:e.node().getBoundingClientRect().top,r=AB.kj(a.O,b,a.v)-(p-k.top)-k.Ko,t=[[]],y=0,E=p;e.each(ud(function(ma,na){var ta=this.getBoundingClientRect(),ua=ta.top;ta=ua-E+ta.height;0r||t[y].length===ma.Mg)&&(t[y+=1]=[],E=ua);t[y].push(na)},a));f.remove();return t} function IB(a,b){var c=b.Ja.select(".aplos-legend");AB.In(b,a.O,a.v,c);c.attr("data-position",rd(function(){var e=Qe(xB,function(f){return zB(this.v)===f},this);return null!=e?e.toLowerCase():null},a))} w.Ge=function(a,b){var c=this.Fj(a);return b.enter().append("tr").classed("aplos-legend-entry",!0).attr("tabindex",c&&this.ya?"0":null).on("click.legend",c).on("keypress.legend",this.ya?c:null).on("mouseover.legend",this.Hj(a)).on("mouseout.legend",this.Gj(a)).each(function(){if(this.nextSibling){var e=document.createElement("tr");e.className="aplos-legend-row-spacer";this.parentNode.insertBefore(e,this.nextSibling)}}).merge(b)};w.update=function(a,b){KB(this,b);b.empty()||Ij(b.node().parentElement).select(".aplos-legend-box-cell").style("width",this.na.width+"px");var c=0;b.select(".aplos-legend-value").each(function(){c=Math.max(c,this.offsetWidth)});b.filter(function(e,f){return 0===f}).select(".aplos-legend-value-cell").style("width",c+"px")};function KB(a,b){var c=a.Ia||Rn();c["svg-sample"]||(c["svg-sample"]=a.La.v(a.na));b.each(ud(function(e,f){e=Gn(f,"
"+(f.categorySeparator?e.yf:e.sh)+"
",c)[0];for(e=Ij(e).select("tr").node();e.childNodes.length;)this.appendChild(e.childNodes[0])},a));b.classed("aplos-legend-category",function(e){return e.categorySeparator})} function HB(a){a.each(function(){Ij(this.nextElementSibling).remove()});a.attr("opacity",0).on("click.legend",null).on("mouseover.legend",null).on("mouseout.legend",null).remove()} w.bl=function(a,b){b.Fe(new LB(a,this))};function GB(a){return null!=a.yf?"aplos-legend-table-category":"aplos-legend-table"} function LB(a,b){this.N=a;this.v=b} w=LB.prototype;w.Ch=function(){var a={position:MB(this),Pf:30},b=this.v.Cg();if(null!=b)a.margins=b;else switch(a.position){case 1:case 2:case 3:case 4:a.margins={top:5,right:0,bottom:5,left:0};break;case 6:a.margins={top:0,right:0,bottom:0,left:30};break;case 5:a.margins={top:0,right:30,bottom:0,left:0}}return a};w.hg=function(a){CB(this.v,this.N,this.v.rb,this.v.Ya,{top:0,right:a.width,bottom:a.height,left:0});var b=this.N.Ja.select(".aplos-legend");if(b.empty())return{Ba:{width:0,height:0},ob:{width:0,height:0},yc:!0};var c=MB(this),e=gg(a,this.v.Qe(),c);if(null!=e)return e;var f=b.node(),k=f.offsetWidth;e=f.offsetHeight;f=Math.ceil(f.getBoundingClientRect().width);f==k+1&&(k=f);var p=k;f=e;b=b.selectAll(".aplos-legend-column");var r=b.size();switch(c){case 5:case 6:1t&&(t=y.size())});c=this.N.Ja.select(".aplos-legend-title");c=Mj(c.node());0a.width&&(p=a.width);f>a.height&&(f=a.height);k>a.width&&(k=a.width);e>a.height&&(e=a.height);return{Ba:{width:p,height:f},ob:{width:k,height:e},yc:!1}};w.Eh=function(){return 0};w.Fh=function(){return 0};w.Wg=function(a){var b=a.right-a.left;this.v.O=a;a=this.N.Ja.select(".aplos-legend").node();b!=a.offsetWidth&&IB(this.v,this.N)};w.Ef=function(){return this.v.O};function MB(a){switch(zB(a.v.v)){case xB.LEFT:return 5;case xB.RIGHT:return 6;case xB.TOP:case xB.TOP_FULL_LEFT:case xB.TOP_FULL_RIGHT:return 2;case xB.TOP_LEFT:case xB.TOP_RIGHT:return 1;case xB.BOTTOM:case xB.BOTTOM_FULL_LEFT:case xB.BOTTOM_FULL_RIGHT:return 4;case xB.BOTTOM_LEFT:case xB.BOTTOM_RIGHT:return 3;default:return 0}} ;function NB(){this.N=new Ax;this.v=new OB("",void 0);this.v.next=this.v.v=this.v} w=NB.prototype;w.get=function(a,b){return(a=this.N.get(a))?a.value:b};w.set=function(a,b){var c=this.N.get(a);c?c.value=b:(c=new OB(a,b),this.N.set(a,c),a=c,a.v=this.v.v,a.next=this.v,this.v.v=a,a.v.next=a)};w.shift=function(){return PB(this,this.v.next)};w.pop=function(){return PB(this,this.v.v)};w.remove=function(a){return(a=this.N.get(a))?(a.remove(),this.N.remove(a.key),!0):!1};function QB(a){return a.map(function(b){return b})} w.contains=function(a){return RB(this,function(b){return b==a})};w.clear=function(){this.lf(0)};w.forEach=function(a,b){for(var c=this.v.next;c!=this.v;c=c.next)a.call(b,c.value,c.key,this)};w.map=function(a,b){for(var c=[],e=this.v.next;e!=this.v;e=e.next)c.push(a.call(b,e.value,e.key,this));return c};function RB(a,b){for(var c=a.v.next;c!=a.v;c=c.next)if(b.call(void 0,c.value,c.key,a))return!0;return!1} w.every=function(a,b){for(var c=this.v.next;c!=this.v;c=c.next)if(!a.call(b,c.value,c.key,this))return!1;return!0};w.lf=function(a){for(;this.N.size>a;){var b=this.v.next;b.remove();this.N.remove(b.key)}};function PB(a,b){a.v!=b&&(b.remove(),a.N.remove(b.key));return b.value} function OB(a,b){this.key=a;this.value=b} OB.prototype.remove=function(){this.v.next=this.next;this.next.v=this.v;delete this.v;delete this.next};wd("aplos.chart.behavior.SeriesLegendClickHandling",{NONE:0,HIDE:1});function SB(a){BB.call(this,a||'{{svg-sample}} {{series.name}}');this.Ca=!1;this.ka={};this.Sa=!1;this.N={};this.ha=[];this.Pa=[];this.Ma="series_asc";this.va=1} xd(SB,BB);wd("aplos.chart.behavior.SeriesLegend",SB);var TB=null,UB=null;SB.prototype.Jo=function(a){return null!=a?(this.Ca=a,a||(this.ka={}),this):this.Ca};SB.prototype.valuesFromNearestDatum=SB.prototype.Jo;SB.prototype.bn=function(a){if(null==a)return this.Sa;this.Sa=!!a;return this};SB.prototype.hideEmptySeries=SB.prototype.bn;SB.prototype.cn=function(a){this.N[a]=!0;return this};SB.prototype.hideSeries=SB.prototype.cn;SB.prototype.Tg=function(a){if(null==a)return this.Ma;this.Ma=a;return this};SB.prototype.ordering=SB.prototype.Tg;SB.prototype.Xi=function(a){if(null==a)return this.va;this.va=a;return this};SB.prototype.clickHandling=SB.prototype.Xi;w=SB.prototype;w.Bc=function(a){var b=this;SB.Pb.Bc.call(this,a);a.on("mouseout.seriesLegend",function(){this.Ca&&(this.ka={},a.df())},this);a.on("mousemove.seriesLegend",function(){if(this.Ca){for(var c=a.Gf(),e=0;ethis.N)a.Hd("hover").deselectAll(),XB(this);else{var e=[c];switch(this.$){case 0:void 0!==c.domain&&(e=a.Ff(function(f){return!f.series.overlay&&f.domain===c.domain},!0,!0));break;case 1:e=b}this.select(a,e)}}};w.select=function(a,b){a.Hd("hover").Zg(b.map(function(c){return{series:c.series?c.series:null,datum:c.datum}}));ZB(this,a)};function ZB(a,b){if(!a.v){var c="selectnearest_"+Date.now();Ij(a.ha).on("mouseout."+c,function(){var e=b.ab.select(".mouseCapturePane").node(),f;if(f=nj&&nj.target)e?(f=oj(e),e=e.getBoundingClientRect(),f=0<=f[0]&&f[0]h?1:l>=h?0:NaN} function c(l){1===l.length&&(l=e(l));return{left:function(h,n,u,x){null==u&&(u=0);null==x&&(x=h.length);for(;u>>1;0>l(h[z],n)?u=z+1:x=z}return u},right:function(h,n,u,x){null==u&&(u=0);null==x&&(x=h.length);for(;u>>1;0(x=arguments.length)?(h=l,l=0,1):3>x?1:+n;for(var u=-1,x=Math.max(0,Math.ceil((h-l)/n))|0,z=Array(x);++u=zo?10:h>=Ao?5:h>=Bo?2:1)*Math.pow(10,l):-Math.pow(10,-l)/(h>=zo?10:h>=Ao?5:h>=Bo?2:1)} function r(l,h,n){var u=Math.abs(h-l)/Math.max(0,n);n=Math.pow(10,Math.floor(Math.log(u)/Math.LN10));u/=n;u>=zo?n*=10:u>=Ao?n*=5:u>=Bo&&(n*=2);return hh?1:l>=h?0:NaN} function Qa(l){return function(){this.removeAttribute(l)}} function Wa(l){return function(){this.removeAttributeNS(l.space,l.local)}} function Db(l,h){return function(){this.setAttribute(l,h)}} function Eb(l,h){return function(){this.setAttributeNS(l.space,l.local,h)}} function Fb(l,h){return function(){var n=h.apply(this,arguments);null==n?this.removeAttribute(l):this.setAttribute(l,n)}} function Gb(l,h){return function(){var n=h.apply(this,arguments);null==n?this.removeAttributeNS(l.space,l.local):this.setAttributeNS(l.space,l.local,n)}} function Hb(l){return function(){this.style.removeProperty(l)}} function Ib(l,h,n){return function(){this.style.setProperty(l,h,n)}} function Jb(l,h,n){return function(){var u=h.apply(this,arguments);null==u?this.style.removeProperty(l):this.style.setProperty(l,u,n)}} function $a(l,h){return l.style.getPropertyValue(h)||(l.ownerDocument&&l.ownerDocument.defaultView||l.document&&l||l.defaultView).getComputedStyle(l,null).getPropertyValue(h)} function Kb(l){return function(){delete this[l]}} function Lb(l,h){return function(){this[l]=h}} function Mb(l,h){return function(){var n=h.apply(this,arguments);null==n?delete this[l]:this[l]=n}} function fb(l){return l.classList||new ub(l)} function ub(l){this.Oi=l;this.Yd=(l.getAttribute("class")||"").trim().split(/^|\s+/)} function vb(l,h){l=fb(l);for(var n=-1,u=h.length;++n>8&15|h>>4&240,h>>4&15|h&240,(h&15)<<4|h&15,1)):(h=gC.exec(l))?zb(parseInt(h[1],16)):(h=hC.exec(l))?new La(h[1],h[2],h[3],1):(h=iC.exec(l))?new La(255*h[1]/100,255*h[2]/100,255*h[3]/100,1):(h=jC.exec(l))?Ab(h[1],h[2],h[3],h[4]):(h=kC.exec(l))?Ab(255*h[1]/100,255*h[2]/100,255*h[3]/100,h[4]):(h=lC.exec(l))?Bb(h[1],h[2]/100,h[3]/100,1):(h=mC.exec(l))?Bb(h[1],h[2]/100,h[3]/100,h[4]):av.hasOwnProperty(l)?zb(av[l]):"transparent"===l?new La(NaN,NaN,NaN,0):null} function zb(l){return new La(l>>16&255,l>>8&255,l&255,1)} function Ab(l,h,n,u){0>=u&&(l=h=n=NaN);return new La(l,h,n,u)} function hb(l){l instanceof Xa||(l=Ya(l));if(!l)return new La;l=l.rgb();return new La(l.r,l.g,l.b,l.opacity)} function cb(l,h,n,u){return 1===arguments.length?hb(l):new La(l,h,n,null==u?1:u)} function La(l,h,n,u){this.r=+l;this.g=+h;this.b=+n;this.opacity=+u} function ib(l){l=Math.max(0,Math.min(255,Math.round(l)||0));return(16>l?"0":"")+l.toString(16)} function Bb(l,h,n,u){0>=u?l=h=n=NaN:0>=n||1<=n?l=h=NaN:0>=h&&(l=NaN);return new Ua(l,h,n,u)} function hc(l){if(l instanceof Ua)return new Ua(l.h,l.s,l.l,l.opacity);l instanceof Xa||(l=Ya(l));if(!l)return new Ua;if(l instanceof Ua)return l;l=l.rgb();var h=l.r/255,n=l.g/255,u=l.b/255,x=Math.min(h,n,u),z=Math.max(h,n,u),A=NaN,la=z-x,oa=(z+x)/2;la?(A=h===z?(n-u)/la+6*(noa?z+x:2-z-x,A*=60):la=0oa?0:A;return new Ua(A,la,oa,l.opacity)} function jb(l,h,n,u){return 1===arguments.length?hc(l):new Ua(l,h,n,null==u?1:u)} function Ua(l,h,n,u){this.h=+l;this.s=+h;this.l=+n;this.opacity=+u} function kb(l,h,n){return 255*(60>l?h+(n-h)*l/60:180>l?n:240>l?h+(n-h)*(240-l)/60:h)} function lb(l){if(l instanceof Va)return new Va(l.l,l.a,l.b,l.opacity);if(l instanceof rb){if(isNaN(l.h))return new Va(l.l,0,0,l.opacity);var h=l.h*bv;return new Va(l.l,Math.cos(h)*l.c,Math.sin(h)*l.c,l.opacity)}l instanceof La||(l=hb(l));var n=pb(l.r),u=pb(l.g),x=pb(l.b);h=mb(.2225045*n+.7168786*u+.0606169*x);if(n===u&&u===x)var z=n=h;else z=mb((.4360747*n+.3850649*u+.1430804*x)/.96422),n=mb((.0139322*n+.0971045*u+.7141733*x)/.82521);return new Va(116*h-16,500*(z-h),200*(h-n),l.opacity)} function Va(l,h,n,u){this.l=+l;this.a=+h;this.b=+n;this.opacity=+u} function mb(l){return l>nC?Math.pow(l,1/3):l/cv+dv} function nb(l){return l>Bh?l*l*l:cv*(l-dv)} function ob(l){return 255*(.0031308>=l?12.92*l:1.055*Math.pow(l,1/2.4)-.055)} function pb(l){return.04045>=(l/=255)?l/12.92:Math.pow((l+.055)/1.055,2.4)} function ic(l){if(l instanceof rb)return new rb(l.h,l.c,l.l,l.opacity);l instanceof Va||(l=lb(l));if(0===l.a&&0===l.b)return new rb(NaN,0,l.l,l.opacity);var h=Math.atan2(l.b,l.a)*ev;return new rb(0>h?h+360:h,Math.sqrt(l.a*l.a+l.b*l.b),l.l,l.opacity)} function qb(l,h,n,u){return 1===arguments.length?ic(l):new rb(l,h,n,null==u?1:u)} function rb(l,h,n,u){this.h=+l;this.c=+h;this.l=+n;this.opacity=+u} function db(l,h,n,u){if(1===arguments.length){var x=l;if(x instanceof sb)x=new sb(x.h,x.s,x.l,x.opacity);else{x instanceof La||(x=hb(x));var z=x.g/255,A=x.b/255,la=(fv*A+x.r/255*-1.7884503806-3.5172982438*z)/(fv+-1.7884503806-3.5172982438);A-=la;var oa=(1.97294*(z-la)- -.29227*A)/-.90649;A=(z=Math.sqrt(oa*oa+A*A)/(1.97294*la*(1-la)))?Math.atan2(oa,A)*ev-120:NaN;x=new sb(0>A?A+360:A,z,la,x.opacity)}}else x=new sb(l,h,n,null==u?1:u);return x} function sb(l,h,n,u){this.h=+l;this.s=+h;this.l=+n;this.opacity=+u} function lc(l,h,n,u,x){var z=l*l,A=z*l;return((1-3*l+3*z-A)*h+(4-6*z+3*A)*n+(1+3*l+3*z-3*A)*u+A*x)/6} function pc(l){return function(){return l}} function uc(l,h){return function(n){return l+n*h}} function zc(l,h,n){return l=Math.pow(l,n),h=Math.pow(h,n)-l,n=1/n,function(u){return Math.pow(l+u*h,n)}} function rc(l,h){var n=h-l;return n?uc(l,180n?n-360*Math.round(n/360):n):pc(isNaN(l)?h:l)} function Ac(l){return 1===(l=+l)?Cb:function(h,n){return n-h?zc(h,n,l):pc(isNaN(h)?n:h)}} function Cb(l,h){var n=h-l;return n?uc(l,n):pc(isNaN(l)?h:l)} function Gc(l){return function(h){var n=h.length,u=Array(n),x=Array(n),z=Array(n),A;for(A=0;An&&(z=h.slice(n,z),la[A]?la[A]+=z:la[++A]=z),(u=u[0])===(x=x[0])?la[A]?la[A]+=x:la[++A]=x:(la[++A]=null,oa.push({td:A,x:mc(u,x)})),n=Do.lastIndex;nla.length?oa[0]?Dc(oa[0].x):Cc(h):(h=oa.length,function(ra){for(var qa=0,pa;qal.wf&&(n=l.wf);var u=l;l=l.Qc}else h=l.Qc,l.Qc=null,l=u?u.Qc=h:Xk=h;Oi=u;tf(n);Dg=0}} function Ye(){var l=Mi.now(),h=l-Wk;1E3l&&(Ni=setTimeout(Bi,l-Mi.now()-Vk)),Pi&&(Pi=clearInterval(Pi))):(Pi||(Wk=Mi.now(),Pi=setInterval(Ye,1E3)),Ch=1,hv(Bi)))} function Ci(l,h,n){var u=new Ag;h=null==h?0:+h;u.restart(function(x){u.stop();l(x+h)},h,n);return u} function Ee(l,h,n,u,x,z){var A=l.Bd;if(!A)l.Bd={};else if(n in A)return;Ik(l,n,{name:h,index:u,group:x,on:oC,tween:pC,time:z.time,delay:z.delay,duration:z.duration,ease:z.ease,timer:null,state:0})} function oe(l,h){l=ie(l,h);if(0=qa?Ha=!0:10===(tc=A.charCodeAt(pa++))?jc=!0:13===tc&&(jc=!0,10===A.charCodeAt(pa)&&++pa);return A.slice(Uc+1,Pc-1).replace(/""/g,'"')}for(;pa=qa,jc=!1;10===A.charCodeAt(qa-1)&&--qa;for(13===A.charCodeAt(qa-1)&&--qa;(Da=oa())!==Go;){for(var eb=[];Da!==kv&&Da!==Go;)eb.push(Da),Da=oa();la&&null==(eb=la(eb,wa++))||ra.push(eb)}return ra} function n(A){return A.map(u).join(l)} function u(A){return null==A?"":x.test(A+="")?'"'+A.replace(/"/g,'""')+'"':A} var x=new RegExp('["'+l+"\n\r]"),z=l.charCodeAt(0);return{parse:function(A,la){var oa,ra;A=h(A,function(qa,pa){if(oa)return oa(qa,pa-1);ra=qa;oa=la?uC(qa,la):iv(qa)});A.columns=ra||[];return A},parseRows:h,format:function(A,la){null==la&&(la=vC(A));return[la.map(u).join(l)].concat(A.map(function(oa){return la.map(function(ra){return u(oa[ra])}).join(l)})).join("\n")},formatRows:function(A){return A.map(n).join("\n")}}} function lv(l){if(!l.ok)throw Error(l.status+" "+l.statusText);return l.text()} function mv(l){return function(h,n,u){2===arguments.length&&"function"===typeof n&&(u=n,n=void 0);return fetch(h,n).then(lv).then(function(x){return l(x,u)})}} function Ho(l){return function(h,n){return fetch(h,n).then(lv).then(function(u){return(new DOMParser).parseFromString(u,l)})}} function nv(l,h,n,u){if(isNaN(h)||isNaN(n))return l;var x,z=l.tb;u={data:u};var A=l.Qa,la=l.Ra,oa=l.Aa,ra=l.Ea,qa,pa,wa,Da,Ha;if(!z)return l.tb=u,l;for(;z.length;)if((wa=h>=(qa=(A+oa)/2))?A=qa:oa=qa,(Da=n>=(pa=(la+ra)/2))?la=pa:ra=pa,x=z,!(z=z[Ha=Da<<1|wa]))return x[Ha]=u,l;var jc=+l.yb.call(null,z.data);var eb=+l.Db.call(null,z.data);if(h===jc&&n===eb)return u.next=z,x?x[Ha]=u:l.tb=u,l;do x=x?x[Ha]=Array(4):l.tb=Array(4),(wa=h>=(qa=(A+oa)/2))?A=qa:oa=qa,(Da=n>=(pa=(la+ra)/2))?la=pa:ra=pa;while((Ha= Da<<1|wa)===(wa=(eb>=pa)<<1|jc>=qa));return x[wa]=z,x[Ha]=u,l} function ee(l,h,n,u,x){this.node=l;this.x0=h;this.y0=n;this.x1=u;this.y1=x} function wC(l){return l[0]} function xC(l){return l[1]} function Io(l,h,n,u,x,z){this.yb=l;this.Db=h;this.Qa=n;this.Ra=u;this.Aa=x;this.Ea=z;this.tb=void 0} function ov(l){for(var h={data:l.data},n=h;l=l.next;)n=n.next={data:l.data};return h} function bl(l,h){if(0>(h=(l=h?l.toExponential(h-1):l.toExponential()).indexOf("e")))return null;var n=l.slice(0,h);return[1u&&(la=Math.max(1,u-oa));z.push(n.substring(x-=la,x+la));if((oa+=la+1)>u)break;la=l[A=(A+1)%l.length]}return z.reverse().join(h)}} function zC(l){return function(h){return h.replace(/[0-9]/g,function(n){return l[+n]})}} function cl(l){return new Jo(l)} function Jo(l){if(!(h=AC.exec(l)))throw Error("invalid format: "+l);var h;this.fill=h[1]||" ";this.align=h[2]||">";this.sign=h[3]||"-";this.symbol=h[4]||"";this.zero=!!h[5];this.width=h[6]&&+h[6];this.comma=!!h[7];this.precision=h[8]&&+h[8].slice(1);this.trim=!!h[9];this.type=h[10]||""} function pv(l,h){h=bl(l,h);if(!h)return l+"";l=h[0];h=h[1];return 0>h?"0."+Array(-h).join("0")+l:l.length>h+1?l.slice(0,h+1)+"."+l.slice(h+1):l+Array(h-l.length+2).join("0")} function qv(l){return l} function BC(l){function h(la){function oa(Ma){var Rc=tc,Ia=Oc,Ta;if("c"===Uc)Ia=bd(Ma)+Ia,Ma="";else{Ma=+Ma;var Ga=0>Ma;Ma=bd(Math.abs(Ma),eb);if(Pc){var Na=Ma.length;var Xc=1,yd=-1,Cd;a:for(;XcTa||57>1)+Rc+Ma+Ia+Ga.slice(Ta);break;default:Ma=Ga+Rc+Ma+Ia}return z(Ma)} la=cl(la);var ra=la.fill,qa=la.align,pa=la.sign,wa=la.symbol,Da=la.zero,Ha=la.width,jc=la.comma,eb=la.precision,Pc=la.trim,Uc=la.type;"n"===Uc?(jc=!0,Uc="g"):tv[Uc]||(null==eb&&(eb=12),Pc=!0,Uc="g");if(Da||"0"===ra&&"="===qa)Da=!0,ra="0",qa="=";var tc="$"===wa?u[0]:"#"===wa&&/[boxX]/.test(Uc)?"0"+Uc.toLowerCase():"",Oc="$"===wa?u[1]:/[%p]/.test(Uc)?A:"",bd=tv[Uc],Qc=/[defgprs%]/.test(Uc);eb=null==eb?6:/[gprs]/.test(Uc)?Math.max(1,Math.min(21,eb)):Math.max(0,Math.min(20,eb));oa.toString=function(){return la+ ""};return oa} var n=l.grouping&&l.thousands?yC(l.grouping,l.thousands):qv,u=l.currency,x=l.decimal,z=l.numerals?zC(l.numerals):qv,A=l.percent||"%";return{format:h,formatPrefix:function(la,oa){var ra=h((la=cl(la),la.type="f",la));la=3*Math.max(-8,Math.min(8,Math.floor(Dh(oa)/3)));var qa=Math.pow(10,-la),pa=rv[8+la/3];return function(wa){return ra(qa*wa)+pa}}}} function Ge(){this.reset()} function uv(l,h,n){var u=l.s=h+n,x=u-h;l.t=h-(u-x)+(n-x)} function dl(l){return 1l?-ye:Math.asin(l)} function CC(){} function vv(l){var h=l[0];l=l[1];var n=ze(l);return[n*ze(h),n*$d(h),$d(l)]} function wv(l,h){return[l[1]*h[2]-l[2]*h[1],l[2]*h[0]-l[0]*h[2],l[0]*h[1]-l[1]*h[0]]} function xv(l){var h=el(l[0]*l[0]+l[1]*l[1]+l[2]*l[2]);l[0]/=h;l[1]/=h;l[2]/=h} function DC(){var l=[],h;return{point:function(n,u){h.push([n,u])},lineStart:function(){l.push(h=[])},lineEnd:CC,Kq:function(){1=(wa=pa.length-1))){var wa,Da=pa[0],Ha=pa[wa],jc=Da;if(1E-6>Zf(jc[0]-Ha[0])&&1E-6>Zf(jc[1]-Ha[1])){x.lineStart();for(la=0;la(l=l.x)[0]?l[1]-ye-1E-6:ye-l[1])-(0>(h=h.x)[0]?h[1]-ye-1E-6:ye-h[1])} function Ko(){} function zv(l){return function(h,n){var u=ze(h),x=ze(n);u=l(u*x);return[u*x*$d(h),u*$d(n)]}} function Qi(l){return function(h,n){var u=el(h*h+n*n),x=l(u),z=$d(x);x=ze(x);return[Av(h*z,u*x),dl(u&&n*z/u)]}} function HC(l){var h=0,n=l.children,u=n&&n.length;if(u)for(;0<=--u;)h+=n[u].value;else h=1;l.value=h} function Bv(l,h){var n=new Ri(l);l=+l.value&&(n.value=l.value);var u,x=[n],z,A,la,oa;for(null==h&&(h=IC);u=x.pop();)if(l&&(u.value=+u.data.value),(A=h(u.data))&&(oa=A.length))for(u.children=Array(oa),la=oa-1;0<=la;--la)x.push(z=u.children[la]=new Ri(A[la])),z.parent=u,z.depth=u.depth+1;return n.eachBefore(JC)} function IC(l){return l.children} function KC(l){l.data=l.data.data} function JC(l){var h=0;do l.height=h;while((l=l.parent)&&l.height<++h)} function Ri(l){this.data=l;this.depth=this.height=0;this.parent=null} function Lo(l){function h(z){var A=z+"",la=n.get(A);if(!la){if(x!==Cv)return x;n.set(A,la=u.push(z))}return l[(la-1)%l.length]} var n=$k(),u=[],x=Cv;l=null==l?[]:gl.call(l);h.domain=function(z){if(!arguments.length)return u.slice();u=[];n=$k();for(var A=-1,la=z.length,oa,ra;++A=n?1:u(x)}}} function NC(l){return function(h,n){var u=l(h=+h,n=+n);return function(x){return 0>=x?h:1<=x?n:u(x)}}} function OC(l,h,n,u){var x=l[0];l=l[1];var z=h[0];h=h[1];loa&&(A=Math.ceil(A*oa)/oa,la=Math.floor(la*oa)/oa,oa=p(A,la,n));0oa&&(u[x]=Math.ceil(A*oa)/oa,u[z]=Math.floor(la*oa)/oa,h(u));return l};return l} function Hv(){var l=Po(No,mc);l.copy=function(){return Oo(l,Hv())};return RC(l)} function Iv(l,h){l=l.slice();var n=0,u=l.length-1,x=l[n],z=l[u];if(zl?function(n){return-Math.pow(-h,n)*Math.pow(-l,1-n)}:function(n){return Math.pow(h,n)*Math.pow(l,1-n)}} function UC(l){return isFinite(l)?+("1e"+l):0>l?0:l} function Jv(l){return 10===l?UC:l===Math.E?Math.exp:function(h){return Math.pow(l,h)}} function Kv(l){return l===Math.E?Math.log:10===l&&Math.log10||2===l&&Math.log2||(l=Math.log(l),function(h){return Math.log(h)/l})} function Lv(l){return function(h){return-l(-h)}} function Mv(){function l(){x=Kv(u);z=Jv(u);0>n()[0]&&(x=Lv(x),z=Lv(z));return h} var h=Po(SC,TC).domain([1,10]),n=h.domain,u=10,x=Kv(10),z=Jv(10);h.base=function(A){return arguments.length?(u=+A,l()):u};h.domain=function(A){return arguments.length?(n(A),l()):n()};h.ticks=function(A){var la=n(),oa=la[0];la=la[la.length-1];var ra;if(ra=lala)break;A.push(Ha)}}}else for(;qala)break;A.push(Ha)}}else A=k(qa,pa,Math.min(pa-qa,wa)).map(z);return ra?A.reverse():A};h.tickFormat=function(A,la){null==la&&(la=10===u?".0e":",");"function"!==typeof la&&(la=ji(la));if(Infinity===A)return la;null==A&&(A=10);var oa=Math.max(1,u*A/h.ticks().length);return function(ra){var qa=ra/z(Math.round(x(ra)));qa*u=A)for(;l(A),!z(A);)A.setTime(A-1)},function(A,la){if(A>=A)if(0>la)for(;0>=++la;)for(;h(A,-1),!z(A););else for(;0<=--la;)for(;h(A,1),!z(A););})};n&&(x.count=function(z,A){Qo.setTime(+z);Ro.setTime(+A);l(Qo);l(Ro);return Math.floor(n(Qo,Ro))},x.every=function(z){z=Math.floor(z);return isFinite(z)&&0l.y){var h=new Date(-1,l.m,l.d,l.kd,l.M,l.S,l.L);h.setFullYear(l.y);return h}return new Date(l.y,l.m,l.d,l.kd,l.M,l.S,l.L)} function hl(l){if(0<=l.y&&100>l.y){var h=new Date(Date.UTC(-1,l.m,l.d,l.kd,l.M,l.S,l.L));h.setUTCFullYear(l.y);return h}return new Date(Date.UTC(l.y,l.m,l.d,l.kd,l.M,l.S,l.L))} function Si(l){return{y:l,m:0,d:1,kd:0,M:0,S:0,L:0}} function WC(l){function h(Ia,Ta){return function(Ga){var Na=[],Xc=-1,yd=0,Cd=Ia.length,pd,re;for(Ga instanceof Date||(Ga=new Date(+Ga));++XcNa.jg||53=Cd)return-1;pd=Ta.charCodeAt(Xc++);if(37===pd){if(pd=Ta.charAt(Xc++),pd=Rc[pd in Nv?Ta.charAt(Xc++):pd],!pd||0>(Na=pd(Ia,Ga,Na)))return-1}else if(pd!=Ga.charCodeAt(Na++))return-1}return Na} var x=l.dateTime,z=l.date,A=l.time,la=l.periods,oa=l.days,ra=l.shortDays,qa=l.months,pa=l.shortMonths,wa=Ti(la),Da=Ui(la),Ha=Ti(oa),jc=Ui(oa),eb=Ti(ra),Pc=Ui(ra),Uc=Ti(qa),tc=Ui(qa),Oc=Ti(pa),bd=Ui(pa),Qc={a:function(Ia){return ra[Ia.getDay()]},A:function(Ia){return oa[Ia.getDay()]},b:function(Ia){return pa[Ia.getMonth()]},B:function(Ia){return qa[Ia.getMonth()]},c:null,d:Pv,e:Pv,f:XC,H:YC,I:ZC,j:$C,L:Qv,m:aD,M:bD,p:function(Ia){return la[+(12<=Ia.getHours())]},Q:Rv,s:Sv,S:cD,u:dD,U:eD,V:fD,w:gD,W:hD,x:null,X:null,y:iD,Y:jD,Z:kD,"%":Tv},Ma={a:function(Ia){return ra[Ia.getUTCDay()]},A:function(Ia){return oa[Ia.getUTCDay()]},b:function(Ia){return pa[Ia.getUTCMonth()]},B:function(Ia){return qa[Ia.getUTCMonth()]},c:null,d:Uv,e:Uv,f:lD,H:mD,I:nD,j:oD,L:Vv,m:pD,M:qD,p:function(Ia){return la[+(12<=Ia.getUTCHours())]},Q:Rv,s:Sv,S:rD,u:sD,U:tD,V:uD,w:vD,W:wD,x:null,X:null,y:xD,Y:yD,Z:zD,"%":Tv},Rc={a:function(Ia,Ta,Ga){return(Ta=eb.exec(Ta.slice(Ga)))?(Ia.w=Pc[Ta[0].toLowerCase()],Ga+Ta[0].length):-1},A:function(Ia,Ta,Ga){return(Ta=Ha.exec(Ta.slice(Ga)))?(Ia.w=jc[Ta[0].toLowerCase()],Ga+Ta[0].length):-1},b:function(Ia,Ta,Ga){return(Ta=Oc.exec(Ta.slice(Ga)))?(Ia.m=bd[Ta[0].toLowerCase()],Ga+Ta[0].length):-1},B:function(Ia,Ta,Ga){return(Ta=Uc.exec(Ta.slice(Ga)))?(Ia.m=tc[Ta[0].toLowerCase()],Ga+Ta[0].length):-1},c:function(Ia,Ta,Ga){return u(Ia,x,Ta,Ga)},d:Wv,e:Wv,f:AD,H:Xv,I:Xv,j:BD,L:CD,m:DD,M:ED,p:function(Ia,Ta,Ga){return(Ta=wa.exec(Ta.slice(Ga)))?(Ia.p=Da[Ta[0].toLowerCase()],Ga+Ta[0].length):-1},Q:FD,s:GD,S:HD,u:ID,U:JD,V:KD,w:LD,W:MD,x:function(Ia,Ta,Ga){return u(Ia,z,Ta,Ga)},X:function(Ia,Ta,Ga){return u(Ia,A,Ta,Ga)},y:ND,Y:OD,Z:PD,"%":QD};Qc.x=h(z,Qc);Qc.X=h(A,Qc);Qc.c=h(x,Qc);Ma.x=h(z,Ma);Ma.X=h(A,Ma);Ma.c=h(x,Ma);return{format:function(Ia){var Ta=h(Ia+="",Qc);Ta.toString=function(){return Ia};return Ta},parse:function(Ia){var Ta=n(Ia+="",VC);Ta.toString=function(){return Ia};return Ta},utcFormat:function(Ia){var Ta=h(Ia+="",Ma);Ta.toString=function(){return Ia};return Ta},utcParse:function(Ia){var Ta=n(Ia,hl);Ta.toString=function(){return Ia};return Ta}}} function sd(l,h,n){var u=0>l?"-":"";l=(u?-l:l)+"";var x=l.length;return u+(x=l?-jl:Math.asin(l)} function YD(l){return l.innerRadius} function ZD(l){return l.outerRadius} function $D(l){return l.startAngle} function aE(l){return l.endAngle} function bE(l){return l&&l.padAngle} function kl(l,h,n,u,x,z,A){var la=l-n,oa=h-u;A=(A?z:-z)/Fh(la*la+oa*oa);oa*=A;la*=-A;var ra=l+oa,qa=h+la,pa=n+oa,wa=u+la;n=(ra+pa)/2;u=(qa+wa)/2;h=pa-ra;l=wa-qa;A=h*h+l*l;z=x-z;wa=ra*wa-pa*qa;var Da=(0>l?-1:1)*Fh(cE(0,z*z*A-wa*wa));ra=(wa*l-h*Da)/A;qa=(-wa*h-l*Da)/A;pa=(wa*l+h*Da)/A;h=(-wa*h+l*Da)/A;l=ra-n;A=qa-u;n=pa-n;u=h-u;l*l+A*A>n*n+u*u&&(ra=pa,qa=h);return{cx:ra,cy:qa,hd:-oa,jd:-la,Ud:ra*(x/z-1),Vd:qa*(x/z-1)}} function aw(l){this.Fa=l} function ll(l){return new aw(l)} function bw(l){return l[0]} function cw(l){return l[1]} function dw(){function l(la){var oa,ra=la.length,qa,pa=!1,wa;null==x&&(A=z(wa=Yk()));for(oa=0;oa<=ra;++oa)!(oal?1:h>=l?0:NaN} function eE(l){return l} function ew(l){this.Be=l} function fw(l,h,n){l.Fa.bezierCurveTo((2*l.Qa+l.Aa)/3,(2*l.Ra+l.Ea)/3,(l.Qa+2*l.Aa)/3,(l.Ra+2*l.Ea)/3,(l.Qa+4*l.Aa+h)/6,(l.Ra+4*l.Ea+n)/6)} function gw(l){this.Fa=l} function hw(l,h,n){l.Fa.bezierCurveTo(l.Aa+l.lg*(l.De-l.Qa),l.Ea+l.lg*(l.Ee-l.Ra),l.De+l.lg*(l.Aa-h),l.Ee+l.lg*(l.Ea-n),l.De,l.Ee)} function iw(l,h){this.Fa=l;this.lg=(1-h)/6} function jw(l,h,n){var u=l.Aa-l.Qa;h-=l.Aa;var x=(l.Ea-l.Ra)/(u||0>h&&-0);l=(n-l.Ea)/(h||0>u&&-0);return((0>x?-1:1)+(0>l?-1:1))*Math.min(Math.abs(x),Math.abs(l),.5*Math.abs((x*h+l*u)/(u+h)))||0} function kw(l,h){var n=l.Aa-l.Qa;return n?(3*(l.Ea-l.Ra)/n-h)/2:h} function Xo(l,h,n){var u=l.Qa,x=l.Aa,z=l.Ea,A=(x-u)/3;l.Fa.bezierCurveTo(u+A,l.Ra+A*h,x-A,z-A*n,x,z)} function ml(l){this.Fa=l} function lw(l){this.Fa=new mw(l)} function mw(l){this.Fa=l} function nw(l){this.Fa=l} function ow(l){var h,n=l.length-1,u=Array(n),x=Array(n),z=Array(n);u[0]=0;x[0]=2;z[0]=l[0]+2*l[1];for(h=1;harguments.length)for(;++zthis.Yd.indexOf(l)&&(this.Yd.push(l),this.Oi.setAttribute("class",this.Yd.join(" ")))},remove:function(l){l=this.Yd.indexOf(l);0<=l&&(this.Yd.splice(l,1),this.Oi.setAttribute("class",this.Yd.join(" ")))},contains:function(l){return 0<=this.Yd.indexOf(l)}};var Zu={};nj=null;"undefined"!==typeof document&&("onmouseenter"in document.documentElement||(Zu={mouseenter:"mouseover",mouseleave:"mouseout"}));var $u=[null];Ra.prototype=Za.prototype={constructor:Ra,select:function(l){"function"!==typeof l&&(l=ya(l));for(var h=this.kb,n=h.length,u=Array(n),x=0;x=pa&&(pa=qa+1);!(Pc=eb[pa])&&++paarguments.length){var u=this.node();return n.local?u.getAttributeNS(n.space,n.local):u.getAttribute(n)}return this.each((null==h?n.local?Wa:Qa:"function"===typeof h?n.local?Gb:Fb:n.local?Eb:Db)(n,h))},style:function(l,h,n){return 1arguments.length){for(var u=fb(this.node()),x=-1,z=n.length;++xarguments.length){var A=this.node().__on;if(A)for(var la=0,oa=A.length,ra;la=this.r&&0<=this.g&&255>=this.g&&0<=this.b&&255>=this.b&&0<=this.opacity&&1>=this.opacity},hex:function(){return"#"+ib(this.r)+ib(this.g)+ib(this.b)},toString:function(){var l=this.opacity;l=isNaN(l)?1:Math.max(0,Math.min(1,l));return(1===l?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===l?")":", "+l+")")}}));ab(Ua,jb,bb(Xa,{brighter:function(l){l=null==l?Gh:Math.pow(Gh,l);return new Ua(this.h,this.s,this.l*l,this.opacity)},darker:function(l){l=null==l?.7:Math.pow(.7,l);return new Ua(this.h,this.s,this.l*l,this.opacity)},rgb:function(){var l=this.h%360+360*(0>this.h),h=this.l,n=h+(.5>h?h:1-h)*(isNaN(l)||isNaN(this.s)?0:this.s);h=2*h-n;return new La(kb(240<=l?l-240:l+120,h,n),kb(l,h,n),kb(120>l?l+240:l-120,h,n),this.opacity)},displayable:function(){return(0<=this.s&&1>=this.s||isNaN(this.s))&&0<=this.l&&1>=this.l&&0<=this.opacity&&1>=this.opacity}}));var bv=Math.PI/180,ev=180/Math.PI,dv=4/29,Bh=6/29,cv=3*Bh*Bh,nC=Bh*Bh*Bh;ab(Va,function(l,h,n,u){return 1===arguments.length?lb(l):new Va(l,h,n,null==u?1:u)},bb(Xa,{brighter:function(l){return new Va(this.l+18*(null==l?1:l),this.a,this.b,this.opacity)},darker:function(l){return new Va(this.l-18*(null==l?1:l),this.a,this.b,this.opacity)},rgb:function(){var l=(this.l+16)/116,h=isNaN(this.a)?l:l+this.a/500,n=isNaN(this.b)?l:l-this.b/200;h=.96422*nb(h);l=1*nb(l);n=.82521*nb(n);return new La(ob(3.1338561*h-1.6168667*l-.4906146*n),ob(-.9787684*h+1.9161415*l+.033454*n),ob(.0719453*h-.2289914*l+1.4052427*n),this.opacity)}}));ab(rb,qb,bb(Xa,{brighter:function(l){return new rb(this.h,this.c,this.l+18*(null==l?1:l),this.opacity)},darker:function(l){return new rb(this.h,this.c,this.l-18*(null==l?1:l),this.opacity)},rgb:function(){return lb(this).rgb()}}));var fv=1.78277*-.29227-.1347134789;ab(sb,db,bb(Xa,{brighter:function(l){l=null==l?Gh:Math.pow(Gh,l);return new sb(this.h,this.s,this.l*l,this.opacity)},darker:function(l){l=null==l?.7:Math.pow(.7,l);return new sb(this.h,this.s,this.l*l,this.opacity)},rgb:function(){var l=isNaN(this.h)?0:(this.h+120)*bv,h=+this.l,n=isNaN(this.s)?0:this.s*h*(1-h),u=Math.cos(l);l=Math.sin(l);return new La(255*(h+n*(-.14861*u+1.78277*l)),255*(h+n*(-.29227*u+-.90649*l)),255*(h+1.97294*n*u),this.opacity)}}));var Uk=function n(h){function u(z,A){var la=x((z=cb(z)).r,(A=cb(A)).r),oa=x(z.g,A.g),ra=x(z.b,A.b),qa=Cb(z.opacity,A.opacity);return function(pa){z.r=la(pa);z.g=oa(pa);z.b=ra(pa);z.opacity=qa(pa);return z+""}} var x=Ac(h);u.gamma=n;return u}(1),XD=Gc(function(h){var n=h.length-1;return function(u){var x=0>=u?u=0:1<=u?(u=1,n-1):Math.floor(u*n),z=h[x],A=h[x+1];return lc((u-x/n)*n,0(u%=1)?++u:u)*n);return lc((u-x/n)*n,h[(x+n-1)%n],h[x%n],h[(x+1)%n],h[(x+2)%n])}});var Co=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Do=new RegExp(Co.source,"g"),gv=180/Math.PI,Yo={Di:0,Ei:0,rotate:0,skewX:0,Wh:1,Xh:1},Xi,Zo,qw,ol,gE=wc(function(h){if("none"===h)return Yo;Xi||(Xi=document.createElement("DIV"),Zo=document.documentElement,qw=document.defaultView);Xi.style.transform=h;h=qw.getComputedStyle(Zo.appendChild(Xi),null).getPropertyValue("transform");Zo.removeChild(Xi);h=h.slice(7,-1).split(",");return vc(+h[0],+h[1],+h[2],+h[3],+h[4],+h[5])},"px, ","px)","deg)"),hE=wc(function(h){if(null== h)return Yo;ol||(ol=document.createElementNS("http://www.w3.org/2000/svg","g"));ol.setAttribute("transform",h);if(!(h=ol.transform.baseVal.consolidate()))return Yo;h=h.matrix;return vc(h.a,h.b,h.c,h.d,h.e,h.f)},", ",")",")");xc(rc);xc(Cb);yc(rc);yc(Cb);tb(rc);var $o=tb(Cb),Ch=0,Ni=0,Pi=0,Xk,Oi,Wk=0,Dg=0,Vk=0,Mi="object"===typeof performance&&performance.now?performance:Date,hv="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(h){setTimeout(h,17)};Ag.prototype=Ai.prototype={constructor:Ag,restart:function(h,n,u){if("function"!==typeof h)throw new TypeError("callback is not a function");u=(null==u?zg():+u)+(null==n?0:+n);this.Qc||Oi===this||(Oi?Oi.Qc=this:Xk=this,Oi=this);this.uf=h;this.wf=u;tf()},stop:function(){this.uf&&(this.uf=null,this.wf=Infinity,tf())}};var oC=t("start","end","interrupt"),pC=[],iE=Za.prototype.constructor,rw=0,Hh=Za.prototype;Af.prototype=function(h){return Za().transition(h)}.prototype={constructor:Af,select:function(h){var n=this.Ce,u=this.Rb;"function"!==typeof h&&(h=ya(h));for(var x=this.kb,z=x.length,A=Array(z),la=0;laarguments.length?ie(this.node(),u).on.on(h):this.each(Zd(u,h,n))},attr:function(h,n){var u=na(h),x="transform"===u?hE:fd;return this.attrTween(h,"function"===typeof n?(u.local?Kk:Jk)(u,x,oc(this,"attr."+h,n)):null==n?(u.local?hd:Vc)(u):(u.local?th:za)(u,x,n+""))},attrTween:function(h,n){var u="attr."+h;if(2>arguments.length)return(u=this.tween(u))&&u.qg;if(null==n)return this.tween(u,null);if("function"!==typeof n)throw Error();var x=na(h);return this.tween(u,(x.local?ao:Jd)(x,n))},style:function(h,n,u){var x="transform"===(h+="")?gE:fd;return null==n?this.styleTween(h,uh(h,x)).on("end.style."+h,de(h)):this.styleTween(h,"function"===typeof n?qC(h,x,oc(this,"style."+h,n)):co(h,x,n+""),u)},styleTween:function(h,n,u){var x="style."+(h+="");if(2>arguments.length)return(x=this.tween(x))&&x.qg;if(null==n)return this.tween(x,null);if("function"!==typeof n)throw Error();return this.tween(x,rC(h,n,null==u?"":u))},text:function(h){return this.tween("text","function"===typeof h?tC(oc(this,"text",h)):sC(null==h?"":h+""))},remove:function(){return this.on("end.remove",Tf(this.Rb))},tween:function(h,n){var u=this.Rb;h+="";if(2>arguments.length){u=ie(this.node(),u).tween;for(var x=0,z=u.length,A;x=(h*=2)?h*h*h:(h-=2)*h*h+2)/2}};Za.prototype.interrupt=function(h){return this.each(function(){var n=h,u=this.Bd,x,z=!0,A;if(u){n=null==n?null:n+"";for(A in u)if((x=u[A]).name!==n)z=!1;else{var la=2x.state;x.state=6;x.timer.stop();la&&x.on.call("interrupt",this,this.__data__,x.index,x.group);delete u[A]}z&&delete this.Bd}})};Za.prototype.transition=function(h){var n;if(h instanceof Af){var u=h.Rb;h=h.Ce}else u=++rw,(n=ap).time=zg(),h=null==h?null:h+"";for(var x=this.kb,z=x.length,A=0;Az)throw Error("negative radius: "+z);if(null===this.Aa)this.Ga+="M"+(this.Aa=h)+","+(this.Ea=n);else if(1E-6 qa*x)+","+(this.Aa=h+wa*oa)+","+(this.Ea=n+wa*ra)}else this.Ga+="L"+(this.Aa=h)+","+(this.Ea=n)},arc:function(h,n,u,x,z,A){h=+h;n=+n;u=+u;var la=u*Math.cos(x),oa=u*Math.sin(x),ra=h+la,qa=n+oa,pa=1^A;x=A?x-z:z-x;if(0>u)throw Error("negative radius: "+u);if(null===this.Aa)this.Ga+="M"+ra+","+qa;else if(1E-6x&&(x=x%cp+cp),x>jE?this.Ga+="A"+u+","+u+",0,1,"+pa+","+(h-la)+","+(n-oa)+"A"+u+","+u+",0,1,"+pa+","+(this.Aa=ra)+","+(this.Ea=qa):1E-6=bp)+","+pa+","+(this.Aa=h+u*Math.cos(z))+ ","+(this.Ea=n+u*Math.sin(z))))},rect:function(h,n,u,x){this.Ga+="M"+(this.Qa=this.Aa=+h)+","+(this.Ra=this.Ea=+n)+"h"+ +u+"v"+ +x+"h"+-u+"Z"},toString:function(){return this.Ga}};Zk.prototype=$k.prototype={constructor:Zk,has:function(h){return" "+h in this},get:function(h){return this[" "+h]},set:function(h,n){this[" "+h]=n;return this},remove:function(h){h=" "+h;return h in this&&delete this[h]},clear:function(){for(var h in this)" "===h[0]&&delete this[h]},keys:function(){var h=[],n;for(n in this)" "===n[0]&&h.push(n.slice(1));return h},values:function(){var h=[],n;for(n in this)" "===n[0]&&h.push(this[n]);return h},entries:function(){var h=[],n;for(n in this)" "===n[0]&&h.push({key:n.slice(1),value:this[n]});return h},size:function(){var h=0,n;for(n in this)" "===n[0]&&++h;return h},empty:function(){for(var h in this)if(" "===h[0])return!1;return!0},each:function(h){for(var n in this)" "===n[0]&&h(this[n],n.slice(1),this)}};var Hg=$k.prototype;al.prototype=function(h,n){var u=new al;if(h instanceof al)h.each(function(A){u.add(A)});else if(h){var x=-1,z=h.length;if(null==n)for(;++xz;++z)if(x=n.source[z])x.length?u.push({source:x,target:n.target[z]=Array(4)}):n.target[z]=ov(x);return h};fe.add=function(h){var n=+this.yb.call(null,h),u=+this.Db.call(null,h);return nv(this.cover(n,u),n,u,h)};fe.addAll=function(h){var n,u,x=h.length,z,A,la=Array(x),oa=Array(x),ra=Infinity,qa=Infinity,pa=-Infinity,wa=-Infinity;for(u=0;upa&&(pa=z),Awa&&(wa=A));pah||h>z||x>n||n>A){var la=z-u,oa=this.tb,ra;switch(ra=(n<(x+A)/2)<<1|h<(u+z)/2){case 0:do{var qa=Array(4);qa[ra]=oa;oa=qa}while(la*=2,z=u+la,A=x+la,h>z||n>A);break;case 1:do qa=Array(4),qa[ra]=oa,oa=qa;while(la*=2,u=z-la,A=x+la,u>h||n>A);break;case 2:do qa=Array(4),qa[ra]=oa,oa=qa;while(la*=2,z=u+la,x=A-la,h>z||x>n);break;case 3:do qa= Array(4),qa[ra]=oa,oa=qa;while(la*=2,u=z-la,x=A-la,u>h||x>n)}this.tb&&this.tb.length&&(this.tb=oa)}else return this;this.Qa=u;this.Ra=x;this.Aa=z;this.Ea=A;return this};fe.data=function(){var h=[];this.visit(function(n){if(!n.length){do h.push(n.data);while(n=n.next)}});return h};fe.extent=function(h){return arguments.length?this.cover(+h[0][0],+h[0][1]).cover(+h[1][0],+h[1][1]):isNaN(this.Qa)?void 0:[[this.Qa,this.Ra],[this.Aa,this.Ea]]};fe.find=function(h,n,u){var x=this.Qa,z=this.Ra,A,la,oa,ra,qa=this.Aa,pa=this.Ea,wa=[],Da=this.tb,Ha;Da&&wa.push(new ee(Da,x,z,qa,pa));null==u?u=Infinity:(x=h-u,z=n-u,qa=h+u,pa=n+u,u*=u);for(;Ha=wa.pop();)if(!(!(Da=Ha.node)||(A=Ha.x0)>qa||(la=Ha.y0)>pa||(oa=Ha.x1)=jc)<<1|h>=Ha)Ha=wa[wa.length-1],wa[wa.length-1]=wa[wa.length- 1-Da],wa[wa.length-1-Da]=Ha}else if(Ha=h-+this.yb.call(null,Da.data),jc=n-+this.Db.call(null,Da.data),Ha=Ha*Ha+jc*jc,Ha=(pa=(z+la)/2))?z=pa:la=pa;(Ha=qa>=(wa=(A+oa)/2))?A=wa:oa=wa;if(!(n=u,u=u[jc=Ha<<1|Da]))return this;if(!u.length)break;if(n[jc+1&3]||n[jc+2&3]||n[jc+3&3]){var eb=n;var Pc=jc}}for(;u.data!==h;)if(!(x=u,u=u.next))return this;(h=u.next)&&delete u.next;if(x)return h?x.next=h:delete x.next,this;if(!n)return this.tb=h,this;h?n[jc]=h:delete n[jc];(u=n[0]||n[1]||n[2]||n[3])&&u===(n[3]||n[2]||n[1]||n[0])&&!u.length&&(eb?eb[Pc]=u:this.tb=u);return this};fe.removeAll=function(h){for(var n=0,u=h.length;n=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;cl.prototype=Jo.prototype;Jo.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,this.width|0))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};var sv,tv={"%":function(h,n){return(100*h).toFixed(n)},b:function(h){return Math.round(h).toString(2)},c:function(h){return h+""},d:function(h){return Math.round(h).toString(10)},e:function(h,n){return h.toExponential(n)},f:function(h,n){return h.toFixed(n)},g:function(h,n){return h.toPrecision(n)},o:function(h){return Math.round(h).toString(8)},p:function(h,n){return pv(100*h,n)},r:pv,s:function(h,n){var u=bl(h,n);if(!u)return h+"";var x=u[0];u=u[1];u=u-(sv=3*Math.max(-8,Math.min(8,Math.floor(u/3))))+1;var z=x.length;return u===z?x:u>z?x+Array(u-z+1).join("0"):0Kd;$f*=uw;fp.add(Av($f*hp*$d(ip),tw*Yi+$f*ze(ip)));Ia+=sl?Ih+hp*mE:Ih;sl^pd>=Qc^gp>=Qc&&(Cd=wv(vv(Cd),vv(rl)),xv(Cd),pd=wv(Ma,Cd),xv(pd),pd=(sl^0<=Ih?-1:1)*dl(pd[2]),Rc>pd||Rc===pd&&(Cd[0]||Cd[1]))&&(Ta+=sl^0<=Ih?1:-1)}}bd=(-1E-6>Ia||1E-6>Ia&&-1E-6>fp)^Ta&1;Uc.length?(eb||(z.polygonStart(),eb=!0),EC(Uc,GC,bd,u,z)):bd&&(eb||(z.polygonStart(),eb=!0),z.lineStart(),u(null,null,1,z),z.lineEnd());eb&&(z.polygonEnd(),eb=!1);Uc=Pc=null},sphere:function(){z.polygonStart();z.lineStart();u(null,null,1,z);z.lineEnd();z.polygonEnd()}};return Oc}})(function(){return!0},function(h){var n=NaN,u=NaN,x=NaN,z;return{lineStart:function(){h.lineStart();z=1},point:function(A,la){var oa=0Zf(ra-Kd))h.point(n,u=0<(u+la)/2?ye:-ye),h.point(x,u),h.lineEnd(),h.lineStart(),h.point(oa,u),h.point(A,u),z=0;else if(x!==oa&&ra>=Kd){1E-6>Zf(n-x)&&(n-=1E-6*x);1E-6>Zf(A-oa)&&(A-=1E-6*oa);ra=n;var qa=u,pa=A,wa,Da,Ha=$d(ra-pa);u=1E-6h?Kd:Math.acos(h))&&h/$d(h)}).invert=Qi(function(h){return h});el(3);Qi(ep);Qi(dl);Qi(function(h){return 2*ep(h)});Ri.prototype=Bv.prototype={constructor:Ri,count:function(){return this.eachAfter(HC)},each:function(h){var n,u=[this],x;do{var z=u.reverse();for(u=[];n=z.pop();)if(h(n),n=n.children){var A=0;for(x=n.length;An&&(n+=36E5);h.setTime(36E5*Math.floor((+h-n)/36E5)+n)},function(h,n){h.setTime(+h+36E5*n)},function(h,n){return(n-h)/36E5},function(h){return h.getHours()}),Uo=Qd(function(h){h.setHours(0,0,0,0)},function(h,n){h.setDate(h.getDate()+n)},function(h,n){return(n-h-6E4*(n.getTimezoneOffset()-h.getTimezoneOffset()))/864E5},function(h){return h.getDate()-1}),Yv=Eg(0),To=Eg(1);Eg(2);Eg(3);var Vo=Eg(4);Eg(5);Eg(6);var qE=Qd(function(h){h.setDate(1);h.setHours(0,0,0,0)},function(h,n){h.setMonth(h.getMonth()+n)},function(h,n){return n.getMonth()-h.getMonth()+12*(n.getFullYear()-h.getFullYear())},function(h){return h.getMonth()}),Gg=Qd(function(h){h.setMonth(0,1);h.setHours(0,0,0,0)},function(h,n){h.setFullYear(h.getFullYear()+n)},function(h,n){return n.getFullYear()-h.getFullYear()},function(h){return h.getFullYear()});Gg.every=function(h){return isFinite(h=Math.floor(h))&&0this.Zd&&2===this.Oa&&this.Fa.lineTo(this.yb,this.Db);(this.Ha||0!==this.Ha&&1===this.Oa)&&this.Fa.closePath();0<=this.Ha&&(this.Zd=1-this.Zd,this.Ha=1-this.Ha)},point:function(n,u){n=+n;u=+u;switch(this.Oa){case 0:this.Oa=1;this.Ha?this.Fa.lineTo(n,u):this.Fa.moveTo(n,u);break;case 1:this.Oa=2;default:if(0>=this.Zd)this.Fa.lineTo(this.yb,u),this.Fa.lineTo(n,u);else{var x=this.yb*(1-this.Zd)+n*this.Zd;this.Fa.lineTo(x,this.Db);this.Fa.lineTo(x,u)}}this.yb=n;this.Db=u}};Vi.prototype={constructor:Vi,scale:function(n){return 1===n?this:new Vi(this.k*n,this.x,this.y)},translate:function(n,u){return 0===n&0===u?this:new Vi(this.k,this.x+this.k*n,this.y+this.k*u)},apply:function(n){return[n[0]*this.k+this.x,n[1]*this.k+this.y]},applyX:function(n){return n*this.k+this.x},applyY:function(n){return n*this.k+this.y},invert:function(n){return[(n[0]-this.x)/this.k,(n[1]-this.y)/this.k]},invertX:function(n){return(n-this.x)/this.k},invertY:function(n){return(n-this.y)/this.k},rescaleX:function(n){return n.copy().domain(n.range().map(this.invertX,this).map(n.invert,n))},rescaleY:function(n){return n.copy().domain(n.range().map(this.invertY,this).map(n.invert,n))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};new Vi(1,0,0);Ki=b;Qw=function(n,u){return un?1:u>=n?0:NaN};si=function(n,u){var x=n.length,z=-1,A,la,oa;if(null==u)for(;++z=A)for(la=oa=A;++zA&&(la=A),oa=A)for(la=oa=A;++zA&&(la=A),oa=A)for(la=A;++zla&&(la=A)}else for(;++z=A)for(la=A;++zla&&(la=A);return la};Or=function(n,u){var x=n.length,z=-1,A,la;if(null==u)for(;++z=A)for(la=A;++zA&&(la=A)}else for(;++z=A)for(la=A;++zA&&(la=A);return la};cA=function(n,u){var x=n.length,z=-1,A,la=0;if(null==u)for(;++zHa;qa||(qa=pa=Yk());if(Datl-1E-12)qa.moveTo(Da*Ig(Ha),Da*af(Ha)),qa.arc(0,0,Da,Ha,jc,!Pc),1E-12Na?$i:Math.acos(Na))/2);eb=Fh(Ga[0]*Ga[0]+Ga[1]*Ga[1]);Ga=kp(Ta,(wa-eb)/(Na-1));Na=kp(Ta,(Da-eb)/(Na+1))}}1E-12=bd;--Ha)pa.point(tc[Ha],Oc[Ha]);pa.lineEnd();pa.areaEnd()}Pc&&(tc[Da]=+x(eb,Da,wa),Oc[Da]=+A(eb,Da,wa),pa.point(z?+z(eb,Da,wa):tc[Da],la?+la(eb,Da,wa):Oc[Da]))}if(Uc)return pa=null,Uc+""||null} function u(){return dw().defined(oa).curve(qa).context(ra)} var x=bw,z=null,A=td(0),la=cw,oa=td(!0),ra=null,qa=ll,pa=null;n.x=function(wa){return arguments.length?(x="function"===typeof wa?wa:td(+wa),z=null,n):x};n.x0=function(wa){return arguments.length?(x="function"===typeof wa?wa:td(+wa),n):x};n.x1=function(wa){return arguments.length?(z=null==wa?null:"function"===typeof wa?wa:td(+wa),n):z};n.y=function(wa){return arguments.length?(A="function"===typeof wa?wa:td(+wa),la=null,n):A};n.y0=function(wa){return arguments.length?(A="function"===typeof wa?wa:td(+wa),n):A};n.y1=function(wa){return arguments.length?(la=null==wa?null:"function"===typeof wa?wa:td(+wa),n):la};n.lineX0=n.lineY0=function(){return u().x(x).y(A)};n.lineY1=function(){return u().x(x).y(la)};n.lineX1=function(){return u().x(z).y(A)};n.defined=function(wa){return arguments.length?(oa="function"===typeof wa?wa:td(!!wa),n):oa};n.curve=function(wa){return arguments.length?(qa=wa,null!=ra&&(pa=qa(ra)),n):qa};n.context=function(wa){return arguments.length?(null==wa?ra=pa=null:pa=qa(ra=wa),n):ra};return n};cy=dw;Aw=function(){function n(ra){var qa,pa=ra.length;var wa=0;var Da=Array(pa),Ha=Array(pa),jc=+A.apply(this,arguments);var eb=Math.min(tl,Math.max(-tl,la.apply(this,arguments)-jc));var Pc=Math.min(Math.abs(eb)/pa,oa.apply(this,arguments)),Uc=Pc*(0>eb?-1:1),tc;for(qa=0;qa=k;k++)f.push(new Date(b.getFullYear(),b.getMonth()+k));var p=new Map;a=Kc(a);for(b=a.next();!b.done;b=a.next()){var r=b.value;b=r.getYear()+"-"+r.getMonth();k=null!==(c=p.get(b))&&void 0!==c?c:0;r=null!==(e=Xf(r,3))&&void 0!==e?e:0;p.set(b,k+r)}return f.map(function(t){return{month:t.getTime(),count:p.get(t.getFullYear()+"-"+(t.getMonth()+1))||0}})} function UE(a){var b=a.locale;a={};return wB("{{monthYear}}","
{{series.name}}: {{measure}}
").$d((a.monthYear=function(){return(new Date(this.datum.month)).toLocaleDateString(b,{month:"long",year:"numeric"})},a)).Ti()} ;}).call(this); ");return null==a||null==a.sheet?sg:Bm(a.sheet,void 0!=b?b:null,c)} function Fm(a){if(af&&!nf(10)||"function"!=typeof hd.DOMParser)return null;a=zg(""+a+"",null);return(new DOMParser).parseFromString(vg(a),"text/html").body.children[0]} function Dm(a,b){if(!a)return gg;var c=document.createElement("div").style;Gm(a).forEach(function(e){var f=df&&e in Am?e:e.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");0!=f.lastIndexOf("--",0)&&0!=f.lastIndexOf("var",0)&&(e=wm(a,e),e=Wl(f,e,b),null!=e&&xm(c,f,e))});return new cg(c.cssText||"",bg)} function Hm(a){var b=Array.from(om(dm,a,"getElementsByTagName",["STYLE"])),c=Ae(b,function(f){return ke(sm(f).cssRules)});c=Cm(c);c.sort(function(f,l){f=Pl(f.selectorText);a:{l=Pl(l.selectorText);for(var p=pe,r=Math.min(f.length,l.length),t=0;t"+a+""),Hm(a),a=a.innerHTML);a=zg(a,null);var c=document.createElement("template");if(Nm&&"content"in c)Ug(c,a),c=c.content;else{var e=document.implementation.createHTMLDocument("x");c=e.body;Ug(e.body,a)}a=document.createTreeWalker(c,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,null,!1);for(c=Jm?new WeakMap:new Lm;e=a.nextNode();){a:{var f=e;switch(um(f)){case 3:f= Pm(this,f);break a;case 1:if("TEMPLATE"==tm(f).toUpperCase())f=null;else{var l=tm(f).toUpperCase();if(l in this.ha||"http://www.w3.org/1999/xhtml"!=ym(f))var p=null;else this.N[l]?p=document.createElement(l):(p=Zi(document,"SPAN"),this.na&&qm(p,"data-sanitizer-original-tag",l.toLowerCase()));if(p){var r=p,t=pm(f);if(null!=t)for(var y=0;l=t[y];y++)if(l.specified){var E=f;var ma=l;var na=ma.name;if(0==na.lastIndexOf("data-sanitizer-",0))ma=null;else{var ta=tm(E);ma=ma.value;var ua={tagName:Ed(ta).toLowerCase(),attributeName:Ed(na).toLowerCase()},sa={ih:void 0};"style"==ua.attributeName&&(sa.ih=rm(E));E=Qm(ta,na);E in this.v?(na=this.v[E],ma=na(ma,ua,sa)):(na=Qm(null,na),na in this.v?(na=this.v[na],ma=na(ma,ua,sa)):ma=null)}null!==ma&&qm(r,l.name,ma)}f=p}else f=null}break a;default:f=null}}if(f){if(1==um(f)&&c.set(e,f),e=vm(e),l=!1,e)p=um(e),r=tm(e).toLowerCase(),t=vm(e),11!=p||t?"body"==r&&t&&(p=vm(t))&&!vm(p)&&(l=!0):l=!0,p=null,l||!e?p=b:1==um(e)&&(p=c.get(e)),p.content&&(p=p.content),p.appendChild(f)}else aj(e)}c.clear&& c.clear();return b};var Rm={APPLET:!0,AUDIO:!0,BASE:!0,BGSOUND:!0,EMBED:!0,FORM:!0,IFRAME:!0,ISINDEX:!0,KEYGEN:!0,LAYER:!0,LINK:!0,META:!0,OBJECT:!0,SCRIPT:!0,SVG:!0,STYLE:!0,TEMPLATE:!0,VIDEO:!0};var Sm={A:!0,ABBR:!0,ACRONYM:!0,ADDRESS:!0,AREA:!0,ARTICLE:!0,ASIDE:!0,B:!0,BDI:!0,BDO:!0,BIG:!0,BLOCKQUOTE:!0,BR:!0,BUTTON:!0,CAPTION:!0,CENTER:!0,CITE:!0,CODE:!0,COL:!0,COLGROUP:!0,DATA:!0,DATALIST:!0,DD:!0,DEL:!0,DETAILS:!0,DFN:!0,DIALOG:!0,DIR:!0,DIV:!0,DL:!0,DT:!0,EM:!0,FIELDSET:!0,FIGCAPTION:!0,FIGURE:!0,FONT:!0,FOOTER:!0,FORM:!0,H1:!0,H2:!0,H3:!0,H4:!0,H5:!0,H6:!0,HEADER:!0,HGROUP:!0,HR:!0,I:!0,IMG:!0,INPUT:!0,INS:!0,KBD:!0,LABEL:!0,LEGEND:!0,LI:!0,MAIN:!0,MAP:!0,MARK:!0,MENU:!0,METER:!0,NAV:!0,NOSCRIPT:!0,OL:!0,OPTGROUP:!0,OPTION:!0,OUTPUT:!0,P:!0,PRE:!0,PROGRESS:!0,Q:!0,S:!0,SAMP:!0,SECTION:!0,SELECT:!0,SMALL:!0,SOURCE:!0,SPAN:!0,STRIKE:!0,STRONG:!0,STYLE:!0,SUB:!0,SUMMARY:!0,SUP:!0,TABLE:!0,TBODY:!0,TD:!0,TEXTAREA:!0,TFOOT:!0,TH:!0,THEAD:!0,TIME:!0,TR:!0,TT:!0,U:!0,UL:!0,VAR:!0,WBR:!0};var Tm={"ANNOTATION-XML":!0,"COLOR-PROFILE":!0,"FONT-FACE":!0,"FONT-FACE-SRC":!0,"FONT-FACE-URI":!0,"FONT-FACE-FORMAT":!0,"FONT-FACE-NAME":!0,"MISSING-GLYPH":!0};function Um(a){a=a||new Vm;Wm(a);this.v=Ne(a.v);this.ha=Ne(a.Da);this.N=Ne(a.Ia);this.na=a.va;a.ha.forEach(function(b){if(0!=b.lastIndexOf("data-",0))throw new Bd('Only "data-" attributes allowed, got: %s.',[b]);if(0==b.lastIndexOf("data-sanitizer-",0))throw new Bd('Attributes with "%s" prefix are not allowed, got: %s.',["data-sanitizer-",b]);this.v["* "+b.toUpperCase()]=Xm},this);a.Ka.forEach(function(b){b=b.toUpperCase();if(-1==b.indexOf("-")||Tm[b])throw new Bd("Only valid custom element tag names allowed, got: %s.",[b]);this.N[b]=!0},this);this.ka=a.O;this.$=a.ya;this.O=null;this.ma=a.na} vd(Um,Om);function Ym(a){return function(b,c){b=Ed(b);return(c=a(b,c))&&"about:invalid#zClosurez"!=Tf(c)?Tf(c):null}} function Vm(){this.v={};Td([Ml,Nl],function(a){Ke(a).forEach(function(b){this.v[b]=Xm},this)},this);this.N={};this.ha=[];this.Ka=[];this.Da=Ne(Rm);this.Ia=Ne(Sm);this.va=!1;this.La=$f;this.ka=this.$=this.Oa=this.O=Rg;this.ya=null;this.ma=this.na=!1} function Zm(a,b){return function(c,e,f,l){c=a(c,e,f,l);return null==c?null:b(c,e,f,l)}} function $m(a,b,c,e){a[c]&&!b[c]&&(a[c]=Zm(a[c],e))} function Wm(a){if(a.ma)throw Error("HtmlSanitizer.Builder.build() can only be used once.");$m(a.v,a.N,"* USEMAP",an);var b=Ym(a.La);["* ACTION","* CITE","* HREF"].forEach(function(e){$m(this.v,this.N,e,b)},a);var c=Ym(a.O);["* LONGDESC","* SRC","LINK HREF"].forEach(function(e){$m(this.v,this.N,e,c)},a);["* FOR","* HEADERS","* NAME"].forEach(function(e){$m(this.v,this.N,e,rd(bn,this.Oa))},a);$m(a.v,a.N,"A TARGET",rd(cn,["_blank","_self"]));$m(a.v,a.N,"* CLASS",rd(dn,a.$));$m(a.v,a.N,"* ID",rd(en,a.$));$m(a.v,a.N,"* STYLE",rd(a.ka,c));a.ma=!0} function Qm(a,b){a||(a="*");return(a+" "+b).toUpperCase()} function Xm(a){return Ed(a)} function cn(a,b){b=Ed(b);return 0<=Sd(a,b.toLowerCase())?b:null} function an(a){return(a=Ed(a))&&"#"==a.charAt(0)?a:null} function bn(a,b,c){b=Ed(b);return a(b,c)} function dn(a,b,c){b=b.split(/(?:\s+)/);for(var e=[],f=0;f/i)&&a.match(/<\/td>$/i)&&(b=b||"td",a=""+a+"");a.match(/^/i)&&a.match(/<\/tr>$/i)&&(b=b||"tr",a=""+a+"");a.match(/^<(tbody|thead|tfoot)>/i)&&a.match(/<\/(tbody|thead|tfoot)>$/i)&&(b=b||a.match(/^<(tbody|thead|tfoot)>/i)[1],a=""+a+"
");a=on(a);b&&(a=a.querySelector(b).parentNode);return a} function nn(a,b){for(var c=[a],e=null;e=c.pop();)Array.prototype.forEach.call(e.childNodes,function(f){f.nodeType===Node.TEXT_NODE?pn(e,f,b):f.childNodes.length&&c.push(f)})} function pn(a,b,c){if(b.textContent.match(qn)){var e=b.nextSibling;a.removeChild(b);b=b.textContent;for(var f=null,l=[];f=qn.exec(b);){0e&&(a=f+".autoNamespace"+this.$++);if(b){c&&(b=qd(b,c));var l=this.N[f];l||(l=[],this.N[f]=l);be(l,this.v[a]);this.v[a]=b;l.push(b);this.O.hasOwnProperty(f)}else if(f.length)b=this.v[a],be(this.N[f]||[],b),delete this.v[a];else if(1a.Ba?Math.floor(b*a.Ba):a.Ba,Ta:0a.Ta?Math.floor(b*a.Ta):a.Ta};a.Ta=Math.max(a.Ba,a.Ta);return a} function co(a,b,c,e,f,l){var p=b.width-a.ha-a.ma;a.na=jo(p,b.width,b.height,io(c,b.height),ho(a,[1,2]));a.ka=jo(p,b.width,b.height,io(f,b.height),ho(a,[3,4]));c=b.height-a.na-a.ka;f=ho(a,[3,4,1,2]);var r=0;for(p=0;pp){a=Zo(f);for(e=b=0;ep-b-y.Ba.height&&y.yc&&(y.bc.height=0),b+=y.bc.height;return Yh(b,l,c)}if(rl){a=Zo(e);for(c=e=0;cl-e-t.Ba.width&&t.yc&&(t.bc.width=0),e+=t.bc.width;return Yh(e,f,b)}if(pa,e=null!=b&&0b;if(null!=b&&(c&&e||!c&&!e)&&b=a.length?a:a.slice(0).sort(function(b,c){b=void 0!==b.Rc.If?b.Rc.If:20;c=void 0!==c.Rc.If?c.Rc.If:20;return b-c})} ao.prototype.setMargins=ao.prototype.Vc;ao.prototype.setMarginEnd=ao.prototype.uk;ao.prototype.setMarginStart=ao.prototype.xk;ao.prototype.setMarginLeft=ao.prototype.vk;ao.prototype.setMarginBottom=ao.prototype.tk;ao.prototype.setMarginRight=ao.prototype.wk;ao.prototype.setMarginTop=ao.prototype.yk;ud("aplos.chart.layout.DynamicLayout",ao);var $o={nq:"WARNING",ERROR:"ERROR"};ud("aplos.util.MessageSeverity",$o);$o.WARNING="WARNING";$o.ERROR="ERROR";var ap={kq:"UNTIL_REMOVED",jq:"UNTIL_DATA",Ip:"ONCE"};ud("aplos.util.MessageDuration",ap);ap.UNTIL_REMOVED="UNTIL_REMOVED";ap.UNTIL_FRESH_DATA="UNTIL_DATA";ap.ONCE="ONCE";function bp(a){this.v=a} bp.prototype.render=function(a){var b=a.filter(function(c){return"ERROR"===c.severity});b.length&&cp(this,b);b.length||(b=dp(this.v.Sa,ep),b.empty()||(b.style("display","none"),b.selectAll("div."+fp).remove(),this.v.ab.style("display","")));a=a.filter(function(c){return"WARNING"===c.severity});gp(this,a)};function cp(a,b){var c=ep,e=hp,f=a.v,l=f.Sa;f.ab.style("display","none");a=dp(l,c);a.empty()&&(a=l.append("div").classed(c,!0),a.append("div").classed(ip,!0),a.append("div").classed(jp,!0));a.style("display",null);a.select("."+jp).attr("class",jp+" "+e);b=a.select("."+ip).selectAll("div."+fp).data(b);b.exit().remove();b=b.enter().append("div").merge(b);b.text(function(p){return p.message});b.attr("class",function(p){return fp+" "+kp+p.severity.toLowerCase()});a.style("position","absolute");b=(f.frameWidth()-a.node().offsetWidth)/2;f=(f.frameHeight()-a.node().offsetHeight)/2;b=Math.max(0,b);f=Math.max(0,f);a.style("left",b+"px");a.style("top",f+"px")} function gp(a,b){var c=a.v.Sa.select("."+lp);c.empty()&&(c=a.v.Sa.append("div").classed(lp,!0));c.style("display",b.length?"":"none");c.classed(mp,!0);var e="";b.forEach(function(f){e+=f.message+"\n"});c.attr("title",e.trim())} function dp(a,b){b=a.selectAll("."+b).nodes();for(var c=null,e=0;e>>0);function Gp(a){if("function"===typeof a)return a;a[Op]||(a[Op]=function(b){return a.handleEvent(b)});return a[Op]} ;function Pp(){this.port=this.v=null;this.N=[]} Pp.prototype.load=function(){var a=this,b=Qp();this.v=Rp(b);Sp().then(function(){document.body.appendChild(a.v)});return Tp(this.v,b).then(function(c){for(a.port=c.ports[0];0e?c:c==e?c:e)});return c} ud("aplos.data.aggregations.max",dq);function aq(a,b){var c=0;b=b||Sg;a.forEach(function(e,f){e=b(e,f);null!=e&&("number"!==typeof e||!isNaN(e)&&isFinite(e))&&c++});return c} ud("aplos.data.aggregations.count",aq);function eq(a,b){var c=new Set;b=b||Sg;a.forEach(function(e,f){e=b(e,f);null!=e&&("number"!==typeof e||!isNaN(e)&&isFinite(e))&&c.add(e)});return c.size} ud("aplos.data.aggregations.countDistinct",eq);function fq(a,b,c,e){if(2>a||!Yp(a))throw Error("Number of quantiles must be an integer greater or equal to 2, but "+a+" was provided.");if(0>b||b>a||!Yp(b))throw Error("Requested quantile must be an integer from 0 to the number of quanties, "+a+", but "+b+" was requested.");return gq(b/a,c,e)} ud("aplos.data.aggregations.quantiles",fq);function gq(a,b,c){if(0>a||1c.length)var e=null;else{if(!c||2>c.length)e=null;else if(e=[],b){var f=ue(c,b),l=Je(f);if(2>l.length)e=null;else for(f=xe(l),c=0;c