(function(){var GBS_HOST = "https://books.google.com/";var f,aa=[];function ba(a){return function(){return aa[a].apply(this,arguments)}}function ca(a,b){return aa[a]=b}function da(a){var b=0;return function(){return b>>0)+"_",e=0;return b}); ia("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c=g}});ia("Number.isFinite",function(a){return a?a:function(b){return typeof b!=="number"?!1:!isNaN(b)&&b!==Infinity&&b!==-Infinity}}); ia("String.prototype.repeat",function(a){return a?a:function(b){var c=Pa(this,null,"repeat");if(b<0||b>1342177279)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});ia("Array.prototype.find",function(a){return a?a:function(b,c){a:{var d=this;d instanceof String&&(d=String(d));for(var e=d.length,g=0;g=0&&b56319||b+1===d)return e;b=c.charCodeAt(b+1);return b<56320||b>57343?e:(e-55296)*1024+b+9216}}}); ia("String.fromCodePoint",function(a){return a?a:function(b){for(var c="",d=0;d1114111||e!==Math.floor(e))throw new RangeError("invalid_code_point "+e);e<=65535?c+=String.fromCharCode(e):(e-=65536,c+=String.fromCharCode(e>>>10&1023|55296),c+=String.fromCharCode(e&1023|56320))}return c}});ia("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Ma(b,d)&&c.push([d,b[d]]);return c}}); ia("Array.prototype.values",function(a){return a?a:function(){return Oa(this,function(b,c){return c})}});ia("Array.from",function(a){return a?a:function(b,c,d){c=c!=null?c:function(k){return k};var e=[],g=typeof Symbol!="undefined"&&Symbol.iterator&&b[Symbol.iterator];if(typeof g=="function"){b=g.call(b);for(var h=0;!(g=b.next()).done;)e.push(c.call(d,g.value,h++))}else for(g=b.length,h=0;h>>0),Za=0;function $a(a,b,c){return a.call.apply(a.bind,arguments)}function ab(a,b,c){if(!a)throw Error();if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}} function r(a,b,c){r=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?$a:ab;return r.apply(null,arguments)}function t(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}}function bb(){return Date.now()}function cb(a,b){a=a.split(".");for(var c=q,d;a.length&&(d=a.shift());)a.length||b===void 0?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b} function u(a,b){function c(){}c.prototype=b.prototype;a.na=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.dw=function(d,e,g){for(var h=Array(arguments.length-2),k=2;k=0;c--)if(c in a&&a[c]===b)return c;return-1},v=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=typeof a==="string"?a.split(""):a,g=0;g=0}function qb(a,b){pb(a,b)||a.push(b)}function rb(a,b){b=hb(a,b);var c;(c=b>=0)&&sb(a,b);return c}function sb(a,b){Array.prototype.splice.call(a,b,1)}function tb(a,b){b=ob(a,b);b>=0&&sb(a,b)}function ub(a){return Array.prototype.concat.apply([],arguments)} function vb(a){var b=a.length;if(b>0){for(var c=Array(b),d=0;db?1:a0?Array.prototype.unshift.apply(a,a.splice(-b,b)):b<0&&Array.prototype.push.apply(a,a.splice(0,-b))}return a};function Eb(a,b,c){return Math.min(Math.max(a,b),c)};function w(a,b){this.x=a!==void 0?a:0;this.y=b!==void 0?b:0}f=w.prototype;f.clone=function(){return new w(this.x,this.y)};function Fb(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1}function Gb(a,b){var c=a.x-b.x;a=a.y-b.y;return Math.sqrt(c*c+a*a)}function Hb(a,b){return new w(a.x-b.x,a.y-b.y)}f.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};f.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; f.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};f.Cj=function(a,b){this.x*=a;this.y*=typeof b==="number"?b:a;return this};function Ib(a,b){this.width=a;this.height=b}function Jb(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1}f=Ib.prototype;f.clone=function(){return new Ib(this.width,this.height)};f.aspectRatio=function(){return this.width/this.height};f.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};f.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; f.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function Kb(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Lb(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1}function Mb(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c}function Nb(){var a=Ob,b;for(b in a)return!1;return!0}function Pb(a,b,c){if(a!==null&&b in a)throw Error('The object already contains the key "'+b+'"');a[b]=c}var Qb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "); function Rb(a,b){for(var c,d,e=1;e=0&&a.indexOf(b,c)==c}function Ub(a){return/^[\s\xa0]*$/.test(a)}var Vb=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]}; function Wb(a){if(!Xb.test(a))return a;a.indexOf("&")!=-1&&(a=a.replace(Yb,"&"));a.indexOf("<")!=-1&&(a=a.replace(Zb,"<"));a.indexOf(">")!=-1&&(a=a.replace($b,">"));a.indexOf('"')!=-1&&(a=a.replace(ac,"""));a.indexOf("'")!=-1&&(a=a.replace(bc,"'"));a.indexOf("\x00")!=-1&&(a=a.replace(cc,"�"));return a}var Yb=/&/g,Zb=//g,ac=/"/g,bc=/'/g,cc=/\x00/g,Xb=/[\x00&<>"']/;function dc(a,b){return a.indexOf(b)!=-1} function ec(a,b){var c=0;a=Vb(String(a)).split(".");b=Vb(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;c==0&&eb?1:0};/* Copyright Google LLC SPDX-License-Identifier: Apache-2.0 */ function gc(a){return{valueOf:a}.valueOf()};var hc=globalThis.trustedTypes,ic=hc,jc;function kc(){var a=null;if(!ic)return a;try{var b=function(c){return c};a=ic.createPolicy("goog#html",{createHTML:b,createScript:b,createScriptURL:b})}catch(c){}return a}function lc(){jc===void 0&&(jc=kc());return jc};function mc(a){this.g=a}mc.prototype.toString=function(){return this.g+""};function nc(a){var b=lc();a=b?b.createScriptURL(a):a;return new mc(a)}function oc(a){if(a instanceof mc)return a.g;throw Error("");};function pc(a){this.g=a}pc.prototype.toString=function(){return this.g};var qc=new pc("about:invalid#zClosurez");function rc(a){if(a instanceof pc)return a.g;throw Error("");};function tc(a){this.Xk=a}function uc(a){return new tc(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})}var vc=[uc("data"),uc("http"),uc("https"),uc("mailto"),uc("ftp"),new tc(function(a){return/^[^:]*([/?#]|$)/.test(a)})];function wc(a){var b=b===void 0?vc:b;a:if(b=b===void 0?vc:b,!(a instanceof pc)){for(var c=0;c1;)d+=c.shift()+e.shift();return d+c.join("%s")}function Vc(a){return a.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")}function Wc(a){return a.replace(/\xa0|[ \t]+/g," ")}function Xc(a){return a.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")}function Yc(a){return encodeURIComponent(String(a))}function $c(a){return decodeURIComponent(a.replace(/\+/g," "))} function ad(a){return a=Wb(a)}function bd(a){return dc(a,"&")?"document"in q?cd(a):dd(a):a}function cd(a){var b={"&":"&","<":"<",">":">",""":'"'};var c=q.document.createElement("div");return a.replace(ed,function(d,e){var g=b[d];if(g)return g;e.charAt(0)=="#"&&(e=Number("0"+e.slice(1)),isNaN(e)||(g=String.fromCharCode(e)));g||(x(c,Ec(d+" ")),g=c.firstChild.nodeValue.slice(0,-1));return b[d]=g})} function dd(a){return a.replace(/&([^;]+);/g,function(b,c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return c.charAt(0)!="#"||(c=Number("0"+c.slice(1)),isNaN(c))?b:String.fromCharCode(c)}})}var ed=/&([^;\s<&]+);?/g;function fd(a,b){a.length>b&&(a=a.substring(0,b-3)+"...");return a}function gd(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#0:!1}function ud(){return td()?!1:sd("Opera")}function vd(){return td()?!1:sd("Trident")||sd("MSIE")}function wd(){return sd("Firefox")||sd("FxiOS")}function xd(){return td()?rd("Chromium"):(sd("Chrome")||sd("CriOS"))&&!(td()?0:sd("Edge"))||sd("Silk")} function yd(){var a=od();if(vd()){var b=/rv: *([\d\.]*)/.exec(a);if(b&&b[1])a=b[1];else{b="";var c=/MSIE +([\d\.]+)/.exec(a);if(c&&c[1])if(a=/Trident\/(\d.\d)/.exec(a),c[1]=="7.0")if(a&&a[1])switch(a[1]){case "4.0":b="8.0";break;case "5.0":b="9.0";break;case "6.0":b="10.0";break;case "7.0":b="11.0"}else b="7.0";else b=c[1];a=b}}else a="";return a} function zd(){if(td()){var a=pd.brands.find(function(b){return b.brand==="Internet Explorer"});if(!a||!a.version)return NaN;a=a.version.split(".")}else{a=yd();if(a==="")return NaN;a=a.split(".")}return a.length===0?NaN:Number(a[0])};function Ad(){return ld?!!pd&&!!pd.platform:!1}function Bd(){return sd("iPhone")&&!sd("iPod")&&!sd("iPad")}function Cd(){return Bd()||sd("iPad")||sd("iPod")}function Dd(){return Ad()?pd.platform==="macOS":sd("Macintosh")};function Ed(a){Ed[" "](a);return a}Ed[" "]=function(){};function Fd(a,b,c,d){d=d?d(b):b;return Object.prototype.hasOwnProperty.call(a,d)?a[d]:a[d]=c(b)};var Gd=ud(),Hd=vd(),Id=sd("Edge"),Jd=sd("Gecko")&&!(dc(od().toLowerCase(),"webkit")&&!sd("Edge"))&&!(sd("Trident")||sd("MSIE"))&&!sd("Edge"),Kd=dc(od().toLowerCase(),"webkit")&&!sd("Edge"),Ld=Kd&&sd("Mobile"),Md=Dd(),Nd=Ad()?pd.platform==="Windows":sd("Windows"),Od=(Ad()?pd.platform==="Linux":sd("Linux"))||(Ad()?pd.platform==="Chrome OS":sd("CrOS")),Pd=Ad()?pd.platform==="Android":sd("Android"),Qd=Bd(),Rd=sd("iPad"),Sd=sd("iPod"),Td=Cd(),Ud; a:{var Vd="",Wd=function(){var a=od();if(Jd)return/rv:([^\);]+)(\)|;)/.exec(a);if(Id)return/Edge\/([\d\.]+)/.exec(a);if(Hd)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(Kd)return/WebKit\/(\S+)/.exec(a);if(Gd)return/(?:Version)[ \/]?(\S+)/.exec(a)}();Wd&&(Vd=Wd?Wd[1]:"");if(Hd){var Xd,Yd=q.document;Xd=Yd?Yd.documentMode:void 0;if(Xd!=null&&Xd>parseFloat(Vd)){Ud=String(Xd);break a}}Ud=Vd}var Zd=Ud,$d={};function ae(a){return Fd($d,a,function(){return ec(Zd,a)>=0})};function be(a,b){if(a instanceof Dc)return a;a=ce(String(a));if(b==null?0:b.qw)a=a.replace(/(^|[\r\n\t ]) /g,"$1 ");if(b==null?0:b.Ih)a=a.replace(/(\r\n|\n|\r)/g,"
");if(b==null?0:b.rw)a=a.replace(/(\t+)/g,'$1');return Ec(a)} function de(a){var b={nonce:Ic("script",document)};if(a instanceof Jc)a=a.g;else throw Error("");a=a.toString();var c=""+a+"\x3c/script>"))}function ce(a){return a.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function ee(a){return fe(a)} function fe(a){var b=be("");return Ec(a.map(function(c){return Gc(be(c))}).join(Gc(b).toString()))}var ge=/^[a-z][a-z\d-]*$/i,he="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),ie="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),je=["action","formaction","href"];function ke(a){if(!ge.test(a))throw Error("");if(he.indexOf(a.toUpperCase())!==-1)throw Error("");} function le(a,b,c){ke(a);var d="<"+a;b&&(d+=me(b));Array.isArray(c)||(c=c===void 0?[]:[c]);ie.indexOf(a.toUpperCase())!==-1?d+=">":(b=ee(c.map(function(e){return e instanceof Dc?e:be(String(e))})),d+=">"+b.toString()+"");return Ec(d)} function me(a){for(var b="",c=Object.keys(a),d=0;d")+1,c.lastIndexOf("2&&nf(a,d,b,2);return d} function nf(a,b,c,d){function e(k){k&&b.appendChild(typeof k==="string"?a.createTextNode(k):k)}for(;d0)e(g);else{a:{if(g&&typeof g.length=="number"){if(Va(g)){var h=typeof g.item=="function"||typeof g.item=="string";break a}if(typeof g==="function"){h=typeof g.item=="function";break a}}h=!1}v(h?vb(g):g,e)}}}function C(a){return mf(document,a)} function mf(a,b){b=String(b);a.contentType==="application/xhtml+xml"&&(b=b.toLowerCase());return a.createElement(b)}function of(a){return document.createTextNode(String(a))}function pf(a,b){a.appendChild(b)}function qf(a,b){nf(Xe(a),a,arguments,1)}function rf(a){for(var b;b=a.firstChild;)a.removeChild(b)}function sf(a,b){b.parentNode&&b.parentNode.insertBefore(a,b)}function tf(a,b){b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling)} function uf(a,b,c){a.insertBefore(b,a.childNodes[c]||null)}function E(a){return a&&a.parentNode?a.parentNode.removeChild(a):null}function vf(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)}function wf(a){return a.children!=void 0?a.children:Array.prototype.filter.call(a.childNodes,function(b){return b.nodeType==1})}function xf(a){return a.firstElementChild!==void 0?a.firstElementChild:yf(a.firstChild,!0)}function yf(a,b){for(;a&&a.nodeType!=1;)a=b?a.nextSibling:a.previousSibling;return a} function zf(a){return Va(a)&&a.nodeType==1}function Af(a,b){if(!a||!b)return!1;if(a.contains&&b.nodeType==1)return a==b||a.contains(b);if(typeof a.compareDocumentPosition!="undefined")return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a}function Xe(a){return a.nodeType==9?a:a.ownerDocument||a.document} function H(a,b){if("textContent"in a)a.textContent=b;else if(a.nodeType==3)a.data=String(b);else if(a.firstChild&&a.firstChild.nodeType==3){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=String(b)}else rf(a),a.appendChild(Xe(a).createTextNode(String(b)))}var Bf={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},Cf={IMG:" ",BR:"\n"};function Df(a){return a.hasAttribute("tabindex")&&Ef(a)}function Ff(a,b){b?a.tabIndex=0:(a.tabIndex=-1,a.removeAttribute("tabIndex"))} function Ef(a){a=a.tabIndex;return typeof a==="number"&&a>=0&&a<32768}function Gf(a){var b=[];Hf(a,b,!0);a=b.join("");a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");a=a.replace(/ +/g," ");a!=" "&&(a=a.replace(/^\s*/,""));return a}function If(a){var b=[];Hf(a,b,!1);return b.join("")} function Hf(a,b,c){if(!(a.nodeName in Bf))if(a.nodeType==3)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in Cf)b.push(Cf[a.nodeName]);else for(a=a.firstChild;a;)Hf(a,b,c),a=a.nextSibling}function Jf(a){return Kf(a,function(b){return b.nodeName=="DIV"&&typeof b.className==="string"&&pb(b.className.split(/\s+/),"slider-box")})}function Kf(a,b){for(var c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null} function Lf(a){try{var b=a&&a.activeElement;return b&&b.nodeName?b:null}catch(c){return null}}function We(a){this.g=a||q.document||document}f=We.prototype;f.V=function(a){return Ye(this.g,a)};f.getElementsByTagName=function(a,b){return(b||this.g).getElementsByTagName(String(a))};f.Ma=function(a,b,c){return lf(this.g,arguments)};function Mf(a,b){return mf(a.g,b)}function Nf(a){return hf(a.g)}f.appendChild=pf;f.Ul=qf;f.Wl=rf;f.bu=sf;f.au=tf;f.Xh=E;f.Mn=wf;f.On=xf;f.eu=zf;f.Vl=Af;function Of(a){a&&typeof a.dispose=="function"&&a.dispose()};function Pf(){this.Ed=this.Ed;this.Ha=this.Ha}Pf.prototype.Ed=!1;Pf.prototype.dispose=function(){this.Ed||(this.Ed=!0,this.qa())};Pf.prototype[Symbol.dispose]=function(){this.dispose()};function Qf(a,b){b=t(Of,b);a.Ed?b():(a.Ha||(a.Ha=[]),a.Ha.push(b))}Pf.prototype.qa=function(){if(this.Ha)for(;this.Ha.length;)this.Ha.shift()()};function Rf(a){this.id=a}Rf.prototype.toString=function(){return this.id};function Sf(a,b){this.type=a instanceof Rf?String(a):a;this.currentTarget=this.target=b;this.defaultPrevented=this.g=!1}Sf.prototype.stopPropagation=function(){this.g=!0};Sf.prototype.preventDefault=function(){this.defaultPrevented=!0};function Tf(a){a.preventDefault()};var Uf=function(){if(!q.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});try{var c=function(){};q.addEventListener("test",c,b);q.removeEventListener("test",c,b)}catch(d){}return a}();function Vf(a,b){Sf.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.tl=!1;this.pointerId=0;this.pointerType="";this.timeStamp=0;this.Mb=null;a&&this.init(a,b)}u(Vf,Sf); Vf.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;b=a.relatedTarget;b||(c=="mouseover"?b=a.fromElement:c=="mouseout"&&(b=a.toElement));this.relatedTarget=b;d?(this.clientX=d.clientX!==void 0?d.clientX:d.pageX,this.clientY=d.clientY!==void 0?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.offsetX=Kd||a.offsetX!==void 0?a.offsetX:a.layerX,this.offsetY= Kd||a.offsetY!==void 0?a.offsetY:a.layerY,this.clientX=a.clientX!==void 0?a.clientX:a.pageX,this.clientY=a.clientY!==void 0?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||(c=="keypress"?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.tl=Md?a.metaKey:a.ctrlKey;this.pointerId=a.pointerId||0;this.pointerType=a.pointerType;this.state= a.state;this.timeStamp=a.timeStamp;this.Mb=a;a.defaultPrevented&&Vf.na.preventDefault.call(this)};function Wf(a){return a.Mb.button==0&&!(Md&&a.ctrlKey)}Vf.prototype.stopPropagation=function(){Vf.na.stopPropagation.call(this);this.Mb.stopPropagation?this.Mb.stopPropagation():this.Mb.cancelBubble=!0};Vf.prototype.preventDefault=function(){Vf.na.preventDefault.call(this);var a=this.Mb;a.preventDefault?a.preventDefault():a.returnValue=!1};var Xf="closure_listenable_"+(Math.random()*1E6|0);function Yf(a){return!(!a||!a[Xf])};var Zf=0;function $f(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.Ni=e;this.key=++Zf;this.Eg=this.wi=!1}function ag(a){a.Eg=!0;a.listener=null;a.proxy=null;a.src=null;a.Ni=null};function bg(a){this.src=a;this.g={};this.i=0}f=bg.prototype;f.add=function(a,b,c,d,e){var g=a.toString();a=this.g[g];a||(a=this.g[g]=[],this.i++);var h=cg(a,b,d,e);h>-1?(b=a[h],c||(b.wi=!1)):(b=new $f(b,this.src,g,!!d,e),b.wi=c,a.push(b));return b};f.remove=function(a,b,c,d){a=a.toString();if(!(a in this.g))return!1;var e=this.g[a];b=cg(e,b,c,d);return b>-1?(ag(e[b]),sb(e,b),e.length==0&&(delete this.g[a],this.i--),!0):!1}; function dg(a,b){var c=b.type;c in a.g&&rb(a.g[c],b)&&(ag(b),a.g[c].length==0&&(delete a.g[c],a.i--))}f.xg=ba(1);f.oh=function(a,b,c,d){a=this.g[a.toString()];var e=-1;a&&(e=cg(a,b,c,d));return e>-1?a[e]:null};f.hasListener=function(a,b){var c=a!==void 0,d=c?a.toString():"",e=b!==void 0;return Lb(this.g,function(g){for(var h=0;h>>0);function ig(a){if(typeof a==="function")return a;a[rg]||(a[rg]=function(b){return a.handleEvent(b)});return a[rg]};function sg(a){Pf.call(this);this.s=a;this.j={}}u(sg,Pf);var tg=[];f=sg.prototype;f.ha=function(a,b,c,d){return ug(this,a,b,c,d)};function vg(a,b,c,d,e){ug(a,b,c,d,!1,e)}function ug(a,b,c,d,e,g){Array.isArray(c)||(c&&(tg[0]=c.toString()),c=tg);for(var h=0;h=a.left&&b.right<=a.right&&b.top>=a.top&&b.bottom<=a.bottom:b.x>=a.left&&b.x<=a.right&&b.y>=a.top&&b.y<=a.bottom:!1}function Bg(a,b){var c=b.xa.right?b.x-a.right:0;a=b.ya.bottom?b.y-a.bottom:0;return Math.sqrt(c*c+a*a)} f.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};f.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};f.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};function Cg(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}f=Cg.prototype;f.clone=function(){return new Cg(this.left,this.top,this.width,this.height)};function Dg(a){return new yg(a.top,a.left+a.width,a.top+a.height,a.left)}function Eg(a){return new Cg(a.left,a.top,a.right-a.left,a.bottom-a.top)} function Fg(a,b){var c=Math.max(a.left,b.left),d=Math.min(a.left+a.width,b.left+b.width);if(c<=d){var e=Math.max(a.top,b.top);b=Math.min(a.top+a.height,b.top+b.height);if(e<=b)return a.left=c,a.top=e,a.width=d-c,a.height=b-e,!0}return!1}function Gg(a,b){var c=Math.max(a.left,b.left),d=Math.min(a.left+a.width,b.left+b.width);if(c<=d){var e=Math.max(a.top,b.top);a=Math.min(a.top+a.height,b.top+b.height);if(e<=a)return new Cg(c,e,d-c,a-e)}return null} function Hg(a,b){return a.left<=b.left+b.width&&b.left<=a.left+a.width&&a.top<=b.top+b.height&&b.top<=a.top+a.height}function Ig(a,b){if(!a||!b)return null;a=new Cg(a.left,a.top,a.width,a.height);var c=Math.max(a.left+a.width,b.left+b.width),d=Math.max(a.top+a.height,b.top+b.height);a.left=Math.min(a.left,b.left);a.top=Math.min(a.top,b.top);a.width=c-a.left;a.height=d-a.top;return a}f.getSize=function(){return new Ib(this.width,this.height)}; f.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};f.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};f.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function K(a,b,c){if(typeof b==="string")(b=Jg(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],g=Jg(c,d);g&&(c.style[g]=e)}}var Kg={};function Jg(a,b){var c=Kg[b];if(!c){var d=jd(b);c=d;a.style[d]===void 0&&(d=(Kd?"Webkit":Jd?"Moz":null)+kd(d),a.style[d]!==void 0&&(c=d));Kg[b]=c}return c}function Lg(a,b){var c=a.style[jd(b)];return typeof c!=="undefined"?c:a.style[Jg(a,b)]||""} function Mg(a,b){var c=Xe(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""}function Ng(a,b){return Mg(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}function Og(a){return Ng(a,"position")}function Pg(a,b,c){if(b instanceof w){var d=b.x;b=b.y}else d=b,b=c;a.style.left=Qg(d,!1);a.style.top=Qg(b,!1)}function Rg(a){return new w(a.offsetLeft,a.offsetTop)} function Sg(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}}function Tg(a){var b=Xe(a),c=Ng(a,"position"),d=c=="fixed"||c=="absolute";for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(a.nodeType==11&&a.host&&(a=a.host),c=Ng(a,"position"),d=d&&c=="static"&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||c=="fixed"||c=="absolute"||c=="relative"))return a;return null} function Ug(a){for(var b=new yg(0,Infinity,Infinity,0),c=Ve(a),d=c.g.body,e=c.g.documentElement,g=jf(c.g);a=Tg(a);)if((!Kd||a.clientHeight!=0||a!=d)&&a!=d&&a!=e&&Ng(a,"overflow")!="visible"){var h=Vg(a),k=new w(a.clientLeft,a.clientTop);h.x+=k.x;h.y+=k.y;b.top=Math.max(b.top,h.y);b.right=Math.min(b.right,h.x+a.clientWidth);b.bottom=Math.min(b.bottom,h.y+a.clientHeight);b.left=Math.max(b.left,h.x)}d=g.scrollLeft;g=g.scrollTop;b.left=Math.max(b.left,d);b.top=Math.max(b.top,g);c=gf(c.g.defaultView); b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,g+c.height);return b.top>=0&&b.left>=0&&b.bottom>b.top&&b.right>b.left?b:null} function Wg(a,b){b=b||jf(document);var c=b||jf(document);var d=Vg(a),e=Vg(c),g=Xg(c);if(c==jf(document)){var h=d.x-c.scrollLeft;d=d.y-c.scrollTop}else h=d.x-e.x-g.left,d=d.y-e.y-g.top;a=Yg(a);e=c.clientHeight-a.height;g=c.scrollLeft;var k=c.scrollTop;g+=Math.min(h,Math.max(h-(c.clientWidth-a.width),0));k+=Math.min(d,Math.max(d-e,0));c=new w(g,k);b.scrollLeft=c.x;b.scrollTop=c.y} function Vg(a){var b=Xe(a),c=new w(0,0);if(a==(b?Xe(b):document).documentElement)return c;a=Sg(a);b=Nf(Ve(b));c.x=a.left+b.x;c.y=a.top+b.y;return c}function Zg(a,b){a=$g(a);b=$g(b);return new w(a.x-b.x,a.y-b.y)}function ah(a){a=Sg(a);return new w(a.left,a.top)}function $g(a){if(a.nodeType==1)return ah(a);a=a.changedTouches?a.changedTouches[0]:a;return new w(a.clientX,a.clientY)}function bh(a,b,c){var d=Vg(a);b instanceof w&&(c=b.y,b=b.x);Pg(a,a.offsetLeft+(b-d.x),a.offsetTop+(Number(c)-d.y))} function L(a,b,c){if(b instanceof Ib)c=b.height,b=b.width;else if(c==void 0)throw Error("missing height argument");ch(a,b);a.style.height=Qg(c,!0)}function Qg(a,b){typeof a=="number"&&(a=(b?Math.round(a):a)+"px");return a}function ch(a,b){a.style.width=Qg(b,!0)}function dh(a){return M(a)} function M(a){var b=Yg;if(Ng(a,"display")!="none")return b(a);var c=a.style,d=c.display,e=c.visibility,g=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=g;c.visibility=e;return a}function Yg(a){var b=a.offsetWidth,c=a.offsetHeight,d=Kd&&!b&&!c;return(b===void 0||d)&&a.getBoundingClientRect?(a=Sg(a),new Ib(a.right-a.left,a.bottom-a.top)):new Ib(b,c)}function eh(a){var b=Vg(a);a=M(a);return new Cg(b.x,b.y,a.width,a.height)} function fh(a,b){a=a.style;"opacity"in a?a.opacity=b:"MozOpacity"in a?a.MozOpacity=b:"filter"in a&&(a.filter=b===""?"":"alpha(opacity="+Number(b)*100+")")}function N(a,b){a.style.display=b?"":"none"}function gh(a){return a.style.display!="none"}function hh(a){return"rtl"==Ng(a,"direction")}var ih=Jd?"MozUserSelect":Kd||Id?"WebkitUserSelect":null; function jh(a,b,c){c=c?null:a.getElementsByTagName("*");if(ih&&(b=b?"none":"",a.style&&(a.style[ih]=b),c))for(var d=0;a=c[d];d++)a.style&&(a.style[ih]=b)}function kh(a,b){lh(a,b,"border-box")} function mh(a){var b=new Ib(a.offsetWidth,a.offsetHeight);var c=Mg(a,"paddingLeft");var d=Mg(a,"paddingRight"),e=Mg(a,"paddingTop"),g=Mg(a,"paddingBottom");c=new yg(parseFloat(e),parseFloat(d),parseFloat(g),parseFloat(c));a=Xg(a);return new Ib(b.width-a.left-c.left-c.right-a.right,b.height-a.top-c.top-c.bottom-a.bottom)}function lh(a,b,c){a=a.style;Jd?a.MozBoxSizing=c:Kd?a.WebkitBoxSizing=c:a.boxSizing=c;a.width=Math.max(b.width,0)+"px";a.height=Math.max(b.height,0)+"px"} function Xg(a){var b=Mg(a,"borderLeftWidth"),c=Mg(a,"borderRightWidth"),d=Mg(a,"borderTopWidth");a=Mg(a,"borderBottomWidth");return new yg(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))};function nh(a,b){a=oh(a);var c;if(c=b){var d,e;c=Math.random()<((e=(d=b.xw)!=null?d:Oe[b.ij[0]])!=null?e:0)}if(c&&window.SAFEVALUES_REPORTING!==!1&&"DocumentFragment"in window){var g,h;Math.random()<((h=(g=b.jw)!=null?g:Pe[b.ij[0]])!=null?h:0)&&Re(b,"HEARTBEAT");Qe(a,b)||be(a).toString()!==a&&Re(b,"H_ESCAPE")}return Ec(a)}function oh(a){return a===null?"null":a===void 0?"undefined":a};function ph(a){return typeof a.className=="string"?a.className:a.getAttribute&&a.getAttribute("class")||""}function qh(a){return a.classList?a.classList:ph(a).match(/\S+/g)||[]}function rh(a,b){typeof a.className=="string"?a.className=b:a.setAttribute&&a.setAttribute("class",b)}function sh(a,b){return a.classList?a.classList.contains(b):pb(qh(a),b)}function O(a,b){if(a.classList)a.classList.add(b);else if(!sh(a,b)){var c=ph(a);rh(a,c+(c.length>0?" "+b:b))}} function th(a,b){if(a.classList)Array.prototype.forEach.call(b,function(e){O(a,e)});else{var c={};Array.prototype.forEach.call(qh(a),function(e){c[e]=!0});Array.prototype.forEach.call(b,function(e){c[e]=!0});b="";for(var d in c)b+=b.length>0?" "+d:d;rh(a,b)}}function uh(a,b){a.classList?a.classList.remove(b):sh(a,b)&&rh(a,Array.prototype.filter.call(qh(a),function(c){return c!=b}).join(" "))} function vh(a,b){a.classList?Array.prototype.forEach.call(b,function(c){uh(a,c)}):rh(a,Array.prototype.filter.call(qh(a),function(c){return!pb(b,c)}).join(" "))}function P(a,b,c){c?O(a,b):uh(a,b)};function Q(){Pf.call(this);this.Fd=new bg(this);this.Or=this;this.ql=null}u(Q,Pf);Q.prototype[Xf]=!0;f=Q.prototype;f.yg=function(){return this.ql};f.Gg=function(a){this.ql=a};f.addEventListener=function(a,b,c,d){I(this,a,b,c,d)};f.removeEventListener=function(a,b,c,d){og(this,a,b,c,d)}; f.dispatchEvent=function(a){var b,c=this.yg();if(c)for(b=[];c;c=c.yg())b.push(c);c=this.Or;var d=a.type||a;if(typeof a==="string")a=new Sf(a,c);else if(a instanceof Sf)a.target=a.target||c;else{var e=a;a=new Sf(d,c);Rb(a,e)}e=!0;var g;if(b)for(g=b.length-1;!a.g&&g>=0;g--){var h=a.currentTarget=b[g];e=wh(h,d,!0,a)&&e}a.g||(h=a.currentTarget=c,e=wh(h,d,!0,a)&&e,a.g||(e=wh(h,d,!1,a)&&e));if(b)for(g=0;!a.g&&g=112&&a.keyCode<=123)return!1;if(Bh(a.keyCode))return!0;switch(a.keyCode){case 18:case 20:case 93:case 17:case 40:case 35:case 27:case 36:case 45:case 37:case 224:case 91:case 144:case 12:case 34:case 33:case 19:case 255:case 44:case 39:case 145:case 16:case 38:case 252:case 224:case 92:return!1;case 0:return!Jd;default:return a.keyCode<166||a.keyCode>183}} function Ch(a,b,c,d,e,g){if(Md&&e)return Bh(a);if(e&&!d)return!1;if(!Jd){typeof b==="number"&&(b=Dh(b));var h=b==17||b==18||Md&&b==91;if((!c||Md)&&h||Md&&b==16&&(d||g))return!1}if(Kd&&d&&c)switch(a){case 220:case 219:case 221:case 192:case 186:case 189:case 187:case 188:case 190:case 191:case 192:case 222:return!1}switch(a){case 13:return Jd?g||e?!1:!(c&&d):!0;case 27:return!Kd&&!Jd}return Jd&&(d||e||g)?!1:Bh(a)} function Bh(a){if(a>=48&&a<=57||a>=96&&a<=106||a>=65&&a<=90||Kd&&a==0)return!0;switch(a){case 32:case 43:case 63:case 64:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:case 163:case 58:return!0;case 173:case 171:return Jd;default:return!1}}function Dh(a){if(Jd)a=Eh(a);else if(Md&&Kd)switch(a){case 93:a=91}return a} function Eh(a){switch(a){case 61:return 187;case 59:return 186;case 173:return 189;case 224:return 91;case 0:return 224;default:return a}};function Fh(a){if(a.Cc&&typeof a.Cc=="function")return a.Cc();if(typeof Map!=="undefined"&&a instanceof Map||typeof Set!=="undefined"&&a instanceof Set)return Array.from(a.values());if(typeof a==="string")return a.split("");if(Ua(a)){for(var b=[],c=a.length,d=0;d=0){var g=a[c].substring(0,d);e=a[c].substring(d+1)}else g=a[c];b(g,e?$c(e):"")}}} function Kh(a,b,c){c=c!=null?"="+Yc(c):"";if(b+=c){c=a.indexOf("#");c<0&&(c=a.length);var d=a.indexOf("?");if(d<0||d>c){d=c;var e=""}else e=a.substring(d+1,c);a=[a.slice(0,d),e,a.slice(c)];c=a[1];a[1]=b?c?c+"&"+b:b:c;a=a[0]+(a[1]?"?"+a[1]:"")+a[2]}return a}function Lh(a,b,c,d){for(var e=c.length;(b=a.indexOf(c,b))>=0&&bc)e=c;d+=a.length+1;return $c(b.slice(d,e!==-1?e:0))}var Oh=/[?&]($|#)/;function R(a,b){this.g=this.s=this.l="";this.U=null;this.O=this.j="";this.o=!1;var c;a instanceof R?(this.o=b!==void 0?b:a.o,Ph(this,a.l),this.s=a.s,this.g=a.g,Qh(this,a.U),Rh(this,a.j),Sh(this,a.i.clone()),Th(this,a.O)):a&&(c=String(a).match(Ih))?(this.o=!!b,Ph(this,c[1]||"",!0),this.s=Uh(c[2]||""),this.g=Uh(c[3]||"",!0),Qh(this,c[4]),Rh(this,c[5]||"",!0),Sh(this,c[6]||"",!0),Th(this,c[7]||"",!0)):(this.o=!!b,this.i=new Vh(null,this.o))} R.prototype.toString=function(){var a=[],b=this.l;b&&a.push(Wh(b,Xh,!0),":");var c=this.g;if(c||b=="file")a.push("//"),(b=this.s)&&a.push(Wh(b,Xh,!0),"@"),a.push(Yh(Yc(c))),c=this.U,c!=null&&a.push(":",String(c));if(c=this.j)this.g&&c.charAt(0)!="/"&&a.push("/"),a.push(Wh(c,c.charAt(0)=="/"?Zh:$h,!0));(c=this.i.toString())&&a.push("?",c);(c=this.O)&&a.push("#",Wh(c,ai));return a.join("")}; R.prototype.resolve=function(a){var b=this.clone(),c=!!a.l;c?Ph(b,a.l):c=!!a.s;c?b.s=a.s:c=!!a.g;c?b.g=a.g:c=a.U!=null;var d=a.j;if(c)Qh(b,a.U);else if(c=!!a.j){if(d.charAt(0)!="/")if(this.g&&!this.j)d="/"+d;else{var e=b.j.lastIndexOf("/");e!=-1&&(d=b.j.slice(0,e+1)+d)}e=d;if(e==".."||e==".")d="";else if(dc(e,"./")||dc(e,"/.")){d=e.lastIndexOf("/",0)==0;e=e.split("/");for(var g=[],h=0;h1||g.length==1&&g[0]!="")&&g.pop(), d&&h==e.length&&g.push("")):(g.push(k),d=!0)}d=g.join("/")}else d=e}c?Rh(b,d):c=a.i.toString()!=="";c?Sh(b,a.i.clone()):c=!!a.O;c&&Th(b,a.O);return b};R.prototype.clone=function(){return new R(this)};function Ph(a,b,c){a.l=c?Uh(b,!0):b;a.l&&(a.l=a.l.replace(/:$/,""))}function Qh(a,b){if(b){b=Number(b);if(isNaN(b)||b<0)throw Error("Bad port number "+b);a.U=b}else a.U=null}function Rh(a,b,c){a.j=c?Uh(b,!0):b} function Sh(a,b,c){b instanceof Vh?(a.i=b,bi(a.i,a.o)):(c||(b=Wh(b,ci)),a.i=new Vh(b,a.o))}R.prototype.getQuery=function(){return this.i.toString()};function S(a,b,c){a.i.set(b,c);return a}function T(a,b){return a.i.get(b)}function di(a){return a.O}function Th(a,b,c){a.O=c?Uh(b):b;return a}function ei(a,b){a.i.remove(b);return a}function Uh(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""} function Wh(a,b,c){return typeof a==="string"?(a=encodeURI(a).replace(b,fi),c&&(a=Yh(a)),a):null}function fi(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}function Yh(a){return a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")}var Xh=/[#\/\?@]/g,$h=/[#\?:]/g,Zh=/[#\?]/g,ci=/[#\?@]/g,ai=/#/g;function Vh(a,b){this.i=this.g=null;this.j=a||null;this.l=!!b}function gi(a){a.g||(a.g=new Map,a.i=0,a.j&&Jh(a.j,function(b,c){a.add($c(b),c)}))} function hi(a){var b=Gh(a);if(typeof b=="undefined")throw Error("Keys are undefined");var c=new Vh(null);a=Fh(a);for(var d=0;d0?String(a[0]):b}; function ii(a,b,c){a.remove(b);c.length>0&&(a.j=null,a.g.set(ji(a,b),vb(c)),a.i+=c.length)}f.toString=function(){if(this.j)return this.j;if(!this.g)return"";for(var a=[],b=Array.from(this.g.keys()),c=0;c0&&(this.l=setTimeout(this.Kg.bind(this),this.U)),this.o=!0,this.g.send(a),this.o=!1}catch(h){ri(this)}};f.Kg=function(){typeof Qa!="undefined"&&this.g&&(this.dispatchEvent("timeout"),this.abort(8))};function ri(a){a.i=!1;a.g&&(a.j=!0,a.g.abort(),a.j=!1);si(a);ti(a)} function si(a){a.s||(a.s=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))}f.abort=function(){this.g&&this.i&&(this.i=!1,this.j=!0,this.g.abort(),this.j=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),ti(this))};f.qa=function(){this.g&&(this.i&&(this.i=!1,this.j=!0,this.g.abort(),this.j=!1),ti(this,!0));mi.na.qa.call(this)};f.Ko=function(){this.Ed||(this.O||this.o||this.j?ui(this):this.Hu())};f.Hu=function(){ui(this)}; function ui(a){if(a.i&&typeof Qa!="undefined")if(a.o&&(a.g?a.g.readyState:0)==4)setTimeout(a.Ko.bind(a),0);else if(a.dispatchEvent("readystatechange"),(a.g?a.g.readyState:0)==4){a.i=!1;try{vi(a)?(a.dispatchEvent("complete"),a.dispatchEvent("success")):si(a)}finally{ti(a)}}}function ti(a,b){if(a.g){a.l&&(clearTimeout(a.l),a.l=null);var c=a.g;a.g=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=null}catch(d){}}}f.isActive=function(){return!!this.g}; function vi(a){var b=wi(a);a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var c=!0;break a;default:c=!1}if(!c){if(b=b===0)a=String(a.Xi).match(Ih)[1]||null,!a&&q.self&&q.self.location&&(a=q.self.location.protocol.slice(0,-1)),b=!ni.test(a?a.toLowerCase():"");c=b}return c}function wi(a){try{return(a.g?a.g.readyState:0)>2?a.g.status:-1}catch(b){return-1}}function xi(a){try{return a.g?a.g.responseText:""}catch(b){return""}} function yi(a,b){if(a.g){a=a.g.responseText;b&&a.indexOf(b)==0&&(a=a.substring(b.length));a:{b=a;if(q.JSON)try{var c=q.JSON.parse(b);break a}catch(d){}c=li(b)}return c}};function zi(){}f=zi.prototype;f.kb=function(a){this.ob=a.width;this.wb=a.height};f.getSize=function(){return new Ib(this.ob,this.wb)};f.Ud=function(){return this.O};f.ad=function(){return this.s};f.qb=function(){return this.ob};f.Ab=function(){return this.wb};f.Zc=function(){return new w(this.O,this.s)};function Ai(a){return new Cg(a.O,a.s,a.ob,a.wb)};function Bi(){return!0}function Ci(){}function Di(a,b){function c(){}c.prototype=a.prototype;var d=new c;a.apply(d,Array.prototype.slice.call(arguments,1));return d};function Ei(){this.g=[]}Ei.prototype.Na=function(a){this.g.push(a)};Ei.prototype.getSize=function(){var a=this.qb(),b=this.Ab();return a===null||b===null?null:new Ib(a,b)};Ei.prototype.Hd=function(a){return this.g.filter(a||Bi)};function Fi(a,b){for(var c=0;c=b})}function Hi(a,b){return a.g.find(function(c){return Ag(Dg(Ai(c)),b)})};function Ii(){this.g=[];this.cells=[]}u(Ii,Ei);f=Ii.prototype;f.Xl=0;f.Zh=0;f.marginRight=0;f.Yh=0;f.Rk=0;f.xj=0;f.Dp=!1;f.qb=function(){return this.ob};f.Ab=function(){return this.wb}; function Ji(a){a.O();for(var b=a.Xl,c={},d=0;d0){this.i--;var a=this.g;this.g=a.next;a.next=null}else a=this.j();return a};function Qi(a,b){a.l(b);a.i<100&&(a.i++,b.next=a.g,a.g=b)};function Ri(a){q.setTimeout(function(){throw a;},0)};function Si(){this.i=this.g=null}Si.prototype.add=function(a,b){var c=Ti.get();c.set(a,b);this.i?this.i.next=c:this.g=c;this.i=c};Si.prototype.remove=function(){var a=null;this.g&&(a=this.g,this.g=this.g.next,this.g||(this.i=null),a.next=null);return a};var Ti=new Pi(function(){return new Ui},function(a){return a.reset()});function Ui(){this.next=this.g=this.ve=null}Ui.prototype.set=function(a,b){this.ve=a;this.g=b;this.next=null};Ui.prototype.reset=function(){this.next=this.g=this.ve=null};var Vi,Wi=!1,Xi=new Si;function Yi(a,b){Vi||Zi();Wi||(Vi(),Wi=!0);Xi.add(a,b)}function Zi(){var a=Promise.resolve(void 0);Vi=function(){a.then($i)}}function $i(){for(var a;a=Xi.remove();){try{a.ve.call(a.g)}catch(b){Ri(b)}Qi(Ti,a)}Wi=!1};function aj(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};function bj(a){this.g=0;this.O=void 0;this.l=this.i=this.j=null;this.o=this.s=!1;if(a!=Ci)try{var b=this;a.call(void 0,function(c){cj(b,2,c)},function(c){cj(b,3,c)})}catch(c){cj(this,3,c)}}function dj(){this.next=this.context=this.i=this.j=this.g=null;this.l=!1}dj.prototype.reset=function(){this.context=this.i=this.j=this.g=null;this.l=!1};var ej=new Pi(function(){return new dj},function(a){a.reset()});function fj(a,b,c){var d=ej.get();d.j=a;d.i=b;d.context=c;return d} function gj(){var a,b,c=new bj(function(d,e){a=d;b=e});return new hj(c,a,b)}bj.prototype.then=function(a,b,c){return ij(this,db(typeof a==="function"?a:null),db(typeof b==="function"?b:null),c)};bj.prototype.$goog_Thenable=!0;bj.prototype.cancel=function(a){if(this.g==0){var b=new jj(a);Yi(function(){kj(this,b)},this)}}; function kj(a,b){if(a.g==0)if(a.j){var c=a.j;if(c.i){for(var d=0,e=null,g=null,h=c.i;h&&(h.l||(d++,h.g==a&&(e=h),!(e&&d>1)));h=h.next)e||(g=h);e&&(c.g==0&&d==1?kj(c,b):(g?(d=g,d.next==c.l&&(c.l=d),d.next=d.next.next):lj(c),mj(c,e,3,b)))}a.j=null}else cj(a,3,b)}function nj(a,b){a.i||a.g!=2&&a.g!=3||oj(a);a.l?a.l.next=b:a.i=b;a.l=b} function ij(a,b,c,d){var e=fj(null,null,null);e.g=new bj(function(g,h){e.j=b?function(k){try{var l=b.call(d,k);g(l)}catch(m){h(m)}}:g;e.i=c?function(k){try{var l=c.call(d,k);l===void 0&&k instanceof jj?h(k):g(l)}catch(m){h(m)}}:h});e.g.j=a;nj(a,e);return e.g}bj.prototype.ka=function(a){this.g=0;cj(this,2,a)};bj.prototype.ma=function(a){this.g=0;cj(this,3,a)}; function cj(a,b,c){if(a.g==0){a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself"));a.g=1;a:{var d=c,e=a.ka,g=a.ma;if(d instanceof bj){nj(d,fj(e||Ci,g||null,a));var h=!0}else if(aj(d))d.then(e,g,a),h=!0;else{if(Va(d))try{var k=d.then;if(typeof k==="function"){pj(d,k,e,g,a);h=!0;break a}}catch(l){g.call(a,l);h=!0;break a}h=!1}}h||(a.O=c,a.g=b,a.j=null,oj(a),b!=3||c instanceof jj||qj(a,c))}} function pj(a,b,c,d,e){function g(l){k||(k=!0,d.call(e,l))}function h(l){k||(k=!0,c.call(e,l))}var k=!1;try{b.call(a,h,g)}catch(l){g(l)}}function oj(a){a.s||(a.s=!0,Yi(a.U,a))}function lj(a){var b=null;a.i&&(b=a.i,a.i=b.next,b.next=null);a.i||(a.l=null);return b}bj.prototype.U=function(){for(var a;a=lj(this);)mj(this,a,this.g,this.O);this.s=!1}; function mj(a,b,c,d){if(c==3&&b.i&&!b.l)for(;a&&a.o;a=a.j)a.o=!1;if(b.g)b.g.j=null,rj(b,c,d);else try{b.l?b.j.call(b.context):rj(b,c,d)}catch(e){sj.call(null,e)}Qi(ej,b)}function rj(a,b,c){b==2?a.j.call(a.context,c):a.i&&a.i.call(a.context,c)}function qj(a,b){a.o=!0;Yi(function(){a.o&&sj.call(null,b)})}var sj=Ri;function jj(a){eb.call(this,a)}u(jj,eb);jj.prototype.name="cancel";function hj(a,b,c){this.promise=a;this.resolve=b;this.reject=c};function tj(a,b){Q.call(this);this.i=a||1;this.g=b||q;this.j=r(this.zv,this);this.l=bb()}u(tj,Q);f=tj.prototype;f.enabled=!1;f.Qa=null;function uj(a,b){a.i=b;a.Qa&&a.enabled?(a.stop(),a.start()):a.Qa&&a.stop()}f.zv=function(){if(this.enabled){var a=bb()-this.l;a>0&&a2147483647?-1:q.setTimeout(a,b||0)} function vj(a){q.clearTimeout(a)};function wj(){return document.body.dir=="rtl"}function xj(a,b,c){a=a.style;Hd?a.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+b+'", sizingMethod="scale")':(a.backgroundImage="url("+b+")",a.backgroundRepeat=c||"no-repeat")}var yj={border:!0,padding:!0,margin:!0},zj=["Top","Bottom","Right","Left"],Aj={color:"#0000cc",textDecoration:"underline"}; function Bj(a){var b={backgroundColor:"transparent",border:"0px",color:"#000",fontFamily:"Arial, sans-serif",fontSize:"13.28px",fontWeight:"normal",lineHeight:"1",margin:"0px",padding:"0px",textAlign:"left",textDecoration:"none",verticalAlign:"middle"};v(a,function(c){Kb(b,t(Cj,c))})}function Cj(a,b,c){var d=Lg(a,c)=="";yj[c]?v(zj,function(e){d&&Lg(a,c+e)==""&&K(a,c+e,b)}):d&&(a.tagName.toLowerCase()=="a"&&Aj[c]?K(a,c,Aj[c]):K(a,c,b))} function V(a,b){var c={img:!0,div:!0,table:!0,td:!0,span:!0,a:!0},d=[];c[a.tagName.toLowerCase()]&&d.push(a);b||Kb(c,function(e,g){wb(d,vb(a.getElementsByTagName(g)))});Bj(d)};function Dj(a,b,c){Pf.call(this);this.Dh=a;this.j=b||0;this.g=c;this.i=r(this.Op,this)}u(Dj,Pf);f=Dj.prototype;f.rb=0;f.qa=function(){Dj.na.qa.call(this);this.stop();delete this.Dh;delete this.g};f.start=function(a){this.stop();this.rb=U(this.i,a!==void 0?a:this.j)};f.stop=function(){this.isActive()&&vj(this.rb);this.rb=0};f.isActive=function(){return this.rb!=0};f.Op=function(){this.rb=0;this.Dh&&this.Dh.call(this.g)};var Ob={},Ej=null;function Fj(a){a=Wa(a);delete Ob[a];Nb()&&Ej&&Ej.stop()}function Gj(){Ej||(Ej=new Dj(function(){Hj()},20));var a=Ej;a.isActive()||a.start()}function Hj(){var a=bb();Kb(Ob,function(b){Ij(b,a)});Nb()||Gj()};function Jj(){Q.call(this);this.Dc=0;this.endTime=this.startTime=null}u(Jj,Q);Jj.prototype.hf=function(){this.ld("begin")};Jj.prototype.Ee=function(){this.ld("end")};Jj.prototype.ld=function(a){this.dispatchEvent(a)};function Kj(a,b,c,d){Jj.call(this);if(!Array.isArray(a)||!Array.isArray(b))throw Error("Start and end parameters must be arrays");if(a.length!=b.length)throw Error("Start and end points must be the same length");this.i=a;this.o=b;this.duration=c;this.l=d;this.coords=[];this.progress=0}u(Kj,Jj);f=Kj.prototype; f.play=function(a){if(a||this.Dc==0)this.progress=0,this.coords=this.i;else if(this.Dc==1)return!1;Fj(this);this.startTime=a=bb();this.Dc==-1&&(this.startTime-=this.duration*this.progress);this.endTime=this.startTime+this.duration;this.progress||this.hf();this.ld("play");this.Dc==-1&&this.ld("resume");this.Dc=1;var b=Wa(this);b in Ob||(Ob[b]=this);Gj();Ij(this,a);return!0};f.stop=function(a){Fj(this);this.Dc=0;a&&(this.progress=1);Lj(this,this.progress);this.ld("stop");this.Ee()}; f.qa=function(){this.Dc==0||this.stop(!1);this.ld("destroy");Kj.na.qa.call(this)};function Ij(a,b){b1&&(a.progress=1);Lj(a,a.progress);a.progress==1?(a.Dc=0,Fj(a),a.ld("finish"),a.Ee()):a.Dc==1&&a.nl()}function Lj(a,b){typeof a.l==="function"&&(b=a.l(b));a.coords=Array(a.i.length);for(var c=0;cthis.ka)if(this.dispatchEvent(new ok("start",this,a.clientX,a.clientY,a)))this.i=!0;else{this.Ed||this.Ai(a);return}}c=rk(this,b,c);b=c.x;c=c.y;this.i&&this.dispatchEvent(new ok("beforedrag",this,a.clientX,a.clientY,a,b,c))&&(sk(this,a,b,c),a.preventDefault())}}; function rk(a,b,c){var d=Nf(Ve(a.j));b+=d.x-a.oa.x;c+=d.y-a.oa.y;a.oa=d;a.deltaX+=b;a.deltaY+=c;return new w(pk(a,a.deltaX),qk(a,a.deltaY))}f.Iu=function(a){var b=rk(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;sk(this,a,b.x,b.y)};function sk(a,b,c,d){a.wk(c,d);a.dispatchEvent(new ok("drag",a,b.clientX,b.clientY,b,c,d))}function pk(a,b){var c=a.ma;a=isNaN(c.left)?null:c.left;c=isNaN(c.width)?0:c.width;return Math.min(a!=null?a+c:Infinity,Math.max(a!=null?a:-Infinity,b))} function qk(a,b){var c=a.ma;a=isNaN(c.top)?null:c.top;c=isNaN(c.height)?0:c.height;return Math.min(a!=null?a+c:Infinity,Math.max(a!=null?a:-Infinity,b))}f.wk=function(a,b){this.target.style.left=a+"px";this.target.style.top=b+"px"};function ok(a,b,c,d,e,g,h){Sf.call(this,a);this.clientX=c;this.clientY=d;this.i=e;this.left=g!==void 0?g:b.deltaX;this.top=h!==void 0?h:b.deltaY}u(ok,Sf);function tk(a){this.xd=new Map;var b=arguments.length;if(b>1){if(b%2)throw Error("Uneven number of arguments");for(var c=0;c0?(d.Xc||(d.Xc=[]),d.Xc.length=0,d.Xc.push.apply(d.Xc,arguments),d.Xc.push(d.state)):d.Xc&&d.Xc.length!=0?(d.Xc[0]=d.state,d.Xc.length=1):d.Xc=[d.state];d.Ti||(d.Ti=!0,uk[vk].push(d));wk||(wk=!0,window.requestAnimationFrame(zk))}} function zk(){wk=!1;var a=uk[vk],b=a.length;vk=(vk+1)%2;for(var c,d=0;dNk(this))throw Error("Child component index out of bounds");this.ka&&this.O||(this.ka={},this.O=[]);if(a.getParent()==this){var d=this.ka,e=a.getId();d[e]=a;rb(this.O,a)}else Pb(this.ka,a.getId(),a);a.ae(this);xb(this.O,b,0,a);a.Ra&&this.Ra&&a.getParent()==this?(c=this.Gb(),(c.childNodes[b]||null)!=a.V()&&(a.V().parentElement==c&&c.removeChild(a.V()),b=c.childNodes[b]||null,c.insertBefore(a.V(),b))):c? (this.ua||this.Oa(),b=Ok(this,b+1),Kk(a,this.Gb(),b?b.ua:null)):this.Ra&&!a.Ra&&a.ua&&a.ua.parentNode&&a.ua.parentNode.nodeType==1&&a.Ia()};f.Gb=function(){return this.ua};function Pk(a){a.Ib==null&&(a.Ib=hh(a.Ra?a.ua:a.g.g.body));return a.Ib}function Nk(a){return a.O?a.O.length:0}function Jk(a,b){a.ka&&b?(a=a.ka,b=(a!==null&&b in a?a[b]:void 0)||null):b=null;return b}function Ok(a,b){return a.O?a.O[b]||null:null}function Mk(a,b,c){a.O&&a.O.forEach(b,c)} function Qk(a,b){return a.O&&b?a.O.indexOf(b):-1}f.removeChild=function(a,b){if(a){var c=typeof a==="string"?a:a.getId();a=Jk(this,c);if(c&&a){var d=this.ka;c in d&&delete d[c];rb(this.O,a);b&&(a.hc(),a.ua&&E(a.ua));a.ae(null)}}if(!a)throw Error("Child is not in parent component");return a};function Rk(a,b){this.ua=a;this.i=b};function Sk(a,b){Q.call(this);this.U=new sg(this);this.Wf(a||null);b&&(this.Xf=b)}u(Sk,Q);f=Sk.prototype;f.ua=null;f.tn=!0;f.rn=null;f.Me=!1;f.bl=-1;f.Wi=-1;f.Hn=!0;f.Xf="toggle_display";f.getType=function(){return this.Xf};f.V=function(){return this.ua};f.Wf=function(a){Tk(this);this.ua=a};function Uk(a,b){Tk(a);a.tn=b}function Tk(a){if(a.Me)throw Error("Can not change this state of the popup while showing.");}f.isVisible=function(){return this.Me}; f.wa=function(a){this.Ea&&this.Ea.stop();this.oa&&this.oa.stop();if(a){if(!this.Me&&this.ol()){if(!this.ua)throw Error("Caller must call setElement before trying to show the popup");this.Vf();a=Xe(this.ua);this.tn&&(this.U.ha(a,"mousedown",this.Cu,!0),this.U.ha(a,"blur",this.Au));this.Xf=="toggle_display"?(this.ua.style.visibility="visible",N(this.ua,!0)):this.Xf=="move_offscreen"&&this.Vf();this.Me=!0;this.bl=Date.now();this.Wi=-1;this.Ea?(hg(this.Ea,"end",this.bi,!1,this),this.Ea.play()):this.bi()}}else Vk(this)}; f.Vf=function(){};function Vk(a,b){a.Me&&a.dispatchEvent({type:"beforehide",target:b})&&(a.U&&xg(a.U),a.Me=!1,a.Wi=Date.now(),a.oa?(hg(a.oa,"end",t(a.yn,b),!1,a),a.oa.play()):a.yn(b))}f.yn=function(a){this.Xf=="toggle_display"?this.Pt():this.Xf=="move_offscreen"&&(this.ua.style.top="-10000px");this.Ng(a)};f.Pt=function(){this.ua.style.visibility="hidden";N(this.ua,!1)};f.ol=function(){return this.dispatchEvent("beforeshow")};f.bi=function(){this.dispatchEvent("show")}; f.Ng=function(a){this.dispatchEvent({type:"hide",target:a})};f.Cu=function(a){a=a.target;Af(this.ua,a)||Wk(this,a)||Date.now()-this.bl<150||Vk(this,a)};f.Au=function(a){if(this.Hn){var b=Xe(this.ua);if(typeof document.activeElement!="undefined"){if(a=b.activeElement,!a||Af(this.ua,a)||a.tagName=="BODY"||Wk(this,a))return}else if(a.target!=b)return;Date.now()-this.bl<150||Vk(this)}};function Wk(a,b){return mb(a.rn||[],function(c){return b===c||Af(c,b)})} f.qa=function(){Sk.na.qa.call(this);this.U.dispose();Of(this.Ea);Of(this.oa);delete this.ua;delete this.U;delete this.rn};function Xk(a,b){Y.call(this,b);this.yf=!!a;this.oa=null;this.uc=yk({Bo:this.jj},this);yk({Bo:this.Bp},this)}u(Xk,Y);f=Xk.prototype;f.Ek=null;f.ei=!1;f.Yc=null;f.vc=null;f.Pd=null;f.kk=!1;f.Og=function(){return"goog-modalpopup"};f.jh=function(){return this.Yc};f.Oa=function(){Xk.na.Oa.call(this);var a=this.V();th(a,Vb(this.Og()).split(" "));Ff(a,!0);N(a,!1);Yk(this);Zk(this)}; function Yk(a){if(a.yf&&!a.vc){var b=a.g.Ma("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});b.src=oc(Ck).toString();a.vc=b;a.vc.className=a.Og()+"-bg";N(a.vc,!1);fh(a.vc,0)}a.Yc||(a.Yc=a.g.Ma("DIV",a.Og()+"-bg"),N(a.Yc,!1))}function Zk(a){a.Pd||(a.Pd=Mf(a.g,"SPAN"),N(a.Pd,!1),Ff(a.Pd,!0),a.Pd.style.position="absolute")}f.Yo=function(){this.kk=!1};f.ai=function(a){return!!a&&a.tagName=="DIV"}; f.Kb=function(a){Xk.na.Kb.call(this,a);a=Vb(this.Og()).split(" ");th(this.V(),a);Yk(this);Zk(this);Ff(this.V(),!0);N(this.V(),!1)};f.Ia=function(){this.vc&&sf(this.vc,this.V());sf(this.Yc,this.V());Xk.na.Ia.call(this);tf(this.Pd,this.V());this.Ek=new Ek(this.g.g);Z(this).ha(this.Ek,"focusin",this.Du);$k(this,!1)};f.hc=function(){this.isVisible()&&this.wa(!1);Of(this.Ek);Xk.na.hc.call(this);E(this.vc);E(this.Yc);E(this.Pd)}; f.wa=function(a){if(a!=this.ei)if(this.ya&&this.ya.stop(),this.Ga&&this.Ga.stop(),this.ta&&this.ta.stop(),this.Ea&&this.Ea.stop(),this.Ra&&$k(this,a),a){if(this.dispatchEvent("beforeshow")){try{this.oa=this.g.g.activeElement}catch(e){}this.Bp();Z(this).ha(this.g.g.defaultView,"resize",this.jj).ha(this.g.g.defaultView,"orientationchange",this.uc);al(this,!0);this.focus();this.ei=!0;this.ya&&this.Ga?(hg(this.ya,"end",this.di,!1,this),this.Ga.play(),this.ya.play()):this.di()}}else if(this.dispatchEvent("beforehide")){Z(this).Sa(this.g.g.defaultView, "resize",this.jj).Sa(this.g.g.defaultView,"orientationchange",this.uc);this.ei=!1;this.ta&&this.Ea?(hg(this.ta,"end",this.ci,!1,this),this.Ea.play(),this.ta.play()):this.ci();a:{try{var b=this.g,c=b.g.body,d=b.g.activeElement||c;if(!this.oa||this.oa==c){this.oa=null;break a}(d==c||b.Vl(this.V(),d))&&this.oa.focus()}catch(e){}this.oa=null}}}; function $k(a,b){a.ac||(a.ac=new Rk(a.ua,a.g));a=a.ac;if(b){a.g||(a.g=[]);b=a.i.Mn(a.i.g.body);for(var c=0;c=xl&&(fh(this.g,a),this.j=a)};f.hf=function(){this.j=-1;wl.na.hf.call(this)};f.Ee=function(){this.j=-1;wl.na.Ee.call(this)};f.show=function(){this.g.style.display=""};f.ab=function(){this.g.style.display="none"};function yl(a,b,c){wl.call(this,a,1,0,b,c)}u(yl,wl);yl.prototype.hf=function(){this.show();yl.na.hf.call(this)};yl.prototype.Ee=function(){this.ab();yl.na.Ee.call(this)}; function zl(a,b,c,d,e){if(b.length!=3||c.length!=3)throw Error("Start and end points must be 3D");vl.call(this,a,b,c,d,e)}u(zl,vl);zl.prototype.Tf=function(){for(var a=[],b=0;b1){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d2*this.size&&Jl(this),!0):!1}; function Jl(a){if(a.size!=a.g.length){for(var b=0,c=0;b=d.g.length)return Dl;var g=d.g[b++];return{value:a?g:d.i[g],done:!1}};return e};function Kl(a,b){return Object.prototype.hasOwnProperty.call(a,b)};function Ll(){this.i=new Il;this.g=new Ml("");this.g.next=this.g.g=this.g}f=Ll.prototype;f.get=function(a,b){return(a=this.i.get(a))?a.value:b};f.set=function(a,b){var c=this.i.get(a);c?c.value=b:(c=new Ml(a,b),this.i.set(a,c),a=c,a.g=this.g.g,a.next=this.g,this.g.g=a,a.g.next=a)};f.shift=function(){return Nl(this,this.g.next)};f.pop=function(){return Nl(this,this.g.g)};f.remove=function(a){return(a=this.i.get(a))?(a.remove(),this.i.remove(a.key),!0):!1}; f.Td=function(){return this.map(function(a,b){return b})};f.Cc=function(){return this.map(function(a){return a})};f.clear=function(){for(;this.i.size>0;){var a=this.g.next;a.remove();this.i.remove(a.key)}};f.forEach=function(a,b){for(var c=this.g.next;c!=this.g;c=c.next)a.call(b,c.value,c.key,this)};f.map=function(a,b){for(var c=[],d=this.g.next;d!=this.g;d=d.next)c.push(a.call(b,d.value,d.key,this));return c}; f.some=function(a,b){for(var c=this.g.next;c!=this.g;c=c.next)if(a.call(b,c.value,c.key,this))return!0;return!1};f.every=function(a,b){for(var c=this.g.next;c!=this.g;c=c.next)if(!a.call(b,c.value,c.key,this))return!1;return!0};function Nl(a,b){a.g!=b&&(b.remove(),a.i.remove(b.key));return b.value}function Ml(a,b){this.key=a;this.value=b}Ml.prototype.remove=function(){this.g.next=this.next;this.next.g=this.g;delete this.g;delete this.next};function Ol(){Q.call(this);this.i=new Ll}u(Ol,Q);function Pl(a){return a.g}Ol.prototype.j=function(a){a.sort(Ql);v(a,function(b){b.ae(this)},this);this.i=new Ll;v(a,function(b){this.i.set(b.Ja(),b)},this);this.dispatchEvent("update")};function Ql(a,b){return Rl(a)-Rl(b)}function Sl(a){return a.i.Cc()}function Tl(a,b,c){a=Sl(a);for(var d=-1,e=0;e=0)return a[c+d]}function Ul(a,b){return a.i.get(b)} function Vl(a,b){b=Vb(b);if(b.length!=0)return nb(Sl(a),function(c){return c.Za()==b})};/* Copyright 2005, 2007 Bob Ippolito. All Rights Reserved. Copyright The Closure Library Authors. SPDX-License-Identifier: MIT */ function Wl(a){var b=Xl;this.o=[];this.oa=b;this.Ha=a||null;this.l=this.j=!1;this.i=void 0;this.ka=this.ta=this.O=!1;this.s=0;this.g=null;this.U=0}Wl.prototype.cancel=function(a){if(this.j)this.i instanceof Wl&&this.i.cancel();else{if(this.g){var b=this.g;delete this.g;a?b.cancel(a):(b.U--,b.U<=0&&b.cancel())}this.oa?this.oa.call(this.Ha,this):this.ka=!0;this.j||(a=new Yl(this),Zl(this),$l(this,!1,a))}};Wl.prototype.ma=function(a,b){this.O=!1;$l(this,a,b)}; function $l(a,b,c){a.j=!0;a.i=c;a.l=!b;am(a)}function Zl(a){if(a.j){if(!a.ka)throw new bm(a);a.ka=!1}}Wl.prototype.kg=function(a){Zl(this);$l(this,!0,a)};function cm(a,b,c,d){var e=a.j;e||(b===c?b=c=db(b):(b=db(b),c=db(c)));a.o.push([b,c,d]);e&&am(a)}Wl.prototype.then=function(a,b,c){var d,e,g=new bj(function(h,k){e=h;d=k});cm(this,e,function(h){h instanceof Yl?g.cancel():d(h);return dm},this);return g.then(a,b,c)};Wl.prototype.$goog_Thenable=!0; function em(a){return mb(a.o,function(b){return typeof b[1]==="function"})}var dm={}; function am(a){if(a.s&&a.j&&em(a)){var b=a.s,c=fm[b];c&&(q.clearTimeout(c.rb),delete fm[b]);a.s=0}a.g&&(a.g.U--,delete a.g);b=a.i;for(var d=c=!1;a.o.length&&!a.O;){var e=a.o.shift(),g=e[0],h=e[1];e=e[2];if(g=a.l?h:g)try{var k=g.call(e||a.Ha,b);k===dm&&(k=void 0);k!==void 0&&(a.l=a.l&&(k==b||k instanceof Error),a.i=b=k);if(aj(b)||typeof q.Promise==="function"&&b instanceof q.Promise)d=!0,a.O=!0}catch(l){b=l,a.l=!0,em(a)||(c=!0)}}a.i=b;d&&(k=r(a.ma,a,!0),d=r(a.ma,a,!1),b instanceof Wl?(cm(b,k,d),b.ta= !0):b.then(k,d));c&&(b=new gm(b),fm[b.rb]=b,a.s=b.rb)}function bm(){eb.call(this)}u(bm,eb);bm.prototype.message="Deferred has already fired";bm.prototype.name="AlreadyCalledError";function Yl(){eb.call(this)}u(Yl,eb);Yl.prototype.message="Deferred was canceled";Yl.prototype.name="CanceledError";function gm(a){this.rb=q.setTimeout(r(this.i,this),0);this.g=a}gm.prototype.i=function(){delete fm[this.rb];throw this.g;};var fm={};function hm(a,b){var c=b||{};b=c.document||document;var d=oc(a).toString(),e=Mf(new We(b),"SCRIPT"),g={ep:e,Kg:void 0},h=new Wl(g),k=null,l=c.timeout!=null?c.timeout:5E3;l>0&&(k=window.setTimeout(function(){im(e,!0);var m=new jm(1,"Timeout reached for loading script "+d);Zl(h);$l(h,!1,m)},l),g.Kg=k);e.onload=e.onreadystatechange=function(){e.readyState&&e.readyState!="loaded"&&e.readyState!="complete"||(im(e,c.fs||!1,k),h.kg(null))};e.onerror=function(){im(e,!0,k);var m=new jm(0,"Error while loading script "+ d);Zl(h);$l(h,!1,m)};g=c.attributes||{};Rb(g,{type:"text/javascript",charset:"UTF-8"});ef(e,g);Kc(e,a);km(b).appendChild(e);return h}function km(a){var b=Ze("HEAD",a);return b&&b.length!==0?b[0]:a.documentElement}function Xl(){if(this&&this.ep){var a=this.ep;a&&a.tagName=="SCRIPT"&&im(a,!0,this.Kg)}}function im(a,b,c){c!=null&&q.clearTimeout(c);a.onload=function(){};a.onerror=function(){};a.onreadystatechange=function(){};b&&window.setTimeout(function(){E(a)},0)} function jm(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);eb.call(this,c);this.code=a}u(jm,eb);var lm=ta(["//apis.google.com/js/api.js"]);function mm(a){var b=document,c=window;nm()&&(hm(om,{document:b}).then(function(){var d=Ra("gapi.load",c);d&&d("gapi.rpc",{kg:function(){return pm(a)},onerror:function(){return null},timeout:5E3,ontimeout:function(){return null}})}),U(function(){pm(a)},5E3))}function qm(a){var b={};b.q=a;rm("updateInViewportPage",b)}function sm(a){a?rm("onboardingComplete"):rm("onboardingCompleteNoPlainText")} function pm(a){var b=Ra("gapi.rpc.register");typeof b==="function"&&(b("handshake",function(){}),tm(),um(a))}function tm(){I(document,"keydown",function(a){a.keyCode==27&&rm("closeViewportDialog")})}function um(a){var b=Ra("gapi.rpc.register");if(typeof b==="function")for(var c in a)b(c,a[c])}function rm(a,b){if(nm()){var c=Ra("gapi.rpc.call");typeof c==="function"&&c("..",a,null,b)}}function nm(){try{return window.self!==window.top}catch(a){return!0}}var om=Me(lm);function vm(a){Q.call(this);wm(this,a||"")}n(vm,Q);vm.prototype.getQuery=function(){return this.j};function wm(a,b){a.j!=b&&(a.j=b,a.dispatchEvent("change"),qm(b))}function xm(a){a=new R(a);return T(a,"q")||T(a,"vq")||T(a,"dq")}function ym(){return T(new R(window.location.toString()),"q")};function zm(a){this.g={};this.N=a}function Am(a,b){var c=[];if(a.g[b]){var d=[],e;for(e in a.g[b])d.push(e);zb(d);for(e=0;e3?b[3]:T(a,"id")||""}function Vm(){var a=window.location.pathname.split("/");return a.length<1?"":a[1]};function Wm(a){Q.call(this);this.lb={};a&&this.zd(a)}u(Wm,Q);f=Wm.prototype;f.he=function(){return this.lb.w||Pl(this.getParent()).width};f.Vd=function(){return this.lb.h||Pl(this.getParent()).height};function Oi(a){return a.he()/a.Vd()}f.getSize=function(){return new Ib(this.he(),this.Vd())};f.zd=function(a){for(var b in a)this.lb[b]=a[b];this.dispatchEvent("update")};f.ae=function(a){this.s=a};f.getParent=function(){return this.s};f.Za=function(){return this.lb.title}; f.we=function(){var a=this.Za();return a?"Page "+a:""};function Rl(a){return a.lb.order}f.qd=function(a){if(this.lb.src&&a){var b=new R(this.lb.src);S(b,"w",a.width);return b.toString()}return this.lb.src};f.Ja=function(){return this.lb.pid};function Xm(a,b,c){if(zd()<=8){var d=[];d[0]=I(a,"readystatechange",t(Ym,a,t(Zm,b),d))}else hg(a,"load",t(Zm,b));c&&hg(a,"error",t(Zm,c))}function Zm(a){U(a)}function Ym(a,b,c){if(a.readyState!="complete")return!0;pg(c[0]);b();return!1}var $m=C("div");function an(a){if(a)if(Hd){$m.appendChild(a);var b=t(E,a);Xm(a,b,b);a.src="//www.google.com/images/cleardot.gif"}else a.src="//www.google.com/images/cleardot.gif",E(a)};function bn(a,b,c,d,e,g,h){Q.call(this);this.s=a;this.ob=b;this.wb=c;this.j=d;this.i=e;this.ka=g;this.O=h;this.l=Math.ceil(this.ob/this.j);this.o=Math.ceil(this.wb/this.i);this.g=[];for(a=0;a0)for(c=0;cb)return a[c]}else for(c=a.length-1;c>=0;c--)if(a[c]b.length)return!1;if(a.lengthe)return!1;if(d=k){var J=G-p,Ya=void 0;((Ya=D)!=null?Ya:D={})[J]=F}else g[G]=F}if(y)for(var za in y)a=y[za],a!=null&&(a=c(a,d))!=null&&(h=+za, G=void 0,m&&!Number.isNaN(h)&&(G=h+p)=Nn&&a<=Pn:a[0]==="-"?Qn(a,Mn):Qn(a,On))?Number(a):""+a;case "boolean":return a?1:0;case "object":if(Array.isArray(a)){var b=a[Yn]|0;return a.length===0&&b&1?void 0:go(a,b,io)}if(a[Vn]===ao)return jo(a);return}return a}var ho; function jo(a){a=a.Xb;return go(a,a[Yn]|0,io)};function ko(a,b,c){var d=d===void 0?0:d;if(a==null){var e=32;c?(a=[c],e|=128):a=[];b&&(e=e&-16760833|(b&1023)<<14)}else{if(!Array.isArray(a))throw Error("narr");e=a[Yn]|0;4096&e&&!(2&e)&&lo();if(e&256)throw Error("farr");if(e&64)return d!==0||e&4096||$n(a,e|4096),a;if(c&&(e|=128,c!==a[0]))throw Error("mid");a:{c=a;e|=64;var g=c.length;if(g){var h=g-1,k=c[h];if(k!=null&&typeof k==="object"&&k.constructor===Object){b=e&128?0:-1;h-=b;if(h>=1024)throw Error("pvtlmt");for(var l in k)g=+l,g1024)throw Error("spvt");e=e&-16760833|(l&1023)<<14}}}e|=64;d===0&&(e|=4096);$n(a,e);return a}function lo(){if(Un!=null){var a;var b=(a=eo)!=null?a:eo={};a=b[Un]||0;a>=5||(b[Un]=a+1,b=Error(),b.__closure__error__context__984382||(b.__closure__error__context__984382={}),b.__closure__error__context__984382.severity="incident",Ri(b))}};function mo(a,b){if(typeof a!=="object")return a;if(Array.isArray(a)){var c=a[Yn]|0;a.length===0&&c&1?a=void 0:c&2||(!b||8192&c||16&c?a=no(a,c,b&&!(c&16)):(Zn(a,34),c&4&&Object.freeze(a)));return a}if(a[Vn]===ao)return b=a.Xb,c=b[Yn]|0,bo(a,c)?a:no(b,c)}function no(a,b,c){c!=null||(c=!!(34&b));return go(a,b,mo,c,!0)}function oo(a){if(a.g!==co)return!1;var b=a.Xb;b=no(b,b[Yn]|0);b[Yn]&=-3;a.Xb=b;a.g=void 0;return!0}function po(a){if(!oo(a)&&bo(a,a.Xb[Yn]|0))throw Error();};function qo(a,b,c){if(b===-1)return null;var d=b+-1,e=a.length-1;if(!(e<0)){if(d>=e){var g=a[e];if(g!=null&&typeof g==="object"&&g.constructor===Object){e=g[b];var h=!0}else if(d===e)e=g;else return}else e=a[d];if(c&&e!=null){c=c(e);if(c==null)return c;if(!Object.is(c,e))return h?g[b]=c:a[d]=c,c}return e}} function ro(a,b,c,d){var e=c+-1,g=a.length-1;if(g>=0&&e>=g){var h=a[g];if(h!=null&&typeof h==="object"&&h.constructor===Object){h[c]=d;return}}e<=g?a[e]=d:d!==void 0&&(b=(b!=null?b:a[Yn]|0)>>14&1023||536870912,c>=b?d!=null&&(e={},a[b+-1]=(e[c]=d,e)):a[e]=d)}function so(a,b){var c=to;a=qo(a,1,function(d){if(d==null||typeof d!=="object"||d[Vn]!==ao)if(Array.isArray(d)){var e=d[Yn]|0;var g=e|b&32;g|=b&2;g!==e&&$n(d,g);d=new c(d)}else d=void 0;return d});if(a!=null)return a} function uo(a,b){var c=c===void 0?!1:c;a=qo(a.Xb,b);a=a==null||typeof a==="boolean"?a:typeof a==="number"?!!a:void 0;return a!=null?a:c}function vo(a,b,c){if(c!=null&&typeof c!=="boolean")throw Error("Expected boolean but got "+Ta(c)+": "+c);po(a);var d=a.Xb;ro(d,d[Yn]|0,b,c===!1?void 0:c);return a};function wo(a,b,c){this.Xb=ko(a,b,c)}wo.prototype.toJSON=function(){var a=jo(this);return a};wo.prototype.clone=function(){var a=this,b=a.Xb;a=new a.constructor(no(b,b[Yn]|0));b=a.Xb;b[Yn]&=-3;return a};wo.prototype[Vn]=ao;wo.prototype.toString=function(){return this.Xb.toString()};function xo(a){this.g=a}xo.prototype.md=function(){return this.g.aid};xo.prototype.vg=function(){var a=this.g.x_focus,b=this.g.y_focus;if(a===void 0||b===void 0){b=this.Ff();if(!b.length)return null;a=b[0][0];b=b[0][1]}return new w(a,b)};xo.prototype.Fk=ba(4);xo.prototype.Ff=function(){return yo(this,"head_boxes")};function yo(a,b){var c=[];a.g[b]&&v(a.g[b],function(d){c.push([d.X,d.Y,d.W,d.H])});return c};function zo(a){this.g=a};function Ao(a,b,c){this.j=a;this.g=b;this.l=c||!1;a=this.getSize();this.i()?a.height=120:a.height=65;this.kb(a)}n(Ao,zi);Ao.prototype.i=function(){var a=A("gb-mobile-menu-pubinfo");return a?wf(a).length>0&&this.j!=null&&Rl(this.j)==0:!1};function Bo(a){Ii.call(this);this.j=a}u(Bo,Ii);Bo.prototype.O=function(){this.i=Math.ceil(this.g.length/this.j);for(var a=0;a1&&Fo(this,h,k);var l=A("gb-mobile-menu-pubinfo");l&&wf(l).length>0&&!g&&h&&k&&Rl(h)==0&&Fo(this,h,k,!0);l=new Ni(k);var m=l.getSize();this.o=="fixed_height"?m.height=this.l:m.width=this.l;l.kb(m);this.Na(l);h=k},this);g&&h&&e&&Rl(h)this.g.width?this.l.qd(this.j):Ro.prototype.i.call(this)};function To(a,b,c,d,e){W.call(this);this.Gg(a.Da());this.N=a;this.i=c;this.ma=[];this.bm=d;L(d,c);this.oa=Jo(this);K(this.oa,"backgroundColor","#fff");L(this.oa,c);if(this.ya=e!==void 0?e:!0)a=Jo(this),L(a,c),this.ta=new Uo(a),this.ta.show();b&&(this.l=b,this.g.ha(b,"update",this.Zf),Jm(b))}u(To,W);f=To.prototype;f.getSize=function(){return this.i};f.Ca=function(){return this.l};function Vo(a,b){a.ma.push(b);b.ie(a)}f.Zf=function(){};function Wo(a){a.dispatchEvent("load");a.ya&&a.ta.ab()} function Jo(a){var b=C("div");V(b,!0);K(b,{position:"absolute",left:0,top:0});a.bm.appendChild(b);return b}function Xo(a){a.o&&(E(a.o),a.o=null)}f.Ka=function(){v(this.ma,function(a){a.dispose()});this.ma=null;Xo(this)};function Yo(a){a.s=Jo(a);L(a.s,a.getSize());K(a.s,{backgroundImage:"url(//www.google.com/images/cleardot.gif)",backgroundRepeat:"repeat"});a.g.ha(a.s,"mousedown",a.Zp);a.g.ha(a.s,"dragstart",Tf)}f.Zp=function(a){a.display=this;Zo.dispatchEvent(a)};var Zo=new Q; function Uo(a){this.g=a;a={position:"absolute",left:0,color:"#808080",fontSize:"13px",backgroundColor:"white"};for(var b=0;b<2;b++){var c=C("div");V(c);K(c,a);this.g.appendChild(c);c.textContent="Loading...";a.bottom=0}}Uo.prototype.show=function(a){K(this.g,{display:a?"none":""})};Uo.prototype.ab=function(){this.show(!0)};To.prototype.Cl=function(){$o(this)};function $o(a,b){Xo(a);a.o=Jo(a);new ap(a.o,a.getSize(),b)} function ap(a,b,c){this.g=a;K(a,{backgroundColor:"#FFF",textAlign:"center"});L(a,b);x(a,Be(Je,c||""));V(this.g)};function bp(a,b,c){To.call(this,a,b.Ca(),b.g,c);this.Gg(cp);a=Jo(this);this.U=new dp(b.g,a);a=Jo(this);this.O=new dp(b.g,a);Yo(this);jh(c,!0);O(c,"pageImageDisplay");this.ka=b;b.Ca()&&this.Zf()}n(bp,To);f=bp.prototype;f.hb=function(a){pn(a,"output",null);To.prototype.hb.call(this,a);a.qd()&&this.Zf()}; f.Zf=function(){var a=this.Ca(),b=this.ka.i();if(b&&!this.j){b=ep(b);hg(this.U,"load",r(this.aq,this,a,b,this.getSize().width));fp(this.U,[b]);var c=Am(this.N.Ib,a.Ja());c.push(b);fp(this.O,c);this.j=!0;Xo(this);a==this.N.Ca()&&this.dispatchEvent("fetch")}sn(a,[16,8])&&(a=Uc('

%s
',Sm("/googlebooks/restricted_logo.gif"),"You have either reached a page that is unavailable for viewing or reached your viewing limit for this book."), $o(this,a),Wo(this))};f.aq=function(a,b,c){a==this.N.Ca()&&this.dispatchEvent("loaded");this.O.empty();var d=this.N.Ib;a=a.Ja();d.g[a]=d.g[a]||{};d.g[a][c]=b;Wo(this)};f.jc=ba(7);f.Ka=function(){this.j=!1;this.U.empty();this.O.empty();To.prototype.Ka.call(this)};var cp=new Q;function ep(a){return a}function dp(a,b){Q.call(this);this.i=a;this.j=b;this.ff=!1;this.g=C("IMG");bk(this.g,"Page");this.g.width=this.i.width;this.j.appendChild(this.g);V(this.j)}n(dp,Q); dp.prototype.empty=function(){for(var a;a=xf(this.j);)an(a)};function fp(a,b){Xm(a.g,r(a.l,a,a.g));for(var c=0;c1?this.dispatchEvent("scrolldown"):c-a.y>1&&this.dispatchEvent("scrollup"),c=a.y);this.Cb=new w(b,c);b=this.s;a=this.Cb;b.O||(b=b.l,a.y!=null&&(b.scrollTop=a.y),a.x!=null&&(b.scrollLeft=a.x));this.dispatchEvent("move")}; function kp(a){var b=a.Cb;return b?new Cg(b.x,b.y,a.i.width,a.i.height):null}f.getSize=function(){return this.i};f.Ad=function(a){this.dispatchEvent("movestart");this.Rc(a);this.dispatchEvent("moveend")};function lp(a,b,c){a=a.Cb;c(new w(a.x+b.x,a.y+b.y))} f.jf=function(a){var b=this.Cb,c=this.getSize();!b||Math.abs(b.x-a.x)>c.width||Math.abs(b.y-a.y)>c.height?this.Ad(a):(this.l&&(this.l.dispose(),this.l=null),this.l=new Kj([b.x,b.y],[a.x,a.y],250+Eb(Gb(b,a)/800,0,1)*250,Nj),I(this.l,"animate",r(this.em,this)),I(this.l,"end",r(this.bq,this)),this.dispatchEvent("movestart"),hg(this,"movestart",r(this.l.dispose,this.l)),this.l.play())};f.em=function(a){a=a.coords.map(Math.round);this.Rc(new w(a[0],a[1]))};f.bq=function(a){this.em(a);this.dispatchEvent("moveend")}; f.vb=function(){return this.j};f.xe=ba(8);f.Gc=function(){return new w(Math.round(this.Cb.x+this.i.width/2),Math.round(this.Cb.y+this.i.height/2))};f.De=function(a){return new w(Math.round(a.x+this.i.width/2*-1),Math.round(a.y+this.i.height/2*-1))};f.qa=function(){gp.na.qa.call(this);this.O.Ka()};f.Dk=function(a){this.U==null&&(this.U=a);this.U.style.opacity=0;this.ma.start()};f.Bs=function(){var a=this;this.ma.stop();N(this.U,!0);U(function(){a.U.style.opacity=1})};f.dm=1;function mp(a,b,c,d){To.call(this,a,b.Ca(),b.g,c,d);this.ka=Jo(this);Yo(this);b.Ca()&&this.Zf();this.N=a;this.O=I(this.N.Da(),"update",this.Aa,!1,this)}n(mp,To);mp.prototype.Zf=function(){var a=this.Ca(),b=a.qd(),c=this.N.Ta().Ki(),d=a.ma;if(b&&d&&!this.j){var e=fn(d,this.getSize().height);typeof e==="number"&&(d=gn(d,e),b=new R(b),S(b,"zoom",e),S(b,"pg",a.ta),b=b.toString(),this.U=new bn(this.ka,d,this.getSize().height,c.Ej,c.Dj,r(c.Sn,c,b,d,this.getSize().height),null),this.j=!0,this.Aa())}}; mp.prototype.Aa=function(){if(this.j){var a=Ug(this.ka);if(a){var b=$g(this.ka);a.top-=b.y;a.bottom-=b.y;a.left-=b.x;a.right-=b.x;a.bottom-a.top>0&&a.right-a.left>0&&cn(this.U,Eg(a))}Om(this.N)}};mp.prototype.Ka=function(){this.j&&(this.U.empty(),this.j=!1);this.O&&(pg(this.O),this.O=null);To.prototype.Ka.call(this)};function np(a){this.vd=a;Lo.call(this,"#ffff00")}u(np,Lo);np.prototype.Rg=function(){var a=this.i.Ca();if(a){var b=this.vd.getQuery();b!=this.o&&(a=Km(a,b),this.Yf(),a&&(lb(a,r(this.Gn,this)),this.o=b))}};function op(a){Q.call(this);this.url=a;this.j=null;this.s=!0}n(op,Q);op.prototype.Qd=function(){if(this.s)this.s=!1;else throw Error();};function pp(a,b){op.call(this,a);this.O=b||"GET";this.i=new sg;this.g=new mi}n(pp,op);f=pp.prototype;f.Qd=function(a,b){op.prototype.Qd.call(this,a,b);this.o=a;this.l=b;this.i.ha(this.g,"success",r(this.eq,this));this.i.ha(this.g,"error",r(this.cq,this));this.g.send(this.url.toString(),this.O,void 0)};f.eq=function(a){this.j=JSON.parse(xi(a.target));U(r(this.dispatchEvent,this,"success"));this.o&&U(t(this.o,this.j));U(r(this.Fj,this))}; f.cq=function(){U(r(this.dispatchEvent,this,"error"));this.l&&U(this.l);U(r(this.Fj,this))};f.abort=function(){this.g.abort();this.Fj();return!1};f.Fj=function(){xg(this.i);this.l=this.o=null};function qp(a){return a.length?a.reduce(function(b,c){return Ig(b,c)},a[0].clone()):null};function rp(a,b,c,d,e){W.call(this);this.s=a;this.ma=b;this.ta=e;this.l=d;this.i=!1;this.o=C("div");c.appendChild(this.o);this.g.ha(b,"mousemove",this.O);this.g.ha(b,"mouseup",this.U)}u(rp,W);rp.prototype.O=function(a){if(!this.oa){a=Hb(new w(a.clientX,a.clientY),Vg(this.ma));a=zg(a,this.ta);K(this.o,{border:"2px dashed #99AAEE",position:"absolute"});var b=a.right-a.left,c=a.bottom-a.top;Pg(this.o,a.left,a.top);L(this.o,b,c);this.j=a}}; rp.prototype.U=function(a){this.O(a);this.oa=!0;a=this.l;var b=Eg(this.j),c=No(this.s);c=sp(b,1/c);b=tp(sp(c,1/a.getSize().width*1E3));a=new R(a.yc());S(a,"ci",[b.left,b.top,b.width,b.height].join());S(a,"jscmd","click3");S(a,"output","text");c=tp(c);up(this.s,[c]);E(this.o);(new pp(a)).Qd(r(this.ka,this,c,b));this.dispatchEvent("endsize")}; rp.prototype.ka=function(a,b,c){c=c.page[0];var d=!1,e=c.clip_highlights;if(e){var g=[];v(e,function(h){g.push(new Cg(h.X,h.Y,h.W,h.H))});if(c=c.content)up(this.s,[a],c,b),d=!0}d||this.s.Yf();this.dispose()};function sp(a,b){return new Cg(a.left*b,a.top*b,a.width*b,a.height*b)}function tp(a){return new Cg(Math.round(a.left),Math.round(a.top),Math.round(a.width),Math.round(a.height))}rp.prototype.qa=function(){rp.na.qa.call(this);E(this.o)};function vp(a,b){W.call(this);this.o=a;this.Ba=b}var wp;n(vp,Io);f=vp.prototype;f.ie=function(a){Io.prototype.ie.call(this,a);a=this.l;var b=C("div");V(b,!0);a.appendChild(b);rh(b,"selection-layer");L(a,this.i.getSize());L(b,this.i.getSize());this.g.ha(b,"click",this.fq);this.g.ha(b,"mousedown",this.gq)}; f.gq=function(a){if(wp){a.stopPropagation();this.j&&this.j.dispose();var b=this.i.bm;a=Hb(new w(a.clientX,a.clientY),Vg(b));this.j=new rp(this.o,b,this.l,this.i.Ca(),a);this.s=I(document.body,"mousemove",r(this.hq,this));hg(this.j,["endsize","dispose"],r(this.ys,this))}};f.fq=function(a){wp&&a.stopPropagation()}; f.hq=function(a){if(this.j&&!this.j.Ed){var b=new w(a.clientX,a.clientY),c=Dg(eh(this.Ba.vb()));if(Ag(c,b)){var d=new w(0,0);v([[c.top-a.clientY,0,-1],[c.bottom-a.clientY,0,1],[c.left-a.clientX,-1,0],[c.right-a.clientX,1,0]],function(e){Math.abs(e[0])<40&&(d.x=e[1]||d.x,d.y=e[2]||d.y)});this.O||(this.O=new tj(100),this.g.ha(this.O,"tick",this.iq));this.U=d;d.x||d.y?this.O.start():this.O.stop()}}};f.iq=function(){var a=this.U,b=this.Ba;lp(b,new w(a.x*15,a.y*15),r(b.Ad,b))}; f.ys=function(){pg(this.s);Of(this.O);this.O=null};function xp(){this.o="Selection copied to clipboard";this.g=!1;var a=B("DIV","entity-page-snackbar"),b=B("SPAN","entity-page-snackbar-text");H(b,this.o);a.appendChild(b);X(a,"hidden",!0);document.body.appendChild(a);this.l=a}xp.prototype.show=function(){this.g?(this.i(),U(r(this.j,this),500)):this.j();U(r(this.i,this),6E3)};xp.prototype.j=function(){K(this.l,"bottom","0");this.g=!0};xp.prototype.i=function(){K(this.l,"bottom","-48px");this.g=!1};function yp(a){this.i=a;this.l=new xp;this.j=zp(this)}yp.prototype.V=function(){return this.j};function zp(a){var b=C("DIV");th(b,["entity-page-copy-button","entity-page-action-chip"]);var c=C("SPAN");O(c,"entity-page-action-chip-icon");var d=C("SPAN");O(d,"entity-page-action-chip-label");H(d,"Copy");b.appendChild(c);b.appendChild(d);I(b,"click",r(a.g,a));Xj(b,"button");Ff(b,!0);I(b,"keydown",function(e){e.keyCode!=32&&e.keyCode!=13||a.g.call(a)});return b} yp.prototype.g=function(){this.i.focus();this.i.select();document.execCommand("copy");this.l.show()};function Ap(){}Ap.prototype.Jc=function(){};function Bp(a,b,c,d,e,g,h,k,l){var m=Cp(c),p=eh(a),y=Ug(a);y&&Fg(p,Eg(y));y=Ve(a);var D=Ve(c);if(y.g!=D.g){y=y.g.body;D=D.g.defaultView;var G=new w(0,0),F=kf(Xe(y));b:{try{Ed(F.parent);var J=!0;break b}catch(jb){}J=!1}if(J){J=y;do{var Ya=F==D?Vg(J):ah(J);G.x+=Ya.x;G.y+=Ya.y}while(F&&F!=D&&F!=F.parent&&(J=F.frameElement)&&(F=F.parent))}y=Hb(G,Vg(y));p.left+=y.x;p.top+=y.y}a=Dp(a,b);b=p.left;a&4?b+=p.width:a&2&&(b+=p.width/2);p=new w(b,p.top+(a&1?p.height:0));p=Hb(p,m);e&&(p.x+=(a&4?-1:1)*e.x,p.y+= (a&1?-1:1)*e.y);if(h)if(l)var za=l;else if(za=Ug(c))za.top-=m.y,za.right-=m.x,za.bottom-=m.y,za.left-=m.x;return Ep(p,c,d,g,za,h,k)} function Cp(a){if(a=a.offsetParent){var b=a.tagName=="HTML"||a.tagName=="BODY";if(!b||Og(a)!="static"){var c=Vg(a);if(!b){b=hh(a);var d;if(d=b){d=ik&&ec(kk,10)>=0;var e;if(e=Td)e=ec(ck,10)>=0;var g=hk&&ec(kk,85)>=0;d=Jd||d||e||g}b=d?-a.scrollLeft:b&&Ng(a,"overflowX")!="visible"?a.scrollWidth-a.clientWidth-a.scrollLeft:a.scrollLeft;c=Hb(c,new w(b,a.scrollTop))}}}return c||new w} function Ep(a,b,c,d,e,g,h){a=a.clone();var k=Dp(b,c);c=M(b);h=h?h.clone():c.clone();a=a.clone();h=h.clone();var l=0;if(d||k!=0)k&4?a.x-=h.width+(d?d.right:0):k&2?a.x-=h.width/2:d&&(a.x+=d.left),k&1?a.y-=h.height+(d?d.bottom:0):d&&(a.y+=d.top);g&&(e?(d=h,k=0,(g&65)==65&&(a.x=e.right)&&(g&=-2),(g&132)==132&&(a.y=e.bottom)&&(g&=-5),a.xe.right&&(d.width=Math.min(e.right-a.x,l+d.width-e.left), d.width=Math.max(d.width,0),k|=4)),a.x+d.width>e.right&&g&1&&(a.x=Math.max(e.right-d.width,e.left),k|=1),g&2&&(k|=(a.xe.right?32:0)),a.ye.bottom&&(d.height=Math.min(e.bottom-a.y,l+d.height-e.top),d.height=Math.max(d.height,0),k|=8)),a.y+d.height>e.bottom&&g&4&&(a.y=Math.max(e.bottom-d.height,e.top),k|=2),g&8&&(k|=(a.ye.bottom?128:0)),e=k):e=256,l=e);e=new Cg(0, 0,0,0);e.left=a.x;e.top=a.y;e.width=h.width;e.height=h.height;a=l;if(a&496)return a;Pg(b,new w(e.left,e.top));h=e.getSize();Jb(c,h)||kh(b,h);return a}function Dp(a,b){return(b&8&&hh(a)?b^4:b)&-9};function Fp(a,b){this.Eb=8;this.Ga=b||void 0;Sk.call(this,a)}u(Fp,Sk);function Gp(a,b){a.Eb=b;a.isVisible()&&a.Vf()}Fp.prototype.Zc=function(){return this.Ga||null};Fp.prototype.setPosition=function(a){this.Ga=a||void 0;this.isVisible()&&this.Vf()};Fp.prototype.Vf=function(){if(this.Ga){var a=!this.isVisible()&&this.getType()!="move_offscreen",b=this.V();a&&(b.style.visibility="hidden",N(b,!0));this.Ga.Jc(b,this.Eb,this.hl);a&&N(b,!1)}};function Hp(a){Fp.call(this,a);Uk(this,!1);this.i=new sg;this.g=hn();O(a,"viewport-selection-popup");Ip&&Ip.dispose();Ip=this}n(Hp,Fp);Hp.prototype.j=function(){this.dispatchEvent("close");this.dispose()}; function Jp(a,b,c){var d=a.g?A("selection-popup-table"):a.V(),e=a.g?C("TR"):C("div");O(e,"selection-popup-select-container");d.appendChild(e);d=a.g?C("TD"):C("div");O(d,"selection-popup-select-label");e.appendChild(d);d.appendChild(of(b));d=a.g?C("TD"):C("div");e.appendChild(d);b=C("input");b.value=c;O(b,"viewport-input");d.appendChild(b);jh(b,!1);a.g&&(c=C("TD"),e.appendChild(c),e=(new yp(b)).V(),c.appendChild(e));a.i.ha(b,"mousedown",Kp)}function Kp(a){a.stopPropagation()} Hp.prototype.qa=function(){E(this.V());Fp.prototype.qa.call(this);this.i.dispose()};var Ip=null;function Lp(a,b){this.g=a instanceof w?a:new w(a,b)}u(Lp,Ap);Lp.prototype.Jc=function(a,b,c,d){var e=Xe(a);var g=e.body;e=e.documentElement;e=new w(g.scrollLeft||e.scrollLeft,g.scrollTop||e.scrollTop);g=this.g.x+e.x;e=this.g.y+e.y;var h=Cp(a);g-=h.x;e-=h.y;Ep(new w(g,e),a,b,c,null,null,d)};function Mp(a,b){Lp.call(this,a,b)}u(Mp,Lp);Mp.prototype.i=0;Mp.prototype.l=function(a){this.i=a};Mp.prototype.Jc=function(a,b,c,d){var e=Ug((a?Xe(a):document).documentElement);var g=Ve(a);g=jf(g.g);g=new w(this.g.x+g.scrollLeft,this.g.y+g.scrollTop);var h=b,k=Ep(g,a,h,c,e,10,d);if((k&496)!=0){if(k&16||k&32)h^=4;if(k&64||k&128)h^=1;k=Ep(g,a,h,c,e,10,d);(k&496)!=0&&Ep(g,a,b,c,e,this.i,d)}};function Np(a){Lo.call(this,"#4a95d6");this.j=a}n(Np,Lo);Np.prototype.ie=function(a){Lo.prototype.ie.call(this,a);K(this.l,{cursor:"pointer"});this.g.ha(this.l,"mousedown",Op)};function Op(a){a.stopPropagation()} function up(a,b,c,d){a.Yf();lb(b,r(a.Gn,a));a.s&&pg(a.s);a.o&&a.o.dispose();b=C("div");document.body.appendChild(b);var e=qp(a.O);if(e){var g=Vg(a.l);b=new Hp(b);if(c&&d){var h=a.Ca(),k=h.qd();if(k){var l=new R(k);d=[d.left,d.top,d.width,d.height].join();S(l,"ci",d);S(l,"edge",0);l=l.toString();var m=new R(h.yc());S(m,"ci",d);S(m,"source","bookclip");m=Uc('',m.toString(),l)}d=m;rf(b.V());m=b.V();h=C("IMG");h.src="/googlebooks/images/material/close_black_24dp.png";O(h, "selection-popup-close");m.appendChild(h);b.i.ef(h,"click",r(b.j,b));h=B("DIV",{},"Share this clip");O(h,"selection-popup-title");m.appendChild(h);b.g&&(h=B("TABLE",{id:"selection-popup-table"}),m.appendChild(h));c&&(Jp(b,"Selection text",c),m=C("DIV"),O(m,"selection-popup-translate-container"),b.g?(h=xf(A("selection-popup-table")),k=C("TD"),h.appendChild(k),k.appendChild(m)):b.V().appendChild(m),h=new R("https://translate.google.com/translate_t"),S(h,"text",c),S(h,"sl","auto"),S(h,"tl","auto"),c= C("A"),c.href=h.toString(),c.target="_blank",b.g&&(h=C("SPAN"),th(h,["selection-popup-translate-icon","entity-page-action-chip-icon"]),c.appendChild(h)),h=C("SPAN"),H(h,"Translate"),O(h,"entity-page-action-chip-label"),c.appendChild(h),h=C("SPAN"),H(h,"\u00bb"),O(h,"selection-popup-translate-arrow"),c.appendChild(h),O(c,"selection-popup-translate-link"),O(c,"entity-page-action-chip"),m.appendChild(c));l&&Jp(b,"Image",l);d&&Jp(b,"Embed",d)}else c=C("DIV"),H(c,"Loading..."),O(c,"selection-popup-loading-msg"), b.V().appendChild(c);Gp(b,4);a.o=b;c=g.x+e.left+e.width;e=g.y+e.top+e.height;g=dh(b.V()).width;c-g<24&&(c=g+24);U(t(Pp,b,new Mp(new w(c,e))));a.s=hg(b,"close",r(a.Yf,a))}}function Pp(a,b){a.Ed||(a.setPosition(b),a.wa(!0))}Np.prototype.Yf=function(){Lo.prototype.Yf.call(this);this.o&&this.o.dispose()};Np.prototype.qa=function(){Lo.prototype.qa.call(this);this.o&&this.o.dispose();this.s&&pg(this.s)};function Qp(a,b,c){return a.Ta().Ki()?new mp(a,b,c):new bp(a,b,c)}function Rp(a,b){if(b instanceof bp){Vo(b,new np(a.Va()));Vo(b,new Po);var c=new Np(a.vb()),d=new vp(c,a.Da());Vo(b,d);Vo(b,c);Vo(b,new Qo(a))}};function Sp(a,b){W.call(this);this.N=a;b=Math.floor(b/2);var c=Math.floor(b/this.N.Ya().g.aspectRatio());this.j=new Ib(b,c);this.i=C("div");K(this.i,{position:"absolute",backgroundColor:"white",top:0,left:0});this.ma=[];a.Da().s.i.appendChild(this.i);this.l=C("div");this.s=C("div");this.ma.push(I(this.l,"dblclick",r(this.nt,this)));a={overflow:"hidden",backgroundColor:"#fcfcfc",position:"absolute",border:"1px solid #ccc"};K(this.l,a);K(this.s,a);this.i.appendChild(this.l);this.i.appendChild(this.s); this.U=C("div");this.ka=C("div");this.l.appendChild(this.U);this.s.appendChild(this.ka);Tp(this)}n(Sp,Oj);function Tp(a){a.o&&a.o.Ka();a.O&&a.O.Ka();rf(a.U);rf(a.ka);kh(a.l,a.j);kh(a.s,a.j);a.o=Qp(a.N,new Ro(a.oa,a.j),a.U);Rp(a.N,a.o);a.ta=new Ko(!0);Vo(a.o,a.ta);a.O=Qp(a.N,new Ro(a.ya,a.j),a.ka);a.Aa=new Ko(!1);Rp(a.N,a.O);Vo(a.O,a.Aa)}f=Sp.prototype;f.setPosition=function(a){a.x<0&&(a.x=0);Pg(this.i,a)};f.nt=function(a){a.preventDefault();a.stopPropagation();this.N.mb("previous")}; f.wa=function(a){K(this.i,{display:a?"":"none"})};f.Lc=function(){K(this.l,{left:0,top:0});K(this.s,{left:this.j.width+"px",top:0})};f.Id=function(){return kb([this.oa,this.ya],function(a){return!!a})};f.Ka=function(){this.o.Ka();this.O.Ka();for(var a;a=this.ma.pop();)pg(a);this.i.parentNode&&E(this.i)};function Up(a){return a*2};function Vp(a){this.N=a}n(Vp,dn);Vp.prototype.render=function(a){var b=new Sp(this.N,a.getSize().width);b.setPosition(a.Zc());b.Lc();b.wa(!0);return this.g=b};function Wp(a,b){var c=a.match(Xp);return c?Number(c[1])*b[c[2]]:Number(a)}var Xp=/^(-?\d+\.?\d*)([KMGTPEZYkmun]?)B?$/,Yp={"":1,n:1E-9,u:1E-6,m:.001,k:1E3,K:1E3,M:1E6,G:1E9,T:1E12,P:1E15,E:1E18,Z:1E21,Y:1E24},Zp={"":1,n:9.313225746154785E-10,u:9.5367431640625E-7,m:1/1024,k:1024,K:1024,M:1048576,G:1073741824,T:1099511627776,P:0x4000000000000,E:0x1000000000000000,Z:1.1805916207174113E21,Y:1.2089258196146292E24};function $p(a,b){var c=aq(a),d=aq(b);Rl(a)==0||Rl(b)==0?d="This is a preview. The total pages displayed will be limited.":typeof c!=="number"||typeof d!=="number"||c>=d||Math.abs(c-d)==1?d="Some pages are omitted from this book preview.":bq(a,b)?d="Page "+(--d+" is not part of this book preview."):(a=++c+"",d=--d+"",d="Pages "+a+" to "+d+" are not shown in this preview.");return d}function aq(a){a=a.Za();var b;/[^0-9]/.test(a)||Ub(a)?b=null:b=Tb(a,"B")?Wp(a,Zp):Wp(a,Yp);return b} function bq(a,b){a=aq(a);b=aq(b);return a+1-(b-1)==0};function cq(a,b,c){Q.call(this);this.N=a;this.j=b;this.o=M(b).width;this.s=c;this.i=!1;this.g=wj()}n(cq,Q);cq.prototype.df=function(){return this.i};function dq(a,b){if(b!=a.i){a.i=b;var c=a.N.Da().s.i;N(c,!1);M(c);[t(eq,a.j,a.s,a.o,a.g,b),r(a.l,a),t(N,c,!0)].forEach(U)}}cq.prototype.l=function(){this.dispatchEvent("change")};function eq(a,b,c,d,e){var g=b.style.width;d=d?"right":"left";e?(b.style[d]="0",b.style.width=g+c):(b.style[d]="",b.style.width="");N(a,!e)};var fq=null;function gq(a,b){sg.call(this);this.i=fq;this.N=a;this.g=b;this.N.Ta().O||(this.ha(this.N,"pageturn",this.l),this.ha(this.g,"dispose",this.dispose))}n(gq,sg); gq.prototype.l=function(){var a=this.g.o.g.Id()[0]||new Wm,b=this.g.o.g.Id()[1]||new Wm,c=this.O,d=this.o,e=d?Rl(d):-1,g=Rl(a)||-1,h=Rl(b)||-1,k=Math.max(c?Rl(c):-1,e),l=Math.max(g,h);if(Math.abs(l-k)>this.g.dm){if(l-k>0){var m=k==e?d:c;var p=a}l-k<0&&(m=h!=-1?b:a,p=d);h-g>1&&(m=a,p=b);bq(m,p)||m===void 0||p===void 0||(a=$p(m,p),this.i.U(a),this.i.show(3E3))}};function hq(a){ln.call(this,a)}n(hq,ln);f=hq.prototype;f.zd=function(a){ln.prototype.zd.call(this,a);a&&a.additional_info&&(this.g=a.additional_info["[NewspaperJSONPageInfo]"],this.g.articles&&(this.i={},v(this.g.articles,function(b){var c=b.aid;c&&(this.i[c]=new xo(b))},this)))};f.we=function(){return this.l(32)?"Front Cover":this.l(64)?"Back Cover":ln.prototype.we.call(this)};f.Ik=function(){return{width:"w"}};f.Fi=ba(9);f.Qn=function(){return this.O};function iq(a){In.call(this);In.apply(this,arguments);this.s();I(this,"update",r(this.s,this))}n(iq,In);function jq(a,b){var c={};v(b.page,function(e){var g=Ul(this,e.pid);g&&qn(g,e);c[e.pid]=!0},a);b=Sl(a);var d=kb(b,function(e){return!!c[e.Ja()]||!!this.O[e.Ja()]},a);b.length!=d.length&&a.j(d)}iq.prototype.Sk=function(a){this.o?jq(this,a):In.prototype.Sk.call(this,a)}; iq.prototype.s=function(){var a={},b=0;v(Sl(this),function(h){var k=Rl(h);a[k]=h;b=Math.max(b,k)});for(var c=[],d=-1;d<=b;d+=2){var e=a[d],g=a[d+1];(e||g)&&c.push([e,g])}this.U=c};iq.prototype.l=hq;function kq(a){this.o=a.Seller;this.La=a.Url;this.i=a.TrackingUrl;this.g=a.Price;this.j=a.IsInStock;this.l=a.IsPublisher};function lq(a){this.j=a.page_id;this.i=a.page_number||"";this.g=a.snippet_text||"";this.l=a.page_url}lq.prototype.Ja=function(){return this.j};lq.prototype.yc=function(){return this.l};function mq(a){this.g=a;this.g.number_of_results>0?(this.tb=lb(this.g.search_results,function(b){return new lq(b)},this),this.id=this.g.search_results[0].page_id+nq(this)+this.g.search_results[this.g.number_of_results-1].page_id):this.tb=[]}function oq(a){return a.g.spellresults&&a.g.spellresults.correct_spell?a.g.spellresults.correct_spell:null}function nq(a){return a.g.search_query_escaped};function pq(a,b){W.call(this);this.o=a;this.s=b;this.l=b.j;this.j=b.g;this.i=C("DIV");this.i.className="separator-container";this.o.appendChild(this.i);a=C("TABLE");a.className="separator-outer-table";this.i.appendChild(a);var c=a.insertRow(-1).insertCell(-1);c.align="center";var d=C("DIV");d.className="separator-background";c.appendChild(d);c=C("TABLE");c.className="separator-inner-table";d.appendChild(c);c.align="center";if(b.i()){var e=A("gb-mobile-menu-pubinfo");if(e){b=Ze("IMG",e);if(b.length== 1){b=b[0].cloneNode(!0);var g=c.insertRow(-1).insertCell(-1);uf(g,b,0);O(g,"separator-message");O(g,"separator-pubinfo-message")}b=$p(this.l,this.j);e=Gf(e);c=c.insertRow(-1).insertCell(-1);g=C("SPAN");g.className="separator-text";c.appendChild(g);var h=this.s;h.i&&h.l?x(g,z(e)):x(g,z(b+"
"+e));O(c,"separator-message");O(c,"separator-pubinfo-message")}O(a,"separator-pubinfo");O(d,"separator-pubinfo")}else a=c.insertRow(-1).insertCell(-1),O(a,"separator-message"),a.textContent=$p(this.l,this.j); jh(this.i,!0);V(this.i)}n(pq,Oj);pq.prototype.kb=function(a){L(this.i,a)};pq.prototype.setPosition=function(a){Pg(this.i,a)};pq.prototype.Ka=function(){E(this.i)};function qq(a,b,c,d){this.xj=this.Rk=10;this.Yh=this.Zh=20;b=Math.floor((b-20)/(100+this.Rk));d&&b>2&&(b-=b%2);Co.call(this,b);Sl(a);a=lb(Sl(a),function(e){e=new Ni(e);var g=e.getSize();g.width=100;e.kb(g);return e});c&&(c=a[0].getSize(),d=new zi,d.kb(c),this.Na(d));v(a,r(this.Na,this));Ji(this)}u(qq,Co);function rq(a,b){gp.call(this,b);this.yb=a;this.g.ha(a,"pagechange",this.Ld);this.g.ha(this.yb,"searchupdate",this.Pk);if(a=A("subscription-bar"))this.g.ha(this,"scrolldown",t(this.Dk,a)),this.g.ha(this,"scrollup",t(this.Bs,a))}u(rq,gp);f=rq.prototype;f.Id=function(){var a=this.oc.Hd(),b=[];this.ka&&(a=this.ka.Nh(a)[0]||[]);v(a,function(c){c instanceof Ni&&b.push(c.Ca())});return b};f.Uf=function(a){this.Rf(!1,!1);this.Ke(this.ng(a))}; f.Je=function(a){var b=[];this.Bb().Hf()=="fixed_width"&&b.push(this.getSize().width);this.Wd&&(a=Gn(this.Wd(),this.Bb().s(),a,b))&&this.Uf(a)};f.ue=function(){this.Rf(!0,!1);var a=this.getSize().width;this.Ke(this.ng(a))};f.af=ba(10);f.Rf=function(a,b){this.og=a;this.Ei=b};f.resize=function(){if(this.og)this.ue();else{var a=this.Bb().s();a&&this.Uf(a)}};f.Ke=function(a){var b=this.Bb();this.Qc(a);b&&(a=Tj(new Sj(b,a),this.Gc()),(a=this.De(a))&&this.Ad(a))};f.Ld=function(){this.Ah||this.Kd(this.yb.Ca())}; f.Kd=function(a){this.oc.xc&&(a=this.oc.xc(a))&&this.Rc(new w(Math.round(a.Ud()),Math.round(a.ad())))};f.Pk=function(){sq&&(this.Jk().Ka(),this.ta&&this.ta(),this.Zb())};var sq=!0;function tq(a,b){this.Ba=a;this.g=b}n(tq,dn);tq.prototype.render=function(a){var b=this.g(),c=a.Ca(),d=this.Ba.Wd();d=gb(d.tf)/a.getSize().width;var e=a.getSize();b.aj=e.width;b.Dg=e.height;e=a.getSize().clone();e.width*=d;e.height*=d;b.Ut=e.width;b.Rt=e.height;b.setPosition(a.Ud(),a.ad());b.hb(c);b.Lc();return b};function uq(){};function vq(a){this.Ba=a}u(vq,uq);vq.prototype.Hk=function(a){var b=this.Nh(a);a=b[0]||[];b=b[1]||[];b.sort(t(wq,this.Ba.Gc()));var c=[];wb(c,a,b);return c};function wq(a,b,c){return Bg(Dg(Ai(b)),a)-Bg(Dg(Ai(c)),a)}vq.prototype.Nh=function(a){var b=kp(this.Ba),c=new Cg(b.left-800,b.top-800,b.width+1600,b.height+1600);return Bb(a,function(d){d=Ai(d);if(Gg(c,d))return Gg(b,d)?0:1})};function xq(a,b){this.Ba=b;this.N=a}n(xq,vq);xq.prototype.Hk=function(a){var b=vq.prototype.Hk.call(this,a),c=this.N.Ca();if(c){var d=[],e=this.N.Ya();v([1,-1],function(){var g=Tl(e,c.Ja(),1);g&&d.push(g)});v(a,function(g){g.Ca&&pb(d,g.Ca())&&qb(b,g)})}return b};function yq(a,b,c){W.call(this);this.N=a;this.Ba=b;this.j=C("div");V(this.j,!0);K(this.j,{position:"absolute",display:"none"});c.appendChild(this.j);this.o=C("div");V(this.o,!0);K(this.o,{position:"absolute"});this.j.appendChild(this.o);this.s=C("div");V(this.s,!0);this.j.appendChild(this.s);this.O=C("div");V(this.O,!0);this.s.appendChild(this.O);this.ab()}u(yq,Oj);f=yq.prototype; f.Lc=function(){var a=this.aj-2,b=this.Dg-2,c=this.Ut-2,d=this.Rt-2;K(this.s,{backgroundColor:"#cccccc",position:"absolute"});Pg(this.s,0,0);L(this.s,this.aj,this.Dg);K(this.O,{overflow:"hidden",backgroundColor:"#fcfcfc",position:"absolute"});Pg(this.O,1,1);L(this.O,a,b);this.show();var e=this.N;a=Qp(e,new So(this.Ca(),new Ib(a,b),new Ib(c,d)),this.O);a instanceof bp?Rp(e,a):a instanceof mp&&a instanceof mp&&Vo(a,new np(e.Va()));this.i=a};f.ab=function(){N(this.j,!1)};f.show=function(){N(this.j,!0)}; f.jc=ba(5);f.Ka=function(){this.i&&this.i.Ka();E(this.j)};f.setPosition=function(a,b){Pg(this.j,a,b)};f.ad=function(){return Rg(this.j).x};f.Ud=function(){return Rg(this.j).y};f.hb=function(a){this.l=a};f.Ca=function(){return this.l};f.Ab=function(){return this.Dg};f.qb=function(){return this.aj};function zq(a){return a+2}f.getSize=function(){return new Ib(this.aj,this.Dg)};function Aq(a){W.call(this);rf(a);V(a);this.l=a;this.i=C("div");V(this.i,!0);wj()&&(ef(a,{dir:"ltr"}),ef(this.i,{dir:"rtl"}));a.appendChild(this.i)}u(Aq,W);function Bq(a,b){Aq.call(this,b);this.Ba=a;this.g.ha(b,"scroll",this.s);K(b,"position","relative");K(this.i,"position","absolute");this.j=C("div");O(this.j,"scroll-background");V(this.j,!0);b.appendChild(this.j);this.j.appendChild(this.i)}n(Bq,Aq);function hp(a){var b=a.ka;a.U&&b&&(K(a.i,"left",Math.floor(Math.max(0,a.Ba.s.l.clientWidth-b.width)/2)+"px"),K(a.j,"height",b.height+"px"))}Bq.prototype.ma=function(){this.o=!1;this.s()}; Bq.prototype.s=function(){if(!this.o){var a=this.Ba.Cb;if(a){a=a.clone();var b=this.l;b=new w(b.scrollLeft,b.scrollTop);Fb(a,b)||(this.O=!0,this.Ba.Ad(b),this.O=!1)}}};function Cq(a){var b=a.vb(),c=new Bq(this,b);K(b,"overflow","auto");K(b,{overflowX:"auto",overflowY:"scroll"});O(b,"overflow-scrolling");ef(b,{dir:"ltr"});rq.call(this,a,c);jp(this,new xq(a,this));ip(this,Dq(this));var d=a.Ya(),e=a.Ta().Hf();this.o=a.Ta().O?function(g){return new Eo(d,e,g)}:a.Ta().ma?function(g){return new Eo(d,e,g,!0,a.Ta().ma)}:function(g){return new Eo(d,e,g,!0)};b=this.yb.Ta();b.Hf()=="fixed_height"?(b=b.Wd(),b=b[Math.floor(b.length/2)]+2):b=Eq(b)+2;this.Uf(b);this.g.ha(this.yb, "pagesupdate",this.vt);this.g.ha(this.yb,"pagemodechange",this.jq);this.g.ha(this,"move",this.Zb);this.g.ha(this,"move",this.Dv)}u(Cq,rq);f=Cq.prototype;f.Hc=function(){this.Je(1)};f.Wc=function(){this.Je(-1)};f.Wd=function(){var a=this.yb.Ta(),b=vb(a.Wd());a.Hf()=="fixed_width"&&(a=this.yb.Ta().Ha)&&a-gb(b)>150&&(a<1500?qb(b,a):qb(b,1500));return new Fn(lb(b,zq))};f.ng=function(a){return this.o(a)}; f.getSize=function(){if(this.j.hasChildNodes()){var a=mh(this.j.childNodes[0]).width;a=new Ib(a,this.i.height)}else a=this.i;return a};function Dq(a){var b=new Cn;Dn(b,Ni,new tq(a,t(Di,yq,a.yb,a,a.s.i)));Dn(b,Ao,new Go(a.yb,function(c){return new pq(a.s.i,c)}));return b}f.Dv=function(){if(this.ya){var a=Gi(this.oc,this.Gc().y);a&&a.Ca&&(a=a.Ca(),this.yb.Ca()!=a&&(this.Ah=!0,this.yb.wd(a.Ja()),this.Ah=!1))}this.ya=!0}; f.vt=function(){var a=this.yb.Ca(),b=this.yb.Ya(),c=Ul(b,a.Ja());if(!c)a:{c=Rl(a);b=Sl(b);for(a=b.length-1;a>=0;a--){var d=b[a];if(Rl(d)<=c){c=d;break a}}c=null}a=this.Cb;b=this.Bb();d=b.xc(c);a=Hb(a,d.Zc());b=this.ng(b.s());c=b.xc(c).Zc();c=new w(c.x+a.x,c.y+a.y);this.Qc(b);this.Ad(c)};f.jq=function(){this.O.Ka();this.Zb()}; f.Bk=function(a){if(a.Qn&&a.O){var b=a.O;if(a.ka!=null)var c=a.ka;else a.ka=new zo(this.s.i),c=a.ka;c.g=this.s.i;if(A("focus_article_div")){var d=A("focus_article_div");E(d)}d=this.Bb().xc(a);a=d.qb()/a.he();if(b.Ff()&&(b=b.Ff())){var e=b[0];if(e&&e.length==4){b=a*e[0]+d.Ud();d=a*e[1]+d.ad();var g=a*e[2];a*=e[3];e=C("DIV");e.setAttribute("id","focus_article_div");V(e,!0);fh(e,.3);K(e,{position:"absolute",left:b+"px",top:d+"px",width:g+"px",height:a+"px",cursor:"pointer",backgroundColor:"#36C",border:"2px solid #00F"}); c.g.appendChild(e)}}}};function Fq(a,b,c,d,e){W.call(this);this.N=a;this.Ba=b;this.l=c;var g=C("div");K(g,{position:"absolute"});e=e.width-2;Pg(g,d.x+(wj()?e:0),d.y);b.s.i.appendChild(g);this.i=g;b=Math.floor(e/Oi(c));g=new Ib(e,b);this.j=C("div");this.i.appendChild(this.j);K(this.j,{padding:"1px",position:"absolute"});this.o();b=C("div");this.j.appendChild(b);K(b,{overflow:"hidden",backgroundColor:"#fcfcfc"});L(b,g);this.j.appendChild(b);d=C("IMG");d.title=c.we();this.O=d;e=R;var h=new R(c.s.oo);S(h,"pg",c.Ja());c.lb.sig&& S(h,"sig",c.lb.sig);e=new e(h.toString());S(e,"zoom","1");S(e,"img","1");S(e,"w",g.width);if(g=this.N.Ta().jd)S(e,"imgtk",g),S(e,"jtp",Rl(c));d.src=e.toString();b.appendChild(d);K(this.j,"cursor","pointer");this.g.ha(this.j,"click",this.s);this.g.ha(a,"pagechange",this.o)}n(Fq,Oj);Fq.prototype.o=function(){var a=!1,b=this.N.Ca();b&&b==this.l&&(a=!0);K(this.j,"backgroundColor",a?"#6B90DA":"#ccc")};Fq.prototype.s=function(){this.N.Ub(Cq);this.N.hb(this.l);Gq.dispatchEvent("click")}; Fq.prototype.Ka=function(){an(this.O);E(this.i)};var Gq=new Q;function Hq(a,b){this.N=a;this.Ba=b}n(Hq,dn);Hq.prototype.render=function(a){return new Fq(this.N,this.Ba,a.Ca(),a.Zc(),a.getSize())};function Iq(a){var b=a.vb();K(b,{overflow:"hidden"});var c=new Bq(this,b);rq.call(this,a,c);this.g.ha(this,"move",this.Zb);K(b,{overflow:"auto"});ip(this,Jq(this));this.Qc(Kq(this));jp(this,new vq(this));U(r(this.Zb,this),0);this.g.ha(this,"resize",this.o);var d=A("subscription-bar");d&&(this.Dk(d),U(function(){N(d,!1)},600))}u(Iq,rq);Iq.prototype.Kd=function(a){a=this.Bb().xc(a).Zc();this.Ad(new w(void 0,a.y-40))}; function Kq(a){var b=a.yb.Ta().uc;return new qq(a.yb.Ya(),hn()?Math.min(a.getSize().width,1120):a.getSize().width,b,b)}Iq.prototype.o=function(){this.Qc(Kq(this));this.Kd(this.yb.Ca())};function Jq(a){var b=new Cn;Dn(b,Ni,new Hq(a.yb,a));return b};function Lq(a){this.tc=a.Title;this.i=a.Pid;this.g=a.PgNum}Lq.prototype.Za=function(){return this.tc};Lq.prototype.getId=function(){return this.i};function Mq(a,b,c,d){Vf.call(this,d);this.type="key";this.keyCode=a;this.charCode=b;this.repeat=c}u(Mq,Vf);function Nq(a,b){Q.call(this);a&&this.attach(a,b)}u(Nq,Q);f=Nq.prototype;f.ua=null;f.Ui=null;f.Zk=null;f.Vi=null;f.Nc=-1;f.Ne=-1;f.Gj=!1; var Oq={3:13,12:144,63232:38,63233:40,63234:37,63235:39,63236:112,63237:113,63238:114,63239:115,63240:116,63241:117,63242:118,63243:119,63244:120,63245:121,63246:122,63247:123,63248:44,63272:46,63273:36,63275:35,63276:33,63277:34,63289:144,63302:45},Pq={Up:38,Down:40,Left:37,Right:39,Enter:13,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"U+007F":46,Home:36,End:35,PageUp:33,PageDown:34,Insert:45},Qq=Md&&Jd;f=Nq.prototype; f.kq=function(a){Kd&&(this.Nc==17&&!a.ctrlKey||this.Nc==18&&!a.altKey||Md&&this.Nc==91&&!a.metaKey)&&(this.Ne=this.Nc=-1);this.Nc==-1&&(a.ctrlKey&&a.keyCode!=17?this.Nc=17:a.altKey&&a.keyCode!=18?this.Nc=18:a.metaKey&&a.keyCode!=91&&(this.Nc=91));Ch(a.keyCode,this.Nc,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey)?(this.Ne=Dh(a.keyCode),Qq&&(this.Gj=a.altKey)):this.handleEvent(a)};f.lq=function(a){this.Ne=this.Nc=-1;this.Gj=a.altKey}; f.handleEvent=function(a){var b=a.Mb,c=b.altKey;if(Kd&&a.type=="keypress"){var d=this.Ne;var e=b.charCode>=0&&b.charCode<63232&&Bh(d)?b.charCode:0}else a.type=="keypress"?(Qq&&(c=this.Gj),b.keyCode==b.charCode?b.keyCode<32?(d=b.keyCode,e=0):(d=this.Ne,e=b.charCode):(d=b.keyCode||this.Ne,e=b.charCode||0)):(d=b.keyCode||this.Ne,e=b.charCode||0),Md&&e==63&&d==224&&(d=191);var g=d=Dh(d);d?d>=63232&&d in Oq?g=Oq[d]:d==25&&a.shiftKey&&(g=9):b.keyIdentifier&&b.keyIdentifier in Pq&&(g=Pq[b.keyIdentifier]); if(!Jd||a.type!="keypress"||Ch(g,this.Nc,a.shiftKey,a.ctrlKey,c,a.metaKey))a=g==this.Nc,this.Nc=g,b=new Mq(g,e,a,b),b.altKey=c,this.dispatchEvent(b)};f.V=function(){return this.ua};f.attach=function(a,b){this.Vi&&Rq(this);this.ua=a;this.Ui=I(this.ua,"keypress",this,b);this.Zk=I(this.ua,"keydown",this.kq,b,this);this.Vi=I(this.ua,"keyup",this.lq,b,this)};function Rq(a){a.Ui&&(pg(a.Ui),pg(a.Zk),pg(a.Vi),a.Ui=null,a.Zk=null,a.Vi=null);a.ua=null;a.Nc=-1;a.Ne=-1}f.qa=function(){Nq.na.qa.call(this);Rq(this)};function Sq(){}var Tq;Sa(Sq);var Uq={button:"pressed",checkbox:"checked",menuitem:"selected",menuitemcheckbox:"checked",menuitemradio:"checked",radio:"checked",tab:"selected",treeitem:"selected"};f=Sq.prototype;f.ag=function(){};f.Kc=function(a){return a.g.Ma("DIV",Vq(this,a).join(" "),a.wc())};f.Ec=function(a){return a};function Wq(a,b,c){(a=a.V?a.V():a)&&(c?th:vh)(a,[b])}f.fi=function(){return!0}; f.Ob=function(a,b){b.id&&a.Fg(b.id);var c=this.Ec(b);c&&c.firstChild?Xq(a,c.firstChild.nextSibling?vb(c.childNodes):c.firstChild):a.eg=null;var d=0,e=this.Pa(),g=this.Pa(),h=!1,k=!1,l=vb(qh(b));l.forEach(function(m){h||m!=e?k||m!=g?d|=this.Ji(m):k=!0:(h=!0,g==e&&(k=!0));this.Ji(m)==1&&Df(c)&&Ff(c,!1)},this);a.je=d;h||(l.push(e),g==e&&(k=!0));k||l.push(g);(a=a.Gd)&&l.push.apply(l,a);h&&k&&!a||rh(b,l.join(" "));return b};f.hi=function(a){Pk(a)&&this.hm(a.V(),!0);a.isEnabled()&&this.Sg(a,a.isVisible())}; function Yq(a,b,c){if(a=c||a.ag())c=b.getAttribute("role")||null,a!=c&&Xj(b,a)}function Zq(a,b,c){var d=b.Fa;d!=null&&a.Kh(c,d);b.isVisible()||X(c,"hidden",!b.isVisible());b.isEnabled()||a.de(c,1,!b.isEnabled());$q(b,8)&&a.de(c,8,ar(b,8));$q(b,16)&&a.de(c,16,ar(b,16));$q(b,64)&&a.de(c,64,b.hd())}f.Kh=function(a,b){bk(a,b)};f.Hj=function(a,b){jh(a,!b,!0)};f.hm=function(a,b){Wq(a,this.Pa()+"-rtl",b)};f.fm=function(a){var b;return $q(a,32)&&(b=a.V())?Df(b):!1}; f.Sg=function(a,b){var c;if($q(a,32)&&(c=a.V())){if(!b&&ar(a,32)){try{c.blur()}catch(d){}ar(a,32)&&a.ii(null)}Df(c)!=b&&Ff(c,b)}};f.wa=function(a,b){N(a,b);a&&X(a,"hidden",!b)};f.Sc=function(a,b,c){var d=a.V();if(d){var e=this.kh(b);e&&Wq(a,e,c);this.de(d,b,c)}};f.de=function(a,b,c){Tq||(Tq={1:"disabled",8:"selected",16:"checked",64:"expanded"});b=Tq[b];var d=a.getAttribute("role")||null;d&&(d=Uq[d]||b,b=b=="checked"||b=="selected"?d:b);b&&X(a,b,c)}; f.dg=function(a,b){var c=this.Ec(a);c&&(rf(c),b&&(typeof b==="string"?H(c,b):(a=function(d){if(d){var e=Xe(c);c.appendChild(typeof d==="string"?e.createTextNode(d):d)}},Array.isArray(b)?b.forEach(a):!Ua(b)||"nodeType"in b?a(b):vb(b).forEach(a))))};f.Pa=function(){return"goog-control"};function Vq(a,b){var c=a.Pa(),d=[c],e=a.Pa();e!=c&&d.push(e);c=b.je;for(e=[];c;){var g=c&-c;e.push(a.kh(g));c&=~g}d.push.apply(d,e);(a=b.Gd)&&d.push.apply(d,a);return d}f.kh=function(a){this.i||br(this);return this.i[a]}; f.Ji=function(a){if(!this.oa){this.i||br(this);var b=this.i,c={},d;for(d in b)c[b[d]]=d;this.oa=c}a=parseInt(this.oa[a],10);return isNaN(a)?0:a};function br(a){var b=a.Pa();a.i={1:b+"-disabled",2:b+"-hover",4:b+"-active",8:b+"-selected",16:b+"-checked",32:b+"-focused",64:b+"-open"}};function cr(){}u(cr,Sq);Sa(cr);f=cr.prototype;f.ag=function(){return"button"};f.de=function(a,b,c){switch(b){case 8:case 16:X(a,"pressed",c);break;default:case 64:case 1:cr.na.de.call(this,a,b,c)}};f.Kc=function(a){var b=cr.na.Kc.call(this,a);this.nf(b,a.Xe());var c=a.ub();c&&this.rc(b,c);$q(a,16)&&this.de(b,16,ar(a,16));return b};f.Ob=function(a,b){b=cr.na.Ob.call(this,a,b);var c=this.ub(b);a.ya=c;a.U=this.Xe(b);$q(a,16)&&this.de(b,16,ar(a,16));return b};f.ub=function(){};f.rc=function(){}; f.Xe=function(a){return a.title};f.nf=function(a,b){a&&(b?a.title=b:a.removeAttribute("title"))};f.kc=function(a,b){var c=Pk(a),d=this.Pa()+"-collapse-left",e=this.Pa()+"-collapse-right",g=c?e:d;b&1?dr(a,g):er(a,g);c=c?d:e;b&2?dr(a,c):er(a,c)};f.Pa=function(){return"goog-button"};var fr={Yg:"mousedown",Zg:"mouseup",Xg:"mousecancel",Sv:"mousemove",Uv:"mouseover",Tv:"mouseout",Qv:"mouseenter",Rv:"mouseleave"};function gr(a,b){if(!a)throw Error("Invalid class name "+a);if(typeof b!=="function")throw Error("Invalid decorator function "+b);hr[a]=b}var ir={},hr={};function jr(a,b,c){Y.call(this,c);if(!b){for(b=this.constructor;b;){var d=Wa(b);if(d=ir[d])break;b=(b=Object.getPrototypeOf(b.prototype))&&b.constructor}b=d?typeof d.Hb==="function"?d.Hb():new d:null}this.j=b;this.eg=a!==void 0?a:null;this.Fa=null}u(jr,Y);f=jr.prototype;f.eg=null;f.je=0;f.Rh=39;f.zf=255;f.Qh=0;f.ji=!0;f.Gd=null;f.Ij=!0;f.im=null;function kr(a,b){a.Ra&&b!=a.Ij&&lr(a,b);a.Ij=b}f.od=function(){return this.j};function dr(a,b){b&&(a.Gd?pb(a.Gd,b)||a.Gd.push(b):a.Gd=[b],Wq(a,b,!0))} function er(a,b){b&&a.Gd&&rb(a.Gd,b)&&(a.Gd.length==0&&(a.Gd=null),Wq(a,b,!1))}f.Oa=function(){var a=this.j.Kc(this);this.ua=a;Yq(this.j,a,this.We());this.j.Hj(a,!1);this.isVisible()||this.j.wa(a,!1)};f.We=function(){return this.im};f.Mh=ba(2);f.Kh=function(a){this.Fa=a;var b=this.V();b&&this.j.Kh(b,a)};f.Gb=function(){return this.j.Ec(this.V())};f.ai=function(a){return this.j.fi(a)};f.Kb=function(a){this.ua=a=this.j.Ob(this,a);Yq(this.j,a,this.We());this.j.Hj(a,!1);this.ji=a.style.display!="none"}; f.Ia=function(){jr.na.Ia.call(this);Zq(this.j,this,this.ua);this.j.hi(this);if(this.Rh&-2&&(this.Ij&&lr(this,!0),$q(this,32))){var a=this.V();if(a){var b=this.l||(this.l=new Nq);b.attach(a);Z(this).ha(b,"key",this.Mc).ha(a,"focus",this.mq).ha(a,"blur",this.ii)}}}; function lr(a,b){var c=Z(a),d=a.V();b?(c.ha(d,fr.Yg,a.vf).ha(d,[fr.Zg,fr.Xg],a.ze).ha(d,"mouseover",a.ye).ha(d,"mouseout",a.Ok),a.wh!=Ci&&c.ha(d,"contextmenu",a.wh)):(c.Sa(d,fr.Yg,a.vf).Sa(d,[fr.Zg,fr.Xg],a.ze).Sa(d,"mouseover",a.ye).Sa(d,"mouseout",a.Ok),a.wh!=Ci&&c.Sa(d,"contextmenu",a.wh))}f.hc=function(){jr.na.hc.call(this);this.l&&Rq(this.l);this.isVisible()&&this.isEnabled()&&this.j.Sg(this,!1)}; f.qa=function(){jr.na.qa.call(this);this.l&&(this.l.dispose(),delete this.l);delete this.j;this.Gd=this.eg=null};f.wc=function(){return this.eg};function mr(a,b){a.j.dg(a.V(),b);a.eg=b}function Xq(a,b){a.eg=b}f.tg=function(){var a=this.wc();if(!a)return"";a=typeof a==="string"?a:Array.isArray(a)?a.map(If).join(""):Gf(a);return Xc(a)};f.isVisible=function(){return this.ji}; f.wa=function(a,b){return b||this.ji!=a&&this.dispatchEvent(a?"show":"hide")?((b=this.V())&&this.j.wa(b,a),this.isEnabled()&&this.j.Sg(this,a),this.ji=a,!0):!1};f.isEnabled=function(){return!ar(this,1)};f.nb=function(a){var b=this.getParent();b&&typeof b.isEnabled=="function"&&!b.isEnabled()||!nr(this,1,!a)||(a||(or(this,!1),this.Pc(!1)),this.isVisible()&&this.j.Sg(this,a),this.Sc(1,!a,!0))};f.Pc=function(a){nr(this,2,a)&&this.Sc(2,a)};f.isActive=function(){return ar(this,4)}; function or(a,b){nr(a,4,b)&&a.Sc(4,b)}f.Al=function(a){nr(this,8,a)&&this.Sc(8,a)};f.Qf=function(a){nr(this,16,a)&&this.Sc(16,a)};f.mj=function(a){nr(this,32,a)&&this.Sc(32,a)};f.hd=function(){return ar(this,64)};f.Nb=function(a){nr(this,64,a)&&this.Sc(64,a)};function ar(a,b){return!!(a.je&b)}f.Sc=function(a,b,c){c||a!=1?$q(this,a)&&b!=ar(this,a)&&(this.j.Sc(this,a,b),this.je=b?this.je|a:this.je&~a):this.nb(!b)};function $q(a,b){return!!(a.Rh&b)} f.Tb=function(a,b){if(this.Ra&&ar(this,a)&&!b)throw Error("Component already rendered");!b&&ar(this,a)&&this.Sc(a,!1);this.Rh=b?this.Rh|a:this.Rh&~a};function pr(a,b){return!!(a.zf&b)&&$q(a,b)}function nr(a,b,c){return $q(a,b)&&ar(a,b)!=c&&(!(a.Qh&b)||a.dispatchEvent(Ik(b,c)))&&!a.Ed}f.ye=function(a){!qr(a,this.V())&&this.dispatchEvent("enter")&&this.isEnabled()&&pr(this,2)&&this.Pc(!0)};f.Ok=function(a){!qr(a,this.V())&&this.dispatchEvent("leave")&&(pr(this,4)&&or(this,!1),pr(this,2)&&this.Pc(!1))}; f.wh=Ci;function qr(a,b){return!!a.relatedTarget&&Af(b,a.relatedTarget)}f.vf=function(a){this.isEnabled()&&(pr(this,2)&&this.Pc(!0),Wf(a)&&(pr(this,4)&&or(this,!0),this.j&&this.j.fm(this)&&this.V().focus()));Wf(a)&&a.preventDefault()};f.ze=function(a){this.isEnabled()&&(pr(this,2)&&this.Pc(!0),this.isActive()&&this.kf(a)&&pr(this,4)&&or(this,!1))}; f.kf=function(a){pr(this,16)&&this.Qf(!ar(this,16));pr(this,8)&&this.Al(!0);pr(this,64)&&this.Nb(!this.hd());var b=new Sf("action",this);a&&(b.altKey=a.altKey,b.ctrlKey=a.ctrlKey,b.metaKey=a.metaKey,b.shiftKey=a.shiftKey,b.tl=a.tl,b.timeStamp=a.timeStamp);return this.dispatchEvent(b)};f.mq=function(){pr(this,32)&&this.mj(!0)};f.ii=function(){pr(this,4)&&or(this,!1);pr(this,32)&&this.mj(!1)}; f.Mc=function(a){return this.isVisible()&&this.isEnabled()&&this.Xd(a)?(a.preventDefault(),a.stopPropagation(),!0):!1};f.Xd=function(a){return a.keyCode==13&&this.kf(a)};if(typeof jr!=="function")throw Error("Invalid component class "+jr);if(typeof Sq!=="function")throw Error("Invalid renderer class "+Sq);var rr=Wa(jr);ir[rr]=Sq;gr("goog-control",function(){return new jr(null)});function sr(){}u(sr,cr);Sa(sr);f=sr.prototype;f.ag=function(){};f.Kc=function(a){kr(a,!1);a.zf&=-256;a.Tb(32,!1);return a.g.Ma("BUTTON",{"class":Vq(this,a).join(" "),disabled:!a.isEnabled(),title:a.Xe()||"",value:a.ub()||""},a.tg()||"")};f.fi=function(a){return a.tagName=="BUTTON"||a.tagName=="INPUT"&&(a.type=="button"||a.type=="submit"||a.type=="reset")};f.Ob=function(a,b){kr(a,!1);a.zf&=-256;a.Tb(32,!1);if(b.disabled){var c=this.kh(1);O(b,c)}return sr.na.Ob.call(this,a,b)}; f.hi=function(a){Z(a).ha(a.V(),"click",a.kf)};f.Hj=function(){};f.hm=function(){};f.fm=function(a){return a.isEnabled()};f.Sg=function(){};f.Sc=function(a,b,c){sr.na.Sc.call(this,a,b,c);(a=a.V())&&b==1&&(a.disabled=c)};f.ub=function(a){return a.value};f.rc=function(a,b){a&&(a.value=b)};f.de=function(){};function tr(a,b,c){jr.call(this,a,b||sr.Hb(),c)}u(tr,jr);f=tr.prototype;f.ub=function(){return this.ya};f.rc=function(a){this.ya=a;this.od().rc(this.V(),a)};f.Xe=function(){return this.U};f.nf=function(a){this.U=a;this.od().nf(this.V(),a)};f.kc=function(a){this.od().kc(this,a)};f.qa=function(){tr.na.qa.call(this);delete this.ya;delete this.U};f.Ia=function(){tr.na.Ia.call(this);if($q(this,32)){var a=this.V();a&&Z(this).ha(a,"keyup",this.Xd)}}; f.Xd=function(a){return a.keyCode==13&&a.type=="key"||a.keyCode==32&&a.type=="keyup"?this.kf(a):a.keyCode==32};gr("goog-button",function(){return new tr(null)});function ur(a,b,c,d){d=d===void 0?!1:d;W.call(this);this.N=a;this.o=b;this.j=this.N.Ta().li;this.U=!!this.N.Ta().li;this.ma=!!this.N.Ta().Th;this.l=hn(c);this.s=d;if(this.U){a:{a=this.N.Ya();for(b=0;b=Rl(c)&&e<=d){a=b;break a}}a=-1}this.ka=a}}n(ur,W);f=ur.prototype; f.render=function(a,b){b=b===void 0?2:b;this.i=C("div");document.body.appendChild(this.i);U(r(this.nq,this));this.oa=a;this.U?(this.s&&(this.O=b),vr(this)):this.ma?(O(this.i,"base-image-toc-div"),a=this.N.Ta().Th,(b=Ul(this.N.Ya(),a))&&wr(this,b),this.N.Ta().Jb>1&&(a=Tl(this.N.Ya(),a,1))&&wr(this,a),this.ki()):this.dispose()}; f.nq=function(){var a=this;this.g.ha(document,"click",this.dispose);this.g.ha(document,"keydown",function(b){b.keyCode!=13&&b.keyCode!=27||a.dispose()});this.g.ha(this.N,"resize",this.ki)};function wr(a,b){var c=new Ib(128,0),d=B("IMG",{width:128});O(d,"toc-page-image");a.g.ha(d,"click",function(){a.N.hb(b)});Jd&&wj()&&a.g.ha(d,"load",a.ki);b.qd(c)?a.fp(d,b,c):Jm(b,t(a.fp,d,b,c));a.i.appendChild(d)}f.fp=function(a,b,c){ef(a,{src:b.qd(c)})}; function vr(a){var b=B("DIV",{"class":"toc-div"}),c;v(a.j,function(d,e){d=xr(a,d,e);b.appendChild(d);e==a.ka&&(c=d)});c&&U(function(){var d=c;d.offsetTop+M(d).height>300&&(d=d.previousElementSibling!==void 0?d.previousElementSibling:yf(d.previousSibling,!1))&&(a.i.scrollTop=d.offsetTop);c.focus()});a.i.appendChild(b);M(a.i).height>300&&(K(a.i,"height","300px"),O(a.i,"scroll-toc-div-wide"));O(a.i,"scroll-toc-div");a.ki();a.i.tabIndex=-1;Xj(a.i,"dialog");a.i.focus()} f.ki=function(){var a=this.l?8:13,b=this.l?9:12,c;this.o instanceof tr?c=this.o.V():c=this.o;Bp(c,a,this.i,b,new w(0,-this.oa))}; function xr(a,b,c){var d=b.getId(),e=Ul(a.N.Ya(),d);d=b.g;var g=a.j[c+1]?"":"-last",h="toc-middle-cell"+g,k="toc-right-cell"+g;a.s?g=B("A",{"class":e?"toc-row":"toc-disabled-row"}):(g=B("DIV",{"class":e?"toc-row":"toc-disabled-row"}),Xj(g,"button"),Ff(g,!0));var l=C("div");O(l,"goog-inline-block");O(l,"toc-left-cell");c==a.ka&&(O(l,wj()?"SPRITE_toc_selected_item_arrow_right":"SPRITE_toc_selected_item_arrow_left"),O(g,"toc-row-selected"));c=C("div");O(c,"goog-inline-block");O(c,h);Jd&&!ae("1.9")&& K(c,"overflow","hidden");var m=b.Za(),p=a.l?m:fd(m,35);x(c,z(p));a.l&&(c.title=m);m=C("div");O(m,"goog-inline-block");O(m,k);x(m,z(Ub(id(d))?" ":d));g.appendChild(l);g.appendChild(c);g.appendChild(m);e?a.s?(d=new R(window.location.href),S(ei(ei(d,"pg"),"printsec"),"jtp",b.g),a.O&&S(ei(d,"zoom"),"zoom",a.O),a.N.Va().getQuery()||ei(ei(d,"dq"),"num"),Cc(g,d.toString())):(a.g.ha(g,"click",function(){a.N.hb(e)}),a.g.ha(g,"keydown",function(y){y.keyCode==13&&a.N.hb(e)})):(uh(c,h),O(c,"toc-middle-disabled-cell"), uh(m,k),O(m,"toc-right-disabled-cell"),X(g,"disabled",!0));return g}f.qa=function(){W.prototype.qa.call(this);E(this.i);this.o.focus()};function yr(a){Bo.call(this,1);var b=new Ho;b.kb(a);this.Na(b);Ji(this)}n(yr,Bo);yr.prototype.lh=function(){return this.g[0]};yr.prototype.s=function(){return this.qb()||0};yr.prototype.Hf=function(){return"fixed_width"};function zr(a){var b=a.vb(),c=new Bq(this,b);K(b,{overflow:"hidden"});rq.call(this,a,c);this.o=new Vp(a);b=new Cn;Dn(b,Ho,this.o);this.O=b;b=a.Ya().g.aspectRatio();c=this.getSize();b=this.ng(Math.min(Math.floor(c.height*b)*2,c.width));this.Qc(b);this.ya=new gq(a,this);this.g.ha(this.yb,"pagemodechange",this.oq);U(this.Zb,0,this)}u(zr,rq);f=zr.prototype;f.Wd=function(){var a=ub(Ar,this.yb.Ta().Wd());return new Fn(lb(a,Up))};f.Ke=function(a){zr.na.Ke.call(this,a);this.O.Ka();this.Zb()};f.Hc=function(){this.Je(1)}; f.Wc=function(){this.Je(-1)};f.oq=function(){this.O.Ka();this.Zb()};f.dm=2;f.ng=function(a){this.getSize();var b=this.yb.Ya().g.aspectRatio();return new yr(new Ib(a,Math.floor(Math.floor(a/2)/b)))};var Ar=[180,220,280]; zr.prototype.Ld=function(){var a=Br(this,this.yb.Ca()),b=this.o.g;if(b){var c=this.ya,d=b.Id();c.o=d[0];c.O=d[1];c=a[0];d=a[1];var e=!0;a=!0;b.oa=c;b.ya=d;Tp(b);if(c){if(c.l(64)||d==void 0)a=!1}else b.o.Cl();if(d){if(d.l(32)||c==void 0)e=!1}else b.O.Cl();c=e;d=a?"":"hidden";K(b.l,"visibility",c?"":"hidden");K(b.s,"visibility",d);c=c&&a;b.ta.wa(c);b.Aa.wa(c)}this.dispatchEvent("pagechange")};zr.prototype.Id=function(){return this.o.g.Id()}; function Br(a,b){return nb(a.yb.Ya().U,function(c){return pb(c,b)})}zr.prototype.Zb=function(){zr.na.Zb.call(this);this.Ld()};zr.prototype.oa=function(a,b){var c=this.yb.Ya().U;a=Rl(a);for(var d,e,g=0;g=Rl(e[0]||e[1])&&a0?g-b:g;break}}e=h}return(b=c[typeof d==="number"?d+b:0])?b[0]||b[1]:null};function Cr(a){this.tc=a.title||"";this.O=!!a.fullview;this.Th=a.table_of_contents_page_id||"";this.Jb=a.num_toc_pages||"";this.U=a.initial_zoom_width_override;this.Ha=a.max_resolution_image_width;this.uc=!!a.paired_thumbnails;this.jd=a.thumbnail_token||"";this.La=a.containing_bookshelves||[];this.ya=a.volume_id||"";this.ac=a.other_issues_query||"";this.Wa=!!a.is_browsable;this.Fb=!!a.is_public_domain;a.last_page&&(this.ma=new ln(a.last_page));this.g=new Ib(a.page_width,a.page_height);this.ka=a.is_ebook|| !1;var b=a.additional_info,c={};b&&(c=b["[JsonBookInfo]"]);c.BuyLinks&&(this.s=lb(c.BuyLinks,function(d){return new kq(d)},this));this.Ea=c.AboutUrl;c.allowed_syndication_flags&&(this.o=c.allowed_syndication_flags.allow_disabling_chrome);c.TocLine&&(this.li=lb(c.TocLine,function(d){return new Lq(d)}));c.SubscribeLink&&(this.oa=new kq(c.SubscribeLink));c=null;b&&(c=b["[NewspaperJSONVolumeInfo]"]);this.j=c;this.l=c==null?null:new xn(c.tile_h,c.tile_w,c.x_win,c.y_win);this.Ic=a.sample_url||"";this.Eb= a.is_newspaper||!1;(this.ta=a.newspaper_tile_base_url)&&this.l&&yn(this.l,r(this.dv,this));this.tf=c?c.res_h:Dr;this.Aa=this.Eb?"fixed_height":"fixed_width";this.Mf=a.is_pre_order||!1;this.Lo=a.on_sale_date||"";this.Oi=a.volumeresult&&a.volumeresult.has_flowing_text;this.Pi=a.volumeresult&&a.volumeresult.has_scanned_text;this.Fa=a.volumeresult&&a.volumeresult.can_download_pdf;this.Ga=a.volumeresult&&a.volumeresult.can_download_epub;this.Ua=a.volumeresult?a.volumeresult.download_pdf_url:"";this.Ib= a.volumeresult?a.volumeresult.download_epub_url:""}n(Cr,zn);f=Cr.prototype;f.rh=ba(11);f.Ii=function(){typeof this.i!=="number"&&(this.i=this.j.read_zm,this.i=typeof this.i==="number"?this.j.read_zm:4,this.i=Eb(this.i,-1,this.Wd().length-1));return this.i};function Eq(a){return a.U?a.U:a.g&&a.g.width?a.g.width:575}f.Sb=function(){return this.ya};f.Ki=function(){return this.l};f.Wd=function(){return this.tf};f.Hf=function(){return this.Aa}; f.dv=function(a){a=a.toString();var b=a.indexOf("?");b>=0&&(a=this.ta+a.substring(b));return new R(a)};f.nh=function(){return this.j?this.j.focus_aid:null};f.vg=function(){var a=this.j.focus_x,b=this.j.focus_y;return a!==void 0&&b!==void 0?new w(a,b):null};var Dr=[350,410,495,575,685,800,910,1025];function Er(a){W.call(this);this.o=a;this.i=null}n(Er,W);f=Er.prototype; f.render=function(a,b){this.j=a;a=a.V();var c=Vg(a).y,d=M(a);c=c+d.height+3;d="";b&&(d=Vg(a).x);this.i=B("DIV",{"class":"linkbar-panel-div"});Pg(this.i,d,c);this.ka=B("DIV",{"class":"SPRITE_close_v2 linkbar-panel-close"});this.i.appendChild(this.ka);Jd&&Md&&!ae("1.9")&&(this.O=B("IFRAME",{style:"position: absolute;",iw:"0"}),this.o.appendChild(this.O));this.o.appendChild(this.i);this.O&&(L(this.O,M(this.i)),Pg(this.O,Rg(this.i)));U(r(this.Bl,this))}; f.Bl=function(){this.g.ha(this.ka,"click",this.dispose);this.g.ha(this.j,"action",this.qq);this.g.ha(document,"mousedown",this.ps)};f.qq=function(){ar(this.j,16)||this.dispose()};f.ps=function(a){Af(this.i,a.target)||Af(this.j.V(),a.target)||this.dispose()};f.qa=function(){W.prototype.qa.call(this);E(this.i);E(this.O)};f.V=function(){return this.i};function Fr(a,b,c){Er.call(this,a);this.N=b;this.U=c}n(Fr,Er); Fr.prototype.render=function(a,b){Er.prototype.render.call(this,a,b);a=B("DIV",{style:"padding-top:5px; font-size: 13px;"});x(a,z("Paste link in email or IM"));this.V().appendChild(a);this.l=C("input");L(this.l,"100%","auto");this.V().appendChild(this.l);this.U&&(a=B("DIV",{style:"font-size: 13px; padding-top: 7px;"},"Embed"),this.V().appendChild(a),this.s=C("input"),L(this.s,"100%","auto"),this.V().appendChild(this.s));a=this.N.Ca();b=di(new R(window.location));var c=new R(a.yc()); Th(c,b);this.l.value=c.toString();U(t(Gr,this.l));this.U&&(a=new R(a.yc()),S(a,"output","embed"),this.s.value=Hr(a.toString()))};Fr.prototype.Bl=function(){Er.prototype.Bl.call(this);this.g.ha(this.l,"click",t(Gr,this.l));this.U&&this.g.ha(this.s,"click",t(Gr,this.s))};function Gr(a){a.select()}function Hr(a){return Uc('',a)};function Ir(a,b){var c=this;this.N=a;this.j=b;this.g=yh();this.i=A("flow-top-div")?!0:!1;(new sg(this)).ha(this.g,"resize",function(){var d=c.N.Da(),e=d.Bb(),g=d.Gc();c.resize();c.N.Da().ue();d=c.N.Da();e=Tj(new Sj(e,d.Bb()),g);d.Ad(d.De(e))}).ha(this.N,"searchupdate",function(){var d=A("gb-ogen-mobile-appbar");if(d){var e=c.g.getSize().height;d=d.getBoundingClientRect().height;e-=d;d=c.g.getSize().width;c.N.kb(new Ib(d,e));c.i&&L(c.j,new Ib(d,e))}}).ha(window,"load",this.resize)} Ir.prototype.resize=function(){var a=this.g.getSize().height,b=this.g.getSize().width,c=Math.round(Vg(this.j).y);a=Math.max(0,a-c);this.N.kb(new Ib(b,a));this.i&&L(this.j,new Ib(b,a))};function Jr(){Kr(this)}function Lr(a){pg(a.g);a.g=hg(document.body,"mousedown",function(){uh(document.body,"focus-outline-enabled");Kr(a)},{capture:!0})}function Kr(a){pg(a.g);a.g=I(document.body,"keydown",function(b){b.keyCode===9&&(O(document.body,"focus-outline-enabled"),Lr(a))})};function Mr(a,b,c,d){d=d===void 0?!1:d;Fp.call(this);var e=this;this.tc=a;this.i=b;this.g=c?c:null;this.Wf(Nr(this));if(d){var g=A("ep-lb");I(this,"hide",function(){K(g,"visibility","hidden")});I(this,"beforeshow",function(){K(g,"visibility","visible");P(e.V(),"lightbox-dialog",!0)})}}n(Mr,Fp); function Nr(a){var b=B("DIV");th(b,["popup-menu","goog-menu","goog-menu-vertical"]);Xj(b,"dialog");b.setAttribute("tabindex","-1");document.body.appendChild(b);if(a.tc!=""){var c=B("DIV",{"class":"popup-menu-header"});b.appendChild(c);var d=B("SPAN",{"class":"popup-menu-title"});H(d,a.tc);c.appendChild(d);d=B("DIV",{"class":"popup-menu-close"});bk(d,"Close popup");var e=B("IMG");e.src="/googlebooks/images/material/close_black_24dp.png";L(e,24,24);X(e,"hidden",!0);d.appendChild(e);I(d,"click",function(){a.wa(!1); a.g&&a.g()});I(d,"keydown",function(g){if(g.keyCode==32||g.keyCode==13)a.wa(!1),a.g&&a.g()});Xj(d,"button");Ff(d,!0);c.appendChild(d)}b.appendChild(a.i);return b};function Or(a,b,c){this.g=a;this.i=b;this.O=c}u(Or,Ap);Or.prototype.Jc=function(a,b,c){Bp(this.g,this.i,a,b,void 0,c,this.O)};function Pr(a,b,c,d){Or.call(this,a,b);this.j=c?5:0;this.o=d||void 0}u(Pr,Or);Pr.prototype.s=function(){return this.j};Pr.prototype.l=function(a){this.j=a};Pr.prototype.Jc=function(a,b,c,d){var e=Bp(this.g,this.i,a,b,null,c,10,d,this.o);if(e&496){var g=Qr(e,this.i);b=Qr(e,b);e=Bp(this.g,g,a,b,null,c,10,d,this.o);e&496&&(g=Qr(e,g),b=Qr(e,b),Bp(this.g,g,a,b,null,c,this.j,d,this.o))}};function Qr(a,b){a&48&&(b^=4);a&192&&(b^=1);return b};function Rr(a,b,c,d,e){this.g=a;this.N=b;this.s=c;this.ka=A("epo-welcome");this.O=A("epo-keyboard");this.j=A("epo-plain-text");this.l=A("epo-plain-text-only");this.o=A("entity-page-toggle-viewport-mode-link");this.U=A("epo-share-link");this.i=e;Sr(this,d);Tr(this,!1)} function Sr(a,b){if(a.s)a.l&&Ur(a,b);else{var c=new Mr("",a.ka,function(){});th(c.V(),["onboarding-popup","onboarding-fixed-popup","onboarding-welcome-popup"]);Uk(c,!1);var d=A("epo-keyboard-text");x(d,z(Gf(d)));var e=new Mr("",a.O,function(){});th(e.V(),["onboarding-popup","onboarding-fixed-popup"]);Uk(e,!1);d=Ze("A",d)[0];d.id="ep-keyboard-link";O(d,"onboarding-link");Ff(d,!0);Vr(d,function(){a.N.mb("showkeyboardshortcuts")});if(a.j){var g=new Mr("",a.j,function(){});th(g.V(),["onboarding-popup", "onboarding-plain-text-popup"])}d=new Mr("",a.U,function(){});th(d.V(),["onboarding-popup","onboarding-share-popup"]);var h=A("entity-page-clip");Gp(d,5);d.setPosition(new Pr(h,4,!0));Uk(d,!1);Wr(a,c,e,g,d);Xr(a,c,e,g,d);if(a.i)switch(a.i){case 0:c.wa(!0);break;case 1:e.wa(!0);break;case 2:g?Yr(a,g,b):d.wa(!0);break;default:d.wa(!0)}else c.wa(!0)}} function Wr(a,b,c,d,e){var g=A("epo-welcome-next");Vr(g,function(){a.i++;b.wa(!1);c.wa(!0);Tr(a,!1)});g=A("epo-keyboard-next");Vr(g,function(){a.i++;c.wa(!1);d?Yr(a,d):e.wa(!0);Tr(a,!1)});a.j&&d&&(g=A("epo-plain-text-next"),Vr(g,function(){a.i++;a.g.wa(!1);Uk(a.g,!0);d.wa(!1);e.wa(!0);Tr(a,!1)}))} function Xr(a,b,c,d,e){document.querySelectorAll(".onboarding-link").forEach(function(h){h.id!="ep-keyboard-link"&&Vr(h,function(){b.wa(!1);c.wa(!1);d&&(d.wa(!1),a.g.wa(!1),Uk(a.g,!0));e.wa(!1);Zr(a)})});var g=A("epo-done");Vr(g,function(){e.wa(!1);Zr(a)})}function Ur(a,b){var c=new Mr("",a.l,function(){});th(c.V(),["onboarding-popup","onboarding-plain-text-popup"]);Yr(a,c,b);b=A("epo-done-only");Vr(b,function(){c.wa(!1);a.g.wa(!1);Uk(a.g,!0);Zr(a)})} function Yr(a,b,c){c!==void 0&&c||(Uk(a.g,!1),a.g.wa(!0));a=A("entity-page-more-menu-content");Gp(b,0);b.setPosition(new Pr(a,4,!0));Uk(b,!1);b.wa(!0)}function Zr(a){Tr(a,!0);a.j?sm(!0):sm(!1)}function Tr(a,b){if(a.o){var c=new R(a.o.href);b?(ei(c,"ovso"),ei(c,"ovsopt"),ei(c,"op")):a.s&&a.l?S(c,"ovsopt","1"):(S(c,"ovso","1"),S(c,"op",a.i));Cc(a.o,c.toString())}}function Vr(a,b){I(a,"click",function(){b()});I(a,"keydown",function(c){c.keyCode!=32&&c.keyCode!=13||b()})};function $r(a,b){W.call(this);this.Ba=a;this.j=b;this.i=C("div");a.s.i.appendChild(this.i);O(this.i,"sitb_result");Ff(this.i,!0);Xj(this.i,"link");X(this.i,"disabled",!0);Ld?(K(this.i,"width",b.getSize().width+"px"),K(this.i,"min-height",b.getSize().height+"px")):(Pg(this.i,b.Zc()),L(this.i,b.getSize()));a=C("div");O(a,"sitb-result-header");this.i.appendChild(a);this.l=C("div");O(this.l,"sitb-result-page-link");b=(b=b.g.i)?"Page "+b:"Page";H(this.l,b);bk(this.l,"Search result: "+b);a.appendChild(this.l); this.o=C("div");O(this.o,"sitb-result-content");this.i.appendChild(this.o);if(a=Ul(this.Ba.N.Ya(),this.j.g.Ja())){b=this.Ba.N.Va().getQuery();var c=a.lb.snippetSrc;c&&b==xm(c)?as(this,c):(b=a.Ue(),T(b,"source")=="entity_page"?S(b,"source","entity_page_gbs_snippet"):S(b,"source","gbs_snippet"),nn(a,b,r(this.O,this)))}else bs(this)}n($r,Oj);$r.prototype.s=function(a){this.Ba.ta(a.g,void 0)};$r.prototype.O=function(a){(a=a.lb.snippetSrc)?as(this,a):bs(this)}; function as(a,b){rf(a.o);var c=C("IMG");c.src=b;cs(a);b=a.j.getSize().width-25;K(c,{width:b+"px"});a.o.appendChild(c)}function cs(a){O(a.i,"sitb-result-clickable");O(a.l,"sitb-result-link");var b=Gf(a.l);x(a.l,z(b+" »"));X(a.i,"disabled",!1);a.g.ha(a.i,"click",r(a.s,a,a.j));a.g.ha(a.i,"keydown",function(c){c.keyCode!=32&&c.keyCode!=13||a.s(a.j)})} function bs(a){rf(a.o);var b=C("div");O(b,"sitb-result-snippet");a.o.appendChild(b);Ld||K(b,{width:Math.floor(a.j.getSize().width*.75)+"px"});x(b,He(a.j.g.g));b=C("div");O(b,"sitb-result-explanatory-link");a.o.appendChild(b);var c=Ul(a.Ba.N.Ya(),a.j.g.Ja());c&&c.qd()&&!sn(c,[4,8,16])&&c.l(2)?(cs(a),x(b,z((Ld?"No image for result.":"We couldn't make an image for this result.")+"  ")),a=C("span"),c=Ld||hn()?"Click to view":"Click to view the whole page.",x(a,z(c)),b.appendChild(a),O(a,"sitb-result-link")): (x(b,z("No preview available for this page.  ")),Ld||(a=C("a"),O(a,"sitb-result-buy-link"),x(a,z("Buy this book.")),b.appendChild(a),b=new R(window.location.href),S(b,"sitesec","buy"),S(b,"source","gbs_snippet"),ei(b,"printsec"),a.href=b.toString()))}$r.prototype.Ka=function(){E(this.i);this.dispose()};function ds(a){this.Ba=a}n(ds,dn);ds.prototype.render=function(a){return new $r(this.Ba,a)};function es(a){this.g=a}n(es,zi);function fs(a,b){Bo.call(this,1);this.o=a;this.U=b;this.xj=this.Yh=this.Zh=20;a.tb&&(a.tb.forEach(r(this.l,this)),Ji(this))}n(fs,Bo);fs.prototype.l=function(a){a=new es(a);var b=Math.min(this.U-16,600);a.kb(new Ib(b,Math.round(124/600*b+42)));this.Na(a)};function gs(a){var b=a.vb();K(b,"overflow","hidden");var c=new Bq(this,b);gp.call(this,c);this.N=a;Ld||jp(this,new vq(this));this.g.ha(this,"move",this.Zb);var d=A("subscription-bar");d&&(this.Dk(d),U(function(){N(d,!1)},600));ip(this,hs(this));K(b,"overflow","auto");K(b,{overflowX:"auto",overflowY:"scroll"});ef(b,{dir:"ltr"})}u(gs,gp);function is(a,b){b!=a.o&&(a.o=b,js(a))}function hs(a){var b=new Cn;Dn(b,es,new ds(a));return b}gs.prototype.resize=function(){js(this)}; function js(a){var b=new fs(a.o,a.getSize().width);a.Qc(b);a.Zb()}function ks(a,b){a.ta=b};function ls(a){this.g=a||{}}ls.prototype.Cc=function(){return this.g};ls.prototype.Ub=function(a){var b=Mb(ms,function(c){return c==a});this.g.v=b};ls.prototype.getQuery=function(){return this.g.q};var ms={onepage:Cq,twopage:zr,thumbnail:Iq,snippet:gs};function ns(a){Sf.call(this,"navigate");this.o=a}u(ns,Sf);var os={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};var ps=/^[a-zA-Z0-9-]+$/,qs={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0};var rs=new WeakMap;function ss(a,b){a=[a];for(var c=b.length-1;c>=0;--c)a.push(typeof b[c],b[c]);return a.join("\v")};function ts(a,b,c,d){Q.call(this);if(a&&!b)throw Error("Can't use invisible history without providing a blank page.");if(c)var e=c;else{e="history_state"+us;var g=le("input",{type:"text",name:e,id:e,style:"display:none"});document.write(Gc(g));e=A(e)}this.s=e;this.i=c?kf(Xe(c)):window;this.O=b;this.Qa=new tj(150);Qf(this,this.Qa);this.g=!a;this.o=new sg(this);if(a){if(d)var h=d;else{a="history_iframe"+us;b=this.O;c={id:a,style:"display:none",sandbox:void 0};b&&oc(b);d={};d.src=b||null;d.srcdoc=null; e={sandbox:""};b={};for(var k in d)Object.prototype.hasOwnProperty.call(d,k)&&(b[k]=d[k]);for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&(b[l]=e[l]);if(c)for(var m in c)if(Object.prototype.hasOwnProperty.call(c,m)){k=m.toLowerCase();if(k in d)throw Error("");k in e&&delete b[k];b[m]=c[m]}m=void 0;k="";if(b)for(h in b)if(Object.prototype.hasOwnProperty.call(b,h)){if(!ps.test(h))throw Error("");l=b[h];if(l!=null){c=h;if(c.toLowerCase()=="style")l=String(l);else{if(/^on/i.test(c))throw Error(""); if(c.toLowerCase()in qs)if(l instanceof mc)l=oc(l).toString();else if(l instanceof pc)l=rc(l);else if(typeof l==="string")l=wc(l).toString();else throw Error("");}l=c+'="'+Wb(String(l))+'"';k+=" "+l}}h="":(m=fe(m),h+=">"+Gc(m)+"");h=Ec(h);document.write(Gc(h));h=A(a)}this.U=h;this.ka=!0}this.g?vs(this,ws(this),!0):xs(this,this.s.value);us++}u(ts,Q);ts.prototype.Lb=!1;ts.prototype.l=!1;ts.prototype.j=null; var ys=function(a,b){function c(g){var h=qa(g);g=h.next().value;h=ra(h);return a.apply(g,h)}function d(g){g=qa(g);g.next();g=ra(g);return b(e,g)}b=b===void 0?ss:b;var e=Wa(a);return function(){var g=La.apply(0,arguments),h=this||q,k=rs.get(h);k||(k={},rs.set(h,k));return Fd(k,[this].concat(sa(g)),c,d)}}(function(){return"onhashchange"in q});f=ts.prototype;f.Bg=null;f.qa=function(){ts.na.qa.call(this);this.o.dispose();this.nb(!1)}; f.nb=function(a){a!=this.Lb&&(a?(Jd&&this.o.ha(this.i,"pageshow",this.Ju),ys()&&this.g?(this.o.ha(this.i,"hashchange",this.Eu),this.Lb=!0,this.dispatchEvent(new ns(ws(this),!1))):(this.o.ha(this.Qa,"tick",r(this.jm,this,!0)),this.Lb=!0,this.j=ws(this),this.dispatchEvent(new ns(ws(this),!1)),this.Qa.start())):(this.Lb=!1,xg(this.o),this.Qa.stop()))};f.Ju=function(a){a.Mb.persisted&&(this.nb(!1),this.nb(!0))};f.Eu=function(){var a=zs(this.i);a!=this.j&&As(this,a,!0)}; function ws(a){return a.Bg!=null?a.Bg:a.g?zs(a.i):Bs(a)||""}function Cs(a,b){ws(a)!=b&&(a.g?(vs(a,b,!1),a.Lb&&a.jm(!1)):(xs(a,b,!1),a.Bg=a.j=a.s.value=b,a.dispatchEvent(new ns(b,!1))))}function zs(a){a=a.location.href;var b=a.indexOf("#");return b<0?"":a.substring(b+1)}function vs(a,b,c){a=a.i.location;var d=a.href.split("#")[0];if(dc(a.href,"#")||b)d+="#"+b;d!=a.href&&(b=new pc(d),c?Sc(a,b):Rc(a,b))} function xs(a,b,c){if(a.ka||b!=Bs(a))a.ka=!1,b=Yc(b),b=oc(a.O).toString()+"#"+b,(a=a.U.contentWindow)&&(c?Sc(a.location,b):Rc(a.location,b))}function Bs(a){var b=a.U.contentWindow;if(b){try{var c=$c(zs(b))}catch(d){return a.l||(a.l!=1&&uj(a.Qa,1E4),a.l=!0),null}a.l&&(a.l!=0&&uj(a.Qa,150),a.l=!1);return c||null}return null}f.jm=function(a){if(this.g){var b=zs(this.i);b!=this.j&&As(this,b,a)}this.g||(b=Bs(this)||"",this.Bg!=null&&b!=this.Bg)||(this.Bg=null,b!=this.j&&As(this,b,a))}; function As(a,b,c){a.j=a.s.value=b;a.g?vs(a,b):xs(a,b);a.dispatchEvent(new ns(ws(a),c))}var us=0;function Ds(a,b){this.g=new ts;I(this.g,"navigate",r(this.o,this));this.N=a;this.i=b}Ds.prototype.o=function(a){Es(this,a.o)};function Es(a,b){if(!(a.l&&b==""||a.j))if((Hd||Kd)&&b=="")window.history.go(-2);else if(b){var c={},d=new Vh(b);v(d.Td(),function(e){var g=d.get(e);g in Fs&&(g=Fs[g]);c[e]=g});b=new ls(c);a.N.Ub(ms[b.g.v]||Cq);dq(a.i,!!b.g.f);b.getQuery()!==void 0&&wm(a.N.Va(),b.getQuery())}} Ds.prototype.nb=function(a){this.l=!0;this.g.nb(a);Hd&&(a=di(new R(window.location)),Es(this,a));this.l=!1};Ds.prototype.update=function(){var a=new ls;a.Ub(this.N.O);a.g.q=this.N.Va().getQuery();a.g.f=this.i.df();a=hi(a.Cc()).toString();this.j=!0;Cs(this.g,a);this.j=!1};var Fs={"true":!0,"false":!1};function Gs(a,b,c,d,e,g,h){var k=this;a&&(this.N=a,this.Ib=b);if(this.Aa=c)this.jd=!1;this.Ic=!!d;this.uc=!!e;this.La=g;this.Fb=h===void 0?!1:h;this.O=A("entity-page-toc");this.Ha=A("entity-page-toc-label");this.Jb=!1;if(this.ka=A("entity-page-pagination"))this.ya=A("entity-page-prev"),this.ta=A("entity-page-next"),this.Ua=A("entity-page-floating-hover");this.Ea=A("entity-page-zoom-in");this.Ga=A("entity-page-zoom-out");this.ma=A("entity-page-one-page");this.s=A("entity-page-two-page");this.o=A("entity-page-thumbnail"); this.U=A("entity-page-link");this.Cd=A("entity-page-link-menu-content");this.Eb=A("entity-page-share-input");this.kd=A("entity-page-embed-input");this.j=A("entity-page-clip");this.oa=A("entity-page-more");this.Dd=A("entity-page-more-menu-content");this.Wa=!1;this.Fa=A("entity-page-volume-info");A("flow-top-div")&&(this.g=A("flow-top-div"),this.i=(a=Number(T(new R(window.location.href),"zoom")))?a:2,Hs(this,this.i),I(this.N,"searchupdate",function(){Is(k)}));this.l=!0;Js(this);Ks(this);Ls(this);Ms(this); Ns(this);Os(this);Ps(this);Qs(this);Rs(this);Ss(this);new Jr;mm(Ts(this))} function Js(a){if(a.N){var b=a.N.Ta(),c=!!b.li;b=(b=b.Th)&&a.N.Ya()&&!!Ul(a.N.Ya(),b);c||b?(a.Jb=!0,a.g?(c=A("jtp").value||"Contents",H(a.Ha,c)):H(a.Ha,a.N.Ca().we()||"Contents"),Us(a.O,function(){var d=cf("base-image-toc-div");cf("scroll-toc-div")||d||(new ur(a.N,a.O,a.La,!!a.g)).render(8,a.i)}),I(a.N,"pagechange",function(){var d=a.N.Ca().we()||"Contents";a.Ha&&x(a.Ha,z(d))})):(H(a.Ha,"Contents unavailable"),th(a.O,["toolbar-button-disabled","toc-button-unavailable"]),X(a.O,"disabled",!0))}else H(a.Ha, "Contents unavailable"),th(a.O,["toolbar-button-disabled","toc-button-unavailable"]),X(a.O,"disabled",!0)}function Ks(a){a.ka&&(a.N&&(Us(a.ya,function(){a.ya.hasAttribute("href")||a.N.mb("previous")}),Us(a.ta,function(){a.ta.hasAttribute("href")||a.N.mb("next")})),a.ya.setAttribute("title","Previous Page"),a.ta.setAttribute("title","Next Page"))} function Ls(a){Us(a.Ea,function(){a.g?Vs(a):a.N&&a.N.mb("zoomin")});Us(a.Ga,function(){a.g?Ws(a):a.N&&a.N.mb("zoomout")});a.g&&I(document.body,"keydown",function(b){b.keyCode==107||b.keyCode==187||b.keyCode==61?Vs(a):(b.keyCode==109||b.keyCode==189||b.keyCode==173)&&Ws(a)});a.Ea.setAttribute("title","Zoom in");a.Ga.setAttribute("title","Zoom out")} function Ms(a){Us(a.ma,function(){Xs(a,Cq)});a.ma.setAttribute("title","Single page view");a.Ic?(Us(a.s,function(){Xs(a,zr)}),a.s.setAttribute("title","Two page view")):(P(a.s,"toolbar-button-disabled",!0),a.s.setAttribute("title","Two page view unavailable"),X(a.s,"disabled",!0));a.uc?(Us(a.o,function(){Xs(a,Iq)}),a.o.setAttribute("title","Thumbnail view")):(P(a.o,"toolbar-button-disabled",!0),a.o.setAttribute("title","Thumbnail view unavailable"),X(a.o,"disabled",!0));a.N&&(I(a.N,"viewportmodechange", function(){Ys(a)}),Ys(a))} function Ns(a){var b=(new yp(a.Eb)).V();A("entity-page-share-copy-container").appendChild(b);b=(new yp(a.kd)).V();A("entity-page-embed-copy-container").appendChild(b);var c=new Mr("Link to this result",a.Cd,function(){a.U.focus()});Gp(c,5);c.setPosition(new Pr(a.U,4,!0));c.wa(!1);var d=new R(a.Eb.value);Us(a.U,function(){if(c.Me||Date.now()-c.Wi<150)c.wa(!1);else{c.wa(!0);c.V().focus();if(a.N){Zs(a,d);a.g&&S(d,"bksoutput","text");var e=a.N.Va().getQuery();e?a.N.O==gs?(ei(d,"dq"),ei(d,"pg"),S(d,"bsq", e)):(ei(d,"bsq"),S(d,"dq",e)):(ei(d,"bsq"),ei(d,"dq"))}else(e=Gc(He(di(new R(window.location.href)))).toString())&&S(d,"bsq",e);a.Eb.value=d.toString();a.N&&(e=new R(a.N.Ca().yc()),ei(e,"source"),S(e,"output","embed"),a.kd.value=Hr(e.toString()))}});a.U.setAttribute("title","Link to this result")} function Os(a){if(a.Aa){var b=A("entity-page-selection-bar"),c=A("entity-page-exit-selection"),d=A("entity-page-toolbar");Us(a.j,function(){a.jd=!a.jd;a.Aa(!0);P(b,"menu-hidden",!1);c.focus();X(d,"hidden",!0)});Us(c,function(){a.Aa(!1);P(b,"menu-hidden",!0);a.j.focus();X(d,"hidden",!1)});a.j.setAttribute("title","Select a clip")}else P(a.j,"toolbar-button-disabled",!0),X(a.j,"disabled",!0),a.j.setAttribute("title","Select a clip unavailable")} function Ps(a){$s(a);at(a);bt(a);var b=new Mr("",a.Dd,function(){a.oa.focus()});Gp(b,4);b.setPosition(new Pr(a.oa,5,!0));O(b.V(),"more-actions-popup");b.wa(!1);ct(a,b);var c=A("entity-page-toggle-viewport-mode-link");c&&a.Fb&&(b.wa(!0),c.focus());Us(a.oa,function(){if(b.Me||Date.now()-b.Wi<150)b.wa(!1),a.oa.focus();else if(b.wa(!0),b.V().focus(),c){var e=new R(c.href);Zs(a,e);a.g&&(ei(e,"zoom"),ei(e,"num"),ei(e,"scoring"));ei(e,"q");var g=a.N.Va().getQuery();if(g){if(S(e,"dq",g),!a.g){g=A("search-results-summ"); var h=g.hasAttribute("data-result-num")?g.getAttribute("data-result-num"):0;S(e,"num",h);g=g.hasAttribute("data-search-sort")?g.getAttribute("data-search-sort"):"n";S(e,"scoring",g)}}else ei(e,"dq");Cc(c,e.toString())}});a.oa.setAttribute("title","More actions menu");I(b,"show",function(){a.Wa=!0;a.l=!0;dt(a)});I(b,"hide",function(){a.Wa=!1;a.l=!1;et(a)});if(a.La.showViewportOnboarding||a.La.showViewportPlainTextOnboarding){var d=Number(T(new R(window.location.href),"op"));new Rr(b,a.N,!!a.La.showViewportPlainTextOnboarding, a.Fb,d?d:0)}}function ct(a,b){var c=A("entity-page-store"),d=A("gb-mobile-buy-section");if(c&&d&&(d=df("TABLE","gb-mobile-buy-table",d))){var e=new Mr("",d,function(){a.oa.focus()});Gp(e,0);e.setPosition(new Pr(c,4,!0));O(e.V(),"buy-table-popup");e.wa(!1);Us(c,function(){e.wa(!0);e.V().focus()},!0);b.V().querySelectorAll(".more-actions-menu-link").forEach(function(g){g!=c&&I(g,"mouseenter",function(){e.wa(!1)})});I(e.V(),"mouseleave",function(){e.wa(!1)})}} function Qs(a){var b=A("ep-keyboard-shortcuts");if(b&&a.N){var c=new Mr("",b,function(){},!0);O(c.V(),"keyboard-shortcuts-popup");b=A("ep-keyboard-close");Us(b,function(){c.wa(!1)});I(a.N,"keyboardshortcutsopened",function(){c.wa(!0)})}}function bt(a){var b=A("entity-page-keyboard");b&&a.N&&Us(b,function(){a.N.mb("showkeyboardshortcuts")})}function at(a){var b=A("entity-page-copyright-page-id");if(b&&a.N){var c=A("entity-page-copyright");b=Gf(b);var d=Ul(a.N.Ya(),b);Us(c,function(){a.N.hb(d)})}} function $s(a){var b=A("entity-page-toggle-viewport-mode-link");if(b){var c=a.g?!0:!1;P(b,"checked",c);X(b,"pressed",c);Us(b,function(){P(b,"checked",!c);X(b,"pressed",!c)})}} function Ys(a){a.N.O==Cq?(ft(a,!0),gt(a,!0),ht(a,!0),it(a,!0),jt(a,!0),X(a.ma,"current","true"),X(a.s,"current","false"),X(a.o,"current","false")):a.N.O==zr?(ft(a,!0),gt(a,!0),ht(a,!0),it(a,!0),jt(a,!0),X(a.ma,"current","false"),X(a.s,"current","true"),X(a.o,"current","false")):a.N.O==Iq?(ft(a,!0),gt(a,!1),ht(a,!0),it(a,!0),jt(a,!1),X(a.ma,"current","false"),X(a.s,"current","false"),X(a.o,"current","true")):(ft(a,!1),gt(a,!1),ht(a,!1),it(a,!1),jt(a,!1));var b=a.N.O;a.ka&&b!=gs&&!a.g&&(P(a.ka,"one-page-view", b==Cq),P(a.Fa,"one-page-view",b==Cq),P(a.ka,"two-page-view",b==zr),P(a.Fa,"two-page-view",b==zr),P(a.ka,"thumbnail-view",b==Iq),P(a.Fa,"thumbnail-view",b==Iq))}function Xs(a,b){a.N&&a.N.O!=b&&(a.N.Ub(b),!a.N.Va().getQuery()&&a.Ib&&a.Ib.update())}function ft(a,b){P(a.ma,"toolbar-button-disabled",!b);X(a.ma,"disabled",!b);a.Ic&&(P(a.s,"toolbar-button-disabled",!b),X(a.s,"disabled",!b));a.uc&&(P(a.o,"toolbar-button-disabled",!b),X(a.o,"disabled",!b))} function gt(a,b){P(a.Ga,"toolbar-button-disabled",!b);X(a.Ga,"disabled",!b);P(a.Ea,"toolbar-button-disabled",!b);X(a.Ea,"disabled",!b)}function ht(a,b){P(a.ya,"toolbar-button-disabled",!b);X(a.ya,"disabled",!b);P(a.ta,"toolbar-button-disabled",!b);X(a.ta,"disabled",!b)}function it(a,b){a.Jb&&(P(a.O,"toolbar-button-disabled",!b),X(a.O,"disabled",!b))}function jt(a,b){a.Aa&&(P(a.j,"toolbar-button-disabled",!b),X(a.j,"disabled",!b))}function Zs(a,b){a=new R(a.N.Ca().yc());S(b,"pg",T(a,"pg"))} function Vs(a){a.i<5&&(a.i+=1,Hs(a,a.i))}function Ws(a){a.i>1&&(--a.i,Hs(a,a.i))}function Hs(a,b){P(a.g,"zoomstop1",b==1);P(a.g,"zoomstop2",b==2);P(a.g,"zoomstop3",b==3);P(a.g,"zoomstop4",b==4);P(a.g,"zoomstop5",b==5);P(a.Ga,"toolbar-button-disabled",b==1);P(a.Ea,"toolbar-button-disabled",b==5);Is(a)} function Is(a){var b=a.ya,c=new R(b.href);kt(a,c);Cc(b,c.toString());b=a.ta;c=new R(b.href);kt(a,c);Cc(b,c.toString());b=A("text-viewport-prev");c=new R(b.href);kt(a,c);Cc(b,c.toString());b=A("text-viewport-next");c=new R(b.href);kt(a,c);Cc(b,c.toString());if(b=A("entity-page-copyright"))c=new R(b.href),kt(a,c),Cc(b,c.toString());if(b=A("search-result-prev"))c=S(new R(b.href),"zoom",a.i),Cc(b,c.toString());if(b=A("search-result-next"))a=S(new R(b.href),"zoom",a.i),Cc(b,a.toString())} function kt(a,b){S(b,"zoom",a.i);ei(b,"q");(a=a.N.Va().getQuery())?S(b,"dq",a):ei(ei(ei(b,"dq"),"num"),"scoring")}function Us(a,b,c){c=c===void 0?!1:c;I(a,"click",function(){b()});I(a,"keydown",function(d){d.keyCode!=32&&d.keyCode!=13||b()});c&&I(a,"mouseover",function(){b()})} function Rs(a){function b(c){P(document.body,"opaque-background",!0);a.l=!1;c&&et(a)}a.Fb?b(!0):(a.N&&(hg(a.N.Da(),"move",function(){b(!0)}),hg(a.N.vb(),"click",function(){b(!0)})),hg(document.body,"click",function(){b(!a.g)}),hg(document.body,"keydown",function(c){c.keyCode!=27&&b(!a.g)}))} function Ss(a){a.N&&(a.g?I(window,"resize",function(){et(a)}):(I(a.N,"viewportmodechange",function(){et(a)}),I(a.N,"resize",function(){et(a)}),I(a.N,"zoomchange",function(){et(a)})),I(a.Ua,"mouseenter",function(){a.l=!0;dt(a)}),I(a.Ua,"mouseleave",function(){a.l=!1;et(a)}),document.body.querySelectorAll(".floating-button-group").forEach(function(b){I(b,"mouseenter",function(){a.l=!0;dt(a)});I(b,"mouseleave",function(){a.l=!1;et(a)});I(b,"focusin",function(){a.l=!0;dt(a)});I(b,"focusout",function(){a.l= !1;et(a)})}))}function et(a){a.l||a.Wa||(dt(a),lt(a)&&(a.ac=U(function(){mt(a,!1);P(a.Ua,"listen-for-hover",!0)},3E3)))}function lt(a){if(!a.N||a.N.O==gs)return!1;var b=a.Fa.getBoundingClientRect();if(a.g)return a=a.g.getBoundingClientRect(),wj()?a.right-54>=b.left:a.left+54<=b.right;a=cf("scroll-background");if(!a)return!1;a=xf(a);if(!a)return!1;a=a.getBoundingClientRect();return wj()?a.right>=b.left:a.left<=b.right}function dt(a){mt(a,!0);P(a.Ua,"listen-for-hover",!1);a.ac&&vj(a.ac)} function mt(a,b){P(a.Fa,"floating-button-group-hidden",!b);a.ka&&P(a.ka,"floating-button-group-hidden",!b)}function Ts(a){return{focusSearch:function(){A("search_form_input").focus()},updateSearch:function(b){wm(a.N.Va(),b);a.Ib&&a.Ib.update()},goToPage:function(b){b&&a.N.wd(b)}}};function nt(a,b){this.g=a;this.l=b}function ot(a,b){var c=C("DIV");O(c,"sitb-content");var d=C("H4");O(d,"sitb-result-header");var e=C("DIV"),g=a.g.i;g=g?"Page "+g:"Page";H(e,g);bk(d,"Search result: "+g);d.appendChild(e);b&&!a.l&&(a=C("SPAN"),O(a,"sitb-no-preview-msg"),H(a,"No preview available for this page."),d.appendChild(a));c.appendChild(d);return c};function pt(a){this.g=a}Sa(pt);function qt(a,b){a&&(a.tabIndex=b?0:-1)}f=pt.prototype;f.Jj=function(a){return a.tagName=="DIV"};function rt(a,b,c){c.id&&b.Fg(c.id);var d=a.fg(),e=!1,g=qh(c);g&&Array.prototype.forEach.call(g,function(h){h==d?e=!0:h&&(h==d+"-disabled"?b.nb(!1):h==d+"-horizontal"?st(b,"horizontal"):h==d+"-vertical"&&st(b,"vertical"))},a);e||O(c,d);tt(a,b,c);return c} function tt(a,b,c){if(c)for(var d=c.firstChild,e;d&&d.parentNode==c;){e=d.nextSibling;if(d.nodeType==1){var g=a.mh(d);g&&(g.ua=d,b.isEnabled()||g.nb(!1),b.Xa(g),Lk(g,d))}else d.nodeValue&&Vb(d.nodeValue)!=""||c.removeChild(d);d=e}}f.mh=function(a){a:{a=qh(a);for(var b=a.length,c=0;c-1&&b!=this.Wb){var c=yt(this);c&&c.Pc(!1);this.Wb=b;c=yt(this);this.Yd&&or(c,!0);this.Yb&&c!=this.Yb&&($q(c,64)?c.Nb(!0):this.Yb.Nb(!1))}b=this.V();a.target.V()!=null&&X(b,"activedescendant",a.target.V().id)};f.uq=function(a){a.target==yt(this)&&(this.Wb=-1);this.V().removeAttribute("aria-activedescendant")};f.ut=function(a){(a=a.target)&&a!=this.Yb&&a.getParent()==this&&(this.Yb&&this.Yb.Nb(!1),this.Yb=a)}; f.rq=function(a){a.target==this.Yb&&(this.Yb=null);var b=this.V(),c=a.target.V();b&&ar(a.target,2)&&c&&ak(b,c)};f.tq=function(a){this.Lb&&(this.Yd=!0);var b=vt(this);b&&Df(b)?b.focus():a.preventDefault()};f.Us=function(){this.Yd=!1}; f.Ps=function(a){a:{var b=a.target;if(this.qe)for(var c=this.V();b&&b!==c;){var d=b.id;if(d in this.qe){b=this.qe[d];break a}b=b.parentNode}b=null}if(b)switch(a.type){case fr.Yg:b.vf(a);break;case fr.Zg:case fr.Xg:b.ze(a);break;case "mouseover":b.ye(a);break;case "mouseout":b.Ok(a);break;case "contextmenu":b.wh(a)}};f.ni=function(){};f.mi=function(){this.Od(-1);this.Yd=!1;this.Yb&&this.Yb.Nb(!1)}; f.Mc=function(a){return this.isEnabled()&&this.isVisible()&&(Nk(this)!=0||this.al)&&this.Xd(a)?(a.preventDefault(),a.stopPropagation(),!0):!1}; f.Xd=function(a){var b=yt(this);if(b&&typeof b.Mc=="function"&&b.Mc(a)||this.Yb&&this.Yb!=b&&typeof this.Yb.Mc=="function"&&this.Yb.Mc(a))return!0;if(a.shiftKey||a.ctrlKey||a.metaKey||a.altKey)return!1;switch(a.keyCode){case 27:if(this.qg)vt(this).blur();else return!1;break;case 36:zt(this);break;case 35:At(this);break;case 38:if(this.Lf=="vertical")Bt(this);else return!1;break;case 37:if(this.Lf=="horizontal")Pk(this)?Ct(this):Bt(this);else return!1;break;case 40:if(this.Lf=="vertical")Ct(this); else return!1;break;case 39:if(this.Lf=="horizontal")Pk(this)?Bt(this):Ct(this);else return!1;break;default:return!1}return!0};function wt(a,b){var c=b.V();c=c.id||(c.id=b.getId());a.qe||(a.qe={});a.qe[c]=b}f.Xa=function(a,b){ut.na.Xa.call(this,a,b)}; f.jg=function(a,b,c){a.Qh|=2;a.Qh|=64;a.Tb(32,!1);kr(a,!1);var d=a.getParent()==this?Qk(this,a):-1;ut.na.jg.call(this,a,b,c);a.Ra&&this.Ra&&wt(this,a);a=d;a==-1&&(a=Nk(this));a==this.Wb?this.Wb=Math.min(Nk(this)-1,b):a>this.Wb&&b<=this.Wb?this.Wb++:athis.Wb&&this.Wb--}; f.removeChild=function(a,b){if(a=typeof a==="string"?Jk(this,a):a){var c=Qk(this,a);c!=-1&&(c==this.Wb?(a.Pc(!1),this.Wb=-1):c-1&&yt(this).Pc(!1)};f.Pc=function(a){this.Od(Qk(this,a))};function yt(a){return Ok(a,a.Wb)}function zt(a){Et(a,function(b,c){return(b+1)%c},Nk(a)-1)}function At(a){Et(a,function(b,c){b--;return b<0?c-1:b},0)}function Ct(a){Et(a,function(b,c){return(b+1)%c},a.Wb)}function Bt(a){Et(a,function(b,c){b--;return b<0?c-1:b},a.Wb)} function Et(a,b,c){c=c<0?Qk(a,a.Yb):c;var d=Nk(a);c=b.call(a,c,d);for(var e=0;e<=d;){var g=Ok(a,c);if(g&&a.un(g)){a.Od(c);break}e++;c=b.call(a,c,d)}}f.un=function(a){return a.isVisible()&&a.isEnabled()&&$q(a,2)};function Ft(a){Y.call(this);this.j=a?a:null;var b=this.g;a=b.V("gb-mobile-buy-panel");var c=b.V("gb-mobile-buy-button"),d=b.V("gb-mobile-buy-close-button");b=b.V("volume-left");a&&c&&d&&b&&(this.i=new ut,Lk(this.i,a),this.o=c,this.U=d,Lk(this,b),this.i.wa(!1))}n(Ft,Y);Ft.prototype.Ia=function(){var a=this;Z(this).ha(this.o,"click",this.l).ha(this.o,"keydown",function(b){b.keyCode!=32&&b.keyCode!=13||a.l()}).ha(this.U,"click",this.l).ha(this.U,"keydown",function(b){b.keyCode!=32&&b.keyCode!=13||a.l()})}; Ft.prototype.l=function(){if(this.i.isVisible()){this.i.wa(!1);uh(this.i.Gb(),"gb-mobile-buy-panel-visible");this.j&&(this.j.style.overflowX="auto",this.j.style.overflowY="scroll");this.o.focus();for(var a=qa(document.querySelectorAll('[role="alert"],#volume-center,.aria-hide-on-menu-open')),b=a.next();!b.done;b=a.next())b.value.removeAttribute("aria-hidden")}else this.i.wa(!0),O(this.i.Gb(),"gb-mobile-buy-panel-visible"),this.j&&(this.j.style.overflowX="hidden",this.j.style.overflowY="hidden"),this.i.Gb().focus(), Gt(this)};function Gt(a){var b=a.i.Gb().querySelectorAll('[role="button"],[href]'),c=b[0],d=b[b.length-1];Z(a).ha(a.i.Gb(),"keydown",function(e){e.keyCode==9&&(e.shiftKey?document.activeElement===c&&(e.preventDefault(),d.focus()):document.activeElement===d&&(e.preventDefault(),c.focus()))});a=qa(document.querySelectorAll('[role="alert"],#volume-center,.aria-hide-on-menu-open'));for(b=a.next();!b.done;b=a.next())X(b.value,"hidden",!0)};function to(a){this.Xb=ko(a)}n(to,wo);f=to.prototype;f.getEnableSsEngine=function(){return uo(this,2)};f.getEnableAwr=function(){return uo(this,3)};f.getAlohaAutoGaRollout=function(){return uo(this,5)};f.getEnableConfigurator=function(){return uo(this,6)};f.getEnableMweb=function(){return uo(this,7)};f.getEnableCtlConsentCheckbox=function(){return uo(this,8)};f.getEnableIframe=function(){return uo(this,9)};f.getEnableScreenshotNudge=function(){return uo(this,10)}; f.getEnableWebStartupConfigEndpoint=function(){return uo(this,11)};f.getEnableJunkNudge=function(){return uo(this,12)};f.getEnableConfiguratorLocale=function(){return uo(this,13)};f.getEnableTinyNoPointer=function(){return uo(this,14)};f.getEnableSupportSessionLogging=function(){return uo(this,15)};f.getEnableFileUploadForScreenshot=function(){return uo(this,16)};f.getEnableDirectDeflectionForSingleCategory=function(){return uo(this,17)};f.getEnableImageSanitization=function(){return uo(this,18)}; f.getEnableAlohaBinarySplit=function(){return uo(this,19)};f.getEnableDbFeedbackIntents=function(){return uo(this,20)};f.getEnableMarkMandatoryFieldsWithRequired=function(){return uo(this,21)};f.getEnableFeedbackCategoryCustomUi=function(){return uo(this,22)};f.getEnableRealtimeCtl=function(){return uo(this,23)};function Ht(a){this.Xb=ko(a)}n(Ht,wo);function It(a){return Jt.some(function(b){return b.test(a)})}var Jt=[/https:\/\/sandbox\.google\.com\/tools\/feedback/,/https:\/\/feedback-frontend-qual[a-z0-9.]*\.google\.com\/inapp/,/https:\/\/feedback-frontend-qual[a-z0-9.]*\.google\.com\/tools\/feedback/,/https:\/\/.*\.googleusercontent\.com\/inapp/];var Kt="af am ar-EG ar-JO ar-MA ar-SA ar-XB ar az be bg bn bs ca cs cy da de-AT de-CH de el en en-GB en-AU en-CA en-IE en-IN en-NZ en-SG en-XA en-XC en-ZA es es-419 es-AR es-BO es-CL es-CO es-CR es-DO es-EC es-GT es-HN es-MX es-NI es-PA es-PE es-PR es-PY es-SV es-US es-UY es-VE et eu fa fi fil fr-CA fr-CH fr gl gsw gu he hi hr hu hy id in is it iw ja ka kk km kn ko ky ln lo lt lv mk ml mn mo mr ms my nb ne nl no pa pl pt pt-BR pt-PT ro ru si sk sl sq sr-Latn sr sv sw ta te th tl tr uk ur uz vi zh zh-CN zh-HK zh-TW zu".split(" ");var Lt=ta(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),Mt=ta(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]); function Nt(a,b){var c;var d=(c=a.formContent)==null?void 0:c.locale;c=d==null?void 0:d.split("-")[0];d=d&&Kt.includes(d)?d:c&&Kt.includes(c)?c:void 0;d=(d!=null?d:"en").replaceAll("-","_").toLowerCase();var e;a=((e=a.initializationData)==null?0:e.useNightlyRelease)?"nightly":"live";var g;return(b==null?0:(g=b.getEnableAlohaBinarySplit)==null?0:g.call(b))?Me(Lt,a):Me(Mt,a,d)};var Ot,Pt;function Qt(a,b,c,d){if(Ot)return Ot;var e=Nt(a,d);return Ot=b.feedbackV2GlobalObject?Promise.resolve(b.feedbackV2GlobalObject):new Promise(function(g,h){var k=C("SCRIPT");Kc(k,e);k.onload=function(){b.feedbackV2GlobalObject?g(b.feedbackV2GlobalObject):h(Error("feedbackV2GlobalObject not found on window."))};k.onerror=function(){h(Error("Feedback binary script tag failed to load: "+e.toString()))};c.body.appendChild(k)})} function Rt(a,b,c,d){if(Pt)return Pt;var e=Nt(a,d);return Pt=b.feedbackV2GlobalObject?Promise.resolve(b.feedbackV2GlobalObject):new Promise(function(g,h){var k=C("SCRIPT");Kc(k,e);k.onload=function(){b.feedbackV2GlobalObject?g(b.feedbackV2GlobalObject):h(Error("feedbackV2GlobalObject not found on window."))};k.onerror=function(){h(Error("Feedback binary script tag failed to load: "+e.toString()))};c.body.appendChild(k)})} function St(a,b,c,d,e){e=e===void 0?!0:e;var g,h,k,l,m;return Ia(function(p){switch(p.g){case 1:return g=Date.now(),Aa(p,Qt(a,c,d,b),2);case 2:h=p.j;if(!(e||((l=a.initializationData)==null?0:l.useNightlyRelease)||((m=a.initializationData)==null?0:m.isLocalServer))){k=h.initializeFeedbackClient(a,g,b);p.g=3;break}return Aa(p,h.initializeFeedbackClientAsync(a,g,b),4);case 4:k=p.j;case 3:return k.initiateAloha(),p.return(k)}})} function Tt(a,b,c,d){var e,g,h;return Ia(function(k){if(k.g==1)return e=Date.now(),Aa(k,Rt(a,c,d.document,b),2);if(k.g!=3)return g=k.j,Aa(k,g.initializeFeedbackClientAsync(a,e,b,d),3);h=k.j;h.initiateAloha();return k.return(h)})} function Ut(a,b,c){var d=!0;d=d===void 0?!0:d;var e,g,h,k,l,m,p,y,D,G;return Ia(function(F){e=c||q;if((g=b)==null?0:(k=(h=g).getEnableAlohaBinarySplit)==null?0:k.call(h)){l=e;if(l.isFormOpened)throw m=Error("Form is either loading or already opened"),m.name="DuplicateFormError",m;l.isFormOpened=!0;a.callbacks=a.callbacks||{};p=a.callbacks.onClose||function(){};a.callbacks.onClose=function(J){l.isFormOpened=!1;p(J)};try{return F.return(Tt(a,b,l,e))}catch(J){throw l.isFormOpened=!1,J;}}else{y=e;if(y.isFormOpened)throw D= Error("Form is either loading or already opened"),D.name="DuplicateFormError",D;y.isFormOpened=!0;a.callbacks=a.callbacks||{};G=a.callbacks.onClose||function(){};a.callbacks.onClose=function(J){y.isFormOpened=!1;G(J)};try{return F.return(St(a,b,y,e.document,d))}catch(J){throw y.isFormOpened=!1,J;}}F.g=0})};function Vt(a,b){return Ia(function(c){return c.return(new Promise(function(d){var e=Wt(b!=null?b:"")+"/aloha_form_properties?productId="+a;qi(e,function(g){g=g.target;var h=null;try{var k=JSON.stringify(yi(g,")]}'\n"));if(k==null||k=="")h=new Ht;else{var l=JSON.parse(k);if(!Array.isArray(l))throw Error("dnarr");Zn(l,32);h=new Ht(l)}}catch(m){k=new Ht,l=new to,l=vo(l,5,!0),l=vo(l,2,!0),l=vo(l,4,!1),l=vo(l,8,!0),l=vo(l,9,!0),l=vo(l,7,!0),l=vo(l,10,!0),l=vo(l,12,!0),l=vo(l,13,!1),l=vo(l,14,!0),l=vo(l, 15,!0),l=vo(l,20,!1),l==null&&(l=void 0),po(k),g=k.Xb,ro(g,g[Yn]|0,1,l),h=k}d(h)},"GET","",{},2E3,!0)}))})}function Wt(a){return It(a)?a:"https://www.google.com/tools/feedback"};function Xt(a,b,c){a.timeOfStartCall=(new Date).getTime();var d=c||q,e=d.document,g=a.nonce||Ic("script",d.document);g&&!a.nonce&&(a.nonce=g);if(a.flow=="help"){var h=Ra("document.location.href",d);!a.helpCenterContext&&h&&(a.helpCenterContext=h.substring(0,1200));h=!0;if(b&&JSON&&JSON.stringify){var k=JSON.stringify(b);(h=k.length<=1200)&&(a.psdJson=k)}h||(b={invalidPsd:!0})}b=[a,b,c];d.GOOGLE_FEEDBACK_START_ARGUMENTS=b;c=a.feedbackServerUri||"//www.google.com/tools/feedback";if(h=d.GOOGLE_FEEDBACK_START)h.apply(d, b);else{d=c+"/load.js?";for(var l in a)b=a[l],b==null||Va(b)||(d+=encodeURIComponent(l)+"="+encodeURIComponent(b)+"&");a=Mf(Ve(e),"SCRIPT");g&&a.setAttribute("nonce",g);Kc(a,nc(d));e.body.appendChild(a)}} function Yt(a,b,c,d){var e,g;Ia(function(h){e=c||q;var k=a.serverEnvironment==="DEV",l=c||q;l=a.nonce||Ic("script",l.document);k={integrationKeys:{productId:a.productId,feedbackBucket:a.bucket,triggerId:a.triggerId},callbacks:{onClose:a.callback,onLoad:a.onLoadCallback},formContent:{locale:a.locale,disableScreenshot:a.disableScreenshotting,productDisplayName:void 0,announcement:void 0,issueCategories:void 0,includeSeveritySelection:void 0,customImageSrc:void 0,thankYouMessage:void 0,Cw:void 0,defaultFormInputValues:void 0, defaultFormInputValuesString:void 0,abuseLink:a.abuseLink,additionalDataConsent:a.additionalDataConsent},initializationData:{isLocalServer:k,nonce:l,useNightlyRelease:k,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:a.feedbackServerUri,colorScheme:a.colorScheme},extraData:{productVersion:a.productVersion,authUser:a.authuser,configuratorId:a.configuratorId,customZIndex:a.customZIndex,tinyNoPointer:a.tinyNoPointer,allowNonLoggedInFeedback:a.allowNonLoggedInFeedback, enableAnonymousFeedback:a.enableAnonymousFeedback}};b&&(l=new Map(Object.entries(b)),k.extraData.productSpecificData=l);g=k;return Aa(h,Ut(g,d,e),0)})} function Zt(a,b,c){try{if(a.flow==="help"){var d=a.helpCenterPath.replace(/^\//,"");Hc(c||window,"https://support.google.com/"+d)}else a.flow==="submit"?Xt(a,b,c):Vt(a.productId,a.feedbackServerUri).then(function(e){var g=e.Xb,h=g[Yn]|0,k=so(g,h);if(k!=null&&(h=g[Yn]|0,!bo(e,h))){var l=k;var m=l.Xb,p=m[Yn]|0;bo(l,p)&&(l=new l.constructor(no(m,p)),m=l.Xb,m[Yn]&=-3);l!==k&&(oo(e)&&(g=e.Xb,h=g[Yn]|0),k=l,ro(g,h,1,k))}e=k;g=!Ld||(e==null?void 0:e.getEnableMweb());h=!a.tinyNoPointer||(e==null?void 0:e.getEnableTinyNoPointer()); !e||e.getAlohaAutoGaRollout()&&g&&h?Yt(a,b,c,e):Xt(a,b,c)},function(e){e&&e.name!=="DuplicateFormError"&&Xt(a,b,c)})}catch(e){Yt(a,b,c,null)}}cb("userfeedback.api.startFeedback",Zt);function $t(a,b,c){Y.call(this);if(this.j=A("gb-mobile-appbar-back-button"))Z(this).ha(this.j,"click",this.l),au(this);(this.i=A("gb-mobile-appbar-more"))&&bu(this);var d=A("gb-mobile-appbar-search-button");d&&b&&(I(d,"click",function(){cu(b,c)}),I(d,"keydown",function(e){e.keyCode!=32&&e.keyCode!=13||cu(b,c)}));new Ft(a)}n($t,Y); function bu(a){var b=A("gb-mobile-more-menu");if(b){var c=new Fp(b);Gp(c,4);c.setPosition(new Pr(a.i,4));c.wa(!1);I(a.i,"click",function(){du(b,c)});I(a.i,"keydown",function(d){d.keyCode!=32&&d.keyCode!=13||du(b,c)})}else E(a.i)}function du(a,b){uh(a,"more-menu-hidden");b.wa(!0);b.V().focus();a=bf("more-menu-link");for(var c=0;c"+(e.j+1+" of ")+(e.i.o.tb.length+" in this book for ")+(nq(e.i.o)+"")));e=a.i.N;b=Ul(e.Ya(),b.Ja());if(!b)return null;var g=e.Da();g instanceof Cq||g instanceof zr||(a.i.l==zr?e.Ub(zr):e.Ub(Cq));if(c)return e.wd(c),null;if(d)return Gm(e,d),null;e.uh(b); return b}Ou.prototype.qa=function(){Of(this.s);W.prototype.qa.call(this)};var Yu="ganpub ganclk dapp source_ip source_country source_domain authuser".split(" ");function Zu(a){var b=b===void 0?window.location.href:b;var c=new R(b);S(a,"hl","en");(b=T(c,"output"))&&S(a,"output",b);b=T(c,"source");b=="ge-ipad-app"?(S(a,"dapp","2"),ei(a,"output")):b=="ge-tablet-app"?(S(a,"dapp","4"),ei(a,"output")):b=="ge-ip-app"?S(a,"dapp","1"):b=="ge-android-app"&&S(a,"dapp","3");T(c,"authuser")||ei(a,"authuser");Yu.forEach(function(d){var e=T(c,d);e&&S(a,d,e)})};function $u(){this.g=[]}u($u,Sq);Sa($u);function av(a,b){var c=a.g[b];if(!c){switch(b){case 0:c=a.Pa()+"-highlight";break;case 1:c=a.Pa()+"-checkbox";break;case 2:c=a.Pa()+"-content"}a.g[b]=c}return c}f=$u.prototype;f.ag=function(){return"menuitem"};f.Kc=function(a){var b=a.g.Ma("DIV",Vq(this,a).join(" "),bv(this,a.wc(),a.g));cv(this,a,b,$q(a,8)||$q(a,16));return b};f.Ec=function(a){return a&&a.firstChild}; f.Ob=function(a,b){var c=xf(b),d=av(this,2);c&&sh(c,d)||b.appendChild(bv(this,b.childNodes,a.g));sh(b,"goog-option")&&(a.Lh(!0),this.Lh(a,b,!0));return $u.na.Ob.call(this,a,b)};f.dg=function(a,b){var c=this.Ec(a),d=dv(this,a)?c.firstChild:null;$u.na.dg.call(this,a,b);d&&!dv(this,a)&&c.insertBefore(d,c.firstChild||null)};function bv(a,b,c){a=av(a,2);return c.Ma("DIV",a,b)}f.gp=function(a,b,c){a&&b&&cv(this,a,b,c)};f.Lh=function(a,b,c){a&&b&&cv(this,a,b,c)}; function dv(a,b){return(b=a.Ec(b))?(b=b.firstChild,a=av(a,1),!!b&&zf(b)&&sh(b,a)):!1}function cv(a,b,c,d){Yq(a,c,b.We());Zq(a,b,c);d!=dv(a,c)&&(P(c,"goog-option",d),c=a.Ec(c),d?(a=av(a,1),c.insertBefore(b.g.Ma("DIV",a),c.firstChild||null)):c.removeChild(c.firstChild))}f.kh=function(a){switch(a){case 2:return av(this,0);case 16:case 8:return"goog-option-selected";default:return $u.na.kh.call(this,a)}}; f.Ji=function(a){var b=av(this,0);switch(a){case "goog-option-selected":return 16;case b:return 2;default:return $u.na.Ji.call(this,a)}};f.Pa=function(){return"goog-menuitem"};function ev(a,b,c,d){jr.call(this,a,d||$u.Hb(),c);this.rc(b)}u(ev,jr);f=ev.prototype;f.ub=function(){var a=this.kl;return a!=null?a:this.tg()};f.rc=function(a){this.kl=a};f.Tb=function(a,b){ev.na.Tb.call(this,a,b);switch(a){case 8:ar(this,16)&&!b&&this.Qf(!1);(a=this.V())&&this.od().gp(this,a,b);break;case 16:(a=this.V())&&this.od().Lh(this,a,b)}};f.gp=function(a){this.Tb(8,a)};f.Lh=function(a){this.Tb(16,a)}; f.tg=function(){var a=this.wc();return Array.isArray(a)?(a=lb(a,function(b){return zf(b)&&(sh(b,"goog-menuitem-accel")||sh(b,"goog-menuitem-mnemonic-separator"))?"":If(b)}).join(""),Xc(a)):ev.na.tg.call(this)};f.ze=function(a){var b=this.getParent();if(b){var c=b.l;b.l=null;if(c&&typeof a.clientX==="number"&&Fb(c,new w(a.clientX,a.clientY)))return}ev.na.ze.call(this,a)};f.Xd=function(a){return a.keyCode==this.jl&&this.kf(a)?!0:ev.na.Xd.call(this,a)};f.Fs=function(){return this.jl}; gr("goog-menuitem",function(){return new ev(null)});ev.prototype.We=function(){return $q(this,16)?"menuitemcheckbox":$q(this,8)?"menuitemradio":ev.na.We.call(this)};ev.prototype.getParent=function(){return jr.prototype.getParent.call(this)};ev.prototype.yg=function(){return jr.prototype.yg.call(this)};function fv(a,b,c,d){Pr.call(this,a,b,c||d);(c||d)&&this.l(65|(d?32:132))}u(fv,Pr);function gv(){}u(gv,Sq);Sa(gv);gv.prototype.Pa=function(){return"goog-menuheader"};function hv(a,b,c){jr.call(this,a,c||gv.Hb(),b);this.Tb(1,!1);this.Tb(2,!1);this.Tb(4,!1);this.Tb(32,!1);this.je=1}u(hv,jr);gr("goog-menuheader",function(){return new hv(null)});function iv(){}u(iv,Sq);Sa(iv);iv.prototype.Kc=function(a){return a.g.Ma("DIV",this.Pa())};iv.prototype.Ob=function(a,b){b.id&&a.Fg(b.id);if(b.tagName=="HR"){var c=b;b=this.Kc(a);sf(b,c);E(c)}else O(b,this.Pa());return b};iv.prototype.dg=function(){};iv.prototype.Pa=function(){return"goog-menuseparator"};function jv(a,b){jr.call(this,null,a||iv.Hb(),b);this.Tb(1,!1);this.Tb(2,!1);this.Tb(4,!1);this.Tb(32,!1);this.je=1}u(jv,jr);jv.prototype.Ia=function(){jv.na.Ia.call(this);var a=this.V();Xj(a,"separator")};gr("goog-menuseparator",function(){return new jv});function kv(a){this.g=a||"menu"}u(kv,pt);Sa(kv);f=kv.prototype;f.Jj=function(a){return a.tagName=="UL"||kv.na.Jj.call(this,a)};f.mh=function(a){return a.tagName=="HR"?new jv:kv.na.mh.call(this,a)};f.Rd=function(a,b){return Af(a.V(),b)};f.fg=function(){return"goog-menu"};f.Kj=function(a){kv.na.Kj.call(this,a);a=a.V();X(a,"haspopup","true")};function lv(a){jv.call(this,iv.Hb(),a)}u(lv,jv);gr("goog-menuseparator",function(){return new jv});function mv(a,b){ut.call(this,"vertical",b||kv.Hb(),a);Dt(this,!1)}u(mv,ut);f=mv.prototype;f.ek=!0;f.Rd=function(a){if(this.od().Rd(this,a))return!0;for(var b=Nk(this),c=0;c"+(a.i.o.tb.length+" results in this book for ")+(nq(a.i.o)+"")));Wu(a,!0)} function tv(a){jn()||(Cv(a,A("search-result-prev"),function(){Dv(a,a.j,-1)},"Previous result"),Cv(a,A("search-result-next"),function(){Dv(a,a.j,1)},"Next result"));Cv(a,A("search-result-viewall"),function(){Uu(a.i)},"View all");Cv(a,A("search-close"),function(){a.Fa()},"Close search")} function uv(a){var b=C("SPAN");x(b,z("-  "));O(b,"search-bar-link-spacer");a.s.appendChild(b);Ev(a,a.s,"\u2039 Previous",function(){Dv(a,a.j,-1)},"Previous");b=C("SPAN");x(b,z("  "));O(b,"search-bar-link-spacer");a.s.appendChild(b);Ev(a,a.s,"Next \u203a",function(){Dv(a,a.j,1)},"Next");b=C("SPAN");x(b,z("  -  "));O(b,"search-bar-link-spacer");a.s.appendChild(b);Ev(a,a.s,"View all",function(){Uu(a.i)})} function wv(a){a.ka.appendChild(a.O);var b=C("SPAN");x(b,z("-  "));O(b,"search-bar-link-spacer");a.O.appendChild(b);a.O.appendChild(of("Order by: "));a.O.appendChild(a.Ea);Ev(a,a.Ea,"relevance",function(){Fv(a,"r")},"Order by relevance");b=C("SPAN");x(b,z(" | pages"));a.Ea.appendChild(b);a.O.appendChild(a.Ga);b=C("SPAN");x(b,z("relevance | "));a.Ga.appendChild(b);Ev(a,a.Ga,"pages",function(){Fv(a,"n")},"Order by pages")} function vv(a){a.U=a.o?A("sort-dropdown-button"):B("A",{"class":"search-bar-sort-dropdown-link"});var b=a.o?A("sort-dropdown-label"):B("SPAN",{"class":"search-bar-sort-dropdown-text"});H(b,"Order by ");a.ma=B("SPAN",{"class":"search-bar-sort-dropdown-selected"});H(a.ma,"pages");var c=a.U;bk(c,"Order by pages");c.setAttribute("title","Order by pages");b.appendChild(a.ma);b=new ov;var d=new ev("relevance");d.Kh("Order by relevance");b.Xa(d,!0);O(d.V(),"search-bar-sort-dropdown-item");var e=new ev("pages"); e.Kh("Order by pages");b.Xa(e,!0);th(e.V(),["search-bar-sort-dropdown-item","search-bar-sort-dropdown-item-selected"]);b.Ll=!0;a.ta?b.render(a.O):b.render(document.body);O(b.V(),"sort-dropdown-menu");c=C("SPAN");c.id="current-sort-label";H(c,"Current");N(c,!1);b.V().appendChild(c);X(e.V(),"describedby","current-sort-label");a.oa?(b.attach(a.U,12,13),O(b.V(),"popup-menu")):b.attach(a.U,13,12);a.g.ha(b,"action",function(g){Gv(a,g,d.V(),e.V())});a.g.ha(b,"keydown",function(g){g.keyCode!=32&&g.keyCode!= 13||Gv(a,g,d.V(),e.V())});a.ta&&a.g.ha(b,"beforeshow",function(){var g=a.U.offsetWidth-32;ch(d.V(),g);ch(e.V(),g)})}function xv(a){var b=C("SPAN");O(b,"search-bar-close-link-container");a.oa?a.Aa.appendChild(b):a.ka.appendChild(b);a.g.ha(b,"click",a.Fa);var c=Ev(a,b,"Clear search",function(){a.Fa()});O(c,"search-bar-close-link");c=C("IMG");c.src="/googlebooks/images/close_x.gif";O(c,"search-bar-close-img");b.appendChild(c)} function Wu(a,b){N(Av,!b);N(a.O,b);a.o?(N(a.s,!b),b=!b&&a.i.o.tb.length==1,P(a.s,"toolbar-button-disabled",b),X(a.s,"disabled",b)):N(a.s,!b&&a.i.o.tb.length>1);a.ka&&N(a.ka,!0);Hv!=null&&Hv.resize()}function Iv(a){a.U?Bv(a,!1):N(a.O,!1);a.ta&&N(a.O,!0);N(a.s,!1);rf(a.l)}function Qu(a){Iv(a);x(a.l,z("Loading..."));a.o&&a.l.removeAttribute("aria-label")} function Su(a){Iv(a);var b=a.i.o,c=oq(b),d=null;c&&!a.o&&(d=C("SPAN"),x(d,z("Did you mean: ")),Ev(a,d,c,function(){var h=a.i.i;if(h){var k=bd(c);wm(h.N.Va(),k);h.s.rc(k);h.o&&h.o.update()}}));var e=C("SPAN");a.o?x(e,z("No results")):x(e,z(Vb("No results found in this book for "+nq(b))));b=C("A");a.o||(x(b,z("Search all books")),b.setAttribute("target","_top"),O(b,"sitb-action-link"));var g=Vm()=="patents"?new R("https://www.google.com/search?tbm=pts&tbo=p&hl=en"):new R("https://www.google.com/search?tbm=bks&tbo=p"); Zu(g);T(g,"output")=="embed"&&ei(g,"output");S(g,"q",bd(nq(a.i.o)));Cc(b,g.toString());a.o?(a.l.appendChild(e),a.l.removeAttribute("aria-label")):a.oa?(a.l.appendChild(e),a.l.appendChild(b),d&&(Oc(d,"afterbegin",z("  ·  ")),a.l.appendChild(d))):(d&&(a.l.appendChild(d),a.l.appendChild(C("BR"))),Oc(e,"beforeend",z("  -  ")),a.l.appendChild(e),Oc(b,"beforeend",z(" »")),a.l.appendChild(b));Hv!=null&&Hv.resize()} function Jv(a,b,c,d,e){a.j+=e;a.j>=c.length&&(a.j=0);a.j<0&&(a.j=c.length-1);if(a.j!=d){var g=c[a.j];Tu(a.i,g)?(e=Th(S(S(S(new R(b.href),"pg",g.Ja()),"num",a.j),"scoring",a.i.j),""),Cc(b,e.toString()),Tu(a.i,c[d])):Jv(a,b,c,d,e)}}rv.prototype.qa=function(){W.prototype.qa.call(this);Of(this.ya);N(Av,!0);E(this.ka);Hv!=null&&Hv.resize();this.o&&(Xu(this,!1),E(cf("sort-dropdown-menu")),rf(this.l))}; function Ev(a,b,c,d,e){var g=C("SPAN");O(g,"search-bar-link");Xj(g,"link");bk(g,e?e:c);Ff(g,!0);b.appendChild(g);g.innerText=c;a.g.ha(g,"click",d);a.g.ha(g,"keydown",function(h){h.keyCode!=32&&h.keyCode!=13||d()});return g}function Cv(a,b,c,d){bk(b,d);b.setAttribute("title",d);a.g.ha(b,"click",c);a.g.ha(b,"keydown",function(e){e.keyCode!=32&&e.keyCode!=13||c()})}rv.prototype.Fa=function(){var a=this.i;wm(a.i.N.Va(),"");jn()&&vu(a.l,!1);(a=this.i.i)&&a.o&&a.o.update()}; function Dv(a,b,c){var d=a.i.o.tb.length;a.j+=c;a.j>=d&&(a.j=0);a.j<0&&(a.j=d-1);a.j!=b&&(Tu(a.i,a.i.o.tb[a.j])||Dv(a,b,c))}function Fv(a,b){(a=a.i.i)&&a.update(b)} function Gv(a,b,c,d){if((b=b.target.wc())&&a.ma){var e=a.U;switch(b){case "pages":Fv(a,"n");H(a.ma,"pages");bk(e,"Order by pages");e.setAttribute("title","Order by pages");P(d,"search-bar-sort-dropdown-item-selected",!0);X(d,"describedby","current-sort-label");P(c,"search-bar-sort-dropdown-item-selected",!1);c.removeAttribute("aria-describedby");break;case "relevance":Fv(a,"r"),H(a.ma,"relevance"),bk(e,"Order by relevance"),e.setAttribute("title","Order by relevance"),P(c,"search-bar-sort-dropdown-item-selected", !0),X(c,"describedby","current-sort-label"),P(d,"search-bar-sort-dropdown-item-selected",!1),d.removeAttribute("aria-describedby")}}} function Bv(a,b){a.U&&(P(a.U,"search-bar-sort-dropdown-disabled",!b),X(a.U,"disabled",!b));var c=a.i.j=="n";b&&!c&&(H(a.ma,"relevance"),b=a.U,bk(b,"Order by relevance"),b.setAttribute("title","Order by relevance"),b=bf("search-bar-sort-dropdown-item"),P(b[0],"search-bar-sort-dropdown-item-selected",!0),X(b[0],"describedby","current-sort-label"),P(b[1],"search-bar-sort-dropdown-item-selected",!1),b[1].removeAttribute("aria-describedby"));a.o&&a.l.setAttribute("data-search-sort",a.i.j)} function Xu(a,b){a.ta?(N(A("gb-mobile-search"),b),N(A("gb-mobile-search-buttons"),b)):(P(A("entity-page-search-nav"),"hide-search-nav",!b),P(A("search-results-summ"),"hide-search-nav",!b),P(A("search-close"),"hide-search-nav",!b))}var sv,Av,Hv;function Kv(a,b,c,d){W.call(this);var e=this;this.N=a;this.s=b;this.o=c;this.O=d;this.U=Ld&&d&&d.isOgenEligibleMobileViewport;this.g.ha(a.Va(),"change",function(){e.update("r")})}n(Kv,W); Kv.prototype.update=function(a,b,c){this.i?(this.i.dispose(),this.i=null):(this.N.O&&(this.l=this.N.O),this.j=new rv(this.O));var d=this.N.Va().getQuery();b&&!b.search_query_escaped&&b.number_of_results>0&&d&&(b.search_query_escaped=d);if(b&&b.search_query_escaped){if(this.i=new Ou(this),this.j.i=this.i,d=!ym(),Ru(this.i,d,b,c,a),a=this.j,jn()&&a.j!==void 0){b=a.i.o.tb;d=b.length;c=new R(window.location.href);var e=Number(T(c,"num"));e&&d>0&&(d=b[Number(e)],e=T(c,"jtp"),c=T(c,"pg"),e?Tu(a.i,d,"", e):c?Tu(a.i,d,c):Tu(a.i,d));c=a.j;d=A("search-result-prev");Jv(a,d,b,c,-1);bk(d,"Previous result");d.setAttribute("title","Previous result");d=A("search-result-next");Jv(a,d,b,c,1);bk(d,"Next result");d.setAttribute("title","Next result")}}else d?(this.i=new Ou(this),this.j.i=this.i,Pu(this.i,d,a),this.s.rc(d)):(this.i&&(this.i.dispose(),this.i=null),this.N.Da()instanceof gs&&(this.N.Ub(this.l),this.U&&!jn()&&this.N.Da().Uf(this.N.Da().getSize().width)),this.j&&(this.j.dispose(),this.j=null),this.s.rc(""))};function Lv(a,b){var c=this;this.N=a;b&&(this.g=b);this.l=new Nq(document);this.i={};this.j={};I(this.l,"key",function(d){var e=c.i[String.fromCharCode(d.charCode)]||c.j[d.keyCode];e&&e(d)});Mv(this,33,function(){Nv(c,-1)},!1,!0);Mv(this,34,function(){Nv(c,1)},!1,!0);Mv(this,38,function(){Ov(c,0,-20)},!1,!0);Mv(this,40,function(){Ov(c,0,20)},!1,!0);this.g||(Mv(this,37,function(){c.N.O==zr&&c.N.Da().Bb().getSize().width>c.N.qb()?Ov(c,-20,0):c.N.mb("previous")},!1,!0),Mv(this,39,function(){c.N.O==zr&& c.N.Da().Bb().getSize().width>c.N.qb()?Ov(c,20,0):c.N.mb("next")},!1,!0),Mv(this,32,function(d){d.shiftKey?Nv(c,-1):Nv(c,1)},!0,!0),Mv(this,74,function(){c.N.mb("next")},!0),Mv(this,75,function(){c.N.mb("previous")},!0),Pv(this,"+",function(){c.N.mb("zoomin")}),Pv(this,"-",function(){c.N.mb("zoomout")}),Pv(this,"=",function(){c.N.mb("zoomin")}));Pv(this,"?",function(){c.N.mb("showkeyboardshortcuts")})}function Pv(a,b,c){a.i[b]=t(Qv,c,!0,void 0)}function Mv(a,b,c,d,e){a.j[b]=t(Qv,c,d,e)} function Qv(a,b,c,d){b&&d.repeat||d.ctrlKey||d.altKey||d.metaKey||Rv[d.target.tagName.toUpperCase()]||(c&&d.preventDefault(),a(d))}function Nv(a,b){var c=a.g?a.g.clientHeight:a.N.Da().getSize().height;Ov(a,0,Math.floor(b*c*.75))}function Ov(a,b,c){a.g?a.g.scrollTop+=c:(a=a.N.Da(),lp(a,new w(b,c),r(a.Ad,a)))}var Rv={BUTTON:!0,INPUT:!0,SELECT:!0,TEXTAREA:!0};function Sv(a){this.Xb=ko(a)}n(Sv,wo);var Tv=function(a){return function(b){b=JSON.parse(b);if(!Array.isArray(b))throw Error("Expected jspb data to be an array, got "+Ta(b)+": "+b);Zn(b,34);return new a(b)}}(Sv);var Uv;function Vv(){var a=Uv||(Uv=Tv('[null,null,null,null,null,"(function(){\'use strict\';var f\\u003dtypeof Object.defineProperties\\u003d\\u003d\\"function\\"?Object.defineProperty:function(a,c,b){if(a\\u003d\\u003dArray.prototype||a\\u003d\\u003dObject.prototype)return a;a[c]\\u003db.value;return a};function g(a){a\\u003d[\\"object\\"\\u003d\\u003dtypeof globalThis\\u0026\\u0026globalThis,a,\\"object\\"\\u003d\\u003dtypeof window\\u0026\\u0026window,\\"object\\"\\u003d\\u003dtypeof self\\u0026\\u0026self,\\"object\\"\\u003d\\u003dtypeof global\\u0026\\u0026global];for(var c\\u003d0;c\\u003ca.length;++c){var b\\u003da[c];if(b\\u0026\\u0026b.Math\\u003d\\u003dMath)return b}throw Error(\\"Cannot find global object\\");}var h\\u003dg(this);\\nfunction k(a,c){if(c)a:{var b\\u003dh;a\\u003da.split(\\".\\");for(var d\\u003d0;d\\u003ca.length-1;d++){var e\\u003da[d];if(!(e in b))break a;b\\u003db[e]}a\\u003da[a.length-1];d\\u003db[a];c\\u003dc(d);c!\\u003dd\\u0026\\u0026c!\\u003dnull\\u0026\\u0026f(b,a,{configurable:!0,writable:!0,value:c})}}k(\\"globalThis\\",function(a){return a||h});/*\\n\\n Copyright Google LLC\\n SPDX-License-Identifier: Apache-2.0\\n*/\\nvar l\\u003dglobalThis.trustedTypes,m;function n(){var a\\u003dnull;if(!l)return a;try{var c\\u003dfunction(b){return b};a\\u003dl.createPolicy(\\"goog#html\\",{createHTML:c,createScript:c,createScriptURL:c})}catch(b){}return a};function p(a){this.g\\u003da}p.prototype.toString\\u003dfunction(){return this.g+\\"\\"};function q(a){m\\u003d\\u003d\\u003dvoid 0\\u0026\\u0026(m\\u003dn());a\\u003dm?m.createScriptURL(a):a;return new p(a)};if(!function(){if(self.origin)return self.origin\\u003d\\u003d\\u003d\\"null\\";if(location.host!\\u003d\\u003d\\"\\")return!1;try{return window.parent.escape(\\"\\"),!1}catch(a){return!0}}())throw Error(\\"sandboxing error\\");\\nwindow.addEventListener(\\"message\\",function(a){var c\\u003da.ports[0];a\\u003da.data;var b\\u003da.callbackName.split(\\".\\"),d\\u003dwindow;b[0]\\u003d\\u003d\\u003d\\"window\\"\\u0026\\u0026b.shift();for(var e\\u003d0;e\\u003cb.length-1;e++)d[b[e]]\\u003d{},d\\u003dd[b[e]];d[b[b.length-1]]\\u003dfunction(r){c.postMessage(JSON.stringify(r))};b\\u003ddocument.createElement(\\"script\\");a\\u003dq(a.url);if(a instanceof p)a\\u003da.g;else throw Error(\\"\\");b.src\\u003da;document.body.appendChild(b)},!0);}).call(this);\\n"]')); if(!a)return null;a=qo(a.Xb,6);a=a==null||typeof a==="string"?a:void 0;if(a===null||a===void 0)a=null;else{var b=lc();a=b?b.createScript(a):a;a=new Jc(a)}return a};function Wv(a){this.url=a;this.timeout=5E3;this.l="callback";this.g=this.i=null}function Xv(a){var b=b===void 0?{}:b;a.g=gj();var c=new R(a.url),d=new Map;d.set("callback",a.l);c.i.Np(hi(b),d);Yv(a).then(function(){Zv(a,c.toString())}).then(function(){return a.g.promise}).then(function(){$v(a)},function(){$v(a)});a.timeout>0&&(a.j=setTimeout(function(){a.g.reject("Timeout!")},a.timeout));return a.g.promise} function Zv(a,b){var c=new MessageChannel;a.i.contentWindow.postMessage({url:b,callbackName:a.l},"*",[c.port2]);c.port1.onmessage=function(d){var e={};a.j!==void 0&&(clearTimeout(a.j),a.j=void 0);d.data===void 0&&a.g.reject("Callback called, but no data received");typeof d.data!=="string"&&a.g.reject("Exploitation attempt! Data is not a string!");try{e=JSON.parse(d.data)}catch(g){a.g.reject("Invalid Data received: "+g.message)}a.g.resolve(e)}} function Yv(a){var b=gj(),c=C("IFRAME");if(!c.sandbox)throw Error("iframe sandboxes not supported");c.sandbox.value="allow-scripts";c.style.display="none";a.i=c;a=Vv();a=ee([Ec(""),le("body",{},de(a))]);c.srcdoc=Gc(a);a=Tc("data:text/html;charset=UTF-8;base64,"+btoa(Gc(a).toString()));c.src=oc(a).toString();c.addEventListener("load",function(){return b.resolve(c)},!1);c.addEventListener("error",function(d){b.reject(d)},!1);document.documentElement.appendChild(c);return b.promise} function $v(a){a.i!==null&&(document.documentElement.removeChild(a.i),a.i=null)};function aw(a){op.call(this,a);this.i=new Wv(a);this.g=!0}n(aw,op);aw.prototype.Qd=function(a,b){op.prototype.Qd.call(this,a,b);this.g=!1;Xv(this.i).then(r(this.o,this,a),r(this.l,this,b))};aw.prototype.o=function(a,b){this.g||(this.j=b,this.dispatchEvent("success"),a&&a(this.j),this.g=!0)};aw.prototype.l=function(a){this.g||(this.dispatchEvent("error"),a&&a(),this.g=!0)};aw.prototype.abort=function(){return this.g=!0};function bw(a,b,c,d,e){Array.isArray(a)||(a=[a]);this.g=a;this.j=b;this.i=c;b=new R((GBS_HOST||"https://books.google.com/")+"books?jscmd=viewapi");S(b,"bibkeys",a.join(","));S(b,"hl",e||"en");S(b,"source",d||"previewlib");(new aw(b)).Qd(r(this.l,this))}bw.prototype.l=function(a){for(var b=0;b":g.push(m);c.push(b(g.join(""), h));e=0;g=[];k=h=null;break;default:g.push(m)}break;default:throw Error();}e===1&&l>=d&&(l=k+1,c.push("<"),e=0,g=[],k=h=null)}return c.join("")}function ww(a){a!=null&&a.Bf===hw?(a=rw(a.wc()),a=String(a).replace(xw,pw)):a=String(a).replace(ow,pw);return a} var yw={"\x00":"�","\t":" ","\n":" ","\v":" ","\f":" ","\r":" "," ":" ",'"':""","&":"&","'":"'","-":"-","/":"/","<":"<","=":"=",">":">","`":"`","\u0085":"…","\u00a0":" ","\u2028":"
","\u2029":"
"};function pw(a){return yw[a]} var ow=/[\x00\x22\x26\x27\x3c\x3e]/g,xw=/[\x00\x22\x27\x3c\x3e]/g,zw=/^(?!on|src|(?:action|archive|background|cite|classid|codebase|content|data|dsync|href|http-equiv|longdesc|style|usemap)\s*$)(?:[a-z0-9_$:-]*)$/i,tw=/"+mw(c!=null?c:"")+"")};function Dw(a,b){this.j=a;this.s=!!b;this.l={0:this.j+"-arrowright",1:this.j+"-arrowup",2:this.j+"-arrowdown",3:this.j+"-arrowleft"}}n(Dw,Ap);f=Dw.prototype;f.lj=function(a){this.i=a};f.setPosition=function(a,b,c,d){a!=null&&(this.mk=a);b!=null&&(this.ik=b);typeof c==="number"&&(this.on=Math.max(c,15));typeof d==="number"&&(this.ml=d)};f.Jc=function(a,b,c){a=this.ik;a==2&&(a=0);Ew(this,this.mk,a,this.ik==2?Fw(this.mk)?this.g.offsetHeight/2:this.g.offsetWidth/2:this.on,0,c)}; function Ew(a,b,c,d,e,g){if(a.i){var h=Gw(b,c);var k=a.i;var l=a.g,m=a.Ba,p=M(k);a:{p=(Fw(b)?p.height/2:p.width/2)-d;var y=Dp(k,h);if(m)m=m.clone(),l&&(l=Cp(l),m.left+=l.x,m.right+=l.x,m.top+=l.y,m.bottom+=l.y);else if(m=Ug(k),!m){k=p;break a}k=Dg(eh(k));Fw(b)?k.topm.bottom&&y&1&&(p-=k.bottom-m.bottom):k.leftm.right&&y&4&&(p-=k.right-m.right);k=p}k=Fw(b)?new w(a.ml,k):new w(k,a.ml);p=Fw(b)?6:9;a.fk&&e==2&&(p=Fw(b)?4:1); y=b^3;Fw(b)&&a.i.dir=="rtl"&&(y=b);h=Bp(a.i,Gw(y,c),a.g,h,k,g,a.Tk?p:0,void 0,a.Ba);if(e!=2&&h&496){Ew(a,b^3,c,d,a.fk&&e==0?1:2,g);return}!a.s||h&496||(e=parseFloat(a.g.style.left),g=parseFloat(a.g.style.top),isFinite(e)&&e%1==0&&isFinite(g)&&g%1==0||Pg(a.g,Math.round(e),Math.round(g)))}Hw(a,b,c,d)} function Hw(a,b,c,d){var e=a.o;Kb(a.l,function(g){P(e,g,!1)},a);O(e,a.l[b]);e.style.top=e.style.left=e.style.right=e.style.bottom="";a.i?(c=Zg(a.i,a.g),d=Iw(a.i,b),Fw(b)?e.style.top=Jw(c.y+d.y,a.g.offsetHeight-15)+"px":e.style.left=Jw(c.x+d.x,a.g.offsetWidth-15)+"px"):e.style[c==0?Fw(b)?"top":"left":Fw(b)?"bottom":"right"]=d+"px"}function Jw(a,b){return 15>b?15:Eb(a,15,b)}function Gw(a,b){switch(a){case 2:return b==0?1:5;case 1:return b==0?0:4;case 0:return b==0?12:13;default:return b==0?8:9}} function Iw(a,b){var c=0,d=0;a=M(a);switch(b){case 2:c=a.width/2;break;case 1:c=a.width/2;d=a.height;break;case 0:d=a.height/2;break;case 3:c=a.width,d=a.height/2}return new w(c,d)}function Fw(a){return a==0||a==3}f.Tk=!1;f.ik=2;f.on=20;f.mk=3;f.Ba=null;f.ml=-5;f.fk=!1;function Kw(a){Pf.call(this);this.i=a||Ve()}n(Kw,Pf);Kw.prototype.o=function(){Xj(this.V(),"tooltip");X(this.V(),"live","polite")};function Lw(a){Kw.call(this,a);this.g=this.i.Ma("DIV",Mw()+"-contentId");this.j=this.i.Ma("DIV",Mw()+"-arrow",this.i.Ma("DIV",Mw()+"-arrowimplbefore"),this.i.Ma("DIV",Mw()+"-arrowimplafter"));this.l=this.i.Ma("DIV",{"class":Mw(),role:"tooltip"},this.g,this.j);this.o()}n(Lw,Kw);function Mw(){return"jfk-tooltip"}Lw.prototype.V=function(){return this.l};Lw.prototype.qa=function(){Kw.prototype.qa.call(this);this.l&&E(this.l)};function Nw(a){Lw.call(this,a)}n(Nw,Lw);Nw.prototype.o=function(){Xj(this.V(),"tooltip")};function Ow(a){return bd(Vb(a.replace(Pw,function(b,c){return Qw.test(c)?"":" "}).replace(/[\t\n ]+/g," ")))}var Qw=/^(?:abbr|acronym|address|b|em|i|small|strong|su[bp]|u)$/i,Pw=/<[!\/]?([a-z0-9]+)([\/ ][^>]*)?>/gi;function Rw(a){a=a||Ve();var b=Wa(a.g);Sw[b]||(Sw[b]=new Tw(a))}function Uw(a,b){var c=b instanceof Dc?Ow(Gc(b).toString()):b;a.removeAttribute("title");a.removeAttribute("data-tooltip-contained");a.removeAttribute("data-tooltip");b?(b instanceof Dc?a.j=b:(a.setAttribute("data-tooltip",b),a.j=null),a.setAttribute("aria-label",c)):(a.j=null,a.removeAttribute("aria-label"));Rw(Ve(a))}var Sw={}; function Tw(a){sg.call(this);this.ta=a;this.oa=new Dj(this.yv,0,this);Qf(this,this.oa);var b=kf();this.U=typeof b.MutationObserver==="function"?new b.MutationObserver(r(this.Ms,this)):null;a=a.g;this.ha(a,"mouseout mousedown click blur focusout keydown".split(" "),this.gs,!0);this.ha(a,["mouseover","focus","focusin"],this.jv,!0)}n(Tw,sg);f=Tw.prototype;f.qa=function(){Vw(this);sg.prototype.qa.call(this)}; function Ww(a,b){switch(b.type){case "mousedown":case "mouseover":case "mouseout":case "click":a.ya=!1;break;case "keydown":a.ya=!0}}f.jv=function(a){this.U&&this.U.disconnect();Ww(this,a);var b=a.target;a=a.type=="focus"||a.type=="focusin";var c=this.g&&Af(this.g.g,b);if(this.ya||!a||c){this.Aa=a;if(a=b&&b.getAttribute&&this.U)a=b.getAttribute("role")||null,a=pb(Wj,a);a&&(this.U.observe(b,{attributes:!0}),(a=Zj(b))&&(b=a));this.l=b}else this.l=null;Xw(this)}; f.gs=function(a){Ww(this,a);var b=a.target;b=this.g&&Af(this.g.g,b);if(a.type!="mousedown"&&a.type!="click"||!b)this.l=null,Xw(this)};f.Ms=function(a){v(a,r(function(b){var c=Zj(b.target);c&&b.attributeName=="aria-activedescendant"&&(this.l=c,Xw(this))},this))};function Xw(a){if(!(a.oa.isActive()&&a.i&&a.O)){Vw(a);var b=a.O!=null?a.O:50;a.oa.start(a.i?b:300)}}function Vw(a){a.ka&&(vj(a.ka),a.ka=0,a.i=null)} f.yv=function(){if(!this.l)Yw(this),this.O=this.i=null;else if(!(this.i&&this.g&&Af(this.g.V(),this.l))||this.i.getAttribute("data-tooltip-unhoverable")){var a=Kf(this.l,function(k){return k.getAttribute&&(k.getAttribute("data-tooltip-contained")||k.getAttribute("data-tooltip")||k.j)&&!k.getAttribute("data-tooltip-suspended")}),b=!1;this.i&&this.i!=a&&(Yw(this),this.O=this.i=null,b=!0);if(!this.i&&a&&(this.i=a,!(a.getAttribute("data-tooltip-only-on-overflow")&&a.offsetWidth>=a.scrollWidth&&a.offsetHeight>= a.scrollHeight||this.Aa&&"mouse"==a.getAttribute("data-tooltip-trigger")))){var c=Fc;if(a.getAttribute("data-tooltip-contained"))for(var d=bf("jfk-tooltip-data",a),e=0;e=Bg(this.Fa,this.s))}if(b){if(this.Oh(),this.Rb=null,b=this.ka)b.Rb=null}else Bu(this)==3&&this.lg();gx.na.zg.call(this,a)};f.Qk=function(){this.Rb!=this.V()&&(this.Uh=!1,this.Rb=this.V())};f.Kk=function(){return this.Uh?100:gx.na.Kk.call(this)};function ix(a,b){a=new gx(a);a.zl(Be(Je,b.innerHTML));a.className="buy-tip-card";a.ta=new yg(5,5,5,5);a.zi=!0;a.Hg=500;a.zh=250};function jx(a,b){this.wb=a||200;this.ob=b||108;W.call(this)}u(jx,W);jx.prototype.Ab=function(){return this.wb};jx.prototype.qb=function(){return this.ob};function kx(a){yu.call(this,a,void 0,void 0);this.Hn=!1;this.zi=!0;this.Hg=500}n(kx,gx);kx.prototype.tj=function(a,b){b||(b=new Pr(a,9,!0));gx.prototype.tj.call(this,a,b)};kx.prototype.className="unified-hovercard";function lx(a,b,c){Pf.call(this);this.i=null;this.data=a;this.g=b;this.maxWidth=c||500}n(lx,Pf);lx.prototype.qa=function(){this.i&&this.i.dispose()};function mx(a){return a.i||(a.i=new sg(a))} lx.prototype.j=function(a){var b=B("DIV"),c=new R(this.data.va.Ag||this.data.va.Qo);this.data.va.source&&S(c,"source",this.data.va.source);var d=this.data.Za();this.data.va.np&&(d+=": "+this.data.va.np);d=B("A",{},d);d.classList.add(this.g+"-title");Cc(d,c.toString());b.appendChild(d);a.appendChild(b);nx(this,a);this.data.va.Il&&(c=new Ue.Pv,b=B("DIV",this.g+"-snippet"),x(b,Be(c,this.data.va.Il+" ")),c=B("A",{},"more \u00bb"),c.classList.add(this.g+"-more-link"),Cc(c,this.data.va.Ag),b.appendChild(c), a.appendChild(b))}; function nx(a,b){var c="",d=B("DIV"),e=a.data.va.jk;if(!Ub(id(e))){c=e.split(/\s*,\s*/g);e=c.length;if(!e)return;var g=B("SPAN","author"),h=e-1,k=of(", ");v(c,function(l,m){var p=l?l.replace(ox,""):"";p=Vc(p);l=new R(Uc('/ebooks?output=ws2&as_brr=5&q=inauthor:"%s"',p));Zu(l);p=B("A",{},p);Cc(p,l.toString());g.appendChild(p);m)|(<\/b>)/ig,qx={VIEW_PAGES_PARTIAL:2,VIEW_PAGES_ALL:5,VIEW_PAGES_PARTIAL_FIXED:6,VIEW_PURCHASED:7,VIEW_GOOGLE_EDITIONS_PREVIEW:8};function rx(){this.va={}}f=rx.prototype;f.Za=function(){return this.va.title};f.Sb=function(){return this.va.Nl};f.Nd=function(){return this.va.Nd};f.Vk=function(){return this.va.Vk};f.Kf=function(){return this.va.Kf};f.Ch=function(){return this.va.Ch};function sx(){this.g=[]}f=sx.prototype;f.getId=function(){return this.rb};f.Fg=function(a){this.rb=a};f.Za=function(){return this.tc};f.ug=function(){return this.l};function tx(a,b,c){ux(a,b)||a.U==null||!a.j?c&&c(null):vx(b,a.U.clone(),r(a.Xr,a,b,c||function(){}))}function wx(a,b,c){ux(a,b)&&a.ka!=null&&a.ma?vx(b,a.ka.clone(),r(a.os,a,b,c||function(){})):c&&c(null)}function vx(a,b,c){S(b,"id",a);qi(b,c,"POST")}f.Xr=function(a,b,c){var d=null;vi(c.target)&&(d=new rx,d.va.Nl=a,this.g.push(d));b(d)}; f.os=function(a,b,c){var d=null;vi(c.target)&&(d=ux(this,a),xx(this,d));b(d)};function xx(a,b){tb(a.g,function(c){return c.Sb()==b.Sb()})}function ux(a,b){return nb(a.g,function(c){return c&&c.Sb()==b})};function yx(a){this.va={};this.va.title=a.title;this.va.np=a.subtitle;this.va.jk=a.authors;this.va.Qo=a.preview_url;this.va.Ag=a.info_url;this.va.ej=a.pub_date;this.va.Fo=a.num_pages;this.va.Ep=a.viewability;this.va.zw=a.subject;this.va.vp=a.thumbnail_url;this.va.Il=a.snippet;this.va.lw=a.list_price;this.va.cp=a.sale_price;this.va.ww=a.sale_price_better;this.va.vu=a.offer_price;this.va.qk=a.buy_url;this.va.To=a.read_url;this.va.Si=a.is_free_ebook||!1;this.va.Qi=a.in_my_ebooks||!1;this.va.nw=a.my_ebooks_url|| "";this.va.tw=a.rating_score||0;this.va.ow=a.num_reviews||0;this.va.Nd=a.is_purchased||!1;this.va.Bh=a.is_ebook||!1;this.va.Dw=a.write_review_url||"";this.va.Es=a.add_to_my_ebooks_url||"";this.va.Pu=a.preview_ebook_url||"";this.va.uw=a.reviews_url||"";this.va.yj=a.view_order_url||"";this.va.cw=a.add_to_my_ebooks_url;this.va.Wr=a.add_to_my_ebooks_url_is_on_play||!1;this.va.Oi=a.has_flowing_text||!1;this.va.Pi=a.has_scanned_text||!1;var b=Um(a.info_url);this.va.Nl=b;this.va.ew=a.canonical_atb_url|| "";this.va.Vk=a.is_rentable||!1;this.va.Mf=a.is_pre_order||!1;this.va.Lo=a.on_sale_date||"";this.va.Kf=a.is_pre_ordered||!1;this.va.kw=a.issue_volume_count||0;this.va.Ch=a.is_volume_cancelled||!1;this.va.Zr=a.cancelled_reason||"0";switch(a.rental_state){case 1:this.va.hj=1;break;case 2:this.va.hj=2}this.va.Yu=a.rental_end_utc||0}n(yx,rx);function zx(a){this.g=[];this.Fg(a.id);this.o=a.owner_uid;this.tc=a.title;this.l=a.description;this.ta=a.num_volumes;this.le=a.access||"0";this.Ha=a.can_modify_metadata;this.O=a.predefined;this.ma=a.can_remove_volumes;this.j=a.can_add_volumes;this.oa=a.can_only_add_ebooks||!1;this.U=new R(a.add_vol_base_url);this.ka=new R(a.del_vol_base_url);a.paused!==void 0&&(this.i=a.paused,this.s=a.pause_bookshelf_url);a.volumes&&(this.g=lb(a.volumes,function(b){return new yx(b)}))}n(zx,sx);function Ax(){W.call(this);this.j=[];this.i=[]}u(Ax,W);function Bx(a){var b=new R(kf().location);b=new R(b);return a===parseInt(T(b,"as_coll"),10)}function Cx(a,b,c){Dx(a,b.getId())||(a=b.O?a.j:a.i,c?xb(a,void 0,0,b):a.push(b))}function Ex(a,b,c){var d=b.le==1;a=new R(a);S(a,"cl_title",b.Za());S(a,"cl_mode",d?"public":"private");b="cl_des="+Yc(b.ug());qi(a,c,"POST",b)} Ax.prototype.s=function(a){a=a.target;if(vi(a)){a=new zx(yi(a));var b=Dx(this,a.getId());b.tc=a.Za();b.l=a.ug();b.le=a.le;b=new Sf("update",this);b.shelf=a;this.dispatchEvent(b)}};Ax.prototype.o=function(a,b){b=b.target;vi(b)&&(b=new zx(yi(b)),Cx(this,b,a),a=new Sf("add",this),a.shelf=b,this.dispatchEvent(a))};function Fx(a,b){a.l=new R(b);S(a.l,"jscmd","ClCreate")}function Dx(a,b){return nb(Gx(a),function(c){return c.getId()==b})}function Gx(a){return Cb(a.j,a.i)};function Hx(a,b){var c=B("A",{},"View order");Cc(c,a);c.classList.add(b);return c};function Ix(a,b,c){lx.call(this,a,b,c);T(new R(this.data.va.Ag),"dapp")}n(Ix,lx); Ix.prototype.render=function(a){rf(a);var b=B("DIV",this.g),c=B("DIV",this.g+"-meta");this.j(c);var d=B("DIV",this.data.va.Bh?this.g+"-footer":this.g+"-footer-nonebook"),e=B("DIV",this.g+"-footer-inner");if(this.data.va.Bh)if(this.data.Ch()&&Bx(1))Jx(this,e);else if(this.data.va.Mf&&!this.data.Nd()||this.data.Kf()){var g=B("DIV",this.g+"-pre-order-date");g.textContent="Available on: "+this.data.va.Lo;e.appendChild(g);this.data.Kf()&&Bx(1)&&Jx(this,e)}else if(this.data.Nd()&&Bx(1))Kx(this,e),Jx(this, e);else{Kx(this,e);g=!this.data.Nd()&&!this.data.va.Si;var h=this.data.va.Si&&!this.data.va.Qi;if(g||h){g=B("SPAN",{"class":this.g+"-footer-inner-right"});if(h=this.data.va.Pu||this.data.va.To){for(var k=h.search(Mh),l=0,m,p=[];(m=Lh(h,l,"source",k))>=0;)p.push(h.substring(l,m)),l=Math.min(h.indexOf("&",m)+1||k,k);p.push(h.slice(l));h=p.join("").replace(Oh,"$1");h=Kh(h,"source","ebookstore")}h&&(k=B("A",{id:"unified-hovercard-preview-link"},"preview it"),Cc(k,h),g.appendChild(k));e.appendChild(g)}}d.appendChild(e); b.appendChild(c);b.appendChild(d);a.appendChild(b);M(a).width>this.maxWidth&&L(a,this.maxWidth,"")}; Ix.prototype.j=function(a){if(!(this.data.Nd()||this.data.Kf()||this.data.Ch())&&this.data.va.yj&&Bx(1)){var b=B("IMG",{src:"/googlebooks/images/purchase_error.gif","class":this.g+"-error-icon"});b=B("DIV",this.g+"-card-error",b,"Credit card declined:");if(this.data.va.yj){var c=Hx(this.data.va.yj,"primary"),d=B("SPAN");d.innerText=" ";b.appendChild(d);b.appendChild(c)}a.appendChild(b)}lx.prototype.j.call(this,a);b=B("DIV",this.g+"-book-options");if(this.data.va.Bh){if(this.data.va.Si)this.data.va.Qi? Lx(this,b):px(this,b,"Read eBook",this.data.va.Es,!this.data.va.Wr,void 0,"unified-hovercard-free-btn");else if(this.data.Kf()){var e=B("SPAN",this.g+"-pre-ordered","Pre-ordered");b.appendChild(e)}else this.data.Ch()&&Bx(1)?(e=B("DIV",this.g+"-cancelled"),c=this.data.va.Zr,c==0?H(e,"Cancelled - by customer request"):c==1?H(e,"Cancelled - problem with eBook"):c==2?H(e,"Cancelled - price change"):c==3?H(e,"Cancelled - publisher cancellation"):H(e,"Cancelled"),b.appendChild(e)):this.data.Nd()||this.data.va.Qi? !this.data.Nd()&&this.data.va.Qi?Mx(this,b):this.data.Nd()&&Lx(this,b):Mx(this,b);Bx(7)&&(e=B("SPAN",this.g+"-offline-remove-options"),c=B("SPAN",{id:"unified-hovercard-remove-from-ebooks","class":this.g+"-fake-link"},"Remove from My eBooks"),c.id="hovercard-remove-from-my-ebooks",e.appendChild(c),b.appendChild(e))}else{c=this.data.va.Qo;a:{for(e in qx)if(qx[e]==this.data.va.Ep){e=!0;break a}e=!1}e&&!Ub(c)?px(this,b,"Preview",c,void 0,void 0,"unified-hovercard-preview-sample"):px(this,b,"Preview", c,!1,!0,"unified-hovercard-preview-sample")}a.appendChild(b)};function Jx(a,b){var c=B("DIV",{id:"unified-hovercard-purchased-shelf-links","class":a.g+"-order-links-container"}),d=a.data.va.yj;d&&(d=Hx(d,""),c.appendChild(d));a.data.Kf()||(d=B("DIV",{id:"unified-hovercard-delete-forever","class":a.g+"-footer-fake-link"},"Delete forever"),O(d,a.g+"-footer-action-link"),d.id="hovercard-delete-forever",c.appendChild(d));b.appendChild(c)} function Mx(a,b){a.data.va.Mf&&!a.data.Nd()?px(a,b,"Pre-order eBook - "+a.data.va.cp,a.data.va.qk,void 0,void 0,"unified-hovercard-buy-btn"):a.data.Vk()?px(a,b,"EBOOK FROM "+a.data.va.vu,a.data.va.qk,void 0,void 0,"unified-hovercard-buy-btn"):px(a,b,"Buy eBook - "+a.data.va.cp,a.data.va.qk,void 0,void 0,"unified-hovercard-buy-btn")}function Lx(a,b){px(a,b,"Read now",a.data.va.To,void 0,void 0,"unified-hovercard-read-now")} function Kx(a,b){var c=B("DIV",a.g+"-supported-devices"),d=a.g+"-device-type",e=a.g+"-device-supported",g=a.g+"-device-not-supported",h=B("SPAN",d,"Web"),k=B("SPAN",d,"Tablet / iPad"),l=B("SPAN",d,"eReader");d=B("SPAN",d,"Smartphone");var m=B("SPAN","goog-inline-block"),p=B("SPAN","goog-inline-block"),y=B("SPAN","goog-inline-block"),D=B("SPAN","goog-inline-block");a.data.va.Oi?(O(m,e),O(p,e),O(y,e),O(D,e)):(a.data.va.Pi?(O(m,e),O(p,e)):(O(m,g),O(p,g)),O(y,g),O(D,g));c.appendChild(m);c.appendChild(h); c.appendChild(p);c.appendChild(k);c.appendChild(y);c.appendChild(l);c.appendChild(D);c.appendChild(d);b.appendChild(c)};function Nx(a,b,c){kx.call(this,a);this.Ib=wj();this.j=this.ya=this.o=null;this.Fb=b;this.i=null;this.Jb=!!c;this.render(b);Ox(this)}n(Nx,kx);Nx.prototype.qa=function(){mx(this.i).dispose();E(this.V())};Nx.prototype.Eh=function(a,b){kx.prototype.Eh.call(this,a,b);this.isVisible()&&(this.hl=this.Ib?new yg(0,-2,0,0):new yg(0,0,0,-2),this.isVisible()&&this.Vf(),this.o=this.g,Px(this))}; Nx.prototype.render=function(a){this.i&&(this.i.dispose(),this.j=this.ya=null);this.i=new Ix(a,this.className,435,this.Jb);this.i.render(this.V());Ox(this);this.isVisible()&&Px(this)}; function Px(a){var b=C("DIV"),c=C("DIV");var d=eh(a.o||null);var e=eh(a.V());if(d){d.top=Math.ceil(d.top);e.top=Math.ceil(e.top);d.left=Math.ceil(d.left);e.left=Math.ceil(e.left);var g=e.top>=d.top,h=Gg(e,d);h||(h=new Cg(d.left,0,d.width,0));d=a.Ib?e.left+e.width-h.left-(h.width/2+12):h.left-e.left+(h.width/2-12);e={x:d>0?d:0,y:e.height-2,iu:g}}else e=null;g=a.Ib?"marginRight":"marginLeft";K(c,g,e.x+"px");K(b,g,e.x-1+"px");O(a.V(),a.className+"-tooltip");e.iu?(K(c,"bottom",e.y+"px"),K(b,"bottom", e.y+1+"px"),O(c,a.className+"-arrow-up"),O(b,a.className+"-arrow-up-border")):(K(c,"top",e.y+"px"),K(b,"top",e.y+1+"px"),a.Fb.va.Bh||O(c,a.className+"-nofooter"),O(c,a.className+"-arrow-down"),O(b,a.className+"-arrow-down-border"));a.j?vf(b,a.j):a.V().appendChild(b);a.ya?vf(c,a.ya):a.V().appendChild(c);a.ya=c;a.j=b} Nx.prototype.ac=function(a){var b=a.target||null;if(b){b.nodeType==3&&(b=b.parentNode);switch(b.id){case "hovercard-remove-from-my-ebooks":a.preventDefault();var c="c";break;case "hovercard-save-sample-for-later":case "hovercard-add-to-my-ebooks":a.preventDefault();c="a";break;case "hovercard-delete-forever":a.preventDefault();c="b";break;default:b.href&&(c="f",a.type=="touchstart"&&Sc(window.location,b.href))}c&&this.dispatchEvent(new Sf(c,this))}}; function Ox(a){var b=fk||gk?"touchstart":"click";vg(mx(a.i),a.V(),b,a.ac,a)};function Qx(a,b,c){jx.call(this,b);this.i=a;this.j=null;this.o=!1;if(c==(1).toString()||c==(7).toString())this.o=!0}u(Qx,jx);var Rx=new Q; Qx.prototype.Lc=function(a){var b=B("A",{className:"slider-link goog-inline-block"});L(b,"",this.Ab());var c=new R(this.i.va.Ag);this.i.va.source?S(c,"source",this.i.va.source):S(c,"source","gbs_slider_thumb");ei(c,"num");Cc(b,c.toString());a.appendChild(b);this.j=C("IMG");this.j.alt="";this.g.ef(this.j,"load",r(this.ka,this));Rx.dispatchEvent("start");(a=this.i.va.vp)?(a=new R(a),S(a,"h",this.Ab()),S(a,"stbn",1),ei(a,"edge"),this.j.src=a.toString()):this.j.src="/googlebooks/images/no_cover_thumb.gif"; L(this.j,"",this.Ab());b.appendChild(this.j);this.o&&this.i.va.hj==2?(this.l=B("SPAN",["bookcard-badge","bookcard-sample-label"],"Expired"),b.appendChild(this.l)):this.o&&this.i.va.hj==1?(a=this.i,a.va.hj==1?(a=a.va.Yu-bb()/1E3,a=Math.round(a/3600),c=Math.round(a/24),a=a<=1?"Expiring soon":a<=48?a+" hours":c+" days"):a="",this.l=B("SPAN",["bookcard-badge","bookcard-sample-label"],a),b.appendChild(this.l)):!this.o||this.i.Nd()||this.i.va.Si||(this.l=B("SPAN",["bookcard-badge","bookcard-sample-label"], "Sample"),b.appendChild(this.l));hg(b,"mouseover",this.ma.bind(this,b))};Qx.prototype.ka=function(){this.dispatchEvent("render");Rx.dispatchEvent("complete");this.l&&ch(this.l,M(this.j).width)};Qx.prototype.ma=function(a,b){(new Nx(a,this.i)).ye(b)};function Sx(a,b,c){Qx.call(this,a,b-40,c);this.s=B("DIV","slider-annotation");this.O=!1}n(Sx,Qx);Sx.prototype.Lc=function(a){hg(this,"render",r(this.oa,this));Qx.prototype.Lc.call(this,a);a.appendChild(this.s)};Sx.prototype.oa=function(a){if(!this.O){a.stopPropagation();a=this.s;var b=this.U();a.appendChild(b);this.O=!0;this.dispatchEvent("render")}};function Tx(a,b,c){Sx.call(this,a,b,c)}n(Tx,Sx);Tx.prototype.Lc=function(a){Sx.prototype.Lc.call(this,a)};Tx.prototype.U=function(){var a=this.i,b=C("DIV"),c=B("A",{className:"slider-annotation-title"},of(a.Za()));Cc(c,a.va.Ag);b.appendChild(c);if(a=a.va.jk)a=B("DIV","slider-annotation-author",of(a)),b.appendChild(a);L(b,M(this.j).width+5,"");return b};function Ux(){this.g=Vx;this.Kg=5E3}var Wx=0;Ux.prototype.send=function(a,b,c,d){if(a){var e={};for(g in a)e[g]=a[g];a=e}else a={};d=d||"_"+(Wx++).toString(36)+Date.now().toString(36);e="_callbacks___"+d;b&&(q[e]=Xx(d,b),a.callback=e);b={timeout:this.Kg,fs:!0};var g=this.g;e=new Map(Object.entries(a));g=oc(g).toString();var h=g.split(/[?#]/),k=/[?]/.test(g)?"?"+h[1]:"";e=Ne(h[0],k,/[#]/.test(g)?"#"+(k?h[2]:h[1]):"",e);b=hm(e,b);cm(b,null,Yx(d,a,c));return{rb:d,zn:b}}; Ux.prototype.cancel=function(a){a&&(a.zn&&a.zn.cancel(),a.rb&&Zx(a.rb,!1))};function Yx(a,b,c){return function(){Zx(a,!1);c&&c(b)}}function Xx(a,b){return function(c){Zx(a,!0);b.apply(void 0,arguments)}}function Zx(a,b){a="_callbacks___"+a;if(q[a])if(b)try{delete q[a]}catch(c){q[a]=void 0}else q[a]=Ci};function $x(a,b,c){Q.call(this);this.U=a;this.ma=c;this.j=b;I(b,["hilite","select","canceldismiss","dismiss"],this.handleEvent,!1,this);this.s=null;this.i=[];this.l=-1;this.g=0;this.o=this.O=null;this.ta={}}u($x,Q);f=$x.prototype;f.Lj=!0;f.hk=!1;f.od=function(){return this.j}; f.handleEvent=function(a){var b=this.U;if(a.target==this.j)switch(a.type){case "hilite":this.Ae(a.mf);break;case "select":var c=!1;if(typeof a.mf==="number"){a=a.mf;var d=this.i[ay(this,a)];c=!!d&&b.Wk&&b.Wk(d);d&&!c&&this.l!=a&&this.Ae(a)}c||this.Of();break;case "canceldismiss":by(this);break;case "dismiss":cy(this)}};f.hd=function(){return this.j.isVisible()}; function dy(a){for(var b=a.g+a.i.length-1,c=a.l,d=0;d=a.g&&c=0)&&d.length!=0&&this.s&&(b>=0?this.Ae(this.g+b):dy(this));this.dispatchEvent("suggestionsupdate")};function ay(a,b){b-=a.g;return b<0||b>=a.i.length?-1:b}f.update=function(a){this.ma.update(a)};function fy(a){var b=0,c=0;hy(a)&&(b=a.selectionStart,c=-1);return[b,c]}function hy(a){try{return typeof a.selectionStart=="number"}catch(b){return!1}};function iy(a,b,c,d){Pf.call(this);d=d||150;this.j=c!=null?c:!0;this.o=a||",;";this.oa=this.o.charAt(0);a=this.j?"[\\s"+this.o+"]+":"[\\s]+";this.ma=new RegExp("^"+a+"|"+a+"$","g");this.ka=new RegExp("\\s*["+this.o+"]$");this.O=b||"";this.ta=this.j;this.Qa=d>0?new tj(d):null;this.i=new sg(this);this.s=new sg(this);this.l=new Nq;this.U=-1}u(iy,Pf);f=iy.prototype;f.Pb=null;f.dl="";f.rf=!1;f.wl=!1;f.ub=function(){return this.Pb.value};f.rc=function(a){this.Pb.value=a}; function jy(a,b){zf(b)&&(Xj(b,"combobox"),X(b,"autocomplete","list"));a.i.ha(b,"focus",a.lm);a.i.ha(b,"blur",a.xq);a.Pb||(a.s.ha(b,"keydown",a.Fu),zf(b)&&Lf(Xe(b))==b&&ky(a,b))}f.wq=function(a){for(var b=0;bb.g)c--;else{b.hk&&c==b.g&&b.Ae(-1);break}if(b.Ae(c))break a}a.preventDefault();return!0}break;case 9:if(!this.g.hd()||a.shiftKey)this.g.re();else if(this.update(),this.g.Of()&&this.ta)return a.preventDefault(),!0;break;case 13:if(this.g.hd()){if(this.update(),this.g.Of())return a.preventDefault(), a.stopPropagation(),!0}else this.g.re();break;case 27:if(this.g.hd())return this.g.re(),a.preventDefault(),a.stopPropagation(),!0;break;case 229:if(!this.rf)return this.rf||(this.i.ha(this.Pb,"keyup",this.Ho),this.i.ha(this.Pb,"keypress",this.Go),this.rf=!0),!0}(b=this.j&&a.charCode&&this.o.indexOf(String.fromCharCode(a.charCode))!=-1)&&this.update();b&&this.g.Of()?(a.preventDefault(),a=!0):a=!1;return a};f.mt=function(){return!1};f.lm=function(a){ky(this,a.target||null)}; function ky(a,b){xg(a.s);a.g&&by(a.g);b!=a.Pb&&(a.Pb=b,a.Qa&&(a.Qa.start(),a.i.ha(a.Qa,"tick",a.nm)),a.dl=a.ub(),a.l.attach(a.Pb),a.i.ha(a.l,"key",a.mm),a.i.ha(a.Pb,"mousedown",a.Io))}f.xq=function(){this.Pb&&(this.i.Sa(this.l,"key",this.mm),Rq(this.l),this.i.Sa(this.Pb,"keyup",this.mt),this.i.Sa(this.Pb,"mousedown",this.Io),this.rf&&ly(this),this.Pb=null,this.Qa&&(this.Qa.stop(),this.i.Sa(this.Qa,"tick",this.nm)),this.g&&cy(this.g))};f.nm=function(){this.update()};f.Fu=function(a){this.lm(a)}; f.mm=function(a){this.U=a.keyCode;this.g&&this.Mc(a)};f.Go=function(){this.rf&&this.U!=229&&ly(this)};f.Ho=function(a){this.rf&&(a.keyCode==13||a.keyCode==77&&a.ctrlKey)&&ly(this)};f.Io=function(){};function ly(a){a.rf&&(a.rf=!1,a.i.Sa(a.Pb,"keypress",a.Go),a.i.Sa(a.Pb,"keyup",a.Ho))} f.update=function(a){if(this.Pb&&(a||this.ub()!=this.dl)){if(a||!this.wl){a=fy(this.Pb)[0];var b=this.ub();a=gy(this,b)[ey(this,b,a)];a=this.ma?String(a).replace(this.ma,""):a;this.g&&(this.g.O=this.Pb,b=this.g,this.ub(),b.s!=a&&(b.s=a,b.U.Xo(b.s,10,r(b.nu,b)),by(b)))}this.dl=this.ub()}this.wl=!1};function ey(a,b,c){a=gy(a,b);if(c==b.length)return a.length-1;for(var d=b=0,e=0;e=0&&b=0&&b=0&&vh(a.o[a.U],["ac-active","active"]),a.U=b,d&&(th(d,["ac-active","active"]),a.j&&ak(a.j,d),Wg(d,a.ua)))}f.Ae=function(a){if(a==-1)py(this,-1);else for(var b=0;b1&&(d=c.slice(1));c=sy(c);if(c.length!=0){var e=b.nodeValue,g=new RegExp("\\b(?:"+c+")","gi");c=[];for(var h=0,k=g.exec(e),l=0;k;)l++,c.push(e.substring(h,k.index)),c.push(e.substring(k.index,g.lastIndex)),h=g.lastIndex,k=g.exec(e);c.push(e.substring(h));if(c.length>1){for(d=0;d<1;d++)e=2*d,b.nodeValue=c[e],g=Mf(a.g,"B"),g.className=a.Fa,a.g.appendChild(g,a.g.g.createTextNode(String(c[e+1]))),g=b.parentNode.insertBefore(g, b.nextSibling),b.parentNode.insertBefore(a.g.g.createTextNode(""),g.nextSibling),b=g.nextSibling;b.nodeValue=c.slice(2).join("");a.ya=!0}else d&&ry(a,b,d)}}else for(b=b.firstChild;b;)d=b.nextSibling,ry(a,b,c),b=d}function sy(a){var b="";if(!a)return b;Array.isArray(a)&&(a=a.filter(function(c){return!Ub(id(c))}));Array.isArray(a)?b=a.length>0?gd(a[0]):"":/^\W/.test(a)||(b=gd(a));return b}function ty(a,b){for(;b&&b!=a.ua&&!sh(b,"ac-row");)b=b.parentNode;return b?a.o.indexOf(b):-1} f.om=function(a){var b=ty(this,a.target);b>=0&&this.dispatchEvent({type:"select",mf:this.i[b].id});a.stopPropagation()};f.rm=function(a){a.stopPropagation();a.preventDefault()};f.sm=function(a){a=ty(this,a.target);a>=0&&!(bb()-this.ta<300)&&this.dispatchEvent({type:"hilite",mf:this.i[a].id})};var uy=ta(["//suggestqueries.google.com/complete/search"]);function vy(a,b,c,d){this.oa=a;this.ka=null;this.Fa=c||null;this.Aa=typeof b==="boolean"?b:!0;this.ya=d||0;b=new wy;c=new xy(this.Fa||a,this.ya);c.oa=!0;d=new iy(null,null,!1);$x.call(this,b,c,d);d.g=this;d.wq(a);this.O=a;this.Lj=!1;this.hk=!0;I(this,"update",r(this.Ea,this))}u(vy,$x);vy.prototype.Of=function(){this.Ga=this.oa.value;vy.na.Of.call(this);return!1}; vy.prototype.Ea=function(a){a.mf&&(a=this.oa.form,this.ka||(this.ka=B("INPUT",{type:"hidden",name:"oq"}),a.appendChild(this.ka)),this.ka.value=this.Ga,this.Aa&&a.submit())};function wy(){}var Vx=Me(uy);wy.prototype.Xo=function(a,b,c){a={client:"books",ds:"bo",q:a};c=r(this.g,this,c);this.i&&this.i.cancel();this.i=new Ux;this.i.send(a,c)};wy.prototype.g=function(a,b){var c=Array.prototype.map.call(b[1],function(d){return d[0]});a(b[0],c)};function xy(a,b){my.call(this);this.Ea=a;this.Ga=b||0} u(xy,my);xy.prototype.Mj=function(){xy.na.Mj.call(this);var a=0,b=A("gbfwa");b||(b=cf("gbqfwa"));b&&(a=b.offsetTop+b.offsetHeight-1);Array.prototype.forEach.call($e("div","ac-renderer"),function(c){a&&K(c,"top",a+"px");K(c,"width",M(this.Ea).width-2+"px");K(c,"left",parseInt(c.style.left,10)+this.Ga+"px")},this)};function yy(a,b,c,d,e){W.call(this);this.O=a;this.s=b;this.oa=e;this.wb=typeof d==="number"?d:this.s?200:80;this.s||O(this.O,"slider-small");this.U=[];this.j=C("A");this.j.textContent=wj()?"\u203a":"\u2039";this.j.setAttribute("title","Scroll left");jh(this.j,!0);this.O.appendChild(this.j);this.i=C("div");O(this.i,"slider-drawables");this.O.appendChild(this.i);this.o=C("A");this.o.textContent=wj()?"\u2039":"\u203a";this.o.setAttribute("title","Scroll right");jh(this.o,!0);this.O.appendChild(this.o); this.g.ha(this.j,"click",this.ll.bind(this,-.75));this.g.ha(this.o,"click",this.ll.bind(this,.75));this.Vh();this.g.ha(this.j,"click",this.ll.bind(this,-.75));this.resize();this.ka=0;this.ma=zd()>=8&&!ae("9")&&wj();c&&zy(this,c)}u(yy,W);function Ay(a){var b=Math.ceil(By(a)*1.25);b=Math.min(a.U.length,a.ka+b);v(a.U.slice(a.ka,b),r(a.us,a));a.Vh();a.ka=b;b>=a.U.length&&a.dispatchEvent("render")}f=yy.prototype; f.us=function(a){var b=B("DIV",{"class":"goog-inline-block slider-loading"});this.i.appendChild(b);var c=B("DIV",{"class":"goog-inline-block slider-drawable"});N(c,!1);this.i.appendChild(c);this.g.ef(a,"render",this.ws.bind(this,b,c));a.Lc(c)};f.ws=function(a,b){E(a);this.Vh();N(b,!0)};function zy(a,b){b=b.map(function(c){return this.s?new Tx(c,this.wb):new Qx(c,this.wb,this.oa)},a);Cy(a,b)}function Cy(a,b){wb(a.U,b);Ay(a)} f.ll=function(a){(wj()?a<0:a>0)&&Ay(this);a*=this.ma?-1:1;a*=M(this.i).width+20;this.l&&(this.l.dispose(),this.l=null);this.l=new Kj([this.i.scrollLeft,0],[this.i.scrollLeft+a,0],500,Nj);I(this.l,"animate",this.yq.bind(this));I(this.l,"end",this.Vh.bind(this));this.l.play()};f.yq=function(a){a=a.coords.map(Math.round);this.i.scrollLeft=a[0]}; f.Vh=function(){if(Jd&&wj()||this.ma){var a=this.i.scrollLeft<=(this.i.scrollWidth-M(this.i).width)*-1;var b=this.i.scrollLeft==0}else a=this.i.scrollLeft==0,b=this.i.scrollLeft>=this.i.scrollWidth-M(this.i).width;this.j.className=a?"slider-button slider-button-left slider-button-disabled":"slider-button slider-button-left";this.o.className=b?"slider-button slider-button-right slider-button-disabled":"slider-button slider-button-right"};f.resize=function(){this.Vh()}; function By(a){var b=a.s?110:50;return Math.ceil(M(a.i).width/b)};function Dy(a,b,c){W.call(this);this.metadata=a;this.source=b?b:"gbs_bookshelf_slider";this.O=0;this.l=new xh;this.ma=this.l.getSize();this.U="";this.oa=typeof c==="boolean"?!c:!1;hg(this.l,"resize",r(this.tm,this))}n(Dy,W);f=Dy.prototype;f.tm=function(){this.l.getSize().width>this.ma.width?this.hh():hg(this.l,"resize",r(this.tm,this))};f.render=function(a){this.o=a;this.i=this.Lk(a);this.g.ha(this.i,"render",r(this.hh,this))};f.Lk=function(){return new yy(this.o,!0,void 0,void 0,this.metadata.getId())}; f.hh=function(){this.i.resize();var a=Math.ceil(By(this.i)*1.25)+1,b=this.Ue(this.O,a);b&&(this.O+=a,qi(b,r(this.Jt,this)))};f.rg=ba(12);f.Jt=function(a){a=a.target;if(vi(a)){if((a=(new zx(yi(a))).g)&&a.length){var b=Um(a[a.length-1].va.Ag);this.U!=b&&(this.U=b,Cy(this.i,Ey(this,a)));(a=Jf(this.V()))&&fh(a,1)}else this.i.ka==0&&this.Wo();this.dispatchEvent("success")}}; function Ey(a,b){return a.vk(b).map(function(c){return this.i.s?new Tx(c,200,this.metadata.getId()):new Qx(c,80,this.metadata.getId())},a)}f.Wo=function(){};f.V=function(){return this.o};f.vk=function(a){return this.source?a.map(function(b){b.va.source=this.source;return b},this):a};function Fy(a,b,c){ev.call(this,a,b,c);this.Lh(!0)}u(Fy,ev);gr("goog-checkbox-menuitem",function(){return new Fy(null)});function Gy(a){Fy.call(this,bd(a.Za()),a.getId());this.i=a}n(Gy,Fy);Gy.prototype.Kb=function(a){Fy.prototype.Kb.call(this,a);if(this.i.le){var b=(a=this.i.le==1)?"Public bookshelf":"Private bookshelf";a=B("IMG",{src:"/googlebooks/images/sharing_"+(a?"public":"private")+".gif",alt:b,title:b,style:"padding-top:2px;padding-left:8px;float:"+(wj()?"left":"right")});a=B("DIV","goog-menuitem-accel",a,of(String(this.i.ta)));uf(this.Gb(),a,1)}};function Hy(a,b,c){c=c===void 0?!1:c;ov.call(this);this.j=a;this.o=b;this.U=c}n(Hy,ov);f=Hy.prototype;f.Oa=function(){ov.prototype.Oa.call(this);Gx(this.o).forEach(this.Ur,this)};f.Ia=function(){ov.prototype.Ia.call(this);this.V().style.maxHeight="200px";this.V().style.overflowY="scroll";var a=Z(this);a.ha(this.V(),"mouseout",this.zq);a.ha(this.V(),"scroll",this.Aq)};f.zq=function(a){Af(this.V(),a.relatedTarget)||this.wa(!1)}; f.jt=function(a){var b=a.target,c=b.i,d=this.j.Sb();ar(b,16)?tx(c,d):wx(c,d);this.dispatchEvent("g");a.stopPropagation()};f.Aq=function(a){a.stopPropagation()};f.Ur=function(a){var b=!Ub(id(a.Za())),c=a.j&&(!a.oa||this.j.ka),d=!!ux(a,this.j.Sb());b&&(c||d)&&(b=new Gy(a),b.Qf(d),b.nb(this.o.el!=a.getId()||this.U),this.Xa(b,!0),Z(this).ha(b,"action",this.jt))};function Iy(a){var b=[];Mk(a,function(c){c instanceof Gy&&ar(c,16)&&b.push(c.i)});return b};function Jy(a,b,c){ax.call(this,null,null,c?5:0);this.i=new Hy(a,b);this.i.ae(this);Qf(this,this.i);this.o=new Image(16,16);this.o.src="/googlebooks/images/my_library_logo.png";this.Tb(64,!0)}n(Jy,ax);f=Jy.prototype;f.Oa=function(){ax.prototype.Oa.call(this);O(this.V(),"add-to-library")}; function Ky(a){a.i.Ra||a.i.render();var b=Iy(a.i);switch(b.length){case 0:var c="Add to my library";break;case 1:c="Added to "+b[0].Za();break;default:c="Added to "+b.length+" shelves"}b.length>0&&(c=fx(a.o,c));mr(a,c)}f.Nb=function(a){this.rk();ax.prototype.Nb.call(this,a);this.i.Ra||this.i.render();if(a){a=this.i;var b=this.V();pv(a,new fv(b,8,!0),void 0,null)}else this.i.ab()}; f.Ia=function(){ax.prototype.Ia.call(this);var a=Z(this);a.ha(this,"enter",this.uv);a.ha(this,"leave",this.rk);a.ha(this,"action",this.Bq);a.ha(this.i,"g",this.qt);Ky(this)};f.qt=function(){Ky(this)};f.Bq=function(){this.Nb(!0)};f.uv=function(){this.rk();this.Mo=U(r(this.Nb,this,!0),200)};f.rk=function(){vj(this.Mo)};f.Mo=null;function Ly(a){Ax.call(this);a!=null&&a.bookshelf&&v(a.bookshelf,function(b){Cx(this,new zx(b))},this)}n(Ly,Ax);function My(a,b,c){var d=new R("/books");Zu(d);S(d,"op","cls_metadata");S(d,"jscmd","ClsMetadata");var e=T(new R(window.location),"uid");e&&S(d,"uid",e);b&&S(d,"uid",b);Jn(d.toString(),t(Ny,a,c))}function Oy(a,b){var c=new Ly(b);a&&a.forEach(function(d){Py(d.Sb(),d.La,c)});return c}function Py(a,b,c){b.forEach(function(d){var e=new rx;e.va.Nl=a;(d=Dx(c,String(d)))&&d.g.push(e)})}function Ny(a,b,c){a(Oy(b,c))};function Qy(a){return a.split(Ry).filter(function(b){return b.length>0})} var Sy=/\s/,Ty=/[ -]/,Ry=/[+,;]/,Uy=/-?"[^"]+"|[^\s"]+/g,Vy=RegExp('["\\u201C\\u201D\\u201E\\u201F\\u275D\\u275E\\u301D-\\u301F\\uFF02]',"g"),Wy=RegExp("[,!-%'-/:-@\\[-^`{-~\\xA1\\xAB\\xBB\\xB7\\xBF\\u05F3\\u05F4\\u200B\\u2010-\\u2014\\u2018-\\u201A\\u2026\\u2039\\u203A\\u2060\\u3001\\u3002\\u3008-\\u3011\\u30FB\\uFF01-\\uFF05\\uFF07-\\uFF0F\\uFF1A-\\uFF20\\uFF3B-\\uFF3E\\uFF40\\uFF5B-\\uFF65,\"\\u201C\\u201D\\u201E\\u201F\\u275D\\u275E\\u301D-\\u301F\\uFF02,]"),Xy=RegExp("^[\\s\\xA0!-%'-/:-@\\[-^`{-~\\xA1\\xAB\\xBB\\xB7\\xBF\\u05F3\\u05F4\\u200B\\u2010-\\u2014\\u2018-\\u201A\\u2026\\u2039\\u203A\\u2060\\u3001\\u3002\\u3008-\\u3011\\u30FB\\uFF01-\\uFF05\\uFF07-\\uFF0F\\uFF1A-\\uFF20\\uFF3B-\\uFF3E\\uFF40\\uFF5B-\\uFF65]+|[\\s\\xA0!-%'-/:-@\\[-^`{-~\\xA1\\xAB\\xBB\\xB7\\xBF\\u05F3\\u05F4\\u200B\\u2010-\\u2014\\u2018-\\u201A\\u2026\\u2039\\u203A\\u2060\\u3001\\u3002\\u3008-\\u3011\\u30FB\\uFF01-\\uFF05\\uFF07-\\uFF0F\\uFF1A-\\uFF20\\uFF3B-\\uFF3E\\uFF40\\uFF5B-\\uFF65]+$", "g");function Yy(a){return Hd?a.toLowerCase():a.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").normalize("NFC")};function Zy(a){var b={};$y(a).forEach(function(c){for(var d=b,e=0;el.endOffset)l={startOffset:e.startOffset, Ig:e.Ig,endOffset:l.endOffset,fh:l.fh};e=gb(d)}d.push(l);e=l}k.complete&&sb(g,h)}}function dz(a,b){this.startOffset=a;this.Ig=void 0;this.endOffset=a;this.fh=void 0;this.complete=!1;this.g=b};function ez(a,b){var c=void 0;c=c===void 0?Infinity:c;b=new bz(b);c=c===void 0?Infinity:c;var d=d===void 0?[]:d;var e=" ",g,h=Yy(a);for(g=0;g=c&&(d.length=c);return d};function fz(a){var b=Zy(a);a=gz();Array.prototype.forEach.call(a,function(c){hz(b,c)})}function gz(){var a=[],b=vb(bf("patent-text")),c=cf("patent-title");for(c&&b.push(c);c=b.pop();)c.nodeType==3?a.push(c):wb(b,c.childNodes);return a} function hz(a,b){var c=If(b);a=ez(c,a);if(a.length){var d=[],e=0;a.forEach(function(g){d.push(c.substring(e,g.startOffset),le("span",{"class":"patent-text-highlight"},c.substring(g.startOffset,g.endOffset)));e=g.endOffset});d.push(c.substring(e));a=C("span");x(a,fe(d));vf(a,b)}};function iz(){ev.call(this,"Turn off highlighting");var a=Nh("dq")||Nh("q");a&&fz(a);this.Lb=!0}n(iz,ev);iz.prototype.Ia=function(){ev.prototype.Ia.call(this);Z(this).ha(this,"action",this.i)};iz.prototype.i=function(){this.Lb=!this.Lb;P(window.document.body,"patent-highlight-disabled",!this.Lb);mr(this,this.Lb?"Turn off highlighting":"Turn on highlighting")};function jz(){}u(jz,iv);Sa(jz);jz.prototype.Kc=function(a){return a.g.Ma("DIV",Vq(this,a).join(" ")+" goog-inline-block","\u00a0")};jz.prototype.Ob=function(a,b){b=jz.na.Ob.call(this,a,b);O(b,"goog-inline-block");return b};jz.prototype.Pa=function(){return"goog-toolbar-separator"};function kz(){}u(kz,cr);Sa(kz);f=kz.prototype;f.Kc=function(a){var b=Vq(this,a);b=a.g.Ma("DIV","goog-inline-block "+b.join(" "),this.yi(a.wc(),a.g));this.nf(b,a.Xe());return b};f.ag=function(){return"button"};f.Ec=function(a){return a&&a.firstChild&&a.firstChild.firstChild};f.yi=function(a,b){return b.Ma("DIV","goog-inline-block "+(this.Pa()+"-outer-box"),b.Ma("DIV","goog-inline-block "+(this.Pa()+"-inner-box"),a))};f.fi=function(a){return a.tagName=="DIV"}; f.Ob=function(a,b){lz(b,!0);lz(b,!1);a:{var c=a.g.On(b);var d=this.Pa()+"-outer-box";if(c&&sh(c,d)&&(c=a.g.On(c),d=this.Pa()+"-inner-box",c&&sh(c,d))){c=!0;break a}c=!1}c||b.appendChild(this.yi(b.childNodes,a.g));th(b,["goog-inline-block",this.Pa()]);return kz.na.Ob.call(this,a,b)};f.Pa=function(){return"goog-custom-button"}; function lz(a,b){if(a)for(var c=b?a.firstChild:a.lastChild,d;c&&c.parentNode==a;){d=b?c.nextSibling:c.previousSibling;if(c.nodeType==3){var e=c.nodeValue;if(Vb(e)=="")a.removeChild(c);else{c.nodeValue=b?e.replace(/^[\s\xa0]+/,""):e.replace(/[\s\xa0]+$/,"");break}}else break;c=d}};function mz(){}u(mz,kz);Sa(mz);mz.prototype.Pa=function(){return"goog-toolbar-button"};function nz(){this.g="toolbar"}u(nz,pt);Sa(nz);nz.prototype.mh=function(a){return a.tagName=="HR"?new jv(jz.Hb()):nz.na.mh.call(this,a)};nz.prototype.fg=function(){return"goog-toolbar"};nz.prototype.Nn=function(){return"horizontal"};function oz(a){nz.call(this);this.i=a}u(oz,nz);var pz={};oz.prototype.fg=function(){return this.i||"ocean-chrome-toolbar"};function qz(a){Q.call(this);this.g=[];rz(this,a)}u(qz,Q);f=qz.prototype;f.Pf=null;f.Nj=null;function sz(a,b){a.Nj=b}function rz(a,b){b&&(b.forEach(function(c){tz(this,c,!1)},a),wb(a.g,b))}f.Na=function(a){this.Re(a,this.g.length)};f.Re=function(a,b){a&&(tz(this,a,!1),xb(this.g,b,0,a))};f.Hd=function(){return vb(this.g)};f.Ie=function(a){a!=this.Pf&&(tz(this,this.Pf,!1),this.Pf=a,tz(this,a,!0));this.dispatchEvent("select")}; f.clear=function(){var a=this.g;if(!Array.isArray(a))for(var b=a.length-1;b>=0;b--)delete a[b];a.length=0;this.Pf=null};f.qa=function(){qz.na.qa.call(this);delete this.g;this.Pf=null};function tz(a,b,c){b&&(typeof a.Nj=="function"?a.Nj(b,c):typeof b.Al=="function"&&b.Al(c))};function uz(a,b,c){ut.call(this,b,a||nz.Hb(),c)}u(uz,ut);uz.prototype.ni=function(a){uz.na.ni.call(this,a);this.Yd||zt(this)};function vz(a,b,c){tr.call(this,a,b||mz.Hb(),c)}u(vz,tr);gr("goog-toolbar-button",function(){return new vz(null)});function wz(a,b){jv.call(this,a||jz.Hb(),b)}u(wz,jv);gr("goog-toolbar-separator",function(){return new wz});function xz(a){a=a||"viewport-chrome-toolbar";a=pz[a]||(pz[a]=new oz(a));uz.call(this,a);this.ya={};this.l=new sg(this)}n(xz,uz);function yz(a,b,c,d){b.Tb(16,!0);if(c){var e=a.ya[c];e||(e=new qz,sz(e,function(g,h){g&&g.Qf(h)}),a.ya[c]=e);e.Na(b);b.zf&=-17;I(b,"action",function(g){e.Ie(g.target)});d&&e.Ie(b)}else b.Sc(16,!!d)}function zz(a,b){a.ya.viewport&&a.ya.viewport.Ie(b)}xz.prototype.qa=function(){uz.prototype.qa.call(this);this.l.dispose();Kb(this.ya,function(a){a.dispose()})};function Az(){}u(Az,cr);Sa(Az);f=Az.prototype;f.Kc=function(a){var b=Vq(this,a);b=a.g.Ma("DIV","goog-inline-block "+b.join(" "),a.wc());this.nf(b,a.Xe());return b};f.ag=function(){return"button"};f.fi=function(a){return a.tagName=="DIV"};f.Ob=function(a,b){O(b,"goog-inline-block");return Az.na.Ob.call(this,a,b)};f.ub=function(){return""};f.Pa=function(){return"goog-flat-button"};gr("goog-flat-button",function(){return new tr(null,Az.Hb())});function Bz(){}u(Bz,kz);Sa(Bz);Bz.prototype.Ec=function(a){return Bz.na.Ec.call(this,a&&a.firstChild)};Bz.prototype.Ob=function(a,b){var c=$e("*","goog-menu",b)[0];if(c){N(c,!1);Xe(c).body.appendChild(c);var d=new mv;Lk(d,c);a.He(d)}return Bz.na.Ob.call(this,a,b)};Bz.prototype.yi=function(a,b){return Bz.na.yi.call(this,[b.Ma("DIV","goog-inline-block "+(this.Pa()+"-caption"),a),b.Ma("DIV","goog-inline-block "+(this.Pa()+"-dropdown"),"\u00a0")],b)};Bz.prototype.Pa=function(){return"goog-menu-button"};function Cz(){this.g=[]}u(Cz,$u);Sa(Cz);Cz.prototype.Kc=function(a){var b=Cz.na.Kc.call(this,a);O(b,"goog-submenu");Dz(this,a,b);return b};Cz.prototype.Ob=function(a,b){b=Cz.na.Ob.call(this,a,b);O(b,"goog-submenu");Dz(this,a,b);var c=$e("DIV","goog-menu",b);if(c.length){var d=new mv(a.g);c=c[0];N(c,!1);a.g.g.body.appendChild(c);Lk(d,c);a.He(d,!0)}return b};Cz.prototype.dg=function(a,b){var c=this.Ec(a),d=c&&c.lastChild;Cz.na.dg.call(this,a,b);d&&c.lastChild!=d&&sh(d,"goog-submenu-arrow")&&c.appendChild(d)}; Cz.prototype.hi=function(a){Cz.na.hi.call(this,a);var b=a.Gb(),c=af(a.g.g,"SPAN","goog-submenu-arrow",b)[0];Ez(a,c);c!=b.lastChild&&b.appendChild(c);a=a.V();X(a,"haspopup","true")};function Dz(a,b,c){var d=b.g.Ma("SPAN");d.className="goog-submenu-arrow";Ez(b,d);a.Ec(c).appendChild(d)}function Ez(a,b){Pk(a)?(O(b,"goog-submenu-arrow-rtl"),H(b,"\u25c4")):(uh(b,"goog-submenu-arrow-rtl"),H(b,"\u25ba"))};function Fz(a,b,c,d){ev.call(this,a,b,c,d||Cz.Hb())}u(Fz,ev);f=Fz.prototype;f.Tg=null;f.Hl=null;f.il=!1;f.lc=null;f.Bi=!1;f.Ia=function(){Fz.na.Ia.call(this);Z(this).ha(this.getParent(),"hide",this.Jo);this.lc&&Gz(this,this.lc,!0)};f.hc=function(){Z(this).Sa(this.getParent(),"hide",this.Jo);this.lc&&(Gz(this,this.lc,!1),this.Bi||(this.lc.hc(),E(this.lc.V())));Fz.na.hc.call(this)};f.qa=function(){this.lc&&!this.Bi&&this.lc.dispose();this.lc=null;Fz.na.qa.call(this)}; f.Pc=function(a){Fz.na.Pc.call(this,a);a||(this.Tg&&vj(this.Tg),this.Tg=U(this.te,218,this))};f.Gl=function(){var a=this.getParent();a&&yt(a)==this&&(Hz(this,!0),Iz(this))};f.te=function(){var a=this.lc;a&&a.getParent()==this&&(Hz(this,!1),Mk(a,function(b){typeof b.te=="function"&&b.te()}))};function Jz(a){a.Tg&&vj(a.Tg);a.Hl&&vj(a.Hl)}f.wa=function(a,b){(a=Fz.na.wa.call(this,a,b))&&!this.isVisible()&&this.te();return a}; function Iz(a){Mk(a.getParent(),function(b){b!=this&&typeof b.te=="function"&&(b.te(),Jz(b))},a)}f.Mc=function(a){var b=a.keyCode,c=Pk(this)?37:39,d=Pk(this)?39:37;if(!this.il){if(!this.isEnabled()||b!=c&&b!=13&&b!=this.jl)return!1;this.Gl();zt(Kz(this));Jz(this)}else if(!Kz(this).Mc(a))if(b==d)this.te();else return!1;a.preventDefault();return!0};f.yu=function(){this.lc.getParent()==this&&(Jz(this),this.yg().Pc(this),Iz(this))};f.Jo=function(a){a.target==this.yg()&&(this.te(),Jz(this))}; f.ye=function(a){this.isEnabled()&&(Jz(this),this.Hl=U(this.Gl,218,this));Fz.na.ye.call(this,a)};f.kf=function(a){Jz(this);if($q(this,8)||$q(this,16))return Fz.na.kf.call(this,a);this.Gl();return!0}; function Hz(a,b){!b&&Kz(a)&&Kz(a).Od(-1);a.dispatchEvent(Ik(64,b));var c=Kz(a);b!=a.il&&P(a.V(),"goog-submenu-open",b);if(b!=c.isVisible()&&(b&&(c.Ra||c.render(),c.Od(-1)),c.wa(b),b)){c=new Pr(a.V(),12,!1);var d=Kz(a),e=d.V();d.isVisible()||(e.style.visibility="hidden",N(e,!0));c.Jc(e,8);d.isVisible()||(N(e,!1),e.style.visibility="visible")}a.il=b}function Gz(a,b,c){var d=Z(a);(c?d.ha:d.Sa).call(d,b,"enter",a.yu)}f.Na=function(a){Kz(this).Xa(a,!0)};f.Re=function(a,b){Kz(this).jg(a,b,!0)};f.Hd=function(){return Kz(this).Hd()}; function Kz(a){a.lc?a.Bi&&a.lc.getParent()!=a&&a.lc.ae(a):a.He(new mv(a.g),!0);a.lc.V()||a.lc.Oa();return a.lc}f.He=function(a,b){var c=this.lc;a!=c&&(c&&(this.te(),this.Ra&&Gz(this,c,!1)),this.lc=a,this.Bi=!b,a&&(a.ae(this),a.wa(!1,!0),nv(a,!1),Dt(a,!1),this.Ra&&Gz(this,a,!0)))};f.Rd=function(a){return Kz(this).Rd(a)};gr("goog-submenu",function(){return new Fz(null)});function Lz(a,b,c,d,e){tr.call(this,a,c||Bz.Hb(),d);this.Tb(64,!0);this.o=new fv(null,9);b&&this.He(b);this.Qa=new tj(500);this.Ua=e||kv.Hb()}u(Lz,tr);f=Lz.prototype;f.Ia=function(){Lz.na.Ia.call(this);Mz(this,!0);this.i&&Nz(this,this.i,!0);X(this.ua,"haspopup",!!this.i)};f.hc=function(){Lz.na.hc.call(this);Mz(this,!1);if(this.i){this.Nb(!1);this.i.hc();Nz(this,this.i,!1);var a=this.i.V();a&&E(a)}};f.qa=function(){Lz.na.qa.call(this);this.i&&(this.i.dispose(),delete this.i);delete this.Wa;this.Qa.dispose()}; f.vf=function(a){Lz.na.vf.call(this,a);if(this.isActive()&&(this.Nb(!this.hd(),a),this.i)){a=this.i;var b=this.hd();a.Yd=b}};f.ze=function(a){Lz.na.ze.call(this,a);this.i&&!this.isActive()&&(this.i.Yd=!1)};f.kf=function(){or(this,!1);return!0};f.Ts=function(a){this.i&&this.i.isVisible()&&!this.Rd(a.target)&&this.Nb(!1)};f.Rd=function(a){return a&&Af(this.V(),a)||this.i&&this.i.Rd(a)||!1}; f.Xd=function(a){if(a.keyCode==32){if(a.preventDefault(),a.type!="keyup")return!0}else if(a.type!="key")return!1;if(this.i&&this.i.isVisible()){var b=a.keyCode==13||a.keyCode==32,c=this.i.Mc(a);return c&&this.i&&this.i.Yb instanceof Fz||a.keyCode!=27&&!b?c:(this.Nb(!1),!0)}return a.keyCode==40||a.keyCode==38||a.keyCode==32||a.keyCode==13?(this.Nb(!0,a),!0):!1};f.Nk=function(){this.Nb(!1)};f.ii=function(a){this.Nb(!1);Lz.na.ii.call(this,a)}; function Oz(a){a.i||a.He(new mv(a.g,a.Ua));return a.i||null}f.He=function(a){var b=this.i;a!=b&&(b&&(this.Nb(!1),this.Ra&&Nz(this,b,!1),delete this.i),this.Ra&&X(this.ua,"haspopup",!!a),a&&(this.i=a,a.ae(this),a.wa(!1),nv(a,!1),this.Ra&&Nz(this,a,!0)));return b};f.Na=function(a){Oz(this).Xa(a,!0)};f.Re=function(a,b){Oz(this).jg(a,b,!0)};f.wa=function(a,b){(a=Lz.na.wa.call(this,a,b))&&!this.isVisible()&&this.Nb(!1);return a};f.nb=function(a){Lz.na.nb.call(this,a);this.isEnabled()||this.Nb(!1)}; f.Nb=function(a,b){Lz.na.Nb.call(this,a);if(this.i&&ar(this,64)==a){if(a)this.i.Ra||this.i.render(),this.ta=Ug(this.V()),this.La=eh(this.V()),Pz(this),!b||b.keyCode!=40&&b.keyCode!=38?this.i.Od(-1):zt(this.i);else{or(this,!1);this.i.Yd=!1;var c=this.V();c&&(X(c,"activedescendant",""),X(c,"owns",""));this.oa!=null&&(this.oa=void 0,(c=this.i.V())&&L(c,"",""))}this.i.wa(a,!1,b);this.Ed||(b=Z(this),c=a?b.ha:b.Sa,c.call(b,this.g.g,"mousedown",this.Ts,!0),c.call(b,this.Qa,"tick",this.Fq),a?this.Qa.start(): this.Qa.stop())}this.i&&this.i.V()&&this.i.ua.removeAttribute("aria-hidden")};function Pz(a){if(a.i.Ra){var b=a.Wa||a.V(),c=a.o;a.o.g=b;b=a.i.V();a.i.isVisible()||(b.style.visibility="hidden",N(b,!0));!a.oa&&a.o.s&&a.o.j&32&&(a.oa=M(b));c.Jc(b,c.i^1,null,a.oa);a.i.isVisible()||(N(b,!1),b.style.visibility="visible")}} f.Fq=function(){var a=eh(this.V()),b=Ug(this.V());var c=this.La;(c=!(c==a||c&&a&&c.left==a.left&&c.width==a.width&&c.top==a.top&&c.height==a.height))||(c=this.ta,c=!(c==b||c&&b&&c.top==b.top&&c.right==b.right&&c.bottom==b.bottom&&c.left==b.left));c&&(this.i.Ra&&b&&this.ta&&b.qb()1)for(var e=0;e0){var e=fA(b,!0,c,d),g=B("UL",c+"-list");a.appendChild(e);a.appendChild(g);(new cA(e,g)).Ge(!b.collapsed);v(b.child_node,function(h){eA(g,h,c,d)})}else a.appendChild(fA(b,!1,c,d))}function fA(a,b,c,d){var e;if(b){b=c+"-heading";var g=c+"-header"}else b=c+"-link",g=c+"-item";a.url!=""?e=B("A",{"class":b,href:a.url},bd(a.title)):e=B("DIV",b,a.title);e=B("DIV",g,e);d==a.id&&O(e,c+"-selected");return e} cb("_OC_InitNavbar",function(a){var b=A("navbarContainer");if(b&&a.child_node){var c=B("UL","gb-left-nav-list");v(a.child_node,function(d){eA(c,d,"gb-left-nav",a.highlighted_node_id)});b.appendChild(c)}});function gA(a,b){Q.call(this);this.ua=a;this.g=b||null;O(a,"with-auto-dir-text");I(this.ua,"keyup",r(this.i,this));I(this.ua,"paste",r(this.j,this))}n(gA,Q);gA.prototype.i=function(){hA(this.ua,this.g)};gA.prototype.j=function(){iA(this.ua,this.g)};function iA(a,b){U(t(function(){hA(a,b)}))} function hA(a,b){var c=!1,d;if(a.value){for(var e=d=0,g=!1,h=a.value.split(fw),k=0;k.4?-1:1)==-1}else d=wj();d?(c=!0,K(a,"textAlign","right"),ef(a,{dir:"rtl"})):(K(a,"textAlign","left"),ef(a,{dir:"ltr"}));b&&(c?(uh(b,"input-direction-ltr"),O(b,"input-direction-rtl")):(O(b,"input-direction-ltr"),uh(b,"input-direction-rtl")))} function jA(a,b){if(a=A(a))b=b?A(b):null,hA(a,b),new gA(a,b)}cb("_OC_autoDir",jA);function kA(a){this.g=A("gb-ogen-opt-in-banner");this.j=A("gb-ogen-opt-in-banner-dismiss");this.i=A("gb-ogen-opt-in-header-link");this.l=a;a=A("gbq");this.i&&a&&(a=a.parentElement||null)&&(O(a,"searchbar-with-opt-in"),tf(this.i,a),K(this.i,"display","block"));lA(this)} function lA(a){a.g&&a.j&&(window.localStorage.getItem("obclose")?N(a.g,!1):(O(a.g,"opt-in-banner-expanded"),I(a.j,"click",function(){uh(a.g,"opt-in-banner-expanded");window.localStorage.setItem("obclose","true");U(function(){N(a.g,!1);a.l.resize()},600)})))};function mA(a,b){a=A(a);b=A(b);a&&b&&I(a,"submit",t(nA,b))}function nA(a,b){a.value==""&&b.preventDefault()};function oA(a,b,c){if(Jd&&!Nd)return a;a='url("'+b+'")';Kd&&(a+=" 7 5");return a+(", "+c)};function pA(a){W.call(this);this.N=a;this.i=new sg;this.g.ha(a,"viewportmodechange",this.wm);this.N.Da()&&this.wm()}n(pA,W);f=pA.prototype;f.wm=function(){xg(this.i);this.j&&this.j.dispose();this.l=this.N.Da().s.j;var a=new lk(this.l);a.wk=function(){};this.j=a;this.i.ha(this.l,"dblclick",r(this.Ss,this));this.i.ha(a,"start",r(this.Iq,this));this.i.ha(a,"drag",r(this.Jq,this));this.i.ha(a,"end",r(this.Hq,this));qA(this,!1)};f.Ss=function(){this.N.mb("next")}; function qA(a,b){a=a.l;if(Jd)b=b?"-moz-grabbing":"-moz-grab";else{var c=Sm("/googlebooks/images/");b=b?oA("-moz-grabbing",c+"closedhand.cur","move"):oA("-moz-grab",c+"openhand.cur","default")}K(a,"cursor",b)}f.Iq=function(){this.o=this.N.Da().Cb;qA(this,!0)};f.Jq=function(){var a=this.j,b=this.o;this.N.Da().Rc(new w(b.x-a.deltaX,b.y-a.deltaY))};f.Hq=function(){this.o=null;qA(this,!1)};f.qa=function(){W.prototype.qa.call(this)};function rA(a,b,c){c&&c.preventDefault();c=A(b.concat("-icon-right"));N(c,!a);c=A(b.concat("-icon-down"));N(c,a);b=A(b.concat("-expanded"));N(b,a)};function sA(a,b,c,d){bl.call(this,Pm.IsZipitFolderCollectionEnabled?void 0:"p13nd",!0);gl(this,a);this.Dn=!0;kl(this,.5);this.kg=c;a=new dl;a.set("ok",b,!0);(d!==void 0?d:1)&&a.set("cancel","Cancel",!1,!0);ol(this,a);I(this,"dialogselect",this.La,!1,this)}u(sA,bl);sA.prototype.Oa=function(){sA.na.Oa.call(this);K(pl(this.j,"ok"),"fontWeight","bold");K(this.V(),"width","500px")};sA.prototype.La=function(a){a.key=="ok"&&this.Eb(a);return!0}; sA.prototype.qa=function(){og(this,"dialogselect",this.La,!0,this);sA.na.qa.call(this)};sA.prototype.Eb=function(a){this.kg(a)};function tA(a){Q.call(this);this.Qa=null;this.ua=a;this.g=new sg(this);this.g.ha(this.ua,"input",this)}u(tA,Q);tA.prototype.handleEvent=function(a){if(a.type=="input")uA(this),this.dispatchEvent(vA(a));else if(a.type!="keydown"||Ah(a)){var b=a.type=="keydown"?this.ua.value:null,c=vA(a);uA(this);this.Qa=setTimeout(function(){this.Qa=null;this.ua.value!=b&&this.dispatchEvent(c)}.bind(this),0)}};function uA(a){a.Qa!=null&&(clearTimeout(a.Qa),a.Qa=null)} function vA(a){a=new Vf(a.Mb);a.type="input";return a}tA.prototype.qa=function(){tA.na.qa.call(this);this.g.dispose();uA(this);delete this.ua};function wA(a,b,c,d){Q.call(this);this.g=a;this.l=b;this.i=c;this.o=d||0;a.removeAttribute("maxlength");this.j=new tA(a);I(this.j,"input",this.s,!1,this);xA(this)}u(wA,Q);wA.prototype.s=function(){xA(this)};function xA(a){var b=a.g.value.length;if(b>a.i){var c=a.g.scrollTop,d=a.g.scrollLeft;a.g.value=a.g.value.substring(0,a.i);b=a.i;a.g.scrollTop=c;a.g.scrollLeft=d}a.l&&H(a.l,String(a.o==1?b:a.i-b))}wA.prototype.qa=function(){wA.na.qa.call(this);delete this.g;this.j.dispose();this.j=null};function yA(a,b,c,d,e){sA.call(this,a,b,null,!0);this.Ua=c;this.Fb=d;this.Aa=e}n(yA,sA); yA.prototype.Oa=function(){sA.prototype.Oa.call(this);this.o=zA(this,"Name","input");this.Wa=zA(this,"Description (optional)","textarea");var a=this.Gb(),b=B("DIV",{"class":"ccd-label"}),c=C("span");c.textContent="Visibility";b.appendChild(c);a.appendChild(b);a=B("SPAN",{className:"ccd-mode-indicator"});c=B("IMG",{src:"/googlebooks/images/sharing_public.gif",style:"vertical-align:-2px;padding:0 2px"});var d=C("span");d.textContent="Public";a.appendChild(c);a.appendChild(d); b.appendChild(a);c=B("SPAN",{className:"ccd-mode-indicator"});d=B("IMG",{src:"/googlebooks/images/sharing_private.gif",style:"vertical-align:-2px;"});var e=C("span");e.textContent="Private";c.appendChild(d);c.appendChild(e);b.appendChild(c);d=B("SPAN",{"class":"ccd-mode-link"});d.textContent="Make public";b.appendChild(d);I(d,"click",r(this.Fa,this,!0));e=B("SPAN",{"class":"ccd-mode-link"});e.textContent="Make private";b.appendChild(e);I(e,"click",r(this.Fa,this,!1));this.Dd=[a,e];this.Cd=[c,d];this.Aa!= null&&(ef(this.Aa,{"class":"ccd-mode-link"}),b.appendChild(this.Aa));this.Fa(!0);this.U=B("DIV",{"class":"ccd-error"});this.Gb().appendChild(this.U);this.Jb=B("P","ccd-footnote","Please note that the contents and title of Public bookshelves can be viewed and shared by others.");this.Gb().appendChild(this.Jb);this.i&&AA(this);Pm.IsZipitFolderCollectionEnabled||(b=this.j,a=pl(b,"ok"),K(a,"fontWeight","bold"),O(a,"gb-button"),O(pl(b,"cancel"),"gb-button"))}; function AA(a){a.o.value=bd(a.i.Za());a.o.disabled=a.i.O;a.Wa.value=bd(a.i.ug());a.Fa(a.i.le==1);a.o.disabled&&K(a.o,"background","#f2f2f2")} function zA(a,b,c){var d=a.Gb();a=B("DIV",{"class":"gb-bookshelf-dialog-container"});d.appendChild(a);d=B("DIV",{"class":"ccd-label"});var e=new Le,g=new Set(e.g.l);g.add("class");e.g=new re(e.g.j,e.g.g,g,e.g.o,e.g.i);if(e.i)throw Error("this sanitizer has already called build");e.i=!0;x(d,Be(new Ae(e.g,void 0,void 0,e.j),b));a.appendChild(d);b=B(c,{"class":"ccd-input"});c=="input"?(ef(b,{type:"text"}),b.setAttribute("maxlength",100)):c=="textarea"&&(ef(b,{rows:6,cols:50}),new wA(b,C("span"),500)); a.appendChild(b);return b}yA.prototype.Fa=function(a){this.kd=a;v(this.Dd,function(b){N(b,a)});v(this.Cd,function(b){N(b,!a)})}; yA.prototype.La=function(a){var b=this.o.value;if(a.key=="cancel")return!0;if(Ub(b))return this.U.textContent="Please enter a title for this bookshelf.",!1;if(this.Fb&&!this.Fb(b))return this.U.textContent="Another bookshelf already has that title. Please enter a different title.",!1;a=this.i||new sx;a.tc=b;a.l=this.Wa.value;a.le=this.kd?1:2;if(this.i){b=this.Ua;var c=new R(b.zp);S(c,"as_coll",a.getId());Ex(c,a,r(b.s,b))}else b=this.Ua,Ex(b.l,a,r(b.o,b,!0));return!0}; yA.prototype.qa=function(){delete this.Ua;delete this.Aa;delete this.i;delete this.U;delete this.Jb;delete this.o;delete this.Wa;delete this.Fb;sA.prototype.qa.call(this)};function BA(a,b,c,d,e){W.call(this);this.O=a;this.j=b;this.s=c;this.i=d;this.O&&(this.l=lb(this.O.childNodes,CA),this.i&&wb(this.l,lb(this.i.childNodes,CA)));this.o=e;U(r(this.Kq,this))}u(BA,W);f=BA.prototype;f.Kq=function(){this.j&&this.i&&this.g.ha(this.j,"click",this.yp);this.s&&this.g.ha(this.s,"click",this.Rs);this.g.ha(this.o,"add",this.Vr)}; function CA(a){var b=$e("SPAN","sidebar-collection-title",a)[0];b||(b=$e("SPAN","hp-collection-title",a)[0]);if(!b)return"";a=Gf(b);return Vb(Vb(Wc(a)).split("(")[0])}f.Rs=function(){var a=new yA("Create new bookshelf","Create bookshelf",this.o,r(this.hu,this));a.render();a.wa(!0)};f.hu=function(a){var b=Vb(Wc(a)).toLowerCase();return!mb(this.l,function(c){return c.toLowerCase()==b})}; f.Vr=function(a){var b=a.shelf;a=Vb(Wc(b.Za()));var c=b.le==1;this.l.push(a);var d=new R("/books");Zu(d);S(d,"as_coll",b.getId());S(d,"source","gbs_lp_bookshelf_list");if(Pm.IsBooksUnifiedLeftNavEnabled)b=B("LI",{"class":"left-nav-shelf-item"}),c=B("A",{"class":"sidebar-link"}),Cc(c,d.toString()),d=C("SPAN"),O(d,"sidebar-collection-title"),x(d,He(a+" (0)")),c.appendChild(d),b.appendChild(c),a=A("hidden-my-library-expanded"),sf(b,a),rA(!0,"my-library");else{b=C("DIV");var e=B("A",{"class":"hp-bookshelf-link", style:"line-height:19px"});Cc(e,d.toString());d=B("SPAN",{"class":"hp-collection-title"});x(d,He(a));e.appendChild(d);b.appendChild(e);a=c?"Public bookshelf":"Private bookshelf";a=B("IMG",{"class":"hp-bookshelf-access",src:"/googlebooks/images/sharing_"+(c?"public":"private")+".gif",title:a,alt:a,width:14,height:14});b.appendChild(a);a=B("DIV",{style:"clear:both"});b.appendChild(a);tf(b,A("csStart"))}}; f.yp=function(a){a.preventDefault();a=!gh(this.i);N(this.i,a);a?(Bp(this.j,9,this.i,8),M(this.i).height>200&&(a=M(this.i).width,L(this.i,a,200),K(this.i,"overflow","auto"),K(this.i,"overflowX","hidden")),this.U=I(document,"mousedown",r(this.ou,this))):pg(this.U)};f.ou=function(a){Af(this.i,a.target)||Af(this.j,a.target)||this.yp(a)}; function pG(a,b){this.g=b||"en"}pG.prototype.wg=function(){var a=C("IMG");a.src=Uc("https://books.google.com/intl/%s/googlebooks/images/gbs_preview_button1.gif",this.g);a.border="0";K(a,"cursor","pointer");return a};function qG(a,b,c){this.g=c||"en";c=C("a");c.href=b;a.appendChild(c);a=this.wg();c.appendChild(a)}n(qG,pG);function rG(a,b,c){this.g=c||"en";c=this.wg();a.appendChild(c);K(a,"cursor","pointer");I(a,"click",b)}n(rG,pG);function sG(a){var b=tG,c=document.getElementsByTagName("body")[0],d=C("div");fh(d,.5);K(d,{backgroundColor:"#333",position:"absolute",zIndex:200});this.l=d;L(d,c.scrollWidth,Math.max(c.scrollHeight,gf().height));Pg(d,0,0);c.appendChild(d);this.i=C("div");K(this.i,{position:"absolute",zIndex:201});c.appendChild(this.i);this.o=C("div");L(this.o,618,500);K(this.o,{backgroundColor:"#333",position:"absolute",zIndex:202});Pg(this.o,3,3);fh(this.o,.3);this.i.appendChild(this.o);this.g=C("div");Pg(this.g, 0,0);K(this.g,{position:"absolute",padding:"8px",border:"1px solid #2c4462",backgroundColor:"#b4cffe",zIndex:203});c=C("div");K(c,{backgroundColor:"#d8e8fd",fontSize:"16px",fontFamily:"Arial, sans-serif",fontWeight:"bold",padding:"2px 2px 2px 5px"});this.g.appendChild(c);d=C("IMG");d.src="https://books.google.com/googlebooks/images/dialog_close_x.gif";d.width=15;d.height=15;K(d,{cursor:"pointer",position:"absolute",right:"11px",top:"11px"});hg(d,"click",r(this.close,this));c.appendChild(d);d=C("div"); d.textContent="\u00a0";c.appendChild(d);this.j=C("div");this.g.appendChild(this.j);L(this.j,600,456);this.i.appendChild(this.g);b(this.j,a);b=gf();a=Math.max(0,(b.height-500)/2);a=Math.floor(a+hf(document).y);b=Math.max(0,(b.width-618)/2);b=Math.floor(b);Pg(this.i,b,a)}sG.prototype.close=function(){[this.g,this.l,this.o].forEach(E)};cb("GBS_insertPreviewButtonLink",function(a,b){uG(a,t(vG,(b||{}).alternativeUrl),"GBS_insertPreviewButtonLink")});cb("GBS_insertPreviewButtonPopup",function(a){uG(a,wG,"GBS_insertPreviewButtonPopup")});cb("GBS_insertEmbeddedViewer",function(a,b,c){uG(a,t(xG,b,c),"GBS_insertEmbeddedViewer")});function uG(a,b,c){var d=yG();new bw(a,function(e){b(d,e)},null,c,zG)} function vG(a,b,c){a||(a=new R(c),AG&&(c=new R(GBS_HOST),Ph(a,c.l),a.g=c.g,Qh(a,c.U),Rh(a,"/books/p/"+AG)),a=Tm(a.toString()));new qG(b,a,zG)}function wG(a,b){new rG(a,t(BG,b),zG)}function xG(a,b,c,d){var e=C("div");c.appendChild(e);L(e,a,b);tG(e,d)}function tG(a,b){var c=B("IFRAME",{frameBorder:"0",width:"100%",height:"100%"});a.appendChild(c);a=new R(b);S(a,"output","embed");CG&&Th(a,Yc(JSON.stringify(CG)));c.src=a.toString()}function BG(a){new sG(a)}var zG="en"; cb("GBS_setLanguage",function(a){zG=a});cb("GBS_setViewerOptions",function(a){CG=a});var AG=null;cb("GBS_setCobrandName",function(a){AG=a});var CG={};function yG(){var a="__GBS_Button"+DG++,b=le("span",{id:a});document.write(Gc(b));return A(a)}var DG=0; })();