/* Copyright 2007 Google Inc. */ (function() { function h(a){throw a;}var i=true,k=null,l=false,aa=encodeURIComponent,ba=window,da=Object,m=Error,n=undefined,ea=parseFloat,fa=String,ga=document,ha=decodeURIComponent,ia=Array,q=Math;function ja(a,b){return a.width=b}function ka(a,b){return a.currentTarget=b}function la(a,b){return a.left=b}function ma(a,b){return a.keyCode=b}function na(a,b){return a.visibility=b}function oa(a,b){return a.toString=b}function pa(a,b){return a.length=b}function qa(a,b){return a.className=b} function ra(a,b){return a.target=b}function sa(a,b){return a.anchor=b}function ua(a,b){return a.contains=b}function va(a,b){return a.height=b} var wa="appendChild",r="push",xa="getBoundingClientRect",ya="relatedTarget",s="width",za="slice",v="replace",Aa="nodeType",Ba="getElementById",Ca="offsetWidth",Da="preventDefault",w="indexOf",Ea="dispatchEvent",Fa="capture",x="left",Ga="screenX",Ha="screenY",Ia="getBoxObjectFor",Ja="remove",Ka="keyCode",La="firstChild",Ma="forEach",Na="clientLeft",Oa="clientTop",Pa="handleEvent",z="type",Qa="defaultView",Ra="clientX",Sa="clientY",Ta="documentElement",Ua="scrollTop",Va="toString",A="length",Wa="propertyIsEnumerable", B="prototype",Xa="clientWidth",Ya="document",Za="split",$a="stopPropagation",ab="hasOwnProperty",C="style",D="body",E="target",F="call",G="anchor",bb="clientHeight",cb="scrollLeft",db="compatMode",H="bottom",eb="contains",gb="apply",hb="parentNode",I="height",ib="offsetHeight",jb="join",J="right",K,L=this,kb=function(a,b,c){a=a[Za](".");c=c||L;!(a[0]in c)&&c.execScript&&c.execScript("var "+a[0]);for(var d;a[A]&&(d=a.shift());)if(!a[A]&&b!==n)c[d]=b;else c=c[d]?c[d]:c[d]={}},lb=function(){},mb=function(a){var b= typeof a;if(b=="object")if(a){if(a instanceof ia||!(a instanceof da)&&da[B][Va][F](a)=="[object Array]"||typeof a[A]=="number"&&typeof a.splice!="undefined"&&typeof a[Wa]!="undefined"&&!a[Wa]("splice"))return"array";if(!(a instanceof da)&&(da[B][Va][F](a)=="[object Function]"||typeof a[F]!="undefined"&&typeof a[Wa]!="undefined"&&!a[Wa]("call")))return"function"}else return"null";else if(b=="function"&&typeof a[F]=="undefined")return"object";return b},N=function(a){return mb(a)=="array"},nb=function(a){var b= mb(a);return b=="array"||b=="object"&&typeof a[A]=="number"},O=function(a){return typeof a=="string"},ob=function(a){return mb(a)=="function"},pb=function(a){a=mb(a);return a=="object"||a=="array"||a=="function"},sb=function(a){if(a[ab]&&a[ab](qb))return a[qb];a[qb]||(a[qb]=++rb);return a[qb]},qb="closure_uid_"+q.floor(q.random()*2147483648)[Va](36),rb=0,tb=function(a,b){var c=b||L;if(arguments[A]>2){var d=ia[B][za][F](arguments,2);return function(){var f=ia[B][za][F](arguments);ia[B].unshift[gb](f, d);return a[gb](c,f)}}else return function(){return a[gb](c,arguments)}},ub=function(a){var b=ia[B][za][F](arguments,1);return function(){var c=ia[B][za][F](arguments);c.unshift[gb](c,b);return a[gb](this,c)}},vb=Date.now||function(){return+new Date},P=function(a,b){function c(){}c.prototype=b[B];a.superClass_=b[B];a.prototype=new c};var wb=function(a){this.stack=m().stack||"";if(a)this.message=fa(a)};P(wb,m);wb[B].name="CustomError";var xb=function(a){for(var b=1;b")!=-1)a=a[v](Cb,">");if(a[w]('"')!=-1)a=a[v](Db,""");return a}},Ab=/&/g,Bb=//g, Db=/\"/g,Eb=/[&<>\"]/,Hb=function(a,b){for(var c=0,d=fa(a)[v](/^[\s\xa0]+|[\s\xa0]+$/g,"")[Za]("."),f=fa(b)[v](/^[\s\xa0]+|[\s\xa0]+$/g,"")[Za]("."),e=q.max(d[A],f[A]),g=0;c==0&&gb)return 1;return 0};var Jb=function(a,b){b.unshift(a);wb[F](this,xb[gb](k,b));b.shift();this.messagePattern=a};P(Jb,wb);Jb[B].name="AssertionError";var Kb=function(a,b,c,d){var f="Assertion failed";if(c){f+=": "+c;var e=d}else if(a){f+=": "+a;e=b}h(new Jb(""+f,e||[]))},Lb=function(a,b){!a&&Kb("",k,b,ia[B][za][F](arguments,2))},Mb=function(a,b){typeof a!="number"&&Kb("Expected number but got %s.",[a],b,ia[B][za][F](arguments,2));return a};var Nb=ia[B],Ob=Nb[w]?function(a,b,c){Lb(a||O(a));Mb(a[A]);return Nb[w][F](a,b,c)}:function(a,b,c){c=c==k?0:c<0?q.max(0,a[A]+c):c;if(O(a)){if(!O(b)||b[A]!=1)return-1;return a[w](b,c)}for(c=c;c=0){Lb(a||O(a));Mb(a[A]);Nb.splice[F](a,c,1)[A]==1}return d},Rb=function(){return Nb.concat[gb](Nb, arguments)},Sb=function(a){if(N(a))return Rb(a);else{for(var b=[],c=0,d=a[A];c=0)};var xc,yc=function(a){var b;b=(b=a.className)&&typeof b[Za]=="function"?b[Za](/\s+/):[];var c;c=Ub(arguments,1);for(var d=0,f=0;f=0)){b[r](c[f]);d++}c=d==c[A];qa(a,b[jb](" "));return c};var Ac=function(a){return a?new zc(U(a)):xc||(xc=new zc)},Cc=function(a,b){Wb(b,function(c,d){if(d=="style")a[C].cssText=c;else if(d=="class")qa(a,c);else if(d=="for")a.htmlFor=c;else if(d in Bc)a.setAttribute(Bc[d],c);else a[d]=c})},Bc={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",height:"height",width:"width",usemap:"useMap",frameborder:"frameBorder",type:"type"},Ec=function(a,b,c,d){function f(g){if(g)b[wa](O(g)?a.createTextNode(g):g)} for(d=d;d0)?Pb(Dc(e)?Sb(e):e,f):f(e)}},Fc=function(a){return a&&a[hb]?a[hb].removeChild(a):k},Gc=function(a,b){if(a[eb]&&b[Aa]==1)return a==b||a[eb](b);if(typeof a.compareDocumentPosition!="undefined")return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b[hb];return b==a},U=function(a){return a[Aa]==9?a:a.ownerDocument||a[Ya]},Dc=function(a){if(a&&typeof a[A]=="number")if(pb(a))return typeof a.item=="function"||typeof a.item=="string";else if(ob(a))return typeof a.item== "function";return l},zc=function(a){this.document_=a||L[Ya]||ga};K=zc[B];K.getDomHelper=Ac;K.getElement=function(a){return O(a)?this.document_[Ba](a):a};K.createDom=function(){var a=this.document_,b=arguments,c=b[0],d=b[1];if(S&&d&&(d.name||d[z])){c=["<",c];d.name&&c[r](' name="',Fb(d.name),'"');if(d[z]){c[r](' type="',Fb(d[z]),'"');var f={};$b(f,d);d=f;delete d[z]}c[r](">");c=c[jb]("")}c=a.createElement(c);if(d)if(O(d))qa(c,d);else N(d)?yc[gb](k,[c].concat(d)):Cc(c,d);b[A]>2&&Ec(a,c,b,2);return c}; K.createElement=function(a){return this.document_.createElement(a)};K.createTextNode=function(a){return this.document_.createTextNode(a)};var Hc=function(a){a=!mc&&a.document_[db]=="CSS1Compat"?a.document_[Ta]:a.document_[D];return new Q(a[cb],a[Ua])};zc[B].appendChild=function(a,b){a[wa](b)};ua(zc[B],Gc);var Ic=function(){};Ic[B].disposed_=l;Ic[B].dispose=function(){if(!this.disposed_){this.disposed_=i;this.disposeInternal()}};Ic[B].disposeInternal=function(){};var Jc,Kc=function(a,b){this.type=a;ra(this,b);ka(this,this[E])};P(Kc,Ic);K=Kc[B];K.disposeInternal=function(){delete this[z];delete this[E];delete this.currentTarget};K.propagationStopped_=l;K.returnValue_=i;K.stopPropagation=function(){this.propagationStopped_=i};K.preventDefault=function(){this.returnValue_=l};var Lc=function(a,b){a&&this.init(a,b)};P(Lc,Kc);K=Lc[B];ra(K,k);K.relatedTarget=k;K.offsetX=0;K.offsetY=0;K.clientX=0;K.clientY=0;K.screenX=0;K.screenY=0;K.button=0;ma(K,0);K.charCode=0;K.ctrlKey=l;K.altKey=l;K.shiftKey=l;K.metaKey=l;K.platformModifierKey=l;K.event_=k; K.init=function(a,b){var c=this.type=a[z];ra(this,a[E]||a.srcElement);ka(this,b);var d=a[ya];if(d){if(lc)try{d=d.nodeName&&d}catch(f){d=k}}else if(c=="mouseover")d=a.fromElement;else if(c=="mouseout")d=a.toElement;this.relatedTarget=d;this.offsetX=a.offsetX!==n?a.offsetX:a.layerX;this.offsetY=a.offsetY!==n?a.offsetY:a.layerY;this.clientX=a[Ra]!==n?a[Ra]:a.pageX;this.clientY=a[Sa]!==n?a[Sa]:a.pageY;this.screenX=a[Ga]||0;this.screenY=a[Ha]||0;this.button=a.button;ma(this,a[Ka]||0);this.charCode=a.charCode|| (c=="keypress"?a[Ka]:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.platformModifierKey=fc?a.metaKey:a.ctrlKey;this.event_=a;delete this.returnValue_;delete this.propagationStopped_};K.stopPropagation=function(){Lc.superClass_[$a][F](this);if(this.event_[$a])this.event_[$a]();else this.event_.cancelBubble=i};var Mc=S&&!wc("8"); Lc[B].preventDefault=function(){Lc.superClass_[Da][F](this);var a=this.event_;if(a[Da])a[Da]();else{a.returnValue=l;if(Mc)try{if(a.ctrlKey||a[Ka]>=112&&a[Ka]<=123)ma(a,-1)}catch(b){}}};Lc[B].disposeInternal=function(){Lc.superClass_.disposeInternal[F](this);this.event_=k;ra(this,k);ka(this,k);this.relatedTarget=k};var V=function(a,b){this.maxCount_=b;this.freeQueue_=[];if(a>this.maxCount_)h(m("[goog.structs.SimplePool] Initial cannot be greater than max"));for(var c=0;c=0),g;Zc=function(u){g=u};if(e){Uc=function(){return Nc(j)};Vc=function(u){Pc(j,u)};Wc=function(){return Nc(p)};Xc=function(u){Pc(p,u)};Yc=function(){return Nc(o)};$c=function(){Pc(o,c())};ad=function(){return Nc(y)};bd=function(u){Pc(y,u)};dd=function(){return Nc(t)};ed=function(u){Pc(t, u)};var j=new V(0,600);j.createObjectFn_=a;var p=new V(0,600);p.createObjectFn_=b;var o=new V(0,600);o.createObjectFn_=c;var y=new V(0,600);y.createObjectFn_=d;var t=new V(0,600);t.createObjectFn_=f}else{Uc=a;Vc=lb;Wc=b;Xc=lb;Yc=c;$c=lb;ad=d;bd=lb;dd=f;ed=lb}})();var fd={},W={},gd={},hd={},X=function(a,b,c,d,f){if(b)if(N(b)){for(var e=0;e=0;o--){var y=p[o];if((e||b==y[z])&&(g||c==y[Fa])){kd(y.key);d++}}});else{a=sb(a);if(gd[a]){a=gd[a];for(f=a[A]-1;f>=0;f--){var j=a[f];if((e||b==j[z])&&(g||c==j[Fa])){kd(j.key);d++}}}}return d},id=function(a){if(a in hd)return hd[a];return hd[a]="on"+a},od=function(a,b,c,d,f){var e=1;b=sb(b);if(a[b]){a.remaining_--; a=a[b];if(a.locked_)a.locked_++;else a.locked_=1;try{for(var g=a[A],j=0;j=0&&g.remaining_;M--){ka(o,t[M]);e&=od(g,t[M],d,i,o)}if(p){g=f[l];g.remaining_=g.count_;for(M=0;!o.propagationStopped_&&M=this[x]&&a[J]<=this[J]&&a.top>=this.top&&a[H]<=this[H]:a.x>=this[x]&&a.x<=this[J]&&a.y>=this.top&&a.y<=this[H];return a}); Y[B].expand=function(a,b,c,d){if(pb(a)){this.top-=a.top;this.right+=a[J];this.bottom+=a[H];this.left-=a[x]}else{this.top-=a;this.right+=b;this.bottom+=c;this.left-=d}return this};var pd=function(a,b){if(b.x>=a[x]&&b.x<=a[J]){if(b.y>=a.top&&b.y<=a[H])return 0;return b.y=a.top&&b.y<=a[H])return b.x=a[x]+a[s]&&this.top<=a.top&&this.top+this[I]>=a.top+a[I]:a.x>=this[x]&&a.x<=this[x]+this[s]&&a.y>=this.top&&a.y<=this.top+this[I]});var sd=function(a,b){var c=U(a);if(c[Qa]&&c[Qa].getComputedStyle)if(c=c[Qa].getComputedStyle(a,""))return c[b];return k},td=function(a,b){return sd(a,b)||(a.currentStyle?a.currentStyle[b]:k)||a[C][b]},ud=function(a){a=a?a[Aa]==9?a:U(a):ga;var b;if(b=S)b=Ac(a).document_[db]!="CSS1Compat";if(b)return a[D];return a[Ta]},vd=function(a){var b=a[xa]();if(S){a=a.ownerDocument;b.left-=a[Ta][Na]+a[D][Na];b.top-=a[Ta][Oa]+a[D][Oa]}return b},wd=function(a){if(S)return a.offsetParent;var b=U(a),c=td(a,"position"), d=c=="fixed"||c=="absolute";for(a=a[hb];a&&a!=b;a=a[hb]){c=td(a,"position");d=d&&c=="static"&&a!=b[Ta]&&a!=b[D];if(!d&&(a.scrollWidth>a[Xa]||a.scrollHeight>a[bb]||c=="fixed"||c=="absolute"))return a}return k},zd=function(a){var b=new Y(0,Infinity,Infinity,0),c=Ac(a),d=c.document_[D],f=!mc&&c.document_[db]=="CSS1Compat"?c.document_[Ta]:c.document_[D],e;for(a=a;a=wd(a);)if((!S||a[Xa]!=0)&&(!mc||a[bb]!=0||a!=d)&&(a.scrollWidth!=a[Xa]||a.scrollHeight!=a[bb])&&td(a,"overflow")!="visible"){var g=xd(a), j;j=a;if(lc&&!wc("1.9")){var p=ea(sd(j,"borderLeftWidth"));if(yd(j)){var o=j[Ca]-j[Xa]-p-ea(sd(j,"borderRightWidth"));p+=o}j=new Q(p,ea(sd(j,"borderTopWidth")))}else j=new Q(j[Na],j[Oa]);g.x+=j.x;g.y+=j.y;b.top=q.max(b.top,g.y);b.right=q.min(b[J],g.x+a[Xa]);b.bottom=q.min(b[H],g.y+a[bb]);la(b,q.max(b[x],g.x));e=e||a!=f}d=f[cb];f=f[Ua];if(mc){b.left+=d;b.top+=f}else{la(b,q.max(b[x],d));b.top=q.max(b.top,f)}if(!e||mc){b.right+=d;b.bottom+=f}c=c.document_.parentWindow||c.document_[Qa]||ba;e=c[Ya];if(mc&& !wc("500")&&!nc){if(typeof c.innerHeight=="undefined")c=ba;e=c.innerHeight;a=c[Ya][Ta].scrollHeight;if(c==c.top)if(a=0&&b[x]>=0&&b[H]>b.top&&b[J]>b[x]?b:k},xd=function(a){var b,c=U(a),d=td(a,"position"),f=lc&&c[Ia]&&!a[xa]&&d=="absolute"&&(b=c[Ia](a))&&(b[Ga]<0||b[Ha]<0),e=new Q(0,0),g=ud(c);if(a==g)return e;if(a[xa]){b= vd(a);a=Hc(Ac(c));e.x=b[x]+a.x;e.y=b.top+a.y}else if(c[Ia]&&!f){b=c[Ia](a);a=c[Ia](g);e.x=b[Ga]-a[Ga];e.y=b[Ha]-a[Ha]}else{b=a;do{e.x+=b.offsetLeft;e.y+=b.offsetTop;if(b!=a){e.x+=b[Na]||0;e.y+=b[Oa]||0}if(mc&&td(b,"position")=="fixed"){e.x+=c[D][cb];e.y+=c[D][Ua];break}b=b.offsetParent}while(b&&b!=a);if(kc||mc&&d=="absolute")e.y-=c[D].offsetTop;for(b=a;(b=wd(b))&&b!=c[D]&&b!=g;){e.x-=b[cb];if(!kc||b.tagName!="TR")e.y-=b[Ua]}}return e},Ad=function(a,b,c,d){if(typeof d=="number")d=(b?q.round(d):d)+ "px";c[C][a]=d},Bd=ub(Ad,"height",i),Cd=ub(Ad,"width",i),Dd=function(a){var b=kc&&!wc("10");if(td(a,"display")!="none")return b?new R(a[Ca]||a[Xa],a[ib]||a[bb]):new R(a[Ca],a[ib]);var c=a[C],d=c.display,f=c.visibility,e=c.position;na(c,"hidden");c.position="absolute";c.display="inline";if(b){b=a[Ca]||a[Xa];a=a[ib]||a[bb]}else{b=a[Ca];a=a[ib]}c.display=d;c.position=e;na(c,f);return new R(b,a)},Ed=function(a){var b=xd(a);a=Dd(a);return new qd(b.x,b.y,a[s],a[I])},Fd=function(a,b){a[C].display=b?"":"none"}, yd=function(a){return"rtl"==td(a,"direction")};var Hd=function(a,b,c,d,f,e,g,j){var p,o=c.offsetParent;if(o){var y=o.tagName=="HTML"||o.tagName=="BODY";if(!y||td(o,"position")!="static"){p=xd(o);y||(p=Vb(p,new Q(o[cb],o[Ua])))}}o=Ed(a);(y=zd(a))&&o.intersection(new qd(y[x],y.top,y[J]-y[x],y[H]-y.top));y=Ac(a);var t=Ac(c);if(y.document_!=t.document_){var u=y.document_[D];t=t.document_.parentWindow||t.document_[Qa];var M=new Q(0,0),fb=U(u)?U(u).parentWindow||U(u)[Qa]:ba,cd=u;do{var T;if(fb==t)T=xd(cd);else{var ca=cd;T=new Q;if(ca[Aa]==1)if(ca[xa]){var Ib= vd(ca);T.x=Ib[x];T.y=Ib.top}else{Ib=Hc(Ac(ca));ca=xd(ca);T.x=ca.x-Ib.x;T.y=ca.y-Ib.y}else{T.x=ca[Ra];T.y=ca[Sa]}T=T}T=T;M.x+=T.x;M.y+=T.y}while(fb&&fb!=t&&(cd=fb.frameElement)&&(fb=fb.parent));t=M;t=Vb(t,xd(u));if(S&&y.document_[db]!="CSS1Compat")t=Vb(t,Hc(y));o.left+=t.x;o.top+=t.y}a=(b&4&&yd(a)?b^2:b)&-5;b=new Q(a&2?o[x]+o[s]:o[x],a&1?o.top+o[I]:o.top);if(p)b=Vb(b,p);if(f){b.x+=(a&2?-1:1)*f.x;b.y+=(a&1?-1:1)*f.y}var ta;if(g)if((ta=zd(c))&&p){ta.top=q.max(0,ta.top-p.y);ta.right-=p.x;ta.bottom-=p.y; la(ta,q.max(0,ta[x]-p.x))}return Gd(b,c,d,e,ta,g,j)},Gd=function(a,b,c,d,f,e,g){a=a.clone();var j=0,p=(c&4&&yd(b)?c^2:c)&-5;c=Dd(b);g=g?g.clone():c;if(d||p!=0){if(p&2)a.x-=g[s]+(d?d[J]:0);else if(d)a.x+=d[x];if(p&1)a.y-=g[I]+(d?d[H]:0);else if(d)a.y+=d.top}if(e){if(f){j=a;d=0;if(j.xf[J]&&e&16){g.width-=j.x+g[s]-f[J];d|=4}if(j.x+g[s]>f[J]&&e&1){j.x=q.max(f[J]-g[s],f[x]);d|=1}if(e&2)d|=(j.xf[J]?32:0);if(j.y=f.top&&j.y+g[I]>f[H]&&e&32){g.height-=j.y+g[I]-f[H];d|=8}if(j.y+g[I]>f[H]&&e&4){j.y=q.max(f[H]-g[I],f.top);d|=2}if(e&8)d|=(j.yf[H]?128:0);j=d}else j=256;j=j;if(j&496)return j}e=a;f=lc&&(fc||pc)&&wc("1.9");if(e instanceof Q){a=e.x;e=e.y}else{a=e;e=void 0}Ad("left",f,b,a);Ad("top",f,b,e);c=c==g?i:!c||!g?l:c[s]==g[s]&&c[I]==g[I];if(!c){c=g;var o;if(c instanceof R){o=c[I];c=c[s]}else h(m("missing height argument"));Cd(b,c);Bd(b,o)}return j};var Id=function(){};Id[B].reposition=function(){};var Jd=function(a,b){this.element=a;this.corner=b};P(Jd,Id);Jd[B].reposition=function(a,b,c){Hd(this.element,this.corner,a,b,n,c)};var Kd=function(a,b){this.coordinate=a instanceof Q?a:new Q(a,b)};P(Kd,Id);Kd[B].reposition=function(a,b,c,d){Hd(ud(a),0,a,b,this.coordinate,c,k,d)};var Ld="StopIteration"in L?L.StopIteration:m("StopIteration"),Md=function(){};Md[B].next=function(){h(Ld)};Md[B].__iterator__=function(){return this};var Nd=function(a){if(typeof a.getValues=="function")return a.getValues();if(O(a))return a[Za]("");if(nb(a)){for(var b=[],c=a[A],d=0;d1){if(b%2)h(m("Uneven number of arguments"));for(var c=0;c2*this.count_&&Qd(this);return i}return l};var Qd=function(a){if(a.count_!=a.keys_[A]){for(var b=0,c=0;b=c[A])h(Ld);var j=c[b++];return a?j:d[j]}};return g};var Rd=function(a,b){return da[B][ab][F](a,b)};var Sd=function(a){this.map_=new Pd;a&&this.addAll(a)},Td=function(a){var b=typeof a;return b=="object"&&a||b=="function"?"o"+sb(a):b.substr(0,1)+a};K=Sd[B];K.add=function(a){this.map_.set(Td(a),a)};K.addAll=function(a){a=Nd(a);for(var b=a[A],c=0;c=0&&e.remaining_;g--){ka(a,c[g]);b&=od(e,c[g],a[z],i,a)&&a.returnValue_!=l}}if(l in f){e=f[l];e.remaining_=e.count_;if(d)for(g=0;!a.propagationStopped_&&g2147483647?-1:Vd.setTimeout(a,b||0)};var Xd=function(a){this.handler_=a};P(Xd,Ic);var Yd=new V(0,100),Zd=function(a,b,c,d,f,e){if(N(c))for(var g=0;g=0||ee[r](this);a=this.getElement();qa(a,this.className);he(this);X(a,"mouseover",this.handleTooltipMouseOver,l,this);X(a,"mouseout",this.handleTooltipMouseOut,l,this);ie(this);return i}; K.onHide_=function(){Qb(ee,this);for(var a=this.getElement(),b,c=0;b=ee[c];c++)b[G]&&Gc(a,b[G])&&be(b,l);this.parentTooltip_&&je(this.parentTooltip_);jd(a,"mouseover",this.handleTooltipMouseOver,l,this);jd(a,"mouseout",this.handleTooltipMouseOut,l,this);sa(this,n);if(ge(this)==0)this.seenInteraction_=l;$d[B].onHide_[F](this)}; K.maybeShow=function(a,b){if(this[G]==a)if(this.seenInteraction_||!this.requireInteraction_){be(this,l);if(!this.isVisible_){var c;if(b)c=b;else{c=this.cursorPosition.clone();c=new ke(c)}sa(this,a);this.position_=c||n;this.isVisible_&&this.reposition();be(this,i)}}else sa(this,n);this.showTimer=n}; K.maybeHide=function(a){this.hideTimer=n;if(a==this[G])if((this.activeEl_==k||this.activeEl_!=this.getElement()&&!this.elements_[eb](this.activeEl_))&&!(this.childTooltip_&&this.childTooltip_.activeEl_))be(this,l)};var le=function(a,b){var c=Hc(a.dom_);a.cursorPosition.x=b[Ra]+c.x;a.cursorPosition.y=b[Sa]+c.y}; Z[B].handleMouseOver=function(a){var b=me(this,a[E]);this.activeEl_=b;he(this);if(b!=this[G]){sa(this,b);if(!this.showTimer)this.showTimer=Wd(tb(this.maybeShow,this,b,void 0),this.showDelayMs_);ne(this);le(this,a)}};var me=function(a,b){try{for(;b&&!a.elements_[eb](b);)b=b[hb];return b}catch(c){return k}};Z[B].handleMouseMove=function(a){le(this,a);this.seenInteraction_=i}; Z[B].handleFocus=function(a){this.activeEl_=a=me(this,a[E]);this.seenInteraction_=i;if(this[G]!=a){sa(this,a);var b=new oe(this.activeEl_);he(this);if(!this.showTimer)this.showTimer=Wd(tb(this.maybeShow,this,a,b),this.showDelayMs_);ne(this)}};var ne=function(a){if(a[G])for(var b,c=0;b=ee[c];c++)if(Gc(b.getElement(),a[G])){b.childTooltip_=a;a.parentTooltip_=b}}; Z[B].handleMouseOutAndBlur=function(a){var b=me(this,a[E]),c=me(this,a[ya]);if(b!=c){if(b==this.activeEl_)this.activeEl_=k;ie(this);this.seenInteraction_=l;if(this.isVisible_&&(!a[ya]||!Gc(this.getElement(),a[ya])))je(this);else sa(this,n)}};Z[B].handleTooltipMouseOver=function(){var a=this.getElement();if(this.activeEl_!=a){he(this);this.activeEl_=a}};Z[B].handleTooltipMouseOut=function(a){var b=this.getElement();if(this.activeEl_==b&&(!a[ya]||!Gc(b,a[ya]))){this.activeEl_=k;je(this)}}; var ie=function(a){if(a.showTimer){Vd.clearTimeout(a.showTimer);a.showTimer=n}},je=function(a){if(ge(a)==2)a.hideTimer=Wd(tb(a.maybeHide,a,a[G]),a.getHideDelayMs())},he=function(a){if(a.hideTimer){Vd.clearTimeout(a.hideTimer);a.hideTimer=n}};Z[B].disposeInternal=function(){be(this,l);ie(this);this.detach();this.getElement()&&Fc(this.getElement());this.activeEl_=k;delete this.dom_;Z.superClass_.disposeInternal[F](this)};var ke=function(a,b){Kd[F](this,a,b)};P(ke,Kd); ke[B].reposition=function(a,b,c){b=ud(a);b=zd(b);c=c?new Y(c.top+10,c[J],c[H],c[x]+10):new Y(10,0,0,10);Gd(this.coordinate,a,4,c,b,9)&496&&Gd(this.coordinate,a,4,c,b,5)};var oe=function(a){Jd[F](this,a,3)};P(oe,Jd);oe[B].reposition=function(a,b,c){var d=new Q(10,0);Hd(this.element,this.corner,a,b,d,c,9)&496&&Hd(this.element,2,a,1,d,c,5)};var $=function(a,b,c){Z[F](this,a,b,c)};P($,Z);$[B].cursorTracking_=l;$[B].cursorTrackingHideDelayMs_=100;$[B].tracking_=l;var pe=function(a,b){a.hotSpotPadding_=b||k};$[B].onShow_=function(){$.superClass_.onShow_[F](this);this.boundingBox_=rd(Ed(this.getElement()));if(this[G])this.anchorBox_=rd(Ed(this[G]));this.tracking_=this.cursorTracking_;var a=X,b=this.getDomHelper();a(b.document_,"mousemove",this.handleMouseMove,l,this)}; $[B].onHide_=function(){var a=jd,b=this.getDomHelper();a(b.document_,"mousemove",this.handleMouseMove,l,this);this.anchorBox_=this.boundingBox_=this.paddingBox_=k;this.tracking_=l;$.superClass_.onHide_[F](this)};$[B].isCoordinateInTooltip=function(a){if(this.paddingBox_)return this.paddingBox_[eb](a);return $.superClass_.isCoordinateInTooltip[F](this,a)};var qe=function(a,b){if(a.anchorBox_&&a.anchorBox_[eb](b)||a.isCoordinateInTooltip(b))return i;return!!a.childTooltip_&&a.childTooltip_.isCoordinateInTooltip(b)}; $[B].maybeHide=function(a){this.hideTimer=n;if(a==this[G])if(!qe(this,this.cursorPosition)&&!this.activeEl_&&!(this.childTooltip_&&this.childTooltip_.activeEl_))lc&&this.cursorPosition.x==0&&this.cursorPosition.y==0||be(this,l)}; $[B].handleMouseMove=function(a){var b=this.isVisible_;if(this.boundingBox_){var c=Hc(this.getDomHelper());c=new Q(a[Ra]+c.x,a[Sa]+c.y);if(qe(this,c))b=l;else if(this.tracking_){b=pd(this.boundingBox_,this.cursorPosition);b=pd(this.boundingBox_,c)>=b}}if(b){je(this);this.activeEl_=k;if(this.childTooltip_)this.childTooltip_.activeEl_=k}else ge(this)==3&&he(this);$.superClass_.handleMouseMove[F](this,a)}; $[B].handleTooltipMouseOver=function(){if(this.activeEl_!=this.getElement()){this.tracking_=l;this.activeEl_=this.getElement();if(!this.paddingBox_&&this.hotSpotPadding_)this.paddingBox_=this.boundingBox_.clone().expand(this.hotSpotPadding_)}};$[B].getHideDelayMs=function(){return this.tracking_?this.cursorTrackingHideDelayMs_:this.hideDelayMs_};var re=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");var se=function(a,b){var c;if(a instanceof se){this.setIgnoreCase(b==k?a.ignoreCase_:b);te(this,a.scheme_);ue(this,a.userInfo_);ve(this,a.domain_);we(this,a.port_);xe(this,a.path_);ye(this,a.queryData_.clone());ze(this,a.fragment_)}else if(a&&(c=fa(a).match(re))){this.setIgnoreCase(!!b);te(this,c[1]||"",i);ue(this,c[2]||"",i);ve(this,c[3]||"",i);we(this,c[4]);xe(this,c[5]||"",i);ye(this,c[6]||"",i);ze(this,c[7]||"",i)}else{this.setIgnoreCase(!!b);this.queryData_=new Ae(k,this,this.ignoreCase_)}}; K=se[B];K.scheme_="";K.userInfo_="";K.domain_="";K.port_=k;K.path_="";K.fragment_="";K.isReadOnly_=l;K.ignoreCase_=l; oa(K,function(){if(this.cachedToString_)return this.cachedToString_;var a=[];this.scheme_&&a[r](Be(this.scheme_,Ce),":");if(this.domain_){a[r]("//");this.userInfo_&&a[r](Be(this.userInfo_,Ce),"@");var b;b=this.domain_;b=O(b)?aa(b):k;a[r](b);this.port_!=k&&a[r](":",fa(this.port_))}if(this.path_){this.domain_&&this.path_.charAt(0)!="/"&&a[r]("/");a[r](Be(this.path_,De))}(b=fa(this.queryData_))&&a[r]("?",b);this.fragment_&&a[r]("#",Be(this.fragment_,Ee));return this.cachedToString_=a[jb]("")}); K.clone=function(){var a=this.scheme_,b=this.userInfo_,c=this.domain_,d=this.port_,f=this.path_,e=this.queryData_.clone(),g=this.fragment_,j=new se(k,this.ignoreCase_);a&&te(j,a);b&&ue(j,b);c&&ve(j,c);d&&we(j,d);f&&xe(j,f);e&&ye(j,e);g&&ze(j,g);return j}; var te=function(a,b,c){Fe(a);delete a.cachedToString_;a.scheme_=c?b?ha(b):"":b;if(a.scheme_)a.scheme_=a.scheme_[v](/:$/,"");return a},ue=function(a,b,c){Fe(a);delete a.cachedToString_;a.userInfo_=c?b?ha(b):"":b;return a},ve=function(a,b,c){Fe(a);delete a.cachedToString_;a.domain_=c?b?ha(b):"":b;return a},we=function(a,b){Fe(a);delete a.cachedToString_;if(b){b=Number(b);if(isNaN(b)||b<0)h(m("Bad port number "+b));a.port_=b}else a.port_=k;return a},xe=function(a,b,c){Fe(a);delete a.cachedToString_; a.path_=c?b?ha(b):"":b;return a},ye=function(a,b,c){Fe(a);delete a.cachedToString_;if(b instanceof Ae){a.queryData_=b;a.queryData_.uri_=a;a.queryData_.setIgnoreCase(a.ignoreCase_)}else{c||(b=Be(b,Ge));a.queryData_=new Ae(b,a,a.ignoreCase_)}return a},He=function(a,b,c){Fe(a);delete a.cachedToString_;a.queryData_.set(b,c);return a},ze=function(a,b,c){Fe(a);delete a.cachedToString_;a.fragment_=c?b?ha(b):"":b;return a},Fe=function(a){if(a.isReadOnly_)h(m("Tried to modify a read-only Uri"))}; se[B].setIgnoreCase=function(a){this.ignoreCase_=a;this.queryData_&&this.queryData_.setIgnoreCase(a)}; var Ie=/^[a-zA-Z0-9\-_.!~*'():\/;?]*$/,Be=function(a,b){var c=k;if(O(a)){c=a;Ie.test(c)||(c=encodeURI(a));if(c.search(b)>=0)c=c[v](b,Je)}return c},Je=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15)[Va](16)+(a&15)[Va](16)},Ce=/[#\/\?@]/g,De=/[\#\?]/g,Ge=/[\#\?@]/g,Ee=/#/g,Ae=function(a,b,c){this.encodedQuery_=a||k;this.uri_=b||k;this.ignoreCase_=!!c},Le=function(a){if(!a.keyMap_){a.keyMap_=new Pd;if(a.encodedQuery_)for(var b=a.encodedQuery_[Za]("&"),c=0;c= 0){f=b[c].substring(0,d);e=b[c].substring(d+1)}else f=b[c];f=ha(f[v](/\+/g," "));f=Ke(a,f);a.add(f,e?ha(e[v](/\+/g," ")):"")}}};K=Ae[B];K.keyMap_=k;K.count_=k;K.add=function(a,b){Le(this);Me(this);a=Ke(this,a);if(this.containsKey(a)){var c=this.keyMap_.get(a);N(c)?c[r](b):this.keyMap_.set(a,[c,b])}else this.keyMap_.set(a,b);this.count_++;return this}; K.remove=function(a){Le(this);a=Ke(this,a);if(this.keyMap_.containsKey(a)){Me(this);var b=this.keyMap_.get(a);if(N(b))this.count_-=b[A];else this.count_--;return this.keyMap_[Ja](a)}return l};K.clear=function(){Me(this);this.keyMap_&&this.keyMap_.clear();this.count_=0};K.containsKey=function(a){Le(this);a=Ke(this,a);return this.keyMap_.containsKey(a)}; K.getKeys=function(){Le(this);for(var a=this.keyMap_.getValues(),b=this.keyMap_.getKeys(),c=[],d=0;d0&&a[r]("&");a[r](e);f[g]!==""&&a[r]("=",zb(f[g]));b++}else{b>0&&a[r]("&");a[r](e);f!==""&&a[r]("=",zb(f));b++}}return this.encodedQuery_=a[jb]("")});var Me=function(a){delete a.decodedQuery_;delete a.encodedQuery_;a.uri_&&delete a.uri_.cachedToString_}; Ae[B].clone=function(){var a=new Ae;if(this.decodedQuery_)a.decodedQuery_=this.decodedQuery_;if(this.encodedQuery_)a.encodedQuery_=this.encodedQuery_;if(this.keyMap_)a.keyMap_=this.keyMap_.clone();return a};var Ke=function(a,b){var c=fa(b);if(a.ignoreCase_)c=c.toLowerCase();return c};Ae[B].setIgnoreCase=function(a){if(a&&!this.ignoreCase_){Le(this);Me(this);Od(this.keyMap_,function(b,c){var d=c.toLowerCase();if(c!=d){this[Ja](c);this.add(d,b)}},this)}this.ignoreCase_=a};var Ne,Oe=function(a,b,c){var d="";if(Ne)d=Ne.serverBase;else if(ba.manifest)d=ba.manifest.serverBase;var f=d+"/widgets/Hovercard";if(c.client)f=d+"/ui/Hovercard";d=new se(f);He(d,"uid",b);for(var e in c)He(d,e,c[e]);b=108+(c.embedHeight?c.embedHeight-16:0);if(!a.f_preload){c=ga.createElement("iframe");ja(c,"320px");va(c,b+"px");c.frameBorder="none";c.scrolling="no";c[C].border="none";a.getElement()[wa](c);c.src=d[Va]();a.getElement()[C].zIndex="50000"}a.f_preload=i}; kb("addHovercard",function(a,b,c){var d=new $(a);pe(d,new Y(5,5,5,5));d.cursorTracking_=i;de(d,new Y(10,0,0,10));d.hideDelayMs_=250;d.onDocumentBlur_=function(){};X(a,"mouseover",tb(Oe,k,d,b,c));return d},void 0);kb("_HovercardLauncherComponentInit",function(a){Ne=a},void 0);ba._HovercardLauncherManifestInit&&ba._HovercardLauncherManifestInit(); })()