diff --git a/tensorboard_plugin/tensorboard_plugin_fairness_indicators/static/vulcanized_tfma.js b/tensorboard_plugin/tensorboard_plugin_fairness_indicators/static/vulcanized_tfma.js index 03f71dab..2fe12900 100755 --- a/tensorboard_plugin/tensorboard_plugin_fairness_indicators/static/vulcanized_tfma.js +++ b/tensorboard_plugin/tensorboard_plugin_fairness_indicators/static/vulcanized_tfma.js @@ -30,52 +30,48 @@ function ea(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof win */ (function(a){function b(l,q){if("function"===typeof window.CustomEvent)return new CustomEvent(l,q);var r=document.createEvent("CustomEvent");r.initCustomEvent(l,!!q.bubbles,!!q.cancelable,q.detail);return r}function c(l){if(fa)return l.ownerDocument!==document?l.ownerDocument:null;var q=l.__importDoc;if(!q&&l.parentNode){q=l.parentNode;if("function"===typeof q.closest)q=q.closest("link[rel=import]");else for(;!h(q)&&(q=q.parentNode););l.__importDoc=q}return q}function d(l){var q=p(document,"link[rel=import]:not([import-dependency])"), r=q.length;r?w(q,function(v){return g(v,function(){0===--r&&l()})}):l()}function e(l){function q(){"loading"!==document.readyState&&document.body&&(document.removeEventListener("readystatechange",q),l())}document.addEventListener("readystatechange",q);q()}function f(l){e(function(){return d(function(){return l&&l()})})}function g(l,q){if(l.__loaded)q&&q();else if("script"===l.localName&&!l.src||"style"===l.localName&&!l.firstChild||"style"===l.localName&&"http://www.w3.org/2000/svg"===l.namespaceURI)l.__loaded= -!0,q&&q();else{var r=function(v){l.removeEventListener(v.type,r);l.__loaded=!0;q&&q()};l.addEventListener("load",r);"style"===l.localName&&(ta||ua)||l.addEventListener("error",r)}}function h(l){return l.nodeType===Node.ELEMENT_NODE&&"link"===l.localName&&"import"===l.rel}function k(){var l=this;this.D={};this.U=0;this.Da=new MutationObserver(function(q){return l.wc(q)});this.Da.observe(document.head,{childList:!0,subtree:!0});this.loadImports(document)}function m(l){w(p(l,"template"),function(q){w(p(q.content, -'script:not([type]),script[type="application/javascript"],script[type="text/javascript"],script[type="module"]'),function(r){var v=document.createElement("script");w(r.attributes,function(C){return v.setAttribute(C.name,C.value)});v.textContent=r.textContent;r.parentNode.replaceChild(v,r)});m(q.content)})}function p(l,q){return l.childNodes.length?l.querySelectorAll(q):Db}function w(l,q,r){var v=l?l.length:0,C=r?-1:1;for(r=r?v-1:0;r]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,Q={uc:function(l,q){l.href&&l.setAttribute("href",Q.oa(l.getAttribute("href"),q));l.src&&l.setAttribute("src",Q.oa(l.getAttribute("src"), -q));if("style"===l.localName){var r=Q.mb(l.textContent,q,Eb);l.textContent=Q.mb(r,q,Fb)}},mb:function(l,q,r){return l.replace(r,function(v,C,x,E){v=x.replace(/["']/g,"");q&&(v=Q.oa(v,q));return C+"'"+v+"'"+E})},oa:function(l,q){if(void 0===Q.qa){Q.qa=!1;try{var r=new URL("b","http://a");r.pathname="c%20d";Q.qa="http://a/c%20d"===r.href}catch(v){}}if(Q.qa)return(new URL(l,q)).href;r=Q.wb;r||(r=document.implementation.createHTMLDocument("temp"),Q.wb=r,r.Ja=r.createElement("base"),r.head.appendChild(r.Ja), +!0,q&&q();else{var r=function(v){l.removeEventListener(v.type,r);l.__loaded=!0;q&&q()};l.addEventListener("load",r);"style"===l.localName&&(ua||va)||l.addEventListener("error",r)}}function h(l){return l.nodeType===Node.ELEMENT_NODE&&"link"===l.localName&&"import"===l.rel}function k(){var l=this;this.D={};this.U=0;this.Da=new MutationObserver(function(q){return l.wc(q)});this.Da.observe(document.head,{childList:!0,subtree:!0});this.loadImports(document)}function m(l){w(p(l,"template"),function(q){w(p(q.content, +'script:not([type]),script[type="application/javascript"],script[type="text/javascript"],script[type="module"]'),function(r){var v=document.createElement("script");w(r.attributes,function(C){return v.setAttribute(C.name,C.value)});v.textContent=r.textContent;r.parentNode.replaceChild(v,r)});m(q.content)})}function p(l,q){return l.childNodes.length?l.querySelectorAll(q):Eb}function w(l,q,r){var v=l?l.length:0,C=r?-1:1;for(r=r?v-1:0;r]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,Q={uc:function(l,q){l.href&&l.setAttribute("href",Q.oa(l.getAttribute("href"),q));l.src&&l.setAttribute("src",Q.oa(l.getAttribute("src"), +q));if("style"===l.localName){var r=Q.mb(l.textContent,q,Fb);l.textContent=Q.mb(r,q,Gb)}},mb:function(l,q,r){return l.replace(r,function(v,C,x,E){v=x.replace(/["']/g,"");q&&(v=Q.oa(v,q));return C+"'"+v+"'"+E})},oa:function(l,q){if(void 0===Q.qa){Q.qa=!1;try{var r=new URL("b","http://a");r.pathname="c%20d";Q.qa="http://a/c%20d"===r.href}catch(v){}}if(Q.qa)return(new URL(l,q)).href;r=Q.wb;r||(r=document.implementation.createHTMLDocument("temp"),Q.wb=r,r.Ja=r.createElement("base"),r.head.appendChild(r.Ja), r.Ia=r.createElement("a"));r.Ja.href=q;r.Ia.href=l;return r.Ia.href||l}},ka={async:!0,load:function(l,q,r){if(l)if(l.match(/^data:/)){l=l.split(",");var v=l[1];v=-1C.status?q(E,x):r(E)};C.send()}else r("error: href must be specified")}},ta=/Trident/.test(navigator.userAgent),ua=/Edge\/\d./i.test(navigator.userAgent);k.prototype.loadImports=function(l){var q=this;l=p(l,"link[rel=import]");w(l,function(r){return q.jb(r)})};k.prototype.jb=function(l){var q=this,r=l.href;if(void 0!==this.D[r]){var v=this.D[r];v&&v.__loaded&&(l.__import=v,this.hb(l))}else this.U++,this.D[r]="pending",ka.load(r,function(C,x){C=q.Cc(C,x||r);q.D[r]=C;q.U--;q.loadImports(C); -q.lb()},function(){q.D[r]=null;q.U--;q.lb()})};k.prototype.Cc=function(l,q){var r=this;if(!l)return document.createDocumentFragment();if(ta||ua)l=l.replace(ha,function(x,E,la){return-1===x.indexOf("type=")?E+" type=import-disable "+la:x});var v=document.createElement("template");v.innerHTML=l;if(v.content)l=v.content,m(l);else for(l=document.createDocumentFragment();v.firstChild;)l.appendChild(v.firstChild);if(v=l.querySelector("base"))q=Q.oa(v.getAttribute("href"),q),v.removeAttribute("href");v= +C.status&&300>C.status?q(E,x):r(E)};C.send()}else r("error: href must be specified")}},ua=/Trident/.test(navigator.userAgent),va=/Edge\/\d./i.test(navigator.userAgent);k.prototype.loadImports=function(l){var q=this;l=p(l,"link[rel=import]");w(l,function(r){return q.jb(r)})};k.prototype.jb=function(l){var q=this,r=l.href;if(void 0!==this.D[r]){var v=this.D[r];v&&v.__loaded&&(l.__import=v,this.hb(l))}else this.U++,this.D[r]="pending",ka.load(r,function(C,x){C=q.Cc(C,x||r);q.D[r]=C;q.U--;q.loadImports(C); +q.lb()},function(){q.D[r]=null;q.U--;q.lb()})};k.prototype.Cc=function(l,q){var r=this;if(!l)return document.createDocumentFragment();if(ua||va)l=l.replace(ha,function(x,E,la){return-1===x.indexOf("type=")?E+" type=import-disable "+la:x});var v=document.createElement("template");v.innerHTML=l;if(v.content)l=v.content,m(l);else for(l=document.createDocumentFragment();v.firstChild;)l.appendChild(v.firstChild);if(v=l.querySelector("base"))q=Q.oa(v.getAttribute("href"),q),v.removeAttribute("href");v= p(l,'link[rel=import],link[rel=stylesheet][href][type=import-disable],style:not([type]),link[rel=stylesheet][href]:not([type]),script:not([type]),script[type="application/javascript"],script[type="text/javascript"],script[type="module"]');var C=0;w(v,function(x){g(x);Q.uc(x,q);if("style"===x.localName&&r.ob(x)){var E=r.qc(x);g(E);x.parentNode.replaceChild(E,x);x=E}x.setAttribute("import-dependency","");if("script"===x.localName&&!x.src&&x.textContent){if("module"===x.type)throw Error("Inline module scripts are not supported in HTML Imports."); -x.setAttribute("src","data:text/javascript;charset=utf-8,"+encodeURIComponent(x.textContent+("\n//# sourceURL="+q+(C?"-"+C:"")+".js\n")));x.textContent="";C++}});return l};k.prototype.ob=function(l){return ua&&-1\x20\t\r\n\f]+)/i.exec(u)||["",""])[1].toLowerCase()];if(D)for(var G=0;G"+u+"";ha.body.innerHTML=u;for(a.bootstrap(ha);this.content.firstChild;)k.call(this.content,this.content.firstChild);u=ha.body;if(D)for(G=0;G"+this.innerHTML+""},set:function(u){if(this.parentNode){ha.body.innerHTML= +F=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML")||{get:function(){return this.innerHTML},set:function(t){this.innerHTML=t}},fa=Object.getOwnPropertyDescriptor(window.Node.prototype,"childNodes")||{get:function(){return this.childNodes}},Eb=Element.prototype.querySelectorAll,Ka=Document.prototype.querySelectorAll,Fb=DocumentFragment.prototype.querySelectorAll,Gb=function(){if(!c){var t=document.createElement("template"),u=document.createElement("template");u.content.appendChild(document.createElement("div")); +t.content.appendChild(u);t=t.cloneNode(!0);return 0===t.content.childNodes.length||0===t.content.firstChild.content.childNodes.length||d}}();if(c){var ha=document.implementation.createHTMLDocument("template"),Q=!0,ka=document.createElement("style");ka.textContent="template{display:none;}";var ua=document.head;ua.insertBefore(ka,ua.firstElementChild);a.prototype=Object.create(HTMLElement.prototype);var va=!document.createElement("div").hasOwnProperty("innerHTML");a.N=function(t){if(!t.content&&t.namespaceURI=== +document.documentElement.namespaceURI){t.content=ha.createDocumentFragment();for(var u;u=t.firstChild;)m.call(t.content,u);if(va)t.__proto__=a.prototype;else if(t.cloneNode=function(D){return a.sa(this,D)},Q)try{ma(t),l(t)}catch(D){Q=!1}a.bootstrap(t.content)}};var La={option:["select"],thead:["table"],col:["colgroup","table"],tr:["tbody","table"],th:["tr","tbody","table"],td:["tr","tbody","table"]},ma=function(t){Object.defineProperty(t,"innerHTML",{get:function(){return E(this)},set:function(u){var D= +La[(/<([a-z][^/\0>\x20\t\r\n\f]+)/i.exec(u)||["",""])[1].toLowerCase()];if(D)for(var G=0;G"+u+"";ha.body.innerHTML=u;for(a.bootstrap(ha);this.content.firstChild;)k.call(this.content,this.content.firstChild);u=ha.body;if(D)for(G=0;G"+this.innerHTML+""},set:function(u){if(this.parentNode){ha.body.innerHTML= u;for(u=this.ownerDocument.createDocumentFragment();ha.body.firstChild;)m.call(u,ha.body.firstChild);p.call(this.parentNode,u,this)}else throw Error("Failed to set the 'outerHTML' property on 'Element': This element has no parent node.");},configurable:!0})};ma(a.prototype);l(a.prototype);a.bootstrap=function(t){t=b(t,"template");for(var u=0,D=t.length,G;u]/g,v=function(t){switch(t){case "&":return"&";case "<":return"<";case ">":return">";case '"':return""";case "\u00a0":return" "}}; -ka=function(t){for(var u={},D=0;D";break a;case Node.TEXT_NODE:z=z.data;z=M&&x[M.localName]?z:z.replace(r,v);break a;case Node.COMMENT_NODE:z="\x3c!--"+z.data+"--\x3e";break a;default:throw window.console.error(z),Error("not implemented");}}D+=z}return D}}if(c||Fb){a.sa=function(t,u){var D=f.call(t,!1);this.N&&this.N(D);u&&(m.call(D.content,f.call(t.content,!0)),la(D.content,t.content));return D};var la=function(t,u){if(u.querySelectorAll&& -(u=b(u,"template"),0!==u.length)){t=b(t,"template");for(var D=0,G=t.length,V,ca;D";break a;case Node.TEXT_NODE:z=z.data;z=M&&x[M.localName]?z:z.replace(r,v);break a;case Node.COMMENT_NODE:z="\x3c!--"+z.data+"--\x3e";break a;default:throw window.console.error(z),Error("not implemented");}}D+=z}return D}}if(c||Gb){a.sa=function(t,u){var D=f.call(t,!1);this.N&&this.N(D);u&&(m.call(D.content,f.call(t.content,!0)),la(D.content,t.content));return D};var la=function(t,u){if(u.querySelectorAll&& +(u=b(u,"template"),0!==u.length)){t=b(t,"template");for(var D=0,G=t.length,V,ca;D]/g;function Ab(a){switch(a){case "&":return"&";case "<":return"<";case ">":return">";case '"':return""";case "\u00a0":return" "}}function Bb(a){for(var b={},c=0;c";break a;case Node.TEXT_NODE:h=h.data;h=k&&Hb[k.localName]?h:h.replace(zb,Ab);break a;case Node.COMMENT_NODE:h="\x3c!--"+h.data+"--\x3e";break a;default:throw window.console.error(h), -Error("not implemented");}}c+=h}return c};var Jb=I.h,Kb={querySelector:function(a){return this.__shady_native_querySelector(a)},querySelectorAll:function(a){return this.__shady_native_querySelectorAll(a)}},Lb={};function Mb(a){Lb[a]=function(b){return b["__shady_native_"+a]}}function Nb(a,b){K(a,b,"__shady_native_");for(var c in b)Mb(c)}function N(a,b){b=void 0===b?[]:b;for(var c=0;c]/g;function Bb(a){switch(a){case "&":return"&";case "<":return"<";case ">":return">";case '"':return""";case "\u00a0":return" "}}function Cb(a){for(var b={},c=0;c";break a;case Node.TEXT_NODE:h=h.data;h=k&&Ib[k.localName]?h:h.replace(Ab,Bb);break a;case Node.COMMENT_NODE:h="\x3c!--"+h.data+"--\x3e";break a;default:throw window.console.error(h), +Error("not implemented");}}c+=h}return c};var Kb=I.h,Lb={querySelector:function(a){return this.__shady_native_querySelector(a)},querySelectorAll:function(a){return this.__shady_native_querySelectorAll(a)}},Mb={};function Nb(a){Mb[a]=function(b){return b["__shady_native_"+a]}}function Ob(a,b){K(a,b,"__shady_native_");for(var c in b)Nb(c)}function N(a,b){b=void 0===b?[]:b;for(var c=0;cc.assignedNodes.length&& (c.Ca=!0)}c.Ca&&(c.Ca=!1,this.Qa(b))}};n.Oa=function(a,b){var c=B(a),d=c.xa;c.xa=null;b||(b=(b=this.c[a.__shady_slot||"__catchall"])&&b[0]);b?(B(b).assignedNodes.push(a),c.assignedSlot=b):c.assignedSlot=void 0;d!==c.assignedSlot&&c.assignedSlot&&(B(c.assignedSlot).Ca=!0)};n.Ab=function(a){var b=H(a),c=b.assignedNodes;b.assignedNodes=[];b.O=[];if(b.Za=c)for(b=0;bb.indexOf(d))||b.push(d)}for(a=0;a "+h}))}return{value:a,rc:b,stop:f}};n.fb=function(a,b){a=a.split(/(\[.+?\])/);for(var c=[],d=0;d+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,gg=/[[.:#*]/,bg=/^(::slotted)/,fg=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,eg=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,dg=/(.*):dir\((?:(ltr|rtl))\)(.*)/,ag=/:(?:matches|any|-(?:webkit|moz)-any)/,X=new Uf;function ig(a,b,c,d,e){this.s=a||null;this.placeholder=b||null;this.Ea=c||[];this.P=null;this.cssBuild=e||"";this.X=d||"";this.M=this.o=this.A=null}function jg(a){return a?a.__styleInfo:null}function kg(a,b){return a.__styleInfo=b}ig.prototype.Ob=function(){return this.s};ig.prototype._getStyleRules=ig.prototype.Ob;function lg(a){var b=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return b&&b.call(this,a)}var mg=/:host\s*>\s*/,ng=navigator.userAgent.match("Trident");function og(){}function pg(a){var b={},c=[],d=0;Ff(a,function(f){qg(f);f.index=d++;f=f.f.cssText;for(var g;g=zf.exec(f);){var h=g[1];":"!==g[2]&&(b[h]=!0)}},function(f){c.push(f)});a.Rb=c;a=[];for(var e in b)a.push(e);return a} -function qg(a){if(!a.f){var b={},c={};rg(a,c)&&(b.w=c,a.rules=null);b.cssText=a.parsedCssText.replace(Cf,"").replace(xf,"");a.f=b}}function rg(a,b){var c=a.f;if(c){if(c.w)return Object.assign(b,c.w),!0}else{c=a.parsedCssText;for(var d;a=xf.exec(c);){d=(a[2]||a[3]).trim();if("inherit"!==d||"unset"!==d)b[a[1].trim()]=d;d=!0}return d}} -function sg(a,b,c){b&&(b=0<=b.indexOf(";")?tg(a,b,c):Nf(b,function(d,e,f,g){if(!e)return d+g;(e=sg(a,c[e],c))&&"initial"!==e?"apply-shim-inherit"===e&&(e="inherit"):e=sg(a,c[f]||f,c)||f;return d+(e||"")+g}));return b&&b.trim()||""} -function tg(a,b,c){b=b.split(";");for(var d=0,e,f;d *."+e||-1!==f.indexOf("html"),h=!g&&0===f.indexOf(e));if(g||h)c=e,h&&(b.i||(b.i=X.eb(b,X.za,X.Ma(a),e)),c=b.i||e),g&&"html"===e&&(c=b.i||b.Vc),d({Ha:c,zc:h,Uc:g})}} -function wg(a,b,c){var d={},e={};Ff(b,function(f){vg(a,f,c,function(g){lg.call(a._element||a,g.Ha)&&(g.zc?rg(f,d):rg(f,e))})},null,!0);return{Ic:e,yc:d}} -function xg(a,b,c,d){var e=Qf(b),f=X.ra(e.is,e.X),g=new RegExp("(?:^|[^.#[:])"+(b.extends?"\\"+f.slice(0,-1)+"\\]":f)+"($|[.:[\\s>+~])"),h=jg(b);e=h.s;h=h.cssBuild;var k=a.Eb(b,e,d);return Yf(b,e,function(m){var p="";m.f||qg(m);m.f.cssText&&(p=tg(a,m.f.cssText,c));m.cssText=p;if(!U&&!Hf(m)&&m.cssText){var w=p=m.cssText;null==m.ib&&(m.ib=Af.test(p));if(m.ib)if(null==m.la){m.la=[];for(var F in k)w=k[F],w=w(p),p!==w&&(p=w,m.la.push(F))}else{for(F=0;Fthis.Oc&&e.shift();this.cache[a]=e};Dg.prototype.fetch=function(a,b,c){if(a=this.cache[a])for(var d=a.length-1;0<=d;d--){var e=a[d];if(this.pc(e,b,c))return e}};function Eg(){}var Fg=new RegExp(X.Y+"\\s*([^\\s]*)");function Gg(a){return(a=(a.classList&&a.classList.value?a.classList.value:a.getAttribute("class")||"").match(Fg))?a[1]:""}function Hg(a){var b=Pf(a).getRootNode();return b===a||b===a.ownerDocument?"":(a=b.host)?Qf(a).is:""} -function Ig(a){for(var b=0;b "+h}))}return{value:a,rc:b,stop:f}};n.fb=function(a,b){a=a.split(/(\[.+?\])/);for(var c=[],d=0;d+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,hg=/[[.:#*]/,cg=/^(::slotted)/,gg=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,fg=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,eg=/(.*):dir\((?:(ltr|rtl))\)(.*)/,bg=/:(?:matches|any|-(?:webkit|moz)-any)/,X=new Vf;function jg(a,b,c,d,e){this.s=a||null;this.placeholder=b||null;this.Ea=c||[];this.P=null;this.cssBuild=e||"";this.X=d||"";this.M=this.o=this.A=null}function kg(a){return a?a.__styleInfo:null}function lg(a,b){return a.__styleInfo=b}jg.prototype.Ob=function(){return this.s};jg.prototype._getStyleRules=jg.prototype.Ob;function mg(a){var b=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return b&&b.call(this,a)}var ng=/:host\s*>\s*/,og=navigator.userAgent.match("Trident");function pg(){}function qg(a){var b={},c=[],d=0;Gf(a,function(f){rg(f);f.index=d++;f=f.f.cssText;for(var g;g=Af.exec(f);){var h=g[1];":"!==g[2]&&(b[h]=!0)}},function(f){c.push(f)});a.Rb=c;a=[];for(var e in b)a.push(e);return a} +function rg(a){if(!a.f){var b={},c={};sg(a,c)&&(b.w=c,a.rules=null);b.cssText=a.parsedCssText.replace(Df,"").replace(yf,"");a.f=b}}function sg(a,b){var c=a.f;if(c){if(c.w)return Object.assign(b,c.w),!0}else{c=a.parsedCssText;for(var d;a=yf.exec(c);){d=(a[2]||a[3]).trim();if("inherit"!==d||"unset"!==d)b[a[1].trim()]=d;d=!0}return d}} +function tg(a,b,c){b&&(b=0<=b.indexOf(";")?ug(a,b,c):Of(b,function(d,e,f,g){if(!e)return d+g;(e=tg(a,c[e],c))&&"initial"!==e?"apply-shim-inherit"===e&&(e="inherit"):e=tg(a,c[f]||f,c)||f;return d+(e||"")+g}));return b&&b.trim()||""} +function ug(a,b,c){b=b.split(";");for(var d=0,e,f;d *."+e||-1!==f.indexOf("html"),h=!g&&0===f.indexOf(e));if(g||h)c=e,h&&(b.i||(b.i=X.eb(b,X.za,X.Ma(a),e)),c=b.i||e),g&&"html"===e&&(c=b.i||b.Vc),d({Ha:c,zc:h,Uc:g})}} +function xg(a,b,c){var d={},e={};Gf(b,function(f){wg(a,f,c,function(g){mg.call(a._element||a,g.Ha)&&(g.zc?sg(f,d):sg(f,e))})},null,!0);return{Ic:e,yc:d}} +function yg(a,b,c,d){var e=Rf(b),f=X.ra(e.is,e.X),g=new RegExp("(?:^|[^.#[:])"+(b.extends?"\\"+f.slice(0,-1)+"\\]":f)+"($|[.:[\\s>+~])"),h=kg(b);e=h.s;h=h.cssBuild;var k=a.Eb(b,e,d);return Zf(b,e,function(m){var p="";m.f||rg(m);m.f.cssText&&(p=ug(a,m.f.cssText,c));m.cssText=p;if(!U&&!If(m)&&m.cssText){var w=p=m.cssText;null==m.ib&&(m.ib=Bf.test(p));if(m.ib)if(null==m.la){m.la=[];for(var F in k)w=k[F],w=w(p),p!==w&&(p=w,m.la.push(F))}else{for(F=0;Fthis.Oc&&e.shift();this.cache[a]=e};Eg.prototype.fetch=function(a,b,c){if(a=this.cache[a])for(var d=a.length-1;0<=d;d--){var e=a[d];if(this.pc(e,b,c))return e}};function Fg(){}var Gg=new RegExp(X.Y+"\\s*([^\\s]*)");function Hg(a){return(a=(a.classList&&a.classList.value?a.classList.value:a.getAttribute("class")||"").match(Gg))?a[1]:""}function Ig(a){var b=Qf(a).getRootNode();return b===a||b===a.ownerDocument?"":(a=b.host)?Rf(a).is:""} +function Jg(a){for(var b=0;b=m._useCount&&m.parentNode&&m.parentNode.removeChild(m));U?k.M?(k.M.textContent=h,e=k.M):h&&(e=If(h,g,a.shadowRoot,k.placeholder)):e?e.parentNode||(ng&&-1=m._useCount&&m.parentNode&&m.parentNode.removeChild(m));U?k.M?(k.M.textContent=h,e=k.M):h&&(e=Jf(h,g,a.shadowRoot,k.placeholder)):e?e.parentNode||(og&&-1arguments.length&&"string"===typeof a)return e().attr(a);var l=Array.prototype.slice.call(arguments); -d.selection.prototype.attr.apply(e(),l);return c};c.style=function(a,k){if(2>arguments.length&&"string"===typeof a)return e().style(a);var l=Array.prototype.slice.call(arguments);d.selection.prototype.style.apply(e(),l);return c};c.direction=function(a){if(!arguments.length)return v;v=null==a?a:n(a);return c};c.offset=function(a){if(!arguments.length)return w;w=null==a?a:n(a);return c};c.html=function(a){if(!arguments.length)return x;x=null==a?a:n(a);return c};c.rootElement=function(a){if(!arguments.length)return r; -r=null==a?a:n(a);return c};c.destroy=function(){h&&(e().remove(),h=null);return c};var A=b.map({n:function(){var a=m();return{top:a.n.y-h.offsetHeight,left:a.n.x-h.offsetWidth/2}},s:function(){var a=m();return{top:a.s.y,left:a.s.x-h.offsetWidth/2}},e:function(){var a=m();return{top:a.e.y-h.offsetHeight/2,left:a.e.x}},w:function(){var a=m();return{top:a.w.y-h.offsetHeight/2,left:a.w.x-h.offsetWidth}},nw:function(){var a=m();return{top:a.nw.y-h.offsetHeight,left:a.nw.x-h.offsetWidth}},ne:function(){var a= +$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(b,d,c){if(b==Array.prototype||b==Object.prototype)return b;b[d]=c.value;return b};$jscomp.getGlobal=function(b){b=["object"==typeof globalThis&&globalThis,b,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var d=0;darguments.length&&"string"===typeof a)return f().attr(a);var l=Array.prototype.slice.call(arguments); +d.selection.prototype.attr.apply(f(),l);return c};c.style=function(a,k){if(2>arguments.length&&"string"===typeof a)return f().style(a);var l=Array.prototype.slice.call(arguments);d.selection.prototype.style.apply(f(),l);return c};c.direction=function(a){if(!arguments.length)return v;v=null==a?a:n(a);return c};c.offset=function(a){if(!arguments.length)return w;w=null==a?a:n(a);return c};c.html=function(a){if(!arguments.length)return x;x=null==a?a:n(a);return c};c.rootElement=function(a){if(!arguments.length)return r; +r=null==a?a:n(a);return c};c.destroy=function(){h&&(f().remove(),h=null);return c};var A=b.map({n:function(){var a=m();return{top:a.n.y-h.offsetHeight,left:a.n.x-h.offsetWidth/2}},s:function(){var a=m();return{top:a.s.y,left:a.s.x-h.offsetWidth/2}},e:function(){var a=m();return{top:a.e.y-h.offsetHeight/2,left:a.e.x}},w:function(){var a=m();return{top:a.w.y-h.offsetHeight/2,left:a.w.x-h.offsetWidth}},nw:function(){var a=m();return{top:a.nw.y-h.offsetHeight,left:a.nw.x-h.offsetWidth}},ne:function(){var a= m();return{top:a.ne.y-h.offsetHeight,left:a.ne.x}},sw:function(){var a=m();return{top:a.sw.y,left:a.sw.x-h.offsetWidth}},se:function(){var a=m();return{top:a.se.y,left:a.se.x}}}),z=A.keys();return c}}); /* @@ -1014,27 +1010,26 @@ x("tfma.MetricValueFormat.INT","int");x("tfma.MetricValueFormat.INT64","int64"); x("tfma.PlotDataFieldNames.MACRO_PRECISION_RECALL_CURVE_DATA","macroValuesByThreshold");x("tfma.PlotDataFieldNames.MICRO_PRECISION_RECALL_CURVE_DATA","microValuesByThreshold");x("tfma.PlotDataFieldNames.MULTI_CLASS_CONFUSION_MATRIX_DATA","multiClassConfusionMatrixAtThresholds");x("tfma.PlotDataFieldNames.MULTI_LABEL_CONFUSION_MATRIX_DATA","multiLabelConfusionMatrixAtThresholds");x("tfma.PlotDataFieldNames.PRECISION_RECALL_CURVE_DATA","binaryClassificationByThreshold"); x("tfma.PlotDataFieldNames.WEIGHTED_PRECISION_RECALL_CURVE_DATA","weightedValuesByThreshold");x("tfma.PlotFit.PERFECT","perfect");x("tfma.PlotFit.LEAST_SQUARE","leastSquare");x("tfma.PlotHighlight.ERROR","error");x("tfma.PlotHighlight.WEIGHTS","weights");x("tfma.PlotScale.LINEAR","linear");x("tfma.PlotScale.LOG","log");x("tfma.PlotTypes.ACCURACY_CHARTS","accuracyPrecisionRecallF1Charts");x("tfma.PlotTypes.CALIBRATION_PLOT","calibrationPlot");x("tfma.PlotTypes.GAIN_CHART","gainChart"); x("tfma.PlotTypes.MACRO_PRECISION_RECALL_CURVE","macroPrecisionRecallCurve");x("tfma.PlotTypes.MICRO_PRECISION_RECALL_CURVE","microPrecisionRecallCurve");x("tfma.PlotTypes.MULTI_CLASS_CONFUSION_MATRIX","multiClassConfusionMatrix");x("tfma.PlotTypes.MULTI_LABEL_CONFUSION_MATRIX","multiLabelConfusionMatrix");x("tfma.PlotTypes.PREDICTION_DISTRIBUTION","predictionDistribution");x("tfma.PlotTypes.PRECISION_RECALL_CURVE","precisionRecallCurve");x("tfma.PlotTypes.RESIDUAL_PLOT","residualPlot"); -x("tfma.PlotTypes.ROC_CURVE","rocCurve");x("tfma.PlotTypes.WEIGHTED_PRECISION_RECALL_CURVE","weightedPrecisionRecallCurve");x("tfma.PlotDataDisplay.EXAMPLES_MAX_STEP",10);x("tfma.PLOT_KEYS_AND_VALUES","plotKeysAndValues");x("tfma.VALUE","value");var aa=/&/g,ba=//g,da=/"/g,ea=/'/g,fa=/\x00/g,ha=/[\x00&<>"']/;function y(a,b){var c=a["bounded"+b.charAt(0).toUpperCase()+b.slice(1)];a=(void 0!==c?c.value:a[b])||0;return"string"==typeof a?parseFloat(a):a}function z(a){a?(ha.test(a)&&(-1!=a.indexOf("&")&&(a=a.replace(aa,"&")),-1!=a.indexOf("<")&&(a=a.replace(ba,"<")),-1!=a.indexOf(">")&&(a=a.replace(ca,">")),-1!=a.indexOf('"')&&(a=a.replace(da,""")),-1!=a.indexOf("'")&&(a=a.replace(ea,"'")),-1!=a.indexOf("\x00")&&(a=a.replace(fa,"�"))),a='data="'+a+'"'):a="";return a} -function A(a){return{f:0===a?"0":a&&.01>Math.abs(a)?a.toExponential(4):a.toFixed(5),v:a}}function B(a){var b=parseInt(a,10);if(b.toString()==a)return b;a=a.split(a.lastIndexOf("_")>a.lastIndexOf(":")?"_":":");return 1",v:b}}function ia(a,b){return(a.cutoff||0)-(b.cutoff||0)} -function E(a){var b=a.values;b.sort(ia);return{f:"",v:y(b[0],"value")}}var F={},G=[];function H(a,b,c){F[a]||(F[a]=b,G.push({type:a,check:c}))}function I(a){if(null!=a){for(var b="unknown",c=void 0,d=0;"unknown"==b&&(c=G[d]);d++)c.check(a)&&(b=c.type);return(b=F[b])?b(a):{f:"Unsupported: "+JSON.stringify(a),v:0}}return{f:"n/a",v:0}}function J(a){return!!a&&void 0!==a.lowerBound&&void 0!==a.upperBound&&void 0!==a.value} -function K(a){return!!a&&void 0!==a.numerator&&void 0!==a.denominator&&void 0!==a.ratio}function L(a,b){return Array.isArray(a)&&a.length&&a.reduce(function(c,d){return c&&b(d)},!0)}H("float",A,function(a){return"number"===typeof a});H("scalarInValue",function(a){return A(a.value)},function(a){var b=a.value;return void 0!==b&&"number"===typeof b&&1===Object.keys(a).length});H("boundedValue",D,J);H("string",C,function(a){return"string"===typeof a}); -H("MultiClassConfusionMatrix",function(a){return{f:"",v:0}},function(a){return L(a&&a.entries||[],function(b){return b.actualClass&&b.predictedClass})});H("valueAtCutoffs",E,function(a){return a&&a.values&&L(a.values,function(b){return null!=b.cutoff})}); -H("confusionMatrixAtThresholds",function(a){return{f:"",v:y(a.matrices[0],"precision")}},function(a){return a&&a.matrices&&L(a.matrices,function(b){return null!=b.threshold&&(null!=b.falseNegatives||null!=b.falsePositives||null!=b.trueNegatives||null!=b.truePositives||null!=b.boundedFalseNegatives&&null!=b.boundedFalsePositives&&null!=b.boundedPrecision&&null!=b.boundedRecall&&null!=b.boundedTrueNegatives&& -null!=b.boundedTruePositives)})});H("ratioValue",function(a){a=a.ratio;return J(a)?D(a):A(parseFloat(a.value))},K);H("arrayValue",function(a){return{f:"",v:0}},function(a){return void 0!==a.shape&&void 0!==a.dataType&&(void 0!==a.bytesValues||void 0!==a.int32Values||void 0!==a.int64Values||void 0!==a.float32Values||void 0!==a.float64Values)});var M={};function N(a,b){M[a]||(M[a]=b)} -N("rowId",function(a){var b=B(a);return{f:a,v:isNaN(b)?a:b}});N("int",function(a){return{f:""+a,v:a}});N("float",A);N("int64",function(a){var b="",c="-"==a.charAt(0);a=c?a.substring(1):a;return{f:b,v:(c?"-":"")+"000000000000000000000".substring(0,20-a.length)+a}});N("html",C);N("string",C);N("valueAtCutoffs",E); -x("tfma.CellRenderer.renderValueWithFormatOverride",function(a,b,c){if(null!=a)if(b&&c)try{return M[c.type](b.applyOverride(a,c))}catch(d){return{f:"Unsupported: "+JSON.stringify({override:c,value:a}),v:0}}else return I(a);else return{f:"n/a",v:0}});x("tfma.CellRenderer.parseRowId",B);x("tfma.CellRenderer.registerRenderer",H);x("tfma.CellRenderer.registerOverrideRenderer",N);x("tfma.CellRenderer.isBoundedValue",J);x("tfma.CellRenderer.isRatioValue",K);x("tfma.CellRenderer.extractFloatValue",y); -x("tfma.CellRenderer.maybeExtractBoundedValue",function(a){var b=a;K(a)?b=a.ratio.value:J(a)&&(b=a.value);return b});function O(a,b){var c=this;this.c=a;this.a=b;this.g={};this.s=[];this.b={};this.a.forEach(function(d){var g=d.getFeatureString();c.b[g]=d;c.g[g]={}})}e=O.prototype;e.getFeatureDataSeriesKeys=function(){return this.b?Object.keys(this.b):[]};e.getMetricIndex=function(a){return this.c.indexOf(a)};e.getMetrics=function(){return this.c};e.getSeriesList=function(){return this.a};e.filter=function(a){return new O(this.c,this.a.filter(a))}; +x("tfma.PlotTypes.ROC_CURVE","rocCurve");x("tfma.PlotTypes.WEIGHTED_PRECISION_RECALL_CURVE","weightedPrecisionRecallCurve");x("tfma.PlotDataDisplay.EXAMPLES_MAX_STEP",10);x("tfma.PLOT_KEYS_AND_VALUES","plotKeysAndValues");x("tfma.VALUE","value");var y=/&/g,z=//g,ba=/"/g,ca=/'/g,da=/\x00/g,ea=/[\x00&<>"']/;function A(a,b){var c=a["bounded"+b.charAt(0).toUpperCase()+b.slice(1)];a=(void 0!==c?c.value:a[b])||0;return"string"==typeof a?parseFloat(a):a}function B(a){a?(ea.test(a)&&(-1!=a.indexOf("&")&&(a=a.replace(y,"&")),-1!=a.indexOf("<")&&(a=a.replace(z,"<")),-1!=a.indexOf(">")&&(a=a.replace(aa,">")),-1!=a.indexOf('"')&&(a=a.replace(ba,""")),-1!=a.indexOf("'")&&(a=a.replace(ca,"'")),-1!=a.indexOf("\x00")&&(a=a.replace(da,"�"))),a='data="'+a+'"'):a="";return a} +function C(a){return{f:0===a?"0":a&&.01>Math.abs(a)?a.toExponential(4):a.toFixed(5),v:a}}function D(a){var b=parseInt(a,10);if(b.toString()==a)return b;a=a.split(a.lastIndexOf("_")>a.lastIndexOf(":")?"_":":");return 1",v:A(b[0],"value")}}var G={},H=[]; +function I(a,b,c){G[a]||(G[a]=b,H.push({type:a,check:c}))}function J(a){if(null!=a){for(var b="unknown",c=void 0,d=0;"unknown"==b&&(c=H[d]);d++)c.check(a)&&(b=c.type);return(b=G[b])?b(a):{f:"Unsupported: "+JSON.stringify(a),v:0}}return{f:"n/a",v:0}}function K(a){return!!a&&void 0!==a.lowerBound&&void 0!==a.upperBound&&void 0!==a.value}function L(a,b){return Array.isArray(a)&&a.length&&a.reduce(function(c,d){return c&&b(d)},!0)}I("float",C,function(a){return"number"===typeof a}); +I("scalarInValue",function(a){return C(a.value)},function(a){var b=a.value;return void 0!==b&&"number"===typeof b&&1===Object.keys(a).length});I("boundedValue",function(a){var b=a.value;return{f:"",v:b}},K);I("string",E,function(a){return"string"===typeof a}); +I("MultiClassConfusionMatrix",function(a){return{f:"",v:0}},function(a){return L(a&&a.entries||[],function(b){return b.actualClass&&b.predictedClass})});I("valueAtCutoffs",F,function(a){return a&&a.values&&L(a.values,function(b){return null!=b.cutoff})}); +I("confusionMatrixAtThresholds",function(a){return{f:"",v:A(a.matrices[0],"precision")}},function(a){return a&&a.matrices&&L(a.matrices,function(b){return null!=b.threshold&&(null!=b.falseNegatives||null!=b.falsePositives||null!=b.trueNegatives||null!=b.truePositives||null!=b.boundedFalseNegatives&&null!=b.boundedFalsePositives&&null!=b.boundedPrecision&&null!=b.boundedRecall&&null!=b.boundedTrueNegatives&& +null!=b.boundedTruePositives)})});I("arrayValue",function(a){return{f:"",v:0}},function(a){return void 0!==a.shape&&void 0!==a.dataType&&(void 0!==a.bytesValues||void 0!==a.int32Values||void 0!==a.int64Values||void 0!==a.float32Values||void 0!==a.float64Values)});var M={};function N(a,b){M[a]||(M[a]=b)}N("rowId",function(a){var b=D(a);return{f:a,v:isNaN(b)?a:b}});N("int",function(a){return{f:""+a,v:a}});N("float",C); +N("int64",function(a){var b="",c="-"==a.charAt(0);a=c?a.substring(1):a;return{f:b,v:(c?"-":"")+"000000000000000000000".substring(0,20-a.length)+a}});N("html",E);N("string",E);N("valueAtCutoffs",F);x("tfma.CellRenderer.renderValueWithFormatOverride",function(a,b,c){if(null!=a)if(b&&c)try{return M[c.type](b.applyOverride(a,c))}catch(d){return{f:"Unsupported: "+JSON.stringify({override:c,value:a}),v:0}}else return J(a);else return{f:"n/a",v:0}}); +x("tfma.CellRenderer.parseRowId",D);x("tfma.CellRenderer.registerRenderer",I);x("tfma.CellRenderer.registerOverrideRenderer",N);x("tfma.CellRenderer.isBoundedValue",K);x("tfma.CellRenderer.extractFloatValue",A);x("tfma.CellRenderer.maybeExtractBoundedValue",function(a){var b=a;K(a)&&(b=a.value);return b});function P(a,b){var c=this;this.c=a;this.a=b;this.g={};this.s=[];this.b={};this.a.forEach(function(d){var g=d.getFeatureString();c.b[g]=d;c.g[g]={}})}e=P.prototype;e.getFeatureDataSeriesKeys=function(){return this.b?Object.keys(this.b):[]};e.getMetricIndex=function(a){return this.c.indexOf(a)};e.getMetrics=function(){return this.c};e.getSeriesList=function(){return this.a};e.filter=function(a){return new P(this.c,this.a.filter(a))}; e.getColumnRange=function(a){var b=this;return this.a.reduce(function(c,d){d=d.getFeatureString();d=b.getMetricValue(d,a);return isNaN(d)||null==d?c:{min:Math.min(c.min,d),max:Math.max(c.max,d)}},{min:Infinity,max:-Infinity})};e.getFeatureId=function(a){var b=this.b[a];return b&&b.getFeatureIdForMatching()||a};e.getAllMetricValues=function(a){return(a=this.b[a])?a.c:[]}; -e.getMetricValue=function(a,b){if(void 0===this.g[a][b]){var c=this.getMetricIndex(b);c=this.getAllMetricValues(a)[c];c=null!=c?c:NaN;var d=typeof c;"object"==d&&null!=c||"function"==d?c=I(c).v:"string"===typeof c&&(c=parseFloat(c));this.g[a][b]=c}return this.g[a][b]};e.getFeatures=function(){this.s.length||(this.s=this.a.map(function(a){return a.getFeatureString()}));return this.s}; +e.getMetricValue=function(a,b){if(void 0===this.g[a][b]){var c=this.getMetricIndex(b);c=this.getAllMetricValues(a)[c];c=null!=c?c:NaN;var d=typeof c;"object"==d&&null!=c||"function"==d?c=J(c).v:"string"===typeof c&&(c=parseFloat(c));this.g[a][b]=c}return this.g[a][b]};e.getFeatures=function(){this.s.length||(this.s=this.a.map(function(a){return a.getFeatureString()}));return this.s}; e.getDataTable=function(){var a=this;return this.a.map(function(b){b=b.getFeatureString();var c=a.getAllMetricValues(b);return[b].concat(c)})};e.l=function(){return!this.a.length||!this.c.length};e.equals=function(a){var b=a.getSeriesList();if(this.c!==a.getMetrics()||this.a.length!=b.length)return!1;for(a=0;ab||1E8=p)){if(0b||1E8=p)){if(0c&&(c=Math.max(c+e,0));c=f}});A("Array.prototype.find",function(a){return a?a:function(b,c){a:{var d=this;d instanceof String&&(d=String(d));for(var e=d.length,f=0;fb?-c:c}}); -A("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Ea(this,b,"endsWith");void 0===c&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var e=b.length;0=e}});/* - Copyright (c) Microsoft Corporation. All rights reserved. - Licensed under the Apache License, Version 2.0 (the "License"); you may not use - this file except in compliance with the License. You may obtain a copy of the - License at http://www.apache.org/licenses/LICENSE-2.0 - - THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED - WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, - MERCHANTABLITY OR NON-INFRINGEMENT. - - See the Apache Version 2.0 License for specific language governing permissions - and limitations under the License. -*/ -function D(a,b,c,d){var e=arguments.length,f=3>e?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d,g;if("object"===typeof Reflect&&Reflect&&"function"===typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;0<=h;h--)if(g=a[h])f=(3>e?g(f):3c&&(c=Math.max(c+e,0));c=f}});y("Array.prototype.find",function(a){return a?a:function(b,c){a:{var d=this;d instanceof String&&(d=String(d));for(var e=d.length,f=0;fb?-c:c}}); +y("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Aa(this,b,"endsWith");void 0===c&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var e=b.length;0=e}});function D(a,b,c,d){var e=arguments.length,f=3>e?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d,g;if("object"===typeof Reflect&&Reflect&&"function"===typeof Reflect.decorate)f=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;0<=h;h--)if(g=a[h])f=(3>e?g(f):3arguments.length?this[c]:e;this._valueToNodeAttribute(this, e,d||this.constructor.attributeNameForProperty(c));this.zd=!1};b.prototype._valueToNodeAttribute=function(c,d,e){d=this._serializeValue(d);if("class"===e||"name"===e||"slot"===e)c=M(c);void 0===d?c.removeAttribute(e):c.setAttribute(e,d)};b.prototype._serializeValue=function(c){switch(typeof c){case "boolean":return c?"":void 0;default:return null!=c?c.toString():void 0}};b.prototype._deserializeValue=function(c,d){switch(d){case Boolean:return null!==c;case Number:return Number(c);default:return c}}; -return b});var xb=0,yb=[];function _regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry(a){console.log("["+a.is+"]: registered")};var zb=L(function(a){function b(){return e.apply(this,arguments)||this}function c(f){f=Object.getPrototypeOf(f);return f.prototype instanceof b?f:null}function d(f){if(!f.hasOwnProperty("df")){var g=null;if(f.hasOwnProperty("properties")){var h=f.properties;if(h){g={};for(var k in h){var l=h[k];g[k]="function"===typeof l?{type:l}:l}}}f.df=g}return f.df}var e=wb(a);x(b,e);b.finalize=function(){if(!this.hasOwnProperty("jh")){var f=c(this);f&&f.finalize();this.jh=!0;this._finalizeClass()}};b._finalizeClass= -function(){var f=d(this);f&&this.createProperties(f)};b.typeForProperty=function(f){return(f=this.ra[f])&&f.type};b.prototype._initializeProperties=function(){xb++;this.constructor.finalize();e.prototype._initializeProperties.call(this)};b.prototype.connectedCallback=function(){e.prototype.connectedCallback&&e.prototype.connectedCallback.call(this);this._enableProperties()};b.prototype.disconnectedCallback=function(){e.prototype.disconnectedCallback&&e.prototype.disconnectedCallback.call(this)};y.Object.defineProperties(b, -{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var f=this;if(!this.hasOwnProperty("vb")){yb.push(this.prototype);var g=this.ra;this.vb=g?Object.keys(g).map(function(h){return f.prototype._addPropertyToAttributeMap(h)}):[]}return this.vb}},ra:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("kf")){var f=c(this);this.kf=Object.assign({},f&&f.ra,d(this))}return this.kf}}});return b});var Ab={},Bb=/-[a-z]/g,Cb=/([A-Z])/g;function Db(a){return Ab[a]||(Ab[a]=0>a.indexOf("-")?a:a.replace(Bb,function(b){return b[1].toUpperCase()}))}function Eb(a){return Ab[a]||(Ab[a]=a.replace(Cb,"-$1").toLowerCase())};for(var Fb={},Gb=HTMLElement.prototype;Gb;){for(var Hb=Object.getOwnPropertyNames(Gb),Ib=0;Iba.indexOf("-")?a:a.replace(xb,function(b){return b[1].toUpperCase()}))}function Ab(a){return wb[a]||(wb[a]=a.replace(yb,"-$1").toLowerCase())};for(var Bb={},Cb=HTMLElement.prototype;Cb;){for(var Db=Object.getOwnPropertyNames(Cb),Eb=0;Eb>1,r=k.get(h[q].ec)-k.get(g.ec);if(0>r)l=q+1;else if(0p&&(p=n+1);h.splice(p,0,g)}}} -function ec(a){var b=a.constructor.lh;if(!b){b=new Map;for(var c=a.__computeEffects,d=fc(a),e=d.zi,f=d.ready,g=d.total;d=f.shift();)b.set(d,b.size),(d=c[d])&&d.forEach(function(h){h=h.info.ec;--g;0===--e[h]&&f.push(h)});0!==g&&console.warn("Computed graph for "+a.localName+" incomplete; circular?");a.constructor.lh=b}return b} -function fc(a){var b=a.__computeInfo,c={};a=a.__computeEffects;var d=[],e=0,f;for(f in b){var g=b[f];e+=c[f]=g.args.filter(function(k){return!k.literal}).length+(g.dynamicFn?1:0)}for(var h in a)b[h]||d.push(h);return{zi:c,ready:d,total:e}}function gc(a,b,c,d,e){b=hc(a,b,c,d,e);if(b===Ub)return!1;e=e.ec;if(a.u&&a.u[e])return a._setPendingProperty(e,b,!0);a[e]=b;return!1} -function ic(a,b,c,d,e,f,g){c.bindings=c.bindings||[];d={kind:d,target:e,parts:f,literal:g,isCompound:1!==f.length};c.bindings.push(d);d.target&&"attribute"!=d.kind&&"text"!=d.kind&&!d.isCompound&&"{"===d.parts[0].mode&&(c=d.parts[0],f=c.negate,d.listenerEvent=c.event||Eb(e)+"-changed",d.listenerNegate=f);e=b.nodeInfoList.length;for(c=0;ck.source.length&&"property"==h.kind&&!h.isCompound&&g.ye&&g.u&&g.u[h.target]?(c=c[b],b=h.target+b.slice(k.source.length),g._setPendingPropertyOrPath(b,c,!1,!0)&&a._enqueueClient(g)):(b=e.fj._evaluateBinding(a,k,b,c,d,f),b!==Ub&&(h.isCompound&&(c=g.__dataCompoundStorage[h.target],c[k.compoundIndex]=b,b=c.join("")),"attribute"===h.kind||"textContent"!==h.target&&("value"!==h.target||"input"!==g.localName&&"textarea"!==g.localName)|| -(b=void 0==b?"":b),k=b,Xa&&(k=Xa(k,h.target,h.kind,g)),"attribute"==h.kind?a._valueToNodeAttribute(g,k,h.target):(h=h.target,g.ye&&g.u&&g.u[h]?g.__readOnly&&g.__readOnly[h]||g._setPendingProperty(h,k)&&a._enqueueClient(g):a._setUnmanagedPropertyToNode(g,h,k))))} -function lc(a,b,c){if(c.listenerEvent){var d=c.parts[0];a.addEventListener(c.listenerEvent,function(e){var f=c.target,g=d.source,h=e.detail,k=h&&h.path;k?(g+=k.slice(f.length),e=h&&h.value):e=e.currentTarget[f];b.__readOnly&&b.__readOnly[g]||!b._setPendingPropertyOrPath(g,d.negate?!e:e,!0,!!k)||h&&h.uj||b._invalidateProperties()})}} -function mc(a,b,c,d,e,f){f=b.static||f&&("object"!==typeof f||f[b.methodName]);e={methodName:b.methodName,args:b.args,ec:e,dynamicFn:f};for(var g=0,h=void 0;g=c&&(c="#");switch(c){case "'":case '"':b.value=a.slice(1,-1);b.literal=!0;break;case "#":b.value=Number(a),b.literal=!0}b.literal||(b.rootProperty=N(a),b.structured=0<=a.indexOf("."),b.structured&&(b.wildcard=".*"==a.slice(-2),b.wildcard&&(b.name=a.slice(0,-2))));return b}function sc(a,b,c){a=O(a,c);void 0===a&&(a=b[c]);return a} -function tc(a,b,c,d){d={indexSplices:d};db&&!a.tf&&(b.zk=d);a.notifyPath(c+".splices",d);a.notifyPath(c+".length",b.length);db&&!a.tf&&(d.indexSplices=[])}function uc(a,b,c,d,e,f){tc(a,b,c,[{index:d,addedCount:e,removed:f,object:b,type:"splice"}])} -var wc=L(function(a){function b(){var d=c.call(this)||this;d.ye=!0;return d}var c=Pb(Jb(a));x(b,c);b.prototype._initializeProperties=function(){c.prototype._initializeProperties.call(this);this._registerHost();this.__dataClientsReady=!1;this.__dataLinkedPaths=this.__dataToNotify=this.__dataPendingClients=null;this.__dataHasPaths=!1;this.__dataCompoundStorage=this.__dataCompoundStorage||null;this.__dataHost=this.__dataHost||null;this.__dataTemp={};this.__dataClientsInitialized=!1};b.prototype._registerHost= -function(){if(vc.length){var d=vc[vc.length-1];d._enqueueClient(this);this.__dataHost=d}};b.prototype._initializeProtoProperties=function(d){this.__data=Object.create(d);this.__dataPending=Object.create(d);this.__dataOld={}};b.prototype._initializeInstanceProperties=function(d){var e=this.__readOnly,f;for(f in d)e&&e[f]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[f]=this.__dataPending[f]=d[f])};b.prototype._addPropertyEffect=function(d,e,f){this._createPropertyAccessor(d, -"__readOnly"==e);var g=Xb(this,e,!0)[d];g||(g=this[e][d]=[]);g.push(f)};b.prototype._removePropertyEffect=function(d,e,f){d=Xb(this,e,!0)[d];f=d.indexOf(f);0<=f&&d.splice(f,1)};b.prototype._hasPropertyEffect=function(d,e){e=this[e];return!(!e||!e[d])};b.prototype._hasReadOnlyEffect=function(d){return this._hasPropertyEffect(d,"__readOnly")};b.prototype._hasNotifyEffect=function(d){return this._hasPropertyEffect(d,"__notifyEffects")};b.prototype._hasReflectEffect=function(d){return this._hasPropertyEffect(d, -"__reflectEffects")};b.prototype._hasComputedEffect=function(d){return this._hasPropertyEffect(d,"__computeEffects")};b.prototype._setPendingPropertyOrPath=function(d,e,f,g){if(g||N(Array.isArray(d)?d[0]:d)!==d){if(!g&&(g=O(this,d),d=Sb(this,d,e),!d||!c.prototype._shouldPropertyChange.call(this,d,e,g)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(d,e,f)){if(f=this.__dataLinkedPaths)for(var h in f)g=f[h],0===d.indexOf(h+".")?(g+=d.slice(h.length),this._setPendingPropertyOrPath(g,e,!0, +var Pb=0,Qb=[],Rb={zj:"__computeEffects",ck:"__reflectEffects",ve:"__notifyEffects",dh:"__propagateEffects",bk:"__observeEffects",READ_ONLY:"__readOnly"},Sb=/[A-Z]/;function Tb(a,b,c){var d=a[b];if(!d)d=a[b]={};else if(!a.hasOwnProperty(b)&&(d=a[b]=Object.create(a[b]),c))for(var e in d)for(a=d[e],b=d[e]=Array(a.length),c=0;c>1,r=k.get(h[q].ec)-k.get(g.ec);if(0>r)l=q+1;else if(0p&&(p=n+1);h.splice(p,0,g)}}} +function ac(a){var b=a.constructor.jh;if(!b){b=new Map;for(var c=a.__computeEffects,d=bc(a),e=d.xi,f=d.ready,g=d.total;d=f.shift();)b.set(d,b.size),(d=c[d])&&d.forEach(function(h){h=h.info.ec;--g;0===--e[h]&&f.push(h)});0!==g&&console.warn("Computed graph for "+a.localName+" incomplete; circular?");a.constructor.jh=b}return b} +function bc(a){var b=a.__computeInfo,c={};a=a.__computeEffects;var d=[],e=0,f;for(f in b){var g=b[f];e+=c[f]=g.args.filter(function(k){return!k.literal}).length+(g.dynamicFn?1:0)}for(var h in a)b[h]||d.push(h);return{xi:c,ready:d,total:e}}function cc(a,b,c,d,e){b=dc(a,b,c,d,e);if(b===Qb)return!1;e=e.ec;if(a.u&&a.u[e])return a._setPendingProperty(e,b,!0);a[e]=b;return!1} +function ec(a,b,c,d,e,f,g){c.bindings=c.bindings||[];d={kind:d,target:e,parts:f,literal:g,isCompound:1!==f.length};c.bindings.push(d);d.target&&"attribute"!=d.kind&&"text"!=d.kind&&!d.isCompound&&"{"===d.parts[0].mode&&(c=d.parts[0],f=c.negate,d.listenerEvent=c.event||Ab(e)+"-changed",d.listenerNegate=f);e=b.nodeInfoList.length;for(c=0;ck.source.length&&"property"==h.kind&&!h.isCompound&&g.ye&&g.u&&g.u[h.target]?(c=c[b],b=h.target+b.slice(k.source.length),g._setPendingPropertyOrPath(b,c,!1,!0)&&a._enqueueClient(g)):(b=e.dj._evaluateBinding(a,k,b,c,d,f),b!==Qb&&(h.isCompound&&(c=g.__dataCompoundStorage[h.target],c[k.compoundIndex]=b,b=c.join("")),"attribute"===h.kind||"textContent"!==h.target&&("value"!==h.target||"input"!==g.localName&&"textarea"!==g.localName)|| +(b=void 0==b?"":b),k=b,Ta&&(k=Ta(k,h.target,h.kind,g)),"attribute"==h.kind?a._valueToNodeAttribute(g,k,h.target):(h=h.target,g.ye&&g.u&&g.u[h]?g.__readOnly&&g.__readOnly[h]||g._setPendingProperty(h,k)&&a._enqueueClient(g):a._setUnmanagedPropertyToNode(g,h,k))))} +function hc(a,b,c){if(c.listenerEvent){var d=c.parts[0];a.addEventListener(c.listenerEvent,function(e){var f=c.target,g=d.source,h=e.detail,k=h&&h.path;k?(g+=k.slice(f.length),e=h&&h.value):e=e.currentTarget[f];b.__readOnly&&b.__readOnly[g]||!b._setPendingPropertyOrPath(g,d.negate?!e:e,!0,!!k)||h&&h.sj||b._invalidateProperties()})}} +function ic(a,b,c,d,e,f){f=b.static||f&&("object"!==typeof f||f[b.methodName]);e={methodName:b.methodName,args:b.args,ec:e,dynamicFn:f};for(var g=0,h=void 0;g=c&&(c="#");switch(c){case "'":case '"':b.value=a.slice(1,-1);b.literal=!0;break;case "#":b.value=Number(a),b.literal=!0}b.literal||(b.rootProperty=N(a),b.structured=0<=a.indexOf("."),b.structured&&(b.wildcard=".*"==a.slice(-2),b.wildcard&&(b.name=a.slice(0,-2))));return b}function oc(a,b,c){a=O(a,c);void 0===a&&(a=b[c]);return a} +function pc(a,b,c,d){d={indexSplices:d};$a&&!a._overrideLegacyUndefined&&(b.xk=d);a.notifyPath(c+".splices",d);a.notifyPath(c+".length",b.length);$a&&!a._overrideLegacyUndefined&&(d.indexSplices=[])}function qc(a,b,c,d,e,f){pc(a,b,c,[{index:d,addedCount:e,removed:f,object:b,type:"splice"}])} +var sc=L(function(a){function b(){var d=c.call(this)||this;d.ye=!0;return d}var c=Lb(Fb(a));A(b,c);b.prototype._initializeProperties=function(){c.prototype._initializeProperties.call(this);this._registerHost();this.__dataClientsReady=!1;this.__dataLinkedPaths=this.__dataToNotify=this.__dataPendingClients=null;this.__dataHasPaths=!1;this.__dataCompoundStorage=this.__dataCompoundStorage||null;this.__dataHost=this.__dataHost||null;this.__dataTemp={};this.__dataClientsInitialized=!1};b.prototype._registerHost= +function(){if(rc.length){var d=rc[rc.length-1];d._enqueueClient(this);this.__dataHost=d}};b.prototype._initializeProtoProperties=function(d){this.__data=Object.create(d);this.__dataPending=Object.create(d);this.__dataOld={}};b.prototype._initializeInstanceProperties=function(d){var e=this.__readOnly,f;for(f in d)e&&e[f]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[f]=this.__dataPending[f]=d[f])};b.prototype._addPropertyEffect=function(d,e,f){this._createPropertyAccessor(d, +"__readOnly"==e);var g=Tb(this,e,!0)[d];g||(g=this[e][d]=[]);g.push(f)};b.prototype._removePropertyEffect=function(d,e,f){d=Tb(this,e,!0)[d];f=d.indexOf(f);0<=f&&d.splice(f,1)};b.prototype._hasPropertyEffect=function(d,e){e=this[e];return!(!e||!e[d])};b.prototype._hasReadOnlyEffect=function(d){return this._hasPropertyEffect(d,"__readOnly")};b.prototype._hasNotifyEffect=function(d){return this._hasPropertyEffect(d,"__notifyEffects")};b.prototype._hasReflectEffect=function(d){return this._hasPropertyEffect(d, +"__reflectEffects")};b.prototype._hasComputedEffect=function(d){return this._hasPropertyEffect(d,"__computeEffects")};b.prototype._setPendingPropertyOrPath=function(d,e,f,g){if(g||N(Array.isArray(d)?d[0]:d)!==d){if(!g&&(g=O(this,d),d=Ob(this,d,e),!d||!c.prototype._shouldPropertyChange.call(this,d,e,g)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(d,e,f)){if(f=this.__dataLinkedPaths)for(var h in f)g=f[h],0===d.indexOf(h+".")?(g+=d.slice(h.length),this._setPendingPropertyOrPath(g,e,!0, !0)):0===d.indexOf(g+".")&&(g=h+d.slice(g.length),this._setPendingPropertyOrPath(g,e,!0,!0));return!0}}else{if(this.u&&this.u[d])return this._setPendingProperty(d,e,f);this[d]=e}return!1};b.prototype._setUnmanagedPropertyToNode=function(d,e,f){if(f!==d[e]||"object"==typeof f)"className"===e&&(d=M(d)),d[e]=f};b.prototype._setPendingProperty=function(d,e,f){var g=this.__dataHasPaths&&0<=d.indexOf(".");if(this._shouldPropertyChange(d,e,(g?this.__dataTemp:this.__data)[d])){this.__dataPending||(this.__dataPending= {},this.__dataOld={});d in this.__dataOld||(this.__dataOld[d]=this.__data[d]);g?this.__dataTemp[d]=e:this.__data[d]=e;this.__dataPending[d]=e;if(g||this.__notifyEffects&&this.__notifyEffects[d])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[d]=f;return!0}return!1};b.prototype._setProperty=function(d,e){this._setPendingProperty(d,e,!0)&&this._invalidateProperties()};b.prototype._invalidateProperties=function(){this.rc&&this._flushProperties()};b.prototype._enqueueClient=function(d){this.__dataPendingClients= this.__dataPendingClients||[];d!==this&&this.__dataPendingClients.push(d)};b.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.rc=!0)};b.prototype.__enableOrFlushClients=function(){var d=this.__dataPendingClients;if(d){this.__dataPendingClients=null;for(var e=0;ee?e=l.length-Math.floor(-e):e&&(e=Math.floor(e));var n=2===arguments.length?l.splice(e):l.splice.apply(l,[e,f].concat(w(h)));(h.length||n.length)&&uc(this,l,k.path,e,h.length,n);return n}; -b.prototype.shift=function(d){var e={path:""};d=O(this,d,e);var f=!!d.length,g=d.shift();f&&uc(this,d,e.path,0,0,[g]);return g};b.prototype.unshift=function(d,e){for(var f=[],g=1;ge?e=l.length-Math.floor(-e):e&&(e=Math.floor(e));var n=2===arguments.length?l.splice(e):l.splice.apply(l,[e,f].concat(w(h)));(h.length||n.length)&&qc(this,l,k.path,e,h.length,n);return n}; +b.prototype.shift=function(d){var e={path:""};d=O(this,d,e);var f=!!d.length,g=d.shift();f&&qc(this,d,e.path,0,0,[g]);return g};b.prototype.unshift=function(d,e){for(var f=[],g=1;gg&&f.push({literal:d.slice(g,h.index)});g=h[1][0];var k=!!h[2];h=h[3].trim();var l=!1,n="",p=-1;"{"==g&&0<(p=h.indexOf("::"))&&(n=h.substring(p+2),h=h.substring(0,p),l=!0);p=qc(h);var q=[];if(p){var r=p,v=r.args;r=r.methodName;for(var z=0;zg&&f.push({literal:d.slice(g,h.index)});g=h[1][0];var k=!!h[2];h=h[3].trim();var l=!1,n="",p=-1;"{"==g&&0<(p=h.indexOf("::"))&&(n=h.substring(p+2),h=h.substring(0,p),l=!0);p=mc(h);var q=[];if(p){var r=p,v=r.args;r=r.methodName;for(var z=0;z\n :host {\n display: -webkit-flex;\n display: -ms-flex;\n display: flex;\n margin: 0;\n padding: 0;\n width: 400px;\n height: 300px;\n }\n\n :host([hidden]) {\n display: none;\n }\n\n :host([type="gauge"]) {\n width: 300px;\n height: 300px;\n }\n\n #chartdiv {\n width: 100%;\n }\n\n /* Workaround for slow initial ready event for tables. */\n .google-visualization-table-loadtest {\n padding-left: 6px;\n }\n \n
\n
\n ']), -Jc=["ready","select"],Kc={area:"AreaChart",bar:"BarChart","md-bar":"google.charts.Bar",bubble:"BubbleChart",calendar:"Calendar",candlestick:"CandlestickChart",column:"ColumnChart",combo:"ComboChart",gauge:"Gauge",geo:"GeoChart",histogram:"Histogram",line:"LineChart","md-line":"google.charts.Line",org:"OrgChart",pie:"PieChart",sankey:"Sankey",scatter:"ScatterChart","md-scatter":"google.charts.Scatter","stepped-area":"SteppedAreaChart",table:"Table",timeline:"Timeline",treemap:"TreeMap",wordtree:"WordTree"}; -function S(){var a=Q.apply(this,arguments)||this;a.type="column";a.events=[];a.options=void 0;a.cols=void 0;a.rows=void 0;a.data=void 0;a.view=void 0;a.selection=void 0;a.drawn=!1;a._data=void 0;a.ga=null;a.ug=null;return a}x(S,Q);m=S.prototype; -m.ready=function(){var a=this;Q.prototype.ready.call(this);Ka(this.$.chartdiv).then(function(b){a.ga=b;a.typeChanged();google.visualization.events.addListener(b,"ready",function(){a._setDrawn(!0)});google.visualization.events.addListener(b,"select",function(){a.selection=b.getChart().getSelection()});a.propagateEvents(Jc,b)})}; -m.typeChanged=function(){var a=this;if(null!=this.ga){this.ga.setChartType(Kc[this.type]||this.type);var b=this.ga.getChart();google.visualization.events.addOneTimeListener(this.ga,"ready",function(){var c=a.ga.getChart();c!==b&&a.propagateEvents(a.events.filter(function(d){return!Jc.includes(d)}),c);a.$.styles.children.length||a.localizeGlobalStylesheets();a.selection&&a.selectionChanged()});this.redraw()}}; -m.propagateEvents=function(a,b){var c=this,d={};a=u(a);for(var e=a.next();!e.done;d={nc:d.nc},e=a.next())d.nc=e.value,google.visualization.events.addListener(b,d.nc,function(f){return function(g){c.dispatchEvent(new CustomEvent("google-chart-"+f.nc,{bubbles:!0,composed:!0,detail:{lk:c.ga.getChart(),data:g}}))}}(d))}; -m.selectionChanged=function(){if(null!=this.ga){var a=this.ga.getChart();if(null!=a&&a.setSelection){if("timeline"===this.type){var b=JSON.stringify(a.getSelection());if(JSON.stringify(this.selection)===b)return}a.setSelection(this.selection)}}};m.redraw=function(){var a=this;null!=this.ga&&null!=this._data&&(this.ga.setDataTable(this._data),this.ga.setOptions(this.options||{}),this._setDrawn(!1),this.ug=Gc(this.ug,tb(5),function(){a.ga.draw()}))};m.viewChanged=function(){this.view&&(this._data=this.view)}; -m.rowsOrColumnsChanged=function(){return Fa(this,function b(){var c=this,d,e,f,g,h;return Aa(b,function(k){if(1==k.b){d=c;e=d.rows;f=d.cols;if(!e||!f)return k.return();k.h=2;return sa(k,Ja({cols:f}),4)}2!=k.b?(g=k.s,g.addRows(e),c._data=g,k.b=0,k.h=0):(h=ta(k),c.$.chartdiv.textContent=h,k.b=0)})})}; -m.dataChanged=function(){var a=this,b=this.data,c;if(b){var d=!1;try{b=JSON.parse(b)}catch(e){d="string"===typeof b||b instanceof String}d?c=fetch(b).then(function(e){return e.json()}):c=Promise.resolve(b);c.then(Ja).then(function(e){a._data=e})}}; -m.localizeGlobalStylesheets=function(){var a=Array.from(document.head.querySelectorAll('link[rel="stylesheet"][type="text/css"][id^="load-css-"]'));a=u(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=document.createElement("link");c.setAttribute("rel","stylesheet");c.setAttribute("type","text/css");c.setAttribute("href",b.getAttribute("href"));this.$.styles.appendChild(c)}};y.Object.defineProperties(S,{template:{configurable:!0,enumerable:!0,get:function(){return P(Ic)}}}); -S.prototype.redraw=S.prototype.redraw;D([R({type:String,observer:S.prototype.typeChanged}),F("design:type",Object)],S.prototype,"type",void 0);D([R({type:Array}),F("design:type",Array)],S.prototype,"events",void 0);D([R({type:Object}),F("design:type",Object)],S.prototype,"options",void 0);D([R({type:Array,observer:S.prototype.rowsOrColumnsChanged}),F("design:type",Object)],S.prototype,"cols",void 0); +function R(a){return function(b,c){b.constructor.hasOwnProperty("properties")||Object.defineProperty(b.constructor,"properties",{value:{}});b.constructor.properties[c]=Object.assign(Object.assign({},b.constructor.properties[c]),a)}};var Ec=["ready","select"],Fc={area:"AreaChart",bar:"BarChart","md-bar":"google.charts.Bar",bubble:"BubbleChart",calendar:"Calendar",candlestick:"CandlestickChart",column:"ColumnChart",combo:"ComboChart",gauge:"Gauge",geo:"GeoChart",histogram:"Histogram",line:"LineChart","md-line":"google.charts.Line",org:"OrgChart",pie:"PieChart",sankey:"Sankey",scatter:"ScatterChart","md-scatter":"google.charts.Scatter","stepped-area":"SteppedAreaChart",table:"Table",timeline:"Timeline",treemap:"TreeMap",wordtree:"WordTree"}; +function S(){var a=Q.apply(this,arguments)||this;a.type="column";a.events=[];a.options=void 0;a.cols=void 0;a.rows=void 0;a.data=void 0;a.view=void 0;a.selection=void 0;a.drawn=!1;a._data=void 0;a.ga=null;a.sg=null;return a}A(S,Q);m=S.prototype; +m.ready=function(){var a=this;Q.prototype.ready.call(this);Ga(this.$.chartdiv).then(function(b){a.ga=b;a.typeChanged();google.visualization.events.addListener(b,"ready",function(){a._setDrawn(!0)});google.visualization.events.addListener(b,"select",function(){a.selection=b.getChart().getSelection()});a.propagateEvents(Ec,b)})}; +m.typeChanged=function(){var a=this;if(null!=this.ga){this.ga.setChartType(Fc[this.type]||this.type);var b=this.ga.getChart();google.visualization.events.addOneTimeListener(this.ga,"ready",function(){var c=a.ga.getChart();c!==b&&a.propagateEvents(a.events.filter(function(d){return!Ec.includes(d)}),c);a.$.styles.children.length||a.localizeGlobalStylesheets();a.selection&&a.selectionChanged()});this.redraw()}}; +m.propagateEvents=function(a,b){var c=this,d={};a=u(a);for(var e=a.next();!e.done;d={nc:d.nc},e=a.next())d.nc=e.value,google.visualization.events.addListener(b,d.nc,function(f){return function(g){c.dispatchEvent(new CustomEvent("google-chart-"+f.nc,{bubbles:!0,composed:!0,detail:{jk:c.ga.getChart(),data:g}}))}}(d))}; +m.selectionChanged=function(){if(null!=this.ga){var a=this.ga.getChart();if(null!=a&&a.setSelection){if("timeline"===this.type){var b=JSON.stringify(a.getSelection());if(JSON.stringify(this.selection)===b)return}a.setSelection(this.selection)}}};m.redraw=function(){var a=this;null!=this.ga&&null!=this._data&&(this.ga.setDataTable(this._data),this.ga.setOptions(this.options||{}),this._setDrawn(!1),this.sg=Cc(this.sg,pb(5),function(){a.ga.draw()}))};m.viewChanged=function(){this.view&&(this._data=this.view)}; +m.rowsOrColumnsChanged=function(){return Ba(this,function b(){var c=this,d,e,f,g,h;return va(b,function(k){if(1==k.b){d=c;e=d.rows;f=d.cols;if(!e||!f)return k.return();k.h=2;return oa(k,Fa({cols:f}),4)}2!=k.b?(g=k.s,g.addRows(e),c._data=g,k.b=0,k.h=0):(h=pa(k),c.$.chartdiv.textContent=h,k.b=0)})})}; +m.dataChanged=function(){var a=this,b=this.data,c;if(b){var d=!1;try{b=JSON.parse(b)}catch(e){d="string"===typeof b||b instanceof String}d?c=fetch(b).then(function(e){return e.json()}):c=Promise.resolve(b);c.then(Fa).then(function(e){a._data=e})}}; +m.localizeGlobalStylesheets=function(){var a=Array.from(document.head.querySelectorAll('link[rel="stylesheet"][type="text/css"][id^="load-css-"]'));a=u(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=document.createElement("link");c.setAttribute("rel","stylesheet");c.setAttribute("type","text/css");c.setAttribute("href",b.getAttribute("href"));this.$.styles.appendChild(c)}};var Gc=t(['\n \n
\n
\n ']); +x.Object.defineProperties(S,{template:{configurable:!0,enumerable:!0,get:function(){return P(Gc)}}});S.prototype.redraw=S.prototype.redraw;D([R({type:String,observer:S.prototype.typeChanged}),F("design:type",Object)],S.prototype,"type",void 0);D([R({type:Array}),F("design:type",Array)],S.prototype,"events",void 0);D([R({type:Object}),F("design:type",Object)],S.prototype,"options",void 0);D([R({type:Array,observer:S.prototype.rowsOrColumnsChanged}),F("design:type",Object)],S.prototype,"cols",void 0); D([R({type:Array,observer:S.prototype.rowsOrColumnsChanged}),F("design:type",Object)],S.prototype,"rows",void 0);D([R({type:String,observer:S.prototype.dataChanged}),F("design:type",Object)],S.prototype,"data",void 0);D([R({type:Object,observer:S.prototype.viewChanged}),F("design:type",Object)],S.prototype,"view",void 0);D([R({type:Array,notify:!0,observer:S.prototype.selectionChanged}),F("design:type",Object)],S.prototype,"selection",void 0); D([R({type:Boolean,readOnly:!0}),F("design:type",Object)],S.prototype,"drawn",void 0);D([R({type:Object}),F("design:type",Object)],S.prototype,"_data",void 0); D([function(a){for(var b=[],c=0;c=b.left&&c<=b.right&&a>=b.top&&a<=b.bottom)}return!1}var Bd=null,Fd=null,Gd=0,Hd=0,Id=-1,Jd=!1;function Kd(a,b,c){a.movefn=b;a.od=c;document.addEventListener("mousemove",b);document.addEventListener("mouseup",c)} -function Ld(a){document.removeEventListener("mousemove",a.movefn);document.removeEventListener("mouseup",a.od);a.movefn=null;a.od=null}document.addEventListener("touchend",function(a){Fd||Cd(!0);Bd=Ad(a)[0];Fd=Gc(Fd,tb(2500),function(){Cd();Fd=Bd=null})},td?{passive:!0}:!1);var Ad=window.ShadyDOM&&window.ShadyDOM.wk?window.ShadyDOM.composedPath:function(a){return a.composedPath&&a.composedPath()||[]},Md={},Nd=[]; -function _findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a){var b=Ad(a);return 0e:"pan-y"===c&&(d=e>b));d?a.preventDefault():Od("track")}} -function Pd(a,b,c){return Md[b]?(_add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a,b,c),!0):!1} -function _add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a,b,c){var d=Md[b],e=d.deps,f=d.name,g=a.__polymerGestures;g||(a.__polymerGestures=g={});for(var h=0,k,l;h=d&&25>=e||Ed(b))||a.prevent||_fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f,"tap",{x:b.clientX,y:b.clientY,sourceEvent:b,tg:c})};var Wd=L(function(a){function b(){return a.apply(this,arguments)||this}x(b,a);b.prototype._addEventListenerToNode=function(c,d,e){Pd(c,d,e)||a.prototype._addEventListenerToNode.call(this,c,d,e)};b.prototype._removeEventListenerFromNode=function(c,d,e){if(Md[d]){_remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(c,d,e);var f=!0}else f=!1;f||a.prototype._removeEventListenerFromNode.call(this,c,d,e)};return b});var Xd=!1,Yd=[],Zd=[];function $d(){Xd=!0;requestAnimationFrame(function(){for(Xd=!1;Yd.length;)ae(Yd.shift());setTimeout(function(){for(var a=0,b=Zd.length;a=b.left&&c<=b.right&&a>=b.top&&a<=b.bottom)}return!1}var xd=null,Bd=null,Cd=0,Dd=0,Ed=-1,Fd=!1;function Gd(a,b,c){a.movefn=b;a.od=c;document.addEventListener("mousemove",b);document.addEventListener("mouseup",c)} +function Hd(a){document.removeEventListener("mousemove",a.movefn);document.removeEventListener("mouseup",a.od);a.movefn=null;a.od=null}document.addEventListener("touchend",function(a){Bd||yd(!0);xd=wd(a)[0];Bd=Cc(Bd,pb(2500),function(){yd();Bd=xd=null})},pd?{passive:!0}:!1);var wd=window.ShadyDOM&&window.ShadyDOM.uk?window.ShadyDOM.composedPath:function(a){return a.composedPath&&a.composedPath()||[]},Id={},Jd=[]; +function _findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a){var b=wd(a);return 0e:"pan-y"===c&&(d=e>b));d?a.preventDefault():Kd("track")}} +function Ld(a,b,c){return Id[b]?(_add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a,b,c),!0):!1} +function _add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a,b,c){var d=Id[b],e=d.deps,f=d.name,g=a.__polymerGestures;g||(a.__polymerGestures=g={});for(var h=0,k,l;h=d&&25>=e||Ad(b))||a.prevent||_fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f,"tap",{x:b.clientX,y:b.clientY,sourceEvent:b,rg:c})};var Sd=L(function(a){function b(){return a.apply(this,arguments)||this}A(b,a);b.prototype._addEventListenerToNode=function(c,d,e){Ld(c,d,e)||a.prototype._addEventListenerToNode.call(this,c,d,e)};b.prototype._removeEventListenerFromNode=function(c,d,e){if(Id[d]){_remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(c,d,e);var f=!0}else f=!1;f||a.prototype._removeEventListenerFromNode.call(this,c,d,e)};return b});var Td=!1,Ud=[],Vd=[];function Wd(){Td=!0;requestAnimationFrame(function(){for(Td=!1;Ud.length;)Xd(Ud.shift());setTimeout(function(){for(var a=0,b=Vd.length;a *")};function Te(a,b,c){b=b.replace(xe,function(d,e,f,g){return a.li(d,e,f,g,c)});return a.qf(b,c)}m.xh=function(a){this.c||(this.c=document.createElement("meta"),this.c.setAttribute("apply-shim-measure",""),this.c.style.all="initial",document.head.appendChild(this.c));return window.getComputedStyle(this.c).getPropertyValue(a)}; -m.vh=function(a){for(var b=this,c=a;c.parent;)c=c.parent;var d={},e=!1;Le(c,function(f){(e=e||f===a)||f.selector===a.selector&&Object.assign(d,b.he(f.parsedCssText))});return d};m.qf=function(a,b){for(var c;c=ye.exec(a);){var d=c[0],e=c[1];c=c.index;var f=c+d.indexOf("@apply");f=a.slice(0,f);a=a.slice(c+d.length);d=b?this.vh(b):{};Object.assign(d,this.he(f));e=this.qh(e,d);a=f+e+a;ye.lastIndex=c+e.length}return a}; -m.qh=function(a,b){a=a.replace(Oe,"");var c=[],d=this.b.get(a);d||(this.b.set(a,{}),d=this.b.get(a));if(d){this.g&&(d.gg[this.g]=!0);var e,f=d.properties;for(e in f){var g=b&&b[e];d=[e,": var(",a,"_-_",e];g&&d.push(",",g.replace(Qe,""));d.push(")");Qe.test(f[e])&&d.push(" !important");c.push(d.join(""))}}return c.join("; ")};m.ni=function(a,b){var c=Pe.exec(b);c&&(b=c[1]?this.xh(a):"apply-shim-inherit");return b}; -m.he=function(a,b){b=void 0===b?!1:b;a=a.split(";");for(var c,d,e={},f=0;f *")};function Pe(a,b,c){b=b.replace(te,function(d,e,f,g){return a.ji(d,e,f,g,c)});return a.pf(b,c)}m.vh=function(a){this.c||(this.c=document.createElement("meta"),this.c.setAttribute("apply-shim-measure",""),this.c.style.all="initial",document.head.appendChild(this.c));return window.getComputedStyle(this.c).getPropertyValue(a)}; +m.th=function(a){for(var b=this,c=a;c.parent;)c=c.parent;var d={},e=!1;He(c,function(f){(e=e||f===a)||f.selector===a.selector&&Object.assign(d,b.he(f.parsedCssText))});return d};m.pf=function(a,b){for(var c;c=ue.exec(a);){var d=c[0],e=c[1];c=c.index;var f=c+d.indexOf("@apply");f=a.slice(0,f);a=a.slice(c+d.length);d=b?this.th(b):{};Object.assign(d,this.he(f));e=this.oh(e,d);a=f+e+a;ue.lastIndex=c+e.length}return a}; +m.oh=function(a,b){a=a.replace(Ke,"");var c=[],d=this.b.get(a);d||(this.b.set(a,{}),d=this.b.get(a));if(d){this.g&&(d.eg[this.g]=!0);var e,f=d.properties;for(e in f){var g=b&&b[e];d=[e,": var(",a,"_-_",e];g&&d.push(",",g.replace(Me,""));d.push(")");Me.test(f[e])&&d.push(" !important");c.push(d.join(""))}}return c.join("; ")};m.li=function(a,b){var c=Le.exec(b);c&&(b=c[1]?this.vh(a):"apply-shim-inherit");return b}; +m.he=function(a,b){b=void 0===b?!1:b;a=a.split(";");for(var c,d,e={},f=0;ff?ub.cancel(~f):window.clearTimeout(f)};b.prototype.create=function(f,g){f=document.createElement(f);if(g)if(f.setProperties)f.setProperties(g);else for(var h in g)f[h]=g[h];return f};b.prototype.elementMatches=function(f,g){return Xc.call(g||this,f)};b.prototype.toggleAttribute=function(f,g){var h=this;3===arguments.length&&(h=arguments[2]);1==arguments.length&& +[]};b.prototype.getContentChildren=function(f){return this.getContentChildNodes(f).filter(function(g){return g.nodeType===Node.ELEMENT_NODE})};b.prototype.isLightDescendant=function(f){return this!==f&&M(this).contains(f)&&M(this).getRootNode()===M(f).getRootNode()};b.prototype.isLocalDescendant=function(f){return this.root===M(f).getRootNode()};b.prototype.scopeSubtree=function(f,g){return ae(f,void 0===g?!1:g)};b.prototype.getComputedStyleValue=function(f){return af.getComputedStyleValue(this,f)}; +b.prototype.debounce=function(f,g,h){this._debouncers=this._debouncers||{};return this._debouncers[f]=Cc(this._debouncers[f],0f?qb.cancel(~f):window.clearTimeout(f)};b.prototype.create=function(f,g){f=document.createElement(f);if(g)if(f.setProperties)f.setProperties(g);else for(var h in g)f[h]=g[h];return f};b.prototype.elementMatches=function(f,g){return Tc.call(g||this,f)};b.prototype.toggleAttribute=function(f,g){var h=this;3===arguments.length&&(h=arguments[2]);1==arguments.length&& (g=!h.hasAttribute(f));if(g)return M(h).setAttribute(f,""),!0;M(h).removeAttribute(f);return!1};b.prototype.toggleClass=function(f,g,h){h=h||this;1==arguments.length&&(g=!h.classList.contains(f));g?h.classList.add(f):h.classList.remove(f)};b.prototype.transform=function(f,g){g=g||this;g.style.webkitTransform=f;g.style.transform=f};b.prototype.translate3d=function(f,g,h,k){this.transform("translate3d("+f+","+g+","+h+")",k||this)};b.prototype.arrayDelete=function(f,g){if(Array.isArray(f)){if(g=f.indexOf(g), 0<=g)return f.splice(g,1)}else if(g=O(this,f).indexOf(g),0<=g)return this.splice(f,g,1);return null};b.prototype._logger=function(f,g){Array.isArray(g)&&1===g.length&&Array.isArray(g[0])&&(g=g[0]);switch(f){case "log":case "warn":case "error":console[f].apply(console,w(g))}};b.prototype._log=function(f){for(var g=[],h=0;hb.indexOf(e)&&(!c||0>c.indexOf(e))&&b.unshift(e):console.warn("behavior is null, check for missing or 404 import")}return b}function mf(a,b){for(var c in b){var d=a[c],e=b[c];a[c]=!("value"in e)&&d&&"value"in d?Object.assign({value:d.value},e):e}}var nf=ff(HTMLElement); -function of(a,b,c){function d(k){if(h)for(var l=h,n=0;nb.indexOf(e)&&(!c||0>c.indexOf(e))&&b.unshift(e):console.warn("behavior is null, check for missing or 404 import")}return b}function hf(a,b){for(var c in b){var d=a[c],e=b[c];a[c]=!("value"in e)&&d&&"value"in d?Object.assign({value:d.value},e):e}}var jf=bf(HTMLElement); +function kf(a,b,c){function d(k){if(h)for(var l=h,n=0;nd.indexOf(".")&&d==e&&this.__deselectChangedIdx(e))};b.prototype.__applySplices=function(d){for(var e= +f.attached;if(k)for(var l=0;ld.indexOf(".")&&d==e&&this.__deselectChangedIdx(e))};b.prototype.__applySplices=function(d){for(var e= this,f=this.ja,g={},h=0;h=p.ma.index+p.ma.removed.length?f.set(r,q+p.ma.addedCount-p.ma.removed.length):f.set(r,-1))}}(g));for(var k=0;kp?(e.multi?e.splice("selected",n,1):e.selected=e.selectedItem=null,f.delete(q)):n++})};b.prototype.__updateLinks=function(){var d= this;this.__dataLinkedPaths={};if(this.multi){var e=0;this.ja.forEach(function(f){0<=f&&d.linkPaths("items."+f,"selected."+e++)})}else this.ja.forEach(function(f){d.linkPaths("selected","items."+f);d.linkPaths("selectedItem","items."+f)})};b.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.ja=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};b.prototype.isSelected=function(d){return this.ja.has(d)};b.prototype.isIndexSelected=function(d){return this.isSelected(this.items[d])}; b.prototype.__deselectChangedIdx=function(d){var e=this,f=this.__selectedIndexForItemIndex(d);if(0<=f){var g=0;this.ja.forEach(function(h,k){f==g++&&e.deselect(k)})}};b.prototype.__selectedIndexForItemIndex=function(d){if(d=this.__dataLinkedPaths["items."+d])return parseInt(d.slice(9),10)};b.prototype.deselect=function(d){var e=this.ja.get(d);if(0<=e){this.ja.delete(d);var f;this.multi&&(f=this.__selectedIndexForItemIndex(e));this.__updateLinks();this.multi?this.splice("selected",f,1):this.selected= -this.selectedItem=null}};b.prototype.deselectIndex=function(d){this.deselect(this.items[d])};b.prototype.select=function(d){this.selectIndex(this.items.indexOf(d))};b.prototype.selectIndex=function(d){var e=this.items[d];this.isSelected(e)?this.toggle&&this.deselectIndex(d):(this.multi||this.ja.clear(),this.ja.set(e,d),this.__updateLinks(),this.multi?this.push("selected",e):this.selected=this.selectedItem=e)};y.Object.defineProperties(b,{properties:{configurable:!0,enumerable:!0,get:function(){return{items:{type:Array}, -multi:{type:Boolean,value:!1},selected:{type:Object,notify:!0},selectedItem:{type:Object,notify:!0},toggle:{type:Boolean,value:!1}}}},observers:{configurable:!0,enumerable:!0,get:function(){return["__updateSelection(multi, items.*)"]}}});return b})(Q);function qf(){return pf.apply(this,arguments)||this}x(qf,pf);y.Object.defineProperties(qf,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},template:{configurable:!0,enumerable:!0,get:function(){return null}}}); -customElements.define(qf.is,qf);var rf=new V;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},prepareTemplateDom:function(){},prepareTemplateStyles:function(){},styleSubtree:function(a,b){rf.b();Ae(a,b)},styleElement:function(){rf.b()},styleDocument:function(a){rf.b();Ae(document.body,a)},getComputedStyleValue:function(a,b){return Be(a,b)},flushCustomStyles:function(){},nativeCss:He,nativeShadow:Ce,cssBuild:Fe,disableRuntime:Ge});window.ShadyCSS.CustomStyleInterface=rf;var sf=window.ShadyCSS.CustomStyleInterface;function tf(){var a=HTMLElement.call(this)||this;a._style=null;sf.eg(a);return a}x(tf,HTMLElement); -tf.prototype.jj=function(){if(this._style)return this._style;var a=this.querySelector("style");if(!a)return null;this._style=a;var b=a.getAttribute("include");if(b){a.removeAttribute("include");b=b.trim().split(/\s+/);for(var c="",d=0;d child");});c.observe(this,{childList:!0});return}this.root=this._stampTemplate(b);this.$=this.root.$;this.va=[];for(var d=this.root.firstChild;d;d=d.nextSibling)this.va[this.va.length]=d;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change", -{bubbles:!0,composed:!0}))};y.Object.defineProperties(Af,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});customElements.define("dom-bind",Af);var Bf=null;function Cf(){return Bf}Cf.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Cf,writable:!0}});var Df=wc(Cf),Ef=vf(Df);function Ff(a,b){Bf=a;Object.setPrototypeOf(a,b.prototype);new b;Bf=null}var Gf=wc(function(){}); -function Hf(a,b){for(var c=0;c can only be templatized once");a.ib=b;var e=(b?b.constructor:If)._parseTemplate(a),f=e.yj;f||(f=Lf(a,e,c),e.yj=f);var g=Kf(a);Of(a,e,c,g);x(d,f);d.prototype.ob=g;d.prototype.__dataHost=a;d.prototype.ib=b;d.prototype.kh=e.hostProps;return d} -function Qf(a,b,c){c=c.constructor.ra;a=a.propertyEffects;b=b.instanceProps;for(var d in a)if(!(c[d]||b&&b[d]))for(var e=a[d],f=0;f child");});c.observe(this,{childList:!0});return!1}this.yc=b}return!0}; -m.__ensureInstance=function(){var a=M(this).parentNode;if(this.__hasInstance()){var b=this.__getInstanceNodes();if(b&&b.length&&M(this).previousSibling!==b[b.length-1])for(var c=0,d=void 0;c can only be templatized once");a.ib=b;var e=(b?b.constructor:Ef)._parseTemplate(a),f=e.wj;f||(f=Hf(a,e,c),e.wj=f);var g=Gf(a);Kf(a,e,c,g);A(d,f);d.prototype.ob=g;d.prototype.__dataHost=a;d.prototype.ib=b;d.prototype.ih=e.hostProps;return d} +function Mf(a,b,c){c=c.constructor.ra;a=a.propertyEffects;b=b.instanceProps;for(var d in a)if(!(c[d]||b&&b[d]))for(var e=a[d],f=0;f child");});c.observe(this,{childList:!0});return!1}this.yc=b}return!0}; +m.__ensureInstance=function(){var a=M(this).parentNode;if(this.__hasInstance()){var b=this.__getInstanceNodes();if(b&&b.length&&M(this).previousSibling!==b[b.length-1])for(var c=0,d=void 0;c child");});c.observe(this,{childList:!0});return!1}var d={};d[this.as]=!0;d[this.indexAs]=!0;d[this.itemsIndexAs]=!0;this.wa=Mf(b,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:d,forwardHostProp:function(e, +m.__createAndInsertInstance=function(a){var b=this,c=this.__dataHost||this;if(Va&&!this.__dataHost)throw Error("strictTemplatePolicy: template owner not trusted");var d=c._bindTemplate(this.yc,!0);d.nd=function(e,f,g){var h=b.hb;if(b.if)h&&(b.hb=null,b._showHideChildren(),f=Object.assign(h.ed,f)),e(f,g);else if(b.j)if(h||(h=b.hb={nd:e,ed:{}}),g)for(var k in f)e=N(k),h.ed[e]=b.__dataHost[e];else Object.assign(h.ed,f)};this.j=c._stampTemplate(this.yc,d);M(a).insertBefore(this.j,this)}; +m.ee=function(){var a=this.hb;a&&(this.hb=null,a.nd(a.ed,!1))};m.__teardownInstance=function(){var a=this.__dataHost||this;this.j&&(a._removeBoundDom(this.j),this.hb=this.j=null)};m._showHideChildren=function(){var a=this.fb||!this.if;this.j&&!!this.j.vd!==a&&(this.j.vd=a,Df(a,this.j.templateInfo.childNodes));a||this.ee()};function Rf(){var a=Pf.call(this)||this;a.wa=null;a.j=null;a.gb=null;return a}A(Rf,Pf);m=Rf.prototype;m.__hasInstance=function(){return!!this.j};m.__getInstanceNodes=function(){return this.j.children}; +m.__createAndInsertInstance=function(a){this.wa||(this.wa=If(this.yc,this,{mutableData:!0,forwardHostProp:function(b,c){this.j&&(this.if?this.j.forwardHostProp(b,c):(this.gb=this.gb||Object.create(null),this.gb[N(b)]=!0))}}));this.j=new this.wa;M(a).insertBefore(this.j.root,this)};m.__teardownInstance=function(){if(this.j){var a=this.j.children;if(a&&a.length){var b=M(a[0]).parentNode;if(b){b=M(b);for(var c=0,d=void 0;c child");});c.observe(this,{childList:!0});return!1}var d={};d[this.as]=!0;d[this.indexAs]=!0;d[this.itemsIndexAs]=!0;this.wa=If(b,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:d,forwardHostProp:function(e, f){for(var g=this.w,h=0,k=void 0;h=e;a--)this.__detachAndRemoveInstance(a)};m.__detachInstance=function(a){a=this.w[a];for(var b=M(a.root),c=0;cd?c:c.substring(0,d);if(a==parseInt(a,10)){c=0>d?"":c.substring(d+1);this.__handleObservedPaths(c);if(a=this.w[this.ze[a]])a._setPendingPropertyOrPath(this.as+(c?"."+c:""),b,!1,!0),a._flushProperties();return!0}};m.itemForElement=function(a){return(a=this.modelForElement(a))&&a[this.as]};m.indexForElement=function(a){return(a=this.modelForElement(a))&&a[this.indexAs]}; -m.modelForElement=function(a){a:{var b=this.template;for(var c;a;)if(c=a.__dataHost?a:a.ph)if(c.__dataHost!=b)a=c.__dataHost;else{b=c;break a}else a=M(a).parentNode;b=null}return b}; -y.Object.defineProperties(Yf,{is:{configurable:!0,enumerable:!0,get:function(){return"dom-repeat"}},template:{configurable:!0,enumerable:!0,get:function(){return null}},properties:{configurable:!0,enumerable:!0,get:function(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:Yf.prototype.__sortChanged},filter:{type:Function,observer:Yf.prototype.__filterChanged},observe:{type:String, -observer:Yf.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!hb,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}},observers:{configurable:!0,enumerable:!0,get:function(){return["__itemsChanged(items.*)"]}}});Yf.prototype._setRenderedItemCount=function(){};customElements.define(Yf.is,Yf);var Zf=ff(HTMLElement).prototype;var $f=t(['\n \n
[[_text]]
\n']);function ag(){} -ag=X({_template:P($f),is:"iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},_text:{type:String,value:""}},created:function(){ag.instance||(ag.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},announce:function(a){this._text="";this.async(function(){this._text=a},100)},_onIronAnnounce:function(a){a.detail&&a.detail.text&&this.announce(a.detail.text)}});ag.instance=null;var bg={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"},cg={8:"backspace",9:"tab",13:"enter",27:"esc",33:"pageup",34:"pagedown",35:"end",36:"home",32:"space",37:"left",38:"up",39:"right",40:"down",46:"del",106:"*"},dg={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"},eg=/[a-z0-9*]/,fg=/U\+/,gg=/^arrow/,hg=/^space(bar)?/,ig=/^escape$/; -function jg(a,b){var c="";if(a)if(a=a.toLowerCase()," "===a||hg.test(a))c="space";else if(ig.test(a))c="esc";else if(1==a.length){if(!b||eg.test(a))c=a}else c=gg.test(a)?a.replace("arrow",""):"multiply"==a?"*":a;return c} -function kg(a,b){var c=a.qb;if(b.key)c=jg(b.key,c);else if(b.detail&&b.detail.key)c=jg(b.detail.key,c);else{c=b.keyIdentifier;var d="";c&&(c in bg?d=bg[c]:fg.test(c)?(c=parseInt(c.replace("U+","0x"),16),d=String.fromCharCode(c).toLowerCase()):d=c.toLowerCase());(c=d)||(c=b.keyCode,d="",Number(c)&&(65<=c&&90>=c?d=String.fromCharCode(32+c):112<=c&&123>=c?d="f"+(c-112+1):48<=c&&57>=c?d=String(c-48):96<=c&&105>=c?d=String(c-96):d=cg[c]),c=d);c=c||""}return c===a.key&&(!a.qb||!!b.shiftKey===!!a.shiftKey&& -!!b.ctrlKey===!!a.ctrlKey&&!!b.altKey===!!a.altKey&&!!b.metaKey===!!a.metaKey)}function lg(a){return 1===a.length?{yi:a,key:a,event:"keydown"}:a.split("+").reduce(function(b,c){var d=c.split(":");c=d[0];d=d[1];c in dg?(b[dg[c]]=!0,b.qb=!0):(b.key=c,b.event=d||"keydown");return b},{yi:a.split(":").shift()})}function mg(a){return a.trim().split(" ").map(function(b){return lg(b)})} -var ng={properties:{keyEventTarget:{type:Object,value:function(){return this}},stopKeyboardEventPropagation:{type:Boolean,value:!1},_boundKeyHandlers:{type:Array,value:function(){return[]}},_imperativeKeyBindings:{type:Object,value:function(){return{}}}},observers:["_resetKeyEventListeners(keyEventTarget, _boundKeyHandlers)"],ea:{},registered:function(){this._prepKeyBindings()},attached:function(){this._listenKeyEventListeners()},detached:function(){this._unlistenKeyEventListeners()},addOwnKeyBinding:function(a, -b){this._imperativeKeyBindings[a]=b;this._prepKeyBindings();this._resetKeyEventListeners()},removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},keyboardEventMatchesKeys:function(a,b){b=mg(b);for(var c=0;c\n :host {\n display: inline-block;\n position: fixed;\n clip: rect(0px,0px,0px,0px);\n }\n \n
[[_text]]
\n']); +Wf=X({_template:P(Xf),is:"iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},_text:{type:String,value:""}},created:function(){Wf.instance||(Wf.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},announce:function(a){this._text="";this.async(function(){this._text=a},100)},_onIronAnnounce:function(a){a.detail&&a.detail.text&&this.announce(a.detail.text)}});Wf.instance=null;var Yf={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"},Zf={8:"backspace",9:"tab",13:"enter",27:"esc",33:"pageup",34:"pagedown",35:"end",36:"home",32:"space",37:"left",38:"up",39:"right",40:"down",46:"del",106:"*"},$f={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"},ag=/[a-z0-9*]/,bg=/U\+/,cg=/^arrow/,dg=/^space(bar)?/,eg=/^escape$/; +function fg(a,b){var c="";if(a)if(a=a.toLowerCase()," "===a||dg.test(a))c="space";else if(eg.test(a))c="esc";else if(1==a.length){if(!b||ag.test(a))c=a}else c=cg.test(a)?a.replace("arrow",""):"multiply"==a?"*":a;return c} +function gg(a,b){var c=a.qb;if(b.key)c=fg(b.key,c);else if(b.detail&&b.detail.key)c=fg(b.detail.key,c);else{c=b.keyIdentifier;var d="";c&&(c in Yf?d=Yf[c]:bg.test(c)?(c=parseInt(c.replace("U+","0x"),16),d=String.fromCharCode(c).toLowerCase()):d=c.toLowerCase());(c=d)||(c=b.keyCode,d="",Number(c)&&(65<=c&&90>=c?d=String.fromCharCode(32+c):112<=c&&123>=c?d="f"+(c-112+1):48<=c&&57>=c?d=String(c-48):96<=c&&105>=c?d=String(c-96):d=Zf[c]),c=d);c=c||""}return c===a.key&&(!a.qb||!!b.shiftKey===!!a.shiftKey&& +!!b.ctrlKey===!!a.ctrlKey&&!!b.altKey===!!a.altKey&&!!b.metaKey===!!a.metaKey)}function hg(a){return 1===a.length?{wi:a,key:a,event:"keydown"}:a.split("+").reduce(function(b,c){var d=c.split(":");c=d[0];d=d[1];c in $f?(b[$f[c]]=!0,b.qb=!0):(b.key=c,b.event=d||"keydown");return b},{wi:a.split(":").shift()})}function ig(a){return a.trim().split(" ").map(function(b){return hg(b)})} +var jg={properties:{keyEventTarget:{type:Object,value:function(){return this}},stopKeyboardEventPropagation:{type:Boolean,value:!1},_boundKeyHandlers:{type:Array,value:function(){return[]}},_imperativeKeyBindings:{type:Object,value:function(){return{}}}},observers:["_resetKeyEventListeners(keyEventTarget, _boundKeyHandlers)"],ea:{},registered:function(){this._prepKeyBindings()},attached:function(){this._listenKeyEventListeners()},detached:function(){this._unlistenKeyEventListeners()},addOwnKeyBinding:function(a, +b){this._imperativeKeyBindings[a]=b;this._prepKeyBindings();this._resetKeyEventListeners()},removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},keyboardEventMatchesKeys:function(a,b){b=ig(b);for(var c=0;c\n :host {\n display: block;\n transition-duration: var(--iron-collapse-transition-duration, 300ms);\n /* Safari 10 needs this property prefixed to correctly apply the custom property */\n -webkit-transition-duration: var(--iron-collapse-transition-duration, 300ms);\n overflow: visible;\n }\n\n :host(.iron-collapse-closed) {\n display: none;\n }\n\n :host(:not(.iron-collapse-opened)) {\n overflow: hidden;\n }\n \n\n \n"]); -X({_template:P(zg),is:"iron-collapse",behaviors:[yg],properties:{horizontal:{type:Boolean,value:!1,observer:"_horizontalChanged"},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},transitioning:{type:Boolean,notify:!0,readOnly:!0},noAnimation:{type:Boolean},_desiredSize:{type:String,value:""}},get dj(){return this.horizontal?"width":"height"},get zb(){return this.horizontal?"maxWidth":"maxHeight"},get uh(){return this.horizontal?"max-width":"max-height"},hostAttributes:{role:"group", +c);a()})}else this._findParent(),this._parentResizable?this._parentResizable.nb.forEach(function(b){b!==this&&b._findParent()},this):(tg.forEach(function(b){b!==this&&b._findParent()},this),window.addEventListener("resize",this.ge),this.notifyResize())},_findParent:function(){this.assignParentResizable(null);this.fire("iron-request-resize-notifications",null,{node:this,bubbles:!0,cancelable:!0});this._parentResizable?tg.delete(this):tg.add(this)}};var vg=t(["\n \n\n \n"]); +X({_template:P(vg),is:"iron-collapse",behaviors:[ug],properties:{horizontal:{type:Boolean,value:!1,observer:"_horizontalChanged"},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},transitioning:{type:Boolean,notify:!0,readOnly:!0},noAnimation:{type:Boolean},_desiredSize:{type:String,value:""}},get bj(){return this.horizontal?"width":"height"},get zb(){return this.horizontal?"maxWidth":"maxHeight"},get sh(){return this.horizontal?"max-width":"max-height"},hostAttributes:{role:"group", "aria-hidden":"true"},listeners:{transitionend:"_onTransitionEnd"},toggle:function(){this.opened=!this.opened},show:function(){this.opened=!0},hide:function(){this.opened=!1},updateSize:function(a,b){a="auto"===a?"":a;b=b&&!this.noAnimation&&this.isAttached&&this._desiredSize!==a;this._desiredSize=a;this._updateTransition(!1);b&&(b=this._calcSize(),""===a&&(this.style[this.zb]="",a=this._calcSize()),this.style[this.zb]=b,this.scrollTop=this.scrollTop,this._updateTransition(!0),b=a!==b);this.style[this.zb]= -a;b||this._transitionEnd()},enableTransition:function(a){Zf._warn("`enableTransition()` is deprecated, use `noAnimation` instead.");this.noAnimation=!a},_updateTransition:function(a){this.style.transitionDuration=a&&!this.noAnimation?"":"0s"},_horizontalChanged:function(){this.style.transitionProperty=this.uh;this.style["maxWidth"===this.zb?"maxHeight":"maxWidth"]="";this.updateSize(this.opened?"auto":"0px",!1)},_openedChanged:function(){this.setAttribute("aria-hidden",!this.opened);this._setTransitioning(!0); -this.toggleClass("iron-collapse-closed",!1);this.toggleClass("iron-collapse-opened",!1);this.updateSize(this.opened?"auto":"0px",!0);this.opened&&this.focus()},_transitionEnd:function(){this.style[this.zb]=this._desiredSize;this.toggleClass("iron-collapse-closed",!this.opened);this.toggleClass("iron-collapse-opened",this.opened);this._updateTransition(!1);this.notifyResize();this._setTransitioning(!1)},_onTransitionEnd:function(a){T(a).rb===this&&this._transitionEnd()},_calcSize:function(){return this.getBoundingClientRect()[this.dj]+ -"px"}});var Ag={properties:{sizingTarget:{type:Object,value:function(){return this}},fitInto:{type:Object,value:window},noOverlap:{type:Boolean},positionTarget:{type:Element},horizontalAlign:{type:String},verticalAlign:{type:String},dynamicAlign:{type:Boolean},horizontalOffset:{type:Number,value:0,notify:!0},verticalOffset:{type:Number,value:0,notify:!0},autoFitOnAttach:{type:Boolean,value:!1},_fitInfo:{type:Object}},get ik(){return this.fitInto===window?this.fitInto.innerWidth:this.fitInto.getBoundingClientRect().width}, -get fk(){return this.fitInto===window?this.fitInto.innerHeight:this.fitInto.getBoundingClientRect().height},get gk(){var a;this.fitInto===window?a=0:a=this.fitInto.getBoundingClientRect().left;return a},get hk(){var a;this.fitInto===window?a=0:a=this.fitInto.getBoundingClientRect().top;return a},get th(){var a=T(this).parentNode;a&&a.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(a=a.host);return a},get bi(){if(this.ka){if("right"===this.horizontalAlign)return"left";if("left"===this.horizontalAlign)return"right"}return this.horizontalAlign}, -get ce(){return(this.horizontalAlign||this.verticalAlign)&&this.positionTarget},get ka(){"undefined"===typeof this.sf&&(this.sf="rtl"==window.getComputedStyle(this).direction);return this.sf},attached:function(){this.positionTarget=this.positionTarget||this.th;this.autoFitOnAttach&&("none"===window.getComputedStyle(this).display?setTimeout(function(){this.fit()}.bind(this)):(window.ShadyDOM&&ShadyDOM.flush(),this.fit()))},detached:function(){this.xe&&(clearTimeout(this.xe),this.xe=null)},fit:function(){this.position(); -this.constrain();this.center()},_discoverInfo:function(){if(!this._fitInfo){var a=window.getComputedStyle(this),b=window.getComputedStyle(this.sizingTarget);this._fitInfo={og:{top:this.style.top||"",left:this.style.left||"",position:this.style.position||""},vg:{maxWidth:this.sizingTarget.style.maxWidth||"",maxHeight:this.sizingTarget.style.maxHeight||"",boxSizing:this.sizingTarget.style.boxSizing||""},hc:{mc:"auto"!==a.top?"top":"auto"!==a.bottom?"bottom":null,cc:"auto"!==a.left?"left":"auto"!==a.right? -"right":null},sb:{height:"none"!==b.maxHeight,width:"none"!==b.maxWidth,minWidth:parseInt(b.minWidth,10)||0,minHeight:parseInt(b.minHeight,10)||0},margin:{top:parseInt(a.marginTop,10)||0,right:parseInt(a.marginRight,10)||0,bottom:parseInt(a.marginBottom,10)||0,left:parseInt(a.marginLeft,10)||0}}}},resetFit:function(){var a=this._fitInfo||{},b;for(b in a.vg)this.sizingTarget.style[b]=a.vg[b];for(b in a.og)this.style[b]=a.og[b];this._fitInfo=null},refit:function(){var a=this.sizingTarget.scrollLeft, -b=this.sizingTarget.scrollTop;this.resetFit();this.fit();this.sizingTarget.scrollLeft=a;this.sizingTarget.scrollTop=b},position:function(){if(this.ce){this._discoverInfo();this.style.position="fixed";this.sizingTarget.style.boxSizing="border-box";this.style.left="0px";this.style.top="0px";var a=this.getBoundingClientRect(),b=this.__getNormalizedRect(this.positionTarget),c=this.__getNormalizedRect(this.fitInto),d=this._fitInfo.margin,e=this.__getPosition(this.bi,this.verticalAlign,{width:a.width+d.left+ +a;b||this._transitionEnd()},enableTransition:function(a){Vf._warn("`enableTransition()` is deprecated, use `noAnimation` instead.");this.noAnimation=!a},_updateTransition:function(a){this.style.transitionDuration=a&&!this.noAnimation?"":"0s"},_horizontalChanged:function(){this.style.transitionProperty=this.sh;this.style["maxWidth"===this.zb?"maxHeight":"maxWidth"]="";this.updateSize(this.opened?"auto":"0px",!1)},_openedChanged:function(){this.setAttribute("aria-hidden",!this.opened);this._setTransitioning(!0); +this.toggleClass("iron-collapse-closed",!1);this.toggleClass("iron-collapse-opened",!1);this.updateSize(this.opened?"auto":"0px",!0);this.opened&&this.focus()},_transitionEnd:function(){this.style[this.zb]=this._desiredSize;this.toggleClass("iron-collapse-closed",!this.opened);this.toggleClass("iron-collapse-opened",this.opened);this._updateTransition(!1);this.notifyResize();this._setTransitioning(!1)},_onTransitionEnd:function(a){T(a).rb===this&&this._transitionEnd()},_calcSize:function(){return this.getBoundingClientRect()[this.bj]+ +"px"}});var wg={properties:{sizingTarget:{type:Object,value:function(){return this}},fitInto:{type:Object,value:window},noOverlap:{type:Boolean},positionTarget:{type:Element},horizontalAlign:{type:String},verticalAlign:{type:String},dynamicAlign:{type:Boolean},horizontalOffset:{type:Number,value:0,notify:!0},verticalOffset:{type:Number,value:0,notify:!0},autoFitOnAttach:{type:Boolean,value:!1},_fitInfo:{type:Object}},get gk(){var a;this.fitInto===window?a=this.fitInto.innerWidth:a=this.fitInto.getBoundingClientRect().width; +return a},get dk(){var a;this.fitInto===window?a=this.fitInto.innerHeight:a=this.fitInto.getBoundingClientRect().height;return a},get ek(){var a;this.fitInto===window?a=0:a=this.fitInto.getBoundingClientRect().left;return a},get fk(){var a;this.fitInto===window?a=0:a=this.fitInto.getBoundingClientRect().top;return a},get rh(){var a=T(this).parentNode;a&&a.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(a=a.host);return a},get zh(){if(this.ka){if("right"===this.horizontalAlign)return"left";if("left"===this.horizontalAlign)return"right"}return this.horizontalAlign}, +get ce(){return(this.horizontalAlign||this.verticalAlign)&&this.positionTarget},get ka(){"undefined"===typeof this.rf&&(this.rf="rtl"==window.getComputedStyle(this).direction);return this.rf},attached:function(){this.positionTarget=this.positionTarget||this.rh;this.autoFitOnAttach&&("none"===window.getComputedStyle(this).display?setTimeout(function(){this.fit()}.bind(this)):(window.ShadyDOM&&ShadyDOM.flush(),this.fit()))},detached:function(){this.xe&&(clearTimeout(this.xe),this.xe=null)},fit:function(){this.position(); +this.constrain();this.center()},_discoverInfo:function(){if(!this._fitInfo){var a=window.getComputedStyle(this),b=window.getComputedStyle(this.sizingTarget);this._fitInfo={mg:{top:this.style.top||"",left:this.style.left||"",position:this.style.position||""},tg:{maxWidth:this.sizingTarget.style.maxWidth||"",maxHeight:this.sizingTarget.style.maxHeight||"",boxSizing:this.sizingTarget.style.boxSizing||""},hc:{mc:"auto"!==a.top?"top":"auto"!==a.bottom?"bottom":null,cc:"auto"!==a.left?"left":"auto"!==a.right? +"right":null},sb:{height:"none"!==b.maxHeight,width:"none"!==b.maxWidth,minWidth:parseInt(b.minWidth,10)||0,minHeight:parseInt(b.minHeight,10)||0},margin:{top:parseInt(a.marginTop,10)||0,right:parseInt(a.marginRight,10)||0,bottom:parseInt(a.marginBottom,10)||0,left:parseInt(a.marginLeft,10)||0}}}},resetFit:function(){var a=this._fitInfo||{},b;for(b in a.tg)this.sizingTarget.style[b]=a.tg[b];for(b in a.mg)this.style[b]=a.mg[b];this._fitInfo=null},refit:function(){var a=this.sizingTarget.scrollLeft, +b=this.sizingTarget.scrollTop;this.resetFit();this.fit();this.sizingTarget.scrollLeft=a;this.sizingTarget.scrollTop=b},position:function(){if(this.ce){this._discoverInfo();this.style.position="fixed";this.sizingTarget.style.boxSizing="border-box";this.style.left="0px";this.style.top="0px";var a=this.getBoundingClientRect(),b=this.__getNormalizedRect(this.positionTarget),c=this.__getNormalizedRect(this.fitInto),d=this._fitInfo.margin,e=this.__getPosition(this.zh,this.verticalAlign,{width:a.width+d.left+ d.right,height:a.height+d.top+d.bottom},a,b,c);b=e.left+d.left;e=e.top+d.top;var f=Math.min(c.right-d.right,b+a.width),g=Math.min(c.bottom-d.bottom,e+a.height);b=Math.max(c.left+d.left,Math.min(b,f-this._fitInfo.sb.minWidth));e=Math.max(c.top+d.top,Math.min(e,g-this._fitInfo.sb.minHeight));this.sizingTarget.style.maxWidth=Math.max(f-b,this._fitInfo.sb.minWidth)+"px";this.sizingTarget.style.maxHeight=Math.max(g-e,this._fitInfo.sb.minHeight)+"px";this.style.left=b-a.left+"px";this.style.top=e-a.top+ "px"}},constrain:function(){if(!this.ce){this._discoverInfo();var a=this._fitInfo;a.hc.mc||(this.style.position="fixed",this.style.top="0px");a.hc.cc||(this.style.position="fixed",this.style.left="0px");this.sizingTarget.style.boxSizing="border-box";var b=this.getBoundingClientRect();a.sb.height||this.__sizeDimension(b,a.hc.mc,"top","bottom","Height");a.sb.width||this.__sizeDimension(b,a.hc.cc,"left","right","Width")}},_sizeDimension:function(a,b,c,d,e){this.__sizeDimension(a,b,c,d,e)},__sizeDimension:function(a, b,c,d,e){var f=this._fitInfo,g=this.__getNormalizedRect(this.fitInto);g="Width"===e?g.width:g.height;b=b===d;var h="offset"+e;this.sizingTarget.style["max"+e]=g-f.margin[b?c:d]-(b?g-a[d]:a[c])-(this[h]-this.sizingTarget[h])+"px"},center:function(){if(!this.ce){this._discoverInfo();var a=this._fitInfo.hc;if(!a.mc||!a.cc){this.style.position="fixed";a.mc||(this.style.top="0px");a.cc||(this.style.left="0px");var b=this.getBoundingClientRect(),c=this.__getNormalizedRect(this.fitInto);a.mc||(this.style.top= @@ -1474,15 +1455,15 @@ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */ -var Bg=Element.prototype,Cg=Bg.matches||Bg.matchesSelector||Bg.mozMatchesSelector||Bg.msMatchesSelector||Bg.oMatchesSelector||Bg.webkitMatchesSelector;function Dg(){}m=Dg.prototype;m.ei=function(a){return(Cg.call(a,"input, select, textarea, button, object")?Cg.call(a,":not([disabled])"):Cg.call(a,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(a=a.getAttribute("tabindex")||0,Number(a)):-1}; -m.pf=function(a,b){if(a.nodeType!==Node.ELEMENT_NODE||!this.ai(a))return!1;var c=this.ei(a),d=0b)return a;var c=Math.ceil(b/2);b=this.ke(a.slice(0,c));a=this.ke(a.slice(c));return this.ci(b,a)};m.ci=function(a,b){for(var c=[];0a:a>b};var Eg=new Dg;var Fg=t(["\n \n\n \n"]); -X({_template:P(Fg),is:"iron-overlay-backdrop",properties:{opened:{reflectToAttribute:!0,type:Boolean,value:!1,observer:"_openedChanged"}},listeners:{transitionend:"_onTransitionend"},created:function(){this.b=null},attached:function(){this.opened&&this._openedChanged(this.opened)},prepare:function(){this.opened&&!this.parentNode&&T(document.body).appendChild(this)},open:function(){this.opened=!0},close:function(){this.opened=!1},complete:function(){this.opened||this.parentNode!==document.body||T(this.parentNode).removeChild(this)}, -_onTransitionend:function(a){a&&a.target===this&&this.complete()},_openedChanged:function(a){a?this.prepare():(a=window.getComputedStyle(this),"0s"!==a.transitionDuration&&0!=a.opacity||this.complete());this.isAttached&&(this.b&&(window.cancelAnimationFrame(this.b),this.b=null),this.scrollTop=this.scrollTop,this.b=window.requestAnimationFrame(function(){this.b=null;this.toggleClass("opened",this.opened)}.bind(this)))}});function Gg(){this.b=[];this.g=101;this.c=null;Pd(document.documentElement,"tap",function(){});document.addEventListener("tap",this._onCaptureClick.bind(this),!0);document.addEventListener("focus",this._onCaptureFocus.bind(this),!0);document.addEventListener("keydown",this.fi.bind(this),!0)}m=Gg.prototype; -m.sh=function(a){var b=this.b[a];if(b){var c=this.b.length-1,d=this.b[c];d&&this.zf(b,d)&&c--;if(!(a>=c)){d=Math.max(this.mb(this.b[this.b.length-1]),101);for(this.mb(b)<=d&&this.fe(b,d);ab)return a;var c=Math.ceil(b/2);b=this.ke(a.slice(0,c));a=this.ke(a.slice(c));return this.ai(b,a)};m.ai=function(a,b){for(var c=[];0a:a>b};var Ag=new zg;var Bg=t(["\n \n\n \n"]); +X({_template:P(Bg),is:"iron-overlay-backdrop",properties:{opened:{reflectToAttribute:!0,type:Boolean,value:!1,observer:"_openedChanged"}},listeners:{transitionend:"_onTransitionend"},created:function(){this.b=null},attached:function(){this.opened&&this._openedChanged(this.opened)},prepare:function(){this.opened&&!this.parentNode&&T(document.body).appendChild(this)},open:function(){this.opened=!0},close:function(){this.opened=!1},complete:function(){this.opened||this.parentNode!==document.body||T(this.parentNode).removeChild(this)}, +_onTransitionend:function(a){a&&a.target===this&&this.complete()},_openedChanged:function(a){a?this.prepare():(a=window.getComputedStyle(this),"0s"!==a.transitionDuration&&0!=a.opacity||this.complete());this.isAttached&&(this.b&&(window.cancelAnimationFrame(this.b),this.b=null),this.scrollTop=this.scrollTop,this.b=window.requestAnimationFrame(function(){this.b=null;this.toggleClass("opened",this.opened)}.bind(this)))}});function Cg(){this.b=[];this.g=101;this.c=null;Ld(document.documentElement,"tap",function(){});document.addEventListener("tap",this._onCaptureClick.bind(this),!0);document.addEventListener("focus",this._onCaptureFocus.bind(this),!0);document.addEventListener("keydown",this.di.bind(this),!0)}m=Cg.prototype; +m.qh=function(a){var b=this.b[a];if(b){var c=this.b.length-1,d=this.b[c];d&&this.xf(b,d)&&c--;if(!(a>=c)){d=Math.max(this.mb(this.b[this.b.length-1]),101);for(this.mb(b)<=d&&this.fe(b,d);a=Math.abs(b),e=0;ec?0b?0\n :host {\n position: fixed;\n }\n\n #contentWrapper ::slotted(*) {\n overflow: auto;\n }\n\n #contentWrapper.animating ::slotted(*) {\n overflow: hidden;\n pointer-events: none;\n }\n \n\n
\n \n
\n']); -X({_template:P(Tg),is:"iron-dropdown",behaviors:[Y,ng,Rg,Sg],properties:{horizontalAlign:{type:String,value:"left",reflectToAttribute:!0},verticalAlign:{type:String,value:"top",reflectToAttribute:!0},openAnimationConfig:{type:Object},closeAnimationConfig:{type:Object},focusTarget:{type:Object},noAnimations:{type:Boolean,value:!1},allowOutsideScroll:{type:Boolean,value:!1,observer:"_allowOutsideScrollChanged"}},listeners:{"neon-animation-finish":"_onNeonAnimationFinish"},observers:["_updateOverlayPosition(positionTarget, verticalAlign, horizontalAlign, verticalOffset, horizontalOffset)"], +this.na[a],c;for(c in b)b[c].animation&&b[c].animation.cancel&&b[c].animation.cancel()}this.na={}}}];var Pg=t(['\n \n\n
\n \n
\n']); +X({_template:P(Pg),is:"iron-dropdown",behaviors:[Y,jg,Ng,Og],properties:{horizontalAlign:{type:String,value:"left",reflectToAttribute:!0},verticalAlign:{type:String,value:"top",reflectToAttribute:!0},openAnimationConfig:{type:Object},closeAnimationConfig:{type:Object},focusTarget:{type:Object},noAnimations:{type:Boolean,value:!1},allowOutsideScroll:{type:Boolean,value:!1,observer:"_allowOutsideScrollChanged"}},listeners:{"neon-animation-finish":"_onNeonAnimationFinish"},observers:["_updateOverlayPosition(positionTarget, verticalAlign, horizontalAlign, verticalOffset, horizontalOffset)"], get oe(){for(var a=T(this.$.content).getDistributedNodes(),b=0,c=a.length;b\n \n\n\n \n']), -Vg=P(Ug);Vg.setAttribute("style","display: none;");document.head.appendChild(Vg.content);var Wg=document.createElement("style");Wg.textContent="[hidden] { display: none !important; }";document.head.appendChild(Wg);var Xg=t(["\n \n"]), -Yg=new rg({type:"iconset"}); -X({_template:P(Xg),is:"iron-icon",properties:{icon:{type:String},theme:{type:String},src:{type:String}},observers:["_updateIcon(isAttached)","_updateIcon(theme, isAttached)","_srcChanged(src, isAttached)","_iconChanged(icon, isAttached)"],gh:"icons",_iconChanged:function(a){a=(a||"").split(":");this.g=a.pop();this.h=a.pop()||this.gh;this._updateIcon()},_srcChanged:function(){this._updateIcon()},_usesIconset:function(){return this.icon||!this.src},_updateIcon:function(){this._usesIconset()?(this.b&& -this.b.parentNode&&T(this.root).removeChild(this.b),""===this.g?this.c&&this.c.removeIcon(this):this.h&&((this.c=Yg.byKey(this.h))?(this.c.applyIcon(this,this.g,this.theme),this.unlisten(window,"iron-iconset-added","_updateIcon")):this.listen(window,"iron-iconset-added","_updateIcon"))):(this.c&&this.c.removeIcon(this),this.b||(this.b=document.createElement("img"),this.b.style.width="100%",this.b.style.height="100%",this.b.draggable=!1),this.b.src=this.src,T(this.root).appendChild(this.b))}});X({is:"iron-iconset-svg",_template:null,properties:{name:{type:String,observer:"_nameChanged"},size:{type:Number,value:24},rtlMirroring:{type:Boolean,value:!1},useGlobalRtlAttribute:{type:Boolean,value:!1}},created:function(){this.g=new rg({type:"iconset",key:null,value:null})},attached:function(){this.style.display="none"},getIconNames:function(){this.b=this._createIconMap();return Object.keys(this.b).map(function(a){return this.name+":"+a},this)},applyIcon:function(a,b){this.removeIcon(a);if(b= +this.scrollAction="lock")},_applyFocus:function(){var a=this.focusTarget||this.oe;a&&this.opened&&!this.noAutoFocus?a.focus():Mg._applyFocus.apply(this,arguments)}});var Qg=t(['\n\n \n\n\n \n']), +Rg=P(Qg);Rg.setAttribute("style","display: none;");document.head.appendChild(Rg.content);var Sg=document.createElement("style");Sg.textContent="[hidden] { display: none !important; }";document.head.appendChild(Sg);var Tg=new ng({type:"iconset"}),Ug=t(["\n \n"]); +X({_template:P(Ug),is:"iron-icon",properties:{icon:{type:String},theme:{type:String},src:{type:String}},observers:["_updateIcon(isAttached)","_updateIcon(theme, isAttached)","_srcChanged(src, isAttached)","_iconChanged(icon, isAttached)"],eh:"icons",_iconChanged:function(a){a=(a||"").split(":");this.g=a.pop();this.h=a.pop()||this.eh;this._updateIcon()},_srcChanged:function(){this._updateIcon()},_usesIconset:function(){return this.icon||!this.src},_updateIcon:function(){this._usesIconset()?(this.b&& +this.b.parentNode&&T(this.root).removeChild(this.b),""===this.g?this.c&&this.c.removeIcon(this):this.h&&((this.c=Tg.byKey(this.h))?(this.c.applyIcon(this,this.g,this.theme),this.unlisten(window,"iron-iconset-added","_updateIcon")):this.listen(window,"iron-iconset-added","_updateIcon"))):(this.c&&this.c.removeIcon(this),this.b||(this.b=document.createElement("img"),this.b.style.width="100%",this.b.style.height="100%",this.b.draggable=!1),this.b.src=this.src,T(this.root).appendChild(this.b))}});X({is:"iron-iconset-svg",_template:null,properties:{name:{type:String,observer:"_nameChanged"},size:{type:Number,value:24},rtlMirroring:{type:Boolean,value:!1},useGlobalRtlAttribute:{type:Boolean,value:!1}},created:function(){this.g=new ng({type:"iconset",key:null,value:null})},attached:function(){this.style.display="none"},getIconNames:function(){this.b=this._createIconMap();return Object.keys(this.b).map(function(a){return this.name+":"+a},this)},applyIcon:function(a,b){this.removeIcon(a);if(b= this._cloneIcon(b,this.rtlMirroring&&this._targetIsRTL(a))){var c=T(a.root||a);c.insertBefore(b,c.childNodes[0]);return a.m=b}return null},removeIcon:function(a){a.m&&(T(a.root||a).removeChild(a.m),a.m=null)},_targetIsRTL:function(a){null==this.c&&(this.useGlobalRtlAttribute?this.c="rtl"===(document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement).getAttribute("dir"):(a&&a.nodeType!==Node.ELEMENT_NODE&&(a=a.host),this.c=a&&"rtl"===window.getComputedStyle(a).direction)); return this.c},_nameChanged:function(){this.g.value=null;this.g.key=this.name;this.g.value=this;this.async(function(){this.fire("iron-iconset-added",this,{node:window})})},_createIconMap:function(){var a=Object.create(null);T(this).querySelectorAll("[id]").forEach(function(b){a[b.id]=b});return a},_cloneIcon:function(a,b){this.b=this.b||this._createIconMap();return this._prepareSvgClone(this.b[a],this.size,b)},_prepareSvgClone:function(a,b,c){if(a){a=a.cloneNode(!0);var d=document.createElementNS("http://www.w3.org/2000/svg", "svg");b=a.getAttribute("viewBox")||"0 0 "+b+" "+b;var e="pointer-events: none; display: block; width: 100%; height: 100%;";c&&a.hasAttribute("mirror-in-rtl")&&(e+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");d.setAttribute("viewBox",b);d.setAttribute("preserveAspectRatio","xMidYMid meet");d.setAttribute("focusable","false");d.style.cssText=e;d.appendChild(a).removeAttribute("id");return d}return null}});/* @@ -1543,8 +1523,8 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */ -var Zg=document.createElement("template");Zg.setAttribute("style","display: none;");Zg.innerHTML='\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n'; -document.head.appendChild(Zg.content);/* +var Vg=document.createElement("template");Vg.setAttribute("style","display: none;");Vg.innerHTML='\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n'; +document.head.appendChild(Vg.content);/* Copyright (c) 2016 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt @@ -1553,42 +1533,42 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */ -var $g=aa(['\n \n\n \n \n \n
\n'], +var Wg=aa(['\n \n\n \n \n \n
\n'], ['\n \n\n \n \n \n
\n']); -X({_template:P($g),is:"iron-image",properties:{src:{type:String,value:""},alt:{type:String,value:null},crossorigin:{type:String,value:null},preventLoad:{type:Boolean,value:!1},sizing:{type:String,value:null,reflectToAttribute:!0},position:{type:String,value:"center"},preload:{type:Boolean,value:!1},placeholder:{type:String,value:null,observer:"_placeholderChanged"},fade:{type:Boolean,value:!1},loaded:{notify:!0,readOnly:!0,type:Boolean,value:!1},loading:{notify:!0,readOnly:!0,type:Boolean,value:!1}, +X({_template:P(Wg),is:"iron-image",properties:{src:{type:String,value:""},alt:{type:String,value:null},crossorigin:{type:String,value:null},preventLoad:{type:Boolean,value:!1},sizing:{type:String,value:null,reflectToAttribute:!0},position:{type:String,value:"center"},preload:{type:Boolean,value:!1},placeholder:{type:String,value:null,observer:"_placeholderChanged"},fade:{type:Boolean,value:!1},loaded:{notify:!0,readOnly:!0,type:Boolean,value:!1},loading:{notify:!0,readOnly:!0,type:Boolean,value:!1}, error:{notify:!0,readOnly:!0,type:Boolean,value:!1},width:{observer:"_widthChanged",type:Number,value:null},height:{observer:"_heightChanged",type:Number,value:null}},observers:["_transformChanged(sizing, position)","_loadStateObserver(src, preventLoad)"],created:function(){this.b=""},_imgOnLoad:function(){this.$.img.src===this._resolveSrc(this.src)&&(this._setLoading(!1),this._setLoaded(!0),this._setError(!1))},_imgOnError:function(){this.$.img.src===this._resolveSrc(this.src)&&(this.$.img.removeAttribute("src"), this.$.sizedImgDiv.style.backgroundImage="",this._setLoading(!1),this._setLoaded(!1),this._setError(!0))},_computePlaceholderHidden:function(){return!this.preload||!this.fade&&!this.loading&&this.loaded},_computePlaceholderClassName:function(){return this.preload&&this.fade&&!this.loading&&this.loaded?"faded-out":""},_computeImgDivHidden:function(){return!this.sizing},_computeImgDivARIAHidden:function(){return""===this.alt?"true":void 0},_computeImgDivARIALabel:function(){return null!==this.alt?this.alt: ""===this.src?"":this._resolveSrc(this.src).replace(/[?|#].*/g,"").split("/").pop()},_computeImgHidden:function(){return!!this.sizing},_widthChanged:function(){this.style.width=isNaN(this.width)?this.width:this.width+"px"},_heightChanged:function(){this.style.height=isNaN(this.height)?this.height:this.height+"px"},_loadStateObserver:function(a,b){var c=this._resolveSrc(a);c!==this.b&&(this.b="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",""===a||b?this._setLoading(!1): (this.b=c,this.$.img.src=this.b,this.$.sizedImgDiv.style.backgroundImage='url("'+this.b+'")',this._setLoading(!0)),this._setLoaded(!1),this._setError(!1))},_placeholderChanged:function(){this.$.placeholder.style.backgroundImage=this.placeholder?'url("'+this.placeholder+'")':""},_transformChanged:function(){var a=this.$.sizedImgDiv.style,b=this.$.placeholder.style;a.backgroundSize=b.backgroundSize=this.sizing;a.backgroundPosition=b.backgroundPosition=this.sizing?this.position:"";a.backgroundRepeat= -b.backgroundRepeat=this.sizing?"no-repeat":""},_resolveSrc:function(a){a=Oa(a,this.$.baseURIAnchor.href);2<=a.length&&"/"===a[0]&&"/"!==a[1]&&(a=(location.origin||location.protocol+"//"+location.host)+a);return a}});var ah=t(['\n \n \n']); -X({_template:P(ah),is:"iron-input",behaviors:[ug],properties:{bindValue:{type:String,value:""},value:{type:String,computed:"_computeValue(bindValue)"},allowedPattern:{type:String},autoValidate:{type:Boolean,value:!1},_inputElement:Object},observers:["_bindValueChanged(bindValue, _inputElement)"],listeners:{input:"_onInput",keypress:"_onKeypress"},created:function(){ag.instance||(ag.instance=document.createElement("iron-a11y-announcer"));(document.body||document.head).appendChild(ag.instance);this.c= -"";this.b=!1},attached:function(){this.da=T(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},detached:function(){this.da&&(T(this).unobserveNodes(this.da),this.da=null)},get l(){return this._inputElement},_initSlottedInput:function(){this._inputElement=this.getEffectiveChildren()[0];this.l&&this.l.value&&(this.bindValue=this.l.value);this.fire("iron-input-ready")},get uf(){if(this.allowedPattern)var a=new RegExp(this.allowedPattern);else switch(this.l.type){case "number":a=/[0-9.,e-]/}return a}, +b.backgroundRepeat=this.sizing?"no-repeat":""},_resolveSrc:function(a){a=Ka(a,this.$.baseURIAnchor.href);2<=a.length&&"/"===a[0]&&"/"!==a[1]&&(a=(location.origin||location.protocol+"//"+location.host)+a);return a}});var Xg=t(['\n \n \n']); +X({_template:P(Xg),is:"iron-input",behaviors:[qg],properties:{bindValue:{type:String,value:""},value:{type:String,computed:"_computeValue(bindValue)"},allowedPattern:{type:String},autoValidate:{type:Boolean,value:!1},_inputElement:Object},observers:["_bindValueChanged(bindValue, _inputElement)"],listeners:{input:"_onInput",keypress:"_onKeypress"},created:function(){Wf.instance||(Wf.instance=document.createElement("iron-a11y-announcer"));(document.body||document.head).appendChild(Wf.instance);this.c= +"";this.b=!1},attached:function(){this.da=T(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},detached:function(){this.da&&(T(this).unobserveNodes(this.da),this.da=null)},get l(){return this._inputElement},_initSlottedInput:function(){this._inputElement=this.getEffectiveChildren()[0];this.l&&this.l.value&&(this.bindValue=this.l.value);this.fire("iron-input-ready")},get sf(){if(this.allowedPattern)var a=new RegExp(this.allowedPattern);else switch(this.l.type){case "number":a=/[0-9.,e-]/}return a}, _bindValueChanged:function(a,b){b&&(void 0===a?b.value=null:a!==b.value&&(this.l.value=a),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:a}))},_onInput:function(){!this.allowedPattern||this.b||this._checkPatternValidity()||(this._announceInvalidCharacter("Invalid string of characters not entered."),this.l.value=this.c);this.bindValue=this.c=this.l.value;this.b=!1},_isPrintable:function(a){var b=19==a.keyCode||20==a.keyCode||45==a.keyCode||46==a.keyCode||144==a.keyCode||145== -a.keyCode||32a.keyCode||111a.keyCode;return!(8==a.keyCode||9==a.keyCode||13==a.keyCode||27==a.keyCode)&&!(0==a.charCode&&b)},_onKeypress:function(a){if(this.allowedPattern||"number"===this.l.type){var b=this.uf;if(b&&!(a.metaKey||a.ctrlKey||a.altKey)){this.b=!0;var c=String.fromCharCode(a.charCode);this._isPrintable(a)&&!b.test(c)&&(a.preventDefault(),this._announceInvalidCharacter("Invalid character "+c+" not entered."))}}},_checkPatternValidity:function(){var a=this.uf; -if(!a)return!0;for(var b=0;ba.keyCode||111a.keyCode;return!(8==a.keyCode||9==a.keyCode||13==a.keyCode||27==a.keyCode)&&!(0==a.charCode&&b)},_onKeypress:function(a){if(this.allowedPattern||"number"===this.l.type){var b=this.sf;if(b&&!(a.metaKey||a.ctrlKey||a.altKey)){this.b=!0;var c=String.fromCharCode(a.charCode);this._isPrintable(a)&&!b.test(c)&&(a.preventDefault(),this._announceInvalidCharacter("Invalid character "+c+" not entered."))}}},_checkPatternValidity:function(){var a=this.sf; +if(!a)return!0;for(var b=0;ba.indexOf(b))&&ch(this,b,!1)},this)};m.isSelected=function(a){return 0<=this.selection.indexOf(a)};function ch(a,b,c){if(null!=b&&c!==a.isSelected(b)){if(c)a.selection.push(b);else{var d=a.selection.indexOf(b);0<=d&&a.selection.splice(d,1)}a.b&&a.b(b,c)}} -m.select=function(a){this.multi?this.toggle(a):this.get()!==a&&(ch(this,this.get(),!1),ch(this,a,!0))};m.toggle=function(a){ch(this,a,!this.isSelected(a))};var dh={properties:{attrForSelected:{type:String,value:null},selected:{type:String,notify:!0},selectedItem:{type:Object,readOnly:!0,notify:!0},activateEvent:{type:String,value:"tap",observer:"_activateEventChanged"},selectable:String,selectedClass:{type:String,value:"iron-selected"},selectedAttribute:{type:String,value:null},fallbackSelection:{type:String,value:null},items:{type:Array,readOnly:!0,notify:!0,value:function(){return[]}},_excludedLocalNames:{type:Object,value:function(){return{template:1, -"dom-bind":1,"dom-if":1,"dom-repeat":1}}}},observers:["_updateAttrForSelected(attrForSelected)","_updateSelected(selected)","_checkFallback(fallbackSelection)"],created:function(){this.rh=this._filterItem.bind(this);this.la=new bh(this._applySelection.bind(this))},attached:function(){this.da=this._observeItems(this);this._addListener(this.activateEvent)},detached:function(){this.da&&T(this).unobserveNodes(this.da);this._removeListener(this.activateEvent)},indexOf:function(a){return this.items?this.items.indexOf(a): +var _labelNumber$$module$third_party$javascript$polymer$v2$iron_label$iron_label=0;function Yg(a){this.multi=!1;this.selection=[];this.b=a}m=Yg.prototype;m.get=function(){return this.multi?this.selection.slice():this.selection[0]};m.clear=function(a){this.selection.slice().forEach(function(b){(!a||0>a.indexOf(b))&&Zg(this,b,!1)},this)};m.isSelected=function(a){return 0<=this.selection.indexOf(a)};function Zg(a,b,c){if(null!=b&&c!==a.isSelected(b)){if(c)a.selection.push(b);else{var d=a.selection.indexOf(b);0<=d&&a.selection.splice(d,1)}a.b&&a.b(b,c)}} +m.select=function(a){this.multi?this.toggle(a):this.get()!==a&&(Zg(this,this.get(),!1),Zg(this,a,!0))};m.toggle=function(a){Zg(this,a,!this.isSelected(a))};var $g={properties:{attrForSelected:{type:String,value:null},selected:{type:String,notify:!0},selectedItem:{type:Object,readOnly:!0,notify:!0},activateEvent:{type:String,value:"tap",observer:"_activateEventChanged"},selectable:String,selectedClass:{type:String,value:"iron-selected"},selectedAttribute:{type:String,value:null},fallbackSelection:{type:String,value:null},items:{type:Array,readOnly:!0,notify:!0,value:function(){return[]}},_excludedLocalNames:{type:Object,value:function(){return{template:1, +"dom-bind":1,"dom-if":1,"dom-repeat":1}}}},observers:["_updateAttrForSelected(attrForSelected)","_updateSelected(selected)","_checkFallback(fallbackSelection)"],created:function(){this.ph=this._filterItem.bind(this);this.la=new Yg(this._applySelection.bind(this))},attached:function(){this.da=this._observeItems(this);this._addListener(this.activateEvent)},detached:function(){this.da&&T(this).unobserveNodes(this.da);this._removeListener(this.activateEvent)},indexOf:function(a){return this.items?this.items.indexOf(a): -1},select:function(a){this.selected=a},selectPrevious:function(){var a=this.items.length,b=a-1;void 0!==this.selected&&(b=(Number(this._valueToIndex(this.selected))-1+a)%a);this.selected=this._indexToValue(b)},selectNext:function(){var a=0;void 0!==this.selected&&(a=(Number(this._valueToIndex(this.selected))+1)%this.items.length);this.selected=this._indexToValue(a)},selectIndex:function(a){this.select(this._indexToValue(a))},forceSynchronousItemUpdate:function(){this.da&&"function"===typeof this.da.flush? -this.da.flush():this._updateItems()},get pi(){return null!=this.selected},_checkFallback:function(){this._updateSelected()},_addListener:function(a){this.listen(this,a,"_activateHandler")},_removeListener:function(a){this.unlisten(this,a,"_activateHandler")},_activateEventChanged:function(a,b){this._removeListener(b);this._addListener(a)},_updateItems:function(){var a=T(this).queryDistributedElements(this.selectable||"*");a=Array.prototype.filter.call(a,this.rh);this._setItems(a)},_updateAttrForSelected:function(){this.selectedItem&& +this.da.flush():this._updateItems()},get ni(){return null!=this.selected},_checkFallback:function(){this._updateSelected()},_addListener:function(a){this.listen(this,a,"_activateHandler")},_removeListener:function(a){this.unlisten(this,a,"_activateHandler")},_activateEventChanged:function(a,b){this._removeListener(b);this._addListener(a)},_updateItems:function(){var a=T(this).queryDistributedElements(this.selectable||"*");a=Array.prototype.filter.call(a,this.ph);this._setItems(a)},_updateAttrForSelected:function(){this.selectedItem&& (this.selected=this._valueForItem(this.selectedItem))},_updateSelected:function(){this._selectSelected(this.selected)},_selectSelected:function(){if(this.items){var a=this._valueToItem(this.selected);a?this.la.select(a):this.la.clear();this.fallbackSelection&&this.items.length&&void 0===this.la.get()&&(this.selected=this.fallbackSelection)}},_filterItem:function(a){return!this._excludedLocalNames[a.localName]},_valueToItem:function(a){return null==a?null:this.items[this._valueToIndex(a)]},_valueToIndex:function(a){if(this.attrForSelected)for(var b= -0,c;c=this.items[b];b++){if(this._valueForItem(c)==a)return b}else return Number(a)},_indexToValue:function(a){if(this.attrForSelected){if(a=this.items[a])return this._valueForItem(a)}else return a},_valueForItem:function(a){if(!a)return null;if(!this.attrForSelected)return a=this.indexOf(a),-1===a?null:a;var b=a[Db(this.attrForSelected)];return void 0!=b?b:a.getAttribute(this.attrForSelected)},_applySelection:function(a,b){this.selectedClass&&this.toggleClass(this.selectedClass,b,a);this.selectedAttribute&& +0,c;c=this.items[b];b++){if(this._valueForItem(c)==a)return b}else return Number(a)},_indexToValue:function(a){if(this.attrForSelected){if(a=this.items[a])return this._valueForItem(a)}else return a},_valueForItem:function(a){if(!a)return null;if(!this.attrForSelected)return a=this.indexOf(a),-1===a?null:a;var b=a[zb(this.attrForSelected)];return void 0!=b?b:a.getAttribute(this.attrForSelected)},_applySelection:function(a,b){this.selectedClass&&this.toggleClass(this.selectedClass,b,a);this.selectedAttribute&& this.toggleAttribute.call(a,this.selectedAttribute,b);this._selectionChange();this.fire("iron-"+(b?"select":"deselect"),{item:a})},_selectionChange:function(){this._setSelectedItem(this.la.get())},_observeItems:function(a){return T(a).observeNodes(function(b){this._updateItems();this._updateSelected();this.fire("iron-items-changed",b,{bubbles:!1,cancelable:!1})})},_activateHandler:function(a){a=a.target;for(var b=this.items;a&&a!=this;){var c=b.indexOf(a);if(0<=c){b=this._indexToValue(c);this._itemActivate(b, -a);break}a=a.parentNode}},_itemActivate:function(a,b){this.fire("iron-activate",{selected:a,item:b},{cancelable:!0}).defaultPrevented||this.select(a)}};var eh={properties:{multi:{type:Boolean,value:!1,observer:"multiChanged"},selectedValues:{type:Array,notify:!0,value:function(){return[]}},selectedItems:{type:Array,readOnly:!0,notify:!0,value:function(){return[]}}},observers:["_updateSelected(selectedValues.splices)"],select:function(a){this.multi?this._toggleSelected(a):this.selected=a},multiChanged:function(a){this.la.multi=a;this._updateSelected()},get pi(){return null!=this.selected||null!=this.selectedValues&&this.selectedValues.length},_updateAttrForSelected:function(){this.multi? -this.selectedItems&&0b?this.push("selectedValues",a):this.splice("selectedValues", -b,1)},_valuesToItems:function(a){return null==a?null:a.map(function(b){return this._valueToItem(b)},this)}};var fh={properties:{focusedItem:{observer:"_focusedItemChanged",readOnly:!0,type:Object},attrForItemTitle:{type:String},disabled:{type:Boolean,value:!1,observer:"_disabledChanged"}},hh:"Alt AltGraph CapsLock Control Fn FnLock Hyper Meta NumLock OS ScrollLock Shift Super Symbol SymbolLock".split(" "),ih:1E3,vf:0,hostAttributes:{role:"menu"},observers:["_updateMultiselectable(multi)"],listeners:{focus:"_onFocus",keydown:"_onKeydown","iron-items-changed":"_onIronItemsChanged"},ea:{up:"_onUpKey",down:"_onDownKey", -esc:"_onEscKey","shift+tab:keydown":"_onShiftTabDown"},attached:function(){this._resetTabindices()},select:function(a){this.kb&&(this.cancelAsync(this.kb),this.kb=null);var b=this._valueToItem(a);b&&b.hasAttribute("disabled")||(this._setFocusedItem(b),eh.select.apply(this,arguments))},_resetTabindices:function(){var a=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(b){b.setAttribute("tabindex",b===a?"0":"-1");b.setAttribute("aria-selected",this.la.isSelected(b))}, -this)},_updateMultiselectable:function(a){a?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},_focusWithKeyboardEvent:function(a){if(-1===this.hh.indexOf(a.key)){this.cancelDebouncer("_clearSearchText");var b=this.yf||"";b+=(a.key&&1==a.key.length?a.key:String.fromCharCode(a.keyCode)).toLocaleLowerCase();a=b.length;for(var c=0,d;d=this.items[c];c++)if(!d.hasAttribute("disabled")){var e=this.attrForItemTitle||"textContent";e=(d[e]||d.getAttribute(e)||"").trim(); -if(!(e.length\n :host {\n display: block;\n }\n\n :host > ::slotted(:not(slot):not(.iron-selected)) {\n display: none !important;\n }\n \n\n \n"]);X({_template:P(jh),is:"iron-pages",behaviors:[yg,dh],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});var kh={properties:{value:{type:Number,value:0,notify:!0,reflectToAttribute:!0},min:{type:Number,value:0,notify:!0},max:{type:Number,value:100,notify:!0},step:{type:Number,value:1,notify:!0},ratio:{type:Number,value:0,readOnly:!0,notify:!0}},observers:["_update(value, min, max, step)"],_calcRatio:function(a){return(this._clampValue(a)-this.min)/(this.max-this.min)},_clampValue:function(a){return Math.min(this.max,Math.max(this.min,this._calcStep(a)))},_calcStep:function(a){a=parseFloat(a);if(!this.step)return a; -a=Math.round((a-this.min)/this.step);return 1>this.step?a/(1/this.step)+this.min:a*this.step+this.min},_validateValue:function(){var a=this._clampValue(this.value);this.value=this.oldValue=isNaN(a)?this.oldValue:a;return this.value!==a},_update:function(){this._validateValue();this._setRatio(100*this._calcRatio(this.value))}};var lh={properties:{animationTiming:{type:Object,value:function(){return{duration:500,easing:"cubic-bezier(0.4, 0, 0.2, 1)",fill:"both"}}}},oj:!0,created:function(){document.body.animate||console.warn("No web animations detected. This element will not function without a web animations polyfill.")},timingFromConfig:function(a){if(a.timing)for(var b in a.timing)this.animationTiming[b]=a.timing[b];return this.animationTiming},setPrefixedProperty:function(a,b,c){for(var d={transform:["webkitTransform"], -transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[b],e,f=0;e=d[f];f++)a.style[e]=c;a.style[b]=c},complete:function(){}};X({is:"fade-in-animation",_template:null,behaviors:[lh],configure:function(a){return this.b=new KeyframeEffect(a.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(a))}});X({is:"fade-out-animation",_template:null,behaviors:[lh],configure:function(a){return this.b=new KeyframeEffect(a.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(a))}});/* +b,1)},_valuesToItems:function(a){return null==a?null:a.map(function(b){return this._valueToItem(b)},this)}};var bh={properties:{focusedItem:{observer:"_focusedItemChanged",readOnly:!0,type:Object},attrForItemTitle:{type:String},disabled:{type:Boolean,value:!1,observer:"_disabledChanged"}},fh:"Alt AltGraph CapsLock Control Fn FnLock Hyper Meta NumLock OS ScrollLock Shift Super Symbol SymbolLock".split(" "),gh:1E3,tf:0,hostAttributes:{role:"menu"},observers:["_updateMultiselectable(multi)"],listeners:{focus:"_onFocus",keydown:"_onKeydown","iron-items-changed":"_onIronItemsChanged"},ea:{up:"_onUpKey",down:"_onDownKey", +esc:"_onEscKey","shift+tab:keydown":"_onShiftTabDown"},attached:function(){this._resetTabindices()},select:function(a){this.kb&&(this.cancelAsync(this.kb),this.kb=null);var b=this._valueToItem(a);b&&b.hasAttribute("disabled")||(this._setFocusedItem(b),ah.select.apply(this,arguments))},_resetTabindices:function(){var a=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(b){b.setAttribute("tabindex",b===a?"0":"-1");b.setAttribute("aria-selected",this.la.isSelected(b))}, +this)},_updateMultiselectable:function(a){a?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},_focusWithKeyboardEvent:function(a){if(-1===this.fh.indexOf(a.key)){this.cancelDebouncer("_clearSearchText");var b=this.wf||"";b+=(a.key&&1==a.key.length?a.key:String.fromCharCode(a.keyCode)).toLocaleLowerCase();a=b.length;for(var c=0,d;d=this.items[c];c++)if(!d.hasAttribute("disabled")){var e=this.attrForItemTitle||"textContent";e=(d[e]||d.getAttribute(e)||"").trim(); +if(!(e.length\n :host {\n display: block;\n }\n\n :host > ::slotted(:not(slot):not(.iron-selected)) {\n display: none !important;\n }\n \n\n \n"]);X({_template:P(fh),is:"iron-pages",behaviors:[ug,$g],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});var gh={properties:{value:{type:Number,value:0,notify:!0,reflectToAttribute:!0},min:{type:Number,value:0,notify:!0},max:{type:Number,value:100,notify:!0},step:{type:Number,value:1,notify:!0},ratio:{type:Number,value:0,readOnly:!0,notify:!0}},observers:["_update(value, min, max, step)"],_calcRatio:function(a){return(this._clampValue(a)-this.min)/(this.max-this.min)},_clampValue:function(a){return Math.min(this.max,Math.max(this.min,this._calcStep(a)))},_calcStep:function(a){a=parseFloat(a);if(!this.step)return a; +a=Math.round((a-this.min)/this.step);return 1>this.step?a/(1/this.step)+this.min:a*this.step+this.min},_validateValue:function(){var a=this._clampValue(this.value);this.value=this.oldValue=isNaN(a)?this.oldValue:a;return this.value!==a},_update:function(){this._validateValue();this._setRatio(100*this._calcRatio(this.value))}};var hh={properties:{animationTiming:{type:Object,value:function(){return{duration:500,easing:"cubic-bezier(0.4, 0, 0.2, 1)",fill:"both"}}}},mj:!0,created:function(){document.body.animate||console.warn("No web animations detected. This element will not function without a web animations polyfill.")},timingFromConfig:function(a){if(a.timing)for(var b in a.timing)this.animationTiming[b]=a.timing[b];return this.animationTiming},setPrefixedProperty:function(a,b,c){for(var d={transform:["webkitTransform"], +transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[b],e,f=0;e=d[f];f++)a.style[e]=c;a.style[b]=c},complete:function(){}};X({is:"fade-in-animation",_template:null,behaviors:[hh],configure:function(a){return this.b=new KeyframeEffect(a.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(a))}});X({is:"fade-out-animation",_template:null,behaviors:[hh],configure:function(a){return this.b=new KeyframeEffect(a.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(a))}});/* Copyright (c) 2014 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at @@ -1598,116 +1578,112 @@ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */ -var mh=t(['\n \n\n
\n
\n']); -function nh(a,b,c,d){a-=c;b-=d;return Math.sqrt(a*a+b*b)}var oh=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;function ph(a){this.element=a;this.width=this.cd.width;this.height=this.cd.height;this.size=Math.max(this.width,this.height)}ph.prototype={get cd(){return this.element.getBoundingClientRect()}}; -function qh(a){this.element=a;this.color=window.getComputedStyle(a).color;this.h=document.createElement("div");this.c=document.createElement("div");this.h.style.backgroundColor=this.color;this.h.classList.add("wave");this.c.classList.add("wave-container");T(this.c).appendChild(this.h);rh(this)}function rh(a){a.s=0;a.o=0;a.g=0;a.i=0;a.m=0;a.ic=0;a.lc=0;a.b=new ph(a.element)} -qh.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get xi(){if(!this.o)return 0;var a=oh()-this.o;this.g&&(a-=this.pd);return a},get pd(){return this.g?oh()-this.g:0},get aj(){return this.xi/1E3},get ta(){return this.pd/1E3},get ej(){return this.aj+this.ta},get initialOpacity(){return this.element.initialOpacity},get opacityDecayVelocity(){return this.element.opacityDecayVelocity},get radius(){var a=1.1*Math.min(Math.sqrt(this.b.width*this.b.width+ -this.b.height*this.b.height),300)+5;return Math.abs(a*(1-Math.pow(80,-(this.ej/(1.1-a/300*.2)))))},get opacity(){return this.g?Math.max(0,this.initialOpacity-this.ta*this.opacityDecayVelocity):this.initialOpacity},get rj(){return Math.max(0,Math.min(.3*this.ta,this.opacity))},get pg(){return.01>this.opacity&&this.radius>=Math.min(this.s,300)},get qg(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.s,300)},get lj(){return this.g?this.pg:this.qg},get dg(){return Math.min(1,this.radius/ -this.b.size*2/Math.sqrt(2))},get hj(){return this.ic?this.i+this.dg*(this.ic-this.i):this.i},get ij(){return this.lc?this.m+this.dg*(this.lc-this.m):this.m},get vi(){return this.o&&!this.g},draw:function(){this.h.style.opacity=this.opacity;var a=this.radius/(this.b.size/2);var b=this.hj-this.b.width/2;var c=this.ij-this.b.height/2;this.c.style.webkitTransform="translate("+b+"px, "+c+"px)";this.c.style.transform="translate3d("+b+"px, "+c+"px, 0)";this.h.style.webkitTransform="scale("+a+","+a+")";this.h.style.transform= -"scale3d("+a+","+a+",1)"},downAction:function(a){var b=this.b.width/2,c=this.b.height/2;rh(this);this.o=oh();this.center?(this.i=b,this.m=c):(this.i=a?a.detail.x-this.b.cd.left:this.b.width/2,this.m=a?a.detail.y-this.b.cd.top:this.b.height/2);this.recenters&&(this.ic=b,this.lc=c);a=this.b;b=this.i;c=this.m;this.s=Math.max(nh(b,c,0,0),nh(b,c,a.width,0),nh(b,c,0,a.height),nh(b,c,a.width,a.height));this.c.style.top=(this.b.height-this.b.size)/2+"px";this.c.style.left=(this.b.width-this.b.size)/2+"px"; -this.c.style.width=this.b.size+"px";this.c.style.height=this.b.size+"px"},upAction:function(){this.vi&&(this.g=oh())},remove:function(){T(T(this.c).parentNode).removeChild(this.c)}}; -X({_template:P(mh),is:"paper-ripple",behaviors:[ng],properties:{initialOpacity:{type:Number,value:.25},opacityDecayVelocity:{type:Number,value:.8},recenters:{type:Boolean,value:!1},center:{type:Boolean,value:!1},ripples:{type:Array,value:function(){return[]}},animating:{type:Boolean,readOnly:!0,reflectToAttribute:!0,value:!1},holdDown:{type:Boolean,value:!1,observer:"_holdDownChanged"},noink:{type:Boolean,value:!1},_animating:{type:Boolean},_boundAnimate:{type:Function,value:function(){return this.animate.bind(this)}}}, +function ih(a,b,c,d){a-=c;b-=d;return Math.sqrt(a*a+b*b)}var jh=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;function kh(a){this.element=a;this.width=this.cd.width;this.height=this.cd.height;this.size=Math.max(this.width,this.height)}kh.prototype={get cd(){return this.element.getBoundingClientRect()}}; +function lh(a){this.element=a;this.color=window.getComputedStyle(a).color;this.h=document.createElement("div");this.c=document.createElement("div");this.h.style.backgroundColor=this.color;this.h.classList.add("wave");this.c.classList.add("wave-container");T(this.c).appendChild(this.h);mh(this)}function mh(a){a.s=0;a.o=0;a.g=0;a.i=0;a.m=0;a.ic=0;a.lc=0;a.b=new kh(a.element)} +lh.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get vi(){if(!this.o)return 0;var a=jh()-this.o;this.g&&(a-=this.pd);return a},get pd(){return this.g?jh()-this.g:0},get yi(){return this.vi/1E3},get ta(){return this.pd/1E3},get cj(){return this.yi+this.ta},get initialOpacity(){return this.element.initialOpacity},get opacityDecayVelocity(){return this.element.opacityDecayVelocity},get radius(){var a=1.1*Math.min(Math.sqrt(this.b.width*this.b.width+ +this.b.height*this.b.height),300)+5;return Math.abs(a*(1-Math.pow(80,-(this.cj/(1.1-a/300*.2)))))},get opacity(){return this.g?Math.max(0,this.initialOpacity-this.ta*this.opacityDecayVelocity):this.initialOpacity},get pj(){return Math.max(0,Math.min(.3*this.ta,this.opacity))},get ng(){return.01>this.opacity&&this.radius>=Math.min(this.s,300)},get og(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.s,300)},get jj(){return this.g?this.ng:this.og},get bg(){return Math.min(1,this.radius/ +this.b.size*2/Math.sqrt(2))},get fj(){return this.ic?this.i+this.bg*(this.ic-this.i):this.i},get gj(){return this.lc?this.m+this.bg*(this.lc-this.m):this.m},get ti(){return this.o&&!this.g},draw:function(){this.h.style.opacity=this.opacity;var a=this.radius/(this.b.size/2);var b=this.fj-this.b.width/2;var c=this.gj-this.b.height/2;this.c.style.webkitTransform="translate("+b+"px, "+c+"px)";this.c.style.transform="translate3d("+b+"px, "+c+"px, 0)";this.h.style.webkitTransform="scale("+a+","+a+")";this.h.style.transform= +"scale3d("+a+","+a+",1)"},downAction:function(a){var b=this.b.width/2,c=this.b.height/2;mh(this);this.o=jh();this.center?(this.i=b,this.m=c):(this.i=a?a.detail.x-this.b.cd.left:this.b.width/2,this.m=a?a.detail.y-this.b.cd.top:this.b.height/2);this.recenters&&(this.ic=b,this.lc=c);a=this.b;b=this.i;c=this.m;this.s=Math.max(ih(b,c,0,0),ih(b,c,a.width,0),ih(b,c,0,a.height),ih(b,c,a.width,a.height));this.c.style.top=(this.b.height-this.b.size)/2+"px";this.c.style.left=(this.b.width-this.b.size)/2+"px"; +this.c.style.width=this.b.size+"px";this.c.style.height=this.b.size+"px"},upAction:function(){this.ti&&(this.g=jh())},remove:function(){T(T(this.c).parentNode).removeChild(this.c)}};var nh=t(['\n \n\n
\n
\n']); +X({_template:P(nh),is:"paper-ripple",behaviors:[jg],properties:{initialOpacity:{type:Number,value:.25},opacityDecayVelocity:{type:Number,value:.8},recenters:{type:Boolean,value:!1},center:{type:Boolean,value:!1},ripples:{type:Array,value:function(){return[]}},animating:{type:Boolean,readOnly:!0,reflectToAttribute:!0,value:!1},holdDown:{type:Boolean,value:!1,observer:"_holdDownChanged"},noink:{type:Boolean,value:!1},_animating:{type:Boolean},_boundAnimate:{type:Function,value:function(){return this.animate.bind(this)}}}, get target(){return this.keyEventTarget},ea:{"enter:keydown":"_onEnterKeydown","space:keydown":"_onSpaceKeydown","space:keyup":"_onSpaceKeyup"},attached:function(){11==T(this).parentNode.nodeType?this.keyEventTarget=T(this).getOwnerRoot().host:this.keyEventTarget=T(this).parentNode;var a=this.keyEventTarget;this.listen(a,"up","uiUpAction");this.listen(a,"down","uiDownAction")},detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction"); -this.keyEventTarget=null},get wj(){for(var a=0;ab||(this.ripples.splice(b,1),a.remove(),this.ripples.length||this._setAnimating(!1))}, -animate:function(){if(this._animating){var a;for(a=0;athis.getRipple().ripples.length&&this.fa.uiDownAction()},_spaceKeyUpHandler:function(a){og._spaceKeyUpHandler.call(this,a);this.hasRipple()&&this.fa.uiUpAction()}},uh=[pg,Y,sh,th];var vh={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(a){a&&this.ensureRipple();this.hasRipple()&&(this.fa.holdDown=a)},_createRipple:function(){var a=sh._createRipple();a.id="ink";a.setAttribute("center","");a.classList.add("circle");return a}},wh=[pg,Y,sh,vh];var xh=[wh,wg,{_checkedChanged:function(){vg._checkedChanged.call(this);this.hasRipple()&&(this.checked?this.fa.setAttribute("checked",""):this.fa.removeAttribute("checked"))},_buttonStateChanged:function(){sh._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var yh=document.createElement("template");yh.setAttribute("style","display: none;");yh.innerHTML='\n \n'; -document.head.appendChild(yh.content);var zh=document.createElement("template");zh.setAttribute("style","display: none;");zh.innerHTML='\n \n'; -document.head.appendChild(zh.content);var Ah=t(['\n \n\n ']); -X({_template:P(Ah),is:"paper-button",behaviors:[uh],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?th._calculateElevation.apply(this):this._setElevation(0)},registered:function(){this._template.setAttribute("strip-whitespace","")}});var Bh=document.createElement("template");Bh.setAttribute("style","display: none;");Bh.innerHTML='\n \n'; -document.head.appendChild(Bh.content);var Ch=document.createElement("template");Ch.setAttribute("style","display: none;");Ch.innerHTML='\n \n'; -document.head.appendChild(Ch.content);var Dh=t(['\n \n\n
\n \n
[[heading]]
\n
\n\n \n']); -X({_template:P(Dh),is:"paper-card",properties:{heading:{type:String,value:"",observer:"_headingChanged"},image:{type:String,value:""},alt:{type:String},preloadImage:{type:Boolean,value:!1},fadeImage:{type:Boolean,value:!1},placeholderImage:{type:String,value:null},elevation:{type:Number,value:1,reflectToAttribute:!0},animatedShadow:{type:Boolean,value:!1},animated:{type:Boolean,reflectToAttribute:!0,readOnly:!0,computed:"_computeAnimated(animatedShadow)"}},_isHidden:function(a){return a?"false":"true"}, -_headingChanged:function(a){var b=this.getAttribute("heading"),c=this.getAttribute("aria-label");"string"===typeof c&&c!==b||this.setAttribute("aria-label",a)},_computeHeadingClass:function(a){return a?" over-image":""},_computeAnimated:function(a){return a}});var Eh=aa(['\n\n
\n
\n
\n
\n
\n\n
'], +this.keyEventTarget=null},get uj(){for(var a=0;ab||(this.ripples.splice(b,1),a.remove(),this.ripples.length||this._setAnimating(!1))}, +animate:function(){if(this._animating){var a;for(a=0;athis.getRipple().ripples.length&&this.fa.uiDownAction()},_spaceKeyUpHandler:function(a){kg._spaceKeyUpHandler.call(this,a);this.hasRipple()&&this.fa.uiUpAction()}},qh=[lg,Y,oh,ph];var rh={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(a){a&&this.ensureRipple();this.hasRipple()&&(this.fa.holdDown=a)},_createRipple:function(){var a=oh._createRipple();a.id="ink";a.setAttribute("center","");a.classList.add("circle");return a}},sh=[lg,Y,oh,rh];var th=[sh,sg,{_checkedChanged:function(){rg._checkedChanged.call(this);this.hasRipple()&&(this.checked?this.fa.setAttribute("checked",""):this.fa.removeAttribute("checked"))},_buttonStateChanged:function(){oh._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var uh=document.createElement("template");uh.setAttribute("style","display: none;");uh.innerHTML='\n \n'; +document.head.appendChild(uh.content);var vh=document.createElement("template");vh.setAttribute("style","display: none;");vh.innerHTML='\n \n'; +document.head.appendChild(vh.content);var wh=t(['\n \n\n ']); +X({_template:P(wh),is:"paper-button",behaviors:[qh],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?ph._calculateElevation.apply(this):this._setElevation(0)},registered:function(){this._template.setAttribute("strip-whitespace","")}});var xh=document.createElement("template");xh.setAttribute("style","display: none;");xh.innerHTML='\n \n'; +document.head.appendChild(xh.content);var yh=document.createElement("template");yh.setAttribute("style","display: none;");yh.innerHTML='\n \n'; +document.head.appendChild(yh.content);var zh=t(['\n \n\n
\n \n
[[heading]]
\n
\n\n \n']); +X({_template:P(zh),is:"paper-card",properties:{heading:{type:String,value:"",observer:"_headingChanged"},image:{type:String,value:""},alt:{type:String},preloadImage:{type:Boolean,value:!1},fadeImage:{type:Boolean,value:!1},placeholderImage:{type:String,value:null},elevation:{type:Number,value:1,reflectToAttribute:!0},animatedShadow:{type:Boolean,value:!1},animated:{type:Boolean,reflectToAttribute:!0,readOnly:!0,computed:"_computeAnimated(animatedShadow)"}},_isHidden:function(a){return a?"false":"true"}, +_headingChanged:function(a){var b=this.getAttribute("heading"),c=this.getAttribute("aria-label");"string"===typeof c&&c!==b||this.setAttribute("aria-label",a)},_computeHeadingClass:function(a){return a?" over-image":""},_computeAnimated:function(a){return a}});var Ah=aa(['\n\n
\n
\n
\n
\n
\n\n
'], ['\n\n
\n
\n
\n
\n
\n\n
']); -X({_template:P(Eh),is:"paper-checkbox",behaviors:[xh],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){be(this,function(){if("-1px"===this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()){var a=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),b="px",c=a.match(/[A-Za-z]+$/);null!==c&&(b=c[0]);a=parseFloat(a);c=8/3*a;"px"===b&&(c=Math.floor(c),c%2!==a%2&&c++); -this.updateStyles({"--paper-checkbox-ink-size":c+b})}})},_computeCheckboxClass:function(a,b){var c="";a&&(c+="checked ");b&&(c+="invalid");return c},_computeCheckmarkClass:function(a){return a?"":"hidden"},_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return vh._createRipple.call(this)},registered:function(){this._template.setAttribute("strip-whitespace","")}});var Fh=[Rg,{hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)"],listeners:{tap:"_onDialogClick"},ready:function(){this.hf=this.noCancelOnOutsideClick;this.gf=this.noCancelOnEscKey;this.jf=this.withBackdrop;this.__readied=!0},_modalChanged:function(a,b){b&&(a?(this.hf=this.noCancelOnOutsideClick,this.gf=this.noCancelOnEscKey,this.jf=this.withBackdrop,this.withBackdrop=this.noCancelOnEscKey= -this.noCancelOnOutsideClick=!0):(this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.hf,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.gf,this.withBackdrop=this.withBackdrop&&this.jf))},_updateClosingReasonConfirmed:function(a){this.closingReason=this.closingReason||{};this.closingReason.nk=a},_onDialogClick:function(a){for(var b=T(a).path,c=0,d=b.indexOf(this);c\n html {\n\n /* Shared Styles */\n --paper-font-common-base: {\n font-family: 'Roboto', 'Noto', sans-serif;\n -webkit-font-smoothing: antialiased;\n };\n\n --paper-font-common-code: {\n font-family: 'Roboto Mono', 'Consolas', 'Menlo', monospace;\n -webkit-font-smoothing: antialiased;\n };\n\n --paper-font-common-expensive-kerning: {\n text-rendering: optimizeLegibility;\n };\n\n --paper-font-common-nowrap: {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n };\n\n /* Material Font Styles */\n\n --paper-font-display4: {\n @apply --paper-font-common-base;\n @apply --paper-font-common-nowrap;\n\n font-size: 112px;\n font-weight: 300;\n letter-spacing: -.044em;\n line-height: 120px;\n };\n\n --paper-font-display3: {\n @apply --paper-font-common-base;\n @apply --paper-font-common-nowrap;\n\n font-size: 56px;\n font-weight: 400;\n letter-spacing: -.026em;\n line-height: 60px;\n };\n\n --paper-font-display2: {\n @apply --paper-font-common-base;\n\n font-size: 45px;\n font-weight: 400;\n letter-spacing: -.018em;\n line-height: 48px;\n };\n\n --paper-font-display1: {\n @apply --paper-font-common-base;\n\n font-size: 34px;\n font-weight: 400;\n letter-spacing: -.01em;\n line-height: 40px;\n };\n\n --paper-font-headline: {\n @apply --paper-font-common-base;\n\n font-size: 24px;\n font-weight: 400;\n letter-spacing: -.012em;\n line-height: 32px;\n };\n\n --paper-font-title: {\n @apply --paper-font-common-base;\n @apply --paper-font-common-nowrap;\n\n font-size: 20px;\n font-weight: 500;\n line-height: 28px;\n };\n\n --paper-font-subhead: {\n @apply --paper-font-common-base;\n\n font-size: 16px;\n font-weight: 400;\n line-height: 24px;\n };\n\n --paper-font-body2: {\n @apply --paper-font-common-base;\n\n font-size: 14px;\n font-weight: 500;\n line-height: 24px;\n };\n\n --paper-font-body1: {\n @apply --paper-font-common-base;\n\n font-size: 14px;\n font-weight: 400;\n line-height: 20px;\n };\n\n --paper-font-caption: {\n @apply --paper-font-common-base;\n @apply --paper-font-common-nowrap;\n\n font-size: 12px;\n font-weight: 400;\n letter-spacing: 0.011em;\n line-height: 20px;\n };\n\n --paper-font-menu: {\n @apply --paper-font-common-base;\n @apply --paper-font-common-nowrap;\n\n font-size: 13px;\n font-weight: 500;\n line-height: 24px;\n };\n\n --paper-font-button: {\n @apply --paper-font-common-base;\n @apply --paper-font-common-nowrap;\n\n font-size: 14px;\n font-weight: 500;\n letter-spacing: 0.018em;\n line-height: 24px;\n text-transform: uppercase;\n };\n\n --paper-font-code2: {\n @apply --paper-font-common-code;\n\n font-size: 14px;\n font-weight: 700;\n line-height: 20px;\n };\n\n --paper-font-code1: {\n @apply --paper-font-common-code;\n\n font-size: 14px;\n font-weight: 500;\n line-height: 20px;\n };\n\n }\n\n \n"; -document.head.appendChild(Gh.content);var Hh=document.createElement("template");Hh.setAttribute("style","display: none;");Hh.innerHTML='\n \n'; -document.head.appendChild(Hh.content);var Ih=t(['\n \n \n']);X({_template:P(Ih),is:"paper-dialog",behaviors:[Fh,Sg],listeners:{"neon-animation-finish":"_onNeonAnimationFinish"},_renderOpened:function(){this.cancelAnimation();this.playAnimation("entry")},_renderClosed:function(){this.cancelAnimation();this.playAnimation("exit")},_onNeonAnimationFinish:function(){this.opened?this._finishRenderOpened():this._finishRenderClosed()}});var Jh=document.createElement("template");Jh.setAttribute("style","display: none;");Jh.innerHTML='\n\n\n\n';document.head.appendChild(Jh.content);var Kh=document.createElement("template");Kh.setAttribute("style","display: none;");Kh.innerHTML='\n \n'; -document.head.appendChild(Kh.content);var Lh=1,Mh=1,Nh=1,Oh=[Y,ng,{properties:{label:{type:String},value:{notify:!0,type:String},disabled:{type:Boolean,value:!1},invalid:{type:Boolean,value:!1,notify:!0},allowedPattern:{type:String},type:{type:String},list:{type:String},pattern:{type:String},required:{type:Boolean,value:!1},errorMessage:{type:String},charCounter:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1},alwaysFloatLabel:{type:Boolean,value:!1},autoValidate:{type:Boolean,value:!1},validator:{type:String},autocomplete:{type:String, +X({_template:P(Ah),is:"paper-checkbox",behaviors:[th],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){Yd(this,function(){if("-1px"===this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()){var a=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),b="px",c=a.match(/[A-Za-z]+$/);null!==c&&(b=c[0]);a=parseFloat(a);c=8/3*a;"px"===b&&(c=Math.floor(c),c%2!==a%2&&c++); +this.updateStyles({"--paper-checkbox-ink-size":c+b})}})},_computeCheckboxClass:function(a,b){var c="";a&&(c+="checked ");b&&(c+="invalid");return c},_computeCheckmarkClass:function(a){return a?"":"hidden"},_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return rh._createRipple.call(this)},registered:function(){this._template.setAttribute("strip-whitespace","")}});var Bh=[Ng,{hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)"],listeners:{tap:"_onDialogClick"},ready:function(){this.hf=this.noCancelOnOutsideClick;this.gf=this.noCancelOnEscKey;this.jf=this.withBackdrop;this.__readied=!0},_modalChanged:function(a,b){b&&(a?(this.hf=this.noCancelOnOutsideClick,this.gf=this.noCancelOnEscKey,this.jf=this.withBackdrop,this.withBackdrop=this.noCancelOnEscKey= +this.noCancelOnOutsideClick=!0):(this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.hf,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.gf,this.withBackdrop=this.withBackdrop&&this.jf))},_updateClosingReasonConfirmed:function(a){this.closingReason=this.closingReason||{};this.closingReason.lk=a},_onDialogClick:function(a){for(var b=T(a).path,c=0,d=b.indexOf(this);c\n html {\n\n /* Shared Styles */\n --paper-font-common-base: {\n font-family: 'Roboto', 'Noto', sans-serif;\n -webkit-font-smoothing: antialiased;\n };\n\n --paper-font-common-code: {\n font-family: 'Roboto Mono', 'Consolas', 'Menlo', monospace;\n -webkit-font-smoothing: antialiased;\n };\n\n --paper-font-common-expensive-kerning: {\n text-rendering: optimizeLegibility;\n };\n\n --paper-font-common-nowrap: {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n };\n\n /* Material Font Styles */\n\n --paper-font-display4: {\n @apply --paper-font-common-base;\n @apply --paper-font-common-nowrap;\n\n font-size: 112px;\n font-weight: 300;\n letter-spacing: -.044em;\n line-height: 120px;\n };\n\n --paper-font-display3: {\n @apply --paper-font-common-base;\n @apply --paper-font-common-nowrap;\n\n font-size: 56px;\n font-weight: 400;\n letter-spacing: -.026em;\n line-height: 60px;\n };\n\n --paper-font-display2: {\n @apply --paper-font-common-base;\n\n font-size: 45px;\n font-weight: 400;\n letter-spacing: -.018em;\n line-height: 48px;\n };\n\n --paper-font-display1: {\n @apply --paper-font-common-base;\n\n font-size: 34px;\n font-weight: 400;\n letter-spacing: -.01em;\n line-height: 40px;\n };\n\n --paper-font-headline: {\n @apply --paper-font-common-base;\n\n font-size: 24px;\n font-weight: 400;\n letter-spacing: -.012em;\n line-height: 32px;\n };\n\n --paper-font-title: {\n @apply --paper-font-common-base;\n @apply --paper-font-common-nowrap;\n\n font-size: 20px;\n font-weight: 500;\n line-height: 28px;\n };\n\n --paper-font-subhead: {\n @apply --paper-font-common-base;\n\n font-size: 16px;\n font-weight: 400;\n line-height: 24px;\n };\n\n --paper-font-body2: {\n @apply --paper-font-common-base;\n\n font-size: 14px;\n font-weight: 500;\n line-height: 24px;\n };\n\n --paper-font-body1: {\n @apply --paper-font-common-base;\n\n font-size: 14px;\n font-weight: 400;\n line-height: 20px;\n };\n\n --paper-font-caption: {\n @apply --paper-font-common-base;\n @apply --paper-font-common-nowrap;\n\n font-size: 12px;\n font-weight: 400;\n letter-spacing: 0.011em;\n line-height: 20px;\n };\n\n --paper-font-menu: {\n @apply --paper-font-common-base;\n @apply --paper-font-common-nowrap;\n\n font-size: 13px;\n font-weight: 500;\n line-height: 24px;\n };\n\n --paper-font-button: {\n @apply --paper-font-common-base;\n @apply --paper-font-common-nowrap;\n\n font-size: 14px;\n font-weight: 500;\n letter-spacing: 0.018em;\n line-height: 24px;\n text-transform: uppercase;\n };\n\n --paper-font-code2: {\n @apply --paper-font-common-code;\n\n font-size: 14px;\n font-weight: 700;\n line-height: 20px;\n };\n\n --paper-font-code1: {\n @apply --paper-font-common-code;\n\n font-size: 14px;\n font-weight: 500;\n line-height: 20px;\n };\n\n }\n\n \n"; +document.head.appendChild(Ch.content);var Dh=document.createElement("template");Dh.setAttribute("style","display: none;");Dh.innerHTML='\n \n'; +document.head.appendChild(Dh.content);var Eh=t(['\n \n \n']);X({_template:P(Eh),is:"paper-dialog",behaviors:[Bh,Og],listeners:{"neon-animation-finish":"_onNeonAnimationFinish"},_renderOpened:function(){this.cancelAnimation();this.playAnimation("entry")},_renderClosed:function(){this.cancelAnimation();this.playAnimation("exit")},_onNeonAnimationFinish:function(){this.opened?this._finishRenderOpened():this._finishRenderClosed()}});var Fh=document.createElement("template");Fh.setAttribute("style","display: none;");Fh.innerHTML='\n\n\n\n';document.head.appendChild(Fh.content);var Gh=document.createElement("template");Gh.setAttribute("style","display: none;");Gh.innerHTML='\n \n'; +document.head.appendChild(Gh.content);var Hh=1,Ih=1,Jh=1,Kh=[Y,jg,{properties:{label:{type:String},value:{notify:!0,type:String},disabled:{type:Boolean,value:!1},invalid:{type:Boolean,value:!1,notify:!0},allowedPattern:{type:String},type:{type:String},list:{type:String},pattern:{type:String},required:{type:Boolean,value:!1},errorMessage:{type:String},charCounter:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1},alwaysFloatLabel:{type:Boolean,value:!1},autoValidate:{type:Boolean,value:!1},validator:{type:String},autocomplete:{type:String, value:"off"},autofocus:{type:Boolean,observer:"_autofocusChanged"},inputmode:{type:String},minlength:{type:Number},maxlength:{type:Number},min:{type:String},max:{type:String},step:{type:String},name:{type:String},placeholder:{type:String,value:""},readonly:{type:Boolean,value:!1},size:{type:Number},autocapitalize:{type:String,value:"none"},autocorrect:{type:String,value:"off"},autosave:{type:String},results:{type:Number},accept:{type:String},multiple:{type:Boolean},_ariaDescribedBy:{type:String,value:""}, -_ariaLabelledBy:{type:String,value:""},_inputId:{type:String,value:""}},listeners:{"addon-attached":"_onAddonAttached"},ea:{"shift+tab:keydown":"_onShiftTabDown"},hostAttributes:{tabindex:0},get l(){this.$||(this.$={});this.$.input||(this._generateInputId(),this.$.input=this.$$("#"+this._inputId));return this.$.input},get lb(){return this.l},created:function(){this.ag="date datetime datetime-local month time week file".split(" ")},attached:function(){this._updateAriaLabelledBy();!Q&&this.l&&-1!== -this.ag.indexOf(this.l.type)&&(this.alwaysFloatLabel=!0)},_appendStringWithSpace:function(a,b){a?a=a+" "+b:a=b;return a},_onAddonAttached:function(a){a=T(a).rb;if(a.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,a.id);else{var b="paper-input-add-on-"+Mh++;a.id=b;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,b)}},validate:function(){return this.l.validate()},_focusBlurHandler:function(a){Y._focusBlurHandler.call(this,a);this.focused&&!this.pb&& +_ariaLabelledBy:{type:String,value:""},_inputId:{type:String,value:""}},listeners:{"addon-attached":"_onAddonAttached"},ea:{"shift+tab:keydown":"_onShiftTabDown"},hostAttributes:{tabindex:0},get l(){this.$||(this.$={});this.$.input||(this._generateInputId(),this.$.input=this.$$("#"+this._inputId));return this.$.input},get lb(){return this.l},created:function(){this.yf="date datetime datetime-local month time week file".split(" ")},attached:function(){this._updateAriaLabelledBy();!Q&&this.l&&-1!== +this.yf.indexOf(this.l.type)&&(this.alwaysFloatLabel=!0)},_appendStringWithSpace:function(a,b){a?a=a+" "+b:a=b;return a},_onAddonAttached:function(a){a=T(a).rb;if(a.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,a.id);else{var b="paper-input-add-on-"+Ih++;a.id=b;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,b)}},validate:function(){return this.l.validate()},_focusBlurHandler:function(a){Y._focusBlurHandler.call(this,a);this.focused&&!this.pb&& this.lb&&this.lb.focus()},_onShiftTabDown:function(){var a=this.getAttribute("tabindex");this.pb=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",a);this.pb=!1},1)},_handleAutoValidate:function(){this.autoValidate&&this.validate()},updateValueAndPreserveCaret:function(a){try{var b=this.l.selectionStart;this.value=a;this.l.selectionStart=b;this.l.selectionEnd=b}catch(c){this.value=a}},_computeAlwaysFloatLabel:function(a,b){return b||a},_updateAriaLabelledBy:function(){var a= -T(this.root).querySelector("label");if(a){if(a.id)var b=a.id;else b="paper-input-label-"+Lh++,a.id=b;this._ariaLabelledBy=b}else this._ariaLabelledBy=""},_generateInputId:function(){this._inputId&&""!==this._inputId||(this._inputId="input-"+Nh++)},_onChange:function(a){this.shadowRoot&&this.fire(a.type,{sourceEvent:a},{node:this,bubbles:a.bubbles,cancelable:a.cancelable})},_autofocusChanged:function(){if(this.autofocus&&this.lb){var a=document.activeElement;a instanceof HTMLElement&&a!==document.body&& -a!==document.documentElement||this.lb.focus()}}}];var Ph={attached:function(){this.fire("addon-attached")},update:function(){}};var Qh=t(["\n \n\n [[_charCounterStr]]\n"]); -X({_template:P(Qh),is:"paper-input-char-counter",behaviors:[Ph],properties:{_charCounterStr:{type:String,value:"0"}},update:function(a){if(a.l){a.value=a.value||"";var b=a.value.toString().length.toString();a.l.hasAttribute("maxlength")&&(b+="/"+a.l.getAttribute("maxlength"));this._charCounterStr=b}}});var Rh=t(['\n \n\n \n\n
\n \n\n
\n \n \n
\n\n \n
\n\n
\n
\n
\n
\n\n
\n \n
\n']), -Sh=t(['\n\n \n\n']), -Th=P(Sh);Th.setAttribute("style","display: none;");document.head.appendChild(Th.content); -X({_template:P(Rh),is:"paper-input-container",properties:{noLabelFloat:{type:Boolean,value:!1},alwaysFloatLabel:{type:Boolean,value:!1},attrForValue:{type:String,value:"bind-value"},autoValidate:{type:Boolean,value:!1},invalid:{observer:"_invalidChanged",type:Boolean,value:!1},focused:{readOnly:!0,type:Boolean,value:!1,notify:!0},noUnfloatedLabelError:{type:Boolean,value:!1},_addons:{type:Array},_inputHasContent:{type:Boolean,value:!1},_inputSelector:{type:String,value:"input,iron-input,textarea,.paper-input-input"}, -_boundOnFocus:{type:Function,value:function(){return this._onFocus.bind(this)}},_boundOnBlur:{type:Function,value:function(){return this._onBlur.bind(this)}},_boundOnInput:{type:Function,value:function(){return this._onInput.bind(this)}},_boundValueChanged:{type:Function,value:function(){return this._onValueChanged.bind(this)}}},listeners:{"addon-attached":"_onAddonAttached","iron-input-validate":"_onIronInputValidate"},get si(){return this.attrForValue+"-changed"},get mi(){return Db(this.attrForValue)}, -get _inputElement(){return T(this).querySelector(this._inputSelector)},get bd(){return this._inputElement[this.mi]||this._inputElement.value},ready:function(){this.b=!0;this._addons||(this._addons=[]);this.addEventListener("focus",this._boundOnFocus,!0);this.addEventListener("blur",this._boundOnBlur,!0)},attached:function(){this.attrForValue?this._inputElement.addEventListener(this.si,this._boundValueChanged):this.addEventListener("input",this._onInput);this.bd&&""!=this.bd?this._handleValueAndAutoValidate(this._inputElement): +T(this.root).querySelector("label");if(a){if(a.id)var b=a.id;else b="paper-input-label-"+Hh++,a.id=b;this._ariaLabelledBy=b}else this._ariaLabelledBy=""},_generateInputId:function(){this._inputId&&""!==this._inputId||(this._inputId="input-"+Jh++)},_onChange:function(a){this.shadowRoot&&this.fire(a.type,{sourceEvent:a},{node:this,bubbles:a.bubbles,cancelable:a.cancelable})},_autofocusChanged:function(){if(this.autofocus&&this.lb){var a=document.activeElement;a instanceof HTMLElement&&a!==document.body&& +a!==document.documentElement||this.lb.focus()}}}];var Lh={attached:function(){this.fire("addon-attached")},update:function(){}};var Mh=t(["\n \n\n [[_charCounterStr]]\n"]); +X({_template:P(Mh),is:"paper-input-char-counter",behaviors:[Lh],properties:{_charCounterStr:{type:String,value:"0"}},update:function(a){if(a.l){a.value=a.value||"";var b=a.value.toString().length.toString();a.l.hasAttribute("maxlength")&&(b+="/"+a.l.getAttribute("maxlength"));this._charCounterStr=b}}});var Nh=t(['\n\n \n\n']), +Oh=P(Nh);Oh.setAttribute("style","display: none;");document.head.appendChild(Oh.content);var Ph=t(['\n \n\n \n\n
\n \n\n
\n \n \n
\n\n \n
\n\n
\n
\n
\n
\n\n
\n \n
\n']); +X({_template:P(Ph),is:"paper-input-container",properties:{noLabelFloat:{type:Boolean,value:!1},alwaysFloatLabel:{type:Boolean,value:!1},attrForValue:{type:String,value:"bind-value"},autoValidate:{type:Boolean,value:!1},invalid:{observer:"_invalidChanged",type:Boolean,value:!1},focused:{readOnly:!0,type:Boolean,value:!1,notify:!0},noUnfloatedLabelError:{type:Boolean,value:!1},_addons:{type:Array},_inputHasContent:{type:Boolean,value:!1},_inputSelector:{type:String,value:"input,iron-input,textarea,.paper-input-input"}, +_boundOnFocus:{type:Function,value:function(){return this._onFocus.bind(this)}},_boundOnBlur:{type:Function,value:function(){return this._onBlur.bind(this)}},_boundOnInput:{type:Function,value:function(){return this._onInput.bind(this)}},_boundValueChanged:{type:Function,value:function(){return this._onValueChanged.bind(this)}}},listeners:{"addon-attached":"_onAddonAttached","iron-input-validate":"_onIronInputValidate"},get pi(){return this.attrForValue+"-changed"},get ki(){return zb(this.attrForValue)}, +get _inputElement(){return T(this).querySelector(this._inputSelector)},get bd(){return this._inputElement[this.ki]||this._inputElement.value},ready:function(){this.b=!0;this._addons||(this._addons=[]);this.addEventListener("focus",this._boundOnFocus,!0);this.addEventListener("blur",this._boundOnBlur,!0)},attached:function(){this.attrForValue?this._inputElement.addEventListener(this.pi,this._boundValueChanged):this.addEventListener("input",this._onInput);this.bd&&""!=this.bd?this._handleValueAndAutoValidate(this._inputElement): this._handleValue(this._inputElement)},_onAddonAttached:function(a){this._addons||(this._addons=[]);a=a.target;-1===this._addons.indexOf(a)&&(this._addons.push(a),this.isAttached&&this._handleValue(this._inputElement))},_onFocus:function(){this._setFocused(!0)},_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},_onInput:function(a){this._handleValueAndAutoValidate(a.target)},_onValueChanged:function(a){var b=a.target;if(this.b&&(this.b=!1,void 0===b.value|| ""===b.value))return;this._handleValueAndAutoValidate(a.target)},_handleValue:function(a){var b=this.bd;b||0===b||"number"===a.type&&!a.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({l:a,value:b,invalid:this.invalid})},_handleValueAndAutoValidate:function(a){this.autoValidate&&a&&(this.invalid=!(a.validate?a.validate(this.bd):a.checkValidity()));this._handleValue(a)},_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},_invalidChanged:function(){this._addons&& this.updateAddons({invalid:this.invalid})},updateAddons:function(a){for(var b,c=0;b=this._addons[c];c++)b.update(a)},_computeInputContentClass:function(a,b,c,d,e){var f="input-content";a?(e&&(f+=" label-is-hidden"),d&&!this.noUnfloatedLabelError&&(f+=" is-invalid")):(a=this.querySelector("label"),b||e?(f+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",d?f+=" is-invalid":c&&(f+=" label-is-highlighted")):(a&&(this.$.labelAndInputContainer.style.position="relative"),d&&!this.noUnfloatedLabelError&& -(f+=" is-invalid")));c&&(f+=" focused");return f},_computeUnderlineClass:function(a,b){var c="underline";b?c+=" is-invalid":a&&(c+=" is-highlighted");return c},_computeAddOnContentClass:function(a,b){var c="add-on-content";b?c+=" is-invalid":a&&(c+=" is-highlighted");return c}});var Uh=aa(['\n \n\n \x3c!--\n If the paper-input-error element is directly referenced by an\n `aria-describedby` attribute, such as when used as a paper-input add-on,\n then applying `visibility: hidden;` to the paper-input-error element itself\n does not hide the error.\n\n For more information, see:\n https://www.w3.org/TR/accname-1.1/#mapping_additional_nd_description\n --\x3e\n
\n \n
\n'], +(f+=" is-invalid")));c&&(f+=" focused");return f},_computeUnderlineClass:function(a,b){var c="underline";b?c+=" is-invalid":a&&(c+=" is-highlighted");return c},_computeAddOnContentClass:function(a,b){var c="add-on-content";b?c+=" is-invalid":a&&(c+=" is-highlighted");return c}});var Qh=aa(['\n \n\n \x3c!--\n If the paper-input-error element is directly referenced by an\n `aria-describedby` attribute, such as when used as a paper-input add-on,\n then applying `visibility: hidden;` to the paper-input-error element itself\n does not hide the error.\n\n For more information, see:\n https://www.w3.org/TR/accname-1.1/#mapping_additional_nd_description\n --\x3e\n
\n \n
\n'], ['\n \n\n \x3c!--\n If the paper-input-error element is directly referenced by an\n \\`aria-describedby\\` attribute, such as when used as a paper-input add-on,\n then applying \\`visibility: hidden;\\` to the paper-input-error element itself\n does not hide the error.\n\n For more information, see:\n https://www.w3.org/TR/accname-1.1/#mapping_additional_nd_description\n --\x3e\n
\n \n
\n']); -X({_template:P(Uh),is:"paper-input-error",behaviors:[Ph],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(a){this._setInvalid(a.invalid)}});var Vh=t(['\n \n\n \n\n \n\n \n\n \x3c!-- Need to bind maxlength so that the paper-input-char-counter works correctly --\x3e\n \n \n \n\n \n\n \n\n \n\n \n ']); -X({is:"paper-input",_template:P(Vh),behaviors:[Oh,qg],properties:{value:{type:String},noUnfloatedLabelError:{type:Boolean,value:!1},inputRole:{type:String,value:void 0},inputAriaHaspopup:{type:String,value:void 0}},get lb(){return this.l._inputElement},listeners:{"iron-input-ready":"_onIronInputReady"},_onIronInputReady:function(){this.$.nativeInput||(this.$.nativeInput=this.$$("input"));this.l&&-1!==this.ag.indexOf(this.$.nativeInput.type)&&(this.alwaysFloatLabel=!0);this.l.bindValue&&this.$.container._handleValueAndAutoValidate(this.l)}});X({is:"paper-menu-grow-height-animation",_template:null,behaviors:[lh],configure:function(a){var b=a.node,c=b.getBoundingClientRect().height;return this.b=new KeyframeEffect(b,[{height:c/2+"px"},{height:c+"px"}],this.timingFromConfig(a))}});X({is:"paper-menu-grow-width-animation",_template:null,behaviors:[lh],configure:function(a){var b=a.node,c=b.getBoundingClientRect().width;return this.b=new KeyframeEffect(b,[{width:c/2+"px"},{width:c+"px"}],this.timingFromConfig(a))}}); -X({is:"paper-menu-shrink-width-animation",_template:null,behaviors:[lh],configure:function(a){var b=a.node,c=b.getBoundingClientRect().width;return this.b=new KeyframeEffect(b,[{width:c+"px"},{width:c-c/20+"px"}],this.timingFromConfig(a))}}); -X({is:"paper-menu-shrink-height-animation",_template:null,behaviors:[lh],configure:function(a){var b=a.node,c=b.getBoundingClientRect().height;this.setPrefixedProperty(b,"transformOrigin","0 0");return this.b=new KeyframeEffect(b,[{height:c+"px",transform:"translateY(0)"},{height:c/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(a))}});var Wh=t(['\n \n\n
\n \n
\n\n \n \n \n']), -Xh={rd:"cubic-bezier(.3,.95,.5,1)",ck:400};function Yh(){}m=Yh.prototype;m.registered=function(){this._prepKeyBindings()};m.addOwnKeyBinding=function(a,b){this._imperativeKeyBindings[a]=b;this._prepKeyBindings();this._resetKeyEventListeners()};m.removeOwnKeyBindings=function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()};m.keyboardEventMatchesKeys=function(a,b){b=mg(b);for(var c=0;c\n :host {\n display: block;\n }\n\n :host([focused]) {\n outline: none;\n }\n\n :host([hidden]) {\n display: none !important;\n }\n\n input {\n /* Firefox sets a min-width on the input, which can cause layout issues */\n min-width: 0;\n @apply --paper-input-input;\n }\n\n /* In 1.x, the is distributed to paper-input-container, which styles it.\n In 2.x the is distributed to paper-input-container, which styles\n it, but in order for this to work correctly, we need to reset some\n of the native input\'s properties to inherit (from the iron-input) */\n iron-input > input {\n @apply --paper-input-container-shared-input-style;\n font-family: inherit;\n font-weight: inherit;\n font-size: inherit;\n letter-spacing: inherit;\n word-spacing: inherit;\n line-height: inherit;\n text-shadow: inherit;\n color: inherit;\n cursor: inherit;\n }\n\n input:disabled {\n @apply --paper-input-container-input-disabled;\n }\n\n input::-webkit-outer-spin-button,\n input::-webkit-inner-spin-button {\n @apply --paper-input-container-input-webkit-spinner;\n }\n\n input::-webkit-clear-button {\n @apply --paper-input-container-input-webkit-clear;\n }\n\n input::-webkit-calendar-picker-indicator {\n @apply --paper-input-container-input-webkit-calendar-picker-indicator;\n }\n\n input::-webkit-input-placeholder {\n color: var(--paper-input-container-color, var(--secondary-text-color));\n }\n\n input:-moz-placeholder {\n color: var(--paper-input-container-color, var(--secondary-text-color));\n }\n\n input::-moz-placeholder {\n color: var(--paper-input-container-color, var(--secondary-text-color));\n }\n\n input::-ms-clear {\n @apply --paper-input-container-ms-clear;\n }\n\n input::-ms-reveal {\n @apply --paper-input-container-ms-reveal;\n }\n\n input:-ms-input-placeholder {\n color: var(--paper-input-container-color, var(--secondary-text-color));\n }\n\n label {\n pointer-events: none;\n }\n \n\n \n\n \n\n \n\n \x3c!-- Need to bind maxlength so that the paper-input-char-counter works correctly --\x3e\n \n \n \n\n \n\n \n\n \n\n \n ']); +X({is:"paper-input",_template:P(Rh),behaviors:[Kh,mg],properties:{value:{type:String},noUnfloatedLabelError:{type:Boolean,value:!1},inputRole:{type:String,value:void 0},inputAriaHaspopup:{type:String,value:void 0}},get lb(){return this.l._inputElement},listeners:{"iron-input-ready":"_onIronInputReady"},_onIronInputReady:function(){this.$.nativeInput||(this.$.nativeInput=this.$$("input"));this.l&&-1!==this.yf.indexOf(this.$.nativeInput.type)&&(this.alwaysFloatLabel=!0);this.l.bindValue&&this.$.container._handleValueAndAutoValidate(this.l)}});X({is:"paper-menu-grow-height-animation",_template:null,behaviors:[hh],configure:function(a){var b=a.node,c=b.getBoundingClientRect().height;return this.b=new KeyframeEffect(b,[{height:c/2+"px"},{height:c+"px"}],this.timingFromConfig(a))}});X({is:"paper-menu-grow-width-animation",_template:null,behaviors:[hh],configure:function(a){var b=a.node,c=b.getBoundingClientRect().width;return this.b=new KeyframeEffect(b,[{width:c/2+"px"},{width:c+"px"}],this.timingFromConfig(a))}}); +X({is:"paper-menu-shrink-width-animation",_template:null,behaviors:[hh],configure:function(a){var b=a.node,c=b.getBoundingClientRect().width;return this.b=new KeyframeEffect(b,[{width:c+"px"},{width:c-c/20+"px"}],this.timingFromConfig(a))}}); +X({is:"paper-menu-shrink-height-animation",_template:null,behaviors:[hh],configure:function(a){var b=a.node,c=b.getBoundingClientRect().height;this.setPrefixedProperty(b,"transformOrigin","0 0");return this.b=new KeyframeEffect(b,[{height:c+"px",transform:"translateY(0)"},{height:c/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(a))}});var Sh={rd:"cubic-bezier(.3,.95,.5,1)",ak:400};function Th(){}m=Th.prototype;m.registered=function(){this._prepKeyBindings()};m.addOwnKeyBinding=function(a,b){this._imperativeKeyBindings[a]=b;this._prepKeyBindings();this._resetKeyEventListeners()};m.removeOwnKeyBindings=function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()};m.keyboardEventMatchesKeys=function(a,b){b=ig(b);for(var c=0;c\n :host {\n display: inline-block;\n position: relative;\n padding: 8px;\n outline: none;\n\n @apply --paper-menu-button;\n }\n\n :host([disabled]) {\n cursor: auto;\n color: var(--disabled-text-color);\n\n @apply --paper-menu-button-disabled;\n }\n\n iron-dropdown {\n @apply --paper-menu-button-dropdown;\n }\n\n .dropdown-content {\n @apply --shadow-elevation-2dp;\n\n position: relative;\n border-radius: 2px;\n background-color: var(--paper-menu-button-dropdown-background, var(--primary-background-color));\n\n @apply --paper-menu-button-content;\n }\n\n :host([vertical-align="top"]) .dropdown-content {\n margin-bottom: 20px;\n margin-top: -10px;\n top: 10px;\n }\n\n :host([vertical-align="bottom"]) .dropdown-content {\n bottom: 10px;\n margin-bottom: -10px;\n margin-top: 20px;\n }\n\n #trigger {\n cursor: pointer;\n }\n \n\n
\n \n
\n\n \n \n \n']); +Th=X({_template:P(Uh),is:"paper-menu-button",behaviors:[jg,Y],properties:{opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},horizontalAlign:{type:String,value:"left",reflectToAttribute:!0},verticalAlign:{type:String,value:"top",reflectToAttribute:!0},dynamicAlign:{type:Boolean},horizontalOffset:{type:Number,value:0,notify:!0},verticalOffset:{type:Number,value:0,notify:!0},noOverlap:{type:Boolean},noAnimations:{type:Boolean,value:!1},ignoreSelect:{type:Boolean,value:!1},closeOnActivate:{type:Boolean, +value:!1},openAnimationConfig:{type:Object,value:function(){return[{name:"fade-in-animation",timing:{delay:100,duration:200}},{name:"paper-menu-grow-width-animation",timing:{delay:100,duration:150,easing:Sh.rd}},{name:"paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:Sh.rd}}]}},closeAnimationConfig:{type:Object,value:function(){return[{name:"fade-out-animation",timing:{duration:150}},{name:"paper-menu-shrink-width-animation",timing:{delay:100,duration:50,easing:Sh.rd}},{name:"paper-menu-shrink-height-animation", timing:{duration:200,easing:"ease-in"}}]}},allowOutsideScroll:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!0},_dropdownContent:{type:Object}},hostAttributes:{role:"group","aria-haspopup":"true"},listeners:{"iron-activate":"_onIronActivate","iron-select":"_onIronSelect"},get gd(){for(var a=T(this.$.content).getDistributedNodes(),b=0,c=a.length;b\n\n \n \x3c!-- support hybrid mode: user might be using paper-menu-button 1.x which distributes via --\x3e\n \n \n \n']), -$h=ff(HTMLElement); -X({_template:P(Zh),is:"paper-dropdown-menu",behaviors:[pg,Y,qg,ug],properties:{selectedItemLabel:{type:String,notify:!0,readOnly:!0},selectedItem:{type:Object,notify:!0,readOnly:!0},value:{type:String,notify:!0},label:{type:String},placeholder:{type:String},errorMessage:{type:String},opened:{type:Boolean,notify:!0,value:!1,observer:"_openedChanged"},allowOutsideScroll:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1,reflectToAttribute:!0},alwaysFloatLabel:{type:Boolean,value:!1},noAnimations:{type:Boolean, -value:!1},horizontalAlign:{type:String,value:"right"},verticalAlign:{type:String,value:"top"},verticalOffset:Number,dynamicAlign:{type:Boolean},restoreFocusOnClose:{type:Boolean,value:!0}},listeners:{tap:"_onTap"},ea:{"up down":"open",esc:"close"},observers:["_selectedItemChanged(selectedItem)"],_attachDom:function(a){var b=M(this);b.attachShadow({mode:"open",qk:!0,vj:a});b.shadowRoot.appendChild(a);return $h.prototype._attachDom.call(this,a)},focus:function(){this.$.input.lb.focus()},attached:function(){var a= +a.preventDefault()}});Object.keys(Sh).forEach(function(a){Th[a]=Sh[a]});var Vh=bf(HTMLElement),Wh=t(['\n \n\n \n \x3c!-- support hybrid mode: user might be using paper-menu-button 1.x which distributes via --\x3e\n \n \n \n']); +X({_template:P(Wh),is:"paper-dropdown-menu",behaviors:[lg,Y,mg,qg],properties:{selectedItemLabel:{type:String,notify:!0,readOnly:!0},selectedItem:{type:Object,notify:!0,readOnly:!0},value:{type:String,notify:!0},label:{type:String},placeholder:{type:String},errorMessage:{type:String},opened:{type:Boolean,notify:!0,value:!1,observer:"_openedChanged"},allowOutsideScroll:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1,reflectToAttribute:!0},alwaysFloatLabel:{type:Boolean,value:!1},noAnimations:{type:Boolean, +value:!1},horizontalAlign:{type:String,value:"right"},verticalAlign:{type:String,value:"top"},verticalOffset:Number,dynamicAlign:{type:Boolean},restoreFocusOnClose:{type:Boolean,value:!0}},listeners:{tap:"_onTap"},ea:{"up down":"open",esc:"close"},observers:["_selectedItemChanged(selectedItem)"],_attachDom:function(a){var b=M(this);b.attachShadow({mode:"open",nk:!0,tj:a});b.shadowRoot.appendChild(a);return Vh.prototype._attachDom.call(this,a)},focus:function(){this.$.input.lb.focus()},attached:function(){var a= this.gd;a&&a.selectedItem&&this._setSelectedItem(a.selectedItem)},get gd(){for(var a=T(this.$.content).getDistributedNodes(),b=0,c=a.length;b\n :host {\n display: inline-block;\n position: relative;\n padding: 8px;\n outline: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n cursor: pointer;\n z-index: 0;\n line-height: 1;\n\n width: 40px;\n height: 40px;\n\n /* NOTE: Both values are needed, since some phones require the value to be `transparent`. */\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n -webkit-tap-highlight-color: transparent;\n\n /* Because of polymer/2558, this style has lower specificity than * */\n box-sizing: border-box !important;\n\n @apply --paper-icon-button;\n }\n\n :host #ink {\n color: var(--paper-icon-button-ink-color, var(--primary-text-color));\n opacity: 0.6;\n }\n\n :host([disabled]) {\n color: var(--paper-icon-button-disabled-text, var(--disabled-text-color));\n pointer-events: none;\n cursor: auto;\n\n @apply --paper-icon-button-disabled;\n }\n\n :host([hidden]) {\n display: none !important;\n }\n\n :host(:hover) {\n @apply --paper-icon-button-hover;\n }\n\n iron-icon {\n --iron-icon-width: 100%;\n --iron-icon-height: 100%;\n }\n \n\n \n '], +this&&this.open()},_selectedItemChanged:function(a){var b="";a?b=a.label||a.getAttribute("label")||a.textContent.trim():b="";this.value=b;this._setSelectedItemLabel(b)},_computeMenuVerticalOffset:function(a,b){return b?b:a?-4:8},_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},_openedChanged:function(){var a=this.opened?"true":"false",b=this.gd;b&&b.setAttribute("aria-expanded",a)}});var Xh=aa(['\n \n\n \n '], ['\n \n\n \n ']); -X({is:"paper-icon-button",_template:P(ai),hostAttributes:{role:"button",tabindex:"0"},behaviors:[wh],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(a,b){var c=this.getAttribute("aria-label");c&&b!=c||this.setAttribute("aria-label",a)},registered:function(){this._template.setAttribute("strip-whitespace","")}});var bi=[pg,Y,{hostAttributes:{role:"option",tabindex:"0"}}];var ci=document.createElement("template");ci.setAttribute("style","display: none;");ci.innerHTML="\n \n"; -document.head.appendChild(ci.content);var di=t(['\n \n \n']);X({_template:P(di),is:"paper-item",behaviors:[bi]});var ei=t(["\n \n\n \n"]);X({_template:P(ei),is:"paper-listbox",behaviors:[gh],hostAttributes:{role:"listbox"}});var fi=t(['\n \n\n
\n
\n
\n
\n']); -X({_template:P(fi),is:"paper-progress",behaviors:[kh],properties:{secondaryProgress:{type:Number,value:0},secondaryRatio:{type:Number,value:0,readOnly:!0},indeterminate:{type:Boolean,value:!1,observer:"_toggleIndeterminate"},disabled:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_disabledChanged"}},observers:["_progressChanged(secondaryProgress, value, min, max, indeterminate)"],hostAttributes:{role:"progressbar"},_toggleIndeterminate:function(a){this.toggleClass("indeterminate",a,this.$.primaryProgress)}, +X({is:"paper-icon-button",_template:P(Xh),hostAttributes:{role:"button",tabindex:"0"},behaviors:[sh],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(a,b){var c=this.getAttribute("aria-label");c&&b!=c||this.setAttribute("aria-label",a)},registered:function(){this._template.setAttribute("strip-whitespace","")}});var Yh=[lg,Y,{hostAttributes:{role:"option",tabindex:"0"}}];var Zh=document.createElement("template");Zh.setAttribute("style","display: none;");Zh.innerHTML="\n \n"; +document.head.appendChild(Zh.content);var $h=t(['\n \n \n']);X({_template:P($h),is:"paper-item",behaviors:[Yh]});var ai=t(["\n \n\n \n"]);X({_template:P(ai),is:"paper-listbox",behaviors:[ch],hostAttributes:{role:"listbox"}});var bi=t(['\n \n\n
\n
\n
\n
\n']); +X({_template:P(bi),is:"paper-progress",behaviors:[gh],properties:{secondaryProgress:{type:Number,value:0},secondaryRatio:{type:Number,value:0,readOnly:!0},indeterminate:{type:Boolean,value:!1,observer:"_toggleIndeterminate"},disabled:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_disabledChanged"}},observers:["_progressChanged(secondaryProgress, value, min, max, indeterminate)"],hostAttributes:{role:"progressbar"},_toggleIndeterminate:function(a){this.toggleClass("indeterminate",a,this.$.primaryProgress)}, _transformProgress:function(a,b){a.style.transform=a.style.webkitTransform="scaleX("+b/100+")"},_mainRatioChanged:function(a){this._transformProgress(this.$.primaryProgress,a)},_progressChanged:function(a,b,c,d,e){a=this._clampValue(a);b=this._clampValue(b);var f=100*this._calcRatio(a),g=100*this._calcRatio(b);this._setSecondaryRatio(f);this._transformProgress(this.$.secondaryProgress,f);this._transformProgress(this.$.primaryProgress,g);this.secondaryProgress=a;e?this.removeAttribute("aria-valuenow"): -this.setAttribute("aria-valuenow",b);this.setAttribute("aria-valuemin",c);this.setAttribute("aria-valuemax",d)},_disabledChanged:function(a){this.setAttribute("aria-disabled",a?"true":"false")},_hideSecondaryProgress:function(a){return 0===a}});var gi=aa(['\n \n\n
\n
\n
\n
\n\n
\n '], +this.setAttribute("aria-valuenow",b);this.setAttribute("aria-valuemin",c);this.setAttribute("aria-valuemax",d)},_disabledChanged:function(a){this.setAttribute("aria-disabled",a?"true":"false")},_hideSecondaryProgress:function(a){return 0===a}});var ci=aa(['\n \n\n
\n
\n
\n
\n\n
\n '], ['\n \n\n
\n
\n
\n
\n\n
\n ']); -X({is:"paper-radio-button",_template:P(gi),behaviors:[xh],hostAttributes:{role:"radio","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},ready:function(){this._rippleContainer=this.$.radioContainer},attached:function(){be(this,function(){if("-1px"===this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()){var a=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),b=Math.floor(3*a);b%2!==a%2&&b++; -this.updateStyles({"--paper-radio-button-ink-size":b+"px"})}})},registered:function(){this._template.setAttribute("strip-whitespace","")}});var hi=t(["\n \n\n \n"]); -X({_template:P(hi),is:"paper-radio-group",behaviors:[ih],hostAttributes:{role:"radiogroup"},properties:{attrForSelected:{type:String,value:"name"},selectedAttribute:{type:String,value:"checked"},selectable:{type:String,value:"paper-radio-button"},allowEmptySelection:{type:Boolean,value:!1}},select:function(a){var b=this._valueToItem(a);if(!b||!b.hasAttribute("disabled")){if(this.selected){b=this._valueToItem(this.selected);if(this.selected==a)if(this.allowEmptySelection)a="";else{b&&(b.checked=!0); -return}b&&(b.checked=!1)}dh.select.apply(this,[a]);this.fire("paper-radio-group-changed")}},_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},_onUpKey:function(a){this._focusPrevious();a.preventDefault();this._activateFocusedItem()},_onDownKey:function(a){this._focusNext();a.preventDefault();this._activateFocusedItem()},_onLeftKey:function(a){hh._onLeftKey.apply(this,arguments);this._activateFocusedItem()},_onRightKey:function(a){hh._onRightKey.apply(this, -arguments);this._activateFocusedItem()}});var ii=t(['\n \n\n
\n
\n \n
\n\n \n\n
\n
\n
\n
\n\n \n']); -X({_template:P(ii),is:"paper-slider",behaviors:[ng,qg,wh,kh],properties:{value:{type:Number,value:0},snaps:{type:Boolean,value:!1,notify:!0},pin:{type:Boolean,value:!1,notify:!0},secondaryProgress:{type:Number,value:0,notify:!0,observer:"_secondaryProgressChanged"},editable:{type:Boolean,value:!1},immediateValue:{type:Number,value:0,readOnly:!0,notify:!0},maxMarkers:{type:Number,value:0,notify:!0},expand:{type:Boolean,value:!1,readOnly:!0},ignoreBarTouch:{type:Boolean,value:!1},dragging:{type:Boolean, -value:!1,readOnly:!0,notify:!0},transiting:{type:Boolean,value:!1,readOnly:!0},markers:{type:Array,readOnly:!0,value:function(){return[]}}},observers:["_updateKnob(value, min, max, snaps, step)","_valueChanged(value)","_immediateValueChanged(immediateValue)","_updateMarkers(maxMarkers, min, max, snaps)"],hostAttributes:{role:"slider",tabindex:0},ea:{left:"_leftKey",right:"_rightKey","down pagedown home":"_decrementKey","up pageup end":"_incrementKey"},ready:function(){this.ignoreBarTouch&&Qd(this.$.sliderBar, +X({is:"paper-radio-button",_template:P(ci),behaviors:[th],hostAttributes:{role:"radio","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},ready:function(){this._rippleContainer=this.$.radioContainer},attached:function(){Yd(this,function(){if("-1px"===this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()){var a=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),b=Math.floor(3*a);b%2!==a%2&&b++; +this.updateStyles({"--paper-radio-button-ink-size":b+"px"})}})},registered:function(){this._template.setAttribute("strip-whitespace","")}});var di=t(["\n \n\n \n"]); +X({_template:P(di),is:"paper-radio-group",behaviors:[eh],hostAttributes:{role:"radiogroup"},properties:{attrForSelected:{type:String,value:"name"},selectedAttribute:{type:String,value:"checked"},selectable:{type:String,value:"paper-radio-button"},allowEmptySelection:{type:Boolean,value:!1}},select:function(a){var b=this._valueToItem(a);if(!b||!b.hasAttribute("disabled")){if(this.selected){b=this._valueToItem(this.selected);if(this.selected==a)if(this.allowEmptySelection)a="";else{b&&(b.checked=!0); +return}b&&(b.checked=!1)}$g.select.apply(this,[a]);this.fire("paper-radio-group-changed")}},_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},_onUpKey:function(a){this._focusPrevious();a.preventDefault();this._activateFocusedItem()},_onDownKey:function(a){this._focusNext();a.preventDefault();this._activateFocusedItem()},_onLeftKey:function(a){dh._onLeftKey.apply(this,arguments);this._activateFocusedItem()},_onRightKey:function(a){dh._onRightKey.apply(this, +arguments);this._activateFocusedItem()}});var ei=t(['\n \n\n
\n
\n \n
\n\n \n\n
\n
\n
\n
\n\n \n']); +X({_template:P(ei),is:"paper-slider",behaviors:[jg,mg,sh,gh],properties:{value:{type:Number,value:0},snaps:{type:Boolean,value:!1,notify:!0},pin:{type:Boolean,value:!1,notify:!0},secondaryProgress:{type:Number,value:0,notify:!0,observer:"_secondaryProgressChanged"},editable:{type:Boolean,value:!1},immediateValue:{type:Number,value:0,readOnly:!0,notify:!0},maxMarkers:{type:Number,value:0,notify:!0},expand:{type:Boolean,value:!1,readOnly:!0},ignoreBarTouch:{type:Boolean,value:!1},dragging:{type:Boolean, +value:!1,readOnly:!0,notify:!0},transiting:{type:Boolean,value:!1,readOnly:!0},markers:{type:Array,readOnly:!0,value:function(){return[]}}},observers:["_updateKnob(value, min, max, snaps, step)","_valueChanged(value)","_immediateValueChanged(immediateValue)","_updateMarkers(maxMarkers, min, max, snaps)"],hostAttributes:{role:"slider",tabindex:0},ea:{left:"_leftKey",right:"_rightKey","down pagedown home":"_decrementKey","up pageup end":"_incrementKey"},ready:function(){this.ignoreBarTouch&&Md(this.$.sliderBar, "auto")},increment:function(){this.value=this._clampValue(this.value+this.step)},decrement:function(){this.value=this._clampValue(this.value-this.step)},_updateKnob:function(a,b,c){this.setAttribute("aria-valuemin",b);this.setAttribute("aria-valuemax",c);this.setAttribute("aria-valuenow",a);this._positionKnob(100*this._calcRatio(a))},_valueChanged:function(){this.fire("value-change",{composed:!0})},_immediateValueChanged:function(){this.dragging?this.fire("immediate-value-change",{composed:!0}):this.value= this.immediateValue},_secondaryProgressChanged:function(){this.secondaryProgress=this._clampValue(this.secondaryProgress)},_expandKnob:function(){this._setExpand(!0)},_resetKnob:function(){this.cancelDebouncer("expandKnob");this._setExpand(!1)},_positionKnob:function(a){this._setImmediateValue(this._calcStep(this._calcKnobPosition(a)));this._setRatio(100*this._calcRatio(this.immediateValue));this.$.sliderKnob.style.left=this.ratio+"%";this.dragging&&(this.i=this.ratio*this.b/100,this.translate3d(0, 0,0,this.$.sliderKnob))},_calcKnobPosition:function(a){return(this.max-this.min)*a/100+this.min},_onTrack:function(a){a.stopPropagation();switch(a.detail.state){case "start":this._trackStart(a);break;case "track":this._trackX(a);break;case "end":this._trackEnd()}},_trackStart:function(){this._setTransiting(!1);this.b=this.$.sliderBar.offsetWidth;this.i=this.g=this.c=this.ratio*this.b/100;this.s=-this.g;this.o=this.b-this.g;this.$.sliderKnob.classList.add("dragging");this._setDragging(!0)},_trackX:function(a){this.dragging|| this._trackStart(a);this.c=this.g+Math.min(this.o,Math.max(this.s,a.detail.dx*(this.ka?-1:1)));a=this._calcStep(this._calcKnobPosition(this.c/this.b*100));this._setImmediateValue(a);a=this._calcRatio(this.immediateValue)*this.b-this.i;this.translate3d(a+"px",0,0,this.$.sliderKnob)},_trackEnd:function(){var a=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;a.transform=a.webkitTransform="";this.fire("change", {composed:!0})},_knobdown:function(a){this._expandKnob();a.preventDefault();this.focus()},_bartrack:function(a){this._allowBarEvent(a)&&this._onTrack(a)},_barclick:function(a){this.b=this.$.sliderBar.offsetWidth;var b=this.$.sliderBar.getBoundingClientRect();b=(a.detail.x-b.left)/this.b*100;this.ka&&(b=100-b);var c=this.ratio;this._setTransiting(!0);this._positionKnob(b);c===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});a.preventDefault();this.focus()}, _bardown:function(a){this._allowBarEvent(a)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(a))},_knobTransitionEnd:function(a){a.target===this.$.sliderKnob&&this._setTransiting(!1)},_updateMarkers:function(a,b,c,d){d||this._setMarkers([]);b=Math.round((c-b)/this.step);b>a&&(b=a);if(0>b||!isFinite(b))b=0;this._setMarkers(Array(b))},_mergeClasses:function(a){return Object.keys(a).filter(function(b){return a[b]}).join(" ")},_getClassNames:function(){return this._mergeClasses({disabled:this.disabled, -pin:this.pin,snaps:this.snaps,yk:this.immediateValue<=this.min,expand:this.expand,dragging:this.dragging,transiting:this.transiting,editable:this.editable})},_allowBarEvent:function(a){return!this.ignoreBarTouch||a.detail.sourceEvent instanceof MouseEvent},get ka(){void 0===this.h&&(this.h="rtl"===window.getComputedStyle(this).direction);return this.h},_leftKey:function(a){this.ka?this._incrementKey(a):this._decrementKey(a)},_rightKey:function(a){this.ka?this._decrementKey(a):this._incrementKey(a)}, -_incrementKey:function(a){this.disabled||("end"===a.detail.key?this.value=this.max:this.increment(),this.fire("change"),a.preventDefault())},_decrementKey:function(a){this.disabled||("home"===a.detail.key?this.value=this.min:this.decrement(),this.fire("change"),a.preventDefault())},_changeValue:function(a){this.value=a.target.value;this.fire("change",{composed:!0})},_inputKeyDown:function(a){a.stopPropagation()},_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return vh._createRipple.call(this)}, -_focusedChanged:function(a){a&&this.ensureRipple();this.hasRipple()&&(this.fa.style.display=a?"":"none",this.fa.holdDown=a)},registered:function(){this._template.setAttribute("strip-whitespace","")}});var ji={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(a,b){return[a||b?"active":"",b?"cooldown":""].join(" ")},__activeChanged:function(a,b){this.__setAriaHidden(!a);this.__coolingDown=!a&&b},__altChanged:function(a){"loading"===a?this.alt=this.getAttribute("aria-label")||a:(this.__setAriaHidden(""===a),this.setAttribute("aria-label", -a))},__setAriaHidden:function(a){a?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},__reset:function(){this.__coolingDown=this.active=!1}};var ki=document.createElement("template");ki.setAttribute("style","display: none;");ki.innerHTML="\n \n"; -document.head.appendChild(ki.content);var li=t(['\n \n\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
\n
\n
\n
\n
\n
\n
\n
\n\n
\n
\n
\n
\n
\n
\n
\n
\n\n
\n
\n
\n
\n
\n
\n
\n
\n
\n ']); -X({_template:P(li),is:"paper-spinner",behaviors:[ji],registered:function(){this._template.setAttribute("strip-whitespace","")}});var mi=t(['\n \n\n
\n \n
\n']); -X({_template:P(mi),is:"paper-tab",behaviors:[Y,pg,sh],properties:{link:{type:Boolean,value:!1,reflectToAttribute:!0}},hostAttributes:{role:"tab"},listeners:{down:"_updateNoink",tap:"_onTap"},attached:function(){this._updateNoink()},get ji(){var a=T(this).parentNode;return!!a&&!!a.noink},_updateNoink:function(){this.noink=!!this.noink||!!this.ji},_onTap:function(a){if(this.link){var b=this.queryEffectiveChildren("a");b&&a.target!==b&&b.click()}}});var ni=t(['\n\n\n\n\n']),oi=P(ni);document.head.appendChild(oi.content);var pi=aa(['\n \n\n \n\n
\n
\n
\n \n
\n
\n\n \n'], +pin:this.pin,snaps:this.snaps,wk:this.immediateValue<=this.min,expand:this.expand,dragging:this.dragging,transiting:this.transiting,editable:this.editable})},_allowBarEvent:function(a){return!this.ignoreBarTouch||a.detail.sourceEvent instanceof MouseEvent},get ka(){void 0===this.h&&(this.h="rtl"===window.getComputedStyle(this).direction);return this.h},_leftKey:function(a){this.ka?this._incrementKey(a):this._decrementKey(a)},_rightKey:function(a){this.ka?this._decrementKey(a):this._incrementKey(a)}, +_incrementKey:function(a){this.disabled||("end"===a.detail.key?this.value=this.max:this.increment(),this.fire("change"),a.preventDefault())},_decrementKey:function(a){this.disabled||("home"===a.detail.key?this.value=this.min:this.decrement(),this.fire("change"),a.preventDefault())},_changeValue:function(a){this.value=a.target.value;this.fire("change",{composed:!0})},_inputKeyDown:function(a){a.stopPropagation()},_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return rh._createRipple.call(this)}, +_focusedChanged:function(a){a&&this.ensureRipple();this.hasRipple()&&(this.fa.style.display=a?"":"none",this.fa.holdDown=a)},registered:function(){this._template.setAttribute("strip-whitespace","")}});var fi={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(a,b){return[a||b?"active":"",b?"cooldown":""].join(" ")},__activeChanged:function(a,b){this.__setAriaHidden(!a);this.__coolingDown=!a&&b},__altChanged:function(a){"loading"===a?this.alt=this.getAttribute("aria-label")||a:(this.__setAriaHidden(""===a),this.setAttribute("aria-label", +a))},__setAriaHidden:function(a){a?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},__reset:function(){this.__coolingDown=this.active=!1}};var gi=document.createElement("template");gi.setAttribute("style","display: none;");gi.innerHTML="\n \n"; +document.head.appendChild(gi.content);var hi=t(['\n \n\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
\n
\n
\n
\n
\n
\n
\n
\n\n
\n
\n
\n
\n
\n
\n
\n
\n\n
\n
\n
\n
\n
\n
\n
\n
\n
\n ']); +X({_template:P(hi),is:"paper-spinner",behaviors:[fi],registered:function(){this._template.setAttribute("strip-whitespace","")}});var ii=t(['\n \n\n
\n \n
\n']); +X({_template:P(ii),is:"paper-tab",behaviors:[Y,lg,oh],properties:{link:{type:Boolean,value:!1,reflectToAttribute:!0}},hostAttributes:{role:"tab"},listeners:{down:"_updateNoink",tap:"_onTap"},attached:function(){this._updateNoink()},get hi(){var a=T(this).parentNode;return!!a&&!!a.noink},_updateNoink:function(){this.noink=!!this.noink||!!this.hi},_onTap:function(a){if(this.link){var b=this.queryEffectiveChildren("a");b&&a.target!==b&&b.click()}}});var ji=t(['\n\n\n\n\n']),ki=P(ji);document.head.appendChild(ki.content);var li=aa(['\n \n\n \n\n
\n
\n
\n \n
\n
\n\n \n'], ['\n \n\n \n\n
\n
\n
\n \n
\n
\n\n \n']); -X({_template:P(pi),is:"paper-tabs",behaviors:[yg,ih],properties:{noink:{type:Boolean,value:!1,observer:"_noinkChanged"},noBar:{type:Boolean,value:!1},noSlide:{type:Boolean,value:!1},scrollable:{type:Boolean,value:!1},fitContainer:{type:Boolean,value:!1},disableDrag:{type:Boolean,value:!1},hideScrollButtons:{type:Boolean,value:!1},alignBottom:{type:Boolean,value:!1},selectable:{type:String,value:"paper-tab"},autoselect:{type:Boolean,value:!1},autoselectDelay:{type:Number,value:0},altNext:{type:String, +X({_template:P(li),is:"paper-tabs",behaviors:[ug,eh],properties:{noink:{type:Boolean,value:!1,observer:"_noinkChanged"},noBar:{type:Boolean,value:!1},noSlide:{type:Boolean,value:!1},scrollable:{type:Boolean,value:!1},fitContainer:{type:Boolean,value:!1},disableDrag:{type:Boolean,value:!1},hideScrollButtons:{type:Boolean,value:!1},alignBottom:{type:Boolean,value:!1},selectable:{type:String,value:"paper-tab"},autoselect:{type:Boolean,value:!1},autoselectDelay:{type:Number,value:0},altNext:{type:String, value:""},altPrevious:{type:String,value:""},_step:{type:Number,value:10},_holdDelay:{type:Number,value:1},_leftHidden:{type:Boolean,value:!1},_rightHidden:{type:Boolean,value:!1},_previousTab:{type:Object}},hostAttributes:{role:"tablist"},listeners:{"iron-resize":"_onTabSizingChanged","iron-items-changed":"_onTabSizingChanged","iron-select":"_onIronSelect","iron-deselect":"_onIronDeselect"},ea:{"left:keyup right:keyup":"_onArrowKeyup"},created:function(){this.h=null;this.g=this.c=void 0;this.o=this._delayedActivationHandler.bind(this); this.addEventListener("blur",this._onBlurCapture.bind(this),!0)},ready:function(){this.setScrollDirection("y",this.$.tabsContainer)},detached:function(){this._cancelPendingActivation()},_noinkChanged:function(a){T(this).querySelectorAll("paper-tab").forEach(a?this._setNoinkAttribute:this._removeNoinkAttribute)},_setNoinkAttribute:function(a){a.setAttribute("noink","")},_removeNoinkAttribute:function(a){a.removeAttribute("noink")},_computeScrollButtonClass:function(a,b,c){return!b||c?"hidden":a?"not-visible": ""},_computeTabsContentClass:function(a,b){return a?"scrollable"+(b?" fit-container":""):" fit-container"},_computeSelectionBarClass:function(a,b){return a?"hidden":b?"align-bottom":""},_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},_makeString:function(a){return""+a},_onIronSelect:function(a){this._tabChanged(a.detail.item,this._previousTab);this._previousTab=a.detail.item;this.cancelDebouncer("tab-changed")}, -_onIronDeselect:function(){this.debounce("tab-changed",function(){this._tabChanged(null,this._previousTab);this._previousTab=null},1)},_activateHandler:function(){this._cancelPendingActivation();fh._activateHandler.apply(this,arguments)},_scheduleActivation:function(a,b){this.c=a;this.g=this.async(this.o,b)},_delayedActivationHandler:function(){var a=this.c;this.g=this.c=void 0;a.fire(this.activateEvent,null,{bubbles:!0,cancelable:!0})},_cancelPendingActivation:function(){void 0!==this.g&&(this.cancelAsync(this.g), -this.g=this.c=void 0)},_onArrowKeyup:function(){this.autoselect&&this._scheduleActivation(this.focusedItem,this.autoselectDelay)},_onBlurCapture:function(a){a.target===this.c&&this._cancelPendingActivation()},get ri(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(a,b){this.scrollable&&this._affectScroll(b&&-b.bj||0)},_down:function(){this.async(function(){this.kb&&(this.cancelAsync(this.kb),this.kb=null)},1)},_affectScroll:function(a){this.$.tabsContainer.scrollLeft+= -a;a=this.$.tabsContainer.scrollLeft;this._leftHidden=0===a;this._rightHidden=a===this.ri},_onLeftScrollButtonDown:function(){this._scrollToLeft();this.h=setInterval(this._scrollToLeft.bind(this),this._holdDelay)},_onRightScrollButtonDown:function(){this._scrollToRight();this.h=setInterval(this._scrollToRight.bind(this),this._holdDelay)},_onScrollButtonUp:function(){clearInterval(this.h);this.h=null},_scrollToLeft:function(){this._affectScroll(-this._step)},_scrollToRight:function(){this._affectScroll(this._step)}, +_onIronDeselect:function(){this.debounce("tab-changed",function(){this._tabChanged(null,this._previousTab);this._previousTab=null},1)},_activateHandler:function(){this._cancelPendingActivation();bh._activateHandler.apply(this,arguments)},_scheduleActivation:function(a,b){this.c=a;this.g=this.async(this.o,b)},_delayedActivationHandler:function(){var a=this.c;this.g=this.c=void 0;a.fire(this.activateEvent,null,{bubbles:!0,cancelable:!0})},_cancelPendingActivation:function(){void 0!==this.g&&(this.cancelAsync(this.g), +this.g=this.c=void 0)},_onArrowKeyup:function(){this.autoselect&&this._scheduleActivation(this.focusedItem,this.autoselectDelay)},_onBlurCapture:function(a){a.target===this.c&&this._cancelPendingActivation()},get oi(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(a,b){this.scrollable&&this._affectScroll(b&&-b.zi||0)},_down:function(){this.async(function(){this.kb&&(this.cancelAsync(this.kb),this.kb=null)},1)},_affectScroll:function(a){this.$.tabsContainer.scrollLeft+= +a;a=this.$.tabsContainer.scrollLeft;this._leftHidden=0===a;this._rightHidden=a===this.oi},_onLeftScrollButtonDown:function(){this._scrollToLeft();this.h=setInterval(this._scrollToLeft.bind(this),this._holdDelay)},_onRightScrollButtonDown:function(){this._scrollToRight();this.h=setInterval(this._scrollToRight.bind(this),this._holdDelay)},_onScrollButtonUp:function(){clearInterval(this.h);this.h=null},_scrollToLeft:function(){this._affectScroll(-this._step)},_scrollToRight:function(){this._affectScroll(this._step)}, _tabChanged:function(a,b){if(a){var c=this.$.tabsContent.getBoundingClientRect(),d=c.width,e=a.getBoundingClientRect();c=e.left-c.left;this.i={width:this._calcPercent(e.width,d),left:this._calcPercent(c,d)};if(this.noSlide||null==b)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this.i.width,this.i.left);else{var f=b.getBoundingClientRect();b=this.items.indexOf(b);a=this.items.indexOf(a);this.$.selectionBar.classList.add("expand"); a=bb?this.$.tabsContainer.scrollLeft+=b:(b+=a-this.$.tabsContainer.offsetWidth, -0\n :host {\n display: inline-block;\n @apply --layout-horizontal;\n @apply --layout-center;\n @apply --paper-font-common-base;\n }\n\n :host([disabled]) {\n pointer-events: none;\n }\n\n :host(:focus) {\n outline:none;\n }\n\n .toggle-bar {\n position: absolute;\n height: 100%;\n width: 100%;\n border-radius: 8px;\n pointer-events: none;\n opacity: 0.4;\n transition: background-color linear .08s;\n background-color: var(--paper-toggle-button-unchecked-bar-color, #000000);\n\n @apply --paper-toggle-button-unchecked-bar;\n }\n\n .toggle-button {\n position: absolute;\n top: -3px;\n left: 0;\n right: auto;\n height: 20px;\n width: 20px;\n border-radius: 50%;\n box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.6);\n transition: -webkit-transform linear .08s, background-color linear .08s;\n transition: transform linear .08s, background-color linear .08s;\n will-change: transform;\n background-color: var(--paper-toggle-button-unchecked-button-color, var(--paper-grey-50));\n\n @apply --paper-toggle-button-unchecked-button;\n }\n\n :host(:dir(rtl)) .toggle-button,\n /* Shady DOM workaround */\n :host([dir="rtl"]) .toggle-button {\n right: 0;\n left: auto;\n }\n\n .toggle-button.dragging {\n -webkit-transition: none;\n transition: none;\n }\n\n :host([checked]:not([disabled])) .toggle-bar {\n opacity: 0.5;\n background-color: var(--paper-toggle-button-checked-bar-color, var(--primary-color));\n\n @apply --paper-toggle-button-checked-bar;\n }\n\n :host([disabled]) .toggle-bar {\n background-color: #000;\n opacity: 0.12;\n }\n\n :host([checked]) .toggle-button {\n -webkit-transform: translate(16px, 0);\n transform: translate(16px, 0);\n }\n\n :host(:dir(rtl)):host([checked]) .toggle-button,\n /* Shady DOM workaround */\n :host([dir="rtl"][checked]) .toggle-button{\n -webkit-transform: translate(-16px, 0);\n transform: translate(-16px, 0);\n }\n\n /* Workaround for polymer 3 shady dom dir bug */\n :host([dir="rtl"]) {\n -webkit-transform: unset;\n transform: unset;\n }\n\n :host([checked]:not([disabled])) .toggle-button {\n background-color: var(--paper-toggle-button-checked-button-color, var(--primary-color));\n\n @apply --paper-toggle-button-checked-button;\n }\n\n :host([disabled]) .toggle-button {\n background-color: #bdbdbd;\n opacity: 1;\n }\n\n .toggle-ink {\n position: absolute;\n top: -14px;\n left: -14px;\n right: auto;\n bottom: auto;\n width: 48px;\n height: 48px;\n opacity: 0.5;\n pointer-events: none;\n color: var(--paper-toggle-button-unchecked-ink-color, var(--primary-text-color));\n\n @apply --paper-toggle-button-unchecked-ink;\n }\n\n :host([checked]) .toggle-ink {\n color: var(--paper-toggle-button-checked-ink-color, var(--primary-color));\n\n @apply --paper-toggle-button-checked-ink;\n }\n\n .toggle-container {\n display: inline-block;\n position: relative;\n width: 36px;\n height: 14px;\n /* The toggle button has an absolute position of -3px; The extra 1px\n /* accounts for the toggle button shadow box. */\n margin: 4px 1px;\n }\n\n .toggle-label {\n position: relative;\n display: inline-block;\n vertical-align: middle;\n padding-left: var(--paper-toggle-button-label-spacing, 8px);\n pointer-events: none;\n color: var(--paper-toggle-button-label-color, var(--primary-text-color));\n }\n\n /* invalid state */\n :host([invalid]) .toggle-bar {\n background-color: var(--paper-toggle-button-invalid-bar-color, var(--error-color));\n }\n\n :host([invalid]) .toggle-button {\n background-color: var(--paper-toggle-button-invalid-button-color, var(--error-color));\n }\n\n :host([invalid]) .toggle-ink {\n color: var(--paper-toggle-button-invalid-ink-color, var(--error-color));\n }\n \n\n
\n
\n
\n
\n\n
\n ']); -X({is:"paper-toggle-button",_template:P(qi),behaviors:[xh],hostAttributes:{role:"button","aria-pressed":"false",tabindex:0},properties:{},listeners:{track:"_ontrack"},__calculateIsRtl:function(){return"rtl"===window.getComputedStyle(this).direction},attached:function(){this.__calculateIsRtl()&&this.setAttribute("dir","rtl");be(this,function(){Qd(this,"pan-y")})},_ontrack:function(a){a=a.detail;"start"===a.state?this._trackStart(a):"track"===a.state?this._trackMove(a):"end"===a.state&&this._trackEnd(a)}, +0\n :host {\n display: inline-block;\n @apply --layout-horizontal;\n @apply --layout-center;\n @apply --paper-font-common-base;\n }\n\n :host([disabled]) {\n pointer-events: none;\n }\n\n :host(:focus) {\n outline:none;\n }\n\n .toggle-bar {\n position: absolute;\n height: 100%;\n width: 100%;\n border-radius: 8px;\n pointer-events: none;\n opacity: 0.4;\n transition: background-color linear .08s;\n background-color: var(--paper-toggle-button-unchecked-bar-color, #000000);\n\n @apply --paper-toggle-button-unchecked-bar;\n }\n\n .toggle-button {\n position: absolute;\n top: -3px;\n left: 0;\n right: auto;\n height: 20px;\n width: 20px;\n border-radius: 50%;\n box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.6);\n transition: -webkit-transform linear .08s, background-color linear .08s;\n transition: transform linear .08s, background-color linear .08s;\n will-change: transform;\n background-color: var(--paper-toggle-button-unchecked-button-color, var(--paper-grey-50));\n\n @apply --paper-toggle-button-unchecked-button;\n }\n\n :host(:dir(rtl)) .toggle-button,\n /* Shady DOM workaround */\n :host([dir="rtl"]) .toggle-button {\n right: 0;\n left: auto;\n }\n\n .toggle-button.dragging {\n -webkit-transition: none;\n transition: none;\n }\n\n :host([checked]:not([disabled])) .toggle-bar {\n opacity: 0.5;\n background-color: var(--paper-toggle-button-checked-bar-color, var(--primary-color));\n\n @apply --paper-toggle-button-checked-bar;\n }\n\n :host([disabled]) .toggle-bar {\n background-color: #000;\n opacity: 0.12;\n }\n\n :host([checked]) .toggle-button {\n -webkit-transform: translate(16px, 0);\n transform: translate(16px, 0);\n }\n\n :host(:dir(rtl)):host([checked]) .toggle-button,\n /* Shady DOM workaround */\n :host([dir="rtl"][checked]) .toggle-button{\n -webkit-transform: translate(-16px, 0);\n transform: translate(-16px, 0);\n }\n\n /* Workaround for polymer 3 shady dom dir bug */\n :host([dir="rtl"]) {\n -webkit-transform: unset;\n transform: unset;\n }\n\n :host([checked]:not([disabled])) .toggle-button {\n background-color: var(--paper-toggle-button-checked-button-color, var(--primary-color));\n\n @apply --paper-toggle-button-checked-button;\n }\n\n :host([disabled]) .toggle-button {\n background-color: #bdbdbd;\n opacity: 1;\n }\n\n .toggle-ink {\n position: absolute;\n top: -14px;\n left: -14px;\n right: auto;\n bottom: auto;\n width: 48px;\n height: 48px;\n opacity: 0.5;\n pointer-events: none;\n color: var(--paper-toggle-button-unchecked-ink-color, var(--primary-text-color));\n\n @apply --paper-toggle-button-unchecked-ink;\n }\n\n :host([checked]) .toggle-ink {\n color: var(--paper-toggle-button-checked-ink-color, var(--primary-color));\n\n @apply --paper-toggle-button-checked-ink;\n }\n\n .toggle-container {\n display: inline-block;\n position: relative;\n width: 36px;\n height: 14px;\n /* The toggle button has an absolute position of -3px; The extra 1px\n /* accounts for the toggle button shadow box. */\n margin: 4px 1px;\n }\n\n .toggle-label {\n position: relative;\n display: inline-block;\n vertical-align: middle;\n padding-left: var(--paper-toggle-button-label-spacing, 8px);\n pointer-events: none;\n color: var(--paper-toggle-button-label-color, var(--primary-text-color));\n }\n\n /* invalid state */\n :host([invalid]) .toggle-bar {\n background-color: var(--paper-toggle-button-invalid-bar-color, var(--error-color));\n }\n\n :host([invalid]) .toggle-button {\n background-color: var(--paper-toggle-button-invalid-button-color, var(--error-color));\n }\n\n :host([invalid]) .toggle-ink {\n color: var(--paper-toggle-button-invalid-ink-color, var(--error-color));\n }\n \n\n
\n
\n
\n
\n\n
\n ']); +X({is:"paper-toggle-button",_template:P(mi),behaviors:[th],hostAttributes:{role:"button","aria-pressed":"false",tabindex:0},properties:{},listeners:{track:"_ontrack"},__calculateIsRtl:function(){return"rtl"===window.getComputedStyle(this).direction},attached:function(){this.__calculateIsRtl()&&this.setAttribute("dir","rtl");Yd(this,function(){Md(this,"pan-y")})},_ontrack:function(a){a=a.detail;"start"===a.state?this._trackStart(a):"track"===a.state?this._trackMove(a):"end"===a.state&&this._trackEnd(a)}, _trackStart:function(){this.g=this.__calculateIsRtl();this.b=this.$.toggleBar.offsetWidth/2;this.h=this.checked;this.$.toggleButton.classList.add("dragging")},_trackMove:function(a){a=a.dx;this.c=this.g?Math.max(-this.b,Math.min(0,this.h?-this.b+a:a)):Math.min(this.b,Math.max(0,this.h?this.b+a:a));this.translate3d(this.c+"px",0,0,this.$.toggleButton);this.g?this._userActivate(this.c<-this.b/2):this._userActivate(this.c>this.b/2)},_trackEnd:function(){this.$.toggleButton.classList.remove("dragging"); -this.transform("",this.$.toggleButton)},_createRipple:function(){this._rippleContainer=this.$.toggleButton;var a=sh._createRipple();a.id="ink";a.setAttribute("recenters","");a.classList.add("circle","toggle-ink");return a},registered:function(){this._template.setAttribute("strip-whitespace","")}});var ri=t(['\n \n\n \n']); -X({_template:P(ri),is:"paper-tooltip",hostAttributes:{role:"tooltip",tabindex:-1},properties:{for:{type:String,observer:"_findTarget"},manualMode:{type:Boolean,value:!1,observer:"_manualModeChanged"},position:{type:String,value:"bottom"},fitToVisibleBounds:{type:Boolean,value:!1},offset:{type:Number,value:14},marginTop:{type:Number,value:14},animationDelay:{type:Number,value:500,observer:"_delayChange"},animationEntry:{type:String,value:""},animationExit:{type:String,value:""},animationConfig:{type:Object, +this.transform("",this.$.toggleButton)},_createRipple:function(){this._rippleContainer=this.$.toggleButton;var a=oh._createRipple();a.id="ink";a.setAttribute("recenters","");a.classList.add("circle","toggle-ink");return a},registered:function(){this._template.setAttribute("strip-whitespace","")}});var ni=t(['\n \n\n \n']); +X({_template:P(ni),is:"paper-tooltip",hostAttributes:{role:"tooltip",tabindex:-1},properties:{for:{type:String,observer:"_findTarget"},manualMode:{type:Boolean,value:!1,observer:"_manualModeChanged"},position:{type:String,value:"bottom"},fitToVisibleBounds:{type:Boolean,value:!1},offset:{type:Number,value:14},marginTop:{type:Number,value:14},animationDelay:{type:Number,value:500,observer:"_delayChange"},animationEntry:{type:String,value:""},animationExit:{type:String,value:""},animationConfig:{type:Object, value:function(){return{entry:[{name:"fade-in-animation",node:this,timing:{delay:0}}],exit:[{name:"fade-out-animation",node:this}]}}},_showing:{type:Boolean,value:!1}},listeners:{webkitAnimationEnd:"_onAnimationEnd"},get target(){var a=T(this).parentNode,b=T(this).getOwnerRoot(),c;this.for?c=T(b).querySelector("#"+this.for):c=a.nodeType==Node.DOCUMENT_FRAGMENT_NODE?b.host:a;return c},attached:function(){this._findTarget()},detached:function(){this.manualMode||this._removeListeners()},playAnimation:function(a){"entry"=== a?this.show():"exit"===a&&this.hide()},cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},show:function(){if(!this._showing){if(""===T(this).textContent.trim()){for(var a=!0,b=T(this).getEffectiveChildNodes(),c=0;c\n #bar-chart {\n height: 360px;\n width: 600px;\n }\n\n\n\n\n';si=xi}wi=si;var yi="false_negative_rate false_positive_rate true_positive_rate true_negative_rate positive_rate negative_rate".split(" ");function zi(a){return a.startsWith("post_export_metrics/")?a.slice(20):a.startsWith("fairness_indicators_metrics/")?a.slice(28):a}function Ai(a){for(var b=0;b");a.evalName&&(b+="Eval"+a.evalName+"");b+="Metric"+zi(a.sa)+"";b+="Value"+a.value.toFixed(5)+"";a.upperBound&&a.lowerBound&&(b+="Confidence Interval ("+ -(a.upperBound.toFixed(5)+", "+a.lowerBound.toFixed(5)+")"));a.ig&&(b+="Example Count"+a.ig+"");return b+""})}function Ei(a){a=parseInt(a.slice(1),16);return"#"+(Math.min(Math.max((a&255)-80,0),255)|Math.min(Math.max((a>>8&255)-80,0),255)<<8|Math.min(Math.max((a>>16)-80,0),255)<<16).toString(16)}function Fi(){return Q.call(this)||this}x(Fi,Q);m=Fi.prototype; +this.unlisten(this.b,"tap","hide"));this.unlisten(this.$.tooltip,"animationend","_onAnimationEnd");this.unlisten(this,"mouseenter","hide")}});var oi,pi;if(void 0===oi){var ti=document.createElement("template");ti.innerHTML='\n\n\n\n\n\n\n';oi=ti}pi=oi;var ui="false_negative_rate false_positive_rate true_positive_rate true_negative_rate positive_rate negative_rate".split(" ");function vi(a){return a.startsWith("post_export_metrics/")?a.slice(20):a.startsWith("fairness_indicators_metrics/")?a.slice(28):a}function wi(a){for(var b=0;b");a.evalName&&(b+="Eval"+a.evalName+"");b+="Metric"+vi(a.sa)+"";b+="Value"+a.value.toFixed(5)+"";a.upperBound&&a.lowerBound&&(b+="Confidence Interval ("+ +(a.upperBound.toFixed(5)+", "+a.lowerBound.toFixed(5)+")"));a.gg&&(b+="Example Count"+a.gg+"");return b+""})}function Ai(a){a=parseInt(a.slice(1),16);return"#"+(Math.min(Math.max((a&255)-80,0),255)|Math.min(Math.max((a>>8&255)-80,0),255)<<8|Math.min(Math.max((a>>16)-80,0),255)<<16).toString(16)}function Bi(){return Q.call(this)||this}A(Bi,Q);m=Bi.prototype; m.connectedCallback=function(){Q.prototype.connectedCallback.call(this);this.isAttached_=!0}; m.initializePlotGraph_=function(a,b,c,d,e,f,g,h,k){a&&c&&d&&e&&h&&(!this.evalComparison_()||f&&g)&&(d=[e].concat(w(d)),d.filter(function(l){return!a.find(function(n){return n.slice==l})}).length||(this.evalComparison_()&&a.forEach(function(l){if(!b.find(function(p){return p.slice==l.slice})){var n={slice:l.slice,sliceValue:l.sliceValue,metrics:Object.keys(l.metrics).reduce(function(p,q){p[q]=NaN;return p},{})};b.push(n)}}),c=this.createD3Data_(a,b,c,d,e,f,g),d=this.buildGraphConfig_(c),this.drawGraph_(c, e,d,k)))}; -m.createD3Data_=function(a,b,c,d,e,f,g){function h(p,q,r){var v=l.getMetricBounds_(p.metrics[r]);return{ca:p.slice,tb:p.sliceValue,evalName:q,sa:r,value:tfma.CellRenderer.maybeExtractBoundedValue(p.metrics[r]),upperBound:v.min,lowerBound:v.max,ig:p.metrics["post_export_metrics/example_count"]}}function k(p){return{ca:p.length?p[0].ca:"",tb:p.length?p[0].tb:"",evalName:p.length?p[0].evalName:"",ab:p}}var l=this,n=[];d.forEach(function(p){var q=a.find(function(C){return C.slice==p}),r=l.evalComparison_()?b.find(function(C){return C.slice== +m.createD3Data_=function(a,b,c,d,e,f,g){function h(p,q,r){var v=l.getMetricBounds_(p.metrics[r]);return{ca:p.slice,tb:p.sliceValue,evalName:q,sa:r,value:tfma.CellRenderer.maybeExtractBoundedValue(p.metrics[r]),upperBound:v.min,lowerBound:v.max,gg:p.metrics["post_export_metrics/example_count"]}}function k(p){return{ca:p.length?p[0].ca:"",tb:p.length?p[0].tb:"",evalName:p.length?p[0].evalName:"",ab:p}}var l=this,n=[];d.forEach(function(p){var q=a.find(function(C){return C.slice==p}),r=l.evalComparison_()?b.find(function(C){return C.slice== p}):void 0;if(!c.filter(function(C){return void 0===q.metrics[C]}).length){var v=[],z=[];c.forEach(function(C){v.push(h(q,f,C));l.evalComparison_()&&z.push(h(r,g,C))});n.push(k(v));l.evalComparison_()&&n.push(k(z))}});n.sort(this.sortD3_(e));return n}; m.buildGraphConfig_=function(a){var b=this,c=d3.scaleBand().domain(a.map(function(l){return b.evalComparison_()?l.tb+"-"+l.evalName:l.tb})).rangeRound([40,590]).padding(.2),d=a.reduce(function(l,n){n.ab.forEach(function(p){return l.add(p.sa)});return l},new Set);d=d3.scaleBand().domain(Array.from(d)).rangeRound([0,c.bandwidth()]).paddingInner(.1);var e=0,f=0;a.forEach(function(l){l.ab.forEach(function(n){e=d3.min([e,n.value,n.lowerBound]);f=d3.max([f,n.value,n.upperBound])})});var g=d3.scaleLinear().domain([e, -f]).nice().rangeRound([340,10]);a=d3.scaleOrdinal().range(Bi);var h=d3.scaleOrdinal().range(Ci),k=d3.scaleOrdinal().range(Bi.map(Ei));return{slicesX:c,metricsX:d,y:g,baselineColor:h,metricsColor:a,confidenceIntervalColor:k,configureXAxis:function(l){return l.attr("transform","translate(0,340)").call(d3.axisBottom(c).tickSizeOuter(0)).selectAll("Text").each(function(n,p,q){for(;q[p].getComputedTextLength()>c.bandwidth();)q[p].textContent=q[p].textContent.slice(0,-4)+"..."})},configureYAxis:function(l){return l.attr("transform", +f]).nice().rangeRound([340,10]);a=d3.scaleOrdinal().range(xi);var h=d3.scaleOrdinal().range(yi),k=d3.scaleOrdinal().range(xi.map(Ai));return{slicesX:c,metricsX:d,y:g,baselineColor:h,metricsColor:a,confidenceIntervalColor:k,configureXAxis:function(l){return l.attr("transform","translate(0,340)").call(d3.axisBottom(c).tickSizeOuter(0)).selectAll("Text").each(function(n,p,q){for(;q[p].getComputedTextLength()>c.bandwidth();)q[p].textContent=q[p].textContent.slice(0,-4)+"..."})},configureYAxis:function(l){return l.attr("transform", "translate(40,0)").call(d3.axisLeft(g))}}}; m.drawGraph_=function(a,b,c,d){var e=this,f=d3.select(this.$["bar-chart"]);f.html("");a=f.append("g").attr("id","bars").selectAll("g").data(a).enter().append("g").attr("transform",function(g){return"translate("+c.slicesX(e.evalComparison_()?g.tb+"-"+g.evalName:g.tb)+",0)"});a.selectAll("rect").data(function(g){return g.ab}).enter().append("rect").attr("x",function(g){return c.metricsX(g.sa)}).attr("y",function(g){return isNaN(g.value)?c.y(0):c.y(g.value)}).attr("width",c.metricsX.bandwidth()).attr("height", function(g){return isNaN(g.value)?0:c.y(0)-c.y(g.value)}).attr("fill",function(g){return g.ca===b?c.baselineColor(g.sa):c.metricsColor(g.sa)}).on("mouseover",d?d.show:function(){}).on("mouseout",d?d.hide:function(){}).on("click",function(g){e.dispatchEvent(new CustomEvent(tfma.Event.SELECT,{detail:g.ca,composed:!0,bubbles:!0}))});a.selectAll("line").data(function(g){return g.ab}).enter().append("line").attr("x1",function(g){return c.metricsX(g.sa)+c.metricsX.bandwidth()/2}).attr("y1",function(g){return isNaN(g.upperBound)? c.y(0):c.y(g.upperBound)}).attr("x2",function(g){return c.metricsX(g.sa)+c.metricsX.bandwidth()/2}).attr("y2",function(g){return isNaN(g.lowerBound)?c.y(0):c.y(g.lowerBound)}).attr("stroke",function(g){return c.confidenceIntervalColor(g.sa)}).attr("stroke-width",1);f.append("g").attr("id","xaxis").call(c.configureXAxis);f.append("g").attr("id","yaxis").call(c.configureYAxis);d&&f.call(d)}; m.getMetricBounds_=function(a){var b=0,c=0;tfma.CellRenderer.isBoundedValue(a)&&(b=a.upperBound,c=a.lowerBound);return{min:c,max:b}};m.evalComparison_=function(){return this.dataCompare&&0\n #metric-and-slice-selector-title {\n padding: 16px 16px 0 16px;\n /* We set font color to black because the Fairness widget background is always white.\n * Without explicitly setting it, the font color is selected by the Jupyter environment theme.\n */\n color: black\n }\n\n paper-listbox {\n width: 350px;\n }\n\n .metric-name {\n max-width: 290px;\n overflow: hidden;\n text-overflow: ellipsis;\n display: block;\n }\n\n
\n Select metrics to display:\n
\n\n\n \n \n Select all\n \n \n\n\n\n \n\n\n\n';Gi= -Ii}Hi=Gi;function Ji(){return Q.call(this)||this}x(Ji,Q);m=Ji.prototype;m.availableMetricsChanged_=function(a){a?this.selectedMetrics=a.slice(0,1):this.selectedMetrics=[]};m.computedMetricsSelectedStatus_=function(a){var b=this,c=[];if(!a)return c;a.forEach(function(d){c.push({metricsName:d,selected:b.selectedMetrics&&b.selectedMetrics.includes(d)})});return c};m.stripPrefix=function(a){return zi(a)}; +x.Object.defineProperties(Bi,{is:{configurable:!0,enumerable:!0,get:function(){return"fairness-bounded-value-bar-chart"}},template:{configurable:!0,enumerable:!0,get:function(){return pi}},properties:{configurable:!0,enumerable:!0,get:function(){return{data:{type:Array},dataCompare:{type:Array},evalName:{type:String},evalNameCompare:{type:String},metrics:{type:Array},baseline:{type:String},slices:{type:Array,notify:!0},isAttached_:{type:Boolean,value:!1},tip_:{value:zi}}}},observers:{configurable:!0, +enumerable:!0,get:function(){return["initializePlotGraph_(data, dataCompare, metrics, slices, baseline, evalName, evalNameCompare, isAttached_, tip_)"]}}});customElements.define("fairness-bounded-value-bar-chart",Bi);var Ci,Di; +if(void 0===Ci){var Ei=document.createElement("template");Ei.innerHTML='\n\n\n\n
\n Select metrics to display:\n
\n\n\n \n \n Select all\n \n \n\n\n\n \n\n\n\n';Ci= +Ei}Di=Ci;function Fi(){return Q.call(this)||this}A(Fi,Q);m=Fi.prototype;m.availableMetricsChanged_=function(a){a?this.selectedMetrics=a.slice(0,1):this.selectedMetrics=[]};m.computedMetricsSelectedStatus_=function(a){var b=this,c=[];if(!a)return c;a.forEach(function(d){c.push({metricsName:d,selected:b.selectedMetrics&&b.selectedMetrics.includes(d)})});return c};m.stripPrefix=function(a){return vi(a)}; m.onSelectAllCheckedChanged_=function(a){a.detail.value?this.selectedMetrics=this.availableMetrics.slice():this.selectedMetrics=[]};m.onCheckedChanged_=function(){if(this.availableMetrics){var a=this.selectedMetrics.slice(),b=this.availableMetrics.slice();JSON.stringify(a.sort())==JSON.stringify(b.sort())?this.$.selectAll.checked=!0:this.$.selectAll.checked=!1;this.selectedMetrics=a.slice()}}; -y.Object.defineProperties(Ji,{is:{configurable:!0,enumerable:!0,get:function(){return"fairness-metric-and-slice-selector"}},template:{configurable:!0,enumerable:!0,get:function(){return Hi}},properties:{configurable:!0,enumerable:!0,get:function(){return{availableMetrics:{type:Array,observer:Ji.prototype.availableMetricsChanged_},selectedMetrics:{type:Array,notify:!0},metricsSelectedStatus_:{type:Array,computed:"computedMetricsSelectedStatus_(availableMetrics, selectedMetrics.length)"}}}}}); -customElements.define("fairness-metric-and-slice-selector",Ji);var Ki,Li; -if(void 0===Ki){var Mi=document.createElement("template");Mi.innerHTML='\n\n\n\n\n
\n [[metric]]\n \n \n
\n
\n \u2003\n \n \n \n \n
\n\n\n\n\n\n
\n Config for [[metric]]\n
\n
\n
\n Slices to Compare\n
\n \n \n \n
\n
\n
\n Update\n
\n\n\n\n';Ki= -Mi}Li=Ki;var Ni,Oi; -if(void 0===Ni){var Pi=document.createElement("template");Pi.innerHTML='\n\n\n\n
\n \n
\n\n\n';Ni= -Pi}Oi=Ni;function Qi(){return Q.apply(this,arguments)||this}x(Qi,Q);m=Qi.prototype;m.evalComparison_=function(){return this.dataCompare&&0\n .header {\n font-weight: 600;\n padding: 20px 0 8px 30px;\n color: #666;\n }\n #settings-icon {\n padding: 0 12px;\n }\n .check {\n width:20px;\n height:20px;\n border:1px solid grey;\n margin-right: 6px;\n }\n .check iron-icon{\n display: none;\n width: 20px;\n height: 20px;\n margin-top: -6px;\n }\n .iron-selected .check iron-icon {\n display: inline-flex;\n }\n #table {\n margin-top: 10px;\n width: 1000px;\n }\n .config {\n margin: 0 16px;\n }\n .config > span {\n padding: 0 12px;\n }\n\n
\n [[metric]]\n \n \n
\n
\n \u2003\n \n \n \n \n
\n\n\n\n\n\n
\n Config for [[metric]]\n
\n
\n
\n Slices to Compare\n
\n \n \n \n
\n
\n
\n Update\n
\n\n\n\n';Gi= +Ii}Hi=Gi;var Ji,Ki; +if(void 0===Ji){var Li=document.createElement("template");Li.innerHTML='\n\n\n\n
\n \n
\n\n\n';Ji= +Li}Ki=Ji;function Mi(){return Q.apply(this,arguments)||this}A(Mi,Q);m=Mi.prototype;m.evalComparison_=function(){return this.dataCompare&&0parseFloat(a)}; -y.Object.defineProperties(Qi,{is:{configurable:!0,enumerable:!0,get:function(){return"fairness-metrics-table"}},template:{configurable:!0,enumerable:!0,get:function(){return Oi}},properties:{configurable:!0,enumerable:!0,get:function(){return{metrics:{type:Array,value:function(){return[]}},data:{type:Array,value:function(){return[]}},dataCompare:{type:Array,value:function(){return[]}},evalName:{type:String,value:""},evalNameCompare:{type:String,value:""},exampleCounts:{type:Array,value:function(){return[]}}, -headerRow_:{type:Array,computed:"populateHeaderRow_(metrics, evalName, evalNameCompare)"},tableData_:{type:Array,computed:"computeTableData_(data, dataCompare, metrics, evalName, evalNameCompare)"}}}}});customElements.define("fairness-metrics-table",Qi);function Ri(){return Q.call(this)||this}x(Ri,Q);m=Ri.prototype;m.computeThresholds_=function(a,b){if(!a||!b)return[];var c=new Set;a.forEach(function(d){Object.keys(d.metrics).forEach(function(e){e.startsWith(b)&&(e=Ai(e))&&c.add(e.threshold)})});return Array.from(c)};m.initializeSelectedThresholds_=function(a){this.selectedThresholds_=[];a.base.length&&this.$.thresholdsList.select(a.base[Math.floor(a.base.length/2)])}; +x.Object.defineProperties(Mi,{is:{configurable:!0,enumerable:!0,get:function(){return"fairness-metrics-table"}},template:{configurable:!0,enumerable:!0,get:function(){return Ki}},properties:{configurable:!0,enumerable:!0,get:function(){return{metrics:{type:Array,value:function(){return[]}},data:{type:Array,value:function(){return[]}},dataCompare:{type:Array,value:function(){return[]}},evalName:{type:String,value:""},evalNameCompare:{type:String,value:""},exampleCounts:{type:Array,value:function(){return[]}}, +headerRow_:{type:Array,computed:"populateHeaderRow_(metrics, evalName, evalNameCompare)"},tableData_:{type:Array,computed:"computeTableData_(data, dataCompare, metrics, evalName, evalNameCompare)"}}}}});customElements.define("fairness-metrics-table",Mi);function Ni(){return Q.call(this)||this}A(Ni,Q);m=Ni.prototype;m.computeThresholds_=function(a,b){if(!a||!b)return[];var c=new Set;a.forEach(function(d){Object.keys(d.metrics).forEach(function(e){e.startsWith(b)&&(e=wi(e))&&c.add(e.threshold)})});return Array.from(c)};m.initializeSelectedThresholds_=function(a){this.selectedThresholds_=[];a.base.length&&this.$.thresholdsList.select(a.base[Math.floor(a.base.length/2)])}; m.thresholdsMenuOpenedChanged_=function(a){var b=this;this.selectedThresholds_&&!a&&setTimeout(function(){var c=0\n .config {\n margin: 0 16px;\n }\n .config > span {\n padding: 0 12px;\n }\n\n\n\n
\n \n \n \n \n \n \n \n
\n\n\n\n';Si= -Ui}Ti=Si;var Vi,Wi; -if(void 0===Vi){var Xi=document.createElement("template");Xi.innerHTML='\n\n\n\n\n

\n Note: Some feature slices with smaller example count might have been omitted because of\n privacy concerns.\n Click here to learn\n more.\n

\n\n

Privacy: min-slice-size

\n \n
\n\n\n\n';Vi= -Xi}Wi=Vi;function Yi(){return Q.call(this)||this}x(Yi,Q);Yi.prototype.openDialog_=function(){this.$["privacy-dialog"].open()};y.Object.defineProperties(Yi,{is:{configurable:!0,enumerable:!0,get:function(){return"fairness-privacy-container"}},template:{configurable:!0,enumerable:!0,get:function(){return Wi}},properties:{configurable:!0,enumerable:!0,get:function(){return{omittedSlices:{type:Array}}}}});customElements.define("fairness-privacy-container",Yi);function Zi(){return Q.call(this)||this}x(Zi,Q);Zi.prototype.slicesChanged_=function(a){a&&a.length?a.includes("Overall")?this.baseline_="Overall":this.baseline_=a[0]:this.baseline_=void 0};Zi.prototype.computeSlices_=function(a){if(a)return a.filter(function(b){return!b.metrics.__ERROR__}).map(function(b){return b.slice}).sort(function(b,c){return 0==b.localeCompare("Overall")?-1:0==c.localeCompare("Overall")?1:b.localeCompare(c)})}; -Zi.prototype.computeOmittedSlices_=function(a){return a?a.filter(function(b){return b.metrics.__ERROR__}).map(function(b){return b.slice}):[]}; -y.Object.defineProperties(Zi,{is:{configurable:!0,enumerable:!0,get:function(){return"fairness-metrics-board"}},template:{configurable:!0,enumerable:!0,get:function(){return Ti}},properties:{configurable:!0,enumerable:!0,get:function(){return{data:{type:Array},evalName:{type:String},dataCompare:{type:Array},evalNameCompare:{type:String},weightColumn:{type:String},metrics:{type:Array},baseline_:{type:String,value:"Overall"},slices_:{type:Array,computed:"computeSlices_(data)",observer:Zi.prototype.slicesChanged_}, -omittedSlices_:{type:Array,computed:"computeOmittedSlices_(data)",value:[]}}}}});customElements.define("fairness-metrics-board",Zi);var $i,aj; -if(void 0===$i){var bj=document.createElement("template");bj.innerHTML='\n\n\n\n\n
\n
\n \n \n \n \n \n \n \n \n \n \n \n
\n \n \n \n \n
\n\n\n';$i= -bj}aj=$i;function cj(){function a(){var b=Q.call(this)||this;b.addEventListener("select",function(c){b.handleSelect_(c)});return b}x(a,Q);a.prototype.handleSelect_=function(b){var c=b.path&&b.path[0];if(c){if("TFMA-METRICS-TABLE"==c.tagName){b=c.selection[0].row;var d=c.data.getDataTable()[b][0]}else if("TFMA-SLICE-OVERVIEW"==c.tagName||"FAIRNESS-BOUNDED-VALUE-BAR-CHART"==c.tagName)d=b.detail;d&&(d=d.split(":"),this.dispatchEvent(new CustomEvent("tfma-event",{detail:{type:"slice-selected",detail:{sliceName:d[0], -sliceValue:d[1]}},bubbles:!0,composed:!0})))}};return a};var dj=cj();function ej(){return dj.call(this)||this}x(ej,dj);m=ej.prototype;m.slicingMetricsChanged_=function(a){a&&tfma.Data.flattenMetrics(a,"metrics");this.availableMetricsNames_=this.computeAvailableMetricsNames_(a);this.updateSelectableMetrics_(this.availableMetricsNames_)};m.slicingMetricsCompareChanged_=function(a){a&&tfma.Data.flattenMetrics(a,"metrics")}; -m.computeAvailableMetricsNames_=function(a){if(!a)return[];var b=new Set;a.forEach(function(c){Object.keys(c.metrics).forEach(function(d){b.add(d)})});return w(b).concat().filter(function(c){if(Ai(c))return!0;c=a[0].metrics[c];return void 0!==c&&("number"===typeof c||tfma.CellRenderer.isBoundedValue(c)||tfma.CellRenderer.isRatioValue(c))})}; -m.updateSelectableMetrics_=function(a){function b(e){return Array.from(e.entries()).map(function(f){return f[0]})}var c=new Set,d=new Set;a.forEach(function(e){var f=Ai(e);f?c.add(f.name):d.add(e)});this.selectableMetrics_=w(b(c).sort(function(e,f){return e.localeCompare(f)})).concat(w(b(d).sort(function(e,f){return e.localeCompare(f)})))};m.hideRunSelector_=function(a,b){return a||!b.length}; -y.Object.defineProperties(ej,{is:{configurable:!0,enumerable:!0,get:function(){return"fairness-nb-container"}},template:{configurable:!0,enumerable:!0,get:function(){return aj}},properties:{configurable:!0,enumerable:!0,get:function(){return{slicingMetrics:{type:Array,observer:ej.prototype.slicingMetricsChanged_},evalName:{type:String},slicingMetricsCompare:{type:Array,observer:ej.prototype.slicingMetricsCompareChanged_},evalNameCompare:{type:String},availableEvaluationRuns:{type:Array,value:[]}, -hideSelectEvalRunDropDown:{type:Boolean,value:!1},availableMetricsNames_:{type:Array},selectableMetrics_:{type:Array},selectedMetrics_:{type:Array},weightColumn:{type:String,value:"totalWeightedExamples"},selectedEvaluationRun:{type:String,notify:!0}}}}});customElements.define("fairness-nb-container",ej);var fj,gj; -if(void 0===fj){var hj=document.createElement("template");hj.innerHTML='\n\n\n\n\n
\n \n \n\n \n
\n\n\n';fj= -hj}gj=fj;function ij(){var a=this;this.port=jj.port1;this.id=0;this.b=new Map;this.listeners=new Map;this.port.addEventListener("message",function(b){return a.onMessage(b)})}m=ij.prototype;m.listen=function(a,b){this.listeners.set(a,b)};m.unlisten=function(a){this.listeners.delete(a)}; -m.onMessage=function(a){return Fa(this,function c(){var d,e,f,g,h,k,l=this,n,p,q,r,v,z,C,H,G,E;return Aa(c,function(J){switch(J.b){case 1:d=JSON.parse(a.data);e=d.type;f=d.id;g=d.payload;h=d.error;if(k=d.isReply){if(!l.b.has(f))return J.return();n=l.b.get(f);p=n.resolve;q=n.reject;l.b.delete(f);h?q(Error(h)):p(g);return J.return()}v=r=null;if(!l.listeners.has(e)){J.b=2;break}z=l.listeners.get(e);J.h=3;return sa(J,z(g),5);case 5:r=C=J.s;J.b=2;J.h=0;break;case 3:v=H=ta(J);case 2:G={},E=(G.type=e,G.id= -f,G.payload=r,G.error=v,G.isReply=!0,G),l.postMessage(E),J.b=0}})})};m.postMessage=function(a){this.port.postMessage(JSON.stringify(a))};m.sendMessage=function(a,b){var c=this,d=this.id++;this.postMessage({type:a,id:d,xk:b,error:null,tk:!1});return new Promise(function(e,f){c.b.set(d,{resolve:e,reject:f})})};window.parent||setTimeout(function(){throw Error("The library must run within a TensorBoard iframe-based plugin.");});var jj=new MessageChannel,kj=new ij;jj.port1.start();window.parent.postMessage("experimental.bootstrap","*",[jj.port2]);var lj=kj.sendMessage.bind(kj),mj=kj.listen.bind(kj);kj.unlisten.bind(kj);function nj(){return Fa(this,function b(){return Aa(b,function(c){return c.return(lj("experimental.GetURLPluginData"))})})};function oj(){return Fa(this,function b(){return Aa(b,function(c){return c.return(lj("experimental.GetRuns"))})})};var pj=cj();function qj(){var a=pj.call(this)||this;nj().then(function(b){a.evaluationOutputPath_=b.evaluation_output_path;void 0==a.evaluationOutputPath_&&(oj().then(function(c){a.loadEvaluationRuns(c)}),mj("experimental.RunsChanged",function(c){return a.loadEvaluationRuns(c)}))});return a}x(qj,pj);qj.prototype.loadEvaluationRuns=function(a){this.evaluationRuns_=a;void 0!==this.evaluationRuns_&&this.evaluationRuns_.length&&!a.includes(this.selectedEvaluationRun_)&&(this.selectedEvaluationRun_=this.evaluationRuns_[0])}; -qj.prototype.runChanged_=function(a){var b=this;fetch("./get_evaluation_result?run="+a).then(function(c){return c.json()}).then(function(c){b.slicingMetrics_=c})};qj.prototype.evaluationOutputPathChanged_=function(a){var b=this;fetch("./get_evaluation_result_from_remote_path?evaluation_output_path="+a).then(function(c){return c.json()}).then(function(c){b.slicingMetrics_=c})};qj.prototype.computeHideSelectEvalRunDropDown_=function(a){return a?!0:!1}; -y.Object.defineProperties(qj,{is:{configurable:!0,enumerable:!0,get:function(){return"fairness-tensorboard-container"}},template:{configurable:!0,enumerable:!0,get:function(){return gj}},properties:{configurable:!0,enumerable:!0,get:function(){return{evaluationOutputPath_:{type:String,observer:qj.prototype.evaluationOutputPathChanged_},evaluationRuns_:{type:Array,value:[]},hideSelectEvalRunDropDown_:{type:Boolean,computed:"computeHideSelectEvalRunDropDown_(evaluationOutputPath_)"},selectedEvaluationRun_:{type:String, -observer:qj.prototype.runChanged_},slicingMetrics_:{type:Array,notify:!0,value:[]}}}}});customElements.define("fairness-tensorboard-container",qj);var rj,sj;if(void 0===rj){var tj=document.createElement("template");tj.innerHTML='\n\n\n\n\n\n\n';rj=tj}sj=rj;var uj,vj;if(void 0===uj){var wj=document.createElement("template");wj.innerHTML='\n\n\n\n\n\n\n';uj=wj}vj=uj;function xj(){return Q.call(this)||this}x(xj,Q);xj.prototype.connectedCallback=function(){Q.prototype.connectedCallback.call(this);this.resizeObserver_&&this.resizeObserver_.observe(this.$.chart)};xj.prototype.disconnectedCallback=function(){Q.prototype.disconnectedCallback.call(this);this.resizeObserver_&&this.resizeObserver_.unobserve(this.$.chart)}; -y.Object.defineProperties(xj,{is:{configurable:!0,enumerable:!0,get:function(){return"tfma-google-chart-wrapper"}},template:{configurable:!0,enumerable:!0,get:function(){return vj}},properties:{configurable:!0,enumerable:!0,get:function(){return{data:{type:Array},options:{type:Object},type:{type:String},resizeObserver_:{type:Object,value:function(){return"ResizeObserver"in window?new ResizeObserver(function(a){a.forEach(function(b){b.target.redraw()})}):null}}}}}}); -customElements.define("tfma-google-chart-wrapper",xj);function yj(){return Q.call(this)||this}x(yj,Q); -yj.prototype.computePlotData_=function(a){var b=[["Threshold","Accuracy",{type:"string",role:"tooltip"},"Precision",{type:"string",role:"tooltip"},"Recall",{type:"string",role:"tooltip"},"F1",{type:"string",role:"tooltip"}]];a.forEach(function(c){function d(l,n){return l+": "+n.toFixed(5)+", threshold: "+e.toFixed(5)}var e=Math.max(0,Math.min(1,c.threshold||0)),f=tfma.CellRenderer.extractFloatValue(c,"truePositives"),g=tfma.CellRenderer.extractFloatValue(c,"trueNegatives"),h=tfma.CellRenderer.extractFloatValue(c, +"refreshSelectableSlices_(baseline, slices, configSelectedSlices_.length)","initializeSelectedThresholds_(thresholds.*)"]}}});customElements.define("fairness-metric-summary",Ni);var Oi,Pi; +if(void 0===Oi){var Qi=document.createElement("template");Qi.innerHTML='\n\n\n\n\n\n
\n \n \n \n \n \n \n \n
\n\n\n\n';Oi= +Qi}Pi=Oi;var Ri,Si; +if(void 0===Ri){var Ti=document.createElement("template");Ti.innerHTML='\n\n\n\n\n

\n Note: Some feature slices with smaller example count might have been omitted because of\n privacy concerns.\n Click here to learn\n more.\n

\n\n

Privacy: min-slice-size

\n \n
\n\n\n\n';Ri= +Ti}Si=Ri;function Ui(){return Q.call(this)||this}A(Ui,Q);Ui.prototype.openDialog_=function(){this.$["privacy-dialog"].open()};x.Object.defineProperties(Ui,{is:{configurable:!0,enumerable:!0,get:function(){return"fairness-privacy-container"}},template:{configurable:!0,enumerable:!0,get:function(){return Si}},properties:{configurable:!0,enumerable:!0,get:function(){return{omittedSlices:{type:Array}}}}});customElements.define("fairness-privacy-container",Ui);function Vi(){return Q.call(this)||this}A(Vi,Q);Vi.prototype.slicesChanged_=function(a){a&&a.length?a.includes("Overall")?this.baseline_="Overall":this.baseline_=a[0]:this.baseline_=void 0};Vi.prototype.computeSlices_=function(a){if(a)return a.filter(function(b){return!b.metrics.__ERROR__}).map(function(b){return b.slice}).sort(function(b,c){return 0==b.localeCompare("Overall")?-1:0==c.localeCompare("Overall")?1:b.localeCompare(c)})}; +Vi.prototype.computeOmittedSlices_=function(a){return a?a.filter(function(b){return b.metrics.__ERROR__}).map(function(b){return b.slice}):[]}; +x.Object.defineProperties(Vi,{is:{configurable:!0,enumerable:!0,get:function(){return"fairness-metrics-board"}},template:{configurable:!0,enumerable:!0,get:function(){return Pi}},properties:{configurable:!0,enumerable:!0,get:function(){return{data:{type:Array},evalName:{type:String},dataCompare:{type:Array},evalNameCompare:{type:String},weightColumn:{type:String},metrics:{type:Array},baseline_:{type:String,value:"Overall"},slices_:{type:Array,computed:"computeSlices_(data)",observer:Vi.prototype.slicesChanged_}, +omittedSlices_:{type:Array,computed:"computeOmittedSlices_(data)",value:[]}}}}});customElements.define("fairness-metrics-board",Vi);var Wi,Xi; +if(void 0===Wi){var Yi=document.createElement("template");Yi.innerHTML='\n\n\n\n\n
\n
\n \n \n \n \n \n \n \n \n \n \n \n
\n \n \n \n \n
\n\n\n';Wi= +Yi}Xi=Wi;function Zi(){function a(){var b=Q.call(this)||this;b.addEventListener("select",function(c){b.handleSelect_(c)});return b}A(a,Q);a.prototype.handleSelect_=function(b){var c=b.path&&b.path[0];if(c){if("TFMA-METRICS-TABLE"==c.tagName){b=c.selection[0].row;var d=c.data.getDataTable()[b][0]}else if("TFMA-SLICE-OVERVIEW"==c.tagName||"FAIRNESS-BOUNDED-VALUE-BAR-CHART"==c.tagName)d=b.detail;d&&(d=d.split(":"),this.dispatchEvent(new CustomEvent("tfma-event",{detail:{type:"slice-selected",detail:{sliceName:d[0], +sliceValue:d[1]}},bubbles:!0,composed:!0})))}};return a};var $i=Zi();function aj(){return $i.call(this)||this}A(aj,$i);m=aj.prototype;m.slicingMetricsChanged_=function(a){a&&tfma.Data.flattenMetrics(a,"metrics");this.availableMetricsNames_=this.computeAvailableMetricsNames_(a);this.updateSelectableMetrics_(this.availableMetricsNames_)};m.slicingMetricsCompareChanged_=function(a){a&&tfma.Data.flattenMetrics(a,"metrics")}; +m.computeAvailableMetricsNames_=function(a){if(!a)return[];var b=new Set;a.forEach(function(c){Object.keys(c.metrics).forEach(function(d){b.add(d)})});return w(b).concat().filter(function(c){if(wi(c))return!0;c=a[0].metrics[c];return void 0!==c&&("number"===typeof c||tfma.CellRenderer.isBoundedValue(c))})}; +m.updateSelectableMetrics_=function(a){function b(e){return Array.from(e.entries()).map(function(f){return f[0]})}var c=new Set,d=new Set;a.forEach(function(e){var f=wi(e);f?c.add(f.name):d.add(e)});this.selectableMetrics_=w(b(c).sort(function(e,f){return e.localeCompare(f)})).concat(w(b(d).sort(function(e,f){return e.localeCompare(f)})))};m.hideRunSelector_=function(a,b){return a||!b.length}; +x.Object.defineProperties(aj,{is:{configurable:!0,enumerable:!0,get:function(){return"fairness-nb-container"}},template:{configurable:!0,enumerable:!0,get:function(){return Xi}},properties:{configurable:!0,enumerable:!0,get:function(){return{slicingMetrics:{type:Array,observer:aj.prototype.slicingMetricsChanged_},evalName:{type:String},slicingMetricsCompare:{type:Array,observer:aj.prototype.slicingMetricsCompareChanged_},evalNameCompare:{type:String},availableEvaluationRuns:{type:Array,value:[]}, +hideSelectEvalRunDropDown:{type:Boolean,value:!1},availableMetricsNames_:{type:Array},selectableMetrics_:{type:Array},selectedMetrics_:{type:Array},weightColumn:{type:String,value:"totalWeightedExamples"},selectedEvaluationRun:{type:String,notify:!0}}}}});customElements.define("fairness-nb-container",aj);var bj,cj; +if(void 0===bj){var dj=document.createElement("template");dj.innerHTML='\n\n\n\n\n
\n \n \n\n \n
\n\n\n';bj= +dj}cj=bj;function ej(){var a=this;this.port=fj.port1;this.id=0;this.b=new Map;this.listeners=new Map;this.port.addEventListener("message",function(b){return a.onMessage(b)})}m=ej.prototype;m.listen=function(a,b){this.listeners.set(a,b)};m.unlisten=function(a){this.listeners.delete(a)}; +m.onMessage=function(a){return Ba(this,function c(){var d,e,f,g,h,k,l=this,n,p,q,r,v,z,C,I,G,E;return va(c,function(J){switch(J.b){case 1:d=JSON.parse(a.data);e=d.type;f=d.id;g=d.payload;h=d.error;if(k=d.isReply){if(!l.b.has(f))return J.return();n=l.b.get(f);p=n.resolve;q=n.reject;l.b.delete(f);h?q(Error(h)):p(g);return J.return()}v=r=null;if(!l.listeners.has(e)){J.b=2;break}z=l.listeners.get(e);J.h=3;return oa(J,z(g),5);case 5:r=C=J.s;J.b=2;J.h=0;break;case 3:v=I=pa(J);case 2:G={},E=(G.type=e,G.id= +f,G.payload=r,G.error=v,G.isReply=!0,G),l.postMessage(E),J.b=0}})})};m.postMessage=function(a){this.port.postMessage(JSON.stringify(a))};m.sendMessage=function(a,b){var c=this,d=this.id++;this.postMessage({type:a,id:d,vk:b,error:null,rk:!1});return new Promise(function(e,f){c.b.set(d,{resolve:e,reject:f})})};window.parent||setTimeout(function(){throw Error("The library must run within a TensorBoard iframe-based plugin.");});var fj=new MessageChannel,gj=new ej;fj.port1.start();window.parent.postMessage("experimental.bootstrap","*",[fj.port2]);var hj=gj.sendMessage.bind(gj),ij=gj.listen.bind(gj);gj.unlisten.bind(gj);function jj(){return Ba(this,function b(){return va(b,function(c){return c.return(hj("experimental.GetURLPluginData"))})})};function kj(){return Ba(this,function b(){return va(b,function(c){return c.return(hj("experimental.GetRuns"))})})};var lj=Zi();function mj(){var a=lj.call(this)||this;jj().then(function(b){a.evaluationOutputPath_=b.evaluation_output_path;void 0==a.evaluationOutputPath_&&(kj().then(function(c){a.loadEvaluationRuns(c)}),ij("experimental.RunsChanged",function(c){return a.loadEvaluationRuns(c)}))});return a}A(mj,lj);mj.prototype.loadEvaluationRuns=function(a){this.evaluationRuns_=a;void 0!==this.evaluationRuns_&&this.evaluationRuns_.length&&!a.includes(this.selectedEvaluationRun_)&&(this.selectedEvaluationRun_=this.evaluationRuns_[0])}; +mj.prototype.runChanged_=function(a){var b=this;fetch("./get_evaluation_result?run="+a).then(function(c){return c.json()}).then(function(c){b.slicingMetrics_=c})};mj.prototype.evaluationOutputPathChanged_=function(a){var b=this;fetch("./get_evaluation_result_from_remote_path?evaluation_output_path="+a).then(function(c){return c.json()}).then(function(c){b.slicingMetrics_=c})};mj.prototype.computeHideSelectEvalRunDropDown_=function(a){return a?!0:!1}; +x.Object.defineProperties(mj,{is:{configurable:!0,enumerable:!0,get:function(){return"fairness-tensorboard-container"}},template:{configurable:!0,enumerable:!0,get:function(){return cj}},properties:{configurable:!0,enumerable:!0,get:function(){return{evaluationOutputPath_:{type:String,observer:mj.prototype.evaluationOutputPathChanged_},evaluationRuns_:{type:Array,value:[]},hideSelectEvalRunDropDown_:{type:Boolean,computed:"computeHideSelectEvalRunDropDown_(evaluationOutputPath_)"},selectedEvaluationRun_:{type:String, +observer:mj.prototype.runChanged_},slicingMetrics_:{type:Array,notify:!0,value:[]}}}}});customElements.define("fairness-tensorboard-container",mj);var nj,oj;if(void 0===nj){var pj=document.createElement("template");pj.innerHTML='\n\n\n\n\n\n\n';nj=pj}oj=nj;var qj,rj;if(void 0===qj){var sj=document.createElement("template");sj.innerHTML='\n\n\n\n\n\n\n';qj=sj}rj=qj;function tj(){return Q.call(this)||this}A(tj,Q);tj.prototype.connectedCallback=function(){Q.prototype.connectedCallback.call(this);this.resizeObserver_&&this.resizeObserver_.observe(this.$.chart)};tj.prototype.disconnectedCallback=function(){Q.prototype.disconnectedCallback.call(this);this.resizeObserver_&&this.resizeObserver_.unobserve(this.$.chart)}; +x.Object.defineProperties(tj,{is:{configurable:!0,enumerable:!0,get:function(){return"tfma-google-chart-wrapper"}},template:{configurable:!0,enumerable:!0,get:function(){return rj}},properties:{configurable:!0,enumerable:!0,get:function(){return{data:{type:Array},options:{type:Object},type:{type:String},resizeObserver_:{type:Object,value:function(){return"ResizeObserver"in window?new ResizeObserver(function(a){a.forEach(function(b){b.target.redraw()})}):null}}}}}}); +customElements.define("tfma-google-chart-wrapper",tj);function uj(){return Q.call(this)||this}A(uj,Q); +uj.prototype.computePlotData_=function(a){var b=[["Threshold","Accuracy",{type:"string",role:"tooltip"},"Precision",{type:"string",role:"tooltip"},"Recall",{type:"string",role:"tooltip"},"F1",{type:"string",role:"tooltip"}]];a.forEach(function(c){function d(l,n){return l+": "+n.toFixed(5)+", threshold: "+e.toFixed(5)}var e=Math.max(0,Math.min(1,c.threshold||0)),f=tfma.CellRenderer.extractFloatValue(c,"truePositives"),g=tfma.CellRenderer.extractFloatValue(c,"trueNegatives"),h=tfma.CellRenderer.extractFloatValue(c, "falsePositives"),k=tfma.CellRenderer.extractFloatValue(c,"falseNegatives");f=(f+g)/(f+g+h+k);g=tfma.CellRenderer.extractFloatValue(c,"recall");c=tfma.CellRenderer.extractFloatValue(c,"precision");h=2*g*c/(g+c);b.push([e,f,d("Accuracy",f),c,d("Precision",c),g,d("Recall",g),h,d("F1 Score",h)])});return b}; -y.Object.defineProperties(yj,{is:{configurable:!0,enumerable:!0,get:function(){return"tfma-accuracy-charts"}},template:{configurable:!0,enumerable:!0,get:function(){return sj}},properties:{configurable:!0,enumerable:!0,get:function(){return{data:{type:Array},options_:{type:Object,value:{legend:{textStyle:{fontSize:9}},hAxis:{title:"Thresholds"},vAxis:{title:"Accuracy / Precision / Recall / F1"},explorer:{actions:["dragToZoom","rightClickToReset"]}}},plotData_:{type:Array,computed:"computePlotData_(data)"}}}}}); -customElements.define("tfma-accuracy-charts",yj);var zj,Aj; -if(void 0===zj){var Bj=document.createElement("template");Bj.innerHTML='\n\n\n\n
\n \n
\n\n\n\n';zj= -Bj}Aj=zj;function Cj(){return Q.call(this)||this}x(Cj,Q);Cj.prototype.dataChanged_=function(a){var b={};try{b=JSON.parse(a)}catch(h){}var c=[],d=(a=b.shape)&&a.length;if(d){b=b[(b.dataType+"").toLowerCase()+"Values"];var e=a.reduce(function(h,k){return h*k},1);if(b&&b.length==e){c=b;var f;b={};for(--d;0d}).map(function(c){return JSON.stringify(c).replace(/,/gi,", ")})};Cj.prototype.computeExpandable_=function(a){return 3\n :host div {\n text-align: center;\n }\n .range {\n font-weight: lighter;\n font-size: 85%;\n }\n\n
[[formatValue_(value)]]
\n
([[formatValue_(lowerBound)]], [[formatValue_(upperBound)]])
\n\n\n';Dj=Fj}Ej=Dj;function Gj(){return Q.call(this)||this}x(Gj,Q);Gj.prototype.dataChanged_=function(a){if(a)try{var b=JSON.parse(a);this.upperBound=b.upperBound;this.lowerBound=b.lowerBound;this.value=b.value}catch(c){}};Gj.prototype.formatValue_=function(a){return"NaN"==a?"NaN":a.toFixed(tfma.FLOATING_POINT_PRECISION)}; -y.Object.defineProperties(Gj,{is:{configurable:!0,enumerable:!0,get:function(){return"tfma-bounded-value"}},template:{configurable:!0,enumerable:!0,get:function(){return Ej}},properties:{configurable:!0,enumerable:!0,get:function(){return{upperBound:{type:Number},lowerBound:{type:Number},value:{type:Number},data:{type:String,observer:Gj.prototype.dataChanged_}}}}});customElements.define("tfma-bounded-value",Gj);var Hj,Ij;if(void 0===Hj){var Jj=document.createElement("template");Jj.innerHTML='\n\n\n\n\n\n\n';Hj=Jj}Ij=Hj;function Kj(){return Q.call(this)||this}x(Kj,Q); -Kj.prototype.computeOptions_=function(a,b,c,d,e){var f={title:"Calibration Plot",hAxis:{title:"Average Prediction"},vAxis:{title:"Average Label"},bubble:{textStyle:{fontSize:11}},colorAxis:{colors:["#F0F0F0","#0A47A4"],minValue:0,maxValue:10},sizeAxis:{minValue:0,maxValue:.5,minSize:2,maxSize:12},explorer:{actions:["dragToZoom","rightClickToReset"]}},g=e&&e[e.length-1]&&e[e.length-1].lowerThresholdInclusive;e&&e[0]&&e[0].upperThresholdExclusive||1!=g||(e=function(h){h.minValue=0;h.maxValue=1;h.viewWindow= +x.Object.defineProperties(uj,{is:{configurable:!0,enumerable:!0,get:function(){return"tfma-accuracy-charts"}},template:{configurable:!0,enumerable:!0,get:function(){return oj}},properties:{configurable:!0,enumerable:!0,get:function(){return{data:{type:Array},options_:{type:Object,value:{legend:{textStyle:{fontSize:9}},hAxis:{title:"Thresholds"},vAxis:{title:"Accuracy / Precision / Recall / F1"},explorer:{actions:["dragToZoom","rightClickToReset"]}}},plotData_:{type:Array,computed:"computePlotData_(data)"}}}}}); +customElements.define("tfma-accuracy-charts",uj);var vj,wj; +if(void 0===vj){var xj=document.createElement("template");xj.innerHTML='\n\n\n\n
\n \n
\n\n\n\n';vj= +xj}wj=vj;function yj(){return Q.call(this)||this}A(yj,Q);yj.prototype.dataChanged_=function(a){var b={};try{b=JSON.parse(a)}catch(h){}var c=[],d=(a=b.shape)&&a.length;if(d){b=b[(b.dataType+"").toLowerCase()+"Values"];var e=a.reduce(function(h,k){return h*k},1);if(b&&b.length==e){c=b;var f;b={};for(--d;0d}).map(function(c){return JSON.stringify(c).replace(/,/gi,", ")})};yj.prototype.computeExpandable_=function(a){return 3\n :host div {\n text-align: center;\n }\n .range {\n font-weight: lighter;\n font-size: 85%;\n }\n\n
[[formatValue_(value)]]
\n
([[formatValue_(lowerBound)]], [[formatValue_(upperBound)]])
\n\n\n';zj=Bj}Aj=zj;function Cj(){return Q.call(this)||this}A(Cj,Q);Cj.prototype.dataChanged_=function(a){if(a)try{var b=JSON.parse(a);this.upperBound=b.upperBound;this.lowerBound=b.lowerBound;this.value=b.value}catch(c){}};Cj.prototype.formatValue_=function(a){return"NaN"==a?"NaN":a.toFixed(tfma.FLOATING_POINT_PRECISION)}; +x.Object.defineProperties(Cj,{is:{configurable:!0,enumerable:!0,get:function(){return"tfma-bounded-value"}},template:{configurable:!0,enumerable:!0,get:function(){return Aj}},properties:{configurable:!0,enumerable:!0,get:function(){return{upperBound:{type:Number},lowerBound:{type:Number},value:{type:Number},data:{type:String,observer:Cj.prototype.dataChanged_}}}}});customElements.define("tfma-bounded-value",Cj);var Dj,Ej;if(void 0===Dj){var Fj=document.createElement("template");Fj.innerHTML='\n\n\n\n\n\n\n';Dj=Fj}Ej=Dj;function Gj(){return Q.call(this)||this}A(Gj,Q); +Gj.prototype.computeOptions_=function(a,b,c,d,e){var f={title:"Calibration Plot",hAxis:{title:"Average Prediction"},vAxis:{title:"Average Label"},bubble:{textStyle:{fontSize:11}},colorAxis:{colors:["#F0F0F0","#0A47A4"],minValue:0,maxValue:10},sizeAxis:{minValue:0,maxValue:.5,minSize:2,maxSize:12},explorer:{actions:["dragToZoom","rightClickToReset"]}},g=e&&e[e.length-1]&&e[e.length-1].lowerThresholdInclusive;e&&e[0]&&e[0].upperThresholdExclusive||1!=g||(e=function(h){h.minValue=0;h.maxValue=1;h.viewWindow= {min:0,max:1}},e(f.hAxis),e(f.vAxis));c==tfma.PlotScale.LOG&&(f.hAxis.logScale=!0,f.vAxis.logScale=!0);c=f.colorAxis;a==tfma.PlotHighlight.ERROR&&(c.maxValue=.5);d.colorLowValue&&(c.colors[0]=d.colorLowValue);d.colorHighValue&&(c.colors[1]=d.colorHighValue);0<=d.colorMinValue&&(c.minValue=d.colorMinValue);d.colorMaxValue&&(c.maxValue=d.colorMaxValue);a=f.sizeAxis;b==tfma.PlotHighlight.WEIGHTS&&(a.maxValue=10);d.sizeMinRadius&&(a.minSize=d.sizeMinRadius);d.sizeMaxRadius&&(a.maxSize=d.sizeMaxRadius); -0<=d.sizeMinValue&&(a.minValue=d.sizeMinValue);d.sizeMaxValue&&(a.maxValue=d.sizeMaxValue);d.title&&(f.title=d.title);return f};Kj.prototype.getHeader_=function(a,b,c){var d=["bucket","prediction","label","color: ","size: "];a==tfma.PlotScale.LOG&&(d[1]="log(prediction)",d[2]="log(label)");d[3]+=b==tfma.PlotHighlight.ERROR?"error":"log(weight)";d[4]+=c==tfma.PlotHighlight.WEIGHTS?"log(weight)":"error";return d}; -Kj.prototype.computePlotData_=function(a,b,c,d,e,f,g){if(a&&b)return b=[b],tfma.BucketsWrapper.getCalibrationPlotData(a,c,d,e,f,g,b),b}; -y.Object.defineProperties(Kj,{is:{configurable:!0,enumerable:!0,get:function(){return"tfma-calibration-plot"}},template:{configurable:!0,enumerable:!0,get:function(){return Ij}},properties:{configurable:!0,enumerable:!0,get:function(){return{buckets:{type:Array},numberOfBuckets:{type:Number,value:100},fit:{type:String,value:tfma.PlotFit.PERFECT},color:{type:String,value:tfma.PlotHighlight.ERROR},size:{type:String,value:tfma.PlotHighlight.WEIGHTS},scale:{type:String,value:tfma.PlotScale.LINEAR},overrides:{type:Object, -value:{}},options_:{type:Object,computed:"computeOptions_(color, size, scale, overrides, buckets)"},header_:{type:Array,computed:"getHeader_(scale, color, size)"},plotData_:{type:Array,computed:"computePlotData_(buckets, header_, fit, scale, color, size, numberOfBuckets)"}}}}});customElements.define("tfma-calibration-plot",Kj);var Lj,Mj; -if(void 0===Lj){var Nj=document.createElement("template");Nj.innerHTML='\n\n\n\n\n\n\n\n';Lj= -Nj}Mj=Lj;var Oj,Pj; -if(void 0===Oj){var Qj=document.createElement("template");Qj.innerHTML='\n\n\n\n
\n \n \n \n
\n
\n\n\n';Oj= -Qj}Pj=Oj;function Rj(){return Q.call(this)||this}x(Rj,Q);m=Rj.prototype;m.stopEvent_=function(a){a.stopPropagation()};m.itemsChanged_=function(){this.selectedIndices_=[]};m.computeSelectedItems_=function(a,b){var c=[];a&&b.forEach(function(d){c.push(a[d])});return c};m.computeSelectedItemsString_=function(a){return a.join(", ")};m.selectIndex=function(a){this.$.listbox.selectIndex(a)}; -y.Object.defineProperties(Rj,{is:{configurable:!0,enumerable:!0,get:function(){return"tfma-multi-select"}},template:{configurable:!0,enumerable:!0,get:function(){return Pj}},properties:{configurable:!0,enumerable:!0,get:function(){return{items:{type:Array,observer:Rj.prototype.itemsChanged_},label:{type:String},selectedIndices_:{type:Array,value:function(){return[]}},selectedItems:{type:Array,notify:!0,computed:"computeSelectedItems_(items, selectedIndices_, selectedIndices_.length)"},selectedItemsString:{type:String, -computed:"computeSelectedItemsString_(selectedItems)"}}}}});customElements.define("tfma-multi-select",Rj);function Sj(){return Q.call(this)||this}x(Sj,Q);m=Sj.prototype;m.computeAvailableOutputs_=function(a){return Object.keys(a).sort()};m.availableOutputsChanged_=function(a){this.selectedClasses_=[];1==a.length&&(this.selectedOutputs_=[a[0]])};m.computeAvailableCombos_=function(a,b){var c=[],d=1\n .table, .header {\n display: flex;\n }\n .column {\n flex-basis: 100%;\n padding: 0 8px;\n justify-content: center;\n text-align:center;\n }\n :host[expanded] .table:hover {\n background-color: rgba(0,0,0,0.125);\n }\n\n
\n
\n
Threshold
\n
Precision
\n
Recall
\n
TP
\n
TN
\n
FP
\n
FN
\n
\n \n \n
\n\n\n';Tj= -Vj}Uj=Tj;function Wj(){return Q.call(this)||this}x(Wj,Q);m=Wj.prototype; +0<=d.sizeMinValue&&(a.minValue=d.sizeMinValue);d.sizeMaxValue&&(a.maxValue=d.sizeMaxValue);d.title&&(f.title=d.title);return f};Gj.prototype.getHeader_=function(a,b,c){var d=["bucket","prediction","label","color: ","size: "];a==tfma.PlotScale.LOG&&(d[1]="log(prediction)",d[2]="log(label)");d[3]+=b==tfma.PlotHighlight.ERROR?"error":"log(weight)";d[4]+=c==tfma.PlotHighlight.WEIGHTS?"log(weight)":"error";return d}; +Gj.prototype.computePlotData_=function(a,b,c,d,e,f,g){if(a&&b)return b=[b],tfma.BucketsWrapper.getCalibrationPlotData(a,c,d,e,f,g,b),b}; +x.Object.defineProperties(Gj,{is:{configurable:!0,enumerable:!0,get:function(){return"tfma-calibration-plot"}},template:{configurable:!0,enumerable:!0,get:function(){return Ej}},properties:{configurable:!0,enumerable:!0,get:function(){return{buckets:{type:Array},numberOfBuckets:{type:Number,value:100},fit:{type:String,value:tfma.PlotFit.PERFECT},color:{type:String,value:tfma.PlotHighlight.ERROR},size:{type:String,value:tfma.PlotHighlight.WEIGHTS},scale:{type:String,value:tfma.PlotScale.LINEAR},overrides:{type:Object, +value:{}},options_:{type:Object,computed:"computeOptions_(color, size, scale, overrides, buckets)"},header_:{type:Array,computed:"getHeader_(scale, color, size)"},plotData_:{type:Array,computed:"computePlotData_(buckets, header_, fit, scale, color, size, numberOfBuckets)"}}}}});customElements.define("tfma-calibration-plot",Gj);var Hj,Ij; +if(void 0===Hj){var Jj=document.createElement("template");Jj.innerHTML='\n\n\n\n\n\n\n\n';Hj= +Jj}Ij=Hj;var Kj,Lj; +if(void 0===Kj){var Mj=document.createElement("template");Mj.innerHTML='\n\n\n\n
\n \n \n \n
\n
\n\n\n';Kj= +Mj}Lj=Kj;function Nj(){return Q.call(this)||this}A(Nj,Q);m=Nj.prototype;m.stopEvent_=function(a){a.stopPropagation()};m.itemsChanged_=function(){this.selectedIndices_=[]};m.computeSelectedItems_=function(a,b){var c=[];a&&b.forEach(function(d){c.push(a[d])});return c};m.computeSelectedItemsString_=function(a){return a.join(", ")};m.selectIndex=function(a){this.$.listbox.selectIndex(a)}; +x.Object.defineProperties(Nj,{is:{configurable:!0,enumerable:!0,get:function(){return"tfma-multi-select"}},template:{configurable:!0,enumerable:!0,get:function(){return Lj}},properties:{configurable:!0,enumerable:!0,get:function(){return{items:{type:Array,observer:Nj.prototype.itemsChanged_},label:{type:String},selectedIndices_:{type:Array,value:function(){return[]}},selectedItems:{type:Array,notify:!0,computed:"computeSelectedItems_(items, selectedIndices_, selectedIndices_.length)"},selectedItemsString:{type:String, +computed:"computeSelectedItemsString_(selectedItems)"}}}}});customElements.define("tfma-multi-select",Nj);function Oj(){return Q.call(this)||this}A(Oj,Q);m=Oj.prototype;m.computeAvailableOutputs_=function(a){return Object.keys(a).sort()};m.availableOutputsChanged_=function(a){this.selectedClasses_=[];1==a.length&&(this.selectedOutputs_=[a[0]])};m.computeAvailableCombos_=function(a,b){var c=[],d=1\n .table, .header {\n display: flex;\n }\n .column {\n flex-basis: 100%;\n padding: 0 8px;\n justify-content: center;\n text-align:center;\n }\n :host[expanded] .table:hover {\n background-color: rgba(0,0,0,0.125);\n }\n\n
\n
\n
Threshold
\n
Precision
\n
Recall
\n
TP
\n
TN
\n
FP
\n
FN
\n
\n \n \n
\n\n\n';Pj= +Rj}Qj=Pj;function Sj(){return Q.call(this)||this}A(Sj,Q);m=Sj.prototype; m.computeTransformedData_=function(a,b){var c=this;if(a){var d=[];try{d=JSON.parse(a)}catch(e){}return d.matrices.map(function(e,f){return{showTitle:0==f,threshold:c.getValue_(e,"threshold",b),precision:c.getValue_(e,"precision",b),recall:c.getValue_(e,"recall",b),truePositives:c.getValue_(e,"truePositives",b),trueNegatives:c.getValue_(e,"trueNegatives",b),falsePositives:c.getValue_(e,"falsePositives",b),falseNegatives:c.getValue_(e,"falseNegatives",b)}})}return[]}; m.computeExpandable_=function(a,b){return b&&3=a.length?a:[a[0],a[1],a[2]]};m.getValue_=function(a,b,c){return this.toFixed_(tfma.CellRenderer.extractFloatValue(a,b),c)};m.computeSpecificity_=function(a,b){var c=tfma.CellRenderer.extractFloatValue(a,"trueNegatives");a=tfma.CellRenderer.extractFloatValue(a,"falsePositives");a=c+a;return this.toFixed_(a?c/a:0,b)};m.toFixed_=function(a,b){return a.toFixed(b?16:tfma.FLOATING_POINT_PRECISION)}; m.toggleExpanded_=function(){if(this.expandable_)if(this.expanded)this.expanded=!1;else{var a=new CustomEvent("expand-metric",{detail:{data:this.data,metric:"tfma-confusion-matrix-at-thresholds"},cancelable:!0,bubbles:!0,composed:!0});this.dispatchEvent(a);this.expanded=!a.defaultPrevented}}; -y.Object.defineProperties(Wj,{is:{configurable:!0,enumerable:!0,get:function(){return"tfma-confusion-matrix-at-thresholds"}},template:{configurable:!0,enumerable:!0,get:function(){return Uj}},properties:{configurable:!0,enumerable:!0,get:function(){return{data:{type:String},transformedData_:{type:Array,computed:"computeTransformedData_(data, expanded)"},expandable_:{type:Boolean,computed:"computeExpandable_(transformedData_, interactive)"},displayedData_:{type:Array,computed:"computeDisplayedData_(transformedData_, expandable_, expanded)"}, -expanded:{type:Boolean,value:!1,reflectToAttribute:!0},interactive:{type:Boolean,value:!0}}}}});customElements.define("tfma-confusion-matrix-at-thresholds",Wj);var Xj,Yj;if(void 0===Xj){var Zj=document.createElement("template");Zj.innerHTML='\n\n\n\n\n\n\n';Xj=Zj}Yj=Xj;function ak(){return Q.call(this)||this}x(ak,Q); -ak.prototype.computePlotData_=function(a,b){if(a&&a.length&&b){var c=[["Percentile","",{type:"string",role:"tooltip"},"Gain",{type:"string",role:"tooltip"}],[0,0,"Random",0,"Origin"]];a=a.slice().sort(function(p,q){p=tfma.CellRenderer.extractFloatValue(p,"threshold");return tfma.CellRenderer.extractFloatValue(q,"threshold")-p});var d=tfma.CellRenderer.extractFloatValue(a[0],"truePositives")+tfma.CellRenderer.extractFloatValue(a[0],"falseNegatives"),e=d+tfma.CellRenderer.extractFloatValue(a[0],"trueNegatives")+ +x.Object.defineProperties(Sj,{is:{configurable:!0,enumerable:!0,get:function(){return"tfma-confusion-matrix-at-thresholds"}},template:{configurable:!0,enumerable:!0,get:function(){return Qj}},properties:{configurable:!0,enumerable:!0,get:function(){return{data:{type:String},transformedData_:{type:Array,computed:"computeTransformedData_(data, expanded)"},expandable_:{type:Boolean,computed:"computeExpandable_(transformedData_, interactive)"},displayedData_:{type:Array,computed:"computeDisplayedData_(transformedData_, expandable_, expanded)"}, +expanded:{type:Boolean,value:!1,reflectToAttribute:!0},interactive:{type:Boolean,value:!0}}}}});customElements.define("tfma-confusion-matrix-at-thresholds",Sj);var Tj,Uj;if(void 0===Tj){var Vj=document.createElement("template");Vj.innerHTML='\n\n\n\n\n\n\n';Tj=Vj}Uj=Tj;function Wj(){return Q.call(this)||this}A(Wj,Q); +Wj.prototype.computePlotData_=function(a,b){if(a&&a.length&&b){var c=[["Percentile","",{type:"string",role:"tooltip"},"Gain",{type:"string",role:"tooltip"}],[0,0,"Random",0,"Origin"]];a=a.slice().sort(function(p,q){p=tfma.CellRenderer.extractFloatValue(p,"threshold");return tfma.CellRenderer.extractFloatValue(q,"threshold")-p});var d=tfma.CellRenderer.extractFloatValue(a[0],"truePositives")+tfma.CellRenderer.extractFloatValue(a[0],"falseNegatives"),e=d+tfma.CellRenderer.extractFloatValue(a[0],"trueNegatives")+ tfma.CellRenderer.extractFloatValue(a[0],"falsePositives");b=e/b;for(var f=Math.round(b),g=0;g=f){h=tfma.CellRenderer.extractFloatValue(h,"threshold");var n=l/e*100;c.push([n,n,"Random",k/d*100,"True Positives: "+k+"\nPredicted Positives: "+l+"\nThreshold: "+h.toFixed(5)+"\nPercentile: "+Math.round(n)]);if(100<=n)break;f=Math.min(e,Math.round(f+b))}}return c}}; -y.Object.defineProperties(ak,{is:{configurable:!0,enumerable:!0,get:function(){return"tfma-gain-chart"}},template:{configurable:!0,enumerable:!0,get:function(){return Yj}},properties:{configurable:!0,enumerable:!0,get:function(){return{data:{type:Array},steps:{type:Number,value:10},options_:{type:Object,value:{legend:{textStyle:{fontSize:9}},hAxis:{title:"Percentile"},vAxis:{title:"Gain"},explorer:{actions:["dragToZoom","rightClickToReset"]},series:{0:{lineDashStyle:[3,2],visibleInLegend:!1},1:{visibleInLegend:!1}}}}, -plotData_:{type:Array,computed:"computePlotData_(data, steps)"}}}}});customElements.define("tfma-gain-chart",ak);var bk,ck; -if(void 0===bk){var dk=document.createElement("template");dk.innerHTML='\n\n\n\n
\n \n \n \n Slices Overview\n Metrics Histogram\n \n \n
\n
\n \n \n \n \n \n \n \n \n
\n\n \n \n
\n \n \n
\n
\n\n\n';bk= -dk}ck=bk;var ek,fk; -if(void 0===ek){var gk=document.createElement("template");gk.innerHTML='\n\n\n\n
\n \n \n \n \n \n \n
\n
\n \n \n \n Slice Counts\n Example Counts\n Both\n \n \n
\n
\n \n \n \n \n \n \n \n \n More Options\n \n
\n \n

Options

\n
\n \n Logarithm Scale\n \n
\n
\n
\n
\n\n
\n \n \n \n \n
\n
\n\n
\n \n
Empty Histogram
\n
\n
\n\n\n';ek= -gk}fk=ek;function hk(a,b){return a.slice(1).reduce(function(c,d){return{min:Math.min(c.min,d[b]),max:Math.max(c.max,d[b])}},{min:Infinity,max:-Infinity})}var ik,jk=[yg];ik=of({},ff(Q),jk);function kk(){return ik.call(this)||this}x(kk,ik);m=kk.prototype;m.ready=function(){var a=this;ik.prototype.ready.call(this);this.addEventListener("iron-resize",function(){a.previousWidth_=a.getDetailsWidth_()});Ia().then(function(){a.chart_=new google.visualization.ColumnChart(a.$.details);a.render_()})}; +x.Object.defineProperties(Wj,{is:{configurable:!0,enumerable:!0,get:function(){return"tfma-gain-chart"}},template:{configurable:!0,enumerable:!0,get:function(){return Uj}},properties:{configurable:!0,enumerable:!0,get:function(){return{data:{type:Array},steps:{type:Number,value:10},options_:{type:Object,value:{legend:{textStyle:{fontSize:9}},hAxis:{title:"Percentile"},vAxis:{title:"Gain"},explorer:{actions:["dragToZoom","rightClickToReset"]},series:{0:{lineDashStyle:[3,2],visibleInLegend:!1},1:{visibleInLegend:!1}}}}, +plotData_:{type:Array,computed:"computePlotData_(data, steps)"}}}}});customElements.define("tfma-gain-chart",Wj);var Xj,Yj; +if(void 0===Xj){var Zj=document.createElement("template");Zj.innerHTML='\n\n\n\n
\n \n \n \n Slices Overview\n Metrics Histogram\n \n \n
\n
\n \n \n \n \n \n \n \n \n
\n\n \n \n
\n \n \n
\n
\n\n\n';Xj= +Zj}Yj=Xj;var ak,bk; +if(void 0===ak){var ck=document.createElement("template");ck.innerHTML='\n\n\n\n
\n \n \n \n \n \n \n
\n
\n \n \n \n Slice Counts\n Example Counts\n Both\n \n \n
\n
\n \n \n \n \n \n \n \n \n More Options\n \n
\n \n

Options

\n
\n \n Logarithm Scale\n \n
\n
\n
\n
\n\n
\n \n \n \n \n
\n
\n\n
\n \n
Empty Histogram
\n
\n
\n\n\n';ak= +ck}bk=ak;function dk(a,b){return a.slice(1).reduce(function(c,d){return{min:Math.min(c.min,d[b]),max:Math.max(c.max,d[b])}},{min:Infinity,max:-Infinity})}var ek,fk=[ug];ek=kf({},bf(Q),fk);function gk(){return ek.call(this)||this}A(gk,ek);m=gk.prototype;m.ready=function(){var a=this;ek.prototype.ready.call(this);this.addEventListener("iron-resize",function(){a.previousWidth_=a.getDetailsWidth_()});Ea().then(function(){a.chart_=new google.visualization.ColumnChart(a.$.details);a.render_()})}; m.updateFocusRange=function(a,b){this.focusRange=[a,b]};m.render_=function(){this.renderable_()&&(this.renderDetails_(),this.renderOverview_())};m.getDetailsWidth_=function(){var a=this.getBoundingClientRect().width;return Math.max(a,680)};m.getOverviewWidth_=function(){return this.getDetailsWidth_()-120-120}; -m.renderOverview_=function(){var a=this,b=d3.select(this.$.overview),c=this.getOverviewWidth_(),d=b.node();d.setAttribute("width",c);d.setAttribute("height",30*("both"==this.type?2:1));d.style.marginLeft="120px";d=this.data.getColumnRange(this.metric);d=this.prepareHistogram_(this.data,600,d.min,d.max).pe;var e=b.select(".unweighted"),f=b.select(".weighted");e.selectAll("*").remove();f.selectAll("*").remove();"weighted"!=this.type&&this.drawOverview_(e,d.map(function(l){return[l[0],l[1]]}),hk(d,1)); -"unweighted"!=this.type&&this.drawOverview_(f,d.map(function(l){return[l[0],l[2]]}),hk(d,2));e.select("path").attr("class","blue");f.select("path").attr("class","both"==this.type?"red":"blue");"both"==this.type&&f.attr("transform","translate(0,30)");this.drawOverviewFocus_(this.focusRange[0],this.focusRange[1]);var g=[];d=d3.drag();var h,k;d.on("drag",function(){var l=d3.mouse(b.node())[0];void 0==g[0]?g[0]=l:(g[1]=l,h=Math.max(0,Math.min(g[0],g[1])/c),k=Math.min(1,Math.max(g[0],g[1])/c),a.drawOverviewFocus_(h, +m.renderOverview_=function(){var a=this,b=d3.select(this.$.overview),c=this.getOverviewWidth_(),d=b.node();d.setAttribute("width",c);d.setAttribute("height",30*("both"==this.type?2:1));d.style.marginLeft="120px";d=this.data.getColumnRange(this.metric);d=this.prepareHistogram_(this.data,600,d.min,d.max).pe;var e=b.select(".unweighted"),f=b.select(".weighted");e.selectAll("*").remove();f.selectAll("*").remove();"weighted"!=this.type&&this.drawOverview_(e,d.map(function(l){return[l[0],l[1]]}),dk(d,1)); +"unweighted"!=this.type&&this.drawOverview_(f,d.map(function(l){return[l[0],l[2]]}),dk(d,2));e.select("path").attr("class","blue");f.select("path").attr("class","both"==this.type?"red":"blue");"both"==this.type&&f.attr("transform","translate(0,30)");this.drawOverviewFocus_(this.focusRange[0],this.focusRange[1]);var g=[];d=d3.drag();var h,k;d.on("drag",function(){var l=d3.mouse(b.node())[0];void 0==g[0]?g[0]=l:(g[1]=l,h=Math.max(0,Math.min(g[0],g[1])/c),k=Math.min(1,Math.max(g[0],g[1])/c),a.drawOverviewFocus_(h, k),a.realTimeFocus&&a.updateFocusRange(h,k))}).on("end",function(){void 0!=g[0]&&void 0!=g[1]&&(a.updateFocusRange(h,k),g=[],a.dispatchEvent(new CustomEvent(tfma.Event.UPDATE_FOCUS_RANGE,{detail:{focusLeft:h,focusRight:k},bubbles:!0,composed:!0})))});b.call(d);b.on(tfma.Event.DOUBLE_CLICK,function(){a.resetFocusRange_();a.dispatchEvent(new CustomEvent(tfma.Event.UPDATE_FOCUS_RANGE,{detail:{focusLeft:0,focusRight:1},bubbles:!0,composed:!0}))})}; m.renderDetails_=function(){var a=this.data.getColumnRange(this.metric);a=this.prepareHistogram_(this.detailsData,this.numBuckets,(a.max-a.min)*this.focusRange[0]+a.min,(a.max-a.min)*this.focusRange[1]+a.min);var b=[],c=[0],d=0;"weighted"!=this.type&&(b.push({targetAxisIndex:d++}),c.push(1),c.push({calc:"stringify",sourceColumn:1,type:"string",role:"annotation"}));"unweighted"!=this.type&&(b.push({targetAxisIndex:d++}),c.push(2),c.push({calc:"stringify",sourceColumn:2,type:"string",role:"annotation"})); -d=this.$.details;this.$.empty.style.display=a.kd?"":"none";d.style.display=a.kd?"none":"";a.kd||(d=google.visualization.arrayToDataTable(a.pe),d=new google.visualization.DataView(d),d.setColumns(c),this.chart_.draw(d,{enableInteractivity:!1,bar:{groupWidth:"99%"},hAxis:{ticks:a.kg},vAxis:{ticks:[{v:0,f:""}]},legend:{position:"top"},tooltip:{trigger:"none"},series:b,width:this.getDetailsWidth_(),height:200}),this.highlightHistogramBuckets_(a.mg))}; -m.prepareHistogram_=function(a,b,c,d){var e=this,f=a.getSeriesList(),g=a.getColumnRange(this.metric),h=[this.metric,"Number of slices in bucket","Number of (weighted) examples for slices in bucket"],k=[h];if(0>=b||c>d||g.min>d||g.max=b||c>d||g.min>d||g.max=this.numBuckets};m.openOptions_=function(){this.$.options.open()}; m.computeDetailsData_=function(a,b,c){var d=a.getColumnRange(b),e=d.max-d.min;0==e&&(e=Math.pow(.1,tfma.FLOATING_POINT_PRECISION));var f=Math.max(d.min,d.min+e*c[0]),g=Math.min(d.max,d.min+e*c[1]);c=a.filter(function(h){h=a.getMetricValue(h.getFeatureString(),b);return h>=f&&h<=g});return this.detailsData&&this.detailsData.equals(c)?this.detailsData:c};m.computeSelectableMetrics_=function(a,b){a=a.getMetrics();if(!a.length||""===b)return[];a=a.slice();b=a.indexOf(b);-1!=b&&a.splice(b,1);return a}; m.selectableMetricsChanged_=function(){this.selectableMetrics_.length&&(this.metric=this.selectableMetrics_[0])};m.reRender_=function(){this.render_()}; -y.Object.defineProperties(kk,{is:{configurable:!0,enumerable:!0,get:function(){return"tfma-metrics-histogram"}},template:{configurable:!0,enumerable:!0,get:function(){return fk}},properties:{configurable:!0,enumerable:!0,get:function(){return{data:{type:Object,value:function(){return tfma.Data.build([],[])}},focusRange:{type:Array,value:[0,1]},detailsData:{type:Object,computed:"computeDetailsData_(data, metric, focusRange)",notify:!0},numBuckets:{type:Number,value:10},type:{type:String,value:"unweighted"}, -metric:{type:String,value:""},selectableMetrics_:{type:Array,computed:"computeSelectableMetrics_(data, weightedExamplesColumn)",observer:kk.prototype.selectableMetricsChanged_},weightedExamplesColumn:{type:String,value:""},logarithmScale:{type:Boolean,value:!1},selectedFeatures:{type:Array,value:function(){return[]}},realTimeFocus:{type:Boolean,value:!1},previousWidth_:{type:Number,value:0,observer:kk.prototype.render_},chart_:{type:Object}}}},observers:{configurable:!0,enumerable:!0,get:function(){return["reRender_(data, metric, type, focusRange, weightedExamplesColumn, logarithmScale, numBuckets, selectedFeatures)"]}}}); -customElements.define("tfma-metrics-histogram",kk);var lk,mk; -if(void 0===lk){var nk=document.createElement("template");nk.innerHTML='\n\n\n\n
\n \n \n \n \n \n \n \n \n \n \n
\n
\n\n\n';lk= -nk}mk=lk;function ok(){return Q.call(this)||this}x(ok,Q);m=ok.prototype;m.computeMetrics_=function(a){return a?a.getMetrics():[]};m.computeMetricsForSorting_=function(a){return["Slice"].concat(a)}; -m.plot_=function(a,b,c,d,e){var f=this;if(a&&b&&e&&c&&d&&-1!=b.getMetricIndex(c)){a=b.getMetricIndex(d);var g=[["feature",c,d]],h=-1==a,k=!h&&d!=c;b.getFeatures().forEach(function(l){var n=l,p=h?b.getFeatureId(l):b.getMetricValue(l,d);k&&(n={v:l,f:l+", "+d+":"+b.getMetricValue(l,d).toFixed(tfma.FLOATING_POINT_PRECISION)});g.push([n,b.getMetricValue(l,c),p])});Ja(g).then(function(l){l.sort([{column:2}]);l=new google.visualization.DataView(l);l.setColumns([0,1]);f.dataView_=l;f.chart_.draw(l,{bar:{groupWidth:"75%"}, -hAxis:{ticks:[]},legend:{position:"top"},width:Math.max(f.getBoundingClientRect().width,680),height:200})})}};m.ready=function(){var a=this;Q.prototype.ready.call(this);Ia().then(function(){a.chart_=new google.visualization.ColumnChart(a.$.chart);google.visualization.events.addListener(a.chart_,"select",function(){a.handleSelect_()})});this.displayed=0\n #controls {\n margin: 0 auto 20px;\n width: 724px;\n }\n #controls paper-dropdown-menu {\n width: 320px;\n padding: 0 12px;\n }\n\n
\n \n \n \n \n \n \n \n \n \n \n
\n
\n\n\n';hk= +jk}ik=hk;function kk(){return Q.call(this)||this}A(kk,Q);m=kk.prototype;m.computeMetrics_=function(a){return a?a.getMetrics():[]};m.computeMetricsForSorting_=function(a){return["Slice"].concat(a)}; +m.plot_=function(a,b,c,d,e){var f=this;if(a&&b&&e&&c&&d&&-1!=b.getMetricIndex(c)){a=b.getMetricIndex(d);var g=[["feature",c,d]],h=-1==a,k=!h&&d!=c;b.getFeatures().forEach(function(l){var n=l,p=h?b.getFeatureId(l):b.getMetricValue(l,d);k&&(n={v:l,f:l+", "+d+":"+b.getMetricValue(l,d).toFixed(tfma.FLOATING_POINT_PRECISION)});g.push([n,b.getMetricValue(l,c),p])});Fa(g).then(function(l){l.sort([{column:2}]);l=new google.visualization.DataView(l);l.setColumns([0,1]);f.dataView_=l;f.chart_.draw(l,{bar:{groupWidth:"75%"}, +hAxis:{ticks:[]},legend:{position:"top"},width:Math.max(f.getBoundingClientRect().width,680),height:200})})}};m.ready=function(){var a=this;Q.prototype.ready.call(this);Ea().then(function(){a.chart_=new google.visualization.ColumnChart(a.$.chart);google.visualization.events.addListener(a.chart_,"select",function(){a.handleSelect_()})});this.displayed=0\n #int64 {\n text-align: right;\n }\n \n
\n [[data]]\n
\n']);function rk(){return Q.call(this)||this}x(rk,Q);y.Object.defineProperties(rk,{is:{configurable:!0,enumerable:!0,get:function(){return"tfma-int64"}},template:{configurable:!0,enumerable:!0,get:function(){return P(qk)}},properties:{configurable:!0,enumerable:!0,get:function(){return{data:{type:String}}}}});customElements.define("tfma-int64",rk);var sk,tk; -if(void 0===sk){var uk=document.createElement("template");uk.innerHTML='\n\n\n\n\n \n \n \n\n
\n \n
\n\n\n';sk= -uk}tk=sk;var vk,wk; -if(void 0===vk){var xk=document.createElement("template");xk.innerHTML='\n\n\n\n
\n {{title}}\n
\n\n\n\n\n';vk= -xk}wk=vk;function yk(){return Q.call(this)||this}x(yk,Q);yk.prototype.select=function(a){Array.isArray(a)||(a=[a]);this.$.chart.selection=a};yk.prototype.clearSelection=function(){this.$.chart.selection=[]};yk.prototype.onMouseOver_=function(a){a=a.detail.data;this.select(a);this.dispatchEvent(new CustomEvent(tfma.Event.SELECT,{detail:{point:a},bubbles:!0,composed:!0}))};yk.prototype.onMouseOut_=function(){this.clearSelection();this.dispatchEvent(new CustomEvent(tfma.Event.CLEAR_SELECTION,{bubbles:!0,composed:!0}))}; -y.Object.defineProperties(yk,{is:{configurable:!0,enumerable:!0,get:function(){return"tfma-line-chart"}},template:{configurable:!0,enumerable:!0,get:function(){return wk}},properties:{configurable:!0,enumerable:!0,get:function(){return{data:{type:Array},options_:{type:Object,value:{uk:{position:"none"},al:{trigger:"focus"},mk:{top:30,left:45,width:"85%",height:"75%"},rk:{ticks:[]}}},title:{type:String,value:""},events_:{type:Array,value:["onmouseover","onmouseout"]}}}}}); -customElements.define("tfma-line-chart",yk);function zk(){return Q.call(this)||this}x(zk,Q);m=zk.prototype;m.highlight=function(a){a?this.highlightSelection_(a,!1):this.clearSelection_(!1)}; +x.Object.defineProperties(lk,{is:{configurable:!0,enumerable:!0,get:function(){return"tfma-graph-data-filter"}},template:{configurable:!0,enumerable:!0,get:function(){return Yj}},properties:{configurable:!0,enumerable:!0,get:function(){return{data:{type:Object,observer:lk.prototype.dataChanged_},weightedExamplesColumn:{type:String,value:""},weightedExamplesThreshold_:{type:Number,value:0},chartType:{type:String,value:1},selectedFeatures:{type:Array,value:function(){return[]}},tableData:{type:Object, +notify:!0,computed:"computeTableData_(chartType, filteredData_, focusedData_)"},filteredData_:{type:Object,computed:"computeFilteredData_(data, weightedExamplesColumn, weightedExamplesThreshold_)",observer:lk.prototype.filteredDataChanged_},focusedData_:{type:Object},weightedExamplesInfo_:{type:Object,computed:"computeWeightedExamplesInfo_(data, weightedExamplesColumn)"},showSliceOverview_:{type:Boolean,computed:"computeShowSliceOverview_(chartType)"}}}}}); +customElements.define("tfma-graph-data-filter",lk);function mk(){return Q.call(this)||this}A(mk,Q);var nk=t(['\n \n
\n [[data]]\n
\n']);x.Object.defineProperties(mk,{is:{configurable:!0,enumerable:!0,get:function(){return"tfma-int64"}},template:{configurable:!0,enumerable:!0,get:function(){return P(nk)}},properties:{configurable:!0,enumerable:!0,get:function(){return{data:{type:String}}}}});customElements.define("tfma-int64",mk);var ok,pk; +if(void 0===ok){var qk=document.createElement("template");qk.innerHTML='\n\n\n\n\n \n \n \n\n
\n \n
\n\n\n';ok= +qk}pk=ok;var rk,sk; +if(void 0===rk){var tk=document.createElement("template");tk.innerHTML='\n\n\n\n
\n {{title}}\n
\n\n\n\n\n';rk= +tk}sk=rk;function uk(){return Q.call(this)||this}A(uk,Q);uk.prototype.select=function(a){Array.isArray(a)||(a=[a]);this.$.chart.selection=a};uk.prototype.clearSelection=function(){this.$.chart.selection=[]};uk.prototype.onMouseOver_=function(a){a=a.detail.data;this.select(a);this.dispatchEvent(new CustomEvent(tfma.Event.SELECT,{detail:{point:a},bubbles:!0,composed:!0}))};uk.prototype.onMouseOut_=function(){this.clearSelection();this.dispatchEvent(new CustomEvent(tfma.Event.CLEAR_SELECTION,{bubbles:!0,composed:!0}))}; +x.Object.defineProperties(uk,{is:{configurable:!0,enumerable:!0,get:function(){return"tfma-line-chart"}},template:{configurable:!0,enumerable:!0,get:function(){return sk}},properties:{configurable:!0,enumerable:!0,get:function(){return{data:{type:Array},options_:{type:Object,value:{sk:{position:"none"},yk:{trigger:"focus"},kk:{top:30,left:45,width:"85%",height:"75%"},pk:{ticks:[]}}},title:{type:String,value:""},events_:{type:Array,value:["onmouseover","onmouseout"]}}}}}); +customElements.define("tfma-line-chart",uk);function vk(){return Q.call(this)||this}A(vk,Q);m=vk.prototype;m.highlight=function(a){a?this.highlightSelection_(a,!1):this.clearSelection_(!1)}; m.highlightSelection_=function(a,b){var c=this,d=a[this.provider.getModelColumnName()],e=a[this.provider.getDataColumnName()],f=[];this.provider.getModelIds().forEach(function(g,h){g==d&&f.push(h)});this.selectedMetrics_.forEach(function(g){var h=f.filter(function(k){return(k=c.provider.getEvalConfig(k))&&k.data==e});1==h.length&&(g=c.getChartForMetric_(g))&&g.select({row:h[0]})});b&&this.dispatchEvent(new CustomEvent(tfma.Event.SELECT,{detail:a,composed:!0,bubbles:!0}))}; m.clearSelection_=function(a){var b=this;this.selectedMetrics_.forEach(function(c){c=b.getChartForMetric_(c);null!=c&&c.clearSelection()});a&&this.dispatchEvent(new CustomEvent(tfma.Event.CLEAR_SELECTION,{composed:!0,bubbles:!0}))};m.closeLineChart_=function(a){a=(a=a.model.item)&&this.selectedMetrics_.indexOf(a);0<=a&&this.splice("selectedMetrics_",a,1)}; m.computeChartData_=function(a,b){if(b){var c=b.getLineChartData(a);return[[{label:b.getDataColumnName(),type:"number"},{role:"annotation",type:"string"},{role:"annotationText",type:"string"},{label:a,type:"number"}]].concat(c)}};m.setAddableMetrics_=function(a,b){this.addableMetrics_=a.filter(function(c){return-1==b.indexOf(c)});this.selectedMetric_=""};m.updateAddableMetrics_=function(){this.setAddableMetrics_(this.selectableMetrics_,this.selectedMetrics_)}; m.computeAddSeriesLabel_=function(a){return a.length?"Add metric series":"All metrics have been added"};m.selectedMetricChanged_=function(a){a&&this.push("selectedMetrics_",a)};m.computeSelectableMetrics_=function(a,b){var c=b.split(",");return a.filter(function(d){return-1==c.indexOf(d)})};m.selectableMetricsChanged_=function(){this.selectedMetrics_=this.metrics.slice(0,1)}; m.onChartSelect_=function(a){a.stopPropagation();if(a=this.provider.getEvalConfig(a.detail.point.row)){var b={};b[this.provider.getModelColumnName()]=a.model;b[this.provider.getDataColumnName()]=a.data;this.highlightSelection_(b,!0)}};m.onChartClearSelection_=function(a){a.stopPropagation();this.clearSelection_(!0)};m.getChartForMetric_=function(a){return this.shadowRoot.querySelector('tfma-line-chart[metric="'+a+'"]')}; -y.Object.defineProperties(zk,{is:{configurable:!0,enumerable:!0,get:function(){return"tfma-line-chart-grid"}},template:{configurable:!0,enumerable:!0,get:function(){return tk}},properties:{configurable:!0,enumerable:!0,get:function(){return{metrics:{type:Array,value:function(){return[]}},blacklist:{type:String,value:""},selectableMetrics_:{type:Array,computed:"computeSelectableMetrics_(metrics, blacklist)",observer:zk.prototype.selectableMetricsChanged_},selectedMetric_:{type:String,observer:zk.prototype.selectedMetricChanged_}, -selectedMetrics_:{type:Array},provider:{type:Object},addableMetrics_:{type:Array},addSeriesLabel_:{type:String,computed:"computeAddSeriesLabel_(addableMetrics_)"}}}},observers:{configurable:!0,enumerable:!0,get:function(){return["setAddableMetrics_(selectableMetrics_, selectedMetrics_)","updateAddableMetrics_(selectedMetrics_.splices)"]}}});customElements.define("tfma-line-chart-grid",zk);var Ak,Bk; -if(void 0===Ak){var Ck=document.createElement("template");Ck.innerHTML='\n\n\n\n
\n
\n \n \n
\n
\n
\n \n
\n\n\n';Ak= -Ck}Bk=Ak;var Dk=Wd(Q);function Ek(){return Dk.call(this)||this}x(Ek,Dk);m=Ek.prototype; +x.Object.defineProperties(vk,{is:{configurable:!0,enumerable:!0,get:function(){return"tfma-line-chart-grid"}},template:{configurable:!0,enumerable:!0,get:function(){return pk}},properties:{configurable:!0,enumerable:!0,get:function(){return{metrics:{type:Array,value:function(){return[]}},blacklist:{type:String,value:""},selectableMetrics_:{type:Array,computed:"computeSelectableMetrics_(metrics, blacklist)",observer:vk.prototype.selectableMetricsChanged_},selectedMetric_:{type:String,observer:vk.prototype.selectedMetricChanged_}, +selectedMetrics_:{type:Array},provider:{type:Object},addableMetrics_:{type:Array},addSeriesLabel_:{type:String,computed:"computeAddSeriesLabel_(addableMetrics_)"}}}},observers:{configurable:!0,enumerable:!0,get:function(){return["setAddableMetrics_(selectableMetrics_, selectedMetrics_)","updateAddableMetrics_(selectedMetrics_.splices)"]}}});customElements.define("tfma-line-chart-grid",vk);var wk,xk; +if(void 0===wk){var yk=document.createElement("template");yk.innerHTML='\n\n\n\n
\n
\n \n \n
\n
\n
\n \n
\n\n\n';wk= +yk}xk=wk;var zk=Sd(Q);function Ak(){return zk.call(this)||this}A(Ak,zk);m=Ak.prototype; m.dataChanged_=function(a){var b=Object.keys(a).sort(),c={},d={},e={},f={};b.forEach(function(k){f[k]=1;Object.keys(a[k]).forEach(function(l){d[l]=1;f[l]=1})});var g=Object.keys(d).sort(),h=Object.keys(f).sort().reduce(function(k,l,n){k[l]="c"+n%16;return k},{});g.forEach(function(k){e[k]=h[k]});b.forEach(function(k){c[k]=h[k]});this.rowNames_=b;this.columnNames_=g;this.rowColors_=c;this.columnColors_=e;this.selectedCell_=null}; m.makeCell_=function(a,b,c,d){c=c[a]&&c[a][b];if(void 0===c)return{missing:!0};var e=c.value;d=d(e);return{cell:!0,value:e,cssClass:"b"+Math.round(16*d)+" "+(.5h?(v-h)/(g-h):(h-v)/(h-f):(v-f)/(g-f))||0,1),0)}function n(v,z,C){return{header:!0,name:v,cssClass:C.concat([z[v],"header"]).join(" ")}}var p=this;if(!a||!d||!e||this.tooMany_(b,c))return[];var q=[];if(k){q.push([{label:!0}]);var r=c.reduce(function(v,z){v.push(n(z,e,["col"]));return v},[{widget:!0}]);q.push(r)}b.forEach(function(v){var z=[];k&&z.push(n(v,d,["row"]));c.forEach(function(C){z.push(p.makeCell_(v, C,a,l))});q.push(z)});return q};m.getCellTitle_=function(a,b){return a?b.tooltip:void 0};m.cellTapped_=function(a){if(this.expanded){a=a.model.cell;var b=new CustomEvent("show-details",{detail:a.details,cancelable:!0,bubbles:!0,composed:!0});this.dispatchEvent(b);b.defaultPrevented||(this.selectedCell_=this.selectedCell_==a?null:a)}else a=new CustomEvent("expand",{cancelable:!0,bubbles:!0,composed:!0}),this.dispatchEvent(a),a.defaultPrevented||(this.expanded=!0)}; m.headerTapped_=function(a){var b=a.model.cell.name,c=a.srcElement.classList.contains("col"),d=this.data;a=(c?this.rowNames_:this.columnNames_).slice();a.sort(function(e,f){e=d[c?e:b][c?b:e];f=d[c?f:b][c?b:f];return(e&&void 0!==e.value?e.value:Infinity)-(f&&void 0!==f.value?f.value:Infinity)});c?this.rowNames_=a:this.columnNames_=a};m.tooMany_=function(a,b){return!a||!b||32\n :host {\n display: block;\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14);\n }\n\n google-chart {\n width: auto;\n height: auto;\n }\n\n\n\n\n\n\n\n';Fk= -Hk}Gk=Fk;var Ik,Jk;if(void 0===Ik){var Kk=document.createElement("template");Kk.innerHTML='\n\n\n\n\n\n\n';Ik=Kk}Jk=Ik;function Lk(){return Q.call(this)||this}x(Lk,Q);m=Lk.prototype;m.dataChanged_=function(a){if(a)try{this.jsonData=JSON.parse(a)}catch(b){}};m.computeClassNames_=function(a){var b={};(a.entries||[]).forEach(function(c){b[c.actualClass]=1;b[c.predictedClass]=1});return Object.keys(b)};m.computeClassColors_=function(a){var b={};a.forEach(function(c,d){b[c]="c"+d%16});return b}; +x.Object.defineProperties(Ak,{is:{configurable:!0,enumerable:!0,get:function(){return"tfma-matrix"}},template:{configurable:!0,enumerable:!0,get:function(){return xk}},properties:{configurable:!0,enumerable:!0,get:function(){return{data:{type:Object,observer:Ak.prototype.dataChanged_},rowLabel:{type:String},columnLabel:{type:String},minValue:{type:Number},maxValue:{type:Number},pivot:{type:Number,value:null},expanded:{type:Boolean,value:!1,reflectToAttribute:!0},rowNames_:{type:Array},columnNames_:{type:Array}, +rowColors_:{type:Object},columnColors_:{type:Object},matrix_:{type:Array,computed:"computeMatrix_(data, rowNames_, columnNames_, rowColors_, columnColors_, minValue, maxValue, pivot, expanded)"},selectedCell_:{type:Object}}}}});customElements.define("tfma-matrix",Ak);var Bk,Ck; +if(void 0===Bk){var Dk=document.createElement("template");Dk.innerHTML='\n\n\n\n\n\n\n\n\n\n';Bk= +Dk}Ck=Bk;var Ek,Fk;if(void 0===Ek){var Gk=document.createElement("template");Gk.innerHTML='\n\n\n\n\n\n\n';Ek=Gk}Fk=Ek;function Hk(){return Q.call(this)||this}A(Hk,Q);m=Hk.prototype;m.dataChanged_=function(a){if(a)try{this.jsonData=JSON.parse(a)}catch(b){}};m.computeClassNames_=function(a){var b={};(a.entries||[]).forEach(function(c){b[c.actualClass]=1;b[c.predictedClass]=1});return Object.keys(b)};m.computeClassColors_=function(a){var b={};a.forEach(function(c,d){b[c]="c"+d%16});return b}; m.computeSummary_=function(a,b){var c={},d={},e={};a.forEach(function(k){var l={};e[k]=l;a.forEach(function(n){l[n]=0});c[k]={ue:0,kc:0};d[k]={ue:0,kc:0}});var f=Infinity,g=-Infinity,h=0;(b.entries||[]).forEach(function(k){var l=k.weight||0,n=k.actualClass;k=k.predictedClass;e[n][k]={value:l,tooltip:"Weight: "+l+".\nClick to get more details",details:"Weight for "+n+", "+k+" is "+l+"."};n==k&&(d[n].ue=l,c[n].ue=l);d[n].kc+=l;c[k].kc+=l;h+=l;f>l&&(f=l);g\n :host div.tr:nth-child(even) {\n background: #e4e4e4;\n }\n\n /**\n * There is a bad interaction between dom-repeat element, table tag and vulcanization. Use div\n * and equivalent display: table on class table, tr and td as a work-around.\n * @bug 22376520\n */\n :host div.table {\n text-align: center;\n display: table;\n }\n\n :host div.td {\n min-width: 15px;\n padding: 0 5px;\n display: table-cell;\n }\n\n :host div.tr {\n display: table-row;\n }\n\n
\n \n \n
\n\n\n';Mk= -Ok}Nk=Mk;function Pk(){return Q.call(this)||this}x(Pk,Q);Pk.prototype.formatData_=function(a){try{var b=JSON.parse(a)}catch(c){}if((a=b&&b.values)&&Array.isArray(a))return a.map(function(c){return{cutoff:c.cutoff||"All",value:(c.value||0).toFixed(tfma.FLOATING_POINT_PRECISION)}})}; -y.Object.defineProperties(Pk,{is:{configurable:!0,enumerable:!0,get:function(){return"tfma-value-at-cutoffs"}},template:{configurable:!0,enumerable:!0,get:function(){return Nk}},properties:{configurable:!0,enumerable:!0,get:function(){return{data:{type:String},formattedData_:{type:Object,computed:"formatData_(data)"}}}}});customElements.define("tfma-value-at-cutoffs",Pk);function Qk(){return Q.call(this)||this}x(Qk,Q);m=Qk.prototype; +x.Object.defineProperties(Hk,{is:{configurable:!0,enumerable:!0,get:function(){return"tfma-multi-class-confusion-matrix"}},template:{configurable:!0,enumerable:!0,get:function(){return Fk}},properties:{configurable:!0,enumerable:!0,get:function(){return{data:{type:String,value:"",observer:Hk.prototype.dataChanged_},jsonData:{type:Object},expanded:{type:Boolean,value:!1,reflectToAttribute:!0},classNames_:{type:Array,computed:"computeClassNames_(jsonData)"},summary_:{type:Object,computed:" computeSummary_(classNames_, jsonData)"}}}}}); +customElements.define("tfma-multi-class-confusion-matrix",Hk);var Ik,Jk; +if(void 0===Ik){var Kk=document.createElement("template");Kk.innerHTML='\n\n\n\n
\n \n \n
\n\n\n';Ik= +Kk}Jk=Ik;function Lk(){return Q.call(this)||this}A(Lk,Q);Lk.prototype.formatData_=function(a){try{var b=JSON.parse(a)}catch(c){}if((a=b&&b.values)&&Array.isArray(a))return a.map(function(c){return{cutoff:c.cutoff||"All",value:(c.value||0).toFixed(tfma.FLOATING_POINT_PRECISION)}})}; +x.Object.defineProperties(Lk,{is:{configurable:!0,enumerable:!0,get:function(){return"tfma-value-at-cutoffs"}},template:{configurable:!0,enumerable:!0,get:function(){return Jk}},properties:{configurable:!0,enumerable:!0,get:function(){return{data:{type:String},formattedData_:{type:Object,computed:"formatData_(data)"}}}}});customElements.define("tfma-value-at-cutoffs",Lk);function Mk(){return Q.call(this)||this}A(Mk,Q);m=Mk.prototype; m.ready=function(){function a(){c.removeEventListener("google-chart-ready",a);b.tableReady_=!0;for(var d=b.shadowRoot.querySelectorAll("style"),e=/#hack /g,f=[],g=d.length,h=0;h\n .container {\n display: table;\n border-collapse: collapse;\n }\n .outer {\n display: inline-flex;\n flex-direction: column;\n text-align: center;\n }\n .inner {\n display: inline-flex;\n display: inline-flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n }\n .h-label {\n padding: 0 0 5px 0;\n }\n .v-label {\n transform: rotate(-90deg);\n }\n .row {\n display: table-row;\n }\n .guide {\n background-color: rgba(0,0,0, 0.1);\n }\n .cell {\n display: table-cell;\n white-space: nowrap;\n border: 1px #c5c5c5 solid;\n position: relative;\n }\n .padded {\n padding: 5px;\n }\n .container.compact .cell .padded,\n .container.compact .cell .header {\n display: none;\n }\n .compact .positive,\n .compact .false-positive,\n .compact .false-negative {\n width: 10px;\n height: 10px;\n }\n .compact .cell {\n border: 1px #ddd;\n }\n .cell .false-positive,\n .cell .false-negative,\n .show-false-positive .cell .positive,\n .show-false-negative .cell .positive,\n .show-false-positive .cell .diag.false-positive,\n .show-false-negative .cell .diag.false-negative {\n display: none;\n }\n\n .show-false-positive .cell .false-positive,\n .show-false-negative .cell .false-negative {\n display: block;\n }\n\n .positive,\n .false-positive,\n .false-negative {\n text-align: right;\n }\n #controls {\n width: 680px;\n margin: 5px;\n min-height: 36px;\n position:relative;\n }\n #ctrl-btn {\n position:absolute;\n right: 0px;\n }\n #class-count {\n display: inline-block;\n text-align: center;\n width: 64px;\n }\n .info {\n width: 14px;\n padding: 0 0 8px 2px;\n }\n\n paper-tooltip {\n --paper-tooltip-background: #555;\n --paper-tooltip-opacity: 1;\n --paper-tooltip: {\n font-size: 13px;\n color: white;\n }\n }\n .tip {\n margin: 12px;\n width: 200px;\n }\n .b0 {\n background-color: rgb(240, 240, 240);\n }\n .b1 {\n background-color: rgb(226, 229, 235);\n }\n .b2 {\n background-color: rgb(211, 219, 231);\n }\n .b3 {\n background-color: rgb(197, 208, 226);\n }\n .b4 {\n background-color: rgb(183, 198, 221);\n }\n .b5 {\n background-color: rgb(168, 187, 216);\n }\n .b6 {\n background-color: rgb(154, 177, 212);\n }\n .b7 {\n background-color: rgb(139, 166, 207);\n }\n .b8 {\n background-color: rgb(125, 156, 202);\n }\n .b9 {\n background-color: rgb(111, 145, 197);\n color: white;\n }\n .b10 {\n background-color: rgb(96, 134, 193);\n color: white;\n }\n .b11 {\n background-color: rgb(82, 124, 188);\n color: white;\n }\n .b12 {\n background-color: rgb(68, 113, 183);\n color: white;\n }\n .b13 {\n background-color: rgb(53, 103, 178);\n color: white;\n }\n .b14 {\n background-color: rgb(39, 92, 174);\n color: white;\n }\n .b15 {\n background-color: rgb(24, 82, 169);\n color: white;\n }\n .b16 {\n background-color: rgb(10, 71, 164);\n color: white;\n }\n\n #scale {\n display: inline-block;\n width: 256px;\n height: 10px;\n background: linear-gradient(90deg, #f0f0f0, #0a47a4);\n padding: 0 6px;\n }\n\n .anchor {\n z-index: 1;\n }\n\n #tooltip {\n position:absolute;\n left: 12px;\n top: 24px;\n border: 1px solid grey;\n padding: 6px;\n background: white;\n }\n .compact #tooltip {\n left: 5px;\n top: 10px;\n }\n\n
\n
\n \n \n \n
\n \n \n \n \n \n
\n
\n \n \n \n [[getModeText_(sortBy_.POSITIVES)]]\n \n \n [[getModeText_(sortBy_.FALSE_POSITIVES)]]\n \n \n [[getModeText_(sortBy_.FALSE_NEGATIVES)]]\n \n \n
\n
\n \n \n \n [[getSortText_(sortBy_.ALPHABETICAL)]]\n \n \n [[getSortText_(sortBy_.POSITIVES)]]\n \n \n [[getSortText_(sortBy_.TRUE_POSITIVES)]]\n \n \n [[getSortText_(sortBy_.FALSE_POSITIVES)]]\n \n \n [[getSortText_(sortBy_.FALSE_NEGATIVES)]]\n \n \n [[getSortText_(sortBy_.NO_PREDICTION)]]\n \n \n
\n
\n \n \n \n 0%
100%\n
\n
\n Show percentage\n Compact\n
\n
\n
\n
\n
\n Predicted\n
\n
\n
\n Actual\n
\n
\n \n
\n
\n
\n
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
Predicted class: [[selectedPrecitedClass_]]
Actual class:[[selectedActualClass_]]
[[getModeText_(mode_)]]:[[selectedCellValue_]] ([[selectedCellPercentage_]]%)
Order by [[getSortText_(sort_)]]:[[selectedRowTotal_]]
\n
\n\n\n';Rk= -Tk}Sk=Rk;var Uk={},Vk=(Uk.p="Total prediction count",Uk.fp="Incorrect prediciton counts",Uk.fn="False negative count",Uk),Wk={},Xk=(Wk.a="Alphabetical",Wk.fp="Incorrect prediction count",Wk.fn="False negatives",Wk.np="No prediction",Wk.p="Total prediction count",Wk.tp="Correct prediction count",Wk);function Yk(){return Q.call(this)||this}x(Yk,Q);m=Yk.prototype;m.computeThresholds_=function(a){return(a.matrices||[]).map(function(b){return b.threshold||0}).sort(function(b,c){return b-c})}; +x.Object.defineProperties(Mk,{is:{configurable:!0,enumerable:!0,get:function(){return"tfma-metrics-table"}},template:{configurable:!0,enumerable:!0,get:function(){return Ck}},properties:{configurable:!0,enumerable:!0,get:function(){return{metrics:{type:Array,value:function(){return[]}},metricFormats:{type:Object,value:function(){return{}}},data:Object,pageSize:{type:Number,value:20},headerOverride:{type:Object,value:function(){return{}}},options_:{type:Object,computed:"computeOptions_(pageSize)"}, +chartEvents_:{type:Array,value:function(){return["page","sort"]}},selection:{type:Array,observer:Mk.prototype.selectionChanged_,notify:!0},tableReady_:{type:Boolean,value:!1},plotData_:{type:Array,computed:"computePlotData_(data, metrics, metricFormats, headerOverride, tableReady_)"},currentPage_:{type:Number,value:0},sortedIndexes_:{type:Array,value:null},visibleRows:{type:Array,notify:!0}}}},observers:{configurable:!0,enumerable:!0,get:function(){return["updateVisibleRows_(currentPage_, pageSize, sortedIndexes_, plotData_.length)"]}}}); +customElements.define("tfma-metrics-table",Mk);var Nk,Ok; +if(void 0===Nk){var Pk=document.createElement("template");Pk.innerHTML='\n\n\n\n
\n
\n \n \n \n
\n \n \n \n \n \n
\n
\n \n \n \n [[getModeText_(sortBy_.POSITIVES)]]\n \n \n [[getModeText_(sortBy_.FALSE_POSITIVES)]]\n \n \n [[getModeText_(sortBy_.FALSE_NEGATIVES)]]\n \n \n
\n
\n \n \n \n [[getSortText_(sortBy_.ALPHABETICAL)]]\n \n \n [[getSortText_(sortBy_.POSITIVES)]]\n \n \n [[getSortText_(sortBy_.TRUE_POSITIVES)]]\n \n \n [[getSortText_(sortBy_.FALSE_POSITIVES)]]\n \n \n [[getSortText_(sortBy_.FALSE_NEGATIVES)]]\n \n \n [[getSortText_(sortBy_.NO_PREDICTION)]]\n \n \n
\n
\n \n \n \n 0%
100%\n
\n
\n Show percentage\n Compact\n
\n
\n
\n
\n
\n Predicted\n
\n
\n
\n Actual\n
\n
\n \n
\n
\n
\n
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
Predicted class: [[selectedPrecitedClass_]]
Actual class:[[selectedActualClass_]]
[[getModeText_(mode_)]]:[[selectedCellValue_]] ([[selectedCellPercentage_]]%)
Order by [[getSortText_(sort_)]]:[[selectedRowTotal_]]
\n
\n\n\n';Nk= +Pk}Ok=Nk;var Qk={},Rk=(Qk.p="Total prediction count",Qk.fp="Incorrect prediciton counts",Qk.fn="False negative count",Qk),Sk={},Tk=(Sk.a="Alphabetical",Sk.fp="Incorrect prediction count",Sk.fn="False negatives",Sk.np="No prediction",Sk.p="Total prediction count",Sk.tp="Correct prediction count",Sk);function Uk(){return Q.call(this)||this}A(Uk,Q);m=Uk.prototype;m.computeThresholds_=function(a){return(a.matrices||[]).map(function(b){return b.threshold||0}).sort(function(b,c){return b-c})}; m.thresholdsChanged_=function(a){a&&a.length&&(this.selectedThreshold_=a[Math.floor(a.length/2)])};m.computeAvailableClassIds_=function(a){var b={};a.matrices.forEach(function(c){c.entries.forEach(function(d){var e=d.actualClassId||0;b[d.predictedClassId||0]=1;b[e]=1})});return Object.keys(b)};m.computeSummary_=function(a,b,c){if(a&&c){a=a.matrices;for(var d={},e=0;ec[g]?1:-1;f=e.getSortValue_(a,f,d);return e.getSortValue_(a,g,d)-f})};m.makeHeaderCell_=function(a,b){return{classId:!0,text:a,headerClasses:b}}; m.makeDataCell_=function(a,b,c,d,e,f){return{cell:!0,positives:a,falsePositives:b,falseNegatives:c,positiveClasses:"positive "+d,falsePositiveClasses:"false-positive "+e,falseNegativeClasses:"false-negative "+f}}; m.computeMatrix_=function(a,b,c,d,e,f){var g=this;if(a&&b&&d){var h="np"!=e&&"a"!=e,k=[this.makeHeaderCell_("Class Id"),this.makeHeaderCell_("Total","guide")];b.forEach(function(r){k.push(g.makeHeaderCell_(d[r]))});h&&k.push(this.makeHeaderCell_("Sort By","guide"));var l=[k],n=function(r,v,z,C){return z?(C=g.getSortValue_(a,r,C)," b"+Math.round(16*Math.min(z/C,1))+(r==v?" diag":"")):""},p=function(r){if(1E3>r)return r;var v=Math.floor(Math.log10(r)/3);return(r/[1,1E3,1E6,1E9,1E12,1E15,1E18][v]).toFixed(2)+ -" k M G T P E".split(" ")[v]},q=function(r,v,z){return r&&z?(r/(v||1)*100).toFixed(1)+"%":p(r)};b.forEach(function(r,v){if(!(v>=c||-1==r)){var z=a[r],C=[g.makeHeaderCell_(d[r]),g.makeDataCell_(p(z.ah),p(z.zg),p(z.yg),"guide header","guide header","guide header")],H=g.getSortValue_(a,r,e);b.forEach(function(G,E){if(!(E>=c&&-1!=G)){E=z.entries[G].md;var J=z.entries[G].bc,ya=z.entries[G].hd,ti=q(E,H,f),ui=q(J,H,f),vi=q(ya,H,f);-1==G?C.push(g.makeDataCell_(ti||"",ui||"",vi||"","guide header","guide header", -"guide header")):C.push(g.makeDataCell_(ti||"",ui||"",vi||"",n(r,G,E,"p"),n(r,G,J,"fp"),n(r,G,ya,"fn")))}});h&&C.push(g.makeHeaderCell_(p(g.getSortValue_(a,r,e)),"guide"));l.push(C)}});return l}};m.determineTableClass_=function(a,b){return["container","p"==a?"":"show-false-"+("fp"==a?"positive":"negative"),b?"compact":""].join(" ")};m.sortedClassIdsChanged_=function(a){var b=0<=a.indexOf("-1");this.numberOfClassesShown_=Math.min(a.length-(b?1:0),64)}; -m.toggleControl_=function(){this.controlOpened_=!this.controlOpened_};m.getIcon_=function(a){return a?"expand-less":"expand-more"};m.parsePointerEvent_=function(a){for(a=a.target;a&&!a.classList.contains("cell");)a=a.parentElement;if(a){var b=parseInt(a.getAttribute("row"),10)-1,c=parseInt(a.getAttribute("column"),10)-2;if(0<=b&&0<=c&&c=c||-1==r)){var z=a[r],C=[g.makeHeaderCell_(d[r]),g.makeDataCell_(p(z.yg),p(z.xg),p(z.wg),"guide header","guide header","guide header")],I=g.getSortValue_(a,r,e);b.forEach(function(G,E){if(!(E>=c&&-1!=G)){E=z.entries[G].md;var J=z.entries[G].bc,xa=z.entries[G].hd,qi=q(E,I,f),ri=q(J,I,f),si=q(xa,I,f);-1==G?C.push(g.makeDataCell_(qi||"",ri||"",si||"","guide header","guide header", +"guide header")):C.push(g.makeDataCell_(qi||"",ri||"",si||"",n(r,G,E,"p"),n(r,G,J,"fp"),n(r,G,xa,"fn")))}});h&&C.push(g.makeHeaderCell_(p(g.getSortValue_(a,r,e)),"guide"));l.push(C)}});return l}};m.determineTableClass_=function(a,b){return["container","p"==a?"":"show-false-"+("fp"==a?"positive":"negative"),b?"compact":""].join(" ")};m.sortedClassIdsChanged_=function(a){var b=0<=a.indexOf("-1");this.numberOfClassesShown_=Math.min(a.length-(b?1:0),64)}; +m.toggleControl_=function(){this.controlOpened_=!this.controlOpened_};m.getIcon_=function(a){return a?"expand-less":"expand-more"};m.parsePointerEvent_=function(a){for(a=a.target;a&&!a.classList.contains("cell");)a=a.parentElement;if(a){var b=parseInt(a.getAttribute("row"),10)-1,c=parseInt(a.getAttribute("column"),10)-2;if(0<=b&&0<=c&&c\n tfma-plot {\n width: 100%;\n }\n\n\n\n\n\n';Zk=al}$k=Zk;var bl,cl; -if(void 0===bl){var dl=document.createElement("template");dl.innerHTML='\n\n\n\n
\n
\n

[[heading]]

\n
\n
\n
\n Error loading plot data.\n
\n
\n Reload\n
\n
\n
\n \n
\n [[chartTitles_.Calibration]]\n
[[getSubTitle_(subtitles, tabNames_.Calibration)]]
\n \n \n
\n
\n [[chartTitles_.Residual]]\n
[[getSubTitle_(subtitles, tabNames_.Residual)]]
\n \n \n
\n
\n [[chartTitles_.Macro]]\n
[[getSubTitle_(subtitles, tabNames_.Macro)]]
\n \n \n
\n
\n [[chartTitles_.Micro]]\n
[[getSubTitle_(subtitles, tabNames_.Micro)]]
\n \n \n
\n
\n [[chartTitles_.Weighted]]\n
[[getSubTitle_(subtitles, tabNames_.Weighted)]]
\n \n \n
\n
\n [[chartTitles_.Precision]]\n
[[getSubTitle_(subtitles, tabNames_.Precision)]]
\n \n \n
\n
\n [[chartTitles_.Prediction]]\n
[[getSubTitle_(subtitles, tabNames_.Prediction)]]
\n \n \n
\n
\n [[chartTitles_.ROC]]\n
[[getSubTitle_(subtitles, tabNames_.ROC)]]
\n \n \n
\n
\n [[chartTitles_.Gain]]\n
[[getSubTitle_(subtitles, tabNames_.Gain)]]
\n \n \n
\n
\n [[chartTitles_.Accuracy]]\n
[[getSubTitle_(subtitles, tabNames_.Accuracy)]]
\n \n \n
\n
\n [[chartTitles_.MultiClassConfusionMatrix]]\n
\n [[getSubTitle_(subtitles, tabNames_.MULTI_CLASS_CONFUSION_MATRIX)]]\n
\n \n \n
\n
\n [[chartTitles_.MultiLabelConfusionMatrix]]\n
\n [[getSubTitle_(subtitles, tabNames_.MULTI_LABEL_CONFUSION_MATRIX)]]\n
\n \n \n
\n
\n \n
\n \n
\n
\n
\n \n Show all plots\n \n
\n
\n\n\n';bl= -dl}cl=bl;var el,fl;if(void 0===el){var gl=document.createElement("template");gl.innerHTML='\n\n\n\n\n\n';el=gl}fl=el;function hl(){return Q.call(this)||this}x(hl,Q);hl.prototype.computePlotData_=function(a){var b=[["Recall","Precision",{type:"string",role:"tooltip"}]];a.forEach(function(c){var d=Math.max(0,Math.min(1,c.threshold||0)),e=tfma.CellRenderer.extractFloatValue(c,"recall");c=tfma.CellRenderer.extractFloatValue(c,"precision");b.push([e,c,"Prediction threshold: "+d.toFixed(5)+"\nRecall: "+e.toFixed(5)+"\nPrecision: "+c.toFixed(5)])});return b}; -y.Object.defineProperties(hl,{is:{configurable:!0,enumerable:!0,get:function(){return"tfma-precision-recall-curve"}},template:{configurable:!0,enumerable:!0,get:function(){return fl}},properties:{configurable:!0,enumerable:!0,get:function(){return{data:{type:Array},options_:{type:Object,value:{legend:{position:"bottom"},hAxis:{title:"Recall"},vAxis:{title:"Precision"},series:{0:{visibleInLegend:!1}},explorer:{actions:["dragToZoom","rightClickToReset"]}}},plotData_:{type:Array,computed:"computePlotData_(data)"}}}}}); -customElements.define("tfma-precision-recall-curve",hl);var il,jl;if(void 0===il){var kl=document.createElement("template");kl.innerHTML='\n\n\n\n\n\n\n\n';il=kl}jl=il;function ll(){return Q.call(this)||this}x(ll,Q); -ll.prototype.computePlotData_=function(a,b){if(a){var c=a&&a[0]&&a[0].upperThresholdExclusive||0,d=a&&a[a.length-1]&&a[a.length-1].lowerThresholdInclusive||0,e=(d-c)/b||1,f=[["Prediction","Count",{type:"string",role:"tooltip"},"Positive",{type:"string",role:"tooltip"},"Negative",{type:"string",role:"tooltip"}]];b=c+e/2;do f.push([b,0,"",0,"",0,""]),b+=e;while(b\n tfma-plot {\n width: 100%;\n }\n\n\n\n\n\n';Vk=Xk}Wk=Vk;var Yk,Zk; +if(void 0===Yk){var $k=document.createElement("template");$k.innerHTML='\n\n\n\n
\n
\n

[[heading]]

\n
\n
\n
\n Error loading plot data.\n
\n
\n Reload\n
\n
\n
\n \n
\n [[chartTitles_.Calibration]]\n
[[getSubTitle_(subtitles, tabNames_.Calibration)]]
\n \n \n
\n
\n [[chartTitles_.Residual]]\n
[[getSubTitle_(subtitles, tabNames_.Residual)]]
\n \n \n
\n
\n [[chartTitles_.Macro]]\n
[[getSubTitle_(subtitles, tabNames_.Macro)]]
\n \n \n
\n
\n [[chartTitles_.Micro]]\n
[[getSubTitle_(subtitles, tabNames_.Micro)]]
\n \n \n
\n
\n [[chartTitles_.Weighted]]\n
[[getSubTitle_(subtitles, tabNames_.Weighted)]]
\n \n \n
\n
\n [[chartTitles_.Precision]]\n
[[getSubTitle_(subtitles, tabNames_.Precision)]]
\n \n \n
\n
\n [[chartTitles_.Prediction]]\n
[[getSubTitle_(subtitles, tabNames_.Prediction)]]
\n \n \n
\n
\n [[chartTitles_.ROC]]\n
[[getSubTitle_(subtitles, tabNames_.ROC)]]
\n \n \n
\n
\n [[chartTitles_.Gain]]\n
[[getSubTitle_(subtitles, tabNames_.Gain)]]
\n \n \n
\n
\n [[chartTitles_.Accuracy]]\n
[[getSubTitle_(subtitles, tabNames_.Accuracy)]]
\n \n \n
\n
\n [[chartTitles_.MultiClassConfusionMatrix]]\n
\n [[getSubTitle_(subtitles, tabNames_.MULTI_CLASS_CONFUSION_MATRIX)]]\n
\n \n \n
\n
\n [[chartTitles_.MultiLabelConfusionMatrix]]\n
\n [[getSubTitle_(subtitles, tabNames_.MULTI_LABEL_CONFUSION_MATRIX)]]\n
\n \n \n
\n
\n \n
\n \n
\n
\n
\n \n Show all plots\n \n
\n
\n\n\n';Yk= +$k}Zk=Yk;var al,bl;if(void 0===al){var cl=document.createElement("template");cl.innerHTML='\n\n\n\n\n\n';al=cl}bl=al;function dl(){return Q.call(this)||this}A(dl,Q);dl.prototype.computePlotData_=function(a){var b=[["Recall","Precision",{type:"string",role:"tooltip"}]];a.forEach(function(c){var d=Math.max(0,Math.min(1,c.threshold||0)),e=tfma.CellRenderer.extractFloatValue(c,"recall");c=tfma.CellRenderer.extractFloatValue(c,"precision");b.push([e,c,"Prediction threshold: "+d.toFixed(5)+"\nRecall: "+e.toFixed(5)+"\nPrecision: "+c.toFixed(5)])});return b}; +x.Object.defineProperties(dl,{is:{configurable:!0,enumerable:!0,get:function(){return"tfma-precision-recall-curve"}},template:{configurable:!0,enumerable:!0,get:function(){return bl}},properties:{configurable:!0,enumerable:!0,get:function(){return{data:{type:Array},options_:{type:Object,value:{legend:{position:"bottom"},hAxis:{title:"Recall"},vAxis:{title:"Precision"},series:{0:{visibleInLegend:!1}},explorer:{actions:["dragToZoom","rightClickToReset"]}}},plotData_:{type:Array,computed:"computePlotData_(data)"}}}}}); +customElements.define("tfma-precision-recall-curve",dl);var el,fl;if(void 0===el){var gl=document.createElement("template");gl.innerHTML='\n\n\n\n\n\n\n\n';el=gl}fl=el;function hl(){return Q.call(this)||this}A(hl,Q); +hl.prototype.computePlotData_=function(a,b){if(a){var c=a&&a[0]&&a[0].upperThresholdExclusive||0,d=a&&a[a.length-1]&&a[a.length-1].lowerThresholdInclusive||0,e=(d-c)/b||1,f=[["Prediction","Count",{type:"string",role:"tooltip"},"Positive",{type:"string",role:"tooltip"},"Negative",{type:"string",role:"tooltip"}]];b=c+e/2;do f.push([b,0,"",0,"",0,""]),b+=e;while(b\n\n\n\n\n';ml=ol}nl=ml;function pl(){return Q.call(this)||this}x(pl,Q); -pl.prototype.computePlotData_=function(a){if(a.length){for(var b=[["Label","Residual",{type:"string",role:"tooltip"},"",{type:"string",role:"tooltip"},"Count",{type:"string",role:"tooltip"}]],c=0;c\n\n\n\n\n';il=kl}jl=il;function ll(){return Q.call(this)||this}A(ll,Q); +ll.prototype.computePlotData_=function(a){if(a.length){for(var b=[["Label","Residual",{type:"string",role:"tooltip"},"",{type:"string",role:"tooltip"},"Count",{type:"string",role:"tooltip"}]],c=0;c\n\n\n\n';ql=sl}rl=ql;function tl(){return Q.call(this)||this}x(tl,Q); -tl.prototype.computePlotData_=function(a){var b=[["FPR","",{type:"string",role:"tooltip"},"TPR",{type:"string",role:"tooltip"}]];a.forEach(function(c){var d=Math.max(0,Math.min(1,c.threshold||0)),e=tfma.CellRenderer.extractFloatValue(c,"truePositives"),f=tfma.CellRenderer.extractFloatValue(c,"falseNegatives");e/=e+f;f=tfma.CellRenderer.extractFloatValue(c,"trueNegatives");c=tfma.CellRenderer.extractFloatValue(c,"falsePositives");c/=f+c;b.push([c,c,"Random",e,"Prediction threshold: "+d.toFixed(5)+ +x.Object.defineProperties(ll,{is:{configurable:!0,enumerable:!0,get:function(){return"tfma-residual-plot"}},template:{configurable:!0,enumerable:!0,get:function(){return jl}},properties:{configurable:!0,enumerable:!0,get:function(){return{data:{type:Array},options_:{type:Object,value:{legend:{position:"top"},hAxis:{title:"Label"},vAxes:{0:{title:"Residual"},1:{title:"Sample Count"}},series:{0:{visibleInLegend:!0,targetAxisIndex:0,type:"line"},1:{visibleInLegend:!1,targetAxisIndex:0,type:"line",lineDashStyle:[3, +2]},2:{visibleInLegend:!0,targetAxisIndex:1,type:"scatter",pointShape:"diamond"}},explorer:{actions:["dragToZoom","rightClickToReset"]}}},plotData_:{type:Array,computed:"computePlotData_(data)"}}}}});customElements.define("tfma-residual-plot",ll);var ml,nl;if(void 0===ml){var ol=document.createElement("template");ol.innerHTML='\n\n\n\n\n\n\n';ml=ol}nl=ml;function pl(){return Q.call(this)||this}A(pl,Q); +pl.prototype.computePlotData_=function(a){var b=[["FPR","",{type:"string",role:"tooltip"},"TPR",{type:"string",role:"tooltip"}]];a.forEach(function(c){var d=Math.max(0,Math.min(1,c.threshold||0)),e=tfma.CellRenderer.extractFloatValue(c,"truePositives"),f=tfma.CellRenderer.extractFloatValue(c,"falseNegatives");e/=e+f;f=tfma.CellRenderer.extractFloatValue(c,"trueNegatives");c=tfma.CellRenderer.extractFloatValue(c,"falsePositives");c/=f+c;b.push([c,c,"Random",e,"Prediction threshold: "+d.toFixed(5)+ "\nFPR: "+c.toFixed(5)+"\nTPR: "+e.toFixed(5)])});return b}; -y.Object.defineProperties(tl,{is:{configurable:!0,enumerable:!0,get:function(){return"tfma-roc-curve"}},template:{configurable:!0,enumerable:!0,get:function(){return rl}},properties:{configurable:!0,enumerable:!0,get:function(){return{data:{type:Array},options_:{type:Object,value:{legend:{position:"bottom"},hAxis:{title:"False Positive Rate"},vAxis:{title:"True Positive Rate"},series:{0:{lineDashStyle:[3,2],visibleInLegend:!1},1:{visibleInLegend:!1}},explorer:{actions:["dragToZoom","rightClickToReset"]}}}, -plotData_:{type:Array,computed:"computePlotData_(data)"}}}}});customElements.define("tfma-roc-curve",tl);var Z={},ul=(Z[tfma.PlotTypes.CALIBRATION_PLOT]={type:"cp",text:"Calibration Plot"},Z[tfma.PlotTypes.PRECISION_RECALL_CURVE]={type:"pr",text:"Precision-Recall Curve"},Z[tfma.PlotTypes.MACRO_PRECISION_RECALL_CURVE]={type:"mapr",text:"Macro PR Curve"},Z[tfma.PlotTypes.MICRO_PRECISION_RECALL_CURVE]={type:"mipr",text:"Micro PR Curve"},Z[tfma.PlotTypes.WEIGHTED_PRECISION_RECALL_CURVE]={type:"wpr",text:"Weighted PR Curve"},Z[tfma.PlotTypes.PREDICTION_DISTRIBUTION]={type:"pd",text:"Prediction Distribution"}, -Z[tfma.PlotTypes.RESIDUAL_PLOT]={type:"res",text:"Residual Plot"},Z[tfma.PlotTypes.ROC_CURVE]={type:"roc",text:"ROC Curve"},Z[tfma.PlotTypes.ACCURACY_CHARTS]={type:"acc",text:"Acc/P/R/F1"},Z[tfma.PlotTypes.GAIN_CHART]={type:"gain",text:"Gain"},Z[tfma.PlotTypes.MULTI_CLASS_CONFUSION_MATRIX]={type:"mccm",text:"Multi-class Confusion Matrix"},Z[tfma.PlotTypes.MULTI_LABEL_CONFUSION_MATRIX]={type:"mlcm",text:"Multi-label Confusion Matrix"},Z);function vl(){return Q.call(this)||this}x(vl,Q);m=vl.prototype; +x.Object.defineProperties(pl,{is:{configurable:!0,enumerable:!0,get:function(){return"tfma-roc-curve"}},template:{configurable:!0,enumerable:!0,get:function(){return nl}},properties:{configurable:!0,enumerable:!0,get:function(){return{data:{type:Array},options_:{type:Object,value:{legend:{position:"bottom"},hAxis:{title:"False Positive Rate"},vAxis:{title:"True Positive Rate"},series:{0:{lineDashStyle:[3,2],visibleInLegend:!1},1:{visibleInLegend:!1}},explorer:{actions:["dragToZoom","rightClickToReset"]}}}, +plotData_:{type:Array,computed:"computePlotData_(data)"}}}}});customElements.define("tfma-roc-curve",pl);var Z={},ql=(Z[tfma.PlotTypes.CALIBRATION_PLOT]={type:"cp",text:"Calibration Plot"},Z[tfma.PlotTypes.PRECISION_RECALL_CURVE]={type:"pr",text:"Precision-Recall Curve"},Z[tfma.PlotTypes.MACRO_PRECISION_RECALL_CURVE]={type:"mapr",text:"Macro PR Curve"},Z[tfma.PlotTypes.MICRO_PRECISION_RECALL_CURVE]={type:"mipr",text:"Micro PR Curve"},Z[tfma.PlotTypes.WEIGHTED_PRECISION_RECALL_CURVE]={type:"wpr",text:"Weighted PR Curve"},Z[tfma.PlotTypes.PREDICTION_DISTRIBUTION]={type:"pd",text:"Prediction Distribution"}, +Z[tfma.PlotTypes.RESIDUAL_PLOT]={type:"res",text:"Residual Plot"},Z[tfma.PlotTypes.ROC_CURVE]={type:"roc",text:"ROC Curve"},Z[tfma.PlotTypes.ACCURACY_CHARTS]={type:"acc",text:"Acc/P/R/F1"},Z[tfma.PlotTypes.GAIN_CHART]={type:"gain",text:"Gain"},Z[tfma.PlotTypes.MULTI_CLASS_CONFUSION_MATRIX]={type:"mccm",text:"Multi-class Confusion Matrix"},Z[tfma.PlotTypes.MULTI_LABEL_CONFUSION_MATRIX]={type:"mlcm",text:"Multi-label Confusion Matrix"},Z);function rl(){return Q.call(this)||this}A(rl,Q);m=rl.prototype; m.connectedCallback=function(){Q.prototype.connectedCallback.call(this);this.chartsMap_||(this.chartsMap_=this.buildChartsMap_())};m.computeCalibrationData_=function(a){a=a&&a.plotData||{};return a[tfma.PlotDataFieldNames.CALIBRATION_DATA]&&a[tfma.PlotDataFieldNames.CALIBRATION_DATA][tfma.PlotDataFieldNames.CALIBRATION_BUCKETS]||[]};m.computePrecisionRecallCurveData_=function(a){return this.getMatricesForPRCurve_(a,tfma.PlotDataFieldNames.PRECISION_RECALL_CURVE_DATA)}; m.getMatricesForPRCurve_=function(a,b){return(a=(a&&a.plotData||{})[b])&&a[tfma.PlotDataFieldNames.CONFUSION_MATRICES]||[]};m.computeMacroPrecisionRecallCurveData_=function(a){return this.getMatricesForPRCurve_(a,tfma.PlotDataFieldNames.MACRO_PRECISION_RECALL_CURVE_DATA)};m.computeMicroPrecisionRecallCurveData_=function(a){return this.getMatricesForPRCurve_(a,tfma.PlotDataFieldNames.MICRO_PRECISION_RECALL_CURVE_DATA)};m.computeMultiClassConfusionMatrixData_=function(a){return(a&&a.plotData||{})[tfma.PlotDataFieldNames.MULTI_CLASS_CONFUSION_MATRIX_DATA]}; -m.computeMultiLabelConfusionMatrixData_=function(a){return(a&&a.plotData||{})[tfma.PlotDataFieldNames.MULTI_LABEL_CONFUSION_MATRIX_DATA]};m.computeWeightedPrecisionRecallCurveData_=function(a){return this.getMatricesForPRCurve_(a,tfma.PlotDataFieldNames.WEIGHTED_PRECISION_RECALL_CURVE_DATA)};m.initialTypeChanged_=function(a){a&&(this.selectedTab_=ul[a].type)};m.selectedTabChanged_=function(){this.initialType=null};m.computeError_=function(a,b){return!a&&null==b};m.reload_=function(){this.dispatchEvent(new CustomEvent(tfma.Event.RELOAD_PLOT_DATA))}; -m.computeAvailableTabs_=function(a){var b=[];a.forEach(function(c){ul[c]&&b.push(ul[c])});return b};m.flatChanged_=function(a){a&&(this.showAll_=!0)};m.buildChartsMap_=function(){return Array.from(this.$.plots.querySelectorAll(".plot-holder")).reduce(function(a,b){a[b.name]=b;return a},{})};m.layoutCharts_=function(a,b,c){if(a&&c){if(b){for(var d=this.$["flat-view-container"];d.lastChild;)d.removeChild(d.lastChild);c.forEach(function(f){d.appendChild(a[f.type])})}else{b=this.$.plots;for(var e in a)b.appendChild(a[e])}this.dispatchEvent(new CustomEvent("iron-resize"))}}; -m.getSubTitle_=function(a,b){if(a)for(var c in ul)if(ul[c].type==b)return a[c]||"";return""}; -y.Object.defineProperties(vl,{is:{configurable:!0,enumerable:!0,get:function(){return"tfma-plot"}},template:{configurable:!0,enumerable:!0,get:function(){return cl}},properties:{configurable:!0,enumerable:!0,get:function(){return{availableTypes:{type:Array},initialType:{type:String,observer:vl.prototype.initialTypeChanged_},data:{type:Object},heading:{type:String},availableTabs_:{type:Array,computed:"computeAvailableTabs_(availableTypes)"},loading:{type:Boolean,reflectToAttribute:!0},error_:{type:Boolean, -reflectToAttribute:!0,computed:"computeError_(loading, data)"},selectedTab_:{type:String,observer:vl.prototype.selectedTabChanged_},tabNames_:{type:Object,value:{Accuracy:"acc",Calibration:"cp",Gain:"gain",Prediction:"pd",Macro:"mapr",Micro:"mipr",MULTI_CLASS_CONFUSION_MATRIX:"mccm",MULTI_LABEL_CONFUSION_MATRIX:"mlcm",Precision:"pr",Residual:"res",ROC:"roc",Weighted:"wpr"}},chartTitles_:{type:Object,value:{Accuracy:"Acc/P/R/F1",Calibration:"Calibration Plot",Gain:"Gain",Prediction:"Prediction Distribution", +m.computeMultiLabelConfusionMatrixData_=function(a){return(a&&a.plotData||{})[tfma.PlotDataFieldNames.MULTI_LABEL_CONFUSION_MATRIX_DATA]};m.computeWeightedPrecisionRecallCurveData_=function(a){return this.getMatricesForPRCurve_(a,tfma.PlotDataFieldNames.WEIGHTED_PRECISION_RECALL_CURVE_DATA)};m.initialTypeChanged_=function(a){a&&(this.selectedTab_=ql[a].type)};m.selectedTabChanged_=function(){this.initialType=null};m.computeError_=function(a,b){return!a&&null==b};m.reload_=function(){this.dispatchEvent(new CustomEvent(tfma.Event.RELOAD_PLOT_DATA))}; +m.computeAvailableTabs_=function(a){var b=[];a.forEach(function(c){ql[c]&&b.push(ql[c])});return b};m.flatChanged_=function(a){a&&(this.showAll_=!0)};m.buildChartsMap_=function(){return Array.from(this.$.plots.querySelectorAll(".plot-holder")).reduce(function(a,b){a[b.name]=b;return a},{})};m.layoutCharts_=function(a,b,c){if(a&&c){if(b){for(var d=this.$["flat-view-container"];d.lastChild;)d.removeChild(d.lastChild);c.forEach(function(f){d.appendChild(a[f.type])})}else{b=this.$.plots;for(var e in a)b.appendChild(a[e])}this.dispatchEvent(new CustomEvent("iron-resize"))}}; +m.getSubTitle_=function(a,b){if(a)for(var c in ql)if(ql[c].type==b)return a[c]||"";return""}; +x.Object.defineProperties(rl,{is:{configurable:!0,enumerable:!0,get:function(){return"tfma-plot"}},template:{configurable:!0,enumerable:!0,get:function(){return Zk}},properties:{configurable:!0,enumerable:!0,get:function(){return{availableTypes:{type:Array},initialType:{type:String,observer:rl.prototype.initialTypeChanged_},data:{type:Object},heading:{type:String},availableTabs_:{type:Array,computed:"computeAvailableTabs_(availableTypes)"},loading:{type:Boolean,reflectToAttribute:!0},error_:{type:Boolean, +reflectToAttribute:!0,computed:"computeError_(loading, data)"},selectedTab_:{type:String,observer:rl.prototype.selectedTabChanged_},tabNames_:{type:Object,value:{Accuracy:"acc",Calibration:"cp",Gain:"gain",Prediction:"pd",Macro:"mapr",Micro:"mipr",MULTI_CLASS_CONFUSION_MATRIX:"mccm",MULTI_LABEL_CONFUSION_MATRIX:"mlcm",Precision:"pr",Residual:"res",ROC:"roc",Weighted:"wpr"}},chartTitles_:{type:Object,value:{Accuracy:"Acc/P/R/F1",Calibration:"Calibration Plot",Gain:"Gain",Prediction:"Prediction Distribution", Macro:"Macro PR Curve",Micro:"Micro PR Curve",MultiClassConfusionMatrix:"Multi-class Confusion Matrix",MultiLabelConfusionMatrix:"Multi-label Confusion Matrix",Precision:"Precision-Recall Curve",Residual:"Residual Plot",ROC:"ROC Curve",Weighted:"Weighted PR Curve"}},calibrationData_:{type:Array,computed:"computeCalibrationData_(data)"},precisionRecallCurveData_:{type:Array,computed:"computePrecisionRecallCurveData_(data)"},macroPrecisionRecallCurveData_:{type:Array,computed:"computeMacroPrecisionRecallCurveData_(data)"}, -microPrecisionRecallCurveData_:{type:Array,computed:"computeMicroPrecisionRecallCurveData_(data)"},multiClassConfusionMatrixData_:{type:Object,computed:"computeMultiClassConfusionMatrixData_(data)"},multiLabelConfusionMatrixData_:{type:Object,computed:"computeMultiLabelConfusionMatrixData_(data)"},weightedPrecisionRecallCurveData_:{type:Array,computed:"computeWeightedPrecisionRecallCurveData_(data)"},flat:{type:Boolean,value:!1,observer:vl.prototype.flatChanged_},showAll_:{type:Boolean,value:!1,notify:!0}, -chartsMap_:{type:Object},subtitles:{type:Object}}}},observers:{configurable:!0,enumerable:!0,get:function(){return["layoutCharts_(chartsMap_, showAll_, availableTabs_)"]}}});customElements.define("tfma-plot",vl);function wl(){return Q.call(this)||this}x(wl,Q);m=wl.prototype; +microPrecisionRecallCurveData_:{type:Array,computed:"computeMicroPrecisionRecallCurveData_(data)"},multiClassConfusionMatrixData_:{type:Object,computed:"computeMultiClassConfusionMatrixData_(data)"},multiLabelConfusionMatrixData_:{type:Object,computed:"computeMultiLabelConfusionMatrixData_(data)"},weightedPrecisionRecallCurveData_:{type:Array,computed:"computeWeightedPrecisionRecallCurveData_(data)"},flat:{type:Boolean,value:!1,observer:rl.prototype.flatChanged_},showAll_:{type:Boolean,value:!1,notify:!0}, +chartsMap_:{type:Object},subtitles:{type:Object}}}},observers:{configurable:!0,enumerable:!0,get:function(){return["layoutCharts_(chartsMap_, showAll_, availableTabs_)"]}}});customElements.define("tfma-plot",rl);function sl(){return Q.call(this)||this}A(sl,Q);m=sl.prototype; m.computePlotData_=function(a,b){if(a&&b){var c={};b=b.metricKeys;this.maybeSetPlotData_(a,b.calibrationPlot,c,tfma.PlotDataFieldNames.CALIBRATION_DATA);this.maybeSetPlotData_(a,b.confusionMatrixPlot,c,tfma.PlotDataFieldNames.PRECISION_RECALL_CURVE_DATA);this.maybeSetPlotData_(a,b.multiClassConfusionMatrixPlot,c,tfma.PlotDataFieldNames.MULTI_CLASS_CONFUSION_MATRIX_DATA);this.maybeSetPlotData_(a,b.multiLabelConfusionMatrixPlot,c,tfma.PlotDataFieldNames.MULTI_LABEL_CONFUSION_MATRIX_DATA);return{plotData:c}}}; m.maybeSetPlotData_=function(a,b,c,d){var e=b&&b.metricName;e&&(b=b.dataSeries,a[e]&&a[e][b]&&(c[d]=a[e]))};m.getValue_=function(a){return"nan"==a?NaN:a}; m.computeAvailableTypes_=function(a){a=a&&a.plotData||{};var b={};a[tfma.PlotDataFieldNames.CALIBRATION_DATA]&&(b[tfma.PlotTypes.CALIBRATION_PLOT]=1);a[tfma.PlotDataFieldNames.PRECISION_RECALL_CURVE_DATA]&&(b[tfma.PlotTypes.PRECISION_RECALL_CURVE]=1);a[tfma.PlotDataFieldNames.MULTI_CLASS_CONFUSION_MATRIX_DATA]&&(b[tfma.PlotTypes.MULTI_CLASS_CONFUSION_MATRIX]=1);a[tfma.PlotDataFieldNames.MULTI_LABEL_CONFUSION_MATRIX_DATA]&&(b[tfma.PlotTypes.MULTI_LABEL_CONFUSION_MATRIX]=1);return tfma.Data.getAvailablePlotTypes(b)}; m.computeHeading_=function(a,b){return b?(a=a.sliceName)?"Plot for "+a:"":"Plot data not available"};m.computeInitialType_=function(a){return a[0]||""}; -y.Object.defineProperties(wl,{is:{configurable:!0,enumerable:!0,get:function(){return"tfma-nb-plot"}},template:{configurable:!0,enumerable:!0,get:function(){return $k}},properties:{configurable:!0,enumerable:!0,get:function(){return{data:{type:Object},config:{type:Object},availableTypes_:{type:Array,computed:"computeAvailableTypes_(plotData_)"},plotData_:{type:Object,computed:"computePlotData_(data, config)"},heading_:{type:String,computed:"computeHeading_(config, initialType_)"},initialType_:{type:String, -computed:"computeInitialType_(availableTypes_)"}}}}});customElements.define("tfma-nb-plot",wl);var xl,yl;if(void 0===xl){var zl=document.createElement("template");zl.innerHTML='\n\n\n\n\n\n\n\n\n';xl=zl}yl=xl;var Al,Bl; -if(void 0===Al){var Cl=document.createElement("template");Cl.innerHTML='\n\n\n\n\n\n\n\n\n\n';Al= -Cl}Bl=Al;function Dl(){return Q.call(this)||this}x(Dl,Q);Dl.prototype.ready=function(){Q.prototype.ready.call(this);this.initPlotInteraction_()};Dl.prototype.initPlotInteraction_=function(){var a=this;this.$.table.addEventListener(tfma.Event.SELECT,function(b){a.selectedFeatures_=[b.detail.feature]})};Dl.prototype.computeGraphData_=function(a,b){if(a&&b)return new tfma.SingleSeriesGraphData(a,b)}; -Dl.prototype.computeMetricFormats_=function(a,b,c){if(!a||!b)return{};a={};a[b]={type:tfma.MetricValueFormat.INT};a[tfma.Column.TOTAL_EXAMPLE_COUNT]={type:tfma.MetricValueFormat.INT64};for(var d in c)a[d]=c[d];return a}; -y.Object.defineProperties(Dl,{is:{configurable:!0,enumerable:!0,get:function(){return"tfma-slicing-metrics-browser"}},template:{configurable:!0,enumerable:!0,get:function(){return Bl}},properties:{configurable:!0,enumerable:!0,get:function(){return{data:{type:Array},metrics:{type:Array},graphData_:{type:Object,computed:"computeGraphData_(metrics, data)"},weightedExamplesColumn:{type:String,value:""},selectedFeatures_:{type:Array,value:function(){return[]}},metricFormats_:{type:Object,computed:"computeMetricFormats_(metricsTableData_, weightedExamplesColumn, formats)"}, -formats:{type:Object,value:{}},metricsTableData_:{type:Object}}}}});customElements.define("tfma-slicing-metrics-browser",Dl);var El=cj();function Fl(){return El.call(this)||this}x(Fl,El); -Fl.prototype.setUp_=function(a,b,c){var d=c?tfma.Util.createConfigsList(c):[];if(a&&b&&d.length){a=a.map(function(g){return{slice:g.slice,metrics:tfma.Util.mergeMetricsForSelectedConfigsList(g.metrics,d)}});tfma.Data.flattenMetrics(a,"metrics");c=tfma.Data.getAvailableMetrics([a],"metrics");var e=b.weightedExamplesColumn,f=0>c.indexOf(e);f&&c.forEach(function(g){f&&g.endsWith("/"+e)&&(e=g,f=!1)});f&&(a.map(function(g){g.metrics[e]=1}),c.push(e));this.weightColumn_=e;this.metrics_=c;this.browserData_= -a}};Fl.prototype.computeAvailableConfigs_=function(a){var b={};a.forEach(function(c){var d=c.metrics;Object.keys(d).forEach(function(e){var f=b[e]||{};Object.keys(d[e]).forEach(function(g){f[g]=1});b[e]=f})});return Object.keys(b).reduce(function(c,d){c[d]=Object.keys(b[d]).sort();return c},{})}; -y.Object.defineProperties(Fl,{is:{configurable:!0,enumerable:!0,get:function(){return"tfma-nb-slicing-metrics"}},template:{configurable:!0,enumerable:!0,get:function(){return yl}},properties:{configurable:!0,enumerable:!0,get:function(){return{data:{type:Array},config:{type:Object},browserData_:{type:Array},metrics_:{type:Array},weightColumn_:{type:String},availableConfigs_:{type:Object,computed:"computeAvailableConfigs_(data)"},selectedConfigs_:{type:Object}}}},observers:{configurable:!0,enumerable:!0, -get:function(){return["setUp_(data, config, selectedConfigs_)"]}}});customElements.define("tfma-nb-slicing-metrics",Fl);var Gl,Hl;if(void 0===Gl){var Il=document.createElement("template");Il.innerHTML='\n\n\n\n\n\n\n\n\n';Gl=Il}Hl=Gl;var Jl,Kl;if(void 0===Jl){var Ll=document.createElement("template");Ll.innerHTML='\n\n\n\n
\n \n \n \n \n
\n\n\n';Jl=Ll}Kl=Jl;function Ml(){return Q.call(this)||this}x(Ml,Q);Ml.prototype.ready=function(){Q.prototype.ready.call(this);var a=this.$.grid,b=this.$.table;a.addEventListener(tfma.Event.SELECT,function(c){c.target==a&&b.highlight(c.detail)});a.addEventListener(tfma.Event.CLEAR_SELECTION,function(){b.highlight(null)});b.addEventListener(tfma.Event.SELECT,function(c){a.highlight(c.detail)});b.addEventListener(tfma.Event.CLEAR_SELECTION,function(){a.highlight(null)})}; -Ml.prototype.computeMetrics_=function(a){return a?a.getMetrics():[]};Ml.prototype.computeMetricFormats_=function(a){a=Object.assign({},a);a[tfma.Column.TOTAL_EXAMPLE_COUNT]={type:tfma.MetricValueFormat.INT64};return a}; -y.Object.defineProperties(Ml,{is:{configurable:!0,enumerable:!0,get:function(){return"tfma-time-series-browser"}},template:{configurable:!0,enumerable:!0,get:function(){return Kl}},properties:{configurable:!0,enumerable:!0,get:function(){return{seriesData:{type:Object},blacklist:{type:String,value:""},metrics_:{type:Array,computed:"computeMetrics_(seriesData)"},formats:{type:Object,value:function(){return{}}},metricFormats_:{type:Object,computed:"computeMetricFormats_(formats)"}}}}}); -customElements.define("tfma-time-series-browser",Ml);function Nl(){return Q.call(this)||this}x(Nl,Q); -Nl.prototype.refresh_=function(a,b,c){var d=c?tfma.Util.createConfigsList(c):[];if(a&&b&&d.length){a=a.map(function(f){return{config:f.config,metrics:tfma.Util.mergeMetricsForSelectedConfigsList(f.metrics,d)}});tfma.Data.flattenMetrics(a,"metrics");c=a.map(function(f){return[{metrics:f.metrics}]});var e=tfma.Data.getAvailableMetrics(c,"metrics");this.seriesData_=new tfma.SeriesData(a.map(function(f){return{data:tfma.Data.build(e,[{metrics:f.metrics,slice:""}]),config:f.config}}),b.isModelCentric)}}; -Nl.prototype.computeAvailableConfigs_=function(a){var b={};a.forEach(function(c){var d=c.metrics;Object.keys(d).forEach(function(e){var f=b[e]||{};Object.keys(d[e]).forEach(function(g){f[g]=1});b[e]=f})});return Object.keys(b).reduce(function(c,d){c[d]=Object.keys(b[d]).sort();return c},{})}; -y.Object.defineProperties(Nl,{is:{configurable:!0,enumerable:!0,get:function(){return"tfma-nb-time-series"}},template:{configurable:!0,enumerable:!0,get:function(){return Hl}},properties:{configurable:!0,enumerable:!0,get:function(){return{data:{type:Array},config:{type:Object},availableConfigs_:{type:Object,computed:"computeAvailableConfigs_(data)"},selectedConfigs_:{type:Object},seriesData_:{type:Object}}}},observers:{configurable:!0,enumerable:!0,get:function(){return["refresh_(data, config, selectedConfigs_)"]}}}); -customElements.define("tfma-nb-time-series",Nl); +x.Object.defineProperties(sl,{is:{configurable:!0,enumerable:!0,get:function(){return"tfma-nb-plot"}},template:{configurable:!0,enumerable:!0,get:function(){return Wk}},properties:{configurable:!0,enumerable:!0,get:function(){return{data:{type:Object},config:{type:Object},availableTypes_:{type:Array,computed:"computeAvailableTypes_(plotData_)"},plotData_:{type:Object,computed:"computePlotData_(data, config)"},heading_:{type:String,computed:"computeHeading_(config, initialType_)"},initialType_:{type:String, +computed:"computeInitialType_(availableTypes_)"}}}}});customElements.define("tfma-nb-plot",sl);var tl,ul;if(void 0===tl){var vl=document.createElement("template");vl.innerHTML='\n\n\n\n\n\n\n\n\n';tl=vl}ul=tl;var wl,xl; +if(void 0===wl){var yl=document.createElement("template");yl.innerHTML='\n\n\n\n\n\n\n\n\n\n';wl= +yl}xl=wl;function zl(){return Q.call(this)||this}A(zl,Q);zl.prototype.ready=function(){Q.prototype.ready.call(this);this.initPlotInteraction_()};zl.prototype.initPlotInteraction_=function(){var a=this;this.$.table.addEventListener(tfma.Event.SELECT,function(b){a.selectedFeatures_=[b.detail.feature]})};zl.prototype.computeGraphData_=function(a,b){if(a&&b)return new tfma.SingleSeriesGraphData(a,b)}; +zl.prototype.computeMetricFormats_=function(a,b,c){if(!a||!b)return{};a={};a[b]={type:tfma.MetricValueFormat.INT};a[tfma.Column.TOTAL_EXAMPLE_COUNT]={type:tfma.MetricValueFormat.INT64};for(var d in c)a[d]=c[d];return a}; +x.Object.defineProperties(zl,{is:{configurable:!0,enumerable:!0,get:function(){return"tfma-slicing-metrics-browser"}},template:{configurable:!0,enumerable:!0,get:function(){return xl}},properties:{configurable:!0,enumerable:!0,get:function(){return{data:{type:Array},metrics:{type:Array},graphData_:{type:Object,computed:"computeGraphData_(metrics, data)"},weightedExamplesColumn:{type:String,value:""},selectedFeatures_:{type:Array,value:function(){return[]}},metricFormats_:{type:Object,computed:"computeMetricFormats_(metricsTableData_, weightedExamplesColumn, formats)"}, +formats:{type:Object,value:{}},metricsTableData_:{type:Object}}}}});customElements.define("tfma-slicing-metrics-browser",zl);var Al=Zi();function Bl(){return Al.call(this)||this}A(Bl,Al); +Bl.prototype.setUp_=function(a,b,c){var d=c?tfma.Util.createConfigsList(c):[];if(a&&b&&d.length){a=a.map(function(g){return{slice:g.slice,metrics:tfma.Util.mergeMetricsForSelectedConfigsList(g.metrics,d)}});tfma.Data.flattenMetrics(a,"metrics");c=tfma.Data.getAvailableMetrics([a],"metrics");var e=b.weightedExamplesColumn,f=0>c.indexOf(e);f&&c.forEach(function(g){f&&g.endsWith("/"+e)&&(e=g,f=!1)});f&&(a.map(function(g){g.metrics[e]=1}),c.push(e));this.weightColumn_=e;this.metrics_=c;this.browserData_= +a}};Bl.prototype.computeAvailableConfigs_=function(a){var b={};a.forEach(function(c){var d=c.metrics;Object.keys(d).forEach(function(e){var f=b[e]||{};Object.keys(d[e]).forEach(function(g){f[g]=1});b[e]=f})});return Object.keys(b).reduce(function(c,d){c[d]=Object.keys(b[d]).sort();return c},{})}; +x.Object.defineProperties(Bl,{is:{configurable:!0,enumerable:!0,get:function(){return"tfma-nb-slicing-metrics"}},template:{configurable:!0,enumerable:!0,get:function(){return ul}},properties:{configurable:!0,enumerable:!0,get:function(){return{data:{type:Array},config:{type:Object},browserData_:{type:Array},metrics_:{type:Array},weightColumn_:{type:String},availableConfigs_:{type:Object,computed:"computeAvailableConfigs_(data)"},selectedConfigs_:{type:Object}}}},observers:{configurable:!0,enumerable:!0, +get:function(){return["setUp_(data, config, selectedConfigs_)"]}}});customElements.define("tfma-nb-slicing-metrics",Bl);var Cl,Dl;if(void 0===Cl){var El=document.createElement("template");El.innerHTML='\n\n\n\n\n\n\n\n\n';Cl=El}Dl=Cl;var Fl,Gl;if(void 0===Fl){var Hl=document.createElement("template");Hl.innerHTML='\n\n\n\n
\n \n \n \n \n
\n\n\n';Fl=Hl}Gl=Fl;function Il(){return Q.call(this)||this}A(Il,Q);Il.prototype.ready=function(){Q.prototype.ready.call(this);var a=this.$.grid,b=this.$.table;a.addEventListener(tfma.Event.SELECT,function(c){c.target==a&&b.highlight(c.detail)});a.addEventListener(tfma.Event.CLEAR_SELECTION,function(){b.highlight(null)});b.addEventListener(tfma.Event.SELECT,function(c){a.highlight(c.detail)});b.addEventListener(tfma.Event.CLEAR_SELECTION,function(){a.highlight(null)})}; +Il.prototype.computeMetrics_=function(a){return a?a.getMetrics():[]};Il.prototype.computeMetricFormats_=function(a){a=Object.assign({},a);a[tfma.Column.TOTAL_EXAMPLE_COUNT]={type:tfma.MetricValueFormat.INT64};return a}; +x.Object.defineProperties(Il,{is:{configurable:!0,enumerable:!0,get:function(){return"tfma-time-series-browser"}},template:{configurable:!0,enumerable:!0,get:function(){return Gl}},properties:{configurable:!0,enumerable:!0,get:function(){return{seriesData:{type:Object},blacklist:{type:String,value:""},metrics_:{type:Array,computed:"computeMetrics_(seriesData)"},formats:{type:Object,value:function(){return{}}},metricFormats_:{type:Object,computed:"computeMetricFormats_(formats)"}}}}}); +customElements.define("tfma-time-series-browser",Il);function Jl(){return Q.call(this)||this}A(Jl,Q); +Jl.prototype.refresh_=function(a,b,c){var d=c?tfma.Util.createConfigsList(c):[];if(a&&b&&d.length){a=a.map(function(f){return{config:f.config,metrics:tfma.Util.mergeMetricsForSelectedConfigsList(f.metrics,d)}});tfma.Data.flattenMetrics(a,"metrics");c=a.map(function(f){return[{metrics:f.metrics}]});var e=tfma.Data.getAvailableMetrics(c,"metrics");this.seriesData_=new tfma.SeriesData(a.map(function(f){return{data:tfma.Data.build(e,[{metrics:f.metrics,slice:""}]),config:f.config}}),b.isModelCentric)}}; +Jl.prototype.computeAvailableConfigs_=function(a){var b={};a.forEach(function(c){var d=c.metrics;Object.keys(d).forEach(function(e){var f=b[e]||{};Object.keys(d[e]).forEach(function(g){f[g]=1});b[e]=f})});return Object.keys(b).reduce(function(c,d){c[d]=Object.keys(b[d]).sort();return c},{})}; +x.Object.defineProperties(Jl,{is:{configurable:!0,enumerable:!0,get:function(){return"tfma-nb-time-series"}},template:{configurable:!0,enumerable:!0,get:function(){return Dl}},properties:{configurable:!0,enumerable:!0,get:function(){return{data:{type:Array},config:{type:Object},availableConfigs_:{type:Object,computed:"computeAvailableConfigs_(data)"},selectedConfigs_:{type:Object},seriesData_:{type:Object}}}},observers:{configurable:!0,enumerable:!0,get:function(){return["refresh_(data, config, selectedConfigs_)"]}}}); +customElements.define("tfma-nb-time-series",Jl);