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