書籍の全文が登録された世界最大級の包括的なインデックスを検索できます。

マイ ライブラリ

出版社Google ブックスについてプライバシー ポリシー利用規約ヘルプ
tractor engines

");return(new DOMParser).parseFromString(Xd(a),"text/html").body.children[0]} function Ng(a,b){if(!a)return Hd;var c=document.createElement("div").style;Qg(a).forEach(function(d){var e=pc&&d in Kg?d:d.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");Mb(e,"--")||Mb(e,"var")||(d=Gg(a,d),d=fg(e,d,b),null!=d&&Hg(c,e,d))});return new Dd(c.cssText||"",Cd)} function Rg(a){var b=Array.from(yg(ng,a,"getElementsByTagName",["STYLE"])),c=Db(b,function(h){return ub(Cg(h).cssRules)});c=Mg(c);for(var d=[],e=0;e=a.left&&b.right=a.top&&b.bottom=a.left&&b.x=a.top&&b.ya.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 Xg(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}f=Xg.prototype;f.clone=function(){return new Xg(this.left,this.top,this.width,this.height)};function Yg(a){return new Tg(a.top,a.left+a.width,a.top+a.height,a.left)}function Zg(a){return new Xg(a.left,a.top,a.right-a.left,a.bottom-a.top)} function $g(a,b){var c=Math.max(a.left,b.left),d=Math.min(a.left+a.width,b.left+b.width);if(ca.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null} function ph(a){for(var b=new Tg(0,Infinity,Infinity,0),c=Te(a),d=c.g.body,e=c.g.documentElement,g=jf(c.g);a=oh(a);)if(!(z&&0==a.clientWidth||pc&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=ih(a,"overflow")){var h=qh(a),k=new A(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= ff(Pf(c));b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,g+c.height);return 0b.top&&b.right>b.left?b:null} function rh(a,b){b=b||jf(document);var c=b||jf(document);var d=qh(a),e=qh(c),g=sh(c);if(c==jf(document)){var h=d.x-c.scrollLeft;d=d.y-c.scrollTop;z&&!Hc(10)&&(h+=g.left,d+=g.top)}else h=d.x-e.x-g.left,d=d.y-e.y-g.top;a=th(a);g=c.clientHeight-a.height;e=c.scrollLeft;var k=c.scrollTop;e+=Math.min(h,Math.max(h-(c.clientWidth-a.width),0));k+=Math.min(d,Math.max(d-g,0));c=new A(e,k);b.scrollLeft=c.x;b.scrollTop=c.y} function qh(a){var b=Ve(a),c=new A(0,0),d=mh(b);if(a==d)return c;a=nh(a);b=hf(Te(b).g);c.x=a.left+b.x;c.y=a.top+b.y;return c}function uh(a,b){a=vh(a);b=vh(b);return new A(a.x-b.x,a.y-b.y)}function wh(a){a=nh(a);return new A(a.left,a.top)}function vh(a){if(1==a.nodeType)return wh(a);a=a.changedTouches?a.changedTouches[0]:a;return new A(a.clientX,a.clientY)}function xh(a,b,c){var d=qh(a);b instanceof A&&(c=b.y,b=b.x);jh(a,a.offsetLeft+(b-d.x),a.offsetTop+(Number(c)-d.y))} function K(a,b,c){if(b instanceof Ae)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");yh(a,b);a.style.height=kh(c,!0)}function kh(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function yh(a,b){a.style.width=kh(b,!0)}function L(a){var b=th;if("none"!=ih(a,"display"))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 th(a){var b=a.offsetWidth,c=a.offsetHeight,d=pc&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=nh(a),new Ae(a.right-a.left,a.bottom-a.top)):new Ae(b,c)}function zh(a){var b=qh(a);a=L(a);return new Xg(b.x,b.y,a.width,a.height)}function Ah(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="+100*Number(b)+")")}function M(a,b){a.style.display=b?"":"none"}function Bh(a){return"none"!=a.style.display} function Ch(a){return"rtl"==ih(a,"direction")}var Dh=oc?"MozUserSelect":pc||mc?"WebkitUserSelect":null;function Eh(a,b,c){c=c?null:a.getElementsByTagName("*");if(Dh){if(b=b?"none":"",a.style&&(a.style[Dh]=b),c){a=0;for(var d;d=c[a];a++)d.style&&(d.style[Dh]=b)}}else if(z&&(b=b?"on":"",a.setAttribute("unselectable",b),c))for(a=0;d=c[a];a++)d.setAttribute("unselectable",b)} function Fh(a,b){var c=gf(Te(Ve(a)).g);if(!z||Gc("10")||c)Gh(a,b,"border-box");else{var d=a.style;c?(c=Hh(a),a=sh(a),d.pixelWidth=b.width-a.left-c.left-c.right-a.right,d.pixelHeight=b.height-a.top-c.top-c.bottom-a.bottom):(d.pixelWidth=b.width,d.pixelHeight=b.height)}} function Ih(a){var b=Ve(a),c=z&&a.currentStyle;if(c&&gf(Te(b).g)&&"auto"!=c.width&&"auto"!=c.height&&!c.boxSizing)return b=Jh(a,c.width,"width","pixelWidth"),a=Jh(a,c.height,"height","pixelHeight"),new Ae(b,a);c=new Ae(a.offsetWidth,a.offsetHeight);b=Hh(a);a=sh(a);return new Ae(c.width-a.left-b.left-b.right-a.right,c.height-a.top-b.top-b.bottom-a.bottom)} function Kh(a,b){var c=gf(Te(Ve(a)).g);if(!z||Gc("10")||c)Gh(a,b,"content-box");else{var d=a.style;c?(d.pixelWidth=b.width,d.pixelHeight=b.height):(c=Hh(a),a=sh(a),d.pixelWidth=b.width+a.left+c.left+c.right+a.right,d.pixelHeight=b.height+a.top+c.top+c.bottom+a.bottom)}}function Gh(a,b,c){a=a.style;oc?a.MozBoxSizing=c:pc?a.WebkitBoxSizing=c:a.boxSizing=c;a.width=Math.max(b.width,0)+"px";a.height=Math.max(b.height,0)+"px"} function Jh(a,b,c,d){if(/^\d+px?$/.test(b))return parseInt(b,10);var e=a.style[c],g=a.runtimeStyle[c];a.runtimeStyle[c]=a.currentStyle[c];a.style[c]=b;b=a.style[d];a.style[c]=e;a.runtimeStyle[c]=g;return+b}function Lh(a,b){return(b=hh(a,b))?Jh(a,b,"left","pixelLeft"):0} function Hh(a){if(z){var b=Lh(a,"paddingLeft"),c=Lh(a,"paddingRight"),d=Lh(a,"paddingTop");a=Lh(a,"paddingBottom");return new Tg(d,c,a,b)}b=gh(a,"paddingLeft");c=gh(a,"paddingRight");d=gh(a,"paddingTop");a=gh(a,"paddingBottom");return new Tg(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))}var Mh={thin:2,medium:4,thick:6};function Nh(a,b){if("none"==hh(a,b+"Style"))return 0;b=hh(a,b+"Width");return b in Mh?Mh[b]:Jh(a,b,"left","pixelLeft")} function sh(a){if(z&&!Hc(9)){var b=Nh(a,"borderLeft"),c=Nh(a,"borderRight"),d=Nh(a,"borderTop");a=Nh(a,"borderBottom");return new Tg(d,c,a,b)}b=gh(a,"borderLeftWidth");c=gh(a,"borderRightWidth");d=gh(a,"borderTopWidth");a=gh(a,"borderBottomWidth");return new Tg(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))};var Oh={"* ARIA-CHECKED":!0,"* ARIA-COLCOUNT":!0,"* ARIA-COLINDEX":!0,"* ARIA-CONTROLS":!0,"* ARIA-DESCRIBEDBY":!0,"* ARIA-DISABLED":!0,"* ARIA-EXPANDED":!0,"* ARIA-GOOG-EDITABLE":!0,"* ARIA-HASPOPUP":!0,"* ARIA-HIDDEN":!0,"* ARIA-LABEL":!0,"* ARIA-LABELLEDBY":!0,"* ARIA-MULTILINE":!0,"* ARIA-MULTISELECTABLE":!0,"* ARIA-ORIENTATION":!0,"* ARIA-PLACEHOLDER":!0,"* ARIA-READONLY":!0,"* ARIA-REQUIRED":!0,"* ARIA-ROLEDESCRIPTION":!0,"* ARIA-ROWCOUNT":!0,"* ARIA-ROWINDEX":!0,"* ARIA-SELECTED":!0,"* ABBR":!0, "* ACCEPT":!0,"* ACCESSKEY":!0,"* ALIGN":!0,"* ALT":!0,"* AUTOCOMPLETE":!0,"* AXIS":!0,"* BGCOLOR":!0,"* BORDER":!0,"* CELLPADDING":!0,"* CELLSPACING":!0,"* CHAROFF":!0,"* CHAR":!0,"* CHECKED":!0,"* CLEAR":!0,"* COLOR":!0,"* COLSPAN":!0,"* COLS":!0,"* COMPACT":!0,"* COORDS":!0,"* DATETIME":!0,"* DIR":!0,"* DISABLED":!0,"* ENCTYPE":!0,"* FACE":!0,"* FRAME":!0,"* HEIGHT":!0,"* HREFLANG":!0,"* HSPACE":!0,"* ISMAP":!0,"* LABEL":!0,"* LANG":!0,"* MAX":!0,"* MAXLENGTH":!0,"* METHOD":!0,"* MULTIPLE":!0, "* NOHREF":!0,"* NOSHADE":!0,"* NOWRAP":!0,"* OPEN":!0,"* READONLY":!0,"* REQUIRED":!0,"* REL":!0,"* REV":!0,"* ROLE":!0,"* ROWSPAN":!0,"* ROWS":!0,"* RULES":!0,"* SCOPE":!0,"* SELECTED":!0,"* SHAPE":!0,"* SIZE":!0,"* SPAN":!0,"* START":!0,"* SUMMARY":!0,"* TABINDEX":!0,"* TITLE":!0,"* TYPE":!0,"* VALIGN":!0,"* VALUE":!0,"* VSPACE":!0,"* WIDTH":!0},Ph={"* USEMAP":!0,"* ACTION":!0,"* CITE":!0,"* HREF":!0,"* LONGDESC":!0,"* SRC":!0,"LINK HREF":!0,"* FOR":!0,"* HEADERS":!0,"* NAME":!0,"A TARGET":!0, "* CLASS":!0,"* ID":!0,"* STYLE":!0};var Qh="undefined"!=typeof WeakMap&&-1!=WeakMap.toString().indexOf("[native code]"),Rh=0;function Sh(){this.j=[];this.i=[];this.g="data-elementweakmap-index-"+Rh++}Sh.prototype.set=function(a,b){if(yg(jg,a,"hasAttribute",[this.g])){var c=parseInt(yg(kg,a,"getAttribute",[this.g])||null,10);this.i[c]=b}else c=this.i.push(b)-1,Ag(a,this.g,c.toString()),this.j.push(a);return this}; Sh.prototype.get=function(a){if(yg(jg,a,"hasAttribute",[this.g]))return a=parseInt(yg(kg,a,"getAttribute",[this.g])||null,10),this.i[a]};Sh.prototype.clear=function(){this.j.forEach(function(a){yg(mg,a,"removeAttribute",[this.g])},this);this.j=[];this.i=[]};var Th=!z||Hc(10),Uh=!z||null==document.documentMode;function Vh(){};var Wh={APPLET:!0,AUDIO:!0,BASE:!0,BGSOUND:!0,EMBED:!0,FORM:!0,IFRAME:!0,ISINDEX:!0,KEYGEN:!0,LAYER:!0,LINK:!0,META:!0,OBJECT:!0,SCRIPT:!0,SVG:!0,STYLE:!0,TEMPLATE:!0,VIDEO:!0};var Xh={A:!0,ABBR:!0,ACRONYM:!0,ADDRESS:!0,AREA:!0,ARTICLE:!0,ASIDE:!0,B:!0,BDI:!0,BDO:!0,BIG:!0,BLOCKQUOTE:!0,BR:!0,BUTTON:!0,CAPTION:!0,CENTER:!0,CITE:!0,CODE:!0,COL:!0,COLGROUP:!0,DATA:!0,DATALIST:!0,DD:!0,DEL:!0,DETAILS:!0,DFN:!0,DIALOG:!0,DIR:!0,DIV:!0,DL:!0,DT:!0,EM:!0,FIELDSET:!0,FIGCAPTION:!0,FIGURE:!0,FONT:!0,FOOTER:!0,FORM:!0,H1:!0,H2:!0,H3:!0,H4:!0,H5:!0,H6:!0,HEADER:!0,HGROUP:!0,HR:!0,I:!0,IMG:!0,INPUT:!0,INS:!0,KBD:!0,LABEL:!0,LEGEND:!0,LI:!0,MAIN:!0,MAP:!0,MARK:!0,MENU:!0,METER:!0,NAV:!0, NOSCRIPT:!0,OL:!0,OPTGROUP:!0,OPTION:!0,OUTPUT:!0,P:!0,PRE:!0,PROGRESS:!0,Q:!0,S:!0,SAMP:!0,SECTION:!0,SELECT:!0,SMALL:!0,SOURCE:!0,SPAN:!0,STRIKE:!0,STRONG:!0,STYLE:!0,SUB:!0,SUMMARY:!0,SUP:!0,TABLE:!0,TBODY:!0,TD:!0,TEXTAREA:!0,TFOOT:!0,TH:!0,THEAD:!0,TIME:!0,TR:!0,TT:!0,U:!0,UL:!0,VAR:!0,WBR:!0};var Yh={"ANNOTATION-XML":!0,"COLOR-PROFILE":!0,"FONT-FACE":!0,"FONT-FACE-SRC":!0,"FONT-FACE-URI":!0,"FONT-FACE-FORMAT":!0,"FONT-FACE-NAME":!0,"MISSING-GLYPH":!0}; function Zh(a){a=a||new $h;ai(a);this.i=$c(a.g);this.N=$c(a.ua);this.j=$c(a.va);this.oa=a.na;a.Ca.forEach(function(b){if(!Mb(b,"data-"))throw new db('Only "data-" attributes allowed, got: %s.',[b]);if(Mb(b,"data-sanitizer-"))throw new db('Attributes with "%s" prefix are not allowed, got: %s.',["data-sanitizer-",b]);this.i["* "+b.toUpperCase()]=bi},this);a.Ba.forEach(function(b){b=b.toUpperCase();if(!Zb(b,"-")||Yh[b])throw new db("Only valid custom element tag names allowed, got: %s.",[b]);this.j[b]= !0},this);this.ma=a.j;this.s=a.Pa;this.o=null;this.O=a.oa}u(Zh,Vh);function ci(a){return function(b,c){return(b=a(Pb(b),c))&&"about:invalid#zClosurez"!=vd(b)?vd(b):null}}function $h(){this.g={};v([Oh,Ph],function(a){Uc(a).forEach(function(b){this.g[b]=bi},this)},this);this.i={};this.Ca=[];this.Ba=[];this.ua=$c(Wh);this.va=$c(Xh);this.na=!1;this.ma=yd;this.O=this.o=this.s=this.j=Nc;this.Pa=null;this.N=this.oa=!1} function di(a,b){return function(c,d,e,g){c=a(c,d,e,g);return null==c?null:b(c,d,e,g)}}function ei(a,b,c,d){a[c]&&!b[c]&&(a[c]=di(a[c],d))} function ai(a){if(a.N)throw Error("HtmlSanitizer.Builder.build() can only be used once.");ei(a.g,a.i,"* USEMAP",fi);var b=ci(a.ma);["* ACTION","* CITE","* HREF"].forEach(function(d){ei(this.g,this.i,d,b)},a);var c=ci(a.j);["* LONGDESC","* SRC","LINK HREF"].forEach(function(d){ei(this.g,this.i,d,c)},a);["* FOR","* HEADERS","* NAME"].forEach(function(d){ei(this.g,this.i,d,t(gi,this.s))},a);ei(a.g,a.i,"A TARGET",t(hi,["_blank","_self"]));ei(a.g,a.i,"* CLASS",t(ii,a.o));ei(a.g,a.i,"* ID",t(ji,a.o));ei(a.g, a.i,"* STYLE",t(a.O,c));a.N=!0}function ki(a,b){a||(a="*");return(a+" "+b).toUpperCase()}function bi(a){return Pb(a)}function hi(a,b){b=Pb(b);return ob(a,b.toLowerCase())?b:null}function fi(a){return(a=Pb(a))&&"#"==a.charAt(0)?a:null}function gi(a,b,c){return a(Pb(b),c)}function ii(a,b,c){b=b.split(/(?:\s+)/);for(var d=[],e=0;e"+b+""),Rg(b),b=b.innerHTML);b=Zd(b);var c=document.createElement("template");if(Uh&&"content"in c)oe(c,b),c=c.content;else{var d=document.implementation.createHTMLDocument("x");c=d.body;oe(d.body,b)}b=document.createTreeWalker(c,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,null,!1);for(c=Qh? new WeakMap:new Sh;d=b.nextNode();){c:{var e=d;switch(Eg(e)){case 3:e=li(this,e);break c;case 1:if("TEMPLATE"==Dg(e).toUpperCase())e=null;else{var g=Dg(e).toUpperCase();if(g in this.N||"http://www.w3.org/1999/xhtml"!=Ig(e))var h=null;else this.j[g]?h=document.createElement(g):(h=F("SPAN"),this.oa&&Ag(h,"data-sanitizer-original-tag",g.toLowerCase()));if(h){var k=h,l=zg(e);if(null!=l)for(var m=0;g=l[m];m++)if(g.specified){var p=e;var w=g;var D=w.name;if(Mb(D,"data-sanitizer-"))w=null;else{var E=Dg(p); w=w.value;var I={tagName:Pb(E).toLowerCase(),attributeName:Pb(D).toLowerCase()},P={fl:void 0};"style"==I.attributeName&&(P.fl=Bg(p));p=ki(E,D);p in this.i?(D=this.i[p],w=D(w,I,P)):(D=ki(null,D),D in this.i?(D=this.i[D],w=D(w,I,P)):w=null)}null!==w&&Ag(k,g.name,w)}e=h}else e=null}break c;default:e=null}}if(e){if(1==Eg(e)&&c.set(d,e),d=Fg(d),g=!1,d)h=Eg(d),k=Dg(d).toLowerCase(),l=Fg(d),11!=h||l?"body"==k&&l&&(h=Fg(l))&&!Fg(h)&&(g=!0):g=!0,h=null,g||!d?h=a:1==Eg(d)&&(h=c.get(d)),h.content&&(h=h.content), h.appendChild(e)}else rf(d)}c.clear&&c.clear()}else a=F("SPAN");0")+1,a.lastIndexOf(""))}else a="";return Zd(a)};function li(a,b){var c=b.data;(b=Fg(b))&&"style"==Dg(b).toLowerCase()&&!("STYLE"in a.N)&&"STYLE"in a.j&&(c=Sd(Og(c,a.o,r(function(d,e){return this.ma(d,{nt:e})},a))));return document.createTextNode(c)};function mi(a){return(new Zh(new $h)).g(a)};/* SPDX-License-Identifier: Apache-2.0 */ var ni;try{new URL("s://g"),ni=!0}catch(a){ni=!1}var oi=ni;function pi(a){if(!oi){a:{var b=document.createElement("a");try{b.href=a}catch(c){a=void 0;break a}a=-1!==[":",""].indexOf(b.protocol)?"https:":b.protocol}return a}try{b=new URL(a)}catch(c){return"https:"}return b.protocol}var qi=["data:","http:","https:","mailto:","ftp:"];function ri(a){var b;a instanceof td?b=vd(a):b="javascript:"===pi(a)?"about:invalid":a;return b};var si={};function ti(){}function ui(a){this.g=a}n(ui,ti);ui.prototype.toString=function(){return this.g};function N(a,b){if(void 0!==a.tagName){if("script"===a.tagName.toLowerCase())throw Error("Use setTextContent with a SafeScript.");if("style"===a.tagName.toLowerCase())throw Error("Use setTextContent with a SafeStyleSheet.");}a.innerHTML=Xd(b)} function vi(a,b){var c=wi;if(0===c.length)throw Error("No prefixes are provided");if(c.map(function(d){if(d instanceof ui)d=d.g;else throw Error("");return d}).every(function(d){return 0!=="value".indexOf(d)}))throw Error('Attribute "value" does not match any of the allowed prefixes.');a.setAttribute("value",b)};function xi(a){var b,c,d=null==(c=(b=(a.ownerDocument&&a.ownerDocument.defaultView||window).document).querySelector)?void 0:c.call(b,"script[nonce]");(b=d?d.nonce||d.getAttribute("nonce")||"":"")&&a.setAttribute("nonce",b)};function yi(a){a&&"function"==typeof a.Ha&&a.Ha()};function zi(){this.Nd=this.Nd;this.Pa=this.Pa}zi.prototype.Nd=!1;zi.prototype.Ha=function(){this.Nd||(this.Nd=!0,this.wa())};function Ai(a,b){b=t(yi,b);a.Nd?b():(a.Pa||(a.Pa=[]),a.Pa.push(b))}zi.prototype.wa=function(){if(this.Pa)for(;this.Pa.length;)this.Pa.shift()()};function Bi(a){this.id=a}Bi.prototype.toString=function(){return this.id};function Ci(a,b){this.type=a instanceof Bi?String(a):a;this.currentTarget=this.target=b;this.defaultPrevented=this.g=!1}Ci.prototype.stopPropagation=function(){this.g=!0};Ci.prototype.preventDefault=function(){this.defaultPrevented=!0};function Di(a){a.preventDefault()};var Ei=function(){if(!q.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});try{q.addEventListener("test",function(){},b),q.removeEventListener("test",function(){},b)}catch(c){}return a}();function Fi(a,b){Ci.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.fm=!1;this.pointerId=0;this.pointerType="";this.Ob=null;a&&this.Il(a,b)}u(Fi,Ci);var Gi={2:"touch",3:"pen",4:"mouse"}; Fi.prototype.Il=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)?oc&&(jc(b,"nodeName")||(b=null)):"mouseover"==c?b=a.fromElement:"mouseout"==c&&(b=a.toElement);this.relatedTarget=b;d?(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.offsetX=pc||void 0!==a.offsetX? a.offsetX:a.layerX,this.offsetY=pc||void 0!==a.offsetY?a.offsetY:a.layerY,this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.fm=rc?a.metaKey:a.ctrlKey;this.pointerId=a.pointerId||0;this.pointerType= "string"===typeof a.pointerType?a.pointerType:Gi[a.pointerType]||"";this.state=a.state;this.Ob=a;a.defaultPrevented&&Fi.ta.preventDefault.call(this)};function Hi(a){return 0==a.Ob.button&&!(rc&&a.ctrlKey)}Fi.prototype.stopPropagation=function(){Fi.ta.stopPropagation.call(this);this.Ob.stopPropagation?this.Ob.stopPropagation():this.Ob.cancelBubble=!0};Fi.prototype.preventDefault=function(){Fi.ta.preventDefault.call(this);var a=this.Ob;a.preventDefault?a.preventDefault():a.returnValue=!1};var Ii="closure_listenable_"+(1E6*Math.random()|0);function Ji(a){return!(!a||!a[Ii])};var Ki=0;function Li(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.Cj=e;this.key=++Ki;this.mh=this.ij=!1}function Mi(a){a.mh=!0;a.listener=null;a.proxy=null;a.src=null;a.Cj=null};function Ni(a){this.src=a;this.g={};this.i=0}f=Ni.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=Oi(a,b,d,e);-1>>0);function Ui(a){if("function"===typeof a)return a;a[cj]||(a[cj]=function(b){return a.handleEvent(b)});return a[cj]};function dj(a){zi.call(this);this.N=a;this.j={}}u(dj,zi);var ej=[];f=dj.prototype;f.ka=function(a,b,c,d){return fj(this,a,b,c,d)};function gj(a,b,c,d,e){fj(a,b,c,d,!1,e)}function fj(a,b,c,d,e,g){Array.isArray(c)||(c&&(ej[0]=c.toString()),c=ej);for(var h=0;h=a.keyCode)return!1;if(mj(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!oc;default:return 166>a.keyCode||183=a||96=a||65=a||(pc||mc)&&0==a)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:return oc;default:return!1}}function oj(a){if(oc)a=pj(a);else if(rc&&pc)switch(a){case 93:a=91}return a} function pj(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 qj(a){if(a.qc&&"function"==typeof a.qc)return a.qc();if("undefined"!==typeof Map&&a instanceof Map||"undefined"!==typeof Set&&a instanceof Set)return Array.from(a.values());if("string"===typeof a)return a.split("");if(Ra(a)){for(var b=[],c=a.length,d=0;dc&&(c=a.length);var d=a.indexOf("?");if(0>d||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 wj(a,b,c,d){for(var e=c.length;0d)return null;var e=b.indexOf("&",d);if(0>e||e>c)e=c;d+=a.length+1;return Ge(b.slice(d,-1!==e?e:0))}var zj=/[?&]($|#)/;function R(a,b){this.i=this.O=this.s="";this.ma=null;this.g=this.o="";this.N=!1;var c;a instanceof R?(this.N=void 0!==b?b:a.N,Aj(this,a.s),this.O=a.O,this.i=a.i,Bj(this,a.ma),Cj(this,a.o),Dj(this,a.j.clone()),this.g=a.g):a&&(c=String(a).match(tj))?(this.N=!!b,Aj(this,c[1]||"",!0),this.O=Ej(c[2]||""),this.i=Ej(c[3]||"",!0),Bj(this,c[4]),Cj(this,c[5]||"",!0),Dj(this,c[6]||"",!0),this.g=Ej(c[7]||"")):(this.N=!!b,this.j=new Fj(null,this.N))} R.prototype.toString=function(){var a=[],b=this.s;b&&a.push(Gj(b,Hj,!0),":");var c=this.i;if(c||"file"==b)a.push("//"),(b=this.O)&&a.push(Gj(b,Hj,!0),"@"),a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.ma,null!=c&&a.push(":",String(c));if(c=this.o)this.i&&"/"!=c.charAt(0)&&a.push("/"),a.push(Gj(c,"/"==c.charAt(0)?Ij:Jj,!0));(c=this.j.toString())&&a.push("?",c);(c=this.g)&&a.push("#",Gj(c,Kj));return a.join("")}; R.prototype.resolve=function(a){var b=this.clone(),c=!!a.s;c?Aj(b,a.s):c=!!a.O;c?b.O=a.O:c=!!a.i;c?b.i=a.i:c=null!=a.ma;var d=a.o;if(c)Bj(b,a.ma);else if(c=!!a.o){if("/"!=d.charAt(0))if(this.i&&!this.o)d="/"+d;else{var e=b.o.lastIndexOf("/");-1!=e&&(d=b.o.slice(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(Zb(e,"./")||Zb(e,"/.")){d=Mb(e,"/");e=e.split("/");for(var g=[],h=0;hb)throw Error("Bad port number "+b);a.ma=b}else a.ma=null}function Cj(a,b,c){a.o=c?Ej(b,!0):b}function Dj(a,b,c){b instanceof Fj?(a.j=b,Lj(a.j,a.N)):(c||(b=Gj(b,Mj)),a.j=new Fj(b,a.N))} R.prototype.getQuery=function(){return this.j.toString()};function S(a,b,c){a.j.set(b,c);return a}function T(a,b){return a.j.get(b)}function Nj(a,b){a.j.remove(b)}function Ej(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""}function Gj(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,Oj),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function Oj(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)} var Hj=/[#\/\?@]/g,Jj=/[#\?:]/g,Ij=/[#\?]/g,Mj=/[#\?@]/g,Kj=/#/g;function Fj(a,b){this.i=this.g=null;this.j=a||null;this.o=!!b}function Pj(a){a.g||(a.g=new Map,a.i=0,a.j&&uj(a.j,function(b,c){a.add(Ge(b),c)}))}function Qj(a){var b=rj(a);if("undefined"==typeof b)throw Error("Keys are undefined");var c=new Fj(null);a=qj(a);for(var d=0;da.i&&(a.i++,b.next=a.g,a.g=b)};function dk(a,b){var c=a;b&&(c=r(a,b));c=ek(c);"function"!==typeof q.setImmediate||q.Window&&q.Window.prototype&&!y("Edge")&&q.Window.prototype.setImmediate==q.setImmediate?(fk||(fk=gk()),fk(c)):q.setImmediate(c)}var fk; function gk(){var a=q.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!y("Presto")&&(a=function(){var e=F("IFRAME");e.style.display="none";document.documentElement.appendChild(e);var g=e.contentWindow;e=g.document;e.open();e.close();var h="callImmediate"+Math.random(),k="file:"==g.location.protocol?"*":g.location.protocol+"//"+g.location.host;e=r(function(l){if(("*"==k||l.origin==k)&&l.data==h)this.port1.onmessage()},this);g.addEventListener("message", e,!1);this.port1={};this.port2={postMessage:function(){g.postMessage(h,k)}}});if("undefined"!==typeof a&&!cc()){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.cb;c.cb=null;e()}};return function(e){d.next={cb:e};d=d.next;b.port2.postMessage(0)}}return function(e){q.setTimeout(e,0)}}var ek=Pc;function hk(a){q.setTimeout(function(){throw a;},0)};function ik(){this.i=this.g=null}ik.prototype.add=function(a,b){var c=jk.get();c.set(a,b);this.i?this.i.next=c:this.g=c;this.i=c};ik.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 jk=new bk(function(){return new kk},function(a){return a.reset()});function kk(){this.next=this.g=this.Qe=null}kk.prototype.set=function(a,b){this.Qe=a;this.g=b;this.next=null};kk.prototype.reset=function(){this.next=this.g=this.Qe=null};var lk,mk=!1,nk=new ik;function ok(a,b){lk||pk();mk||(lk(),mk=!0);nk.add(a,b)}function pk(){if(q.Promise&&q.Promise.resolve){var a=q.Promise.resolve(void 0);lk=function(){a.then(qk)}}else lk=function(){dk(qk)}}function qk(){for(var a;a=nk.remove();){try{a.Qe.call(a.g)}catch(b){hk(b)}ck(jk,a)}mk=!1};function rk(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};function sk(a){this.g=0;this.O=void 0;this.o=this.i=this.j=null;this.s=this.N=!1;if(a!=Oc)try{var b=this;a.call(void 0,function(c){tk(b,2,c)},function(c){tk(b,3,c)})}catch(c){tk(this,3,c)}}function uk(){this.next=this.context=this.i=this.j=this.g=null;this.o=!1}uk.prototype.reset=function(){this.context=this.i=this.j=this.g=null;this.o=!1};var vk=new bk(function(){return new uk},function(a){a.reset()});function wk(a,b,c){var d=vk.get();d.j=a;d.i=b;d.context=c;return d} function xk(){var a,b,c=new sk(function(d,e){a=d;b=e});return new yk(c,a,b)}sk.prototype.then=function(a,b,c){return zk(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)};sk.prototype.$goog_Thenable=!0;sk.prototype.cancel=function(a){if(0==this.g){var b=new Ak(a);ok(function(){Bk(this,b)},this)}}; function Bk(a,b){if(0==a.g)if(a.j){var c=a.j;if(c.i){for(var d=0,e=null,g=null,h=c.i;h&&(h.o||(d++,h.g==a&&(e=h),!(e&&1"+a+"\x3c/script>"))}function cl(a){return a.replace(/&/g,"&").replace(/,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")};function dl(a){var b=document.createElement("template");if(!("content"in b)){b=Zd(""+a);b=(new DOMParser).parseFromString(Xd(b),"text/html");for(a=b.createDocumentFragment();0

"+kt(null!=c?c:"")+"
")};function xt(a,b){this.j=a;this.N=!!b;this.o={0:this.j+"-arrowright",1:this.j+"-arrowup",2:this.j+"-arrowdown",3:this.j+"-arrowleft"}}n(xt,Vr);f=xt.prototype;f.Uj=function(a){this.i=a};f.setPosition=function(a,b,c,d){null!=a&&(this.hj=a);null!=b&&(this.Uk=b);"number"===typeof c&&(this.jo=Math.max(c,15));"number"===typeof d&&(this.Zl=d)};f.Tc=function(a,b,c){a=this.Uk;2==a&&(a=0);yt(this,this.hj,(zt(this.hj),a),2==this.Uk?zt(this.hj)?this.g.offsetHeight/2:this.g.offsetWidth/2:this.jo,0,c)}; function yt(a,b,c,d,e,g){if(a.i){var h=At(b,c);var k=a.i;var l=a.g,m=a.Ea,p=L(k);a:{p=(zt(b)?p.height/2:p.width/2)-d;var w=Yr(k,h);if(m)m=m.clone(),l&&(l=Xr(l),m.left+=l.x,m.right+=l.x,m.top+=l.y,m.bottom+=l.y);else if(m=ph(k),!m){k=p;break a}k=Yg(zh(k));zt(b)?k.topm.bottom&&w&1&&(p-=k.bottom-m.bottom):k.leftm.right&&w&4&&(p-=k.right-m.right);k=p}k=zt(b)?new A(a.Zl,k):new A(k,a.Zl);p=zt(b)?6:9;a.Sk&&2==e&&(p=zt(b)?4:1); w=b^3;zt(b)&&"rtl"==a.i.dir&&(w=b);h=Wr(a.i,At(w,c),a.g,h,k,g,a.Jl?p:0,void 0,a.Ea);if(2!=e&&h&496){yt(a,b^3,c,d,a.Sk&&0==e?1:2,g);return}!a.N||h&496||(e=parseFloat(a.g.style.left),g=parseFloat(a.g.style.top),isFinite(e)&&0==e%1&&isFinite(g)&&0==g%1||jh(a.g,Math.round(e),Math.round(g)))}Bt(a,b,c,d)} function Bt(a,b,c,d){var e=a.s;Sc(a.o,function(g){Lb(e,g,!1)},a);x(e,a.o[b]);e.style.top=e.style.left=e.style.right=e.style.bottom="";a.i?(c=uh(a.i,a.g),d=Ct(a.i,b),zt(b)?e.style.top=Dt(c.y+d.y,a.g.offsetHeight-15)+"px":e.style.left=Dt(c.x+d.x,a.g.offsetWidth-15)+"px"):e.style[0==c?zt(b)?"top":"left":zt(b)?"bottom":"right"]=d+"px"}function Dt(a,b){return 15>b?15:we(a,15,b)}function At(a,b){switch(a){case 2:return 0==b?1:5;case 1:return 0==b?0:4;case 0:return 0==b?12:13;default:return 0==b?8:9}} function Ct(a,b){var c=0,d=0;a=L(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 A(c,d)}function zt(a){return 0==a||3==a}f.Jl=!1;f.Uk=2;f.jo=20;f.hj=3;f.Ea=null;f.Zl=-5;f.Sk=!1;function Et(a){zi.call(this);this.i=a||Te()}n(Et,zi);Et.prototype.s=function(){um(this.ha(),"tooltip");X(this.ha(),"live","polite")};function Ft(a){Et.call(this,a);this.g=this.i.Ra("DIV",Gt()+"-contentId");this.j=this.i.Ra("DIV",Gt()+"-arrow",this.i.Ra("DIV",Gt()+"-arrowimplbefore"),this.i.Ra("DIV",Gt()+"-arrowimplafter"));this.o=this.i.Ra("DIV",{"class":Gt(),role:"tooltip"},this.g,this.j);this.s()}n(Ft,Et);function Gt(){return"jfk-tooltip"}Ft.prototype.ha=function(){return this.o};Ft.prototype.wa=function(){Et.prototype.wa.call(this);this.o&&G(this.o)};function Ht(a){Ft.call(this,a)}n(Ht,Ft);Ht.prototype.s=function(){um(this.ha(),"tooltip")};function It(a){return Ie(Pb(a.replace(Jt,function(b,c){return Kt.test(c)?"":" "}).replace(/[\t\n ]+/g," ")))}var Kt=/^(?:abbr|acronym|address|b|em|i|small|strong|su[bp]|u)$/i,Jt=/]*)?>/gi;function Lt(a){a=a||Te();var b=Ta(a.g);Mt[b]||(Mt[b]=new Nt(a))}function Ot(a,b){var c=b instanceof Vd?It(Wd(b)):b;a.removeAttribute("title");a.removeAttribute("data-tooltip-contained");a.removeAttribute("data-tooltip");b?(b instanceof Vd?a.i=b:(a.setAttribute("data-tooltip",b),a.i=null),a.setAttribute("aria-label",c)):(a.i=null,a.removeAttribute("aria-label"));Lt(Te(a))}var Mt={}; function Nt(a){dj.call(this);this.va=a;this.ua=new am(this.Jw,0,this);Ai(this,this.ua);var b=kf();this.ma="function"===typeof b.MutationObserver?new b.MutationObserver(r(this.Ot,this)):null;a=a.g;this.ka(a,"mouseout mousedown click blur focusout keydown".split(" "),this.it,!0);this.ka(a,["mouseover","focus","focusin"],this.sw,!0)}n(Nt,dj);f=Nt.prototype;f.wa=function(){Pt(this);dj.prototype.wa.call(this)}; function Qt(a,b){switch(b.type){case "mousedown":case "mouseover":case "mouseout":case "click":a.Ba=!1;break;case "keydown":a.Ba=!0}}f.sw=function(a){this.ma&&this.ma.disconnect();Qt(this,a);var b=a.target;a="focus"==a.type||"focusin"==a.type;var c=this.g&&Bf(this.g.g,b);if(this.Ba||!a||c){this.Ca=a;if(a=b&&b.getAttribute&&this.ma)a=b.getAttribute("role")||null,a=ob(tm,a);a&&(this.ma.observe(b,{attributes:!0}),(a=wm(b))&&(b=a));this.o=b}else this.o=null;Rt(this)}; f.it=function(a){Qt(this,a);var b=a.target;b=this.g&&Bf(this.g.g,b);if("mousedown"!=a.type&&"click"!=a.type||!b)this.o=null,Rt(this)};f.Ot=function(a){v(a,r(function(b){var c=wm(b.target);c&&"aria-activedescendant"==b.attributeName&&(this.o=c,Rt(this))},this))};function Rt(a){if(!(a.ua.isActive()&&a.i&&a.O)){Pt(a);var b=null!=a.O?a.O:50;a.ua.start(a.i?b:300)}}function Pt(a){a.oa&&(Mk(a.oa),a.oa=0,a.i=null)} f.Jw=function(){if(!this.o)St(this),this.O=this.i=null;else if(!(this.i&&this.g&&Bf(this.g.ha(),this.o))||this.i.getAttribute("data-tooltip-unhoverable")){var a=Mf(this.o,function(k){return k.getAttribute&&(k.getAttribute("data-tooltip-contained")||k.getAttribute("data-tooltip")||k.i)&&!k.getAttribute("data-tooltip-suspended")}),b=!1;this.i&&this.i!=a&&(St(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.Ca&&"mouse"==a.getAttribute("data-tooltip-trigger")))){var c=ge;if(a.getAttribute("data-tooltip-contained"))for(var d=$e("jfk-tooltip-data",a),e=0;e=Wg(this.Ka,this.O))}if(b){if(this.Ai(),this.Yb=null,b=this.oa)b.Yb=null}else 3==ku(this)&&this.Qg();ru.ta.hh.call(this,a)};f.Fl=function(){this.Yb!=this.ha()&&(this.Hi=!1,this.Yb=this.ha())};f.yl=function(){return this.Hi?100:ru.ta.yl.call(this)};function tu(a,b){a=new ru(a);a.nm(Ns(ql(b.innerHTML,{df:"0954fe00-75b6-49fb-8f60-c8631eadc3e0"})));a.className="buy-tip-card";a.va=new Tg(5,5,5,5);a.lj=!0;a.qh=500;a.ji=250};function uu(a,b){this.Eb=a||200;this.yb=b||108;W.call(this)}u(uu,W);uu.prototype.Fb=function(){return this.Eb};uu.prototype.Db=function(){return this.yb};function vu(a){iu.call(this,a,void 0,void 0);this.Eo=!1;this.lj=!0;this.qh=500}n(vu,ru);vu.prototype.Zj=function(a,b){b||(b=new as(a,9,!0));ru.prototype.Zj.call(this,a,b)};vu.prototype.className="unified-hovercard";var wu="ganpub ganclk dapp source_ip source_country source_domain authuser".split(" ");function xu(a){var b=void 0===b?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");"ge-ipad-app"==b?(S(a,"dapp","2"),Nj(a,"output")):"ge-tablet-app"==b?(S(a,"dapp","4"),Nj(a,"output")):"ge-ip-app"==b?S(a,"dapp","1"):"ge-android-app"==b&&S(a,"dapp","3");T(c,"authuser")||Nj(a,"authuser");wu.forEach(function(d){var e=T(c,d);e&&S(a,d,e)})};function yu(a,b,c){zi.call(this);this.i=null;this.data=a;this.g=b;this.maxWidth=c||500}n(yu,zi);yu.prototype.wa=function(){this.i&&this.i.Ha()};function zu(a){return a.i||(a.i=new dj(a))} yu.prototype.j=function(a){var b=C("DIV"),c=new R(this.data.Aa.ih||this.data.Aa.Wp);this.data.Aa.source&&S(c,"source",this.data.Aa.source);var d=this.data.lb();this.data.Aa.tq&&(d+=": "+this.data.Aa.tq);d=C("A",{},d);d.classList.add(this.g+"-title");pe(d,c.toString());b.appendChild(d);a.appendChild(b);Au(this,a);b=C("DIV");if("number"===typeof(this.data.Aa.Zp||0)){d=this.data.Aa.Zp||0;c=Math.floor(d);d=0)|()/ig,Du={VIEW_PAGES_PARTIAL:2,VIEW_PAGES_ALL:5,VIEW_PAGES_PARTIAL_FIXED:6,VIEW_PURCHASED:7,VIEW_GOOGLE_EDITIONS_PREVIEW:8};function Eu(){this.Aa={}}f=Eu.prototype;f.lb=function(){return this.Aa.title};f.ac=function(){return this.Aa.Fm};f.Xd=function(){return this.Aa.Xd};f.Kl=function(){return this.Aa.Kl};f.kg=function(){return this.Aa.kg};f.mi=function(){return this.Aa.mi};function Fu(){this.g=[]}f=Fu.prototype;f.getId=function(){return this.Bb};f.nh=function(a){this.Bb=a};f.lb=function(){return this.Jc};f.Zg=function(){return this.o};function Gu(a,b,c){Hu(a,b)||null==a.ma||!a.j?c&&c(null):Iu(b,a.ma.clone(),r(a.ct,a,b,c||function(){}))}function Ju(a,b,c){Hu(a,b)&&null!=a.oa&&a.na?Iu(b,a.oa.clone(),r(a.st,a,b,c||function(){})):c&&c(null)}function Iu(a,b,c){S(b,"id",a);Rk(b,c,"POST")}f.ct=function(a,b,c){var d=null;Zk(c.target)&&(d=new Eu,d.Aa.Fm=a,this.g.push(d));b(d)}; f.st=function(a,b,c){var d=null;Zk(c.target)&&(d=Hu(this,a),Ku(this,d));b(d)};function Ku(a,b){sb(a.g,function(c){return c.ac()==b.ac()})}function Hu(a,b){return mb(a.g,function(c){return c&&c.ac()==b})};function Lu(a){this.Aa={};this.Aa.title=a.title;this.Aa.tq=a.subtitle;this.Aa.Vk=a.authors;this.Aa.Wp=a.preview_url;this.Aa.ih=a.info_url;this.Aa.Pj=a.pub_date;this.Aa.Hp=a.num_pages;this.Aa.Fq=a.viewability;this.Aa.Lx=a.subject;this.Aa.xq=a.thumbnail_url;this.Aa.ym=a.snippet;this.Aa.Ax=a.list_price;this.Aa.jq=a.sale_price;this.Aa.Hx=a.sale_price_better;this.Aa.Bv=a.offer_price;this.Aa.Zk=a.buy_url;this.Aa.aq=a.read_url;this.Aa.Hj=a.is_free_ebook||!1;this.Aa.Fj=a.in_my_ebooks||!1;this.Aa.Bx=a.my_ebooks_url|| "";this.Aa.Zp=a.rating_score||0;this.Aa.zv=a.num_reviews||0;this.Aa.Xd=a.is_purchased||!1;this.Aa.li=a.is_ebook||!1;this.Aa.Px=a.write_review_url||"";this.Aa.Gt=a.add_to_my_ebooks_url||"";this.Aa.Wv=a.preview_ebook_url||"";this.Aa.kw=a.reviews_url||"";this.Aa.ik=a.view_order_url||"";this.Aa.qx=a.add_to_my_ebooks_url;this.Aa.bt=a.add_to_my_ebooks_url_is_on_play||!1;this.Aa.Dj=a.has_flowing_text||!1;this.Aa.Ej=a.has_scanned_text||!1;var b=cp(a.info_url);this.Aa.Fm=b;this.Aa.tx=a.canonical_atb_url|| "";this.Aa.Kl=a.is_rentable||!1;this.Aa.mg=a.is_pre_order||!1;this.Aa.Qp=a.on_sale_date||"";this.Aa.kg=a.is_pre_ordered||!1;this.Aa.zx=a.issue_volume_count||0;this.Aa.mi=a.is_volume_cancelled||!1;this.Aa.et=a.cancelled_reason||"0";switch(a.rental_state){case 1:this.Aa.Rj=1;break;case 2:this.Aa.Rj=2}this.Aa.gw=a.rental_end_utc||0}n(Lu,Eu);function Mu(a){this.g=[];this.nh(a.id);this.s=a.owner_uid;this.Jc=a.title;this.o=a.description;this.va=a.num_volumes;this.He=a.access||"0";this.Pa=a.can_modify_metadata;this.O=a.predefined;this.na=a.can_remove_volumes;this.j=a.can_add_volumes;this.ua=a.can_only_add_ebooks||!1;this.ma=new R(a.add_vol_base_url);this.oa=new R(a.del_vol_base_url);void 0!==a.paused&&(this.i=a.paused,this.N=a.pause_bookshelf_url);a.volumes&&(this.g=jb(a.volumes,function(b){return new Lu(b)}))}n(Mu,Fu);function Nu(){W.call(this);this.j=[];this.i=[]}u(Nu,W);function Ou(a){var b=new R(kf().location);b=new R(b);return a===parseInt(T(b,"as_coll"),10)}function Pu(a,b,c){Qu(a,b.getId())||(a=b.O?a.j:a.i,c?wb(a,void 0,0,b):a.push(b))}function Ru(a,b,c){var d=1==b.He;a=new R(a);S(a,"cl_title",b.lb());S(a,"cl_mode",d?"public":"private");b="cl_des="+encodeURIComponent(String(b.Zg()));Rk(a,c,"POST",b)} Nu.prototype.N=function(a){a=a.target;if(Zk(a)){a=new Mu(al(a));var b=Qu(this,a.getId());b.Jc=a.lb();b.o=a.Zg();b.He=a.He;b=new Ci("update",this);b.shelf=a;this.dispatchEvent(b)}};Nu.prototype.s=function(a,b){b=b.target;Zk(b)&&(b=new Mu(al(b)),Pu(this,b,a),a=new Ci("add",this),a.shelf=b,this.dispatchEvent(a))};function Su(a,b){a.o=new R(b);S(a.o,"jscmd","ClCreate")}function Qu(a,b){return mb(Tu(a),function(c){return c.getId()==b})}function Tu(a){return Bb(a.j,a.i)};function Uu(a,b){var c=C("A",{},"View order");pe(c,a);c.classList.add(b);return c};function Vu(a,b,c){yu.call(this,a,b,c);T(new R(this.data.Aa.ih),"dapp")}n(Vu,yu); Vu.prototype.render=function(a){rf(a);var b=C("DIV",this.g),c=C("DIV",this.g+"-meta");this.j(c);var d=C("DIV",this.data.Aa.li?this.g+"-footer":this.g+"-footer-nonebook"),e=C("DIV",this.g+"-footer-inner");if(this.data.Aa.li)if(this.data.mi()&&Ou(1))Wu(this,e);else if(this.data.Aa.mg&&!this.data.Xd()||this.data.kg()){var g=C("DIV",this.g+"-pre-order-date");g.textContent="Available on: "+this.data.Aa.Qp;e.appendChild(g);this.data.kg()&&Ou(1)&&Wu(this,e)}else if(this.data.Xd()&&Ou(1))Xu(this,e),Wu(this, e);else{Xu(this,e);g=!this.data.Xd()&&!this.data.Aa.Hj;var h=this.data.Aa.Hj&&!this.data.Aa.Fj;if(g||h){g=C("SPAN",{"class":this.g+"-footer-inner-right"});if(h=this.data.Aa.Wv||this.data.Aa.aq){for(var k=h.search(xj),l=0,m,p=[];0this.maxWidth&&K(a,this.maxWidth,"")}; Vu.prototype.j=function(a){if(!(this.data.Xd()||this.data.kg()||this.data.mi())&&this.data.Aa.ik&&Ou(1)){var b=C("IMG",{src:"/googlebooks/images/purchase_error.gif","class":this.g+"-error-icon"});b=C("DIV",this.g+"-card-error",b,"Credit card declined:");if(this.data.Aa.ik){var c=Uu(this.data.Aa.ik,"primary"),d=C("SPAN");d.innerText=" ";b.appendChild(d);b.appendChild(c)}a.appendChild(b)}yu.prototype.j.call(this,a);b=C("DIV",this.g+"-book-options");this.data.Aa.li?(this.data.Aa.Hj?this.data.Aa.Fj? Yu(this,b):Cu(this,b,"Read eBook",this.data.Aa.Gt,!this.data.Aa.bt,void 0,"unified-hovercard-free-btn"):this.data.kg()?(c=C("SPAN",this.g+"-pre-ordered","Pre-ordered"),b.appendChild(c)):this.data.mi()&&Ou(1)?(c=C("DIV",this.g+"-cancelled"),d=this.data.Aa.et,0==d?H(c,"Cancelled - by customer request"):1==d?H(c,"Cancelled - problem with eBook"):2==d?H(c,"Cancelled - price change"):3==d?H(c,"Cancelled - publisher cancellation"):H(c,"Cancelled"),b.appendChild(c)):this.data.Xd()||this.data.Aa.Fj?!this.data.Xd()&& this.data.Aa.Fj?Zu(this,b):this.data.Xd()&&Yu(this,b):Zu(this,b),Ou(7)&&(c=C("SPAN",this.g+"-offline-remove-options"),d=C("SPAN",{id:"unified-hovercard-remove-from-ebooks","class":this.g+"-fake-link"},"Remove from My eBooks"),d.id="hovercard-remove-from-my-ebooks",c.appendChild(d),b.appendChild(c))):(c=this.data.Aa.Wp,Vc(Du,this.data.Aa.Fq)&&!Ob(c)?Cu(this,b,"Preview",c,void 0,void 0,"unified-hovercard-preview-sample"):Cu(this,b,"Preview",c,!1,!0,"unified-hovercard-preview-sample"));a.appendChild(b)}; function Wu(a,b){var c=C("DIV",{id:"unified-hovercard-purchased-shelf-links","class":a.g+"-order-links-container"}),d=a.data.Aa.ik;d&&(d=Uu(d,""),c.appendChild(d));a.data.kg()||(d=C("DIV",{id:"unified-hovercard-delete-forever","class":a.g+"-footer-fake-link"},"Delete forever"),x(d,a.g+"-footer-action-link"),d.id="hovercard-delete-forever",c.appendChild(d));b.appendChild(c)} function Zu(a,b){a.data.Aa.mg&&!a.data.Xd()?Cu(a,b,"Pre-order eBook - "+a.data.Aa.jq,a.data.Aa.Zk,void 0,void 0,"unified-hovercard-buy-btn"):a.data.Kl()?Cu(a,b,"EBOOK FROM "+a.data.Aa.Bv,a.data.Aa.Zk,void 0,void 0,"unified-hovercard-buy-btn"):Cu(a,b,"Buy eBook - "+a.data.Aa.jq,a.data.Aa.Zk,void 0,void 0,"unified-hovercard-buy-btn")}function Yu(a,b){Cu(a,b,"Read now",a.data.Aa.aq,void 0,void 0,"unified-hovercard-read-now")} function Xu(a,b){var c=C("DIV",a.g+"-supported-devices"),d=a.g+"-device-type",e=a.g+"-device-supported",g=a.g+"-device-not-supported",h=C("SPAN",d,"Web"),k=C("SPAN",d,"Tablet / iPad"),l=C("SPAN",d,"eReader");d=C("SPAN",d,"Smartphone");var m=C("SPAN","goog-inline-block"),p=C("SPAN","goog-inline-block"),w=C("SPAN","goog-inline-block"),D=C("SPAN","goog-inline-block");a.data.Aa.Dj?(x(m,e),x(p,e),x(w,e),x(D,e)):(a.data.Aa.Ej?(x(m,e),x(p,e)):(x(m,g),x(p,g)),x(w,g),x(D,g));c.appendChild(m);c.appendChild(h); c.appendChild(p);c.appendChild(k);c.appendChild(w);c.appendChild(l);c.appendChild(D);c.appendChild(d);b.appendChild(c)};function $u(a,b,c){vu.call(this,a);this.Zb=Ul();this.j=this.Ba=this.s=null;this.Tb=b;this.i=null;this.Xb=!!c;this.render(b);av(this)}n($u,vu);$u.prototype.wa=function(){zu(this.i).Ha();G(this.ha())};$u.prototype.oi=function(a,b){vu.prototype.oi.call(this,a,b);this.isVisible()&&(this.Ul=this.Zb?new Tg(0,-2,0,0):new Tg(0,0,0,-2),this.isVisible()&&this.zg(),this.s=this.g,bv(this))}; $u.prototype.render=function(a){this.i&&(this.i.Ha(),this.j=this.Ba=null);this.i=new Vu(a,this.className,435,this.Xb);this.i.render(this.ha());av(this);this.isVisible()&&bv(this)}; function bv(a){var b=C("DIV"),c=C("DIV");var d=zh(a.s||null);var e=zh(a.ha());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=ah(e,d);h||(h=new Xg(d.left,0,d.width,0));d=a.Zb?e.left+e.width-h.left-(h.width/2+12):h.left-e.left+(h.width/2-12);e={x:0=a?"Expiring soon":48>=a?a+" hours":c+" days"):a="",this.o=C("SPAN",["bookcard-badge","bookcard-sample-label"],a),b.appendChild(this.o)):!this.s||this.i.Xd()||this.i.Aa.Hj||(this.o=C("SPAN",["bookcard-badge","bookcard-sample-label"], "Sample"),b.appendChild(this.o));Ti(b,"mouseover",this.na.bind(this,b))};cv.prototype.oa=function(){this.dispatchEvent("render");dv.dispatchEvent("complete");this.o&&yh(this.o,L(this.j).width)};cv.prototype.na=function(a,b){(new $u(a,this.i)).Te(b)};function ev(a,b,c){cv.call(this,a,b-40,c);this.N=C("DIV","slider-annotation");this.O=!1}n(ev,cv);ev.prototype.Uc=function(a){Ti(this,"render",r(this.ua,this));cv.prototype.Uc.call(this,a);a.appendChild(this.N)};ev.prototype.ua=function(a){this.O||(a.stopPropagation(),a=this.ma(),this.N.appendChild(a),this.O=!0,this.dispatchEvent("render"))};function fv(a,b,c){ev.call(this,a,b,c)}n(fv,ev);fv.prototype.Uc=function(a){ev.prototype.Uc.call(this,a)};fv.prototype.ma=function(){var a=this.i,b=F("DIV"),c=C("A",{className:"slider-annotation-title"},of(a.lb()));pe(c,a.Aa.ih);b.appendChild(c);if(a=a.Aa.Vk)a=C("DIV","slider-annotation-author",of(a)),b.appendChild(a);K(b,L(this.j).width+5,"");return b};function gv(){this.g=hv;this.ug=5E3}var iv=0;gv.prototype.send=function(a,b,c,d){a=a?$c(a):{};d=d||"_"+(iv++).toString(36)+Date.now().toString(36);var e="_callbacks___"+d;b&&(q[e]=jv(d,b),a.callback=e);b={timeout:this.ug,ht:!0};e=qd.exec(pd(this.g).toString());var g=e[3]||"";e=rd(e[1]+sd("?",e[2]||"",a)+sd("#",g));b=uo(e,b);po(b,null,kv(d,a,c));return{Bb:d,wo:b}};gv.prototype.cancel=function(a){a&&(a.wo&&a.wo.cancel(),a.Bb&&lv(a.Bb,!1))};function kv(a,b,c){return function(){lv(a,!1);c&&c(b)}} function jv(a,b){return function(c){lv(a,!0);b.apply(void 0,arguments)}}function lv(a,b){a="_callbacks___"+a;if(q[a])if(b)try{delete q[a]}catch(c){q[a]=void 0}else q[a]=Oc};function mv(a,b,c){Q.call(this);this.ma=a;this.na=c;this.j=b;O(b,["hilite","select","canceldismiss","dismiss"],this.handleEvent,!1,this);this.N=null;this.i=[];this.o=-1;this.g=0;this.s=this.O=null;this.va={}}u(mv,Q);f=mv.prototype;f.yk=!0;f.Tk=!1;f.Bd=function(){return this.j}; f.handleEvent=function(a){var b=this.ma;if(a.target==this.j)switch(a.type){case "hilite":this.Ue(a.Nf);break;case "select":var c=!1;if("number"===typeof a.Nf){a=a.Nf;var d=this.i[nv(this,a)];c=!!d&&b.Ll&&b.Ll(d);d&&!c&&this.o!=a&&this.Ue(a)}c||this.og();break;case "canceldismiss":ov(this);break;case "dismiss":pv(this)}};f.yi=function(a){this.N!=a&&(this.N=a,this.ma.fq(this.N,10,r(this.qv,this)),ov(this))};f.xd=function(){return this.j.isVisible()}; function qv(a){for(var b=a.g+a.i.length-1,c=a.o,d=0;d=a.g&&cb||b>=a.i.length?-1:b}f.update=function(a){this.na.update(a)};function sv(a){var b=0,c=0;uv(a)&&(b=a.selectionStart,c=-1);return[b,c]}function uv(a){try{return"number"==typeof a.selectionStart}catch(b){return!1}};function vv(a,b,c,d){zi.call(this);d=d||150;this.j=null!=c?c:!0;this.s=a||",;";this.ua=this.s.charAt(0);a=this.j?"[\\s"+this.s+"]+":"[\\s]+";this.na=new RegExp("^"+a+"|"+a+"$","g");this.oa=new RegExp("\\s*["+this.s+"]$");this.O=b||"";this.va=this.j;this.Ya=0b.g)c--;else{b.Tk&&c==b.g&&b.Ue(-1);break}if(b.Ue(c))break a}a.preventDefault();return!0}break;case 9:if(!this.g.xd()||a.shiftKey)this.g.Me();else if(this.update(),this.g.og()&&this.va)return a.preventDefault(),!0;break;case 13:if(this.g.xd()){if(this.update(),this.g.og())return a.preventDefault(), a.stopPropagation(),!0}else this.g.Me();break;case 27:if(this.g.xd())return this.g.Me(),a.preventDefault(),a.stopPropagation(),!0;break;case 229:if(!this.Qf)return this.Qf||(this.i.ka(this.Mb,"keyup",this.Mp),this.i.ka(this.Mb,"keypress",this.Lp),this.Qf=!0),!0}return yv(this,a)};function yv(a,b){var c=a.j&&b.charCode&&-1!=a.s.indexOf(String.fromCharCode(b.charCode));c&&a.update();return c&&a.g.og()?(b.preventDefault(),!0):!1}f.nu=function(){return!1};f.Zm=function(a){xv(this,a.target||null)}; function xv(a,b){ij(a.N);a.g&&ov(a.g);b!=a.Mb&&(a.Mb=b,a.Ya&&(a.Ya.start(),a.i.ka(a.Ya,"tick",a.bn)),a.Rl=a.Cb(),a.o.attach(a.Mb),a.i.ka(a.o,"key",a.an),a.i.ka(a.Mb,"mousedown",a.Np),z&&a.i.ka(a.Mb,"keypress",a.Kp))}f.kr=function(){this.Mb&&(this.i.Xa(this.o,"key",this.an),$q(this.o),this.i.Xa(this.Mb,"keyup",this.nu),this.i.Xa(this.Mb,"mousedown",this.Np),z&&this.i.Xa(this.Mb,"keypress",this.Kp),this.Qf&&zv(this),this.Mb=null,this.Ya&&(this.Ya.stop(),this.i.Xa(this.Ya,"tick",this.bn)),this.g&&pv(this.g))}; f.bn=function(){this.update()};f.Kv=function(a){this.Zm(a)};f.an=function(a){this.ma=a.keyCode;this.g&&this.Vc(a)};f.Lp=function(){this.Qf&&229!=this.ma&&zv(this)};f.Mp=function(a){this.Qf&&(13==a.keyCode||77==a.keyCode&&a.ctrlKey)&&zv(this)};f.Np=function(){};function zv(a){a.Qf&&(a.Qf=!1,a.i.Xa(a.Mb,"keypress",a.Lp),a.i.Xa(a.Mb,"keyup",a.Mp))}f.Kp=function(a){yv(this,a)}; f.update=function(a){if(this.Mb&&(a||this.Cb()!=this.Rl)){if(a||!this.im){a=sv(this.Mb)[0];var b=this.Cb();a=tv(this,b)[rv(this,b,a)];a=this.na?String(a).replace(this.na,""):a;this.g&&(this.g.O=this.Mb,this.g.yi(a,this.Cb()))}this.Rl=this.Cb()}this.im=!1};function rv(a,b,c){a=tv(a,b);if(c==b.length)return a.length-1;for(var d=b=0,e=0;dd;d++)e=2*d,b.nodeValue=c[e],g=Of(a.g,"B"),g.className=a.Ka,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.Ba=!0}else d&&Fv(a,b,d)}}else for(b=b.firstChild;b;)d=b.nextSibling,Fv(a,b,c),b=d}function Gv(a){var b="";if(!a)return b;Array.isArray(a)&&(a=a.filter(function(c){return!Ob(Pe(c))}));Array.isArray(a)?b=0Ya()-this.va)&&this.dispatchEvent({type:"hilite",Nf:this.i[a].id})};function Iv(a,b,c,d){this.ua=a;this.oa=null;this.Ka=c||null;this.Ca="boolean"===typeof b?b:!0;this.Ba=d||0;b=new Jv;c=new Kv(this.Ka||a,this.Ba);c.ua=!0;d=new vv(null,null,!1);mv.call(this,b,c,d);d.g=this;d.jr(a);this.O=a;this.yk=!1;this.Tk=!0;O(this,"update",r(this.Ja,this))}u(Iv,mv);Iv.prototype.og=function(){this.La=this.ua.value;Iv.ta.og.call(this);return!1}; Iv.prototype.Ja=function(a){a.Nf&&(a=this.ua.form,this.oa||(this.oa=C("INPUT",{type:"hidden",name:"oq"}),a.appendChild(this.oa)),this.oa.value=this.La,this.Ca&&a.submit())};function Jv(){}var hv=rd(jd(kd("//suggestqueries.google.com/complete/search")));Jv.prototype.fq=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 gv;this.i.send(a,c)};Jv.prototype.g=function(a,b){var c=Array.prototype.map.call(b[1],function(d){return d[0]});a(b[0],c)}; function Kv(a,b){Av.call(this);this.Ja=a;this.La=b||0}u(Kv,Av);Kv.prototype.zk=function(){Kv.ta.zk.call(this);var a=0,b=B("gbfwa");b||(b=af("gbqfwa"));b&&(a=b.offsetTop+b.offsetHeight-1);Array.prototype.forEach.call(Ye("div","ac-renderer"),function(c){a&&J(c,"top",a+"px");J(c,"width",L(this.Ja).width-2+"px");J(c,"left",parseInt(c.style.left,10)+this.La+"px")},this)};function Lv(a,b,c,d,e){W.call(this);this.O=a;this.N=b;this.ua=e;this.Eb="number"===typeof d?d:this.N?200:80;this.N||x(this.O,"slider-small");this.ma=[];this.j=F("A");this.j.textContent=Ul()?"\u203a":"\u2039";this.j.setAttribute("title","Scroll left");Eh(this.j,!0);this.O.appendChild(this.j);this.i=F("div");x(this.i,"slider-drawables");this.O.appendChild(this.i);this.s=F("A");this.s.textContent=Ul()?"\u2039":"\u203a";this.s.setAttribute("title","Scroll right");Eh(this.s,!0);this.O.appendChild(this.s); this.g.ka(this.j,"click",this.Yl.bind(this,-.75));this.g.ka(this.s,"click",this.Yl.bind(this,.75));this.Ii();this.g.ka(this.j,"click",this.Yl.bind(this,-.75));this.resize();this.oa=0;this.na=8=a.ma.length&&a.dispatchEvent("render")}f=Lv.prototype; f.xt=function(a){var b=C("DIV",{"class":"goog-inline-block slider-loading"});this.i.appendChild(b);var c=C("DIV",{"class":"goog-inline-block slider-drawable"});M(c,!1);this.i.appendChild(c);this.g.Hf(a,"render",this.zt.bind(this,b,c));a.Uc(c)};f.zt=function(a,b){G(a);this.Ii();M(b,!0)};function Mv(a,b){b=b.map(function(c){return this.N?new fv(c,this.Eb):new cv(c,this.Eb,this.ua)},a);Pv(a,b)}function Pv(a,b){vb(a.ma,b);Nv(a)} f.Yl=function(a){(Ul()?0>a:0=this.i.scrollWidth-L(this.i).width;this.j.className=a?"slider-button slider-button-left slider-button-disabled":"slider-button slider-button-left";this.s.className=b?"slider-button slider-button-right slider-button-disabled":"slider-button slider-button-right"};f.resize=function(){this.Ii()}; function Ov(a){var b=a.N?110:50;return Math.ceil(L(a.i).width/b)};function Qv(a,b,c){W.call(this);this.i=a;this.source=b?b:"gbs_bookshelf_slider";this.ma=0;this.s=new kj;this.ua=this.s.Fa();this.oa="";this.va="boolean"===typeof c?!c:!1;Ti(this.s,"resize",r(this.jn,this))}n(Qv,W);f=Qv.prototype;f.jn=function(){this.s.Fa().width>this.ua.width?this.Rh():Ti(this.s,"resize",r(this.jn,this))};f.render=function(a){this.N=a;this.j=this.zl(a);this.g.ka(this.j,"render",r(this.Rh,this))};f.zl=function(){return new Lv(this.N,!0,void 0,void 0,this.i.getId())}; f.Rh=function(){this.j.resize();var a=Math.ceil(1.25*Ov(this.j))+1,b=this.yf(this.ma,a);b&&(this.ma+=a,Rk(b,r(this.Ou,this)))};f.Xg=ba(9);f.Ou=function(a){a=a.target;if(Zk(a)){if((a=(new Mu(al(a))).g)&&a.length){var b=cp(a[a.length-1].Aa.ih);this.oa!=b&&(this.oa=b,Pv(this.j,Rv(this,a)));(a=Lf(this.ha()))&&Ah(a,1)}else 0==this.j.oa&&this.eq();this.dispatchEvent("success")}}; function Rv(a,b){return a.hl(b).map(function(c){return this.j.N?new fv(c,200,this.i.getId()):new cv(c,80,this.i.getId())},a)}f.eq=function(){};f.ha=function(){return this.N};f.hl=function(a){return this.source?a.map(function(b){b.Aa.source=this.source;return b},this):a};function Sv(a,b,c){this.j=a;this.g=b;this.o=c||!1;a=this.Fa();this.i()?a.height=120:a.height=65;this.nb(a)}n(Sv,Hl);Sv.prototype.i=function(){var a=B("gb-mobile-menu-pubinfo");return a?0=d||1==Math.abs(c-d)?d="Some pages are omitted from this book preview.":bw(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 aw(a){a=a.lb();var b;/[^0-9]/.test(a)||Ob(a)?b=null:b=Nb(a,"B")?ft(a,it):ft(a,ht);return b} function bw(a,b){a=aw(a);b=aw(b);return 0==a+1-(b-1)};function cw(a,b){W.call(this);this.s=a;this.N=b;this.o=b.j;this.j=b.g;this.i=F("DIV");this.i.className="separator-container";this.s.appendChild(this.i);a=F("TABLE");a.className="separator-outer-table";this.i.appendChild(a);var c=a.insertRow(-1).insertCell(-1);c.align="center";var d=F("DIV");d.className="separator-background";c.appendChild(d);c=F("TABLE");c.className="separator-inner-table";d.appendChild(c);c.align="center";if(b.i()){var e=B("gb-mobile-menu-pubinfo");if(e){b=Xe("IMG",e);if(1==b.length){b= b[0].cloneNode(!0);var g=c.insertRow(-1).insertCell(-1);uf(g,b,0);x(g,"separator-message");x(g,"separator-pubinfo-message")}b=$v(this.o,this.j);e=If(e);c=c.insertRow(-1).insertCell(-1);g=F("SPAN");g.className="separator-text";c.appendChild(g);var h=this.N;h.i&&h.o?N(g,mi(e)):N(g,mi(b+""+e));x(c,"separator-message");x(c,"separator-pubinfo-message")}x(a,"separator-pubinfo");x(d,"separator-pubinfo")}else a=c.insertRow(-1).insertCell(-1),x(a,"separator-message"),a.textContent=$v(this.o,this.j);Eh(this.i, !0);V(this.i)}n(cw,lm);cw.prototype.nb=function(a){K(this.i,a)};cw.prototype.setPosition=function(a){jh(this.i,a)};cw.prototype.Na=function(){G(this.i)};function dw(a){var b=this;W.call(this);this.s=a;this.j=a.o;this.nb(Ih(this.j));this.Ib=new A(0,0);this.O=null;this.na=new am(function(){M(b.O,!1)},600);Ai(this,this.na)}u(dw,W);f=dw.prototype;f.nb=function(a){if(!this.i||!Be(this.i,a)){this.i=a;var b=this.s;b.ma=a;ew(b);this.dispatchEvent("resize")}};f.ad=function(a){this.zc=a;this.N.Na();var b=this.s,c=this.Fa();b.ma=c;ew(b);b=this.s;a=new Ae(a.Db(),a.Fb());b.oa=a;b.s=!0;K(b.i,a);U(b.na,0,b);ew(b);this.dispatchEvent("layoutchange")}; function fw(a,b){a.N=b}f.xl=function(){return this.N};f.Lb=function(){return this.zc};f.mc=function(){var a=this.zc.Qd();this.oa&&(a=this.oa.vl(a));Kp(this.N,a);this.dispatchEvent("update")};function gw(a,b){a.oa=b} f.hd=function(a){var b=this.Ib.x,c=this.Ib.y;"number"===typeof a.x&&(a.x=we(a.x,0,Math.max(this.zc.Db()-this.i.width,0)));"number"===typeof a.y&&(a.y=we(a.y,0,Math.max(this.zc.Fb()-this.i.height,0)));"number"===typeof a.x&&(b=a.x);"number"===typeof a.y&&(1c.width||Math.abs(b.y-a.y)>c.height?this.Kd(a):(this.o&&(this.o.Ha(),this.o=null),this.o=new hm([b.x,b.y],[a.x,a.y],250+250*we(ye(b,a)/800,0,1),km),O(this.o,"animate",r(this.mn,this)),O(this.o,"end",r(this.mr,this)),this.dispatchEvent("movestart"),Ti(this,"movestart",r(this.o.Ha,this.o)),this.o.play())};f.mn=function(a){a=a.coords.map(Math.round);this.hd(new A(a[0],a[1]))};f.mr=function(a){this.mn(a);this.dispatchEvent("moveend")}; f.Hb=function(){return this.j};f.Se=ba(10);f.Pc=function(){return new A(Math.round(this.Ib.x+this.i.width/2),Math.round(this.Ib.y+this.i.height/2))};f.Xe=function(a){return new A(Math.round(a.x+this.i.width/2*-1),Math.round(a.y+this.i.height/2*-1))};f.wa=function(){dw.ta.wa.call(this);this.N.Na()};f.ql=function(a){null==this.O&&(this.O=a);this.O.style.opacity=0;this.na.start()};f.Dt=function(){var a=this;this.na.stop();M(this.O,!0);U(function(){a.O.style.opacity=1})};f.ln=1;function jw(a,b){dw.call(this,b);this.wb=a;this.g.ka(a,"pagechange",this.Ud);this.g.ka(this.wb,"searchupdate",this.El);if(a=B("subscription-bar"))this.g.ka(this,"scrolldown",t(this.ql,a)),this.g.ka(this,"scrollup",t(this.Dt,a))}u(jw,dw);f=jw.prototype;f.Rd=function(){var a=this.zc.Qd(),b=[];this.oa&&(a=this.oa.zi(a)[0]||[]);v(a,function(c){c instanceof Sl&&b.push(c.Ga())});return b};f.xg=function(a){this.rg(!1,!1);this.kf(this.Tg(a))}; f.jf=function(a){var b=[];"fixed_width"==this.Lb().hg()&&b.push(this.Fa().width);this.le&&(a=Mp(this.le(),this.Lb().s(),a,b))&&this.xg(a)};f.Pe=function(){this.rg(!0,!1);var a=this.Fa().width;this.kf(this.Tg(a))};f.Ff=ba(11);f.rg=function(a,b){this.Vg=a;this.rj=b};f.resize=function(){if(this.Vg)this.Pe();else{var a=this.Lb().s();a&&this.xg(a)}};f.kf=function(a){var b=this.Lb();this.ad(a);b&&(a=qm(new pm(b,a),this.Pc()),(a=this.Xe(a))&&this.Kd(a))};f.Ud=function(){this.ki||this.Td(this.wb.Ga())}; f.Td=function(a){this.zc.Dc&&(a=this.zc.Dc(a))&&this.hd(new A(Math.round(a.je()),Math.round(a.vd())))};f.El=function(){kw&&(this.xl().Na(),this.va&&this.va(),this.mc())};var kw=!0;function lw(a,b){this.Ea=a;this.g=b}n(lw,mp);lw.prototype.render=function(a){var b=this.g(),c=a.Ga(),d=eb(this.Ea.le().Rf)/a.Fa().width,e=a.Fa();b.Mj=e.width;b.lh=e.height;e=a.Fa().clone();e.width*=d;e.height*=d;b.Xu=e.width;b.Uu=e.height;b.setPosition(a.je(),a.vd());b.vb(c);b.Uc();return b};function mw(){};function nw(a){this.Ea=a}u(nw,mw);nw.prototype.vl=function(a){var b=this.zi(a);a=b[0]||[];b=b[1]||[];b.sort(t(ow,this.Ea.Pc()));var c=[];vb(c,a,b);return c};function ow(a,b,c){return Wg(Yg(Il(b)),a)-Wg(Yg(Il(c)),a)}nw.prototype.zi=function(a){var b=hw(this.Ea),c=new Xg(b.left-800,b.top-800,b.width+1600,b.height+1600);return Ab(a,function(d){d=Il(d);if(ah(c,d))return ah(b,d)?0:1})};function pw(a,b){this.Ea=b;this.V=a}n(pw,nw);pw.prototype.vl=function(a){var b=nw.prototype.vl.call(this,a),c=this.V.Ga();if(c){var d=[],e=this.V.rb();v([1,-1],function(){var g=fo(e,c.Qa(),1);g&&d.push(g)});v(a,function(g){g.Ga&&ob(d,g.Ga())&&pb(b,g)})}return b};function qw(){W.call(this)}u(qw,W);qw.prototype.Ce=function(a){this.i=a;this.o=rw(a)};qw.prototype.wa=function(){qw.ta.wa.call(this);G(this.o)};function sw(a){W.call(this);this.ma=a;this.O=[]}u(sw,qw);f=sw.prototype;f.Ce=function(a){sw.ta.Ce.call(this,a);this.Bh();this.Ga()&&this.g.ka(this.Ga(),"update",this.Bh)};f.Ga=function(){return this.i.Ga()};f.Ah=function(a,b,c,d){var e=F("div");V(e,!0);this.o.appendChild(e);a=tw(this,a,b,c,d);J(e,{position:"absolute",left:a[0]+"px",top:a[1]+"px",width:a[2]+"px",height:a[3]+"px"});this.ma&&(J(e,{backgroundColor:this.ma}),Ah(e,.3));this.O.push(new Xg(a[0],a[1],a[2],a[3]));return e}; function uw(a){return a.i.Fa().width/a.i.Ga().getParent().g.width}function tw(a,b,c,d,e){var g=uw(a);return jb([b,c,d,e],function(h){return Math.round(h*g)})}function vw(a,b){v(b,function(c){this.Ah.apply(this,c)},a)}f.Do=function(a){return this.Ah(a.left,a.top,a.width,a.height)};f.Gg=function(){rf(this.o);this.O=[]};f.Bh=function(){};function ww(){sw.call(this)}n(ww,sw);f=ww.prototype;f.Bh=function(){if(!this.j){var a=this.Ga();a&&(a=Cp(a))&&(vw(this,a),this.j=!0)}}; f.Ah=function(a,b,c,d){this.s=sw.prototype.Ah.call(this,a,b,c,d);J(this.s,{border:"2px #aaaaff dashed"});this.N=F("IMG");this.s.appendChild(this.N);this.N.src="/googlebooks/images/dialog_close_x.gif";a=tw(this,a,b,c,d);J(this.N,{position:"absolute",cursor:"pointer",left:a[2]-19+"px",top:"4px",display:"none"});O(this.s,"mouseout",r(this.nr,this));O(this.s,"mouseover",r(this.qp,this,!0));Ti(this.N,"click",r(this.Na,this));return this.s};f.Na=function(){G(this.s)}; f.nr=function(a){Bf(this.s,a.target)||this.qp(!1)};f.qp=function(a){J(this.N,{display:a?"":"none"})};function xw(a){sw.call(this);this.V=a}n(xw,sw);xw.prototype.Bh=function(){if(!this.j){var a=this.Ga();a&&(a=Bp(a))&&(v(a,function(b){var c=b.pop(),d=b.pop();b=this.Ah.apply(this,b);J(b,{cursor:"pointer"});this.g.ka(b,"click",r(this.s,this,d,c))},this),this.j=!0)}};xw.prototype.s=function(a,b){(a=go(this.V.rb(),a))?this.V.vb(a):Ro(this.V,b)};function yw(a,b){this.o=a;this.g=b}yw.prototype.Ga=function(){return this.o};yw.prototype.i=function(){return this.o.Cd(this.g)};function zw(a,b,c){yw.call(this,a,b);this.j=c}n(zw,yw);zw.prototype.i=function(){return this.j.width>this.g.width?this.o.Cd(this.j):yw.prototype.i.call(this)};function Aw(a,b,c,d,e){W.call(this);this.oh(a.Ia());this.V=a;this.i=c;this.na=[];this.nn=d;K(d,c);this.ua=rw(this);J(this.ua,"backgroundColor","#fff");K(this.ua,c);if(this.Ba=void 0!==e?e:!0)a=rw(this),K(a,c),this.va=new Bw(a),this.va.show();b&&(this.o=b,this.g.ka(b,"update",this.Hg),To(b))}u(Aw,W);f=Aw.prototype;f.Fa=function(){return this.i};f.Ga=function(){return this.o};function Cw(a,b){a.na.push(b);b.Ce(a)}f.Hg=function(){};function Dw(a){a.dispatchEvent("load");a.Ba&&a.va.mb()} function rw(a){var b=F("div");V(b,!0);J(b,{position:"absolute",left:0,top:0});a.nn.appendChild(b);return b}f.Na=function(){v(this.na,function(a){a.Ha()});this.na=null;this.s&&G(this.s)};function Ew(a){a.N=rw(a);K(a.N,a.Fa());J(a.N,{backgroundImage:"url(//www.google.com/images/cleardot.gif)",backgroundRepeat:"repeat"});a.g.ka(a.N,"mousedown",a.pr);a.g.ka(a.N,"dragstart",Di)}f.pr=function(a){a.display=this;Fw.dispatchEvent(a)};var Fw=new Q; function Bw(a){this.g=a;a={position:"absolute",left:0,color:"#808080",fontSize:"13px",backgroundColor:"white"};for(var b=0;2>b;b++){var c=F("div");V(c);J(c,a);this.g.appendChild(c);c.textContent="Loading...";a.bottom=0}}Bw.prototype.show=function(a){J(this.g,{display:a?"none":""})};Bw.prototype.mb=function(){this.show(!0)};Aw.prototype.sm=function(){Gw(this)};function Gw(a,b){a.s&&G(a.s);a.s=rw(a);new Hw(a.s,a.Fa(),b)} function Hw(a,b,c){this.g=a;J(a,{backgroundColor:"#FFF",textAlign:"center"});K(a,b);N(a,ql(c||""));V(this.g)};function Iw(a,b,c){Aw.call(this,a,b.Ga(),b.g,c);this.oh(Jw);a=rw(this);this.ma=new Kw(b.g,a);a=rw(this);this.O=new Kw(b.g,a);Ew(this);Eh(c,!0);x(c,"pageImageDisplay");this.oa=b;b.Ga()&&this.Hg()}n(Iw,Aw);f=Iw.prototype;f.vb=function(a){vp(a,"output",null);Aw.prototype.vb.call(this,a);a.Cd()&&this.Hg()}; f.Hg=function(){var a=this.Ga(),b=this.oa.i();if(b&&!this.j){b=Lw(b);Ti(this.ma,"load",r(this.qr,this,a,b,this.Fa().width));Mw(this.ma,[b]);var c=Mo(this.V.Zb,a.Qa());c.push(b);Mw(this.O,c);this.j=!0;a==this.V.Ga()&&this.dispatchEvent("fetch")}yp(a,[16,8])&&(a=Ce('%s',ap("/googlebooks/restricted_logo.gif"),"You have either reached a page that is unavailable for viewing or reached your viewing limit for this book."),Gw(this, a),Dw(this))};f.qr=function(a,b,c){a==this.V.Ga()&&this.dispatchEvent("loaded");this.O.empty();var d=this.V.Zb;a=a.Qa();d.g[a]=d.g[a]||{};d.g[a][c]=b;Dw(this)};f.tc=ba(14);f.Na=function(){this.j=!1;this.ma.empty();this.O.empty();Aw.prototype.Na.call(this)};var Jw=new Q,Lw=Pc;function Kw(a,b){Q.call(this);this.i=a;this.j=b;this.If=!1;this.g=F("IMG");this.g.width=this.i.width;this.j.appendChild(this.g);V(this.j)}n(Kw,Q);Kw.prototype.empty=function(){for(var a;a=xf(this.j);)jp(a)}; function Mw(a,b){fp(a.g,r(a.o,a,a.g));for(var c=0;cMath.abs(e[0])&&(d.x=e[1]||d.x,d.y=e[2]||d.y)});this.O||(this.O=new Kk(100),this.g.ka(this.O,"tick",this.ur));this.ma=d;d.x||d.y?this.O.start():this.O.stop()}}};f.ur=function(){var a=this.ma,b=this.Ea;iw(b,new A(15*a.x,15*a.y),r(b.Kd,b))}; f.At=function(){aj(this.N);yi(this.O);this.O=null};function Yw(){this.s="Selection copied to clipboard";this.g=!1;var a=C("DIV","entity-page-snackbar"),b=C("SPAN","entity-page-snackbar-text");H(b,this.s);a.appendChild(b);X(a,"hidden",!0);document.body.appendChild(a);this.o=a}Yw.prototype.show=function(){this.g?(this.i(),U(r(this.j,this),500)):this.j();U(r(this.i,this),6E3)};Yw.prototype.j=function(){J(this.o,"bottom","0");this.g=!0};Yw.prototype.i=function(){J(this.o,"bottom","-48px");this.g=!1};function Zw(a){this.i=a;this.o=new Yw;this.j=$w(this)}Zw.prototype.ha=function(){return this.j}; function $w(a){var b=C("DIV");Ib(b,["entity-page-copy-button","entity-page-action-chip"]);var c=C("IMG");x(c,"entity-page-action-chip-icon");c.src="https://www.gstatic.com/images/icons/material/system/1x/content_copy_googblue_18dp.png";var d=C("SPAN");x(d,"entity-page-action-chip-label");H(d,"Copy");b.appendChild(c);b.appendChild(d);O(b,"click",r(a.g,a));um(b,"button");Hf(b,!0);O(b,"keydown",function(e){32!=e.keyCode&&13!=e.keyCode||a.g.call(a)});return b} Zw.prototype.g=function(){this.i.focus();this.i.select();document.execCommand("copy");this.o.show()};function ax(a){cs.call(this,a);gn(this);this.no=!1;this.g=new dj;this.i=qp();x(a,"viewport-selection-popup");bx&&bx.Ha();bx=this}n(ax,cs);ax.prototype.j=function(){this.dispatchEvent("close");this.Ha()}; function cx(a,b,c){var d=a.ha(),e=F("div");x(e,"selection-popup-select-container");d.appendChild(e);d=F("div");x(d,"selection-popup-select-label");e.appendChild(d);d.appendChild(of(b));e.appendChild(F("div"));b=F("input");b.value=c;x(b,"viewport-input");e.appendChild(b);Eh(b,!1);a.i&&(c=(new Zw(b)).ha(),e.appendChild(c));a.g.ka(b,"mousedown",dx)}function dx(a){a.stopPropagation()}ax.prototype.wa=function(){G(this.ha());cs.prototype.wa.call(this);this.g.Ha()};var bx=null;function ex(a,b){this.g=a instanceof A?a:new A(a,b)}u(ex,Vr);ex.prototype.Tc=function(a,b,c,d){var e=Ve(a);var g=e.body;e=e.documentElement;e=new A(g.scrollLeft||e.scrollLeft,g.scrollTop||e.scrollTop);g=this.g.x+e.x;e=this.g.y+e.y;var h=Xr(a);g-=h.x;e-=h.y;Zr(new A(g,e),a,b,c,null,null,d)};function fx(a,b){ex.call(this,a,b)}u(fx,ex);fx.prototype.i=0;fx.prototype.o=function(a){this.i=a};fx.prototype.Tc=function(a,b,c,d){var e=mh(a);e=ph(e);var g=jf(Te(a).g);g=new A(this.g.x+g.scrollLeft,this.g.y+g.scrollTop);var h=b,k=Zr(g,a,h,c,e,10,d);if(0!=(k&496)){if(k&16||k&32)h^=4;if(k&64||k&128)h^=1;k=Zr(g,a,h,c,e,10,d);0!=(k&496)&&Zr(g,a,b,c,e,this.i,d)}};function gx(a){sw.call(this,"#4a95d6");this.j=a}n(gx,sw);gx.prototype.Ce=function(a){sw.prototype.Ce.call(this,a);J(this.o,{cursor:"pointer"});this.g.ka(this.o,"mousedown",hx)};function hx(a){a.stopPropagation()} function Vw(a,b,c,d){a.Gg();jb(b,r(a.Do,a));a.N&&aj(a.N);a.s&&a.s.Ha();b=F("div");document.body.appendChild(b);var e=Rw(a.O);if(e){var g=qh(a.o);b=new ax(b);if(c&&d){var h=a.Ga(),k=h.Cd();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.Ec());S(m,"ci",d);S(m,"source","bookclip");m=Ce('',m.toString(),l)}d=m;rf(b.ha());m=b.ha();h=F("IMG");h.src="/googlebooks/images/material/close_black_24dp.png";x(h, "selection-popup-close");m.appendChild(h);b.g.Hf(h,"click",r(b.j,b));h=C("DIV",{},"Share this clip");x(h,"selection-popup-title");m.appendChild(h);c&&(cx(b,"Selection text",c),m=F("DIV"),x(m,"selection-popup-translate-container"),b.ha().appendChild(m),h=new R("https://translate.google.com/translate_t"),S(h,"text",c),S(h,"sl","auto"),S(h,"tl","auto"),c=F("A"),c.href=h.toString(),c.target="_blank",b.i&&(h=C("IMG"),Ib(h,["selection-popup-translate-icon","entity-page-action-chip-icon"]),h.src="https://www.gstatic.com/images/icons/material/system/1x/translate_googblue_18dp.png", c.appendChild(h)),h=C("SPAN"),H(h,"Translate"),x(h,"entity-page-action-chip-label"),c.appendChild(h),h=F("SPAN"),H(h,"\u00bb"),x(h,"selection-popup-translate-arrow"),c.appendChild(h),x(c,"selection-popup-translate-link"),x(c,"entity-page-action-chip"),m.appendChild(c));l&&cx(b,"Image",l);d&&cx(b,"Embed",d)}else c=F("DIV"),H(c,"Loading..."),x(c,"selection-popup-loading-msg"),b.ha().appendChild(c);ds(b);a.s=b;c=g.x+e.left+e.width;e=g.y+e.top+e.height;g=L(b.ha()).width;24>c-g&&(c=g+24);U(t(ix,b,new fx(new A(c, e))));a.N=Ti(b,"close",r(a.Gg,a))}}function ix(a,b){a.Nd||(a.setPosition(b),a.Da(!0))}gx.prototype.Gg=function(){sw.prototype.Gg.call(this);this.s&&this.s.Ha()};gx.prototype.wa=function(){sw.prototype.wa.call(this);this.s&&this.s.Ha();this.N&&aj(this.N)};function jx(a,b,c){return a.Za().xj()?new Nw(a,b,c):new Iw(a,b,c)}function kx(a,b){if(b instanceof Iw){Cw(b,new Ow(a.ub()));Cw(b,new ww);var c=new gx(a.Hb()),d=new Ww(c,a.Ia());Cw(b,d);Cw(b,c);Cw(b,new xw(a))}};function lx(a,b,c){W.call(this);this.V=a;this.Ea=b;this.j=F("div");V(this.j,!0);J(this.j,{position:"absolute",display:"none"});c.appendChild(this.j);this.s=F("div");V(this.s,!0);J(this.s,{position:"absolute"});this.j.appendChild(this.s);this.N=F("div");V(this.N,!0);this.j.appendChild(this.N);this.O=F("div");V(this.O,!0);this.N.appendChild(this.O);this.mb()}u(lx,lm);f=lx.prototype; f.Uc=function(){var a=this.Mj-2,b=this.lh-2,c=this.Xu-2,d=this.Uu-2;J(this.N,{backgroundColor:"#cccccc",position:"absolute"});jh(this.N,0,0);K(this.N,this.Mj,this.lh);J(this.O,{overflow:"hidden",backgroundColor:"#fcfcfc",position:"absolute"});jh(this.O,1,1);K(this.O,a,b);this.show();var e=this.V;a=jx(e,new zw(this.Ga(),new Ae(a,b),new Ae(c,d)),this.O);a instanceof Iw?kx(e,a):a instanceof Nw&&a instanceof Nw&&Cw(a,new Ow(e.ub()));this.i=a};f.mb=function(){M(this.j,!1)};f.show=function(){M(this.j,!0)}; f.tc=ba(12);f.Na=function(){this.i&&this.i.Na();G(this.j)};f.setPosition=function(a,b){jh(this.j,a,b)};f.vd=function(){return lh(this.j).x};f.je=function(){return lh(this.j).y};f.vb=function(a){this.o=a};f.Ga=function(){return this.o};f.Fb=function(){return this.lh};f.Db=function(){return this.Mj};function mx(a){return a+2}f.Fa=function(){return new Ae(this.Mj,this.lh)};function nx(a){W.call(this);rf(a);V(a);this.o=a;this.i=F("div");V(this.i,!0);Ul()&&(cf(a,{dir:"ltr"}),cf(this.i,{dir:"rtl"}));a.appendChild(this.i)}u(nx,W);function ox(a,b){nx.call(this,b);this.Ea=a;this.g.ka(b,"scroll",this.N);J(b,"position","relative");J(this.i,"position","absolute");this.j=F("div");x(this.j,"scroll-background");V(this.j,!0);b.appendChild(this.j);this.j.appendChild(this.i)}n(ox,nx);function ew(a){var b=a.oa;a.ma&&b&&(J(a.i,"left",Math.floor(Math.max(0,a.Ea.s.o.clientWidth-b.width)/2)+"px"),J(a.j,"height",b.height+"px"))}ox.prototype.na=function(){this.s=!1;this.N()}; ox.prototype.N=function(){if(!this.s){var a=this.Ea.Ib;if(a){a=a.clone();var b=this.o;b=new A(b.scrollLeft,b.scrollTop);xe(a,b)||(this.O=!0,this.Ea.Kd(b),this.O=!1)}}};function px(a){var b=a.Hb(),c=new ox(this,b);qx(b);jw.call(this,a,c);gw(this,new pw(a,this));fw(this,rx(this));var d=a.rb(),e=a.Za().hg();this.ma=a.Za().O?function(g){return new Xv(d,e,g)}:a.Za().na?function(g){return new Xv(d,e,g,!0,a.Za().na)}:function(g){return new Xv(d,e,g,!0)};b=this.wb.Za();"fixed_height"==b.hg()?(b=b.le(),b=b[Math.floor(b.length/2)]+2):b=sx(b)+2;this.xg(b);this.g.ka(this.wb,"pagesupdate",this.xu);this.g.ka(this.wb,"pagemodechange",this.vr);this.g.ka(this,"move",this.mc);this.g.ka(this, "move",this.Ow)}u(px,jw);function qx(a){J(a,"overflow","auto");J(a,{overflowX:"auto",overflowY:"scroll"});x(a,"overflow-scrolling");cf(a,{dir:"ltr"})}f=px.prototype;f.Qc=function(){this.jf(1)};f.nd=function(){this.jf(-1)};f.le=function(){var a=this.wb.Za(),b=ub(a.le());"fixed_width"==a.hg()&&(a=this.wb.Za().Pa)&&150a?pb(b,a):pb(b,1500));return new Lp(jb(b,mx))};f.Tg=function(a){return this.ma(a)}; f.Fa=function(){if(this.j.hasChildNodes()){var a=Ih(this.j.childNodes[0]).width;a=new Ae(a,this.i.height)}else a=this.i;return a};function rx(a){var b=new Ip;Jp(b,Sl,new lw(a,t(Qc,lx,a.wb,a,a.s.i)));Jp(b,Sv,new Zv(a.wb,function(c){return new cw(a.s.i,c)}));return b}f.Ow=function(){if(this.Ca){var a=Ll(this.zc,this.Pc().y);a&&a.Ga&&(a=a.Ga(),this.wb.Ga()!=a&&(this.ki=!0,this.wb.Gd(a.Qa()),this.ki=!1))}this.Ca=!0}; f.xu=function(){var a=this.wb.Ga(),b=this.wb.rb(),c=go(b,a.Qa());if(!c)a:{c=co(a);b=eo(b);for(a=b.length-1;0=co(c)&&ea.x&&(a.x=0);jh(this.i,a)};f.pu=function(a){a.preventDefault();a.stopPropagation();this.V.Vb("previous")}; f.Da=function(a){J(this.i,{display:a?"":"none"})};f.Uc=function(){J(this.o,{left:0,top:0});J(this.N,{left:this.j.width+"px",top:0})};f.Rd=function(){return ib([this.ua,this.Ba],function(a){return!!a})};f.Na=function(){this.s.Na();this.O.Na();for(var a;a=this.na.pop();)aj(a);this.i.parentNode&&G(this.i)};function Hx(a){return 2*a};function Ix(a){this.V=a}n(Ix,mp);Ix.prototype.render=function(a){var b=new Fx(this.V,a.Fa().width);b.setPosition(a.ud());b.Uc();b.Da(!0);return this.g=b};function Jx(a,b,c){Q.call(this);this.V=a;this.j=b;this.s=L(b).width;this.N=c;this.i=!1;this.g=Ul()}n(Jx,Q);Jx.prototype.Gf=function(){return this.i};function Kx(a,b){if(b!=a.i){a.i=b;var c=a.V.Ia().s.i;M(c,!1);L(c);[t(Lx,a.j,a.N,a.s,a.g,b),r(a.o,a),t(M,c,!0)].forEach(U)}}Jx.prototype.o=function(){this.dispatchEvent("change")};function Lx(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="");M(a,!e)};var Mx=null;function Nx(a,b){dj.call(this);this.i=Mx;this.V=a;this.g=b;this.V.Za().O||(this.ka(this.V,"pageturn",this.o),this.ka(this.g,"dispose",this.Ha))}n(Nx,dj);Nx.prototype.o=function(){var a=this.g.ma.g.Rd()[0]||new ep,b=this.g.ma.g.Rd()[1]||new ep,c=this.O,d=this.s,e=d?co(d):-1,g=co(a)||-1,h=co(b)||-1,k=Math.max(c?co(c):-1,e),l=Math.max(g,h);if(Math.abs(l-k)>this.g.ln){if(0l-k&&(m=-1!=h?b:a,p=d);1=co(e[0]||e[1])&&aemail or IM"));this.ha().appendChild(a);this.o=F("input");K(this.o,"100%","auto");this.ha().appendChild(this.o);this.N&&(a=C("DIV",{style:"font-size: 13px; padding-top: 7px;"},"Embed"),this.ha().appendChild(a),this.Oe=F("input"),K(this.Oe,"100%","auto"),this.ha().appendChild(this.Oe));a=this.V.Ga();b=(new R(window.location)).g;var c=new R(a.Ec()); c.g=b;this.o.value=c.toString();U(t(Zx,this.o));this.N&&(a=new R(a.Ec()),S(a,"output","embed"),this.Oe.value=$x(a.toString()))};Yx.prototype.rm=function(){Xx.prototype.rm.call(this);this.g.ka(this.o,"click",t(Zx,this.o));this.N&&this.g.ka(this.Oe,"click",t(Zx,this.Oe))};function Zx(a){a.select()}function $x(a){return Ce('',a)};function ay(a,b){W.call(this);this.Ea=a;this.j=b;this.i=F("div");a.s.i.appendChild(this.i);x(this.i,"sitb_result");qc?(J(this.i,"width",b.Fa().width+"px"),J(this.i,"min-height",b.Fa().height+"px")):(jh(this.i,b.ud()),K(this.i,b.Fa()));a=F("div");x(a,"sitb-result-header");this.i.appendChild(a);this.s=F("div");x(this.s,"sitb-result-page-link");b=b.g.g;this.s.textContent=b?"Page "+b:"Page";a.appendChild(this.s);this.o=F("div");x(this.o,"sitb-result-content");this.i.appendChild(this.o);if(b=go(this.Ea.V.rb(), this.j.g.Qa())){a=this.Ea.V.ub().getQuery();var c=b.ob.snippetSrc;c&&a==Jo(c)?by(this,c):(a=b.yf(),"entity_page"==T(a,"source")?S(a,"source","entity_page_gbs_snippet"):S(a,"source","gbs_snippet"),tp(b,a,r(this.O,this)))}else cy(this)}n(ay,lm);ay.prototype.N=function(a){this.Ea.Df(a.g)};ay.prototype.O=function(a){(a=a.ob.snippetSrc)?by(this,a):cy(this)};function by(a,b){rf(a.o);var c=F("IMG");c.src=b;dy(a);b=a.j.Fa().width-25;J(c,{width:b+"px"});a.o.appendChild(c)} function dy(a){x(a.i,"sitb-result-clickable");x(a.s,"sitb-result-link");var b=If(a.s);N(a.s,pl(b+" »"));um(a.i,"link");Hf(a.i,!0);a.g.ka(a.i,"click",r(a.N,a,a.j));a.g.ka(a.i,"keydown",function(c){32!=c.keyCode&&13!=c.keyCode||a.N(a.j)})} function cy(a){rf(a.o);var b=F("div");x(b,"sitb-result-snippet");a.o.appendChild(b);qc||J(b,{width:Math.floor(.75*a.j.Fa().width)+"px"});N(b,ol.g(a.j.g.i));b=F("div");x(b,"sitb-result-explanatory-link");a.o.appendChild(b);var c=go(a.Ea.V.rb(),a.j.g.Qa());c&&c.Cd()&&!yp(c,[4,8,16])&&c.o(2)?(dy(a),N(b,pl((qc?"No image for result.":"We couldn't make an image for this result.")+"  ")),a=F("span"),N(a,pl(qc?"Click to view":"Click to view the whole page.")),b.appendChild(a),x(a,"sitb-result-link")): (N(b,pl("No preview available for this page.  ")),qc||(a=F("a"),x(a,"sitb-result-buy-link"),N(a,pl("Buy this book.")),b.appendChild(a),b=new R(window.location.href),S(b,"sitesec","buy"),S(b,"source","gbs_snippet"),Nj(b,"printsec"),a.href=b.toString()))}ay.prototype.Na=function(){G(this.i);this.Ha()};function ey(a){this.Ea=a}n(ey,mp);ey.prototype.render=function(a){return new ay(this.Ea,a)};function fy(a){this.g=a}n(fy,Hl);function gy(a,b){Tv.call(this,1);this.Pb=a;this.N=b;this.hk=this.Ki=this.marginTop=20;a.Ab&&(a.Ab.forEach(r(this.o,this)),Ol(this))}n(gy,Tv);gy.prototype.o=function(a){a=new fy(a);var b=Math.min(this.N-16,600);a.nb(new Ae(b,Math.round(124/600*b+42)));this.Sa(a)};function hy(a){var b=a.Hb();J(b,"overflow","hidden");var c=new ox(this,b);dw.call(this,c);this.V=a;qc||gw(this,new nw(this));this.g.ka(this,"move",this.mc);var d=B("subscription-bar");d&&(this.ql(d),U(function(){M(d,!1)},600));fw(this,iy(this));jy(b)}u(hy,dw);function jy(a){J(a,"overflow","auto");J(a,{overflowX:"auto",overflowY:"scroll"});cf(a,{dir:"ltr"})}function iy(a){var b=new Ip;Jp(b,fy,new ey(a));return b}hy.prototype.resize=function(){ky(this)}; function ky(a){var b=new gy(a.Pb,a.Fa().width);a.ad(b);a.mc()}hy.prototype.Df=function(a,b){return this.Ba(a,b)};function ly(a){this.g=a||{}}ly.prototype.qc=function(){return this.g};ly.prototype.lc=function(a){var b=Wc(my,function(c){return c==a});this.g.v=b};ly.prototype.getQuery=function(){return this.g.q};var my={onepage:px,twopage:Ux,thumbnail:xx,snippet:hy};function ny(a,b){this.g=new Ds;O(this.g,"navigate",r(this.s,this));this.V=a;this.i=b}ny.prototype.s=function(a){oy(this,a.s)};function oy(a,b){if(!(a.o&&""==b||a.j))if((z||pc)&&""==b)window.history.go(-2);else if(b){var c={},d=new Fj(b);v(d.ie(),function(e){var g=d.get(e);g in py&&(g=py[g]);c[e]=g});b=new ly(c);a.V.lc(my[b.g.v]||px);Kx(a.i,!!b.g.f);void 0!==b.getQuery()&&Io(a.V.ub(),b.getQuery())}} ny.prototype.Ta=function(a){this.o=!0;this.g.Ta(a);z&&(a=(new R(window.location)).g,oy(this,a));this.o=!1};ny.prototype.update=function(){var a=new ly;a.lc(this.V.O);a.g.q=this.V.ub().getQuery();a.g.f=this.i.Gf();a=Qj(a.qc()).toString();this.j=!0;this.g.yi(a);this.j=!1};var py={"true":!0,"false":!1};function qy(){this.g=[]}u(qy,jr);Oa(qy);function ry(a,b){var c=a.g[b];if(!c){switch(b){case 0:c=a.Wa()+"-highlight";break;case 1:c=a.Wa()+"-checkbox";break;case 2:c=a.Wa()+"-content"}a.g[b]=c}return c}f=qy.prototype;f.Dg=function(){return"menuitem"};f.Sc=function(a){var b=a.g.Ra("DIV",mr(this,a).join(" "),sy(this,a.Lc(),a.g));ty(this,a,b,rr(a,8)||rr(a,16));return b};f.Nc=function(a){return a&&a.firstChild}; f.Ub=function(a,b){var c=xf(b),d=ry(this,2);c&&Hb(c,d)||b.appendChild(sy(this,b.childNodes,a.g));Hb(b,"goog-option")&&(a.xi(!0),this.xi(a,b,!0));return qy.ta.Ub.call(this,a,b)};f.Eg=function(a,b){var c=this.Nc(a),d=uy(this,a)?c.firstChild:null;qy.ta.Eg.call(this,a,b);d&&!uy(this,a)&&c.insertBefore(d,c.firstChild||null)};function sy(a,b,c){a=ry(a,2);return c.Ra("DIV",a,b)}f.mq=function(a,b,c){a&&b&&ty(this,a,b,c)};f.xi=function(a,b,c){a&&b&&ty(this,a,b,c)}; function uy(a,b){return(b=a.Nc(b))?(b=b.firstChild,a=ry(a,1),!!b&&zf(b)&&Hb(b,a)):!1}function ty(a,b,c,d){pr(a,c,b.Af());qr(a,b,c);d!=uy(a,c)&&(Lb(c,"goog-option",d),c=a.Nc(c),d?(a=ry(a,1),c.insertBefore(b.g.Ra("DIV",a),c.firstChild||null)):c.removeChild(c.firstChild))}f.Vh=function(a){switch(a){case 2:return ry(this,0);case 16:case 8:return"goog-option-selected";default:return qy.ta.Vh.call(this,a)}}; f.wj=function(a){var b=ry(this,0);switch(a){case "goog-option-selected":return 16;case b:return 2;default:return qy.ta.wj.call(this,a)}};f.Wa=function(){return"goog-menuitem"};function vy(a,b,c,d){ur.call(this,a,d||qy.Gb(),c);this.Bc(b)}u(vy,ur);f=vy.prototype;f.Cb=function(){var a=this.Xl;return null!=a?a:this.Yg()};f.Bc=function(a){this.Xl=a};f.bc=function(a,b){vy.ta.bc.call(this,a,b);switch(a){case 8:sr(this,16)&&!b&&this.Of(!1);(a=this.ha())&&this.Bd().mq(this,a,b);break;case 16:(a=this.ha())&&this.Bd().xi(this,a,b)}};f.mq=function(a){this.bc(8,a)};f.xi=function(a){this.bc(16,a)}; f.Yg=function(){var a=this.Lc();return Array.isArray(a)?(a=jb(a,function(b){return zf(b)&&(Hb(b,"goog-menuitem-accel")||Hb(b,"goog-menuitem-mnemonic-separator"))?"":Kf(b)}).join(""),Fe(a)):vy.ta.Yg.call(this)};f.oe=function(a){var b=this.getParent();if(b){var c=b.s;b.s=null;if(c&&"number"===typeof a.clientX&&xe(c,new A(a.clientX,a.clientY)))return}vy.ta.oe.call(this,a)};f.ne=function(a){return a.keyCode==this.Wl&&this.Ze(a)?!0:vy.ta.ne.call(this,a)};f.Ht=function(){return this.Wl}; br("goog-menuitem",function(){return new vy(null)});vy.prototype.Af=function(){return rr(this,16)?"menuitemcheckbox":rr(this,8)?"menuitemradio":vy.ta.Af.call(this)};vy.prototype.getParent=function(){return ur.prototype.getParent.call(this)};vy.prototype.fh=function(){return ur.prototype.fh.call(this)};function wy(a,b,c){vy.call(this,a,b,c);this.xi(!0)}u(wy,vy);br("goog-checkbox-menuitem",function(){return new wy(null)});function xy(a){wy.call(this,Ie(a.lb()),a.getId());this.i=a}n(xy,wy);xy.prototype.Nb=function(a){wy.prototype.Nb.call(this,a);if(this.i.He){var b=(a=1==this.i.He)?"Public bookshelf":"Private bookshelf";a=C("IMG",{src:"/googlebooks/images/sharing_"+(a?"public":"private")+".gif",alt:b,title:b,style:"padding-top:2px;padding-left:8px;float:"+(Ul()?"left":"right")});a=C("DIV","goog-menuitem-accel",a,of(String(this.i.va)));uf(this.Kb(),a,1)}};function yy(a,b,c,d){as.call(this,a,b,c||d);(c||d)&&this.o(65|(d?32:132))}u(yy,as);function zy(){}u(zy,jr);Oa(zy);zy.prototype.Wa=function(){return"goog-menuheader"};function Ay(a,b,c){ur.call(this,a,c||zy.Gb(),b);this.bc(1,!1);this.bc(2,!1);this.bc(4,!1);this.bc(32,!1);this.ae=1}u(Ay,ur);br("goog-menuheader",function(){return new Ay(null)});function By(){}u(By,jr);Oa(By);By.prototype.Sc=function(a){return a.g.Ra("DIV",this.Wa())};By.prototype.Ub=function(a,b){b.id&&a.nh(b.id);if("HR"==b.tagName){var c=b;b=this.Sc(a);sf(b,c);G(c)}else x(b,this.Wa());return b};By.prototype.Eg=function(){};By.prototype.Wa=function(){return"goog-menuseparator"};function Cy(a,b){ur.call(this,null,a||By.Gb(),b);this.bc(1,!1);this.bc(2,!1);this.bc(4,!1);this.bc(32,!1);this.ae=1}u(Cy,ur);Cy.prototype.Ma=function(){Cy.ta.Ma.call(this);var a=this.ha();um(a,"separator")};br("goog-menuseparator",function(){return new Cy});function Dy(a){this.g=a||"menu"}u(Dy,er);Oa(Dy);f=Dy.prototype;f.uk=function(a){return"UL"==a.tagName||Dy.ta.uk.call(this,a)};f.Xh=function(a){return"HR"==a.tagName?new Cy:Dy.ta.Xh.call(this,a)};f.fe=function(a,b){return Bf(a.ha(),b)};f.Cg=function(){return"goog-menu"};f.vk=function(a){Dy.ta.vk.call(this,a);a=a.ha();X(a,"haspopup","true")};function Ey(a){Cy.call(this,By.Gb(),a)}u(Ey,Cy);br("goog-menuseparator",function(){return new Cy});function Fy(a,b){Ir.call(this,"vertical",b||Dy.Gb(),a);Rr(this,!1)}u(Fy,Ir);f=Fy.prototype;f.Rk=!0;f.fe=function(a){if(this.Bd().fe(this,a))return!0;for(var b=0,c=an(this);bDate.now()-a.zp);g&&a.Dm?a.mb():a.dispatchEvent("beforeshow")&&(c="undefined"!=typeof c?c:8,e||(a.ha().style.visibility="hidden"),M(a.ha(),!0),b.Tc(a.ha(),c,d),e||(a.ha().style.visibility="visible"),a.Yd(-1),a.Da(!0))}f.mb=function(){this.isVisible()&&(this.Da(!1),this.isVisible()||(this.zp=Date.now()))};f.Cv=function(){this.mb()};f.Pv=function(a){Jy(this,a)}; f.Qv=function(a){32!=a.keyCode&&13!=a.keyCode&&40!=a.keyCode||Jy(this,a);40==a.keyCode&&Nr(this)};function Jy(a,b){for(var c=a.i.ie(),d=0;dl.endOffset)l={startOffset:e.startOffset, th:e.th,endOffset:l.endOffset,Ph:l.Ph};e=eb(d)}d.push(l);e=l}k.i&&rb(g,h)}}function kz(a,b){this.startOffset=a;this.th=void 0;this.endOffset=a;this.Ph=void 0;this.i=!1;this.g=b};function lz(a,b){var c=void 0;c=void 0===c?Infinity:c;b=new iz(b);c=void 0===c?Infinity:c;var d=void 0===d?[]:d;var e=" ",g,h=ez(a);for(g=0;g=c&&(d.length=c);return d};function mz(a){var b=fz(a);a=nz();Array.prototype.forEach.call(a,function(c){oz(b,c)})}function nz(){var a=[],b=ub($e("patent-text")),c=af("patent-title");for(c&&b.push(c);c=b.pop();)3==c.nodeType?a.push(c):vb(b,c.childNodes);return a} function oz(a,b){var c=Kf(b);a=lz(c,a);if(a.length){var d=[],e=0;a.forEach(function(g){d.push(c.substring(e,g.startOffset),ae("span",{"class":"patent-text-highlight"},c.substring(g.startOffset,g.endOffset)));e=g.endOffset});d.push(c.substring(e));a=F("span");N(a,he(d));vf(a,b)}};function pz(){vy.call(this,"Turn off highlighting");var a=yj("dq")||yj("q");a&&mz(a);this.Qb=!0}n(pz,vy);pz.prototype.Ma=function(){vy.prototype.Ma.call(this);Z(this).ka(this,"action",this.i)};pz.prototype.i=function(){this.Qb=!this.Qb;Lb(window.document.body,"patent-highlight-disabled",!this.Qb);Ar(this,this.Qb?"Turn off highlighting":"Turn on highlighting")};function qz(){}u(qz,By);Oa(qz);qz.prototype.Sc=function(a){return a.g.Ra("DIV",mr(this,a).join(" ")+" goog-inline-block","\u00a0")};qz.prototype.Ub=function(a,b){b=qz.ta.Ub.call(this,a,b);x(b,"goog-inline-block");return b};qz.prototype.Wa=function(){return"goog-toolbar-separator"};function rz(){}u(rz,Vt);Oa(rz);f=rz.prototype;f.Sc=function(a){var b=mr(this,a);b=a.g.Ra("DIV","goog-inline-block "+b.join(" "),this.kj(a.Lc(),a.g));this.vc(b,a.Bf());return b};f.Dg=function(){return"button"};f.Nc=function(a){return a&&a.firstChild&&a.firstChild.firstChild};f.kj=function(a,b){return b.Ra("DIV","goog-inline-block "+(this.Wa()+"-outer-box"),b.Ra("DIV","goog-inline-block "+(this.Wa()+"-inner-box"),a))};f.Qi=function(a){return"DIV"==a.tagName}; f.Ub=function(a,b){sz(b,!0);sz(b,!1);a:{var c=a.g.Lo(b);var d=this.Wa()+"-outer-box";if(c&&Hb(c,d)&&(c=a.g.Lo(c),d=this.Wa()+"-inner-box",c&&Hb(c,d))){c=!0;break a}c=!1}c||b.appendChild(this.kj(b.childNodes,a.g));Ib(b,["goog-inline-block",this.Wa()]);return rz.ta.Ub.call(this,a,b)};f.Wa=function(){return"goog-custom-button"}; function sz(a,b){if(a)for(var c=b?a.firstChild:a.lastChild,d;c&&c.parentNode==a;){d=b?c.nextSibling:c.previousSibling;if(3==c.nodeType){var e=c.nodeValue;if(""==Pb(e))a.removeChild(c);else{c.nodeValue=b?e.replace(/^[\s\xa0]+/,""):e.replace(/[\s\xa0]+$/,"");break}}else break;c=d}};function tz(){}u(tz,rz);Oa(tz);tz.prototype.Wa=function(){return"goog-toolbar-button"};function uz(){this.g="toolbar"}u(uz,er);Oa(uz);uz.prototype.Xh=function(a){return"HR"==a.tagName?new Cy(qz.Gb()):uz.ta.Xh.call(this,a)};uz.prototype.Cg=function(){return"goog-toolbar"};uz.prototype.Ko=function(){return"horizontal"};function vz(a){uz.call(this);this.i=a}u(vz,uz);var wz={};vz.prototype.Cg=function(){return this.i||"ocean-chrome-toolbar"};function xz(a){Q.call(this);this.g=[];yz(this,a)}u(xz,Q);f=xz.prototype;f.qg=null;f.Ak=null;function zz(a,b){a.Ak=b}function yz(a,b){b&&(b.forEach(function(c){Az(this,c,!1)},a),vb(a.g,b))}f.Sa=function(a){this.vf(a,this.g.length)};f.vf=function(a,b){a&&(Az(this,a,!1),wb(this.g,b,0,a))};f.Qd=function(){return ub(this.g)};f.hf=function(a){a!=this.qg&&(Az(this,this.qg,!1),this.qg=a,Az(this,a,!0));this.dispatchEvent("select")};f.wa=function(){xz.ta.wa.call(this);delete this.g;this.qg=null}; function Az(a,b,c){b&&("function"==typeof a.Ak?a.Ak(b,c):"function"==typeof b.om&&b.om(c))};function Bz(a,b,c){Ir.call(this,b,a||uz.Gb(),c)}u(Bz,Ir);Bz.prototype.Vi=function(a){Bz.ta.Vi.call(this,a);this.re||Nr(this)};function Cz(a,b,c){Xt.call(this,a,b||tz.Gb(),c)}u(Cz,Xt);br("goog-toolbar-button",function(){return new Cz(null)});function Dz(a,b){Cy.call(this,a||qz.Gb(),b)}u(Dz,Cy);br("goog-toolbar-separator",function(){return new Dz});function Ez(a){a=a||"viewport-chrome-toolbar";a=wz[a]||(wz[a]=new vz(a));Bz.call(this,a);this.Ba={};this.j=new dj(this)}n(Ez,Bz);function Fz(a,b,c,d){b.bc(16,!0);if(c){var e=a.Ba[c];e||(e=new xz,zz(e,function(g,h){g&&g.Of(h)}),a.Ba[c]=e);e.Sa(b);b.Wf&=-17;O(b,"action",function(g){e.hf(g.target)});d&&e.hf(b)}else b.jd(16,!!d)}function Gz(a,b){a.Ba.viewport&&a.Ba.viewport.hf(b)}Ez.prototype.wa=function(){Bz.prototype.wa.call(this);this.j.Ha();Sc(this.Ba,function(a){a.Ha()})};function Hz(){}u(Hz,Vt);Oa(Hz);f=Hz.prototype;f.Sc=function(a){var b=mr(this,a);b=a.g.Ra("DIV","goog-inline-block "+b.join(" "),a.Lc());this.vc(b,a.Bf());return b};f.Dg=function(){return"button"};f.Qi=function(a){return"DIV"==a.tagName};f.Ub=function(a,b){x(b,"goog-inline-block");return Hz.ta.Ub.call(this,a,b)};f.Cb=function(){return""};f.Wa=function(){return"goog-flat-button"};br("goog-flat-button",function(){return new Xt(null,Hz.Gb())});function Iz(){}u(Iz,rz);Oa(Iz);Iz.prototype.Nc=function(a){return Iz.ta.Nc.call(this,a&&a.firstChild)};Iz.prototype.Ub=function(a,b){var c=Ye("*","goog-menu",b)[0];if(c){M(c,!1);Ve(c).body.appendChild(c);var d=new Fy;Zm(d,c);a.ff(d)}return Iz.ta.Ub.call(this,a,b)};Iz.prototype.kj=function(a,b){return Iz.ta.kj.call(this,[b.Ra("DIV","goog-inline-block "+(this.Wa()+"-caption"),a),b.Ra("DIV","goog-inline-block "+(this.Wa()+"-dropdown"),"\u00a0")],b)};Iz.prototype.Wa=function(){return"goog-menu-button"};function Jz(){this.g=[]}u(Jz,qy);Oa(Jz);Jz.prototype.Sc=function(a){var b=Jz.ta.Sc.call(this,a);x(b,"goog-submenu");Kz(this,a,b);return b};Jz.prototype.Ub=function(a,b){b=Jz.ta.Ub.call(this,a,b);x(b,"goog-submenu");Kz(this,a,b);var c=Ye("DIV","goog-menu",b);if(c.length){var d=new Fy(a.g);c=c[0];M(c,!1);a.g.g.body.appendChild(c);Zm(d,c);a.ff(d,!0)}return b};Jz.prototype.Eg=function(a,b){var c=this.Nc(a),d=c&&c.lastChild;Jz.ta.Eg.call(this,a,b);d&&c.lastChild!=d&&Hb(d,"goog-submenu-arrow")&&c.appendChild(d)}; Jz.prototype.Ri=function(a){Jz.ta.Ri.call(this,a);var b=a.Kb(),c=Ze(a.g.g,"SPAN","goog-submenu-arrow",b)[0];Lz(a,c);c!=b.lastChild&&b.appendChild(c);a=a.ha();X(a,"haspopup","true")};function Kz(a,b,c){var d=b.g.Ra("SPAN");d.className="goog-submenu-arrow";Lz(b,d);a.Nc(c).appendChild(d)}function Lz(a,b){cn(a)?(x(b,"goog-submenu-arrow-rtl"),H(b,"\u25c4")):(Jb(b,"goog-submenu-arrow-rtl"),H(b,"\u25ba"))};function Mz(a,b,c,d){vy.call(this,a,b,c,d||Jz.Gb())}u(Mz,vy);f=Mz.prototype;f.Ch=null;f.xm=null;f.Vl=!1;f.wc=null;f.nj=!1;f.Ma=function(){Mz.ta.Ma.call(this);Z(this).ka(this.getParent(),"hide",this.Op);this.wc&&Nz(this,this.wc,!0)};f.oc=function(){Z(this).Xa(this.getParent(),"hide",this.Op);this.wc&&(Nz(this,this.wc,!1),this.nj||(this.wc.oc(),G(this.wc.ha())));Mz.ta.oc.call(this)};f.wa=function(){this.wc&&!this.nj&&this.wc.Ha();this.wc=null;Mz.ta.wa.call(this)}; f.Zc=function(a){Mz.ta.Zc.call(this,a);a||(this.Ch&&Mk(this.Ch),this.Ch=U(this.Ne,218,this))};f.wm=function(){var a=this.getParent();a&&Mr(a)==this&&(Oz(this,!0),Pz(this))};f.Ne=function(){var a=this.wc;a&&a.getParent()==this&&(Oz(this,!1),$m(a,function(b){"function"==typeof b.Ne&&b.Ne()}))};function Qz(a){a.Ch&&Mk(a.Ch);a.xm&&Mk(a.xm)}f.Da=function(a,b){(a=Mz.ta.Da.call(this,a,b))&&!this.isVisible()&&this.Ne();return a}; function Pz(a){$m(a.getParent(),function(b){b!=this&&"function"==typeof b.Ne&&(b.Ne(),Qz(b))},a)}f.Vc=function(a){var b=a.keyCode,c=cn(this)?37:39,d=cn(this)?39:37;if(!this.Vl){if(!this.isEnabled()||b!=c&&13!=b&&b!=this.Wl)return!1;this.wm();Nr(Rz(this));Qz(this)}else if(!Rz(this).Vc(a))if(b==d)this.Ne();else return!1;a.preventDefault();return!0};f.Ev=function(){this.wc.getParent()==this&&(Qz(this),this.fh().Zc(this),Pz(this))};f.Op=function(a){a.target==this.fh()&&(this.Ne(),Qz(this))}; f.Te=function(a){this.isEnabled()&&(Qz(this),this.xm=U(this.wm,218,this));Mz.ta.Te.call(this,a)};f.Ze=function(a){Qz(this);if(rr(this,8)||rr(this,16))return Mz.ta.Ze.call(this,a);this.wm();return!0}; function Oz(a,b){!b&&Rz(a)&&Rz(a).Yd(-1);a.dispatchEvent(Wm(64,b));var c=Rz(a);b!=a.Vl&&Lb(a.ha(),"goog-submenu-open",b);if(b!=c.isVisible()&&(b&&(c.ab||c.render(),c.Yd(-1)),c.Da(b),b)){c=new as(a.ha(),12,!1);var d=Rz(a),e=d.ha();d.isVisible()||(e.style.visibility="hidden",M(e,!0));c.Tc(e,8);d.isVisible()||(M(e,!1),e.style.visibility="visible")}a.Vl=b}function Nz(a,b,c){var d=Z(a);(c?d.ka:d.Xa).call(d,b,"enter",a.Ev)}f.Sa=function(a){Rz(this).Oa(a,!0)};f.vf=function(a,b){Rz(this).Og(a,b,!0)}; f.Qd=function(){return Rz(this).Qd()};function Rz(a){a.wc?a.nj&&a.wc.getParent()!=a&&a.wc.ue(a):a.ff(new Fy(a.g),!0);a.wc.ha()||a.wc.Va();return a.wc}f.ff=function(a,b){var c=this.wc;a!=c&&(c&&(this.Ne(),this.ab&&Nz(this,c,!1)),this.wc=a,this.nj=!b,a&&(a.ue(this),a.Da(!1,!0),Gy(a,!1),Rr(a,!1),this.ab&&Nz(this,a,!0)))};f.fe=function(a){return Rz(this).fe(a)};br("goog-submenu",function(){return new Mz(null)});function Sz(a,b,c,d,e){Xt.call(this,a,c||Iz.Gb(),d);this.bc(64,!0);this.s=new yy(null,9);b&&this.ff(b);this.Ya=new Kk(500);this.tb=e||Dy.Gb()}u(Sz,Xt);f=Sz.prototype;f.Ma=function(){Sz.ta.Ma.call(this);Tz(this,!0);this.i&&Uz(this,this.i,!0);X(this.ya,"haspopup",!!this.i)};f.oc=function(){Sz.ta.oc.call(this);Tz(this,!1);if(this.i){this.Rb(!1);this.i.oc();Uz(this,this.i,!1);var a=this.i.ha();a&&G(a)}};f.wa=function(){Sz.ta.wa.call(this);this.i&&(this.i.Ha(),delete this.i);delete this.kb;this.Ya.Ha()}; f.nf=function(a){Sz.ta.nf.call(this,a);this.isActive()&&(this.Rb(!this.xd(),a),this.i&&(a=this.xd(),this.i.re=a))};f.oe=function(a){Sz.ta.oe.call(this,a);this.i&&!this.isActive()&&(this.i.re=!1)};f.Ze=function(){Cr(this,!1);return!0};f.Vt=function(a){this.i&&this.i.isVisible()&&!this.fe(a.target)&&this.Rb(!1)};f.fe=function(a){return a&&Bf(this.ha(),a)||this.i&&this.i.fe(a)||!1}; f.ne=function(a){if(32==a.keyCode){if(a.preventDefault(),"keyup"!=a.type)return!0}else if("key"!=a.type)return!1;if(this.i&&this.i.isVisible()){var b=13==a.keyCode||32==a.keyCode,c=this.i.Vc(a);return c&&this.i&&this.i.kc instanceof Mz||27!=a.keyCode&&!b?c:(this.Rb(!1),!0)}return 40==a.keyCode||38==a.keyCode||32==a.keyCode||13==a.keyCode?(this.Rb(!0,a),!0):!1};f.Bl=function(){this.Rb(!1)};f.Si=function(a){this.Rb(!1);Sz.ta.Si.call(this,a)}; function Vz(a){a.i||a.ff(new Fy(a.g,a.tb));return a.i||null}f.ff=function(a){var b=this.i;a!=b&&(b&&(this.Rb(!1),this.ab&&Uz(this,b,!1),delete this.i),this.ab&&X(this.ya,"haspopup",!!a),a&&(this.i=a,a.ue(this),a.Da(!1),Gy(a,!1),this.ab&&Uz(this,a,!0)));return b};f.Sa=function(a){Vz(this).Oa(a,!0)};f.vf=function(a,b){Vz(this).Og(a,b,!0)};f.Da=function(a,b){(a=Sz.ta.Da.call(this,a,b))&&!this.isVisible()&&this.Rb(!1);return a};f.Ta=function(a){Sz.ta.Ta.call(this,a);this.isEnabled()||this.Rb(!1)}; f.Rb=function(a,b){Sz.ta.Rb.call(this,a);if(this.i&&sr(this,64)==a){if(a)this.i.ab||this.i.render(),this.Ba=ph(this.ha()),this.Ua=zh(this.ha()),Wz(this),!b||40!=b.keyCode&&38!=b.keyCode?this.i.Yd(-1):Nr(this.i);else{Cr(this,!1);this.i.re=!1;var c=this.ha();c&&(X(c,"activedescendant",""),X(c,"owns",""));null!=this.va&&(this.va=void 0,(c=this.i.ha())&&K(c,"",""))}this.i.Da(a,!1,b);this.Nd||(b=Z(this),c=a?b.ka:b.Xa,c.call(b,this.g.g,"mousedown",this.Vt,!0),c.call(b,this.Ya,"tick",this.Fr),a?this.Ya.start(): this.Ya.stop())}this.i&&this.i.ha()&&this.i.ya.removeAttribute("aria-hidden")};function Wz(a){if(a.i.ab){var b=a.kb||a.ha(),c=a.s;a.s.g=b;b=a.i.ha();a.i.isVisible()||(b.style.visibility="hidden",M(b,!0));!a.va&&a.s.N&&a.s.j&32&&(a.va=L(b));c.Tc(b,c.i^1,null,a.va);a.i.isVisible()||(M(b,!1),b.style.visibility="visible")}} f.Fr=function(){var a=zh(this.ha()),b=ph(this.ha());var c=this.Ua;(c=!(c==a||c&&a&&c.left==a.left&&c.width==a.width&&c.top==a.top&&c.height==a.height))||(c=this.Ba,c=!(c==b||c&&b&&c.top==b.top&&c.right==b.right&&c.bottom==b.bottom&&c.left==b.left));c&&(this.i.ab&&b&&this.Ba&&b.Db()h;h++){for(var k=mf(d,"TR"),l=0;2>l;l++)k.appendChild(mf(d,"TD"));g.appendChild(k)}x(e,this.className+"-table-layout");d=e.rows[0].cells;g=eA(this);d[0].appendChild(g);g=fA(this);d[1].appendChild(g);g=C("DIV",this.className+"-link"); h=C("A",{target:"_blank"},"Help with devices & formats");k=new R(window.location.href);l=new R("/support/bin/answer.py?answer=1062949");k=T(k,"hl")?S(l,"hl",T(k,"hl")).toString():"/support/bin/answer.py?answer=1062949";pe(h,k);g.appendChild(h);d[1].appendChild(g);c.appendChild(e);e=this.s;if((d=e.Md)&&!e.mg&&e.tb){var m;e.Tb&&rm.jx&&(m="Read the book");m=C("P",this.className+"-additional",C("A",{href:d},m));c.appendChild(m)}if(e.Ka||e.La)if(d=e.Zb,g=e.kb,d||g)m=C("P",this.className+"-additional", of("Download ")),d&&(h=C("A",{href:d},"EPUB"),m.appendChild(h)),g&&(d&&m.appendChild(of(", ")),d=C("A",{href:g},"PDF"),m.appendChild(d)),m.appendChild(of(" - ")),e=e.ac(),d=(new R(window.location.href)).o.split("/"),d=new R("/"+d[1]),xu(d),S(d,"output","acs_help"),S(d,"id",e),e=C("A",{href:d.toString()},"read eReader instructions"),m.appendChild(e),c.appendChild(m);m=C("A",{target:"_blank"},"Learn more about books on Google Play");pe(m,"https://books.google.com/support/bin/topic.py?topic=28528"); this.j=C("DIV",this.className+"-footer",m);b=C("DIV",b,c,this.j);x(b,this.className+"-device-content");a.appendChild(b)}}; function eA(a){var b=C("UL",a.className+"-list"),c=C("H4",null,"Good for:");b.appendChild(c);var d=a.className+"-device-type";c=a.className+"-device-supported";var e=a.className+"-device-not-supported",g=a.className+"-device-unknown-supported",h=C("A",{"class":d,href:"/help/ebooks/webreader.html"},"Web"),k=C("A",{"class":d,href:"/help/ebooks/devices.html"},"Tablet / iPad"),l=C("A",{"class":d,href:"/help/ebooks/ereader.html"},"eReader"),m=C("A",{"class":d,href:"/help/ebooks/devices.html"},"Smartphone"), p=a.s.Dj,w=a.s.Ej,D=a.s.mg;d=new dj(a);h=C("LI",null,h);D?d.ka(h,"mouseover",t(a.i,"The format of this book is currently unknown. We will update this when we receive the information from the publisher.")):(p||w)&&d.ka(h,"mouseover",t(a.i,"This eBook, like all Google eBooks, is formatted to be readable on the web."));d.ka(h,"mouseout",a.Ba);b.appendChild(h);k=C("LI",null,k);D?d.ka(k,"mouseover",t(a.i,"The format of this book is currently unknown. We will update this when we receive the information from the publisher.")): (p||w)&&d.ka(k,"mouseover",t(a.i,"This eBook, like all Google eBooks, is formatted to be readable on tablet devices like Android tablets and the iPad."));d.ka(k,"mouseout",a.Ba);b.appendChild(k);l=C("LI",null,l);d.ka(l,"mouseover",function(){D?this.i("The format of this book is currently unknown. We will update this when we receive the information from the publisher."):p?this.i("This Google eBook includes flowing text, so you can adjust the font to read comfortably on an eReader."):this.i("This Google eBook does not include flowing text, so you cannot adjust the font on an eReader.")}); d.ka(l,"mouseout",a.Ba);b.appendChild(l);m=C("LI",null,m);d.ka(m,"mouseover",function(){D?this.i("The format of this book is currently unknown. We will update this when we receive the information from the publisher."):p&&w?this.i("This eBook is good for smartphones like Android and iPhone / iPod touch."):p?this.i("This Google eBook includes flowing text so you can adjust the font to read comfortably on the small screen of a smartphone."):this.i("This eBook may be hard to read on smartphones like Android and iPhone / iPod touch.")}); d.ka(m,"mouseout",a.Ba);b.appendChild(m);D?(x(h,g),x(k,g),x(l,g),x(m,g)):p?(x(h,c),x(k,c),x(l,c),x(m,c)):(w?(x(h,c),x(k,c)):(x(h,e),x(k,e)),x(l,e),x(m,e));return b} function fA(a){var b=C("UL",a.className+"-list"),c=C("H4",null,"Features:");b.appendChild(c);var d=a.className+"-device-supported",e=a.className+"-device-not-supported",g=a.className+"-device-unknown-supported";c=C("A",{},"Flowing text");pe(c,"/support/bin/answer.py?answer=1062949");var h=C("A",{},"Scanned pages");pe(h,"/support/bin/answer.py?answer=1062949");var k=a.s.Dj,l=a.s.Ej,m=a.s.mg;m?(c=C("LI",g,c),d=C("LI",g,h)):(c=C("LI",k?d:e,c),d=C("LI",l?d:e,h));e=new dj(a);e.ka(c,"mouseover",function(){m? this.i("The format of this book is currently unknown. We will update this when we receive the information from the publisher."):k?this.i("This eBook includes flowing text, so you can adjust the font size and style to read comfortably on any device."):this.i("This book does not include flowing text, so you cannot adjust the font. Instead, you see images of pages, with a fixed layout. This is good for larger screens, but not always ideal for eReaders and smartphones.")});e.ka(c,"mouseout",a.Ba);e.ka(d, "mouseover",function(){m?this.i("The format of this book is currently unknown. We will update this when we receive the information from the publisher."):l?this.i("This eBook includes scanned pages, so pages appear as they would in a printed book."):this.i("This eBook does not include scanned pages, which retain the format of a printed book. Instead, the text can be adjusted and it flows to fit any screen.")});e.ka(d,"mouseout",a.Ba);b.appendChild(c);b.appendChild(d);return b} dA.prototype.Ba=function(){rf(this.j);var a=C("A",{target:"_blank"},"Learn more about books on Google Play");pe(a,"https://books.google.com/support/bin/topic.py?topic=28528");this.j.appendChild(a)};dA.prototype.i=function(a){rf(this.j);"string"===typeof a?this.j.appendChild(of(a)):this.j.appendChild(a)};function gA(a,b){Zt.call(this,b,void 0,3);this.s=a}n(gA,Zt);gA.prototype.render=function(a){Zt.prototype.render.call(this,a);x(this.ha(),"gb-get-book")};gA.prototype.Ma=function(){Zt.prototype.Ma.call(this);var a=this.ha();this.i=new dA(a,this.s);this.i.render();a=B("menu_container");(a=af("about_title",a))&&G(a)}; function hA(){var a=B("gb-buy-options-trigger");if(a&&a.parentNode&&a.parentNode.parentNode?!Hb(a.parentNode.parentNode,"jfk-button"):1){a=B("gb-buy-options-trigger");var b=B("buy");if(a&&b){Jb(b,"about_content");var c=C("SPAN","gb-buy-options-arrow","\u25bc");a.appendChild(c);x(b,"gb-buy-options-list");x(b,"unified-hovercard");Wr(a,9,b,8);M(b,!1);O(document,"mousedown",t(iA,a,b))}}}function iA(a,b,c){a=Bf(a,c.target);c=Bf(b,c.target);var d=Bh(b);a||c||!d?a&&(M(b,!d),d||Ah(b,1)):M(b,!1)};function jA(a,b,c,d,e,g){function h(l){if(l){l.tabIndex=0;um(l,k.va);x(l,"goog-zippy-header");l&&k.oa.ka(l,"click",k.na);var m=k;l&&(m.O.attach(l),m.ma.ka(m.O,"key",m.ua))}}Q.call(this);this.N=e||Te();this.i=this.N.ha(a)||null;this.o=this.N.ha(d||null);this.s="function"===typeof b?b:null;this.va=g||"tab";this.j=this.s||!b?null:this.N.ha(b);this.g=1==c;void 0!==c||this.s||(this.o?this.g=Bh(this.o):this.i&&(this.g=Hb(this.i,"goog-zippy-expanded")));this.ma=new dj(this);this.O=new Wq;this.oa=new dj(this); var k=this;h(this.i);h(this.o);this.ef(this.g)}u(jA,Q);jA.prototype.wa=function(){jA.ta.wa.call(this);yi(this.ma);yi(this.O);yi(this.oa)};jA.prototype.ef=function(a){this.j?M(this.j,a):a&&this.s&&(this.j=this.s());this.j&&x(this.j,"goog-zippy-content");this.o?(M(this.i,!a),M(this.o,a)):this.i&&(Lb(this.i,"goog-zippy-expanded",a),Lb(this.i,"goog-zippy-collapsed",!a),X(this.i,"expanded",a));this.g=a;this.dispatchEvent(new kA("toggle",this,this.g))}; jA.prototype.ua=function(a){if(13==a.keyCode||32==a.keyCode)this.ef(!this.g),this.dispatchEvent(new kA("action",this,this.g,a)),a.preventDefault(),a.stopPropagation()};jA.prototype.na=function(a){this.ef(!this.g);this.dispatchEvent(new kA("action",this,this.g,a))};function kA(a,b){Ci.call(this,a,b)}u(kA,Ci);function lA(a,b,c,d){if(b.child_node&&0"+(c.i.Pb.Ab.length+" results in this book for ")+(Rq(c.i.Pb)+"")));JA(c,!0);c=a.Pb;c!=b.Pb&&(b.Pb=c,ky(b));a=r(a.Df,a);b.Ba=a;b.hd(new A(0,0))} FA.prototype.Df=function(a,b){kw=!0;var c=this.Yc.j;JA(c,!1);c.ma=fb(c.i.Pb.Ab,a);c.o?(M(B("gb-mobile-search"),!0),M(B("gb-mobile-search-buttons"),!0),N(c.j,pl(c.ma+1+" of "+c.i.Pb.Ab.length)),ym(c.j,"Result "+(c.ma+1)+" of "+c.i.Pb.Ab.length)):N(c.j,pl("Result "+(c.ma+1+" of ")+(c.i.Pb.Ab.length+" in this book for ")+(Rq(c.i.Pb)+"")));c=this.Yc.V;a=go(c.rb(),a.Qa());if(!a)return null;var d=c.Ia();d instanceof px||d instanceof Ux||(this.Yc.o==Ux?c.lc(Ux):c.lc(px));if(b)return c.Gd(b), null;c.ei(a);return a};FA.prototype.wa=function(){yi(this.j);W.prototype.wa.call(this)};function KA(a){W.call(this);this.Ja=qp(a);this.o=qc&&a&&a.isOgenEligibleMobileViewport;this.na=this.s=null;this.o?(M(B("gb-mobile-search"),!0),M(B("gb-mobile-search-buttons"),!0)):(this.oa=F("DIV"),this.ua=new Kq(this.oa),this.ua.render(LA),this.ua.Da(!0),a=this.ua.ha(),x(a,"search-results-bar"),x(this.oa,"search-results-bar-contents"));this.j=this.o?B("gb-mobile-search-results-summ"):F("SPAN");this.o||this.oa.appendChild(this.j);this.O=this.o?B("gb-mobile-search-result-links"):F("SPAN");this.o?(MA(this, B("gb-mobile-search-result-prev"),r(this.Aj,this,-1),"Previous result"),MA(this,B("gb-mobile-search-result-next"),r(this.Aj,this,1),"Next result"),H(B("gb-mobile-search-result-viewall"),"View all"),MA(this,B("gb-mobile-search-result-viewall"),r(this.gp,this),"View all"),MA(this,B("gb-mobile-search-close"),r(this.Dl,this),"Close search")):(x(this.O,"search-bar-result-links"),this.oa.appendChild(this.O),a=F("SPAN"),N(a,pl("-  ")),x(a,"search-bar-link-spacer"),this.O.appendChild(a),NA(this, this.O,"\u2039 Previous",r(this.Aj,this,-1),"Previous"),a=F("SPAN"),N(a,pl("  ")),x(a,"search-bar-link-spacer"),this.O.appendChild(a),NA(this,this.O,"Next \u203a",r(this.Aj,this,1),"Next"),a=F("SPAN"),N(a,pl("  -  ")),x(a,"search-bar-link-spacer"),this.O.appendChild(a),NA(this,this.O,"View all",r(this.gp,this)));this.N=this.o?B("gb-mobile-search-snippet-links"):F("SPAN");this.o?OA(this):(this.Ja?(this.va=F("DIV"),x(this.va,"search-bar-result-buttons"),this.oa.appendChild(this.va), this.va.appendChild(this.N),Ib(this.N,["search-bar-sort-dropdown-button-container","search-bar-close-link"]),OA(this)):(this.Ba=F("SPAN"),this.Ca=F("SPAN"),this.oa.appendChild(this.N),a=F("SPAN"),N(a,pl("-  ")),x(a,"search-bar-link-spacer"),this.N.appendChild(a),this.N.appendChild(of("Order by: ")),this.N.appendChild(this.Ba),NA(this,this.Ba,"relevance",r(this.Bj,this,"r"),"Order by relevance"),a=F("SPAN"),N(a,pl(" | pages")),this.Ba.appendChild(a),this.N.appendChild(this.Ca), a=F("SPAN"),N(a,pl("relevance | ")),this.Ca.appendChild(a),NA(this,this.Ca,"pages",r(this.Bj,this,"n"),"Order by pages")),x(this.N,"search-bar-snippet-links"));if(!this.o){a=F("SPAN");x(a,"search-bar-close-link-container");this.Ja?this.va.appendChild(a):this.oa.appendChild(a);this.g.ka(a,"click",this.Dl);var b=NA(this,a,"Clear search",r(this.Dl,this));x(b,"search-bar-close-link");b=F("IMG");b.src="/googlebooks/images/close_x.gif";x(b,"search-bar-close-img");a.appendChild(b);Eh(this.oa, !0)}}var LA,PA,QA;n(KA,W);function RA(){PA=B("toolbar_container")} function OA(a){a.s=C("A",{"class":"search-bar-sort-dropdown-link"});um(a.s,"button");Hf(a.s,!0);X(a.s,"haspopup",!0);a.N.appendChild(a.s);var b=C("SPAN",{"class":"search-bar-sort-dropdown-text"});H(b,"Order by");a.na=C("SPAN",{"class":"search-bar-sort-dropdown-selected"});H(a.na,"relevance");ym(a.s,"Order by relevance");b.appendChild(a.na);a.s.appendChild(b);b=du("/googlebooks/images/material/arrow_drop_down_black_20dp.png");x(b[0],"search-bar-sort-dropdown-icon");X(b[0],"hidden",!0);a.s.appendChild(b[0]); b=new Hy;var c=new vy("relevance");c.wi("Order by relevance");b.Oa(c,!0);x(c.ha(),"search-bar-sort-dropdown-item");var d=new vy("pages");d.wi("Order by pages");b.Oa(d,!0);x(d.ha(),"search-bar-sort-dropdown-item");b.Dm=!0;a.o?b.render(a.N):b.render(document.body);b.attach(a.s,13,12);a.g.ka(b,"action",a.Xo);a.g.ka(b,"keydown",function(e){32!=e.keyCode&&13!=e.keyCode||r(a.Xo,a)});a.o&&a.g.ka(b,"beforeshow",function(){var e=a.s.offsetWidth-32;yh(c.ha(),e);yh(d.ha(),e)})} function JA(a,b){M(PA,!b);M(a.N,b);a.o?(M(a.O,!b),b=!b&&1==a.i.Pb.Ab.length,Lb(a.O,"mobile-search-button-disabled",b),X(a.O,"disabled",b)):M(a.O,!b&&1=d&&(a.ma=0);0>a.ma&&(a.ma=d-1);a.ma!=b&&(a.i.Df(a.i.Pb.Ab[a.ma])||TA(a,b,c))}f.Bj=function(a){var b=this.i.Yc;b&&b.update(a)};f.gp=function(){HA(this.i)}; f.Hu=function(a){var b=this.i.Yc;b&&(a=Ie(a),Io(b.V.ub(),a),b.N.Bc(a),b.s&&b.s.update())};f.Xo=function(a){if((a=a.target.Lc())&&this.na)switch(a){case "pages":this.Bj("n");H(this.na,"pages");ym(this.s,"Order by pages");break;case "relevance":this.Bj("r"),H(this.na,"relevance"),ym(this.s,"Order by relevance")}};function IA(a,b){a.s&&(Lb(a.s,"search-bar-sort-dropdown-disabled",!b),X(a.s,"disabled",!b));var c="n"==a.i.zm;b&&!c&&H(a.na,"relevance")};function UA(a,b,c,d){W.call(this);this.V=a;this.N=b;this.s=c;this.O=d;this.ma=qc&&d&&d.isOgenEligibleMobileViewport;this.g.ka(a.ub(),"change",r(this.update,this,"r",null))}n(UA,W); UA.prototype.update=function(a,b,c){this.i?(this.i.Ha(),this.i=null):(this.V.O&&(this.o=this.V.O),this.j=new KA(this.O));var d=this.V.ub().getQuery();b&&!b.search_query_escaped&&0a.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.o&&H(a.o,String(1==a.s?b:a.i-b))}eB.prototype.wa=function(){eB.ta.wa.call(this);delete this.g;this.j.Ha();this.j=null};function gB(a,b,c,d,e){aB.call(this,a,b,null,!0);this.kb=c;this.Tb=d;this.Ca=e}n(gB,aB); gB.prototype.Va=function(){aB.prototype.Va.call(this);this.s=hB(this,"Name","input");this.tb=hB(this,"Description (optional)","textarea");var a=this.Kb(),b=C("DIV",{"class":"ccd-label"}),c=F("span");c.textContent="Visibility";b.appendChild(c);a.appendChild(b);a=C("SPAN",{className:"ccd-mode-indicator"});c=C("IMG",{src:"/googlebooks/images/sharing_public.gif",style:"vertical-align:-2px;padding:0 2px"});var d=F("span");d.textContent="Public";a.appendChild(c);a.appendChild(d); b.appendChild(a);c=C("SPAN",{className:"ccd-mode-indicator"});d=C("IMG",{src:"/googlebooks/images/sharing_private.gif",style:"vertical-align:-2px;"});var e=F("span");e.textContent="Private";c.appendChild(d);c.appendChild(e);b.appendChild(c);d=C("SPAN",{"class":"ccd-mode-link"});d.textContent="Make public";b.appendChild(d);O(d,"click",r(this.Ka,this,!0));e=C("SPAN",{"class":"ccd-mode-link"});e.textContent="Make private";b.appendChild(e);O(e,"click",r(this.Ka,this,!1));this.Ge=[a,e];this.Fe=[c,d];null!= this.Ca&&(cf(this.Ca,{"class":"ccd-mode-link"}),b.appendChild(this.Ca));this.Ka(!0);this.na=C("DIV",{"class":"ccd-error"});this.Kb().appendChild(this.na);this.Xb=C("P","ccd-footnote","Please note that the contents and title of Public bookshelves can be viewed and shared by others.");this.Kb().appendChild(this.Xb);this.i&&iB(this);Yo.IsZipitFolderCollectionEnabled||(b=this.j,a=Dn(b,"ok"),J(a,"fontWeight","bold"),x(a,"gb-button"),x(Dn(b,"cancel"),"gb-button"))}; function iB(a){a.s.value=Ie(a.i.lb());a.s.disabled=a.i.O;a.tb.value=Ie(a.i.Zg());a.Ka(1==a.i.He);a.s.disabled&&J(a.s,"background","#f2f2f2")}function hB(a,b,c){var d=a.Kb();a=C("DIV",{"class":"gb-bookshelf-dialog-container"});d.appendChild(a);d=C("DIV",{"class":"ccd-label"});N(d,mi(b));a.appendChild(d);b=C(c,{"class":"ccd-input"});"input"==c?(cf(b,{type:"text"}),b.setAttribute("maxlength",100)):"textarea"==c&&(cf(b,{rows:6,cols:50}),new eB(b,F("span"),500));a.appendChild(b);return b} gB.prototype.Ka=function(a){this.Ee=a;v(this.Ge,function(b){M(b,a)});v(this.Fe,function(b){M(b,!a)})}; gB.prototype.Ua=function(a){var b=this.s.value;if("cancel"==a.key)return!0;if(Ob(b))return this.na.textContent="Please enter a title for this bookshelf.",!1;if(this.Tb&&!this.Tb(b))return this.na.textContent="Another bookshelf already has that title. Please enter a different title.",!1;a=this.i||new Fu;a.Jc=b;a.o=this.tb.value;a.He=this.Ee?1:2;if(this.i){b=this.kb;var c=new R(b.Aq);S(c,"as_coll",a.getId());Ru(c,a,r(b.N,b))}else b=this.kb,Ru(b.o,a,r(b.s,b,!0));return!0}; gB.prototype.wa=function(){delete this.kb;delete this.Ca;delete this.i;delete this.na;delete this.Xb;delete this.s;delete this.tb;delete this.Tb;aB.prototype.wa.call(this)};function jB(a,b,c,d,e){W.call(this);this.O=a;this.j=b;this.N=c;this.i=d;this.O&&(this.o=jb(this.O.childNodes,kB),this.i&&vb(this.o,jb(this.i.childNodes,kB)));this.s=e;U(r(this.Mr,this))}u(jB,W);f=jB.prototype;f.Mr=function(){this.j&&this.i&&this.g.ka(this.j,"click",this.zq);this.N&&this.g.ka(this.N,"click",this.Tt);this.g.ka(this.s,"add",this.Zs)}; function kB(a){var b=Ye("SPAN","sidebar-collection-title",a)[0];b||(b=Ye("SPAN","hp-collection-title",a)[0]);if(!b)return"";a=Pb(Ee(If(b)));return Pb(a.split("(")[0])}f.Tt=function(){var a=new gB("Create new bookshelf","Create bookshelf",this.s,r(this.lv,this));a.render();a.Da(!0)};f.lv=function(a){var b=Pb(Ee(a)).toLowerCase();return!kb(this.o,function(c){return c.toLowerCase()==b})}; f.Zs=function(a){a=a.shelf;var b=Pb(Ee(a.lb())),c=1==a.He;this.o.push(b);var d=new R("/books");xu(d);S(d,"as_coll",a.getId());S(d,"source","gbs_lp_bookshelf_list");if(Yo.IsBooksUnifiedLeftNavEnabled){a=C("LI",{"class":"left-nav-shelf-item"});var e=C("A",{"class":"sidebar-link"});pe(e,d.toString());d=C("SPAN");x(d,"sidebar-collection-title");N(d,ql(b+" (0)",{df:"038e33c2-d414-44e2-bbe6-927f8ace3e86"}));e.appendChild(d);a.appendChild(e);c=B("hidden-my-library-expanded");sf(a,c);$A(!0,"my-library")}else a= F("DIV"),e=C("A",{"class":"hp-bookshelf-link",style:"line-height:19px"}),pe(e,d.toString()),d=C("SPAN",{"class":"hp-collection-title"}),N(d,ql(b,{df:"0b6daedb-ff6d-4634-9ac2-c45d944e2b5e"})),e.appendChild(d),a.appendChild(e),b=c?"Public bookshelf":"Private bookshelf",c=C("IMG",{"class":"hp-bookshelf-access",src:"/googlebooks/images/sharing_"+(c?"public":"private")+".gif",title:b,alt:b,width:14,height:14}),a.appendChild(c),c=C("DIV",{style:"clear:both"}),a.appendChild(c),tf(a,B("csStart"))}; f.zq=function(a){a.preventDefault();a=!Bh(this.i);M(this.i,a);a?(Wr(this.j,9,this.i,8),200 tractor engines