/* JS */ gapi.loaded_3(function(_){var window=this;
_.qu=function(a,b){this.Ja=a||new _.wg;this.xv=(0,_.u)(this.fv,this);this.wk=(0,_.u)(this.gv,this);this.Xm=!!b};_.C(_.qu,_.td);_.g=_.qu.prototype;_.g.Lb=!1;_.g.U=null;_.g.Xa=null;_.g.Ab=null;_.g.od=null;_.g.Ma=function(){this.ya();return this.od};
_.g.TC=function(){var a=this.Ja;this.Ab=a.T("IFRAME",{frameborder:0,style:"border:0;left:0;position:absolute;top:0;vertical-align:bottom;z-index:1101",src:_.L?'javascript:""':"javascript:undefined"});_.R(this.Ab,!1);_.gt(this.Ab,0);this.Xa=a.T("DIV",{style:"background:#fff;display:none;left:0;position:absolute;top:0;z-index:1101"});_.R(this.Xa,!1);_.gt(this.Xa,.5)};_.g.Hm=function(a,b,c){a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent("on"+b,c)};
_.g.oo=function(a,b,c){a.removeEventListener?a.removeEventListener(b,c,!1):a.detachEvent("on"+b,c)};_.g.aC=function(){this.Xa&&(this.Hm(this.Xa,"scroll",this.wk),this.Hm(this.Xa,this.Qt(),this.wk))};_.g.vv=function(){this.Xa&&(this.oo(this.Xa,"scroll",this.wk),this.oo(this.Xa,this.Qt(),this.wk))};_.g.Qt=function(){return"undefined"!=typeof this.Ja.yb().h4?"DOMMouseScroll":"mousewheel"};_.g.$B=function(){this.Hm(this.Ja.yb(),"resize",this.xv)};_.g.uv=function(){this.oo(this.Ja.yb(),"resize",this.xv)};
_.g.ya=function(){if(!this.U){this.TC();var a=this.Ja,b=this.U=a.T("DIV",{style:"background:#fff;border:1px solid #bebebe;box-shadow:rgba(0,0,0,.2) 0 4px 16px;height:auto;overflow:hidden;position:absolute;width:auto;z-index:1101;-moz-box-shadow:rgba(0,0,0,.2) 0 4px 16px;-webkit-box-shadow:rgba(0,0,0,.2) 0 4px 16px",name:"dialog"},this.od=a.T("DIV"));b.setAttribute("role","dialog");b.I6="dialog";this.U.style.visibility="hidden";_.Ys(this.U,-1E4,-1E4);a=a.ub().body;a.appendChild(this.Ab);a.appendChild(this.Xa);
a.appendChild(this.U)}};_.g.setVisible=function(a){a!=this.Lb&&(this.U||this.ya(),a?(this.nj(),this.$B(),this.aC()):(this.uv(),this.vv()),_.R(this.Ab,a),_.R(this.Xa,a),a?this.hf():(this.U.style.visibility="hidden",_.Ys(this.U,-1E4,-1E4)),(this.Lb=a)&&"hidden"==this.U.style.visibility&&(this.U.style.visibility="visible"),a?this.focus():this.Xm&&this.Ea())};_.g.Ga=function(){return this.Lb};_.g.focus=function(){try{this.U.focus()}catch(a){}};
_.g.nj=function(){_.R(this.Ab,!1);_.R(this.Xa,!1);var a=this.Ja.ub(),b=_.rs(_.Cs(a)||window),c=Math.max(a.body.scrollWidth,b.width),a=Math.max(a.body.scrollHeight,b.height);_.R(this.Ab,!0);_.dt(this.Ab,c,a);_.R(this.Xa,!0);_.dt(this.Xa,c,a)};_.g.fv=function(){this.nj();this.hf()};_.g.gv=function(a){a.preventDefault?a.preventDefault():a.returnValue=!1;a.stopPropagation?a.stopPropagation():a.cancelBubble=!0};
_.g.hf=function(){var a=this.U,b=_.ft(a),c=this.Ja,d=_.qs(c.Db),c=_.rs(c.yb());_.Ys(a,Math.max(d.x+(c.width-b.width)/2,0),Math.max(d.y+(c.height-b.height)/2,0))};_.g.setSize=function(a,b){_.dt(this.od,a,b);this.hf()};_.g.va=function(){this.Lb&&(this.uv(),this.vv());this.U&&(_.Lg(this.U),this.U=null);this.Xa&&(_.Lg(this.Xa),this.Xa=null);this.Ab&&(_.Lg(this.Ab),this.Ab=null)};

var ru=function(a,b){_.Ft.call(this,a);this.wf=b};_.C(ru,_.Ht);_.g=ru.prototype;_.g.resize=function(a){var b=a.height||Number(this.Ca.height)||this.wf.Ma().style.height;a=a.width||Number(this.Ca.width)||this.wf.Ma().style.width;var c=0<a&&0<b;0>a&&(a=0);0>b&&(b=0);var d=_.Ls(this.ma.Ba()),e=this.Ca.heightPadding||0;d.style.width=a+"px";d.style.height=b+e+"px";this.wf.setSize(a,b);this.wf.setVisible(c);return!0};
_.g.po=function(){this.wf.ya();_.Q(this.wf.Ma().parentNode,"overflow","visible");this.wf.setSize(Number(this.Ca.width)||100,Number(this.Ca.height)||100)};_.g.open=function(){this.ma.Rd("resize",(0,_.u)(this.resize,this));this.po();this.ma.Jg(this.wf.Ma());this.ma.eg(this.wf.Ma())};
_.g.Pd=function(a){var b=_.Ls(this.ma.Ba());a=Number(a.height)||Number(this.Ca.height)||this.ma.height||this.wf.Ma().style.height;var c=Number(this.Ca.width)||this.ma.width||this.wf.Ma().style.width,d=Number(this.Ca.heightPadding)||0;b.style.width=c+"px";b.style.height=a+d+"px";this.wf.setSize(c,a);this.wf.setVisible(null!=this.Ca.show?this.Ca.show:!0)};_.g.close=function(){this.wf.va()};_.su=function(a){var b=new _.qu;b.Ma().id="glass-content";a=new ru(a,b);return a=new _.Qt(a)};

_.H.Hc("glass",_.su);
_.Td=function(a){if(a.Wd&&"function"==typeof a.Wd)return a.Wd();if(_.t(a))return a.split("");if(_.Vc(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return _.yd(a)};_.Ud=function(a){if(a.tf&&"function"==typeof a.tf)return a.tf();if(!a.Wd||"function"!=typeof a.Wd){if(_.Vc(a)||_.t(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return _.zd(a)}}; _.Vd=function(a,b,c){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,c);else if(_.Vc(a)||_.t(a))(0,_.jd)(a,b,c);else for(var d=_.Ud(a),e=_.Td(a),f=e.length,h=0;h<f;h++)b.call(c,e[h],d&&d[h],a)};

var tu,vu,Iu,Du,Nu,Eu,Gu,Fu,Ku,Hu,Ou;tu=/#|$/;_.uu=function(a,b){var c=a.search(tu),d;a:{d=0;for(var e=b.length;0<=(d=a.indexOf(b,d))&&d<c;){var f=a.charCodeAt(d-1);if(38==f||63==f)if(f=a.charCodeAt(d+e),!f||61==f||38==f||35==f)break a;d+=e+1}d=-1}if(0>d)return null;e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return(0,window.decodeURIComponent)(a.substr(d,e-d).replace(/\+/g," "))};
vu=function(a,b){if(a)for(var c=a.split("&"),d=0;d<c.length;d++){var e=c[d].indexOf("="),f,h=null;0<=e?(f=c[d].substring(0,e),h=c[d].substring(e+1)):f=c[d];b(f,h?(0,window.decodeURIComponent)(h.replace(/\+/g," ")):"")}};
_.wu=function(a,b){this.Wf=this.Sg=this.Ng="";this.jj=null;this.cE=this.pk="";this.lh=this.oF=!1;var c;a instanceof _.wu?(this.lh=_.na(b)?b:a.lh,_.xu(this,a.Ng),_.yu(this,a.Sg),_.zu(this,a.Wf),_.Au(this,a.jj),this.setPath(a.getPath()),_.Bu(this,a.Df.clone()),this.Ao(a.oy())):a&&(c=String(a).match(_.Oh))?(this.lh=!!b,_.xu(this,c[1]||"",!0),_.yu(this,c[2]||"",!0),_.zu(this,c[3]||"",!0),_.Au(this,c[4]),this.setPath(c[5]||"",!0),_.Bu(this,c[6]||"",!0),this.Ao(c[7]||"",!0)):(this.lh=!!b,this.Df=new _.Cu(null,
0,this.lh))};_.wu.prototype.toString=function(){var a=[],b=this.Ng;b&&a.push(Du(b,Eu,!0),":");var c=this.Wf;if(c||"file"==b)a.push("//"),(b=this.Sg)&&a.push(Du(b,Eu,!0),"@"),a.push(_.Nh(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.jj,null!=c&&a.push(":",String(c));if(c=this.getPath())this.Wf&&"/"!=c.charAt(0)&&a.push("/"),a.push(Du(c,"/"==c.charAt(0)?Fu:Gu,!0));(c=this.Df.toString())&&a.push("?",c);(c=this.oy())&&a.push("#",Du(c,Hu));return a.join("")};
_.wu.prototype.resolve=function(a){var b=this.clone(),c=!!a.Ng;c?_.xu(b,a.Ng):c=!!a.Sg;c?_.yu(b,a.Sg):c=!!a.Wf;c?_.zu(b,a.Wf):c=null!=a.jj;var d=a.getPath();if(c)_.Au(b,a.jj);else if(c=!!a.pk){if("/"!=d.charAt(0))if(this.Wf&&!this.pk)d="/"+d;else{var e=b.getPath().lastIndexOf("/");-1!=e&&(d=b.getPath().substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(-1!=e.indexOf("./")||-1!=e.indexOf("/.")){for(var d=_.bd(e,"/"),e=e.split("/"),f=[],h=0;h<e.length;){var k=e[h++];"."==k?d&&h==e.length&&f.push(""):
".."==k?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),d&&h==e.length&&f.push("")):(f.push(k),d=!0)}d=f.join("/")}else d=e}c?b.setPath(d):c=a.Xp();c?_.Bu(b,Iu(a.Df.toString())):c=!!a.cE;c&&b.Ao(a.oy());return b};_.wu.prototype.clone=function(){return new _.wu(this)};_.xu=function(a,b,c){_.Ju(a);a.Ng=c?Iu(b,!0):b;a.Ng&&(a.Ng=a.Ng.replace(/:$/,""));return a};_.yu=function(a,b,c){_.Ju(a);a.Sg=c?Iu(b):b;return a};_.zu=function(a,b,c){_.Ju(a);a.Wf=c?Iu(b,!0):b;return a};
_.Au=function(a,b){_.Ju(a);if(b){b=Number(b);if((0,window.isNaN)(b)||0>b)throw Error("O`"+b);a.jj=b}else a.jj=null;return a};_.wu.prototype.getPath=function(){return this.pk};_.wu.prototype.setPath=function(a,b){_.Ju(this);this.pk=b?Iu(a,!0):a;return this};_.wu.prototype.Xp=function(){return""!==this.Df.toString()};_.Bu=function(a,b,c){_.Ju(a);b instanceof _.Cu?(a.Df=b,a.Df.XH(a.lh)):(c||(b=Du(b,Ku)),a.Df=new _.Cu(b,0,a.lh));return a};_.wu.prototype.Kb=function(a,b){return _.Bu(this,a,b)};
_.wu.prototype.Wi=function(){return this.Df.toString()};_.Lu=function(a,b,c){_.Ju(a);a.Df.set(b,c);return a};_.wu.prototype.hh=function(a){return this.Df.get(a)};_.wu.prototype.oy=function(){return this.cE};_.wu.prototype.Ao=function(a,b){_.Ju(this);this.cE=b?Iu(a):a;return this};_.Ju=function(a){if(a.oF)throw Error("P");};_.wu.prototype.XH=function(a){this.lh=a;this.Df&&this.Df.XH(a);return this};_.Mu=function(a){return a instanceof _.wu?a.clone():new _.wu(a,void 0)};
Iu=function(a,b){return a?b?(0,window.decodeURI)(a.replace(/%25/g,"%2525")):(0,window.decodeURIComponent)(a):""};Du=function(a,b,c){return _.t(a)?(a=(0,window.encodeURI)(a).replace(b,Nu),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};Nu=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};Eu=/[#\/\?@]/g;Gu=/[\#\?:]/g;Fu=/[\#\?]/g;Ku=/[\#\?@]/g;Hu=/#/g;_.Cu=function(a,b,c){this.uc=this.ud=null;this.Dg=a||null;this.lh=!!c};
Ou=function(a){a.ud||(a.ud=new _.be,a.uc=0,a.Dg&&vu(a.Dg,function(b,c){a.add((0,window.decodeURIComponent)(b.replace(/\+/g," ")),c)}))};_.g=_.Cu.prototype;_.g.Yb=function(){Ou(this);return this.uc};_.g.add=function(a,b){Ou(this);this.Dg=null;a=Pu(this,a);var c=this.ud.get(a);c||this.ud.set(a,c=[]);c.push(b);this.uc+=1;return this};_.g.remove=function(a){Ou(this);a=Pu(this,a);return this.ud.Pi(a)?(this.Dg=null,this.uc-=this.ud.get(a).length,this.ud.remove(a)):!1};
_.g.clear=function(){this.ud=this.Dg=null;this.uc=0};_.g.isEmpty=function(){Ou(this);return 0==this.uc};_.g.Pi=function(a){Ou(this);a=Pu(this,a);return this.ud.Pi(a)};_.g.Qm=function(a){var b=this.Wd();return _.pd(b,a)};_.g.tf=function(){Ou(this);for(var a=this.ud.Wd(),b=this.ud.tf(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
_.g.Wd=function(a){Ou(this);var b=[];if(_.t(a))this.Pi(a)&&(b=_.Yd(b,this.ud.get(Pu(this,a))));else{a=this.ud.Wd();for(var c=0;c<a.length;c++)b=_.Yd(b,a[c])}return b};_.g.set=function(a,b){Ou(this);this.Dg=null;a=Pu(this,a);this.Pi(a)&&(this.uc-=this.ud.get(a).length);this.ud.set(a,[b]);this.uc+=1;return this};_.g.get=function(a,b){var c=a?this.Wd(a):[];return 0<c.length?String(c[0]):b};_.g.setValues=function(a,b){this.remove(a);0<b.length&&(this.Dg=null,this.ud.set(Pu(this,a),_.Xd(b)),this.uc+=b.length)};
_.g.toString=function(){if(this.Dg)return this.Dg;if(!this.ud)return"";for(var a=[],b=this.ud.tf(),c=0;c<b.length;c++)for(var d=b[c],e=_.Nh(d),d=this.Wd(d),f=0;f<d.length;f++){var h=e;""!==d[f]&&(h+="="+_.Nh(d[f]));a.push(h)}return this.Dg=a.join("&")};_.g.clone=function(){var a=new _.Cu;a.Dg=this.Dg;this.ud&&(a.ud=this.ud.clone(),a.uc=this.uc);return a};var Pu=function(a,b){var c=String(b);a.lh&&(c=c.toLowerCase());return c};
_.Cu.prototype.XH=function(a){a&&!this.lh&&(Ou(this),this.Dg=null,this.ud.forEach(function(a,c){var b=c.toLowerCase();c!=b&&(this.remove(c),this.setValues(b,a))},this));this.lh=a};_.Cu.prototype.extend=function(a){for(var b=0;b<arguments.length;b++)_.Vd(arguments[b],function(a,b){this.add(b,a)},this)};

var mR={Sda:"play-books-web",Tda:"ge-web-app",Vda:"play-store-web"};var nR=null,oR=function(){_.Lg(nR)},pR=function(){oR();var a=window.document.getElementById("glass-content");a&&(a=a.parentNode)&&(a.style.border="none",a=a.previousSibling)&&(a.style.opacity=.8)},qR=function(){var a=window.document.getElementById("glass-content");a&&a.scrollIntoView()},sR=function(a,b){b.register("play.review.write.outcome",function(c){null!=c&&"OK"===c.responseCode?a.resolve(c):a.reject(c);b.close()},rR);b.register("play.review.scrollIntoView",qR,rR)},rR=function(a){a=a.qb();var b;
b=tR();b=_.Au(_.zu(_.yu(_.xu(new _.wu,b.Ng),b.Sg),b.Wf),b.jj).toString();return a===b},uR=function(a,b){oR();a.reject({responseCode:b||"ERROR"})},tR=function(){var a="https://play.google.com/store/ereview";/^http(s?):\/\/(.*\.)?google\.com(:\d+)?$/.test(window.location.origin||window.location.protocol+"//"+window.location.host)&&(a=_.E("play/review/debug/baseurl","https://play.google.com/store/ereview"));a=new _.wu(a);a.oF=!0;return a.clone()};
_.D("gapi.playreview.open",function(a){var b=_.Ym(),c=a.id;if(!_.t(c)||_.ad(_.cd(c)))return uR(b,"INVALID_DOC_ID"),b.promise;nR=_.Ks("DIV",{style:"background-color: #ddd;display: block;left: 0;margin: 0;opacity: 0.65;padding: 0;position: absolute;right: 0;top: 0;width: auto"});var d=window.document.body,e=window.document.documentElement;nR.style.height=Math.max(d.scrollHeight,d.offsetHeight,e.clientHeight,e.scrollHeight,e.offsetHeight)+"px";e=_.Ks("DIV",{style:"background-image: url(https://ssl.gstatic.com/android/market_images/web/loading_dark_large.gif);height: 150px;left: 50vw;margin-left: -75px;margin-top: -75px;position: fixed;top: 50vh;width: 150px"});
nR.appendChild(e);d.appendChild(nR);_.Dh(nR,["click","touchstart"],oR,!1);c={docId:c,hl:_.F.Xc().hl||_.E("lang"),authuser:_.E("googleapis.config/sessionIndex")||"0",width:window.innerWidth};_.Ad(mR,a.source)&&(c.source=a.source);a=tR().clone().toString();a=_.Rm(_.Sm(_.Om(_.Lm((new _.Km).we("glass").setUrl(a),c)),{_ready:pR}),rR);_.Jm(_.Nm(a).Di(1).hm(1));c=_.Aa(sR,b);d=_.Aa(uR,b,void 0);_.an.open(a.value()).then(c,d);return b.promise});

});
// Google Inc.
