dwc/standard/documents/rdf/images/ph_core.js

72 lines
41 KiB
JavaScript

var Z,Zaa=Zaa||{},Za=this,Zba=function(){},Zca=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&
!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==b&&"undefined"==typeof a.call)return"object";return b},Zb=function(a){return"array"==Zca(a)},Zda=function(a){var b=Zca(a);return"array"==b||"object"==b&&"number"==typeof a.length},Zc=function(a){return"string"==typeof a},Zd=function(a){return"function"==Zca(a)},Zea=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b},Zfa=function(a,b,c){return a.call.apply(a.bind,arguments)},Zga=function(a,b,c){if(!a)throw Error();
if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}},Ze=function(a,b,c){Ze=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?Zfa:Zga;return Ze.apply(null,arguments)},Zha=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=c.slice();b.push.apply(b,arguments);
return a.apply(this,b)}},Zia=Date.now||function(){return+new Date},Zf=function(a,b){var c=a.split("."),d=Za;c[0]in d||!d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d=d[e]?d[e]:d[e]={}:d[e]=b},Zg=function(a,b){function c(){}c.prototype=b.prototype;a.I=b.prototype;a.prototype=new c;a.ed=function(a,c,f){for(var g=Array(arguments.length-2),h=2;h<arguments.length;h++)g[h-2]=arguments[h];return b.prototype[c].apply(a,g)}};
Function.prototype.bind=Function.prototype.bind||function(a,b){if(1<arguments.length){var c=Array.prototype.slice.call(arguments,1);c.unshift(this,a);return Ze.apply(null,c)}return Ze(this,a)};var Zh=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,Zh);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};Zg(Zh,Error);Zh.prototype.name="CustomError";var Zi=function(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&1<c.length;)d+=c.shift()+e.shift();return d+c.join("%s")},Zja=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},Zj=function(a){if(!Zka.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(Zla,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(Zma,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Zna,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Zoa,"&quot;"));
-1!=a.indexOf("'")&&(a=a.replace(Zpa,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Zqa,"&#0;"));return a},Zla=/&/g,Zma=/</g,Zna=/>/g,Zoa=/"/g,Zpa=/'/g,Zqa=/\x00/g,Zka=/[\x00&<>"']/,Zra=function(a,b){return a<b?-1:a>b?1:0};var Zsa=function(a,b){b.unshift(a);Zh.call(this,Zi.apply(null,b));b.shift()};Zg(Zsa,Zh);Zsa.prototype.name="AssertionError";var Zk=function(a,b,c){if(!a){var d="Assertion failed";if(b)var d=d+(": "+b),e=Array.prototype.slice.call(arguments,2);throw new Zsa(""+d,e||[]);}},Zta=function(a,b){throw new Zsa("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1));};var Zl=Array.prototype,Zua=Zl.indexOf?function(a,b,c){Zk(null!=a.length);return Zl.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(Zc(a))return Zc(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},Zva=Zl.forEach?function(a,b,c){Zk(null!=a.length);Zl.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Zc(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},Zwa=Zl.filter?function(a,b,c){Zk(null!=a.length);return Zl.filter.call(a,
b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,g=Zc(a)?a.split(""):a,h=0;h<d;h++)if(h in g){var k=g[h];b.call(c,k,h,a)&&(e[f++]=k)}return e},Zya=function(a){var b;a:{b=Zxa;for(var c=a.length,d=Zc(a)?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a)){b=e;break a}b=-1}return 0>b?null:Zc(a)?a.charAt(b):a[b]},Zza=function(a,b){var c=Zua(a,b),d;if(d=0<=c)Zk(null!=a.length),Zl.splice.call(a,c,1);return d},ZAa=function(a){return Zl.concat.apply(Zl,arguments)},ZBa=function(a){var b=a.length;
if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]};var ZCa=function(a,b){for(var c in a)b.call(void 0,a[c],c,a)},ZDa=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},ZEa=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b},ZFa="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),ZGa=function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<ZFa.length;f++)c=ZFa[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}},ZHa=function(a){var b=
arguments.length;if(1==b&&Zb(arguments[0]))return ZHa.apply(null,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c};ZHa("area base br col command embed hr img input keygen link meta param source track wbr".split(" "));var Zm=function(a,b){this.width=a;this.height=b};Zm.prototype.clone=function(){return new Zm(this.width,this.height)};Zm.prototype.toString=function(){return"("+this.width+" x "+this.height+")"};Zm.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};var Zn;a:{var ZIa=Za.navigator;if(ZIa){var ZJa=ZIa.userAgent;if(ZJa){Zn=ZJa;break a}}Zn=""};var Zo=function(){return-1!=Zn.indexOf("Edge")};var ZKa=-1!=Zn.indexOf("Opera")||-1!=Zn.indexOf("OPR"),Zp=-1!=Zn.indexOf("Edge")||-1!=Zn.indexOf("Trident")||-1!=Zn.indexOf("MSIE"),Zq=-1!=Zn.indexOf("Gecko")&&!(-1!=Zn.toLowerCase().indexOf("webkit")&&!Zo())&&!(-1!=Zn.indexOf("Trident")||-1!=Zn.indexOf("MSIE"))&&!Zo(),Zr=-1!=Zn.toLowerCase().indexOf("webkit")&&!Zo(),ZLa=function(){var a=Zn;if(Zq)return/rv\:([^\);]+)(\)|;)/.exec(a);if(Zp&&Zo())return/Edge\/([\d\.]+)/.exec(a);if(Zp)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(Zr)return/WebKit\/(\S+)/.exec(a)},
ZMa=function(){var a=Za.document;return a?a.documentMode:void 0},ZNa=function(){if(ZKa&&Za.opera){var a=Za.opera.version;return Zd(a)?a():a}var a="",b=ZLa();b&&(a=b?b[1]:"");return Zp&&!Zo()&&(b=ZMa(),b>parseFloat(a))?String(b):a}(),ZOa={},Zs=function(a){var b;if(!(b=ZOa[a])){b=0;for(var c=Zja(String(ZNa)).split("."),d=Zja(String(a)).split("."),e=Math.max(c.length,d.length),f=0;0==b&&f<e;f++){var g=c[f]||"",h=d[f]||"",k=RegExp("(\\d*)(\\D*)","g"),l=RegExp("(\\d*)(\\D*)","g");do{var m=k.exec(g)||["",
"",""],n=l.exec(h)||["","",""];if(0==m[0].length&&0==n[0].length)break;b=Zra(0==m[1].length?0:parseInt(m[1],10),0==n[1].length?0:parseInt(n[1],10))||Zra(0==m[2].length,0==n[2].length)||Zra(m[2],n[2])}while(0==b)}b=ZOa[a]=0<=b}return b},ZPa=Za.document,ZQa=ZMa(),ZRa=!ZPa||!Zp||!ZQa&&Zo()?void 0:ZQa||("CSS1Compat"==ZPa.compatMode?parseInt(ZNa,10):5);var ZSa=!Zp||Zp&&(Zo()||9<=ZRa),ZTa=!Zq&&!Zp||Zp&&Zp&&(Zo()||9<=ZRa)||Zq&&Zs("1.9.1"),ZUa=Zp&&!Zs("9");var Zt=function(a){var b=document;return Zc(a)?b.getElementById(a):a},ZVa=function(a,b,c){var d=document;c=c||d;var e=a&&"*"!=a?a.toUpperCase():"";if(c.querySelectorAll&&c.querySelector&&(e||b))return c.querySelectorAll(e+(b?"."+b:""));if(b&&c.getElementsByClassName){a=c.getElementsByClassName(b);if(e){c={};for(var f=d=0,g;g=a[f];f++)e==g.nodeName&&(c[d++]=g);c.length=d;return c}return a}a=c.getElementsByTagName(e||"*");if(b){c={};for(f=d=0;g=a[f];f++){var e=g.className,h;if(h="function"==typeof e.split)h=
0<=Zua(e.split(/\s+/),b);h&&(c[d++]=g)}c.length=d;return c}return a},ZXa=function(a,b){ZCa(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in ZWa?a.setAttribute(ZWa[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})},ZWa={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",
width:"width"},ZYa=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new Zm(a.clientWidth,a.clientHeight)},Zu=function(a,b,c){return ZZa(document,arguments)},ZZa=function(a,b){var c=b[0],d=b[1];if(!ZSa&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',Zj(d.name),'"');if(d.type){c.push(' type="',Zj(d.type),'"');var e={};ZGa(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(Zc(d)?c.className=d:Zb(d)?c.className=d.join(" "):ZXa(c,d));
2<b.length&&Z_a(a,c,b,2);return c},Z_a=function(a,b,c,d){function e(c){c&&b.appendChild(Zc(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var f=c[d];!Zda(f)||Zea(f)&&0<f.nodeType?e(f):Zva(Z0a(f)?ZBa(f):f,e)}},Z2a=function(a,b){Z_a(Z1a(a),a,arguments,1)},Zv=function(a,b){b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling)},Z1a=function(a){Zk(a,"Node cannot be null or undefined.");return 9==a.nodeType?a:a.ownerDocument||a.document},Z3a={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},Z4a={IMG:" ",BR:"\n"},
Z6a=function(a){if(ZUa&&"innerText"in a)a=a.innerText.replace(/(\r\n|\r|\n)/g,"\n");else{var b=[];Z5a(a,b,!0);a=b.join("")}a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");ZUa||(a=a.replace(/ +/g," "));" "!=a&&(a=a.replace(/^\s*/,""));return a},Z5a=function(a,b,c){if(!(a.nodeName in Z3a))if(3==a.nodeType)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in Z4a)b.push(Z4a[a.nodeName]);else for(a=a.firstChild;a;)Z5a(a,b,c),a=a.nextSibling},
Z0a=function(a){if(a&&"number"==typeof a.length){if(Zea(a))return"function"==typeof a.item||"string"==typeof a.item;if(Zd(a))return"function"==typeof a.item}return!1},Z7a=function(a,b){for(var c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null},Z8a=function(a){this.wa=a||Za.document||document};Z=Z8a.prototype;Z.jc=function(a,b,c){return ZZa(this.wa,arguments)};Z.createElement=function(a){return this.wa.createElement(a)};Z.createTextNode=function(a){return this.wa.createTextNode(String(a))};
Z.appendChild=function(a,b){a.appendChild(b)};Z.Bb=function(a){return ZTa&&void 0!=a.children?a.children:Zwa(a.childNodes,function(a){return 1==a.nodeType})};Z.contains=function(a,b){if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};var Z9a=function(a){if(a.classList)return a.classList;a=a.className;return Zc(a)&&a.match(/\S+/g)||[]},Zw=function(a,b){var c;a.classList?c=a.classList.contains(b):(c=Z9a(a),c=0<=Zua(c,b));return c},Z$a=function(a,b){a.classList?a.classList.remove(b):Zw(a,b)&&(a.className=Zwa(Z9a(a),function(a){return a!=b}).join(" "))},Zab=function(a,b,c){Zw(a,b)&&(Z$a(a,b),a.classList?a.classList.add(c):Zw(a,c)||(a.className+=0<a.className.length?" "+c:c))};var Zbb=function(a){Zbb[" "](a);return a};Zbb[" "]=Zba;var Zcb=!Zp||Zp&&(Zo()||9<=ZRa),Zdb=Zp&&!Zs("9");!Zr||Zs("528");Zq&&Zs("1.9b")||Zp&&Zs("8")||ZKa&&Zs("9.5")||Zr&&Zs("528");Zq&&!Zs("8")||Zp&&Zs("9");var Zeb=function(){this.ca=this.ca;this.Da=this.Da};Zeb.prototype.ca=!1;Zeb.prototype.mc=function(){this.ca||(this.ca=!0,this.K())};Zeb.prototype.K=function(){if(this.Da)for(;this.Da.length;)this.Da.shift()()};var Zx=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.Q=!1;this.Sb=!0};Zx.prototype.stopPropagation=function(){this.Q=!0};Zx.prototype.preventDefault=function(){this.defaultPrevented=!0;this.Sb=!1};var Zy=function(a,b){Zx.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.charCode=this.keyCode=this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.ea=this.state=null;if(a){var c=this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;if(d){if(Zq){var e;a:{try{Zbb(d.nodeName);e=!0;break a}catch(f){}e=!1}e||(d=null)}}else"mouseover"==
c?d=a.fromElement:"mouseout"==c&&(d=a.toElement);this.relatedTarget=d;this.offsetX=Zr||void 0!==a.offsetX?a.offsetX:a.layerX;this.offsetY=Zr||void 0!==a.offsetY?a.offsetY:a.layerY;this.clientX=void 0!==a.clientX?a.clientX:a.pageX;this.clientY=void 0!==a.clientY?a.clientY:a.pageY;this.screenX=a.screenX||0;this.screenY=a.screenY||0;this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;
this.metaKey=a.metaKey;this.state=a.state;this.ea=a;a.defaultPrevented&&this.preventDefault()}};Zg(Zy,Zx);Zy.prototype.stopPropagation=function(){Zy.I.stopPropagation.call(this);this.ea.stopPropagation?this.ea.stopPropagation():this.ea.cancelBubble=!0};Zy.prototype.preventDefault=function(){Zy.I.preventDefault.call(this);var a=this.ea;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Zdb)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var Zfb="closure_listenable_"+(1E6*Math.random()|0),Zgb=0;var Zhb=function(a,b,c,d,e){this.P=a;this.Fa=null;this.src=b;this.type=c;this.pa=!!d;this.xa=e;this.key=++Zgb;this.W=this.oa=!1},Zib=function(a){a.W=!0;a.P=null;a.Fa=null;a.src=null;a.xa=null};var Zz=function(a){this.src=a;this.q={};this.ka=0};Zz.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.q[f];a||(a=this.q[f]=[],this.ka++);var g=Zjb(a,b,d,e);-1<g?(b=a[g],c||(b.oa=!1)):(b=new Zhb(b,this.src,f,!!d,e),b.oa=c,a.push(b));return b};Zz.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.q))return!1;var e=this.q[a];b=Zjb(e,b,c,d);return-1<b?(Zib(e[b]),Zk(null!=e.length),Zl.splice.call(e,b,1),0==e.length&&(delete this.q[a],this.ka--),!0):!1};
var Zkb=function(a,b){var c=b.type;c in a.q&&Zza(a.q[c],b)&&(Zib(b),0==a.q[c].length&&(delete a.q[c],a.ka--))};Zz.prototype.Va=function(a,b,c,d){a=this.q[a.toString()];var e=-1;a&&(e=Zjb(a,b,c,d));return-1<e?a[e]:null};var Zjb=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.W&&f.P==b&&f.pa==!!c&&f.xa==d)return e}return-1};var Zlb="closure_lm_"+(1E6*Math.random()|0),Zmb={},Znb=0,ZA=function(a,b,c,d,e){if(Zb(b)){for(var f=0;f<b.length;f++)ZA(a,b[f],c,d,e);return null}c=Zob(c);if(a&&a[Zfb])f=c,Zpb(a),a=a.C.add(String(b),f,!1,d,e);else{if(!b)throw Error("Invalid event type");var f=!!d,g=Zqb(a);g||(a[Zlb]=g=new Zz(a));d=g.add(b,c,!1,d,e);d.Fa||(e=Zrb(),d.Fa=e,e.src=a,e.P=d,a.addEventListener?a.addEventListener(b.toString(),e,f):a.attachEvent(Zsb(b.toString()),e),Znb++);a=d}return a},Zrb=function(){var a=Ztb,b=Zcb?function(c){return a.call(b.src,
b.P,c)}:function(c){c=a.call(b.src,b.P,c);if(!c)return c};return b},Zub=function(a,b,c,d,e){if(Zb(b))for(var f=0;f<b.length;f++)Zub(a,b[f],c,d,e);else c=Zob(c),a&&a[Zfb]?a.C.remove(String(b),c,d,e):a&&(a=Zqb(a))&&(b=a.Va(b,c,!!d,e))&&Zvb(b)},Zvb=function(a){if("number"!=typeof a&&a&&!a.W){var b=a.src;if(b&&b[Zfb])Zkb(b.C,a);else{var c=a.type,d=a.Fa;b.removeEventListener?b.removeEventListener(c,d,a.pa):b.detachEvent&&b.detachEvent(Zsb(c),d);Znb--;(c=Zqb(b))?(Zkb(c,a),0==c.ka&&(c.src=null,b[Zlb]=null)):
Zib(a)}}},Zsb=function(a){return a in Zmb?Zmb[a]:Zmb[a]="on"+a},Zxb=function(a,b,c,d){var e=!0;if(a=Zqb(a))if(b=a.q[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&f.pa==c&&!f.W&&(f=Zwb(f,d),e=e&&!1!==f)}return e},Zwb=function(a,b){var c=a.P,d=a.xa||a.src;a.oa&&Zvb(a);return c.call(d,b)},Ztb=function(a,b){if(a.W)return!0;if(!Zcb){var c;if(!(c=b))a:{c=["window","event"];for(var d=Za,e;e=c.shift();)if(null!=d[e])d=d[e];else{c=null;break a}c=d}e=c;c=new Zy(e,this);d=!0;if(!(0>e.keyCode||
void 0!=e.returnValue)){a:{var f=!1;if(0==e.keyCode)try{e.keyCode=-1;break a}catch(g){f=!0}if(f||void 0==e.returnValue)e.returnValue=!0}e=[];for(f=c.currentTarget;f;f=f.parentNode)e.push(f);for(var f=a.type,h=e.length-1;!c.Q&&0<=h;h--){c.currentTarget=e[h];var k=Zxb(e[h],f,!0,c),d=d&&k}for(h=0;!c.Q&&h<e.length;h++)c.currentTarget=e[h],k=Zxb(e[h],f,!1,c),d=d&&k}return d}return Zwb(a,new Zy(b,this))},Zqb=function(a){a=a[Zlb];return a instanceof Zz?a:null},Zyb="__closure_events_fn_"+(1E9*Math.random()>>>
0),Zob=function(a){Zk(a,"Listener can not be null.");if(Zd(a))return a;Zk(a.handleEvent,"An object listener must have handleEvent method.");a[Zyb]||(a[Zyb]=function(b){return a.handleEvent(b)});return a[Zyb]};var ZB=function(){Zeb.call(this);this.C=new Zz(this);this.dc=this;this.bb=null};Zg(ZB,Zeb);ZB.prototype[Zfb]=!0;ZB.prototype.addEventListener=function(a,b,c,d){ZA(this,a,b,c,d)};ZB.prototype.removeEventListener=function(a,b,c,d){Zub(this,a,b,c,d)};
ZB.prototype.dispatchEvent=function(a){Zpb(this);var b,c=this.bb;if(c){b=[];for(var d=1;c;c=c.bb)b.push(c),Zk(1E3>++d,"infinite loop")}c=this.dc;d=a.type||a;if(Zc(a))a=new Zx(a,c);else if(a instanceof Zx)a.target=a.target||c;else{var e=a;a=new Zx(d,c);ZGa(a,e)}var e=!0,f;if(b)for(var g=b.length-1;!a.Q&&0<=g;g--)f=a.currentTarget=b[g],e=Zzb(f,d,!0,a)&&e;a.Q||(f=a.currentTarget=c,e=Zzb(f,d,!0,a)&&e,a.Q||(e=Zzb(f,d,!1,a)&&e));if(b)for(g=0;!a.Q&&g<b.length;g++)f=a.currentTarget=b[g],e=Zzb(f,d,!1,a)&&
e;return e};ZB.prototype.K=function(){ZB.I.K.call(this);if(this.C){var a=this.C,b=0,c;for(c in a.q){for(var d=a.q[c],e=0;e<d.length;e++)++b,Zib(d[e]);delete a.q[c];a.ka--}}this.bb=null};var Zzb=function(a,b,c,d){b=a.C.q[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var g=b[f];if(g&&!g.W&&g.pa==c){var h=g.P,k=g.xa||g.src;g.oa&&Zkb(a.C,g);e=!1!==h.call(k,d)&&e}}return e&&0!=d.Sb};ZB.prototype.Va=function(a,b,c,d){return this.C.Va(String(a),b,c,d)};
var Zpb=function(a){Zk(a.C,"Event target is not initialized. Did you call the superclass (goog.events.EventTarget) constructor?")};var ZAb=function(a){a=String(a);if(/^\s*$/.test(a)?0:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,"")))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);},ZBb=function(a){return eval("("+a+")")};var ZCb="StopIteration"in Za?Za.StopIteration:Error("StopIteration"),ZDb=function(){};ZDb.prototype.next=function(){throw ZCb;};ZDb.prototype.cc=function(){return this};var ZC=function(a,b){this.D={};this.j=[];this.ma=this.i=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else a&&this.addAll(a)};Z=ZC.prototype;Z.G=function(){ZEb(this);for(var a=[],b=0;b<this.j.length;b++)a.push(this.D[this.j[b]]);return a};Z.F=function(){ZEb(this);return this.j.concat()};Z.ba=function(a){return ZD(this.D,a)};Z.clear=function(){this.D={};this.ma=this.i=this.j.length=0};
Z.remove=function(a){return ZD(this.D,a)?(delete this.D[a],this.i--,this.ma++,this.j.length>2*this.i&&ZEb(this),!0):!1};var ZEb=function(a){if(a.i!=a.j.length){for(var b=0,c=0;b<a.j.length;){var d=a.j[b];ZD(a.D,d)&&(a.j[c++]=d);b++}a.j.length=c}if(a.i!=a.j.length){for(var e={},c=b=0;b<a.j.length;)d=a.j[b],ZD(e,d)||(a.j[c++]=d,e[d]=1),b++;a.j.length=c}};Z=ZC.prototype;Z.get=function(a,b){return ZD(this.D,a)?this.D[a]:b};
Z.set=function(a,b){ZD(this.D,a)||(this.i++,this.j.push(a),this.ma++);this.D[a]=b};Z.addAll=function(a){var b;a instanceof ZC?(b=a.F(),a=a.G()):(b=ZEa(a),a=ZDa(a));for(var c=0;c<b.length;c++)this.set(b[c],a[c])};Z.forEach=function(a,b){for(var c=this.F(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};Z.clone=function(){return new ZC(this)};
Z.cc=function(a){ZEb(this);var b=0,c=this.ma,d=this,e=new ZDb;e.next=function(){if(c!=d.ma)throw Error("The map has changed since the iterator was created");if(b>=d.j.length)throw ZCb;var e=d.j[b++];return a?e:d.D[e]};return e};var ZD=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var ZFb=function(a){if("function"==typeof a.G)return a.G();if(Zc(a))return a.split("");if(Zda(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return ZDa(a)},ZGb=function(a){if("function"==typeof a.F)return a.F();if("function"!=typeof a.G){if(Zda(a)||Zc(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return ZEa(a)}},ZHb=function(a,b,c){if("function"==typeof a.forEach)a.forEach(b,c);else if(Zda(a)||Zc(a))Zva(a,b,c);else for(var d=ZGb(a),e=ZFb(a),f=e.length,g=0;g<f;g++)b.call(c,
e[g],d&&d[g],a)};var ZIb=function(a,b,c,d,e){this.reset(a,b,c,d,e)};ZIb.prototype.zb=null;var ZJb=0;ZIb.prototype.reset=function(a,b,c,d,e){"number"==typeof e||ZJb++;d||Zia();this.fa=a;this.Fc=b;delete this.zb};ZIb.prototype.Yb=function(a){this.fa=a};var ZE=function(a){this.Gc=a;this.Eb=this.Pa=this.fa=this.Ea=null},ZKb=function(a,b){this.name=a;this.value=b};ZKb.prototype.toString=function(){return this.name};var ZLb=new ZKb("SEVERE",1E3),ZMb=new ZKb("CONFIG",700),ZNb=new ZKb("FINE",500);ZE.prototype.getParent=function(){return this.Ea};ZE.prototype.Bb=function(){this.Pa||(this.Pa={});return this.Pa};ZE.prototype.Yb=function(a){this.fa=a};var ZOb=function(a){if(a.fa)return a.fa;if(a.Ea)return ZOb(a.Ea);Zta("Root logger has no level set.");return null};
ZE.prototype.log=function(a,b,c){if(a.value>=ZOb(this).value)for(Zd(b)&&(b=b()),a=new ZIb(a,String(b),this.Gc),c&&(a.zb=c),c="log:"+a.Fc,Za.console&&(Za.console.timeStamp?Za.console.timeStamp(c):Za.console.markTimeline&&Za.console.markTimeline(c)),Za.msWriteProfilerMark&&Za.msWriteProfilerMark(c),c=this;c;){b=c;var d=a;if(b.Eb)for(var e=0,f=void 0;f=b.Eb[e];e++)f(d);c=c.getParent()}};
var ZPb={},ZQb=null,ZRb=function(a){ZQb||(ZQb=new ZE(""),ZPb[""]=ZQb,ZQb.Yb(ZMb));var b;if(!(b=ZPb[a])){b=new ZE(a);var c=a.lastIndexOf("."),d=a.substr(c+1),c=ZRb(a.substr(0,c));c.Bb()[d]=b;b.Ea=c;ZPb[a]=b}return b};var ZF=function(a,b){a&&a.log(ZNb,b,void 0)};[].push(function(){});var ZSb=function(a,b,c){if(Zd(a))c&&(a=Ze(a,c));else if(a&&"function"==typeof a.handleEvent)a=Ze(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<b?-1:Za.setTimeout(a,b||0)};var ZTb=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/,ZVb=function(a){if(ZUb){ZUb=!1;var b=Za.location;if(b){var c=b.href;if(c&&(c=(c=ZVb(c)[3]||null)?decodeURI(c):c)&&c!=b.hostname)throw ZUb=!0,Error();}}return a.match(ZTb)},ZUb=Zr,ZWb=function(a,b){for(var c=a.split("&"),d=0;d<c.length;d++){var e=c[d].indexOf("="),f=null,g=null;0<=e?(f=c[d].substring(0,e),g=c[d].substring(e+1)):f=c[d];b(f,g?decodeURIComponent(g.replace(/\+/g," ")):
"")}};var ZXb=function(){};ZXb.prototype.tb=null;var ZZb=function(a){var b;(b=a.tb)||(b={},ZYb(a)&&(b[0]=!0,b[1]=!0),b=a.tb=b);return b};var Z_b,Z0b=function(){};Zg(Z0b,ZXb);var Z1b=function(a){return(a=ZYb(a))?new ActiveXObject(a):new XMLHttpRequest},ZYb=function(a){if(!a.Fb&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.Fb=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.Fb};
Z_b=new Z0b;var ZG=function(a){ZB.call(this);this.headers=new ZC;this.Ma=a||null;this.J=!1;this.La=this.a=null;this.M=this.Gb=this.Ba="";this.O=this.Ya=this.Aa=this.Ua=!1;this.Y=0;this.Ia=null;this.Rb="";this.Ka=this.dd=!1};Zg(ZG,ZB);var Z2b=ZG.prototype,Z3b=ZRb("goog.net.XhrIo");Z2b.A=Z3b;
var Z4b=/^https?$/i,Z5b=["POST","PUT"],Z6b=[],ZH=function(a,b,c,d,e,f){var g=new ZG;Z6b.push(g);b&&(Zpb(g),g.C.add("complete",b,!1,void 0,void 0));g.C.add("ready",g.fc,!0,void 0,void 0);f&&(g.Y=Math.max(0,f));g.send(a,c,d,e)};ZG.prototype.fc=function(){this.mc();Zza(Z6b,this)};
ZG.prototype.send=function(a,b,c,d){if(this.a)throw Error("[goog.net.XhrIo] Object is active with another request="+this.Ba+"; newUri="+a);b=b?b.toUpperCase():"GET";this.Ba=a;this.M="";this.Gb=b;this.Ua=!1;this.J=!0;this.a=this.Ma?Z1b(this.Ma):Z1b(Z_b);this.La=this.Ma?ZZb(this.Ma):ZZb(Z_b);this.a.onreadystatechange=Ze(this.Lb,this);try{ZF(this.A,ZI(this,"Opening Xhr")),this.Ya=!0,this.a.open(b,String(a),!0),this.Ya=!1}catch(e){ZF(this.A,ZI(this,"Error opening Xhr: "+e.message));Z7b(this,e);return}a=
c||"";var f=this.headers.clone();d&&ZHb(d,function(a,b){f.set(b,a)});d=Zya(f.F());c=Za.FormData&&a instanceof Za.FormData;!(0<=Zua(Z5b,b))||d||c||f.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");f.forEach(function(a,b){this.a.setRequestHeader(b,a)},this);this.Rb&&(this.a.responseType=this.Rb);"withCredentials"in this.a&&(this.a.withCredentials=this.dd);try{Z8b(this),0<this.Y&&(this.Ka=Z9b(this.a),ZF(this.A,ZI(this,"Will abort after "+this.Y+"ms if incomplete, xhr2 "+this.Ka)),
this.Ka?(this.a.timeout=this.Y,this.a.ontimeout=Ze(this.ac,this)):this.Ia=ZSb(this.ac,this.Y,this)),ZF(this.A,ZI(this,"Sending request")),this.Aa=!0,this.a.send(a),this.Aa=!1}catch(g){ZF(this.A,ZI(this,"Send error: "+g.message)),Z7b(this,g)}};var Z9b=function(a){return Zp&&Zs(9)&&"number"==typeof a.timeout&&void 0!==a.ontimeout},Zxa=function(a){return"content-type"==a.toLowerCase()};
ZG.prototype.ac=function(){"undefined"!=typeof Zaa&&this.a&&(this.M="Timed out after "+this.Y+"ms, aborting",ZF(this.A,ZI(this,this.M)),this.dispatchEvent("timeout"),this.abort(8))};var Z7b=function(a,b){a.J=!1;a.a&&(a.O=!0,a.a.abort(),a.O=!1);a.M=b;Z$b(a);Zac(a)},Z$b=function(a){a.Ua||(a.Ua=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
ZG.prototype.abort=function(){this.a&&this.J&&(ZF(this.A,ZI(this,"Aborting")),this.J=!1,this.O=!0,this.a.abort(),this.O=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Zac(this))};ZG.prototype.K=function(){this.a&&(this.J&&(this.J=!1,this.O=!0,this.a.abort(),this.O=!1),Zac(this,!0));ZG.I.K.call(this)};ZG.prototype.Lb=function(){this.ca||(this.Ya||this.Aa||this.O?Zbc(this):this.Lc())};ZG.prototype.Lc=function(){Zbc(this)};
var Zbc=function(a){if(a.J&&"undefined"!=typeof Zaa)if(a.La[1]&&4==Zcc(a)&&2==Zdc(a))ZF(a.A,ZI(a,"Local request error detected and ignored"));else if(a.Aa&&4==Zcc(a))ZSb(a.Lb,0,a);else if(a.dispatchEvent("readystatechange"),4==Zcc(a)){ZF(a.A,ZI(a,"Request complete"));a.J=!1;try{if(ZJ(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{var b;try{b=2<Zcc(a)?a.a.statusText:""}catch(c){ZF(a.A,"Can not get status: "+c.message),b=""}a.M=b+" ["+Zdc(a)+"]";Z$b(a)}}finally{Zac(a)}}},Zac=function(a,
b){if(a.a){Z8b(a);var c=a.a,d=a.La[0]?Zba:null;a.a=null;a.La=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){(c=a.A)&&c.log(ZLb,"Problem encountered resetting onreadystatechange: "+e.message,void 0)}}},Z8b=function(a){a.a&&a.Ka&&(a.a.ontimeout=null);"number"==typeof a.Ia&&(Za.clearTimeout(a.Ia),a.Ia=null)},ZJ=function(a){var b=Zdc(a),c;a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:c=!0;break a;default:c=!1}if(!c){if(b=0===b)a=ZVb(String(a.Ba))[1]||
null,!a&&self.location&&(a=self.location.protocol,a=a.substr(0,a.length-1)),b=!Z4b.test(a?a.toLowerCase():"");c=b}return c},Zcc=function(a){return a.a?a.a.readyState:0},Zdc=function(a){try{return 2<Zcc(a)?a.a.status:-1}catch(b){return-1}},Zec=function(a){try{return a.a?a.a.responseText:""}catch(b){return ZF(a.A,"Can not get responseText: "+b.message),""}},ZK=function(a){if(a.a)return ZAb(a.a.responseText)},Zfc=function(a){return Zc(a.M)?a.M:String(a.M)},ZI=function(a,b){return b+" ["+a.Gb+" "+a.Ba+
" "+Zdc(a)+"]"};var Zhc=function(a,b){var c=1,d;if(c instanceof Zm)d=c.height,c=c.width;else{if(void 0==b)throw Error("missing height argument");d=b}a.style.width=Zgc(c);a.style.height=Zgc(d)},Zgc=function(a){"number"==typeof a&&(a=Math.round(a)+"px");return a},Zjc=function(a){var b=Zic,c;a:{c=Z1a(a);if(c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))){c=c.display||c.getPropertyValue("display")||"";break a}c=""}if("none"!=(c||(a.currentStyle?a.currentStyle.display:null)||
a.style&&a.style.display))return b(a);c=a.style;var d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=f;c.visibility=e;return a},Zic=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=Zr&&!b&&!c;if((void 0===b||d)&&a.getBoundingClientRect){var e;a:{try{e=a.getBoundingClientRect()}catch(f){e={left:0,top:0,right:0,bottom:0};break a}Zp&&a.ownerDocument.body&&(a=a.ownerDocument,e.left-=a.documentElement.clientLeft+a.body.clientLeft,
e.top-=a.documentElement.clientTop+a.body.clientTop)}return new Zm(e.right-e.left,e.bottom-e.top)}return new Zm(b,c)},ZL=function(a,b){a.style.display=b?"":"none"};var ZM=function(a,b,c){this.i=this.g=null;this.w=a||null;this.Dc=!!c},ZN=function(a){a.g||(a.g=new ZC,a.i=0,a.w&&ZWb(a.w,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))},Zkc=function(a){var b=ZGb(a);if("undefined"==typeof b)throw Error("Keys are undefined");var c=new ZM(null,0,void 0);a=ZFb(a);for(var d=0;d<b.length;d++){var e=b[d],f=a[d];if(Zb(f)){var g=c;g.remove(e);0<f.length&&(g.w=null,g.g.set(ZO(g,e),ZBa(f)),g.i+=f.length)}else c.add(e,f)}return c};Z=ZM.prototype;
Z.add=function(a,b){ZN(this);this.w=null;a=ZO(this,a);var c=this.g.get(a);c||this.g.set(a,c=[]);c.push(b);this.i++;return this};Z.remove=function(a){ZN(this);a=ZO(this,a);return this.g.ba(a)?(this.w=null,this.i-=this.g.get(a).length,this.g.remove(a)):!1};Z.clear=function(){this.g=this.w=null;this.i=0};Z.ba=function(a){ZN(this);a=ZO(this,a);return this.g.ba(a)};Z.F=function(){ZN(this);for(var a=this.g.G(),b=this.g.F(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
Z.G=function(a){ZN(this);var b=[];if(Zc(a))this.ba(a)&&(b=ZAa(b,this.g.get(ZO(this,a))));else{a=this.g.G();for(var c=0;c<a.length;c++)b=ZAa(b,a[c])}return b};Z.set=function(a,b){ZN(this);this.w=null;a=ZO(this,a);this.ba(a)&&(this.i-=this.g.get(a).length);this.g.set(a,[b]);this.i++;return this};Z.get=function(a,b){var c=a?this.G(a):[];return 0<c.length?String(c[0]):b};
Z.toString=function(){if(this.w)return this.w;if(!this.g)return"";for(var a=[],b=this.g.F(),c=0;c<b.length;c++)for(var d=b[c],e=encodeURIComponent(String(d)),d=this.G(d),f=0;f<d.length;f++){var g=e;""!==d[f]&&(g+="="+encodeURIComponent(String(d[f])));a.push(g)}return this.w=a.join("&")};Z.clone=function(){var a=new ZM;a.w=this.w;this.g&&(a.g=this.g.clone(),a.i=this.i);return a};var ZO=function(a,b){var c=String(b);a.Dc&&(c=c.toLowerCase());return c};
ZM.prototype.extend=function(a){for(var b=0;b<arguments.length;b++)ZHb(arguments[b],function(a,b){this.add(b,a)},this)};if(window.jstiming){window.jstiming.qb={};window.jstiming.Rc=1;var Zlc=function(a,b){var c=a.t[b],d=a.t.start;if(c&&d)return Math.round(c-d)},Zmc=function(a,b,c){var d="";window.jstiming.srt&&(d+="&srt="+window.jstiming.srt,delete window.jstiming.srt);window.jstiming.pt&&(d+="&tbsrt="+window.jstiming.pt,delete window.jstiming.pt);try{window.external&&window.external.tran?d+="&tran="+window.external.tran:window.gtbExternal&&window.gtbExternal.tran?d+="&tran="+window.gtbExternal.tran():window.chrome&&
window.chrome.csi&&(d+="&tran="+window.chrome.csi().tran)}catch(e){}var f=window.chrome;if(f&&(f=f.loadTimes)){f().wasFetchedViaSpdy&&(d+="&p=s");if(f().wasNpnNegotiated){var d=d+"&npn=1",g=f().npnNegotiatedProtocol;g&&(d+="&npnv="+(encodeURIComponent||escape)(g))}f().wasAlternateProtocolAvailable&&(d+="&apa=1")}var g=a.t,h=g.start,f=[],k;for(k in g)"start"!=k&&h&&f.push(k+"."+Zlc(a,k));delete g.start;if(b)for(var l in b)d+="&"+l+"="+b[l];(b=c)||(b="https:"==document.location.protocol?"https://csi.gstatic.com/csi":
"http://csi.gstatic.com/csi");return[b,"?v=3","&s="+(window.jstiming.sn||"codesite")+"&action=",a.name,"",d,"&rt=",f.join(",")].join("")},Znc=function(a,b,c){a=Zmc(a,b,c);if(!a)return"";b=new Image;var d=window.jstiming.Rc++;window.jstiming.qb[d]=b;b.onload=b.onerror=function(){window.jstiming&&delete window.jstiming.qb[d]};b.src=a;b=null;return a};window.jstiming.report=function(a,b,c){if("prerender"==document.webkitVisibilityState){var d=!1,e=function(){if(!d){b?b.prerender="1":b={prerender:"1"};
var f;"prerender"==document.webkitVisibilityState?f=!1:(Znc(a,b,c),f=!0);f&&(d=!0,document.removeEventListener("webkitvisibilitychange",e,!1))}};document.addEventListener("webkitvisibilitychange",e,!1);return""}return Znc(a,b,c)}};function Zoc(a,b){var c=a?Zkc(a):new ZM;!1!==b&&c.set("token",CS_env.token);return c.toString()}function ZP(a,b,c){ZH(a,function(a){a=a.target;ZJ(a)&&b(a)},"POST",Zoc(c))};function Zpc(a,b){ZP(CS_env.relativeBaseUrl+"/hosting/stars.do",Zha(Zqc,a),b)}function Zqc(a,b){var c=ZK(b).starred;a.Ec.src=CS_env.assetHostPath+(c?"/images/star_on.gif":"/images/star_off.gif");a.Jb&&(a.Jb.innerHTML=c?a.Mc:a.Hc);a.$c&&Zrc()}_CS_setStar=Zpc;
_CS_toggleStar=function(a,b,c,d,e,f,g,h){var k=-1!=a.src.indexOf("/images/star_off.gif")?1:0;a.src=CS_env.assetHostPath+(k?"/images/star_on.gif":"/images/star_off.gif");if(d){var l=document.getElementById(d);l&&(l.innerHTML=k?e:f)}g&&(d=document.getElementById(g))&&(g=parseInt(d.innerHTML,10),g=k?g+1:g-1,d.innerHTML=g,h&&(h=document.getElementById(h)))&&(h.innerHTML=1==g?"":"s");a={Mc:e,Hc:f,Ec:a,Jb:l,$c:c};b.starred=k;Zpc(a,b)};_CS_dismissCue=function(a){ZL(Zt("cue"),!1);CS_env.token&&ZH(CS_env.relativeBaseUrl+"/hosting/cues.do",null,"POST",Zoc({cue_id:a}));return!1};function Zsc(a){for(;a;){if(Zw(a,"collapse"))return Zab(a,"collapse","expand"),!0;if(Zw(a,"expand"))return Zab(a,"expand","collapse"),!1;a=a.parentNode}}_hideID=function(a){ZL(Zt(a),!1);return!1};_showID=function(a){ZL(Zt(a),!0);return!1};_hideEl=function(a){ZL(a,!1);return!1};_showEl=function(a){ZL(a,!0);return!1};_showInstead=function(a,b){ZL(Zt(a),!0);ZL(b,!1);return!1};
_toggleHidden=function(a){for(;a;){if(Zw(a,"closed"))return Zab(a,"closed","opened"),!1;if(Zw(a,"opened"))return Zab(a,"opened","closed"),!1;a=a.parentNode}};_toggleCollapse=Zsc;function Ztc(){var a=/http:\/\/[^\/]*\/(u|hosting|r|p)\/([^\?\/]*)\/?([^\?\/]*)\/?([^\?\/]*)?/.exec(window.location.href);if("hosting"==a[1])return a[2]?"hosting_"+a[2]:"hosting_home";if("u"==a[1])return"updates"==a[3]?a[4]?"user_updates_"+a[4]:"user_updates_user":"user_profile";if("p"==a[1]||"r"==a[1]){if(!a[3]&&!a[4])return"summary";if("wiki"==a[3]||a[3]&&!a[4])return a[3];if(a[3]&&a[4])return("w"==a[3]?"wiki":a[3])+"_"+a[4]}return"other"}
function Zuc(){var a=["codesite","ph"],b="project_"+Ztc();a.push(b);return a.join(",")}function Zvc(){var a=window.jstiming.load;a.tick("plt");a.name=Zuc();window.setTimeout(function(){window.jstiming.report(a)},500)}_CS_reportToCsi=function(){ZA(window,"load",Zvc)};function Zwc(a){window.setTimeout(function(){_gaq.push("siteTracker._trackPageview",a)},0)}_CS_click=Zwc;var ZQ=function(a,b){this.za=Zxc.length;Zxc[this.za]=this;this.target=a;this.ab=b||null;this.Z=a;this.items=[];this.ia=[];this.k=this.createElement("div","menuDiv instance"+this.za);this.mb=this.target.getAttribute("id");this.k.setAttribute("id",null!=this.mb?"menuDiv-"+this.mb:"menuDiv-instance"+this.za);this.ya();Zyc(this,"default");ZA(this.Z,"click",Ze(this.toggle,this));ZA(window,"resize",Ze(this.pb,this));ZA(document,"click",Ze(this.ya,this));ZA(this.k,"click",function(a){a.stopPropagation()});
ZA(this.Z,"click",function(a){a.stopPropagation()})};Z=ZQ.prototype;Z.target=null;Z.mb=null;Z.Z=null;Z.ab=null;Z.d=null;Z.za=-1;Z.items=null;Z.ia=null;Z.createElement=function(a,b,c){return Zu(a,{className:b},c)};var Zyc=function(a,b,c){a.d=a.d||[];var d=a.createElement("div","menuCategory "+b);d.nb=b;c&&(c=a.createElement("b","categoryTitle "+b,c),c.style.display="block",Z2a(a.k,c),d.Na=c);Z2a(a.k,d);return a.d[a.d.length]=a.d[b]=d};
ZQ.prototype.clear=function(){for(var a=0;a<this.d.length;a++)this.d[this.d[a].nb]=null;this.items.splice(0,this.items.length);this.d.splice(0,this.d.length);this.d=[];this.items=[];this.k.innerHTML="";Zyc(this,"default")};ZQ.prototype.removeItem=function(a){for(var b=null,c=0;c<this.items.length;c++)this.items[c]==a&&(b=this.items[c],this.items.splice(c,1)),this.items[c].item.Oa=c;return b};
var Zzc=function(a){var b=ZR;if((a=b.d[a])&&a.parentNode){a.Na&&a.Na.parentNode.removeChild(a.Na);a.parentNode.removeChild(a);for(var c=0;c<b.d.length;c++)if(b.d[c]===a){b.d[b.d[c].nb]=null;b.d.splice(c,1);return}for(c=0;c<a.childNodes.length;c++)a.childNodes[c].Oa?b.items.splice(a.childNodes[c].Oa,1):b.removeItem(a.childNodes[c])}},ZS=function(a,b,c,d,e){d=d?a.d[d]||Zyc(a,d,e):a.d["default"];c=void 0==c?"#":c;e=void 0;e=c?a.createElement("a","menuItem",b):a.createElement("span","menuText",b);b="string"==
typeof b?b:b.innerText||"ERROR";e.style.display="block";c&&e.setAttribute("href",c);e.Oa=a.items.length;Z2a(d,e);a.items[a.items.length]={item:e,text:b}},ZAc=function(a){var b=a.d.controls||Zyc(a,"controls","");a=a.createElement("hr","menuSeparator");Z2a(b,a)};Z=ZQ.prototype;
Z.pb=function(){var a=this.k.style;a.position="absolute";for(var b=null,c=0;c<this.d.length;c++)this.d[c].className=this.d[c].className.replace(/ first/,""),0==this.d[c].childNodes.length?this.d[c].style.display="none":(this.d[c].style.display="",b||(b=this.d[c],b.className+=" first"));var d="none"!=a.display&&"hidden"!=a.visibility,b=document.documentElement.clientWidth,c=document.documentElement.clientHeight,b=(window.innerWidth||b&&0<b?b:document.body.clientWidth)||1,c=(window.innerHeight||c&&
0<c?c:document.body.clientHeight)||1,e=this.find(this.target),f=this.target.offsetWidth,g=this.target.offsetHeight,h=this.k.offsetWidth,k=this.k.offsetHeight;d||(d=a.visibility,k=a.display,a.visibility="hidden",a.display="",a.height="",a.width="",h=this.k.offsetWidth,a.display=k,a.visibility=d);(d=.8<this.k.offsetHeight/c)?(k=parseInt(.8*c,10),a.height=k+"px",a.overflowX="hidden",a.overflowY="auto"):a.height=a.overflowY=a.overflowX="";a.top=e.y+g+"px";a.left=e.x+"px";175>h&&(a.width="175px");d&&(a.width=
parseInt(a.width,10)+13+"px");e.x+h>b&&(a.left=e.x-(h-f)+"px")};Z.toggle=function(){"none"==this.k.style.display?this.show():this.ya()};Z.show=function(){if(""!=this.k.style.display){for(var a=0;a<this.ia.length;a++)this.ia[a].call(null,this);this.k.style.visibility="hidden";this.k.style.display="";this.pb();this.Z.nodeName&&"A"==this.Z.nodeName&&this.Z.blur();this.k.style.visibility="visible";for(a=0;a<Zxc.length;a++){var b=Zxc[a];b!=this&&b.ya()}this.ab&&this.ab()}};
Z.ya=function(){this.k.style.display="none"};Z.find=function(a){var b=0,c=0;if(a.offsetParent){do b+=a.offsetLeft,c+=a.offsetTop;while((a=a.offsetParent)&&a.style&&"relative"!=a.style.position&&"absolute"!=a.style.position)}return{x:b,y:c}};var Zxc=[];var ZR;(function(){var a=document.getElementById("projects-dropdown");a&&(ZR=new ZQ(a,function(){Zwc("/gb/ph/myprojects")}),ZR.ia.push(Zrc),ZA(window,"load",function(){Zrc();document.body.appendChild(ZR.k)}))})();function Zrc(){CS_env.token?ZP(CS_env.relativeBaseUrl+"/hosting/projects",ZBc,{}):ZBc(null)}
function ZBc(a){if(a){var b=[],c=[],d=[],e=ZK(a),f;for(f in e)switch(f){case "personal_projects":for(a=0;a<e[f].length;a++)b.push(e[f][a]);break;case "contributorto":case "memberof":case "ownerof":for(a=0;a<e[f].length;a++)c.push(e[f][a]);break;case "starred_projects":for(a=0;a<e[f].length;a++)d.push(e[f][a]);break;case "playground_token":ZCc(e[f]);break;case "error":return}ZR.clear();b.sort();for(a=0;a<b.length;a++)f=CS_env.profileUrl+"p/"+b[a]+"/",ZS(ZR,b[a],f,"personal_projects","Personal projects");
c.sort();for(a=0;a<c.length;a++)f=CS_env.relativeBaseUrl+"/p/"+c[a]+"/",ZS(ZR,c[a],f,"projects","Projects");d.sort();for(a=0;a<d.length;a++)f=CS_env.relativeBaseUrl+"/p/"+d[a]+"/",ZS(ZR,d[a],f,"starred_projects","Starred projects");ZDc(ZEc)}else b=encodeURIComponent(window.location.href),ZR.clear(),ZS(ZR,"Sign in to see your favorites","http://www.google.com/accounts/ServiceLogin?service=code&ltmpl=phosting&continue="+b+"&amp;followup="+b,"controls"),ZFc()}
function ZFc(){ZAc(ZR);var a=CS_env.relativeBaseUrl+"/hosting/";ZS(ZR,CS_env.relativeBaseUrl?"Find projects...":"Find open source projects...",a,"controls");ZS(ZR,"Create a project...",a+"createProject","controls")}var ZEc=null;function ZCc(a){ZH("/apis/ajax/playground/get_projects",function(a){a=a.target;ZJ(a)&&(a=ZK(a),a!=ZEc&&(ZDc(a),ZEc=a))},"POST",Zoc({token:a,u:CS_env.loggedInUserEmail},!1))}
function ZDc(a){Zzc("playground_projects");Zzc("controls");if(a&&"200"==a.responseStatus&&0<a.numSamples)for(var b=0;b<a.samples.length;b++){var c=a.samples[b];ZS(ZR,c.sampleName,c.sampleLoc,"playground_projects","Playground Projects")}ZFc()};var ZT;(function(){var a=document.getElementById("multilogin-dropdown");a&&(ZT=new ZQ(a,function(){Zwc("/gb/ph/multilogin")}),ZT.ia.push(ZGc),ZA(window,"load",function(){ZGc();document.body.appendChild(ZT.k)}))})();function ZGc(){ZP("/hosting/multilogin",ZHc,{})}
function ZHc(a){var b=ZK(a);a=b.sessions;var b=b.active,c=encodeURIComponent(window.location.href);ZT.clear();for(var d=window.location.href.replace(/#.*/,""),e=0;e<a.length;e++){var f=a[e].addr,g=d+(-1==d.indexOf("?")?"?":"&")+"authuser="+a[e].acct+window.location.hash,h=a[e].disabled;b==e?(f=Zu("b",{},f),g=""):h&&(f=Zu("span",{style:"color:gray",title:"This session has been disabled"},f),g="");ZS(ZT,f,g)}ZAc(ZT);ZS(ZT,Zu("nobr",{},"Sign in with another account..."),"http://www.google.com/accounts/AddSession?service=code&continue="+
c,"controls")};function ZIc(a){ZP("/hosting/experiments.do",function(){window.location.reload()},{exp:"issuenav redirect",add:a?1:0})}(function(){var a=Zt("ui_optin"),b=Zt("ui_optout");a?ZA(a,"click",function(a){a.preventDefault();ZIc(!0)}):b&&ZA(b,"click",function(a){a.preventDefault();ZIc(!1)})})();