try{
var k,aa=aa||{},n=this,p=function(b){return void 0!==b},ba=function(b){b=b.split(".");for(var c=n,d;d=b.shift();)if(null!=c[d])c=c[d];else return null;return c},q=function(){},ca=function(b){b.pb=function(){return b.hs?b.hs:b.hs=new b}},da=function(b){var c=typeof b;if("object"==c)if(b){if(b instanceof Array)return"array";if(b instanceof Object)return c;var d=Object.prototype.toString.call(b);if("[object Window]"==d)return"object";if("[object Array]"==d||"number"==typeof b.length&&"undefined"!=typeof b.splice&&
"undefined"!=typeof b.propertyIsEnumerable&&!b.propertyIsEnumerable("splice"))return"array";if("[object Function]"==d||"undefined"!=typeof b.call&&"undefined"!=typeof b.propertyIsEnumerable&&!b.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==c&&"undefined"==typeof b.call)return"object";return c},ea=function(b){return null!=b},fa=function(b){return"array"==da(b)},ga=function(b){var c=da(b);return"array"==c||"object"==c&&"number"==typeof b.length},ia=function(b){return ha(b)&&
"function"==typeof b.getFullYear},ja=function(b){return"string"==typeof b},ka=function(b){return"number"==typeof b},la=function(b){return"function"==da(b)},ha=function(b){var c=typeof b;return"object"==c&&null!=b||"function"==c},pa=function(b){return b[ma]||(b[ma]=++na)},ma="closure_uid_"+(1E9*Math.random()>>>0),na=0,qa=function(b,c,d){return b.call.apply(b.bind,arguments)},ra=function(b,c,d){if(!b)throw Error();if(2<arguments.length){var e=Array.prototype.slice.call(arguments,2);return function(){var d=
Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(d,e);return b.apply(c,d)}}return function(){return b.apply(c,arguments)}},t=function(b,c,d){t=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?qa:ra;return t.apply(null,arguments)},sa=function(b,c){var d=Array.prototype.slice.call(arguments,1);return function(){var c=d.slice();c.push.apply(c,arguments);return b.apply(this,c)}},ta=Date.now||function(){return+new Date},va=function(b){if(n.execScript)n.execScript(b,
"JavaScript");else if(n.eval)if(null==ua&&(n.eval("var _et_ = 1;"),"undefined"!=typeof n._et_?(delete n._et_,ua=!0):ua=!1),ua)n.eval(b);else{var c=n.document,d=c.createElement("SCRIPT");d.type="text/javascript";d.defer=!1;d.appendChild(c.createTextNode(b));c.body.appendChild(d);c.body.removeChild(d)}else throw Error("b");},ua=null,wa=function(b,c){var d=b.split("."),e=n;d[0]in e||!e.execScript||e.execScript("var "+d[0]);for(var f;d.length&&(f=d.shift());)!d.length&&p(c)?e[f]=c:e[f]?e=e[f]:e=e[f]=
{}},v=function(b,c){function d(){}d.prototype=c.prototype;b.r=c.prototype;b.prototype=new d;b.prototype.constructor=b;b.MB=function(b,d,g){for(var h=Array(arguments.length-2),l=2;l<arguments.length;l++)h[l-2]=arguments[l];return c.prototype[d].apply(b,h)}};
var ya=function(b){if(Error.captureStackTrace)Error.captureStackTrace(this,ya);else{var c=Error().stack;c&&(this.stack=c)}b&&(this.message=String(b))};v(ya,Error);ya.prototype.name="CustomError";var za;var Aa=function(b,c){return 0==b.lastIndexOf(c,0)},Ba=function(b,c){var d=b.length-c.length;return 0<=d&&b.indexOf(c,d)==d},Da=function(b,c){return 0==Ca(c,b.substr(0,c.length))},Ea=function(b){return/^[\s\xa0]*$/.test(b)},Fa=function(b){return b.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")},Ga=String.prototype.trim?function(b){return b.trim()}:function(b){return b.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},Ca=function(b,c){var d=String(b).toLowerCase(),e=String(c).toLowerCase();return d<
e?-1:d==e?0:1},Ja=function(b){return decodeURIComponent(b.replace(/\+/g," "))},Ka=function(b,c){return b.replace(/(\r\n|\r|\n)/g,c?"<br />":"<br>")},Sa=function(b){if(!La.test(b))return b;-1!=b.indexOf("&")&&(b=b.replace(Ma,"&amp;"));-1!=b.indexOf("<")&&(b=b.replace(Na,"&lt;"));-1!=b.indexOf(">")&&(b=b.replace(Oa,"&gt;"));-1!=b.indexOf('"')&&(b=b.replace(Pa,"&quot;"));-1!=b.indexOf("'")&&(b=b.replace(Qa,"&#39;"));-1!=b.indexOf("\x00")&&(b=b.replace(Ra,"&#0;"));return b},Ma=/&/g,Na=/</g,Oa=/>/g,Pa=
/"/g,Qa=/'/g,Ra=/\x00/g,La=/[\x00&<>"']/,Ta=function(b,c){b.length>c&&(b=b.substring(0,c-3)+"...");return b},Ua=function(b){return String(b).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},Va=function(b,c){return Array(c+1).join(b)},Wa=function(b,c){var d=p(void 0)?b.toFixed(void 0):String(b),e=d.indexOf(".");-1==e&&(e=d.length);return Va("0",Math.max(0,c-e))+d},x=function(b){return null==b?"":String(b)},Xa=function(){return Math.floor(2147483648*Math.random()).toString(36)+
Math.abs(Math.floor(2147483648*Math.random())^ta()).toString(36)},Ya=function(b,c){return b<c?-1:b>c?1:0},Za=function(b){for(var c=0,d=0;d<b.length;++d)c=31*c+b.charCodeAt(d),c%=4294967296;return c};Math.random();var $a=function(b){return String(b).replace(/\-([a-z])/g,function(b,d){return d.toUpperCase()})},ab=function(b){var c=ja(void 0)?Ua(void 0):"\\s";return b.replace(new RegExp("(^"+(c?"|["+c+"]+":"")+")([a-z])","g"),function(b,c,f){return c+f.toUpperCase()})};
var bb=function(){};var cb=Array.prototype,db=cb.indexOf?function(b,c,d){return cb.indexOf.call(b,c,d)}:function(b,c,d){d=null==d?0:0>d?Math.max(0,b.length+d):d;if(ja(b))return ja(c)&&1==c.length?b.indexOf(c,d):-1;for(;d<b.length;d++)if(d in b&&b[d]===c)return d;return-1},eb=cb.lastIndexOf?function(b,c,d){return cb.lastIndexOf.call(b,c,null==d?b.length-1:d)}:function(b,c,d){d=null==d?b.length-1:d;0>d&&(d=Math.max(0,b.length+d));if(ja(b))return ja(c)&&1==c.length?b.lastIndexOf(c,d):-1;for(;0<=d;d--)if(d in b&&b[d]===
c)return d;return-1},y=cb.forEach?function(b,c,d){cb.forEach.call(b,c,d)}:function(b,c,d){for(var e=b.length,f=ja(b)?b.split(""):b,g=0;g<e;g++)g in f&&c.call(d,f[g],g,b)},fb=function(b,c){for(var d=ja(b)?b.split(""):b,e=b.length-1;0<=e;--e)e in d&&c.call(void 0,d[e],e,b)},gb=cb.filter?function(b,c,d){return cb.filter.call(b,c,d)}:function(b,c,d){for(var e=b.length,f=[],g=0,h=ja(b)?b.split(""):b,l=0;l<e;l++)if(l in h){var m=h[l];c.call(d,m,l,b)&&(f[g++]=m)}return f},hb=cb.map?function(b,c,d){return cb.map.call(b,
c,d)}:function(b,c,d){for(var e=b.length,f=Array(e),g=ja(b)?b.split(""):b,h=0;h<e;h++)h in g&&(f[h]=c.call(d,g[h],h,b));return f},ib=cb.reduce?function(b,c,d,e){e&&(c=t(c,e));return cb.reduce.call(b,c,d)}:function(b,c,d,e){var f=d;y(b,function(d,h){f=c.call(e,f,d,h,b)});return f},jb=cb.some?function(b,c,d){return cb.some.call(b,c,d)}:function(b,c,d){for(var e=b.length,f=ja(b)?b.split(""):b,g=0;g<e;g++)if(g in f&&c.call(d,f[g],g,b))return!0;return!1},lb=cb.every?function(b,c,d){return cb.every.call(b,
c,d)}:function(b,c,d){for(var e=b.length,f=ja(b)?b.split(""):b,g=0;g<e;g++)if(g in f&&!c.call(d,f[g],g,b))return!1;return!0},mb=function(b,c){var d=0;y(b,function(b,f,g){c.call(void 0,b,f,g)&&++d},void 0);return d},ob=function(b,c,d){c=nb(b,c,d);return 0>c?null:ja(b)?b.charAt(c):b[c]},nb=function(b,c,d){for(var e=b.length,f=ja(b)?b.split(""):b,g=0;g<e;g++)if(g in f&&c.call(d,f[g],g,b))return g;return-1},pb=function(b,c){return 0<=db(b,c)},qb=function(b,c){pb(b,c)||b.push(c)},sb=function(b,c){var d=
db(b,c),e;(e=0<=d)&&rb(b,d);return e},rb=function(b,c){cb.splice.call(b,c,1)},tb=function(b,c){var d=nb(b,c,void 0);0<=d&&rb(b,d)},ub=function(b){return cb.concat.apply(cb,arguments)},vb=function(b){var c=b.length;if(0<c){for(var d=Array(c),e=0;e<c;e++)d[e]=b[e];return d}return[]},wb=function(b,c){for(var d=1;d<arguments.length;d++){var e=arguments[d];if(ga(e)){var f=b.length||0,g=e.length||0;b.length=f+g;for(var h=0;h<g;h++)b[f+h]=e[h]}else b.push(e)}},yb=function(b,c,d,e){cb.splice.apply(b,xb(arguments,
1))},xb=function(b,c,d){return 2>=arguments.length?cb.slice.call(b,c):cb.slice.call(b,c,d)},zb=function(b,c,d){c=c||b;d=d||function(){return ha(h)?"o"+pa(h):(typeof h).charAt(0)+h};for(var e={},f=0,g=0;g<b.length;){var h=b[g++],l=d(h);Object.prototype.hasOwnProperty.call(e,l)||(e[l]=!0,c[f++]=h)}c.length=f},Bb=function(b,c){b.sort(c||Ab)},Cb=function(b,c){for(var d=0;d<b.length;d++)b[d]={index:d,value:b[d]};var e=c||Ab;Bb(b,function(b,c){return e(b.value,c.value)||b.index-c.index});for(d=0;d<b.length;d++)b[d]=
b[d].value},Eb=function(b,c){if(!ga(b)||!ga(c)||b.length!=c.length)return!1;for(var d=b.length,e=Db,f=0;f<d;f++)if(!e(b[f],c[f]))return!1;return!0},Ab=function(b,c){return b>c?1:b<c?-1:0},Db=function(b,c){return b===c},Fb=function(b,c){for(var d={},e=0;e<b.length;e++){var f=b[e],g=c.call(void 0,f,e,b);p(g)&&(d[g]||(d[g]=[])).push(f)}return d};
var Gb=function(b){return eval("("+b+")")},Jb=function(b){var c=[];Hb(new Ib,b,c);return c.join("")},Ib=function(){},Hb=function(b,c,d){switch(typeof c){case "string":Kb(c,d);break;case "number":d.push(isFinite(c)&&!isNaN(c)?c:"null");break;case "boolean":d.push(c);break;case "undefined":d.push("null");break;case "object":if(null==c){d.push("null");break}if(fa(c)){var e=c.length;d.push("[");for(var f="",g=0;g<e;g++)d.push(f),Hb(b,c[g],d),f=",";d.push("]");break}d.push("{");e="";for(f in c)Object.prototype.hasOwnProperty.call(c,
f)&&(g=c[f],"function"!=typeof g&&(d.push(e),Kb(f,d),d.push(":"),Hb(b,g,d),e=","));d.push("}");break;case "function":break;default:throw Error("c`"+typeof c);}},Lb={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},Mb=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g,Kb=function(b,c){c.push('"',b.replace(Mb,function(b){if(b in Lb)return Lb[b];var c=b.charCodeAt(0),f="\\u";16>c?f+="000":256>c?f+="00":4096>c&&(f+= "0");return Lb[b]=f+c.toString(16)}),'"')};
var Nb=function(b,c,d){for(var e in b)c.call(d,b[e],e,b)},Ob=function(b,c){var d={},e;for(e in b)c.call(void 0,b[e],e,b)&&(d[e]=b[e]);return d},Pb=function(b,c){for(var d in b)if(c.call(void 0,b[d],d,b))break},Qb=function(b,c){for(var d in b)if(!c.call(void 0,b[d],d,b))break},Rb=function(b){var c=0,d;for(d in b)c++;return c},Sb=function(b){for(var c in b)return b[c]},Tb=function(b){var c=[],d=0,e;for(e in b)c[d++]=b[e];return c},Ub=function(b){var c=[],d=0,e;for(e in b)c[d++]=e;return c},Vb=function(b){for(var c in b)return!1;
return!0},Wb=function(b){var c={},d;for(d in b)c[d]=b[d];return c},Xb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),Yb=function(b,c){for(var d,e,f=1;f<arguments.length;f++){e=arguments[f];for(d in e)b[d]=e[d];for(var g=0;g<Xb.length;g++)d=Xb[g],Object.prototype.hasOwnProperty.call(e,d)&&(b[d]=e[d])}},Zb=function(b){var c=arguments.length;if(1==c&&fa(arguments[0]))return Zb.apply(null,arguments[0]);if(c%2)throw Error("e");for(var d={},e= 0;e<c;e+=2)d[arguments[e]]=arguments[e+1];return d},$b=function(b){var c=arguments.length;if(1==c&&fa(arguments[0]))return $b.apply(null,arguments[0]);for(var d={},e=0;e<c;e++)d[arguments[e]]=!0;return d};
var ac=function(b,c,d,e){this.a=b;this.cr=c;this.ae=d;this.Rp=e;this.by=0},z=function(){},A=function(b,c,d,e,f){b.a=null;c||(c=d?[d]:[]);b.j=d?String(d):void 0;b.g=0===d?-1:0;b.k=c;a:{if(b.k.length&&(c=b.k.length-1,(d=b.k[c])&&"object"==typeof d&&!fa(d))){b.e=c-b.g;b.b=d;break a}-1<e?(b.e=e,b.b=null):b.e=Number.MAX_VALUE}if(f)for(e=0;e<f.length;e++)c=f[e],c<b.e?(c+=b.g,b.k[c]=b.k[c]||bc):b.b[c]=b.b[c]||bc},bc=[],cc=function(b,c,d){for(var e=[],f=0;f<b.length;f++)e[f]=c.call(b[f],d,b[f]);return e},
dc=function(b,c,d,e,f){for(var g in d){var h=d[g],l=e.call(b,h);if(l){for(var m in h.cr)if(h.cr.hasOwnProperty(m))break;c[m]=h.Rp?h.by?cc(l,h.Rp,f):h.Rp(f,l):l}}},B=function(b,c){if(c<b.e){var d=c+b.g,e=b.k[d];return e===bc?b.k[d]=[]:e}e=b.b[c];return e===bc?b.b[c]=[]:e},D=function(b,c,d){c<b.e?b.k[c+b.g]=d:b.b[c]=d},E=function(b,c,d){b.a||(b.a={});if(!b.a[d]){var e=B(b,d);e&&(b.a[d]=new c(e))}return b.a[d]},F=function(b,c,d){b.a||(b.a={});if(!b.a[d]){for(var e=B(b,d),f=[],g=0;g<e.length;g++)f[g]=
new c(e[g]);b.a[d]=f}c=b.a[d];c==bc&&(c=b.a[d]=[]);return c},G=function(b,c,d){b.a||(b.a={});var e=d?d.toArray():d;b.a[c]=d;D(b,c,e)},ec=function(b,c,d){b.a||(b.a={});d=d||[];for(var e=[],f=0;f<d.length;f++)e[f]=d[f].toArray();b.a[c]=d;D(b,c,e)};z.prototype.toArray=function(){return this.k};z.prototype.toString=function(){return this.k.toString()};
z.prototype.getExtension=function(b){if(this.b){this.a||(this.a={});var c=b.a;return b.ae?(!this.a[c]&&this.b[c]&&(this.a[c]=new b.ae(this.b[c])),this.a[c]):this.b[c]}};
var gc=function(b){var c=fc;b.a||(b.a={});var d=b.e+b.g;b.k[d]||(b.b=b.k[d]={});d=c.a;c.ae?(b.a[d]=null,b.b[d]=null):b.b[d]=null},H=function(b){return new b.constructor(hc(b.toArray()))},hc=function(b){var c;if(fa(b)){for(var d=Array(b.length),e=0;e<b.length;e++)null!=(c=b[e])&&(d[e]="object"==typeof c?hc(c):c);return d}d={};for(e in b)null!=(c=b[e])&&(d[e]="object"==typeof c?hc(c):c);return d};
var jc=function(b){A(this,b,"di",-1,ic)};v(jc,z);var ic=[6,7,10,11,12];jc.prototype.L=function(){return H(this)};jc.Ta="di";var kc=function(b){A(this,b,"e",-1,null)};v(kc,z);kc.prototype.L=function(){return H(this)};kc.Ta="e";var lc=function(b){A(this,b,0,-1,null)};v(lc,z);lc.prototype.L=function(){return H(this)};var mc=function(b){A(this,b,"f.ri",-1,null)};v(mc,z);mc.prototype.L=function(){return H(this)};mc.Ta="f.ri";var nc=function(b){A(this,b,"xsrf",-1,null)};v(nc,z);nc.prototype.L=function(){return H(this)};nc.Ta="xsrf";nc.prototype.bi=function(b){D(this,1,b)};var oc=function(b,c){this.a={};this.b=b/(2*Math.PI);this.k=1/this.b;this.e=c/Math.PI;this.g=1/this.e};var pc;a:{var qc=n.navigator;if(qc){var rc=qc.userAgent;if(rc){pc=rc;break a}}pc=""}var sc=function(b){return-1!=pc.indexOf(b)};var tc=function(){return sc("Opera")||sc("OPR")},uc=function(){return sc("Edge")||sc("Trident")||sc("MSIE")},vc=function(){return(sc("Chrome")||sc("CriOS"))&&!tc()&&!uc()};var wc=function(){return sc("Edge")};var xc=function(){return sc("iPhone")&&!sc("iPod")&&!sc("iPad")};var yc=tc(),I=uc(),zc=sc("Gecko")&&!(-1!=pc.toLowerCase().indexOf("webkit")&&!wc())&&!(sc("Trident")||sc("MSIE"))&&!wc(),Ac=-1!=pc.toLowerCase().indexOf("webkit")&&!wc(),Bc=sc("Macintosh"),Cc=sc("Windows"),Dc=sc("Linux")||sc("CrOS"),Ec=sc("Android"),Fc=function(){var b=pc;if(zc)return/rv\:([^\);]+)(\)|;)/.exec(b);if(I&&wc())return/Edge\/([\d\.]+)/.exec(b);if(I)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(b);if(Ac)return/WebKit\/(\S+)/.exec(b)},Gc=function(){var b=n.document;return b?b.documentMode:
void 0},Hc=function(){if(yc&&n.opera){var b=n.opera.version;return la(b)?b():b}var b="",c=Fc();c&&(b=c?c[1]:"");return I&&!wc()&&(c=Gc(),c>parseFloat(b))?String(c):b}(),Ic={},Jc=function(b){var c;if(!(c=Ic[b])){c=0;for(var d=Ga(String(Hc)).split("."),e=Ga(String(b)).split("."),f=Math.max(d.length,e.length),g=0;0==c&&g<f;g++){var h=d[g]||"",l=e[g]||"",m=RegExp("(\\d*)(\\D*)","g"),r=RegExp("(\\d*)(\\D*)","g");do{var u=m.exec(h)||["","",""],w=r.exec(l)||["","",""];if(0==u[0].length&&0==w[0].length)break;
c=Ya(0==u[1].length?0:parseInt(u[1],10),0==w[1].length?0:parseInt(w[1],10))||Ya(0==u[2].length,0==w[2].length)||Ya(u[2],w[2])}while(0==c)}c=Ic[b]=0<=c}return c},Lc=function(b){return I&&(wc()||Kc>=b)},Mc=n.document,Nc=Gc(),Kc=!Mc||!I||!Nc&&wc()?void 0:Nc||("CSS1Compat"==Mc.compatMode?parseInt(Hc,10):5);
var Oc=null,Pc=null,Qc=null,Sc=function(b){if(!ga(b))throw Error("f");Rc();for(var c=Oc,d=[],e=0;e<b.length;e+=3){var f=b[e],g=e+1<b.length,h=g?b[e+1]:0,l=e+2<b.length,m=l?b[e+2]:0,r=f>>2,f=(f&3)<<4|h>>4,h=(h&15)<<2|m>>6,m=m&63;l||(m=64,g||(h=64));d.push(c[r],c[f],c[h],c[m])}return d.join("")},Rc=function(){if(!Oc){Oc={};Pc={};Qc={};for(var b=0;65>b;b++)Oc[b]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(b),Pc[b]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(b), Qc[Pc[b]]=b,62<=b&&(Qc["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(b)]=b)}};
var Tc=function(){this.b=this.a=0;this.g=this.k=this.e=null};Tc.prototype.getHeight=function(){return this.b};Tc.prototype.resize=function(b,c,d){if(this.a!=b||this.b!=c)this.a=b,this.b=c,this.e=new Uint8Array(b*c),this.g=new oc(b,c);(this.k?this.k.length/4:0)!=d&&(this.k=0<d?new Float32Array(4*d):null)};
var Uc=function(b,c,d,e,f,g){c>=(b.k?b.k.length/4:0)||(c*=4,b.k[c++]=d,b.k[c++]=e,b.k[c++]=f,b.k[c++]=g)},Vc=null,Wc=function(b,c){return 0==(b[c+3]&127|b[c+2]|b[c+1]|b[c])?0:(1-((b[c+3]&128)>>6))*((b[c+2]|128)<<16|b[c+1]<<8|b[c])*Vc[(b[c+3]&127)<<1|(b[c+2]&128)>>7]};
var Xc=function(b,c,d){this.g=d;this.k=b;this.e=c;this.b=0;this.a=null};Xc.prototype.get=function(){var b;0<this.b?(this.b--,b=this.a,this.a=b.next,b.next=null):b=this.k();return b};var Yc=function(b,c){b.e(c);b.b<b.g&&(b.b++,c.next=b.a,b.a=c)};var Zc=[],$c=[],ad=!1,bd=function(b){Zc[Zc.length]=b;if(ad)for(var c=0;c<$c.length;c++)b(t($c[c].a,$c[c]))},cd=function(b){ad=!0;for(var c=t(b.a,b),d=0;d<Zc.length;d++)Zc[d](c);$c.push(b)};var dd=function(b){return function(){return b}},ed=dd(!1),fd=dd(null),gd=function(b){return b},hd=function(b){return function(){throw Error(b);}},id=function(b,c){var d=function(){};d.prototype=b.prototype;d=new d;b.apply(d,Array.prototype.slice.call(arguments,1));return d};
var jd=function(b){n.setTimeout(function(){throw b;},0)},kd,ld=function(){var b=n.MessageChannel;"undefined"===typeof b&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!sc("Presto")&&(b=function(){var b=document.createElement("IFRAME");b.style.display="none";b.src="";document.documentElement.appendChild(b);var c=b.contentWindow,b=c.document;b.open();b.write("");b.close();var d="callImmediate"+Math.random(),e="file:"==c.location.protocol?"*":c.location.protocol+"//"+c.location.host,
b=t(function(b){if(("*"==e||b.origin==e)&&b.data==d)this.port1.onmessage()},this);c.addEventListener("message",b,!1);this.port1={};this.port2={postMessage:function(){c.postMessage(d,e)}}});if("undefined"!==typeof b&&!uc()){var c=new b,d={},e=d;c.port1.onmessage=function(){if(p(d.next)){d=d.next;var b=d.Aq;d.Aq=null;b()}};return function(b){e.next={Aq:b};e=e.next;c.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in document.createElement("SCRIPT")?function(b){var c=document.createElement("SCRIPT"); c.onreadystatechange=function(){c.onreadystatechange=null;c.parentNode.removeChild(c);c=null;b();b=null};document.documentElement.appendChild(c)}:function(b){n.setTimeout(b,0)}},md=gd;bd(function(b){md=b});
var nd=function(){this.b=this.a=null},pd=new Xc(function(){return new od},function(b){b.reset()},100);nd.prototype.add=function(b,c){var d=pd.get();d.a=b;d.b=c;d.next=null;this.b?this.b.next=d:this.a=d;this.b=d};nd.prototype.remove=function(){var b=null;this.a&&(b=this.a,this.a=this.a.next,this.a||(this.b=null),b.next=null);return b};var od=function(){this.next=this.b=this.a=null};od.prototype.reset=function(){this.next=this.b=this.a=null};
var ud=function(b,c){qd||rd();sd||(qd(),sd=!0);td.add(b,c)},qd,rd=function(){if(n.Promise&&n.Promise.resolve){var b=n.Promise.resolve();qd=function(){b.then(vd)}}else qd=function(){var b=vd,b=md(b);!la(n.setImmediate)||n.Window&&n.Window.prototype&&n.Window.prototype.setImmediate==n.setImmediate?(kd||(kd=ld()),kd(b)):n.setImmediate(b)}},sd=!1,td=new nd,vd=function(){for(var b=null;b=td.remove();){try{b.a.call(b.b)}catch(c){jd(c)}Yc(pd,b)}sd=!1};
var wd=$b("area base br col command embed hr img input keygen link meta param source track wbr".split(" "));var xd=function(){return p(n.URL)&&p(n.URL.createObjectURL)?n.URL:p(n.webkitURL)&&p(n.webkitURL.createObjectURL)?n.webkitURL:p(n.createObjectURL)?n:null};var zd=function(){this.a="";this.b=yd};zd.prototype.Si=!0;zd.prototype.th=function(){return this.a};zd.prototype.toString=function(){return"Const{"+this.a+"}"};var Ad=function(b){return b instanceof zd&&b.constructor===zd&&b.b===yd?b.a:"type_error:Const"},yd={},Bd=function(b){var c=new zd;c.a=b;return c};
var Dd=function(){this.a="";this.b=Cd};Dd.prototype.Si=!0;var Cd={};Dd.prototype.th=function(){return this.a};var Ed=function(b){return b instanceof Dd&&b.constructor===Dd&&b.b===Cd?b.a:"type_error:SafeStyle"},Fd=function(b){var c=new Dd;c.a=b;return c},Gd=Fd(""),Hd=/^[-,."'%_!# a-zA-Z0-9]+$/;
var Id=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"),Jd=RegExp("^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]"),Kd=/^http:\/\/.*/,Ld=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Arab|Hebr|Thaa|Nkoo|Tfng))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,Md=/\s+/,Nd=/\d/,Od=function(b){var c=0,d=0,e=!1;b=
b.split(Md);for(var f=0;f<b.length;f++){var g=b[f];Jd.test(g)?(c++,d++):Kd.test(g)?e=!0:Id.test(g)?d++:Nd.test(g)&&(e=!0)}return 0==d?e?1:0:.4<c/d?-1:1},Pd=function(b,c){b&&(c="number"==typeof c?0<c?1:0>c?-1:0:null==c?null:c?-1:1)&&(b.style.textAlign=-1==c?"right":"left",b.dir=-1==c?"rtl":"ltr")};
var Rd=function(){this.a=Qd};Rd.prototype.Si=!0;Rd.prototype.th=function(){return""};Rd.prototype.Go=!0;Rd.prototype.wh=function(){return 1};var Sd=function(b){return b instanceof Rd&&b.constructor===Rd&&b.a===Qd?"":"type_error:SafeUrl"},Qd={};var Ud=function(){this.a="";this.b=Td};Ud.prototype.Si=!0;Ud.prototype.th=function(){return this.a};Ud.prototype.Go=!0;Ud.prototype.wh=function(){return 1};var Vd=function(b){return b instanceof Ud&&b.constructor===Ud&&b.b===Td?b.a:"type_error:TrustedResourceUrl"},Td={},Wd=function(b){var c=new Ud;c.a=b;return c};
var Yd=function(){this.a="";this.k=Xd;this.b=null};Yd.prototype.Go=!0;Yd.prototype.wh=function(){return this.b};Yd.prototype.Si=!0;Yd.prototype.th=function(){return this.a};
var Zd=function(b){return b instanceof Yd&&b.constructor===Yd&&b.k===Xd?b.a:"type_error:SafeHtml"},ae=function(b){if(b instanceof Yd)return b;var c=null;b.Go&&(c=b.wh());b=Sa(b.Si?b.th():String(b));return $d(b,c)},be=function(b){if(b instanceof Yd)return b;b=ae(b);var c=Ka(Zd(b));return $d(c,b.wh())},ce=/^[a-zA-Z0-9-]+$/,de={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},ee={EMBED:!0,IFRAME:!0,LINK:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,TEMPLATE:!0},ge=function(b,c,d){if(!ce.test(b))throw Error("p`"+
b);if(b.toUpperCase()in ee)throw Error("q`"+b);return fe(b,c,d)},he=function(b){var c=0,d="",e=function(b){fa(b)?y(b,e):(b=ae(b),d+=Zd(b),b=b.wh(),0==c?c=b:0!=b&&c!=b&&(c=null))};y(arguments,e);return $d(d,c)},Xd={},$d=function(b,c){var d=new Yd;d.a=b;d.b=c;return d},fe=function(b,c,d){var e=null,f="<"+b;if(c)for(var g in c){if(!ce.test(g))throw Error("u`"+g);var h=c[g];if(null!=h){var l,m=b;l=g;if(h instanceof zd)h=Ad(h);else if("style"==l.toLowerCase()){if(!ha(h))throw Error("t`"+typeof h+"`"+h);
if(!(h instanceof Dd)){var m="",r=void 0;for(r in h){if(!/^[-_a-zA-Z0-9]+$/.test(r))throw Error("j`"+r);var u=h[r];if(null!=u){if(u instanceof zd)u=Ad(u);else if(Hd.test(u)){for(var w=!0,C=!0,J=0;J<u.length;J++){var V=u.charAt(J);"'"==V&&C?w=!w:'"'==V&&w&&(C=!C)}w&&C||(u="zClosurez")}else u="zClosurez";m+=r+":"+u+";"}}h=m?Fd(m):Gd}h=Ed(h)}else{if(/^on/i.test(l))throw Error("r`"+l+"`"+h);if(l.toLowerCase()in de)if(h instanceof Ud)h=Vd(h);else if(h instanceof Rd)h=Sd(h);else throw Error("s`"+l+"`"+
m+"`"+h);}h.Si&&(h=h.th());l=l+'="'+Sa(String(h))+'"';f=f+(" "+l)}}null!=d?fa(d)||(d=[d]):d=[];!0===wd[b.toLowerCase()]?f+=">":(e=he(d),f+=">"+Zd(e)+"</"+b+">",e=e.wh());(b=c&&c.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?e=0:e=null);return $d(f,e)};$d("<!DOCTYPE html>",0);var ie=$d("",0);
var je=function(b,c,d){return Math.min(Math.max(b,c),d)},ke=function(b){return b*Math.PI/180},le=function(b){return 0==b?0:0>b?-1:1};var me="StopIteration"in n?n.StopIteration:Error("w"),ne=function(){};ne.prototype.next=function(){throw me;};ne.prototype.kn=function(){return this};var oe=function(b,c){this.S={};this.a=[];this.e=this.b=0;var d=arguments.length;if(1<d){if(d%2)throw Error("e");for(var e=0;e<d;e+=2)this.xc(arguments[e],arguments[e+1])}else if(b){b instanceof oe?(d=b.Dd(),e=b.gc()):(d=Ub(b),e=Tb(b));for(var f=0;f<d.length;f++)this.xc(d[f],e[f])}};k=oe.prototype;k.Ub=function(){return this.b};k.gc=function(){pe(this);for(var b=[],c=0;c<this.a.length;c++)b.push(this.S[this.a[c]]);return b};k.Dd=function(){pe(this);return this.a.concat()};
k.isEmpty=function(){return 0==this.b};k.clear=function(){this.S={};this.e=this.b=this.a.length=0};k.remove=function(b){return qe(this.S,b)?(delete this.S[b],this.b--,this.e++,this.a.length>2*this.b&&pe(this),!0):!1};var pe=function(b){if(b.b!=b.a.length){for(var c=0,d=0;c<b.a.length;){var e=b.a[c];qe(b.S,e)&&(b.a[d++]=e);c++}b.a.length=d}if(b.b!=b.a.length){for(var f={},d=c=0;c<b.a.length;)e=b.a[c],qe(f,e)||(b.a[d++]=e,f[e]=1),c++;b.a.length=d}};k=oe.prototype;
k.get=function(b,c){return qe(this.S,b)?this.S[b]:c};k.xc=function(b,c){qe(this.S,b)||(this.b++,this.a.push(b),this.e++);this.S[b]=c};k.forEach=function(b,c){for(var d=this.Dd(),e=0;e<d.length;e++){var f=d[e],g=this.get(f);b.call(c,g,f,this)}};k.clone=function(){return new oe(this)};k.kn=function(b){pe(this);var c=0,d=this.a,e=this.S,f=this.e,g=this,h=new ne;h.next=function(){for(;;){if(f!=g.e)throw Error("x");if(c>=d.length)throw me;var h=d[c++];return b?h:e[h]}};return h}; var qe=function(b,c){return Object.prototype.hasOwnProperty.call(b,c)};
var re=function(b){if("function"==typeof b.gc)return b.gc();if(ja(b))return b.split("");if(ga(b)){for(var c=[],d=b.length,e=0;e<d;e++)c.push(b[e]);return c}return Tb(b)},se=function(b){if("function"==typeof b.Dd)return b.Dd();if("function"!=typeof b.gc){if(ga(b)||ja(b)){var c=[];b=b.length;for(var d=0;d<b;d++)c.push(d);return c}return Ub(b)}},te=function(b,c,d){if("function"==typeof b.forEach)b.forEach(c,d);else if(ga(b)||ja(b))y(b,c,d);else for(var e=se(b),f=re(b),g=f.length,h=0;h<g;h++)c.call(d, f[h],e&&e[h],b)};
var ue=function(b){this.S=new oe;if(b){b=re(b);for(var c=b.length,d=0;d<c;d++)this.add(b[d])}},ve=function(b){var c=typeof b;return"object"==c&&b||"function"==c?"o"+pa(b):c.substr(0,1)+b};k=ue.prototype;k.Ub=function(){return this.S.Ub()};k.add=function(b){this.S.xc(ve(b),b)};k.remove=function(b){return this.S.remove(ve(b))};k.clear=function(){this.S.clear()};k.isEmpty=function(){return this.S.isEmpty()};k.contains=function(b){b=ve(b);return qe(this.S.S,b)};k.gc=function(){return this.S.gc()}; k.clone=function(){return new ue(this)};k.kn=function(){return this.S.kn(!1)};
var we=function(b,c,d){d=d||n;var e=d.onerror,f=!!c;Ac&&!Jc("535.3")&&(f=!f);d.onerror=function(c,d,l,m,r){e&&e(c,d,l,m,r);b({message:c,fileName:d,line:l,YB:m,error:r});return f}},ye=function(b){for(var c=[],d=arguments.callee.caller,e=0;d&&(!b||e<b);){c.push(xe(d));c.push("()\n");try{d=d.caller}catch(f){c.push("[exception trying to get caller]\n");break}e++;if(50<=e){c.push("[...long stack...]");break}}b&&e>=b?c.push("[...reached max depth limit...]"):c.push("[end]");return c.join("")},Ae=function(b){var c;
c||(c=ze(b||arguments.callee.caller,[]));return c},ze=function(b,c){var d=[];if(pb(c,b))d.push("[...circular reference...]");else if(b&&50>c.length){d.push(xe(b)+"(");for(var e=b.arguments,f=0;e&&f<e.length;f++){0<f&&d.push(", ");var g;g=e[f];switch(typeof g){case "object":g=g?"object":"null";break;case "string":break;case "number":g=String(g);break;case "boolean":g=g?"true":"false";break;case "function":g=(g=xe(g))?g:"[fn]";break;default:g=typeof g}40<g.length&&(g=g.substr(0,40)+"...");d.push(g)}c.push(b);
d.push(")\n");try{d.push(ze(b.caller,c))}catch(h){d.push("[exception trying to get caller]\n")}}else b?d.push("[...long stack...]"):d.push("[end]");return d.join("")},xe=function(b){if(Be[b])return Be[b];b=String(b);if(!Be[b]){var c=/function ([^\(]+)/.exec(b);Be[b]=c?c[1]:"[Anonymous]"}return Be[b]},Be={};
var Ce=function(b){b.prototype.then=b.prototype.then;b.prototype.$goog_Thenable=!0},De=function(b){if(!b)return!1;try{return!!b.$goog_Thenable}catch(c){return!1}};var Ge=function(b,c){this.a=0;this.j=void 0;this.e=this.b=this.k=null;this.g=this.h=!1;if(b==Ee)Fe(this,2,c);else try{var d=this;b.call(c,function(b){Fe(d,2,b)},function(b){Fe(d,3,b)})}catch(e){Fe(this,3,e)}},He=function(){this.next=this.context=this.b=this.k=this.a=null;this.e=!1};He.prototype.reset=function(){this.context=this.b=this.k=this.a=null;this.e=!1};
var Ie=new Xc(function(){return new He},function(b){b.reset()},100),Je=function(b,c,d){var e=Ie.get();e.k=b;e.b=c;e.context=d;return e},Ee=function(){};Ge.prototype.then=function(b,c,d){return Ke(this,la(b)?b:null,la(c)?c:null,d)};Ce(Ge);Ge.prototype.cancel=function(b){0==this.a&&ud(function(){var c=new Le(b);Me(this,c)},this)};
var Me=function(b,c){if(0==b.a)if(b.k){var d=b.k;if(d.b){for(var e=0,f=null,g=null,h=d.b;h&&(h.e||(e++,h.a==b&&(f=h),!(f&&1<e)));h=h.next)f||(g=h);f&&(0==d.a&&1==e?Me(d,c):(g?(e=g,e.next==d.e&&(d.e=e),e.next=e.next.next):Ne(d),Oe(d,f,3,c)))}b.k=null}else Fe(b,3,c)},Qe=function(b,c){b.b||2!=b.a&&3!=b.a||Pe(b);b.e?b.e.next=c:b.b=c;b.e=c},Ke=function(b,c,d,e){var f=Je(null,null,null);f.a=new Ge(function(b,h){f.k=c?function(d){try{var f=c.call(e,d);b(f)}catch(r){h(r)}}:b;f.b=d?function(c){try{var f=d.call(e,
c);!p(f)&&c instanceof Le?h(c):b(f)}catch(r){h(r)}}:h});f.a.k=b;Qe(b,f);return f.a};Ge.prototype.l=function(b){this.a=0;Fe(this,2,b)};Ge.prototype.o=function(b){this.a=0;Fe(this,3,b)};
var Fe=function(b,c,d){if(0==b.a){if(b==d)c=3,d=new TypeError("Promise cannot resolve to itself");else{if(De(d)){b.a=1;c=d;d=b.l;var e=b.o;c instanceof Ge?Qe(c,Je(d||q,e||null,b)):c.then(d,e,b);return}if(ha(d))try{if(e=d.then,la(e)){Re(b,d,e);return}}catch(f){c=3,d=f}}b.j=d;b.a=c;b.k=null;Pe(b);3!=c||d instanceof Le||Se(b,d)}},Re=function(b,c,d){b.a=1;var e=!1,f=function(c){e||(e=!0,b.l(c))},g=function(c){e||(e=!0,b.o(c))};try{d.call(c,f,g)}catch(h){g(h)}},Pe=function(b){b.h||(b.h=!0,ud(b.p,b))},
Ne=function(b){var c=null;b.b&&(c=b.b,b.b=c.next,c.next=null);b.b||(b.e=null);return c};Ge.prototype.p=function(){for(var b=null;b=Ne(this);)Oe(this,b,this.a,this.j);this.h=!1};var Oe=function(b,c,d,e){c.a&&(c.a.k=null);if(2==d)c.k.call(c.context,e);else if(null!=c.b){if(!c.e)for(;b&&b.g;b=b.k)b.g=!1;c.b.call(c.context,e)}Yc(Ie,c)},Se=function(b,c){b.g=!0;ud(function(){b.g&&Te.call(null,c)})},Te=jd,Le=function(b){ya.call(this,b)};v(Le,ya);Le.prototype.name="cancel";
var Ue=function(b){this.a=b;b.then(t(function(){},this))},We=function(b,c,d,e){for(var f=Array(arguments.length-3),g=3;g<arguments.length;g++)f[g-3]=arguments[g];g=Ve(b,c,d).then(function(b){return b.apply(null,f)});return new Ue(g)},Xe={},Ve=function(b,c,d){var e="https://www.gstatic.com/feedback/js/help/"+(b&&"prod"!=b&&"canary"!=b?"nonprod":"prod")+"/"+c;if(b=Xe[d])return b;b=(b=ba(d))?new Ge(Ee,b):(new Ge(function(b,c){var d=document.createElement("script");d.async=!0;d.src=e;d.onload=d.onreadystatechange=
function(){d.readyState&&"loaded"!=d.readyState&&"complete"!=d.readyState||b()};d.onerror=c;(document.head||document.getElementsByTagName("head")[0]).appendChild(d)})).then(function(){var b=ba(d);if(!b)throw Error("y`"+d+"`"+e);return b});return Xe[d]=b},Ye=function(b,c){b.a.then(function(b){var e=b.startFeedback;if(!e)throw Error("z`startFeedback");return e.apply(b,c)})};
var Ze=function(b){this.a=b};Ze.prototype.b=function(b){Ye(this.a,arguments)};Ve("prod","service/lazy.min.js","help.service.Lazy.create");var $e=function(b){A(this,b,"er",-1,null)};v($e,z);$e.prototype.L=function(){return H(this)};$e.Ta="er";$e.prototype.qh=function(){return B(this,9)};$e.prototype.ug=function(){return B(this,2)};$e.prototype.getData=function(){return B(this,4)};var af=function(b){A(this,b,0,-1,null)};v(af,z);af.prototype.L=function(){return H(this)};
var bf=function(){var b=K.hi;return null!=B(b,1)?B(b,1):"/location/location"},cf=function(){var b=K.hi;return null!=B(b,2)?B(b,2):"/time/event"},df=function(){var b=K.hi;return null!=B(b,3)?B(b,3):"/people/person"},ef=function(){var b=K.hi;return null!=B(b,4)?B(b,4):"/visual_art/visual_artist"},ff=function(){var b=K.hi;return null!=B(b,5)?B(b,5):"/visual_art/visual_art_medium"},gf=function(){var b=K.hi;return null!=B(b,8)?B(b,8):"/visual_art/visual_art_form"};
var K={Wu:"AIzaSyD-M5qbEoL65tD4icM8dvfdkYi72SJGrUA",Ou:"AIzaSyC1EIdgDDuFJBdBQS4xd2LHpvr9vF5TU9c",Cu:2542116,tu:"creator.",Ev:"userEmail",gn:"partnerId",Vk:Date.UTC(-9999,0,1),Uk:(new Date).getTime(),fv:975,hi:new af,vf:"hl",qu:"a.v",xu:"debug",Du:"debugForceExternal",wu:"debugDomainName",iv:"print",Zp:"debugFullscreenHomepageId",Yp:"debugDoNotShowHeaderBanner",dq:"",Pu:"#gci-user-section-lang-wrapper",hn:"/common/api/search",lv:"/common/api/refine-facet",an:"/common/api/get-object-by-id",Eu:"/common/api/get-asset-family",
Fu:"/common/api/get-asset-floorplan-info",Ku:"/common/api/get-partner",xv:"/common/api/suggest-entity",tB:"/common/api/ui-bit",Bv:"/common/api/update-statistics",$m:"/common/api/favorites",zu:"/common/api/delete-all-favorites",Tu:"/common/api/list-my-galleries",uj:"/common/api/gallery",hq:"/common/api/gallery-column",zv:"/common/api/gallery-translate",Av:"/common/api/update-annotations",Au:"/common/api/delete-audio-captions",Qu:"/common/api/list-audio-captions",Dv:"/common/api/add-audio-caption",
Su:"/common/api/list-exhibit-summaries",Uu:"/common/api/list-object-languages",QA:"/entity/api/create-entity",Gu:"/common/api/get-base-schemas",ou:"/common/api/accept-tos",NA:"/common/api/acknowledge-tos",cB:"/common/api/get-tos-content",hg:"filmstrip",cn:"layers",Jd:"saved",VA:"http://www.google.com/culturalinstitute",cv:"http://www.google.com/opengallery",dv:"http://www.google.com/opengallery/terms",ev:"/culturalinstitute/partners",kB:"https://support.google.com/culturalinstitute/partners",mu:"https://www.google.com/opengallery/report/item/", nu:"https://www.google.com/opengallery/report/exhibit/"};
var hf=!I||Lc(9),jf=!zc&&!I||I&&Lc(9)||zc&&Jc("1.9.1"),kf=I&&!Jc("9"),lf=I||yc||Ac;var mf=function(b,c){this.x=p(b)?b:0;this.y=p(c)?c:0};mf.prototype.clone=function(){return new mf(this.x,this.y)};var nf=function(b,c){return b==c?!0:b&&c?b.x==c.x&&b.y==c.y:!1},of=function(b,c){return new mf(b.x-c.x,b.y-c.y)};mf.prototype.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};mf.prototype.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};mf.prototype.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; mf.prototype.a=function(b,c){var d=ka(c)?c:b;this.x*=b;this.y*=d;return this};
var pf=function(b,c){this.width=b;this.height=c},qf=function(b,c){return b==c?!0:b&&c?b.width==c.width&&b.height==c.height:!1};k=pf.prototype;k.clone=function(){return new pf(this.width,this.height)};k.Jc=function(){return this.width/this.height};k.isEmpty=function(){return!(this.width*this.height)};k.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};k.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; k.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
var tf=function(b){return b?new rf(sf(b)):za||(za=new rf)},uf=function(b,c){return ja(c)?b.getElementById(c):c},wf=function(b,c){var d=c||document;return d.querySelectorAll&&d.querySelector?d.querySelectorAll("."+b):vf(document,"*",b,c)},xf=function(b,c){var d=c||document,e=null;d.getElementsByClassName?e=d.getElementsByClassName(b)[0]:d.querySelectorAll&&d.querySelector?e=d.querySelector("."+b):e=vf(document,"*",b,c)[0];return e||null},vf=function(b,c,d,e){b=e||b;c=c&&"*"!=c?c.toUpperCase():"";if(b.querySelectorAll&&
b.querySelector&&(c||d))return b.querySelectorAll(c+(d?"."+d:""));if(d&&b.getElementsByClassName){b=b.getElementsByClassName(d);if(c){e={};for(var f=0,g=0,h;h=b[g];g++)c==h.nodeName&&(e[f++]=h);e.length=f;return e}return b}b=b.getElementsByTagName(c||"*");if(d){e={};for(g=f=0;h=b[g];g++)c=h.className,"function"==typeof c.split&&pb(c.split(/\s+/),d)&&(e[f++]=h);e.length=f;return e}return b},zf=function(b,c){Nb(c,function(c,e){"style"==e?b.style.cssText=c:"class"==e?b.className=c:"for"==e?b.htmlFor=
c:e in yf?b.setAttribute(yf[e],c):Aa(e,"aria-")||Aa(e,"data-")?b.setAttribute(e,c):b[e]=c})},yf={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"},Af=function(b){b=(b||window).document;b="CSS1Compat"==b.compatMode?b.documentElement:b.body;return new pf(b.clientWidth,b.clientHeight)},Bf=function(b){return Ac||"CSS1Compat"!=b.compatMode?
b.body||b.documentElement:b.documentElement},Cf=function(b){return b?b.parentWindow||b.defaultView:window},Ef=function(b,c,d){return Df(document,arguments)},Df=function(b,c){var d=c[0],e=c[1];if(!hf&&e&&(e.name||e.type)){d=["<",d];e.name&&d.push(' name="',Sa(e.name),'"');if(e.type){d.push(' type="',Sa(e.type),'"');var f={};Yb(f,e);delete f.type;e=f}d.push(">");d=d.join("")}d=b.createElement(d);e&&(ja(e)?d.className=e:fa(e)?d.className=e.join(" "):zf(d,e));2<c.length&&Ff(b,d,c,2);return d},Ff=function(b,
c,d,e){function f(d){d&&c.appendChild(ja(d)?b.createTextNode(d):d)}for(;e<d.length;e++){var g=d[e];!ga(g)||ha(g)&&0<g.nodeType?f(g):y(Gf(g)?vb(g):g,f)}},Hf=function(b,c){b.appendChild(c)},If=function(b,c){Ff(sf(b),b,arguments,1)},Jf=function(b){for(var c;c=b.firstChild;)b.removeChild(c)},Kf=function(b,c){c.parentNode&&c.parentNode.insertBefore(b,c)},Lf=function(b){return b&&b.parentNode?b.parentNode.removeChild(b):null},Mf=function(b){return jf&&void 0!=b.children?b.children:gb(b.childNodes,function(b){return 1==
b.nodeType})},Nf=function(b){if(void 0!=b.firstElementChild)b=b.firstElementChild;else for(b=b.firstChild;b&&1!=b.nodeType;)b=b.nextSibling;return b},Of=function(b){return ha(b)&&1==b.nodeType},Pf=function(b,c){if(b.contains&&1==c.nodeType)return b==c||b.contains(c);if("undefined"!=typeof b.compareDocumentPosition)return b==c||Boolean(b.compareDocumentPosition(c)&16);for(;c&&b!=c;)c=c.parentNode;return c==b},sf=function(b){return 9==b.nodeType?b:b.ownerDocument||b.document},Qf=function(b){return b.contentDocument||
b.contentWindow.document},Rf=function(b,c){if("textContent"in b)b.textContent=c;else if(3==b.nodeType)b.data=c;else if(b.firstChild&&3==b.firstChild.nodeType){for(;b.lastChild!=b.firstChild;)b.removeChild(b.lastChild);b.firstChild.data=c}else Jf(b),b.appendChild(sf(b).createTextNode(String(c)))},Sf={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},Tf={IMG:" ",BR:"\n"},Uf=function(b,c){c?b.tabIndex=0:(b.tabIndex=-1,b.removeAttribute("tabIndex"))},Vf=function(b){b=b.getAttributeNode("tabindex");return null!=
b&&b.specified},Wf=function(b){b=b.tabIndex;return ka(b)&&0<=b&&32768>b},Yf=function(b){if(kf&&"innerText"in b)b=b.innerText.replace(/(\r\n|\r|\n)/g,"\n");else{var c=[];Xf(b,c,!0);b=c.join("")}b=b.replace(/ \xAD /g," ").replace(/\xAD/g,"");b=b.replace(/\u200B/g,"");kf||(b=b.replace(/ +/g," "));" "!=b&&(b=b.replace(/^\s*/,""));return b},Zf=function(b){var c=[];Xf(b,c,!1);return c.join("")},Xf=function(b,c,d){if(!(b.nodeName in Sf))if(3==b.nodeType)d?c.push(String(b.nodeValue).replace(/(\r\n|\r|\n)/g,
"")):c.push(b.nodeValue);else if(b.nodeName in Tf)c.push(Tf[b.nodeName]);else for(b=b.firstChild;b;)Xf(b,c,d),b=b.nextSibling},Gf=function(b){if(b&&"number"==typeof b.length){if(ha(b))return"function"==typeof b.item||"string"==typeof b.item;if(la(b))return"function"==typeof b.item}return!1},ag=function(b){return $f(b,function(b){return ja(b.className)&&pb(b.className.split(/\s+/),"gci-listmanager-table-row")},void 0)},$f=function(b,c,d){for(var e=null==d,f=0;b&&(e||f<=d);){if(c(b))return b;b=b.parentNode;
f++}return null},bg=function(b){try{return b&&b.activeElement}catch(c){}return null},rf=function(b){this.a=b||n.document||document};k=rf.prototype;k.fa=tf;k.zb=function(){return this.a};k.w=function(b){return uf(this.a,b)};k.Ka=function(b,c,d){return Df(this.a,arguments)};k.createElement=function(b){return this.a.createElement(b)};
var cg=function(b){return"CSS1Compat"==b.a.compatMode},dg=function(b){b=b.a;return b.parentWindow||b.defaultView},eg=function(b){var c=b.a;b=Bf(c);c=c.parentWindow||c.defaultView;return I&&Jc("10")&&c.pageYOffset!=b.scrollTop?new mf(b.scrollLeft,b.scrollTop):new mf(c.pageXOffset||b.scrollLeft,c.pageYOffset||b.scrollTop)};k=rf.prototype;k.appendChild=Hf;k.append=If;k.xr=Jf;k.no=Lf;k.ex=Mf;k.rr=Nf;k.Wx=Of;k.contains=Pf;
I&&Jc(8);var gg={},hg={},ig={},jg={},kg={},lg=function(){throw Error("A");};lg.prototype.Af=null;lg.prototype.getContent=function(){return this.content};lg.prototype.toString=function(){return this.content};var og=function(b,c,d){b.innerHTML=mg(c(d||ng,void 0,void 0))},qg=function(b){var c=pg,d=tf();b=mg(c(b||ng,void 0,void 0));c=d.a;d=c.createElement("DIV");I?(d.innerHTML="<br>"+b,d.removeChild(d.firstChild)):d.innerHTML=b;if(1==d.childNodes.length)d=d.removeChild(d.firstChild);else{for(b=c.createDocumentFragment();d.firstChild;)b.appendChild(d.firstChild);d=b}return d},L=function(b,c,d,e){e=(e||tf()).createElement("DIV");b=mg(b(c||ng,void 0,d));e.innerHTML=b;return 1==e.childNodes.length&&(b=e.firstChild, 1==b.nodeType)?b:e},mg=function(b){if(!ha(b))return String(b);if(b instanceof lg){if(b.Ae===gg)return b.getContent();if(b.Ae===kg)return Sa(b.getContent())}return"zSoyz"},ng={};
var rg=function(b,c){null!=b&&this.append.apply(this,arguments)};k=rg.prototype;k.xh="";k.append=function(b,c,d){this.xh+=b;if(null!=c)for(var e=1;e<arguments.length;e++)this.xh+=arguments[e];return this};k.clear=function(){this.xh=""};k.getLength=function(){return this.xh.length};k.toString=function(){return this.xh};
var sg=function(b,c){return null!=b&&b.Ae===c},tg=function(b){if(null!=b)switch(b.Af){case 1:return 1;case -1:return-1;case 0:return 0}return null},ug=function(){lg.call(this)};v(ug,lg);ug.prototype.Ae=gg;var N=function(b){return null!=b&&b.Ae===gg?b:b instanceof Yd?M(Zd(b),b.wh()):M(Sa(String(String(b))),tg(b))},vg=function(){lg.call(this)};v(vg,lg);vg.prototype.Ae={};vg.prototype.Af=1;var wg=function(){lg.call(this)};v(wg,lg);wg.prototype.Ae=hg;wg.prototype.Af=1;var xg=function(){lg.call(this)};
v(xg,lg);xg.prototype.Ae=ig;xg.prototype.Af=1;var yg=function(){lg.call(this)};v(yg,lg);yg.prototype.Ae=jg;yg.prototype.Af=1;var zg=function(b,c){this.content=String(b);this.Af=null!=c?c:null};v(zg,lg);zg.prototype.Ae=kg;
var M=function(b){function c(b){this.content=b}c.prototype=b.prototype;return function(b,e){var f=new c(String(b));void 0!==e&&(f.Af=e);return f}}(ug),Ag=function(b,c){function d(){}d.prototype=b;var e=new d,f;for(f in c)e[f]=c[f];return e},Bg=function(b){function c(b){this.content=b}c.prototype=b.prototype;return function(b){return(b=String(b))?new c(b):""}},O=function(b){return(b=String(b))?new zg(b,void 0):""},Cg=function(b){function c(b){this.content=b}c.prototype=b.prototype;return function(b,
e){var f=String(b);if(!f)return"";f=new c(f);void 0!==e&&(f.Af=e);return f}}(ug);Bg(vg);var Dg=Bg(wg),Eg=Bg(xg);Bg(yg);
var P=function(b){return N(b)},Gg=function(b){return sg(b,gg)?Fg(b.getContent()):Sa(String(b))},Jg=function(b){return String(b).replace(Hg,"").replace(Ig,"&lt;")},Q=function(b){return sg(b,gg)?Fg(Jg(b.getContent())):Sa(String(b))},Ng=function(b){sg(b,gg)?(b=Jg(b.getContent()),b=String(b).replace(Kg,Lg)):b=String(b).replace(Mg,Lg);return b},Pg=function(b){sg(b,ig)?b=b.getContent().replace(/([^"'\s])$/,"$1 "):(b=String(b),b=Og.test(b)?b:"zSoyz");return b},R=function(b){sg(b,hg)?b=String(b).replace(Qg,
Rg):b instanceof Rd?(b=Sd(b),b=String(b).replace(Qg,Rg)):(b=String(b),b=Sg.test(b)?b.replace(Qg,Rg):"#zSoyz");return b},Ug=function(b){sg(b,jg)?b=b.getContent():null==b?b="":b instanceof Dd?b=Ed(b):(b=String(b),b=Tg.test(b)?b:"zSoyz");return b},Vg={"\x00":"&#0;","\t":"&#9;","\n":"&#10;","\x0B":"&#11;","\f":"&#12;","\r":"&#13;"," ":"&#32;",'"':"&quot;","&":"&amp;","'":"&#39;","-":"&#45;","/":"&#47;","<":"&lt;","=":"&#61;",">":"&gt;","`":"&#96;","\u0085":"&#133;","\u00a0":"&#160;","\u2028":"&#8232;",
"\u2029":"&#8233;"},Lg=function(b){return Vg[b]},Wg={"\x00":"%00","\u0001":"%01","\u0002":"%02","\u0003":"%03","\u0004":"%04","\u0005":"%05","\u0006":"%06","\u0007":"%07","\b":"%08","\t":"%09","\n":"%0A","\x0B":"%0B","\f":"%0C","\r":"%0D","\u000e":"%0E","\u000f":"%0F","\u0010":"%10","\u0011":"%11","\u0012":"%12","\u0013":"%13","\u0014":"%14","\u0015":"%15","\u0016":"%16","\u0017":"%17","\u0018":"%18","\u0019":"%19","\u001a":"%1A","\u001b":"%1B","\u001c":"%1C","\u001d":"%1D","\u001e":"%1E","\u001f":"%1F",
" ":"%20",'"':"%22","'":"%27","(":"%28",")":"%29","<":"%3C",">":"%3E","\\":"%5C","{":"%7B","}":"%7D","\u007f":"%7F","\u0085":"%C2%85","\u00a0":"%C2%A0","\u2028":"%E2%80%A8","\u2029":"%E2%80%A9","\uff01":"%EF%BC%81","\uff03":"%EF%BC%83","\uff04":"%EF%BC%84","\uff06":"%EF%BC%86","\uff07":"%EF%BC%87","\uff08":"%EF%BC%88","\uff09":"%EF%BC%89","\uff0a":"%EF%BC%8A","\uff0b":"%EF%BC%8B","\uff0c":"%EF%BC%8C","\uff0f":"%EF%BC%8F","\uff1a":"%EF%BC%9A","\uff1b":"%EF%BC%9B","\uff1d":"%EF%BC%9D","\uff1f":"%EF%BC%9F",
"\uff20":"%EF%BC%A0","\uff3b":"%EF%BC%BB","\uff3d":"%EF%BC%BD"},Rg=function(b){return Wg[b]},Xg=/[\x00\x22\x27\x3c\x3e]/g,Mg=/[\x00\x09-\x0d \x22\x26\x27\x2d\/\x3c-\x3e`\x85\xa0\u2028\u2029]/g,Kg=/[\x00\x09-\x0d \x22\x27\x2d\/\x3c-\x3e`\x85\xa0\u2028\u2029]/g,Qg=/[\x00- \x22\x27-\x29\x3c\x3e\\\x7b\x7d\x7f\x85\xa0\u2028\u2029\uff01\uff03\uff04\uff06-\uff0c\uff0f\uff1a\uff1b\uff1d\uff1f\uff20\uff3b\uff3d]/g,Tg=/^(?!-*(?:expression|(?:moz-)?binding))(?:[.#]?-?(?:[_a-z0-9-]+)(?:-[_a-z0-9-]+)*-?|-?(?:[0-9]+(?:\.[0-9]*)?|\.[0-9]+)(?:[a-z]{1,2}|%)?|!important|)$/i,
Sg=/^(?![^#?]*\/(?:\.|%2E){2}(?:[\/?#]|$))(?:(?:https?|mailto):|[^&:\/?#]*(?:[\/?#]|$))/i,Og=/^(?!style|on|action|archive|background|cite|classid|codebase|data|dsync|href|longdesc|src|usemap)(?:[a-z0-9_$:-]*)$/i,Fg=function(b){return String(b).replace(Xg,Lg)},Hg=/<(?:!|\/?([a-zA-Z][a-zA-Z0-9:\-]*))(?:[^>'"]|"[^"]*"|'[^']*')*>/g,Ig=/</g;
var Yg=function(b){var c="",d=""+R(b.url),d=Dg(d);b=""+b.text;b=O(b);c+='<a href="'+Q(R(d))+'" target="_blank" rel="nofollow">'+N(b)+"</a>";return M(c)},Zg=function(b){b=""+b.text;b=O(b);b=""+("<b>"+N(b)+"</b>");return M(b)},$g=function(b){b=""+b.text;b=O(b);b=""+("<i>"+N(b)+"</i>");return M(b)};
var ah=function(b){if(b.classList)return b.classList;b=b.className;return ja(b)&&b.match(/\S+/g)||[]},bh=function(b,c){return b.classList?b.classList.contains(c):pb(ah(b),c)},ch=function(b,c){b.classList?b.classList.add(c):bh(b,c)||(b.className+=0<b.className.length?" "+c:c)},dh=function(b,c){if(b.classList)y(c,function(c){ch(b,c)});else{var d={};y(ah(b),function(b){d[b]=!0});y(c,function(b){d[b]=!0});b.className="";for(var e in d)b.className+=0<b.className.length?" "+e:e}},eh=function(b,c){b.classList? b.classList.remove(c):bh(b,c)&&(b.className=gb(ah(b),function(b){return b!=c}).join(" "))},fh=function(b,c){b.classList?y(c,function(c){eh(b,c)}):b.className=gb(ah(b),function(b){return!pb(c,b)}).join(" ")},gh=function(b,c,d){d?ch(b,c):eh(b,c)};
var hh={su:{1E3:{other:"0K"},1E4:{other:"00K"},1E5:{other:"000K"},1E6:{other:"0M"},1E7:{other:"00M"},1E8:{other:"000M"},1E9:{other:"0B"},1E10:{other:"00B"},1E11:{other:"000B"},1E12:{other:"0T"},1E13:{other:"00T"},1E14:{other:"000T"}},ru:{1E3:{other:"0 thousand"},1E4:{other:"00 thousand"},1E5:{other:"000 thousand"},1E6:{other:"0 million"},1E7:{other:"00 million"},1E8:{other:"000 million"},1E9:{other:"0 billion"},1E10:{other:"00 billion"},1E11:{other:"000 billion"},1E12:{other:"0 trillion"},1E13:{other:"00 trillion"}, 1E14:{other:"000 trillion"}}},ih=hh,ih=hh;
var jh={AED:[2,"dh","\u062f.\u0625.","DH"],ALL:[0,"Lek","Lek"],AUD:[2,"$","AU$"],BDT:[2,"\u09f3","Tk"],BGN:[2,"lev","lev"],BRL:[2,"R$","R$"],CAD:[2,"$","C$"],CDF:[2,"FrCD","CDF"],CHF:[2,"CHF","CHF"],CLP:[0,"$","CL$"],CNY:[2,"\u00a5","RMB\u00a5"],COP:[0,"$","COL$"],CRC:[0,"\u20a1","CR\u20a1"],CZK:[50,"K\u010d","K\u010d"],DKK:[18,"kr","kr"],DOP:[2,"$","RD$"],EGP:[2,"\u00a3","LE"],ETB:[2,"Birr","Birr"],EUR:[2,"\u20ac","\u20ac"],GBP:[2,"\u00a3","GB\u00a3"],HKD:[2,"$","HK$"],HRK:[2,"kn","kn"],HUF:[0,"Ft",
"Ft"],IDR:[0,"Rp","Rp"],ILS:[2,"\u20aa","IL\u20aa"],INR:[2,"\u20b9","Rs"],IRR:[0,"Rial","IRR"],ISK:[0,"kr","kr"],JMD:[2,"$","JA$"],JPY:[0,"\u00a5","JP\u00a5"],KRW:[0,"\u20a9","KR\u20a9"],LKR:[2,"Rs","SLRs"],LTL:[2,"Lt","Lt"],MNT:[0,"\u20ae","MN\u20ae"],MVR:[2,"Rf","MVR"],MXN:[2,"$","Mex$"],MYR:[2,"RM","RM"],NOK:[50,"kr","NOkr"],PAB:[2,"B/.","B/."],PEN:[2,"S/.","S/."],PHP:[2,"\u20b1","Php"],PKR:[0,"Rs","PKRs."],PLN:[50,"z\u0142","z\u0142"],RON:[2,"RON","RON"],RSD:[0,"din","RSD"],RUB:[50,"\u0440\u0443\u0431.",
"\u0440\u0443\u0431."],SAR:[2,"Rial","Rial"],SEK:[2,"kr","kr"],SGD:[2,"$","S$"],THB:[2,"\u0e3f","THB"],TRY:[2,"TL","YTL"],TWD:[2,"NT$","NT$"],TZS:[0,"TSh","TSh"],UAH:[2,"\u20b4","UAH"],USD:[2,"$","US$"],UYU:[2,"$","$U"],VND:[0,"\u20ab","VN\u20ab"],YER:[0,"Rial","Rial"],ZAR:[2,"R","ZAR"]};
var kh={aq:".",jq:",",kq:"%",jn:"0",hv:"+",Xu:"-",cq:"E",lq:"\u2030",bn:"\u221e",av:"NaN",$p:"#,##0.###",mv:"#E0",gv:"#,##0%",uu:"\u00a4#,##0.00",yu:"USD"},lh=kh,lh=kh;var oh=function(b,c,d){this.l=c||lh.yu;this.Ic=d||0;this.B=40;this.a=1;this.O=0;this.e=3;this.A=this.b=0;this.tb=!1;this.p=this.g="";this.k="-";this.h="";this.o=1;this.H=3;this.I=this.K=!1;this.j=0;if("number"==typeof b)switch(b){case 1:mh(this,lh.$p);break;case 2:mh(this,lh.mv);break;case 3:mh(this,lh.gv);break;case 4:b=lh.uu;c=["0"];d=jh[this.l][0]&7;if(0<d){c.push(".");for(var e=0;e<d;e++)c.push("0")}b=b.replace(/0.00/g,c.join(""));mh(this,b);break;case 5:nh(this,1);break;case 6:nh(this,2);break;
default:throw Error("H");}else mh(this,b)},mh=function(b,c){c.replace(/ /g,"\u00a0");var d=[0];b.g=ph(b,c,d);for(var e=d[0],f=-1,g=0,h=0,l=0,m=-1,r=c.length,u=!0;d[0]<r&&u;d[0]++)switch(c.charAt(d[0])){case "#":0<h?l++:g++;0<=m&&0>f&&m++;break;case "0":if(0<l)throw Error("M`"+c);h++;0<=m&&0>f&&m++;break;case ",":m=0;break;case ".":if(0<=f)throw Error("N`"+c);f=g+h+l;break;case "E":if(b.I)throw Error("O`"+c);b.I=!0;b.A=0;d[0]+1<r&&"+"==c.charAt(d[0]+1)&&(d[0]++,b.tb=!0);for(;d[0]+1<r&&"0"==c.charAt(d[0]+
1);)d[0]++,b.A++;if(1>g+h||1>b.A)throw Error("P`"+c);u=!1;break;default:d[0]--,u=!1}0==h&&0<g&&0<=f&&(h=f,0==h&&h++,l=g-h,g=h-1,h=1);if(0>f&&0<l||0<=f&&(f<g||f>g+h)||0==m)throw Error("Q`"+c);l=g+h+l;b.e=0<=f?l-f:0;0<=f&&(b.b=g+h-f,0>b.b&&(b.b=0));b.a=(0<=f?f:l)-g;b.I&&(b.B=g+b.a,0==b.e&&0==b.a&&(b.a=1));b.H=Math.max(0,m);b.K=0==f||f==l;e=d[0]-e;b.p=ph(b,c,d);d[0]<c.length&&";"==c.charAt(d[0])?(d[0]++,b.k=ph(b,c,d),d[0]+=e,b.h=ph(b,c,d)):(b.k=b.g+b.k,b.h+=b.p)},nh=function(b,c){b.j=c;mh(b,lh.$p);b.b=
0;b.e=2;if(0<b.b)throw Error("G");b.O=2};
oh.prototype.parse=function(b,c){var d=c||[0];if(0!=this.j)throw Error("I");var e=NaN;b=b.replace(/ /g,"\u00a0");var f=b.indexOf(this.g,d[0])==d[0],g=b.indexOf(this.k,d[0])==d[0];f&&g&&(this.g.length>this.k.length?g=!1:this.g.length<this.k.length&&(f=!1));f?d[0]+=this.g.length:g&&(d[0]+=this.k.length);if(b.indexOf(lh.bn,d[0])==d[0])d[0]+=lh.bn.length,e=Infinity;else{var e=b,h=!1,l=!1,m=!1,r=1,u=lh.aq,w=lh.jq,C=lh.cq;if(0!=this.j)throw Error("J");for(var J="";d[0]<e.length;d[0]++){var V=e.charAt(d[0]),
xa=qh(V);if(0<=xa&&9>=xa)J+=xa,m=!0;else if(V==u.charAt(0)){if(h||l)break;J+=".";h=!0}else if(V==w.charAt(0)&&("\u00a0"!=w.charAt(0)||d[0]+1<e.length&&0<=qh(e.charAt(d[0]+1)))){if(h||l)break}else if(V==C.charAt(0)){if(l)break;J+="E";l=!0}else if("+"==V||"-"==V)J+=V;else if(V==lh.kq.charAt(0)){if(1!=r)break;r=100;if(m){d[0]++;break}}else if(V==lh.lq.charAt(0)){if(1!=r)break;r=1E3;if(m){d[0]++;break}}else break}e=parseFloat(J)/r}if(f){if(b.indexOf(this.p,d[0])!=d[0])return NaN;d[0]+=this.p.length}else if(g){if(b.indexOf(this.h,
d[0])!=d[0])return NaN;d[0]+=this.h.length}return g?-e:e};
var xh=function(b,c){if(isNaN(c))return lh.av;var d=[],e;var f=c,g=c;0==b.j?e=rh:(f=Math.abs(f),g=Math.abs(g),e=sh(b,1>=f?0:th(f)).Kn,uh(b,g/Math.pow(10,e)),f=uh(b,f/Math.pow(10,e)),e=sh(b,e+th(f.js)));c/=Math.pow(10,e.Kn);d.push(e.prefix);f=0>c||0==c&&0>1/c;d.push(f?b.k:b.g);if(isFinite(c))if(c=c*(f?-1:1)*b.o,b.I)if(g=c,0==g)vh(b,g,b.a,d),wh(b,0,d);else{var h;h=Math.log(g)/Math.log(10);h=Math.floor(h+2E-15);var g=g/Math.pow(10,h),l=b.a;if(1<b.B&&b.B>b.a){for(;0!=h%b.B;)g*=10,h--;l=1}else 1>b.a?(h++,
g/=10):(h-=b.a-1,g*=Math.pow(10,b.a-1));vh(b,g,l,d);wh(b,h,d)}else vh(b,c,b.a,d);else d.push(lh.bn);d.push(f?b.h:b.p);d.push(e.Xt);return d.join("")},uh=function(b,c){var d=Math.pow(10,b.e),e=0>=b.O?Math.round(c*d):Math.round(yh(c*d,b.O,b.e)),f;isFinite(e)?(f=Math.floor(e/d),d=Math.floor(e-f*d)):(f=c,d=0);return{js:f,Fw:d}},vh=function(b,c,d,e){if(b.b>b.e)throw Error("K");c=uh(b,c);var f=Math.pow(10,b.e),g=c.js,h=c.Fw,l=0<b.b||0<h||!1;c=b.b;l&&(c=b.b);for(var m="",r=g;1E20<r;)m="0"+m,r=Math.round(r/
10);var m=r+m,u=lh.aq,w=lh.jq,r=lh.jn.charCodeAt(0),C=m.length;if(0<g||0<d){for(g=C;g<d;g++)e.push(String.fromCharCode(r));for(g=0;g<C;g++)e.push(String.fromCharCode(r+1*m.charAt(g))),1<C-g&&0<b.H&&1==(C-g)%b.H&&e.push(w)}else l||e.push(String.fromCharCode(r));(b.K||l)&&e.push(u);b=""+(h+f);for(d=b.length;"0"==b.charAt(d-1)&&d>c+1;)d--;for(g=1;g<d;g++)e.push(String.fromCharCode(r+1*b.charAt(g)))},wh=function(b,c,d){d.push(lh.cq);0>c?(c=-c,d.push(lh.Xu)):b.tb&&d.push(lh.hv);c=""+c;for(var e=lh.jn,
f=c.length;f<b.A;f++)d.push(e);d.push(c)},qh=function(b){b=b.charCodeAt(0);if(48<=b&&58>b)return b-48;var c=lh.jn.charCodeAt(0);return c<=b&&b<c+10?b-c:-1},ph=function(b,c,d){for(var e="",f=!1,g=c.length;d[0]<g;d[0]++){var h=c.charAt(d[0]);if("'"==h)d[0]+1<g&&"'"==c.charAt(d[0]+1)?(d[0]++,e+="'"):f=!f;else if(f)e+=h;else switch(h){case "#":case "0":case ",":case ".":case ";":return e;case "\u00a4":if(d[0]+1<g&&"\u00a4"==c.charAt(d[0]+1))d[0]++,e+=b.l;else switch(b.Ic){case 0:e+=jh[b.l][1];break;case 2:var h=
b.l,l=jh[h],e=e+(h==l[1]?h:h+" "+l[1]);break;case 1:e+=jh[b.l][2]}break;case "%":if(1!=b.o)throw Error("L");b.o=100;e+=lh.kq;break;case "\u2030":if(1!=b.o)throw Error("L");b.o=1E3;e+=lh.lq;break;default:e+=h}}return e},rh={prefix:"",Xt:"",Kn:0},sh=function(b,c){var d=1==b.j?ih.su:ih.ru;if(3>c)return rh;c=Math.min(14,c);d=d[Math.pow(10,c)];if(!d)return rh;d=d.other;return d&&"0"!=d?(d=/([^0]*)(0+)(.*)/.exec(d))?{prefix:d[1],Xt:d[3],Kn:c-(d[2].length-1)}:rh:rh},th=function(b){for(var c=0;1<=(b/=10);)c++; return c},yh=function(b,c,d){if(!b)return b;c=c-th(b)-1;if(c<-d)return d=Math.pow(10,d),Math.round(b/d)*d;d=Math.pow(10,c);return Math.round(b*d)/d};
var Ah=function(b){b=zh(b);return hb(b,function(b){return b.getContent()})},Bh=function(b,c,d){this.k=b;this.b=c;this.a=d};Bh.prototype.getContent=function(){return this.k.substring(this.b,this.a)};var zh=function(b){for(var c=RegExp("\r\n|\r|\n","g"),d=0,e,f=[];e=c.exec(b);)d=new Bh(b,d,e.index),f.push(d),d=c.lastIndex;d<b.length&&(d=new Bh(b,d,b.length),f.push(d));return f};
var Ch=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/,Fh=function(b){if(Dh){Dh=!1;var c=n.location;if(c){var d=c.href;if(d&&(d=Eh(Fh(d)[3]||null))&&d!=c.hostname)throw Dh=!0,Error();}}return b.match(Ch)},Dh=Ac,Eh=function(b){return b?decodeURI(b):b},Gh=function(b,c){for(var d=b.split("&"),e=0;e<d.length;e++){var f=d[e].indexOf("="),g=null,h=null;0<=f?(g=d[e].substring(0,f),h=d[e].substring(f+1)):g=d[e];c(g,h?Ja(h):"")}},Hh=function(b){if(b[1]){var c=
b[0],d=c.indexOf("#");0<=d&&(b.push(c.substr(d)),b[0]=c=c.substr(0,d));d=c.indexOf("?");0>d?b[1]="?":d==c.length-1&&(b[1]=void 0)}return b.join("")},Ih=function(b,c,d){if(fa(c))for(var e=0;e<c.length;e++)Ih(b,String(c[e]),d);else null!=c&&d.push("&",b,""===c?"":"=",encodeURIComponent(String(c)))},Jh=function(b,c,d){for(d=d||0;d<c.length;d+=2)Ih(c[d],c[d+1],b);return b},Kh=function(b,c){for(var d in c)Ih(d,c[d],b);return b},Lh=function(b,c){return Hh(2==arguments.length?Jh([b],arguments[1],0):Jh([b], arguments,1))};
var Mh=function(b,c){this.b=this.l=this.g="";this.j=null;this.h=this.e="";this.k=!1;var d;b instanceof Mh?(this.k=p(c)?c:b.k,Nh(this,b.g),this.l=b.l,this.b=b.b,Oh(this,b.j),Ph(this,b.e),Qh(this,b.a.clone()),Rh(this,b.h)):b&&(d=Fh(String(b)))?(this.k=!!c,Nh(this,d[1]||"",!0),this.l=Sh(d[2]||""),this.b=Sh(d[3]||"",!0),Oh(this,d[4]),Ph(this,d[5]||"",!0),Qh(this,d[6]||"",!0),Rh(this,d[7]||"",!0)):(this.k=!!c,this.a=new Th(null,0,this.k))};
Mh.prototype.toString=function(){var b=[],c=this.g;c&&b.push(Uh(c,Vh,!0),":");if(c=this.b){b.push("//");var d=this.l;d&&b.push(Uh(d,Vh,!0),"@");b.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));c=this.j;null!=c&&b.push(":",String(c))}if(c=this.e)this.b&&"/"!=c.charAt(0)&&b.push("/"),b.push(Uh(c,"/"==c.charAt(0)?Wh:Xh,!0));(c=this.a.toString())&&b.push("?",c);(c=this.h)&&b.push("#",Uh(c,Yh));return b.join("")};Mh.prototype.clone=function(){return new Mh(this)};
var Nh=function(b,c,d){b.g=d?Sh(c,!0):c;b.g&&(b.g=b.g.replace(/:$/,""))},Oh=function(b,c){if(c){c=Number(c);if(isNaN(c)||0>c)throw Error("R`"+c);b.j=c}else b.j=null},Zh=function(b){return b.e},Ph=function(b,c,d){b.e=d?Sh(c,!0):c;return b},Qh=function(b,c,d){c instanceof Th?(b.a=c,$h(b.a,b.k)):(d||(c=Uh(c,ai)),b.a=new Th(c,0,b.k));return b},bi=function(b){return Qh(b,"",void 0)},di=function(b,c,d){ci(b.a,c,d);return b},fi=function(b,c,d){fa(d)||(d=[String(d)]);ei(b.a,c,d)},gi=function(b,c){return b.a.get(c)},
Rh=function(b,c,d){b.h=d?Sh(c):c;return b};Mh.prototype.Pf=function(){return!1};
var Sh=function(b,c){return b?c?decodeURI(b):decodeURIComponent(b):""},Uh=function(b,c,d){return ja(b)?(b=encodeURI(b).replace(c,hi),d&&(b=b.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),b):null},hi=function(b){b=b.charCodeAt(0);return"%"+(b>>4&15).toString(16)+(b&15).toString(16)},Vh=/[#\/\?@]/g,Xh=/[\#\?:]/g,Wh=/[\#\?]/g,ai=/[\#\?@]/g,Yh=/#/g,Th=function(b,c,d){this.b=this.a=null;this.k=b||null;this.e=!!d},ii=function(b){b.a||(b.a=new oe,b.b=0,b.k&&Gh(b.k,function(c,d){b.add(Ja(c),d)}))},ji=function(b){var c=
se(b);if("undefined"==typeof c)throw Error("T");var d=new Th(null,0,void 0);b=re(b);for(var e=0;e<c.length;e++){var f=c[e],g=b[e];fa(g)?ei(d,f,g):d.add(f,g)}return d};k=Th.prototype;k.Ub=function(){ii(this);return this.b};k.add=function(b,c){ii(this);this.k=null;b=ki(this,b);var d=this.a.get(b);d||this.a.xc(b,d=[]);d.push(c);this.b++;return this};k.remove=function(b){ii(this);b=ki(this,b);return qe(this.a.S,b)?(this.k=null,this.b-=this.a.get(b).length,this.a.remove(b)):!1};
k.clear=function(){this.a=this.k=null;this.b=0};k.isEmpty=function(){ii(this);return 0==this.b};var li=function(b,c){ii(b);c=ki(b,c);return qe(b.a.S,c)};Th.prototype.Dd=function(){ii(this);for(var b=this.a.gc(),c=this.a.Dd(),d=[],e=0;e<c.length;e++)for(var f=b[e],g=0;g<f.length;g++)d.push(c[e]);return d};Th.prototype.gc=function(b){ii(this);var c=[];if(ja(b))li(this,b)&&(c=ub(c,this.a.get(ki(this,b))));else{b=this.a.gc();for(var d=0;d<b.length;d++)c=ub(c,b[d])}return c};
var ci=function(b,c,d){ii(b);b.k=null;c=ki(b,c);li(b,c)&&(b.b-=b.a.get(c).length);b.a.xc(c,[d]);b.b++};Th.prototype.get=function(b,c){var d=b?this.gc(b):[];return 0<d.length?String(d[0]):c};var ei=function(b,c,d){b.remove(c);0<d.length&&(b.k=null,b.a.xc(ki(b,c),vb(d)),b.b+=d.length)};
Th.prototype.toString=function(){if(this.k)return this.k;if(!this.a)return"";for(var b=[],c=this.a.Dd(),d=0;d<c.length;d++)for(var e=c[d],f=encodeURIComponent(String(e)),e=this.gc(e),g=0;g<e.length;g++){var h=f;""!==e[g]&&(h+="="+encodeURIComponent(String(e[g])));b.push(h)}return this.k=b.join("&")};Th.prototype.clone=function(){var b=new Th;b.k=this.k;this.a&&(b.a=this.a.clone(),b.b=this.b);return b}; var ki=function(b,c){var d=String(c);b.e&&(d=d.toLowerCase());return d},$h=function(b,c){c&&!b.e&&(ii(b),b.k=null,b.a.forEach(function(b,c){var f=c.toLowerCase();c!=f&&(this.remove(c),ei(this,f,b))},b));b.e=c};
var mi=xc()||sc("iPod"),ni=sc("iPad");!sc("Android")||vc()||sc("Firefox")||tc();var oi=vc();window.requestAnimationFrame=window.requestAnimationFrame||window.msRequestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame;window.cancelAnimationFrame=window.cancelAnimationFrame||window.msCancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.cancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||window.mozCancelRequestAnimationFrame||window.webkitCancelRequestAnimationFrame;
window.requestAnimationFrame||(window.requestAnimationFrame=function(b){return window.setTimeout(b,1E3/60)});window.cancelAnimationFrame||(window.cancelAnimationFrame=function(b){window.clearTimeout(b)});window.log=function(b){window.console&&window.console.log(b)};
var pi=function(b,c){var d={};$.each(b,function(b,f){d[c+"."+b]=f});return d},qi=function(b,c){var d={};$.each(b,function(b,f){var g=/^([^\.]*)\.(.*)$/.exec(b);g&&g[1]==c&&(d[g[2]]=f)});return d},ri=function(b,c,d,e){c instanceof jQuery&&(c=c.get(0));b=Ga(b);var f=RegExp('<i>(.*?)</i>|<b>(.*?)</b>|<a href="([^"]*)">(.*?)</a>',"gi");y(b.split("\n\n"),function(b){var h=document.createElement(e?"span":"p");d&&(h.className=d);var l=Ah(b);y(l,function(b,c){if(b=Ga(b)){for(var d,g=0;null!==(d=f.exec(b));){0!=
d.index&&h.appendChild(document.createTextNode(String(b.substr(g,d.index-g))));g=null;try{Aa(d[0],"<b>")?g=L(Zg,{text:d[2]}):Aa(d[0],"<i>")?g=L($g,{text:d[1]}):Aa(d[0],"<a href")?g=L(Yg,{url:d[3],text:d[4]}):g=document.createTextNode(String(d[0]))}catch(C){g=document.createTextNode(String(d[0]))}g&&h.appendChild(g);g=d.index+d[0].length}g!=b.length&&h.appendChild(document.createTextNode(String(b.substr(g,b.length-g))));c<l.length-1&&h.appendChild(e?document.createTextNode(" "):document.createElement("br"))}});
c.appendChild(h)})},si=function(b,c){b=Ga(b);$.each(b.split("\n\n"),function(b,e){c.append($("<p>").text(e))})},ti=function(b,c){$.each(b.split("<a"),function(b,e){if(-1!=e.indexOf("</a>")){var f=e.split("</a>"),g=(f[0]||"").match(/href="([^"]*)">(.*)/);if(g)try{c.append($(L(Yg,{url:g[1],text:g[2]}))),e=f[1]||""}catch(h){e="<a"+e}else e="<a"+e}c.append($("<span>").text(e))})},ui=function(b,c){c&&(b=b.replace(/href=\"([^\"]*)\"/gi,"href='$1'"));b=b.replace(/"([^"]*)"/gi,"\u201c$1\u201d");c&&(b=b.replace(/href='([^\']*)\'/gi,
'href="$1"'));return b},vi=function(b,c,d){$.each(["mousewheel","DOMMouseScroll"],function(e,f){c&&(f+="."+c);b.bind(f,d)})},wi=function(b){var c=0;b.wheelDelta&&(c=b.wheelDelta/120);b.detail&&(c=-b.detail/3);var d=0,e=c;void 0!==b.axis&&b.axis===b.HORIZONTAL_AXIS&&(d=c=-b.detail,e=0);void 0!==b.wheelDeltaY&&(e=b.wheelDeltaY/120);void 0!==b.wheelDeltaX&&(d=b.wheelDeltaX/120);return{Rq:c,deltaX:d,deltaY:e}},xi=new oh(1),yi=function(b,c){if(Rb(b)!=Rb(c))return!1;for(var d in b)if(!(d in c)||b[d]!=c[d])return!1;
return!0},Ai=function(b,c){var d=$("<a>").attr("target","_blank").attr("href",b).attr("rel","nofollow").on("click",function(b){b.stopPropagation()});d.text(Ea(x(c))?b:c);if(zi()){var e=$("<span>").append(d.text());d.text("");d.append(e)}return d},Bi=function(b,c){c.find(".gci-scroll-overlay, .gci-scroll-overlay-arrows-container").remove();var d=b.prop("scrollHeight"),e=b.height();b.toggleClass("gci-scroll-overlay-enabled",d>e);if(d>e){var f=$("<div>").addClass("gci-scroll-overlay").addClass("gci-scroll-overlay-top").hide(),
g=$("<div>").addClass("gci-scroll-overlay").addClass("gci-scroll-overlay-bottom");c.append(f).append(g);var h=$("<div>").addClass("gci-scroll-overlay-arrows-container");h.append($("<div>").addClass("gci-scroll-overlay-arrow").addClass("gci-scroll-overlay-arrow-up").append($("<div>").addClass("SPRITE_icon_textscroll_up_default")).on("click",function(){var c=b.scrollTop()-e/2;0>=c&&(c=0);b.animate({scrollTop:c},200);0==c&&f.fadeOut(200);g.fadeIn(200);return!1}));h.append($("<div>").addClass("gci-scroll-overlay-arrow").addClass("gci-scroll-overlay-arrow-down").append($("<div>").addClass("SPRITE_icon_textscroll_down_default")).on("click",
function(){var c=b.scrollTop()+e/2;c>=d&&(c=d);b.animate({scrollTop:c},200);c+e>=d&&g.fadeOut(200);f.fadeIn(200);return!1}));c.append(h)}},Ci=function(b){-1==b.indexOf("google.com")&&-1==b.indexOf("ggpht.com")||"https:"!=window.location.protocol||(b=b.replace("http://","https://"));return b},Ei=function(b){b=Di(b);ci(b.a,K.vf,"en");return b.toString().replace(/%252F/g,"")},Di=function(b){b=b.split("?");b[0]=b[0].replace(/%2F/g,"%252F");return new Mh(b.join("?"))},Fi=function(b){return b.toString().replace(/%252F/g,
"%2F")},Gi=function(b){return"//i"+(Math.floor(4*Math.random())+1)+".ytimg.com/vi/"+b+"/hqdefault.jpg"},Hi=function(){return!("ArrayBuffer"in window)},zi=function(){return mi||ni||Ec},Ii=function(){return!!(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)},Ji=function(b){if(!zi())return!0;0==$("meta[name=viewport]").length&&$("head").append('<meta name="viewport">');var c=-1==($("meta[name=viewport]").attr("content")||"").indexOf("user-scalable=0");$("meta[name=viewport]").attr("content",
"user-scalable="+(b?1:0));return c},Ki=function(b){if(Ec){var c=$("<div>").addClass("gci-fix-android-scrolling-issue");c.append(b.contents());b.append(c)}},Li=function(b,c,d,e,f){return"//maps.googleapis.com/maps/api/streetview?size="+f+b+c+e+d+"&sensor=false&key="+K.Wu},Mi=function(b,c){for(var d=parseInt(b,10).toString(16),e="",f=0;f<c;f++)e+="0";return(e+d).slice(-c)},Ni=function(b){return b instanceof Element?$(b):b},Oi=function(b){return b?Ni(b):null};
var Qi=function(b){A(this,b,0,-1,Pi)};v(Qi,z);var Pi=[1],Si=function(b,c){var d={hl:cc(c.Wb(),Ri,b),Cw:B(c,2)};b&&(d.X=c);return d};Qi.prototype.L=function(){return H(this)};Qi.prototype.Wb=function(){return F(this,Ti,1)};var Ti=function(b){A(this,b,0,7,null)};v(Ti,z);var Ri=function(b,c){var d={eg:B(c,1),lang:null!=B(c,3)?B(c,3):"en",vm:B(c,4),rE:B(c,5),source:B(c,6)};dc(c,d,Ui,Ti.prototype.getExtension,b);b&&(d.X=c);return d};Ti.prototype.L=function(){return H(this)}; Ti.prototype.T=function(){return B(this,1)};Ti.prototype.getLang=function(){return null!=B(this,3)?B(this,3):"en"};Ti.prototype.wl=function(){return B(this,5)};var Ui={};
var Vi=function(b){A(this,b,0,-1,null)};v(Vi,z);var Zi=function(b,c){var d,e={kC:B(c,1),nC:(d=E(c,Qi,4))&&Si(b,d),start:(d=Wi(c))&&Xi(b,d),end:(d=Yi(c))&&Xi(b,d)};b&&(e.X=c);return e};Vi.prototype.L=function(){return H(this)};var Wi=function(b){return E(b,$i,2)},Yi=function(b){return E(b,$i,3)},$i=function(b){A(this,b,0,-1,null)};v($i,z);var Xi=function(b,c){var d={gA:B(c,1),rC:B(c,2),ZC:B(c,3)};b&&(d.X=c);return d};$i.prototype.L=function(){return H(this)}; $i.prototype.He=function(){return B(this,1)};
var aj;
aj={bq:["BC","AD"],Bu:["Before Christ","Anno Domini"],bv:"JFMAMJJASOND".split(""),sv:"JFMAMJJASOND".split(""),Yu:"January February March April May June July August September October November December".split(" "),rv:"January February March April May June July August September October November December".split(" "),ov:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),uv:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),Fv:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),wv:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
qv:"Sun Mon Tue Wed Thu Fri Sat".split(" "),vv:"Sun Mon Tue Wed Thu Fri Sat".split(" "),b:"SMTWTFS".split(""),tv:"SMTWTFS".split(""),pv:["Q1","Q2","Q3","Q4"],jv:["1st quarter","2nd quarter","3rd quarter","4th quarter"],pu:["AM","PM"],Zm:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],nq:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],vu:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],fq:6,k:[5,6],gq:5};
var bj=function(b,c,d,e,f,g){ja(b)?(this.h="y"==b?c:0,this.g="m"==b?c:0,this.a="d"==b?c:0,this.b="h"==b?c:0,this.k="n"==b?c:0,this.e="s"==b?c:0):(this.h=b||0,this.g=c||0,this.a=d||0,this.b=e||0,this.k=f||0,this.e=g||0)};bj.prototype.clone=function(){return new bj(this.h,this.g,this.a,this.b,this.k,this.e)};bj.prototype.add=function(b){this.h+=b.h;this.g+=b.g;this.a+=b.a;this.b+=b.b;this.k+=b.k;this.e+=b.e};
var ej=function(b,c,d){ka(b)?(this.da=cj(b,c||0,d||1),dj(this,d||1)):ha(b)?(this.da=cj(b.getFullYear(),b.getMonth(),b.getDate()),dj(this,b.getDate())):(this.da=new Date(ta()),this.da.setHours(0),this.da.setMinutes(0),this.da.setSeconds(0),this.da.setMilliseconds(0))},cj=function(b,c,d){c=new Date(b,c,d);0<=b&&100>b&&c.setFullYear(c.getFullYear()-1900);return c};k=ej.prototype;k.kl=aj.fq;k.ll=aj.gq;k.clone=function(){var b=new ej(this.da);b.kl=this.kl;b.ll=this.ll;return b};k.getFullYear=function(){return this.da.getFullYear()};
k.getMonth=function(){return this.da.getMonth()};k.getDate=function(){return this.da.getDate()};k.getTime=function(){return this.da.getTime()};k.getDay=function(){return this.da.getDay()};k.getUTCFullYear=function(){return this.da.getUTCFullYear()};k.getUTCMonth=function(){return this.da.getUTCMonth()};k.getUTCDate=function(){return this.da.getUTCDate()};k.getUTCHours=function(){return this.da.getUTCHours()};k.getUTCMinutes=function(){return this.da.getUTCMinutes()};k.getTimezoneOffset=function(){return this.da.getTimezoneOffset()};
var fj=function(b){b=b.getTimezoneOffset();if(0==b)b="Z";else{var c=Math.abs(b)/60,d=Math.floor(c),c=60*(c-d);b=(0<b?"-":"+")+Wa(d,2)+":"+Wa(c,2)}return b};
ej.prototype.add=function(b){if(b.h||b.g){var c=this.getMonth()+b.g+12*b.h,d=this.getFullYear()+Math.floor(c/12),c=c%12;0>c&&(c+=12);var e;a:{switch(c){case 1:e=0!=d%4||0==d%100&&0!=d%400?28:29;break a;case 5:case 8:case 10:case 3:e=30;break a}e=31}e=Math.min(e,this.getDate());this.da.setDate(1);this.da.setFullYear(d);this.da.setMonth(c);this.da.setDate(e)}b.a&&(c=new Date(this.getFullYear(),this.getMonth(),this.getDate(),12),b=new Date(c.getTime()+864E5*b.a),this.da.setDate(1),this.da.setFullYear(b.getFullYear()),
this.da.setMonth(b.getMonth()),c=b.getDate(),this.da.setDate(c),dj(this,b.getDate()))};ej.prototype.Al=function(b,c){return[this.getFullYear(),Wa(this.getMonth()+1,2),Wa(this.getDate(),2)].join(b?"-":"")+(c?fj(this):"")};ej.prototype.toString=function(){return this.Al()};var dj=function(b,c){if(b.getDate()!=c){var d=b.getDate()<c?1:-1;b.da.setUTCHours(b.da.getUTCHours()+d)}};ej.prototype.valueOf=function(){return this.da.valueOf()};
var gj=function(b,c,d,e,f,g,h){this.da=ka(b)?new Date(b,c||0,d||1,e||0,f||0,g||0,h||0):new Date(b?b.getTime():ta())};v(gj,ej);k=gj.prototype;k.getHours=function(){return this.da.getHours()};k.getMinutes=function(){return this.da.getMinutes()};k.getSeconds=function(){return this.da.getSeconds()};k.getUTCHours=function(){return this.da.getUTCHours()};k.getUTCMinutes=function(){return this.da.getUTCMinutes()};
k.add=function(b){ej.prototype.add.call(this,b);b.b&&this.da.setHours(this.da.getHours()+b.b);b.k&&this.da.setMinutes(this.da.getMinutes()+b.k);b.e&&this.da.setSeconds(this.da.getSeconds()+b.e)};k.Al=function(b,c){var d=ej.prototype.Al.call(this,b);return b?d+" "+Wa(this.getHours(),2)+":"+Wa(this.getMinutes(),2)+":"+Wa(this.getSeconds(),2)+(c?fj(this):""):d+"T"+Wa(this.getHours(),2)+Wa(this.getMinutes(),2)+Wa(this.getSeconds(),2)+(c?fj(this):"")};k.toString=function(){return this.Al()}; k.clone=function(){var b=new gj(this.da);b.kl=this.kl;b.ll=this.ll;return b};
var hj=function(){},ij=function(b){if("number"==typeof b){var c=new hj;c.b=b;var d;d=b;if(0==d)d="Etc/GMT";else{var e=["Etc/GMT",0>d?"-":"+"];d=Math.abs(d);e.push(Math.floor(d/60)%100);d%=60;0!=d&&e.push(":",Wa(d,2));d=e.join("")}c.e=d;0==b?b="UTC":(d=["UTC",0>b?"+":"-"],b=Math.abs(b),d.push(Math.floor(b/60)%100),b%=60,0!=b&&d.push(":",b),b=d.join(""));c.k=[b,b];c.a=[];return c}c=new hj;c.e=b.id;c.b=-b.std_offset;c.k=b.names;c.a=b.transitions;return c},jj=function(b,c){for(var d=Date.UTC(c.getUTCFullYear(), c.getUTCMonth(),c.getUTCDate(),c.getUTCHours(),c.getUTCMinutes())/36E5,e=0;e<b.a.length&&d>=b.a[e];)e+=2;return 0==e?0:b.a[e-1]};
var mj=function(b){this.b=[];this.a=aj;"number"==typeof b?kj(this,b):lj(this,b)},nj=[/^\'(?:[^\']|\'\')*\'/,/^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|w+|z+|Z+)/,/^[^\'GyMkSEahKHcLQdmsvwzZ]+/],lj=function(b,c){for(;c;)for(var d=0;d<nj.length;++d){var e=c.match(nj[d]);if(e){e=e[0];c=c.substring(e.length);0==d&&("''"==e?e="'":(e=e.substring(1,e.length-1),e=e.replace(/\'\'/,"'")));b.b.push({text:e,type:d});break}}},pj=function(b,c,d){if(!c)throw Error("U");var e=d?6E4*(c.getTimezoneOffset()-
(d.b-jj(d,c))):0,f=e?new Date(c.getTime()+e):c,g=f;d&&f.getTimezoneOffset()!=c.getTimezoneOffset()&&(f=new Date(f.getTime()+6E4*(f.getTimezoneOffset()-c.getTimezoneOffset())),g=new Date(c.getTime()+(e+(0<e?-864E5:864E5))));for(var e=[],h=0;h<b.b.length;++h){var l=b.b[h].text;1==b.b[h].type?e.push(oj(b,l,c,f,g,d)):e.push(l)}return e.join("")},kj=function(b,c){var d;if(4>c)d=b.a.Zm[c];else if(8>c)d=b.a.nq[c-4];else if(12>c)d=b.a.vu[c-8],d=d.replace("{1}",b.a.Zm[c-8]),d=d.replace("{0}",b.a.nq[c-8]);
else{kj(b,10);return}lj(b,d)},rj=function(b,c){return qj(c,b.a)},qj=function(b,c){b=String(b);var d=c||aj;if(void 0===d.Jv)return b;for(var e=[],f=0;f<b.length;f++){var g=b.charCodeAt(f);e.push(48<=g&&57>=g?String.fromCharCode(d.Jv+g-48):b.charAt(f))}return e.join("")},sj=function(b){if(!(b.getHours&&b.getSeconds&&b.getMinutes))throw Error("V");},oj=function(b,c,d,e,f,g){var h=c.length;switch(c.charAt(0)){case "G":return d=0<e.getFullYear()?1:0,4<=h?b.a.Bu[d]:b.a.bq[d];case "y":return d=e.getFullYear(),
0>d&&(d=-d),2==h&&(d%=100),rj(b,Wa(d,h));case "M":a:switch(d=e.getMonth(),h){case 5:b=b.a.bv[d];break a;case 4:b=b.a.Yu[d];break a;case 3:b=b.a.ov[d];break a;default:b=rj(b,Wa(d+1,h))}return b;case "k":return sj(f),rj(b,Wa(f.getHours()||24,h));case "S":return rj(b,(f.getTime()%1E3/1E3).toFixed(Math.min(3,h)).substr(2)+(3<h?Wa(0,h-3):""));case "E":return d=e.getDay(),4<=h?b.a.Fv[d]:b.a.qv[d];case "a":return sj(f),h=f.getHours(),b.a.pu[12<=h&&24>h?1:0];case "h":return sj(f),rj(b,Wa(f.getHours()%12||
12,h));case "K":return sj(f),rj(b,Wa(f.getHours()%12,h));case "H":return sj(f),rj(b,Wa(f.getHours(),h));case "c":a:switch(d=e.getDay(),h){case 5:b=b.a.tv[d];break a;case 4:b=b.a.wv[d];break a;case 3:b=b.a.vv[d];break a;default:b=rj(b,Wa(d,1))}return b;case "L":a:switch(d=e.getMonth(),h){case 5:b=b.a.sv[d];break a;case 4:b=b.a.rv[d];break a;case 3:b=b.a.uv[d];break a;default:b=rj(b,Wa(d+1,h))}return b;case "Q":return d=Math.floor(e.getMonth()/3),4>h?b.a.pv[d]:b.a.jv[d];case "d":return rj(b,Wa(e.getDate(),
h));case "m":return sj(f),rj(b,Wa(f.getMinutes(),h));case "s":return sj(f),rj(b,Wa(f.getSeconds(),h));case "v":return b=g||ij(d.getTimezoneOffset()),b.e;case "w":return d=f.getDate(),d=new Date(f.getFullYear(),f.getMonth(),d),f=b.a.fq||0,d=d.valueOf()+864E5*(((b.a.gq||3)-f+7)%7-((d.getDay()+6)%7-f+7)%7),d=Math.floor(Math.round((d-(new Date((new Date(d)).getFullYear(),0,1)).valueOf())/864E5)/7)+1,rj(b,Wa(d,h));case "z":return b=g||ij(d.getTimezoneOffset()),4>h?b.k[0<jj(b,d)?2:0]:b.k[0<jj(b,d)?3:1];
case "Z":return f=g||ij(d.getTimezoneOffset()),4>h?(b=-(f.b-jj(f,d)),h=[0>b?"-":"+"],b=Math.abs(b),h.push(Wa(Math.floor(b/60)%100,2),Wa(b%60,2)),b=h.join("")):(h=f.b-jj(f,d),d=["GMT"],d.push(0>=h?"+":"-"),h=Math.abs(h),d.push(Wa(Math.floor(h/60)%100,2),":",Wa(h%60,2)),b=rj(b,d.join(""))),b;default:return""}};
var tj={Gv:"y",Hv:"y G",Iv:"MMM y",wB:"MMMM y",fB:"MMM d",gB:"MMMM dd",iB:"M/d",hB:"MMMM d",jB:"MMM d, y",uB:"EEE, MMM d",vB:"EEE, MMM d, y",SA:"d"},uj=tj,uj=tj;var vj=function(b,c,d){switch(c){case 1:case 2:c=10;break;case 3:c=11;break;case 4:c=aj.Zm[-1!=$.inArray(d,["ja","ko","zh-CN","zh-TW"])?1:2];break;case 5:c=uj.Iv;break;default:c=uj.Gv}1E3>b&&(c=uj.Hv);return new mj(c)},wj=function(b,c,d){var e=new gj;e.da.setTime(b);return pj(vj(e.getUTCFullYear(),c,d),e,ij(0))},xj=function(b,c,d){var e=new Date(Date.UTC(1900,0,1));void 0!==b&&e.setUTCFullYear(b);void 0!==c&&e.setUTCMonth(c);void 0!==d&&e.setUTCDate(d);return e},yj=function(b){var c=Math.floor(b/
1E3);b=Wa(Math.floor(c/60),2);c=Wa(c%60,2);return b+":"+c},zj=function(b){var c=b.getUTCFullYear(),d=0>=c;return{day:b.getUTCDate(),month:b.getUTCMonth()+1,year:d?-c:c,Ui:d}},Aj=function(b){var c=new gj;c.da.setTime(b);b=new Date(ta());var d;if(d=c.getDate()==b.getDate())if(b=b||new Date(ta()),d=c.getMonth()==b.getMonth())b=b||new Date(ta()),d=c.getFullYear()==b.getFullYear();if(d){switch(3){case 2:case 1:b=6;break;default:b=7}b=new mj(b)}else b=vj(c.getUTCFullYear(),4,void 0);return pj(b,c,ij(c.getTimezoneOffset()))};
var Bj=function(){this.xe=this.xe;this.Ic=this.Ic};Bj.prototype.xe=!1;Bj.prototype.isDisposed=function(){return this.xe};Bj.prototype.la=function(){this.xe||(this.xe=!0,this.D())};Bj.prototype.J=function(b){Cj(this,sa(S,b))};var Cj=function(b,c,d){b.xe?c.call(d):(b.Ic||(b.Ic=[]),b.Ic.push(p(d)?t(c,d):c))};Bj.prototype.D=function(){if(this.Ic)for(;this.Ic.length;)this.Ic.shift()()}; var Dj=function(b){return b&&"function"==typeof b.isDisposed?b.isDisposed():!1},S=function(b){b&&"function"==typeof b.la&&b.la()},Ej=function(b){for(var c=0,d=arguments.length;c<d;++c){var e=arguments[c];ga(e)?Ej.apply(null,e):S(e)}};
var Fj=!I||Lc(9),Gj=!I||Lc(9),Hj=I&&!Jc("9");!Ac||Jc("528");zc&&Jc("1.9b")||I&&Jc("8")||yc&&Jc("9.5")||Ac&&Jc("528");zc&&!Jc("8")||I&&Jc("9");var Ij="ontouchstart"in n||!!(n.document&&document.documentElement&&"ontouchstart"in document.documentElement)||!(!n.navigator||!n.navigator.msMaxTouchPoints);
var Jj=function(b,c){this.type=b;this.currentTarget=this.target=c;this.b=!1;this.Pt=!0};Jj.prototype.stopPropagation=function(){this.b=!0};Jj.prototype.preventDefault=function(){this.Pt=!1};var Kj=I?"focusin":"DOMFocusIn",Lj=I?"focusout":"DOMFocusOut";var Mj=function(b){Mj[" "](b);return b};Mj[" "]=q;var Nj=function(b,c){Jj.call(this,b?b.type:"");this.k=this.currentTarget=this.target=null;this.a=this.keyCode=this.g=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.e=!1;this.Kb=null;b&&this.init(b,c)};v(Nj,Jj);var Oj=[1,4,2];
Nj.prototype.init=function(b,c){var d=this.type=b.type;this.target=b.target||b.srcElement;this.currentTarget=c;var e=b.relatedTarget;if(e){if(zc){var f;a:{try{Mj(e.nodeName);f=!0;break a}catch(g){}f=!1}f||(e=null)}}else"mouseover"==d?e=b.fromElement:"mouseout"==d&&(e=b.toElement);this.k=e;this.offsetX=Ac||void 0!==b.offsetX?b.offsetX:b.layerX;this.offsetY=Ac||void 0!==b.offsetY?b.offsetY:b.layerY;this.clientX=void 0!==b.clientX?b.clientX:b.pageX;this.clientY=void 0!==b.clientY?b.clientY:b.pageY;this.g=
b.button;this.keyCode=b.keyCode||0;this.a=b.charCode||("keypress"==d?b.keyCode:0);this.ctrlKey=b.ctrlKey;this.altKey=b.altKey;this.shiftKey=b.shiftKey;this.metaKey=b.metaKey;this.e=Bc?b.metaKey:b.ctrlKey;this.state=b.state;this.Kb=b;b.defaultPrevented&&this.preventDefault()};var Pj=function(b){return Fj?0==b.Kb.button:"click"==b.type?!0:!!(b.Kb.button&Oj[0])},Qj=function(b){return Pj(b)&&!(Ac&&Bc&&b.ctrlKey)};
Nj.prototype.stopPropagation=function(){Nj.r.stopPropagation.call(this);this.Kb.stopPropagation?this.Kb.stopPropagation():this.Kb.cancelBubble=!0};Nj.prototype.preventDefault=function(){Nj.r.preventDefault.call(this);var b=this.Kb;if(b.preventDefault)b.preventDefault();else if(b.returnValue=!1,Hj)try{if(b.ctrlKey||112<=b.keyCode&&123>=b.keyCode)b.keyCode=-1}catch(c){}};Nj.prototype.h=function(){return this.Kb};
var Rj="closure_listenable_"+(1E6*Math.random()|0),Sj=function(b){return!(!b||!b[Rj])},Tj=0;var Uj=function(b,c,d,e,f){this.Lh=b;this.a=null;this.src=c;this.type=d;this.$k=!!e;this.Sl=f;this.key=++Tj;this.hj=this.Zk=!1},Vj=function(b){b.hj=!0;b.Lh=null;b.a=null;b.src=null;b.Sl=null};var Wj=function(b){this.src=b;this.a={};this.b=0};Wj.prototype.add=function(b,c,d,e,f){var g=b.toString();b=this.a[g];b||(b=this.a[g]=[],this.b++);var h=Xj(b,c,e,f);-1<h?(c=b[h],d||(c.Zk=!1)):(c=new Uj(c,this.src,g,!!e,f),c.Zk=d,b.push(c));return c};Wj.prototype.remove=function(b,c,d,e){b=b.toString();if(!(b in this.a))return!1;var f=this.a[b];c=Xj(f,c,d,e);return-1<c?(Vj(f[c]),rb(f,c),0==f.length&&(delete this.a[b],this.b--),!0):!1};
var Yj=function(b,c){var d=c.type;if(!(d in b.a))return!1;var e=sb(b.a[d],c);e&&(Vj(c),0==b.a[d].length&&(delete b.a[d],b.b--));return e},Zj=function(b,c,d,e,f){b=b.a[c.toString()];c=-1;b&&(c=Xj(b,d,e,f));return-1<c?b[c]:null},Xj=function(b,c,d,e){for(var f=0;f<b.length;++f){var g=b[f];if(!g.hj&&g.Lh==c&&g.$k==!!d&&g.Sl==e)return f}return-1};
var ak="closure_lm_"+(1E6*Math.random()|0),bk={},ck=0,T=function(b,c,d,e,f){if(fa(c)){for(var g=0;g<c.length;g++)T(b,c[g],d,e,f);return null}d=dk(d);return Sj(b)?b.C(c,d,e,f):ek(b,c,d,!1,e,f)},ek=function(b,c,d,e,f,g){if(!c)throw Error("W");var h=!!f,l=fk(b);l||(b[ak]=l=new Wj(b));d=l.add(c,d,e,f,g);if(d.a)return d;e=gk();d.a=e;e.src=b;e.Lh=d;b.addEventListener?b.addEventListener(c.toString(),e,h):b.attachEvent(hk(c.toString()),e);ck++;return d},gk=function(){var b=ik,c=Gj?function(d){return b.call(c.src,
c.Lh,d)}:function(d){d=b.call(c.src,c.Lh,d);if(!d)return d};return c},jk=function(b,c,d,e,f){if(fa(c)){for(var g=0;g<c.length;g++)jk(b,c[g],d,e,f);return null}d=dk(d);return Sj(b)?kk(b,c,d,e,f):ek(b,c,d,!0,e,f)},lk=function(b,c,d,e,f){if(fa(c))for(var g=0;g<c.length;g++)lk(b,c[g],d,e,f);else d=dk(d),Sj(b)?b.k(c,d,e,f):b&&(b=fk(b))&&(c=Zj(b,c,d,!!e,f))&&mk(c)},mk=function(b){if(ka(b)||!b||b.hj)return!1;var c=b.src;if(Sj(c))return Yj(c.ce,b);var d=b.type,e=b.a;c.removeEventListener?c.removeEventListener(d,
e,b.$k):c.detachEvent&&c.detachEvent(hk(d),e);ck--;(d=fk(c))?(Yj(d,b),0==d.b&&(d.src=null,c[ak]=null)):Vj(b);return!0},ok=function(b,c){if(b)if(Sj(b))nk(b,c);else{var d=fk(b);if(d){var e=0,f=c&&c.toString(),g;for(g in d.a)if(!f||g==f)for(var h=d.a[g].concat(),l=0;l<h.length;++l)mk(h[l])&&++e}}},hk=function(b){return b in bk?bk[b]:bk[b]="on"+b},qk=function(b,c,d,e){var f=!0;if(b=fk(b))if(c=b.a[c.toString()])for(c=c.concat(),b=0;b<c.length;b++){var g=c[b];g&&g.$k==d&&!g.hj&&(g=pk(g,e),f=f&&!1!==g)}return f},
pk=function(b,c){var d=b.Lh,e=b.Sl||b.src;b.Zk&&mk(b);return d.call(e,c)},ik=function(b,c){if(b.hj)return!0;if(!Gj){var d=c||ba("window.event"),e=new Nj(d,this),f=!0;if(!(0>d.keyCode||void 0!=d.returnValue)){a:{var g=!1;if(0==d.keyCode)try{d.keyCode=-1;break a}catch(h){g=!0}if(g||void 0==d.returnValue)d.returnValue=!0}d=[];for(g=e.currentTarget;g;g=g.parentNode)d.push(g);for(var g=b.type,l=d.length-1;!e.b&&0<=l;l--){e.currentTarget=d[l];var m=qk(d[l],g,!0,e),f=f&&m}for(l=0;!e.b&&l<d.length;l++)e.currentTarget=
d[l],m=qk(d[l],g,!1,e),f=f&&m}return f}return pk(b,new Nj(c,this))},fk=function(b){b=b[ak];return b instanceof Wj?b:null},rk="__closure_events_fn_"+(1E9*Math.random()>>>0),dk=function(b){if(la(b))return b;b[rk]||(b[rk]=function(c){return b.handleEvent(c)});return b[rk]};bd(function(b){ik=b(ik)});
var U=function(b){Bj.call(this);this.Xa=b;this.tb={}};v(U,Bj);var sk=[];U.prototype.C=function(b,c,d,e){return tk(this,b,c,d,e)};var uk=function(b,c,d,e,f,g){tk(b,c,d,e,f,g)},tk=function(b,c,d,e,f,g){fa(d)||(d&&(sk[0]=d.toString()),d=sk);for(var h=0;h<d.length;h++){var l=T(c,d[h],e||b.handleEvent,f||!1,g||b.Xa||b);if(!l)break;b.tb[l.key]=l}return b},vk=function(b,c,d,e,f,g){if(fa(d))for(var h=0;h<d.length;h++)vk(b,c,d[h],e,f,g);else(c=jk(c,d,e||b.handleEvent,f,g||b.Xa||b))&&(b.tb[c.key]=c)};
U.prototype.k=function(b,c,d,e,f){if(fa(c))for(var g=0;g<c.length;g++)this.k(b,c[g],d,e,f);else d=d||this.handleEvent,f=f||this.Xa||this,d=dk(d),e=!!e,c=Sj(b)?Zj(b.ce,String(c),d,e,f):b?(b=fk(b))?Zj(b,c,d,e,f):null:null,c&&(mk(c),delete this.tb[c.key]);return this};U.prototype.qd=function(){Nb(this.tb,mk);this.tb={}};U.prototype.D=function(){U.r.D.call(this);this.qd()};U.prototype.handleEvent=function(){throw Error("X");};
var wk=function(){U.call(this)};v(wk,U);var xk=function(b,c){c.J(b);return b};var yk=function(b){this.a=b},zk=["enable_mobile_ui"],Bk=function(b){return Ak(b,"enable_translation")},Ak=function(b,c){return"boolean"==typeof b.a[c]?b.a[c]:!1},Ck=function(b){if(Vb(b.a))return null;var c=[];y(zk,function(d){null!=b.a[d]&&!0===b.a[d]&&c.push(d.replace(/^enable_/,""))});return c.join(",")};
(function(b){var c="placeholder"in document.createElement("input");b.fn.placeholder=function(d){return this.each(function(){var e=b(this);c?e.attr("placeholder",d):(e.data("placeholder",d),e.val()||e.val(d).addClass("gci-ui-placeholder"),e.off(".gci-ui-placeholder").on("focus.gci-ui-placeholder",function(){e.val()||e.val("");e.removeClass("gci-ui-placeholder")}).on("blur.gci-ui-placeholder",function(){e.val()||e.val(d).addClass("gci-ui-placeholder")}))})};c||(b.valHooks.text=b.valHooks.search={}, b.valHooks.text.get=b.valHooks.search.get=function(c){return c.value==b(c).data("placeholder")?"":c.value})})(jQuery);
var Dk={Y:"channel",key:"short_description",M:"4191162527045905608",type:1},Ek={Y:"channel",key:"show_about_page",M:"8859021488727824488",type:6},Fk={Y:"channel",key:"youtube_video/id",M:"2696588527966666590",type:4},Gk={Y:"channel",key:"domain_name",M:"6090377321859649758",type:4},Hk={Y:"channel",key:"oauth_client_id",M:"-870401217432025193",type:4},Ik={Y:"channel",key:"share_email_subject",M:"-8014942637114118400",type:1},Jk={Y:"channel",key:"share_email_body",M:"-4846606201776650579",type:1},Kk= {Y:"channel",key:"share_twitter_text",M:"2109345537413822759",type:1},Lk={Y:"channel",key:"user_galleries_enabled",M:"-9153180606690821631",type:6};
var Mk={Y:"core",key:"title",M:"3274819640417427471",type:1},Nk={Y:"core",key:"description",M:"926347890406108465",type:1},Ok={Y:"core",key:"long_description",M:"-2011223345571798717",type:1},Pk={Y:"core",key:"transcript",M:"3535170239681562541",type:1},Qk={Y:"core",key:"creator",M:"4900234587668871006",type:1},Rk={Y:"core",key:"location",M:"5597411090972991254",type:2},Sk={Y:"core",key:"location.locationCreated",M:"3753304429451576070",type:2},Tk={Y:"core",key:"relation",M:"343647885398161558",type:5}, Uk={Y:"core",key:"attribution",M:"868104034192711450",type:5},Vk={Y:"core",key:"story",M:"-6662833902677607175",type:1},Wk={Y:"core",key:"quote",M:"-3755329903070779939",type:1},Xk={Y:"core",key:"has_layers",M:"5738172681570265718",type:6};
var Yk={Y:"exhibit",key:"subtitle",M:"7962107597449808911",type:1},Zk={Y:"exhibit",key:"subtitle_origin",M:"-5337573698769753367",type:1},$k={Y:"exhibit",key:"date.exhibitDateRange",M:"528513030802620845",type:3},al={Y:"exhibit",key:"date.exhibitKeyDate",M:"-2894544435954726841",type:3},bl={Y:"exhibit",key:"display_date",M:"704775553844585311",type:1},cl={Y:"exhibit",key:"date.exhibitDate",M:"-2360564117657162637",type:3},dl={Y:"exhibit",key:"creator.exhibitAuthor",M:"7456024947250767543",type:1},
el={Y:"exhibit",key:"org",M:"1180940824961726057",type:1},fl={Y:"exhibit",key:"org_relationship",M:"6364103691208830580",type:4},gl={Y:"exhibit",key:"attribution",M:"-300127922417915200",type:1},hl={Y:"exhibit",key:"contributor.exhibitContributor",M:"7560084234741481823",type:1},il={Y:"exhibit",key:"credits",M:"-5402683627135268990",type:1},jl={Y:"exhibit",key:"cover_slides_behind",M:"660681377597368798",type:4},kl={Y:"exhibit",key:"has_curator_approved_version",M:"2908229333314095077",type:6},ll=
{Y:"exhibit",key:"original_column_count",M:"-8376654325660168961",type:4},ml={Y:"exhibit",key:"is_immersive",M:"-7244990553684167947",type:4},nl={Y:"exhibit",key:"premium_user_gallery",M:"266379540530467750",type:6},ol={Y:"exhibit",key:"disable_blur_effect",M:"613955645203341364",type:6},pl={Y:"exhibit",key:"enable_cardboard_playback",M:"24292146621718518",type:6};
var ql=!I,rl=function(b,c){return ql&&b.dataset?c in b.dataset?b.dataset[c]:null:b.getAttribute("data-"+String(c).replace(/([A-Z])/g,"-$1").toLowerCase())};var sl=function(b){this.a=b;b={apiKey:K.Ou,locale:"en",Nx:K.ev};b=We("prod","service/lazy.min.js","help.service.Lazy.create",K.dq,{apiKey:b.apiKey||b.apiKey,environment:b.wC||b.environment,helpCenterPath:b.Nx||b.helpCenterPath,locale:b.locale||b.locale,productData:b.GE||b.productData,receiverUri:b.IE||b.receiverUri,theme:b.mF||b.theme,window:b.window||b.window});this.b=new Ze(b)};
var tl={Y:"freebase",key:"simple_type",M:"8677799221580372955",type:4},ul={Y:"freebase",key:"annotation/count/asset",M:"-2683133084457089551",type:4},vl={Y:"freebase",key:"annotation/count/exhibit",M:"-1538651197218506253",type:4};var wl={Y:"google",key:"collection/id",M:"8326637449068345492",type:4},xl={Y:"google",key:"partner/id",M:"8129907598665562501",type:4},yl={Y:"google",key:"asset/iconic/url",M:"5119109290167820504",type:4},zl={Y:"google",key:"channel",M:"5101844601692619239",type:4},Al={Y:"google",key:"display_date",M:"-2657299967153955191",type:3},Bl={Y:"google",key:"picasa_token",M:"2859260166108748748",type:4},Cl={Y:"google",key:"supplemental_asset",M:"5782393433248954673",type:4},Dl={Y:"google",key:"street_view_asset/id",
M:"-731288391129720477",type:4},El={Y:"google",key:"street_view_location",M:"8902115406899046336",type:4},Fl={Y:"google",key:"is_gigapixel",M:"-7650672779001437945",type:4},Gl={Y:"google",key:"is_featured",M:"8736393583691115503",type:4},Hl={Y:"google",key:"is_artproject",M:"-5864071927581945053",type:4},Il={Y:"google",key:"priority",M:"1439948146417683205",type:4},Jl={Y:"google",key:"user_gallery_optout",M:"-541120122399234835",type:4};
var Ml=function(b,c,d){return null==b?null==c:null==c?!1:Kl(b)==Kl(c)&&(d||Ll(b)==Ll(c))},Nl=function(b,c,d){if(null==c)return null;var e=b(c);if(e)return e;if(d)return null;d=Kl(c);return d!=c&&(e=b(d))?e:e=b(d,!0)},Ol=/^(\w{2,3})([\-\_]([a-zA-Z]{2}|\d{3}))?$/i,Kl=function(b){return(b=Ol.exec(b))&&1<=b.length?b[1].toLowerCase():null},Ll=function(b){return(b=Ol.exec(b))&&3<=b.length&&!Ea(x(b[3]))?b[3].toLowerCase():null};
var Pl=function(b){this.b=b};Pl.prototype.Ea=function(){return this.b};Pl.prototype.a=function(b,c){var d=Ql(this,b);if(d){if(d.T()==c)return!1}else{var d=new Ti,e=this.b.Wb();e.push(d);ec(this.b,1,e)}D(d,1,c);D(d,3,b);return!0};Pl.prototype.T=function(b,c){var d=b||"en",d=Nl(t(function(b,c){var d;d=null==b?null:(d=Ql(this,b,c))?d.T():null;return d},this),d,c);if(Ea(x(d))&&!c){var e=this.b.Wb();e&&0<e.length&&(e=e[0])&&(d=e.T())}return null==d?"":d};
var Ql=function(b,c,d){b=b.b.Wb();for(var e=0;e<b.length;e++){var f=b[e];if(Ml(c,f.getLang(),d))return f}return null},Rl=function(b){return lb(b.b.Wb(),function(b){return Ea(x(b.T()))})},Sl=function(b,c){if(null==c)return!1;var d=b.b.Wb(),e=c.Ea().Wb();if(d.length!=e.length)return!1;for(var f=0;f<d.length;f++){for(var g=d[f],h=!1,l=0;l<e.length;l++){var m=g,r=e[l];if(Ml(r.getLang(),m.getLang())&&r.T()==m.T()&&r.wl()==m.wl()){h=!0;break}}if(!h)return!1}return!0};
Pl.prototype.wl=function(){var b;b=null;var c=this.b.Wb();c&&c.length&&(b=c[0],c=B(b,4),b=Ml(b.getLang(),c)?b:Ql(this,c));return b?b.wl():""};var Tl=function(b){return new Pl(b)},Ul=function(b,c){return Tl(b).T(c,void 0)};Pl.prototype.isEmpty=function(b){return null!=b?Ea(x(this.T(b,!0))):Ea(x(this.T()))};
var Vl=function(b,c){this.start=b<c?b:c;this.end=b<c?c:b};Vl.prototype.clone=function(){return new Vl(this.start,this.end)};Vl.prototype.getLength=function(){return this.end-this.start};var Xl=function(b){this.a=b;b=Wi(this.a)||new $i;this.k=new Wl(b);this.b=(b=Yi(this.a))?new Wl(b):null};Xl.prototype.Ea=function(){return this.a};
var am=function(b){var c=Yl(b).T();return Ea(x(c))?b.k&&!Zl(b.k)||b.b&&!Zl(b.b)||!b.k?B(b.a,1)||"":(c=[$l(b.k)],b.b&&c.push($l(b.b)),c.join(" - ")):c},Yl=function(b){b=E(b.a,Qi,4)||new Qi;return new Pl(b)},Wl=function(b){this.a=b;b=new Date(this.a.He()||0);this.b=zj(b)},bm=new Vl(-864E13,864E13),$l=function(b){return wj(b.a.He(),B(b.a,3))},Zl=function(b){b=b.a.He();return ka(b)?bm.start<=b&&bm.end>=b:!1};Wl.prototype.isEmpty=function(){return!this.a||Ea(x(this.a.toString()))}; Xl.prototype.isEmpty=function(b){return Yl(this).isEmpty(b)&&(!this.k||this.k.isEmpty())&&(!this.b||this.b.isEmpty())&&Ea(x(B(this.a,1)))};
var cm=function(b){A(this,b,0,-1,null)};v(cm,z);cm.prototype.L=function(){return H(this)};cm.prototype.getValue=function(){return B(this,1)};var dm=function(b){A(this,b,0,-1,null)};v(dm,z);dm.prototype.L=function(){return H(this)};dm.prototype.T=function(){return B(this,1)};var em=function(b){A(this,b,0,-1,null)};v(em,z);em.prototype.L=function(){return H(this)};var gm=function(b){A(this,b,0,-1,fm)};v(gm,z);var fm=[1],im=function(b,c){var d={hl:cc(c.Wb(),hm,b)};b&&(d.X=c);return d};gm.prototype.L=function(){return H(this)};gm.prototype.Wb=function(){return F(this,jm,1)};var jm=function(b){A(this,b,0,-1,null)};v(jm,z);var hm=function(b,c){var d={url:B(c,1),eg:B(c,2),lang:null!=B(c,3)?B(c,3):"en"};b&&(d.X=c);return d};jm.prototype.L=function(){return H(this)};jm.prototype.getUrl=function(){return B(this,1)};jm.prototype.T=function(){return B(this,2)}; jm.prototype.getLang=function(){return null!=B(this,3)?B(this,3):"en"};
var km=function(b){A(this,b,0,-1,null)};v(km,z);var lm=function(b,c){var d,e=B(c,1),f=B(c,2),g=(d=c.pd())&&Si(b,d),h;if(h=d=E(c,em,4))h={jF:B(d,1),kF:B(d,2),RD:B(d,3),SD:B(d,4)},b&&(h.X=d);e={lat:e,lng:f,BE:g,viewport:h};b&&(e.X=c);return e};km.prototype.L=function(){return H(this)};km.prototype.pd=function(){return E(this,Qi,3)};
var mm=function(b){A(this,b,0,-1,null)};v(mm,z);var qm=function(b,c){var d,e=B(c,1),f=B(c,2),g=B(c,3),h=B(c,4),l=(d=c.ma())&&Si(b,d),m=(d=nm(c))&&lm(b,d),r=(d=c.getDate())&&Zi(b,d),u;if(u=d=om(c)){u=d;var w={eg:B(u,1),Cw:B(u,3)};b&&(w.X=u);u=w}var w=(d=c.Xb())&&im(b,d),C;if(C=d=pm(c))C={value:B(d,1)},b&&(C.X=d);e={Y:e,key:f,M:g,type:h,text:l,location:m,da:r,identifier:u,link:w,AE:C,$C:B(c,100)};b&&(e.X=c);return e};k=mm.prototype;k.L=function(){return H(this)};k.getKey=function(){return B(this,2)};
k.cc=function(){return B(this,3)};k.U=function(){return B(this,4)};k.ma=function(){return E(this,Qi,5)};var rm=function(b,c){G(b,5,c)},nm=function(b){return E(b,km,6)};mm.prototype.getDate=function(){return E(this,Vi,7)};var om=function(b){return E(b,dm,8)};mm.prototype.Xb=function(){return E(this,gm,9)};var pm=function(b){return E(b,cm,10)};
var sm=function(b){this.b=b};sm.prototype.Ea=function(){return this.b};sm.prototype.a=function(b,c,d){var e=tm(this,b);if(e){if(e.T()==c&&e.getUrl()==d)return!1}else{var e=new jm,f=this.b.Wb();f.push(e);ec(this.b,1,f)}D(e,2,c);D(e,1,d);D(e,3,b);return!0};sm.prototype.T=function(b,c){var d=um(this,b,c);return(d=d?d.T():null)?d:""};sm.prototype.getUrl=function(b,c){var d=um(this,b,c),d=d?d.getUrl():null;return null==d?"":d};
var um=function(b,c,d){c=c||"en";c=Nl(t(function(b,c){return null==b?null:tm(this,b,c)},b),c,d);null!=c||d||(c=vm(b));return c?c:null},tm=function(b,c,d){b=b.b.Wb();for(var e=0;e<b.length;e++){var f=b[e];if(Ml(c,f.getLang(),d))return f}return null},vm=function(b){return(b=b.b.Wb())&&0<b.length?b[0]:null},wm=function(b){var c;c=b.Xb();if(c=null==c||5!=b.U()?null:new sm(c)){b=null;var d=um(c,void 0);d&&(c=d.getUrl()||"",d=d.T(),d=Ea(x(d))?c:d,Ea(x(d))||(b=Ai(c,d)))}else b=null;return b}; sm.prototype.isEmpty=function(b){return Ea(x(b))?Ea(x(this.getUrl()))&&Ea(x(this.T())):Ea(x(this.getUrl(b,!0)))&&Ea(x(this.T(b,!0)))};
var xm=function(b){this.a=b;b=this.a.pd()||new Qi;this.b=new Pl(b)},ym=new Vl(-180,180),zm=new Vl(-90,90);xm.prototype.Ea=function(){if(this.b.isEmpty())G(this.a,3,void 0);else{var b=this.b.Ea();G(this.a,3,b)}return this.a};xm.prototype.pd=function(b,c){return this.b.T(b,c)};
var Am=function(b){b=B(b.a,2);return null!=b?b:null},Bm=function(b){b=B(b.a,1);return null!=b?b:null},Cm=function(b){return ka(Am(b))&&ka(Bm(b))},Dm=function(b){if(!Cm(b))return null;var c=Bm(b);b=Am(b);return null!=c&&null!=b?new google.maps.LatLng(c,b):null},Em=function(b,c,d){D(b.a,2,c);D(b.a,1,d)},Fm=function(b){var c=E(b.a,em,4);if(!c)return null;b=B(c,3);var d=B(c,4),e=B(c,1),c=B(c,2);return ka(b)&&ka(d)&&ka(e)&&ka(c)?new google.maps.LatLngBounds(new google.maps.LatLng(e,c),new google.maps.LatLng(b, d)):null},Gm=function(b){b=E(b.a,em,4);return null!=b&&(ka(B(b,4))||ka(B(b,3))||ka(B(b,2))||ka(B(b,1)))};xm.prototype.isEmpty=function(b){return this.b.isEmpty(b)&&!ka(Am(this))&&!ka(Bm(this))&&!Gm(this)};
var W=function(){Bj.call(this);this.ce=new Wj(this);this.Bw=this;this.zn=null};v(W,Bj);W.prototype[Rj]=!0;k=W.prototype;k.xl=function(){return this.zn};k.Fk=function(b){this.zn=b};k.addEventListener=function(b,c,d,e){T(this,b,c,d,e)};k.removeEventListener=function(b,c,d,e){lk(this,b,c,d,e)};
k.dispatchEvent=function(b){var c,d=this.xl();if(d)for(c=[];d;d=d.xl())c.push(d);var d=this.Bw,e=b.type||b;if(ja(b))b=new Jj(b,d);else if(b instanceof Jj)b.target=b.target||d;else{var f=b;b=new Jj(e,d);Yb(b,f)}var f=!0,g;if(c)for(var h=c.length-1;!b.b&&0<=h;h--)g=b.currentTarget=c[h],f=Hm(g,e,!0,b)&&f;b.b||(g=b.currentTarget=d,f=Hm(g,e,!0,b)&&f,b.b||(f=Hm(g,e,!1,b)&&f));if(c)for(h=0;!b.b&&h<c.length;h++)g=b.currentTarget=c[h],f=Hm(g,e,!1,b)&&f;return f};
k.D=function(){W.r.D.call(this);nk(this);this.zn=null};k.C=function(b,c,d,e){return this.ce.add(String(b),c,!1,d,e)};var kk=function(b,c,d,e,f){return b.ce.add(String(c),d,!0,e,f)};W.prototype.k=function(b,c,d,e){return this.ce.remove(String(b),c,d,e)};
var nk=function(b,c){if(b.ce){var d=b.ce,e=c&&c.toString(),f=0,g;for(g in d.a)if(!e||g==e){for(var h=d.a[g],l=0;l<h.length;l++)++f,Vj(h[l]);delete d.a[g];d.b--}}},Hm=function(b,c,d,e){c=b.ce.a[String(c)];if(!c)return!0;c=c.concat();for(var f=!0,g=0;g<c.length;++g){var h=c[g];if(h&&!h.hj&&h.$k==d){var l=h.Lh,m=h.Sl||h.src;h.Zk&&Yj(b.ce,h);f=!1!==l.call(m,e)&&f}}return f&&0!=e.Pt};
var Im=function(b,c){W.call(this);this.b=b||1;this.a=c||n;this.e=t(this.nA,this);this.g=ta()};v(Im,W);k=Im.prototype;k.Li=!1;k.je=null;k.setInterval=function(b){this.b=b;this.je&&this.Li?(this.stop(),this.start()):this.je&&this.stop()};k.nA=function(){if(this.Li){var b=ta()-this.g;0<b&&b<.8*this.b?this.je=this.a.setTimeout(this.e,this.b-b):(this.je&&(this.a.clearTimeout(this.je),this.je=null),this.dispatchEvent("tick"),this.Li&&(this.je=this.a.setTimeout(this.e,this.b),this.g=ta()))}};
k.start=function(){this.Li=!0;this.je||(this.je=this.a.setTimeout(this.e,this.b),this.g=ta())};k.stop=function(){this.Li=!1;this.je&&(this.a.clearTimeout(this.je),this.je=null)};k.D=function(){Im.r.D.call(this);this.stop();delete this.a};var Jm=function(b,c,d){if(la(b))d&&(b=t(b,d));else if(b&&"function"==typeof b.handleEvent)b=t(b.handleEvent,b);else throw Error("Z");return 2147483647<c?-1:n.setTimeout(b,c||0)};
var Lm=function(b,c,d,e){var f=la(c);(f||!Dj(c))&&f&&Dj(e);if(!(f||c&&"function"==typeof c.handleEvent))throw Error("Z");b=t(Km,null,b,c,e);return n.setTimeout(b,d||0)},Km=function(b,c,d){la(c)?Dj(d)||c.call(d):c&&"function"==typeof c.handleEvent&&!Dj(c)&&c.handleEvent.call(c)};
/*
 Portions of this code are from MochiKit, received by
 The Closure Authors under the MIT license. All other code is Copyright
 2005-2009 The Closure Authors. All Rights Reserved.
*/
var Mm=function(b,c){this.h=[];this.I=b;this.A=c||null;this.e=this.Ce=!1;this.b=void 0;this.p=this.H=this.l=!1;this.j=0;this.a=null;this.g=0};Mm.prototype.cancel=function(b){if(this.Ce)this.b instanceof Mm&&this.b.cancel();else{if(this.a){var c=this.a;delete this.a;b?c.cancel(b):(c.g--,0>=c.g&&c.cancel())}this.I?this.I.call(this.A,this):this.p=!0;this.Ce||this.k(new Nm(this))}};Mm.prototype.B=function(b,c){this.l=!1;Om(this,b,c)};
var Om=function(b,c,d){b.Ce=!0;b.b=d;b.e=!c;Pm(b)},Rm=function(b){if(b.Ce){if(!b.p)throw new Qm(b);b.p=!1}};Mm.prototype.callback=function(b){Rm(this);Om(this,!0,b)};Mm.prototype.k=function(b){Rm(this);Om(this,!1,b)};var Tm=function(b,c,d){return Sm(b,c,null,d)},Um=function(b,c,d){Sm(b,null,c,d)},Vm=function(b,c,d){return Sm(b,c,c,d)},Sm=function(b,c,d,e){b.h.push([c,d,e]);b.Ce&&Pm(b);return b};
Mm.prototype.then=function(b,c,d){var e,f,g=new Ge(function(b,c){e=b;f=c});Sm(this,e,function(b){b instanceof Nm?g.cancel():f(b)});return g.then(b,c,d)};Ce(Mm);var Wm=function(b,c){c instanceof Mm?Tm(b,t(c.o,c)):Tm(b,function(){return c})};Mm.prototype.o=function(b){var c=new Mm;Sm(this,c.callback,c.k,c);b&&(c.a=this,this.g++);return c};
var Xm=function(b){return jb(b.h,function(b){return la(b[1])})},Pm=function(b){if(b.j&&b.Ce&&Xm(b)){var c=b.j,d=Ym[c];d&&(n.clearTimeout(d.zl),delete Ym[c]);b.j=0}b.a&&(b.a.g--,delete b.a);for(var c=b.b,e=d=!1;b.h.length&&!b.l;){var f=b.h.shift(),g=f[0],h=f[1],f=f[2];if(g=b.e?h:g)try{var l=g.call(f||b.A,c);p(l)&&(b.e=b.e&&(l==c||l instanceof Error),b.b=c=l);De(c)&&(e=!0,b.l=!0)}catch(m){c=m,b.e=!0,Xm(b)||(d=!0)}}b.b=c;e&&(l=t(b.B,b,!0),e=t(b.B,b,!1),c instanceof Mm?(Sm(c,l,e),c.H=!0):c.then(l,e));
d&&(c=new Zm(c),Ym[c.zl]=c,b.j=c.zl)},$m=function(b){var c=new Mm;c.callback(b);return c},Qm=function(b){ya.call(this);this.deferred=b};v(Qm,ya);Qm.prototype.message="Deferred has already fired";Qm.prototype.name="AlreadyCalledError";var Nm=function(b){ya.call(this);this.deferred=b};v(Nm,ya);Nm.prototype.message="Deferred was canceled";Nm.prototype.name="CanceledError";var Zm=function(b){this.zl=n.setTimeout(t(this.b,this),0);this.a=b};Zm.prototype.b=function(){delete Ym[this.zl];throw this.a;}; var Ym={};
var an=function(){Bj.call(this)};v(an,Bj);an.prototype.init=function(){this.a=[]};var dn=function(b){var c=bn;c.b=b;cn(c)},fn=function(b,c){var d=bn;d.isDisposed()||c instanceof Nm||(d.b?en(d.b,c,b):d.a&&10>d.a.length&&d.a.push([b,c]))},cn=function(b){b.a&&(y(b.a,function(b){en(this.b,b[1],b[0])},b),b.a=null)},bn=new an,gn=function(b){fn(null,b)};
var hn=function(){},ln=function(b){var c=b.wi,d=function(b){d.r.constructor.call(this,b);var c=this.af.length;this.a=[];for(var e=0;e<c;++e)this.af[e].mC||(this.a[e]=new this.af[e](b))};v(d,c);for(var e=[];b;){if(c=b.wi){c.af&&wb(e,c.af);var f=c.prototype,g;for(g in f)if(f.hasOwnProperty(g)&&la(f[g])&&f[g]!==c){var h=!!f[g].QB,l=jn(g,f,e,h);(h=kn(g,f,l,h))&&(d.prototype[g]=h)}}b=b.r&&b.r.constructor}d.prototype.af=e;return d},jn=function(b,c,d,e){for(var f=[],g=0;g<d.length&&(d[g].prototype[b]===
c[b]||(f.push(g),!e));++g);return f},kn=function(b,c,d,e){var f;d.length?e?f=function(c){var e=this.a[d[0]];return e?e[b].apply(this.a[d[0]],arguments):this.af[d[0]].prototype[b].apply(this,arguments)}:c[b].dw?f=function(c){var e;a:{e=Array.prototype.slice.call(arguments,0);for(var f=0;f<d.length;++f){var m=this.a[d[f]];if(m=m?m[b].apply(m,e):this.af[d[f]].prototype[b].apply(this,e)){e=m;break a}}e=!1}return e}:c[b].cw?f=function(c){var e;a:{e=Array.prototype.slice.call(arguments,0);for(var f=0;f<
d.length;++f){var m=this.a[d[f]],m=m?m[b].apply(m,e):this.af[d[f]].prototype[b].apply(this,e);if(null!=m){e=m;break a}}e=void 0}return e}:c[b].Gs?f=function(c){for(var e=Array.prototype.slice.call(arguments,0),f=0;f<d.length;++f){var m=this.a[d[f]];m?m[b].apply(m,e):this.af[d[f]].prototype[b].apply(this,e)}}:f=function(c){for(var e=Array.prototype.slice.call(arguments,0),f=[],m=0;m<d.length;++m){var r=this.a[d[m]];f.push(r?r[b].apply(r,e):this.af[d[m]].prototype[b].apply(this,e))}return f}:e||c[b].dw|| c[b].cw||c[b].Gs?f=null:f=mn;return f},mn=function(){return[]};hn.prototype.g=function(b){if(this.a)for(var c=0;c<this.a.length;++c)if(this.a[c]instanceof b)return this.a[c];return null};
var nn=function(b){return this.Pq.g(b)};var on=function(b,c){this.k=b;this.a=c;this.constructor.oq||(this.constructor.oq={});this.constructor.oq[this.toString()]=this};on.prototype.toString=function(){this.b||(this.b=this.k.a+":"+this.a);return this.b};on.prototype.U=function(){return this.a};
var pn=function(b,c){on.call(this,b,c)};v(pn,on);var qn=function(b){this.a=b},rn=new qn("lib");var sn=function(b,c,d){this.jc=b;this.b=c;d||(d=new Mh("//www.google.com/images/cleardot.gif"),di(d,"zx",Xa()));this.k=d};k=sn.prototype;k.Cr=1E4;k.kj=!1;k.yn=0;k.Bl=null;k.np=null;k.setTimeout=function(b){this.Cr=b};k.start=function(){if(this.kj)throw Error("$");this.kj=!0;this.yn=0;tn(this)};k.stop=function(){un(this);this.kj=!1};
var tn=function(b){b.yn++;"onLine"in navigator&&!navigator.onLine?Jm(t(b.uk,b,!1),0):(b.a=new Image,b.a.onload=t(b.Qy,b),b.a.onerror=t(b.Py,b),b.a.onabort=t(b.Oy,b),b.Bl=Jm(b.Ry,b.Cr,b),b.a.src=String(b.k))};k=sn.prototype;k.Qy=function(){this.uk(!0)};k.Py=function(){this.uk(!1)};k.Oy=function(){this.uk(!1)};k.Ry=function(){this.uk(!1)};k.uk=function(b){un(this);b?(this.kj=!1,this.jc.call(this.b,!0)):0>=this.yn?tn(this):(this.kj=!1,this.jc.call(this.b,!1))}; var un=function(b){b.a&&(b.a.onload=null,b.a.onerror=null,b.a.onabort=null,b.a=null);b.Bl&&(n.clearTimeout(b.Bl),b.Bl=null);b.np&&(n.clearTimeout(b.np),b.np=null)};
var vn=function(){W.call(this);this.a=new sn(this.h,this);this.g=Math.round(51E3)+Math.round(18E3*Math.random())};v(vn,W);vn.prototype.b=0;vn.prototype.e=!0;vn.prototype.h=function(b){this.b=ta();this.e=b;this.dispatchEvent("a")};var wn=function(b,c,d,e){this.b=b;this.a=c;(!p(c)||0>=c)&&fn(null,Error("aa`"+c+"`"+(b&&b.Gb.e)));this.e=1==d;this.k=e};wn.prototype.qh=function(){return this.a};var xn=function(b){if(b.e)b=!1;else{var c;if(c=!!b.b)a:switch(c=b.b,c.Oj){case "RETRY":c=!0;break a;case "FAIL":c=!1;break a;case "BEST_EFFORT":c=b.k||b.b.Pj;c=500<=b.a&&3>c?!0:!1;break a;default:throw Error("ba`"+c.Oj);}b=c}return b};wn.prototype.toString=function(){return String(this.a)};
var yn=function(b){this.transport=b};v(yn,hn);yn.prototype.b=function(){};yn.prototype.b.Gs=!0;var zn=function(){Bj.call(this);if(!this.Pq){for(var b=this.constructor;b&&!b.wi;)b=b.r&&b.r.constructor;b.wi.Oq||(b.wi.Oq=ln(b));this.Pq=new b.wi.Oq(this);this.g||(this.g=nn)}};v(zn,Bj);yn.r||v(yn,hn);zn.wi=yn;k=zn.prototype;k.Gh=!1;k.Rk=!1;k.Hp=function(){return 0};k.Sp=function(b){this.a.wj(b);this.b=b};k.ar=function(){throw Error("a");};var An=function(b,c){switch(b){case 1:case 3:return 8;case 4:return NaN;case 7:return 100;case 6:return c||7;case 8:return 101;case 5:return 9;default:return 102}};
zn.prototype.bi=function(b,c){this.k=b;this.j=c};zn.prototype.Fm=function(b){this.Rk=b};var Cn=function(b,c){if(b.k){var d=b.j.call(null);if(p(d)){var e=c.k;if(e){var f=e.elements[b.k];f||(f=e.ownerDocument.createElement("input"),f.setAttribute("name",b.k),f.setAttribute("hidden",!0),e.appendChild(f));f.value=d}else Bn(c,b.k,d)}}};
var Fn=function(b){for(var c=[],d=Dn,e=b.elements,f,g=0;f=e[g];g++)if(f.form==b&&!f.disabled&&"FIELDSET"!=f.tagName){var h=f.name;switch(f.type.toLowerCase()){case "file":case "submit":case "reset":case "button":break;case "select-multiple":f=En(f);if(null!=f)for(var l,m=0;l=f[m];m++)d(c,h,l);break;default:l=En(f),null!=l&&d(c,h,l)}}e=b.getElementsByTagName("INPUT");for(g=0;f=e[g];g++)f.form==b&&"image"==f.type.toLowerCase()&&(h=f.name,d(c,h,f.value),d(c,h+".x","0"),d(c,h+".y","0"));return c.join("&")},
Dn=function(b,c,d){b.push(encodeURIComponent(c)+"="+encodeURIComponent(d))},Gn=function(b){b=b.elements;for(var c,d=0;c=b[d];d++)if(!c.disabled&&c.type&&"file"==c.type.toLowerCase())return!0;return!1},En=function(b){var c=b.type;if(!p(c))return null;switch(c.toLowerCase()){case "checkbox":case "radio":return b.checked?b.value:null;case "select-one":return c=b.selectedIndex,0<=c?b.options[c].value:null;case "select-multiple":for(var c=[],d,e=0;d=b.options[e];e++)d.selected&&c.push(d.value);return c.length?
c:null;default:return p(b.value)?b.value:null}},Hn=function(b,c){var d=b.type;if(p(d))switch(d.toLowerCase()){case "checkbox":case "radio":b.checked=c;break;case "select-one":b.selectedIndex=-1;if(ja(c))for(var e=0;d=b.options[e];e++)if(d.value==c){d.selected=!0;break}break;case "select-multiple":d=c;ja(d)&&(d=[d]);for(var f=0;e=b.options[f];f++)if(e.selected=!1,d)for(var g,h=0;g=d[h];h++)e.value==g&&(e.selected=!0);break;default:b.value=null!=c?c:""}};
var In=function(){};In.prototype.b=null;var Jn=function(b){return b.b||(b.b=b.e())};var Kn,Ln=function(){};v(Ln,In);Ln.prototype.a=function(){var b=Mn(this);return b?new ActiveXObject(b):new XMLHttpRequest};Ln.prototype.e=function(){var b={};Mn(this)&&(b[0]=!0,b[1]=!0);return b};var Mn=function(b){if(!b.k&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var c=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],d=0;d<c.length;d++){var e=c[d];try{return new ActiveXObject(e),b.k=e}catch(f){}}throw Error("ca");}return b.k};Kn=new Ln;
var Nn=function(b){W.call(this);this.headers=new oe;this.p=b||null;this.a=!1;this.o=this.bb=null;this.j="";this.e=0;this.b=this.A=this.h=this.B=!1;this.l=0;this.g=null;this.O="";this.H=this.ka=!1};v(Nn,W);var On=/^https?$/i,Pn=["POST","PUT"],Qn=[],Rn=function(b,c,d,e){var f=new Nn;Qn.push(f);kk(f,"ready",f.R);f.send(b,c,d,e)};Nn.prototype.R=function(){this.la();sb(Qn,this)};Nn.prototype.Gk=function(b){this.l=Math.max(0,b)};
Nn.prototype.send=function(b,c,d,e){if(this.bb)throw Error("da`"+this.j+"`"+b);c=c?c.toUpperCase():"GET";this.j=b;this.e=0;this.B=!1;this.a=!0;this.bb=this.p?this.p.a():Kn.a();this.o=this.p?Jn(this.p):Jn(Kn);this.bb.onreadystatechange=t(this.K,this);try{this.A=!0,this.bb.open(c,String(b),!0),this.A=!1}catch(f){Sn(this);return}b=d||"";var g=this.headers.clone();e&&te(e,function(b,c){g.xc(c,b)});e=ob(g.Dd(),Tn);d=n.FormData&&b instanceof n.FormData;!pb(Pn,c)||e||d||g.xc("Content-Type","application/x-www-form-urlencoded;charset=utf-8");
g.forEach(function(b,c){this.bb.setRequestHeader(c,b)},this);this.O&&(this.bb.responseType=this.O);"withCredentials"in this.bb&&(this.bb.withCredentials=this.ka);try{Un(this),0<this.l&&((this.H=Vn(this.bb))?(this.bb.timeout=this.l,this.bb.ontimeout=t(this.Q,this)):this.g=Jm(this.Q,this.l,this)),this.h=!0,this.bb.send(b),this.h=!1}catch(h){Sn(this)}};var Vn=function(b){return I&&Jc(9)&&ka(b.timeout)&&p(b.ontimeout)},Tn=function(b){return"content-type"==b.toLowerCase()};
Nn.prototype.Q=function(){"undefined"!=typeof aa&&this.bb&&(this.e=8,this.dispatchEvent("timeout"),this.abort(8))};var Sn=function(b){b.a=!1;b.bb&&(b.b=!0,b.bb.abort(),b.b=!1);b.e=5;Wn(b);Xn(b)},Wn=function(b){b.B||(b.B=!0,b.dispatchEvent("complete"),b.dispatchEvent("error"))};Nn.prototype.abort=function(b){this.bb&&this.a&&(this.a=!1,this.b=!0,this.bb.abort(),this.b=!1,this.e=b||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Xn(this))};
Nn.prototype.D=function(){this.bb&&(this.a&&(this.a=!1,this.b=!0,this.bb.abort(),this.b=!1),Xn(this,!0));Nn.r.D.call(this)};Nn.prototype.K=function(){this.isDisposed()||(this.A||this.h||this.b?Yn(this):this.I())};Nn.prototype.I=function(){Yn(this)};
var Yn=function(b){if(b.a&&"undefined"!=typeof aa&&(!b.o[1]||4!=(b.bb?b.bb.readyState:0)||2!=b.getStatus()))if(b.h&&4==(b.bb?b.bb.readyState:0))Jm(b.K,0,b);else if(b.dispatchEvent("readystatechange"),b.Nf()){b.a=!1;try{Zn(b)?(b.dispatchEvent("complete"),b.dispatchEvent("success")):(b.e=6,b.getStatus(),Wn(b))}finally{Xn(b)}}},Xn=function(b,c){if(b.bb){Un(b);var d=b.bb,e=b.o[0]?q:null;b.bb=null;b.o=null;c||b.dispatchEvent("ready");try{d.onreadystatechange=e}catch(f){}}},Un=function(b){b.bb&&b.H&&(b.bb.ontimeout=
null);ka(b.g)&&(n.clearTimeout(b.g),b.g=null)};Nn.prototype.Nf=function(){return 4==(this.bb?this.bb.readyState:0)};var Zn=function(b){var c=b.getStatus(),d;a:switch(c){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:d=!0;break a;default:d=!1}if(!d){if(c=0===c)b=Fh(String(b.j))[1]||null,!b&&self.location&&(b=self.location.protocol,b=b.substr(0,b.length-1)),c=!On.test(b?b.toLowerCase():"");d=c}return d}; Nn.prototype.getStatus=function(){try{return 2<(this.bb?this.bb.readyState:0)?this.bb.status:-1}catch(b){return-1}};var $n=function(b){try{return b.bb?b.bb.responseText:""}catch(c){return""}};bd(function(b){Nn.prototype.I=b(Nn.prototype.I)});
var ao=function(b){zn.call(this);this.xhr=new Nn;this.l=b;this.e=null;this.xhr.headers.xc("X-Same-Domain","1");T(this.xhr,"complete",this.Yr,!1,this);T(this.xhr,"ready",this.Zr,!1,this)};v(ao,zn);var bo=/var gmail_error\s*=\s*(\d+)/m,co=/var rc\s*=\s*(\d+)/m,eo=/(?:Additional details|Detailed Technical Info)[\s\S]*<pre[^>]*>([\s\S]*)<\/pre>/i;k=ao.prototype;k.D=function(){lk(this.xhr,"complete",this.Yr,!1,this);lk(this.xhr,"ready",this.Zr,!1,this);this.xhr.la();this.xhr=null;ao.r.D.call(this)};
k.Sp=function(b){this.a.wj(b);this.b=b;fi(b.Gb,"rt",this.l);var c=b.h,d=null!=b.e||null!=b.k;!b.A||d?(Cn(this,b),this.xhr.send(b.getUrl(),b.b,fo(b),c)):this.xhr.send(b.getUrl(),b.b,null,c)};k.ar=function(b){this.e=b;this.xhr.abort(7)};
k.Yr=function(b){b=b.target;this.b.Ic=b.getStatus();if(Zn(b)){if(0<$n(b).length||204==b.getStatus()){a:{var c=$n(b),c=c.substring(c.indexOf("\n"));b=this.b;var d;try{this.Rk?d=window.JSON.parse(c):d=Gb(c)}catch(e){d=new wn(b,10);this.a.qm(b,d);break a}fa(d)&&this.a.Nl(b,d[0]);this.a.rm(b)}return}this.e=104}this.h(b)};k.Zr=function(){this.a.uA(this)};
var fo=function(b){var c=b.e;if(c){var d=new rg;te(c,function(b,c){d.append(encodeURIComponent(String(c)),"=",encodeURIComponent(String(b)),"&")});return d.toString()}return b.k?Fn(b.k):""};ao.prototype.h=function(b){var c=this.e;this.e=0;var d=b.getStatus(),e=b.e;eo.exec($n(b));var f;c?f=c:6==e&&(f=$n(b),f=(b=f.match(bo))?700+parseInt(b[1],10):(b=f.match(co))?Number("6"+b[1]):null);f||(f=An(e,d));d=this.b;e=new wn(d,f);this.a.qm(d,e)};
var go=function(b,c,d,e){Jj.call(this,(e?"data_b:":"data:")+c);this.data=d};v(go,Jj);var ho=function(){};v(ho,Bj);ho.prototype.k=function(){};ho.prototype.e=function(){return[]};ho.prototype.a=function(){};var io=function(b){b&&(B(b,1),B(b,2),B(b,3),B(b,4),B(b,13))},jo=new io;var no=function(b,c){if(this.g=b){var d=this.g.l;ko(this);this.Oj=d}c&&(this.a=c);ta();this.Gb=new Mh;this.b="POST";this.tb=lo++;mo||(d=new Date,mo=3600*d.getHours()+60*d.getMinutes()+d.getSeconds());this.I=mo+1E5*this.tb;this.h=new oe},mo,oo=new pn(rn,"f_req"),lo=0;k=no.prototype;k.Vq=!0;k.Io=!0;k.Un=-1;k.dr=-1;k.qs=-1;k.Mt=jo;k.Pj=0;k.Oj="BEST_EFFORT";var ko=function(b){if(b.l)throw Error("ea");};no.prototype.bi=function(b){this.h.xc("X-Framework-Xsrf-Token",b)};no.prototype.getContext=function(){return this.H};
var po=function(b,c){c&&pb(Pn,b.b)?b.b="GET":c||pb(Pn,b.b)||(b.b="POST");ko(b);b.A=c},qo=function(b){ko(b);b.Vq=!1};k=no.prototype;k.Dw=function(){this.Oj="FAIL";ro(this.g,this,101)};k.send=function(){if(this.l)throw Error("ia");ta();if(this.Vq){if(!this.I){var b="ha`"+this.getUrl(),c=Error("ga`"+this.getUrl());fn(b,c)}fi(this.Gb,"_reqid",this.I)}this.g.send(this);this.l=!0;0<=this.Un&&(this.j=Lm("ja",this.Dw,this.Un,this))};k.Nf=function(){return!!this.B};k.U=function(){return oo};k.qr=function(){return this.o};
k.getData=function(b){return this.O?this.O[b]:null};var so=function(b){return!!b.a&&!("function"==typeof b.a.isDisposed&&b.a.isDisposed())},to=function(b){b.B=!0;ta();b.j&&(n.clearTimeout(b.j),b.j=null);so(b)&&(b.p&&b.a.Ql&&b.a.Ql(b),b.a.Vr&&b.a.Vr(b))},uo=function(){if(!(window.chrome&&window.chrome.runtime&&window.chrome.runtime.getManifest&&window.chrome.runtime.getManifest()))throw Error("la");};no.prototype.getUrl=function(){return String(this.Gb.clone())};
no.prototype.Em=function(b){this.b=b};no.prototype.$w=function(){return this.Gb.a};var Bn=function(b,c,d){b.e||(b.e=new Th);fa(d)||(d=[String(d)]);pb(Pn,b.b)||(b.b="POST");ei(b.e,c,d)},vo=function(b,c,d){if(c instanceof Th){var e=c.Dd();zb(e);for(var f=0;f<e.length;f++){var g=e[f],h=c.gc(g);d?Bn(b,g,h):fi(b.Gb,g,h)}}else te(c,function(b,c){d?Bn(this,c,b):fi(this.Gb,c,b)},b)};
var xo=function(){this.k=[];wo(this,1E3)};k=xo.prototype;k.mp=0;k.mm=-1;k.tk=0;k.Wh=0;k.ag=0;k.Fs=0;var wo=function(b,c){c=Math.min(3E5,Math.max(c,1E3));b.Fs=Math.round(.85*c)+Math.round(.3*c*Math.random())};xo.prototype.vl=function(){return this.tk};xo.prototype.qn=function(){return this.tk==this.mm};xo.prototype.getError=function(){return this.e};xo.prototype.reset=function(){this.e=this.b=null};
var yo=function(b,c,d){Jj.call(this,b);d&&(this.a=d)};v(yo,Jj);yo.prototype.qr=function(){return this.a};var zo=function(){ya.call(this);this.message="Retryable Server Error"};v(zo,ya);var Ao=function(){this.a=[];this.b=[]},Bo=function(b){0==b.a.length&&(b.a=b.b,b.a.reverse(),b.b=[])},Co=function(b){Bo(b);return b.a.pop()};k=Ao.prototype;k.Ub=function(){return this.a.length+this.b.length};k.isEmpty=function(){return 0==this.a.length&&0==this.b.length};k.clear=function(){this.a=[];this.b=[]};k.contains=function(b){return pb(this.a,b)||pb(this.b,b)};k.remove=function(b){var c=eb(this.a,b);if(0>c)return sb(this.b,b);rb(this.a,c);return!0}; k.gc=function(){for(var b=[],c=this.a.length-1;0<=c;--c)b.push(this.a[c]);for(var d=this.b.length,c=0;c<d;++c)b.push(this.b[c]);return b};
var Do=function(){W.call(this);this.h=new Ao;this.j=new oe;this.a=[];this.e=[];this.Vg=[];this.p=new U(this);new oe};v(Do,W);Do.prototype.b=null;Do.prototype.o="READY";Do.prototype.l="BEST_EFFORT";Do.prototype.la=function(){for(var b=0;b<this.e.length;b++){var c=this.e[b].getContext();c.ag&&(n.clearTimeout(c.ag),c.ag=0)}this.isDisposed()||(Do.r.la.call(this),this.h.clear(),this.b&&(n.clearTimeout(this.b),this.b=null));for(b=0;b<this.Vg.length;b++)this.Vg[b].la();this.e.length=this.a.length=0;this.p.la()};
var Eo=function(b,c){var d={};d.uA=t(b.vA,b);d.qm=t(b.qm,b);d.rm=t(b.rm,b);d.aD=t(b.O,b);d.Nl=t(b.H,b);d.qn=t(b.Pv,b);d.WC=t(b.Yw,b);d.vl=t(b.Zw,b);d.FE=t(b.xm,b);d.wj=t(b.wj,b);c.a=d;b.Vg.push(c)};Do.prototype.send=function(b){this.isDisposed()?Fo(this,b,107):(this.dispatchEvent(new yo("c")),this.h.b.push(b),Go(this))};
var ro=function(b,c,d){c.getUrl();d=ka(d)?d:100;pb(b.a,c)?(c.getContext().mp=d,(b=c.getContext())&&b.b&&b.b.ar(b.mp)):b.h.remove(c)&&Fo(b,c,d)},Io=function(b,c){var d=null,e={},f=gb(b.Vg,function(b){var d=pa(b);e[d]=b.Hp(c);return!!e[d]});Bb(f,t(b.B,null,e,b.Vg));for(var g=0,h=0,l=f.length;g<l&&!d;g++){var m=f[g];if(!m.Gh){d=m;break}m=e[pa(m)];if(g==l-1||m>e[pa(f[g+1])])for(;!d&&h<=g;)if(d=f[h++],1>Ho(b,d))if(d=d.clone())Eo(b,d);else{if(1==m)throw Error("na");}else throw Error("oa");}return d};
Do.prototype.B=function(b,c,d,e){var f=pa(d),g=pa(e);return b[f]<b[g]?1:b[f]>b[g]?-1:d.Gh&&!e.Gh?1:!d.Gh&&e.Gh?-1:db(c,e)-db(c,d)};var Ho=function(b,c){for(var d=0,e=c.constructor,f=b.Vg,g=0,h=f.length;g<h;g++)f[g].constructor===e&&d++;return d};Do.prototype.wj=function(b){if(!this.j.isEmpty())for(var c=this.j.Dd(),d=0;d<c.length;d++){var e=c[d],f=this.j.get(e);fi(b.Gb,e,f);this.j.remove(e)}};
var Jo=function(b,c){switch(c){case "ACTIVE":case "WAITING_FOR_RETRY":case "RETRY_TIMER":if(0==b.a.length)throw Error("qa`"+c);}c!=b.o&&(b.o=c,b.dispatchEvent(new yo("b")),b.A&&b.A.XD())},Go=function(b){if("READY"==b.o){var c;c=b.h;Bo(c);c=c.a;if((c=c[c.length-1])&&1>b.a.length){Co(b.h);var d=new xo;c.H=d;b.a.push(c);Ko(b,c)}}},Ko=function(b,c){c.getUrl();var d=c.getContext();d.tk=0;d.mm=-1;d=ta();-1==c.dr&&(c.dr=d);c.qs=d;c.Pj++;try{Jo(b,"ACTIVE");try{c.getUrl();var e=c.getContext();e.mp=0;var f=
e.b;if(!f){f=Io(b,c);if(!f)throw Error("pa`"+c);f.Gh=!0;e.b=f}e.a=null;f.Sp(c);b.b||(b.b=Lm("va",b.Os,3E4,b))}catch(g){throw g;}}catch(h){throw h;}};Do.prototype.H=function(b,c){this.Nl(b,c)};Do.prototype.Nl=function(b,c){for(var d=b.getContext(),e=0;e<c.length;e++){var f=c[e];d.tk++;var g=f[0];"f.ri"!==g&&d.k.push(f);1==d.vl()&&Lo(b);"f.ri"==g?Mo(this,b,f):"di"==g?No(b,f):"e"==g&&(Oo(b,new kc(f)),this.xm(b))}};
Do.prototype.O=function(b,c){var d=b.getContext();d.tk++;var e=c[0];d.Wh&&(n.clearTimeout(d.Wh),d.Wh=0);"f.ri"!==e&&d.k.push(c);1==d.vl()&&Lo(b);"f.ri"==e?Mo(this,b,c):"di"==e?No(b,c):"e"==e?(Oo(b,new kc(c)),this.xm(b)):(d=b.getContext(),e=Lm("va",sa(this.xm,b),50,this),d.Wh=e)};
var Lo=function(b){try{ta()}catch(c){fn("ra",c),b.getContext().a=c}},Mo=function(b,c,d){d=new mc(d);(d=B(d,1))&&b.I&&d!=b.I&&(c.getContext().a=Error(106))},No=function(b,c){try{var d=new jc(c),e=new io(d);b.Mt=e}catch(f){fn("sa",f),b.getContext().a=f}},Oo=function(b,c){var d=b.getContext(),e=B(c,1);d.mm=e};k=Do.prototype;
k.xm=function(b){var c=b.getContext();c.Wh&&(n.clearTimeout(c.Wh),c.Wh=0);var d=c.k;if(d.length&&(c.k=[],c=b?b.getContext():null,!c||!c.a))try{for(var e=0;e<d.length;e++){var f=d[e],g=f[0];this.dispatchEvent(new go(0,g,f,!0))}b&&so(b)&&b.a.Dx&&b.a.Dx(b,d);this.dispatchEvent(new go(0,"aa",d));for(e=0;e<d.length;e++){f=d[e];g=f[0];if(b)if("er"==g){var h=new $e(f),l=B(h,5);if(500<=l&&700>l){var m=new wn(b,l,!1,b.Pj);if(xn(m)){c.e=m;var r=new zo;c.a=r;break}}var u=b;u.yw=h;so(u)&&u.a.Ql&&u.a.Ql(u)}else{var u=
b,w=g,C=f;so(u)&&u.a.Wr&&u.a.Wr(u,w,C)}this.dispatchEvent(new go(0,g,f))}}catch(J){fn("ta",J),c&&(c.a=J)}};k.Pv=function(b){return b.getContext().qn()};k.Zw=function(b){return b.getContext().vl()};k.Yw=function(b){return b.getContext().mm};
k.rm=function(b){var c=b.getContext(),d=c.a;if(d||!c.qn()){var e;d?d instanceof zo?e=c.getError():e=new wn(b,106==d.message?106:12,!0):(e=new wn(b,103,!1,b.Pj),fi(b.Gb,"hex",1),this.K&&(fi(b.Gb,"nrt",b.Pj),b.getContext()));Po(this,b,e);return!1}b.getUrl();this.dispatchEvent(new yo("d"));b.p=!1;b.o=null;b.Un=-1;to(b);sb(this.e,b);Jo(this,"WAITING_FOR_READY");return!0};k.qm=function(b,c){Po(this,b,c)};
var Po=function(b,c,d){d.qh();c.getUrl();c.getContext().e=d;c.Mt=jo;xn(d)?(qb(b.e,c),c.getContext().ag=-1,c="WAITING_FOR_RETRY"):(xn(d),sb(b.e,c),Fo(b,c,d),c="WAITING_FOR_READY");Jo(b,c)};k=Do.prototype;k.vA=function(b){var c=ob(this.a,function(c){return c.getContext().b==b});pb(this.e,c)||(b.Gh=!1,c.getContext().reset(),sb(this.a,c));this.b&&(n.clearTimeout(this.b),this.b=null);y(this.e,this.ry,this);1>this.a.length&&(Jo(this,"READY"),Go(this))};
k.ry=function(b){var c=b.getContext();if(-1==c.ag){var d=gi(b.Gb,"f.retries");vo(b,{"f.retries":(d?Number(d):0)+1},!1);d=c.Fs;ta();b=Lm("va",t(this.Yy,this,b),d);c.ag=b;wo(c,2*d);Jo(this,"RETRY_TIMER")}};k.Yy=function(b){var c=b.getContext();c.ag&&(n.clearTimeout(c.ag),c.ag=0);Ko(this,b)};k.Os=function(){this.b=Lm("va",this.Os,3E4,this);this.Bq()};
k.Bq=function(){if(0!=this.a.length&&this.g)for(var b=0,c=this.a.length;b<c;b++){var d=this.a[b],e=ta(),f=d.qs;if(-1<f&&6E4<e-f)if(e=this.g,ta()-e.b>e.g?(e.a.kj||(f=new Mh("//www.google.com/images/cleardot.gif"),di(f,"zx",Xa()),e.a.k=f,e.a.start()),e=!0):e=!1,e)break;else this.g.e||ro(this,d,1)}};var Fo=function(b,c,d){ka(d)&&(d=new wn(c,d));b.dispatchEvent(new yo("e",0,d));c.p=!0;c.o=d;to(c)};
var Qo=function(b,c,d,e){var f="Error code = "+c;d&&(f+=", Path = "+d);e&&(f=e+" "+f);ya.call(this,f);this.name=b;this.a=c};v(Qo,ya);Qo.prototype.qh=function(){return this.a};
var Ro=function(b){return b instanceof $e?"er":b[0][0]},So=function(b,c){for(var d=new String(b[0].Ta),e=1;e<b.length;e++)d+=", ",d+=b[e].Ta;var f="";if(c&&0<c.length)for(f+=Ro(c[0]),e=1;e<c.length;e++)f+=", ",f+=Ro(c[e]);return" Expected protos: ["+d+"]. Returned protos: ["+f+"]."},To=function(b,c,d){b&&c?Qo.call(this,"TooManyProtosError",108,d,"The RequestService interface only supports a single received proto (be it data or error). "+So(b,c)):Qo.call(this,"TooManyProtosError",108,d,"The RequestService interface only supports a single received proto (be it data or error). ")};
v(To,Qo);var Uo=function(b,c,d){Qo.call(this,"ExpectedProtoNotFound",109,d,"The expected response proto was not returned by the server."+So(b,c))};v(Uo,Qo);var Vo=function(){Qo.call(this,"Retry",0,void 0,"An interceptor has requested that the request be retried.")};v(Vo,Qo);
var Yo=function(b,c,d,e,f){this.h=c;this.g=d;this.B=[];this.e=e;this.k=f;this.l=b.g;this.b=new Mm;this.p=new Mm(t(this.A,this));this.o=!1;this.j=b;this.a=new no(this.k.CA?b.b:b.a);Ph(this.a.Gb,this.h);this.a.Em(this.k.method);if(ja(this.k.host))var g=Fh(this.k.host)[1]||null,h=Eh(Fh(this.k.host)[3]||null),l=Number(Fh(this.k.host)[4]||null)||null;g=g||this.k.scheme;ja(g)&&(b=this.a,uo(),Nh(b.Gb,g));h=h||this.k.domain;ja(h)&&(g=this.a,uo(),g.Gb.b=h);ka(l)&&(h=this.a,uo(),Oh(h.Gb,l));po(this.a,!pb(Pn,
this.a.b));Wo(this);if(this.g){if(pb(Pn,this.a.b)){var m;l=this.g;try{m=l instanceof HTMLFormElement}catch(r){m="object"===typeof l&&1===l.nodeType&&"object"===typeof l.style&&"object"===typeof l.ownerDocument&&"form"===l.tagName.toLowerCase()}if(m){m=this.a;ko(m);m.Io=!1;m=this.a;l=this.g;ko(m);if(m.Io)throw Error("ma");m.k=l}else this.g instanceof z?(m=this.a,l=this.g,l=n.JSON&&n.JSON.stringify?n.JSON.stringify(l.toArray()):Jb(l.toArray()),Bn(m,"f.req",l)):vo(this.a,this.g,!0)}else vo(this.a,this.g,
!1);this.k.jk&&(ko(this.a),m=this.a,ko(m),m.K=!0)}Xo(this)};Yo.prototype.send=function(){return Zo(this.j,this)};var $o=function(b,c,d){for(var e={},f=0;f<c.length;f++)e[c[f].Ta]=c[f];c=[];for(var g=[],h=[],f=0;f<b.length;f++){var l=b[f];l instanceof z?l instanceof $e&&(B(l,6)&&e[B(l,6)]?(l=new (e[B(l,6)])(l.getData()),d?c.push(l):g.push(l)):h.push(l)):e[l[0]]&&c.push(new e[l[0]](l))}return{jj:c,xw:g,Rn:h}};k=Yo.prototype;
k.FA=function(b){for(var c=0;c<b.length;c++){var d=b[c];if(d instanceof wn)throw d;}return b};k.EA=function(b){if(0===this.e.length)return null;var c=$o(b,this.e,!0);if(0===c.jj.length)throw new Uo(this.e,b,this.h);return c.jj};
k.GA=function(b){if(0===this.e.length)return null;var c=$o(b,this.e),d=c.jj,e=c.xw,c=c.Rn;if(0===d.length&&0===e.length&&0===c.length)throw new Uo(this.e,b,this.h);if(1===d.length&&0===e.length&&0===c.length)return d[0];if(0===d.length&&1===e.length&&0===c.length)throw e[0];if(0===d.length&&0===e.length&&1===c.length)throw c[0];throw new To(this.e,b,this.h);};k.getUrl=function(){return this.a.getUrl()};
k.rq=function(b){y(this.l,function(c){var d=c.e();fa(d)||(d=[d]);var e;e=d;fa(e)||(e=[e]);e=0===e.length?[]:$o(b,e,!0).jj;d.length&&!e.length||c.a(e)},this)};
var ap=function(b,c){if(b.k.jk){b.rq([c]);var d=$o([c],b.e,!0);0<d.jj.length?b.k.jk(d.jj[0]):0<d.Rn.length&&b.k.jk(d.Rn[0])}else b.B.push(c)},Wo=function(b){var c={},d=b.p;c.Ql=t(function(b){if(!d.Ce){var c=b.qr();c?d.k(c):ap(this,b.yw)}},b);c.Vr=t(function(){d.Ce||d.callback(this.B)},b);c.Wr=t(function(b,c,d){ap(this,d)},b);b.a.a=c},Xo=function(b){y(b.l,function(b){b.k&&Tm(this.b,b.k,b)},b);Tm(b.b,function(b){b.send();return this.p},b);b.k.jk?Tm(b.b,function(){return null}):(Tm(b.b,b.rq,b),b.k.Yv?
Tm(b.b,b.EA,b):b.k.Gt?Tm(b.b,b.FA,b):Tm(b.b,b.GA,b));Um(b.b,b.I,b)};Yo.prototype.I=function(b){if(b instanceof Vo){b=gi(this.a.Gb,"f.retries");b=(b?Number(b):0)+1;var c=bp(this.j,this.h,this.g,this.e,this.k);vo(c.a,{"f.retries":b},!1);return Zo(this.j,c)}if(!(b instanceof Nm)){if(!this.k.Gt&&b instanceof wn){b=b.qh();if(100==b&&this.o)return new Nm(this.b);throw new Qo("TransportError",b,this.h,"There was an error during the transport or processing of this request.");}throw b;}}; Yo.prototype.A=function(){if(this.a){this.o=!0;var b=this.a;if(!b.l)throw Error("ka");b.B||(b.Oj="FAIL",ro(b.g,b,void 0))}};Yo.prototype.toString=function(){return this.a.getUrl()};
var cp=function(){ao.call(this,"j")};v(cp,ao);cp.prototype.Hp=function(b){var c=b.k;return c&&Gn(c)?0:b.Io&&!b.K?.9:.5};cp.prototype.clone=function(){var b=new cp;b.bi(this.k,this.j);b.Fm(this.Rk);return b};cp.prototype.h=function(b){var c=$n(b),c=c.substring(c.indexOf("\n")),d;try{this.Rk?d=window.JSON.parse(c):d=Gb(c)}catch(e){}fa(d)?(b=this.b,this.a.Nl(b,d[0]),this.a.rm(b)):cp.r.h.call(this,b)};
var dp=function(b,c,d){this.k=b;this.a=c||null;this.b=d||[]};dp.prototype.toString=function(){return this.k};var ep=new dp("fJuxOc"),fp=new dp("ZtVrH"),gp=new dp("pVbxBc"),hp=new dp("n73qwf"),ip=new dp("byfTOb"),jp=new dp("LEikZe"),kp=new dp("rJmJrc"),lp=new dp("MpJwZc"),mp=new dp("UUJqVe"),np=new dp("lsjVmc");var pp=function(b,c,d,e){W.call(this);this.b=c||null;this.a=d||null;this.e=e||null;this.g=[];this.j=null;this.l=op;this.Xk=null};v(pp,W);var op={Yv:!1,domain:void 0,jk:null,method:"POST",Gt:!1,scheme:void 0,host:void 0,CA:!1},rp=function(b){var c=new pp(0,void 0,void 0,void 0);qp(b,jp,c);return c},sp=function(b){return b.get(jp)},tp=function(b,c){b.J(c);b.g.push(c)},vp=function(b,c,d,e){e=up(e,void 0);e.options.method="GET";return Zo(b,bp(b,c,d,e.Et,e.options))};
pp.prototype.makeRequest=function(b,c,d,e){return Zo(this,bp(this,b,c,d,e))};var bp=function(b,c,d,e,f){e=up(e,f);f=Wb(b.l);Yb(f,e.options||{});return new Yo(b,c,d||null,e.Et,f)},up=function(b,c){var d=[],e={};c||b&&(la(b)||fa(b))?(d=b||[],fa(d)||(d=[d]),e=c||{}):b&&(e=b);return{Et:d,options:e}},Zo=function(b,c){b.j||(b.j=c);c.b.callback(c.a);return c.b};pp.prototype.D=function(){S(this.b);S(this.a);S(this.e);pp.r.D.call(this)};
pp.prototype.jf=function(b){b=b.get(ip).a;var c=new Do;c.g=b;c.g&&c.p.C(c.g,"a",c.Bq);Eo(c,new cp);this.b=c;b=new Do;Eo(b,new cp);this.a=b;this.e=null;this.h&&(this.b.l=this.h,this.a.l=this.h)};pp.prototype.bi=function(b,c){function d(d){d&&y(d.Vg.concat(),function(d){d.bi(b,c)})}d(this.b);d(this.a)};pp.prototype.Fm=function(b){function c(c){c&&y(c.Vg.concat(),function(c){c.Fm(b)})}if(!b||window.JSON&&window.JSON.parse)c(this.b),c(this.a)};
var Bp=function(b,c,d,e,f,g){U.call(this);this.b=null;this.e=c?new Mh(c):null;this.h=wp(this.e);this.o=d;this.a=null;this.g=!1;this.l=Tm(new Mm,function(){xp(this,f,g)},this);this.j=new yp(this);tp(sp(b),this.j);this.J(this.j);if(this.e&&zp()!=this.h){var h=this;window.addEventListener("message",function(b){if(b.origin==h.h){b=b.data.split("&");for(var c={},d=0;d<b.length;d++){var e=b[d].split("=");c[e[0]]=e[1]}c.ready?h.l.callback():c.access_token?(c.expires_at||(c.expires_at=Math.floor((new Date).getTime()/
1E3)+parseInt(c.expires_in,10)),Ap(h,c)):Ap(h,null)}},!1);$("<iframe>").attr("src",this.e+"?channelId="+e).appendTo($("body"))}else this.l.callback()};v(Bp,wk);var wp=function(b){return b?Rh(bi(Ph(b.clone(),"")),"").toString():null},zp=function(){return window.location.origin?window.location.origin:wp(new Mh(window.location))},Ap=function(b,c){gapi.auth.setToken(c);var d=(b.b=c)?Cp(b):null,e=b.a;b.a=null;b.g=!1;e&&e.callback(d)};
Bp.prototype.Nh=function(b,c){Dp(this,!1,function(d){d&&xp(this,function(d){b&&b.call(c||this,d)})},this)};
var xp=function(b,c,d){var e=function(){gapi.client.load("oauth2","v2",function(){gapi.client.oauth2.userinfo.get().execute(function(b){c.call(d||this,b?b.email:null)})})};Ep(b)?e():Dp(b,!0,function(b){b?e():c.call(d||this,null)})},Ep=function(b){return null!=b.b&&30<b.b.expires_at-(new Date).getTime()/1E3},Cp=function(b){return b.b.access_token},Dp=function(b,c,d,e){if(Ep(b))d.call(e||b,Cp(b));else if(b.a||(b.a=Tm(new Mm,d,e)),c&&b.g)Tm(b.a,d,e);else if(!c&&b.g)Tm(b.a,function(){Dp(this,c,d,e)},
b);else{c&&(b.g=!0);var f={client_id:b.o,scope:["https://www.googleapis.com/auth/cultural","https://www.googleapis.com/auth/userinfo.email"],immediate:c};b.e&&zp()!=b.h&&(f.origin=b.h,f.redirect_uri=b.e);gapi.auth.authorize(f,function(c){Ap(b,c)})}},yp=function(b){this.Dg=b};v(yp,ho);
yp.prototype.k=function(b){if(this.Dg.b)if(Ep(this.Dg))b.h.xc("Authorization","Bearer "+Cp(this.Dg));else{var c=Vm(new Mm,function(c){b.h.xc("Authorization","Bearer "+c);return b});Dp(this.Dg,!0,function(b){b?c.callback(Cp(this.Dg)):c.cancel()},this);return c}};
var Jp=function(b,c){U.call(this);var d=c||{};this.j=d.Sh||q;this.g=pa(this);this.l=d.iz||400;this.a=!0;this.n=Ni(b).addClass("collections-scroller gci-scroller-vertical");if(null!=d.um)switch(d.um){case "dark":this.n.addClass("dark");break;case "white":this.n.addClass("white")}if(this.b=Oi(d.gd))this.b.appendTo(this.n),Ki(this.n);this.h=this.e=null;if(X(Y))Fp(this),$(window).on("scroll."+this.g,t(function(){jQuery.contains(document.documentElement,Ni(this.n)[0])&&Gp(this)},this));else this.n.on("scroll.infinite-scroll",
t(function(){Gp(this)},this));var e=d.bj||!1;if(!zi()){var f=!1;vi(this.n,".infinite-scroll",t(function(b){var c=wi(b.originalEvent||b),l=!1,m=Math.abs(c.deltaX)>Math.abs(c.deltaY)?c.deltaX:c.deltaY;b.preventDefault();if(this.a){var r=this.n.scrollTop()-50*m;this.n.scrollTop(r)}else r=this.n.scrollLeft()-120*m,this.n.scrollLeft(r);r=null;0>c.Rq&&0>=Hp(this)?(l=!0,r="scroll-reach-end"):0<c.Rq&&0==Ip(this)&&(l=!0,r="scroll-reach-start");c=150;0!=m%1&&(c=1E3);r&&!f&&(this.n.trigger(r),f=!0,window.setTimeout(t(function(){this.isDisposed()||
(f=!1)},this),c));e&&(!d.wk||d.wk&&!l)&&b.stopPropagation();return!0},this))}};v(Jp,wk);
var Gp=function(b){b.j();window.clearTimeout(b.h);b.h=window.setTimeout(t(function(){this.n.trigger("scroll-done")},b),250);zi()&&(0>=Hp(b)?(window.clearTimeout(b.e),b.e=window.setTimeout(t(function(){this.n.trigger("scroll-reach-end")},b),150)):0==Ip(b)&&(window.clearTimeout(b.e),b.e=window.setTimeout(t(function(){this.n.trigger("scroll-reach-start")},b),150)));Kp(b)},Kp=function(b){Hp(b)<b.l&&b.n.trigger("infinite-scroll")},Hp=function(b){var c=parseInt(b.n.prop("scrollHeight"),10),d=parseInt(b.n.prop("scrollWidth"),
10),c=b.a?c:d,d=b.n.outerHeight(),e=b.n.outerWidth();return c-((b.a?d:e)+Ip(b))-1},Ip=function(b){var c=b.n.scrollTop(),d=b.n.scrollLeft();return b.a?c:d},Lp=function(b){b.a=!1;Fp(b);b.n.removeClass("gci-scroller-vertical").addClass("gci-scroller-horizontal");X(Y)&&($(window).off("scroll."+b.g),b.n.on("scroll.infinite-scroll",t(function(){Gp(this)},b)))},Mp=function(b){b.a=!0;Fp(b);b.n.removeClass("gci-scroller-horizontal").addClass("gci-scroller-vertical");X(Y)&&(b.n.off("scroll.infinite-scroll"),
$(window).on("scroll."+b.g,t(function(){jQuery.contains(document.documentElement,Ni(this.n)[0])&&Gp(this)},b)))},Fp=function(b){b.isDisposed()||(b.n.scrollLeft(0),b.n.scrollTop(0),X(Y)&&(b=$(window),b.scrollLeft(0),b.scrollTop(0)))};Jp.prototype.D=function(){$(window).off("scroll."+this.g);this.n.off(".infinite-scroll");this.n.off(".gci-scroller");Fp(this);this.b&&(this.b.detach(),this.b=null);this.n.removeClass("collections-scroller gci-scroller-vertical gci-scroller-horizontal");Jp.r.D.call(this)};
Jp.prototype.scrollTop=function(b,c){if(c){var d=this.n.height(),e=this.n.scrollTop();b<e?this.n.scrollTop(b):b+c>e+d&&this.n.scrollTop(b-d+c)}else this.n.scrollTop(b);this.n.trigger("scroll-done")};Jp.prototype.bind=function(b,c){this.n.bind(b+".gci-scroller",c);return this};Jp.prototype.unbind=function(b,c){this.n.unbind(b+".gci-scroller",c);return this};
var Np=function(b,c,d,e,f){if(d){var g=b.n.width(),h=b.n.scrollLeft();if(c>=h||c+d<=h+g)return}e?b.n.stop().animate({scrollLeft:c},f||1E3,"easeInOutCubic",function(){b.n.trigger("scroll-done")}):(b.n.scrollLeft(c),window.setTimeout(function(){b.n.trigger("scroll-done")},30))},Op=function(b){return b.a?0==b.n.scrollTop():0==b.n.scrollLeft()},Pp=function(b){return b.a?b.n[0].scrollHeight-b.n.height()<=b.n.scrollTop():b.n[0].scrollWidth-b.n.width()<=b.n.scrollLeft()};
var Tp=function(b,c,d,e,f){U.call(this);var g=this;d=d||{};c=c||"primary";this.e=e&&e.LA;"hotdog"==c&&(f="SPRITE_icon_hotdog");this.a=null;d.href||e?this.a=$("<a>"):(this.a=$("<button>"),d.type=d.type||"button");var h={big:"collections-ui-button-big",edit:"collections-ui-button-edit",hotdog:"collections-ui-button-hotdog",menu:"collections-ui-button-menu","menu-reverse":"collections-ui-button-menu-reverse","menu-right-anchor":"collections-ui-button-menu-right-anchor",primary:"collections-ui-button-primary",
secondary:"collections-ui-button-secondary","short":"collections-ui-button-short",simple:"collections-ui-button-simple",transparent:"collections-ui-button-transparent",unstyled:"collections-ui-button-unstyled"},l="";$.each(c.split(" "),function(b,c){l+=" "+h[c]});this.a.addClass("collections-ui-button"+l);this.a.attr(d);f&&$("<img>").addClass("collections-ui-button-icon").addClass(f).attr("src",Qp()).attr("alt","Icon").appendTo(this.a);this.b=null;if(e||b)this.e?(this.a.addClass("collections-ui-button-menu-images"),
this.b=$("<span>").addClass("collections-ui-button-content").append($("<img>").addClass("collections-ui-button-icon").attr("src",Qp()).attr("alt","Icon")).append($("<span>").text(b||"")).appendTo(this.a)):this.b=$("<span>").addClass("collections-ui-button-content").text(b||"").appendTo(this.a);if(e){var m=e&&e.items||[],r=e&&e.defaultValue||null,u=this.a.hasClass("collections-ui-button-menu-reverse");this.a.attr("role","menu").attr("aria-haspopup","true");var w=$("<div>").addClass("collections-ui-button-menu-wrapper");
this.a.append($("<img>").attr("src",Qp()).attr("alt","Arrow").addClass(u?"collections-ui-button-arrow-reverse":"collections-ui-button-arrow"));var C=$("<ul>").addClass("collections-ui-button-list-ul");this.g=[];y(m,function(b){var c=$("<a>").attr("href","#").text(b.title).addClass(b.a||"");c.prop("value",b.value);g.e&&c.prop("iconClassname",b.Qi||"").prop("tooltip",b.fi||"").append($("<img>").addClass("collections-ui-button-icon").addClass(b.Qi||"").attr("src",Qp()).attr("alt",b.fi||"Icon").attr("title",
b.fi||""));c.on("click.collections-ui-button",function(c){Rp(g,this);b.action($(this).prop("value"),c);return!1});r==b.value&&Rp(g,c);C.append($("<li>").append(c));g.g.push(c)});xk(new Jp(C),this);w.append(C);this.a.append(w);this.a.on("click.collections-ui-button-menu",t(function(){if(w.is(":visible"))Sp(g);else{C.css("min-width",this.a.outerWidth()+"px");this.a.trigger("gci-ui-button-menu-show");w.show();this.a.addClass("collections-ui-button-active");this.a.toggleClass("collections-ui-button-menu-equal-width",
C.width()==this.a.outerWidth());var b=Math.max(200,Math.min($("body").height()-C.offset().top-50,435));C.css("max-height",b+"px");u&&C.css("top","-"+(C.outerHeight()+this.a.outerHeight()-1)+"px");window.setTimeout(function(){C.css("-webkit-transform","translate3d(0, 0, 0)")},0);window.setTimeout(function(){$("body").on("keydown.collections-ui-button-menu",function(b){if(w.is(":hidden"))return!0;var c=this.Cg;switch(b.keyCode){case 13:C.find("li.collections-ui-button-menuitem-selected > a").trigger("click");
break;case 27:Sp(g);break;case 38:this.Cg=0>this.Cg-1?m.length-1:this.Cg-1;break;case 40:this.Cg=(this.Cg+1)%m.length;break;default:return!0}C.find("li:nth-child("+(c+1)+")").removeClass("collections-ui-button-menuitem-selected");C.find("li:nth-child("+(this.Cg+1)+")").addClass("collections-ui-button-menuitem-selected");return!1}).on("click.collections-ui-button-menu",function(){Sp(g)})},0)}},this))}};v(Tp,wk);Tp.prototype.Cg=-1;Tp.prototype.g=null;Tp.prototype.get=function(){return this.a};
Tp.prototype.focus=function(){this.a.focus()};
var Rp=function(b,c){b.a.find(".collections-ui-button-list-ul").find(".collections-ui-button-menu-entry-selected").removeClass("collections-ui-button-menu-entry-selected");$(c).addClass("collections-ui-button-menu-entry-selected");b.e?b.b.find("img").removeClass().addClass("collections-ui-button-icon").addClass($(c).prop("iconClassname")?$(c).prop("iconClassname").toString():"").attr("title",$(c).prop("tooltip")?$(c).prop("tooltip").toString():""):b.b.text($(c).text()).prop("class","collections-ui-button-content "+
$(c).prop("class")).removeClass("collections-ui-button-menu-entry-selected");$(c).prop("value");Sp(b)},Sp=function(b){$("body").off(".collections-ui-button-menu");b.Cg=-1;b.a.find(".collections-ui-button-menu-wrapper").hide();b.a.removeClass("collections-ui-button-active")};Tp.prototype.bind=function(b,c){this.a.bind(b,c)};Tp.prototype.unbind=function(b,c){this.a.unbind(b,c)};Tp.prototype.D=function(){$("body").off(".collections-ui-button-menu");this.a.remove();this.a=null;Tp.r.D.call(this)}; var Up=function(b,c){b.b&&b.b.text(c)};
var Vp;var Wp=function(b,c){c?b.setAttribute("role",c):b.removeAttribute("role")},Xp=function(b,c,d){fa(d)&&(d=d.join(" "));var e="aria-"+c;""===d||void 0==d?(Vp||(Vp={atomic:!1,autocomplete:"none",dropeffect:"none",haspopup:!1,live:"off",multiline:!1,multiselectable:!1,orientation:"vertical",readonly:!1,relevant:"additions text",required:!1,sort:"none",busy:!1,disabled:!1,hidden:!1,invalid:"false"}),d=Vp,c in d?b.setAttribute(e,d[c]):b.removeAttribute(e)):b.setAttribute(e,d)},Yp=function(b,c){var d=b.getAttribute("aria-"+ c);return null==d||void 0==d?"":String(d)},Zp=function(b,c){var d="";c&&(d=c.id);Xp(b,"activedescendant",d)};
var $p=function(){return Ac?"-webkit":zc?"-moz":I?"-ms":yc?"-o":null};var aq=function(b){W.call(this);this.P=b;b=I?"focusout":"blur";this.a=T(this.P,I?"focusin":"focus",this,!I);this.b=T(this.P,b,this,!I)};v(aq,W);aq.prototype.handleEvent=function(b){var c=new Nj(b.Kb);c.type="focusin"==b.type||"focus"==b.type?"focusin":"focusout";this.dispatchEvent(c)};aq.prototype.D=function(){aq.r.D.call(this);mk(this.a);mk(this.b);delete this.P};
var bq=function(b){if(b.altKey&&!b.ctrlKey||b.metaKey||112<=b.keyCode&&123>=b.keyCode)return!1;switch(b.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!zc;default:return 166>b.keyCode||183<b.keyCode}},eq=function(b,c,d,e,f){if(!(I||Ac&&Jc("525")))return!0;if(Bc&&f)return cq(b);if(f&&!e)return!1;ka(c)&&
(c=dq(c));if(!d&&(17==c||18==c||Bc&&91==c))return!1;if(Ac&&e&&d)switch(b){case 220:case 219:case 221:case 192:case 186:case 189:case 187:case 188:case 190:case 191:case 192:case 222:return!1}if(I&&e&&c==b)return!1;switch(b){case 13:return!0;case 27:return!Ac}return cq(b)},cq=function(b){if(48<=b&&57>=b||96<=b&&106>=b||65<=b&&90>=b||Ac&&0==b)return!0;switch(b){case 32:case 63: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:return!0; default:return!1}},dq=function(b){if(zc)b=fq(b);else if(Bc&&Ac)a:switch(b){case 93:b=91;break a}return b},fq=function(b){switch(b){case 61:return 187;case 59:return 186;case 173:return 189;case 224:return 91;case 0:return 224;default:return b}};
var gq=function(){W.call(this);this.a=0;this.endTime=this.startTime=null};v(gq,W);gq.prototype.p=function(){this.b("begin")};gq.prototype.h=function(){this.b("end")};gq.prototype.b=function(b){this.dispatchEvent(b)};var hq=function(b,c,d,e){this.top=b;this.right=c;this.bottom=d;this.left=e},iq=function(b){for(var c=new hq(arguments[0].y,arguments[0].x,arguments[0].y,arguments[0].x),d=1;d<arguments.length;d++){var e=arguments[d];c.top=Math.min(c.top,e.y);c.right=Math.max(c.right,e.x);c.bottom=Math.max(c.bottom,e.y);c.left=Math.min(c.left,e.x)}return c};k=hq.prototype;k.getHeight=function(){return this.bottom-this.top};k.clone=function(){return new hq(this.top,this.right,this.bottom,this.left)};
k.contains=function(b){return this&&b?b instanceof hq?b.left>=this.left&&b.right<=this.right&&b.top>=this.top&&b.bottom<=this.bottom:b.x>=this.left&&b.x<=this.right&&b.y>=this.top&&b.y<=this.bottom:!1};k.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};
k.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};k.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};
var jq=function(b,c,d,e){this.left=b;this.top=c;this.width=d;this.height=e};jq.prototype.clone=function(){return new jq(this.left,this.top,this.width,this.height)};jq.prototype.contains=function(b){return b instanceof jq?this.left<=b.left&&this.left+this.width>=b.left+b.width&&this.top<=b.top&&this.top+this.height>=b.top+b.height:b.x>=this.left&&b.x<=this.left+this.width&&b.y>=this.top&&b.y<=this.top+this.height};
var kq=function(b,c){var d=c.x<b.left?b.left-c.x:Math.max(c.x-(b.left+b.width),0),e=c.y<b.top?b.top-c.y:Math.max(c.y-(b.top+b.height),0);return d*d+e*e};k=jq.prototype;k.distance=function(b){return Math.sqrt(kq(this,b))};k.ab=function(){return new pf(this.width,this.height)};k.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
k.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};k.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
var mq=function(b,c,d){if(ja(c))(c=lq(b,c))&&(b.style[c]=d);else for(var e in c){d=b;var f=c[e],g=lq(d,e);g&&(d.style[g]=f)}},nq={},lq=function(b,c){var d=nq[c];if(!d){var e=$a(c),d=e;void 0===b.style[e]&&(e=(Ac?"Webkit":zc?"Moz":I?"ms":yc?"O":null)+ab(e),void 0!==b.style[e]&&(d=e));nq[c]=d}return d},oq=function(b,c){var d=b.style[$a(c)];return"undefined"!==typeof d?d:b.style[lq(b,c)]||""},pq=function(b,c){var d=sf(b);return d.defaultView&&d.defaultView.getComputedStyle&&(d=d.defaultView.getComputedStyle(b,
null))?d[c]||d.getPropertyValue(c)||"":""},qq=function(b,c){return pq(b,c)||(b.currentStyle?b.currentStyle[c]:null)||b.style&&b.style[c]},rq=function(b){return qq(b,"position")},tq=function(b,c,d){var e;c instanceof mf?(e=c.x,c=c.y):(e=c,c=d);b.style.left=sq(e,!1);b.style.top=sq(c,!1)},uq=function(b){var c;try{c=b.getBoundingClientRect()}catch(d){return{left:0,top:0,right:0,bottom:0}}I&&b.ownerDocument.body&&(b=b.ownerDocument,c.left-=b.documentElement.clientLeft+b.body.clientLeft,c.top-=b.documentElement.clientTop+
b.body.clientTop);return c},vq=function(b){if(I&&!Lc(8))return b.offsetParent;var c=sf(b),d=qq(b,"position"),e="fixed"==d||"absolute"==d;for(b=b.parentNode;b&&b!=c;b=b.parentNode)if(11==b.nodeType&&b.host&&(b=b.host),d=qq(b,"position"),e=e&&"static"==d&&b!=c.documentElement&&b!=c.body,!e&&(b.scrollWidth>b.clientWidth||b.scrollHeight>b.clientHeight||"fixed"==d||"absolute"==d||"relative"==d))return b;return null},xq=function(b){for(var c=new hq(0,Infinity,Infinity,0),d=tf(b),e=d.zb().body,f=d.zb().documentElement,
g=Bf(d.a);b=vq(b);)if(!(I&&0==b.clientWidth||Ac&&0==b.clientHeight&&b==e)&&b!=e&&b!=f&&"visible"!=qq(b,"overflow")){var h=wq(b),l=new mf(b.clientLeft,b.clientTop);h.x+=l.x;h.y+=l.y;c.top=Math.max(c.top,h.y);c.right=Math.min(c.right,h.x+b.clientWidth);c.bottom=Math.min(c.bottom,h.y+b.clientHeight);c.left=Math.max(c.left,h.x)}e=g.scrollLeft;g=g.scrollTop;c.left=Math.max(c.left,e);c.top=Math.max(c.top,g);d=Af(dg(d));c.right=Math.min(c.right,e+d.width);c.bottom=Math.min(c.bottom,g+d.height);return 0<=
c.top&&0<=c.left&&c.bottom>c.top&&c.right>c.left?c:null},zq=function(b,c){var d,e=wq(b);d=wq(c);var f=yq(c),g=e.x-d.x-f.left,e=e.y-d.y-f.top,h=c.clientWidth-b.offsetWidth,l=c.clientHeight-b.offsetHeight,m=c.scrollLeft,r=c.scrollTop;if(c==document.body||c==document.documentElement)m=d.x+f.left,r=d.y+f.top,I&&!Lc(10)&&(m+=f.left,r+=f.top);m+=Math.min(g,Math.max(g-h,0));r+=Math.min(e,Math.max(e-l,0));d=new mf(m,r);c.scrollLeft=d.x;c.scrollTop=d.y},wq=function(b){var c=sf(b),d=new mf(0,0),e;e=c?sf(c):
document;e=!I||Lc(9)||cg(tf(e))?e.documentElement:e.body;if(b==e)return d;b=uq(b);c=eg(tf(c));d.x=b.left+c.x;d.y=b.top+c.y;return d},Bq=function(b,c){var d=Aq(b),e=Aq(c);return new mf(d.x-e.x,d.y-e.y)},Cq=function(b){b=uq(b);return new mf(b.left,b.top)},Aq=function(b){if(1==b.nodeType)return Cq(b);var c=la(b.h),d=b;b.targetTouches&&b.targetTouches.length?d=b.targetTouches[0]:c&&b.Kb.targetTouches&&b.Kb.targetTouches.length&&(d=b.Kb.targetTouches[0]);return new mf(d.clientX,d.clientY)},Dq=function(b,
c,d){if(c instanceof pf)d=c.height,c=c.width;else if(void 0==d)throw Error("ya");b.style.width=sq(c,!0);b.style.height=sq(d,!0)},sq=function(b,c){"number"==typeof b&&(b=(c?Math.round(b):b)+"px");return b},Fq=function(b){return Eq(b)},Eq=function(b){var c=Gq;if("none"!=qq(b,"display"))return c(b);var d=b.style,e=d.display,f=d.visibility,g=d.position;d.visibility="hidden";d.position="absolute";d.display="inline";b=c(b);d.display=e;d.position=g;d.visibility=f;return b},Gq=function(b){var c=b.offsetWidth,
d=b.offsetHeight,e=Ac&&!c&&!d;return p(c)&&!e||!b.getBoundingClientRect?new pf(c,d):(b=uq(b),new pf(b.right-b.left,b.bottom-b.top))},Hq=function(b){var c=wq(b);b=Eq(b);return new jq(c.x,c.y,b.width,b.height)},Iq=function(b,c){var d=b.style;"opacity"in d?d.opacity=c:"MozOpacity"in d?d.MozOpacity=c:"filter"in d&&(d.filter=""===c?"":"alpha(opacity="+100*c+")")},Jq=function(b,c){b.style.display=c?"":"none"},Kq=function(b){return"rtl"==qq(b,"direction")},Lq=zc?"MozUserSelect":Ac?"WebkitUserSelect":null,
Mq=function(b,c,d){d=d?null:b.getElementsByTagName("*");if(Lq){if(c=c?"none":"",b.style[Lq]=c,d){b=0;for(var e;e=d[b];b++)e.style[Lq]=c}}else if(I||yc)if(c=c?"on":"",b.setAttribute("unselectable",c),d)for(b=0;e=d[b];b++)e.setAttribute("unselectable",c)},Nq=function(b,c){if(/^\d+px?$/.test(c))return parseInt(c,10);var d=b.style.left,e=b.runtimeStyle.left;b.runtimeStyle.left=b.currentStyle.left;b.style.left=c;var f=b.style.pixelLeft;b.style.left=d;b.runtimeStyle.left=e;return f},Oq=function(b,c){var d=
b.currentStyle?b.currentStyle[c]:null;return d?Nq(b,d):0},Pq=function(b,c){if(I){var d=Oq(b,c+"Left"),e=Oq(b,c+"Right"),f=Oq(b,c+"Top"),g=Oq(b,c+"Bottom");return new hq(f,e,g,d)}d=pq(b,c+"Left");e=pq(b,c+"Right");f=pq(b,c+"Top");g=pq(b,c+"Bottom");return new hq(parseFloat(f),parseFloat(e),parseFloat(g),parseFloat(d))},Qq={thin:2,medium:4,thick:6},Rq=function(b,c){if("none"==(b.currentStyle?b.currentStyle[c+"Style"]:null))return 0;var d=b.currentStyle?b.currentStyle[c+"Width"]:null;return d in Qq?
Qq[d]:Nq(b,d)},yq=function(b){if(I&&!Lc(9)){var c=Rq(b,"borderLeft"),d=Rq(b,"borderRight"),e=Rq(b,"borderTop");b=Rq(b,"borderBottom");return new hq(e,d,b,c)}c=pq(b,"borderLeftWidth");d=pq(b,"borderRightWidth");e=pq(b,"borderTopWidth");b=pq(b,"borderBottomWidth");return new hq(parseFloat(e),parseFloat(d),parseFloat(b),parseFloat(c))};
var Tq=function(b,c){fa(c)||(c=[c]);var d=hb(c,function(b){return ja(b)?b:b.yk+" "+b.duration+"s "+b.timing+" "+b.delay+"s"});Sq(b,d.join(","))},Uq=function(b){var c=!1,d;return function(){c||(d=b(),c=!0);return d}}(function(){if(I)return Jc("10.0");var b=document.createElement("DIV"),c=$p(),d={transition:"opacity 1s linear"};c&&(d[c+"-transition"]="opacity 1s linear");c=ge("div",{style:d});b.innerHTML=Zd(c);return""!=oq(b.firstChild,"transition")}),Sq=function(b,c){mq(b,"transition",c)};
var Vq=function(b,c,d,e,f){gq.call(this);this.P=b;this.j=c;this.o=d;this.e=e;this.l=fa(f)?f:[f]};v(Vq,gq);k=Vq.prototype;k.play=function(){if(1==this.a)return!1;this.p();this.b("play");this.startTime=ta();this.a=1;if(Uq())return mq(this.P,this.o),this.g=Jm(this.Az,void 0,this),!0;this.Op(!1);return!1};k.Az=function(){Eq(this.P);Tq(this.P,this.l);mq(this.P,this.e);this.g=Jm(t(this.Op,this,!1),1E3*this.j)};k.stop=function(){1==this.a&&this.Op(!0)}; k.Op=function(b){Sq(this.P,"");n.clearTimeout(this.g);mq(this.P,this.e);this.endTime=ta();this.a=0;b?this.b("stop"):this.b("finish");this.h()};k.D=function(){this.stop();Vq.r.D.call(this)};k.pause=function(){};
var Wq=function(b,c,d,e){return new Vq(b,.13,{opacity:d},{opacity:e},{yk:"opacity",duration:.13,timing:c,delay:0})};var Xq=function(b,c,d){W.call(this);this.target=b;this.handle=c||b;this.l=d||new jq(NaN,NaN,NaN,NaN);this.e=sf(b);this.a=new U(this);this.J(this.a);T(this.handle,["touchstart","mousedown"],this.j,!1,this)};v(Xq,W);var Yq=I||zc&&Jc("1.9.3");k=Xq.prototype;k.clientX=0;k.clientY=0;k.Ar=0;k.Br=0;k.deltaX=0;k.deltaY=0;k.oo=!0;k.vh=!1;k.Ni=!1;var Zq=function(b,c){b.l=c||new jq(NaN,NaN,NaN,NaN)};Xq.prototype.Ga=function(b){this.oo=b};
Xq.prototype.D=function(){Xq.r.D.call(this);lk(this.handle,["touchstart","mousedown"],this.j,!1,this);this.a.qd();Yq&&this.e.releaseCapture();this.handle=this.target=null};var $q=function(b){p(b.p)||(b.p=Kq(b.target));return b.p};
Xq.prototype.j=function(b){var c="mousedown"==b.type;if(!this.oo||this.vh||c&&!Qj(b))this.dispatchEvent("earlycancel");else if(ar(b),this.dispatchEvent(new br("start",this,b.clientX,b.clientY,b))){this.vh=!0;b.preventDefault();var c=this.e,d=c.documentElement,e=!Yq;this.a.C(c,["touchmove","mousemove"],this.A,e);this.a.C(c,["touchend","mouseup"],this.g,e);Yq?(d.setCapture(!1),this.a.C(d,"losecapture",this.g)):this.a.C(Cf(c),"blur",this.g);this.B&&this.a.C(this.B,"scroll",this.Yf,e);this.clientX=this.Ar=
b.clientX;this.clientY=this.Br=b.clientY;this.Ni?(b=this.target,c=b.offsetLeft,d=b.offsetParent,d||"fixed"!=rq(b)||(d=sf(b).documentElement),d?(zc?(e=yq(d),c+=e.left):Lc(8)&&!Lc(9)&&(e=yq(d),c-=e.left),b=Kq(d)?d.clientWidth-(c+b.offsetWidth):c):b=c):b=this.target.offsetLeft;this.deltaX=b;this.deltaY=this.target.offsetTop;this.o=eg(tf(this.e));ta()}};
Xq.prototype.g=function(b,c){this.a.qd();Yq&&this.e.releaseCapture();if(this.vh){ar(b);this.vh=!1;var d=cr(this,this.deltaX),e=dr(this,this.deltaY);this.dispatchEvent(new br("end",this,b.clientX,b.clientY,b,d,e,c||"touchcancel"==b.type))}else this.dispatchEvent("earlycancel")};var ar=function(b){var c=b.type;"touchstart"==c||"touchmove"==c?b.init(b.Kb.targetTouches[0],b.currentTarget):"touchend"!=c&&"touchcancel"!=c||b.init(b.Kb.changedTouches[0],b.currentTarget)};
Xq.prototype.A=function(b){if(this.oo){ar(b);var c=(this.Ni&&$q(this)?-1:1)*(b.clientX-this.clientX),d=b.clientY-this.clientY;this.clientX=b.clientX;this.clientY=b.clientY;if(!this.vh){var e=this.Ar-this.clientX,f=this.Br-this.clientY;if(0<e*e+f*f)if(this.dispatchEvent(new br("start",this,b.clientX,b.clientY,b)))this.vh=!0;else{this.isDisposed()||this.g(b);return}}d=er(this,c,d);c=d.x;d=d.y;this.vh&&this.dispatchEvent(new br("beforedrag",this,b.clientX,b.clientY,b,c,d))&&(fr(this,b,c,d),b.preventDefault())}};
var er=function(b,c,d){var e=eg(tf(b.e));c+=e.x-b.o.x;d+=e.y-b.o.y;b.o=e;b.deltaX+=c;b.deltaY+=d;c=cr(b,b.deltaX);b=dr(b,b.deltaY);return new mf(c,b)};Xq.prototype.Yf=function(b){var c=er(this,0,0);b.clientX=this.clientX;b.clientY=this.clientY;fr(this,b,c.x,c.y)};
var fr=function(b,c,d,e){b.h(d,e);b.dispatchEvent(new br("drag",b,c.clientX,c.clientY,c,d,e))},cr=function(b,c){var d=b.l,e=isNaN(d.left)?null:d.left,d=isNaN(d.width)?0:d.width;return Math.min(null!=e?e+d:Infinity,Math.max(null!=e?e:-Infinity,c))},dr=function(b,c){var d=b.l,e=isNaN(d.top)?null:d.top,d=isNaN(d.height)?0:d.height;return Math.min(null!=e?e+d:Infinity,Math.max(null!=e?e:-Infinity,c))};
Xq.prototype.h=function(b,c){this.Ni&&$q(this)?this.target.style.right=b+"px":this.target.style.left=b+"px";this.target.style.top=c+"px"};var br=function(b,c,d,e,f,g,h,l){Jj.call(this,b);this.clientX=d;this.clientY=e;this.k=f;this.left=p(g)?g:c.deltaX;this.top=p(h)?h:c.deltaY;this.a=c;this.g=!!l};v(br,Jj);
var gr=function(){};ca(gr);gr.prototype.a=0;var hr=function(b){return":"+(b.a++).toString(36)};var jr=function(b){W.call(this);this.e=b||tf();this.zd=ir;this.ka=null;this.mb=!1;this.P=null;this.I=void 0;this.B=this.h=this.j=this.O=null;this.Gj=!1};v(jr,W);jr.prototype.Do=gr.pb();var ir=null,kr=function(b,c){switch(b){case 1:return c?"disable":"enable";case 2:return c?"highlight":"unhighlight";case 4:return c?"activate":"deactivate";case 8:return c?"select":"unselect";case 16:return c?"check":"uncheck";case 32:return c?"focus":"blur";case 64:return c?"open":"close"}throw Error("za");};
jr.prototype.getId=function(){return this.ka||(this.ka=hr(this.Do))};var lr=function(b,c){if(b.j&&b.j.B){var d=b.j.B,e=b.ka;e in d&&delete d[e];d=b.j.B;if(c in d)throw Error("d`"+c);d[c]=b}b.ka=c};jr.prototype.w=function(){return this.P};var mr=function(b,c){b.P=c},Z=function(b,c){return b.P?xf(c,b.P||b.e.a):null},nr=function(b){b.I||(b.I=new U(b));return b.I},pr=function(b,c){if(b==c)throw Error("Aa");if(c&&b.j&&b.ka&&or(b.j,b.ka)&&b.j!=c)throw Error("Aa");b.j=c;jr.r.Fk.call(b,c)};k=jr.prototype;
k.wg=function(){return this.j};k.Fk=function(b){if(this.j&&this.j!=b)throw Error("Ba");jr.r.Fk.call(this,b)};k.fa=function(){return this.e};k.wb=function(){this.P=this.e.createElement("DIV")};k.render=function(b){qr(this,b)};var qr=function(b,c,d){if(b.mb)throw Error("Ca");b.P||b.wb();c?c.insertBefore(b.P,d||null):b.e.zb().body.appendChild(b.P);b.j&&!b.j.mb||b.Ia()};k=jr.prototype;
k.fb=function(b){if(this.mb)throw Error("Ca");if(b&&this.Dl(b)){this.Gj=!0;var c=sf(b);this.e&&this.e.zb()==c||(this.e=tf(b));this.Ha(b);this.Ia()}else throw Error("Da");};k.Dl=function(){return!0};k.Ha=function(b){this.P=b};k.Ia=function(){this.mb=!0;rr(this,function(b){!b.mb&&b.w()&&b.Ia()})};k.Rb=function(){rr(this,function(b){b.mb&&b.Rb()});this.I&&this.I.qd();this.mb=!1};
k.D=function(){this.mb&&this.Rb();this.I&&(this.I.la(),delete this.I);rr(this,function(b){b.la()});!this.Gj&&this.P&&Lf(this.P);this.j=this.O=this.P=this.B=this.h=null;jr.r.D.call(this)};k.Ib=function(b,c){this.mn(b,sr(this),c)};
k.mn=function(b,c,d){if(b.mb&&(d||!this.mb))throw Error("Ca");if(0>c||c>sr(this))throw Error("Ea");this.B&&this.h||(this.B={},this.h=[]);if(b.wg()==this){var e=b.getId();this.B[e]=b;sb(this.h,b)}else{var e=this.B,f=b.getId();if(f in e)throw Error("d`"+f);e[f]=b}pr(b,this);yb(this.h,c,0,b);b.mb&&this.mb&&b.wg()==this?(d=this.Mc(),c=d.childNodes[c]||null,c!=b.w()&&d.insertBefore(b.w(),c)):d?(this.P||this.wb(),c=tr(this,c+1),qr(b,this.Mc(),c?c.P:null)):this.mb&&!b.mb&&b.P&&b.P.parentNode&&1==b.P.parentNode.nodeType&&
b.Ia()};k.Mc=function(){return this.P};var ur=function(b){null==b.zd&&(b.zd=Kq(b.mb?b.P:b.e.zb().body));return b.zd},sr=function(b){return b.h?b.h.length:0},or=function(b,c){var d;b.B&&c?(d=b.B,d=(c in d?d[c]:void 0)||null):d=null;return d},tr=function(b,c){return b.h?b.h[c]||null:null},rr=function(b,c,d){b.h&&y(b.h,c,d)},vr=function(b,c){return b.h&&c?db(b.h,c):-1}; jr.prototype.removeChild=function(b,c){if(b){var d=ja(b)?b:b.getId();b=or(this,d);if(d&&b){var e=this.B;d in e&&delete e[d];sb(this.h,b);c&&(b.Rb(),b.P&&Lf(b.P));pr(b,null)}}if(!b)throw Error("Fa");return b};
var wr=function(b,c){jr.call(this,c);this.Fb=!!b;this.K=null};v(wr,jr);k=wr.prototype;k.xo=null;k.Kl=!1;k.Ld=null;k.bd=null;k.Le=null;k.wo=!1;k.na=function(){return"goog-modalpopup"};k.tg=function(){return this.Ld};k.wb=function(){wr.r.wb.call(this);var b=this.w(),c=Ga(this.na()).split(" ");dh(b,c);Uf(b,!0);Jq(b,!1);xr(this);yr(this)};
var xr=function(b){if(b.Fb&&!b.bd){var c;c=b.fa();var d;d=ja(void 0)?Fd(void 0).th():"";c=c.Ka("iframe",{frameborder:0,style:"border:0;vertical-align:bottom;"+d,src:'javascript:""'});b.bd=c;b.bd.className=b.na()+"-bg";Jq(b.bd,!1);Iq(b.bd,0)}b.Ld||(b.Ld=b.fa().Ka("DIV",b.na()+"-bg"),Jq(b.Ld,!1))},yr=function(b){b.Le||(b.Le=b.fa().createElement("SPAN"),Jq(b.Le,!1),Uf(b.Le,!0),b.Le.style.position="absolute")};k=wr.prototype;k.Ir=function(){this.wo=!1};k.Dl=function(b){return!!b&&"DIV"==b.tagName};
k.Ha=function(b){wr.r.Ha.call(this,b);b=Ga(this.na()).split(" ");dh(this.w(),b);xr(this);yr(this);Uf(this.w(),!0);Jq(this.w(),!1)};k.Ia=function(){this.bd&&Kf(this.bd,this.w());Kf(this.Ld,this.w());wr.r.Ia.call(this);var b=this.w();b.parentNode&&b.parentNode.insertBefore(this.Le,b.nextSibling);this.xo=new aq(this.fa().zb());nr(this).C(this.xo,"focusin",this.mx);zr(this,!1)};k.Rb=function(){this.Va()&&this.setVisible(!1);S(this.xo);wr.r.Rb.call(this);Lf(this.bd);Lf(this.Ld);Lf(this.Le)};
k.setVisible=function(b){if(b!=this.Kl)if(this.o&&this.o.stop(),this.A&&this.A.stop(),this.l&&this.l.stop(),this.p&&this.p.stop(),this.mb&&zr(this,b),b){if(this.dispatchEvent("beforeshow")){try{this.K=this.fa().zb().activeElement}catch(c){}this.xp();this.ic();nr(this).C(dg(this.fa()),"resize",this.xp);Ar(this,!0);this.focus();this.Kl=!0;this.o&&this.A?(jk(this.o,"end",this.Jl,!1,this),this.A.play(),this.o.play()):this.Jl()}}else if(this.dispatchEvent("beforehide")){nr(this).k(dg(this.fa()),"resize",
this.xp);this.Kl=!1;this.l&&this.p?(jk(this.l,"end",this.pm,!1,this),this.p.play(),this.l.play()):this.pm();a:{try{var d=this.fa(),e=d.zb().body,f=d.zb().activeElement||e;if(!this.K||this.K==e){this.K=null;break a}(f==e||d.contains(this.w(),f))&&this.K.focus()}catch(g){}this.K=null}}};
var zr=function(b,c){if(c){b.H||(b.H=[]);for(var d=b.fa(),d=d.ex(d.zb().body),e=0;e<d.length;e++){var f=d[e];f==b.P||Yp(f,"hidden")||(Xp(f,"hidden",!0),b.H.push(f))}}else if(b.H){for(e=0;e<b.H.length;e++)b.H[e].removeAttribute("aria-hidden");b.H=null}},Ar=function(b,c){b.bd&&Jq(b.bd,c);b.Ld&&Jq(b.Ld,c);Jq(b.w(),c);Jq(b.Le,c)};k=wr.prototype;k.Jl=function(){this.dispatchEvent("show")};k.pm=function(){Ar(this,!1);this.dispatchEvent("hide")};k.Va=function(){return this.Kl};k.focus=function(){this.er()};
k.xp=function(){this.bd&&Jq(this.bd,!1);this.Ld&&Jq(this.Ld,!1);var b=this.fa().zb(),c=Af(Cf(b)||window),d=Math.max(c.width,Math.max(b.body.scrollWidth,b.documentElement.scrollWidth)),b=Math.max(c.height,Math.max(b.body.scrollHeight,b.documentElement.scrollHeight));this.bd&&(Jq(this.bd,!0),Dq(this.bd,d,b));this.Ld&&(Jq(this.Ld,!0),Dq(this.Ld,d,b))};
k.ic=function(){var b=this.fa().zb(),c=Cf(b)||window;if("fixed"==rq(this.w()))var d=b=0;else d=eg(this.fa()),b=d.x,d=d.y;var e=Fq(this.w()),c=Af(c),b=Math.max(b+c.width/2-e.width/2,0),d=Math.max(d+c.height/2-e.height/2,0);tq(this.w(),b,d);tq(this.Le,b,d)};k.mx=function(b){this.wo?this.Ir():b.target==this.Le&&Jm(this.er,0,this)};k.er=function(){try{I&&this.fa().zb().body.focus(),this.w().focus()}catch(b){}}; k.D=function(){S(this.o);this.o=null;S(this.l);this.l=null;S(this.A);this.A=null;S(this.p);this.p=null;wr.r.D.call(this)};
var Cr=function(b,c,d){wr.call(this,c,d);this.b=b||"modal-dialog";this.a=Br()};v(Cr,wr);k=Cr.prototype;k.Yq=!0;k.hk=!0;k.Bs=!0;k.Yk=.5;k.Il="";k.Dh=null;k.Yb=null;k.uo=!1;k.wd=null;k.xd=null;k.Rm=null;k.hd=null;k.Ke=null;k.Nc=null;k.na=function(){return this.b};k.setTitle=function(b){this.Il=b;this.xd&&Rf(this.xd,b)};k.getTitle=function(){return this.Il};k.setContent=function(b){b=$d(b,null);Dr(this,b)};var Dr=function(b,c){b.Dh=c;b.Ke&&(b.Ke.innerHTML=Zd(c))};
Cr.prototype.getContent=function(){return null!=this.Dh?Zd(this.Dh):""};var Er=function(b){b.w()||b.render()};Cr.prototype.Mc=function(){Er(this);return this.Ke};var Fr=function(b){Er(b);return b.wd},Gr=function(b){Er(b);return b.Nc};Cr.prototype.tg=function(){Er(this);return Cr.r.tg.call(this)};
var Hr=function(b,c){b.Yk=c;if(b.w()){var d=b.tg();d&&Iq(d,b.Yk)}},Ir=function(b,c){var d=Ga(b.b+"-title-draggable").split(" ");b.w()&&(c?dh(b.wd,d):fh(b.wd,d));if(c&&!b.Yb){var e;e=new Xq(b.w(),b.wd);b.Yb=e;dh(b.wd,d);T(b.Yb,"start",b.lx,!1,b)}else!c&&b.Yb&&(b.Yb.la(),b.Yb=null)};k=Cr.prototype;
k.wb=function(){Cr.r.wb.call(this);var b=this.w(),c=this.fa();this.wd=c.Ka("DIV",this.b+"-title",this.xd=c.Ka("SPAN",{className:this.b+"-title-text",id:this.getId()},this.Il),this.hd=c.Ka("SPAN",this.b+"-title-close"));If(b,this.wd,this.Ke=c.Ka("DIV",this.b+"-content"),this.Nc=c.Ka("DIV",this.b+"-buttons"));Wp(this.xd,"heading");Wp(this.hd,"button");Uf(this.hd,!0);Xp(this.hd,"label","Close");this.Rm=this.xd.id;Wp(b,"dialog");Xp(b,"labelledby",this.Rm||"");this.Dh&&(this.Ke.innerHTML=Zd(this.Dh));
Jq(this.hd,this.hk);this.a&&(b=this.a,b.P=this.Nc,b.render());Jq(this.Nc,!!this.a);Hr(this,this.Yk)};
k.Ha=function(b){Cr.r.Ha.call(this,b);b=this.w();var c=this.b+"-content";this.Ke=vf(document,null,c,b)[0];this.Ke||(this.Ke=this.fa().Ka("DIV",c),this.Dh&&(this.Ke.innerHTML=Zd(this.Dh)),b.appendChild(this.Ke));var c=this.b+"-title",d=this.b+"-title-text",e=this.b+"-title-close";(this.wd=vf(document,null,c,b)[0])?(this.xd=vf(document,null,d,this.wd)[0],this.hd=vf(document,null,e,this.wd)[0]):(this.wd=this.fa().Ka("DIV",c),b.insertBefore(this.wd,this.Ke));this.xd?(this.Il=Yf(this.xd),this.xd.id||(this.xd.id=
this.getId())):(this.xd=Ef("SPAN",{className:d,id:this.getId()}),this.wd.appendChild(this.xd));this.Rm=this.xd.id;Xp(b,"labelledby",this.Rm||"");this.hd||(this.hd=this.fa().Ka("SPAN",e),this.wd.appendChild(this.hd));Jq(this.hd,this.hk);c=this.b+"-buttons";if(this.Nc=vf(document,null,c,b)[0]){if(b=this.a=new Jr(this.fa()),(c=this.Nc)&&1==c.nodeType){b.P=c;for(var c=b.P.getElementsByTagName("BUTTON"),d=0,f,g;e=c[d];d++)if(f=e.name||e.id,g=Yf(e)||e.value,f){var h=0==d;b.xc(f,g,h,"cancel"==e.name);h&&
ch(e,"goog-buttonset-default")}}}else this.Nc=this.fa().Ka("DIV",c),b.appendChild(this.Nc),this.a&&(b=this.a,b.P=this.Nc,b.render()),Jq(this.Nc,!!this.a);Hr(this,this.Yk)};
k.Ia=function(){Cr.r.Ia.call(this);nr(this).C(this.w(),"keydown",this.R).C(this.w(),"keypress",this.R);nr(this).C(this.Nc,"click",this.Ca);Ir(this,!0);nr(this).C(this.hd,"click",this.Zy);var b=this.w();Wp(b,"dialog");""!==this.xd.id&&Xp(b,"labelledby",this.xd.id);if(!this.Bs){this.Bs=!1;if(this.mb){var b=this.fa(),c=this.tg();b.no(this.bd);b.no(c)}this.Va()&&zr(this,!1)}};k.Rb=function(){this.Va()&&this.setVisible(!1);Ir(this,!1);Cr.r.Rb.call(this)};
k.setVisible=function(b){b!=this.Va()&&(this.mb||this.render(),Cr.r.setVisible.call(this,b))};k.Jl=function(){Cr.r.Jl.call(this);this.dispatchEvent("aftershow")};k.pm=function(){Cr.r.pm.call(this);this.dispatchEvent("afterhide");this.uo&&this.la()};
k.lx=function(){var b=this.fa().zb(),c=Af(Cf(b)||window),d=Math.max(b.body.scrollWidth,c.width),b=Math.max(b.body.scrollHeight,c.height),e=Fq(this.w());"fixed"==rq(this.w())?Zq(this.Yb,new jq(0,0,Math.max(0,c.width-e.width),Math.max(0,c.height-e.height))):Zq(this.Yb,new jq(0,0,d-e.width,b-e.height))};k.Zy=function(){Kr(this)};var Kr=function(b){if(b.hk){var c=b.a,d=c&&c.g;d?(c=c.get(d),b.dispatchEvent(new Lr(d,c))&&b.setVisible(!1)):b.setVisible(!1)}},Mr=function(b){b.hk=!1;b.hd&&Jq(b.hd,b.hk)};
Cr.prototype.D=function(){this.Nc=this.hd=null;Cr.r.D.call(this)};var Nr=function(b,c){b.a=c;if(b.Nc){if(b.a){var d=b.a;d.P=b.Nc;d.render()}else b.Nc.innerHTML=Zd(ie);Jq(b.Nc,!!b.a)}};Cr.prototype.Ca=function(b){a:{for(b=b.target;null!=b&&b!=this.Nc;){if("BUTTON"==b.tagName)break a;b=b.parentNode}b=null}if(b&&!b.disabled){b=b.name;var c=this.a.get(b);this.dispatchEvent(new Lr(b,c))&&this.setVisible(!1)}};
Cr.prototype.R=function(b){var c=!1,d=!1,e=this.a,f=b.target;if("keydown"==b.type)if(this.Yq&&27==b.keyCode){var g=e&&e.g,f="SELECT"==f.tagName&&!f.disabled;g&&!f?(d=!0,c=e.get(g),c=this.dispatchEvent(new Lr(g,c))):f||(c=!0)}else{if(9==b.keyCode&&b.shiftKey&&f==this.w()){this.wo=!0;try{this.Le.focus()}catch(h){}Jm(this.Ir,0,this)}}else if(13==b.keyCode){if("BUTTON"==f.tagName&&!f.disabled)g=f.name;else if(f==this.hd)Kr(this);else if(e){var l=e.k,m=l&&Or(e,l),f=("TEXTAREA"==f.tagName||"SELECT"==f.tagName||
"A"==f.tagName)&&!f.disabled;!m||m.disabled||f||(g=l)}g&&e&&(d=!0,c=this.dispatchEvent(new Lr(g,String(e.get(g)))))}else f==this.hd&&32==b.keyCode&&Kr(this);if(c||d)b.stopPropagation(),b.preventDefault();c&&this.setVisible(!1)};var Lr=function(b,c){this.type="dialogselect";this.key=b;this.caption=c};v(Lr,Jj);var Jr=function(b){this.h=b||tf();oe.call(this)};v(Jr,oe);Jr.prototype.k=null;Jr.prototype.P=null;Jr.prototype.g=null;
Jr.prototype.xc=function(b,c,d,e){oe.prototype.xc.call(this,b,c);d&&(this.k=b);e&&(this.g=b);return this};var Pr=function(b,c,d,e){return b.xc(c.key,c.caption,d,e)};Jr.prototype.render=function(){if(this.P){this.P.innerHTML=Zd(ie);var b=tf(this.P);this.forEach(function(c,d){var e=b.Ka("BUTTON",{name:d},c);d==this.k&&(e.className="goog-buttonset-default");this.P.appendChild(e)},this)}};Jr.prototype.w=function(){return this.P};Jr.prototype.fa=function(){return this.h};
var Or=function(b,c){for(var d=b.P.getElementsByTagName("BUTTON"),e=0,f;f=d[e];e++)if(f.name==c||f.id==c)return f;return null},Qr={key:"ok",caption:"OK"},Rr={key:"cancel",caption:"Cancel"},Sr={key:"yes",caption:"Yes"},Tr={key:"no",caption:"No"},Ur={key:"save",caption:"Save"},Vr={key:"continue",caption:"Continue"},Br=function(){return Pr(Pr(new Jr,Qr,!0),Rr,!1,!0)}; "undefined"!=typeof document&&(Pr(new Jr,Qr,!0,!0),Br(),Pr(Pr(new Jr,Sr,!0),Tr,!1,!0),Pr(Pr(Pr(new Jr,Sr),Tr,!0),Rr,!1,!0),Pr(Pr(Pr(new Jr,Vr),Ur),Rr,!0,!0));
var Yr=function(b){var c=sa(Wr,b,"ok");b.mb?c():I?jk(b,"show",c):jk(b,"beforeshow",c);var d=null;T(b,"show",function(){d=new Xr(b)});T(b,"hide",function(){S(d)})},Wr=function(b,c){Hr(b,.75);var d=b.a;d&&c&&(d=Or(d,c))&&ch(d,"goog-buttonset-action");var d=b.w(),d=Wq(d,"ease-out",0,1),e;e=b.w();e=Wq(e,"ease-in",1,0);var f=Wq(b.tg(),"ease-out",0,.75),g=Wq(b.tg(),"ease-in",.75,0);b.o=d;b.l=e;b.A=f;b.p=g},Zr=function(b,c,d,e,f,g,h,l){g=g||"jfk-confirm";var m=new Cr(void 0,!0,l);m.setTitle(b);Dr(m,c);Nr(m,
h||Br());m.uo=!0;m.render();b=m.w();ch(b,g);Yr(m);c=m.getId()+".msg";m.Mc().id=c;Wp(b,"alertdialog");Xp(b,"describedby",c);jk(m,"dialogselect",function(b){d&&b.key==m.a.k?d.call(f):e&&e.call(f)});m.setVisible(!0);return m},Xr=function(b){Xq.call(this,b.w());this.b=b;T(this,"start",this.I,!1,this)};v(Xr,Xq);
Xr.prototype.I=function(b){b=b.k;if(bh(b.target,this.b.na())){var c=Fq(this.b.w()),c=new hq(0,c.width,c.height,0),d,e=this.b.w();d=Pq(e,"padding");var e=-1*d.top,f=-1*d.right,g=-1*d.bottom;d=-1*d.left;ha(e)?(c.top-=e.top,c.right+=e.right,c.bottom+=e.bottom,c.left-=e.left):(c.top-=e,c.right+=f,c.bottom+=g,c.left-=d);if(!c.contains(new mf(b.offsetX,b.offsetY)))return f=this.b.fa().zb(),c=Af(Cf(f)),b=Fq(this.b.w()),"fixed"==rq(this.b.w())?(e=c.width-b.width,b=c.height-b.height):(e=Math.max(f.body.scrollWidth, c.width),c=Math.max(f.body.scrollHeight,c.height),e-=b.width,b=c-b.height),Zq(this,new jq(0,0,Math.max(0,e),Math.max(0,b))),!0}return!1};
var bs=function(b,c,d){U.call(this);d=d||{};this.a=b;this.b=".gci-ui-popup"+$r++;this.e=d.jt||null;this.p=d.jp||("save-cancel"==this.a?"Save":"Ok");this.h=d.ZD||"Cancel";this.g=d.UC||null;var e=as(this,d.kE),f=$("<div>").addClass("gci-ui-popup").addClass("gci-ui-popup-mode-"+this.a).append(c).append(e);d.bt&&f.addClass(d.bt);"warning"==this.a&&f.append($("<img>").attr("src",Qp()).addClass("SPRITE_icon_popup_warning"));this.v=$("<div>").addClass("gci-ui-popup-container").attr("role","dialog").append(f);
$("body").append(this.v);var g=this;window.setTimeout(function(){g.isDisposed()||g.v.addClass("gci-ui-popup-open")},0);if(d.aE)$("body").on("keydown"+this.b,t(function(b){if(27==b.keyCode)return this.cancel()},this)).on("click"+this.b,t(function(b){$(b.target).closest(f).length||this.cancel()},this));"undismissable"!=b&&Y.W.bind("collections-page-enter.gci-ui-popup",t(this.close,this))},ds;v(bs,wk);var $r=0;
bs.prototype.D=function(){this.v.remove();this.v=null;$("body").off(this.b);Y.W.unbind(".gci-ui-popup");bs.r.D.call(this)};bs.prototype.w=function(){return this.v};bs.prototype.close=function(b){S(ds);if(!this.isDisposed()){this.v.removeClass("gci-ui-popup-open");var c=this;b?this.la():window.setTimeout(function(){c.la()},300)}};
var as=function(b,c){if("undismissable"==b.a||"no-buttons"==b.a)return null;var d=$("<div>").addClass("gci-ui-popup-buttons-container");"ok-only"!=b.a&&"ok-cancel"!=b.a&&"save-cancel"!=b.a&&"warning"!=b.a||d.append(xk(new Tp(b.p,c||"simple"),b).get().addClass("gci-ui-popup-ok-button").on("click.gci-popup",t(b.o,b)));"cancel-only"!=b.a&&"ok-cancel"!=b.a&&"save-cancel"!=b.a&&"warning"!=b.a||d.append(xk(new Tp(b.h,"cancel-only"==b.a?"primary":"simple"),b).get().addClass("gci-ui-popup-cancel-button").on("click.gci-popup",
t(b.cancel,b)));return d};bs.prototype.o=function(){var b=this.e&&this.e();if(this.e&&0==b)return!1;this.close();return!0};bs.prototype.cancel=function(){this.g&&this.g();this.close();return!0};
var fs=function(b,c,d,e,f,g,h){S(ds);d=d||null;f=f?Pr(new Jr,{key:"ok",caption:f},!0,!0):Pr(new Jr,Qr,!0,!0);ds=Zr(b,c,d,d,e,g||"jfk-alert",f,h);es();return ds},gs=function(b,c,d,e,f,g){S(ds);ds=Zr(b,c,d,q,e,f,g,void 0);es();return ds},hs=function(b,c,d,e,f){S(ds);var g=ae("There are changes that have not been saved.");ds=Zr(d||"Are you sure you want to leave?",e||g,q,b,c,f,Pr(Pr(new Jr,{caption:"Stay on this page",key:"ok"},!0,!0),{caption:"Discard changes",key:"cancel"},!1,!1),void 0);es()},es= function(){var b=ds.tg();Jq(b,!1);window.setTimeout(function(){Jq(b,!0)},100)};
var is=function(b,c){Jj.call(this,"navigate");this.Sm=b;this.a=c};v(is,Jj);var js=function(){return!(sc("iPad")||sc("Android")&&!sc("Mobile")||sc("Silk"))&&(sc("iPod")||sc("iPhone")||sc("Android")||sc("IEMobile"))};var ks=function(b,c){for(var d=[b],e=c.length-1;0<=e;--e)d.push(typeof c[e],c[e]);return d.join("\x0B")};var ps=function(b,c,d,e){W.call(this);if(b&&!c)throw Error("Ia");var f;if(d)f=d;else{f="history_state"+ls;var g=ge("input",{type:"text",name:f,id:f,style:Bd("display:none")});document.write(Zd(g));f=uf(document,f)}this.o=f;this.a=d?Cf(sf(d)):window;var h;ja(c)?h=Wd(c):h=c;this.A=h;I&&!c&&(c="https"==window.location.protocol?Bd("https:///"):Bd('javascript:""'),this.A=c=Wd(Ad(c)));this.b=new Im(150);this.J(this.b);this.g=!b;this.e=new U(this);if(b||ms){var l;if(e)l=e;else{b="history_iframe"+ls;e={id:b,
style:Bd("display:none"),QE:void 0};c={};c.src=this.A||null;c.srcdoc=null;d={sandbox:""};h={};for(l in c)h[l]=c[l];for(l in d)h[l]=d[l];for(l in e){f=l.toLowerCase();if(f in c)throw Error("v`"+f+"`"+l+"`"+e[l]);f in d&&delete h[f];h[l]=e[l]}l=fe("iframe",h,void 0);document.write(Zd(l));l=uf(document,b)}this.p=l;this.O=!0}ms&&(this.e.C(this.a,"load",this.Jy),this.H=this.B=!1);this.g?ns(this,this.Ie(),!0):os(this,this.o.value);ls++};v(ps,W);ps.prototype.l=!1;ps.prototype.j=!1;ps.prototype.h=null;
var qs=function(b,c){var d=c||ks;return function(){var c=this||n,c=c.closure_memoize_cache_||(c.closure_memoize_cache_={}),f=d(pa(b),arguments);return c.hasOwnProperty(f)?c[f]:c[f]=b.apply(this,arguments)}}(function(){return I?8<=document.documentMode:"onhashchange"in n}),ms=I&&!Lc(8);k=ps.prototype;k.Yi=null;k.D=function(){ps.r.D.call(this);this.e.la();this.Ga(!1)};
k.Ga=function(b){if(b!=this.l)if(ms&&!this.B)this.H=b;else if(b)if(yc?this.e.C(this.a.document,rs,this.K):zc&&this.e.C(this.a,"pageshow",this.cx),qs()&&this.g)this.e.C(this.a,"hashchange",this.Ny),this.l=!0,this.dispatchEvent(new is(this.Ie(),!1));else{if(!I||js()||this.B)this.e.C(this.b,"tick",t(this.I,this,!0)),this.l=!0,ms||(this.h=this.Ie(),this.dispatchEvent(new is(this.Ie(),!1))),this.b.start()}else this.l=!1,this.e.qd(),this.b.stop()};
k.Jy=function(){this.B=!0;this.o.value&&os(this,this.o.value,!0);this.Ga(this.H)};k.cx=function(b){b.Kb.persisted&&(this.Ga(!1),this.Ga(!0))};k.Ny=function(){var b=ss(this.a);b!=this.h&&ts(this,b,!0)};k.Ie=function(){return null!=this.Yi?this.Yi:this.g?ss(this.a):us(this)||""};k.setToken=function(b,c){vs(this,b,!1,c)};k.Lt=function(b,c){vs(this,b,!0,c)};
var ss=function(b){b=b.location.href;var c=b.indexOf("#");return 0>c?"":b.substring(c+1)},vs=function(b,c,d,e){b.Ie()!=c&&(b.g?(ns(b,c,d),qs()||I&&!js()&&os(b,c,d,e),b.l&&b.I(!1)):(os(b,c,d),b.Yi=b.h=b.o.value=c,b.dispatchEvent(new is(c,!1))))},ns=function(b,c,d){b=b.a.location;var e=b.href.split("#")[0],f=-1!=b.href.indexOf("#");if(ms||f||c)e+="#"+c;e!=b.href&&(d?b.replace(e):b.href=e)},os=function(b,c,d,e){if(b.O||c!=us(b))if(b.O=!1,c=encodeURIComponent(String(c)),I){var f=Qf(b.p);f.open("text/html",
d?"replace":void 0);d=he(ge("title",{},e||b.a.document.title),ge("body",{},c));f.write(Zd(d));f.close()}else if(f=Vd(b.A)+"#"+c,b=b.p.contentWindow)d?b.location.replace(f):b.location.href=f},us=function(b){if(I)return b=Qf(b.p),b.body?Ja(b.body.innerHTML):null;var c=b.p.contentWindow;if(c){var d;try{d=Ja(ss(c))}catch(e){return b.j||(1!=b.j&&b.b.setInterval(1E4),b.j=!0),null}b.j&&(0!=b.j&&b.b.setInterval(150),b.j=!1);return d||null}return null};
ps.prototype.I=function(b){if(this.g){var c=ss(this.a);c!=this.h&&ts(this,c,b)}if(!this.g||ms)if(c=us(this)||"",null==this.Yi||c==this.Yi)this.Yi=null,c!=this.h&&ts(this,c,b)};var ts=function(b,c,d){b.h=b.o.value=c;b.g?(ms&&os(b,c),ns(b,c)):os(b,c);b.dispatchEvent(new is(b.Ie(),d))};ps.prototype.K=function(){this.b.stop();this.b.start()};var rs=["mousedown","keydown","mousemove"],ls=0;
var ws=function(b,c){W.call(this);this.a=b||window;this.e=c||null;T(this.a,"popstate",this.b,!1,this);T(this.a,"hashchange",this.b,!1,this)};v(ws,W);var xs=function(){var b=window;return!(!b.history||!b.history.pushState)};k=ws.prototype;k.po=!1;k.Qk=!0;k.bk="/";k.Ga=function(b){b!=this.po&&(this.po=b)&&this.dispatchEvent(new is(this.Ie(),!1))};k.Ie=function(){if(this.Qk){var b=this.a.location.href,c=b.indexOf("#");return 0>c?"":b.substring(c+1)}return this.e?ys(this.e,this.bk,this.a.location):this.a.location.pathname.substr(this.bk.length)};
k.setToken=function(b,c){b!=this.Ie()&&(this.a.history.pushState(null,c||this.a.document.title||"",zs(this,b)),this.dispatchEvent(new is(b,!1)))};k.Lt=function(b,c){this.a.history.replaceState(null,c||this.a.document.title||"",zs(this,b));this.dispatchEvent(new is(b,!1))};k.D=function(){lk(this.a,"popstate",this.b,!1,this);this.Qk&&lk(this.a,"hashchange",this.b,!1,this)}; var As=function(b){0!=b.Qk&&(lk(b.a,"hashchange",b.b,!1,b),b.Qk=!1)},zs=function(b,c){return b.Qk?"#"+c:b.e?Bs(b.e,c,b.bk,b.a.location):b.bk+c+b.a.location.search};ws.prototype.b=function(){this.po&&this.dispatchEvent(new is(this.Ie(),!0))};
var Ds=function(b,c){U.call(this);this.n=$("<div>").addClass("collections-page-container").appendTo(b);this.e=$("<div>").hide().appendTo("body");this.b=c||null;var d=xs()&&c;this.a=d?new ws(window,this):new ps(!1,void 0,$("<input>").appendTo(this.e)[0],$("<iframe>").appendTo(this.e)[0]);d&&(As(this.a),this.a.bk=Cs()+"/");T(this.a,"navigate",$.proxy(this.g,this));this.cj={};this.ye={};T(n,"beforeunload",function(b){if(this.Ab&&this.Ab.kh()){var c=Zd(ae(this.Ab.tl().html));return b.Kb.returnValue=c}},
!1,this)};v(Ds,wk);k=Ds.prototype;k.Ab=null;k.dl=null;k.he=null;k.Lm=0;k.Co="";k.bg="";k.Zd="";k.nr=q;k.hu=q;k.un=!1;k.Ze=null;k.D=function(){this.close();$.each(this.cj,function(b,c){c.la()});this.cj={};this.ye={};this.n.remove();ok(n,"beforeunload");Ds.r.D.call(this)};k.bind=function(b,c){this.n.bind(b,$.proxy(c,this));return this};k.unbind=function(b,c){this.n.unbind(b,c)};k.Ac=function(b){for(var c=0,d;d=arguments[c];c++)this.cj[d.rb]=d};
k.close=function(b,c){b?(this.n.trigger("collections-page-leave",[b.rb]),b.Wa(),c&&(b.h?"over"!=this.ye[this.Ab.rb][b.rb].direction&&c.hide():c.remove())):this.Ab&&(this.n.trigger("collections-page-leave",[this.Ab.rb]),this.Ab.Wa(),this.Ab.h?this.he.hide():this.he.remove(),this.dl=this.Ab=this.he=null)};
var Fs=function(b,c){var d={},e={};b.a.Ga(!0);b.Co=c;var f=b.a.Ie();if(!f&&b.b){var g=ys(b,Cs()+"/",window.location);g&&(f=g)}f&&""!=f&&Es(b,f,e,!0)||b.Oa(c,d,e)},Gs=function(b,c,d){b.nr=c||q;b.hu=d||q};
Ds.prototype.Oa=function(b,c,d,e,f){if(!f&&this.Ab&&this.Ab.kh())return f=this.Ab.tl(),hs(function(){this.Oa(b,c,d,e,!0)},this,f.ot,f.html,"gci-page-beforeleave-dialog"),!1;if(this.un)return!1;f=this.cj[b];if(!f)return!1;var g=null;this.Ab&&f&&this.ye[this.Ab.rb]&&this.ye[this.Ab.rb][f.rb]&&(g=this.ye[this.Ab.rb][f.rb]);var h=this.n.find(".collections-page");$.each(h,t(function(c,d){d=$(d);d.attr("id")!="collections-page-"+b&&d.attr("id")!="collections-page-"+this.Ab.rb&&d.hide()},this));g||this.close();
var h=this.Ab,l=this.he;this.Ab=f;e?Hs(this):Is(this,b,c||{});this.Ab.g?(this.he=$("#collections-page-"+b),this.he.show()):this.he=$("<div>").addClass("collections-page").attr("id","collections-page-"+b).addClass(this.Ab.eo?"gci-page-fullscreen":"gci-page-framed").appendTo(this.n);S(ds);var m=window.location.href;g&&h&&l?Js(this,h,l,g,f,c,d):f.Na(this.he,c,d);Y.gg(b,m);this.n.trigger("collections-page-enter",[b]);return!0};
var Js=function(b,c,d,e,f,g,h){b.un=!0;var l=null,m=$.proxy(function(){this.close(c,d);l=null;window.clearTimeout(this.Ze);this.Ze=null;this.un=!1},b),r=Ks(d,e),l=e.sm?Ls(b,b.he,r,m):e.om?Ms(b,d,r,m):"scatter-out"==e.direction?Ns(b,c,f,d,b.he,r,m):"over"==e.direction?m:Os(b,d,b.he,r,m);f.Na(b.he,g,h);l()},Is=function(b,c,d,e){c=Ps(b,c,d,!0);e?b.a.Lt(c):(b.a.setToken(c),b.Lm++);Hs(b)},Hs=function(b){b.dl=ys(b,Cs()+"/",window.location);var c=Qs(b.dl);b.hu(c)},Ps=function(b,c,d,e){e&&b.nr(c,d);b="!"+
c;d=d||{};c=Ob(Y.p,function(b){return null!=b});Yb(d,c);$.isEmptyObject(d)||(b+=":"+ji(d).toString());return b},ys=function(b,c,d){if(d.hash&&0==d.hash.indexOf("#!")){var e="",f=e=d.hash.substring(1);d.search&&(e+=(-1==f.indexOf(":")?":":"&")+d.search.substring(1));d=Bs(b,e,c,d);d=Di(d);d=(d.e+(d.a.toString()?"?":"")+d.a.toString()).substring(c.length)}else d=(("/"==d.pathname.charAt(0)?d.pathname:"/"+d.pathname)+d.search).slice(c.length);c=d.indexOf("/");c=-1==c?"":d.substring(0,c);e=d.lastIndexOf("/");
e=-1==e?"":d.substring(e+1);b.b&&b.b[c]?(b=b.b[c],e&&0==e.indexOf("?")&&(d=new Th(e.substring(1)),f=d.get(b))&&(f=f.replace(/\//g,"%2F"),d.remove(b),e=f+"?"+d.toString()),d=c+":"+(0!=e.indexOf("?")?b+"="+e:e.substring(1)),d=d.replace(/\?/,"&")):d=d.replace(/\?/,":");d&&(d="!"+d);(b=Qs(d))&&$.each(b.params,function(b,c){var d=b.toString(),e=Y;void 0!==e.p[d]&&(e.p[d]=c)});return d},Bs=function(b,c,d,e){var f=e.host.replace(/:80$/,"");e=e.protocol+"//"+f;c=0==c.indexOf("!")?c.substring(1):c;var f=-1==
c.indexOf(":")?c.length:c.indexOf(":"),g=c.substring(0,f),h=c.substring(f),f=null;if(b.b){var l=b.b[g],f=new RegExp("("+g+"):"+l+"?=");h&&(b=new Th(h.substring(1)),h=b.get(l))&&(h=h.replace(/\//g,"%2F"),b.remove(l),c=b.toString(),c=g+(":"+l+"="+h+(c?"&"+c:"")));c.match(f)?(l="",g=c.indexOf(":"),-1!=g&&(b=new Th(c.substring(g+1)),l=b.get("urlStub")||"")&&(l=decodeURIComponent(l),l=l.toLowerCase(),l=Ga(l),l=l.replace(/[\x00-\x2F\x3A-\x40\x5B-\x60\x7B-\x7F]/g,"-"),l=l.replace(/[-]+/g,"-"),l=l.replace(/(^-{1,})|(-{1,}$)/gi,
""),l=encodeURIComponent(l||"-"),l+="/",b.remove("urlStub"),c=c.substring(0,g)+":"+b.toString()),c=c.replace(f,"$1/"+l),c=c.replace(/&/,"?")):c=c.replace(/:/,(l?"/":"")+"?")}return e+d+c},Rs=function(b,c){b.Lm--;return 0<b.Lm?(window.history.back(),!0):c&&b.Co?(b.Oa(b.Co),!0):!1},Es=function(b,c,d,e){return(c=Qs(c))?b.Oa(c.name,c.params,d,e):!1},Qs=function(b){if(b=/^!?([a-zA-Z0-9-]*)(?::(.*))?$/.exec(b)){var c={};if(b[2]){var d=new Th(b[2]);$.each(d.Dd(),function(b,f){c[f]=d.get(f)})}return{name:b[1],
params:c}}return null};Ds.prototype.g=function(b){b.a&&this.dl!=b.Sm&&Es(this,b.Sm,null,!0)};
var Ss=function(b){return b.Ab?b.Ab.rb:""},Ts=function(b,c,d,e){var f={direction:"left",duration:300,sf:"swing",sm:!1,om:!1};$.each(c,$.proxy(function(b,c){this.cj[c]&&(this.ye[c]||(this.ye[c]={}),$.each(d,$.proxy(function(b,d){if(this.cj[d]){var g=$.extend({},f,e);this.ye[c][d]=g;this.ye[d]||(this.ye[d]={});var u=this.ye[d],w=$.extend({},g);if(g&&g.direction){var C="left";switch(g.direction){case "left":C="right";break;case "right":C="left";break;case "top":C="bottom";break;case "bottom":C="top";
break;case "over":C="over";break;case "scatter-out":C="scatter-out"}w.direction=C}g&&g.sm&&(w.sm=!1,w.om=!0);g&&g.om&&(w.sm=!0,w.om=!1);u[c]=w}},this)))},b))},Ks=function(b,c){var d="left",e="swing",f=300,g=1,h="width",l=b.outerWidth(!0);if("left"==c.direction||"right"==c.direction)d="left","right"==c.direction&&(g=-1);else if("top"==c.direction||"bottom"==c.direction)d="top","bottom"==c.direction&&(g=-1),h="height",l=b.outerHeight(!0);if("swing"==c.sf||"linear"==c.sf)e=c.sf;"number"===typeof c.duration&&
0==c.duration%1&&(f=c.duration);return{$d:d,sf:e,duration:f,al:g,mg:h,size:l}},Ms=function(b,c,d,e){c.css(d.$d,0);c.css(d.mg,d.size);c.css("z-index",10);return $.proxy(function(){window.clearTimeout(this.Ze);this.Ze=window.setTimeout($.proxy(function(){var b={};b[d.$d]=-1*d.al*d.size;c.stop().animate(b,d.duration,d.sf,function(){c.css(d.$d,"");c.css(d.mg,"");c.css("z-index","");e()})},this),1)},b)},Ls=function(b,c,d,e){c.css(d.$d,d.al*d.size);c.css(d.mg,d.size);c.css("z-index",10);return $.proxy(function(){window.clearTimeout(this.Ze);
this.Ze=window.setTimeout($.proxy(function(){var b={};b[d.$d]=0;c.stop().animate(b,d.duration,d.sf,function(){c.css(d.$d,"");c.css(d.mg,"");c.css("z-index","");e()})},this),1)},b)},Ns=function(b,c,d,e,f,g,h){var l=function(b){var c=b.offset().left+b.outerWidth()/2;b=b.offset().top+b.outerHeight()/2;var d=$(document).width()/2,e=$(document).height()/2,f="top";return f=c<b||c>=d&&$(document).width()-c<b?c<d?"left":"right":b<e?"top":"bottom"},m=e.find(c.Ck);window.setTimeout(function(){var b=f.find(d.Ck);
$.each(b,function(b,c){var d=$(c);if(d.is(":visible")){d.data("wasVisible",!0);var e=l(d),f={};f[e]=-75;f.opacity=0;d.css(f);Tq(d[0],"none")}})},0);var r=function(){var b=f.find(d.Ck);$.each(b,function(b,c){var d=$(c);if(d.data("wasVisible")){d.removeData("wasVisible");var e=l(d),f={};f[e]=0;f.opacity=.6;Tq(d[0],"none");d.stop().animate(f,g.duration,g.sf,function(){f[e]="";f.opacity="";d.css(f);Sq(d[0],"")})}})};return function(){window.clearTimeout(b.Ze);b.Ze=window.setTimeout(function(){$.each(m,
function(b,c){var d=$(c);if(d.is(":visible")){var e=l(d),f={};f[e]=-75;f.opacity=0;Tq(d[0],"none");d.stop().animate(f,g.duration,g.sf,function(){f[e]="";f.opacity="";d.css(f);Sq(d[0],"");r();h()})}})},1)}},Os=function(b,c,d,e,f){c.css(e.$d,0);c.css(e.mg,e.size);d.css(e.$d,e.al*e.size);d.css(e.mg,e.size);return $.proxy(function(){window.clearTimeout(this.Ze);this.Ze=window.setTimeout($.proxy(function(){var b={};b[e.$d]=0;d.stop().animate(b,e.duration,e.sf);b[e.$d]=-1*e.al*e.size;c.stop().animate(b, e.duration,e.sf,function(){c.css(e.$d,"");c.css(e.mg,"");d.css(e.$d,"");d.css(e.mg,"");f()})},this),1)},b)};
var Us={Y:"partner",key:"website",M:"8416195294729199862",type:5},Vs={Y:"partner",key:"analytics_id",M:"-3605557635126083802",type:4},Ws={Y:"partner",key:"street_address",M:"-2625404040158182231",type:1},Xs={Y:"partner",key:"city",M:"2161541779547355171",type:1},Ys={Y:"partner",key:"country_name",M:"6933795253437454405",type:1},Zs={Y:"partner",key:"new_partner",M:"8735721117796656318",type:4},$s={Y:"partner",key:"url_name",M:"6311246192950687301",type:4},at={Y:"partner",key:"asset_count",M:"1756149178012248875",
type:4},bt={Y:"partner",key:"artist_count",M:"-3413805743279402268",type:4},ct={Y:"partner",key:"is_self_serve",M:"1493369435115305538",type:6},dt={Y:"partner",key:"can_publish_to_destination",M:"7540504169204783095",type:6},et={Y:"partner",key:"can_publish_to_mobile",M:"7255990565458008906",type:6},ft={Y:"partner",key:"can_publish_to_google",M:"5761650377645839691",type:6},gt={Y:"partner",key:"can_publish_to_ci_chrome_extension",M:"-3569936050753903075",type:6},ht={Y:"partner",key:"syndicated_channel_name", M:"7969995220258344881",type:4},it={Y:"partner",key:"mobile_channel_name",M:"2664078640369389542",type:4},jt={Y:"partner",key:"use_classic_curation_by_default",M:"3991141350387737337",type:6};
var kt=function(b,c,d){this.k=b;this.a=d;b=this.a.Wc();null==b&&(b=new Qi);this.b=new Pl(b)};k=kt.prototype;k.getKey=function(){return this.a.getKey()};k.cc=function(){return this.a.cc()};k.U=function(){return this.a.U()};k.oh=function(){return this.a.oh()};k.Wc=function(){var b=this.b.T();return Ea(x(b))?this.getKey():b};
var mt=function(b){A(this,b,0,-1,lt)};v(mt,z);var lt=[2];mt.prototype.L=function(){return H(this)};mt.prototype.getName=function(){return B(this,1)};mt.prototype.h=function(){return F(this,nt,2)};mt.prototype.oh=function(){return null!=B(this,4)?B(this,4):1};var nt=function(b){A(this,b,0,-1,null)};v(nt,z);k=nt.prototype;k.L=function(){return H(this)};k.getKey=function(){return B(this,1)};k.cc=function(){return B(this,2)};k.U=function(){return B(this,3)};k.Wc=function(){return E(this,Qi,4)}; k.oh=function(){return null!=B(this,5)?B(this,5):0};
var pt=function(b){A(this,b,"gci.a.bsr",-1,ot)};v(pt,z);var ot=[1];pt.prototype.L=function(){return H(this)};pt.Ta="gci.a.bsr";var qt={},rt=null,st=null,ut=function(b){var c=b.getName();y(b.h(),function(b){var e=b.cc();e&&(qt[e]=new kt(c,0,b))})},wt=function(){st?Tm(st,q):st=Sm(vp(rt,K.Gu,{},pt),function(b){y(F(b,mt,1),function(b){b&&ut(b)})},function(){vt("Error loading schema files. Editing metadata is not possible.");st=null})};
var yt=function(b){A(this,b,"gci.c.me",-1,xt)};v(yt,z);var xt=[1];yt.prototype.L=function(){return H(this)};yt.Ta="gci.c.me";yt.prototype.h=function(){return F(this,nt,1)};var zt={},At=function(b){var c=b.cc();c&&(zt[c]=b)},Bt=function(b){b=new yt(b);y(b.h(),At)},Ct=function(b){var c=new ho;c.e=function(){return[yt]};c.a=function(b){y(b,function(b){y(b.h(),At)})};tp(b,c)};var Dt=function(b){A(this,b,0,-1,null)};v(Dt,z);Dt.prototype.L=function(){return H(this)};Dt.prototype.getContext=function(){return B(this,2)};Dt.prototype.wa=function(){return B(this,3)};var Ft=function(b){W.call(this);b=b||{};this.G=Y;this.e={};var c=t(function(){this.dispatchEvent("leave-site");window._gaq&&window._gaq.push(["_trackEvent","Leave","site"])},this);p(window.a)?T(window,"pagehide",c):T(window,"unload",c);this.b=!!b.ww;window._gaq&&window._gaq.push(["_setSiteSpeedSampleRate",50]);Et(this);this.a=null};v(Ft,W);
var Gt=function(b,c){b.a=c},Ht=function(b,c){var d=b.G.W,e=$("<a>").attr("href",c)[0],f=b.G.g+"/",g=ys(d,f,e);return Bs(d,g,f,e)},It=function(b,c,d){var e=new Mh(b);b=["position","hl"];c&&wb(b,c);$.each(b,function(b,c){e.a.remove(c)});d&&$.each(d,function(b,c){di(e,b,c)});c=e.a.toString();return e.e+(c?"?"+c:"")+(e.h?"#"+e.h:"")},Mt=function(b,c,d){if(window._gaq){var e=d||{},f=c;d=e.wt||null;b.a&&(f=It(c,[],{projectId:b.a}));if(Jt(b.G))e.Mf||Kt(f,d);else if(b.b&&Kt(f,d),!e.Mf&&e.Z&&(b=Lt(b,e.Z)))c=
f,window._gaq.push([b+"._set","title",d]),window._gaq.push([b+"._trackPageview",c])}},Kt=function(b,c){window._gaq.push(["_set","title",c]);window._gaq.push(["_trackPageview",b])},Nt=function(){window._gaq&&window._gaq.push(["_trackPageview",It(window.location.href,void 0,{scrolled:""})])},Lt=function(b,c){if(!window._gaq||null==Ot(c.V,Vs))return null;var d=0<=window.location.href.indexOf(".corp.google.com")||0<=window.location.href.indexOf(".prod.google.com"),e="partner"+c.getId();b.e[e]||(d=d?"UA-41272528-1":
Ot(c.V,Vs),window._gaq.push([e+"._setAccount",d]),window._gaq.push([e+"._setCookiePath",b.G.g+"/"]),b.e[e]=!0);return e},Pt=function(b,c,d,e){window._gaq&&(e=e||{},Jt(b.G)?e.Mf||window._gaq.push(["_trackEvent",c,d,e.Lj,e.Mj]):(b.b&&window._gaq.push(["_trackEvent",c,d,e.Lj,e.Mj]),!e.Mf&&e.Z&&(b=Lt(b,e.Z))&&window._gaq.push([b+"._trackEvent",c,d,e.Lj,e.Mj])))},Qt=function(b,c,d,e,f){window._gaq&&b.b&&Pt(b,c,d,{Lj:e,Mj:f,Mf:!0})},Rt=function(){var b=Y.Jb();window._gaq&&(window._gaq.push(["_setCustomVar",
1,"Onboarding Viewed","Tour",1]),Qt(b,"Onboarding","Tour Displayed"))},St=function(){var b=Y.Jb();window._gaq&&(window._gaq.push(["_setCustomVar",1,"Onboarding Viewed","Video",1]),Qt(b,"Onboarding","Video Displayed"))},Et=function(b){var c=b.G.j;window._gaq&&c&&b.b&&(b=Ck(c))&&window._gaq.push(["_setCustomVar",2,"Experiments",b,2])},Tt=function(b,c,d){c.gg({openingPartnerSite:""});Qt(b,"ClickExternalLink",d,x(c.getId()))};
var Vt=function(b,c){var d=Array.prototype.slice.call(arguments),e=d.shift();if("undefined"==typeof e)throw Error("Ja");return e.replace(/%([0\-\ \+]*)(\d+)?(\.(\d+))?([%sfdiu])/g,function(b,c,e,l,m,r,u,w){if("%"==r)return"%";var C=d.shift();if("undefined"==typeof C)throw Error("Ka");arguments[0]=C;return Ut[r].apply(null,arguments)})},Ut={s:function(b,c,d){return isNaN(d)||""==d||b.length>=d?b:b=-1<c.indexOf("-",0)?b+Va(" ",d-b.length):Va(" ",d-b.length)+b},f:function(b,c,d,e,f){e=b.toString();isNaN(f)||
""==f||(e=parseFloat(b).toFixed(f));var g;g=0>b?"-":0<=c.indexOf("+")?"+":0<=c.indexOf(" ")?" ":"";0<=b&&(e=g+e);if(isNaN(d)||e.length>=d)return e;e=isNaN(f)?Math.abs(b).toString():Math.abs(b).toFixed(f);b=d-e.length-g.length;return e=0<=c.indexOf("-",0)?g+e+Va(" ",b):g+Va(0<=c.indexOf("0",0)?"0":" ",b)+e},d:function(b,c,d,e,f,g,h,l){return Ut.f(parseInt(b,10),c,d,e,0,g,h,l)}};Ut.i=Ut.d;Ut.u=Ut.d;
var Wt=function(){};v(Wt,wk);
var Xt=function(b,c){var d=Vt("https://ad.doubleclick.net/activity;src=%d;type=%s;cat=%s;ord=%d?",K.Cu,"educa842",c,Math.floor(1E13*Math.random()).toString());window.setTimeout(function(){b.isDisposed()||$("<iframe>").attr({src:Y.g+"/_/blank",width:0,height:0,frameborder:0}).css({display:"none"}).on("load",function(){var b=$(this),c=$("<img>").load(function(){b.remove()});b.contents().find("body").append(c);c.attr("src",d)}).appendTo($("body"))},4E3+5E3*Math.random())},Yt=function(b,c,d){switch(c){case "home":Xt(b,
"ci-ho641");break;case "project":switch(d.projectId){case "world-wonders":Xt(b,"ci-wo908");break;case "art-project":Xt(b,"ci-ar661");break;case "historic-moments":Xt(b,"ci-hi999");break;case "made-in-italy":Xt(b,"Madei-")}break;case "exhibit":switch(d.exhibitId){case "gQde7rka":Xt(b,"Madei---");break;case "gQHN9bJ3":Xt(b,"Madei--");break;case "gQEnrb9B":Xt(b,"Madei--_")}break;case "asset-viewer":"bgEuwDxel93-Pg"==d["l.id"]&&Xt(b,"ci-st069")}};
var Zt=function(){return M('<div class="gci-butter-bar-container"></div>')},$t=function(b){b=b||{};var c='<div><span class="gci-butter-bar-message">'+(b.message?N(b.message):"")+'</span> <a href="#discard" class="gci-butter-bar-discard">',c=b.rw?c+N(b.rw):c+"Discard",c=c+"</a>";if(b.Xq){b=N(b.Xq);var d=Ka(String(b),!1);b=sg(b,gg)?M(d,tg(b)):d;c=c+('  <a href="#showMore" class="gci-butter-bar-more">Error</a><div class="gci-butter-bar-container-more">'+b+"</div>")}return M(c+"</div>")};
var au=function(b,c){jr.call(this,c);this.b=b};v(au,jr);au.prototype.a="info";au.prototype.g=!1;var bu={info:"jfk-butterBar-info",error:"jfk-butterBar-error",warning:"jfk-butterBar-warning",promo:"jfk-butterBar-promo"};au.prototype.U=function(){return this.a};var cu=function(b,c){if(b.Mc()){var d=b.w(),e=bu[c];eh(d,bu[b.a]);ch(d,e)}b.a=c};au.prototype.setContent=function(b){this.b=b;if(b=this.w()){var c=this.fa();c.xr(b);c.append(b,this.b)}};
au.prototype.Va=function(){var b=this.w();return null!=b&&bh(b,"jfk-butterBar-shown")};au.prototype.setVisible=function(b){gh(this.w(),"jfk-butterBar-shown",b)};au.prototype.wb=function(){this.P=this.fa().Ka("div","jfk-butterBar");var b=this.w();b&&(Xp(b,"live","assertive"),Xp(b,"atomic","true"));this.setContent(this.b);this.g=this.g;(b=this.w())&&gh(b,"jfk-butterBar-mini",this.g);cu(this,this.a)};
var du=function(){U.call(this);this.a=new au("");this.J(this.a);this.n=L(Zt);document.body.appendChild(this.n);this.b=null;this.a.render(this.n)};v(du,wk);du.prototype.D=function(){this.n.parentNode.removeChild(this.n);du.r.D.call(this)};
var eu=function(b,c,d,e){"warning"==b.a.U()&&b.a.Va()||(ch(b.n,"gci-butter-bar-active"),b.a.setContent(c),cu(b.a,"info"),b.a.setVisible(!0),e||b.hide(d||2500))},gu=function(b,c,d){fu(b);ch(b.n,"gci-butter-bar-active");d=d&&d.ug&&d.ug()?d.ug():void 0;c=L($t,{message:c,Xq:d});d=xf("gci-butter-bar-discard",c);T(d,"click",function(c){b.hide();c.preventDefault()});(d=xf("gci-butter-bar-more",c))&&T(d,"click",function(c){var d=b.n,g=!bh(d,"gci-butter-bar-more-visible");gh(d,"gci-butter-bar-more-visible",
g);c.preventDefault()});b.a.setContent(c);cu(b.a,"warning");b.a.setVisible(!0)};du.prototype.hide=function(b){if(this.a.Va()){var c=this;b=b||0;fu(this);var d=function(){c.a.setVisible(!1);eh(c.n,"gci-butter-bar-active")};b?this.b=window.setTimeout(d,b):d()}};var fu=function(b){window.clearTimeout(b.b);b.b=null};
var hu=function(){this.g=0;this.b=null};v(hu,ho);hu.prototype.D=function(){this.b&&(this.b.remove(),this.b=null);hu.r.D.call(this)};hu.prototype.k=function(){-1==(arguments&&arguments[0]&&arguments[0].$w&&arguments[0].Gb.a.Dd&&arguments[0].Gb.a.Dd()||[]).indexOf("hli")&&(this.b||(this.b=$(".gci-spinner")),this.g++,this.b.hasClass("active")||this.b.addClass("active"))};hu.prototype.a=function(){this.b&&(this.g--,0>=this.g&&(this.g=0,this.b.removeClass("active")))};
var iu=function(){return M('<div class="gci-ui-tabs-container"><ul class="gci-ui-tabs" role="tablist"></ul><ul class="gci-ui-tabs-content"></ul></div>')},ku=function(b){var c='<li data-tab-id="'+Q(b.id)+'" role="tab"><span class="gci-ui-tabs-label-container" title="'+Q(b.label)+'"><span class="gci-ui-tabs-label">'+N(b.label)+"</span>";b.Lf&&(c+='<img class="'+Q(b.Lf)+'" src="'+Q(R(ju("common/pixel.gif")))+'" alt="'+Fg("tab icon")+'">');return M(c+'<span class="gci-ui-tab-info-text"></span></span></li>')}, lu=function(b){var c='<li data-tab-id="'+Q(b.id)+'" role="tabpanel">';b.aA&&(c+='<a class="gci-ui-tab-close" href="#close-tab" title="'+Fg("Close tab.")+'"></a>');return M(c+"</li>")};
var nu=function(b,c,d){U.call(this);this.j=c||"gci-ui-tabs-horizontal";this.g=d||!1;this.n=$(L(iu)).appendTo(b).addClass("gci-ui-tabs-vertical-light"==this.j?"gci-ui-tabs-vertical-light":"gci-ui-tabs-horizontal");this.a=this.n.find(".gci-ui-tabs");this.e=this.n.find(".gci-ui-tabs-content");this.b=null;this.h=0;this.n.bind("gci.ui.Tabs.CLOSE",t(function(b,c){mu(this,c,!1)},this));this.n.bind("gci.ui.Tabs.OPEN",t(function(b,c){mu(this,c,!0);b.stopPropagation()},this))};v(nu,wk);
nu.prototype.D=function(){this.n.remove();this.n=null;nu.r.D.call(this)};
var pu=function(b,c,d,e,f,g,h){b.a.append($(L(ku,{id:c,label:d,Lf:f||!1})).data("onOpen",g||q).on("click.gci-ui-tabs",t(function(){if(h&&!1===h())return!1;mu(this,c);return!1},b)));ou(b);d=$(L(lu,{id:c,aA:"gci-ui-tabs-horizontal"==b.j}));b.e.append(d.append(e));d.on("click.gci-ui-tabs",".gci-ui-tab-close",t(function(){mu(this,c,!1);return!1},b));b.g&&0==b.a.find(".gci-ui-tab-active").length&&mu(b,c)},qu=function(b,c){pu(b,c.id,c.getTitle(),c.w(),c.Pe);b.bind("open",t(function(b,c,f){f==this.id&&this.cp(b,
c)},c));b.bind("closed",t(function(b,c,f){f==this.id&&this.Ey(b,c)},c));b.bind("object-dragged-over",t(function(b,c,f,g){c==this.id&&this.Vs(f,g)},c));b.bind("object-dropped",t(function(b,c,f,g){c==this.id&&this.Ws(f,g)},c));b.J(c)},ru=function(b){return 0<b.a.find("li[data-tab-id=discover]").length},su=function(b,c){return b.a.find("li[data-tab-id="+c+"]")},mu=function(b,c,d){var e=b.a.find("li[data-tab-id="+c+"]");if(!b.g||!e.hasClass("gci-ui-tab-active")){var f="undefined"!=typeof d?d:!e.hasClass("gci-ui-tab-active");
f&&c==b.b||(tu(b,c),uu(b),b.e.find("[data-tab-id="+e.attr("data-tab-id")+"]").show(),b.b=f?c:null,b.n.addClass("gci-ui-tab-active-"+b.b),b.a.find("li").removeClass("gci-ui-tab-active"),e.toggleClass("gci-ui-tab-active",f),e.attr("aria-selected",f?"true":"false"),b.a.toggleClass("gci-ui-tab-active",f),b.e.toggleClass("gci-ui-tab-active",f),window.setTimeout(t(function(){var b=e.data("onOpen");window.setTimeout(b,100);this.trigger(f?"open":"closed",[this,c])},b),0))}},tu=function(b,c){var d=b.a.find("li[data-tab-id="+
c+"]"),e=p(!0)?!0:d.is(":hidden");e||c!=b.b||mu(b,c,!1);d.toggle(e)},vu=function(b,c){b.a.find("[data-tab-id="+c+"]").remove();b.e.find("[data-tab-id="+c+"]").remove();if(0==b.a.find(".gci-ui-tab-active").length){var d=b.a.find("li");b.g&&0<d.length?mu(b,d.first().data("tab-id").toString()):uu(b)}ou(b)},wu=function(b,c){b.a.find("[data-tab-id="+K.Jd+"]").find(".gci-ui-tab-info-text").attr("data-tab-info",c).text(c)},ou=function(b){b.a.find("li.gci-ui-tab-last-child").removeClass("gci-ui-tab-last-child");
b.a.find("li:last-child").addClass("gci-ui-tab-last-child")},xu=function(b){var c=b.a.find("[data-tab-id="+K.Jd+"]");c.hasClass("gci-ui-tab-active")||(c.addClass("gci-ui-tab-call-out"),window.clearTimeout(b.h),b.h=window.setTimeout(function(){c.removeClass("gci-ui-tab-call-out")},1E3))},uu=function(b){b.n.removeClass("gci-ui-tab-active-"+b.b);b.b=null;b.a.find("li").removeClass("gci-ui-tab-active");b.a.find("li").attr("aria-selected","false");b.e.find("li").hide();b.a.removeClass("gci-ui-tab-active");
b.e.removeClass("gci-ui-tab-active")};nu.prototype.get=function(){return this.n};var yu=function(b,c){return b.a.find("li[data-tab-id="+c+"]").hasClass("gci-ui-tab-active")};nu.prototype.bind=function(b,c){this.n.bind(b,c)};nu.prototype.unbind=function(b,c){this.n.unbind(b,c)};nu.prototype.trigger=function(b,c){this.n.trigger(b,c)};var zu=function(b){U.call(this);this.id=b;this.title="";this.a=null;this.Pe=""};v(zu,wk);k=zu.prototype;k.getTitle=function(){return this.title};k.w=function(){return this.a}; k.cp=q;k.Ey=q;k.Vs=q;k.Ws=q;k.open=function(){this.a.trigger("gci.ui.Tabs.OPEN",this.id)};k.close=function(){this.a.trigger("gci.ui.Tabs.CLOSE",this.id)};
var Au=function(b){A(this,b,0,4,null)};v(Au,z);Au.prototype.L=function(){return H(this)};Au.prototype.U=function(){return B(this,1)};Au.prototype.ya=function(){return B(this,2)};Au.prototype.getDate=function(){return E(this,Vi,3)};var Bu={};var Cu=function(b){A(this,b,0,-1,null)};v(Cu,z);var Du=function(b,c){var d,e;if(e=d=c.Fc()){var f;e={type:B(d,1),sk:B(d,2),da:(f=d.getDate())&&Zi(b,f)};dc(d,e,Bu,Au.prototype.getExtension,b);b&&(e.X=d)}d={lb:e,status:B(c,2),JE:null!=B(c,3)?B(c,3):1,vF:B(c,4),$B:null!=B(c,5)?B(c,5):1,Ht:null!=B(c,6)?B(c,6):0,LB:B(c,7)};b&&(d.X=c);return d};Cu.prototype.L=function(){return H(this)};Cu.prototype.Fc=function(){return E(this,Au,1)};var Eu=function(b,c){G(b,1,c)}; Cu.prototype.getStatus=function(){return B(this,2)};var Fu=function(b){return null!=B(b,3)?B(b,3):1};Cu.prototype.nc=function(){return null!=B(this,6)?B(this,6):0};var Gu=function(b,c){D(b,6,c)};
var Iu=function(b){A(this,b,0,12,Hu)};v(Iu,z);var Hu=[10],Ku=function(b,c){var d={type:B(c,2),GC:B(c,4),CC:B(c,5),DC:B(c,6),EC:B(c,7),HC:B(c,8),BC:B(c,9),oC:B(c,10),FC:B(c,11)};dc(c,d,Ju,Iu.prototype.getExtension,b);b&&(d.X=c);return d};Iu.prototype.L=function(){return H(this)};Iu.prototype.U=function(){return B(this,2)};var Ju={};
var Mu=function(b){A(this,b,0,-1,Lu)};v(Mu,z);var Lu=[1],Pu=function(b,c){var d={xe:cc(F(c,Nu,1),Ou,b)};b&&(d.X=c);return d};Mu.prototype.L=function(){return H(this)};var Nu=function(b){A(this,b,0,-1,null)};v(Nu,z);var Ou=function(b,c){var d,e={type:B(c,1),link:(d=c.Xb())&&Qu(b,d),entityId:B(c,3),nf:B(c,4),ba:B(c,5)};b&&(e.X=c);return e};Nu.prototype.L=function(){return H(this)};Nu.prototype.U=function(){return B(this,1)};Nu.prototype.Xb=function(){return E(this,Ru,2)}; var Ru=function(b){A(this,b,0,-1,null)};v(Ru,z);var Qu=function(b,c){var d,e={value:(d=c.getValue())&&im(b,d),external:B(c,2)};b&&(e.X=c);return e};Ru.prototype.L=function(){return H(this)};Ru.prototype.getValue=function(){return E(this,gm,1)};
var Tu=function(b){A(this,b,0,-1,Su)};v(Tu,z);var Su=[1,2];Tu.prototype.L=function(){return H(this)};var Vu=function(b){A(this,b,0,2,Uu)};v(Vu,z);var Uu=[1],Yu=function(b,c){var d={ka:cc(Wu(c),qm,b)};dc(c,d,Xu,Vu.prototype.getExtension,b);b&&(d.X=c);return d};Vu.prototype.L=function(){return H(this)};var Wu=function(b){return F(b,mm,1)},Xu={};var $u=function(b){A(this,b,0,13,Zu)};v($u,z);
var Zu=[4,10,5,11],mv=function(b,c){var d,e=B(c,1),f=B(c,2),g=(d=E(c,Vu,3))&&Yu(b,d),h=cc(F(c,av,4),bv,b),l=cc(F(c,av,10),bv,b),m=cc(F(c,Cu,5),Du,b),r=B(c,6),u=(d=E(c,gm,7))&&im(b,d),w=(d=E(c,cv,8))&&dv(b,d),C=cc(F(c,cv,11),dv,b),J;if(J=d=E(c,Tu,9)){var V;J={O:cc(F(d,Iu,1),Ku,b),h:B(d,8),j:B(d,2),A:B(d,3),I:B(d,7),R:(V=E(d,Mu,4))&&Pu(b,V),tb:(V=E(d,Mu,6))&&Pu(b,V),Ic:B(d,5)};b&&(J.X=d)}V=J;if(J=d=E(c,ev,12)){var xa;if(J=xa=E(d,fv,1))J=xa,xa={NB:B(J,1),iF:B(J,2)},b&&(xa.X=J),J=xa;var Ha;if(Ha=xa=E(d,
gv,2)){var kb;Ha=B(xa,1);var oa;if(oa=kb=E(xa,hv,2)){var Ia;oa={jC:(Ia=E(kb,iv,1))&&jv(b,Ia),iC:(Ia=E(kb,iv,2))&&jv(b,Ia),hC:(Ia=E(kb,iv,3))&&jv(b,Ia)};b&&(oa.X=kb)}Ia=oa;if(oa=kb=E(xa,kv,3))oa={oF:B(kb,1)},b&&(oa.X=kb);Ia={PB:Ha,gC:Ia,nF:oa};b&&(Ia.X=xa);Ha=Ia}Ia={zD:J,OB:Ha};b&&(Ia.X=d);J=Ia}e={name:e,type:f,V:g,HE:h,TD:l,xj:m,$h:r,gD:u,jy:w,aC:C,fD:V,zB:J};dc(c,e,lv,$u.prototype.getExtension,b);b&&(e.X=c);return e};$u.prototype.L=function(){return H(this)};
$u.prototype.getName=function(){return B(this,1)};$u.prototype.U=function(){return B(this,2)};var lv={},av=function(b){A(this,b,0,-1,nv)};v(av,z);var nv=[7],bv=function(b,c){var d={Ay:B(c,1),nf:B(c,2),kD:B(c,3),jD:B(c,4),lD:B(c,5),mD:B(c,6),xj:B(c,7)};b&&(d.X=c);return d};av.prototype.L=function(){return H(this)};var cv=function(b){A(this,b,0,-1,null)};v(cv,z);var dv=function(b,c){var d,e={url:B(c,1),width:B(c,2),height:B(c,3),link:(d=c.Xb())&&im(b,d),WD:B(c,5)};b&&(e.X=c);return e};
cv.prototype.L=function(){return H(this)};cv.prototype.getUrl=function(){return B(this,1)};cv.prototype.getHeight=function(){return B(this,3)};cv.prototype.Xb=function(){return E(this,gm,4)};var ev=function(b){A(this,b,0,-1,null)};v(ev,z);ev.prototype.L=function(){return H(this)};var fv=function(b){A(this,b,0,-1,null)};v(fv,z);fv.prototype.L=function(){return H(this)};var gv=function(b){A(this,b,0,-1,null)};v(gv,z);gv.prototype.L=function(){return H(this)};var hv=function(b){A(this,b,0,-1,null)};
v(hv,z);hv.prototype.L=function(){return H(this)};var kv=function(b){A(this,b,0,-1,null)};v(kv,z);kv.prototype.L=function(){return H(this)};var iv=function(b){A(this,b,0,-1,null)};v(iv,z);var jv=function(b,c){var d={FD:B(c,5),MD:B(c,1),uF:B(c,4),bD:B(c,2),yF:B(c,3),zF:B(c,6)};b&&(d.X=c);return d};iv.prototype.L=function(){return H(this)};
var ov=function(){return M('<div class="gci-tos-popup-container"><div class="gci-tos-scroller-container"><div class="gci-tos-scroller-contents"></div></div></div>')};var qv=function(b){b=b||{};var c="<"+(b.href?"a":"button")+' class="collections-ui-button ';if(b.type)switch(b.type){case "edit":c+="collections-ui-button-edit";break;case "hotdog":c+="collections-ui-button-hotdog";break;case "primary":c+="collections-ui-button-primary";break;case "secondary":c+="collections-ui-button-secondary";break;case "simple":c+="collections-ui-button-simple";break;case "transparent":c+="collections-ui-button-transparent";break;case "unstyled":c+="collections-ui-button-unstyled"}else c+=
"collections-ui-button-primary";c+=" "+Q(b.ac)+'" title="'+(b.title?Q(b.title):"")+'" '+(b.href?"":'type="button" ')+(b.disabled?"disabled ":"")+(b.href?'href="'+Q(R(b.href))+'" '+(b.target?'target="'+Q(b.target)+'" ':""):"")+(b.value?'data-value="'+Q(b.value)+'"':"")+">"+("hotdog"==b.type||b.Lf?pv({yf:O("collections-ui-button-icon"+("hotdog"==b.type?" SPRITE_icon_hotdog":" "+b.Lf))}):"")+(b.label?'<span class="collections-ui-button-content">'+N(b.label)+"</span>":"")+"</"+(b.href?"a":"button")+">";
return M(c)},pv=function(b){b=""+('<img class="'+Q(b.yf)+'" src="'+Q(R(ju("common/pixel.gif")))+'" alt="'+Fg("Icon")+'">');return M(b)},rv=function(b){b=b||{};return M('<a href="#" class="gci-nav-button gci-nav-previous"'+(b.title?' title="'+Q(b.title)+'"':"")+'><span aria-hidden="true"></span></a>')},sv=function(b){b=b||{};return M('<a href="#" class="gci-nav-button gci-nav-next"'+(b.title?' title="'+Q(b.title)+'"':"")+'><span aria-hidden="true"></span></a>')},tv=function(){var b;b=""+('<span class="gci-slideshow-control"><img src="'+ Q(R(ju("common/pixel.gif")))+'" alt="'+Fg("Start slideshow icon")+'" class="SPRITE_icon_asset_viewer_slideshow_start gci-asset-viewer-slideshow-start-icon"></span>');return M(b)};
var uv=function(b){b=b||{};var c='<div id="gci-user-section">'+(b.userEmail&&b.vs?'<span id="gci-user-section-profile-wrapper" data-email="'+Q(b.userEmail)+'" data-logout-url="'+Q(R(b.vs))+'"></span>':"");!b.userEmail&&b.Hd&&(c+=P(qv({label:O("Sign in"),href:b.iy,ac:O("gci-login")})));return M(c+"</div>")},wv=function(b){var c;c="";"zh-CN"==b.locale?(b=""+(vv({alt:O("Sina Weibo"),og:O("gci-consumer-share-weibo"),zg:O("SPRITE_icon_action_tab_share_weibo")})+vv({alt:O("Tencent QQ"),og:O("gci-consumer-share-qq"),
zg:O("SPRITE_icon_action_tab_share_qq")})+vv({alt:O("Tencent QZone"),og:O("gci-consumer-share-qzone"),zg:O("SPRITE_icon_action_tab_share_qzone")})+vv({alt:O("Renren"),og:O("gci-consumer-share-renren"),zg:O("SPRITE_icon_action_tab_share_renren")})+vv({alt:O("Kaixin001"),og:O("gci-consumer-share-kaixin001"),zg:O("SPRITE_icon_action_tab_share_kaixin001")})+vv({alt:O("Douban"),og:O("gci-consumer-share-douban"),zg:O("SPRITE_icon_action_tab_share_douban")})),b=M(b)):b="";c=c+('<div class="gci-consumer-share-container"><div class="gci-consumer-share gci-consumer-share-gplus"><div class="gci-consumer-share-gplus-inside"></div></div>'+
b+vv({alt:"Facebook",og:O("gci-consumer-share-fb"),zg:O("SPRITE_icon_action_tab_share_fb")})+vv({alt:"Twitter",og:O("gci-consumer-share-twitter"),zg:O("SPRITE_icon_action_tab_share_twitter")})+P(qv({label:O("Email"),type:"edit",href:"#email",target:"_blank",ac:O("gci-consumer-share gci-consumer-share-email")}))+P(qv({label:O("Embed"),type:"edit",target:"_blank",ac:O("gci-consumer-share gci-consumer-share-embed")}))+'<a class="gci-consumer-share-hangout" target="_blank"><img src="https://ssl.gstatic.com/s2/oz/images/stars/hangout/1/gplus-hangout-24x100-normal.png" alt="Hangout" /></a></div>');
return M(c)},vv=function(b){return M('<a class="gci-consumer-share '+Q(b.og)+'" target="_blank" title="'+Q(b.alt)+'"><img src="'+Q(R(ju("common/pixel.gif")))+'" class="'+Q(b.zg)+'" alt="'+Q(b.alt)+'"></a>')},xv=function(b){var c;c=""+('<header class="gci-channel-header"><h1>'+N(b.title)+'</h1><p><span class="gci-channel-header-description"></span>');b.Tt&&(c+='<a href="#learn-more" class="'+(b.bs?"":"gci-channel-link-no-desc ")+'gci-channel-learn-more">Learn more</a>');c+='<a href="#explore" class="'+ (b.bs||b.Tt?"":"gci-channel-link-no-desc ")+'gci-channel-explore-link">Explore the collections</a></p></header>';return M(c)};
var yv=function(b,c){on.call(this,b,c)};v(yv,on);var zv=function(b){var c={},d={},e=[],f=[],g=function(b){if(!d[b]){var f=b instanceof dp?b.b:[];d[b]=vb(f);y(f,function(d){c[d]=c[d]||[];c[d].push(b)});f.length||e.push(b);y(f,g)}};for(y(b,g);e.length;){var h=e.shift();f.push(h);c[h]&&y(c[h],function(b){sb(d[b],h);d[b].length||e.push(b)})}var l={},m=[];y(f,function(b){b instanceof dp&&(b=b.a,null==b||l[b]||(l[b]=!0,m.push(b)))});return{a:f,vy:m}};
var Bv=function(b){Bj.call(this);this.k={};this.g={};this.h={};this.a={};this.e={};this.A={};this.l=b?b.l:new W;this.K=!b;this.b=null;b?(this.b=b,this.h=b.h,this.a=b.a,this.g=b.g,this.e=b.e):ta();b=Av(this);this!=b&&(b.j?b.j.push(this):b.j=[this])};v(Bv,Bj);var Cv=.05>Math.random(),Av=function(b){for(;b.b;)b=b.b;return b},Dv=function(b,c){for(var d=b;d;){if(d==c)return!0;d=d.b}return!1};Bv.prototype.get=function(b){var c=Ev(this,b);if(null==c)throw new Fv(b);return c};
var Gv=function(b,c){return!(!b.k[c]&&!b.h[c])},Ev=function(b,c){for(var d=b;d;d=d.b){if(d.isDisposed())throw Error("La");if(d.k[c])return d.k[c][0];if(d.A[c])break}if(d=b.h[c]){d=d(b);if(null==d)throw Error("Ma`"+c);qp(b,c,d);return d}return null},Mv=function(b){for(var c=["gallery_editor"],d={},e=[],f=[],g={},h={},l=Ev(b,gp),m=0;m<c.length;m++){var r=c[m],u=Ev(b,r);if(u){var w=new Mm;d[r]=w;u.Xk&&(Wm(w,u.Xk()),Tm(w,sa(function(b){return b},u)));w.callback(u)}else{var C;r instanceof dp?C=zv([r]).vy:
(u=b.g[r])&&(C=[u]);C&&C.length?(C&&(l&&r instanceof dp&&l.VE()&&Cv&&(w=l.ZE(Hv),h[r]=w),e.push.apply(e,C),g[r]=C[C.length-1]),f.push(r)):(w=new Mm,d[r]=w,w.k(new Fv(r)))}}if(e.length){b.I&&b.I.push("loaded("+f+","+e+")\n"+ye());for(m=0;m<f.length;m++)b.l.dispatchEvent(new Iv("f"));c=Jv(Kv(b),e,void 0);for(m=0;m<f.length;m++)r=f[m],u=g[r],w=c[u].o(),d[r]=w,h[r]&&Tm(w,function(){l.IC(h[r])}),Lv(b,w,r,u)}return d},Lv=function(b,c,d,e){Tm(c,function(){this.l.dispatchEvent(new Iv("g"))},b);Um(c,t(b.H,
b,d,e));Tm(c,t(b.p,b,d,e))};Bv.prototype.p=function(b,c){var d=Ev(this,b);if(null==d){if(this.e[b]){var e=this.e[b].o();Tm(e,t(this.p,this,b,c));return e}throw new Nv(b,c,"Module loaded but service or factory not registered with app contexts.");}return d.Xk?(e=new Mm,Wm(e,d.Xk()),e.callback(d),Tm(e,t(this.o,this,b)),e):this.o(b)};Bv.prototype.o=function(b){this.e[b]&&delete this.e[b];return this.get(b)};Bv.prototype.H=function(b,c,d){return d instanceof Nm?d:new Ov(b,c,d)};
var qp=function(b,c,d){if(b.isDisposed())S(d);else{b.k[c]=[d,!0];d=Pv(b,b,c);for(var e=0;e<d.length;e++)d[e].callback(null);delete b.g[c]}},Qv=function(b,c){if(b.ta!=c.ta){if(Dv(b.ta,c.ta))return 1;if(Dv(c.ta,b.ta))return-1}return b.index<c.index?-1:b.index==c.index?0:1},Pv=function(b,c,d){var e=[],f=b.a[d];f&&(fb(f,function(b){Dv(b.ta,c)&&(e.push(b.lw),sb(f,b))}),0==f.length&&delete b.a[d]);return e},Rv=function(b,c){b.a&&te(b.a,function(b,e,f){fb(b,function(e){e.ta==c&&sb(b,e)});0==b.length&&delete f[e]})};
Bv.prototype.D=function(){if(Av(this)==this){var b=this.j;if(b)for(;b.length;)b[0].la()}else for(var b=Av(this).j,c=0;c<b.length;c++)if(b[c]==this){b.splice(c,1);break}for(var d in this.k)b=this.k[d],b[1]&&"undefined"!=typeof b[0].la&&b[0].la();this.k=null;this.K&&this.l.la();Rv(this,this);this.a=null;S(this.O);this.A=this.O=null;Bv.r.D.call(this)};var Kv=function(b){return b.B?b.B:b.b?Kv(b.b):null},Fv=function(b){ya.call(this);this.id=b;this.message='Service for "'+b+'" is not registered'};
v(Fv,ya);var Ov=function(b,c,d){ya.call(this);this.message='Module "'+c+'" failed to load when requesting the service "'+b+'" [cause: '+d+"]";this.stack=d.stack+"\nWRAPPED BY:\n"+this.stack};v(Ov,ya);var Nv=function(b,c,d){ya.call(this);this.message='Configuration error when loading the module "'+c+'" for the service "'+b+'": '+d};v(Nv,ya);var Iv=function(b){Jj.call(this,b)};v(Iv,Jj);var Sv=new qn("fva"),Hv=new yv(Sv,1);
var Tv=function(b){var c=window;if(!c.location){var d;try{d=Jb(c)}catch(e){d=Ub(c).toString()}fn(null,Error("Na`"+d))}d=c.location&&c.location.ancestorOrigins;if(p(d))return d&&d.length?d[b?0:d.length-1]==c.location.origin:!0;try{return p((b?c.parent:c.top).location.href)}catch(f){return!1}};
var Uv={},Vv=function(){var b={};b.location=document.location.toString();if(Tv(!1))try{b["top.location"]=top.location.toString()}catch(c){b["top.location"]="[external]"}else b["top.location"]="[external]";for(var d in Uv)try{b[d]=Uv[d].call()}catch(e){b[d]="[error] "+e.message}return b};
var Wv=function(b){this.a=b;this.k={};this.b=[]},en=function(b,c,d){var e=Vv();e["call-stack"]=Ae();d&&(e.message=d);var f;c instanceof Error?f=c:f=c||"";var g;c="";f&&(c=(f.lineNumber||"unknown")+":"+Za(f.fileName||"unknown")+":"+Za(f.message||"unknown"));d="";for(g in e){var h;h="call-stack"==g?e[g].replace(/\(.*\)/g,""):e[g];d=d+g+":"+h+":"}g=c+"::"+d;c=b.k[g];c||(c={time:0,count:0},b.k[g]=c);if(1E4>ta()-c.time)c.count++,1==c.count&&(e=Vv(),e.message="Throttling: "+g,b.a.b(f,e));else{c.count&& (e["dropped-instances"]=c.count);c.time=ta();for(g=c.count=0;g<b.b.length;g++)b.b[g](f,e);b.a.b(f,e)}};
var Xv=function(b){Bj.call(this);this.e=b;this.k=!0;this.b=!1};v(Xv,Bj);Xv.prototype.a=function(b){return Yv(this,b)};
var Zv=function(b,c){return(c?"__wrapper_":"__protected_")+pa(b)+"__"},Yv=function(b,c){var d=Zv(b,!0);c[d]||((c[d]=$v(b,c))[Zv(b,!1)]=c);return c[d]},$v=function(b,c){var d=function(){if(b.isDisposed())return c.apply(this,arguments);try{return c.apply(this,arguments)}catch(d){b.e(d);if(!b.k)throw b.b&&("object"===typeof d?d.message="Error in protected function: "+d.message:d="Error in protected function: "+d),d;throw new aw(d);}finally{}};d[Zv(b,!1)]=c;return d},cw=function(b){for(var c=ba("window"),
d=["requestAnimationFrame","mozRequestAnimationFrame","webkitAnimationFrame","msRequestAnimationFrame"],e=0;e<d.length;e++){var f=d[e];d[e]in c&&bw(b,f)}},bw=function(b,c){var d=ba("window"),e=d[c];d[c]=function(c,d){ja(c)&&(c=sa(va,c));c=Yv(b,c);return e.call?e.call(this,c,d):e(c,d)};d[c][Zv(b,!1)]=e};Xv.prototype.D=function(){var b=ba("window"),c;c=b.setTimeout;c=c[Zv(this,!1)]||c;b.setTimeout=c;c=b.setInterval;c=c[Zv(this,!1)]||c;b.setInterval=c;Xv.r.D.call(this)}; var aw=function(b){ya.call(this,"Error in protected function: "+(b&&b.message?String(b.message):String(b)));(b=b&&b.stack)&&ja(b)&&(this.stack=b)};v(aw,ya);
var ew=function(b,c,d){W.call(this);this.g=c||null;this.e={};this.h=dw;this.j=b;d||(this.a=null,I&&!Jc("10")?we(t(this.b,this),!1,null):(this.a=new Xv(t(this.b,this)),bw(this.a,"setTimeout"),bw(this.a,"setInterval"),cw(this.a),cd(this.a)))};v(ew,W);var fw=function(b,c){Jj.call(this,"h");this.error=b;this.context=c};v(fw,Jj);var dw=function(b,c,d,e){Rn(b,c,d,e)};
ew.prototype.b=function(b,c){var d;d=ba("window.location.href");if(ja(b))d={message:b,name:"Unknown error",lineNumber:"Not available",fileName:d,stack:"Not available"};else{var e,f,g=!1;try{e=b.lineNumber||b.line||"Not available"}catch(h){e="Not available",g=!0}try{f=b.fileName||b.filename||b.sourceURL||n.$googDebugFname||d}catch(l){f="Not available",g=!0}d=!g&&b.lineNumber&&b.fileName&&b.stack&&b.message&&b.name?b:{message:b.message||"Not available",name:b.name||"UnknownError",lineNumber:e,fileName:f,
stack:b.stack||"Not available"}}e=c?Wb(c):{};if(this.g)try{this.g(d,e)}catch(m){}g=d.message.substring(0,1900);f=d.stack;try{var r=Lh(this.j,"script",d.fileName,"error",g,"line",d.lineNumber);Vb(this.e)||(r=Hh(Kh([r],this.e)));g={};g.trace=f;if(e)for(var u in e)g["context."+u]=e[u];var w,C=Kh([],g);C[0]="";w=C.join("");ka(null)&&(w=w.substring(0,null));this.h(r,"POST",w,this.l)}catch(J){}try{this.dispatchEvent(new fw(d,e))}catch(V){}};ew.prototype.D=function(){S(this.a);ew.r.D.call(this)};
var iw=function(b,c){bn.init();if(b){var d=new ew(b,void 0,!0);c&&(d.h=c);d=new Wv(d);gw.b=d;dn(d)}var e=null,d=function(b){n.$googDebugFname&&b&&b.message&&!b.fileName&&(b.message+=" in "+n.$googDebugFname);e?b&&b.message&&(b.message+=" [Possibly caused by: "+e+"]"):e=String(b);fn(null,b)};wa("_DumpException",d);wa("_B_err",d);y([n].concat([]),sa(we,sa(hw,!1),!0));if(!I||Jc(10))d=new Xv(gn),d.k=!0,d.b=!0,cw(d),bw(d,"setTimeout"),bw(d,"setInterval"),cd(d),gw.a=d},hw=function(b,c){-1!=c.message.indexOf("Error in protected function: ")|| (c.error&&c.error.stack?fn(null,c.error):b||fn(null,c))},jw=function(){};jw.prototype.a=null;jw.prototype.b=null;var gw=new jw;
var kw=function(){Bj.call(this)};v(kw,Bj);kw.prototype.jf=function(){};var lw=function(b,c){this.a=b;this.b=c};lw.prototype.execute=function(b){this.a&&(this.a.call(this.b||null,b),this.a=this.b=null)};bd(function(b){lw.prototype.execute=b(lw.prototype.execute)});var mw=function(b,c){Bj.call(this);this.g=b;this.h=c;this.e=[];this.k=[];this.a=[]};v(mw,Bj);mw.prototype.j=kw;mw.prototype.b=null;mw.prototype.getId=function(){return this.h};var nw=function(b,c){b.k.push(new lw(c,void 0))};mw.prototype.pe=function(){return!!this.b};
var pw=function(b,c){var d=new b.j;d.jf(c());b.b=d;d=(d=!!ow(b.a,c()))||!!ow(b.e,c());d||(b.k.length=0);return d},qw=function(b,c){var d=ow(b.k,c);d&&window.setTimeout(hd("Module errback failures: "+d),0);b.a.length=0;b.e.length=0},ow=function(b,c){for(var d=[],e=0;e<b.length;e++)try{b[e].execute(c)}catch(f){jd(f),d.push(f)}b.length=0;return d.length?d:null};mw.prototype.D=function(){mw.r.D.call(this);S(this.b)};
var rw=function(){Bj.call(this);this.k={};this.g=[];this.e=[];this.l=[];this.b=[];this.j=[];this.I={};this.h=this.o=new mw([],"");this.H=null;this.B=new Mm;this.A=!1;this.a=null;this.p=0;this.R=this.Q=!1;this.K=null};v(rw,Bj);ca(rw);
rw.prototype.ga=function(b,c){if(ja(b)){for(var d=b.split("/"),e=[],f=0;f<d.length;f++){var g=d[f].split(":"),h=g[0];if(g[1])for(var g=g[1].split(","),l=0;l<g.length;l++)g[l]=e[parseInt(g[l],36)];else g=[];e.push(h);this.k[h]=new mw(g,h)}c&&c.length?(wb(this.g,c),this.H=c[c.length-1]):this.B.Ce||this.B.callback();sw(this)}};rw.prototype.tb=function(){return this.K};
var uw=function(b){var c=0<b.g.length;c!=b.Q&&(tw(b,c?"active":"idle"),b.Q=c);c=0<b.j.length;c!=b.R&&(tw(b,c?"userActive":"userIdle"),b.R=c)},Jv=function(b,c,d){var e=[];zb(c,e);c=[];for(var f={},g=0;g<e.length;g++){var h=e[g],l=b.k[h];if(!l)throw Error("Oa`"+h);var m=new Mm;f[h]=m;l.pe()?m.callback(b.K):(vw(b,h,l,!!d,m),ww(b,h)||c.push(h))}0<c.length&&(0==b.g.length?b.O(c):(b.b.push(c),uw(b)));return f},vw=function(b,c,d,e,f){d.e.push(new lw(f.callback,f));nw(d,function(b){f.k(Error(b))});ww(b,c)?
e&&(xw(b,c),uw(b)):e&&xw(b,c)};rw.prototype.O=function(b,c,d){c||(this.p=0);this.g=c=yw(this,b);this.A?this.e=b:this.e=vb(c);uw(this);0!=c.length&&(this.l.push.apply(this.l,c),b=t(this.a.K,this.a,vb(c),this.k,null,t(this.ka,this,this.e,c),t(this.ca,this),!!d),(d=5E3*Math.pow(this.p,2))?window.setTimeout(b,d):b())};
var yw=function(b,c){for(var d=0;d<c.length;d++)if(b.k[c[d]].pe())throw Error("Pa`"+c[d]);for(var e=[],d=0;d<c.length;d++)e=e.concat(zw(b,c[d]));zb(e);return!b.A&&1<e.length?(d=e.shift(),b.b=hb(e,function(b){return[b]}).concat(b.b),[d]):e},zw=function(b,c){var d=[];pb(b.l,c)||d.push(c);for(var e=vb(b.k[c].g);e.length;){var f=e.pop();b.k[f].pe()||pb(b.l,f)||(d.unshift(f),Array.prototype.unshift.apply(e,b.k[f].g))}zb(d);return d},sw=function(b){b.h==b.o&&(b.h=null,pw(b.o,t(b.tb,b))&&Aw(b,4),uw(b))},
Cw=function(b){var c=rw.pb();c.isDisposed()||(pw(c.k[b],t(c.tb,c))&&Aw(c,4),sb(c.j,b),sb(c.g,b),0==c.g.length&&Bw(c),c.H&&b==c.H&&(c.B.Ce||c.B.callback()),uw(c))},ww=function(b,c){if(pb(b.g,c))return!0;for(var d=0;d<b.b.length;d++)if(pb(b.b[d],c))return!0;return!1};rw.prototype.load=function(b,c){return Jv(this,[b],c)[b]};
var xw=function(b,c){pb(b.j,c)||b.j.push(c)},Dw=function(b){var c=rw.pb();c.h=c.k[b]},Ew=function(){var b=rw.pb();b.h&&b.h.getId();b.h=null},Fw=function(b){var c=rw.pb();c.h&&c.h.a.push(new lw(b,void 0))};rw.prototype.ka=function(b,c,d){this.p++;this.e=b;y(c,sa(sb,this.l),this);401==d?(Aw(this,0),this.b.length=0):410==d?(Gw(this,3),Bw(this)):3<=this.p?(Gw(this,1),Bw(this)):this.O(this.e,!0,8001==d)};rw.prototype.ca=function(){Gw(this,2);Bw(this)};
var Gw=function(b,c){1<b.e.length?b.b=hb(b.e,function(b){return[b]}).concat(b.b):Aw(b,c)},Aw=function(b,c){var d=b.e;b.g.length=0;for(var e=[],f=0;f<b.b.length;f++){var g=gb(b.b[f],function(b){var c=zw(this,b);return jb(d,function(b){return pb(c,b)})},b);wb(e,g)}for(f=0;f<d.length;f++)qb(e,d[f]);for(f=0;f<e.length;f++){for(g=0;g<b.b.length;g++)sb(b.b[g],e[f]);sb(b.j,e[f])}var h=b.I.error;if(h)for(f=0;f<h.length;f++)for(var l=h[f],g=0;g<e.length;g++)l("error",e[g],c);for(f=0;f<d.length;f++)b.k[d[f]]&&
qw(b.k[d[f]],c);b.e.length=0;uw(b)},Bw=function(b){for(;b.b.length;){var c=gb(b.b.shift(),function(b){return!this.k[b].pe()},b);if(0<c.length){b.O(c);return}}uw(b)},tw=function(b,c){for(var d=b.I[c],e=0;d&&e<d.length;e++)d[e](c)};rw.prototype.D=function(){rw.r.D.call(this);Ej(Tb(this.k),this.o);this.I=this.b=this.j=this.e=this.g=this.k=null};
var Hw=[],Iw=[],Jw=!1,Lw=function(b){function c(b){b&&ib(b,function(b,c){b[c.id]=!0;return b},d.Ez)}if(Jw)throw new Kw(b);var d={Ez:{},index:Hw.length,Rf:b};c(b.a);c(b.e);Hw.push(d);b.a&&y(b.a,function(b){var c=b.id;c instanceof dp&&b.jm&&(c.a=b.jm)})},Mw=function(){function b(c){c.KA||(c.KA=!0,c.xi&&y(c.xi.gc(),b),l.push(c))}var c={},d,e;for(d=Hw.length-1;0<=d;--d){var f=Hw[d];if(f.Rf.a){var g=f.Rf.a;for(e=g.length-1;0<=e;--e)c[g[e].id]=f}if(f.Rf.e)for(g=f.Rf.e,e=g.length-1;0<=e;--e)c[g[e].id]=f}for(d=
Hw.length-1;0<=d;--d){f=Hw[d];g=f.Rf;if(g.b)for(f.xi=new ue,e=g.b.length-1;0<=e;--e){var h=c[g.b[e]];h&&f.xi.add(h)}if(g.k)for(f.xi||(f.xi=new ue),e=g.k.length-1;0<=e;--e)(h=c[g.k[e]])&&f.xi.add(h)}var l=[];y(Hw,b);Hw=l},Ow=function(b){if(!Jw){Mw();for(var c=0;c<Hw.length;++c){var d=Hw[c].Rf;d.a&&Nw(b,d.a);d.g&&d.g(b)}for(c=0;c<Hw.length;++c)d=Hw[c],d.Rf.jf&&d.Rf.jf(b);for(c=0;c<Iw.length;++c)Iw[c](b);Jw=!0}},Nw=function(b,c){for(var d=0;d<c.length;++d){var e=c[d];if(!Gv(b,e.id)&&!e.ED)if(e.jm){var f=
b,g=e.id,e=e.jm;g instanceof dp&&(g.a=e);f.g[g]=e}else if(e.multiple){if(f=b,g=e.id,e=e.callback||sa(id,e.ae),f.h[g]=e,e=f.a[g]){var h=e;if(1<h.length){for(var l=0;l<h.length;++l)h[l].index=l;h.sort(Qv)}for(;e.length;)e.shift().lw.callback(null);delete f.a[g]}}else qp(b,e.id,e.callback?e.callback(b):new e.ae(b))}},Kw=function(b){ya.call(this);this.Rf=b;this.message="Extension registered after application initialization  adding these services: "+(b.a?hb(b.a,function(b){return b.id}).join(", "):"none")}; v(Kw,ya);
var Pw=function(b){this.b=b};v(Pw,ho);Pw.prototype.k=function(b){var c=Zh(b.Gb.clone()),c=la(this.b)?this.b(c):this.b+c;Ph(b.Gb,c)};var Rw=function(b){this.b=new Qw(this);tp(b.get(jp),this.b);this.J(this.b)};v(Rw,Bj);var Sw=function(b){var c=new Rw(b);qp(b,np,c)};Rw.prototype.a=null;Rw.prototype.k=null;var Tw=function(b,c,d){c&&!d&&fn("Ra",Error("Qa"));b.a=c;b.k=d},Qw=function(b){this.b=b};v(Qw,ho);Qw.prototype.e=function(){return nc};
Qw.prototype.k=function(b){var c=this.b;if(c.a)if("DELETE"==b.b)b.bi(c.a);else{var c=c.a,d=b.k;d?(b=d.elements.at,b||(b=d.ownerDocument.createElement("input"),b.setAttribute("name","at"),b.setAttribute("hidden",!0),d.appendChild(b)),b.value=c):b.A||Bn(b,"at",c)}};Qw.prototype.a=function(b){var c;if(c=0!=b.length){c=this.b;b=b[0];var d=!1,e=c.k,f;E(b,lc,2)&&(f=E(b,lc,2),f=B(f,1));e&&f===e&&(c.a=B(b,1),d=!0);c=d}if(c)throw new Vo;};
var ju=function(b){return"//www.gstatic.com/culturalinstitute/"+b};var Uw=function(b,c){c||tf();this.b=b||null};Uw.prototype.render=function(b,c){var d=b(c||{},void 0,this.b?this.b.getData():{});this.a();return String(d)};
var Vw=function(b,c){var d;d=c||{};b.b&&b.b.getData();d=M('<div><div class="gci-fatal-message-header">'+N(d.xy)+"</div>"+(d.ng?'<div class="gci-fatal-message-details">'+N(d.ng)+"</div>":"")+'<div class="gci-fatal-message-reload">'+N(d.Kv)+"</div></div>");b.a();if(d.Ae===kg)d=ae(d.toString());else{if(d.Ae!==gg)throw Error("B");Bd("Soy SanitizedContent of kind HTML produces SafeHtml-contract-compliant value.");d=$d(d.toString(),d.Af||null)}return d};Uw.prototype.a=q;
var cx=function(b,c){U.call(this);var d=this;$("body").addClass(zi()?"gci-mobile":"gci-desktop");$.extend($.easing,{easeInOutCubic:function(b,c,d,e,f){return 1>(c/=f/2)?e/2*c*c*c+d:e/2*((c-=2)*c*c+2)+d},easeInOutQuint:function(b,c,d,e,f){return 1>(c/=f/2)?e/2*c*c*c*c*c+d:e/2*((c-=2)*c*c*c*c+2)+d}});$("noscript").remove();Y=this;var e=new Mh(window.location.href);this.ib=gi(e,"_crawler_");this.sa=Wb(window.gciGlobal&&window.gciGlobal.config);this.j=new yk(this.sa.experiments||{});this.n=b;this.name=
"";this.g=Ww(this,"pathPrefix");this.I=null;this.l=new hu;this.p={};this.W=new Ds(b,c);this.Ca=!1;this.B=new du;this.J(this.B);this.W.bind("collections-page-leave.gci-butter-bar",function(){d.B.hide()});var f=Xw(this,"channel"),g=null;f&&(f=new $u(f),g=new Yw(f));this.H=g;this.h=this.b=null;if(!this.kf()){var h=0,f=t(function(b,c,d,e){1<=h||(h++,Rn(b,c,d,e))},this);iw(this.g+"/jserror",f)}this.ta=new Bv;Ow(this.ta);this.o=Gv(this.ta,jp)?sp(this.ta):rp(this.ta);Ct(this.o);rt=this.o;tp(this.o,this.l);
this.g&&tp(this.o,new Pw(this.g));f=Ww(this,"xsrfToken");g=Ww(this,"userToken");f&&g&&(Sw(this.ta),Tw(this.ta.get(np),f,g));this.a=xk(new nu($("body")),this);this.a.get().insertBefore($("body > footer"));this.yb=new sl(Zw(this));$w(this);Hi()&&$("body").addClass("gci-old-browser").css("overflow","visible");f=Ww(this,"userEmail");this.Xl=Tm(new Mm,this.Gp,this);this.Zi=null;this.Hd()&&Jt(this)&&!Ba(e.b,".google.com")?this.Hd()&&(this.Dg=new Bp(this.ta,Ww(this,"oauthRelayUrl"),ax(bx(this).V,Hk)||Ww(this,
"oauthClientId"),bx(this).getId(),function(b){this.Xl.callback(b)},this)):this.Xl.callback(f);qp(this.ta,"a",new Wt)},Y;v(cx,wk);cx.prototype.D=function(){S(this.l);S(this.W);S(this.ta);S(this.H);S(Y);cx.r.D.call(this);Y=null};var dx=function(b,c){tp(b.o,c)},ex=function(b,c){$.each(c,t(function(b,c){this.p[c]=null},b))};cx.prototype.w=function(){return this.n};
var Cs=function(){var b=Y;return b.g+Ww(b,"subAppPathPrefix")},$w=function(b){$("#gci-feedback").on("click.gci-feedback",t(function(){var b=this.yb;b.b.b({KB:b.a});return!1},b));var c=function(b){var c=Di(window.location.href);ci(c.a,K.vf,b);b=Fi(c);fx(Y,b);return!1},d=$.map(Xw(b,"nativeLocales",[]),function(b){return{title:b.displayName,value:b.code,action:c}}),e=gx(b);$(K.Pu).append(xk(new Tp(e,"menu menu-right-anchor menu-reverse short",null,{items:d}),b).get())};
cx.prototype.Nh=function(b,c,d){Tm(this.Xl,function(){this.I?b.call(c||this):hx(this,b,c,d)},this)};
var ix=function(b,c,d){Tm(b.Xl,c,d||b)},hx=function(b,c,d,e){if(Jt(Y))if(null!=b.Zi)Tm(b.Zi,c,d);else{b.Zi=new Mm;var f=fs("Sign in",ae(e||"To access this feature, please click the sign in button."),function(){this.Dg.Nh(function(b){this.Zi.Ce||this.Zi.callback(b)})},b,"Sign in");Tm(b.Zi,function(b){f.setVisible(!1);this.Gp(b);c.call(d||this)},b)}else b=new Mh(Ww(b,"loginUrl")),ci(b.a,"continue",window.location.href),fx(Y,b.toString())},jx=function(b){return Xw(b,"localLocales",[])},gx=function(b){var c=
"";$.each(Xw(b,"nativeLocales",[]),function(b,e){if("en"==e.code)return c=e.displayName,!1});return c},kx=function(b,c){var d="";$.each(jx(b),function(b,f){if(f.code==c)return d=f.displayName,!1});return d},lx=function(b,c,d){b.Ca||gu(b.B,c,d)},mx=function(b,c){var d=b.W,e=$("<a>").attr("href",c)[0],e=ys(d,Cs()+"/",e);Es(d,e)},nx=function(){return Y.oa()},ox=function(b){return b.oa()&&!!Xw(b,"isEmbeddedCuration")},px=function(b){if(!b)return b;Ba(b,"/")||(b+="/");var c=Zw(Y);return c?b+"u/"+c+"/":
b},Zw=function(b){return Xw(b,"gaiaSessionIdentifier")||""},qx=function(b,c,d){Y.Nh(b,c,d)};cx.prototype.of=function(b,c){document.title=p(c)?c+" - "+this.name:this.name};cx.prototype.gg=q;cx.prototype.Jb=q;
var rx=function(){return Y.Jb()},vt=function(b,c){lx(Y,b,c)},sx=function(b){fx(b,window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")+b.g)},fx=function(b,c){b.Ca=!0;window.location.href=c},tx=function(b,c,d){var e=c?"You will be redirected to the homepage. We apologize for the inconvenience.":"Please reload the page to continue. We apologize for the inconvenience.",f=c?"Restart":"Reload";Mr(fs("",Vw(new Uw,{xy:b,Kv:e,ng:d}),function(){c?sx(Y):window.location.reload()},
void 0,f))},ux=function(b,c){tx(b,c,void 0)};cx.prototype.kf=function(){return!!Xw(this,"isDebug")};cx.prototype.oa=function(){return!!Xw(this,"isCuration")};var vx=function(){var b=Ww(Y,"layerEnabledAssetIds");return b?b.split(","):[]},bx=function(b){return Ww(b,"isSyndicated")?b.H:null},xx=function(b){return(b=bx(b))&&ka(wx(b))?wx(b).toString():""},Jt=function(b){return!!Ww(b,"isSyndicated")},yx=function(b){return!!Ww(b,"isOpenGallery")};
cx.prototype.Hd=function(){var b=bx(this);return this.oa()||!b||b.Hd()};var X=function(b){return!!Xw(b,"enableMobileUi")},zx=function(b,c,d){Y.Oa(b,c,d,void 0)},Ax=function(b,c,d){Y.of(b,c,d)},Ww=function(b,c){return x(Xw(b,c,void 0))},Xw=function(b,c,d){return b.sa[c]||d||null},Qp=function(){return ju("common/pixel.gif")};k=cx.prototype;k.mj=q;k.pg=function(b,c){if(b){var d={};d["q."+xl.M]=b.getId().toString();c&&(d.projectId=c);this.Oa(this.W.bg,d)}};
k.Rj=function(b,c){var d={};d["q."+b]=c;this.Oa(this.W.bg,d)};
k.Gp=function(b){this.I=b;$("#gci-user-section").replaceWith(L(uv,{userEmail:b,vs:Ww(this,"logoutUrl"),iy:Ww(this,"loginUrl"),Hd:this.Hd()}));if(this.I){var c=$("#gci-user-section-profile-wrapper");c&&(b=[],Jt(this)||b.push({title:"Sign out",value:"",action:function(){var b=c.attr("data-logout-url");fx(Y,b)}}),c.append(xk(new Tp(c.attr("data-email"),"menu",null,{items:b}),this).get()))}else if(Jt(this)){var d=this;$(".gci-login").click(function(){d.Dg.Nh(d.Gp,d);return!1})}};k.pj=q;k.we=q;k.el=function(){return!1};
var Bx={Y:"art",key:"artist_date",M:"-4151541203111375643",type:3},Cx={Y:"art",key:"artist_birth_place",M:"-7049592862958951304",type:2},Dx={Y:"art",key:"artist_death_place",M:"-1458873470564750521",type:2},Ex={Y:"art",key:"artist_nationality",M:"-9057758384493071771",type:1};
var Fx=function(b){b=b||{};return M('<div class="gci-map'+(b.Cf?" gci-map-withsearchbox":"")+'"><div class="gci-map-holder"></div>'+(b.Cf?'<div class="gci-map-searchbox"><input type="text" /></div>':"")+"</div>")};/*

 Copyright 2010 Gary Little [gary at luxcentral.com]
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
*/
var Hx=function(b){Gx();b=b||{};this.j=b.content||"";this.R=b.disableAutoPan||!1;this.p=b.maxWidth||0;this.h=b.pixelOffset||new google.maps.Size(0,0);this.k=b.position||new google.maps.LatLng(0,0);this.I=b.zIndex||null;this.tb=b.boxClass||"infoBox";this.Ic=b.boxStyle||{};this.Q=b.closeBoxMargin||"2px";this.l=b.closeBoxURL||"http://www.google.com/intl/en_us/mapfiles/close.gif";""===b.closeBoxURL&&(this.l="");this.K=b.infoBoxClearance||new google.maps.Size(1,1);"undefined"===typeof b.visible&&(b.visible=
"undefined"===typeof b.isHidden?!0:!b.isHidden);this.g=!b.visible;this.H=b.alignBottom||!1;this.xe=b.pane||"floatPane";this.O=b.enableEventPropagation||!1;this.o=this.e=this.B=this.A=this.b=this.a=null},Nx=function(b){var c,d,e=function(b){b.cancelBubble=!0;b.stopPropagation&&b.stopPropagation()},f=function(c){c.returnValue=!1;c.preventDefault&&c.preventDefault();b.O||e(c)};if(!b.a){b.a=document.createElement("div");Ix(b);"undefined"===typeof b.j.nodeType?b.a.innerHTML=Jx(b)+b.j:(b.a.innerHTML=Jx(b),
b.a.appendChild(b.j));b.getPanes()[b.xe].appendChild(b.a);Kx(b);b.a.style.width?b.o=!0:0!==b.p&&b.a.offsetWidth>b.p?(b.a.style.width=b.p,b.a.style.overflow="auto",b.o=!0):(c=Lx(b),b.a.style.width=b.a.offsetWidth-c.left-c.right+"px",b.o=!1);Mx(b,b.R);if(!b.O){b.e=[];d="mousedown mouseover mouseout mouseup click dblclick touchstart touchend touchmove".split(" ");for(c=0;c<d.length;c++)b.e.push(google.maps.event.addDomListener(b.a,d[c],e));b.e.push(google.maps.event.addDomListener(b.a,"mouseover",function(){this.style.cursor=
"default"}))}b.B=google.maps.event.addDomListener(b.a,"contextmenu",f);google.maps.event.trigger(b,"domready")}},Jx=function(b){var c="";""!==b.l&&(c="<img"+(" src='"+b.l+"'"),c+=" align=right style='",c+=" position: relative;",c+=" cursor: pointer;",c+=" margin: "+b.Q+";",c+="'>");return c},Kx=function(b){var c;""!==b.l?(c=b.a.firstChild,b.b=google.maps.event.addDomListener(c,"click",Ox(b))):b.b=null},Ox=function(b){return function(c){c.cancelBubble=!0;c.stopPropagation&&c.stopPropagation();google.maps.event.trigger(b,
"closeclick");b.close()}},Mx=function(b,c){var d,e=0,f=0;if(!c&&(d=b.getMap(),d instanceof google.maps.Map)){d.getBounds().contains(b.k)||d.setCenter(b.k);var g=d.getDiv(),h=g.offsetWidth,g=g.offsetHeight,l=b.h.width,m=b.h.height,r=b.a.offsetWidth,u=b.a.offsetHeight,w=b.K.width,C=b.K.height,J=b.getProjection().fromLatLngToContainerPixel(b.k);J.x<-l+w?e=J.x+l-w:J.x+r+l+w>h&&(e=J.x+r+l+w-h);b.H?J.y<-m+C+u?f=J.y+m-C-u:J.y+m+C>g&&(f=J.y+m+C-g):J.y<-m+C?f=J.y+m-C:J.y+u+m+C>g&&(f=J.y+u+m+C-g);0===e&&0===
f||d.panBy(e,f)}},Ix=function(b){var c,d;if(b.a){b.a.className=b.tb;b.a.style.cssText="";d=b.Ic;for(c in d)d.hasOwnProperty(c)&&(b.a.style[c]=d[c]);"undefined"!==typeof b.a.style.opacity&&""!==b.a.style.opacity&&(b.a.style.filter="alpha(opacity="+100*b.a.style.opacity+")");b.a.style.position="absolute";b.a.style.visibility="hidden";null!==b.I&&(b.a.style.zIndex=b.I)}},Lx=function(b){var c={top:0,bottom:0,left:0,right:0};b=b.a;if(document.defaultView&&document.defaultView.getComputedStyle){if(b=b.ownerDocument.defaultView.getComputedStyle(b,
""))c.top=parseInt(b.borderTopWidth,10)||0,c.bottom=parseInt(b.borderBottomWidth,10)||0,c.left=parseInt(b.borderLeftWidth,10)||0,c.right=parseInt(b.borderRightWidth,10)||0}else document.documentElement.currentStyle&&b.currentStyle&&(c.top=parseInt(b.currentStyle.borderTopWidth,10)||0,c.bottom=parseInt(b.currentStyle.borderBottomWidth,10)||0,c.left=parseInt(b.currentStyle.borderLeftWidth,10)||0,c.right=parseInt(b.currentStyle.borderRightWidth,10)||0);return c};
Hx.prototype.onRemove=function(){this.a&&(this.a.parentNode.removeChild(this.a),this.a=null)};Hx.prototype.draw=function(){Nx(this);var b=this.getProjection().fromLatLngToDivPixel(this.k);this.a.style.left=b.x+this.h.width+"px";this.H?this.a.style.bottom=-(b.y+this.h.height)+"px":this.a.style.top=b.y+this.h.height+"px";this.a.style.visibility=this.g?"hidden":"visible"};
Hx.prototype.setOptions=function(b){"undefined"!==typeof b.boxClass&&(this.tb=b.boxClass,Ix(this));"undefined"!==typeof b.boxStyle&&(this.Ic=b.boxStyle,Ix(this));"undefined"!==typeof b.content&&this.setContent(b.content);"undefined"!==typeof b.disableAutoPan&&(this.R=b.disableAutoPan);"undefined"!==typeof b.maxWidth&&(this.p=b.maxWidth);"undefined"!==typeof b.pixelOffset&&(this.h=b.pixelOffset);"undefined"!==typeof b.alignBottom&&(this.H=b.alignBottom);"undefined"!==typeof b.position&&Px(this,b.position);
"undefined"!==typeof b.zIndex&&this.setZIndex(b.zIndex);"undefined"!==typeof b.closeBoxMargin&&(this.Q=b.closeBoxMargin);"undefined"!==typeof b.closeBoxURL&&(this.l=b.closeBoxURL);"undefined"!==typeof b.infoBoxClearance&&(this.K=b.infoBoxClearance);"undefined"!==typeof b.isHidden&&(this.g=b.isHidden);"undefined"!==typeof b.visible&&(this.g=!b.visible);"undefined"!==typeof b.enableEventPropagation&&(this.O=b.enableEventPropagation);this.a&&this.draw()};
Hx.prototype.setContent=function(b){this.j=b;this.a&&(this.b&&(google.maps.event.removeListener(this.b),this.b=null),this.o||(this.a.style.width=""),"undefined"===typeof b.nodeType?this.a.innerHTML=Jx(this)+b:(this.a.innerHTML=Jx(this),this.a.appendChild(b)),this.o||(this.a.style.width=this.a.offsetWidth+"px","undefined"===typeof b.nodeType?this.a.innerHTML=Jx(this)+b:(this.a.innerHTML=Jx(this),this.a.appendChild(b))),Kx(this));google.maps.event.trigger(this,"content_changed")};
var Px=function(b,c){b.k=c;b.a&&b.draw();google.maps.event.trigger(b,"position_changed")};k=Hx.prototype;k.setZIndex=function(b){this.I=b;this.a&&(this.a.style.zIndex=b);google.maps.event.trigger(this,"zindex_changed")};k.setVisible=function(b){this.g=!b;this.a&&(this.a.style.visibility=this.g?"hidden":"visible")};k.getContent=function(){return this.j};k.getPosition=function(){return this.k};k.getZIndex=function(){return this.I};k.show=function(){this.g=!1;this.a&&(this.a.style.visibility="visible")};
k.hide=function(){this.g=!0;this.a&&(this.a.style.visibility="hidden")};k.open=function(b,c){var d=this;c&&(this.k=c.getPosition(),this.A=google.maps.event.addListener(c,"position_changed",function(){Px(d,this.getPosition())}));this.setMap(b);this.a&&Mx(this)};
k.close=function(){var b;this.b&&(google.maps.event.removeListener(this.b),this.b=null);if(this.e){for(b=0;b<this.e.length;b++)google.maps.event.removeListener(this.e[b]);this.e=null}this.A&&(google.maps.event.removeListener(this.A),this.A=null);this.B&&(google.maps.event.removeListener(this.B),this.B=null);this.setMap(null)};var Gx=function(){(function(b){for(var c in b.prototype)this.prototype[c]=b.prototype[c];return this}).apply(Hx,[google.maps.OverlayView])};
var Rx=function(b,c,d){Qx(Rx);this.S=b;this.a=[];this.b=[];this.B=[53,56,66,78,90];this.e=[];this.g=!1;d=d||{};this.k=d.gridSize||60;this.p=d.minimumClusterSize||2;this.j=d.maxZoom||null;this.e=d.styles||[];this.H=d.imagePath||"http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/images/m";this.I=d.imageExtension||"png";this.o=!0;void 0!=d.zoomOnClick&&(this.o=d.zoomOnClick);this.h=!1;void 0!=d.averageCenter&&(this.h=d.averageCenter);Sx(this);this.setMap(b);this.l=this.S.getZoom();
var e=this;google.maps.event.addListener(this.S,"zoom_changed",function(){var b=e.S.getZoom();e.l!=b&&(e.l=b,e.ij())});google.maps.event.addListener(this.S,"idle",function(){e.Yg()});c&&c.length&&this.nn(c,!1)},Qx=function(b){(function(b){for(var d in b.prototype)this.prototype[d]=b.prototype[d];return this}).apply(b,[google.maps.OverlayView])};Rx.prototype.onAdd=function(){this.g||(this.g=!0,Tx(this))};Rx.prototype.draw=function(){};
var Sx=function(b){if(!b.e.length)for(var c=0,d;d=b.B[c];c++)b.e.push({url:b.H+(c+1)+"."+b.I,height:d,width:d})};k=Rx.prototype;k.Ew=function(){for(var b=this.a,c=new google.maps.LatLngBounds,d=0,e;e=b[d];d++)c.extend(e.getPosition());this.S.fitBounds(c)};k.ko=function(){return this.e};k.Zu=function(){return this.a};k.bx=function(){return this.a.length};k.Yz=function(b){this.j=b};k.tr=function(){return this.j};
k.yq=function(b,c){for(var d=0,e=b.length,f=e;0!==f;)f=parseInt(f/10,10),d++;d=Math.min(d,c);return{text:e,index:d}};k.Wz=function(b){this.yq=b};k.or=function(){return this.yq};k.nn=function(b,c){for(var d=0,e;e=b[d];d++)Ux(this,e);c||this.Yg()};var Ux=function(b,c){c.a=!1;c.draggable&&google.maps.event.addListener(c,"dragend",function(){c.a=!1;b.Kt()});b.a.push(c)};Rx.prototype.A=function(b,c){Ux(this,b);c||this.Yg()};
var Vx=function(b,c){var d=-1;if(b.a.indexOf)d=b.a.indexOf(c);else for(var e=0,f;f=b.a[e];e++)if(f==c){d=e;break}if(-1==d)return!1;c.setMap(null);b.a.splice(d,1);return!0};k=Rx.prototype;k.$u=function(b,c){var d=Vx(this,b);return!c&&d?(this.ij(),this.Yg(),!0):!1};k.Gz=function(b,c){for(var d=!1,e=0,f;f=b[e];e++)f=Vx(this,f),d=d||f;if(!c&&d)return this.ij(),this.Yg(),!0};k.ax=function(){return this.b.length};k.getMap=function(){return this.S};k.setMap=function(b){this.S=b};k.Ww=function(){return this.k};
k.Xz=function(b){this.k=b};k.ho=function(b){var c=this.getProjection(),d=new google.maps.LatLng(b.getNorthEast().lat(),b.getNorthEast().lng()),e=new google.maps.LatLng(b.getSouthWest().lat(),b.getSouthWest().lng()),d=c.fromLatLngToDivPixel(d);d.x+=this.k;d.y-=this.k;e=c.fromLatLngToDivPixel(e);e.x-=this.k;e.y+=this.k;d=c.fromDivPixelToLatLng(d);c=c.fromDivPixelToLatLng(e);b.extend(d);b.extend(c);return b};k.dn=function(){this.ij(!0);this.a=[]};
k.ij=function(b){for(var c=0,d;d=this.b[c];c++)d.remove();for(c=0;d=this.a[c];c++)d.a=!1,b&&d.setMap(null);this.b=[]};k.Kt=function(){var b=this.b.slice();this.b.length=0;this.ij();this.Yg();window.setTimeout(function(){for(var c=0,d;d=b[c];c++)d.remove()},0)};k.Yg=function(){Tx(this)};
var Tx=function(b){if(b.g)for(var c=new google.maps.LatLngBounds(b.S.getBounds().getSouthWest(),b.S.getBounds().getNorthEast()),c=b.ho(c),d=0,e;e=b.a[d];d++)if(!e.a&&c.contains(e.getPosition())){var f=b,g=4E4,h=null;e.getPosition();for(var l=0,m=void 0;m=f.b[l];l++){var r=m.b;if(r){var u=e.getPosition();if(r&&u)var w=(u.lat()-r.lat())*Math.PI/180,C=(u.lng()-r.lng())*Math.PI/180,r=Math.sin(w/2)*Math.sin(w/2)+Math.cos(r.lat()*Math.PI/180)*Math.cos(u.lat()*Math.PI/180)*Math.sin(C/2)*Math.sin(C/2),r=
12742*Math.atan2(Math.sqrt(r),Math.sqrt(1-r));else r=0;r<g&&(g=r,h=m)}}h&&h.h.contains(e.getPosition())?Wx(h,e):(m=new Xx(f),Wx(m,e),f.b.push(m))}},Xx=function(b){this.k=b;this.S=b.getMap();this.g=b.p;this.j=b.h;this.b=null;this.a=[];this.h=null;this.e=new Yx(this,b.ko())},Wx=function(b,c){var d;a:if(b.a.indexOf)d=-1!=b.a.indexOf(c);else{d=0;for(var e;e=b.a[d];d++)if(e==c){d=!0;break a}d=!1}if(!d){b.b?b.j&&(e=b.a.length+1,d=(b.b.lat()*(e-1)+c.getPosition().lat())/e,e=(b.b.lng()*(e-1)+c.getPosition().lng())/
e,b.b=new google.maps.LatLng(d,e),Zx(b)):(b.b=c.getPosition(),Zx(b));c.a=!0;b.a.push(c);d=b.a.length;d<b.g&&c.getMap()!=b.S&&c.setMap(b.S);if(d==b.g)for(e=0;e<d;e++)b.a[e].setMap(null);d>=b.g&&c.setMap(null);d=b.S.getZoom();if((e=b.k.tr())&&d>e)for(d=0;e=b.a[d];d++)e.setMap(b.S);else b.a.length<b.g?b.e.hide():(e=b.k.or()(b.a,b.k.ko().length),b.e.g=b.b,d=b.e,d.o=e,d.j=e.text,d.k&&(d.k.innerHTML=e.text),e=Math.max(0,d.o.index-1),e=Math.min(d.p.length-1,e),e=d.p[e],d.nb=e.url,d.b=e.height,d.a=e.width,
d.A=e.textColor,d.e=e.anchor,d.I=e.textSize,d.B=e.backgroundPosition,b.e.show())}},$x=function(b){var c=new google.maps.LatLngBounds(b.b,b.b);b=b.a;for(var d=0,e;e=b[d];d++)c.extend(e.getPosition());return c};Xx.prototype.remove=function(){this.e.remove();this.a.length=0;delete this.a};Xx.prototype.ab=function(){return this.a.length};Xx.prototype.o=function(){return this.a};Xx.prototype.l=function(){return this.b};
var Zx=function(b){var c=new google.maps.LatLngBounds(b.b,b.b);b.h=b.k.ho(c)},Yx=function(b,c){Qx(Yx);this.p=c;this.l=b;this.g=null;this.S=b.S;this.o=this.k=null;this.h=!1;this.setMap(this.S)};
Yx.prototype.onAdd=function(){this.k=document.createElement("DIV");if(this.h){var b=ay(this,this.g);this.k.style.cssText=by(this,b);this.k.innerHTML=this.o.text}this.getPanes().overlayMouseTarget.appendChild(this.k);var c=this;google.maps.event.addDomListener(this.k,"click",function(){var b=c.l.k;google.maps.event.trigger(b,"clusterclick",c.l);b.o&&c.S.fitBounds($x(c.l))})};var ay=function(b,c){var d=b.getProjection().fromLatLngToDivPixel(c);d.x-=parseInt(b.a/2,10);d.y-=parseInt(b.b/2,10);return d};
k=Yx.prototype;k.draw=function(){if(this.h){var b=ay(this,this.g);this.k.style.top=b.y+"px";this.k.style.left=b.x+"px"}};k.hide=function(){this.k&&(this.k.style.display="none");this.h=!1};k.show=function(){if(this.k){var b=ay(this,this.g);this.k.style.cssText=by(this,b);this.k.style.display=""}this.h=!0};k.remove=function(){this.setMap(null)};k.onRemove=function(){this.k&&this.k.parentNode&&(this.hide(),this.k.parentNode.removeChild(this.k),this.k=null)};
var by=function(b,c){var d=[];d.push("background-image:url("+b.nb+");");d.push("background-position:"+(b.B?b.B:"0 0")+";");"object"===typeof b.e?("number"===typeof b.e[0]&&0<b.e[0]&&b.e[0]<b.b?d.push("height:"+(b.b-b.e[0])+"px; padding-top:"+b.e[0]+"px;"):d.push("height:"+b.b+"px; line-height:"+b.b+"px;"),"number"===typeof b.e[1]&&0<b.e[1]&&b.e[1]<b.a?d.push("width:"+(b.a-b.e[1])+"px; padding-left:"+b.e[1]+"px;"):d.push("width:"+b.a+"px; text-align:center;")):d.push("height:"+b.b+"px; line-height:"+
b.b+"px; width:"+b.a+"px; text-align:center;");d.push("cursor:pointer; top:"+c.y+"px; left:"+c.x+"px; color:"+(b.A?b.A:"black")+"; position:absolute; font-size:"+(b.I?b.I:11)+"px; font-family:Arial,sans-serif; font-weight:bold");return d.join("")};window.MarkerClusterer=Rx;Rx.prototype.addMarker=Rx.prototype.A;Rx.prototype.addMarkers=Rx.prototype.nn;Rx.prototype.clearMarkers=Rx.prototype.dn;Rx.prototype.fitMapToMarkers=Rx.prototype.Ew;Rx.prototype.getCalculator=Rx.prototype.or;
Rx.prototype.getGridSize=Rx.prototype.Ww;Rx.prototype.getExtendedBounds=Rx.prototype.ho;Rx.prototype.getMap=Rx.prototype.getMap;Rx.prototype.getMarkers=Rx.prototype.Zu;Rx.prototype.getMaxZoom=Rx.prototype.tr;Rx.prototype.getStyles=Rx.prototype.ko;Rx.prototype.getTotalClusters=Rx.prototype.ax;Rx.prototype.getTotalMarkers=Rx.prototype.bx;Rx.prototype.redraw=Rx.prototype.Yg;Rx.prototype.removeMarker=Rx.prototype.$u;Rx.prototype.removeMarkers=Rx.prototype.Gz;Rx.prototype.resetViewport=Rx.prototype.ij;
Rx.prototype.repaint=Rx.prototype.Kt;Rx.prototype.setCalculator=Rx.prototype.Wz;Rx.prototype.setGridSize=Rx.prototype.Xz;Rx.prototype.setMaxZoom=Rx.prototype.Yz;Rx.prototype.onAdd=Rx.prototype.onAdd;Rx.prototype.draw=Rx.prototype.draw;Xx.prototype.getCenter=Xx.prototype.l;Xx.prototype.getSize=Xx.prototype.ab;Xx.prototype.getMarkers=Xx.prototype.o;Yx.prototype.onAdd=Yx.prototype.onAdd;Yx.prototype.draw=Yx.prototype.draw;Yx.prototype.onRemove=Yx.prototype.onRemove;
var dy=function(b,c){U.call(this);var d=c||{},e={zoom:9,minZoom:2,maxZoom:15,disableDefaultUI:!0,zoomControl:!0,center:new google.maps.LatLng(75,-45),mapTypeId:google.maps.MapTypeId.ROADMAP},f=[{featureType:"water",elementType:"geometry",stylers:[{visibility:"on"}]},{featureType:"road",elementType:"all",stylers:[{visibility:"on"},{color:"#FAFAFA"}]},{featureType:"transit",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"landscape",elementType:"all",stylers:[{visibility:"on"}]},{featureType:"poi",
elementType:"all",stylers:[{visibility:"off"}]},{featureType:"landscape.man_made",elementType:"geometry",stylers:[{visibility:"on"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{visibility:"on"}]}];this.ca=$(L(Fx,{Cf:d.Cf})).appendTo(b);e=$.extend(!0,{},e,d.Sf||{});e.styles=d.Iz?d.xs||[]:$.merge(f,d.xs||[]);d.viewport&&(e.center=d.viewport.getCenter());this.map=new google.maps.Map(this.ca.find(".gci-map-holder").get(0),e);d.viewport&&this.map.fitBounds(d.viewport);this.b={};
this.A=new google.maps.LatLngBounds;this.ad=$.extend({},{gridSize:30,maxZoom:9,styles:[cy]},d.ys||{});this.$c=$.extend({},{disableAutoPan:!0,maxWidth:0,zIndex:null,closeBoxURL:"",infoBoxClearance:new google.maps.Size(1,1),pane:"floatPane",enableEventPropagation:!0,alignBottom:!0},d.Sx||{});var g=this;if(d.Cf){d=this.ca.find(".gci-map-searchbox input");d.on("keyup",function(b){return 13!=b.which}).on("keydown",function(b){return 13!=b.which});var h=new google.maps.places.SearchBox(d.get(0));google.maps.event.addListener(h,
"places_changed",function(){g.ca.find(".gci-map-searchbox input").trigger("blur").val("");var b=h.getPlaces();b&&g.R(b)})}};v(dy,wk);dy.prototype.D=function(){dy.r.D.call(this);this.map.unbindAll();$(this.ca).empty()};dy.prototype.B=null;dy.prototype.Q=null;
var ey={size:{width:15,height:16},anchor:{x:8,y:8},url:ju("common/map_dot_0.png")},fy={size:{width:25,height:53},anchor:{x:10,y:38},url:ju("common/map_circle_0.png")},cy={height:51,width:51,fontWeight:"normal",textColor:"#030303",textSize:12,anchor:{x:25,y:25},url:ju("common/map_cluster_dot_0.png")},hy=function(b,c){var d=c.rk,e=c.displayName,f=c.Eg,g=c.ft,h=c.qz,l=c.xz,m=c.bz||q,r=t(function(b){var c=this.b[f]||new google.maps.Marker({position:b,map:this.map,icon:ey});c.set("gci-marker-object-id",
f);g&&(this.Q||(this.Q=new Hx(this.$c)),google.maps.event.addListener(c,"mouseover",t(function(){this.Q.setContent(g);this.Q.open(this.map,c)},this)),google.maps.event.addListener(c,"mouseout",t(function(){this.Q.close()},this)));h&&google.maps.event.addListener(c,"click",h);this.b[f]=c;this.A.extend(b);l||gy(this);m()},b);Cm(d)?(e=Bm(d),d=Am(d),r(new google.maps.LatLng(e,d))):e?(new google.maps.Geocoder).geocode({address:e},function(c,d){if(d===google.maps.GeocoderStatus.OK){var e=c[0].geometry.viewport,
f=new google.maps.LatLng(e.getSouthWest().lat(),e.getSouthWest().lng()),e=new google.maps.LatLng(e.getNorthEast().lat(),e.getNorthEast().lng()),f=new google.maps.LatLngBounds(f,e);b.A.union(f);r(c[0].geometry.location)}else m()}):m()},iy=function(b){$.each(b.b,function(b,d){1!=d.getZIndex()&&d.setZIndex(1);d.getIcon()!=ey&&d.setIcon(ey)})},gy=function(b){var c=b.map.getCenter();google.maps.event.trigger(b.map,"resize");var d=0,e=null;Qb(b.b,function(b){d++;e=e||b;return 1>=d});1<d&&b.A?(b.map.setCenter(b.A.getCenter()),
b.map.fitBounds(b.A)):e?b.map.setCenter(e.getPosition()):b.map.setCenter(c)},jy=function(b,c,d){google.maps.event.addListener(b.map,c,d)},ky=function(b){b.A=new google.maps.LatLngBounds;b.B&&b.B.dn();$.each(b.b,function(b,d){d.setMap(null)});b.b={}},ly=function(b,c,d){var e=c.length,f=[];$.each(c,t(function(c,h){var l=function(){e--;b.b[h.id]&&f.push(b.b[h.id]);0==e&&(b.B||(b.B?b.B.dn():b.B=new Rx(b.map,null,b.ad)),b.B.nn(f),!d&&gy(b))};this.b[h.id]?l():hy(this,{rk:h.location,displayName:h.displayName,
Eg:h.id,ft:h.Ho,qz:h.Xf,xz:!0,bz:l})},b))},my=function(b){var c=[];$.each(b.b,t(function(b,e){this.map.getBounds().contains(e.getPosition())&&e.get("gci-marker-object-id")&&c.push(e.get("gci-marker-object-id"))},b));return c};dy.prototype.R=function(b){if(b[0]&&b[0].geometry){var c=new google.maps.LatLngBounds;b[0].geometry.viewport?c=b[0].geometry.viewport:c.extend(b[0].geometry.location);this.map.fitBounds(c)}};
var ny=function(b){this.a=b||new Vu},oy=function(b){var c=new mm;D(c,1,b.Y);D(c,2,b.key);D(c,3,b.M);D(c,4,b.type);return c};ny.prototype.Ea=function(){return this.a};
var py=function(b,c){for(var d=Wu(b.a),e=0,f;f=d[e];e++)if(f.cc()==c.M&&f.U()==c.type)return f;return null},ry=function(b,c,d){var e=Wu(b.a),f=function(b,d){var f=[];$.each(e,function(e,g){var h;if(!(h=g.cc()!=c.M||g.U()!=c.type)&&(h=b)){a:if(null==b)h=!0;else switch(g.U()){case 1:h=Tl(g.ma());h=null!=Ql(h,b,d);break a;case 5:h=g.Xb();h=null!=tm(new sm(h),b,d);break a;default:h=!0}h=!h}h||f.push(g)});return f.length?f:null};b=t(function(b,c){var d=[],e=f(b,c);e&&(d=$.map(e,t(function(c){return qy(c,
b)},this)));return 0<d.length?d:null},b);if(null==d)return d=b(),null==d?[]:d;var g=Nl(b,d,void 0);if(null==g&&d){d=f();var h=null;d&&$.each(d,function(b,c){var d=null;1==c.U()?d=c.ma().Wb():5==c.U()&&(d=c.Xb().Wb());if(d&&0<d.length)return h=d[0].getLang(),!1});null!=h&&(g=b(h))}return null==g?[]:g},qy=function(b,c){switch(b.U()){case 1:return Ul(b.ma(),c);case 2:var d=nm(b);return d&&d.pd()?Tl(d.pd()).T(c):B(d,1)+":"+B(d,2);case 3:return new Date(Wi(b.getDate()).He());case 4:return om(b).T();case 5:var d=
{eg:"",url:""},e=b.Xb();null!=e&&(e=new sm(e),d.eg=e.T(c),d.url=e.getUrl(c));return d;case 6:return pm(b).getValue();default:b.U()}return""},sy=function(b,c){return py(b,c)||null},ty=function(b){return(b=py(b,al))&&3==b.U()?qy(b):null},uy=function(b,c){if(3==b.U())return am(new Xl(b.getDate()));var d=qy(b,c);switch(b.U()){case 1:return d;case 2:return d;case 4:return d;case 5:return d.url||d.eg||"";case 6:return d+"";default:return""}},Ot=function(b,c,d){return(b=py(b,c))?uy(b,d):null},vy=function(b,
c){for(var d=Wu(b.a)||[],e=d.length-1,f;f=d[e];e--)f.cc()!=c.M||f.U()!=c.type||d.splice(e,1);ec(b.a,1,d)};
ny.prototype.setProperty=function(b,c,d,e){if(null==c)e&&vy(this,b);else{var f;e&&(f=py(this,b));f?e&&vy(this,b):f=oy(b);switch(b.type){case 1:b=f.ma();null==b&&(b=new Qi,rm(f,b));Tl(b).a(d,c);break;case 4:d=new dm;D(d,1,c);G(f,8,d);break;case 3:d=new Vi;b=new $i;D(b,3,4);D(b,1,c.getTime());D(b,2,c.getTime()+86399999);c=wj(c.getTime(),4);D(d,1,c);G(d,2,b);G(f,7,d);break;case 5:b=f.Xb(),null==b&&(b=new gm,G(f,9,b)),(new sm(b)).a(d,c.eg||null,c.url||"")}c=Wu(this.a);c.push(f);ec(this.a,1,c)}};
var wy=function(b,c,d){vy(b,c);y(d,function(b){var d=oy(c);rm(d,b.Ea());b=Wu(this.a);b.push(d);ec(this.a,1,b)},b)},xy=function(b){b=py(b,Tk);return b?(b=b.Xb())?new sm(b):null:null},yy=function(b,c){var d=py(b,c);return!(!d||!pm(d).getValue())},zy=function(b,c,d){var e=py(b,c);e||(e=oy(c));vy(b,c);c=new cm;D(c,1,d);G(e,10,c);d=Wu(b.a);d.push(e);ec(b.a,1,d)},Ay=function(b){var c=py(b,cl);b=null;c&&(c=c.getDate(),null!=c&&(b=new Xl(c)));return b},ax=function(b,c){var d=py(b,c);return d?om(d).T():""}, By=function(b,c,d){vy(b,c);y(d,function(b){var d=oy(c);b=b.Ea();G(d,6,b);b=Wu(this.a);b.push(d);ec(this.a,1,b)},b)},Cy=function(b){b=py(b,Rk);return b?(b=nm(b))?new xm(b):null:null};
var Dy=function(b){A(this,b,0,-1,null)};v(Dy,z);Dy.prototype.L=function(){return H(this)};var Ey=new ac(32173711,{tC:0},Dy,function(b,c){var d,e={title:(d=c.getTitle())&&Si(b,d)};b&&(e.X=c);return e});Bu[32173711]=Ey;Dy.prototype.getTitle=function(){return E(this,Qi,1)};Dy.prototype.setTitle=function(b){G(this,1,b)};
var Fy=function(b){this.a=b;this.k=b.Fc().ya()};Fy.prototype.Ea=function(){return this.a};Fy.prototype.ya=function(){return this.k};Fy.prototype.nc=function(){return this.a.nc()};Fy.prototype.getStatus=function(){return this.a.getStatus()};
var Gy=function(b,c){for(var d=[],e=0;e<b.length;e++){var f=b[e];ob(c,function(b){var c=b.Fc().ya()==f.Fc().ya();b=2==b.U();return c&&b})||d.push(f)}for(e=0;e<c.length;e++){var g=c[e];1==g.U()&&(f=new Cu,Eu(f,g.Fc()),Gu(f,g.nc()),D(f,2,1),d.push(f))}return d},Hy=function(b){Fy.call(this,b);b=this.a.Fc().getExtension(Ey).getTitle();this.b=new Pl(b)};v(Hy,Fy);Hy.prototype.getTitle=function(){return this.b.T()};var Iy=function(b,c){Fy.call(this,b);this.b=c};v(Iy,Fy);Iy.prototype.getTitle=function(){return this.b.getTitle()}; Iy.prototype.Fc=function(){return this.b};
var Ly=function(b,c,d){U.call(this);b=b instanceof jQuery?b:$(b);var e=Qp();this.n=$("<div>").addClass("collections-image-holder").append($("<img>").addClass("collections-image-holder-shield").attr("alt",d.title||"").attr("src",e)).appendTo(b);this.b=d.ti||null;this.o=d.Cc||null;this.h=d.de||null;this.l=d.Ma||!1;this.A=d.fadeIn||!1;this.nb=c;this.g=$("<img>").attr("src",e);this.e=$("<div>").addClass("holder-background").append(this.g).appendTo(this.n);this.A&&this.e.addClass("gci-image-holder-fade-in");
this.B=1;this.j={x:50,y:50};d.oi&&(c=d.oi.x,b=d.oi.y,this.j={x:.3>c?0:.7<c?100:50,y:.3>b?0:.7<b?100:50});this.p=I&&!Lc(9);this.a=d.Qe||null;this.l||this.a||Jy(this);this.I=!1;this.bind("update",t(function(b,c,d,e){c&&(Vb(c)?this.b=null:this.b=c);null!=d&&(this.o=d);e&&(Vb(e)?this.h=null:this.h=e);Ky(this)},this));this.bind("refresh",t(function(){this.p&&Ky(this);return!1},this));this.bind("preload",t(function(b,c){this.ud(c);return!1},this))};v(Ly,wk);
Ly.prototype.D=function(){this.n.remove();this.n=null;Ly.r.D.call(this)};Ly.prototype.bind=function(b,c){this.n.bind(b,c)};
var Ky=function(b){if(b.a){if(b.o)b.p?My(b):b.g.css("visibility","hidden");else{var c=b.b;c||(c={top:0,left:0,Mg:1});var d=b.B*c.Mg,e=Math.floor(100*d)/100,d=Math.ceil(100*d)/100;b.e.css({top:e*c.top,left:e*c.left,width:d*b.a.width,height:d*b.a.height})}b.l||(c=b.h?Math.max(b.h.width,b.h.height):void 0,Ny(b,c),c=t(function(){if(this.p||!this.o)this.g.attr("src")!=this.nb&&this.g.attr("src",this.nb);else{var b="url("+this.nb+") no-repeat "+this.j.x+"% "+this.j.y+"%";this.e.css("background")!=b&&this.e.css({background:b,
"background-size":"cover"})}this.e.addClass("gci-image-loaded")},b),b.A?$("<img>").load(c).attr("src",b.nb):c())}},Jy=function(b){var c=new Image;c.onload=t(function(){this.a={width:c.width,height:c.height};Ky(this)},b);c.src=b.nb};k=Ly.prototype;k.resize=function(){this.a&&(this.B=Math.max(this.n.width()/this.a.width,this.n.height()/this.a.height),Ky(this))};k.ti=function(b,c){this.b=b;c||Ky(this)};k.getContainer=function(){return this.n};
k.ic=function(b){var c=this.B*this.b.Mg;this.b.left+=b.x/c;this.b.top+=b.y/c;Ky(this);return this.b};k.load=function(){this.l=!1;if(!this.a)return Jy(this),this;Ky(this);return this};k.ud=function(b){if(this.I)b&&b();else{this.I=!0;this.l=!1;var c=new Image;c.onload=t(function(){this.g.attr("src",this.nb);this.a={width:c.width,height:c.height};c=null;Ky(this);b&&b();return!1},this);Ny(this);c.src=this.nb}};k.unload=function(){this.g.attr("src","");return this};
var My=function(b){var c=b.n.width(),d=b.n.height(),e=b.a.width,f=b.a.height;if(0!=d&&0!=f)if(b.h)b.g.css({height:b.h.height,width:b.h.width});else{var g=c/d,h=e/f;g>h?(b.g.css({width:c,height:f*c/e}),b.e.css({top:b.j.y*(1-f*g/e)+"%",left:"",position:"absolute",width:"auto",height:"auto"})):(b.g.css({height:d,width:h*d}),b.e.css({top:"",left:b.j.x*(1-d*h/c)+"%",position:"absolute",width:"auto",height:"auto"}))}},Ny=function(b,c){var d=Math.max(b.e.width(),b.e.height()),e=b.nb;d||(d=c);d&&e.match(/=s([0-9]+)$/)&& (d=Oy(d),e=e.substr(0,e.lastIndexOf("="))+"=s"+d);b.nb=e},Oy=function(b){var c=1<<Math.ceil(Math.log(b/10)/Math.LN2);return Math.min(1200,Math.max(175,Math.ceil(b/c)*c))};
var Py=function(b){A(this,b,0,-1,null)};v(Py,z);var Qy=function(b,c){var d={yB:B(c,1),pC:B(c,2)};b&&(d.X=c);return d};Py.prototype.L=function(){return H(this)};var Sy=function(b){A(this,b,0,-1,Ry)};v(Sy,z);var Ry=[2],Ty=function(b,c){var d={lC:B(c,1),OE:cc(F(c,Py,2),Qy,b)};b&&(d.X=c);return d};Sy.prototype.L=function(){return H(this)};var Uy=function(b){A(this,b,0,-1,null)};v(Uy,z);var Vy=function(b,c){var d={lat:B(c,1),lng:B(c,2)};b&&(d.X=c);return d};Uy.prototype.L=function(){return H(this)};var Wy=function(b){return B(b,1)},Xy=function(b){return B(b,2)};var Zy=function(b){A(this,b,0,-1,Yy)};v(Zy,z);var Yy=[1],$y=function(b,c){var d={p:cc(F(c,Uy,1),Vy,b)};b&&(d.X=c);return d};Zy.prototype.L=function(){return H(this)};var bz=function(b){A(this,b,0,-1,az)};v(bz,z);var az=[2];bz.prototype.L=function(){return H(this)};var cz=function(b){return F(b,Zy,2)};var dz=function(b){A(this,b,0,-1,null)};v(dz,z);var ez=function(b,c){var d,e;if(e=d=E(c,bz,1)){var f;e={sE:(f=E(d,Zy,1))&&$y(b,f),uD:cc(cz(d),$y,b)};b&&(e.X=d)}d={CE:e};b&&(d.X=c);return d};dz.prototype.L=function(){return H(this)};var gz=function(b){A(this,b,0,-1,fz)};v(gz,z);var fz=[4];gz.prototype.L=function(){return H(this)};var hz=function(b){A(this,b,0,-1,null)};v(hz,z);var iz=function(b,c){var d={errorCode:B(c,1),Sn:B(c,3),Ct:B(c,2)};b&&(d.X=c);return d};hz.prototype.L=function(){return H(this)};hz.prototype.qh=function(){return B(this,1)};hz.prototype.ug=function(){return B(this,3)};
var jz=function(b){A(this,b,0,-1,null)};v(jz,z);var kz=function(b,c){var d={xF:B(c,1),AF:B(c,2),zoom:B(c,3),YE:B(c,4),XE:B(c,5)};b&&(d.X=c);return d};jz.prototype.L=function(){return H(this)};jz.prototype.getZoom=function(){return B(this,3)};var lz=function(b){A(this,b,0,-1,null)};v(lz,z);var mz=function(b,c){var d={$g:B(c,1),lat:B(c,2),lng:B(c,3),elevation:B(c,4),xt:B(c,5),direction:B(c,6)};b&&(d.X=c);return d};lz.prototype.L=function(){return H(this)};lz.prototype.wa=function(){return B(this,1)};lz.prototype.ai=function(b){D(this,5,b)};
var nz=function(b){A(this,b,0,8,null)};v(nz,z);var qz=function(b,c){var d,e={xt:B(c,1),cl:(d=oz(c))&&Vy(b,d),heading:B(c,2),pitch:B(c,3),BF:null!=B(c,4)?B(c,4):0,SC:B(c,5),hD:null!=B(c,7)?B(c,7):90};dc(c,e,pz,nz.prototype.getExtension,b);b&&(e.X=c);return e};nz.prototype.L=function(){return H(this)};var rz=function(b){return B(b,1)};nz.prototype.ai=function(b){D(this,1,b)};var oz=function(b){return E(b,Uy,6)};nz.prototype.setHeading=function(b){D(this,2,b)}; var sz=function(b){return null!=B(b,7)?B(b,7):90},pz={};
var tz=function(b){A(this,b,0,-1,null)};v(tz,z);var uz=function(b,c){var d={xt:B(c,1),lat:B(c,2),lng:B(c,3)};b&&(d.X=c);return d};tz.prototype.L=function(){return H(this)};tz.prototype.ai=function(b){D(this,1,b)};var wz=function(b){A(this,b,0,-1,vz)};v(wz,z);var vz=[2],xz=function(b,c){var d={PE:B(c,1),vE:cc(F(c,tz,2),uz,b),RB:B(c,3)};b&&(d.X=c);return d};wz.prototype.L=function(){return H(this)};var zz=function(b){A(this,b,0,-1,yz)};v(zz,z);var yz=[3,4],Az=function(b,c){var d,e=B(c,1),f=(d=c.getName())&&Si(b,d),g=cc(F(c,wz,3),xz,b),h=cc(F(c,lz,4),mz,b),l;if(l=d=E(c,gz,5)){l=d;var m={xD:B(l,1),DD:B(l,2),JD:B(l,3),Qz:cc(F(l,dz,4),ez,b)};b&&(m.X=l);l=m}e={$a:e,name:f,wE:g,CB:h,LC:l,lp:B(c,6),nw:(d=E(c,nz,7))&&qz(b,d),uE:B(c,8)};b&&(e.X=c);return e};zz.prototype.L=function(){return H(this)};zz.prototype.ff=function(){return B(this,1)};zz.prototype.getName=function(){return E(this,Qi,2)}; var Bz=function(b){return B(b,8)};
var Dz=function(b){A(this,b,0,-1,Cz)};v(Dz,z);var Cz=[3],Fz=function(b,c){var d,e={Bn:B(c,1),name:(d=c.getName())&&Si(b,d),fy:cc(Ez(c),Az,b)};b&&(e.X=c);return e};Dz.prototype.L=function(){return H(this)};Dz.prototype.Hi=function(){return B(this,1)};Dz.prototype.getName=function(){return E(this,Qi,2)};var Ez=function(b){return F(b,zz,3)};
var Hz=function(b){A(this,b,0,-1,Gz)};v(Hz,z);var Gz=[2];Hz.prototype.L=function(){return H(this)};var Iz=function(b){return F(b,Dz,2)},Jz=function(b,c){G(b,3,c)};var Lz=function(b){A(this,b,0,111,Kz)};v(Lz,z);
var Kz=[20,22,26,16,104],Nz=function(b,c){var d,e=B(c,1),f=B(c,18),g=B(c,19),h=(d=E(c,Vu,2))&&Yu(b,d),l=cc(F(c,Cu,20),Du,b),m=B(c,4),r=B(c,13),u=B(c,5),w=B(c,6),C=B(c,7),J=B(c,8),V=B(c,9),xa=B(c,27),Ha=cc(F(c,jz,22),kz,b),kb=B(c,23),oa=B(c,10),Ia=B(c,11),tt=(d=c.ma())&&Si(b,d),fg;if(fg=d=E(c,Hz,14)){fg=d;var XK,YK={RE:B(fg,1),bw:cc(Iz(fg),Fz,b),nw:(XK=E(fg,nz,3))&&qz(b,XK)};b&&(YK.X=fg);fg=YK}e={id:e,yE:f,$h:g,V:h,xj:l,type:m,rD:r,Qp:u,ne:w,sD:C,pD:J,qD:V,oD:xa,OD:Ha,Se:kb,iu:oa,Jc:Ia,text:tt,bF:fg,
IB:B(c,15),HB:B(c,24),JB:B(c,25),GB:B(c,26),yD:B(c,110),Ay:B(c,21),XB:B(c,16),UD:B(c,90),xE:B(c,91),ME:B(c,92),pA:B(c,101),wF:B(c,102),readyState:B(c,17),$E:cc(F(c,hz,104),iz,b),DB:B(c,106),EB:B(c,108),visibility:B(c,107),EE:B(c,28),Uq:(d=E(c,Sy,109))&&Ty(b,d)};dc(c,e,Mz,Lz.prototype.getExtension,b);b&&(e.X=c);return e};k=Lz.prototype;k.L=function(){return H(this)};k.getId=function(){return B(this,1)};k.U=function(){return B(this,4)};k.Xc=function(){return B(this,5)}; k.Lc=function(){return B(this,10)};k.lh=function(){return B(this,11)};k.ma=function(){return E(this,Qi,12)};k.Cd=function(){return B(this,15)};var Mz={};
var Oz=function(b){return 1==b%10&&11!=b%100?"one":2==b%10&&12!=b%100?"two":3==b%10&&13!=b%100?"few":"other"},Pz=Oz,Pz=Oz;var Qz=function(b,c){var d=b|0,e;if(void 0===c){e=b+"";var f=e.indexOf(".");e=Math.min(-1==f?0:e.length-f-1,3)}else e=c;return 1==d&&0==e?"one":"other"},Rz=Qz,Rz=Qz;var Uz=function(b){this.a=[];this.e=[];this.k=new oh(1);b&&(b=Sz(this,b),this.e=Tz(this,b))},Vz=RegExp("'([{}#].*?)'","g"),Wz=RegExp("''","g"),Yz=function(b,c){return Xz(b,c,!1)},Zz=function(b,c){return Xz(b,c,!0)},Xz=function(b,c,d){if(0==b.e.length)return"";var e=[];$z(b,b.e,c,d,e);for(c=e.join("");0<b.a.length;)c=c.replace(b.b(b.a),b.a.pop());return c},$z=function(b,c,d,e,f){for(var g=0;g<c.length;g++)switch(c[g].type){case 4:f.push(c[g].value);break;case 3:var h=c[g].value,l=b,m=f,r=d[h];p(r)?
(l.a.push(r),m.push(l.b(l.a))):m.push("Undefined parameter - "+h);break;case 2:h=c[g].value;l=f;m=h.Wk;p(d[m])?(m=h[d[m]],p(m)||(m=h.other),$z(b,m,d,e,l)):l.push("Undefined parameter - "+m);break;case 0:h=c[g].value;aA(b,h,d,Rz,e,f);break;case 1:h=c[g].value,aA(b,h,d,Pz,e,f)}},aA=function(b,c,d,e,f,g){var h=c.Wk,l=c.tq,m=+d[h];isNaN(m)?g.push("Undefined or invalid parameter - "+h):(l=m-l,h=c[d[h]],p(h)||(e=b.k.Q?e(l,b.k.Q()):e(l),h=c[e],p(h)||(h=c.other)),c=[],$z(b,h,d,f,c),d=c.join(""),f?g.push(d):
(b=xh(b.k,l),g.push(d.replace(/#/g,b))))},Sz=function(b,c){var d=b.a,e=t(b.b,b);c=c.replace(Wz,function(){d.push("'");return e(d)});return c=c.replace(Vz,function(b,c){d.push(c);return e(d)})},bA=function(b){var c=0,d=[],e=[],f=/[{}]/g;f.lastIndex=0;for(var g;g=f.exec(b);){var h=g.index;"}"==g[0]?(d.pop(),0==d.length&&(g={type:1},g.value=b.substring(c,h),e.push(g),c=h+1)):(0==d.length&&(c=b.substring(c,h),""!=c&&e.push({type:0,value:c}),c=h+1),d.push("{"))}c=b.substring(c);""!=c&&e.push({type:0,value:c});
return e},cA=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,dA=/^\s*(\w+)\s*,\s*selectordinal\s*,/,eA=/^\s*(\w+)\s*,\s*select\s*,/,Tz=function(b,c){for(var d=[],e=bA(c),f=0;f<e.length;f++){var g={};if(0==e[f].type)g.type=4,g.value=e[f].value;else if(1==e[f].type){var h=e[f].value;switch(cA.test(h)?0:dA.test(h)?1:eA.test(h)?2:/^\s*\w+\s*/.test(h)?3:5){case 2:g.type=2;g.value=fA(b,e[f].value);break;case 0:g.type=0;g.value=gA(b,e[f].value);break;case 1:g.type=1;g.value=hA(b,e[f].value);break;case 3:g.type=
3,g.value=e[f].value}}d.push(g)}return d},fA=function(b,c){var d="";c=c.replace(eA,function(b,c){d=c;return""});var e={};e.Wk=d;for(var f=bA(c),g=0;g<f.length;){var h=f[g].value;g++;if(1==f[g].type)var l=Tz(b,f[g].value);e[h.replace(/\s/g,"")]=l;g++}return e},gA=function(b,c){var d="",e=0;c=c.replace(cA,function(b,c,f){d=c;f&&(e=parseInt(f,10));return""});var f={};f.Wk=d;f.tq=e;for(var g=bA(c),h=0;h<g.length;){var l=g[h].value;h++;if(1==g[h].type)var m=Tz(b,g[h].value);f[l.replace(/\s*(?:=)?(\w+)\s*/,
"$1")]=m;h++}return f},hA=function(b,c){var d="";c=c.replace(dA,function(b,c){d=c;return""});var e={};e.Wk=d;e.tq=0;for(var f=bA(c),g=0;g<f.length;){var h=f[g].value;g++;if(1==f[g].type)var l=Tz(b,f[g].value);e[h.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=l;g++}return e};Uz.prototype.b=function(b){return"\ufddf_"+(b.length-1).toString(10)+"_"};
var lA=function(b){var c="";switch(b.view){case "fullscreen":var d="";b=""+('<div class="gci-asset-image"></div><div class="gci-asset-square-container"><div class="gci-asset-square" dir="auto"><div class="gci-asset-featured">Featured Item</div><div class="gci-asset-title-creator"><a href="#" class="gci-asset-title gci-asset-info-link" title="'+Q(b.F.Eb)+'">'+N(b.F.title)+'</a><span class="gci-asset-date">'+N(b.F.da)+'</span><span class="gci-asset-creator">'+N(b.F.kb)+"</span></div>"+(b.F.ec?'<a href="#" class="gci-asset-partner gci-asset-info-link">'+
N(b.F.ec)+"</a>":'<span class="gci-asset-partner">&nbsp;</span>')+"</div></div>");b=M(b);b=d+('<div class="gci-fullscreen-item gci-asset-fullscreen-item gci-asset-item"><div class="gci-asset-fullscreen">'+b+'<div class="gci-asset-view">'+P(qv({label:O("View Item"),type:"transparent",ac:O("gci-asset-view-button")}))+'</div><div class="gci-asset-cover-bottom-gradient"></div></div></div>');b=M(b);c=c+b;break;case "gallery":b=M('<div class="gci-asset-gallery-item gci-asset-item" role="link"><div class="gci-asset-gallery" dir="auto"><div class="gci-asset-image"></div><div class="gci-asset-bottom"><div class="gci-asset-optional-border"></div><div class="gci-asset-zoom-widget"><div class="gci-asset-zoom-widget-shield"></div></div><div class="gci-asset-information"><div class="gci-asset-title-date"><a href="#" class="gci-asset-title gci-asset-info-link" title="'+
Q(b.F.Eb)+'">'+N(b.F.title)+"</a> "+(b.F.da?'<span class="gci-asset-date">('+N(b.F.da)+")</span>":"")+(b.F.oe?iA():"")+(b.F.Pc?jA():"")+"</div>"+(b.F.kb?kA({kb:b.F.kb,Oc:b.F.Oc}):"")+(b.F.ec?'<a href="#" class="gci-asset-partner gci-asset-info-link">'+N(b.F.ec)+"</a>":"")+"</div></div></div></div>");c=c+b;break;case "topbox":c+=M('<div class="gci-asset-topbox-item gci-asset-item" role="link"><div class="gci-asset-image"></div></div>');break;case "onebox":b=M('<div class="gci-onebox-item"><div class="gci-onebox-item-thumb"></div><div class="gci-onebox-item-summary"><h3 title="'+
Q(b.F.title)+'">'+N(b.F.title)+"</h3></div></div>");c=c+b;break;default:b=M('<div class="gci-asset-grid-item gci-asset-item'+(b.F.Re?"":" gci-asset-not-album")+'" role="link" '+(b.Me?' style="width:'+Q(Ug(b.Me))+'px"':"")+'><div class="gci-asset-grid"><div class="gci-asset-image"></div></div><div class="gci-asset-grid-caption" dir="auto"><a href="#" class="gci-asset-title gci-asset-info-link" title="'+Q(b.F.Eb)+'">'+N(b.F.title)+"</a>"+(b.F.da?' <span class="gci-asset-date">('+N(b.F.da)+")</span>":
"")+(b.F.kb?kA({kb:b.F.kb,Oc:b.F.Oc,nl:b.F.nl}):"")+(b.F.ec?'<a href="#" class="gci-asset-partner gci-asset-info-link" title="'+Q(b.F.Gw)+'">'+N(b.F.ec)+"</a>":"")+(b.F.oe?iA():"")+(b.F.Pc?jA():"")+"</div></div>"),c=c+b}return M(c)},mA=function(b){return M('<div class="card-info"><div class="card-info-title">'+N(b.title)+(b.oe?iA():"")+(b.dy?jA():"")+'</div><div class="card-info-creator">'+N(b.kb)+"</div>"+(b.ec?'<div class="card-info-partnerName">'+N(b.ec)+"</div>":"")+'<div class="card-info-description">'+
N(b.description)+"</div></div>")},iA=function(){return M('<span class="gci-asset-gigapixel-label">Gigapixel</span>')},jA=function(){return M('<span class="gci-asset-three-d-label">3D Object</span>')},nA=function(){return M('<div class="gci-video-shield"><img src="'+Q(R(ju("common/overlay-play_0.png")))+'"></div>')},kA=function(b){var c="",d="by "+N(b.kb),e=b.Oc&&!b.el,c=c+((e?'<a href="#" class="gci-asset-creator gci-asset-info-link"'+(b.nl?'title="'+Q(b.nl)+'"':"")+">":'<span class="gci-asset-creator">')+
d+(e?"</a>":"</span>"));return M(c)},oA=function(b){var c="";b=Zz(new Uz("{NUMBER_1,plural,=1{{START_DIV_1}{NUMBER_2}{END_DIV}{START_DIV_2}more{END_DIV}}other{{START_DIV_3}{NUMBER_2}{END_DIV}{START_DIV_2}more{END_DIV}}}"),{NUMBER_1:b.Is,START_DIV_1:'<div class="gci-assets-showmore-number">',NUMBER_2:N(b.Is),END_DIV:"</div>",START_DIV_2:"<div>",START_DIV_3:'<div class="gci-assets-showmore-number">'});return M(c+('<div class="gci-assets-showmore"><div class="gci-assets-showmore-inner"><div class="gci-assets-showmore-text">'+
b+"</div></div></div>"))},pA=function(b){return M('<div class="gci-asset-attribution"><div class="gci-asset-image"></div><div class="gci-asset-information"><div class="gci-asset-title-date">'+(b.F.title?'<a href="#" class="gci-asset-title gci-asset-info-link" title="'+Q(b.F.Eb)+'">'+N(b.F.title)+"</a> ":"")+(b.F.da?'<span class="gci-asset-date">('+N(b.F.da)+")</span>":"")+(b.F.oe?iA():"")+(b.F.Pc?jA():"")+"</div>"+(b.F.kb?kA({kb:b.F.kb,Oc:b.F.Oc,el:b.F.el}):"")+(b.F.qw?'<span class="gci-asset-partner">'+
N(b.F.ec)+"</span>":'<a href="#" class="gci-asset-partner gci-asset-info-link">'+N(b.F.ec)+"</a>")+"</div></div>")},qA=function(){return M('<div class="gci-asset-actions"></div>')},rA=function(){return M('<aside class="gci-three-d-tooltips"><p class="gci-three-d-rotate">Click to rotate</p><p class="gci-three-d-zoom">Scroll to zoom</p></aside>')};
var uA=function(b,c){var d=new Hz;Jz(d,b);var e=new Lz;D(e,4,7);G(e,14,d);return sA(new tA(e),c)},sA=function(b,c){var d=null,e={};if(vA(b)||b.Re()||b.qb())e=b.ab();if(c.Ec){var d=c.Ec,f=b.ab()||{width:640,height:480},g=f.width/f.height,f=f.height/f.width;d.height?(g*=d.height,e={width:g,height:d.height},d.width&&d.width<g&&(f*=d.width,e={width:d.width,height:f})):d.width&&(f*=d.width,e={width:d.width,height:f},d.height&&d.height<f&&(g*=d.height,e={width:g,height:d.height}))}var h;wA(b)||(h=!c.size&&
c.Ec?e:c.size,h=c.Bd?xA(b,h)||b.Xc():b.Xc());if(vA(b))d=$("<div>").addClass("collections-asset-thumbnail").addClass("image"),h=new Ly(d,h,{Qe:e,de:c.size,Cc:!0,title:b.getTitle(),fadeIn:c.fadeIn,Ma:c.Ma,oi:c.oi}),c.Ma||h.load();else if(yA(b))d=$("<div>").addClass("collections-asset-thumbnail").addClass("video"),(new Ly(d,h,{Qe:e,de:c.size,Cc:!0,title:b.getTitle(),fadeIn:c.fadeIn})).load(),d.append($(L(nA)));else if(b.qb())d=$("<div>").addClass("collections-asset-thumbnail").addClass("streetview"),
h=new Ly(d,h,{Qe:e,de:c.size,Cc:!0,title:b.getTitle(),fadeIn:c.fadeIn,Ma:c.Ma}),c.Ma||h.load(),d.append($("<div>").addClass("gci-streetview-shield"));else if(wA(b))d=$("<div>").addClass("collections-asset-thumbnail").addClass("text"),d.text(b.ma().T());else if(b.Re())d=$("<div>").addClass("collections-asset-thumbnail").addClass("album"),d.append($("<div>").addClass("stack-1")).append($("<div>").addClass("stack-2")),(new Ly(d,h,{Qe:e,de:c.size,title:b.getTitle(),Cc:!0})).load(),d.append($("<div>").addClass("count").text(""+
(B(b.a,90)||0)));else if(zA(b))d=$("<div>").addClass("collections-asset-thumbnail").addClass("audio");else if(b.Pc())d=$("<div>").addClass("collections-asset-thumbnail").addClass("3d"),h=new Ly(d,b.Xc(),{Qe:e,de:c.size,Cc:!0,title:b.getTitle(),fadeIn:c.fadeIn,Ma:c.Ma}),c.Ma||h.load(),d.append($("<div>").addClass("gci-3d-shield"));else return b.U(),null;if(c.size||c.Ec)e=c.size||e,d.css({width:e.width,height:e.height});return d},AA=function(b,c,d){var e=b.width(),f=0,g=0;b.addClass("gci-asset-thumbstrip");
for(var h=$("<div>"),l=0;l<c.length&&e>f+100;l++){var m=c[l];!m.getId()||zA(m)||m.Pc()||m.qb()&&!d.ci||(m=sA(m,{Ec:{height:d.height},Bd:!0,fadeIn:!1}),m.appendTo(h),f+15+m.width()+100>e?m.remove():(f+=15+m.width(),g++))}h.appendTo(b);c=(d.qA||c.length)-g;0<c&&(c=L(oA,{Is:c}),b.append(c),$(c).css("left",f+15))},BA=null,CA=null,GA=function(b,c,d,e){if(zi()){if(e&&e.click)b.on("click.collections-asset-popup",function(){e.click()})}else b.off(".collections-asset-popup"),b.on("mouseenter.collections-asset-popup",
function(){DA();BA=window.setTimeout(function(){EA(b,c,d,e)},200)}).on("mouseleave.collections-asset-popup",function(){FA()})},FA=function(){window.clearTimeout(BA);BA=null},EA=function(b,c,d,e){DA();var f="collections-asset-popup",g=$(L(mA,{title:c.getTitle(),kb:HA(c),ec:IA(c),description:c.Vb(),oe:c.oe(),dy:c.Pc()})),h;e&&e.actions&&(h=e.actions());e&&e.layout&&(f=e.layout());var l=sA(c,{Ec:"collections-asset-popup"==f?{height:190,width:255}:{height:110,width:150}}),m=$("<div>").addClass("gci-asset-thumbnail");
CA=$("<div>").addClass(f).append(m.append(l));h&&m.append(h);CA.append(g).appendTo("body");l.find(".collections-image-holder").trigger("refresh");$(document).off(".collections-asset-popup");b.off("mouseleave.collections-asset-popup");"collections-asset-popup"==f?($(document).on("mousemove.collections-asset-popup",function(b){$(b.target).get(0)!=CA.get(0)&&0==CA.find($(b.target)).length&&DA()}),CA.on("mouseleave.collections-asset-popup",function(){DA()}),JA(b,d),vi(CA,"collections-asset-popup",function(){DA();
return!0}),b.on("mouseleave.collections-asset-popup",function(){FA()})):($(document).on("mousemove.collections-asset-popup",function(c){$(c.target).get(0)!=b.get(0)&&0==b.find($(c.target)).length&&DA()}),b.on("mouseleave.collections-asset-popup",function(){DA()}));if(e&&e.click)CA.on("click.collections-asset-popup",function(){e.click();DA()});e&&e.thumbAction&&e.thumbAction(l,c);CA.find(".collections-image-holder").trigger("update",[null,!0,{}])},DA=function(){FA();CA&&window.setTimeout(function(){CA&&
CA.remove();CA=null},0);$(document).off(".collections-asset-popup")},JA=function(b,c){var d=c||$(window),e=c?c.offset():{top:0,left:0},f=parseInt(b.css("margin")||"0",10),g=CA;g.css({top:b.offset().top-(g.height()-b.height())/2,left:b.offset().left-(g.width()-b.width())/2});var h=e.top+f,l=e.left+f,m=e.left+d.width()-f,r=e.top+d.height()-f,d=g.offset(),e=d.top,f=d.left,u=d.left+g.outerWidth(),w=d.top+g.outerHeight();--h;--l;m+=1;d.top+=Math.min(0,r+1-w);d.left+=Math.min(0,m-u);d.top=Math.max(d.top, h);d.left=Math.max(d.left,l);if(d.top!=e||d.left!=f)h=g.offset(),h.top+=d.top-e,h.left+=d.left-f,g.css(h)};
var KA=function(){},LA=function(b){this.ba=b.ba||null;this.Zb=b.Zb||null;this.aa=b.aa||null;this.rb=b.rb||null;this.Sk=b.Sk||null;this.Kk=b.Kk||null};KA.prototype.Oe=function(){return null!=this.b()};var MA=function(b,c,d){U.call(this);var e=X(Y),f=rx();this.a=e?"grid":c||"gallery";c=t(function(b){this.a=b;this.b.trigger("selection-changed",void 0);f&&Qt(f,"ViewSelector","Select",b);return!1},this);var g={};g.list={title:"",Qi:"gci-view-selector-list",fi:"List View",value:"list",selected:"list"==this.a,action:c};g.grid={title:"",Qi:"gci-view-selector-grid",fi:"Grid View",value:"grid",selected:"grid"==this.a,action:c};g.gallery={title:"",Qi:"gci-view-selector-gallery",fi:"Gallery View",value:"gallery",
selected:"gallery"==this.a,action:c};g.map={title:"",Qi:"gci-view-selector-map",fi:"Map View",value:"map",selected:"map"==this.a,action:c};g.fullscreen={title:"",Qi:"gci-view-selector-fullscreen",fi:"Fullscreen View",value:"fullscreen",selected:"fullscreen"==this.a,action:c};c=["gallery","grid"];this.e=e?["grid"]:d||c;var h=[];$.each(this.e,function(b,c){h.push(g[c])});-1==db(this.e,this.a)&&(this.a=this.e[0]);this.g=xk(new Tp("View","menu",null,{LA:!0,defaultValue:this.a,items:h}),this);this.g.bind("gci-ui-button-menu-show",
function(){f&&Qt(f,"ViewSelector","Open")});this.b=this.g.get().addClass("gci-view-selector").appendTo(b);1>=h.length&&this.b.hide()};v(MA,wk);MA.prototype.D=function(){this.b.remove();MA.r.D.call(this)};MA.prototype.getValue=function(){return this.a};var NA=function(b){return"grid"==b.a},OA=function(b){return"gallery"==b.a},PA=function(b){return"fullscreen"==b.a};MA.prototype.bind=function(b,c){this.b.bind(b,c)};MA.prototype.unbind=function(b,c){this.b.unbind(b,c)};
var TA=function(b){var c="";switch(b.view){case "onebox":var d='<figure class="gci-onebox-item gci-onebox-partner"><div class="gci-onebox-item-thumb"><div>'+(b.Z.Cb?'<img src="'+Q(R(b.Z.Cb))+'" alt="'+Q(b.Z.title)+'"/>':"")+'</div></div><figcaption class="gci-onebox-item-summary"><h3 title="'+Q(b.Z.title)+'">'+N(b.Z.title)+"</h3>"+(b.Z.ng?'<span class="gci-onebox-item-details">'+N(b.Z.ng)+"</span>":"");if(b.Z.jd||b.Z.Kd){d+='<div class="gci-onebox-item-objects-count">';if(b.Z.jd&&0<b.Z.jd){d+='<span class="gci-onebox-item-assets-count">';
if(10>b.Z.jd)d+="A few items";else var e=N(b.Z.jd)+"+ items",d=d+e;d+="</span>"}b.Z.Kd&&0<b.Z.Kd&&(b=Zz(new Uz("{APPROXIMATE_NUM_EXHIBITS_1,plural,=1{1 exhibit}other{{APPROXIMATE_NUM_EXHIBITS_2} exhibits}}"),{APPROXIMATE_NUM_EXHIBITS_1:b.Z.Kd,APPROXIMATE_NUM_EXHIBITS_2:N(b.Z.Kd)}),d+='<span class="gci-onebox-item-exhibits-count">'+b+"</span>");d+="</div>"}b=M(d+"</figcaption></figure>");c=c+b;break;case "fullscreen":d=M;e=M('<div class="gci-partner-image"></div><div class="gci-partner-square-container"><div class="gci-partner-square">'+
QA()+'<div class="gci-partner-title-creator" dir="auto"><div class="gci-partner-title" title="'+Q(b.Z.Eb)+'"><div class="gci-partner-logo">'+(b.Z.Cb?'<img src="'+Q(R(b.Z.Cb))+'" alt="'+Q(b.Z.Eb)+'"/>':"")+'</div><div class="gci-partner-name">'+N(b.Z.title)+'</div><div class="clear"></div></div></div><div class="gci-partner-counts">&nbsp;</div></div></div>');b=d('<div class="gci-fullscreen-item gci-partner-fullscreen-item gci-partner-item"><div class="gci-partner-fullscreen">'+e+RA()+'<div class="gci-partner-cover-bottom-gradient"><div class="gci-asset-cover-attribution-display"><strong>'+
N(b.F.Eb)+"</strong> "+SA(b)+"</div></div></div></div>");c=c+b;break;case "grid":d=""+('<div class="gci-partner-grid-item gci-partner-item"'+(b.Me?' style="width:'+Q(Ug(b.Me))+'px"':"")+'><div class="gci-partner-grid"><div class="gci-partner-image"></div></div><div class="gci-partner-grid-caption" dir="auto"><div class="gci-partner-title" title="'+Q(b.Z.Eb)+'"><div class="gci-partner-logo">'+(b.Z.Cb?'<img src="'+Q(R(b.Z.Cb))+'-s50" alt="'+Q(b.Z.Eb)+'"/>':"")+'</div><div class="gci-partner-name">'+
N(b.Z.title)+"</div>");if(b.Z.yc||b.Z.Ue)d+='<div class="gci-partner-objects-count">',b.Z.yc&&0<b.Z.yc&&(d+='<span class="gci-partner-assets-count">',10>b.Z.yc?d+="A few items":(e=N(10*Math.floor(b.Z.yc/10))+"+ items",d+=e),d+="</span>"),b.Z.Ue&&0<b.Z.Ue&&(d+=(b.Z.yc&&0<b.Z.yc?", ":"")+'<span class="gci-partner-artists-count">',10>b.Z.Ue?d+="A few artists":(e=N(10*Math.floor(b.Z.Ue/10))+"+ artists",d+=e),d+="</span>"),d+="</div>";d+='</div></div><div class="gci-grid-item-label-container">'+(b.Z.br?
'<span class="">'+N(b.Z.br.title)+"</span>":"")+'<span class="gci-grid-item-label">Collection</span></div></div>';b=M(d);c=c+b;break;default:b=M('<div class="gci-partner-gallery-item gci-partner-item"><div class="gci-partner-gallery"><div class="gci-partner-content"><div class="gci-partner-image"></div><div class="gci-partner-square-container"><div class="gci-partner-square">'+QA()+'<div class="gci-partner-title" title="'+Q(b.Z.Eb)+'"><div class="gci-partner-logo">'+(b.Z.Cb?'<img src="'+Q(R(b.Z.Cb))+
'-s40" alt="'+Q(b.Z.Eb)+'"/>':"")+'</div><div class="gci-partner-name">'+N(b.Z.title)+'</div><div class="clear"></div></div></div>'+RA()+'</div></div><div dir="auto"><div class="gci-asset-title-date"><span class="gci-asset-title" title="'+Q(b.F.Eb)+'">'+N(b.F.title)+"</span> "+(b.F.da?'<span class="gci-asset-date">('+N(b.F.da)+")</span>":"")+"</div>"+SA(b)+"</div></div></div>"),c=c+b}return M(c)},RA=function(){var b;b=""+('<div class="gci-partner-view">'+P(qv({label:O("View Collection"),type:"transparent",
ac:O("gci-partner-view-button")}))+"</div>");return M(b)},QA=function(){return M('<div class="gci-partner-featured">Featured Collection</div>')},SA=function(b){var c="";b.F.kb&&(b="By <strong>"+(N(b.F.kb)+"</strong>"),c+='<div class="gci-asset-creator">'+b+"</div>");return M(c)},UA=function(b){b=""+('<figure class="gci-onebox-item gci-onebox-partner"><figcaption class="gci-onebox-item-summary"><h3 title="'+Q(b.Z.name)+'">'+N(b.Z.name)+'</h3><span class="gci-onebox-item-details"><a class="gci-partner-external-link" href="'+
Q(R(b.Z.url))+'" target="_blank">'+N(b.Z.Pk)+'</a></span><div class="gci-onebox-item-objects-count"><span class="gci-onebox-item-assets-count">Discover the collection</span></div></figcaption><div class="gci-onebox-item-thumb"><div>'+(b.Z.Cb?'<img src="'+Q(R(b.Z.Cb))+'" alt="'+Q(b.Z.title)+'"/>':"")+"</div></div></figure>");return M(b)};
var VA=function(b){this.G=Y;this.k=b;var c=E(b,Vu,6);c||(c=new Vu,G(b,6,c));this.V=new ny(c);this.e=""};v(VA,KA);VA.prototype.a=null;VA.prototype.Ea=function(){return this.k};VA.prototype.getId=function(){return this.k.getId()};var WA=function(b){return ax(b.V,$s)||b.getId().toString()};VA.prototype.getName=function(){var b=sy(this.V,Mk),b=b&&b.ma()?b.ma():new Qi;return(new Pl(b)).T()};VA.prototype.getTitle=function(){return this.getName()};
var XA=function(b){b=(b=sy(b.V,Us))?b.Xb():new gm;return new sm(b)},YA=function(b){b=XA(b).getUrl();Ea(x(b))||0==b.indexOf("http")||(b="http://"+b);return b},ZA=function(b,c){var d="Visit "+(b.getName()+"'s website");return XA(b).T()||(c?d:"")};VA.prototype.ie=function(){var b=null,c=ZA(this)||"",d=YA(this);Ea(x(c))&&(c=this.getName());Ea(x(c))&&(c=d);Ea(x(d))?b=$("<span>").text(c):b=Ai(d,c);return b};VA.prototype.ds=function(){return!Ea(x($A(this)))};
var $A=function(b){return(b=E(b.k,aB,5))&&b.getUrl()?Ci(b.getUrl()):null},bB=function(b){var c=null,d=$A(b);d&&!Ea(x(d))&&(c=$("<img>").attr("src",d).attr("alt",b.getName()));return c};VA.prototype.Vb=function(){var b=sy(this.V,Nk),b=b&&b.ma()?b.ma():new Qi;return(new Pl(b)).T()};VA.prototype.Oe=function(){return null!=sy(this.V,Rk)};VA.prototype.b=function(){var b=sy(this.V,Rk),b=b&&nm(b)?nm(b):new km;return new xm(b)};
var fB=function(b){var c=[];cB(b).T()&&c.push(cB(b).T());dB(b).T()&&c.push(dB(b).T());eB(b)&&c.push(eB(b));return c.join(", ")},gB=function(b){return"TRUE"==ax(b.V,Zs)},cB=function(b){b=(b=sy(b.V,Ws))&&b.ma()?b.ma():new Qi;return new Pl(b)},dB=function(b){b=(b=sy(b.V,Xs))&&b.ma()?b.ma():new Qi;return new Pl(b)},eB=function(b){b=(b=sy(b.V,Ys))&&b.ma()?b.ma():new Qi;return(new Pl(b)).T()},hB=function(b){return eB(b)&&dB(b).T()?dB(b).T()+(", "+eB(b)):eB(b)?eB(b):dB(b).T()},iB=function(b){return(b=sy(b.V,
Dl))?om(b).T():null};VA.prototype.Dp=function(b){this.a=b};VA.prototype.ab=function(){return this.a?this.a.ab():null};VA.prototype.Ji=function(){var b=Ot(this.V,at);return b?parseInt(b,10):null};var jB=function(b){return(b=Ot(b.V,bt))?parseInt(b,10):null};VA.prototype.l=function(b){this.e=b};
VA.prototype.render=function(b,c,d){var e=this.a,f="",g={size:d,fadeIn:!0};switch(b){case "onebox":return kB(this);case "gallery":f="gci-partner-gallery",g.Bd=!0,g.Ma=!0;case "grid":f||(f="gci-partner-grid",g.Bd=!0,g.Ma=!0);case "fullscreen":f||(f="gci-partner-fullscreen",g.Bd=!0,g.Ma=!0);var h={title:Ta(this.getName(),50),Eb:this.getName(),Cb:$A(this),yc:this.Ji(),Ue:jB(this)},l=this.e;if(""!=l){var m=this.G.H;m&&(m=m.bh)&&m[l]&&$.extend(h,{br:{title:m[l].getTitle(),url:this.G.g+"/project/"+l}})}b=
$(L(TA,{view:b,Z:h,F:{title:Ta(e.getTitle(),50),Eb:e.getTitle(),ec:IA(e),da:lB(e),kb:HA(e)},Me:d&&d.width}));this.Oe()&&b.addClass("gci-localizable-item").data("RenderableItem",this);g=sA(e,g);d=b.find(".gci-partner-title");Pd(d[0],Od(d.text()));b.find(".gci-partner-image").replaceWith(g);b.find(".gci-partner-square-container").detach().appendTo(b.find(".collections-asset-thumbnail"));("gci-partner-grid"==f?b:b.find("."+f)).on("click.gci-partner",t(this.h,this));mB(e,b,c);b.data("asset",e);return b;
default:return b=$(L(UA,{Z:{name:this.getName(),url:YA(this),Pk:ZA(this)||YA(this),Cb:$A(this)}})),b.find("a").on("click.gci-partner",function(b){b.stopPropagation()}),b.on("click.gci-partner",t(this.h,this)),b}};var kB=function(b){var c=$(L(TA,{Z:{title:b.getName(),ng:hB(b),Cb:$A(b)},view:"onebox"}));c.on("click.gci-partner",t(b.h,b));return c};VA.prototype.h=function(){this.G.pg(this,this.e)};VA.prototype.g=function(){return!Ea(x(ax(this.V,ht)))};VA.prototype.pi=function(){return yy(this.V,dt)};
VA.prototype.gg=function(b){if(this.G.Jb()){var c=this.G.Jb();if(window._gaq&&null!=Ot(this.V,Vs)){var d=window.location.href,d=Ht(c,d);if(c=Lt(c,this))b=It(d,["location","v.filter","debug"],b),window._gaq.push([c+"._trackPageview",b])}}};var nB=function(b,c,d){var e=b.G.Jb();if(e&&c.length&&!Ea(x(YA(b)))){var f=T(c.get(0),"click",function(){Tt(e,this,"PartnerSiteLink")},!1,b);Cj(d,function(){mk(f)})}};
var oB=function(b){this.a=b};oB.prototype.Ea=function(){return this.a};oB.prototype.Of=function(){return 0==Iz(this.a).length};
var rB=function(b){for(var c=[],d=0;d<Iz(b.a).length;d++){for(var e=Iz(b.a)[d],f=[],g=!1,h=0;h<Ez(e).length;h++){var l=Ez(e)[h],m=new Pl(l.getName()),r=null,u=E(l,gz,5),w=p(u);w&&(g=!0,p(B(u,2))||p(B(u,3)))&&(r={lat:B(u,2)||0,lng:B(u,3)||0});m={$a:l.ff(),name:m.T(),Kx:w,offset:r,lp:B(l,6)||0};(r=E(l,nz,7))&&pB(r)?(m.pano=rz(r),B(r,2)&&(m.heading=B(r,2)),B(r,3)&&(m.pitch=B(r,3))):0<F(l,wz,3).length&&(m.pano=qB(l));f.push(m)}Bb(f,function(b,c){return Ab(c.lp,b.lp)});m=new Pl(e.getName());c.push({Bn:e.Hi(),
name:m.T(),Aa:f,Lx:g})}return c},sB=function(b,c){for(var d=0;d<Iz(b.a).length;d++){var e=Iz(b.a)[d];if(0<=nb(Ez(e),function(b){return b.ff()==c}))return e.Hi()}return null},uB=function(b,c){var d=tB(b,c),e;E(d,gz,5)?(e=E(d,gz,5),e=B(e,2)||0,d=E(d,gz,5),d=B(d,3),e={lat:e,lng:d||0}):e={lat:0,lng:0};return e},vB=function(b){var c=E(b.a,nz,3);if(c&&pB(c))return c;for(c=0;c<Iz(b.a).length;c++)for(var d=Iz(b.a)[c],e=0;e<Ez(d).length;e++){var f=Ez(d)[e];if(f=qB(f))return b=new nz,b.ai(f),b}return new nz},
wB=function(b){b=vB(b);if(oz(b)){var c=new xm(new km);Em(c,Xy(oz(b)),Wy(oz(b)));return c}return null},xB=function(b){for(var c=null,d=0;d<Iz(b.a).length&&null==c;d++){var e=Iz(b.a)[d];Ez(e)&&Ez(e).length&&(c=Ez(e)[0].ff())}return c},yB=function(b){var c=new Hz;Jz(c,b);return new oB(c)},zB=function(b,c){var d=tB(b,c);if(!d)return{};for(var e={},f=uB(b,c),g=0,h;h=F(d,wz,3)[g];g++)for(var l=0,m;m=F(h,tz,2)[l];l++)e[B(m,1)]=new google.maps.LatLng(B(m,2)+f.lat,B(m,3)+f.lng);return e},BB=function(b,c){var d=
tB(b,c);if(!d||!E(d,gz,5))return[];for(var e=[],d=E(d,gz,5),d=F(d,dz,4),f=0;f<d.length;f++){var g=d[f],h;h=E(g,bz,1);h=E(h,Zy,1);h=[AB(h)];for(var l=0;l<cz(E(g,bz,1)).length;l++){var m=AB(cz(E(g,bz,1))[l]);m.reverse();h.push(m)}e.push(h)}return e},AB=function(b){if(!b)return[];var c=[];b=F(b,Uy,1);for(var d=0;d<b.length;d++){var e=new google.maps.LatLng(Wy(b[d])||0,Xy(b[d])||0);c.push(e)}return c},CB=function(b,c){if(b.Of())return[];var d=tB(b,c);return d?F(d,lz,4):[]},tB=function(b,c){for(var d=
0;d<Iz(b.a).length;d++)for(var e=Iz(b.a)[d],f=0;f<Ez(e).length;f++){var g=Ez(e)[f];if(g.ff()==c)return g}return null},pB=function(b){return null!=(rz(b)||oz(b))},qB=function(b){var c=E(b,nz,7);if(c&&rz(c))return rz(c);b=F(b,wz,3);for(c=0;c<b.length;c++)for(var d=F(b[c],tz,2),e=0;e<d.length;e++){var f=d[e];if(f&&B(f,1))return B(f,1)}return null};
var DB=function(b){A(this,b,0,-1,null)};v(DB,z);var EB=function(b,c){var d,e={LE:B(c,1),V:(d=E(c,Vu,2))&&Yu(b,d),OC:B(c,3)};b&&(e.X=c);return e};DB.prototype.L=function(){return H(this)};var GB=function(b){A(this,b,0,-1,FB)};v(GB,z);var FB=[3],HB=function(b,c){var d,e={$a:B(c,1),V:(d=E(c,Vu,2))&&Yu(b,d),Qz:cc(F(c,DB,3),EB,b),QC:B(c,4),MC:B(c,6),PC:B(c,7),cF:B(c,5)};b&&(e.X=c);return e};GB.prototype.L=function(){return H(this)};GB.prototype.ff=function(){return B(this,1)};
var JB=function(b){A(this,b,0,-1,IB)};v(JB,z);var IB=[3],KB=function(b,c){var d,e={Bn:B(c,1),V:(d=E(c,Vu,2))&&Yu(b,d),fy:cc(F(c,GB,3),HB,b)};b&&(e.X=c);return e};JB.prototype.L=function(){return H(this)};JB.prototype.Hi=function(){return B(this,1)};var LB=function(b){A(this,b,0,-1,null)};v(LB,z);var MB=function(b,c){var d={timestamp:B(c,8),ba:B(c,7),uc:B(c,2),images:B(c,3),eF:B(c,6),AB:B(c,4),bc:B(c,5)};b&&(d.X=c);return d};LB.prototype.L=function(){return H(this)};var OB=function(b){A(this,b,0,101,NB)};v(OB,z);
var NB=[9,17,18],QB=function(b,c){var d,e=B(c,1),f=(d=c.getName())&&Si(b,d),g=(d=E(c,gm,3))&&im(b,d),h;if(h=d=E(c,aB,5)){h=d;var l={url:B(h,1),width:B(h,2),height:B(h,3)};b&&(l.X=h);h=l}e={id:e,name:f,fc:g,jy:h,V:(d=E(c,Vu,6))&&Yu(b,d),gl:B(c,7),SE:B(c,8),bw:cc(F(c,JB,9),KB,b),version:null!=B(c,15)?B(c,15):1,UE:null!=B(c,16)?B(c,16):1,xj:cc(F(c,Cu,17),Du,b),hA:cc(F(c,LB,18),MB,b),Uq:(d=E(c,Sy,19))&&Ty(b,d),pA:B(c,100)};dc(c,e,PB,OB.prototype.getExtension,b);b&&(e.X=c);return e};OB.prototype.L=function(){return H(this)};
OB.prototype.getId=function(){return B(this,1)};OB.prototype.getName=function(){return E(this,Qi,2)};var PB={},aB=function(b){A(this,b,0,-1,null)};v(aB,z);aB.prototype.L=function(){return H(this)};aB.prototype.getUrl=function(){return B(this,1)};aB.prototype.getHeight=function(){return B(this,3)};
var RB=function(b){A(this,b,0,-1,null)};v(RB,z);RB.prototype.L=function(){return H(this)};var SB=new ac(32939875,{BB:0},RB,function(b,c){var d,e={Z:(d=c.qa())&&QB(b,d)};b&&(e.X=c);return e});Mz[32939875]=SB;RB.prototype.qa=function(){return E(this,OB,1)};
var UB=function(b){A(this,b,0,-1,TB)};v(UB,z);var TB=[1];UB.prototype.L=function(){return H(this)};UB.prototype.Vc=function(){return F(this,Lz,1)};var WB=function(b){A(this,b,"gci.ks.gafr",-1,VB)};v(WB,z);var VB=[1];WB.prototype.L=function(){return H(this)};WB.Ta="gci.ks.gafr";WB.prototype.Ge=function(){return B(this,2)};var XB=function(b){A(this,b,0,-1,null)};v(XB,z);XB.prototype.L=function(){return H(this)};var YB=new ac(51177611,{dF:0},XB,function(b,c){var d={url:B(c,1)};b&&(d.X=c);return d});pz[51177611]=YB;XB.prototype.getUrl=function(){return B(this,1)};var ZB=function(b,c){this.x=b;this.y=c};v(ZB,mf);ZB.prototype.clone=function(){return new ZB(this.x,this.y)};var $B=function(b){return Math.sqrt(b.x*b.x+b.y*b.y)};ZB.prototype.a=mf.prototype.a;ZB.prototype.add=function(b){this.x+=b.x;this.y+=b.y;return this};
var aC=function(b,c){this.b=b;this.Aa=[];this.parse(c)};aC.prototype.zb=function(){return this.b};
aC.prototype.parse=function(b){if(p(this.b)){if(null===this.b)throw Error("Za");var c=this.b.documentElement;this.e=bC(c,"tile_width");this.k=bC(c,"tile_height");this.origin=cC(c,"origin","TOP_LEFT");if(!(this.origin in dC))throw Error("$a`"+this.origin);this.timestamp=bC(c,"timestamp");var d=c.childNodes,e=0;this.Aa=[];for(var f=0;f<d.length;++f)Of(d[f])&&this.Aa.push(new eC(e++,d[f],this.e,this.k,this.origin));if(2>bC(c,"tiler_version_number")&&p(b)&&b&&0<this.Aa.length)for(b=this.Aa[this.Aa.length-
1],c=fC(b),e=gC(b),f=0;f<d.length;++f){var g=Math.pow(2,d.length-f-1),h=Math.floor(c/g),g=Math.floor(e/g),l=c/h,m=e/g;l>m?g=gC(b)/l:h=fC(b)/m;this.Aa[f].Vf=Math.ceil(h/this.e);this.Aa[f].Ai=this.Aa[f].Vf*this.e-h;this.Aa[f].Wf=Math.ceil(g/this.k);this.Aa[f].Bi=this.Aa[f].Wf*this.k-g}this.a=this.Aa.length}};
var cC=function(b,c,d){d=null!=d?d:"";if(null==b)return d;var e=d;if(null!=b.attributes&&null!=b.attributes.getNamedItem(c))e=b.attributes.getNamedItem(c).value;else{var f;if(f=null!=b.pr)f=null!=b.pr("@"+c);f&&(e=b.pr("@"+c).get())}return null!=e?e:d},bC=function(b,c){var d=cC(b,c,""),d=parseInt(d,10);return isNaN(d)?0:d},iC=function(b,c){if(2>b.Aa.length)return 0;for(var d=0,e=1;e<b.Aa.length;++e)if(fC(b.Aa[e])>c.width||gC(b.Aa[e])>c.height){d=e-1;break}var e=b.Aa[d],f=b.Aa[d+1],g=fC(f)/fC(e),f=
gC(f)/gC(e),g=Math.log(c.width/fC(e))/Math.log(g),e=Math.log(c.height/gC(e))/Math.log(f);return hC(b,d+Math.min(g,e))},jC=function(b,c){var d=hC(b,Math.ceil(c)),e=hC(b,Math.floor(c)),f=c-Math.floor(c);return new pf(fC(b.Aa[e])*Math.pow(fC(b.Aa[d])/fC(b.Aa[e]),f),gC(b.Aa[e])*Math.pow(gC(b.Aa[d])/gC(b.Aa[e]),f))},hC=function(b,c){return je(c,0,b.Aa.length-1)},eC=function(b,c,d,e,f){this.a=b;this.k=d;this.b=e;this.P=c;this.g=f;this.e=new ZB(0,0);this.parse()};eC.prototype.w=function(){return this.P};
eC.prototype.jf=function(b,c,d,e,f){this.Vf=b;this.Wf=c;this.Ai=d;this.Bi=e;c=b=this.g=f||this.g;this.e=new ZB("TOP_LEFT"==b||"BOTTOM_LEFT"==b?0:-this.Ai,"TOP_LEFT"==c||"TOP_RIGHT"==c?0:-this.Bi)};eC.prototype.parse=function(){null!=this.P&&this.jf(bC(this.P,"num_tiles_x"),bC(this.P,"num_tiles_y"),bC(this.P,"empty_pels_x"),bC(this.P,"empty_pels_y"))};
var fC=function(b){return b.Vf*b.k-b.Ai},gC=function(b){return b.Wf*b.b-b.Bi},kC=function(b,c,d){c instanceof mf&&(d=c.y,c=c.x);return new mf(Math.floor((c*fC(b)-b.e.x)/b.k),Math.floor((d*gC(b)-b.e.y)/b.b))},lC=function(b,c,d){c instanceof mf&&(d=c.y,c=c.x);return new mf((c*b.k+b.e.x)/fC(b),(d*b.b+b.e.y)/gC(b))},dC={BOTTOM_LEFT:"BOTTOM_LEFT",BOTTOM_RIGHT:"BOTTOM_RIGHT",TOP_LEFT:"TOP_LEFT",TOP_RIGHT:"TOP_RIGHT"};
var mC=function(b){this.a=b};mC.prototype.Vo=function(b){return!!b&&0<b.a};mC.prototype.Cn=function(){return!1};mC.prototype.Ph=function(){return!1};var nC=function(){this.b=-1};var oC=function(b,c,d){this.b=-1;this.a=b;this.b=d||b.b||16;this.e=Array(this.b);this.k=Array(this.b);b=c;b.length>this.b&&(this.a.update(b),b=this.a.Ij(),this.a.reset());for(d=0;d<this.b;d++)c=d<b.length?b[d]:0,this.e[d]=c^92,this.k[d]=c^54;this.a.update(this.k)};v(oC,nC);oC.prototype.reset=function(){this.a.reset();this.a.update(this.k)};oC.prototype.update=function(b,c){this.a.update(b,c)};oC.prototype.Ij=function(){var b=this.a.Ij();this.a.reset();this.a.update(this.e);this.a.update(b);return this.a.Ij()};
var pC=function(){this.b=-1;this.b=64;this.a=[];this.h=[];this.j=[];this.e=[];this.e[0]=128;for(var b=1;b<this.b;++b)this.e[b]=0;this.g=this.k=0;this.reset()};v(pC,nC);pC.prototype.reset=function(){this.a[0]=1732584193;this.a[1]=4023233417;this.a[2]=2562383102;this.a[3]=271733878;this.a[4]=3285377520;this.g=this.k=0};
var qC=function(b,c,d){d||(d=0);var e=b.j;if(ja(c))for(var f=0;16>f;f++)e[f]=c.charCodeAt(d)<<24|c.charCodeAt(d+1)<<16|c.charCodeAt(d+2)<<8|c.charCodeAt(d+3),d+=4;else for(f=0;16>f;f++)e[f]=c[d]<<24|c[d+1]<<16|c[d+2]<<8|c[d+3],d+=4;for(f=16;80>f;f++){var g=e[f-3]^e[f-8]^e[f-14]^e[f-16];e[f]=(g<<1|g>>>31)&4294967295}c=b.a[0];d=b.a[1];for(var h=b.a[2],l=b.a[3],m=b.a[4],r,f=0;80>f;f++)40>f?20>f?(g=l^d&(h^l),r=1518500249):(g=d^h^l,r=1859775393):60>f?(g=d&h|l&(d|h),r=2400959708):(g=d^h^l,r=3395469782),
g=(c<<5|c>>>27)+g+m+r+e[f]&4294967295,m=l,l=h,h=(d<<30|d>>>2)&4294967295,d=c,c=g;b.a[0]=b.a[0]+c&4294967295;b.a[1]=b.a[1]+d&4294967295;b.a[2]=b.a[2]+h&4294967295;b.a[3]=b.a[3]+l&4294967295;b.a[4]=b.a[4]+m&4294967295};
pC.prototype.update=function(b,c){if(null!=b){p(c)||(c=b.length);for(var d=c-this.b,e=0,f=this.h,g=this.k;e<c;){if(0==g)for(;e<=d;)qC(this,b,e),e+=this.b;if(ja(b))for(;e<c;){if(f[g]=b.charCodeAt(e),++g,++e,g==this.b){qC(this,f);g=0;break}}else for(;e<c;)if(f[g]=b[e],++g,++e,g==this.b){qC(this,f);g=0;break}}this.k=g;this.g+=c}};
pC.prototype.Ij=function(){var b=[],c=8*this.g;56>this.k?this.update(this.e,56-this.k):this.update(this.e,this.b-(this.k-56));for(var d=this.b-1;56<=d;d--)this.h[d]=c&255,c/=256;qC(this,this.h);for(d=c=0;5>d;d++)for(var e=24;0<=e;e-=8)b[c]=this.a[d]>>e&255,++c;return b};
var rC=function(b,c){this.a=b;this.k=c||"nt0";this.b={}};v(rC,mC);k=rC.prototype;k.yl=function(){return this.a+"=g"};k.uh=function(b){return new aC(b,!0)};k.getTileUrl=function(b,c,d){return this.a+"="+("x"+b+"-y"+c+"-z"+d)};
k.sh=function(b,c,d,e,f){var g=b+"-"+c+"-"+d;if(!(g in this.b)){e=Zh(new Mh(this.a)).substr(1)+"="+("x"+b+"-y"+c+"-z"+d)+"-"+this.k+this.wr(b,c,d,e,f);f=new oC(new pC,[123,43,78,35,222,44,197,197],64);for(var h=[],l=0,m=0;m<e.length;m++){for(var r=e.charCodeAt(m);255<r;)h[l++]=r&255,r>>=8;h[l++]=r}f.reset();f.update(h);e=f.Ij();e=Sc(e);e=e.substring(0,e.length-1);e=e.replace(/\+/g,"_").replace(/\//g,"_");f=this.a;0==f.indexOf("http://lh3.ggpht.com")&&(f=f.replace("http://lh3.ggpht.com",sC[(b+c+1)%
sC.length]));this.b[g]=f+"="+("x"+b+"-y"+c+"-z"+d)+"-"+this.k+e}return this.b[g]};k.wr=function(b,c,d,e,f){return Math.floor(e/86400)+"-d"+f.location.hostname.split(".").slice(-3).join(".")};var sC=["http://lh3.ggpht.com","http://lh4.ggpht.com","http://lh5.ggpht.com","http://lh6.ggpht.com"];
var tC=function(b,c){rC.call(this,b,"t");this.e=c};v(tC,rC);tC.prototype.wr=function(){return this.e};var uC=function(b){this.a="";this.url=b};v(uC,mC);k=uC.prototype;k.yl=function(){return this.url.yl()};k.uh=function(b){return this.url.uh(b)};k.getTileUrl=function(b,c,d){return this.url.getTileUrl(b,c,d)};k.sh=function(b,c,d,e,f){return this.url.sh(b,c,d,e,f)};k.Vo=function(b){return this.url.Vo(b)};k.Cn=function(b){return this.url.Cn(b)};k.Ph=function(b){return this.url.Ph(b)};
var vC=function(b){uC.call(this,b);this.b=0};v(vC,uC);var wC=function(b,c){if(c&&c.Aa){var d=c.Aa[0],e=c.Aa[c.Aa.length-1],f=Math.max(fC(e),gC(e));b.b=0;for(var g=2;g<=f;g*=2){var h=fC(d)/(fC(e)/g),l=gC(d)/(gC(e)/g);if(!(1>=h&&1>=l)){var m=new eC(0,null,d.k/h,d.b/l,c.origin);m.jf(1,1,d.Ai/h,d.Bi/l);c.Aa.unshift(m);b.b+=1}}for(d=0;d<c.Aa.length;++d)c.Aa[d].a=d;c.a=c.Aa.length}};vC.prototype.Ph=function(b){return this.url.Ph(t(function(c){wC(this,c);b&&b(c)},this))}; vC.prototype.uh=function(b){b=this.url.uh(b);wC(this,b);return b};vC.prototype.getTileUrl=function(b,c,d){return this.url.getTileUrl(b,c,Math.max(0,d-this.b))};vC.prototype.sh=function(b,c,d,e,f){return this.url.sh(b,c,Math.max(0,d-this.b),e,f)};
var xC=function(b,c,d,e){this.x=this.x=b;this.y=this.y=c;this.z=this.z=d;this.size=this.size=p(e)?e:null};wa("MicroscopeState",xC);wa("MicroscopeSize",pf);var yC=function(b,c){return p(b)!=p(c)?!1:b==c||b.x==c.x&&b.y==c.y&&b.z==c.z&&qf(b.size,c.size)};
var tA=function(b){this.G=Y;this.a=b;this.j=null==this.a.ma()?null:Tl(this.a.ma());var c=E(b,Vu,2);c||(c=new Vu,G(b,2,c));this.V=new ny(c);this.g={};this.h="";this.k=null;this.qb()&&(c=E(this.a,Hz,14),this.k=new oB(c));var c=null,d=this.a.getExtension(SB);d&&(d=d.qa())&&(c=new VA(d));this.Z=c;this.e=[];if(b=F(b,Cu,20))for(c=0;d=b[c];c++){var e=d.Fc();(d=(e=e?e.getExtension(Ey):null)&&e.getTitle()?new Hy(d):null)&&this.e.push(d)}};v(tA,KA);k=tA.prototype;k.Z=null;k.clone=function(){return new tA(this.a.L())};
k.data=function(b,c){return p(c)?this.g[b]=c:this.g[b]};k.removeData=function(b){delete this.g[b]};k.Lo=function(){return!B(this.a,92)};
var zC=function(b){return b.a.getId()==B(b.a,92)&&0<B(b.a,90)},AC=function(b){return b.a.getId()!=B(b.a,92)},BC=function(b){return 2==B(b.a,13)||3==b.a.U()},zA=function(b){return 8==b.a.U()},vA=function(b){return 1==b.a.U()},CC=function(b){return vA(b)||b.Re()},DC=function(b){return yA(b)||b.qb()||b.Pc()},EC=function(b){return Hi()?BC(b)&&!b.Se():BC(b)},yA=function(b){return 2==b.a.U()},FC=function(b){return!(!b.Re()||!b.a.Lc())},wA=function(b){return 6==b.a.U()};k=tA.prototype;
k.Re=function(){return 3==this.a.U()};k.qb=function(){return 7==this.a.U()};k.Pc=function(){return 9==this.a.U()};k.Se=function(){return B(this.a,23)||!1};k.oe=function(){return"TRUE"==Ot(this.V,Fl)};
var GC=function(b){return zA(b)||b.Pc()?!1:b.G.oa()?!0:b.G.Hd()&&"TRUE"==ax(b.V,Jl)||b.qb()?!1:!0},HC=function(b,c){if(c&&b.a.U()==c.U())switch(b.a.U()){case 1:case 3:if(xA(b)==xA(c)&&b.Xc()==c.Xc()||FC(b)&&FC(c)&&b.Lc()==c.Lc())return!0;break;case 9:return B(b.a,110)==B(c.a,110);case 2:return b.Lc()==c.Lc();case 8:return b.Cd()==c.Cd();case 6:return null==b.ma()?null==c.ma():Sl(b.ma(),c.ma());default:return b.getId()==c.getId()}return!1};tA.prototype.getId=function(){return this.a.getId()};
tA.prototype.U=function(){return this.a.U()};
var IC=function(b,c,d){var e="";if(yA(b)||b.Re()&&b.a.Lc())e=Gi(b.Lc());else if(b.Pc())e="http://objects3d.storage.googleapis.com/"+B(b.a,110)+"/3d/poster-0.jpg";else if(BC(b)){var f;c?f=175:d&&1200>d.width&&1200>d.height?f=Oy(Math.ceil(Math.max(d.width,d.height))):f=1200;e=b.a.Xc()?b.a.Xc()+"=s"+f:""}else if(b.qb()&&!B(b.a,6))try{var g=b.k,h=g&&vB(g),g=null;if(h&&(!d||640<d.width))var l=h.getExtension(YB),g=l&&l.getUrl()||"";if(g)e=g;else if(h){var m=rz(h)||"",l="",r=oz(h);r&&Wy(r)&&Xy(r)&&(l=Wy(r)+
","+Xy(r));var u=ka(B(h,2))?"&heading="+B(h,2):"",w=ka(B(h,3))?"&pitch="+B(h,3):"",C=ka(sz(h))?"&fov="+sz(h):"";if(m||l){f="400x300";if(d||!c)d=d||b.ab(),f=Math.floor(parseInt(d.width,10))+"x"+Math.floor(parseInt(d.height,10));e=Li(l?"&location="+l:"&pano="+m,u,w,C,f)}}}catch(J){}else e=c?b.a.Xc()?b.a.Xc()+"":"":B(b.a,6)?B(b.a,6)+"":b.a.Xc()?b.a.Xc()+"":"";return Ci(e)},xA=function(b,c){return IC(b,!1,c)};tA.prototype.Xc=function(){return IC(this,!0)};
var JC=function(b,c){var d=B(b.a,6),e=d||"";d&&(e=Ci(d));b.Se()?(d=Ot(b.V,Bl),e=new tC(e,d)):e=new rC(e);return c?e:new vC(e)};tA.prototype.Cd=function(){return this.a.Cd()};tA.prototype.Lc=function(){return this.a.Lc()};tA.prototype.ma=function(){return this.j};
var LC=function(b){var c=B(b.a,17);if(null==c)return!0;switch(c){case 1:return!0;case 0:return!1;case 2:return!KC(b);default:return!1}},KC=function(b){return 2!=B(b.a,17)?!1:(b=F(b.a,hz,104))&&b.length?!lb(b,function(b){switch(b.qh()){case 3:case 4:case 5:case 2:case 15:return!0;case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:return!1;default:return!0}}):!1};
tA.prototype.ab=function(){return ka(B(this.a,8))&&ka(B(this.a,7))?{width:B(this.a,7),height:B(this.a,8)}:this.qb()?{width:640,height:480}:null};tA.prototype.lh=function(){if(0==this.a.lh())return 4/3;if(1==this.a.lh())return 16/9;if(vA(this)){var b=this.ab();return b?b.width/b.height:4/3}return yA(this)?4/3:wA(this)?16/9:0};var NC=function(b,c){var d=sp(b.G.ta),e={assetIds:B(b.a,92)};Sm(vp(d,K.Eu,e,WB),t(b.o,b,c),MC)};
tA.prototype.o=function(b,c){var d=F(c,UB,1)[0],e=[],f=!0;$.each(d.Vc(),t(function(b,c){if(c.getId()){var d=new tA(c);e.push(d);f&=!!py(d.V,Vk)}},this));f&&3==e.length&&vA(e[1])&&yA(e[2])&&(e[1].data("gci.asset.story-video",e[2]),e[2].data("gci.asset.story-image",e[1]),e[0].data("gci.asset.story-video",e[2]),e[0].data("gci.asset.story-image",e[1]));b(e)};
var OC=function(b,c,d){b=b.V;b=b.a?Wu(b.a):[];for(var e=0,f;f=b[e];e++)if(!(d&&0<=$.inArray(f.cc(),d))){var g=f,h=f.cc()||"";c(g,zt[h]||null,uy(f))}},PC=function(b,c,d){OC(b,function(b,d,g){d&&0<d.oh()&&c(b,d,g)},d)},RC=function(b){var c=!1;PC(b,function(){c=!0;return!1},QC());return c},SC=function(b,c,d){return p(c)||p(d)?$.map(b.e,function(b){var f=!p(c)||b.nc()==c,g=!p(d)||b.getStatus()==d;return f&&g?b:null}):b.e};tA.prototype.getTitle=function(b){return Ot(this.V,Mk,b)||""};
var lB=function(b){return Ot(b.V,Al)||""};tA.prototype.Vb=function(){return Ot(this.V,Nk)||""};
var HA=function(b){var c=ry(b.V,Qk,void 0);0==c.length&&PC(b,function(b,e,f){Aa(b.getKey()||"",K.tu)&&c.push(f)});return c.join(", ")},TC=function(b){var c=b.getTitle()||"(untitled item)";return(b=HA(b))?c+" - "+b:c},UC=function(b){return(b=sy(b.V,Cx))?b&&nm(b)?new xm(nm(b)):null:null},VC=function(b){return(b=sy(b.V,Dx))?b&&nm(b)?new xm(nm(b)):null:null},WC=function(b){return(b=sy(b.V,Sk))?b&&nm(b)?new xm(nm(b)):null:null};
tA.prototype.ie=function(){var b=sy(this.V,Uk);if(!b)return null;b=b.Xb();if(!b)return null;var c=new sm(b),b=null,d=c.getUrl(),c=c.T(),c=Ea(x(c))?Ea(x(d))?"":d:c;Ea(x(d))?b=$("<span>").text(c):b=Ai(d,c);return b};tA.prototype.qa=function(){return this.Z};var IA=function(b){return b.Z?b.Z.getName():""};tA.prototype.hf=function(){return ax(this.V,El)};tA.prototype.b=function(){return Cy(this.V)};tA.prototype.l=function(b){this.h=b};var MC=function(){vt("Failed to load assets.")};
tA.prototype.render=function(b,c,d){c=c||{};var e=c.Xf||q,f=c.context||null,g=null,h=null,g=Jt(this.G)&&this.qa()&&this.qa().getId()==xx(this.G)?"":IA(this),l=this;switch(b){case "grid":b=$(L(lA,{view:b,F:{kb:Ta(HA(this),144),da:lB(this),nl:HA(this),Gw:g,Eb:this.getTitle(),Oc:this.Oc(),Pc:this.Pc(),Re:this.Re(),oe:this.oe(),ec:Ta(g,144),title:Ta(this.getTitle(),50)},Me:d&&d.width}));h=sA(this,{Ec:d,fadeIn:!0,Ma:!0});b.find(".gci-asset-image").replaceWith(h);g=b;break;case "gallery":b=XC(this);h=sA(this,
{size:d,fadeIn:!0,Bd:!0});b.find(".gci-asset-image").replaceWith(h);this.Oe()&&b.addClass("gci-localizable-item").data("RenderableItem",this);g=b.find(".gci-asset-gallery");break;case "fullscreen":b=$(L(lA,{view:b,F:{kb:HA(this),da:lB(this),Eb:this.getTitle(),Oc:this.Oc(),ec:g,title:Ta(this.getTitle(),50)}}));h=sA(this,{size:d,fadeIn:!0,Bd:!0,Ma:!0});b.find(".gci-asset-image").replaceWith(h);b.find(".gci-asset-square-container").detach().appendTo(b.find(".collections-asset-thumbnail"));g=b.find(".gci-asset-fullscreen");
break;case "topbox":b=$(L(lA,{view:b}));h=sA(this,{size:d,fadeIn:!0,Bd:!0,Ma:!1});b.find(".gci-asset-image").replaceWith(h);g=b;break;case "onebox":b=$(L(lA,{view:b,F:{title:Ta(this.getTitle(),50)}}));h=sA(this,{size:d,fadeIn:!1,Bd:!1,Ma:!1});b.find(".gci-onebox-item-thumb").append(h);g=b;break;default:return $("<div>")}g&&g.on("click.gci-asset",function(b){e(b);l.Zf(f,!l.qb()&&h)});h&&(c.au=g);mB(this,b,c);b.data("asset",this);return b};
var XC=function(b){var c=Jt(b.G)&&b.qa()&&b.qa().getId()==xx(b.G)?"":IA(b);return $(L(lA,{view:"gallery",F:{kb:HA(b),da:lB(b),Eb:b.getTitle(),Oc:b.Oc(),Pc:b.Pc(),oe:b.oe(),ec:c,title:Ta(b.getTitle(),50)}}))},YC=function(b){return $(L(pA,{F:{kb:HA(b),da:lB(b),qw:!1,el:!1,Eb:b.getTitle(),Oc:b.Oc(),Pc:b.Pc(),oe:b.oe(),ec:IA(b),title:Ta(b.getTitle(),50)}}))},mB=function(b,c,d){var e=d||{},f=e.Xf||q;c.find(".gci-asset-title").on("click.gci-asset",function(){f();b.Zf(e.context,e.au);return!1});if(b.Oc())c.find(".gci-asset-creator.gci-asset-info-link").on("click.gci-asset",
function(){f();ZC(b);return!1});c.find(".gci-asset-partner.gci-asset-info-link").on("click.gci-asset",function(){f();b.G.pg(b.qa());return!1})},$C=function(b){var c=b.find(".gci-asset-actions");return c.length?c:$(L(qA)).on("click",ed).appendTo(b)};tA.prototype.Oc=function(){return 0<SC(this,4,1).length};var ZC=function(b){var c=SC(b,4,1);c.length&&(1==c.length?b.G.Rj(c[0].nc(),c[0].ya()):aD(c))};
tA.prototype.Zf=function(b,c){var d={},e={"l.id":this.getId()},f=b||{};f.aa&&f.aa.ml&&(f.aa.ml(this.getId()),d.loader=f.aa);f.rb&&(d.from=f.rb);f.Kk&&(d.startSlideshow=f.Kk);f.Zb&&(d.exhibitId=f.Zb,e.exhibitId=f.Zb);f.Sk&&(d.userGallery="",e.userGallery="");if(c&&CC(this)&&!zi()){var g=c.find(".collections-image-holder"),f=g.clone(),h=f.find(".gci-microscope");h.length&&(h.remove(),f.find(".holder-background").show());f.addClass("gci-asset-viewer-transition-clone");var h=c.offset(),l=g.width(),m=
g.height();f.css({position:"absolute",top:h.top,left:h.left,right:"auto",opacity:1,width:l,height:m});g=$("body").height();h=$("body").width();l=this.ab()||{width:l,height:m};m=l.height*Math.min((h-50)/l.width,1);m=Math.min(m,bD());l=Math.min(h-50,l.width*Math.min(m/l.height,1));g={top:g/2-m/2,left:h/2-l/2,width:l,height:m};$("body").append(f);f.animate(g,333)}this.h&&(e.projectId=this.h);this.G.Oa(this.G.W.Zd,e,d)};
var dD=function(b){b=cD(b);if(!b)return null;var c=void 0;B(b,4)&&B(b,5)&&(c=new pf(B(b,4),B(b,5)));return new xC(B(b,1),B(b,2),b.getZoom(),c)},eD=function(b,c){if(b.size)return b;var d=1/Math.pow(2,c.a-b.z);return new xC(b.x,b.y,b.z,new pf(1280/(d*c.size.width),800/(d*c.size.height)))},fD=function(b){var c=new Hz;Jz(c,b);b=new Lz;D(b,4,7);G(b,14,c);return new tA(b)};
var gD=function(b){A(this,b,0,-1,null)};v(gD,z);var hD=function(b,c){var d={id:B(c,1),title:B(c,2),lang:null!=B(c,3)?B(c,3):"en"};b&&(d.X=c);return d};k=gD.prototype;k.L=function(){return H(this)};k.getId=function(){return B(this,1)};k.getTitle=function(){return B(this,2)};k.setTitle=function(b){D(this,2,b)};k.getLang=function(){return null!=B(this,3)?B(this,3):"en"};
var jD=function(b){A(this,b,0,-1,iD)};v(jD,z);var iD=[3],kD=function(b,c){var d,e={url:B(c,1),V:(d=E(c,Vu,2))&&Yu(b,d),hl:cc(c.Wb(),hD,b)};b&&(e.X=c);return e};jD.prototype.L=function(){return H(this)};jD.prototype.getUrl=function(){return B(this,1)};jD.prototype.Wb=function(){return F(this,gD,3)};
var lD=function(b){this.b=b||new jD};lD.prototype.tc=function(){return this.b};lD.prototype.a=function(b,c,d){var e=mD(this,c,!0);if(!e){var e=new gD,f=this.b.Wb()||[];f.push(e);ec(this.b,3,f)}D(e,1,b);D(e,3,c);d&&e.setTitle(d)};var mD=function(b,c,d){b=b.b.Wb();if(!b)return null;if(!c)return b[0];for(var e=null,f=0;f<b.length;f++){var g=b[f];if(Ml(c,g.getLang()))return g;Ml(c,g.getLang(),!0)&&(2!=g.getLang().length&&e||(e=g))}return d?null:e||b[0]};
var nD=function(b){A(this,b,0,-1,null)};v(nD,z);nD.prototype.L=function(){return H(this)};nD.prototype.U=function(){return null!=B(this,1)?B(this,1):1};nD.prototype.ma=function(){return E(this,Qi,2)};var oD=function(b){A(this,b,0,-1,null)};v(oD,z);var pD=function(b,c){var d,e;if(e=d=c.getContent()){e=d;var f,g={type:null!=B(e,1)?B(e,1):1,text:(f=e.ma())&&Si(b,f)};b&&(g.X=e);e=g}f={content:e,hF:(d=E(c,nz,2))&&qz(b,d)};b&&(f.X=c);return f};oD.prototype.L=function(){return H(this)};oD.prototype.getContent=function(){return E(this,nD,1)};oD.prototype.setContent=function(b){G(this,1,b)};
var qD=function(b){this.a=b};qD.prototype.Ea=function(){return this.a};var rD=function(b){var c=b.a.getContent();c||(c=new nD,D(c,1,1),b.a.setContent(c));b=c.ma();b||(b=new Qi,G(c,2,b));return Tl(b)},sD=function(b){return null==b?new qD(new oD):b instanceof qD?b:null};
var tD=function(b){A(this,b,0,-1,null)};v(tD,z);var vD=function(b,c){var d,e=B(c,1),f=(d=cD(c))&&kz(b,d),g;if(g=d=uD(c)){g=d;var h={top:B(g,1),left:B(g,2),Mg:null!=B(g,3)?B(g,3):1};b&&(h.X=g);g=h}var h=(d=c.getStreetView())&&qz(b,d),l;if(l=d=c.If())l={gA:B(d,1),qC:B(d,2)},b&&(l.X=d);e={$g:e,ND:f,fC:g,streetView:h,Mm:l};b&&(e.X=c);return e};tD.prototype.L=function(){return H(this)};tD.prototype.wa=function(){return B(this,1)};var cD=function(b){return E(b,jz,2)},uD=function(b){return E(b,wD,5)};
tD.prototype.getStreetView=function(){return E(this,nz,3)};tD.prototype.If=function(){return E(this,xD,4)};var wD=function(b){A(this,b,0,-1,null)};v(wD,z);wD.prototype.L=function(){return H(this)};wD.prototype.ur=function(){return B(this,1)};wD.prototype.sr=function(){return B(this,2)};var yD=function(b){return null!=B(b,3)?B(b,3):1},xD=function(b){A(this,b,0,-1,null)};v(xD,z);xD.prototype.L=function(){return H(this)};xD.prototype.He=function(){return B(this,1)};
var zD=function(b){A(this,b,0,-1,null)};v(zD,z);zD.prototype.L=function(){return H(this)};zD.prototype.A=function(){return B(this,1)};var BD=function(b){A(this,b,0,-1,AD)};v(BD,z);var AD=[1];BD.prototype.L=function(){return H(this)};var CD=function(b,c){ec(b,1,c)};BD.prototype.lh=function(){return B(this,2)};BD.prototype.U=function(){return null!=B(this,3)?B(this,3):0};var DD=function(b){A(this,b,0,-1,null)};v(DD,z);var ED=function(b,c){var d={TB:B(c,1),cD:B(c,2)};b&&(d.X=c);return d};DD.prototype.L=function(){return H(this)};DD.prototype.dd=function(){return B(this,1)};
var FD=function(b){A(this,b,0,-1,null)};v(FD,z);FD.prototype.L=function(){return H(this)};FD.prototype.getZoom=function(){return B(this,2)};var HD=function(b){A(this,b,0,-1,GD)};v(HD,z);var GD=[4];HD.prototype.L=function(){return H(this)};var ID=function(b){return E(b,tD,1)},JD=function(b){A(this,b,0,-1,null)};v(JD,z);JD.prototype.L=function(){return H(this)};JD.prototype.ff=function(){return B(this,1)};JD.prototype.wa=function(){return B(this,2)};JD.prototype.Hi=function(){return B(this,3)};
var LD=function(b){A(this,b,0,-1,KD)};v(LD,z);var KD=[1];LD.prototype.L=function(){return H(this)};var ND=function(b){return F(b,MD,1)},OD=function(b,c){ec(b,1,c)},QD=function(b){A(this,b,0,14,PD)};v(QD,z);
var PD=[10,13],SD=function(b,c){var d,e=B(c,1),f;if(f=d=E(c,zD,11)){f=d;var g={lF:B(f,1)};b&&(g.X=f);f=g}e={type:e,VB:f,text:(d=c.ma())&&Si(b,d),F:(d=c.pa())&&vD(b,d),caption:(d=c.Kc())&&Si(b,d),SB:(d=E(c,Qi,12))&&Si(b,d),yd:B(c,6),FB:cc(F(c,jD,10),kD,b),jw:B(c,7),tw:B(c,8),fF:cc(F(c,oD,13),pD,b)};dc(c,e,RD,QD.prototype.getExtension,b);b&&(e.X=c);return e};k=QD.prototype;k.L=function(){return H(this)};k.U=function(){return B(this,1)};k.ma=function(){return E(this,Qi,2)};
k.pa=function(){return E(this,tD,9)};k.zc=function(b){G(this,9,b)};k.Kc=function(){return E(this,Qi,4)};k.ph=function(){return B(this,8)};var RD={},MD=function(b){A(this,b,0,-1,TD)};v(MD,z);
var TD=[2],VD=function(b,c){var d,e=B(c,3),f;if(f=d=c.getStyle())f=d,d={K:cc(F(f,DD,1),ED,b),Jc:B(f,2),type:null!=B(f,3)?B(f,3):0},b&&(d.X=f),f=d;var g;if(g=d=E(c,HD,4)){var h;g=(h=ID(d))&&vD(b,h);var l=(h=E(d,Vu,2))&&Yu(b,h),m;if(m=h=E(d,FD,3)){var r;m={LD:(r=E(h,km,1))&&lm(b,r),zoom:B(h,2),pixelWidth:B(h,3),pixelHeight:B(h,4)};b&&(m.X=h)}r=m;m=cc(F(d,km,4),lm,b);var u;if(u=h=E(d,JD,5))u={$a:B(h,1),$g:B(h,2),Bn:B(h,3)},b&&(u.X=h);h={bC:g,V:l,rF:r,zE:m,NC:u};b&&(h.X=d);g=h}e={Dn:e,style:f,aF:g,UB:cc(UD(c), SD,b)};b&&(e.X=c);return e};MD.prototype.L=function(){return H(this)};var WD=function(b){return B(b,3)};MD.prototype.getStyle=function(){return E(this,BD,1)};var UD=function(b){return F(b,QD,2)};
var XD=function(b){this.a=b};XD.prototype.tc=function(){return this.a};XD.prototype.zc=function(b){var c=new tD;b=b.getId();D(c,1,b);this.a.zc(c)};
var YD=function(b){return(b=b.a.Kc())?new Pl(b):null},ZD=function(b,c){var d=YD(b);return d?d.T(c):null},$D=function(b,c,d){var e=[],f=c||"en";y(F(b.a,jD,10),function(b){if((b=mD(new lD(b),c,d))&&b.getId()){var h=new lD;h.a(b.getId()||"",f,b.getTitle()||"");e.push(h)}});return e},aE=function(b){var c=$D(b),d=ZD(b);b=B(b.a,6)||null;return!!c&&!!c[0]||!!d||!!b},bE=function(b){return hb(F(b.a,oD,13),function(b){return new qD(b)})};
var cE=function(b){A(this,b,0,-1,null)};v(cE,z);var dE=function(b,c){var d={email:B(c,1),permission:B(c,2),id:B(c,100)};b&&(d.X=c);return d};cE.prototype.L=function(){return H(this)};cE.prototype.getId=function(){return B(this,100)};var fE=function(b){A(this,b,0,9,eE)};v(fE,z);var eE=[4,5,7],kE=function(b,c){var d,e=B(c,1),f=(d=E(c,Vu,2))&&Yu(b,d),g;if(g=d=E(c,gE,3))g={YC:B(d,1),TC:B(d,2),wD:B(d,3),DE:B(d,4)},b&&(g.X=d);e={sk:e,V:f,Sz:g,GD:cc(F(c,hE,4),iE,b),xj:cc(F(c,Cu,5),Du,b),KE:B(c,6),hA:cc(F(c,LB,7),MB,b),$h:B(c,8)};dc(c,e,jE,fE.prototype.getExtension,b);b&&(e.X=c);return e};fE.prototype.L=function(){return H(this)};fE.prototype.ya=function(){return B(this,1)};var jE={},gE=function(b){A(this,b,0,-1,null)};v(gE,z);
gE.prototype.L=function(){return H(this)};var hE=function(b){A(this,b,0,-1,null)};v(hE,z);var iE=function(b,c){var d={sk:B(c,1),type:B(c,2),Sz:B(c,3),distance:B(c,4)};b&&(d.X=c);return d};hE.prototype.L=function(){return H(this)};hE.prototype.ya=function(){return B(this,1)};hE.prototype.U=function(){return B(this,2)};
var lE=function(b){A(this,b,0,-1,null)};v(lE,z);var mE=function(b,c){var d={top:B(c,1),left:B(c,2),width:B(c,5),color:B(c,3),backgroundColor:B(c,4)};b&&(d.X=c);return d};lE.prototype.L=function(){return H(this)};lE.prototype.ur=function(){return B(this,1)};lE.prototype.sr=function(){return B(this,2)};
var nE=function(b){A(this,b,0,-1,null)};v(nE,z);var oE=function(b,c){var d={lang:B(c,1),tF:B(c,2),tE:B(c,3)};b&&(d.X=c);return d};nE.prototype.L=function(){return H(this)};nE.prototype.getLang=function(){return B(this,1)};var qE=function(b){A(this,b,0,29,pE)};v(qE,z);
var pE=[17,16,21,25],uE=function(b,c){var d,e;if(e=d=E(c,rE,1)){e=d;var f={KD:B(e,1),PD:null!=B(e,2)?B(e,2):0};b&&(f.X=e);e=f}var f=B(c,2),g=null!=B(c,26)?B(c,26):1,h=B(c,3),l=cc(F(c,cE,17),dE,b),m=B(c,4),r=(d=E(c,lE,10))&&mE(b,d),u=(d=E(c,lE,12))&&mE(b,d),w=B(c,13),C=(d=sE(c))&&vD(b,d),J;if(J=d=c.getPanel()){J=d;var V={o:cc(ND(J),VD,b)};b&&(V.X=J);J=V}e={RC:e,id:f,type:g,$h:h,ZB:l,version:m,eC:r,dC:u,$g:w,cC:C,panel:J,jw:B(c,18),tw:B(c,15),JC:B(c,19),AD:B(c,20),wn:cc(c.Vc(),Nz,b),xj:cc(F(c,Cu,21),
Du,b),V:(d=E(c,Vu,22))&&Yu(b,d),vm:null!=B(c,24)?B(c,24):"en",sF:cc(F(c,nE,25),oE,b),Uq:(d=E(c,Sy,28))&&Ty(b,d)};dc(c,e,tE,qE.prototype.getExtension,b);b&&(e.X=c);return e};qE.prototype.L=function(){return H(this)};qE.prototype.getId=function(){return B(this,2)};qE.prototype.U=function(){return null!=B(this,26)?B(this,26):1};qE.prototype.wa=function(){return B(this,13)};var vE=function(b,c){D(b,13,c)},sE=function(b){return E(b,tD,27)};qE.prototype.getPanel=function(){return E(this,LD,14)};
qE.prototype.ph=function(){return B(this,15)};qE.prototype.Vc=function(){return F(this,Lz,16)};var wE=function(b,c){G(b,22,c)},xE=function(b){return null!=B(b,24)?B(b,24):"en"},yE=function(b,c){ec(b,25,c)},tE={},rE=function(b){A(this,b,0,-1,null)};v(rE,z);rE.prototype.L=function(){return H(this)};var zE=function(b){B(b,1)};
var AE=function(b){A(this,b,0,-1,null)};v(AE,z);k=AE.prototype;k.L=function(){return H(this)};k.U=function(){return B(this,1)};k.pa=function(){return E(this,Lz,2)};k.zc=function(b){G(this,2,b)};k.Fc=function(){return E(this,fE,3)};k.Fe=function(){return E(this,qE,4)};k.qa=function(){return E(this,OB,6)};
var CE=function(b){A(this,b,"gci.ks.gobir",-1,BE)};v(CE,z);var BE=[1];CE.prototype.L=function(){return H(this)};CE.Ta="gci.ks.gobir";CE.prototype.rh=function(){return F(this,AE,1)};var DE=function(b,c){U.call(this);this.O=b||{};this.b=null;this.items=[];this.I=!1;this.A=!0;this.B=$("<div>");c&&(this.I=!0,this.items=c,this.sb=c.length)};v(DE,wk);k=DE.prototype;k.sb=-1;k.kc=0;k.D=function(){this.B.remove();this.I||(Ej(this.items),this.items=null)};k.Ge=function(){return this.items.length};
k.load=function(b,c){this.b=$.extend({},b,this.O);this.kc=0;if(this.I)return c(this.items.length,this.items),!0;Ej(this.items);this.items=[];this.A=!0;return this.zi(this.b,t(function(b,e,f,g){this.isDisposed()||(this.trigger("collections-loader-initial-load",[this,e]),c(b,e,f,g));this.A=!1},this))};
k.bo=function(b,c){if(!this.gk())return!1;var d=this.items.length,e=this,f=$.extend({},this.b);f.max_matches=b;f.offset=this.Ge();return this.zi(f,$.proxy(function(b,f){if(!e.isDisposed()){var l=f.slice(d);this.trigger("collections-loader-more-loaded",[this,d,l]);c(d,l)}},this))};k.focus=function(b,c){if(0<=b&&b<this.items.length){if(this.kc!=b||c)this.kc=b,this.trigger("focus",[this,this.kc,this.items[this.kc]]);return!0}return!1};var EE=function(b){return b.items[b.kc]};
DE.prototype.next=function(b){return this.kc+1<this.items.length?(b(this.items[++this.kc]),this.trigger("focus",[this,this.kc,this.items[this.kc]]),!0):this.Vj()?(this.bo(25,$.proxy(function(){if(this.kc+1<this.items.length){var c=this.items[++this.kc];b(c);this.trigger("focus",[this,this.kc,c])}},this)),!0):!1};DE.prototype.prev=function(b){if(0<=this.kc-1){var c=this.items[--this.kc];b(c);this.trigger("focus",[this,this.kc,c]);return!0}return!1};
DE.prototype.gk=function(){return this.items.length<this.sb};DE.prototype.Vj=function(){return this.kc+1<this.sb};var FE=function(b){return 0<b.kc&&0<b.items.length};DE.prototype.bind=function(b,c){this.B.bind(b,c)};DE.prototype.unbind=function(b,c){this.B.unbind(b,c)};DE.prototype.trigger=function(b,c){this.B.trigger(b,c)};
var GE=function(b,c,d,e,f,g){var h=sp(Y.ta);b="string"==typeof b?[b]:b;var l={};switch(c){case 1:l.asset_ids=b.join(",");break;case 2:l.entity_ids=b.join(",");break;case 3:l.exhibit_ids=b.join(",");break;case 4:l.channel_ids=b.join(",");break;case 5:l.partner_ids=b.join(",");break;default:throw Error("bb`"+c);}g&&(l.noChannelRestriction=!0);Sm(vp(h,K.an,l,CE),function(b){var f=[];b.rh()&&$.each(b.rh(),function(b,e){var g=e.U()==c?d(e):null;f.push(g)});e(f)},function(){f&&vt(f)})};
var HE=function(b,c){DE.call(this,b,c)};v(HE,DE);k=HE.prototype;k.ml=function(b,c){if(EE(this)&&EE(this).getId()==b)return this.focus(this.kc,c);for(var d=this.items,e,f=0;e=d[f];f++)if(e.getId()==b)return this.focus(f,c);return!1};k.append=function(b){this.items=this.items.concat(b);this.sb=this.items.length};k.remove=function(b){for(var c=0;c<this.sb;c++)if(this.items[c].getId()==b.getId()){this.items.splice(c,1);this.sb=this.items.length;this.focus(0,!0);break}};
k.qd=function(){this.items=[];this.kc=this.sb=0};k.Vj=function(){return this.kc+1<this.items.length||this.gk()};k.gk=function(){return this.Ge()<this.sb};
var IE=function(b,c,d){GE(b,1,function(b){return new tA(b.pa())},c,"Failed to load items.",d)},JE=function(b){var c=[],d=b.Bc,e=function(b){if(!b.wa()||!d[b.wa()||""])return null;var c=d[b.wa()||""].clone();(b=dD(b))&&c.data("gci.exhibit.msState",b);return c},f=b.Ea().getPanel();if(b=sE(b.Ea())){var g=e(b);g&&c.push(g)}f=f&&ND(f)||[];b=0;for(var h;h=f[b];b++){E(h,HD,4)&&(g=ID(E(h,HD,4)))&&(g=e(g))&&c.push(g);h=UD(h)||[];for(var l=0,m;m=h[l];l++)2==m.U()&&(g=m.pa())&&(g=e(g))&&(m=new XD(m),ZD(m)&& g.data("gci.exhibit.caption",ZD(m)),c.push(g))}return new HE(void 0,c)};
var KE=function(b){switch(b){case 1:return 1;case 2:return 2;case 4:return 4;case 5:return 5;case 11:return 11;case 16:return 16;default:return 0}};var ME=function(b,c,d){this.a=b;this.b=c;this.k=p(d)?d:1;this.e=LE(this.k)},NE=[127,90,53,28,14,7,0],OE=function(b){b=b.getPov();return new ME(b.heading,b.pitch,b.zoom)},PE=function(b){return{heading:b.a,pitch:b.b,zoom:b.k}},QE=function(b){var c=B(b,2)||0,d=B(b,3)||0;b=sz(b);for(var e=-1,f=0;f<NE.length-1;++f)if(b>NE[f+1]){e=f;break}-1==e?b=NE.length-1:(f=NE[e],b=e+(f-b)/(f-NE[e+1]));return new ME(c,d,b)},RE=function(b,c){c.setHeading(b.a);D(c,3,b.b);D(c,7,b.e)};ME.prototype.getZoom=function(){return this.k}; var LE=function(b){var c=Math.floor(b);b-=c;return(1-b)*NE[c]+b*NE[c+1]};
var SE=function(b,c,d,e){var f=ke(d-b);c=ke(e-c);b=Math.sin(f/2)*Math.sin(f/2)+Math.cos(ke(b))*Math.cos(ke(d))*Math.sin(c/2)*Math.sin(c/2);return 12742E3*Math.atan2(Math.sqrt(b),Math.sqrt(1-b))},TE=function(b,c,d){var e=b.lat,f=c.lat,e=ke(e),f=ke(f),g=ke(c.lng-b.lng),e=180*Math.atan2(Math.sin(g)*Math.cos(f),Math.cos(e)*Math.sin(f)-Math.sin(e)*Math.cos(f)*Math.cos(g))/Math.PI%360;0>e&&(e+=360);return{heading:e,pitch:-(180*Math.atan2(c.elevation-d,SE(b.lat,b.lng,c.lat,c.lng))/Math.PI),zoom:0}};
var UE=function(b){b=b||{};return M('<div class="gci-streetview-container'+(b.Vn?" gci-streetview-only-floorplan":"")+'"></div>')},VE=function(b){return M('<div class="gci-streetview-viewer'+(b.JA?" gci-streetview-viewer-fullscreen":"")+'"><div class="gci-streetview-viewer-holder">'+(b.Nd?'<div class="gci-streetview-edit-annotation"></div>':"")+"</div></div>")},WE=function(b){var c;c='<div class="gci-streetview-floorplan">';if(1<b.ii.length||1==b.ii.length&&1<b.ii[0].Aa.length){c+='<div class="gci-streetview-floorplan-header"><span class="gci-sv-fp-level-title">Levels</span><select>';
for(var d=b.ii,e=d.length,f=0;f<e;f++){var g=d[f];if(g.Lx){c+=1<b.ii.length?'<optgroup label="'+Q(g.name)+'">':"";for(var g=g.Aa,h=g.length,l=0;l<h;l++){var m=g[l];c+=m.Kx?'<option data-level-id="'+Q(m.$a)+'" data-pano-id="'+Q(m.pano)+'"'+(m.heading?' data-heading="'+Q(m.heading)+'"':"")+(m.pitch?' data-pitch="'+Q(m.pitch)+'"':"")+">"+N(m.name)+"</option>":""}c+=1<b.ii.length?"</optgroup>":""}}c+="</select></div>"}return M(c+'<div class="gci-sv-fp-floorplan-tooltip">Hover over the map to see areas with Museum View</div><div class="gci-sv-fp-floorplan"></div></div>')},
XE=function(){return M('<a href="#annotation" title="" class="gci-sv-fp-annotation-point"><span class="gci-sv-fp-annotation-point-middle"></span><div class="gci-sv-popup"><div class="gci-sv-popup-arrow"></div><div class="gci-sv-popup-content"><img src="'+Q(R(ju("common/ajax_loading_grey_circle_against_white_bg.gif")))+'" class="gci-sv-popup-loading"></div></div></a>')},YE=function(b){return M('<div class="gci-sv-popup-image"></div><div class="gci-sv-popup-info"><p class="gci-sv-popup-title">'+N(b.title)+
'</p><p class="gci-sv-popup-date">'+N(b.da)+'</p><p class="gci-sv-popup-artist">'+N(b.Sv)+"</p></div>")},ZE=function(b){b=b||{};var c='<div class="gci-sv-toggle-floorplan"><span class="gci-sv-floorplan-on">',c=b.Of?c+"Hide Map":c+"Hide Floorplan",c=c+'</span><span class="gci-sv-floorplan-off">',c=b.Of?c+"Show Map":c+"Show Floorplan";return M(c+"</span></div>")},$E=function(b){b=b||{};return M('<div class="gci-floorplan'+(b.Nd?" gci-floorplan-editable":"")+'"></div>')},aF=function(b){b=b||{};return M('<div class="gci-streetview-hotpoint'+ (b.Dq?" "+Q(b.Dq):"")+'"></div>')};
var cF=function(b,c,d){jr.call(this,d);this.b=c||"text";this.a=new bF(b)};v(cF,jr);cF.prototype.wb=function(){var b=null;"text"==this.b&&(b="gci-streetview-hotpoint-text");this.Ha(L(aF,{Dq:b}))};cF.prototype.Ia=function(){cF.r.Ia.call(this);nr(this).C(this.w(),"click",function(){this.dispatchEvent("click")})};var bF=function(b){this.heading=B(b,2);this.pitch=B(b,3);this.a=Wy(oz(b));this.b=Xy(oz(b));this.Th=rz(b)};
var dF=function(b,c,d,e){U.call(this);this.n=$(L(XE)).appendTo(b);this.n.on("click",t(this.Tw,this));this.a=null;this.Zj=c;this.Ak={heading:0,pitch:0};this.fl=0;this.e=B(d,5)||"";this.g=e;this.sl={lat:B(d,2)||0,lng:B(d,3)||0,elevation:B(d,4)||0};this.b=B(d,6)||0};v(dF,wk);dF.prototype.D=function(){this.n&&this.n.remove();this.n=null;dF.r.D.call(this)};var eF=["gci-sv-fp-annotation-point-smallest","gci-sv-fp-annotation-point-small","gci-sv-fp-annotation-point-big","gci-sv-fp-annotation-point-biggest"];
k=dF.prototype;k.zc=function(b){this.a=b;if(this.n){var c=[];py(b.V,Al)&&c.push(lB(b));Ot(b.V,Rk)&&c.push(Ot(b.V,Rk)||"");c={title:b.getTitle(),da:c.join(" \u2014 "),Sv:HA(b)||"Unknown"};this.n.find(".gci-sv-popup").addClass("gci-sv-popup-loaded");this.n.find(".gci-sv-popup-content").empty().append($(L(YE,c)));var c=this.n.find(".gci-sv-popup-image"),d={height:c.height(),width:c.width()};this.J(new Ly(c,xA(b,d),{Cc:!0,de:d}))}};k.pa=function(){return this.a};k.getPosition=function(){return this.sl};
k.Va=function(){var b;if(this.g!=this.Zj.nh())b=!1;else{b=this.Zj;var c=b.kg;c.e?(c=c.e,b=c.Ja[b.h]==c.Ja[this.e]):b=!1}if(b)if(0==this.b)b=!0;else{for(b=this.Ak.heading-this.b;-180>b;)b+=360;for(;180<b;)b-=360;b=80>Math.abs(b)?!0:!1}if(b)if(15<this.fl)b=!1;else{var d=this.Zj;b=this.Ak.heading;c=this.Ak.pitch;if(d.B){for(b+=180-d.Xa;0>b;)b+=360;for(;360<=b;)b-=360;c=-1*c+90;var e=d.ca;b=512*b/360;var f=256*c/180,g,c=Math.floor(b+.5),d=Math.floor(f+.5);c>=e.a?c-=e.a:0>c&&(c+=e.a);d>=e.b?d-=e.b:0>d&&
(d+=e.b);g=e.e[d*e.a+c];if(0==g)b=0;else{g*=4;var c=e.k[g++],d=e.k[g++],h=e.k[g++];g=e.k[g++];var e=e.g,l=(f+.5)*e.g,f=Math.sin(l),l=Math.cos(l);b=1.5*Math.PI-b*e.k;var m=Math.sin(b);e.a.x=f*Math.cos(b);e.a.y=f*m;e.a.z=l;b=e.a;b=g/(b.x*c+b.y*d+b.z*h)}}else b=0;b=0==b?!0:this.fl<b+.3?!0:!1}return b};k.rd=function(){return this.n.is(":hover")};k.hide=function(b){b?this.n.stop(!0,!0).fadeOut("slow"):this.n.stop(!0,!0).hide()};k.show=function(b){b?this.n.stop(!0,!0).fadeIn("slow"):this.n.stop(!0,!0).show()}; k.Tw=function(){if(!this.a)return!1;var b=Y;b.Oa(b.W.Zd,{"l.id":this.a.getId()});return!1};
var fF=function(b,c,d){this.setMap(b);this.a=c;this.k=d;this.b=null};v(fF,google.maps.OverlayView);
fF.prototype.onAdd=function(){var b=tf(),c=b.createElement("div");ch(c,"gci-sv-fp-overlay");var d=this.a.toSpan();$.each(this.k,t(function(e,f){var g=b.createElement("div");ch(g,"gci-sv-fp-overlay-dot");var h=Math.round((f.lng()-this.a.getSouthWest().lng())/d.lng()*100),l=100-Math.round((f.lat()-this.a.getSouthWest().lat())/d.lat()*100);g.style.left=h+"%";g.style.top=l+"%";mq(g,{width:"20px",height:"20px",marginLeft:"-10px",marginTop:"-10px",position:"absolute",borderRadius:"10px"});c.appendChild(g)},
this));this.getPanes().overlayLayer.appendChild(c);this.b=c};fF.prototype.draw=function(){var b=this.getProjection(),c=b.fromLatLngToDivPixel(this.a.getSouthWest()),b=b.fromLatLngToDivPixel(this.a.getNorthEast());mq(this.b,{left:c.x+"px",top:b.y+"px",width:b.x-c.x+"px",height:c.y-b.y+"px"})};fF.prototype.onRemove=function(){this.b.parentNode.removeChild(this.b);this.b=null};
var nF=function(b,c,d){d=d||{};this.e=c||null;gF||(gF={clickable:!1,path:google.maps.SymbolPath.CIRCLE,fillOpacity:.5,strokeColor:"black",strokeWeight:.5,scale:5,zIndex:5});c=this.e&&rB(this.e)||[];this.n=$(L(WE,{ii:c})).addClass("gci-streetview-floorplan-hidden").appendTo(b);this.n.toggleClass("gci-streetview-floorplan-indoor",!(!this.e||this.e.Of()));b=[];c={};this.e&&!this.e.Of()?(b=hF,c=iF):(b=jF,c=kF);c=$.extend(!0,{},c,d.Sf||{});dy.call(this,this.n.find(".gci-sv-fp-floorplan").get(0),{Sf:c,
xs:b,Cf:d.Cf,viewport:d.viewport});this.h=null;this.e&&!this.e.Of()&&(this.h=google.maps.event.addListener(this.map,"dragend",t(this.yb,this)));this.g=null;this.I={};this.a=null;this.Ja={};this.l=this.j=null;this.K=0;this.ib=d.oj||!1;this.o=null;this.O={};this.sa=[];d.$t&&lF(this,d.$t);this.n.find("select").change(t(this.zd,this));b={};d.gs?b.$a=d.gs:this.g&&(b.$a=this.g.nh());mF(this,b);this.n.removeClass("gci-streetview-floorplan-hidden")};v(nF,dy);
nF.prototype.D=function(){oF(this);pF(this);this.g&&this.g.unbind(".gci-streetview-floorplan");this.n&&this.n.remove();nF.r.D.call(this)};
var iF={zoom:17,minZoom:17,maxZoom:null,mapTypeId:"roadmap",mapTypeControl:!1,streetViewControl:!1,panControl:!1,disableDoubleClickZoom:!0,zoomControl:!1},kF=$.extend({},iF,{zoom:14,minZoom:5,zoomControl:!0}),hF=[{stylers:[{lightness:-100},{hue:"#000000"}]}],qF=[{stylers:[{lightness:-75},{saturation:-100}]}],jF=[{featureType:"road",elementType:"labels.text.fill",stylers:[{visibility:"on"},{color:"#555555"}]},{featureType:"road",elementType:"labels.icon",stylers:[{visibility:"off"}]}],rF={fillColor:"#2f2f2f"},
sF={fillColor:"#666"},tF={fillColor:"#c6a34f"},uF={strokeColor:"#000",strokeOpacity:.8,strokeWeight:1,fillColor:"#2f2f2f",fillOpacity:1},gF=null;nF.prototype.bind=function(b,c){this.n&&this.n.on(b,c)};nF.prototype.unbind=function(b,c){this.n&&this.n.off(b,c)};
var lF=function(b,c){b.g||(b.g=c,b.g.bind("moved.gci-streetview-floorplan",function(c,e){b.l=e.position||b.l;b.K=e.heading||b.K;b.map&&vF(b);b.n.trigger("floorplan-changed",{$a:b.a?b.a.$a:null,position:b.l||null})}),b.g.bind("level-changed.gci-streetview-floorplan",function(c,e){mF(b,e)}))};
nF.prototype.zd=function(b){b=$(b.currentTarget).find("option:selected");var c={Th:b.data("pano-id")};if(p(b.data("heading"))||p(b.data("pitch")))c.pov=new ME(b.data("heading")||0,b.data("pitch")||0);this.g&&this.g.trigger("move-to",c);b=b.attr("data-level-id");mF(this,{$a:b})};
nF.prototype.Db=function(b){var c=null,d=-1;$.each(this.a.Vh,function(e,f){var g=SE(b.latLng.lat(),b.latLng.lng(),f.lat(),f.lng());if(0>d||g<d)d=g,c=e});this.g&&this.g.trigger("move-to",{Th:c});this.a&&this.a.$a&&this.n.trigger("floorplan-click",{$a:this.a.$a,position:b.latLng})};nF.prototype.Tc=function(b){b.selected||b.setOptions(tF)};nF.prototype.vj=function(b){b.selected||(b.ks?b.setOptions(sF):b.setOptions(rF))};
var mF=function(b,c){var d=c||{};b.l=d.position||b.l;b.K=d.heading||b.K;d=d.$a;if(b.n){b.n.find("option[data-level-id="+d+"]").attr("selected","selected");if(b.a){var e=b.O[b.a.$a];e&&y(e,function(b){b.setMap(null)})}wF(b,d);b.map&&vF(b);b.a&&(e=b.O[b.a.$a])&&y(e,function(c){c.setMap(b.map)});b.n.trigger("floorplan-changed",{$a:b.a?b.a.$a:null,position:b.l||null})}},vF=function(b){if(b.l){var c=b.l;b.a&&(c=uB(b.e,b.a.$a),c=new google.maps.LatLng(b.l.lat()+c.lat,b.l.lng()+c.lng));var d;d=(Math.round(b.K/
5)+72)%72;d={url:ju("common/radar_sprite_0.png"),size:new google.maps.Size(57,57),origin:new google.maps.Point(57*d,0),anchor:new google.maps.Point(28,28)};b.o||(b.o=new google.maps.Marker({position:c,icon:null,clickable:!1,zIndex:5}));b.o.getMap()||b.o.setMap(b.map);b.o.setIcon(d);b.o.setPosition(c);(d=b.map.getBounds())&&d.contains(c)||b.map.setCenter(c)}},xF=function(b,c){c.setMap(null);Pb(b.O,function(b){return sb(b,c)});sb(b.sa,c)};
nF.prototype.yb=function(){this.j.intersects(this.map.getBounds())||(this.j.contains(this.l)?this.map.setCenter(this.l):this.map.setCenter(this.j.getCenter()))};
var yF=function(b,c){var d=b.getPaths();if(!d)return!1;for(var e=c.lng(),f=c.lat(),g=function(b){for(var c=!1,d=0;d<b.getLength();d++){var g=(d+1)%b.getLength();(b.getAt(d).lat()<f&&b.getAt(g).lat()>=f||b.getAt(g).lat()<f&&b.getAt(d).lat()>=f)&&b.getAt(d).lng()+(f-b.getAt(d).lat())/(b.getAt(g).lat()-b.getAt(d).lat())*(b.getAt(g).lng()-b.getAt(d).lng())<e&&(c=!c)}return c},h=g(d.getAt(0)),l=1;l<d.getLength();l++)g(d.getAt(l))&&(h=!1);return h},oF=function(b){b.a&&($.each(b.a.Zh,t(function(b,d){d.setMap(null);
google.maps.event.clearListeners(d,"click");google.maps.event.clearListeners(d,"mouseover");google.maps.event.clearListeners(d,"mouseout")},b)),b.a.Zh=[])},pF=function(b){b.a&&($.each(b.a.Cj,t(function(b,d){d.setMap(null)},b)),b.a.Cj=[])},zF=function(b,c){iF.styles=c;b.map.setOptions(iF)},AF=function(b){var c=xf("gci-sv-fp-floorplan-tooltip",void 0);mq(c,{display:b?"inline":"none"})},EF=function(b,c){oF(b);pF(b);b.Fb&&b.Fb.setMap(null);void 0===b.I[c]&&(b.I[c]={$a:c,featureId:null,Zh:[],vD:[],Vh:{},
cl:[],Cj:[]},b.I[c].Vh=zB(b.e,c),b.I[c].cl=BB(b.e,c),b.I[c].featureId=Bz(tB(b.e,c)));b.a=b.I[c];b.j=new google.maps.LatLngBounds;if(null!=b.a.featureId){zF(b,qF);AF(!b.ib);var d=b.a.featureId,e={getTileUrl:function(b,c){return d?"http://mt0.google.com/vt/lyrs=indoor%7Clv:"+d+"&z="+c+"&x="+b.x+"&y="+b.y:null},tileSize:new google.maps.Size(256,256),minZoom:10,maxZoom:22,name:"Indoor"},e=new google.maps.ImageMapType(e);b.map.overlayMapTypes.setAt(0,e);BF(b)}else b.map.overlayMapTypes.clear(),b.map.setMapTypeId("roadmap"),
zF(b,hF),AF(!1),CF(b);DF(b);b.map.fitBounds(b.j);b.map.setCenter(b.j.getCenter())},CF=function(b){if(b.a&&null==b.a.featureId){b.a.Zh.length||$.each(b.a.cl,t(function(b,c){var d=new google.maps.Polygon(uF);d.setOptions({paths:c,zIndex:4});d.setMap(this.map);this.a.Zh.push(d);FF(this,d)&&(d.ks=!0)},b));$.each(b.a.Zh,t(function(b,c){c.setOptions(rF);c.setMap(this.map);c.ks&&(c.setOptions(sF),google.maps.event.addListener(c,"mouseover",t(this.Tc,this,c)),google.maps.event.addListener(c,"mouseout",t(this.vj,
this,c)),google.maps.event.addListener(c,"click",t(this.Db,this)))},b));for(var c=0,d;d=b.a.cl[c];c++){d=d[0];for(var e=0,f;f=d[e];e++)b.j.extend(f)}vF(b)}},DF=function(b){if(b.ib&&b.a){$.each(b.a.Vh,t(function(b,c){this.j.extend(c);this.a.Cj.push(new google.maps.Marker({position:c,map:this.map,icon:$.extend({fillColor:"red"},gF)}))},b));for(var c=CB(b.e,b.a.$a),d=0,e;e=c[d];d++){var f=uB(b.e,b.a.$a);e=new google.maps.LatLng(B(e,2)+f.lat,B(e,3)+f.lng);b.j.extend(e);b.a.Cj.push(new google.maps.Marker({position:e,
map:b.map,icon:$.extend({fillColor:"blue"},gF)}))}}},BF=function(b){if(!b.ib){Nb(b.a.Vh,function(c){b.j.extend(c)});var c=new google.maps.Rectangle({strokeOpacity:0,fillOpacity:0,map:b.map,bounds:b.j});google.maps.event.addListener(c,"click",function(c){b.Db(c)});b.Fb=new fF(b.map,b.j,b.a.Vh)}},FF=function(b,c){var d=!1;b.a&&b.a.Vh&&$.each(b.a.Vh,t(function(b,f){yF(c,f)&&(this.Ja[b]=c,d=!0,c.a=b)},b));return d},wF=function(b,c){var d=b.a?b.a.$a:null;c&&c!=d&&EF(b,c)};
var HF=function(b,c){U.call(this);var d=c||{};this.G=Y;this.n=b;this.b=d.km||!1;this.a=d.Gg||null;this.ea=GF(this)};v(HF,wk);var IF={addressControl:!1,linksControl:!0,panControl:!0,zoomControl:!0};HF.prototype.bind=function(b,c){this.n&&this.n.on(b,c)};
var JF=function(b,c,d){b.ea.setPano(c);b.ea.setPov(PE(d))},KF=function(b,c,d){b.ea.setPosition(new google.maps.LatLng(c.lat(),c.lng()));b.ea.setPov(PE(d))},LF=function(b,c){b.ea.setPov(PE(c))},MF=function(b){return(b=b.ea.getPosition())?new google.maps.LatLng(b.lat(),b.lng()):null},GF=function(b){var c=function(){try{var b=document.createElement("canvas");return!!window.WebGLRenderingContext&&(b.getContext("webgl")||b.getContext("experimental-webgl"))}catch(c){return!1}}(),d=function(){try{var b=
document.createElement("canvas");return!!window.CanvasRenderingContext2D&&!(!b.getContext||!b.getContext("2d"))}catch(c){return!1}}(),e=Ak(b.G.j,"enable_imagery_viewer")&&!(Jt(b.G)||yx(b.G)),f="";0==google.maps.version.indexOf("3.16")?f=c?"webgl":d?"html5":"":e&&(f=c?"expwebgl":d?"exphtml5":"");c=$.extend(!0,{},IF,f?{mode:f}:{});b.b&&(c.addressControl=!1,c.disableDefaultUI=!0,c.disableDoubleClickZoom=!0,c.linksControl=!1,c.panControl=!1,c.scrollwheel=!1,c.zoomControl=!1);var d=b.n.get(0),g=new window.google.maps.StreetViewPanorama(d,
c);google.maps.event.addListener(g,"position_changed",function(){var c=g.getPosition();b.n.trigger("panoChanged",{lat:c?c.lat():void 0,lng:c?c.lng():void 0,panoId:g.getPano()})});google.maps.event.addListener(g,"pov_changed",function(){if(b.a){var c=b.a;b.a=null;c()}b.n.trigger("userViewChanged")});return g},NF=function(b,c,d,e,f){W.call(this);this.kg=b;this.ea=this.a=null;this.b=c;this.H=!1;this.ki={};this.tj=[];this.ca=(this.B=!Hi())?new Tc:null;this.K=!1;this.p=this.o=null;this.h=this.Q=d||rz(vB(this.b));
this.O=0;this.j=e||null;this.A=null;this.j?this.A=new google.maps.LatLng(this.j.lat,this.j.lng):wB(this.b)&&(this.A=Dm(wB(this.b)));this.I=!1;this.Xa=0;this.ka=null;this.kg.bind("move-to.gci-streetview-viewer",t(function(b,c){var d=c.Th,e=c.pov;this.h=d;this.ea&&JF(this.ea,d,e||OE(this.ea.ea))},this));this.e={};this.ga=f||!1;this.sa=new U(this);this.J(this.sa)};v(NF,W);
NF.prototype.D=function(){this.ea&&S(this.ea);this.ea=null;this.o&&window.clearTimeout(this.o);this.kg.unbind(".gci-streetview-viewer");this.a&&this.a.remove();this.a=null;NF.r.D.call(this)};
var QF=function(b,c,d,e){b.a=$(L(VE,{JA:d,Nd:b.ga})).addClass("gci-streetview-viewer-hidden").appendTo(c);b.a.on("mousemove.gci-streetview-viewer",t(b.Ca,b));b.g=b.a.find(".gci-streetview-viewer-holder");b.ga&&b.sa.C(xf("gci-streetview-edit-annotation",b.g[0]),"click",function(b){if(this.ea){var c,d=this.ea;c=b.offsetX;b=b.offsetY;var e=d.n,d=d.ea.getPov(),m=e.width(),e=e.height(),r=m/2/Math.tan(ke(LE(d.zoom))/2);c=Math.atan((c-m/2)/r)+ke(d.heading);b=Math.atan((e/2-b)/r)+ke(d.pitch);c>2*Math.PI&&
(c-=2*Math.PI);b>Math.PI/2&&(b=Math.PI-b);c=180*c/Math.PI;b=180*-b/Math.PI;c=c&&b?{heading:c,pitch:b}:null;b=this.hf(!0);b.ai(this.ea.ea.getPano());b.setHeading(c.heading);D(b,3,c.pitch);c=OF(this,b);this.dispatchEvent({type:"hotpoint-added",target:c})}});window.setTimeout(t(function(){this.a&&(this.a.removeClass("gci-streetview-viewer-hidden"),window.setTimeout(t(function(){Hi()&&(this.g.width(parseInt(this.a.width(),10)),this.g.height(parseInt(this.a.height(),10)));this.ea=new HF(this.g,e);this.ea.bind("error",
t(this.ib,this));this.ea.bind("panoChanged",t(function(b,c){this.I=!0;PF(this,c)},this));this.ea.bind("userViewChanged",t(this.yb,this));var b=QE(vB(this.b)),c=oz(vB(this.b));if(c&&Wy(c)&&Xy(c)){var d=Wy(c)||0,c=Xy(c)||0;KF(this.ea,new google.maps.LatLng(d,c),b)}else JF(this.ea,this.h,b)},this),250))},b),0)};
NF.prototype.nh=function(){var b;if(this.b.Of())b=null;else a:{b=this.b;for(var c=this.h,d=0,e;e=Iz(b.a)[d];d++)for(var f=0,g;g=Ez(e)[f];f++)for(var h=0,l;l=F(g,wz,3)[h];h++)for(var m=0,r;r=F(l,tz,2)[m];m++)if(c==B(r,1)){b=g.ff();break a}b=""}return b};
var RF=function(b,c){var d=b.ea;var e=d.n,f=d.ea.getPov(),g=ke(c.heading)-ke(f.heading),g=g%(2*Math.PI);g>Math.PI&&(g-=2*Math.PI);var d=ke(-c.pitch)-ke(f.pitch),h=ke(LE(f.zoom));Math.abs(g)>h/2?d=null:(f=e.width(),e=e.height(),h=f/2/Math.tan(h/2),g=h*Math.tan(g),d=h*Math.tan(d),d={x:g+f/2,y:e/2-d});return d};NF.prototype.ib=function(){};
var PF=function(b,c){if(b.j){var d=TE({lat:c.lat,lng:c.lng},b.j,SF(b));LF(b.ea,new ME(d.heading,-d.pitch,d.zoom+1));b.j=null}b.H=!1;b.K=!1;b.h=c.panoId;if(void 0!==b.h){b.Ja=new google.maps.LatLng(c.lat,c.lng);TF(b);b.tj=[];UF(b);var e="svcb"+Math.round(1E3*Math.random()),f=$('<script src="'+("//maps.google.com/cbk?output=json&dmz=1&cb_client=api&panoid="+b.h+"&callback="+e)+'">');window[e]=t(function(b){f.remove();window[e]=null;if(null!=this&&!this.isDisposed()&&null!=this.ea){var d=b.Data.imagery_type;
this.O=d?KE(d):0;var d=b.Location.level_id,l=new google.maps.LatLng(c.lat,c.lng);d&&d!=this.ka?(this.ka=d,this.kg.trigger("level-changed",{$a:this.nh(),position:l,heading:OE(this.ea.ea).a})):this.kg.trigger("moved",{position:l,heading:OE(this.ea.ea).a});if(b.model&&b.model.uncompressed_depth_map&&!(10>b.model.uncompressed_depth_map.length)){this.Xa=b.Projection.pano_yaw_deg||0;if(this.B){d=this.ca;l=b.model.uncompressed_depth_map;Rc();var m=Qc;b=[];for(var r=0;r<l.length;){var u=m[l.charAt(r++)],
w=r<l.length?m[l.charAt(r)]:0;++r;var C=r<l.length?m[l.charAt(r)]:64;++r;var J=r<l.length?m[l.charAt(r)]:64;++r;if(null==u||null==w||null==C||null==J)throw Error();b.push(u<<2|w>>4);64!=C&&(b.push(w<<4&240|C>>2),64!=J&&b.push(C<<6&192|J))}if(la(DataView)&&la(Uint8Array))if(b=new Uint8Array(b),b=new DataView(b.buffer),8!=b.getUint8(0))d=!1;else if(l=b.getUint16(1,!0),m=b.getUint16(3,!0),r=b.getUint16(5,!0),d.resize(m,r,l),u=b.getUint8(7),8!=u)d=!1;else{w=d.a*d.b;m=0;for(r=u;m<w;++m,++r)d.e[m]=b.getUint8(r);
m=0;for(r=u+w;m<l;m++)u=b.getFloat32(r,!0),r+=4,w=b.getFloat32(r,!0),r+=4,C=b.getFloat32(r,!0),r+=4,J=b.getFloat32(r,!0),r+=4,Uc(d,m,u,w,C,J);d=!0}else{if(!Vc)for(Vc=l=Array(256),m=0;256>m;++m)l[m]=Math.pow(2,m-150);if(8!=b[0])d=!1;else if(l=b[1]|b[2]<<8,d.resize(b[3]|b[4]<<8,b[5]|b[6]<<8,l),u=b[7],8!=u)d=!1;else{w=d.a*d.b;m=0;for(r=u;m<w;++m,++r)d.e[m]=b[r];m=0;for(r=u+w;m<l;m++)u=Wc(b,r),r+=4,w=Wc(b,r),r+=4,C=Wc(b,r),r+=4,J=Wc(b,r),r+=4,Uc(d,m,u,w,C,J);d=!0}}this.K=d}VF(this);WF(this);XF(this)}}},
b);f.appendTo($("body"))}};NF.prototype.yb=function(){var b=this;this.I=!0;this.p||TF(this,!1);WF(this);XF(this);window.clearTimeout(this.p);this.p=window.setTimeout(function(){b.p=null;!b.isDisposed()&&MF(b.ea)&&MF(b.ea).lat()&&MF(b.ea).lng()&&(YF(b),b.kg.trigger("moved",{position:new google.maps.LatLng(MF(b.ea).lat(),MF(b.ea).lng()),heading:OE(b.ea.ea).a}))},250)};
var ZF=function(b){Hi()&&(b.g.width(parseInt(b.a.width(),10)),b.g.height(parseInt(b.a.height(),10)));b.ea&&google.maps.event.trigger(b.ea.ea,"resize");window.setTimeout(t(function(){YF(this)},b),10)},VF=function(b){if(!b.B||b.K){var c=b.nh();if(c){if(!b.ki[c]){var d={},e=[];b.ki[c]=[];var f=CB(b.b,c);if(0==f.length){b.kg.trigger("assets-level-loaded",{$a:c});return}for(var g=0,h=function(b){for(var e=0;e<b.length;e++){var f=b[e];f&&d[f.getId()].zc(f)}g--;0==g&&(Nb(d,function(b,c){if(!b.pa()){d[c]=
null;sb(this.tj,b);var e=this.nh();e&&sb(this.ki[e],b);S(b)}},this),this.kg.trigger("assets-level-loaded",{$a:c}))},l=0;l<f.length;l++){l%30||e.push([]);var m=new dF(b.g,b,f[l],c);b.J(m);b.ki[c].push(m);d[f[l].wa()]=m;e[e.length-1].push(f[l].wa())}g=e.length;for(l=0;l<e.length;l++)IE(e[l],t(h,b))}$.each(b.ki[c],t(function(b,c){if(!c.isDisposed()){var d=this.Ja;c.fl=SE(c.sl.lat,c.sl.lng,d.lat(),d.lng());c.Ak=TE({lat:d.lat(),lng:d.lng()},c.sl,SF(c.Zj));c.Va()&&this.tj.push(c)}},b));b.H=!0}}},TF=function(b,
c){$.each(b.tj,function(b,e){e.isDisposed()||e.rd()||e.hide(c)})},$F=function(b){$.each(b.tj,function(b,d){d.isDisposed()||d.show(!0)})},YF=function(b){b.ea&&google.maps.event.trigger(b.ea.ea,"resize");b.H&&$.each(b.tj,function(b,d){if(!d.isDisposed()){for(var e=RF(d.Zj,d.Ak),f=0,g;g=eF[f];f++)d.n.removeClass(g);e?(d.n.css({left:e.x,top:e.y}).stop(!0,!0).show(),e=d.fl,f=0,6>=e?f=3:9>=e?f=2:11>=e&&(f=1),d.n.addClass(eF[f])):d.n.css({left:"-5000px",top:"-5000px"}).hide()}});b.Ca()};
NF.prototype.Ca=function(){this.p?window.clearTimeout(this.o):(this.o&&(window.clearTimeout(this.o),$F(this)),this.o=setTimeout(t(function(){TF(this,!0)},this),1E3))};NF.prototype.hf=function(b){var c=new nz;RE(OE(this.ea.ea),c);if(1==this.O||b){var d=MF(this.ea);b=new Uy;var e=d.lat();D(b,1,e);d=d.lng();D(b,2,d);G(c,6,b)}1==this.O||c.ai(this.ea.ea.getPano());return c};
var aG=function(b){if(b.ea&&b.I){b.I=!1;var c=QE(vB(b.b));MF(b.ea)&&MF(b.ea).equals(b.A)?b.ea.ea.setPov(PE(c)):b.Q?JF(b.ea,b.Q,c):KF(b.ea,b.A,c)}},UF=function(b){Nb(b.e,function(b){y(b,function(b){b.Rb();Lf(b.w())},this)},b)},OF=function(b,c,d){var e=rz(c),f=new cF(c,d);b.e[e]||(b.e[e]=[]);b.e[e].push(f);b.J(f);Cj(f,function(){sb(this.e[e],f);bG(this)},b);WF(b);return f},WF=function(b){b.ea&&b.e[b.ea.ea.getPano()]&&(y(b.e[b.ea.ea.getPano()],function(b){var d=b.a,e=RF(this,{heading:d.heading,pitch:d.pitch});
e&&(b.w()||b.wb(),b.mb||(this.g.append(b.w()),b.Ia()),d=e.x,e=e.y,tq(b.w(),d,e))},b),bG(b))},SF=function(b){var c=xB(b.b);b=c?(b=tB(b.b,c))?(b=F(b,wz,3)[0])?B(b,3)||2.1435:2.1435:2.1435:2.1435;return b},bG=function(b){if(b.ea&&b.e[b.ea.ea.getPano()]&&b.ea){var c=b.ea;b=!b.e[b.ea.ea.getPano()].length;if(c.ea.setOptions){var d={};d.addressControl=b;d.disableDefaultUI=!b;d.disableDoubleClickZoom=!b;d.linksControl=b;d.panControl=b;c.ea.setOptions(d)}}},XF=function(b){if(b.l&&b.R){var c=RF(b,b.R);c&&tq(b.l, c.x,c.y)}};
var dG=function(b,c,d){U.call(this);var e="full"==d.yi,f="floorplan"==d.yi,g="viewer"==d.yi;this.n=$(L(UE,{Vn:f})).appendTo(b);this.a=new NF(this,c,d.sz,d.lz,d.Nd);this.J(this.a);if(e||g){var h=this;QF(this.a,this.n,g,{km:d.km||!1,Gg:function(){h.b=!0;h.trigger("viewer-loaded");d.Gg&&d.Gg()}})}if(e||f)this.e=xk(new nF(d.bE||this.n,c,{$t:this,oj:d.oj,g:f}),this);if(e){var l=$(L(ZE,{Of:c.Of()}));l.on("click",t(function(){l.toggleClass("gci-sv-toggle-floorplan-hidden");this.n.find(".gci-streetview-floorplan").toggleClass("gci-streetview-floorplan-hidden");
this.n.find(".gci-streetview-viewer").toggleClass("gci-streetview-viewer-fullscreen");window.setTimeout(t(function(){cG(this)},this),250)},this)).appendTo(this.n)}this.b=!1};v(dG,wk);k=dG.prototype;k.D=function(){this.n&&this.n.remove();this.n=null;dG.r.D.call(this)};k.bind=function(b,c){this.n&&this.n.on(b,c)};k.unbind=function(b,c){this.n&&this.n.off(b,c)};k.trigger=function(b,c){this.n&&this.n.trigger(b,c)};k.nh=function(){return this.a.nh()};k.hf=function(){return this.a.hf()}; var cG=function(b){b.a&&ZF(b.a)};
var fG=function(b,c,d){U.call(this);this.G=Y;this.n=c;this.h=b;this.e=$("<div>");eG(this);b=this.h.k;c={yi:X(this.G)?"viewer":"full",oj:!1};d&&(d=d.split(","),4!=d.length?(vt("Bad Museum View location property."),d=null):d={lat:parseFloat(d[0]),lng:parseFloat(d[1]),elevation:parseFloat(d[2]),pano:d[3]},d&&(c.sz=d.pano,c.lz=d));this.b=new dG(this.n,b,c);this.J(this.b);this.b.bind("assets-level-loaded",t(this.g,this));this.b.bind("level-changed",t(this.g,this))};v(fG,wk);
fG.prototype.D=function(){gG(this);fG.r.D.call(this)};fG.prototype.a=null;
fG.prototype.g=function(b,c){var d=this.b.a.ki[c.$a]||null,e=Yz(new Uz("{svassetcount, plural, =1 {1 Museum View item} other {# Museum View items}}"),{svassetcount:d?d.length:0}),f=this.G.a;f.a.find("[data-tab-id="+K.hg+"]").find(".gci-ui-tabs-label-container").attr("title",e).find(".gci-ui-tabs-label").text(e);hG(this);this.a.empty();if(d){if(e=0<d.length)for(var g=0;g<d.length;g++){var h=d[g];h&&h.pa()&&sA(h.pa(),{Ec:{width:200,height:105},fadeIn:!0}).data("annotation",h).appendTo(this.a)}su(f,
K.hg).toggle(e);mu(f,K.hg,e);this.resize()}};
var gG=function(b){b.a&&b.a.remove();b.a=null;b.G.a.get().removeClass("gci-streetview-filmstrip");vu(b.G.a,K.hg)},eG=function(b){gG(b);b.a=$("<div>").appendTo(b.e).addClass("gci-streetview-filmstrip").on("click",".collections-asset-thumbnail",function(){var c=$(this).data("annotation");b.n.trigger("annotation-selected",{ig:c,location:c.pa().hf()||""});var e=b.b.a;e.j=c.getPosition();c=c.e;e.h=c;e.ea&&JF(e.ea,c,OE(e.ea.ea));return!1});var c=new Jp(b.a,{um:"dark"});xk(c,b);Lp(c);c=b.G.a;pu(c,K.hg,"",
b.e,"SPRITE_icon_action_tab_filmstrip");su(c,K.hg).hide()};fG.prototype.resize=function(){cG(this.b);hG(this)};var hG=function(b){b=su(b.G.a,K.hg);var c=$(window).width();b.css({position:"",left:""});var d=$("#gci-action-tabs .gci-ui-tabs").width()<c/2;d&&b.css({position:"absolute",left:(c-b.width())/2});b.prev().toggleClass("gci-ui-tab-last-child",d)};fG.prototype.bind=function(b,c){this.n&&this.n.on(b,c)};fG.prototype.unbind=function(b,c){this.n&&this.n.off(b,c)};
var iG=function(){Bj.call(this);this.o=1;this.j=[];this.l=0;this.b=[];this.k={}};v(iG,Bj);iG.prototype.g=function(b,c,d){var e=this.k[b];e||(e=this.k[b]=[]);var f=this.o;this.b[f]=b;this.b[f+1]=c;this.b[f+2]=d;this.o=f+3;e.push(f);return f};var kG=function(b,c,d){var e=jG;if(b=e.k[b]){var f=e.b;(b=ob(b,function(b){return f[b+1]==c&&f[b+2]==d}))&&e.Tm(b)}};k=iG.prototype;
k.Tm=function(b){if(0!=this.l)return this.j.push(b),!1;var c=this.b[b];if(c){var d=this.k[c];d&&sb(d,b);delete this.b[b];delete this.b[b+1];delete this.b[b+2]}return!!c};k.Lg=function(b,c){var d=this.k[b];if(d){this.l++;for(var e=Array(arguments.length-1),f=1,g=arguments.length;f<g;f++)e[f-1]=arguments[f];f=0;for(g=d.length;f<g;f++){var h=d[f];this.b[h+1].apply(this.b[h+2],e)}this.l--;if(0<this.j.length&&0==this.l)for(;d=this.j.pop();)this.Tm(d);return 0!=f}return!1};
k.clear=function(b){if(b){var c=this.k[b];c&&(y(c,this.Tm,this),delete this.k[b])}else this.b.length=0,this.k={}};k.Ub=function(b){if(b){var c=this.k[b];return c?c.length:0}b=0;for(c in this.k)b+=this.Ub(c);return b};k.D=function(){iG.r.D.call(this);this.clear();this.j.length=0};
var lG=ba("gci.PubSub.instance_")||new iG;iG.prototype.subscribe=iG.prototype.g;iG.prototype.unsubscribeByKey=iG.prototype.Tm;iG.prototype.publish=iG.prototype.Lg;iG.prototype.clear=iG.prototype.clear;wa("gci.PubSub.instance_",lG);
var nG=function(b,c,d){var e=mG();return e?e.subscribe(b,function(){var b=arguments;try{window.setTimeout(function(){c.apply(d||n,b)},0)}catch(e){}},d):0},oG=function(b){if(b){var c=mG();c&&("number"==typeof b?b=[b]:"string"==typeof b&&(b=[parseInt(b,10)]),y(b,function(b){c.unsubscribeByKey(b)}))}},pG=function(b,c){var d=mG();d&&d.publish.apply(d,arguments)},mG=function(){return ba("gci.PubSub.instance_")};
var qG=function(b,c,d,e,f){this.g=b;this.e=c;this.a=d;this.k=e;this.h=f;this.b=[]};qG.prototype.getId=function(){return this.g};qG.prototype.Wc=function(){return this.e};qG.prototype.gc=function(){return this.a};qG.prototype.Nf=function(){return this.k};var rG=function(b,c,d,e,f){this.e=b;this.k=c;this.b=d;this.g=e||"";this.Aj=!!f};rG.prototype.getId=function(){return this.e};rG.prototype.Wc=function(){return this.k};rG.prototype.Ub=function(){return this.b};
var sG=function(b){A(this,b,0,-1,null)};v(sG,z);sG.prototype.L=function(){return H(this)};var tG=new ac(52162383,{sC:0},sG,function(b,c){var d,e={Z:(d=c.qa())&&QB(b,d)};b&&(e.X=c);return e});jE[52162383]=tG;sG.prototype.qa=function(){return E(this,OB,1)};
var xG=function(b){var c="";switch(b.view){case "fullscreen":var d=M,e;e=M('<div class="gci-channel-image"></div><div class="gci-channel-square-container"><div class="gci-channel-square">'+uG()+'<div class="gci-channel-title-creator"><span class="gci-channel-title" title="'+Q(b.channel.Eb)+'">'+N(b.channel.title)+'</span></div><div class="gci-channel-counts">&nbsp;</div></div></div>');b=d('<div class="gci-fullscreen-item gci-channel-fullscreen-item gci-channel-item"><div class="gci-channel-fullscreen">'+
e+vG()+'<div class="gci-channel-cover-bottom-gradient"><div class="gci-asset-cover-attribution-display"><strong>'+N(b.F.Eb)+"</strong> "+wG(b)+"</div></div></div></div>");c=c+b;break;case "grid":b=""+('<div class="gci-grid-item gci-channel-grid-item gci-channel-item"><div class="gci-channel-grid"><div class="gci-channel-image"></div><div class="gci-channel-square-container"><div class="gci-channel-square"><div class="gci-channel-title-creator"><span class="gci-channel-title" title="'+Q(b.channel.Eb)+
'">'+N(b.channel.title)+'</span></div></div></div></div><div class="gci-grid-item-label-container"><span class="gci-grid-item-label">Project</span></div></div>');b=M(b);c=c+b;break;default:b=M('<div class="gci-channel-gallery-item gci-channel-item"><div class="gci-channel-gallery"><div class="gci-channel-content"><div class="gci-channel-image"></div><div class="gci-channel-square-container"><div class="gci-channel-square">'+uG()+'<span class="gci-channel-title" title="'+Q(b.channel.Eb)+'">'+N(b.channel.title)+
"</span></div>"+vG()+'</div></div><div class="gci-asset-title-date"><span class="gci-asset-title" title="'+Q(b.F.Eb)+'">'+N(b.F.title)+"</span> "+(b.F.da?'<span class="gci-asset-date">('+N(b.F.da)+")</span>":"")+"</div>"+wG(b)+"</div></div>"),c=c+b}return M(c)},vG=function(){var b;b=""+('<div class="gci-channel-view">'+P(qv({label:O("View Project"),type:"transparent",ac:O("gci-channel-view-button")}))+"</div>");return M(b)},uG=function(){return M('<div class="gci-channel-featured">Featured Project</div>')}, wG=function(b){var c="";if(b.F.kb)var d="By <strong>"+(N(b.F.kb)+"</strong>"),c=c+('<div class="gci-asset-creator">'+d+"</div> ");c+='<div class="gci-asset-partner"><strong>'+N(b.F.ec)+"</strong></div>";return M(c)};
var CG=function(b){var c="";switch(b.view){case "onebox":var d='<div class="gci-onebox-item"><div class="gci-onebox-item-thumb"></div><div class="gci-onebox-item-summary"><h3 title="'+Q(b.lb.title)+'">'+N(b.lb.title)+"</h3>"+(b.lb.ng?'<span class="gci-onebox-item-details">'+N(b.lb.ng)+"</span>":"");if(b.lb.type)var e="Topic: "+N(b.lb.type),d=d+('<span class="gci-onebox-item-type">'+e+"</span>");d+=(b.lb.jd&&0<b.lb.jd||b.lb.Kd&&0<b.lb.Kd?'<div class="gci-onebox-item-objects-count">'+(b.lb.jd&&0<b.lb.jd?
'<span class="gci-onebox-item-assets-count">'+yG(b)+"</span>":"")+(b.lb.Kd&&0<b.lb.Kd?'<span class="gci-onebox-item-exhibits-count">'+zG(b)+"</span>":"")+"</div>":"")+"</div></div>";b=M(d);c=c+b;break;case "fullscreen":d=M;e=M('<div class="gci-entity-image"></div><div class="gci-entity-square-container"><div class="gci-entity-square">'+AG(b)+'<div class="gci-entity-title-creator"><div class="gci-entity-title" title="'+Q(b.lb.title)+'"><div class="gci-entity-name">'+N(b.lb.title)+'</div></div></div><div class="gci-entity-counts">'+
(b.lb.jd&&0<b.lb.jd?yG(b):"")+(b.lb.Kd&&0<b.lb.Kd?(b.lb.jd&&0<b.lb.jd?", ":"")+'<span class="gci-onebox-item-exhibits-count">'+zG(b)+"</span>":"")+"</div></div></div>");b=d('<div class="gci-fullscreen-item gci-entity-fullscreen-item"><div class="gci-entity-fullscreen">'+e+BG(b)+'<div class="gci-entity-cover-bottom-gradient"><div class="gci-asset-cover-attribution-display"><strong>'+N(b.F.Eb)+"</strong> "+wG(b)+"</div></div></div></div>");c=c+b;break;case "grid":b=M('<div class="gci-entity-grid-item gci-entity-item gci-localizable-item" role="link" '+
(b.Me?' style="width:'+Q(Ug(b.Me))+'px"':"")+'><div class="gci-entity-grid"><div class="gci-entity-image"></div><div class="gci-entity-title-wrapper" dir="auto"><div class="gci-entity-title-inner-wrapper"><div class="gci-entity-title">'+N(b.lb.title)+'</div></div></div></div><div class="gci-grid-item-label-container"><span class="gci-grid-item-label">'+N(b.lb.type)+"</span></div></div>");c=c+b;break;default:b=M('<div class="gci-entity-gallery-item gci-localizable-item"><div class="gci-entity-gallery"><div class="gci-entity-content"><div class="gci-entity-image"></div><div class="gci-entity-square-container"><div class="gci-entity-square">'+
AG(b)+'<div class="gci-entity-title" title="'+Q(b.lb.Eb)+'"><div class="gci-entity-name">'+N(b.lb.title)+'</div><div class="clear"></div></div></div>'+BG(b)+'</div></div><div class="gci-asset-title-date"><span class="gci-asset-title" title="'+Q(b.F.Eb)+'">'+N(b.F.title)+"</span> "+(b.F.da?'<span class="gci-asset-date">('+N(b.F.da)+")</span>":"")+"</div>"+wG(b)+"</div></div>"),c=c+b}return M(c)},yG=function(b){var c="";10>b.lb.jd?c+="A few items":(b=N(b.lb.jd)+"+ items",c+=b);return M(c)},zG=function(b){var c=
"";b=Zz(new Uz("{APPROXIMATE_NUM_EXHIBITS_1,plural,=1{1 exhibit}other{{APPROXIMATE_NUM_EXHIBITS_2} exhibits}}"),{APPROXIMATE_NUM_EXHIBITS_1:b.lb.Kd,APPROXIMATE_NUM_EXHIBITS_2:N(b.lb.Kd)});return M(c+b)},BG=function(b){b=""+('<div class="gci-entity-view">'+P(qv({label:O("View "+b.lb.type),type:"transparent",ac:O("gci-entity-view-button")}))+"</div>");return M(b)},AG=function(b){var c="";b="Featured Topic: "+N(b.lb.type);return M(c+('<div class="gci-entity-featured">'+b+"</div>"))},DG=function(b){return M('<a href="'+
Q(R(b.gj.url))+'" target="_blank">'+(-1!=(""+b.gj.url).indexOf("http://whc.unesco.org/")?'<img src="'+Q(R(ju("consumer/icon_logo_unesco.png")))+'" class="gci-entity-rellink-unesco" title="'+Q(b.gj.title)+'"/>':-1!=(""+b.gj.url).indexOf("http://www.wmf.org/")?'<img src="'+Q(R(ju("consumer/icon_logo_wmf.png")))+'" class="gci-entity-rellink-wmf" title="'+Q(b.gj.title)+'"/>':"")+N(b.gj.title)+"</a>")};
var EG=function(b){this.k=b;b=E(this.k,Vu,2);b||(b=new Vu,G(this.k,2,b));this.a=new ny(b)};v(EG,KA);k=EG.prototype;k.Ea=function(){return this.k};k.fe=null;k.ya=function(){return this.k.ya()};k.getId=function(){return this.ya()};k.getTitle=function(){return Ot(this.a,Mk)||""};k.Vb=function(){return Ot(this.a,Nk)||""};var FG=function(b){(b=sy(b.a,Nk))?(b=b.ma().Wb()[0],b=B(b,6)||""):b="";return b};EG.prototype.U=function(){return Ot(this.a,tl)||""};
var GG=function(b){var c=null;(b=b.k.getExtension(tG))&&(b=b.qa())&&(c=new VA(b));return c};EG.prototype.Dp=function(b){this.fe=b};EG.prototype.ab=function(){return this.fe?this.fe.ab():null};EG.prototype.ms=function(){return this.U()==bf()};EG.prototype.b=function(){return Cy(this.a)};
var HG=function(b){switch(b.U()){case bf():b="Location";break;case cf():b="Event";break;case df():b="Person";break;case ef():b="Artist";break;case ff():case gf():b="Medium";break;default:b="Other"}return b},IG=function(b){return(b=Ot(b.a,yl))?Ci(b):""},JG=function(b){return parseInt(Ot(b.a,ul),10)||0};
EG.prototype.render=function(b,c,d){var e=new oh(5),f=null,g=null,g={size:d,fadeIn:!0};10>JG(this)?f=JG(this):100>JG(this)?f=10*Math.floor(JG(this)/10):1E3>JG(this)?f=100*Math.floor(JG(this)/100):f=xh(e,JG(this));e=xh(e,parseInt(Ot(this.a,vl),10)||0);d=$(L(CG,{view:b,lb:{title:this.getTitle(),ng:Ot(this.a,Al)||"",type:HG(this),ms:this.ms(),jd:f,Kd:e},F:this.fe?{title:Ta(this.fe.getTitle(),50),Eb:this.fe.getTitle(),ec:IA(this.fe),da:lB(this.fe),kb:HA(this.fe)}:null,Me:d&&d.width}));d.data("RenderableItem",
this);switch(b){case "onebox":b={width:123,height:123};IG(this)&&new Ly(d.find(".gci-onebox-item-thumb"),IG(this),{de:b,Cc:!0,fadeIn:!0,Ma:!1});break;case "fullscreen":case "gallery":case "grid":g.Ma=!0,g.Bd=!0;default:g=sA(this.fe,g),d.find(".gci-entity-image").replaceWith(g),d.find(".gci-entity-square-container").detach().appendTo(d.find(".collections-asset-thumbnail"))}d.on("click.gci_entity",t(this.e,this));this.fe&&mB(this.fe,d,c);return d}; EG.prototype.e=function(){var b=null;switch(this.U()){case bf():b=2;break;case cf():b=1;break;case df():b=3;break;case ef():b=4;break;case ff():case gf():b=5}b&&Y.Rj(b,this.ya())};
var KG=function(b){this.b=b;b=E(this.b,Vu,2);b||(b=new Vu,G(this.b,2,b));this.a=new ny(b)};KG.prototype.getTitle=function(b){return Ot(this.a,Mk,b)||""};KG.prototype.setTitle=function(b,c){this.a.setProperty(Mk,b||null,c,!0);return this};KG.prototype.Vb=function(b){return Ot(this.a,Nk,b)||""};KG.prototype.zc=function(b){var c=new tD;b=b.getId();D(c,1,b);G(this.b,1,c);return this};var LG=function(b){var c=E(b.b,JD,5);if(!c)return null;b=c.wa();c=c.ff();return b&&c?{lA:b,$a:c}:null};
var MG=function(b){this.a=b},NG=function(b){return(b=E(b.a,HD,4))?new KG(b):null};MG.prototype.tc=function(){return this.a};MG.prototype.clone=function(){return new MG(this.a.L())};
var OG=function(b){return UD(b.a)&&UD(b.a)[0]?new XD(UD(b.a)[0]):null},PG=function(){var b=new MD,c=new BD;D(c,2,1);var d=new DD;D(d,1,1);D(d,2,100);CD(c,[d]);G(b,1,c);b=new MG(b);c=new QD;D(c,1,2);c=new XD(c);d=UD(b.a)||[];d.push(c.tc());ec(b.a,2,d);return b},QG=function(b,c){var d=b.a.getStyle()||new BD;D(d,3,c);G(b.a,1,d)};
var RG=function(b,c,d,e){U.call(this);this.j=c;this.a=Y.Jb()||null;this.h=e||null;this.g=b;this.l=d||null;this.b=this.j?"Exhibit":"UserGallery";this.e=null};v(RG,wk);RG.prototype.D=function(){RG.r.D.call(this);this.a&&this.e&&Yj(this.a.ce,this.e)};
var SG=function(b){b.a&&Qt(b.a,b.b,"play_video_caption")},TG=function(b){if(b.a){var c="/exhibit/";b.j||(c="/user-gallery/");Mt(b.a,c+b.g,{wt:b.l,Mf:!1,Z:b.h})}},VG=function(b,c){b.e=b.a.C("leave-site",function(){UG(this,c())},void 0,b)},UG=function(b,c){b.a&&(Pt(b.a,b.b,"percent_viewed",{Lj:b.g,Mj:c,Mf:!1,Z:b.h}),Yj(b.a.ce,b.e))};
var XG=function(b){A(this,b,0,-1,WG)};v(XG,z);var WG=[1,2];XG.prototype.L=function(){return H(this)};var fc=new ac(31469454,{xC:0},XG,function(b,c){var d,e={wn:cc(c.Vc(),Nz,b),Wq:cc(c.od(),kE,b),Z:(d=c.qa())&&QB(b,d)};b&&(e.X=c);return e});tE[31469454]=fc;XG.prototype.Vc=function(){return F(this,Lz,1)};XG.prototype.od=function(){return F(this,fE,2)};XG.prototype.qa=function(){return E(this,OB,3)};
var ZG=function(b){var c="";switch(b.view){case "fullscreen":c+=M('<div class="gci-fullscreen-item gci-exhibit-fullscreen-item gci-exhibit-item"><div class="gci-exhibit-fullscreen">'+YG({Da:b.Da,Hk:!0})+'<div class="gci-exhibit-cover-bottom-gradient"></div></div></div>');break;case "gallery":b=M('<div class="gci-exhibit-gallery-item gci-exhibit-item" role="link"><div class="gci-exhibit-gallery" dir="auto">'+YG({Da:b.Da,Hk:!0})+'<div class="gci-exhibit-title-date"><span class="gci-exhibit-title">'+
N(b.Da.title)+"</span> "+(b.Da.fh?'<span class="gci-exhibit-date">('+N(b.Da.fh)+")</span>":"")+'</div><div class="gci-exhibit-attribution">'+(b.Da.fc?N(b.Da.fc):"&nbsp;")+"</div></div></div>");c=c+b;break;default:b=""+('<div class="gci-exhibit-grid-item gci-exhibit-item" role="link"'+(b.Me?' style="width:'+Q(Ug(b.Me))+'px"':"")+'><div class="gci-exhibit-grid">'+YG(b)+'<div class="gci-exhibit-attribution">'+N(b.Da.fc)+"</div></div>"+(b.Da.description?'<div class="gci-exhibit-grid-caption">'+N(b.Da.description)+
"</div>":"")+'<div class="gci-grid-item-label-container"><span class="gci-grid-item-label">Exhibit</span></div></div>'),b=M(b),c=c+b}return M(c)},YG=function(b){return M($G({Hk:b.Hk,title:b.Da.title,fh:b.Da.fh,fc:b.Da.fc,description:b.Da.description,source:b.Da.source}))},$G=function(b){var c=M,d;b.Hk?(d=""+('<div class="gci-exhibit-view">'+P(qv({label:O("View Exhibit"),type:"transparent",ac:O("gci-exhibit-view-button")}))+"</div>"),d=M(d)):d="";return c('<div class="gci-exhibit-image-container"><div class="gci-exhibit-image"></div>'+
d+'</div><div class="gci-exhibit-date-title-wrapper" dir="auto"><div class="gci-exhibit-date-title-inner-wrapper"><div class="gci-exhibit-date-wrapper"><span class="gci-exhibit-date-border"></span>'+(b.fh?'<span class="gci-exhibit-date-text">'+N(b.fh)+"</span>":"")+'<span class="gci-exhibit-date-border"></span></div><div class="gci-exhibit-title">'+N(b.title)+'</div><div class="gci-exhibit-attribution">'+(b.fc?N(b.fc):"&nbsp;")+'</div></div><div class="gci-exhibit-description">'+(b.description?N(b.description): "")+"</div>"+(b.source?'<div class="gci-exhibit-source">'+N(b.source)+"</div>":"")+"</div>")};
var bH=function(b,c,d){this.G=Y;this.xa=b;var e=E(b,Vu,22);e||(e=new Vu,wE(b,e));this.Ba=new ny(e);this.Bc={};this.g={};this.p=null;for(var f=(e=this.xa.getPanel())&&ND(e)||[],e=0,g;g=f[e];e++)for(var h=UD(g)||[],l=0;g=h[l];l++)2==g.U()&&(g=g.pa())&&g.wa()&&(this.Bc[g.wa()]=null);c&&(this.Bc=$.extend(this.Bc,c));f=(c=b.getExtension(fc))?c.Vc():[];b=[];for(e=0;e<f.length;e++)g=f[e],g.getId()&&(g=new tA(g),this.Bc[g.getId()]=g,b.push(g));if(e=c?c.qa():null)this.p=new VA(e);c=c?c.od():[];for(e=0;e<c.length;e++)g=
c[e],g.ya()&&(g=new EG(g),this.g[g.ya()]=g);(this.e=d||null)&&aH(this.e,b);this.a=null;!this.k()&&this.xa.wa()&&(d=new tD,e=this.xa.wa(),D(d,1,e),G(this.xa,27,d));this.o="room";this.B=""};v(bH,KA);bH.prototype.Ea=function(){return this.xa};bH.prototype.getId=function(){return this.xa.getId()||""};bH.prototype.lf=function(){return 1==B(this.xa,4)};bH.prototype.Sd=function(){if(this.lf())return!1;var b=B(this.xa,20);return null!=b?this.xa.ph()>b:!0};
var dH=function(b){D(b.xa,4,2);cH(b)},eH=function(b){D(b.xa,4,1);cH(b)};bH.prototype.Fd=function(){return this.lf()||!!yy(this.Ba,kl)};bH.prototype.getTitle=function(b){return Ot(this.Ba,Mk,b)||""};bH.prototype.setTitle=function(b,c){this.Ba.setProperty(Mk,b||null,c,!0);cH(this);return this};var fH=function(b){return(b=Ot(b.Ba,xl))?parseInt(b,16):null};
bH.prototype.qa=function(){if(this.p)return this.p;var b=fH(this);if(b&&this.Bc)for(var c in this.Bc){var d=this.Bc[c];if(d&&d.qa()&&d.qa().getId()==b)return d.qa()}return null};
var gH=function(b){var c=Ot(b.Ba,ll);return c?parseInt(c,10):(b=b.xa.getPanel())&&ND(b)?ND(b).length:0},iH=function(b,c,d){var e=b.xa.getPanel();if(e&&ND(e)){var f=ND(e),g=nb(f,function(b){return WD(c)==WD(b)});0<=g&&(rb(f,g),g<d&&d--);yb(f,d,0,c);OD(e,f);if(b.e)for(d=UD(c)||[],e=0;f=d[e];e++)if(2==f.U()){var h=(f=f.pa())&&f.wa()||"";h&&!b.Bc[h]&&Tm(hH(b.e,h),function(c){b.Bc[h]=c})}b.a=null;cH(b)}};bH.prototype.Hh=function(){return"Y"===Ot(this.Ba,Gl)};
bH.prototype.pa=function(b){return this.Bc[b]||null};bH.prototype.k=function(){return sE(this.xa)};var jH=function(b,c){G(b.xa,27,c);cH(b)};bH.prototype.ef=function(){var b=null,c=sE(this.xa),d=c?c.wa():this.xa.wa();d?b=this.pa(d):c&&(c=c.getStreetView())&&(b=fD(c));return b};var kH=function(b,c){var d=sy(b.Ba,Yk);return(d=d?Tl(d.ma()):null)?d.T(c,void 0):""},lH=function(b,c){var d=b.Ba,e=py(d,cl);vy(d,cl);if(c){e||(e=oy(cl));var f=c.Ea();G(e,7,f);f=Wu(d.a);f.push(e);ec(d.a,1,f)}cH(b)};
bH.prototype.Vb=function(b,c){var d=sy(this.Ba,Nk);return(d=d?Tl(d.ma()):null)?d.T(b,c):""};var mH=function(b,c,d){b.Ba.setProperty(Nk,c||null,d,!0);cH(b);return b},nH=function(b){return ry(b.Ba,hl,xE(b.xa))||[]},oH=function(b,c){var d=Ot(b.Ba,il,c||xE(b.xa))||"";d||1!=b.xa.U()||(d=hb(nH(b),function(b){return b.replace("\u2014"," \u2014 ")}).join("\n"));return d},pH=function(b,c,d){b.Ba.setProperty(il,c,d,!0);cH(b)};
bH.prototype.$j=function(){var b=sy(this.Ba,dl);return null!=b?Tl(b.ma()).T(xE(this.xa)):""};var sH=function(b){var c;if(!(c=qH(b))){c=rH;var d=Ot(b.Ba,fl)||"CURATOR",e=b.$j(),f=sy(b.Ba,el);b=null!=f?Tl(f.ma()).T(xE(b.xa)):"";c=c(d,e,b)}return c},qH=function(b){var c=sy(b.Ba,gl);return null!=c?Tl(c.ma()).T(xE(b.xa)):""},tH=function(b,c){wy(b.Ba,gl,c?[c]:[]);cH(b)},cH=function(b){var c=B(b.xa,20),c=Math.max((new Date).getTime(),1+(null!=c?c:0));D(b.xa,15,c)};bH.prototype.l=function(b){this.B=b};
var vH=function(b,c){if(Ay(b.Ba))return am(Ay(b.Ba));var d=ty(b.Ba)||null,e={start:null,end:null},f=ry(b.Ba,$k)||[];1<f.length?f[0]>f[1]?(e.end=f[0],e.start=f[1]):(e.start=f[0],e.end=f[1]):0<f.length&&(e.start=f[0]);var f=(Ot(b.Ba,bl)||"").split("|")[0]||"keydate",g;g=(Ot(b.Ba,bl)||"").split("|");g=1<g.length?g[1]||"day":"day";var h=c||xE(b.xa);return uH(d,e,f,g,h)};bH.prototype.Nb=function(){return!!yy(this.Ba,nl)||1==this.xa.U()};bH.prototype.Jj=function(){return!!yy(this.Ba,ol)};
var wH=function(b,c){zy(b.Ba,ol,!!c);cH(b)},xH=function(b,c){zy(b.Ba,pl,!!c);cH(b)},yH=function(b,c){var d=b.Ba,e=null!=c?c.toString():null,f=py(d,Il);vy(d,Il);if(e){f||(f=oy(Il));var g=new dm;D(g,1,e);G(f,8,g);e=Wu(d.a);e.push(f);ec(d.a,1,e)}cH(b)},zH=function(b){if(b.a)return b.a;b.a=JE(b);return b.a},AH=function(b){return new RG(b.getId(),b.Nb(),b.getTitle(),b.qa())},BH=function(){var b=new qE,c=new rE;D(c,1,0);D(c,2,0);G(b,1,c);D(b,24,"en");D(b,26,2);D(b,4,2);c=new LD;G(b,14,c);b=new bH(b);b.setTitle("Untitled",
"en");return b},CH=function(b){var c=BH();b=hb(b,function(b){var c=PG();OG(c).zc(b);return c.tc()});OD(c.Ea().getPanel(),b);return c};
bH.prototype.render=function(b,c,d){var e=$(L(ZG,{view:b,Da:{title:this.getTitle(),fc:sH(this),fh:vH(this),description:Ta(kH(this),230),source:Ot(this.Ba,Zk)||""},Me:d&&d.width})),f=this.ef();if(f){var g=null,h=sE(this.xa);h&&cD(h)&&(g=cD(h),g={x:B(g,1),y:B(g,2)});b="fullscreen"==b||"gallery"==b||"grid"==b;d=sA(f,{fadeIn:!0,size:d,title:this.getTitle(),Bd:b,Ma:b,oi:g});e.find(".gci-exhibit-image").replaceWith(d);e.find(".gci-exhibit-date-title-wrapper").detach().appendTo(d);e.find(".gci-exhibit-view").detach().appendTo(d);
d=e.find(".gci-exhibit-cover-bottom-gradient");if(d.length){if(b=this.ef()){var l=Y,f=$("<div>").addClass("gci-cover-asset-attribution"),h=(g=b.qa())?g.getId():null,l=xx(l);!g||l&&l==h||(h=null,h=$("<span>"),h.text("Image"),f.append($("<div>").append(h).append(": ").append(g.ie())));(b=b.ie())&&f.append($("<div>").append($("<span>").text("Original source: ")).append(b))}else f=null;f.addClass("gci-exhibit-cover-attribution-display");d.append(f)}}this.Oe()&&e.addClass("gci-localizable-item").data("RenderableItem",
this);e.on("click.gci-gallery",t(this.A,this,c&&c.context&&c.context.ba||null));return e};bH.prototype.A=function(b){var c={exhibitId:this.getId(),urlStub:this.getTitle()};(b=this.B||b||null)&&!Jt(this.G)&&(c.projectId=b);this.G.Oa(this.Nb()?"exhibit":"user-gallery",c)};bH.prototype.b=function(){return Cy(this.Ba)};
var DH=function(b,c){null!=c?By(b.Ba,Rk,c?[c]:[]):vy(b.Ba,Rk);cH(b)},EH=function(b){b=(b=b.xa.getPanel())&&ND(b)||[];for(var c=0,d;d=b[c];c++)if(null==E(d,HD,4)&&(d=d.getStyle(),!d||0==d.U()))return!1;return!0},uH=function(b,c,d,e,f){var g=6;switch(e){case "day":g=4;break;case "month":g=5;break;case "year":g=6}"keydate"==d&&b?c=wj(b.getTime(),g,f):c?(d=g,b=c.start?wj(c.start.getTime(),d,f):"",c.end?(f=wj(c.end.getTime(),d,f),c=c.start?b+(" - "+f):f):c=b):c="";return c},rH=function(b,c,d){var e=!Ea(x(c)),
f=!Ea(x(d));if("CURATOR"==b)return e?"By "+c:"";if("ORG"==b)return f?"By "+d:"";if(f&&e)switch(b){case "WITH":return"By "+(c+(" with "+d));case "FOR":return"By "+(c+(" for "+d));case "ATTRIBUTION":return"By "+(c+(" in association with "+d))}else{if(f)return"By "+d;if(e)return"By "+c}return""};
var FH=function(b,c){U.call(this);this.a="default";var d=t(function(b){this.a=b;this.b.trigger("selection-changed");var c=rx();c&&Qt(c,"SortMenu","Select",b);return!1},this),e={};e["default"]={title:"Default",value:"default",action:d};e.oldest={title:"by Oldest",value:"oldest",action:d};e.newest={title:"by Newest",value:"newest",action:d};e.az={title:"A to Z",value:"az",action:d};e.za={title:"Z to A",value:"za",action:d};var f=[];$.each(c||["default","oldest","newest"],function(b,c){f.push(e[c])});
this.g={};$.each(f,t(function(b,c){this.g[c.value]=c.title},this));this.e=xk(new Tp("Sort","menu",null,{items:f}),this);this.e.bind("gci-ui-button-menu-show",function(){var b=rx();b&&Qt(b,"SortMenu","Open")});this.b=this.e.get().addClass("gci-sort-menu").appendTo(b)};v(FH,wk);FH.prototype.D=function(){S(this.e);this.e=null;this.b&&this.b.remove();this.b=null;FH.r.D.call(this)};FH.prototype.bind=function(b,c){this.b.bind(b,$.proxy(c,this));return this};
FH.prototype.unbind=function(b,c){this.b.unbind(b,c)};FH.prototype.getValue=function(){return this.a};var GH=function(b,c){switch(c){case "az":b.a="az";break;case "za":b.a="za";break;case "newest":b.a="newest";break;case "oldest":b.a="oldest";break;default:b.a="default"}b.e&&Up(b.e,b.g[b.a])};
var IH=function(b){A(this,b,0,-1,HH)};v(IH,z);var HH=[3],LH=function(b,c){var d={vC:B(c,1),uC:B(c,4),tD:B(c,5),Nf:B(c,2),Wn:cc(F(c,JH,3),KH,b),du:B(c,6)};b&&(d.X=c);return d};IH.prototype.L=function(){return H(this)};var JH=function(b){A(this,b,0,-1,null)};v(JH,z);var KH=function(b,c){var d,e={count:B(c,1),value:B(c,2),eg:(d=c.T())&&Si(b,d),iD:B(c,4),Qx:B(c,5)};b&&(e.X=c);return e};k=JH.prototype;k.L=function(){return H(this)};k.Ub=function(){return B(this,1)}; k.getValue=function(){return B(this,2)};k.T=function(){return E(this,Qi,3)};k.ul=function(){return B(this,5)};
var NH=function(b){A(this,b,0,-1,MH)};v(NH,z);var MH=[4],QH=function(b,c){var d={Y:B(c,1),key:B(c,2),M:B(c,3),Wn:cc(F(c,OH,4),PH,b)};b&&(d.X=c);return d};NH.prototype.L=function(){return H(this)};NH.prototype.getKey=function(){return B(this,2)};NH.prototype.cc=function(){return B(this,3)};var OH=function(b){A(this,b,0,-1,null)};v(OH,z);var PH=function(b,c){var d,e={da:(d=c.getDate())&&Zi(b,d),count:B(c,2)};b&&(e.X=c);return e};OH.prototype.L=function(){return H(this)}; OH.prototype.getDate=function(){return E(this,Vi,1)};OH.prototype.Ub=function(){return B(this,2)};
var SH=function(b){A(this,b,0,7,RH)};v(SH,z);var RH=[5],WH=function(b,c){var d={Y:B(c,1),key:B(c,2),M:B(c,3),Nf:B(c,4),Wn:cc(F(c,TH,5),UH,b),du:B(c,6)};dc(c,d,VH,SH.prototype.getExtension,b);b&&(d.X=c);return d};SH.prototype.L=function(){return H(this)};SH.prototype.getKey=function(){return B(this,2)};SH.prototype.cc=function(){return B(this,3)};var VH={},TH=function(b){A(this,b,0,-1,null)};v(TH,z);
var UH=function(b,c){var d,e={count:B(c,1),value:B(c,2),eg:(d=c.T())&&Si(b,d),Qx:B(c,4)};b&&(e.X=c);return e};k=TH.prototype;k.L=function(){return H(this)};k.Ub=function(){return B(this,1)};k.getValue=function(){return B(this,2)};k.T=function(){return E(this,Qi,3)};k.ul=function(){return B(this,4)};
var XH=function(b){A(this,b,0,-1,null)};v(XH,z);XH.prototype.L=function(){return H(this)};var YH=new ac(32310057,{zC:0},XH,function(b,c){var d,e={displayName:(d=c.Wc())&&Si(b,d)};b&&(e.X=c);return e});VH[32310057]=YH;XH.prototype.Wc=function(){return E(this,Qi,1)};
var ZH=function(b){A(this,b,0,-1,null)};v(ZH,z);ZH.prototype.L=function(){return H(this)};var aI=function(b){A(this,b,0,-1,$H)};v(aI,z);var $H=[4],dI=function(b,c){var d={Y:B(c,1),key:B(c,2),M:B(c,3),Nf:B(c,5),Wn:cc(F(c,bI,4),cI,b),du:B(c,6)};b&&(d.X=c);return d};aI.prototype.L=function(){return H(this)};aI.prototype.getKey=function(){return B(this,2)};aI.prototype.cc=function(){return B(this,3)};var bI=function(b){A(this,b,0,-1,null)};v(bI,z);var cI=function(b,c){var d,e;if(e=d=E(c,ZH,1))e={CD:B(d,1),ID:B(d,2),BD:B(d,3),HD:B(d,4)},b&&(e.X=d);d={rect:e,count:B(c,2)};b&&(d.X=c);return d}; bI.prototype.L=function(){return H(this)};bI.prototype.Ub=function(){return B(this,2)};
var fI=function(b){A(this,b,"gci.ks.hr",-1,eI)};v(fI,z);var eI=[1,2,3,4];fI.prototype.L=function(){return H(this)};fI.Ta="gci.ks.hr";var gI=function(b){return F(b,NH,3)};fI.prototype.lo=function(){return B(this,9)};var iI=function(b){A(this,b,"gci.ks.sr2",11,hI)};v(iI,z);var hI=[3];iI.prototype.L=function(){return H(this)};iI.Ta="gci.ks.sr2";iI.prototype.lo=function(){return B(this,1)};iI.prototype.Ge=function(){return B(this,2)};iI.prototype.Ii=function(){return F(this,jI,3)};var jI=function(b){A(this,b,0,-1,null)};v(jI,z);jI.prototype.L=function(){return H(this)};jI.prototype.getId=function(){return B(this,1)};
var lI=function(b){A(this,b,0,-1,kI)};v(lI,z);var kI=[2,3,4,5,6];lI.prototype.L=function(){return H(this)};var mI=new ac(60360205,{TE:0},lI,function(b,c){var d,e;if(e=d=E(c,fI,1))e={e:cc(F(d,IH,1),LH,b),H:cc(F(d,SH,2),WH,b),B:cc(gI(d),QH,b),Q:cc(F(d,aI,4),dI,b),ca:B(d,9),g:B(d,10)},b&&(e.X=d);d={eD:e,Aw:cc(F(c,qE,2),uE,b),Wq:cc(c.od(),kE,b),zz:cc(c.gf(),QB,b),BA:cc(F(c,qE,5),uE,b),gF:cc(F(c,Lz,6),Nz,b),qj:B(c,7),qF:B(c,8),pF:B(c,9)};b&&(d.X=c);return d}); lI.prototype.od=function(){return F(this,fE,3)};lI.prototype.gf=function(){return F(this,OB,4)};
var nI=function(b,c){DE.call(this,b,c);this.G=Y;this.bc=[];this.o=0;this.h=[];this.e=[];this.l=[];this.a=new HE(null,[]);this.g=0};v(nI,HE);nI.prototype.D=function(){oI(this);pI(this);nI.r.D.call(this)};nI.prototype.j=null;nI.prototype.p=null;
var oI=function(b){b.j&&(b.j.cancel(),b.j=null)},pI=function(b){b.p&&(b.p.cancel(),b.p=null)},uI=function(b,c,d,e,f){pI(b);c.max_matches=0;c.max_histogram_entries=e;qI(d)?c.entity_to_histogram=d:c.facet_to_histogram=d;b.b=$.extend({},c,b.O);c=sp(b.G.ta);d={};rI(b.b,d);var g=sI(d);b.p=Sm(Vm(vp(c,K.lv,d,fI),t(function(){this.p=null},b)),t(function(b){this.isDisposed()||(b=tI(g,b),f(b[0]))},b),t(function(b){b instanceof Nm&&this.G.l.a([])},b))},sI=function(b){var c={};b["s.an"]&&$.each(b["s.an"],function(b,
e){c[e]="freebase"});b["s.ft"]&&$.each(b["s.ft"],function(b,e){c[e.split(":")[0]]=e.split(":")[1]});return c};nI.prototype.zi=function(b,c){oI(this);pI(this);var d=sp(this.G.ta),e={oneboxes:!!b.with_oneboxes,withExhibits:!!b.with_exhibits,keepAnnotations:!!b.keep_annotations};rI(b,e);var f=sI(e);this.j=Sm(Vm(vp(d,K.hn,e,iI),t(function(){this.j=null},this)),t(this.K,this,c,f),t(this.H,this));return!0};
var vI=function(b,c,d){oI(b);pI(b);var e=sp(b.G.ta),f={oneboxes:!1,withExhibits:!1,keepAnnotations:!1};rI(b.b,f);f["s.ot"]=3;f["s.of"]=b.bc.length;f["s.mm"]=c;f["s.rah"]=!1;f["s.rfh"]=!1;f["s.rdh"]=!1;b.j=Sm(Vm(vp(e,K.hn,f,iI),t(function(){this.j=null},b)),t(function(b){b=hb(b.Ii(),function(b){return new bH(E(b,AE,15).Fe())});this.bc=ub(this.bc,b);d(this.bc.length-b.length,b)},b),t(b.H,b))},wI=function(b,c,d){oI(b);pI(b);var e=sp(b.G.ta),f={oneboxes:!1,withExhibits:!1,keepAnnotations:!1};rI(b.b,f);
f["s.mt"]=7;f["s.of"]=b.a.sb;f["s.mm"]=c;f["s.ssv"]=!1;f["s.rah"]=!1;f["s.rfh"]=!1;f["s.rdh"]=!1;b.j=Sm(Vm(vp(e,K.hn,f,iI),t(function(){this.j=null},b)),t(function(b){b=hb(b.Ii(),function(b){return new tA(E(b,AE,15).pa())});this.a.append(b);d(this.a.sb-b.length,b)},b),t(b.H,b))},rI=function(b,c){p(b.text)&&(c["s.t"]=b.text);p(b.refine_facet)&&(c.q=b.refine_facet);p(b.hide_streetview)&&(c["s.hs"]=!0);p(b.separate_streetview)&&(c["s.ssv"]=!0);p(b.entropy)&&(c["s.ent"]=b.entropy);p(b.vsimilar)&&(c["s.isai"]=
b.vsimilar);var d=[],e=[],f=[],g=[];if(b.media_type){var h=0;switch(b.media_type){case "photo":h=1;break;case "video":h=2;break;case "album":h=3;break;case "museumview":h=7;break;case "audio":h=8;break;case "3d":h=9}h&&(c["s.mt"]=h)}var l=!1,m="mid max_matches text sort_by only_match_roots media_type date_min date_max max_histogram_entries offset openid entity_to_histogram facet_to_histogram with_exhibits projectid keep_annotations view filter refine annotation_status with_oneboxes refine_facet hide_streetview separate_streetview partner_search hide_query_from_oneboxes entropy vsimilar".split(" ");
$.each(b,function(b,c){var h=b.toString();if(0>$.inArray(h.toLowerCase(),m))if(qI(h))$.each(c.split(","),function(b,c){f.push(h+":"+c)});else if(h==xl.M){l=!0;var r=Mi(c,16);d.push(h+":"+r)}else h==wl.M?(l=!0,r=Mi(c,8),d.push(h+":"+r)):"-3035821243548825541"==h?g.push(h+":"+c):$.each(c.split(","),function(b,c){e.push(h+":"+c)})});b.mid&&f.push(b.mid);0<e.length&&(c["s.ft"]=e);0<f.length&&(c["s.an"]=f);0<d.length&&(c["s.id"]=d);0<g.length&&(c["s.bo"]=g);var h=b.date_min,r=b.date_max;if(h&&r&&parseInt(r,
10)<parseInt(h,10))var u=h,h=r,r=u;h&&(c["s.sd"]=h);r&&(c["s.ed"]=r);ka(b.max_matches)&&(c["s.mm"]=b.max_matches);ka(b.offset)&&(c["s.of"]=b.offset);b.projectId&&(c.c=b.projectId);switch(b.sort_by){case "oldest":c["s.s"]=2;break;case "newest":c["s.s"]=3;break;case "random":c["s.s"]=8;break;default:c["s.s"]=p(b.partner_search)&&!p(b.text)?6:p(b.vsimilar)?9:1}ka(b.max_histogram_entries)&&(c["s.mh"]=b.max_histogram_entries);ka(b.annotation_status)&&(c["s.as"]=b.annotation_status);c["s.rah"]=!0;c["s.rfh"]=
!0;c["s.rdh"]=!0;p(b.entity_to_histogram)?(c["s.rfh"]=!1,c["s.rdh"]=!1,c["s.he"]=[b.entity_to_histogram]):p(b.facet_to_histogram)?(c["s.rah"]=!1,c["s.rdh"]=!1,c["s.hf"]=[b.facet_to_histogram]):c["s.of"]&&0<c["s.of"]?(c["s.rah"]=!1,c["s.rfh"]=!1,c["s.rdh"]=!1):l||(c["s.hf"]=[xl.M,"-167938884217003650"])};nI.prototype.H=function(b){b instanceof Nm?this.G.l.a([]):lx(this.G,"Failed to search assets.")};
nI.prototype.K=function(b,c,d){this.sb=d.lo();B(d,10);0<this.sb&&$.each(d.Ii(),t(function(b,c){var d=E(c,AE,15);1==d.U()&&this.items.push(new tA(d.pa()))},this));var e=[];(d=d.getExtension(mI))&&E(d,fI,1)&&(e=tI(c,E(d,fI,1)));if(this.A){Ej(this.bc);this.bc=[];this.o=0;this.h=[];this.e=[];this.l=[];this.a.qd();this.g=0;var f;d&&(this.bc=hb(F(d,qE,2),function(b){return new bH(b)}),this.o=B(d,9)||this.bc.length,$.each(d.gf(),t(function(b,c){var d=new VA(c);this.b.hide_query_from_oneboxes&&d.getId()==
this.b[xl.M]||$A(d)&&this.e.push(d)},this)),$.each(d.od(),t(function(b,c){if(c){var d=new EG(c),e=d.ya(),f=(4).toString();if(!this.b.hide_query_from_oneboxes||e!=this.b.mid&&e!=this.b[f]){a:{switch(d.U()){case bf():case cf():case df():case ef():case ff():case gf():e=!0;break a}e=!1}e&&IG(d)&&this.h.push(d)}}},this)),this.l=hb(F(d,qE,5),function(b){return new bH(b)}),c=hb(F(d,Lz,6),function(b){return new tA(b)}),this.a.append(c),this.g=B(d,8)||this.a.sb,f=E(d,fI,1)?gI(E(d,fI,1)):null)}b(this.sb,this.items,
e,f)};
var tI=function(b,c){for(var d=[],e=0,f;f=F(c,IH,1)[e];e++)if(qI(B(f,4))){for(var g=F(f,JH,3),h=[],l=!1,g=xI(g),m=0,r;r=g[m];m++){var u=r.getValue(),w=Ul(r.T()),C=r.ul();h.push(new rG(u,w,r.Ub(),C?C+"=s50-ci":"",!!b[u]));!l&&C&&(l=!0)}d.push(new qG(B(f,4).toString(),yI(B(f,4).toString()),h,B(f,2),l))}var J=null;f=[];for(var e=0,V;V=F(c,SH,2)[e];e++){var g=F(V,TH,5),xa=V.cc(),Ha="-167938884217003650"==xa;Ha&&(xa="media_type");h=[];l=!1;g=xI(g);for(m=0;r=g[m];m++){u=r.getValue();w=Ul(r.T());if(Ha)switch(w){case "IMAGE":w="Photos";
u="photo";break;case "VIDEO_YOUTUBE":w="Videos";u="video";break;case "ALBUM":w="Albums";u="album";break;case "STREET_VIEW":w="Museum View";u="museumview";break;case "AUDIO":w="Audio";u="audio";break;case "THREE_D":w="3D",u="3d"}C=r.ul();h.push(new rG(u,w,r.Ub(),C?C+(-1!=C.indexOf("=")?"-s50":"=s50"):"",b[xa]==u));!l&&r.ul()&&(l=!0)}g=V.getExtension(YH);g=Ul(g.Wc());Ha&&(g="Media Type");h=new qG(xa,g,h,B(V,4),l);V.cc()==xl.M?J=h:f.push(h.getId());d.push(h)}J&&$.each(f,function(b,c){"media_type"!=c&&
J.b.push(c)});var kb=[xl.M,(4).toString(),(5).toString(),(1).toString(),(2).toString(),(3).toString(),"media_type"];Bb(d,function(b,c){for(var d=0;d<kb.length;d++){if(b.getId()==kb[d])return-1;if(c.getId()==kb[d])return 1}return b.Wc().toLowerCase()>c.Wc().toLowerCase()?1:b.Wc().toLowerCase()<c.Wc().toLowerCase()?-1:0});return d},zI=null,AI=function(){null==zI&&(zI={2:"Place",1:"Event",3:"Person",4:"Created By",5:"Medium"});return zI},yI=function(b){return AI()[b]},qI=function(b){return!!AI()[b]}, xI=function(b){Bb(b,function(b,d){if(b.Ub()<d.Ub())return 1;if(b.Ub()>d.Ub())return-1;var e=Ul(b.T()),f=Ul(d.T());return Ca(e,f)});return b};
var BI=function(b){return M('<div class="gci-ui-tooltip '+Q(b.kw)+'"><div class="gci-ui-tooltip-text"></div><div class="gci-ui-tooltip-text-arrow"></div></div>')};var DI=function(b,c,d,e,f,g,h,l,m){var r,u;if(r=d.offsetParent){var w="HTML"==r.tagName||"BODY"==r.tagName;w&&"static"==rq(r)||(u=wq(r),w||(w=(w=Kq(r))&&zc?-r.scrollLeft:!w||I&&Jc("8")||"visible"==qq(r,"overflowX")?r.scrollLeft:r.scrollWidth-r.clientWidth-r.scrollLeft,u=of(u,new mf(w,r.scrollTop))))}r=u||new mf;u=Hq(b);if(w=xq(b)){var C=new jq(w.left,w.top,w.right-w.left,w.bottom-w.top),w=Math.max(u.left,C.left),J=Math.min(u.left+u.width,C.left+C.width);if(w<=J){var V=Math.max(u.top,C.top),C=Math.min(u.top+
u.height,C.top+C.height);V<=C&&(u.left=w,u.top=V,u.width=J-w,u.height=C-V)}}w=tf(b);V=tf(d);if(w.zb()!=V.zb()){var J=w.zb().body,V=dg(V),C=new mf(0,0),xa=Cf(sf(J)),Ha=J;do{var kb=xa==V?wq(Ha):Cq(Ha);C.x+=kb.x;C.y+=kb.y}while(xa&&xa!=V&&xa!=xa.parent&&(Ha=xa.frameElement)&&(xa=xa.parent));J=of(C,wq(J));!I||Lc(9)||cg(w)||(J=of(J,eg(w)));u.left+=J.x;u.top+=J.y}b=CI(b,c);c=new mf(b&2?u.left+u.width:u.left,b&1?u.top+u.height:u.top);c=of(c,r);f&&(c.x+=(b&2?-1:1)*f.x,c.y+=(b&1?-1:1)*f.y);var oa;if(h)if(m)oa=
m;else if(oa=xq(d))oa.top-=r.y,oa.right-=r.x,oa.bottom-=r.y,oa.left-=r.x;f=oa;m=c.clone();oa=CI(d,e);e=Eq(d);b=l?l.clone():e.clone();l=m;m=b;l=l.clone();m=m.clone();b=0;if(g||0!=oa)oa&2?l.x-=m.width+(g?g.right:0):g&&(l.x+=g.left),oa&1?l.y-=m.height+(g?g.bottom:0):g&&(l.y+=g.top);h&&(f?(g=l,oa=m,b=0,65==(h&65)&&(g.x<f.left||g.x>=f.right)&&(h&=-2),132==(h&132)&&(g.y<f.top||g.y>=f.bottom)&&(h&=-5),g.x<f.left&&h&1&&(g.x=f.left,b|=1),h&16&&(c=g.x,g.x<f.left&&(g.x=f.left,b|=4),g.x+oa.width>f.right&&(oa.width=
Math.min(f.right-g.x,c+oa.width-f.left),oa.width=Math.max(oa.width,0),b|=4)),g.x+oa.width>f.right&&h&1&&(g.x=Math.max(f.right-oa.width,f.left),b|=1),h&2&&(b=b|(g.x<f.left?16:0)|(g.x+oa.width>f.right?32:0)),g.y<f.top&&h&4&&(g.y=f.top,b|=2),h&32&&(c=g.y,g.y<f.top&&(g.y=f.top,b|=8),g.y+oa.height>f.bottom&&(oa.height=Math.min(f.bottom-g.y,c+oa.height-f.top),oa.height=Math.max(oa.height,0),b|=8)),g.y+oa.height>f.bottom&&h&4&&(g.y=Math.max(f.bottom-oa.height,f.top),b|=2),h&8&&(b=b|(g.y<f.top?64:0)|(g.y+
oa.height>f.bottom?128:0)),h=b):h=256,b=h);g=new jq(0,0,0,0);g.left=l.x;g.top=l.y;g.width=m.width;g.height=m.height;h=b;h&496||(tq(d,new mf(g.left,g.top)),b=g.ab(),qf(e,b)||(g=b,e=cg(tf(sf(d))),!I||Jc("10")||e&&Jc("8")?(d=d.style,zc?d.MozBoxSizing="border-box":Ac?d.WebkitBoxSizing="border-box":d.boxSizing="border-box",d.width=Math.max(g.width,0)+"px",d.height=Math.max(g.height,0)+"px"):(l=d.style,e?(e=Pq(d,"padding"),d=yq(d),l.pixelWidth=g.width-d.left-e.left-e.right-d.right,l.pixelHeight=g.height- d.top-e.top-e.bottom-d.bottom):(l.pixelWidth=g.width,l.pixelHeight=g.height))));return h},CI=function(b,c){return(c&4&&Kq(b)?c^2:c)&-5};
var EI=function(b,c,d){W.call(this);d=d||{};this.n=b;this.b=d.uz||"right";this.a=$(L(BI,{kw:d.$D}));this.a.find(".gci-ui-tooltip-text").text(c);b="";switch(this.b){case "bottom":b="gci-ui-tooltip-position-bottom";break;case "left":b="gci-ui-tooltip-position-left";break;case "right":b="gci-ui-tooltip-position-right";break;case "top":b="gci-ui-tooltip-position-top"}this.a.addClass(b);var e=this;this.n.on("mouseenter.gci-ui-tooltip",function(){e.show()});this.n.on("mouseleave.gci-ui-tooltip",function(){e.hide()});
this.a.on("mouseleave.gci-ui-tooltip",function(){e.hide()});d.oE&&this.show()};v(EI,W);EI.prototype.D=function(){this.a.remove();this.n.off(".gci-ui-tooltip");EI.r.D.call(this)};var FI={top:{anchor:0,moveable:1},bottom:{anchor:1,moveable:0},right:{anchor:2,moveable:0},left:{anchor:0,moveable:2}};EI.prototype.show=function(){this.a.find(".gci-ui-tooltip-text").text()&&(this.a.appendTo(document.body),DI(this.n.get(0),FI[this.b].anchor,this.a.get(0),FI[this.b].QD),this.dispatchEvent("gci-ui-tooltip-show"))}; EI.prototype.hide=function(){this.a.remove();this.dispatchEvent("gci-ui-tooltip-hide")};
var GI=function(){return M('<div class="gci-ui-date-histogram"><span class="gci-ui-date-histogram-undo">Undo</span><span class="gci-ui-date-histogram-redo">Redo</span><div class="gci-ui-date-histogram-selector-text-container"><span class="gci-ui-date-histogram-left-text gci-ui-date-histogram-selector-text"></span><span class="gci-ui-date-histogram-separator-text gci-ui-date-histogram-selector-text">-</span><span class="gci-ui-date-histogram-right-text gci-ui-date-histogram-selector-text"></span></div><div class="gci-ui-date-histogram-timeline"><div class="gci-ui-date-histogram-selector-range"><div class="gci-ui-date-histogram-shadow-top"></div><div class="gci-ui-date-histogram-shadow-bottom"></div><div class="gci-ui-date-histogram-bucket-container"><div class="gci-ui-date-histogram-bucket-inner-container"></div></div><div class="gci-ui-date-histogram-left-handle"><span class="gci-ui-date-histogram-handle-grippy">...</span></div><div class="gci-ui-date-histogram-right-handle"><span class="gci-ui-date-histogram-handle-grippy">...</span></div></div></div></div>')}, HI=function(){return M('<div class="gci-ui-date-histogram-bucket"><span class="gci-ui-date-histogram-text"></span><span class="gci-ui-date-histogram-outer-bar"><span class="gci-ui-date-histogram-bar"></span></span></div>')};
var OI=function(b,c,d){U.call(this);c=Math.max(-864E13,c);d=Math.min(864E13,d);this.b=c;this.e=d;this.h=c;this.I=!1;this.g=d;this.A=!1;this.o=[];this.l=[];this.n=$(L(GI));this.n.appendTo(b);this.B=this.n.find(".gci-ui-date-histogram-timeline");this.a=this.n.find(".gci-ui-date-histogram-selector-range");this.p=this.n.find(".gci-ui-date-histogram-bucket-inner-container");var e=this;this.ga=this.n.find(".gci-ui-date-histogram-left-text").on("click",function(){II(e,$(this),!0)});this.sa=this.n.find(".gci-ui-date-histogram-right-text").on("click",
function(){II(e,$(this),!1)});this.K=this.n.find(".gci-ui-date-histogram-left-handle").on("mousedown.gci-ui-date-histogram",function(b){JI(e,$(this),b);return!1});this.ka=this.n.find(".gci-ui-date-histogram-right-handle").on("mousedown.gci-ui-date-histogram",function(b){KI(e,$(this),b);return!1});this.j=this.H=this.O=0;this.ca=this.n.find(".gci-ui-date-histogram-undo").on("click",function(){LI(e,-1);e.n.trigger("selection-changed")});this.ca.hide();this.Q=this.n.find(".gci-ui-date-histogram-redo").on("click",
function(){LI(e,1);e.n.trigger("selection-changed")});this.Q.hide();MI(this);NI(this,this.h,this.g,!0)};v(OI,wk);OI.prototype.D=function(){$(document).off(".gci-ui-date-histogram");this.n.remove();OI.r.D.call(this)};
var MI=function(b){b.O=b.B.height();b.H=b.O/(b.e-b.b)},NI=function(b,c,d,e,f){if(c!=b.h||d!=b.g||e)null!=c&&(c=Math.max(-864E13,c),b.h=Math.max(b.b,null==d||c<d?c:d),void 0!=f&&(b.I=!!f)),null!=d&&(d=Math.min(864E13,d),b.g=Math.min(b.e,null==c||c<d?d:c),void 0!=f&&(b.A=!!f)),b.update(e)},PI=function(b,c,d,e){null!=c&&(b.b=Math.min(b.e,null==d||c<d?c:d));null!=d&&(b.e=Math.max(b.b,null==c||c<d?d:c));b.o=[];NI(b,b.b,b.e,!0,e)};
OI.prototype.update=function(b){this.ga.text((new Date(this.h)).getUTCFullYear().toString()).attr("title","");this.sa.text((new Date(this.g)).getUTCFullYear().toString()).attr("title","");this.a.toggle(0!=this.B.height());MI(this);if(b){b=QI(this,this.h);this.p.css("top",-1*b);var c=QI(this,this.g,!0)-b;this.a.css({top:b,height:c?c:"auto"});this.R()}};OI.prototype.bind=function(b,c){this.n.bind(b,$.proxy(c,this));return this};OI.prototype.unbind=function(b,c){this.n.unbind(b,c)};
var RI=function(b,c,d){c=b.b+(d?Math.ceil:Math.floor)(c/b.H);c=(new Date(c)).getUTCFullYear();d?(d=xj(c,11,31).getTime(),c=Math.min(b.e,d)):(d=xj(c,0,1).getTime(),c=Math.max(b.b,d));return c},QI=function(b,c,d){c=Math.min(Math.max(c,b.b),b.e);return(d?Math.floor:Math.ceil)((c-b.b)*b.H)},JI=function(b,c,d){var e,f,g,h;e=b.a.position().top;f=b.a.height();g=b.a.position().top+b.a.height()-b.K.height()-0;h=d.pageY;var l=b.h;$(document).on("mouseup.gci-ui-date-histogram touchend.gci-ui-date-histogram",
function(){$(document).off(".gci-ui-date-histogram");if(l==b.h)return!0;SI(b);b.n.trigger("selection-changed");return!0});$(document).on("mousemove.gci-ui-date-histogram touchmove.gci-ui-date-histogram",function(c){"touchmove"==c.type&&(c=c.originalEvent.touches[0]);var d=0,d=Math.max(Math.min(g,e+c.pageY-h),0);c=f+e-d;b.p.css("top",-1*d);b.a.css({top:d,height:c});d=RI(b,d);NI(b,d,void 0,void 0,!0);return!1})},KI=function(b,c,d){c=b.a.position();var e,f,g,h,l;e=c.top;f=b.a.height();g=b.ka.height()+
0;h=b.O-c.top;l=d.pageY;var m=b.g;$(document).on("mouseup.gci-ui-date-histogram touchend.gci-ui-date-histogram",function(){$(document).off(".gci-ui-date-histogram");if(m==b.g)return!0;SI(b);b.n.trigger("selection-changed");return!0});$(document).on("mousemove.gci-ui-date-histogram touchmove.gci-ui-date-histogram",function(c){"touchmove"==c.type&&(c=c.originalEvent.touches[0]);var d=0;c=Math.max(Math.min(f+c.pageY-l,h),g);b.p.css("top",-1*e);b.a.css({top:e,height:c});d=e+c;c=RI(b,d,!0);NI(b,null,c,
void 0,!0);return!1})},TI=function(b){b.K.on("touchstart.gci-ui-date-histogram",t(function(b){JI(this,0,b.originalEvent.touches[0]);return!1},b));b.ka.on("touchstart.gci-ui-date-histogram",t(function(b){KI(this,0,b.originalEvent.touches[0]);return!1},b))},SI=function(b){b.l.splice(b.j+1,b.l.length-(b.j+1));b.l.push({min:b.h,max:b.g});b.j=b.l.length-1;UI(b)},LI=function(b,c){b.j+=c;var d=b.l[b.j];PI(b,d.min,d.max,!0);UI(b)},UI=function(b){b.ca.toggle(0!=b.j);b.Q.toggle(b.j!=b.l.length-1)},II=function(b,
c,d){var e=function(){c.off(".gci-ui-date-histogram");c.removeAttr("contenteditable");var e=parseInt(c.text(),10),g=parseInt(c.prop("previousTextContent"),10);isNaN(e)&&(e=g);if(e!=g){var g=(new Date(b.b)).getUTCFullYear(),h=(new Date(b.e)).getUTCFullYear(),e=d?xj(Math.min(e,h),0,1).getTime():xj(Math.max(e,g),11,31).getTime();PI(b,d?e:void 0,d?void 0:e,!0);SI(b);b.n.trigger("selection-changed")}};c.off(".gci-ui-date-histogram");c.attr("contenteditable","").on("keydown.gci-ui-date-histogram",function(b){27==
b.keyCode?(c.removeAttr("contenteditable"),c.text(c.prop("previousTextContent")),c.blur()):13==b.keyCode&&e();b.stopPropagation()}).on("blur.gci-ui-date-histogram",function(){e()}).prop("previousTextContent",c.text()||"").focus()},VI=function(b,c){b.o=[];var d=K.Uk,e=K.Vk;$.each(F(c,OH,4),function(c,g){var h=Wi(g.getDate()).He(),l;l=Yi(g.getDate())?Yi(g.getDate()):Wi(g.getDate());l=B(l,2);-864E13>h||864E13<l||(h={min:h,max:l,count:g.Ub()},b.o.push(h),h.min<d&&(d=h.min),h.max>e&&(e=h.max))});b.b=d;
b.e=e;NI(b,d,e,!0);b.l.length||SI(b);window.setTimeout(t(b.R,b),0)};
OI.prototype.R=function(){var b=this,c=this.p.find(".gci-ui-date-histogram-bucket");$.each(c,function(b,c){S($(c).data("tooltip"));$(c).remove()});var d=1;$.each(this.o,function(b,c){c.count>d&&(d=c.count)});var e=2>(new Date(this.e)).getUTCFullYear()-(new Date(this.b)).getUTCFullYear()?5:6;this.B.css("height","");this.a.css("height","");var f=0;$.each(this.o,function(c,h){var l=wj(h.min,e),m=6==e?0!=c%2:0!=c%6,r=b.a.height()/b.o.length-3,r=Math.min(r,20),u=$(L(HI));u.css("height",r);u.find(".gci-ui-date-histogram-text").text(l).toggleClass("gci-ui-date-histogram-text-invisible",
m);u.find(".gci-ui-date-histogram-outer-bar").on("click",function(){PI(b,h.min,h.max,!0);SI(b);b.n.trigger("selection-changed");return!1});u.find(".gci-ui-date-histogram-bar").css("width",h.count/d*100+"%");l=[wj(h.min,6),wj(h.max,6)].join(" - ");l=new EI(u,l,{uz:"right"});u.data("tooltip",l);b.p.append(u);f+=u.outerHeight(!0)});this.a.height(f);this.B.height(f);MI(this)};
var WI=function(b,c,d){Bj.call(this);this.a=b;this.k=c||0;this.b=d;this.jc=t(this.dx,this)};v(WI,Bj);k=WI.prototype;k.Mi=0;k.D=function(){WI.r.D.call(this);this.stop();delete this.a;delete this.b};k.start=function(b){this.stop();this.Mi=Jm(this.jc,p(b)?b:this.k)};k.stop=function(){0!=this.Mi&&n.clearTimeout(this.Mi);this.Mi=0};k.dx=function(){this.Mi=0;this.a&&this.a.call(this.b)};
var ZI=function(b){var c=0,d=0;if(XI(b))c=b.selectionStart,d=-1;else if(I){var e=YI(b),f=e[0],e=e[1];if(f.inRange(e)){f.setEndPoint("EndToStart",e);if("textarea"==b.type){e.duplicate();c=b=f.text;for(d=!1;!d;)0==f.compareEndPoints("StartToEnd",f)?d=!0:(f.moveEnd("character",-1),f.text==b?c+="\r\n":d=!0);f=[c.length,-1];return f}c=f.text.length;d=-1}}return[c,d]},YI=function(b){var c=b.ownerDocument||b.document,d=c.selection.createRange();"textarea"==b.type?(c=c.body.createTextRange(),c.moveToElementText(b)): c=b.createTextRange();return[c,d]},$I=function(b,c){"textarea"==b.type&&(c=b.value.substring(0,c).replace(/(\r\n|\r|\n)/g,"\n").length);return c},XI=function(b){try{return"number"==typeof b.selectionStart}catch(c){return!1}};
var bJ=function(b,c){W.call(this);b&&aJ(this,b,c)};v(bJ,W);k=bJ.prototype;k.P=null;k.cm=null;k.Oo=null;k.dm=null;k.se=-1;k.Bg=-1;k.tn=!1;
var cJ={3:13,12:144,63232:38,63233:40,63234:37,63235:39,63236:112,63237:113,63238:114,63239:115,63240:116,63241:117,63242:118,63243:119,63244:120,63245:121,63246:122,63247:123,63248:44,63272:46,63273:36,63275:35,63276:33,63277:34,63289:144,63302:45},dJ={Up:38,Down:40,Left:37,Right:39,Enter:13,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"U+007F":46,Home:36,End:35,PageUp:33,PageDown:34,Insert:45},eJ=I||Ac&&Jc("525"),fJ=Bc&&zc;
bJ.prototype.a=function(b){Ac&&(17==this.se&&!b.ctrlKey||18==this.se&&!b.altKey||Bc&&91==this.se&&!b.metaKey)&&(this.Bg=this.se=-1);-1==this.se&&(b.ctrlKey&&17!=b.keyCode?this.se=17:b.altKey&&18!=b.keyCode?this.se=18:b.metaKey&&91!=b.keyCode&&(this.se=91));eJ&&!eq(b.keyCode,this.se,b.shiftKey,b.ctrlKey,b.altKey)?this.handleEvent(b):(this.Bg=dq(b.keyCode),fJ&&(this.tn=b.altKey))};bJ.prototype.b=function(b){this.Bg=this.se=-1;this.tn=b.altKey};
bJ.prototype.handleEvent=function(b){var c=b.Kb,d,e,f=c.altKey;I&&"keypress"==b.type?(d=this.Bg,e=13!=d&&27!=d?c.keyCode:0):Ac&&"keypress"==b.type?(d=this.Bg,e=0<=c.charCode&&63232>c.charCode&&cq(d)?c.charCode:0):yc?(d=this.Bg,e=cq(d)?c.keyCode:0):(d=c.keyCode||this.Bg,e=c.charCode||0,fJ&&(f=this.tn),Bc&&63==e&&224==d&&(d=191));var g=d=dq(d),h=c.keyIdentifier;d?63232<=d&&d in cJ?g=cJ[d]:25==d&&b.shiftKey&&(g=9):h&&h in dJ&&(g=dJ[h]);this.se=g;b=new gJ(g,e,0,c);b.altKey=f;this.dispatchEvent(b)};
bJ.prototype.w=function(){return this.P};var aJ=function(b,c,d){b.dm&&hJ(b);b.P=c;b.cm=T(b.P,"keypress",b,d);b.Oo=T(b.P,"keydown",b.a,d,b);b.dm=T(b.P,"keyup",b.b,d,b)},hJ=function(b){b.cm&&(mk(b.cm),mk(b.Oo),mk(b.dm),b.cm=null,b.Oo=null,b.dm=null);b.P=null;b.se=-1;b.Bg=-1};bJ.prototype.D=function(){bJ.r.D.call(this);hJ(this)};var gJ=function(b,c,d,e){Nj.call(this,e);this.type="key";this.keyCode=b;this.a=c};v(gJ,Nj);
var iJ={},jJ=null,kJ=function(b){b=pa(b);delete iJ[b];Vb(iJ)&&jJ&&jJ.stop()},mJ=function(){jJ||(jJ=new WI(function(){lJ()},20));var b=jJ;0!=b.Mi||b.start()},lJ=function(){var b=ta();Nb(iJ,function(c){nJ(c,b)});Vb(iJ)||mJ()};var oJ=function(b,c,d,e){gq.call(this);if(!fa(b)||!fa(c))throw Error("eb");if(b.length!=c.length)throw Error("fb");this.B=b;this.O=c;this.duration=d;this.I=e;this.e=[];this.j=!1;this.g=0};v(oJ,gq);
oJ.prototype.play=function(b){if(b||0==this.a)this.g=0,this.e=this.B;else if(1==this.a)return!1;kJ(this);this.startTime=b=ta();-1==this.a&&(this.startTime-=this.duration*this.g);this.endTime=this.startTime+this.duration;this.g||this.p();this.b("play");-1==this.a&&this.b("resume");this.a=1;var c=pa(this);c in iJ||(iJ[c]=this);mJ();nJ(this,b);return!0};oJ.prototype.stop=function(b){kJ(this);this.a=0;b&&(this.g=1);pJ(this,this.g);this.b("stop");this.h()};
oJ.prototype.pause=function(){1==this.a&&(kJ(this),this.a=-1,this.b("pause"))};oJ.prototype.D=function(){0==this.a||this.stop(!1);this.b("destroy");oJ.r.D.call(this)};var nJ=function(b,c){b.g=(c-b.startTime)/(b.endTime-b.startTime);1<=b.g&&(b.g=1);pJ(b,b.g);1==b.g?(b.a=0,kJ(b),b.b("finish"),b.h()):1==b.a&&b.A()},pJ=function(b,c){la(b.I)&&(c=b.I(c));b.e=Array(b.B.length);for(var d=0;d<b.B.length;d++)b.e[d]=(b.O[d]-b.B[d])*c+b.B[d]};oJ.prototype.A=function(){this.b("animate")}; oJ.prototype.b=function(b){this.dispatchEvent(new qJ(b,this))};var qJ=function(b,c){Jj.call(this,b);this.x=c.e[0];this.y=c.e[1];this.z=c.e[2];this.duration=c.duration;this.state=c.a};v(qJ,Jj);
var rJ=function(b,c,d,e,f){oJ.call(this,c,d,e,f);this.o=b};v(rJ,oJ);rJ.prototype.l=q;rJ.prototype.A=function(){this.l();rJ.r.A.call(this)};rJ.prototype.h=function(){this.l();rJ.r.h.call(this)};rJ.prototype.p=function(){this.l();rJ.r.p.call(this)};var sJ=function(b,c,d,e,f){if(2!=c.length||2!=d.length)throw Error("gb");rJ.apply(this,arguments)};v(sJ,rJ);
sJ.prototype.l=function(){var b;if(b=this.j)p(this.H)||(this.H=Kq(this.o)),b=this.H;this.o.style[b?"right":"left"]=Math.round(this.e[0])+"px";this.o.style.top=Math.round(this.e[1])+"px"};var tJ=function(b,c,d,e,f){rJ.call(this,b,[c],[d],e,f)};v(tJ,rJ);tJ.prototype.l=function(){this.o.style.width=Math.round(this.e[0])+"px"};var uJ=function(b,c,d,e,f){rJ.call(this,b,[c],[d],e,f)};v(uJ,rJ);uJ.prototype.l=function(){this.o.style.height=Math.round(this.e[0])+"px"};
var vJ=function(b,c,d){W.call(this);this.j=b;this.o=d;this.g=c;T(c,["hilite","select","canceldismiss","dismiss"],this.handleEvent,!1,this);this.e=null;this.b=[];this.h=-1;this.a=0;this.l=this.Hb=null;this.I={}};v(vJ,W);vJ.prototype.p=!0;
vJ.prototype.handleEvent=function(b){var c=this.j;if(b.target==this.g)switch(b.type){case "hilite":this.tb(b.row);break;case "select":var d=!1;if(ka(b.row)){b=b.row;var e=this.b[wJ(this,b)],d=!!e&&c.Mo&&c.Mo(e);e&&!d&&this.h!=b&&this.tb(b)}d||xJ(this);break;case "canceldismiss":yJ(this);break;case "dismiss":zJ(this)}};vJ.prototype.setToken=function(b,c){this.e!=b&&(this.e=b,this.j.Nt(this.e,10,t(this.R,this),c),yJ(this))};vJ.prototype.rd=function(){return this.g.Va()};
var AJ=function(b){for(var c=b.a+b.b.length-1,d=b.h,e=0;e<b.b.length;e++){if(d>=b.a&&d<c)d++;else if(-1==d)d=b.a;else break;if(b.tb(d))break}};vJ.prototype.tb=function(b){var c=wJ(this,b),d=this.b[c];return d&&this.j.Mo&&this.j.Mo(d)?!1:(this.h=b,this.g.tb(b),-1!=c)};var xJ=function(b){var c=wJ(b,b.h);if(-1!=c){var d=b.b[c],e=b.o.Cp(d);b.be();e||b.dispatchEvent({type:"update",row:d,index:c});return!0}b.be();b.dispatchEvent({type:"update",row:null,index:null});return!1};
vJ.prototype.be=function(){this.h=-1;this.e=null;this.a+=this.b.length;this.b=[];window.clearTimeout(this.l);this.l=null;this.g.be();this.dispatchEvent("suggestionsupdate");this.dispatchEvent("dismiss")};var zJ=function(b){b.l||(b.l=window.setTimeout(t(b.be,b),100))};vJ.prototype.A=function(){return this.l?(window.clearTimeout(this.l),this.l=null,!0):!1};var yJ=function(b){b.A()||window.setTimeout(t(b.A,b),10)};
vJ.prototype.D=function(){vJ.r.D.call(this);delete this.I;this.g.la();this.o.la();this.j=null};vJ.prototype.R=function(b,c,d){this.e==b&&this.vp(c,d)};
vJ.prototype.vp=function(b,c){var d="object"==da(c)&&c,e=(d?d.XC():c)?wJ(this,this.h):-1;this.a+=this.b.length;this.b=b;for(var f=[],g=0;g<b.length;++g)f.push({id:this.a+g,data:b[g]});g=null;this.Hb&&(g=this.I[pa(this.Hb)]||this.Hb);this.g.vj=g;this.g.vp(f,this.e,this.Hb);g=this.p;d&&void 0!==d.Uw()&&(g=d.Uw());this.h=-1;(g||0<=e)&&0!=f.length&&this.e&&(0<=e?this.tb(this.a+e):AJ(this));this.dispatchEvent("suggestionsupdate")};var wJ=function(b,c){var d=c-b.a;return 0>d||d>=b.b.length?-1:d}; vJ.prototype.update=function(b){this.o.update(b)};
var BJ=function(b,c,d,e){Bj.call(this);e=e||150;this.e=null!=d?d:!0;this.h=b||",;";this.I=this.h.substring(0,1);b=this.e?"[\\s"+this.h+"]+":"[\\s]+";this.A=new RegExp("^"+b+"|"+b+"$","g");this.K=new RegExp("\\s*["+this.h+"]$");this.l=c||"";this.O=this.e;this.k=0<e?new Im(e):null;this.b=new U(this);this.j=new U(this);this.g=new bJ;this.p=-1};v(BJ,Bj);var CJ=(mi||ni)&&!Jc("533.17.9");k=BJ.prototype;k.ln=null;k.Pb=null;k.Ro="";k.Xg=!1;k.Ap=!1;k.getValue=function(){return this.Pb.value};
k.Lr=function(b){for(var c=0;c<arguments.length;c++){var d=arguments[c];Of(d)&&Xp(d,"haspopup",!0);this.b.C(d,"focus",this.o);this.b.C(d,"blur",this.nx);this.Pb||(this.j.C(d,"keydown",this.Sy),Of(d)&&bg(sf(d))==d&&DJ(this,d))}};
k.Cp=function(b,c){if(this.Pb){var d=b.toString();if(p(c)?c:this.e){var e=EJ(this,this.getValue(),ZI(this.Pb)[0]),f=FJ(this,this.getValue());this.K.test(d)||(d=d.replace(/[\s\xa0]+$/,"")+this.I);0==e||Ea(f[e-1])||(d=" "+d);e==f.length-1&&(d+=" ");if(d!=f[e]){f[e]=d;d=this.Pb;(zc||I&&Jc("9"))&&d.blur();d.value=f.join("");for(var g=0,h=0;h<=e;h++)g+=f[h].length;d.focus();e=g;f=this.Pb;d=e;XI(f)?f.selectionStart=d:I&&(g=YI(f),h=g[0],h.inRange(g[1])&&(d=$I(f,d),h.collapse(!0),h.move("character",d),h.select()));
f=this.Pb;XI(f)?f.selectionEnd=e:I&&(g=YI(f),d=g[1],g[0].inRange(d)&&(e=$I(f,e),f=$I(f,ZI(f)[0]),d.collapse(!0),d.moveEnd("character",e-f),d.select()))}}else this.Pb.value=d;this.Ap=!0}return!1};k.D=function(){BJ.r.D.call(this);null!=this.ln&&window.clearTimeout(this.ln);this.b.la();delete this.b;this.j.la();this.g.la();S(this.k)};
k.le=function(b){switch(b.keyCode){case 40:if(this.a.rd())return AJ(this.a),b.preventDefault(),!0;if(!this.e)return this.update(!0),b.preventDefault(),!0;break;case 38:if(this.a.rd()){a:for(var c=this.a,d=c.h,e=0;e<c.b.length;e++){if(d>c.a)d--;else break;if(c.tb(d))break a}b.preventDefault();return!0}break;case 9:if(!this.a.rd()||b.shiftKey)this.a.be();else if(this.update(),xJ(this.a)&&this.O)return b.preventDefault(),!0;break;case 13:if(this.a.rd()){if(this.update(),xJ(this.a))return b.preventDefault(),
b.stopPropagation(),!0}else this.a.be();break;case 27:if(this.a.rd())return this.a.be(),b.preventDefault(),b.stopPropagation(),!0;break;case 229:if(!this.Xg)return this.Xg||(this.b.C(this.Pb,"keyup",this.Ss),this.b.C(this.Pb,"keypress",this.Qs),this.Xg=!0),!0}return GJ(this,b)};var GJ=function(b,c){var d=b.e&&c.a&&-1!=b.h.indexOf(String.fromCharCode(c.a));d&&b.update();return d&&xJ(b.a)?(c.preventDefault(),!0):!1};BJ.prototype.H=function(){return!1};BJ.prototype.o=function(b){DJ(this,b.target||null)};
var DJ=function(b,c){b.j.qd();b.a&&yJ(b.a);c!=b.Pb&&(b.Pb=c,b.k&&(b.k.start(),b.b.C(b.k,"tick",b.Or)),b.Ro=b.getValue(),aJ(b.g,b.Pb),b.b.C(b.g,"key",b.Mr),b.b.C(b.Pb,"mousedown",b.Nr),I&&b.b.C(b.Pb,"keypress",b.B))};k=BJ.prototype;k.nx=function(){CJ?this.ln=window.setTimeout(t(this.Dt,this),0):this.Dt()};
k.Dt=function(){this.Pb&&(this.b.k(this.g,"key",this.Mr),hJ(this.g),this.b.k(this.Pb,"keyup",this.H),this.b.k(this.Pb,"mousedown",this.Nr),I&&this.b.k(this.Pb,"keypress",this.B),this.Xg&&HJ(this),this.Pb=null,this.k&&(this.k.stop(),this.b.k(this.k,"tick",this.Or)),this.a&&zJ(this.a))};k.Or=function(){this.update()};k.Sy=function(b){this.o(b)};k.Mr=function(b){this.p=b.keyCode;this.a&&this.le(b)};k.Qs=function(){this.Xg&&229!=this.p&&HJ(this)};
k.Ss=function(b){this.Xg&&(13==b.keyCode||77==b.keyCode&&b.ctrlKey)&&HJ(this)};k.Nr=function(){};var HJ=function(b){b.Xg&&(b.Xg=!1,b.b.k(b.Pb,"keypress",b.Qs),b.b.k(b.Pb,"keyup",b.Ss))};BJ.prototype.B=function(b){GJ(this,b)};
BJ.prototype.update=function(b){if(this.Pb&&(b||this.getValue()!=this.Ro)){if(b||!this.Ap){b=ZI(this.Pb)[0];var c=this.getValue();b=FJ(this,c)[EJ(this,c,b)];b=this.A?String(b).replace(this.A,""):b;this.a&&(this.a.Hb=this.Pb,this.a.setToken(b,this.getValue()))}this.Ro=this.getValue()}this.Ap=!1};
var EJ=function(b,c,d){b=FJ(b,c);if(d==c.length)return b.length-1;for(var e=c=0,f=0;e<b.length&&f<=d;e++)f+=b[e].length,c=e;return c},FJ=function(b,c){if(!b.e)return[c];for(var d=String(c).split(""),e=[],f=[],g=0,h=!1;g<d.length;g++)b.l&&-1!=b.l.indexOf(d[g])?(h||(e.push(f.join("")),f.length=0),f.push(d[g]),h=!h):h||-1==b.h.indexOf(d[g])?f.push(d[g]):(f.push(d[g]),e.push(f.join("")),f.length=0);e.push(f.join(""));return e};
var IJ=function(b,c,d){Bj.call(this);this.nb=b;this.p=!c;this.a=new Nn(d)};v(IJ,Bj);k=IJ.prototype;k.Qr="GET";k.Pr=void 0;k.Qo=null;k.Em=function(b){this.Qr=b};k.setContent=function(b){this.Pr=b};k.Gk=function(b){this.a.Gk(b)};k.Wp=function(b,c,d){d=$n(d.target);var e=[];if(d)try{e=Gb(d)}catch(f){}c(b,e)};
k.Nt=function(b,c,d){var e=this.p,f=new Mh(this.nb);di(f,"token",b);di(f,"max_matches",String(c));di(f,"use_similar",String(Number(e)));if(c=f.toString())b=t(this.Wp,this,b,d),this.a.bb&&this.a.abort(),this.Qo&&mk(this.Qo),this.Qo=jk(this.a,"success",b),this.a.send(c,this.Qr,this.Pr,null)};k.D=function(){this.a.la();IJ.r.D.call(this)};
var JJ=function(b,c,d,e){W.call(this);this.o=b||document.body;this.a=tf(this.o);this.A=!b;this.P=null;this.p="";this.b=[];this.e=[];this.K=this.l=-1;this.h=!1;this.className="ac-renderer";this.R="ac-highlighted";this.g=c||null;this.ca=null!=e?e:!0;this.ka=!!d;this.j=!1};v(JJ,W);k=JJ.prototype;k.w=function(){return this.P};k.vp=function(b,c,d){this.p=c;this.b=b;this.l=-1;this.K=ta();this.Hb=d;this.e=[];KJ(this)};
k.be=function(){this.Hb&&Zp(this.Hb,null);this.h&&(this.h=!1,this.Hb&&Xp(this.Hb,"haspopup",!1),Jq(this.P,!1))};k.show=function(){this.h||(this.h=!0,this.Hb&&(Wp(this.Hb,"combobox"),Xp(this.Hb,"autocomplete","list"),Xp(this.Hb,"haspopup",!0)),Jq(this.P,!0))};k.Va=function(){return this.h};
var LJ=function(b,c){var d=0<=c&&c<b.b.length?b.b[c]:void 0,e=0<=c&&c<b.e.length?b.e[c]:void 0;b.dispatchEvent({type:"rowhilite",NE:e,row:d?d.data:null})&&(0<=b.l&&fh(b.e[b.l],["ac-active","active"]),b.l=c,e&&(dh(e,["ac-active","active"]),b.Hb&&Zp(b.Hb,e),zq(e,b.P)))};JJ.prototype.tb=function(b){if(-1==b)LJ(this,-1);else for(var c=0;c<this.b.length;c++)if(this.b[c].id==b){LJ(this,c);break}};
var MJ=function(b){if(!b.P){var c=b.a.Ka("DIV",{style:"display:none"});b.P=c;dh(c,Ga(b.className).split(" "));Wp(c,"listbox");c.id=hr(gr.pb());b.a.appendChild(b.o,c);T(c,"click",b.I,!1,b);T(c,"mousedown",b.H,!1,b);T(c,"mouseover",b.O,!1,b)}},KJ=function(b){MJ(b);b.j&&(b.P.style.visibility="hidden");b.ga&&(b.P.style.minWidth=b.ga.clientWidth+"px");b.e.length=0;b.a.xr(b.P);if(b.g&&b.g.render)b.g.render(b,b.P,b.b,b.p);else{var c=null;y(b.b,function(b){var e=this.p,f=this.a.Ka("DIV",{className:"ac-row",
id:hr(gr.pb())});Wp(f,"option");this.g&&this.g.up?this.g.up(b,e,f):Rf(f,b.data.toString());e&&this.ca&&(this.Q=!1,NJ(this,f,e));ch(f,"ac-row");this.e.push(f);b=f;this.j?this.P.insertBefore(b,c):this.a.appendChild(this.P,b);c=b},b)}0==b.b.length?b.be():(b.show(),b.ic(),Mq(b.P,!0))};JJ.prototype.ic=function(){if(this.Hb&&this.A){var b=this.vj||this.Hb,c;c=this.ka?3:1;this.j&&(c^=1);DI(b,c,this.P,c^1,null,null,65);this.j&&(this.P.style.visibility="visible")}};
JJ.prototype.D=function(){this.P&&(lk(this.P,"click",this.I,!1,this),lk(this.P,"mousedown",this.H,!1,this),lk(this.P,"mouseover",this.O,!1,this),this.a.no(this.P),this.P=null,this.h=!1);S(this.sa);this.o=null;JJ.r.D.call(this)};
var NJ=function(b,c,d){if(!b.Q)if(3==c.nodeType){var e=null;fa(d)&&1<d.length&&(e=xb(d,1));d=OJ(d);if(0!=d.length){var f=c.nodeValue,g=new RegExp("\\b(?:"+d+")","gi");d=[];for(var h=0,l=g.exec(f),m=0;l;)m++,d.push(f.substring(h,l.index)),d.push(f.substring(l.index,g.lastIndex)),h=g.lastIndex,l=g.exec(f);d.push(f.substring(h));if(1<d.length){for(e=0;1>e;e++)f=2*e,c.nodeValue=d[f],g=b.a.createElement("B"),g.className=b.R,b.a.appendChild(g,b.a.a.createTextNode(String(d[f+1]))),g=c.parentNode.insertBefore(g,
c.nextSibling),c.parentNode.insertBefore(b.a.a.createTextNode(""),g.nextSibling),c=g.nextSibling;d=xb(d,2);c.nodeValue=d.join("");b.Q=!0}else e&&NJ(b,c,e)}}else for(c=c.firstChild;c;)e=c.nextSibling,NJ(b,c,d),c=e},OJ=function(b){var c="";if(!b)return c;fa(b)&&(b=gb(b,function(b){return!Ea(x(b))}));fa(b)?c=0<b.length?Ua(b[0]):"":/^\W/.test(b)||(c=Ua(b));return c},PJ=function(b,c){for(;c&&c!=b.P&&!bh(c,"ac-row");)c=c.parentNode;return c?db(b.e,c):-1};
JJ.prototype.I=function(b){var c=PJ(this,b.target);0<=c&&this.dispatchEvent({type:"select",row:this.b[c].id});b.stopPropagation()};JJ.prototype.H=function(b){b.stopPropagation();b.preventDefault()};JJ.prototype.O=function(b){b=PJ(this,b.target);0<=b&&!(300>ta()-this.K)&&this.dispatchEvent({type:"hilite",row:this.b[b].id})};
var QJ=function(b,c,d,e){this.j=b=new IJ(b,!e);e=new JJ;d=new BJ(null,null,!!d,300);vJ.call(this,b,e,d);d.a=this;d.Lr(c)};v(QJ,vJ);QJ.prototype.Em=function(b){this.j.Em(b)};QJ.prototype.setContent=function(b){this.j.setContent(b)};QJ.prototype.Gk=function(b){this.j.Gk(b)};
var RJ=function(b,c,d,e){BJ.call(this,b,c,d,e)};v(RJ,BJ);RJ.prototype.Cp=function(b){var c=RJ.r.Cp.call(this,b);b.select(this.a.Hb);return c};var UJ=function(b,c,d,e,f,g,h,l,m,r){l=new SJ(l);b=new TJ(b,c,d,f,g,h,!r);m=new RJ(null,null,!!m,1);vJ.call(this,b,l,m);m.a=this;m.Lr(e)};v(UJ,QJ);var SJ=function(b){JJ.call(this,null,b);this.A=!0;this.B=!1};v(SJ,JJ);SJ.prototype.ic=function(){SJ.r.ic.call(this);if(this.vj&&this.w()){var b=Fq(this.w()),c=this.vj.getBoundingClientRect(),d=c.top,c=window.innerHeight-c.bottom,b=c<b.height&&d>c;b!=this.B&&(this.j=this.B=b,KJ(this))}};
var TJ=function(b,c,d,e,f,g,h){IJ.call(this,d,h);this.l=b;this.j=c;this.o=!h;this.k=d;this.g=e;this.e=f;this.h=g;this.b=this.Qa=null};v(TJ,IJ);TJ.prototype.Wp=function(b,c,d){c(b,this.h(d))};
TJ.prototype.Nt=function(b,c,d){var e=this,f=this.e(this.k,b,c,this.o);if(f){this.Qa&&(this.Qa.cancel(),this.Qa=null);var g=function(b){b.render=function(c){var d=tf(c);if(b.ik){var e=d.Ka("img");zf(e,{src:b.ik});var f=d.Ka("div");zf(f,{"class":"ac-img"});d.appendChild(f,e);d.appendChild(c,f)}e=d.Ka("span");d.appendChild(e,d.a.createTextNode(String(b.text)));d.appendChild(c,e)};b.select=function(c){c.value=b.id};return b},h=function(b,c){try{for(var e=[],f=0;f<c.length;f++)e.push(g(c[f]));d(b,e)}catch(h){d(b, [])}};window.clearTimeout(this.b);this.b=window.setTimeout(function(){e.Qa=Sm(Vm(vp(e.l,e.k,f,e.g),function(){this.Qa=null},e),function(c){this.Wp(b,h,c)},function(b){b instanceof Nm&&this.j.a([])},e)},300)}};
var VJ=function(b){b=b||{};return M('<div class="gci-search-box'+(b.Zq?" "+Q(b.Zq):"")+'"><input class="gci-search-box-input" type="search"'+(b.At?'placeholder="'+Q(b.At)+'"':"")+"></input>"+(b.Px?"":"<div class=\"gci-search-box-magnifying-glass\"><svg viewBox='0 0 16 16' height='16' width='16' xmlns='http://www.w3.org/2000/svg'><path d='M11.681,10.163l-0.299,0.257l-0.591-0.688c1.967-2.101,2.079-5.401,0.161-7.636C8.896-0.3,5.273-0.576,2.877,1.479C0.481,3.537,0.204,7.158,2.26,9.555c1.917,2.234,5.195,2.627,7.573,1.002l0.589,0.687L10.121,11.5l3.438,4.398l1.56-1.339L11.681,10.163z M9.608,9.323c-1.929,1.655-4.845,1.434-6.5-0.496c-1.656-1.928-1.434-4.844,0.496-6.5c1.929-1.654,4.845-1.432,6.5,0.497C11.76,4.753,11.537,7.669,9.608,9.323z'/></svg></div>")+ "</div>")};
var XJ=function(b,c){W.call(this);this.G=Y;var d=c||{},e=d.mt||"Refine your Search",d=$(L(VJ,{Zq:d.fz,Px:d.hz,At:e})),f=d.find(".gci-search-box-input");f&&f.length&&f.placeholder&&f.placeholder(e);this.n=d.appendTo(b);this.a=null;WJ(this)};v(XJ,W);XJ.prototype.D=function(){this.n.remove();XJ.r.D.call(this)};var ZJ=function(b,c){var d=YJ(b);void 0!=c&&d.val(c);return d.val().toString()};XJ.prototype.focus=function(){$J(this)||(YJ(this).focus(),aK(this))};
XJ.prototype.blur=function(){$J(this)&&(YJ(this).blur(),bK(this))};
var $J=function(b){return b.n.hasClass("gci-search-box-focus")},YJ=function(b){return b.n.find(".gci-search-box-input")},WJ=function(b){b.n.find(".gci-search-box-magnifying-glass").on("click.gci-search-box",function(){!X(b.G)||$J(b)||ZJ(b)?cK(b):YJ(b).focus();return!1});YJ(b).on("keydown.gci-search-box",function(c){var d;(d=!b.a)||(d=b.a,d=!(d.rd()&&-1!=wJ(d,d.h)));if(d){if(13==c.keyCode)return cK(b),!1;c.stopPropagation()}}).on("keyup.gci-search-box",function(){b.dispatchEvent("key-up");return!1}).on("focus.gci-search-box",
function(){aK(b)}).on("blur.gci-search-box",function(){bK(b)})},aK=function(b){!X(b.G)&&Ji(!1);b.n.addClass("gci-search-box-focus");b.dispatchEvent("focus");b.G.Jb()&&Qt(b.G.Jb(),"SearchBox","Focus")},bK=function(b){b.n.removeClass("gci-search-box-focus");b.dispatchEvent("blur");!X(b.G)&&Ji(!0)},cK=function(b){b.dispatchEvent("selection-changed");zi()&&b.dispatchEvent("blur");b.dispatchEvent("submit");b.G.Jb()&&Qt(b.G.Jb(),"SearchBox","Submit")},dK=function(b){XJ.call(this,b,{fz:"gci-header-search", mt:"Search"})};v(dK,XJ);
var eK=function(){return M('<aside class="gci-faceter gci-unified-sidebar"><div class="gci-faceter-refine"><a class="gci-faceter-clear-all" href="#clear-all">Clear all refinements</a><div class="gci-faceter-search-box-container"></div></div><div class="gci-faceter-content"></div></aside>')},fK=function(b){return M('<div class="gci-faceter-value" title="'+Q(b.title)+" - "+Q(b.count)+'"><figure class="gci-faceter-value-wrapper">'+(b.bA?'<div class="gci-faceter-value-img-wrapper">'+(b.ne&&b.qk?'<img src="'+
Q(R(b.ne))+'" alt="'+Q(b.title)+'">':b.ne?'<img src="'+Q(R(ju("common/pixel.gif")))+'" data-src="'+Q(b.ne)+'" alt="'+Q(b.title)+'">':'<img src="'+Q(R(ju("common/pixel.gif")))+'" class="gci-faceter-value-img-filler">')+"</div>":"")+'<figcaption class="gci-faceter-value-txt-wrapper"><div class="gci-faceter-value-label">'+N(b.title)+'</div><div class="gci-faceter-value-count">'+N(b.count)+"</div></figcaption></figure></div>")};
var iK=function(b){U.call(this);this.n=$(L(eK));gK(this);this.e="";this.g=new XJ(this.n.find(".gci-faceter-search-box-container"));var c=this,d=null,e="",f=function(){window.clearTimeout(d);c.e=Ga(ZJ(c.g).toString());c.b("collections-faceter-selection-changed")};this.g.C("submit",f);this.g.C("selection-changed",f);this.g.C("key-up",t(function(){if(this.qc&&"media_type"!=this.qc&&"date"!=this.qc){var b=Ga(ZJ(this.g).toString());if(e!=b){e=b;window.clearTimeout(d);var c=[hK(this,this.qc).hc,b];d=window.setTimeout(t(function(){this.b("gci-faceter-key-up",
c)},this),300)}}},this));this.n.find(".gci-faceter-clear-all").on("click",t(function(){this.b("gci-faceter-clear-all");return!1},this));f=$("<div>").addClass("gci-faceter-date-histogram");this.l=$("<div>").addClass("gci-faceter-value-container");var g=new Jp(this.l,{gd:f});this.J(g);this.a=new OI(f,K.Vk,K.Uk);this.a.bind("selection-changed",t(this.b,this,"collections-faceter-selection-changed"));this.J(this.a);TI(this.a);this.n.appendTo(b);this.h=[];this.Ve={}};v(iK,wk);
iK.prototype.D=function(){jK(this);this.n.remove();this.n=null;S(this.g);iK.r.D.call(this)};iK.prototype.Va=function(){return this.n.is(":visible")};iK.prototype.toggle=function(b){this.n.toggle(b)};
var kK=function(b){var c={};$.each(b.Ve,function(b,e){"openId"!=b&&(c[b]=e.join(","))});b.qc&&(c.openId=b.qc);return c},lK=function(b){var c={};$.each(b.Ve,t(function(b){var e=hK(this,b);e&&(c[b]={dD:e.hc.Wc(),us:e.Rc,yC:e})},b));b.qc&&(c.openId=b.qc);return c},mK=function(b,c){jK(b);b.Ve={};b.qc=null;$.each(c,$.proxy(function(b,c){"openId"==b?this.qc=this.Ve.openId=c:this.Ve[b]=c.split(",")},b))},jK=function(b){Ej(b.h);b.h=[]},hK=function(b,c){for(var d=0;d<b.h.length;d++){var e=b.h[d];if(e.hc.getId()==
c)return e}return null},nK=function(b,c){0<=$.inArray(c,b.h)&&(b.Ve[c.hc.getId()]=$.map(c.Rc,function(b){return b.getId()}),b.b("collections-faceter-selection-changed"))},pK=function(b,c){c.Yl()?b.Ve[c.hc.getId()]=$.map(c.Rc,function(b){return b.getId()}):delete b.Ve[c.hc.getId()];$.each(c.hc.b,function(c,e){var f=hK(b,e);f&&oK(f)});b.b("collections-faceter-selection-changed")};iK.prototype.Yl=function(b){return!!this.Ve[b]};
var gK=function(b){b.j=xk(new nu(b.n.find(".gci-faceter-content"),"gci-ui-tabs-vertical-light",!0),b);b.j.bind("open",t(function(b,d,e){b=this.j.get().find(".gci-ui-tabs-content li[data-tab-id="+e+"] [data-src]");$.each(b,function(b,c){c=$(c);var d=c.attr("data-src")||"";c.attr("src",d).removeAttr("data-src")});(b=hK(this,e))?this.qc=b.hc.getId():"date"==e&&(this.qc=e,this.a.update(!0))},b))},uK=function(b,c,d){qK(b,b.e);var e=b.l.detach();jK(b);S(b.j);gK(b);var f=b.Ve.openId;$.each(c,t(function(b,
c){var d=c.getId(),e;if(!(e=this.Yl(d)))a:{if(c.a){if(1==c.a.length&&c.a[0].Aj){c.a[0].Aj=!1;e=!0;break a}e=0;for(var r;r=c.a[e];e++)if(!r.Aj){e=!0;break a}}e=!1}e&&(this.qc||d!=f||(this.qc=f),d=new rK(this,c,this.Ve[d]),sK(d),this.h.push(d),c.getId()==this.qc&&tK(d)&&(this.qc=f,mu(this.j,c.getId().toString(),!0)))},b));d&&d.length&&$.each(d,t(function(b,c){if(c.cc()==Al.M)return VI(this.a,c),!1},b));pu(b.j,"date","Date",e);if("date"==b.qc||!b.qc&&"date"==f)b.qc="date",mu(b.j,b.qc,!0);!b.qc&&0<c.length&&
(b.qc=c[0].getId())},wK=function(b,c){$.each(b.h,function(b,e){e.hc.getId()==c.getId()&&(e.hc=c,vK(e,!0))})},qK=function(b,c){c=Ga(c);ZJ(b.g,c);b.e=c},xK=function(b){return(b=b.e)?{text:b}:{}},yK=function(b,c){(c.date_min||c.date_max)&&NI(b.a,$.isNumeric(c.date_min)?parseInt(c.date_min,10):K.Vk,$.isNumeric(c.date_max)?parseInt(c.date_max,10):K.Uk,!0,!0)},zK=function(b){var c=b.a.h,d=b.a.g,e="";b.a.I&&(e=wj(c,6));b.a.A?(b=wj(d,6),e=e?e+(" - "+b):"Before "+b):e&&(e="Since "+(e+""));return e},AK=function(b){PI(b.a,
K.Vk,K.Uk,!1);b.b("collections-faceter-selection-changed")},BK=function(b,c){b.n.toggleClass("gci-faceter-with-clear-all",c);b.n.find(".gci-faceter-clear-all").toggle(c)};iK.prototype.resize=function(){this.a.update(!0)};iK.prototype.bind=function(b,c){this.n.bind(b,$.proxy(c,this));return this};iK.prototype.unbind=function(b,c){this.n.unbind(b,c)};iK.prototype.b=function(b,c){this.n.trigger(b,c)};
var rK=function(b,c,d){U.call(this);this.G=Y;this.Nj=b;this.hc=c;this.Rc=[];if(d){b={};c=c.gc();for(var e=0,f;f=c[e];e++)0<=$.inArray(f.getId(),d)&&(b[f.getId()]=f);for(e=0;f=d[e];e++)b[f]&&this.Rc.push(b[f])}};v(rK,wk);rK.prototype.D=function(){this.sj.remove();this.hc=this.sj=null;S(this.Rc);this.Rc=null;rK.r.D.call(this)};
var sK=function(b){b.sj=$("<div>");var c=$("<div>").addClass("gci-faceter-value-container"),d=xk(new Jp(c,{gd:b.sj}),b);X(b.G)||d.bind("infinite-scroll",t(function(){this.hc.Nf()||this.a&&this.a.attr("disabled")||(this.a&&this.a.attr("disabled",""),this.Nj.b("collections-faceter-load-more",[this.hc]))},b));zi()&&c.attr("style","overflow-y: auto !important");tK(b)&&pu(b.Nj.j,b.hc.getId().toString(),b.hc.Wc(),c);tK(b)&&vK(b)},vK=function(b,c){b.sj.empty();b.a=null;$.each(b.hc.gc(),$.proxy(function(b,
e){e.Aj||this.Yl(e)||this.sj.append(CK(this,e,c))},b));b.hc.Nf()||DK(b,b.sj)},CK=function(b,c,d){c.a=$(L(fK,{bA:!Jt(b.G)&&b.hc.h,ne:Ci(c.g),qk:d,title:c.Wc(),count:Yz(new Uz("{count, plural, =0 {No items} =1 {One item} other {# items}}"),{count:c.Ub()})}));c.a.click($.proxy(function(){for(var b=!1,d=0;d<this.Rc.length;d++)if(this.Rc[d]&&this.Rc[d].getId()&&this.Rc[d].getId()==c.getId()){b=!0;break}b||(this.Rc.push(c),nK(this.Nj,this))},b));return c.a},DK=function(b,c){b.a=$("<div>").addClass("gci-faceter-view-more").attr("title",
"More...").text("More...").appendTo(c);b.a.click(t(function(){this.a.attr("disabled")||(this.a.attr("disabled",""),this.Nj.b("collections-faceter-load-more",[this.hc]))},b))},oK=function(b,c){if(0<b.Rc.length){if(c)for(var d=0,e;e=b.Rc[d];d++){if(e.getId()==c){b.Rc.splice(d,1);break}}else b.Rc=[];pK(b.Nj,b)}};rK.prototype.Yl=function(b){if(b){for(var c=0,d;d=this.Rc[c];c++)if(d.getId()==b)return!0;return!1}return 0<this.Rc.length}; var tK=function(b){return 0<b.hc.gc().length&&!EK(b)},EK=function(b){if(!b.hc.Nf())return!1;var c=function(b){return b.Aj?null:b.getId()},d=$.map(b.hc.gc(),c);b=$.map(b.Rc,c);Cb(d);Cb(b);return Eb(d,b)};
var GK=function(b){A(this,b,0,-1,FK)};v(GK,z);var FK=[1,2,3,4,5,6];GK.prototype.L=function(){return H(this)};var HK=new ac(45658999,{WB:0},GK,function(b,c){var d={zz:cc(c.gf(),QB,b),l:cc(c.mh(),mv,b),Wq:cc(c.od(),kE,b),Aw:cc(F(c,qE,4),uE,b),BA:cc(F(c,qE,5),uE,b),wn:cc(c.Vc(),Nz,b)};b&&(d.X=c);return d});lv[45658999]=HK;GK.prototype.gf=function(){return F(this,OB,1)};GK.prototype.mh=function(){return F(this,$u,2)};GK.prototype.od=function(){return F(this,fE,3)}; GK.prototype.Vc=function(){return F(this,Lz,6)};
var Yw=function(b){this.a=b;var c=E(b,Vu,3);c||(c=new Vu,G(b,3,c));this.V=new ny(c);this.uc={};this.bh={};this.b={};this.bc={};this.k={};if(b=b.getExtension(HK))y(b.Vc(),this.Kw,this),y(b.mh(),this.Lv,this),y(b.od(),this.Mv,this),y(F(b,qE,4),this.Nv,this),y(b.gf(),this.Ov,this)};k=Yw.prototype;k.pl=null;k.getId=function(){return this.a.getName()};k.Ea=function(){return this.a};k.getTitle=function(){var b=sy(this.V,Mk);return(b=b?Tl(b.ma()):null)?b.T():""};
k.Vb=function(){var b=sy(this.V,Nk);return(b=b?Tl(b.ma()):null)?b.T():""};var IK=function(b){var c=!(!b.Lc()&&!b.Vb());return py(b.V,Ek)?c&&yy(b.V,Ek):c},JK=function(b){return(b=(b=sy(b.V,Dk))?Tl(b.ma()):null)?b.T():""};Yw.prototype.Lc=function(){return Ot(this.V,Fk)||""};var KK=function(b){return hb(ry(b.V,Gk),function(b){return b})};Yw.prototype.g=function(){return!!KK(this).length};
var wx=function(b){return(b=ax(b.V,xl))?parseInt(b,16):null},LK=function(b){b=E(b.a,cv,8);return Ci(b?b.getUrl()||"":"")};Yw.prototype.ds=function(){return""!=LK(this)};
var MK=function(b){b=F(b.a,cv,11);for(var c=[],d=0;d<b.length;d++){var e=b[d];c.push({url:e.getUrl(),rs:new sm(e.Xb())})}return c},NK=function(b){var c=[],d=E(b.a,Tu,9);if(d&&0<F(d,Iu,1).length)for(var e=function(c,d){if(B(d,10).length){var e=b.uc[B(d,10)[0].toString()];if(e)return c.Dp(e),!0}return!1},f=0;f<F(d,Iu,1).length;f++){var g=F(d,Iu,1)[f],h=null;switch(g.U()){case 6:h=b.uc[B(g,9).toString()];break;case 4:h=b.bc[B(g,7).toString()];break;case 1:h=b.k[B(g,4).toString()];e(h,g)||(h=null);break;
case 2:h=b.bh[B(g,5).toString()];e(h,g)||(h=null);break;case 3:h=b.b[B(g,6).toString()];e(h,g)||(h=null);break;default:continue}h&&(B(g,11)&&h.l&&h.l(B(g,11).toString()),c.push(h))}return c},PK=function(b){return(b=E(b.a,Tu,9))&&B(b,3)?OK(B(b,3)):null},QK=function(b){return(b=E(b.a,Tu,9))&&E(b,Mu,6)||null},OK=function(b){switch(b){case 1:return"grid";case 3:return"gallery";case 4:return"fullscreen"}return null};k=Yw.prototype;k.Dp=function(b){this.pl=b};
k.ab=function(){return this.pl?this.pl.ab():null};k.Hd=function(){return yy(this.V,Lk)};
k.render=function(b,c,d){c=this.pl;var e="";d={size:d,fadeIn:!0,Bd:!0,Ma:!0};switch(b){case "gallery":e="gci-channel-gallery";case "grid":e||(e="gci-channel-grid");case "fullscreen":return e||(e="gci-channel-fullscreen"),b=$(L(xG,{view:b,channel:{title:Ta(this.getTitle(),50),Eb:this.getTitle()},F:{title:Ta(c.getTitle(),50),Eb:c.getTitle(),ec:IA(c),da:lB(c),kb:HA(c)}})),d=sA(c,d),b.find(".gci-channel-image").replaceWith(d),b.find(".gci-channel-square-container").detach().appendTo(b.find(".collections-asset-thumbnail")),
b.find("."+e).on("click.gci-channel",t(this.$y,this)),mB(c,b),b.data("asset",c),b;default:return $("<div>")}};k.$y=function(){zx("project",{projectId:this.getId()})};k.Kw=function(b){b=new tA(b);this.uc[b.getId()]=b};k.Lv=function(b){b=new Yw(b);this.bh[b.getId()]=b};k.Mv=function(b){b=new EG(b);this.b[b.ya()]=b};k.Nv=function(b){b=new bH(b);var c=b.getId();this.bc[c]=b};k.Ov=function(b){b=new VA(b);this.k[b.getId().toString()]=b};
var RK=function(b){U.call(this);b=b||{};this.a=[];this.h=b.nz||25;this.b=b.gz||null;this.e=null;this.g=b.qE||!1;this.j=b.pz||q};v(RK,wk);
var SK=function(b,c){b.b&&b.clear();b.b=c},UK=function(b){var c=new TK(b.b);b.J(c);Cj(c,function(){sb(this.a,c)},b);b.a.push(c)},ZK=function(b,c,d){var e=b.a[b.a.length-1]||null;if(0==b.a.length||e&&e.ab()>=b.h)b.a.length&&b.g&&(VK(e,b.b),b.e=b.a.length-1,b.j(e)),UK(b),e=b.a[b.a.length-1]||null;b=e;b.b||WK(b);b.e.push(c);c.appendTo(b.b);d&&(e.g?d():kk(e,"gci.ui.Fragment-attached",d))},aL=function(b,c){for(var d=0,e;e=b.a[d];d++)if($K(e,c)){d=e;e=c;sb(d.e,e)&&e.remove();0==d.e.length&&S(d);break}},
bL=function(b){for(var c=0,d;d=b.a[c];c++)d.g||(b.e=c,VK(d,b.b),b.j(d))},cL=function(b){var c=null!=b.e?b.e+1:0;b.a[c]&&(b.e=c,VK(b.a[c],b.b))},dL=function(b,c){for(var d=0,e;(e=b.a[d])&&(e.g||(b.e=d,VK(e,b.b)),!$K(e,c));d++);};RK.prototype.clear=function(){for(var b=0,c;c=this.a[b];b++)c.remove();this.a=[]};RK.prototype.height=function(){return this.b.height()};
var eL=function(b){return gb(b.a,function(b){if(b.b&&(b.a||0!=b.b.height()&&0!=b.b.width())){var d=X(Y),e=b.b.offset();d&&(e.top-=$("body").scrollTop());d=d?$(window).height():$(document).height();b=b.a?b.g&&b.a.Ym<d-e.top&&0<b.a.Xm+e.top&&b.a.Wm<b.a.Tk-e.left&&0<b.a.Tk+e.left:b.g&&!(e.left>$(document).width()||0>e.left+b.b.width()||e.top>d||0>e.top+b.b.height())}else b=!1;return b})},TK=function(b){W.call(this);this.e=[];this.n=b||null;this.b=null;this.g=!1;this.a=null};v(TK,W);
TK.prototype.D=function(){this.n&&this.n.remove();this.n=null;this.b&&this.b.remove();this.b=null;TK.r.D.call(this)};
var WK=function(b){b.b=$("<div>");b.b.addClass("gci-ui-fragment")},VK=function(b,c){b.b||WK(b);var d=c||b.n;d&&(b.b.appendTo(d),b.g=!0,b.dispatchEvent("gci.ui.Fragment-attached"))},fL=function(b){b.a={Tk:null,Wm:null,Xm:null,Ym:null};for(var c=0,d;d=b.e[c];c++){var e=d.position(),f=d.width();d=d.height();b.a.Wm=parseFloat(null==b.a.Wm?e.left:Math.min(e.left,b.a.Wm));b.a.Ym=parseFloat(null==b.a.Ym?e.top:Math.min(e.top,b.a.Ym));b.a.Tk=parseFloat(null==b.a.Tk?e.left+f:Math.max(e.left+f,b.a.Tk));b.a.Xm=
parseFloat(null==b.a.Xm?e.top+d:Math.max(e.top+d,b.a.Xm))}};TK.prototype.remove=function(){this.b.remove()};TK.prototype.ab=function(){return this.e.length};var gL=function(b,c,d){for(var e=0,f;f=b.e[e];e++)c(f,e,d)},$K=function(b,c){return!!ob(b.e,function(b){return c.is(b)})};
var hL=function(){return M('<div class="gci-ui-itemsviewer-container"><div class="gci-ui-itemsviewer-content"></div></div>')},iL=function(){var b;b=O("Show more results");b=""+P(qv({label:b,type:"secondary",ac:O("collections-ui-button-big gci-ui-itemsviewer-load-more"),disabled:!0,value:b}));return M(b)},jL=function(b){b=b||{};b=""+('<button class="gci-ui-itemsviewer-toggle-map collections-ui-button'+(b.oy?"":" gci-ui-itemsviewer-toggle-map-on")+'"><span class="gci-ui-itemsviewer-map-on">Hide Map</span><span class="gci-ui-itemsviewer-map-off">Show Map</span></button>');
return M(b)},kL=function(b){b=b||{};var c='<div class="gci-ui-itemsviewer-info"><div class="gci-ui-itemsviewer-info-container"><div class="gci-ui-itemsviewer-info-wrapper collections-scroller"><div class="gci-ui-itemsviewer-info-content"><div class="gci-ui-itemsviewer-info-header">'+(b.link?'<a href="'+Q(R(b.link.url))+'" target="_blank" class="gci-ui-itemsviewer-info-image-link">':"")+(b.ne?'<img class="gci-ui-itemsviewer-info-image" src="'+Q(R(b.ne))+'" />':"")+(b.link?"</a>":"")+'<div class="gci-ui-itemsviewer-item-attribution"></div><div class="clear"></div></div>'+
(b.Zz?"<h3>"+N(b.Zz)+"</h3>":"");if(b.cu)var d="Topic: <span>"+(N(b.cu)+"</span>"),c=c+('<div class="gci-ui-itemsviewer-info-topic">'+d+"</div>");c+='<div class="gci-ui-itemsviewer-info-description"></div>'+(b.Ht?'<div class="gci-ui-itemsviewer-info-relation"></div>':"")+(b.longDesc?'<div class="gci-ui-itemsviewer-info-longdesc"></div>':"");if(b.Fn&&b.Fn.length){for(var c=c+'<fieldset class="gci-ui-itemsviewer-contributing"><legend>In collaboration with:</legend>',d=b.Fn,e=d.length,f=0;f<e;f++)var g=
d[f],c=c+((g.link?'<a href="'+Q(R(g.link))+'" target="_blank">':"")+'<img  src="'+Q(R(g.url))+'" title="'+Q(g.title)+'"/>'+(g.link?"</a>":""));c+="</fieldset>"}c+="</div></div></div>"+(b.Ip?'<div class="gci-ui-itemsviewer-info-actions"></div>':"")+(b.link&&b.link.url&&b.link.title?'<a href="'+Q(R(b.link.url))+'" class="gci-ui-itemsviewer-info-link" target="_blank">'+N(b.link.title)+"</a>":"")+"</div>";return M(c)},lL=function(b){return M('<section class="gci-ui-itemsviewer-map-info"><div class="gci-ui-itemsviewer-desc-map"></div>'+
(b.address?'<p class="gci-ui-itemsviewer-map-address">'+N(b.address)+"</p>":"")+"</section>")},mL=function(b){b=b||{};var c="";b.Ut&&(c+=P(qv({label:O("Show on map"),type:"simple",Lf:O("SPRITE_map"),ac:O("gci-ui-itemsviewer-show-map")})));if(b.ci)var d="",d=b.zA?d+"Street view":d+"Museum view",c=c+P(qv({label:O(d),type:"simple",Lf:O("SPRITE_icon_pegman"),ac:O("gci-ui-itemsviewer-show-sv")}));b.cA&&(c+='<div class="gci-ui-itemsviewer-related-collection gci-small-discover">Related Collection:</div>');
return M(c)},nL=function(b){var c,d="Show all "+b.Qj,d=O(d);c="";switch(b.Hq){case "assets":c+="gci-ui-itemsviewer-view-container-assets";break;case "exhibits":c+="gci-ui-itemsviewer-view-container-exhibits";break;case "matches":c+="gci-ui-itemsviewer-view-container-matches";break;case "streetviews":c+="gci-ui-itemsviewer-view-container-streetviews"}c=O(c);c=""+('<div class="gci-ui-itemsviewer-view-container '+Q(c)+'">');switch(b.Hq){case "exhibits":c+="<h2>Exhibits";b.No&&2<b.total?c+='<a class="gci-ui-itemsviewer-show-exhibits" href="#exhibits">'+
N(d)+"</a>":(b=Zz(new Uz("{TOTAL,plural,=0{No exhibits}=1{One exhibit}other{{FORMATTED_TOTAL} exhibits}}"),{TOTAL:b.total,FORMATTED_TOTAL:N(b.Qj)}),c+='<span class="gci-ui-itemsviewer-count">'+b+"</span>");c+="</h2>";break;case "streetviews":c+='<h2><span class="gci-ui-itemsviewer-sv-label">Street View</span><span class="gci-ui-itemsviewer-mv-label">Museum View</span>';b.No&&2<b.total?c+='<a class="gci-ui-itemsviewer-show-streetviews" href="#streetviews">'+N(d)+"</a>":(d=Zz(new Uz("{TOTAL,plural,=0{No Street View}=1{One Street View}other{{FORMATTED_TOTAL} Street View}}"),
{TOTAL:b.total,FORMATTED_TOTAL:N(b.Qj)}),b=Zz(new Uz("{TOTAL,plural,=0{No Museum View}=1{One Museum View}other{{FORMATTED_TOTAL} Museum View}}"),{TOTAL:b.total,FORMATTED_TOTAL:N(b.Qj)}),c+='<span class="gci-ui-itemsviewer-count gci-ui-itemsviewer-sv-label">'+d+'</span><span class="gci-ui-itemsviewer-count gci-ui-itemsviewer-mv-label">'+b+"</span>");c+="</h2>";break;default:c+="<h2>Items",b.No?c+='<a class="gci-ui-itemsviewer-show-items" href="#items">'+N(d)+"</a>":(b=Zz(new Uz("{TOTAL,plural,=0{No items}=1{One item}other{{FORMATTED_TOTAL} items}}"),
{TOTAL:b.total,FORMATTED_TOTAL:N(b.Qj)}),c+='<span class="gci-ui-itemsviewer-count">'+b+"</span>"),c+="</h2>"}return M(c+'<div class="gci-ui-itemsviewer-view-content"></div></div>')},oL=function(b){var c;c='<div class="gci-ui-itemsviewer-view-container gci-ui-itemsviewer-view-container-matches"><h2>Matches';0<b.rA&&(c+='<a class="gci-ui-itemsviewer-show-partners" href="#collections">Show collections</a>');return M(c+'</h2><div class="gci-ui-itemsviewer-view-content"></div></div>')},pL=function(){return M('<div class="gci-ui-itemsviewer-map"></div>')};
var qL=function(b){var c;c='<figure class="gci-onebox-item gci-onebox-usergallery"><div class="gci-onebox-item-thumb"><div>';for(var d=b.Rz,e=d.length,f=0;f<e;f++){var g=d[f];c+='<img class="gci-onebox-item-thumb-'+Q(f)+'" src="'+Q(R(g))+'"/>'}c+='</div></div><figcaption class="gci-onebox-item-summary"><h3>User galleries</h3><span class="gci-onebox-item-details">View the matching user galleries.</span>';b.qj&&(c+='<div class="gci-onebox-item-objects-count">',b.qj&&0<b.qj&&(c+='<span class="gci-onebox-item-usergalleries-count">', 10>b.qj?c+="A few user galleries":(b=N(b.qj)+"+ user galleries",c+=b),c+="</span>"),c+="</div>");return M(c+"</figcaption></figure>")};
var tL=function(b,c,d,e,f){U.call(this);this.G=Y;f=f||{};this.H=f.ct||null;this.a=b;this.g=c;this.g.bind("selection-changed",t(this.update,this));this.ca=e;this.R=f.$s||null;this.b=f.Hg||"all";this.K=f.rz||null;this.n=$(L(hL)).appendTo(d);this.e=this.n.find(".gci-ui-itemsviewer-content").first().toggleClass("gci-ui-hasmap",!!f.ht);this.h=$(L(iL));this.l=0;this.Q=f.wz||!1;this.O=f.ht||null;this.j=new RK({pz:t(function(b){NA(this.g)&&rL(this,b)},this)});this.J(this.j);X(this.G)&&(f.hp=570>this.G.w().width()?
140:f.hp||270);this.p=new sL(this.n,f.hp,f.mz);this.B=null;this.I=!!this.n.closest(".gci-homepage").length};v(tL,wk);tL.prototype.D=function(){this.n.remove();this.Tf&&this.Tf.remove();this.o&&this.o.remove();oG(this.B);tL.r.D.call(this)};var uL={Tz:.5,jA:.3,Ft:1.5},vL={margin:25,maxWidth:320,minWidth:211,minHeight:143};k=tL.prototype;k.S=null;k.em=null;k.Oh=!0;k.Tf=null;
k.update=function(){var b="gci-ui-itemsviewer-gallery";NA(this.g)&&(b="gci-ui-itemsviewer-grid");PA(this.g)&&(b="gci-ui-itemsviewer-fullscreen");this.n.removeClass().addClass("gci-ui-itemsviewer-container").addClass(b);this.e.empty();this.j.clear();this.j.h=NA(this.g)?zi()?6:24:5;this.j.g=NA(this.g);this.n.find(".gci-ui-itemsviewer-info-container").removeClass("gci-ui-itemsviewer-info-container-flex");if(this.H&&(b=this.H())){var c=b.find(".collections-scroller");zi()&&c.attr("style","overflow: auto !important");
vi(c,"gci-ui-itemsviewer",t(function(b){b.stopPropagation()},this));this.e.append(b)}this.p.n.css({height:""});window.setTimeout(t(function(){if(!this.isDisposed()){c&&c.prop("scrollHeight")<=c.height()&&this.n.find(".gci-ui-itemsviewer-info-container").addClass("gci-ui-itemsviewer-info-container-flex");this.e.off(".gci-ui-itemsviewer");this.h.remove();wL(this);if(this.a.bc&&0<this.a.o&&("all"==this.b||"exhibits"==this.b)){var b=this.a.o;xL(this,b,"exhibits","all"==this.b);var e=yL(this);this.l=e.width()-
15;"all"==this.b&&(b=zL(this));for(var f=0;f<b;f++){var g=this.a.bc[f];g&&AL(this,e,f,g)}}if(this.a.a&&0<this.a.g&&"all"==this.b)for(xL(this,this.a.g,"streetviews","all"==this.b),e=yL(this),this.l=e.width()-15,b=zL(this),g=this.a.a.items,f=0;f<b;f++)g[f]&&AL(this,e,f,g[f],"topbox",this.a.a);if((0<this.a.sb||this.a.a&&0<this.a.g)&&("all"==this.b||"items"==this.b||"streetviews"==this.b)){var h="streetviews"==this.b,f=h?this.a.a.items:this.a.items;xL(this,h?this.a.g:this.a.sb,h?"streetviews":"assets",
"all"==this.b);e=yL(this);this.l=e.width()-15;BL(this.p);SK(this.j,e);$.each(f,t(function(b,c){AL(this,this.j,b,c,void 0,h?this.a.a:void 0)},this))}var e=0<this.a.sb,f=this.a.bc&&0<this.a.o,b=this.a.h&&0<this.a.h.length||this.a.e&&0<this.a.e.length||this.a.l&&0<this.a.l.length,g=this.a.a&&0<this.a.g,l=null;e&&(f||b||g)?(f||"exhibits"!=this.b||(l="all"),g||"streetviews"!=this.b||(l="all")):e&&"items"!=this.b?l="items":f&&"exhibits"!=this.b?l="exhibits":g&&"streetviews"!=this.b?l="streetviews":e||f||
g||"all"==this.b||(l="all");l&&(CL(this,l,!0),this.update());OA(this.g)&&(zi()||vi(this.e,"gci-ui-itemsviewer",t(function(b){b=wi(b.originalEvent||b);b=Math.abs(b.deltaX)>Math.abs(b.deltaY)?b.deltaX:b.deltaY;b=this.e.scrollLeft()-120*b;this.e.scrollLeft(b);return!0},this)));bL(this.j);this.I||this.e.find(".collections-image-holder").trigger("preload",[]);DL(this);this.trigger("ui-updated");this.S&&google.maps.event.trigger(this.S.map,"resize");this.S&&this.em&&(EL(this,this.em),pG("itemsviewer-focus-item",
this.em,!0))}},this),0)};
var rL=function(b,c){window.setTimeout(t(function(){if(!this.isDisposed()){var b=[];gL(c,function(c){b.push({width:"",height:c.get(0).clientHeight})});gL(c,t(function(c,f){var g=this.p,h=b[f],l=FL(g),m=20;X(g.G)&&(m/=2);c.css({left:g.e+l*(g.b+m)+1,top:g.a[l],width:g.b});g.a[l]+=h.height+m},this));fL(c);GL(this.p)}},b),0)},HL=function(b){if(!b.a)return!1;var c=b.a.bc&&0<b.a.o,d=b.a.h&&0<b.a.h.length||b.a.e&&0<b.a.e.length||b.a.l&&0<b.a.l.length,e=b.a.a&&0<b.a.g;return!(0<b.a.sb&&(c||d||e))},wL=function(b){if(!Jt(b.G)&&
b.Q&&"all"==b.b){var c=b.a.l.length,d=b.a.e.length+b.a.h.length;if(0!=d||0!=c){var e=$(L(oL,{rA:b.a.e.length}));e.find(".gci-ui-itemsviewer-show-partners").on("click.gci-ui-itemsviewer",function(){b.G.Oa("collections",{q:b.a.b.text});return!1});e.appendTo(b.e);e=yL(b);b.l=e.width()-15;for(var d=IL(b)-Math.min(c,1),f=0,g=0,h=0;h<d;h++){var l;h<=d-1&&"undefined"!=typeof b.a.e[f]?(l=b.a.e[f],f++):"undefined"!=typeof b.a.h[g]?(l=b.a.h[g],g++):(l=b.a.e[f],f++);l&&AL(b,e,h,l,"onebox")}if(c){d=[];for(h=
0;h<b.a.l.length&&3>d.length;h++)(f=Sb(b.a.l[h].Bc)||null)&&d.push(f.Xc());c=$(L(qL,{qj:c,Rz:d}));c.on("click",function(){var c={};b.a.b.text&&(c.q=b.a.b.text);b.G.Oa("user-galleries",c)});JL(b,e,c)}}}},yL=function(b){var c=b.e.find(".gci-ui-itemsviewer-view-content:visible").last();return c.length?c:b.e},xL=function(b,c,d,e){c=$(L(nL,{Qj:xh(xi,c),total:c,Hq:d,No:e}));c.find(".gci-ui-itemsviewer-show-exhibits").on("click.gci-ui-itemsviewer",t(function(){CL(this,"exhibits");return!1},b));c.find(".gci-ui-itemsviewer-show-streetviews").on("click.gci-ui-itemsviewer",
t(function(){CL(this,"streetviews");return!1},b));c.find(".gci-ui-itemsviewer-show-items").on("click.gci-ui-itemsviewer",t(function(){CL(this,"items");return!1},b));c.appendTo(b.e)},AL=function(b,c,d,e,f,g){var h=KL(b,c,e);f=e.render(f||b.g.getValue(),{context:new LA({aa:g||b.a,rb:b.ca,ba:b.R})},h);g=e instanceof bH;h=b.g.getValue();c instanceof jQuery&&g&&("fullscreen"==h||"gallery"==h||"grid"==h)&&!b.I&&f.find(".collections-image-holder").trigger("preload",[]);b.O&&e.Oe()&&LL(b,e);JL(b,c,f);b.K&&
b.K(f,e,d)},JL=function(b,c,d){c instanceof jQuery?d.appendTo(c):ZK(c,d);NA(b.g)&&"items"!=b.b&&(d.hasClass("gci-exhibit-item")||d.hasClass("gci-asset-topbox-item")?(c=ML(b),d.width(c.width),d.height(c.height),d.find(".collections-image-holder").trigger("update")):d.hasClass("gci-onebox-item")&&(c=(b.l-10)/IL(b)-15,d.width(c)));OA(b.g)&&(d.hasClass("gci-exhibit-item")||d.hasClass("gci-asset-topbox-item"))&&"all"==b.b&&(b=b.n.height(),b=uL.jA*b,d.addClass("gci-exhibit-gallery-item-summary").find(".collections-asset-thumbnail").css({width:Math.round(b*
uL.Ft),height:Math.round(b)}),d.find(".collections-image-holder").trigger("update"))};
tL.prototype.A=function(b){if(!this.h.attr("disabled")){this.h.attr("disabled","").find(".collections-ui-button-content").text("Loading more results...");var c=q;switch(this.b){case "exhibits":c=t(function(b,c){vI(this.a,b,c)},this);break;case "streetviews":c=t(function(b,c){wI(this.a,b,c)},this);break;case "items":case "all":c=t(function(b,c){this.a.bo(b,c)},this)}c(25,t(function(c,e){if(!this.isDisposed()){var f=t(function(){this.I||this.e.find(".collections-image-holder:not(.gci-ui-image-rendered)").addClass("gci-ui-image-rendered").trigger("preload",
[])},this);switch(this.b){case "exhibits":$.each(e,t(function(b,c){AL(this,yL(this),b,c)},this));break;case "streetviews":case "items":case "all":window.setTimeout(t(function(){UK(this.j);$.each(e,t(function(b,c){AL(this,this.j,b,c)},this));bL(this.j);f()},this),0)}f();DL(this);b(c,e)}},this))}};
var DL=function(b){b.h.remove();b.h=$(L(iL)).appendTo(b.e);b.h.toggle(1!=b.e.children(":not(.gci-ui-itemsviewer-view-container-matches)").length);var c=!0;switch(b.b){case "exhibits":c=b.a.bc.length==b.a.o;break;case "streetviews":c=b.a.a.sb==b.a.g;break;case "items":case "all":c=!b.a.gk()}c?(b.h.find(".collections-ui-button-content").text("No more results"),b.h.attr("disabled","")):(b.h.removeAttr("disabled"),b.h.on("click.gci-ui-itemsviewer",t(b.A,b,q)),b.h.find(".collections-ui-button-content").text(b.h.data("value").toString()))},
NL=function(b,c){var d="";switch(b.b){case "exhibits":d="Exhibits";break;case "streetviews":d=c?"Museum View":"Street View";break;case "items":d="Items";break;default:d="All"}return d},CL=function(b,c,d){b.b=c;d||(b.trigger("filter"),b.update())},OL=function(b){if(b.Tf)return b.Tf;b.Tf=$(L(jL,{oy:!b.Oh}));b.Tf.on("click.gci-ui-itemsviewer",function(){b.S&&(b.Oh=!b.Oh,b.o&&b.o.toggleClass("gci-ui-itemsviewer-toggle-map-on",b.Oh),b.Tf&&b.Tf.toggleClass("gci-ui-itemsviewer-toggle-map-on",b.Oh),b.e.toggleClass("gci-ui-itemsviewer-map-offset",
b.Oh));return!1});return b.Tf};
tL.prototype.ka=function(){if(!this.S){this.o=$(L(pL));this.Oh&&(this.o.addClass("gci-ui-itemsviewer-toggle-map-on"),this.e.addClass("gci-ui-itemsviewer-map-offset"));this.O.append(this.o);this.S=new dy(this.o[0],{Sf:{draggable:!X(this.G),minZoom:3,zoom:5},ys:{maxZoom:4}});this.J(this.S);var b=this;jy(this.S,"dragstart",function(){b.trigger("dragstart")});jy(this.S,"dragend",function(){b.trigger("dragend")});oG(this.B);this.B=nG("itemsviewer-focus-marker",function(c){EL(b,c)});NA(this.g)&&this.update()}};
var LL=function(b,c){if(c.Oe()){var d=new Mm;b.S||Tm(d,b.ka,b);Tm(d,function(){var b=c.b&&c.b();b||(b=new xm(new km));var d=[],g=this;d.push({location:b,displayName:c.getTitle&&c.getTitle(),id:c.getId(),Xf:function(){EL(g,c);pG("itemsviewer-focus-item",c)},Ho:""});ly(this.S,d,!0)},b);d.callback(!0)}},EL=function(b,c){var d=c.b();if(b.S&&d){b.em=c;var e=b.S,f=Fm(d),d=Dm(d);f?e.map.panToBounds(f):d&&e.map.panTo(d);e=c.getId().toString();iy(b.S);f=b.S;f.b[e]&&f.b[e].setIcon(fy);f=b.S;f.b[e]&&f.b[e].setZIndex(2)}},
zL=function(b){var c=3;NA(b.g)?b.l/vL.maxWidth<c?b.l/c<vL.minWidth&&c--:c=Math.ceil(b.l/vL.maxWidth):c--;return c},IL=function(b){return NA(b.g)?X(b.G)?2:Math.floor(b.l/275):Math.floor(.6*b.n.height()/90)},KL=function(b,c,d){var e=d instanceof bH,f=b.Q&&(d instanceof EG||d instanceof VA),g=d.qb&&d.qb()&&b.a.a&&b.a.g&&"all"==b.b||e&&"all"==b.b;if(f)return null;if(OA(b.g)){if(e)return d=uL,c=d.Tz*c.height(),{width:Math.round(c*d.Ft),height:Math.round(c)};b=b.G.w().width();c=.6*c.height();b=.5*b;d.ab()?
(e=d.ab().width,g=d.ab().height,d=c,f=d*e/g,f>b&&(f=b,d=f*g/e)):(f=b,d=.75*f,d>c&&(d=c,f=d/.75));return{width:Math.round(f),height:Math.round(d)}}if(NA(b.g)&&!g){if(d instanceof tA)return PL(b,d);if("items"==b.b){if(d instanceof VA)return(d=d.a)?PL(b,d):null;c=b.p.b;if(d instanceof Yw)return{width:c,height:c};d=vL;return{width:c,height:Math.round(c*d.minHeight/d.minWidth)}}if("exhibits"==b.b)return ML(b)}else if(g)return ML(b);return null},PL=function(b,c){var d=b.p.b,e=c.ab()?c.ab().height*d/c.ab().width:
d/.75,e=Math.max(e,50);return{width:d,height:e}},ML=function(b){var c=b.l/zL(b),d=c-vL.margin,e=vL.minHeight*c/vL.minWidth-vL.margin;X(b.G)&&(d=c-12.5,e=.75*d);return{width:d,height:e}};tL.prototype.bind=function(b,c){this.n.bind(b,c)};tL.prototype.unbind=function(b,c){this.n.unbind(b,c)};tL.prototype.trigger=function(b,c){this.n.trigger(b,c)};
var QL=function(b,c){for(var d=eL(b.j),e=0,f;f=d[e];e++)gL(f,c,void 0)},sL=function(b,c,d){this.G=Y;this.n=b;this.a=[];this.b=this.k=c||163;this.e=0;this.g=d?Math.max(0,d+0):0},FL=function(b,c){for(var d=0,e=b.a[0],f=0;f<b.a.length;f++)if(c?b.a[f]>e:b.a[f]<e)e=b.a[f],d=f;return d},RL=function(b){var c=X(b.G)?0:10;return b.n.find(".gci-ui-itemsviewer-view-container").width()-(X(b.G)?10:20)-c},SL=function(b){var c=X(b.G)?10:20,c=Math.max(Math.floor(RL(b)/(b.k+c)),2);return 0==b.g?c:Math.min(b.g,c)},
GL=function(b){b.n.css("height",b.a[FL(b,!0)]+b.n.find(".gci-ui-itemsviewer-content").outerHeight()+200)},BL=function(b){var c=SL(b);for(b.a=[];c--;)b.a[c]=0;var c=X(b.G)?10:20,d=RL(b),e=d%(b.k+c);b.b=0<e?b.k+e/SL(b):b.k;0==b.g?b.e=0:(e=SL(b)*(b.b+c),b.e=Math.floor((d-e)/2),b.n.find("h2").css("margin-left",b.e+c/2+"px"))};
var TL=function(b){A(this,b,"gci.es.atfr",-1,null)};v(TL,z);TL.prototype.L=function(){return H(this)};TL.Ta="gci.es.atfr";var UL=function(b){A(this,b,"gci.es.dffr",-1,null)};v(UL,z);UL.prototype.L=function(){return H(this)};UL.Ta="gci.es.dffr";var WL=function(b){A(this,b,0,3,VL)};v(WL,z);var VL=[1];WL.prototype.L=function(){return H(this)};WL.prototype.ph=function(){return B(this,2)};var XL=function(b){A(this,b,0,-1,null)};v(XL,z);XL.prototype.L=function(){return H(this)};XL.prototype.wa=function(){return B(this,1)};XL.prototype.getZoom=function(){return E(this,jz,2)};
var ZL=function(b){A(this,b,0,-1,YL)};v(ZL,z);var YL=[1];ZL.prototype.L=function(){return H(this)};var aM=function(b){A(this,b,0,-1,$L)};v(aM,z);var $L=[1];aM.prototype.L=function(){return H(this)};var bM=new ac(42225372,{AC:0},aM,function(b,c){var d={wn:cc(c.Vc(),Nz,b)};b&&(d.X=c);return d});aM.prototype.Vc=function(){return F(this,Lz,1)};var cM=function(b){A(this,b,"gci.es.gfr",-1,null)};v(cM,z);cM.prototype.L=function(){return H(this)};cM.Ta="gci.es.gfr";var dM=function(b){this.G=Y;this.b=b;this.a={load:null}};k=dM.prototype;k.load=function(b,c){var d=c||q;this.a.load?Tm(this.a.load,t(this.Us,this,b)):this.a.load=Sm(Vm(vp(this.b,K.$m,null,cM),t(function(){this.a.load=null},this)),t(this.Us,this,b),t(this.Vy,this,d))};k.Us=function(b,c){var d=E(c,WL,1),e=[];if(d)for(var d=(d=d.getExtension(bM))?d.Vc():[],f=0,g;g=d[f];f++)g.getId()&&e.push(new tA(g));b(e)};k.Vy=function(b){lx(this.G,"Failed to load the assets cart.");b()};k.Jw=function(b){b()};
k.By=function(b){lx(this.G,"Failed to add to the favorites list.");b()};k.Hy=function(b){b()};k.Gy=function(b){lx(this.G,"Failed to delete favorites from the list.");b()};var eM=function(b,c){Sm(b.b.makeRequest(K.zu,null,UL),t(b.e,b,c),t(b.k,b,q))};dM.prototype.e=function(b){b()};dM.prototype.k=function(b){lx(this.G,"Failed to delete favorites from the list.");b()};
var fM=function(b){A(this,b,"gci.es.ugcgr",-1,null)};v(fM,z);fM.prototype.L=function(){return H(this)};fM.Ta="gci.es.ugcgr";var gM=function(b){A(this,b,"gci.es.ugdgcr",-1,null)};v(gM,z);gM.prototype.L=function(){return H(this)};gM.Ta="gci.es.ugdgcr";var hM=function(b){A(this,b,"gci.es.ugdgr",-1,null)};v(hM,z);hM.prototype.L=function(){return H(this)};hM.Ta="gci.es.ugdgr";var iM=function(b){A(this,b,"gci.c.ep",-1,null)};v(iM,z);iM.prototype.L=function(){return H(this)};iM.Ta="gci.c.ep";var jM=function(b){A(this,b,"gci.c.gallerytranslate",-1,null)};v(jM,z);jM.prototype.L=function(){return H(this)};jM.Ta="gci.c.gallerytranslate";var kM=function(b){A(this,b,"gci.es.ugggr",-1,null)};v(kM,z);kM.prototype.L=function(){return H(this)};kM.Ta="gci.es.ugggr";var mM=function(b){A(this,b,"gci.es.laar",-1,lM)};v(mM,z);var lM=[1];mM.prototype.L=function(){return H(this)};mM.Ta="gci.es.laar";var oM=function(b){A(this,b,"gci.es.uglmgr",-1,nM)};v(oM,z);var nM=[1];oM.prototype.L=function(){return H(this)};oM.Ta="gci.es.uglmgr";var qM=function(b){A(this,b,0,-1,pM)};v(qM,z);var pM=[5];qM.prototype.L=function(){return H(this)};qM.prototype.getId=function(){return B(this,2)};var sM=function(b){A(this,b,"gci.es.uar",-1,rM)};v(sM,z);var rM=[1];sM.prototype.L=function(){return H(this)};sM.Ta="gci.es.uar";var uM=function(b){A(this,b,0,-1,tM)};v(uM,z);var tM=[6];uM.prototype.L=function(){return H(this)};uM.prototype.getId=function(){return B(this,2)};var vM=function(b){A(this,b,"gci.es.ugugir",-1,null)};v(vM,z);vM.prototype.L=function(){return H(this)};vM.Ta="gci.es.ugugir";var wM=function(b){A(this,b,"gci.es.ugwgcr",-1,null)};v(wM,z);wM.prototype.L=function(){return H(this)};wM.Ta="gci.es.ugwgcr";var xM=function(b,c){U.call(this);this.b=b;this.g={list:null,get:null};this.h=!c;this.a={};this.e={}};v(xM,wk);k=xM.prototype;k.D=function(){Ej(this.a);this.a=null;this.e={};xM.r.D.call(this)};k.rp=function(b){this.a[b]=null;this.e[b]=null};k.list=function(b,c){var d=c||q;this.g.list?Tm(this.g.list,t(this.Ts,this,b)):this.g.list=Sm(Vm(vp(this.b,K.Tu,null,oM),t(function(){this.g.list=null},this)),t(this.Ts,this,b),t(this.Uy,this,d))};
k.Ts=function(b,c){var d={};$.each(F(c,qE,1),function(b,c){d[c.getId()]=new bH(c)});this.h&&(this.a=d,this.e={});b(F(c,qE,1))};k.Uy=function(b){var c=Y.oa()?"Failed to list the user's exhibits.":"Failed to list the user's galleries.";lx(Y,c);b()};
k.get=function(b,c,d,e){if(this.h){var f=this.e[b];if(this.a[b]&&!e){c&&c(this.a[b]);return}if(f){if(e||!c)return;e=new bH(f);this.a[b]=e;delete this.e[b];c(e);return}}d=d||q;this.g.get?Tm(this.g.get,t(this.Ns,this,c)):(e=e||!1,this.g.get=Sm(Vm(vp(this.b,K.uj,{id:b},kM),t(function(){this.g.get=null},this)),t(this.Ns,this,c,b,e),t(this.My,this,d)))};k.Ns=function(b,c,d,e){if(e=E(e,qE,1))this.h&&(this.e[c]=e),d?b&&b(null):(c=new bH(e),this.h&&c.getId()&&(this.a[c.getId()]=c),b&&b(c))};
k.My=function(b){yM();b()};var yM=function(){var b="Failed to retrieve the user gallery.";nx()&&(b="Failed to retrieve the exhibit.");vt(b)},zM=function(b,c,d){c=c.tc?c.tc().toArray():c.Ea().toArray();c={gallery:Jb(c)};Sm(b.b.makeRequest(K.uj,c,fM),t(b.l,b,d),t(b.j,b,q))};xM.prototype.l=function(b,c){var d=E(c,qE,1);if(d){var e=new bH(d);this.h&&(this.e[e.getId()]=d,this.a[e.getId()]=e);b(e)}};xM.prototype.j=function(b){AM();b()};
var BM=function(b,c,d,e,f){e=e||q;var g=new uM,h=c.getId();D(g,2,h);h=c.Ba.Ea();G(g,3,h);f&&(f=c.Ea(),f=B(f,4),D(g,4,1==f));c.k&&(f=c.k(),G(g,5,f));g={request:Jb(g.toArray())};Sm(b.b.makeRequest(K.uj,g,vM,{method:"PUT"}),t(b.H,b,d,c),t(b.I,b,e))};xM.prototype.H=function(b,c){this.h&&c.getId()&&(this.a[c.getId()]=c);b()};xM.prototype.I=function(b){AM();b()};var CM=function(b,c,d,e){var f={id:c};e&&(f.onlyPending=!0);Sm(b.b.makeRequest(K.uj,f,hM,{method:"DELETE"}),t(b.A,b,d,c),t(b.B,b,q))};
xM.prototype.A=function(b,c){this.h&&(S(this.a[c]),delete this.a[c]);b()};xM.prototype.B=function(b){AM();b()};var DM=function(b,c,d,e,f){c={id:c,column:Jb(d.toArray()),position:e};Sm(b.b.makeRequest(K.hq,c,wM),t(b.K,b,f),t(b.O,b,q))};xM.prototype.K=function(b,c){b(B(c,1)||0)};xM.prototype.O=function(b){AM();b()};var EM=function(b,c,d,e){Sm(b.b.makeRequest(K.hq,{id:c,columnId:d},gM,{method:"DELETE"}),t(b.p,b,e),t(b.o,b,q))};xM.prototype.p=function(b){b()};xM.prototype.o=function(b){AM();b()};
var AM=function(){var b=Y.oa()?"Failed to save the exhibit.":"Failed to save the user gallery.";lx(Y,b)},FM=function(b,c){Sm(b.b.makeRequest(K.Qu,{},mM,{method:"GET"}),function(b){var e=[];y(F(b,Lz,1),function(b){e.push(new tA(b))});c(e)},function(){AM()})};xM.prototype.Cm=function(b,c,d,e){var f=e||q;gc(b.Ea());b={gallery:Jb(b.Ea().toArray()),lang:c};Sm(this.b.makeRequest(K.zv,b,jM),function(){d()},function(){AM();f()},this)}; var GM=function(b,c,d,e){var f=new qM;D(f,2,c);ec(f,5,d);Sm(b.b.makeRequest(K.Av,f,sM),function(){e()},function(){AM()},b)};
var HM=function(b){b=b||{};var c="",d="Drag items into this space or click the "+('<img src="'+Q(R(ju("common/pixel.gif")))+'" class="SPRITE_icon_asset_save_hover"> icon to save them.'),e="Click the "+('<img src="'+Q(R(ju("common/pixel.gif")))+'" class="SPRITE_icon_asset_save_hover"> icon to save items.'),c=c+'<div class="gci-assets-cart-empty-cart"><div class="gci-assets-cart-empty-editpage-mode">',c=b.oa?c+'<a href="#">Search</a> for items to create and share exhibits.':c+'<a href="#">Search</a> for items to create and share galleries.',
c=c+('</div><div class="gci-assets-cart-empty-normal-mode"><div><span class="gci-assets-cart-drag-msg">'+d+'</span><span class="gci-assets-cart-no-drag-msg">'+e+"</span></div><div>"),c=b.oa?c+"Use saved items to create and share galleries.":c+"Use saved items to create and share exhibits.",d="",d=b.oa?d+"Back to exhibit":d+"Back to gallery",d=O(d),c=c+("<br>"+P(qv({label:d,ac:O("gci-assets-cart-back-to-gallery"),type:"simple"}))+"</div></div></div>");return M(c)},JM=function(b){b=b||{};var c;c='<div class="gci-assets-cart-actions"><div class="gci-assets-cart-actions-label">';
c=b.oa?c+"View, manage and sort your saved items into exhibits.":c+"View, manage and sort your saved items into galleries.";var d="",d=b.oa?d+"My Exhibits":d+"My Galleries",d=O(d),e="",e=b.oa?e+"Back to exhibit":e+"Back to gallery",e=O(e);c=c+"</div>"+(P(qv({label:d,ac:O("gci-assets-cart-my-galleries"),type:"simple"}))+P(qv({label:e,ac:O("gci-assets-cart-back-to-gallery"),type:"simple"}))+P(qv({label:O("Save more items"),ac:O("gci-assets-cart-add-items"),type:"simple"}))+IM()+"</div>");return M(c)},
IM=function(){return M('<span class="collections-assets-cart-clear-cart">Clear all</span>')},KM=function(){var b;b=""+('<img src="'+Q(R(ju("common/pixel.gif")))+'" class="gci-asset-actions-save SPRITE_icon_asset_save_white" alt="'+Fg("Add Item icon")+'" title="'+Fg("Add Item")+'" data-in-cart-msg="'+Fg("In Cart")+'">');return M(b)};
var OM=function(b,c,d,e,f){U.call(this);this.G=Y;this.aa=new HE(null,[]);this.l=c;this.B=e||null;this.a="assets-cart-unfold";this.I=d;this.h=[];this.v=$("<div>").addClass("collections-assets-cart").addClass("assets-cart-unfold").data("modeClass","").appendTo(b);this.v.append($(L(HM,{oa:this.G.oa()})));this.B&&(this.v.append($(L(JM,{oa:this.G.oa()}))),this.G.W.bind("collections-page-enter.gci-assetscart",t(this.O,this)));this.v.toggleClass("gci-assets-cart-with-user-galleries",null!=this.B);this.p=
this.v.find(".collections-assets-cart-clear-cart");this.p.length||(this.p=$(L(IM)).appendTo(this.v));this.p.on("click",t(function(){if(this.e){var b=$("<div>").append($("<h1>").addClass("gci-ui-popup-warning-header").text(Yz(new Uz("{count, plural, =1 {Clear this item?} other {Clear all # saved items?}}"),{count:this.uc.length}))).append($("<div>").addClass("gci-ui-popup-warning-text").text("This action cannot be undone."));new bs("warning",b,{jt:t(this.K,this),jp:"Clear all"});return!1}},this));
$("<div>").addClass("collections-assets-cart-title-drag-nub-wrapper").on("mousedown.collections-assets-cart",t(this.H,this)).appendTo(this.v);b=$("<div>").appendTo(this.v);this.g=$("<div>").addClass("content").appendTo(b);this.o=new Jp(b,{gd:this.g});Lp(this.o);this.uc=[];this.b=this.G.a;this.b.bind("closed",t(function(b,c,d){d!=K.Jd&&d||LM(this)},this));this.b.bind("open",t(function(b,c,d){d!=K.Jd||this.e||MM(this)},this));this.e=!1;p(f)?NM(this,f):MM(this)};v(OM,wk);
OM.prototype.D=function(){S(this.o);this.o=null;this.v.remove();$(document).off(".collections-drag-cart");this.G.W.unbind(".gci-assetscart");this.b.get().removeClass("gci-cart-is-dragging");this.b.unbind("closed");OM.r.D.call(this)};OM.prototype.w=function(){return this.v};OM.prototype.hide=function(){this.v.hide()};OM.prototype.show=function(){this.v.show()};var PM=function(b,c){b.v.toggleClass("gci-assets-cart-dragging-over",c)};OM.prototype.bind=function(b,c){this.v.bind(b,c);return this};
OM.prototype.unbind=function(b,c){this.v.unbind(b,c)};
var QM=function(b){"assets-cart-fullscreen"!=b.a&&(b.b.get().addClass("collections-assets-cart-is-fullscreen"),b.v.addClass("overflow-important").animate({height:"100%"},200,t(function(){this.v.removeClass("overflow-important")},b)).removeClass(b.a).addClass("assets-cart-fullscreen"),b.a="assets-cart-fullscreen")},LM=function(b){"assets-cart-unfold"!=b.a&&(b.b.get().removeClass("collections-assets-cart-is-fullscreen"),b.v.addClass("overflow-important").animate({height:75},200,t(function(){this.v.removeClass("overflow-important");
this.v.trigger("gci-assets-cart-unfold")},b)).removeClass(b.a).addClass("assets-cart-unfold"),b.a="assets-cart-unfold")};OM.prototype.contains=function(b){for(var c=0,d;d=this.uc[c];c++)if(HC(d,b))return!0;return!1};
OM.prototype.j=function(b,c){if(this.e)if(this.contains(b))eu(this.G.B,"The selected item is already in your cart.",void 0,void 0);else if(500<=this.uc.length)lx(this.G,"Your cart is currently full, please remove some older items in order to add new items.");else if(GC(b)){var d=[b.getId()],e=RM(this,b);500==this.uc.length&&eu(this.G.B,"Your favorites list has "+(this.uc.length+" items and is now full. You will not be able to add any more items without first removing others."),1E4,void 0);c();for(var f=
this.l,e=t(this.A,this,e)||q,g=new ZL,h=[],l=0,m;m=d[l];l++){var r=new XL;D(r,1,m.toString());h.push(r)}ec(g,1,h);d={assetViews:Jb(g.toArray())};Sm(f.b.makeRequest(K.$m,d,TL),t(f.Jw,f,q),t(f.By,f,e))}else lx(this.G,"Saving this material to your cart is either not supported or has been disallowed by the owner.");else MM(this,t(this.j,this,b,c))};
var RM=function(b,c){b.aa.append([c]);b.uc.push(c);NM(b);var d=sA(c,{Ec:{width:150,height:78},fadeIn:!0}),e=t(function(){return $("<img>").addClass("SPRITE_icon_asset_remove").attr("src",Qp()).attr("alt","Clear item icon").on("mousedown",function(){return!1}).on("click",t(function(){if(d){var b=d.data("asset"),c=[b.getId()];this.v.trigger("collections-assets-cart-asset-removed",[b]);this.A(d);var e=this.l,b=t(this.j,this,b,q)||q;Sm(e.b.makeRequest(K.$m,{assetIds:c},UL,{method:"DELETE"}),t(e.Hy,e,
q),t(e.Gy,e,b));return!1}},this))},b,d,c),f=t(function(){return"assets-cart-unfold"==this.a?"collections-asset-popup-fixed-to-collection":"collections-asset-popup"},b),g=t(function(){var b=$.extend({"l.id":c.getId()});this.G.Oa(this.G.W.Zd,b,{loader:this.aa})},b),h=b.G.w();GA(d,c,h,{layout:f,click:g});d.append(e());d.data("asset",c).on("mousedown.collections-assets-cart-drag",function(c){SM(b,c,$(this));return!1}).appendTo(b.g);d.find(".collections-image-holder").trigger("refresh");Np(b.o,parseInt(b.g.prop("scrollWidth"),
10));b.v.trigger("collections-assets-cart-asset-added",[c]);return d};OM.prototype.A=function(b){var c=b.data("asset");this.aa.remove(c);sb(this.uc,c);b.remove();NM(this)};var NM=function(b,c){var d=b.e||void 0==c?b.uc.length:c;b.v.toggleClass("collections-assets-cart-is-empty",!d);wu(b.b,d.toString())};
OM.prototype.K=function(){eM(this.l,t(function(){$.each(this.uc,t(function(b,c){this.v.trigger("collections-assets-cart-asset-removed",[c]);this.aa.remove(c)},this));this.uc=[];this.g.empty();NM(this)},this))};
var TM=function(b){return hb(b.h,function(b){var d=b.offset();return{rect:new jq(d.left,d.top,b.width(),b.height()),Ya:b}})},SM=function(b,c,d){$("body").addClass("gci-drag-mode");var e=d.data("asset"),f,g=d.offset(),h=c.pageY-g.top,l=c.pageX-g.left,m=(c.pageY-g.top)/d.height(),r=(c.pageX-g.left)/d.width(),u=!1,w,C={width:parseInt(d.width(),10),height:parseInt(d.height(),10)},J=function(c,d){var e=TM(b);if(!w||!C)return null;var f=new jq(w.left,w.top,C.width,C.height);return(e=ob(e,function(b){b=
b.rect;return b.contains(new mf(c,d))?!0:f.left<=b.left+b.width&&b.left<=f.left+f.width&&f.top<=b.top+b.height&&b.top<=f.top+f.height}))?e.Ya:null};$(document).bind("mouseup.collections-assets-cart-drag",t(function(b){$(document).unbind(".collections-assets-cart-drag");$("body").removeClass("gci-drag-mode");if(!u){if(-1!=b.target.className.indexOf("collections-ui-button"))return!0;DA();UM(this,e);return!0}var c=J(b.pageX,b.pageY);c?((c=c.data("assets-cart-drop-cb"))&&c(b,e),f.remove()):(f.animate(g,
"fast",function(){f.remove()}),this.v.trigger("collections-assets-cart-asset-dropped",[w,e,f,b]));$(".gci-assets-cart-dragging-over-target").removeClass("gci-assets-cart-dragging-over-target")},b));$(document).bind("mousemove.collections-assets-cart-drag",t(function(b){if(pb(this.I,Ss(this.G.W))){u||(f=$("<div>").addClass("gci-assets-cart-drag-cursor").addClass("gci-assets-cart-drag-out-of-cart").css({width:d.width(),height:d.height()}).appendTo("body"),wA(e)?f.text(e.ma().T()):f.css({backgroundImage:"url("+
xA(e,{width:C.width,height:C.height})+")"}));u=!0;w={top:b.pageY-h,left:b.pageX-l};this.v.trigger("collections-assets-cart-asset-dragged",[w]);w={top:b.pageY-h*m,left:b.pageX-l*r};f.offset(w);var c=J(b.pageX,b.pageY),g=$(".gci-assets-cart-dragging-over-target");!g.length||c&&g.is(c)||(g.removeClass("gci-assets-cart-dragging-over-target"),(g=g.data("assets-cart-leave-cb"))&&g(b,e));c&&($(c).addClass("gci-assets-cart-dragging-over-target"),(c=c.data("assets-cart-move-cb"))&&c(b,e))}},b))};
OM.prototype.H=function(b){if(b.target!=b.delegateTarget)return!1;var c=$("<div>").css({position:"absolute",top:0,bottom:0,left:0,right:0,"z-index":9999}).appendTo($("body")),d=this.b.get(),e=d.find(".gci-ui-tabs-content");d.addClass("gci-cart-is-dragging");var f=b.pageY,g=f,h=this.a,l=e.height();e.css("height",l).removeClass(this.a);this.a="assets-cart-dragging";$(document).on("mousemove.collections-drag-cart",t(function(b){e.css("height",l+-1*(b.pageY-f));g=b.pageY;return!1},this));$(document).on("mouseup.collections-drag-cart",
t(function(){var b=-1*(g-f);switch(h){case "assets-cart-unfold":if(0<b&&120<b){QM(this);break}LM(this);break;case "assets-cart-fullscreen":if(0==b||120<Math.abs(b)){LM(this);break}QM(this)}window.setTimeout(function(){c.remove()},200);$(document).off(".collections-drag-cart");e.css("height","");this.b.get().removeClass("gci-cart-is-dragging");return!1},this));return!1};
var MM=function(b,c){b.e?c&&c():b.l.load(t(function(b){this.uc=[];this.g.empty();NM(this);this.e=!0;for(var e=0,f;f=b[e];e++)f.getId()&&RM(this,f);NM(this);c&&c()},b))},UM=function(b,c){b.aa.ml(c.getId());b.G.Oa(b.G.W.Zd,{"l.id":c.getId()},{loader:b.aa})};OM.prototype.O=function(b,c){var d=this.v.find(".gci-assets-cart-drag-msg"),e=this.v.find(".gci-assets-cart-no-drag-msg"),f=c==this.G.W.Zd||zi();d.toggle(!f);e.toggle(f)};
var VM=function(b,c,d,e){if(GC(e)){d=$C(d);var f=$(L(KM)).appendTo(d),g=function(){f.off(".gci-assetscart").attr("title",f.attr("data-in-cart-msg").toString()).addClass("gci-asset-actions-disabled").on("click.gci-assetscart",ed)},h=function(){f.off(".gci-assetscart").removeClass("gci-asset-actions-disabled").on("click.gci-assetscart",function(){b.G.Nh(function(){b.j(e,function(){g();xu(b.G.a)})});return!1})};c.on("mouseover",function(){b.contains(e)?g():h()})}},WM=function(b,c){b.v.toggleClass("gci-assets-cart-ineditpage",
c)},XM=function(b,c){b.v.toggleClass("gci-assets-cart-back",c)},YM=function(){var b=fs("Create your exhibits",ae("All of your items are now available to be used in exhibits."),q,null,"OK, I got it");Yr(b);Mr(b)},ZM=function(b,c){var d=fs("Create your exhibits",ae("To get started, choose the items you want to use in your exhibits."),b,c,"Select items");Yr(d);Mr(d)};
var $M=function(b,c,d){W.call(this);this.ia=Y;this.K=b;this.rb=c;this.b=!1;this.h=d||!1;this.g=!1;this.ca={};this.Q={};this.ib=!1;this.yb=parseInt($(window).width(),10)};v($M,W);k=$M.prototype;k.Ot=null;k.ql=null;k.ld=null;k.md=null;k.Fg=null;k.cd=null;k.eo=!1;k.Ck=null;k.D=function(){this.b&&(this.h=!1,this.Wa());$(document).unbind(".collections-page-"+this.rb);$(window).unbind(".collections-page-"+this.rb);aN(this,null);$M.r.D.call(this)};
k.Na=function(b,c,d){this.b=!0;this.ca=c||{};this.Q=d||{};!Jt(this.ia)&&Ak(this.ia.j,"enable_floodlight_tracking")&&Yt(this.ia.ta.get("a"),this.rb,this.ca);(this.ld||this.md||this.Fg)&&$(document).bind("keydown.collections-page-"+this.rb,t(this.$c,this));if(!this.g&&(I&&Lc(9)&&!Lc(10)||this.cd)){var e;$(window).bind("resize.collections-page-"+this.rb,t(function(){var b=new Date;if(!e||50<b.getTime()-e.getTime())e=b,bN(this)},this))}this.g=!0;this.ib&&this.cd&&window.setTimeout(t(function(){this.cd();
this.ib=!1},this),300);this.dispatchEvent({type:"gci-page-enter",target:this})};k.Fa=function(b,c,d){this.ca=b;Is(this.K,this.rb,b,c);c||d||this.ia.gg(this.rb,window.location.href)};k.jl=function(){this.dispatchEvent("gci-page-exit")};k.Wa=function(){this.b=!1;$(document).unbind("keydown.collections-page-"+this.rb);aN(this,null);this.h||(this.g=!1,$(document).unbind(".collections-page-"+this.rb),$(window).unbind(".collections-page-"+this.rb))};var aN=function(b,c){S(b.ql);null!=c&&xk(c,b);b.ql=c};
$M.prototype.Sa=function(){return this.ca};$M.prototype.$c=function(b){if(this.b&&(null==this.ql||this.ql.isDisposed())){if(27==b.which&&this.Fg)this.Fg(b);else if(37==b.which&&this.ld)this.ld(b);else if(39==b.which&&this.md)this.md(b);else return!0;return!1}return!0};var bN=function(b){b.cd&&(window.clearTimeout(b.Ot),b.Ot=window.setTimeout(t(function(){if(X(this.ia)){var b=parseInt($(window).width(),10);if(this.yb==b)return;this.yb=b}this.b?this.cd():this.g&&(this.ib=!0)},b),1E3))};k=$M.prototype; k.jo=function(){return window.location.href};k.mf=null;k.Jo=ed;k.kh=ed;k.tl=function(){return{html:ae("There are changes in this page that have not been saved.")}};
(function(){function b(b){this.t={};this.tick=function(b,c,d){this.t[b]=[void 0!=d?d:(new Date).getTime(),c];if(void 0==d)try{window.console.timeStamp("CSI/"+b)}catch(e){}};this.tick("start",null,b)}var c;window.performance&&(c=window.performance.timing);var d=c?new b(c.responseStart):new b;window.jstiming={Timer:b,load:d};if(c){var e=c.navigationStart,f=c.responseStart;0<e&&f>=e&&(window.jstiming.srt=f-e)}if(c){var g=window.jstiming.load;0<e&&f>=e&&(g.tick("_wtsrt",void 0,e),g.tick("wtsrt_","_wtsrt",
f),g.tick("tbsd_","wtsrt_"))}try{c=null,window.chrome&&window.chrome.csi&&(c=Math.floor(window.chrome.csi().pageT),g&&0<e&&(g.tick("_tbnd",void 0,window.chrome.csi().startE),g.tick("tbnd_","_tbnd",e))),null==c&&window.gtbExternal&&(c=window.gtbExternal.pageT()),null==c&&window.external&&(c=window.external.pageT,g&&0<e&&(g.tick("_tbnd",void 0,window.external.startE),g.tick("tbnd_","_tbnd",e))),c&&(window.jstiming.pt=c)}catch(h){}})();
if(window.jstiming){window.jstiming.xq={};window.jstiming.Hz=1;var cN=function(b,c,d){var e=b.t[c],f=b.t.start;if(e&&(f||d))return e=b.t[c][0],void 0!=d?f=d:f=f[0],Math.round(~~(e-f))};window.jstiming.getTick=cN;window.jstiming.getLabels=function(b){var c=[],d;for(d in b.t)c.push(d);return c};var dN=function(b,c,d){var e="";window.jstiming.srt&&(e+="&srt="+window.jstiming.srt);window.jstiming.pt&&(e+="&tbsrt="+window.jstiming.pt);try{window.external&&window.external.tran?e+="&tran="+window.external.tran:
window.gtbExternal&&window.gtbExternal.tran?e+="&tran="+window.gtbExternal.tran():window.chrome&&window.chrome.csi&&(e+="&tran="+window.chrome.csi().tran)}catch(f){}var g=window.chrome;if(g&&(g=g.loadTimes)){g().wasFetchedViaSpdy&&(e+="&p=s");if(g().wasNpnNegotiated){var e=e+"&npn=1",h=g().npnNegotiatedProtocol;h&&(e+="&npnv="+(encodeURIComponent||escape)(h))}g().wasAlternateProtocolAvailable&&(e+="&apa=1")}var l=b.t,m=l.start,g=[],h=[],r;for(r in l)if("start"!=r&&0!=r.indexOf("_")){var u=l[r][1];
u?l[u]&&h.push(r+"."+cN(b,r,l[u][0])):m&&g.push(r+"."+cN(b,r))}if(c)for(var w in c)e+="&"+w+"="+c[w];(c=d)||(c="https:"==document.location.protocol?"https://csi.gstatic.com/csi":"http://csi.gstatic.com/csi");return[c,"?v=3","&s="+(window.jstiming.sn||"cultural")+"&action=",b.name,h.length?"&it="+h.join(","):"",e,"&rt=",g.join(",")].join("")},eN=function(b,c,d){b=dN(b,c,d);if(!b)return"";c=new Image;var e=window.jstiming.Hz++;window.jstiming.xq[e]=c;c.onload=c.onerror=function(){window.jstiming&&delete window.jstiming.xq[e]};
c.src=b;c=null;return b};window.jstiming.report=function(b,c,d){if("prerender"==document.webkitVisibilityState){var e=!1,f=function(){if(!e){c?c.prerender="1":c={prerender:"1"};var g;"prerender"==document.webkitVisibilityState?g=!1:(eN(b,c,d),g=!0);g&&(e=!0,document.removeEventListener("webkitvisibilitychange",f,!1))}};document.addEventListener("webkitvisibilitychange",f,!1);return""}return eN(b,c,d)}};
var fN=function(b){U.call(this);this.a=new window.jstiming.Timer;this.a.name=b;this.a.tick("_start_label")};v(fN,wk);fN.prototype.D=function(){this.a=null;fN.r.D.call(this)};fN.prototype.a=null;var gN=function(b,c){b.a.tick(c,"_start_label")};fN.prototype.report=function(){window.jstiming.report(this.a)};
var hN=function(){var b;b=""+('<div class="gci-browse-page"><header class="gci-unified-header"><h1 class="gci-browse-summary gci-unified-header-title"><span class="gci-browse-summary-title">Explore</span></h1><nav class="gci-browse-controls">'+P(tv())+'</nav><h2 class="gci-browse-refine">'+P(qv({label:O("Refine"),type:"hotdog",ac:O("gci-browse-refine-button")}))+'<div class="gci-browse-selection"></div></h2></header><div class="gci-browse-content"><div class="gci-browse-content-gradient"></div><div class="gci-browse-results"></div><div class="gci-browse-faceter"></div></div>'+ P(rv(null))+P(sv(null))+"</div>");return M(b)},iN=function(b){return M('<div class="gci-facet-selection"><span class="gci-facet-selection-value">'+N(b.value)+'</span><a class="gci-facet-selection-close"></a></div>')};
var jN=function(b,c,d,e,f){$M.call(this,b,c,d);this.G=Y;this.ga=!!e;this.defaultView=f||"grid";this.B=!1;this.j=null};v(jN,$M);k=jN.prototype;k.v=null;k.eb=null;k.qf=null;k.ba="";k.channel=null;k.Ef=null;k.view=null;k.vq=null;k.ee=null;k.dg=!1;
k.Na=function(b,c,d){var e=this,f=this.g;if(c){var g=this.Sa();"f.text"in c&&""==c["f.text"]&&delete c["f.text"];!yi(c,g)&&f&&(this.v.remove(),kN(this),f=!1)}jN.r.Na.call(this,b,c,d);c&&c.projectId?this.ba=c.projectId:(this.channel&&(this.v.remove(),kN(this),f=!1),this.channel=null,this.ba="");var h;(g=bx(this.G))?h=g:d&&d.channel&&(h=d.channel);h&&(this.channel=new Yw(h.Ea()),this.ba=this.channel.getId());d=c?c["f.text"]:"";this.G.of(window.location.href,d||"Search",!0);if(!f){this.aa=new nI({only_match_roots:!0,
with_exhibits:this.ga});this.v=$(L(hN)).appendTo(b);this.qf=this.v.find(".gci-browse-summary");b=this.v.find(".gci-browse-controls");var l=this.v.find(".gci-browse-content");S(this.p);this.p=xk(new FH(b),this).bind("selection-changed",t(this.dp,this));c&&c["s.sort_by"]&&GH(this.p,c["s.sort_by"]);b.find(".gci-slideshow-control").on("click",function(){e.aa.items[0].Zf(new LA({aa:e.aa,rb:e.rb,Kk:!0}))});lN(this,c);this.e=this.v.find(".gci-browse-results");f=$("<div>").addClass("gci-browse-content-wrapper");
this.A=this.v.find(".gci-nav-previous");this.A.on("click",t(this.ld,this));this.I=this.v.find(".gci-nav-next");this.I.on("click",t(this.md,this));S(this.l);this.l=new Jp(this.e,{gd:f,Sh:t(this.ol,this)});d=c&&c["v.view"]||this.defaultView;S(this.a);this.a=new MA(b,d);mN(this);this.Ef=$("<div>").addClass("browse-content").appendTo(f);this.Tj(c&&c["v.filter"]||void 0);this.view.bind("ui-updated",t(this.ol,this));this.view.bind("filter",t(this.ep,this));this.aa.bind("collections-loader-initial-load",
t(this.bp,this));X(this.G)||this.l.bind("infinite-scroll",t(this.view.A,this.view,q));this.a.bind("selection-changed",t(this.ep,this));var m=t(function(b){b=p(b)?b:!this.eb.Va();this.eb.toggle(b);r.toggleClass("collections-ui-button-active",b);l.toggleClass("gci-browse-no-sidebar",!b)},this),r=this.v.find(".gci-browse-refine-button");r.on("click",t(function(){m();this.Xs();this.ep()},this));m(!(c&&"v.refine"in c));this.load()}};
k.Fa=function(b,c,d,e){jN.r.Fa.call(this,b,c,d);!b.projectId&&this.ba&&(this.channel=null,this.ba="");e||this.load()};k.Wa=function(){this.h||kN(this);jN.r.Wa.call(this)};k.te=function(b){this.j=b};k.Tj=function(b){this.view=new tL(this.aa,this.a,this.Ef,this.rb,{$s:this.ba,Hg:b,rz:this.R?t(this.R,this):void 0,ct:this.Gn?t(this.Gn,this):void 0,wz:this.dg})};
k.ol=function(){if(OA(this.a)){var b=this.e.scrollLeft(),c=this.e.prop("scrollWidth"),d=this.e.width();0==b?this.A.attr("disabled",""):this.A.removeAttr("disabled");b+d==c?this.I.attr("disabled",""):this.I.removeAttr("disabled")}};k.Xs=function(){NA(this.a)&&this.view.update()};k.md=function(){if(!this.B&&OA(this.a)){this.B=!0;var b=this.e.scrollLeft(),c=this.e.width(),d=this.e.prop("scrollWidth"),e=this;this.e.animate({scrollLeft:Math.min(b+c,d)},1E3,"easeInOutCubic",function(){e.B=!1});return!1}};
k.ld=function(){if(!this.B&&OA(this.a)){this.B=!0;var b=this.e.scrollLeft(),c=this.e.width(),d=this;this.e.animate({scrollLeft:Math.max(b-c,0)},1E3,"easeInOutCubic",function(){d.B=!1});return!1}};
var lN=function(b,c){var d=c||{};b.vq=b.v.find(".gci-browse-faceter");S(b.eb);b.eb=new iK(b.vq);d["f.text"]&&qK(b.eb,d["f.text"]);yK(b.eb,qi(b.Sa(),"d"));if(d["f.media_type"]){var e=d["f.media_type"];delete d["f.media_type"];d["q.media_type"]=e}mK(b.eb,qi(b.Sa(),"q"));b.eb.bind("collections-faceter-selection-changed.gci-browse-page",t(b.dp,b));b.eb.bind("gci-faceter-clear-all.gci-browse-page",t(function(){nN(this)},b));b.eb.bind("gci-faceter-key-up.gci-browse-page",t(b.Ly,b));b.eb.bind("collections-faceter-load-more.gci-browse-page",
t(b.Ky,b));oN(b)},kN=function(b){S(b.ee);b.ee=null;S(b.view);b.view=null;b.aa&&b.aa.unbind("collections-loader-initial-load");S(b.aa);b.aa=null;S(b.eb);b.eb=null;S(b.p);b.p=null;b.a&&b.a.unbind("selection-changed");S(b.a);S(b.l);b.ba="";b.channel=null;b.Ef&&b.Ef.remove();b.Ef=null;b.qf=null;b.v=null};jN.prototype.bp=function(){pN(this);this.G.Jb()&&!X(this.G)&&(this.l.unbind("infinite-scroll",t(this.ka,this)),this.l.bind("infinite-scroll",t(this.ka,this)))};
jN.prototype.ka=function(){this.b&&this.G.Jb()&&Nt(this.G.Jb())};
var pN=function(b){qN(b);b.aa.items.length||b.aa.bc&&b.aa.bc.length||b.aa.a.sb||b.Ef.addClass("gci-browse-empty-results-set").append($("<span>").addClass("gci-browse-empty-results").text("No results")).append(xk(new Tp("Clear all refinements","secondary"),b).get().addClass("gci-browse-empty-results-clear-all").on("click.gci-browse-empty-results",t(function(){nN(this);return!1},b)))},qN=function(b){b.Ef.removeClass("gci-browse-empty-results-set");b.Ef.find(".gci-browse-empty-results").remove();b.Ef.find(".gci-browse-empty-results-clear-all").remove()};
jN.prototype.load=function(){S(this.ee);this.ee=new fN("search");var b=this.$e(!1),c;a:switch(this.a.getValue()){case "grid":c=50;break a;default:c=25}b.max_matches=c;b.max_histogram_entries=25;this.dg&&(b.with_oneboxes="true");ix(this.G,function(){this.aa.load(b,t(this.ap,this))},this)};jN.prototype.mo=function(){var b={};this.a.getValue()!=this.defaultView&&(b.view=this.a.getValue());"all"!=this.view.b&&(b.filter=this.view.b);this.eb.Va()||(b.refine="");return b};
jN.prototype.$e=function(b){var c=kK(this.eb),d={};c.media_type&&(d.media_type=c.media_type,delete c.media_type);var e=xK(this.eb),f=this.eb,g={},h=f.a.h,l=f.a.g;if(f.a.I||f.a.A)g.date_min=h.toString(),g.date_max=l.toString();f="default"==this.p.a?{}:{sort_by:this.p.getValue()};h={};this.ba&&(h.projectId=this.ba);l=this.mo();b=$.extend({},b?pi(e,"f"):e,b?pi(d,"f"):d,b?pi(f,"s"):f,b?pi(g,"d"):g,b?pi(c,"q"):c,h,b?pi(l,"v"):l);Jt(this.G)&&xx(this.G)&&(b[xl.M]=xx(this.G).toString());return b};
var mN=function(b){b.v.removeClass("gci-browse-gallery");b.v.removeClass("gci-browse-grid");OA(b.a)?(b.v.addClass("gci-browse-gallery"),Lp(b.l),b.ol()):(Mp(b.l),NA(b.a)&&(b.v.addClass("gci-browse-grid"),window.setTimeout(t(function(){Kp(this.l)},b),10)))};k=jN.prototype;k.ep=function(){oN(this);mN(this);this.Fa(this.$e(!0),!1,!1,!0)};k.dp=function(){this.Fa(this.$e(!0))};
k.Ky=function(b,c){var d=c.gc().length+25;uI(this.aa,this.$e(!1),c.getId(),d,t(function(b){!this.isDisposed()&&this.b&&wK(this.eb,b)},this))};k.Ly=function(b,c,d){b=this.$e(!1);d&&(b.refine_facet=d);uI(this.aa,b,c.getId(),25,t(function(b){!this.isDisposed()&&this.b&&wK(this.eb,b)},this))};
k.ap=function(b,c,d,e){if(!this.isDisposed()&&this.b){this.ee&&gN(this.ee,"dl");this.l.scrollTop(0);if(d){b=[];c=0;for(var f;f=d[c];c++)Jt(this.G)&&xx(this.G)&&f.getId()==xl.M||b.push(f);this.Kq(b,e)}this.view.update();oN(this);this.ol();this.ee&&gN(this.ee,"ac");this.ee&&this.ee.report();S(this.ee);this.ee=null}};k.Kq=function(b,c){uK(this.eb,b,c)};var nN=function(b,c){qN(b);AK(b.eb);qK(b.eb,c||"");mK(b.eb,{});GH(b.p,"");b.dp();oN(b);CL(b.view,"all",!0);var d=b.$e(!0);delete d["q.openId"];b.Fa(d)};
jN.prototype.R=function(b,c){c instanceof tA&&this.$o(b,c)};jN.prototype.$o=function(b,c){var d=this,e=NA(this.a)?b.find(".gci-asset-grid"):b.find(".collections-asset-thumbnail");this.j&&(VM(this.j,b,e,c),e.on("mousedown",function(b){rN(d,b,e,c);return!1}))};jN.prototype.Mn=function(b){this.j&&(mu(this.G.a,K.Jd,!0),PM(this.j,b.pageY>sN()))};jN.prototype.Nn=function(b,c){this.j&&(this.j.j(c,q),PM(this.j,!1))};
var sN=function(){return $("body").height()-120-$("body > footer").outerHeight()-$("#gci-action-tabs > .gci-ui-tabs").outerHeight()},rN=function(b,c,d,e){d.hasClass("gci-asset-grid")&&(d=d.find(".collections-asset-thumbnail"));var f,g=d.offset(),h=c.pageY,l=c.pageY-g.top,m=c.pageX-g.left,r=(c.pageY-g.top)/d.height(),u=(c.pageX-g.left)/d.width(),w=!1,C=!1,J=sN();$(document).bind("mouseup.gci-browse-drag",t(function(b){$(document).unbind(".gci-browse-drag");$("body").removeClass("gci-drag-mode");if(!w)return!0;
C?(f.remove(),this.Nn(b,e)):f.animate({top:g.top,left:g.left,width:d.width(),height:d.height()},"fast",function(){f.remove()});return!1},b));$(document).bind("mousemove.gci-browse-drag",t(function(b){if(!(!w&&5>b.pageY-c.pageY&&5>b.pageX-c.pageX)){w||(f=d.clone().addClass("gci-assets-cart-drag-cursor").css({width:d.width(),height:d.height()}).appendTo("body"),f.find(".gci-asset-actions").remove(),$("body").addClass("gci-drag-mode"));w=!0;this.Mn(b,e);C=b.pageY>J;var g=Math.max(1,J-h),Ha=Math.max(0,
J-b.pageY),Ha=.25*Math.exp(Ha/g*Math.LN2*2),Ha=Math.min(Ha,1),g=Math.min(75/d.height(),150/d.width()),Ha=Math.max(Ha,g),g=d.width()*Ha,Ha=d.height()*Ha;b={top:b.pageY-l+(d.height()-Ha)*r,left:b.pageX-m+(d.width()-g)*u};f.offset(b).css({width:g+"px",height:Ha+"px"})}},b))};jN.prototype.cd=function(){this.view.update();this.eb.resize()};
var oN=function(b){var c=b.v.find(".gci-browse-selection"),d=[],e=b.view&&b.view.b||"";if(e&&"all"!=e&&b.view&&!HL(b.view)){var f=c.find(".gci-facet-selection-filter-"+e),g=!0;1!=f.length?f.remove():f.hasClass("gci-facet-selection-filter-"+e)?g=!1:f.remove();g&&d.push($(L(iN,{value:b.H()})).addClass("gci-facet-selection-filter").addClass("gci-facet-selection-filter-"+e).on("click",t(function(){CL(this.view,"all");$(this).remove()},b)).appendTo(c))}else c.find(".gci-facet-selection-filter").remove();
b.eb.e?(f=c.find(".gci-facet-selection-search"),g=!0,1!=f.length?f.remove():f.attr("data-search")==b.eb.e?g=!1:f.remove(),e="\u201c"+(b.eb.e+"\u201d"),g&&d.push($(L(iN,{value:e})).addClass("gci-facet-selection-search").attr("data-search",b.eb.e).on("click",t(function(){var b=this.eb;ZJ(b.g,"");b.e="";b.b("collections-faceter-selection-changed");$(this).remove()},b)).appendTo(c))):c.find(".gci-facet-selection-search").remove();(e=zK(b.eb))?(f=c.find(".gci-facet-selection-date"),g=!0,1!=f.length?f.remove():
f.attr("data-date")==e?g=!1:f.remove(),g&&d.push($(L(iN,{value:e})).addClass("gci-facet-selection-date").attr("data-date",e).on("click",t(function(){AK(this.eb);$(this).remove()},b)).appendTo(c))):c.find(".gci-facet-selection-date").remove();var f=c.find(".gci-facet-selection-facets"),h=jQuery.makeArray(f),g=lK(b.eb);$.each(g,t(function(e,g){g.us&&$.each(g.us,t(function(g,m){for(var w=!0,C=0;C<f.length;C++){var J=$(f[C]);J.attr("data-facet")==e+m.getId()&&(w=!1)}w&&d.push($(L(iN,{value:m.Wc()})).addClass("gci-facet-selection-facets").attr("data-facet",
e+m.getId()).on("click",function(){oK(hK(b.eb,e),m.getId());$(this).remove()}).appendTo(c));for(w=h.length;w--;)J=$(h[w]),J.attr("data-facet")==e+m.getId()&&h.splice(w,1)},this))},b));for(g=0;g<h.length;g++)$(h[g]).remove();g=0<c.find(".gci-facet-selection").length;BK(b.eb,g);window.setTimeout(function(){if(!b.isDisposed())for(var c=0;c<d.length;c++)d[c].addClass("gci-facet-selection-active")},500)};jN.prototype.H=function(){return NL(this.view)}; var tN=function(b){for(var c={},d=0,e;e=b[d];d++){var f=c[e.nc()];f||(f=[],c[e.nc()]=f);f.push(e.ya())}var g={};$.each(c,function(b,c){g["q."+b]=c.join(",")});return g},aD=function(b){var c=Y;c.Oa(c.W.bg,tN(b))};
var uN=function(b){var c=b;"function"==typeof b.w&&(c=c.w());if(null==c)throw Error("ib");return c},vN=function(b){var c=b.Kb,d=null;c.targetTouches&&0<c.targetTouches.length?d=c.targetTouches:c.changedTouches&&0<c.changedTouches.length&&(d=c.changedTouches);return d?(b=wq(b.target),new mf(d[0].pageX-b.x,d[0].pageY-b.y)):new mf(b.offsetX,b.offsetY)};
var wN=function(b){Jj.call(this,"double_tap");this.position=b};v(wN,Jj);var xN=function(b){W.call(this);this.a=uN(b);this.e=0;this.b=!1;this.g=new U(this);this.J(this.g);Ij&&this.g.C(this.a,["touchend","touchstart"],this.h)};v(xN,W);xN.prototype.h=function(b){if(1==b.Kb.changedTouches.length){var c=b.Kb.changedTouches[0];"touchend"==b.type?(b=new mf(c.pageX-this.a.offsetParent.offsetLeft,c.pageY-this.a.offsetParent.offsetTop),c=ta(),300>c-this.e&&this.b&&this.dispatchEvent(new wN(b)),this.e=c,this.b=!1):"touchstart"==b.type&&(this.b=!0)}};
var yN=function(b){Jj.call(this,"drag_end");this.position=b};v(yN,Jj);var zN=function(b){Jj.call(this,"drag_hover");this.position=b};v(zN,Jj);var AN=function(b,c){Jj.call(this,"drag_move");this.position=b;this.a=c};v(AN,Jj);var BN=function(b){Jj.call(this,"drag_start");this.position=b};v(BN,Jj);var CN=function(b,c){W.call(this);this.h=uN(b);this.b=!1;this.e=new U(this);this.J(this.e);this.g=!1;this.a=null;this.B=!p(c)||c;this.e.C(this.h,["mousedown","touchstart"],this.A);this.e.C(this.h,["mouseup","touchend"],this.j);this.e.C(this.h,["mousemove","touchmove"],this.I);this.e.C(document,["mouseup","touchend"],this.j)};v(CN,W);CN.prototype.A=function(b){b.preventDefault();if(DN(b))if(b.g&&!Pj(b))this.b&&this.j(b);else{this.b=!0;var c=vN(b);this.l=c.x;this.o=c.y;this.dispatchEvent(new BN(vN(b)))}};
CN.prototype.j=function(b){b.currentTarget!=document&&b.preventDefault();this.b&&(this.b=!1,this.a=null,this.dispatchEvent(new yN(vN(b))))};CN.prototype.I=function(b){b.preventDefault();this.a=b;this.g||(this.dispatchEvent(new zN(vN(b))),DN(b)&&this.b&&(this.g=!0,this.B?setTimeout(t(this.p,this),1):this.p()))};var DN=function(b){b=b.Kb.targetTouches;return null!=b&&1<b.length?!1:!0}; CN.prototype.p=function(){this.g=!1;if(this.b&&this.a){var b=vN(this.a),c=new ZB(b.x-this.l,b.y-this.o);this.dispatchEvent(new AN(vN(this.a),c));this.a=null;this.l=b.x;this.o=b.y}};
var EN=function(){W.call(this);this.b=new ZB(0,0);this.e=null;this.a={};this.a[40]=!1;this.a[37]=!1;this.a[39]=!1;this.a[38]=!1;this.g=new Im(1/60*1E3);this.J(this.g);this.h=new U(this);this.J(this.h);this.h.C(this.g,"tick",this.ky)};v(EN,W);k=EN.prototype;k.Ek=function(b,c){var d=c||document;if(!b||this.e&&d!=this.e)this.h.k(this.e,"keydown",this.Ps),this.h.k(this.e,"keyup",this.Rs);b?(this.e=d,this.h.C(this.e,"keydown",this.Ps),this.h.C(this.e,"keyup",this.Rs)):(this.e=null,this.g.stop())};
k.stop=function(){this.a[40]=!1;this.a[37]=!1;this.a[39]=!1;this.a[38]=!1;this.g.stop();this.b=new ZB(0,0)};
k.ky=function(){var b;if(!(b=0!=$B(this.b)))a:{for(var c in this.a)if(this.a[Number(c)]){b=!0;break a}b=!1}if(b){c=new ZB((this.a[37]?1:0)-(this.a[39]?1:0),(this.a[38]?1:0)-(this.a[40]?1:0));0<$B(c)&&c.a(1/$B(c));var d=ta();b=(d-this.j)/1E3;this.j=d;le(c.x)!=le(this.b.x)&&(this.b.x=0);0!=c.x&&(this.b.x+=c.x/.2*b);le(c.y)!=le(this.b.y)&&(this.b.y=0);0!=c.y&&(this.b.y+=c.y/.2*b);this.b.x=je(this.b.x,-1,1);this.b.y=je(this.b.y,-1,1);d=this.b.clone();1<$B(d)&&d.a(1/$B(d));c=new mf(0,0);b=new ZB(b*d.x*
1500,b*d.y*1500);this.dispatchEvent(new BN(c));this.dispatchEvent(new AN(c,b));this.dispatchEvent(new yN(b))}else this.g.stop()};k.Ps=function(b){this.e&&b.keyCode in this.a&&(this.a[b.keyCode]=!0,this.g.Li||(this.j=ta(),this.g.start()))};k.Rs=function(b){this.e&&b.keyCode in this.a&&(this.a[b.keyCode]=!1)};
var FN=function(b,c,d){Jj.call(this,"zoom");this.a=b;this.k=p(d)?d:null;this.g=p(c)?c:null};v(FN,Jj);var GN=function(b,c){W.call(this);var d=uN(b);if(null==d)throw Error("jb");this.a=d;this.j=1/(.25*(c||Math.max(window.innerWidth,window.innerHeight)));this.b=0;this.e=new ZB(0,0);this.g=new U(this);this.J(this.g);Ij&&this.g.C(this.a,["touchstart","touchmove"],this.h)};v(GN,W);
GN.prototype.h=function(b){var c=b.Kb.touches;if(2==c.length){var d,e=c[0],f=c[1];d=e.clientX-f.clientX;e=e.clientY-f.clientY;d=Math.sqrt(d*d+e*e);"touchstart"==b.type?(b=c[0],c=c[1],this.e.x=(b.pageX+c.pageX)/2-this.a.offsetParent.offsetLeft,this.e.y=(b.pageY+c.pageY)/2-this.a.offsetParent.offsetTop,this.b=d):"touchmove"==b.type&&(c=(d-this.b)*this.j,this.b=d,this.dispatchEvent(new FN(c,4,this.e)))}};
var HN=function(b){Jj.call(this,"throw");this.a=b};v(HN,Jj);var IN=function(b){W.call(this);this.g=new U(this);this.J(this.g);this.g.C(b,"drag_start",this.l);this.g.C(b,"drag_end",this.h);this.g.C(b,"drag_move",this.j);this.e=0;this.b=new ZB(0,0);this.a=new ZB(0,0)};v(IN,W);IN.prototype.l=function(b){this.e=ta();this.b=new ZB(b.position.x,b.position.y);this.dispatchEvent(new HN(null))};
IN.prototype.h=function(){if(200>ta()-this.e){this.a.a(.2);var b=$B(this.a);1E3<b&&this.a.a(1E3/b);10<=$B(this.a)&&this.dispatchEvent(new HN(this.a))}this.e=0;this.b=new ZB(0,0);this.a=new ZB(0,0)};IN.prototype.j=function(b){var c=ta(),d=c-this.e;if(!(50>d)){this.a.x=b.position.x;this.a.y=b.position.y;var e=this.a,f=this.b;e.x-=f.x;e.y-=f.y;this.a.a(1E3/d);this.e=c;this.b.x=b.position.x;this.b.y=b.position.y}};
var JN=function(b,c){W.call(this);this.P=b;var d=Of(this.P)?this.P:this.P?this.P.body:null;this.g=!!d&&Kq(d);this.a=T(this.P,zc?"DOMMouseScroll":"mousewheel",this,c)};v(JN,W);
JN.prototype.handleEvent=function(b){var c=0,d=0,e=0;b=b.Kb;if("mousewheel"==b.type){d=1;if(I||Ac&&(Cc||Jc("532.0")))d=40;e=KN(-b.wheelDelta,d);p(b.wheelDeltaX)?(c=KN(-b.wheelDeltaX,d),d=KN(-b.wheelDeltaY,d)):d=e}else e=b.detail,100<e?e=3:-100>e&&(e=-3),p(b.axis)&&b.axis===b.HORIZONTAL_AXIS?c=e:d=e;ka(this.b)&&(c=je(c,-this.b,this.b));ka(this.e)&&(d=je(d,-this.e,this.e));this.g&&(c=-c);c=new LN(e,b,c,d);this.dispatchEvent(c)};var KN=function(b,c){return Ac&&(Bc||Dc)&&0!=b%c?b:b/c}; JN.prototype.D=function(){JN.r.D.call(this);mk(this.a);this.a=null};var LN=function(b,c,d,e){Nj.call(this,c);this.type="mousewheel";this.detail=b;this.deltaX=d;this.deltaY=e};v(LN,Nj);
var MN=function(b){W.call(this);this.a=new U(this);this.J(this.a);this.e=uN(b);this.j=new JN(this.e);this.J(this.j);this.g=new xN(this.e);this.J(this.g);this.b=new bJ;this.J(this.b);this.l=!0;this.h=0;this.a.C(this.g,"double_tap",this.Fy);this.a.C(this.e,"dblclick",this.Ls);this.a.C(this.j,"mousewheel",this.ly);this.a.C(this.b,"key",this.Ty)};v(MN,W);k=MN.prototype;k.Ek=function(b,c){b?aJ(this.b,c||document):hJ(this.b)};k.Ep=function(b){this.l=b};k.Fy=function(b){this.Ls({offsetX:b.position.x,offsetY:b.position.y})};
k.Ls=function(b){this.dispatchEvent(new FN(1,2,new ZB(b.offsetX,b.offsetY)))};k.ly=function(b){if(this.l){var c=ta();Math.abs(b.deltaY)>=Math.abs(b.deltaX)&&100<=c-this.h&&(b.preventDefault(),this.dispatchEvent(new FN(.5*-le(b.deltaY),1,new ZB(b.offsetX,b.offsetY))),this.h=c)}};k.Ty=function(b){switch(b.a){case 43:case 61:this.dispatchEvent(new FN(1,3,void 0));break;case 45:case 95:this.dispatchEvent(new FN(-1,3,void 0))}};
var NN=function(b,c,d,e){W.call(this);for(var f=0;f<c.length;++f)c[f].Fk(this);for(f=0;f<b.length;++f)b[f].Fk(this),this.J(b[f]);this.a=d;this.b=e};v(NN,W);NN.prototype.Ep=function(b){this.a&&this.a.Ep(b)};NN.prototype.Ek=function(b,c){this.a&&this.a.Ek(b,c);this.b&&this.b.Ek(b,c)};NN.prototype.C=function(b,c,d,e){return NN.r.C.call(this,b,c,!0,e)};var ON=function(b){this.a=uN(b);this.j=this.h=this.g=this.e=this.k=!1;this.b=[]};ON.prototype.add=function(b){this.b.push(b);return this};
var PN=function(b){b.j=!0;return b},QN=function(b){b.e=!0;return b},RN=function(b){b.k=!0;return b},SN=function(b){RN(b);b.h=!0;return b},TN=function(b){b.g=!0;return b},UN=function(b){var c=[],d=null;b.j&&(d=new MN(b.a),c.push(d));var e=null;b.e&&(e=new EN,c.push(e));b.g&&c.push(new GN(b.a));if(b.k){var f=new CN(b.a);c.push(f);b.h&&(f=new IN(f),c.push(f))}return new NN(c,b.b,d,e)};
var VN=function(b){Jj.call(this,"resize");this.size=b};v(VN,Jj);var XN=function(b){W.call(this);this.g=uN(b);this.a=WN(this);this.b=new U(this);this.J(this.b);this.b.C(window,"resize",this.e)};v(XN,W);var WN=function(b){var c;var d=b.g;if("none"!=oq(d,"display"))c=new pf(d.clientWidth,d.clientHeight);else{c=d.style;var e=c.display,f=c.visibility,g=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";d=new pf(d.clientWidth,d.clientHeight);c.display=e;c.position=g;c.visibility=f;c=d}return 0==c.width||0==c.height?b.a||new pf(0,0):c.clone()}; XN.prototype.trigger=function(){this.e()};XN.prototype.e=function(){var b=WN(this);qf(this.a,b)&&0!=b.width&&0!=b.height||(this.a=b,this.dispatchEvent(new VN(b)))};
var YN=function(){Bj.call(this)};v(YN,Bj);YN.prototype.cancel=function(){return!1};var ZN=function(b,c){Bj.call(this);this.a=b;this.h=c;this.k=0;this.e=new Ao;this.b={};this.g=new U(this);this.J(this.g)};v(ZN,Bj);var aO=function(b){b.g.qd();$N(b,!0);for(var c in b.b)b.b[c].la();b.b={};b.k=0;b.e=new Ao};k=ZN.prototype;
k.load=function(b,c,d){var e=null;b in this.b?(e=this.b[b],e.a+=1,1==e.a&&this.e.remove(e)):(c=p(c)?c:1,e=new bO(b,c,t(this.Fz,this)),this.b[b]=e,e.a+=1,this.k+=c,this.a.load(b,t(this.Gg,this)),$N(this,!1));p(d)&&(e.pe()?d(e):this.g.C(e,"resource_loaded",function(b){d(b.Jz)}));return e};k.Gg=function(b,c){b in this.b&&this.b[b].Gg(c)};k.pe=function(b){return b in this.b&&this.b[b].pe()};k.clear=function(){$N(this,!0)};k.Fz=function(b){this.e.b.push(b);$N(this,!1)};
var $N=function(b,c){for(;(c||b.k>b.h)&&!b.e.isEmpty();){var d=Co(b.e);delete b.b[d.key];d.pe()||b.a.cancel(d.key);b.k-=d.gw;d.la()}};ZN.prototype.D=function(){aO(this);ZN.r.D.call(this)};var bO=function(b,c,d){W.call(this);this.key=b;this.gw=c;this.data=null;this.a=0;this.b=d};v(bO,W);bO.prototype.Gg=function(b){this.data=b;this.dispatchEvent(new cO(this))};bO.prototype.pe=function(){return null!=this.data};var cO=function(b){Jj.call(this,"resource_loaded");this.Jz=b};v(cO,Jj);
var fO=function(b){this.e=b;this.b=this.e.length/4;this.g=this.b+6;this.k=[[],[],[],[]];this.h=[[],[],[],[]];this.a=Array(4*(this.g+1));for(b=0;b<this.b;b++)this.a[b]=[this.e[4*b],this.e[4*b+1],this.e[4*b+2],this.e[4*b+3]];var c=Array(4);for(b=this.b;b<4*(this.g+1);b++){c[0]=this.a[b-1][0];c[1]=this.a[b-1][1];c[2]=this.a[b-1][2];c[3]=this.a[b-1][3];if(0==b%this.b){var d=c,e=d[0];d[0]=d[1];d[1]=d[2];d[2]=d[3];d[3]=e;dO(c);c[0]^=eO[b/this.b][0];c[1]^=eO[b/this.b][1];c[2]^=eO[b/this.b][2];c[3]^=eO[b/
this.b][3]}else 6<this.b&&4==b%this.b&&dO(c);this.a[b]=Array(4);this.a[b][0]=this.a[b-this.b][0]^c[0];this.a[b][1]=this.a[b-this.b][1]^c[1];this.a[b][2]=this.a[b-this.b][2]^c[2];this.a[b][3]=this.a[b-this.b][3]^c[3]}},gO=function(b,c){for(var d=0;4>d;d++)for(var e=0;4>e;e++)b.k[d][e]^=b.a[4*c+e][d]},iO=function(b){for(var c=hO,d=0;4>d;d++)for(var e=0;4>e;e++)b.k[d][e]=c[b.k[d][e]]},jO=function(b){for(var c=1;4>c;c++)for(var d=0;4>d;d++)b.h[c][(d+c)%4]=b.k[c][d];for(c=1;4>c;c++)for(d=0;4>d;d++)b.k[c][d]=
b.h[c][d]},dO=function(b){b[0]=kO[b[0]];b[1]=kO[b[1]];b[2]=kO[b[2]];b[3]=kO[b[3]]},kO=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,
157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],hO=
[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,
180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],eO=[[0,0,0,0],[1,0,0,0],[2,0,0,0],[4,0,0,0],[8,0,0,0],[16,0,0,0],[32,0,0,0],[64,0,0,0],[128,
0,0,0],[27,0,0,0],[54,0,0,0]],lO=[0,9,18,27,36,45,54,63,72,65,90,83,108,101,126,119,144,153,130,139,180,189,166,175,216,209,202,195,252,245,238,231,59,50,41,32,31,22,13,4,115,122,97,104,87,94,69,76,171,162,185,176,143,134,157,148,227,234,241,248,199,206,213,220,118,127,100,109,82,91,64,73,62,55,44,37,26,19,8,1,230,239,244,253,194,203,208,217,174,167,188,181,138,131,152,145,77,68,95,86,105,96,123,114,5,12,23,30,33,40,51,58,221,212,207,198,249,240,235,226,149,156,135,142,177,184,163,170,236,229,254,
247,200,193,218,211,164,173,182,191,128,137,146,155,124,117,110,103,88,81,74,67,52,61,38,47,16,25,2,11,215,222,197,204,243,250,225,232,159,150,141,132,187,178,169,160,71,78,85,92,99,106,113,120,15,6,29,20,43,34,57,48,154,147,136,129,190,183,172,165,210,219,192,201,246,255,228,237,10,3,24,17,46,39,60,53,66,75,80,89,102,111,116,125,161,168,179,186,133,140,151,158,233,224,251,242,205,196,223,214,49,56,35,42,21,28,7,14,121,112,107,98,93,84,79,70],mO=[0,11,22,29,44,39,58,49,88,83,78,69,116,127,98,105,
176,187,166,173,156,151,138,129,232,227,254,245,196,207,210,217,123,112,109,102,87,92,65,74,35,40,53,62,15,4,25,18,203,192,221,214,231,236,241,250,147,152,133,142,191,180,169,162,246,253,224,235,218,209,204,199,174,165,184,179,130,137,148,159,70,77,80,91,106,97,124,119,30,21,8,3,50,57,36,47,141,134,155,144,161,170,183,188,213,222,195,200,249,242,239,228,61,54,43,32,17,26,7,12,101,110,115,120,73,66,95,84,247,252,225,234,219,208,205,198,175,164,185,178,131,136,149,158,71,76,81,90,107,96,125,118,31,
20,9,2,51,56,37,46,140,135,154,145,160,171,182,189,212,223,194,201,248,243,238,229,60,55,42,33,16,27,6,13,100,111,114,121,72,67,94,85,1,10,23,28,45,38,59,48,89,82,79,68,117,126,99,104,177,186,167,172,157,150,139,128,233,226,255,244,197,206,211,216,122,113,108,103,86,93,64,75,34,41,52,63,14,5,24,19,202,193,220,215,230,237,240,251,146,153,132,143,190,181,168,163],nO=[0,13,26,23,52,57,46,35,104,101,114,127,92,81,70,75,208,221,202,199,228,233,254,243,184,181,162,175,140,129,150,155,187,182,161,172,143,
130,149,152,211,222,201,196,231,234,253,240,107,102,113,124,95,82,69,72,3,14,25,20,55,58,45,32,109,96,119,122,89,84,67,78,5,8,31,18,49,60,43,38,189,176,167,170,137,132,147,158,213,216,207,194,225,236,251,246,214,219,204,193,226,239,248,245,190,179,164,169,138,135,144,157,6,11,28,17,50,63,40,37,110,99,116,121,90,87,64,77,218,215,192,205,238,227,244,249,178,191,168,165,134,139,156,145,10,7,16,29,62,51,36,41,98,111,120,117,86,91,76,65,97,108,123,118,85,88,79,66,9,4,19,30,61,48,39,42,177,188,171,166,
133,136,159,146,217,212,195,206,237,224,247,250,183,186,173,160,131,142,153,148,223,210,197,200,235,230,241,252,103,106,125,112,83,94,73,68,15,2,21,24,59,54,33,44,12,1,22,27,56,53,34,47,100,105,126,115,80,93,74,71,220,209,198,203,232,229,242,255,180,185,174,163,128,141,154,151],oO=[0,14,28,18,56,54,36,42,112,126,108,98,72,70,84,90,224,238,252,242,216,214,196,202,144,158,140,130,168,166,180,186,219,213,199,201,227,237,255,241,171,165,183,185,147,157,143,129,59,53,39,41,3,13,31,17,75,69,87,89,115,125,
111,97,173,163,177,191,149,155,137,135,221,211,193,207,229,235,249,247,77,67,81,95,117,123,105,103,61,51,33,47,5,11,25,23,118,120,106,100,78,64,82,92,6,8,26,20,62,48,34,44,150,152,138,132,174,160,178,188,230,232,250,244,222,208,194,204,65,79,93,83,121,119,101,107,49,63,45,35,9,7,21,27,161,175,189,179,153,151,133,139,209,223,205,195,233,231,245,251,154,148,134,136,162,172,190,176,234,228,246,248,210,220,206,192,122,116,102,104,66,76,94,80,10,4,22,24,50,60,46,32,236,226,240,254,212,218,200,198,156, 146,128,142,164,170,184,182,12,2,16,30,52,58,40,38,124,114,96,110,68,74,88,86,55,57,43,37,15,1,19,29,71,73,91,85,127,113,99,109,215,217,203,197,239,225,243,253,167,169,187,181,159,145,131,141];
var pO=function(b){this.a=b};var qO=function(){this.b=[7,49,57,70,73,113,231,4,5,53,58,119,139,250,111,188,48,50,27,149,146,18,19,23,49,80,23];var b=[40,55,67,80,83,91,99,219,17,59,122,243,224,177,67,85,86,200,249,83,12,4,50,72,73,85,39],b=new fO(null==b?[]:b.slice(5,21));this.a=new pO(b)},rO=function(b,c){return b[c]+(b[c+1]<<8)+(b[c+2]<<16)+(b[c+3]<<24)},sO=function(b,c,d){return b.slice?b.slice(c,d):b.subarray(c,d)};
var tO=function(b,c,d,e,f,g){this.ne=b;this.size=new pf(c,d);this.Qp=e||"";b=null;f&&g&&(b=new pf(f,g));this.k=b;this.b=-1;this.e=Math.min(512,f||c,g||d)};v(tO,mC);k=tO.prototype;k.yl=function(){return""};
k.uh=function(){var b=new aC;b.e=this.size.width;b.k=this.size.height;var c;c=Math.max(this.size.width+1,this.size.height+1)/this.e;c=Math.ceil(Math.log(c)/Math.log(2))+1;b.a=c;b.origin="TOP_LEFT";for(c=0;c<b.a;++c){var d=1/Math.pow(2,b.a-1-c),e=this.size.width*d,d=this.size.height*d;this.Qp&&this.k.height>=d&&this.k.width>=e&&(this.b=c);e=new eC(c,null,e,d,b.origin);e.Vf=1;e.Wf=1;e.Ai=0;e.Bi=0;b.Aa.push(e)}return b};k.getTileUrl=function(b,c,d){return d<=this.b?this.Qp:this.ne}; k.sh=function(b,c,d){return this.getTileUrl(b,c,d)};k.Ph=function(b){null!=b&&b(this.uh(null));return!0};
var uO=function(b){Bj.call(this);this.g=new qO;this.A="undefined"!=typeof Uint8Array;this.e=null!=xd();this.j=t(b?this.A?this.l:I?this.B:this.p:this.o,this);this.h=I&&!Jc("11")?"readystatechange":"load";this.a=new Ao;this.b=!0;this.k=new U(this);this.J(this.k)};v(uO,YN);uO.prototype.load=function(b,c){this.j(b,function(d){setTimeout(function(){c(b,d)},1)})};
var wO=function(b,c){b.b&&b.a.isEmpty()&&vO(b);b.a.b.push(c)},vO=function(b){setTimeout(t(function(){this.b&&!this.a.isEmpty()&&(Co(this.a)(),this.a.isEmpty()||vO(this))},b),0)};uO.prototype.o=function(b,c,d){var e=new Image;p(d)&&d&&(e.crossOrigin="anonymous");this.k.C(e,this.h,function(d){("readystatechange"==d.type&&"complete"==e.readyState||"load"==d.type||e.complete)&&setTimeout(function(){c(b)},1)});e.src=b};
uO.prototype.l=function(b,c){var d=new XMLHttpRequest;d.open("GET",b,!0);d.responseType="arraybuffer";this.k.C(d,"load",function(){200==d.status&&wO(this,t(function(){var b=new Uint8Array(d.response);xO(this,b,c)},this))});d.send()};
uO.prototype.p=function(b,c){var d=new XMLHttpRequest;d.open("GET",b,!0);d.overrideMimeType("text/plain; charset=x-user-defined");this.k.C(d,"readystatechange",function(){4==d.readyState&&200==d.status&&wO(this,t(function(){for(var b=[],f=0,g=d.responseText.length;f<g;++f)b.push(d.responseText.charCodeAt(f)&255);xO(this,b,c)},this))});d.send()};
var xO=function(b,c,d){var e=b.g,f=c;if(10==f[0]&&10==f[1]&&10==f[2]&&10==f[3]){c=rO(f,f.length-4);var f=sO(f,4,f.length-4),g=rO(f,c);if(f.splice)f.splice(c,4);else{var h=new Uint8Array(f.length-4);h.set(f.subarray(0,c));h.set(f.subarray(c+4),c);f=h}g=sO(f,c,c+g);try{for(var l=e.b.slice(5,21),m,r=e.a,e=[],h=0;h<g.length;){for(var u=xb(g,h,h+16),w=r.a,C=w,J=u,V=void 0,xa=void 0,Ha=0;4>Ha;Ha++)for(var kb=0;4>kb;kb++)xa=4*kb+Ha,V=J[xa],C.k[Ha][kb]=V;gO(w,w.g);for(C=1;C<w.g;++C){jO(w);iO(w);gO(w,w.g-
C);for(var oa=w.k,Ia=w.h[0],J=0;4>J;J++)Ia[0]=oa[0][J],Ia[1]=oa[1][J],Ia[2]=oa[2][J],Ia[3]=oa[3][J],oa[0][J]=oO[Ia[0]]^mO[Ia[1]]^nO[Ia[2]]^lO[Ia[3]],oa[1][J]=lO[Ia[0]]^oO[Ia[1]]^mO[Ia[2]]^nO[Ia[3]],oa[2][J]=nO[Ia[0]]^lO[Ia[1]]^oO[Ia[2]]^mO[Ia[3]],oa[3][J]=mO[Ia[0]]^nO[Ia[1]]^lO[Ia[2]]^oO[Ia[3]]}jO(w);iO(w);gO(w,0);for(var C=l,tt,J=w,V=[],xa=0;4>xa;xa++)for(Ha=0;4>Ha;Ha++)V[4*Ha+xa]=J.k[xa][Ha];tt=V;J=[];for(V=0;V<C.length;V++)J.push(C[V]^tt[V]);wb(e,J);l=u;h+=16}m=e}catch(fg){throw Error("kb`"+fg.toString());
}for(r=0;r<m.length;++r)f[r+c]=m[r]}c=f;if(b.e){b=new Blob([c],{type:"image/jpg"});m=xd();if(null==m)throw Error("g");b=m.createObjectURL(b);d(b)}else b="data:image/jpeg;base64,"+Sc(c),d(b)};uO.prototype.B=function(b){(new XDomainRequest).open("GET",b);wO(this,function(){throw Error("mb");})};
var zO=function(b,c){return yO(b,function(b){c(b)})},yO=function(b,c){var d=window.XDomainRequest;if(d){var e=new d;e.open("GET",b);e.onload=function(){var b;b=e.responseText;if("undefined"!=typeof DOMParser)b=(new DOMParser).parseFromString(b,"application/xml");else if("undefined"!=typeof ActiveXObject){var d=new ActiveXObject("MSXML2.DOMDocument");if(d){d.resolveExternals=!1;d.validateOnParse=!1;try{d.setProperty("ProhibitDTD",!0),d.setProperty("MaxXMLSize",2048),d.setProperty("MaxElementDepth",
256)}catch(h){}}d.loadXML(b);b=d}else throw Error("nb");c(b)};e.onerror=function(){c(null)};e.onprogress=q;e.send();d=new Bj;Cj(d,function(){e.onload=q;e.onerror=q;e.abort()});return d}e=new Nn;T(e,"complete",function(){var b;try{b=this.bb?this.bb.responseXML:null}catch(d){b=null}c(b)});e.send(b);return e};
var AO=function(b,c,d,e,f){Bj.call(this);this.b=2E3;this.h=5;this.g=0;this.e=new WI(this.load,0,this);this.J(this.e);this.nb=b;this.jc=c;this.k=d||q;this.l=e||q;this.a=f||null};v(AO,Bj);AO.prototype.load=function(){if(!this.nb.Ph(t(this.jc,this.a))){var b=zO(this.nb.yl(),t(this.j,this));this.J(b)}}; AO.prototype.j=function(b){var c=null;if(b)try{c=this.nb.uh(b)}catch(d){}b=c;this.nb.Vo(b)?this.jc.call(this.a,b):this.nb.Cn(b)?(++this.g,this.g<this.h?(this.l.call(this.a),this.e.start(this.b),this.b*=2):this.k.call(this.a)):this.k.call(this.a)};
var BO=function(b,c,d){Jj.call(this,"level_change");this.gm=b;this.animate=c;this.a=p(d)?d:null};v(BO,Jj);var CO=function(b){Jj.call(this,"view_move");this.position=b};v(CO,Jj);var DO=function(b,c,d,e,f){Jj.call(this,"viewport_update");this.left=b;this.top=c;this.right=d;this.bottom=e;this.Zx=f};v(DO,Jj);var EO=function(b){this.b=null;this.k=b;this.e=gd;this.a=0},FO=function(b){b=b.e(b.k.a);return new pf(b.width,b.height)},GO=function(b){return iC(b.b,FO(b))},HO=function(b,c,d,e){e=Math.max(0,(1-e)/2,b.a);b=.5-e;e=.5+e;return d>c&&c<b?Math.min(d,b):d<c&&c>e?Math.max(d,e):c};
var IO=function(b,c){Jj.call(this,"tile_loaded");this.gm=b;this.a=c};v(IO,Jj);wa("MicroscopeMaximizeMode",{aB:"fit",$A:"fill"});wa("MicroscopeResizeMode",{bB:"fixed",oB:"scale"});var JO=function(b){jr.call(this);this.a=document.createElement("div");ch(this.a,"m2-glassLayer");null!=b&&nr(this).C(b,"resize",this.g)};v(JO,jr);JO.prototype.wb=function(){this.Ha(this.a)};JO.prototype.g=function(b){Dq(this.a,b.size.width,b.size.height)};JO.prototype.b=function(b){mq(this.a,"cursor",b?"move":"auto")};
var KO=function(b,c,d,e,f,g,h,l){Bj.call(this);this.o=g;this.a=this.createElement();this.width=c;this.height=d;this.b=new ZB(1,1);this.url=b;this.offset=h;this.h=new mf(e,f);this.A="("+this.h.x+", "+this.h.y+")";this.I=l};v(KO,Bj);var LO={90:"m2-tileRotation90",180:"m2-tileRotation180",270:"m2-tileRotation270"};
KO.prototype.setVisible=function(b){if(b)gh(this.a,"hidden",!0),this.k=this.p.load(this.url,1),this.k.pe()?this.Jt():vk(this.g,this.k,"resource_loaded",this.Jt,void 0),MO(this),this.o.appendChild(this.a);else try{this.be(),this.o.removeChild(this.a)}catch(c){}};
var MO=function(b){var c=b.width*b.b.x,d=b.height*b.b.y,e=b.h.x*c+b.offset.x*b.b.x,f=b.h.y*d+b.offset.y*b.b.y,g=Math.round(e),h=Math.round(f),c=new pf(Math.round(e+c)-g,Math.round(f+d)-h),d=LO[0];b.I&&!d?b.a.style.webkitTransform="translate3d("+g+"px, "+h+"px, 0)":(d&&ch(b.a,d),b.a.style.left=g+"px",b.a.style.top=h+"px");Dq(b.a,c.width,c.height)};
var NO=function(b,c,d,e,f,g,h,l,m,r,u){KO.call(this,b,c,d,e,f,h,l,m);this.p=r;this.k=null;this.B=g&&!this.p.pe(this.url);this.l=I&&!Jc("11")?"readystatechange":"load";this.j=null!=u?u:null;this.e=null;this.g=new U(this);this.J(this.g)};v(NO,KO);k=NO.prototype;k.createElement=function(){var b=document.createElement("img");ch(b,"hidden");ch(b,"m2-tileLayerImg");return b};k.Jt=function(){this.g.C(this.a,this.l,this.Zs);this.a.src=this.k.data};
k.Zs=function(){if(this.a.complete||"complete"==this.a.readyState)if(this.g.k(this.a,this.l,this.Zs),this.B||ch(this.a,"m2-noTransition"),gh(this.a,"hidden",!1),null!=this.j){var b=this.B?500:0;this.e=setTimeout(t(this.wA,this,this.j),b);this.j=null}};k.wA=function(b){b();this.e=null};k.be=function(){this.g.qd();this.a.removeAttribute("src");if(this.k){var b=this.k;--b.a;0==b.a&&b.b(b);this.k=null}null!=this.e&&(clearTimeout(this.e),this.e=null)};k.D=function(){this.be();NO.r.D.call(this)};
var OO=function(b,c,d,e){W.call(this);this.y=this.x=0;this.h=!1;this.g=new ZB(1,1);this.url=b;this.I=c;this.a=d;this.A=e;this.j=!0};v(OO,W);OO.prototype.setVisible=function(b){(this.h=b)||PO(this,[])};OO.prototype.Va=function(){return this.h};var QO=function(b,c){var d=new ZB(c.width/fC(b.a),c.height/gC(b.a));nf(d,b.g)||(b.g=d,b.resize(b.g))};
var RO=function(b,c,d,e,f,g){OO.call(this,c,d,e,f);this.b=document.createElement("div");this.b.style.direction="ltr";this.e=[];this.p=null;this.l=this.o=0;this.B=g;ch(this.b,"m2-tileLayer");b.appendChild(this.b)};v(RO,OO);
var TO=function(b){mq(b.b,"zIndex",b.a.a);SO(b,b.a.Vf,b.a.Wf,b.a.Ai,b.a.Bi);b.p=t(function(b,d,e,f,g){var h=this.url.sh(b,d,this.a.a,this.I.timestamp,window),l=t(function(){this.dispatchEvent(new IO(this.a.a,new mf(b,d)))},this);return new NO(h,e,f,b,d,0<this.a.a&&this.j,g,this.a.e,this.B,this.A,l)},b)};RO.prototype.remove=function(){PO(this,[]);this.h=!1;this.b.parentNode.removeChild(this.b)};
var PO=function(b,c){for(var d={},e=0;e<b.e.length;++e){var f=b.e[e];d[f.A]=f}b.e=[];for(e=0;e<c.length;++e){var g=new ZB(c[e].x,c[e].y),h="("+g.x+", "+g.y+")",f=d[h];if(null!=f)delete d[h];else{f=b.p(g.x,g.y,b.a.k,b.a.b,b.b);b.J(f);if(null==f)continue;f.setVisible(!0)}g=f;h=b.g;nf(g.b,h)||(g.b=h,MO(g));b.e.push(f)}for(var l in d)d[l].setVisible(!1)},SO=function(b,c,d,e,f){b.o=c*b.a.k-e;b.l=d*b.a.b-f;b.resize(new ZB(1,1))}; RO.prototype.resize=function(b){for(var c=0,d=this.e.length;c<d;++c){var e=this.e[c],f=b;nf(e.b,f)||(e.b=f,MO(e))}Dq(this.b,this.o*b.x,this.l*b.y)};
var UO=function(b){this.length=b.length||b;for(var c=0;c<this.length;c++)this[c]=b[c]||0};UO.prototype.a=4;UO.prototype.b=function(b,c){c=c||0;for(var d=0;d<b.length&&c+d<this.length;d++)this[c+d]=b[d]};UO.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(UO.BYTES_PER_ELEMENT=4,UO.prototype.BYTES_PER_ELEMENT=UO.prototype.a,UO.prototype.set=UO.prototype.b,UO.prototype.toString=UO.prototype.toString,wa("Float32Array",UO));
var VO=function(b){this.length=b.length||b;for(var c=0;c<this.length;c++)this[c]=b[c]||0};VO.prototype.a=8;VO.prototype.b=function(b,c){c=c||0;for(var d=0;d<b.length&&c+d<this.length;d++)this[c+d]=b[d]};VO.prototype.toString=Array.prototype.join;if("undefined"==typeof Float64Array){try{VO.BYTES_PER_ELEMENT=8}catch(aaa){}VO.prototype.BYTES_PER_ELEMENT=VO.prototype.a;VO.prototype.set=VO.prototype.b;VO.prototype.toString=VO.prototype.toString;wa("Float64Array",VO)};
new Float64Array(3);new Float64Array(3);new Float64Array(4);new Float64Array(4);new Float64Array(4);new Float64Array(16);var WO=function(b,c,d){this.b=b;this.b.style.overflow="hidden";this.a=document.createElement("div");this.a.style.direction="ltr";this.k=[];this.e=this.g=null;this.j=c;this.h=d};v(WO,Bj);var XO=function(b){b.b.appendChild(b.a)};WO.prototype.D=function(){mk(this.e);YO(this);WO.r.D.call(this)};WO.prototype.l=function(){};var YO=function(b,c){for(var d=c?1:0,e=b.k.length-1;e>=d;--e)ZO(b,b.k[e])},ZO=function(b,c){sb(b.k,c)&&(c.remove(),c.la())};
var $O=function(b,c,d,e){W.call(this);this.I=b;this.l=c;this.b=[];this.a=null;this.e=d;this.o=!0;this.g=null;this.h=new ue;this.A=e||function(){};this.j=new pf(0,0);this.B=0;this.p=new U(this);this.J(this.p)};v($O,W);
$O.prototype.load=function(b,c,d,e){YO(d,e);this.a&&(ZO(d,this.a),this.a=null);e&&(this.a=this.b[0]);this.b=[];e=0;for(var f=c.a;e<f;++e){var g=c.Aa[e];if(null!=g){var h;h=d;g=new RO(h.a,b,c,g,h.j,h.h);h.k.push(g);h=g;this.p.C(h,"tile_loaded",this.H);TO(h);this.b.push(h)}else throw Error("ob`"+e);}aP(this,this.o)};
var cP=function(b,c,d,e,f){var g=b.l;g.h?g.a.style.webkitTransform="translate3d("+c+"px, "+d+"px, 0)":g.a.style.margin=d+"px 0 0 "+c+"px";g=b.I.a;c=new hq(-(d/e.height),(g.width-c+e.width)/e.width-1,(g.height-d+e.height)/e.height-1,-c/e.width);d=b.e;g=Math.ceil(f);d.b=d.a.Aa[g];d.g=!0;d=b.e;d.h=c.clone();d.g=!0;b.B=f;b.j=e;bP(b)},bP=function(b){for(var c=Math.ceil(b.B),d=dP(b.e,c),e=new ue,f=0;f<d.length;++f)e.add(eP(c,d[f]));for(var f=b.h,c=new ue,d=re(e),g=0;g<d.length;g++){var h=d[g];f.contains(h)&&
c.add(h)}b.h=c;f=b.h;e=e.clone();f=re(f);c=f.length;for(d=0;d<c;d++)e.remove(f[d]);b.g=e;for(f=0;f<b.b.length;++f)e=b.b[f],c=dP(b.e,f),d=0<c.length,e.setVisible(d),d&&PO(e,c);for(f=0;f<b.b.length;++f)e=b.b[f],QO(e,b.j);b.a&&QO(b.a,b.j)},aP=function(b,c){b.o=c;for(var d=0;d<b.b.length;++d)b.b[d].j=c};$O.prototype.H=function(b){var c=eP(b.gm,b.a);this.g&&this.g.contains(c)&&(this.g.remove(c),this.h.add(c),0==this.g.Ub()&&(this.e.g=!0,bP(this),this.A(),this.a&&(ZO(this.l,this.a),this.a=null)));this.dispatchEvent(b)}; var eP=function(b,c){return c.x+","+c.y+","+b};$O.prototype.D=function(){this.a&&(ZO(this.l,this.a),this.a=null);$O.r.D.call(this)};
var fP=function(b){this.b=null;this.h=new hq(0,1,1,0);this.l=b;this.nb=this.a=null;this.k={};this.j=!1;this.g=!0;this.e={}},dP=function(b,c){if(b.g){b.e={};for(var d=b.b.a,e=0;e<=b.a.Aa.length;++e)if(0==e){for(var f=b.k,g=b.a.Aa[0],h=[],l=0;l<g.Vf;++l)for(var m=0;m<g.Wf;++m)h.push(new mf(l,m));f[0]=h}else if(e==d)for(b.k[d]=[],f=gP(b,b.b),g=0;g<f.length;++g)h=f[g],hP(b,d,h)?b.k[d].push(h):(b.e[h.x+","+h.y]=h,b.j||b.k[d].push(h));else b.k[e]=[];iP(b);for(d=b.b.a-1;1<=d&&!Vb(b.e);--d)for(e=b.a.Aa[d],
f=gP(b,b.a.Aa[d],!0),g=0;g<f.length;++g){for(var h=f[g],l=kC(b.b,lC(e,h)),m=kC(b.b,lC(e,new mf(h.x+1,h.y+1))),r=!1,u=l.x;u<m.x;++u)for(var w=l.y;w<m.y;++w){var C=u+","+w;C in b.e&&(r=!0,delete b.e[C])}r&&b.k[d].push(h)}b.g=!1}return b.k[c]||[]},iP=function(b){var c=b.b.a+1;if(!(c>=b.a.Aa.length)){var d=gP(b,b.a.Aa[c],!0);if(0!=d.length){var e={};y(d,function(b){e[b.x+","+b.y]=b},b);for(var f in b.e){for(var d=b.e[f],d=iq(lC(b.b,d),lC(b.b,d.x+1,d.y+1)),g=b.a.Aa[c],h=!0,l=kC(g,d.left,d.top),m=new mf(l.x,
l.y);m.x<g.Vf;++m.x){var r;for(m.y=l.y;m.y<g.Wf;++m.y){r=lC(g,m);if(r.x>=d.right||r.y>=d.bottom)break;var u=m.x+","+m.y;u in e?null!=e[u]&&(b.k[c].push(new mf(m.x,m.y)),e[u]=null):h=!1}if(r.x>=d.right)break}h&&delete b.e[f]}}}},gP=function(b,c,d){var e=kC(c,new mf(b.h.left,b.h.top)),f=kC(c,new mf(b.h.right,b.h.bottom));e.x=je(e.x,0,c.Vf-1);e.y=je(e.y,0,c.Wf-1);f.x=je(f.x,0,c.Vf-1);f.y=je(f.y,0,c.Wf-1);for(var g=[],h=e.x;h<=f.x;++h)for(var l=e.y;l<=f.y;++l)d&&!hP(b,c.a,h,l)||g.push(new mf(h,l));return g}, hP=function(b,c,d,e){d instanceof mf?(e=d.y,d=d.x):p(e)||(e=0);return b.l.pe(b.nb.sh(d,e,c,b.a.timestamp,window))};
var lP=function(){jr.call(this);this.ca=I&&Jc("8");this.p=0;this.R=null;this.a=this.e.createElement("div");dh(this.a,["m2-zoomSlider","m2-transition"]);this.A=this.e.createElement("div");dh(this.A,["m2-zoomInButton","m2-transition"]);this.a.appendChild(this.A);this.l=this.e.createElement("div");Rf(this.l,"+");dh(this.l,["m2-zoomButtonLabel","m2-transition"]);this.A.appendChild(this.l);this.H=this.e.createElement("div");dh(this.H,["m2-zoomOutButton","m2-transition"]);this.a.appendChild(this.H);this.o=
this.e.createElement("div");Rf(this.o,"\u2013");dh(this.o,["m2-zoomButtonLabel","m2-transition"]);this.H.appendChild(this.o);this.K=this.e.createElement("div");dh(this.K,["m2-zoomSliderKnobSurface","m2-transition"]);this.a.appendChild(this.K);this.g=this.e.createElement("div");dh(this.g,["m2-zoomSliderKnob","m2-transition"]);this.K.appendChild(this.g);this.b=new Im(1E3);this.J(this.b);nr(this).C(this.b,"tick",function(){jP(this,!1)});this.Q=!1;nr(this).C(this.a,"mouseover",function(){this.b.stop();
this.Q=!0;jP(this,!0)});nr(this).C(this.a,"mouseout",function(){this.Q=!1;this.b.stop();this.b.start()});kP(this);jP(this,!1)};v(lP,jr);lP.prototype.wb=function(){this.Ha(this.a)};var mP=function(b){b.Q||(jP(b,!0),b.b.stop(),b.b.start())},nP=function(b,c){b.R=c};lP.prototype.sa=function(b){"start"!=b.type&&(b=b.left/this.p,null!=this.R&&this.R(b))};
var jP=function(b,c){var d=b.getHeight(c)+"px",e=c?"30px":"0";b.a.style.height=sq(d,!0);b.a.style.backgroundColor=b.ca?"rgb(0, 0, 0)":"rgba(0, 0, 0, "+(c?"1":"0.5")+")";b.g.style.height=sq(d,!0);b.K.style.height=d;b.A.style.height=d;b.H.style.height=d;b.o.style.height=e;b.l.style.height=e;b.ca?(d=c?"visible":"hidden",b.o.style.visibility=d,b.l.style.visibility=d):(d=c?"1":"0",b.o.style.opacity=d,b.l.style.opacity=d)};lP.prototype.getHeight=function(b){return b?30:8}; var kP=function(b){nr(b).C(b.A,"click",function(){mP(this);this.dispatchEvent(new FN(1))});nr(b).C(b.H,"click",function(){mP(this);this.dispatchEvent(new FN(-1))})};
wa("MicroscopeZoomWidgetMode",{VISIBLE:0,lB:1,rB:2,HIDDEN:3});var pP=function(b,c){jr.call(this);this.a=150;this.Db=new mf(10,10);this.b=this.e.createElement("div");ch(this.b,"m2-zoomWidget");tq(this.b,this.Db);this.Ja=this.e.createElement("div");ch(this.Ja,"m2-wrapper");this.b.appendChild(this.Ja);this.ga=this.e.createElement("div");ch(this.ga,"m2-thumbView");this.Ja.appendChild(this.ga);this.Tc=new JO;this.Tc.render(this.ga);this.J(this.Tc);this.Fb=new CN(this.Tc);this.J(this.Fb);nr(this).C(this.Fb,"drag_hover",this.Kh);nr(this).C(this.Fb,["drag_start","drag_move"],
this.Jh);this.R=new pf(this.a,this.a);this.Xd=this.e.createElement("div");ch(this.Xd,"m2-visibleAreaMarker");this.ga.appendChild(this.Xd);this.K=[];for(var d=0;4>d;++d)this.K[d]=this.e.createElement("div"),ch(this.K[d],"m2-darkAreaMarker"),this.ga.appendChild(this.K[d]);this.o=new lP;this.J(this.o);nr(this).C(this.o,"zoom",function(b){this.dispatchEvent(b);oP(this)});this.o.render(this.b);nP(this.o,t(this.Ih,this));this.Q=this.e.createElement("div");ch(this.Q,"m2-thumbnailWrapper");this.ga.appendChild(this.Q);
this.ib=b(this.Q);XO(this.ib);this.J(this.ib);this.Wd=new XN(this.Q);this.J(this.Wd);this.ze=new fP(c);this.ad=new $O(this.Wd,this.ib,this.ze);this.J(this.ad);this.Bf=0;this.H=1;this.p=0;this.g=1;this.l=new pf(0,0);this.sa=new ZB(0,0);this.Ca=new ZB(0,0);this.ca=null;this.A=new Im(1E3);this.J(this.A);nr(this).C(this.A,"tick",function(){this.setVisible(!1)});this.$c=!1;nr(this).C(this.b,"mouseover",function(){this.A.stop();this.$c=!0;this.setVisible(this.H>this.p)});nr(this).C(this.b,"mouseout",function(){this.$c=
!1;this.A.stop();this.A.start()});this.Xa=this.e.createElement("div");ch(this.Xa,"m2-addToCollectionButton");Jq(this.Xa,!1);this.b.appendChild(this.Xa);nr(this).C(this.Xa,"click",function(){null!=this.yb&&this.yb()});this.yb=null};v(pP,jr);pP.prototype.wb=function(){this.Ha(this.b)};var oP=function(b){b.$c||(b.setVisible(b.H>b.p),b.A.stop(),b.A.start())};
pP.prototype.Jh=function(b){var c=new ZB(b.position.x-this.sa.x,b.position.y-this.sa.y);b=c.x-this.Ca.x;c=c.y-this.Ca.y;b/=this.l.width*this.a*this.g;c/=this.l.height*this.a*this.g;this.dispatchEvent(new CO(new ZB(b,c)))};var qP=function(b,c){Jq(b.Xa,null!=c);b.yb=c};pP.prototype.Ih=function(b){this.dispatchEvent(new BO(this.p+b*(this.H-this.p),!1))};pP.prototype.Kh=function(){oP(this);mP(this.o)};
pP.prototype.setVisible=function(b){gh(this.b,"m2-transition",!b);I&&Jc("8")?this.b.style.visibility=b?"visible":"hidden":Iq(this.b,b?1:0)};
var rP=function(b){if(null==b.ca)throw Error("pb");Dq(b.b,b.a,b.a);var c=b.ca.Aa[b.H],c=fC(c)/gC(c);b.l=new pf(Math.min(1,c),Math.min(1,1/c));var c=b.a*b.l.width,d=b.a*b.l.height;Dq(b.Q,c,d);b.Wd.trigger();d=(b.a-d)/2;b.Q.style.marginTop=d+"px";c=(b.a-c)/2;b.Q.style.marginLeft=c+"px";b.sa=new ZB(Math.round(c),Math.round(d));c=b.o;b=b.a;c.Yb||(c.Yb=new Xq(c.g,null),c.Yb.Ni=!0,c.J(c.Yb),nr(c).C(c.Yb,["start","drag","end"],c.sa));c.p=b-60;Zq(c.Yb,new jq(0,0,c.p,0))},sP=function(b,c,d,e,f){null!=b&&(b.style.margin= d+"px 0 0 "+c+"px",b.style.width=e+"px",b.style.height=f+"px")};
var tP=function(b){return 1-Math.pow(1-b,3)};var uP=function(b,c,d,e,f){W.call(this);this.h=b;this.Id=c;this.o=d;this.K=e;this.ka=p(f)?f:!0;this.nb=this.e=null;this.a=0;this.b=new ZB(.5,.5);this.H=this.g=null;this.A=this.p=0;this.I=WN(this.o);this.Q="fixed";this.B=!1;this.j=new U(this);this.J(this.j);this.O=new Im(100);this.J(this.O);this.l=new EO(d);this.j.C(this.h,"zoom",this.Jx);this.j.C(this.h,"level_change",this.yx);this.j.C(this.h,"view_move",this.Hx);this.j.C(this.h,"drag_move",this.vx);this.j.C(this.h,"throw",this.Fx);this.j.C(this.o,
"resize",this.my);this.j.C(this.O,"tick",this.R)};v(uP,W);
var wP=function(b,c,d){var e=FO(b.l);if("fill"==d){d=b.e;var f=d.Aa[d.Aa.length-1],f=fC(f)/gC(f),g=e.width/e.height,e=iC(d,new pf(f<=g?e.width:Number.MAX_VALUE,f>g?e.height:Number.MAX_VALUE))}else e=iC(b.e,e);vP(b,e,c?void 0:0)},BP=function(b,c,d,e){var f=b.o.a,g=c.z;c.size&&(g=iC(b.e,new pf(f.width/c.size.width,f.height/c.size.height)));g=xP(b,g);e?vP(b,g,d,e):0>=d?(yP(b),b.a=g,zP(b,c.x,c.y),vP(b,b.a,0)):AP(b,new ZB(c.x,c.y),g,d)},CP=function(b){var c=jC(b.e,b.a),d=b.o.a;return new xC(b.b.x,b.b.y,
b.a,new pf(d.width/c.width,d.height/c.height))},FP=function(b,c,d){d?zP(b,c.x,c.y):(b.b.x=c.x,b.b.y=c.y);DP(b,!0);EP(b)},GP=function(b,c,d,e){var f=b.p+c;1==Math.abs(c)&&(f=Math.round(f));f=xP(b,f);yP(b);f!=b.a&&vP(b,f,d?void 0:0,e)},vP=function(b,c,d,e){b.H=p(e)?e:null;yP(b);!b.ka||p(d)&&0>=d?(b.p=c,HP(b,c,b.H)):(b.p=c,b.A=b.a,b.g=new oJ([void 0,void 0,0],[void 0,void 0,1],d||600,tP),b.J(b.g),b.j.C(b.g,"animate",b.Ks),vk(b.j,b.g,"end",b.Js,void 0),b.g.play())},AP=function(b,c,d,e){yP(b);b.A=b.a;
b.p=null!=d?d:b.a;d=b.a!=b.p;b.g=new oJ([b.b.x,b.b.y,d?0:void 0],[c.x,c.y,d?1:void 0],e||500,tP);b.J(b.g);b.j.C(b.g,"animate",b.Ks);vk(b.j,b.g,"end",b.Js,void 0);b.g.play()};k=uP.prototype;k.my=function(){if(this.e){var b=0;if(this.I&&"scale"==this.Q)var c=WN(this.o),b=c.width/this.I.width,c=c.height/this.I.height,d=jC(this.e,this.a),b=iC(this.e,new pf(d.width*b,d.height*c))-this.a;this.I=WN(this.o);c=this.Id;d=GO(this.l);c.p=d;c.H>c.p||c.setVisible(!1);GP(this,b,!1);IP(this);EP(this)}};
k.Hx=function(b){FP(this,b.position,!0)};k.Fx=function(b){if(null!=b.a){var c=jC(this.e,this.a);AP(this,new ZB(this.b.x-b.a.x/c.width,this.b.y-b.a.y/c.height))}else yP(this)};k.Jx=function(b){GP(this,b.a,4!=b.g,b.k)};k.yx=function(b){var c=xP(this,b.gm);vP(this,c,b.animate?void 0:0,b.a)};k.vx=function(b){if(null==this.e)throw Error("rb");if(null==this.g){var c=jC(this.e,this.a);FP(this,new ZB(this.b.x-b.a.x/c.width,this.b.y-b.a.y/c.height),!0)}};
k.Ks=function(b){var c=this.a;null==b.z||isNaN(b.z)||(c=this.A,c=xP(this,c+b.z*(this.p-c)));HP(this,c,this.H);null==b.x||isNaN(b.x)||null==b.y||isNaN(b.y)||FP(this,new ZB(b.x,b.y),!0)};k.Js=function(){this.p=this.a;this.H=this.g=null};var xP=function(b,c){return je(c,GO(b.l),b.e.a-1)};uP.prototype.R=function(){var b=CP(this),c=!yC(this.ca,b);this.ca=b;DP(this,c)};
var DP=function(b,c){var d=b.B;b.B=c;d!=b.B&&EP(b)},HP=function(b,c,d){if(null!=d){var e=b.o.a,f=d.x-e.width/2,e=d.y-e.height/2,g=jC(b.e,c),f=f/g.width,e=e/g.height,h=JP(b,b.a),g=d.x-h.x,h=d.y-h.y;d=jC(b.e,b.a);h/=d.height;b.b.x=g/d.width-f;b.b.y=h-e}b.a=xP(b,c);f=b.Id;f.Bf=b.a;c=f.o;f=(f.Bf-f.p)/(f.H-f.p);f=Math.max(Math.min(f,1),0);null==c.ga&&(c.ga=Kq(c.a));c.ga?c.g.style.marginRight=c.p*f+"px":c.g.style.marginLeft=c.p*f+"px";IP(b);DP(b,!0);EP(b)},EP=function(b){var c=jC(b.e,b.a),d=JP(b,b.a),e=
b.o.a;b.dispatchEvent(new DO(-(d.x/c.width),-(d.y/c.height),(e.width-d.x+c.width)/c.width-1,(e.height-d.y+c.height)/c.height-1,b.B));c=JP(b,0);d=jC(b.e,b.a);b.K.e.j=b.B;cP(b.K,Math.round(c.x),Math.round(c.y),d,b.a)},yP=function(b){null!=b.g&&(b.g.stop(!1),b.g=null)},JP=function(b,c){var d=jC(b.e,c),e=b.o.a,e=new ZB(e.width/2-d.width*b.b.x,e.height/2-d.height*b.b.y),f=jC(b.e,b.a);e.x+=b.b.x*(d.width-f.width);e.y+=b.b.y*(d.height-f.height);return e},zP=function(b,c,d){var e=b.b.x,f=b.b.y;b.b.x=c;b.b.y=
d;IP(b,e,f)},IP=function(b,c,d){var e,f=b.l;e=CP(b);var g=e.x,h=e.y;c=null!=c?c:g;var l=null!=d?d:h;d=jC(f.b,e.z);var m=f.k.a,g=HO(f,g,c,m.width/d.width),h=HO(f,h,l,m.height/d.height),l=FO(f);c=l.width/d.width;var m=l.height/d.height,r=d=f.a;c>m?d=Math.max((c-m)/2,f.a):r=Math.max((m-c)/2,f.a);f=h+Math.max(-.5,-m/2+r);l=g+Math.min(.5,c/2-d);m=h+Math.min(.5,m/2-r);c=g+Math.max(-.5,-c/2+d);0>c?g-=c:1<l&&(g+=1-l);0>f?h-=f:1<m&&(h+=1-m);e=new xC(g,h,e.z);b.b.x=e.x;b.b.y=e.y};
var KP=function(b,c){var d=b.Aa[b.Aa.length-1];this.size=this.size=new pf(fC(d),gC(d));this.maxZoomLevel=this.a=b.a-1;this.minZoomLevel=this.b=c};wa("MicroscopeImageMetadata",KP);var LP=function(b,c,d){Bj.call(this);this.O="WebKitCSSMatrix"in window&&c.Df;this.H=d||null;this.Fo=new uO(c.bf);this.J(this.Fo);this.l=new ZN(this.Fo,100);this.J(this.l);this.b=this.B(b);this.J(this.b);this.Am=this.Mp=this.pk=null;this.wp=!1;this.j=new U(this);this.J(this.j);this.g=new XN(this.b.b);b=this.b;c=this.g;null===b.g||mk(b.e);b.e=T(c,"resize",t(b.l,b));b.g=c;this.J(this.g);this.k=new JO(this.g);this.J(this.k);this.Id=new pP(t(this.B,this),this.l);this.J(this.Id);this.o=this.p=this.e=this.Zc=
null;this.Ik=!1;this.init()};v(LP,Bj);
LP.prototype.init=function(){this.Id.render(this.b.b);this.k.render(this.b.b);this.p=new fP(this.l);this.e=new $O(this.g,this.b,this.p,t(this.K,this));this.J(this.e);this.h=UN(QN(TN(PN(SN(RN(new ON(this.H||this.k)))))).add(this.Id));this.J(this.h);this.Zc=new uP(this.h,this.Id,this.g,this.e);this.J(this.Zc);this.j.C(this.Zc,"viewport_update",function(b){var c=this.Fo,d=!b.Zx;d!=c.b&&(d?(c.b=d,c.a.isEmpty()||vO(c)):c.b=d);c=this.Id;if(null==c.ca)throw Error("qb");var e=c.R.width*c.l.width,f=c.R.height*
c.l.height,g=e-2,h=f-2,d=Math.min((b.right-b.left)*e,(b.bottom-b.top)*f);c.g=0<d?Math.max(1,20/d):1;var d=je(b.left*e,0,g),l=je(b.top*f,0,h),m=je(b.right*e,0,g),r=je(b.bottom*f,0,h);b=m-d;var u=r-l,w=(c.g-1)*b,C=(c.g-1)*u,e=d/(d+e-m),J=l/(l+f-r),V,f=d-w*e-2;V=l-C*J-2;r=r+C*(1-J)-1;m=m+w*(1-e)-1;f=Math.floor(je(f,0,g));V=Math.floor(je(V,0,h));m=Math.ceil(je(m,0,g));r=Math.ceil(je(r,0,h));g=m-f;h=r-V;w=iC(c.ca,new pf(c.g*c.l.width*c.a,c.g*c.l.height*c.a));c.Ca=new ZB(-(d+b*e)*(c.g-1),-(l+u*J)*(c.g-
1));d=new pf(c.a*c.l.width*c.g,c.a*c.l.height*c.g);cP(c.ad,Math.round(c.Ca.x),Math.round(c.Ca.y),d,w);f+=c.sa.x;m+=c.sa.x;V+=c.sa.y;sP(c.Xd,f,V,g,h);sP(c.K[0],0,0,c.R.width,V);sP(c.K[1],0,V,f,h+2);sP(c.K[2],m+2,V,c.R.width-(f+g)-2,h+2);sP(c.K[3],0,V+h+2,c.R.width,c.R.height-(V+h)-2);this.Mp&&this.Mp(CP(this.Zc))});this.j.C(this.e,"tile_loaded",function(b){null!=this.Am&&0==b.gm&&this.Am&&!this.wp&&(setTimeout(this.Am,0),this.wp=!0)});this.j.C(this.h,"drag_start",t(this.k.b,this.k,!0));this.j.C(this.h,
"drag_end",t(this.k.b,this.k,!1));this.j.C(this.h,["drag_start","drag_hover","zoom"],this.I);XO(this.b)};LP.prototype.qk=function(b,c,d,e){var f=function(){e&&!this.Ik&&e.Ph(t(function(b){this.Ik=!0;MP(this,b,e,c,d)},this))};this.a&&this.a.la();this.a=new AO(b,function(e){MP(this,e,b,this.Ik?void 0:c,d||this.Ik);this.pk&&this.pk(!0)},function(){f.call(this);this.pk&&this.pk(!1)},f,this);e||(this.a.h=1);this.Ik=!1;this.a.load()};
var NP=function(b,c){qP(b.Id,t(function(){c(CP(this.Zc))},b))},MP=function(b,c,d,e,f){if(null==b.e)throw Error("tb");if(null==b.Zc)throw Error("ub");f=!!f&&null!=b.o;b.o=c;aO(b.l);b.wp=!1;b.g.trigger();b.e.load(d,c,b.b,f);var g=b.p;g.a=c;g.nb=d;g.g=!0;g=b.Id;g.ca=c;g.H=c.a-1;g.A.start();rP(g);g.ad.load(d,c,g.ib,f);g=g.ze;g.a=c;g.nb=d;g.g=!0;g=b.Zc;g.l.b=c;if(f){var h=jC(g.e,g.a),l=g.a;g.a=iC(c,h);h=g.a-l;g.A+=h;g.p+=h}else g.b.x=.5,g.b.y=.5,g.a=0,g.g=null,g.O.start();g.e=c;g.nb=d;c=g.Id;d=GO(g.l);
c.p=d;c.H>c.p||c.setVisible(!1);f?g.g?HP(g,g.a):vP(g,g.a,0):(g.a=0,vP(g,GO(g.l),0));f||(null!=e?BP(b.Zc,e,0):wP(b.Zc,!1,void 0))};LP.prototype.B=function(b){return new WO(b,this.l,this.O)};LP.prototype.K=function(){this.A&&this.A()};LP.prototype.I=function(){oP(this.Id)};LP.prototype.D=function(){this.a&&(this.a.la(),this.a=null);LP.r.D.call(this)};
var OP=function(b,c,d){var e={bf:!1,Df:!1};ha(c)?e=c:p(c)&&(e.bf=c);this.a=new LP(b,e,d)};wa("Microscope",OP);OP.prototype.xe=function(b,c,d){this.a.qk(new rC(b),c,d)};wa("Microscope.prototype.LoadImage",OP.prototype.xe);var PP=function(b,c,d,e){b.a.qk(c,d,e,void 0)};OP.prototype.B=function(b,c,d){this.a.qk(new tO(b,c,d))};wa("Microscope.prototype.LoadSingleImage",OP.prototype.B);OP.prototype.e=function(b,c,d){BP(this.a.Zc,b,null!=c?c:500,d)};wa("Microscope.prototype.AnimateTo",OP.prototype.e);
OP.prototype.I=function(){return CP(this.a.Zc)};wa("Microscope.prototype.GetState",OP.prototype.I);OP.prototype.p=function(){var b=this.a;if(null==b.o)throw Error("sb");return new KP(b.o,GO(b.Zc.l))};wa("Microscope.prototype.GetImageMetadata",OP.prototype.p);OP.prototype.ka=function(b){NP(this.a,b)};wa("Microscope.prototype.SetAddToCollectionCallback",OP.prototype.ka);OP.prototype.o=function(b){this.a.pk=b};wa("Microscope.prototype.SetLoadCallback",OP.prototype.o);
OP.prototype.H=function(b){this.a.Mp=b};wa("Microscope.prototype.SetStateChangeCallback",OP.prototype.H);OP.prototype.ca=function(b){this.a.Am=b};wa("Microscope.prototype.SetRenderableCallback",OP.prototype.ca);OP.prototype.O=function(b){this.a.A=b};wa("Microscope.prototype.SetRenderedCallback",OP.prototype.O);OP.prototype.tb=function(b){this.a.Zc.l.e=b};wa("Microscope.prototype.SetMinimumSizeCallback",OP.prototype.tb);
OP.prototype.k=function(b){var c=this.a.Id;c.o.Mc().style.display=1==b?"none":"";c.o.Mc().style.borderWidth=2==b?"1px":"";c.Ja.style.display=2==b?"none":"";c.b.style.display=3==b?"none":""};wa("Microscope.prototype.SetZoomWidgetVisibility",OP.prototype.k);
OP.prototype.K=function(b,c){var d=this.a.Id;d.a=Math.max(100,c);d.R=new pf(d.a,d.a);var e={bottom:"",left:"",right:"",top:""};b.left||b.right||(b.left=d.Db.x);b.left?e.left=b.left+"px":b.right&&(e.right=b.right+"px");b.top||b.bottom||(b.top=d.Db.y);b.top?e.top=b.top+"px":b.bottom&&(e.bottom=b.bottom+d.o.getHeight(!0)+"px");mq(d.b,e);null!=d.ca&&rP(d)};wa("Microscope.prototype.SetZoomWidgetLayout",OP.prototype.K);OP.prototype.b=function(b,c){wP(this.a.Zc,b||null==b,c)};
wa("Microscope.prototype.Maximize",OP.prototype.b);OP.prototype.l=function(){FP(this.a.Zc,new ZB(.5,.5))};wa("Microscope.prototype.Center",OP.prototype.l);OP.prototype.h=function(){this.a.g.trigger()};wa("Microscope.prototype.ResizeViewport",OP.prototype.h);OP.prototype.Ic=function(b){this.a.Zc.Q=b};wa("Microscope.prototype.SetResizeMode",OP.prototype.Ic);OP.prototype.j=function(b,c){this.a.h.Ek(b,c)};wa("Microscope.prototype.SetGlobalKeyEventsActive",OP.prototype.j);OP.prototype.A=function(b){this.a.h.Ep(b)};
wa("Microscope.prototype.SetScrollEventsActive",OP.prototype.A);OP.prototype.Q=function(b){aP(this.a.e,b)};wa("Microscope.prototype.EnableFadeInTiles",OP.prototype.Q);OP.prototype.R=function(){this.a.I()};wa("Microscope.prototype.Activate",OP.prototype.R);OP.prototype.g=function(){S(this.a)};wa("Microscope.prototype.Dispose",OP.prototype.g);
var QP=function(b,c,d,e,f){U.call(this);this.id=b;this.g=d;this.B=e;this.o=f?!!f.pc:!1;this.p=f?!!f.Mb:!1;this.j=f?!!f.Ma:!1;this.l=!zi();this.b=c.addClass("cell-frame");this.b.attr("aria-hidden","true");this.o&&this.b.addClass("cover-cell");this.p&&this.b.addClass("credits-cell");this.e=this.Bb=$("<div>").addClass("cell").addClass("blank").appendTo(c);this.a=null;this.h=!0};v(QP,wk);k=QP.prototype;k.rf=null;k.Tb=null;k.Vi=!1;k.$i=q;k.tt=null;k.li=null;k.ha=null;k.Wj=null;k.Ug=null;k.Om=null;
k.nd=null;k.xb=null;k.yd=null;k.caption=null;k.Gi=null;k.Xe=null;k.Sg=null;k.fg=null;var RP=function(b){b.Tb&&b.Tb.g();b.Tb=null;b.Vi=!1;b.$i=q};QP.prototype.D=function(){SP(this);this.rf&&(this.rf.remove(),this.rf=null);this.Bb&&this.Bb.remove();this.b&&this.b.remove();this.e&&this.e.remove();RP(this);S(this.Pa);this.g=this.B=this.Pa=null;QP.r.D.call(this)};var TP=function(b){b.b.trigger("collections-exhibit-cell-modified",[b])};QP.prototype.ri=function(){};QP.prototype.wa=function(){return this.li};
QP.prototype.pa=function(){return this.a};var VP=function(b,c){var d=b.Xe&&UP(b.Xe),e=b.Xe;d&&(b.rf.removeClass(d),b.Xe=null);c&&(d=UP(c))&&(b.rf.addClass(d),b.Xe=c);e!=b.Xe&&TP(b)};QP.prototype.A=function(){return this.Xe};
var UP=function(b){switch(b){case 1:return"LARGE_FONT";case 0:return""}return null},WP=function(b,c){b.fg=c;b.a&&(b.fg?b.a.data("gci.exhibit.streetviewInfo",b.fg):b.a.removeData("gci.exhibit.streetviewInfo"));TP(b)},YP=function(b,c,d){if(ka(c)||ka(d)){var e=new xD;ka(c)&&D(e,1,c);ka(d)&&D(e,2,d);b.Sg=e}else b.Sg=null;b.a&&(b.Sg?b.a.data("gci.exhibit.streamInfo",XP(b)):b.a.removeData("gci.exhibit.streamInfo"));TP(b)};QP.prototype.If=function(){return this.Sg};
var XP=function(b){b=b.If();var c=void 0;b&&(c=c||{},c.start=Math.floor(b.He()||0),c.end=c.start+Math.floor(B(b,2)||0));return c};QP.prototype.resize=function(){this.Pa&&this.Pa.resize();this.Ug&&cG(this.Ug);this.Tb&&(this.xb?window.setTimeout(t(function(b){this.Tb.h();ZP(this,b);$P(this)},this,this.xb),0):this.Vi?window.setTimeout(t(function(){this.Tb.h();this.Tb.b(!1,"fill");$P(this)},this),0):$P(this))};
var SP=function(b){b.a=null;b.ha=null;S(b.Ug);b.Ug=null;b.Om=null;b.fg=null;b.Sg=null;b.Wj=null;b.xb=null;b.nd=null;b.Pa=null;b.h=!0;b.caption=null;b.yd=null;aQ(b)},aQ=function(b){b.b.removeClass("unresolved");b.e.remove();b.Bb.remove();b.Bb=$("<div>").addClass("cell").appendTo(b.b);b.e=b.Bb;b.Gi=null};
QP.prototype.ci=function(){this.Pa&&this.Pa.remove();this.Om&&this.Om.empty();S(this.Ug);this.Ug=null;if(this.b.parents("body").length){var b=this.fg?yB(this.fg):this.a.k;this.Ug=new dG(this.Bb,b,{yi:"viewer",oj:!1})}};var bQ=function(b){return b.a&&yA(b.a)?b.a.Lc():b.yd};QP.prototype.playVideo=function(){try{this.ha?this.ha.playVideo():cQ(this,function(b){b.playVideo()})}catch(b){}return!1};QP.prototype.pauseVideo=function(){try{this.ha.pauseVideo()}catch(b){}return!1};QP.prototype.stopVideo=function(){try{this.ha.stopVideo()}catch(b){}return!1};
var cQ=function(b,c){var d=c||q,e=function(b,c){c=b?b.target:c;d(c)};if(b.ha)e(null,b.ha);else{dQ(b);try{b.Bb.addClass("video-playing");var f=$("<div>").appendTo(b.Wj),g=XP(b),h={rel:0};g&&(h.start=Math.floor(g.start/1E3),h.end=Math.floor(g.end/1E3),h.showinfo=0);b.ha=new YT.Player(f[0],{width:"100%",height:"100%",videoId:bQ(b),playerVars:h,events:{onReady:e}})}catch(l){}}},dQ=function(b){b.Bb.removeClass("video-playing");b.Wj&&b.Wj.empty();b.ha=null},eQ=function(b,c){var d=null==b.yd&&null!=c||b.yd&&
!b.yd==c;b.yd=c;d&&(TP(b),$P(b))},gQ=function(b,c){var d=null==b.caption&&null!=c||b.caption&&!Sl(b.caption,c);b.caption=c;b.Gi&&b.Gi.remove();b.Gi=null;if(b.caption){var e=b.g.g;if(fQ(b.g)){var f=b.g.g;b.caption&&!Ea(x(b.caption.T(f)))&&(e=f)}e=b.caption?b.caption.T(e):"";Ea(x(e))||(b.Gi=$("<div>").addClass("caption").appendTo(b.Bb),Ea(x(e))||b.Gi.text(e))}b.a&&(b.caption?b.a.data("gci.exhibit.caption",b.caption.T()):b.a.removeData("gci.exhibit.caption"));$P(b);d&&TP(b)};QP.prototype.Kc=function(){return this.caption};
var ZP=function(b,c){var d=null!=b.xb!=(null!=c)||!yC(b.xb,c);b.xb=c;var e=t(function(){c?(c.size||(this.xb=c=eD(c,this.Tb.p())),this.Tb.e(c,0)):this.resize()},b);b.Vi?e():b.$i=e;b.a&&(b.xb?b.a.data("gci.exhibit.msState",b.xb):b.a.removeData("gci.exhibit.msState"));d&&(TP(b),$P(b))};
QP.prototype.ti=function(b,c){if(this.l&&this.a&&CC(this.a)){this.nd=b;var d=t(function(){var c;c=this.e.width();var d=this.e.height(),e=this.Tb.p(),l=this.a.ab();l||(l=e.size);var m=Math.max(c/l.width,d/l.height)*b.Mg,r=Math.floor(100*m)/100,u=Math.ceil(100*m)/100,m=r*b.top,w=r*b.left,r=u*l.width,u=u*l.height,l=e.a-Math.log(1/(r/l.width))/Math.LN2,l=je(l,0,e.a),e=je((c/2-w)/r,0,1),m=je((d/2-m)/u,0,1);c=new xC(e,m,l,new pf(c/r,d/u));ZP(this,c)},this);this.Vi?d():this.$i=d}else{var d=null==this.nd||
this.nd.top!=b.top||this.nd.left!=b.left||this.nd.Mg!=b.Mg,e=this.nd&&this.nd.Bt?this.nd.Bt:null;this.nd=b;e&&(this.nd.Bt=e);this.Pa&&this.Pa.ti(b,c);d&&TP(this)}};QP.prototype.ic=function(b){return this.Pa.ic(b)};var hQ=function(b,c){aQ(b);b.Bb.addClass("text");b.rf=$("<div>").addClass("gci-text-content").appendTo(b.Bb);var d=c||b.a;if(d){var e=b.g.g;if(fQ(b.g)){var f=b.g.g;Ea(x(d.ma().T(f,!0)))||(e=f)}d=d.ma().T(e);si(ui(d),b.rf)}b.Xe&&VP(b,b.Xe)};
QP.prototype.zc=function(b,c){this.b.attr("role","link");this.b.addClass("cell-frame-clickable");var d=!this.a;SP(this);this.I(b);var e={};if(CC(b)||DC(b))e=b.ab();this.li=null;this.a=b;this.b.attr("title",b.getTitle()).attr("aria-hidden","false");b.qb()?(this.Bb.addClass("streetview"),zi()?(this.Pa=new Ly(this.e,xA(b),{Qe:e,Cc:!0,fadeIn:!0,Ma:this.j}),this.Om=$("<div>").addClass("shield").bind("click.collections-exhibit-cell",t(function(){zi()&&this.ci()},this)).appendTo(this.Bb)):this.ci()):CC(b)?
(this.Bb.addClass("image-like"),b.Re()?this.Bb.addClass("album"):this.Bb.addClass("image"),this.l?(this.Bb.addClass("gci-microscope-image"),RP(this),this.$i=t(function(){this.Tb.b(!1,"fill")},this),this.j||iQ(this),$("<div>").addClass("gci-exhibit-cell-microscope-shield").appendTo(this.Bb)):this.Pa=new Ly(this.e,xA(b),{Qe:e,ti:this.nd,fadeIn:!0,Ma:this.j})):yA(b)?jQ(this,xA(b),e):wA(b)&&hQ(this,b);d&&wA(b)&&(!b.ma()||Rl(b.ma()))||TP(this);this.h=!0;$P(this);c&&this.resize()};
var jQ=function(b,c,d){b.Bb.addClass("video");b.Pa=new Ly(b.e,c,{Qe:d,Cc:!0,fadeIn:!0,Ma:b.j});b.Wj=$("<div>").addClass("shield").bind("click.collections-exhibit-cell",t(b.playVideo,b)).appendTo(b.Bb);zi()&&cQ(b)};QP.prototype.I=q;
var iQ=function(b){var c=EC(b.a)&&b.a.Se();b.e.attr("aria-hidden","true");b.Tb=new OP(b.e.get(0),{bf:c,Df:!1});b.Tb.Ic("scale");b.Tb.j(!1);b.Tb.A(!1);b.Tb.k(3);c={top:5};c[kQ(b.g)?"left":"right"]=5;b.Tb.K(c,100);b.Tb.o(t(function(){this.Vi=!0;this.$i();this.$i=q;$P(this)},b));if(EC(b.a))PP(b.Tb,JC(b.a,b.xb&&!b.xb.size));else{var c=b.e.width(),d=b.e.height(),e=xA(b.a,{width:c,height:d});b.Tb.B(e,c,d);b.Vi=!0;$P(b)}};k=QP.prototype;k.gb=function(){return this.B};
k.tc=function(){if(!this.h)return this.tt;var b=new QD;if(this.caption){var c=this.caption.Ea();G(b,4,c)}this.yd&&D(b,6,this.yd);var d=this.a;if(d)if(wA(d))D(b,1,1),c=d.ma().Ea(),G(b,2,c),null!=this.Xe&&(c=new zD,D(c,1,this.Xe),G(b,11,c));else{D(b,1,2);c=new tD;d=d.getId();D(c,1,d);if(null!=this.xb||null!=this.nd)if(this.l&&this.xb)d=new jz,D(d,1,this.xb.x),D(d,2,this.xb.y),D(d,3,this.xb.z),this.xb.size&&(D(d,4,this.xb.size.width),D(d,5,this.xb.size.height)),G(c,2,d);else{var d=this.nd,e=new wD;D(e,
1,d.top);D(e,2,d.left);D(e,3,d.Mg);G(c,5,e)}this.Sg&&G(c,4,this.Sg);this.fg&&G(c,3,this.fg);b.zc(c)}else D(b,1,3);return b};k.pc=function(){return this.o};k.Mb=function(){return this.p};k.Zl=function(){return this.o||this.p};
k.load=function(b){var c=this.g.Td()&&this.a&&"TRUE"==ax(this.a.V,Jl);this.h&&!c?(this.j||window.setTimeout(t(function(){this.Pa&&this.Pa.load();this.l&&this.a&&CC(this.a)&&!this.Tb&&iQ(this)},this),0),this.a&&this.a.qb()&&(zi()||this.Ug||this.ci())):this.yd?jQ(this,Gi(this.yd),null):b?this.rf=b(this.li).appendTo(this.Bb):(SP(this),this.rf=$("<div>").addClass("gci-unresolved-asset").append($("<div>").addClass("gci-consumer-unresolved-container").append($("<div>").addClass("SPRITE_missingAsset40x40blackbg")).append($("<span>").addClass("gci-consumer-unresolved-asset-message").text("This material has been removed by the owner"))).appendTo(this.Bb))};
k.unload=function(){this.Pa&&this.Pa.unload()};var $P=function(b){zi()||(b.b.off(".gci-exhibit-cell-mouse-event"),b.b.on("mouseenter.gci-exhibit-cell-mouse-event",function(){b.Tb&&b.Tb.k(1)}),b.b.on("mouseleave.gci-exhibit-cell-mouse-event",function(){b.Tb&&b.Tb.k(3)}))};
var lQ=function(){return M('<div class="gci-layers-tab"></div>')},nQ=function(){var b;b=""+('<h2 class="gci-layers-tab-dragdrop-title"><span class="gci-layers-directions-msg">View as layers.</span><span class="gci-layers-select-msg">Select two items to view as layers.</span></h2><div class="gci-layers-tab-scroller"><div class="content"></div></div><div class="gci-layers-tab-items"><div class="gci-layers-opacity-slider-wrapper"></div>'+mQ()+'<div class="gci-layers-tab-flip"><span></span></div>'+mQ()+
'<div class="gci-layers-opacity-label">Opacity</div><div class="gci-layers-adjust-label">Adjust foreground only? <input type="checkbox"></div></div><div class="gci-layers-tab-action"><div class="gci-layers-tab-reset">or <strong>start again.</strong></div></div>');return M(b)},mQ=function(){return M('<div class="gci-layers-tab-item"><div class="gci-layers-tab-item-content"><h3><span class="gci-layers-tab-select-msg">Add a layer.</span></h3><div class="gci-layers-tab-item-holder"></div></div></div>')}, oQ=function(){return M('<div class="gci-layers-opacity-slider"><div class="gci-slider-icon">100%</div><div class="goog-slider-vertical gci-slider"><div class="goog-slider-thumb"></div></div><div class="gci-slider-icon">0%</div></div>')};
var pQ=function(){gq.call(this);this.e=[]};v(pQ,gq);pQ.prototype.add=function(b){pb(this.e,b)||(this.e.push(b),T(b,"finish",this.j,!1,this))};pQ.prototype.remove=function(b){sb(this.e,b)&&lk(b,"finish",this.j,!1,this)};pQ.prototype.D=function(){y(this.e,function(b){b.la()});this.e.length=0;pQ.r.D.call(this)};var qQ=function(){pQ.call(this);this.g=0};v(qQ,pQ);
qQ.prototype.play=function(b){if(0==this.e.length)return!1;if(b||0==this.a)this.g=0,this.p();else if(1==this.a)return!1;this.b("play");-1==this.a&&this.b("resume");var c=-1==this.a&&!b;this.startTime=ta();this.endTime=null;this.a=1;y(this.e,function(d){c&&-1!=d.a||d.play(b)});return!0};qQ.prototype.pause=function(){1==this.a&&(y(this.e,function(b){1==b.a&&b.pause()}),this.a=-1,this.b("pause"))}; qQ.prototype.stop=function(b){y(this.e,function(c){0==c.a||c.stop(b)});this.a=0;this.endTime=ta();this.b("stop");this.h()};qQ.prototype.j=function(){this.g++;this.g==this.e.length&&(this.endTime=ta(),this.a=0,this.b("finish"),this.h())};
var rQ=function(){W.call(this)};v(rQ,W);k=rQ.prototype;k.Eh=0;k.Te=0;k.Ud=100;k.Od=0;k.We=1;k.Gd=!1;k.Qh=!1;var tQ=function(b,c){c=sQ(b,c);b.Eh!=c&&(b.Eh=c+b.Od>b.Ud?b.Ud-b.Od:c<b.Te?b.Te:c,b.Gd||b.Qh||b.dispatchEvent("change"))};rQ.prototype.getValue=function(){return sQ(this,this.Eh)};
var uQ=function(b,c){c=sQ(b,c);b.Od!=c&&(b.Od=0>c?0:b.Eh+c>b.Ud?b.Ud-b.Eh:c,b.Gd||b.Qh||b.dispatchEvent("change"))},vQ=function(b){var c=b.Od;return null==b.We?c:Math.round(c/b.We)*b.We},xQ=function(b,c){if(b.Te!=c){var d=b.Gd;b.Gd=!0;b.Te=c;c+b.Od>b.Ud&&(b.Od=b.Ud-b.Te);c>b.Eh&&tQ(b,c);c>b.Ud&&(b.Od=0,wQ(b,c),tQ(b,c));b.Gd=d;b.Gd||b.Qh||b.dispatchEvent("change")}},wQ=function(b,c){c=sQ(b,c);if(b.Ud!=c){var d=b.Gd;b.Gd=!0;b.Ud=c;c<b.Eh+b.Od&&tQ(b,c-b.Od);c<b.Te&&(b.Od=0,xQ(b,c),tQ(b,b.Ud));c<b.Te+ b.Od&&(b.Od=b.Ud-b.Te);b.Gd=d;b.Gd||b.Qh||b.dispatchEvent("change")}},sQ=function(b,c){return null==b.We?c:b.Te+Math.round((c-b.Te)/b.We)*b.We};
var yQ=function(b,c){jr.call(this,b);this.b=new rQ;this.Ja=c||fd;T(this.b,"change",this.sa,!1,this)};v(yQ,jr);k=yQ.prototype;k.Ed="horizontal";k.Ll=!1;k.Kr=0;k.yo=!0;k.wb=function(){yQ.r.wb.call(this);var b=this.fa().Ka("DIV",this.na(this.Ed));this.Ha(b)};k.Ha=function(b){yQ.r.Ha.call(this,b);ch(b,this.na(this.Ed));b=this.w();var c=vf(document,null,"goog-slider-thumb",b)[0];c||(c=this.fa().Ka("DIV","goog-slider-thumb"),Wp(c,"button"),b.appendChild(c));this.a=this.l=c;b=this.w();Wp(b,"slider");zQ(this)};
k.Ia=function(){yQ.r.Ia.call(this);this.o=new Xq(this.a);this.A=new Xq(this.l);this.o.Ni=!1;this.A.Ni=!1;this.o.h=this.A.h=q;this.Q=new bJ(this.w());AQ(this,!0);this.w().tabIndex=0;BQ(this)};
var AQ=function(b,c){c?(nr(b).C(b.o,"beforedrag",b.Ml).C(b.A,"beforedrag",b.Ml).C(b.o,["start","end"],b.Rl).C(b.A,["start","end"],b.Rl).C(b.Q,"key",b.Jr).C(b.w(),"click",b.Ol).C(b.w(),"mousedown",b.Ol),CQ(b,!0)):(nr(b).k(b.o,"beforedrag",b.Ml).k(b.A,"beforedrag",b.Ml).k(b.o,["start","end"],b.Rl).k(b.A,["start","end"],b.Rl).k(b.Q,"key",b.Jr).k(b.w(),"click",b.Ol).k(b.w(),"mousedown",b.Ol),CQ(b,!1))};k=yQ.prototype;k.Rb=function(){yQ.r.Rb.call(this);Ej(this.o,this.A,this.Q,this.K)};
k.Ml=function(b){var c=b.a==this.o?this.a:this.l,d;"vertical"==this.Ed?(d=this.w().clientHeight-c.offsetHeight,d=(d-b.top)/d*(DQ(this)-EQ(this))+EQ(this)):(d=this.w().clientWidth-c.offsetWidth,d=b.left/d*(DQ(this)-EQ(this))+EQ(this));d=b.a==this.o?Math.min(Math.max(d,EQ(this)),this.getValue()+vQ(this.b)):Math.min(Math.max(d,this.getValue()),DQ(this));FQ(this,c,d)};
k.Rl=function(b){var c="start"==b.type;gh(this.w(),"goog-slider-dragging",c);gh(b.target.handle,"goog-slider-thumb-dragging",c);b=b.a==this.o;c?(this.dispatchEvent("m"),this.dispatchEvent(b?"i":"k")):(this.dispatchEvent("n"),this.dispatchEvent(b?"j":"l"))};
k.Jr=function(b){var c=!0;switch(b.keyCode){case 36:GQ(this,EQ(this));break;case 35:GQ(this,DQ(this));break;case 33:HQ(this,10);break;case 34:HQ(this,-10);break;case 37:var d=-1;HQ(this,b.shiftKey?10*d:1*d);break;case 40:HQ(this,b.shiftKey?-10:-1);break;case 39:d=1;HQ(this,b.shiftKey?10*d:1*d);break;case 38:HQ(this,b.shiftKey?10:1);break;default:c=!1}c&&b.preventDefault()};
k.Ol=function(b){this.w().focus&&this.w().focus();var c=b.target;if(!(Pf(this.a,c)||Pf(this.l,c)||(c="click"==b.type,c&&ta()<this.Kr+1E3))){c||(this.Kr=ta());this.ga(b);var c=EQ(this),d=DQ(this);if("vertical"==this.Ed){var e=this.a.offsetHeight,f=this.w().clientHeight-e;b=IQ(this,b)-e/2;b=(d-c)*(f-b)/f+c}else e=this.a.offsetWidth,f=this.w().clientWidth-e,b=IQ(this,b)-e/2,b=(d-c)*b/f+c;this.p=JQ(this,b);this.Xa="vertical"==this.Ed?this.ca<this.p.offsetTop:this.ca>this.p.offsetLeft+this.p.offsetWidth;
b=sf(this.w());nr(this).C(b,"mouseup",this.Np,!0).C(this.w(),"mousemove",this.ga);this.H||(this.H=new Im(200),nr(this).C(this.H,"tick",this.Xr));this.Xr();this.H.start()}};k.Ur=function(b){HQ(this,1*(0<b.detail?-1:1));b.preventDefault()};
k.Xr=function(){var b;if("vertical"==this.Ed){var c=this.ca,d=this.p.offsetTop;this.Xa?c<d&&(b=KQ(this,this.p)+10):c>d+this.p.offsetHeight&&(b=KQ(this,this.p)-10)}else c=this.ca,d=this.p.offsetLeft,this.Xa?c>d+this.p.offsetWidth&&(b=KQ(this,this.p)+10):c<d&&(b=KQ(this,this.p)-10);p(b)&&FQ(this,this.p,b)};k.Np=function(){this.H&&this.H.stop();var b=sf(this.w());nr(this).k(b,"mouseup",this.Np,!0).k(this.w(),"mousemove",this.ga)};var IQ=function(b,c){var d=Bq(c,b.w());return"vertical"==b.Ed?d.y:d.x};
yQ.prototype.ga=function(b){this.ca=IQ(this,b)};
var KQ=function(b,c){if(c==b.a)return b.b.getValue();if(c==b.l)return b.b.getValue()+vQ(b.b);throw Error("vb");},HQ=function(b,c){Math.abs(c)<b.b.We&&(c=le(c)*b.b.We);var d=KQ(b,b.a)+c,e=KQ(b,b.l)+c,d=je(d,EQ(b),DQ(b)-0),e=je(e,EQ(b)+0,DQ(b));LQ(b,d,e-d)},FQ=function(b,c,d){var e=sQ(b.b,d);d=c==b.a?e:b.b.getValue();c=c==b.l?e:b.b.getValue()+vQ(b.b);d>=EQ(b)&&c>=d+0&&DQ(b)>=c&&LQ(b,d,c-d)},LQ=function(b,c,d){EQ(b)<=c&&c<=DQ(b)-d&&0<=d&&d<=DQ(b)-c&&(c!=b.getValue()||d!=vQ(b.b))&&(b.b.Qh=!0,uQ(b.b,0),
tQ(b.b,c),uQ(b.b,d),b.b.Qh=!1,b.sa())},EQ=function(b){b=b.b;return sQ(b,b.Te)},DQ=function(b){b=b.b;return sQ(b,b.Ud)},JQ=function(b,c){return c<=b.b.getValue()+vQ(b.b)/2?b.a:b.l};yQ.prototype.sa=function(){BQ(this);zQ(this);this.dispatchEvent("change")};
var BQ=function(b){if(b.a&&!b.Ll){var c=MQ(b,KQ(b,b.a)),d=MQ(b,KQ(b,b.l));"vertical"==b.Ed?(b.a.style.top=c.y+"px",b.l.style.top=d.y+"px",b.g&&(c=NQ(d.y,c.y,b.a.offsetHeight),b.g.style.top=c.offset+"px",b.g.style.height=c.size+"px")):(b.a.style.left=c.x+"px",b.l.style.left=d.x+"px",b.g&&(c=NQ(c.x,d.x,b.a.offsetWidth),b.g.style.left=c.offset+"px",b.g.style.width=c.size+"px"))}},NQ=function(b,c,d){var e=Math.ceil(d/2);return{offset:b+e,size:Math.max(c-b+d-2*e,0)}},MQ=function(b,c){var d=new mf;if(b.a){var e=
EQ(b),f=DQ(b),e=c==e&&e==f?0:(c-e)/(f-e);"vertical"==b.Ed?(f=b.a.offsetHeight,f=b.w().clientHeight-f,e=Math.round(e*f),d.x=b.a.offsetLeft,d.y=f-e):(f=b.w().clientWidth-b.a.offsetWidth,e=Math.round(e*f),d.x=e,d.y=b.a.offsetTop)}return d},GQ=function(b,c){c=je(c,EQ(b),DQ(b));b.Ll&&b.R.stop(!0);var d=new qQ,e=JQ(b,c),f=b.getValue(),g=vQ(b.b),h=KQ(b,e),l=MQ(b,h),m=b.b.We;Math.abs(c-h)<m&&(c=je(h+(c>h?m:-m),EQ(b),DQ(b)));FQ(b,e,c);h=MQ(b,KQ(b,e));l=new sJ(e,[l.x,l.y],"vertical"==b.Ed?[e.offsetLeft,h.y]:
[h.x,e.offsetTop],100);l.j=!1;d.add(l);b.g&&(l=MQ(b,f),m=MQ(b,f+g),f=l,g=m,e==b.a?f=h:g=h,"vertical"==b.Ed?(e=NQ(m.y,l.y,b.a.offsetHeight),f=NQ(g.y,f.y,b.a.offsetHeight),h=new sJ(b.g,[b.g.offsetLeft,e.offset],[b.g.offsetLeft,f.offset],100),e=new uJ(b.g,e.size,f.size,100),h.j=!1,e.j=!1,d.add(h),d.add(e)):(e=NQ(l.x,m.x,b.a.offsetWidth),f=NQ(f.x,g.x,b.a.offsetWidth),h=new sJ(b.g,[e.offset,b.g.offsetTop],[f.offset,b.g.offsetTop],100),e=new tJ(b.g,e.size,f.size,100),h.j=!1,e.j=!1,d.add(h),d.add(e)));b.R=
d;nr(b).C(d,"end",b.Ca);b.Ll=!0;d.play(!1)};yQ.prototype.Ca=function(){this.Ll=!1};yQ.prototype.D=function(){yQ.r.D.call(this);this.H&&this.H.la();delete this.H;this.R&&this.R.la();delete this.R;delete this.a;delete this.l;this.g&&delete this.g;this.b.la();delete this.b;this.Q&&(this.Q.la(),delete this.Q);this.K&&(this.K.la(),delete this.K);this.o&&(this.o.la(),delete this.o);this.A&&(this.A.la(),delete this.A)};yQ.prototype.getValue=function(){return this.b.getValue()};
yQ.prototype.setVisible=function(b){Jq(this.w(),b);b&&BQ(this)};var zQ=function(b){var c=b.w();c&&(Xp(c,"valuemin",EQ(b)),Xp(c,"valuemax",DQ(b)),Xp(c,"valuenow",b.getValue()),Xp(c,"valuetext",b.Ja(b.getValue())||""))},CQ=function(b,c){c?(b.K||(b.K=new JN(b.w())),nr(b).C(b.K,"mousewheel",b.Ur)):nr(b).k(b.K,"mousewheel",b.Ur)};yQ.prototype.Ga=function(b){this.yo!=b&&this.dispatchEvent(b?"enable":"disable")&&(this.yo=b,AQ(this,b),b||this.Np(),gh(this.w(),"goog-slider-disabled",!b))}; yQ.prototype.isEnabled=function(){return this.yo};
var OQ=function(b,c){yQ.call(this,b,c);uQ(this.b,0)};v(OQ,yQ);OQ.prototype.na=function(b){return"vertical"==b?"goog-slider-vertical":"goog-slider-horizontal"};var PQ=function(b){zu.call(this,K.cn);this.title="Layers";this.a=$(L(lQ));this.Pe="SPRITE_icon_action_tab_compare";this.l=!1;this.h=b;this.b=[null,null];this.e=this.g=this.j=null};v(PQ,zu);PQ.prototype.D=function(){this.a&&this.a.remove();this.a=null;this.b=[null,null];PQ.r.D.call(this)};PQ.prototype.cp=function(){QQ(this)};PQ.prototype.bind=function(b,c){this.a.bind(b,t(c,this));return this};PQ.prototype.unbind=function(b,c){this.a.unbind(b,c)};
var QQ=function(b){if(!b.l){og(b.a.get(0),nQ);b.j=b.a.find(".gci-layers-tab-item");var c=b.a.find(".gci-layers-opacity-slider-wrapper").on("click.gci-layers-tab",function(){return!1});b.e=RQ(c);b.J(b.e);T(b.e,"change",function(){this.a.trigger("gci-layers-tab-opacity-changed",[0,b.e.getValue()]);return!1},!1,b);b.a.on("click.gci-layers-tab",".gci-layers-tab-flip",t(function(){var b=this.b[0],c=this.b[1];SQ(this,0);SQ(this,1);c&&TQ(this,c,0);b&&TQ(this,b,1);return!1},b));b.a.on("click.gci-layers-tab",
"input[type=checkbox]",function(){b.a.trigger("gci-layers-tab-zoom-target-changed",[!!$(this).prop("checked")])});UQ(b);b.l=!0}},TQ=function(b,c,d,e){e=!!e;var f=0==d?"gci-layers-tab-item-primary":"gci-layers-tab-item-secondary";if(!!b.b[0]!=!!b.b[1]){var g=b.e;FQ(g,g.a,.5);b.a.trigger("gci-layers-tab-opacity-changed",[0,.5])}b.b[d]=c;g=b.j.eq(d);g.hasClass("gci-layers-tab-item-filled")&&g.find(".gci-layers-tab-item-holder").empty();g.addClass("gci-layers-tab-item-filled").find(".gci-layers-tab-item-holder").append(sA(c,
{Ec:{height:72,width:72},fadeIn:!0}));b.g.find("[data-id="+c.getId()+"]").addClass(f).addClass("gci-layers-tab-item-selected");e||b.a.trigger("gci-layers-tab-asset-added",[c,d])},SQ=function(b,c){var d=0==c?"gci-layers-tab-item-primary":"gci-layers-tab-item-secondary";b.g.find("."+d).removeClass(d).removeClass("gci-layers-tab-item-selected");d=b.b[c];b.b[c]=null;if(!b.b[0]||!b.b[1]){var e=b.e;FQ(e,e.a,1);b.a.trigger("gci-layers-tab-opacity-changed",[0,1])}e=b.j.eq(c);e.find(".gci-layers-tab-item-holder").empty();
e.removeClass("gci-layers-tab-item-filled");b.a.trigger("gci-layers-tab-asset-removed",[d,c])};PQ.prototype.o=function(b,c){var d;d=$.inArray(null,this.b);0>d&&(SQ(this,1),d=1);TQ(this,b,d,c);return!1};PQ.prototype.p=function(b){var c=this.b[0],d=this.b[1];c&&c.getId()==b.getId()?SQ(this,0):d&&d.getId()==b.getId()&&SQ(this,1);return!1};
var UQ=function(b){var c=b.a.find(".gci-layers-tab-scroller");b.g=b.a.find(".content");for(var d=0;d<b.h.length;d++){var e=b.h[d],f=sA(e,{Ec:{width:160,height:90},fadeIn:!0});f.attr("data-id",e.getId());var g=(new Tp("Add")).get().addClass("gci-layers-tab-add").css("line-height",f.height).on("click",t(b.o,b,e,!1)),h=(new Tp("Remove")).get().addClass("gci-layers-tab-remove").css("line-height",f.height).on("click",t(b.p,b,e,!1)),l=Y.w();GA(f,e,l,{layout:function(){return"collections-asset-popup-fixed-to-collection gci-layers-popup"}});
f.on("click",ed).append(g).append(h).appendTo(b.g);f.find(".collections-image-holder").trigger("refresh");b.h[0].getId()==e.getId()&&b.o(e,!0)}Lp(xk(new Jp(c,{gd:b.g}),b))},RQ=function(b,c){var d=$(L(oQ));d.appendTo(b);var e=d.find(".goog-slider-vertical"),d=new OQ;d.fb(e[0]);if("vertical"!=d.Ed){var e=d.na(d.Ed),f=d.na("vertical");d.Ed="vertical";if(d.w()){var g=d.w();bh(g,e)&&(eh(g,e),ch(g,f));d.a.style.left=d.a.style.top="";d.l.style.left=d.l.style.top="";d.g&&(d.g.style.left=d.g.style.top="", d.g.style.width=d.g.style.height="");BQ(d)}}wQ(d.b,1);xQ(d.b,0);e=d.b;.001!=e.We&&(e.We=.001,f=e.Gd,e.Gd=!0,wQ(e,sQ(e,e.Ud)),uQ(e,vQ(e)),tQ(e,e.getValue()),e.Gd=f,e.Gd||e.Qh||e.dispatchEvent("change"));FQ(d,d.a,c||1);return d};
var VQ=function(b,c,d){U.call(this);this.a=[];this.n=b;this.l=this.e=this.b=null;this.h=c;this.g=null;this.A=Y.a;this.B=this.j=null;this.I=!1;this.H=0;this.p=d||!1};v(VQ,wk);VQ.prototype.D=function(){this.n.remove();for(var b=0;b<this.a.length;b++)this.a[b]&&this.a[b].g();S(this.l);this.l=null;vu(this.A,K.cn);VQ.r.D.call(this)};
var XQ=function(b){var c=$("<div>").addClass("gci-layers-wrapper").appendTo(b.n);b.e=$("<div>").addClass("gci-layers-container").addClass("gci-layers-layer-secondary").appendTo(c);b.b=$("<div>").addClass("gci-layers-container").addClass("gci-layers-layer-primary").appendTo(c);b.h[0]&&(b.a[0]=WQ(b,b.h[0],b.b));b.p&&b.h[1]&&(b.a[1]=WQ(b,b.h[1],b.e));b.b.find(".m2-zoomWidget").detach().appendTo(c);b.b.find(".m2-glassLayer").detach().appendTo(c)},$Q=function(b,c){var d=!!c;b.n.addClass("gci-layers-enabled");
b.I||(XQ(b),b.I=!0,b.o(0,0,b.p?.5:1),d&&(YQ(b),b.g.bind("gci-layers-tab-asset-added",t(b.O,b)),b.g.bind("gci-layers-tab-asset-removed",t(b.K,b)),b.g.bind("gci-layers-tab-opacity-changed",t(b.o,b)),b.g.bind("gci-layers-tab-zoom-target-changed",function(c,d){ZQ(b,d?"gci-layers-primary-microscope":"gci-layers-combined-microscope")}),b.g.open()))},aR=function(b,c){b.j=c},bR=function(b,c){b.B=c},WQ=function(b,c,d){var e=d.hasClass("gci-layers-layer-secondary"),f=EC(c)&&c.Se(),g=new OP(d.get(0),{bf:f,Df:!1});
g.j(!0);g.A(!0);b.B&&g.tb(function(){return b.B()});var h=function(){b.b.addClass("gci-layers-microscope-loaded");b.e.addClass("gci-layers-microscope-loaded");g.h();g.b();g.l()};g.o(function(){b.H++;g.a.Zc.l.a=.75;b.b.removeClass("gci-layers-no-animation");b.b.removeClass("gci-layers-microscope-loaded");b.e.removeClass("gci-layers-no-animation");b.e.removeClass("gci-layers-microscope-loaded");!b.a[1]||b.p?(b.b.addClass("gci-layers-no-animation"),b.e.addClass("gci-layers-no-animation"),h()):window.setTimeout(function(){b.isDisposed()||
h()},500);b.H==b.a.length&&(ZQ(b,"gci-layers-combined-microscope"),b.j&&b.j())});g.k(e?3:0);EC(c)?PP(g,JC(c)):(f=c.ab(),c=xA(c,f),g.B(c,f.width,f.height),e&&b.j&&b.j());d.css("overflow","visible");return g};VQ.prototype.O=function(b,c,d){b=0==d?0:1;this.a[b]&&cR(this);var e=$("body").width()/.828427,f=$p();this.n.find(".gci-layers-wrapper").css(f+"-perspective",e);d=0==d?this.b:this.e;this.a[b]||(this.a[b]=WQ(this,c,d));d.removeClass("gci-layers-microscope-loaded");PP(this.a[b],JC(c),this.l,!0);d.show()};
VQ.prototype.K=function(b,c,d){0==d?this.b.hide():this.e.hide()};VQ.prototype.o=function(b,c,d){(0==c?this.b:this.e).css({opacity:d})};
var YQ=function(b){b.g=new PQ(b.h);b.J(b.g);qu(b.A,b.g)},ZQ=function(b,c){var d=t(function(){var b=this.a[1]?this.a[1].I():{x:0,y:0},c=this.a[0].I(),b=new xC(b.x-c.x,b.y-c.y,b.z-c.z);dR(this,!1,!1,b)},b),e=!1;"gci-layers-combined-microscope"==c?(d(),e=!0):"gci-layers-primary-microscope"==c&&(dR(b,!1,!0),e=!0);d=b.n.find(".gci-layers-wrapper").find(".m2-glassLayer");$(d[0]).toggleClass("gci-selected",e);$(d[1]).toggleClass("gci-selected",!e);b.a[1]&&b.a[1].k(e?3:0);b.a[0].k(e?0:3)},dR=function(b,c, d,e){b.a[0].H(t(function(b){this.l=b;if(this.a[1]&&!d){var c=b;p(e)&&(c=new xC(b.x+e.x,b.y+e.y,b.z+e.z));this.a[1].e(c,0)}},b));c&&(b.a[0].h(),b.a[0].b(),b.a[0].l())},cR=function(b){ZQ(b,"gci-layers-combined-microscope");dR(b,!0)};
var eR=function(b,c){U.call(this);this.n=b;this.a=c;var d=document.createElement("div");this.n.appendChild(d);Hf(this.n,L(rA));gapi.load("objects3d",t(function(){gapi.objects3d.open(this.a,d,null,{use_3d:!0,feedback:!1,thumbs:"off",zoom_buttons:!1,arrows:!1},{expflags:"Objects3D__external_embed_enabled:true"})},this))};v(eR,wk);
var hR=function(b){b=b||{};var c="";if(b.fA)c+=M('<figure class="gci-audio-player-simple gci-audio-content"><div class="gci-audio-player">'+fR()+"</div>"+gR()+"</figure>");else{c+='<figure class="gci-audio-content">';if(b.title||b.fileName)c+='<figcaption class="gci-audio-header">'+(b.title?'<label class="gci-audio-title">'+N(b.title)+"</label>":""),b.fileName&&(c+='<span class="gci-audio-filename"><label>Uploaded filename:</label><span>'+N(b.fileName)+"</span></span>"),c+="</figcaption>";c+='<div class="gci-audio-player">'+
fR()+'</div><div class="gci-audio-controls"><div class="gci-audio-controls-container">'+gR()+'<div class="gci-audio-control-timeslider"><div class="gci-audio-control-timeslider-total"></div><div class="gci-audio-control-timeslider-current"></div></div><div class="gci-audio-control-time"><span class="gci-audio-control-currenttime">--:--</span>/<span class="gci-audio-control-duration">--:--</span></div><div class="gci-audio-control gci-audio-control-volume"><button class="gci-audio-control-mutetoggle" type="button" title="'+
Fg("Mute/Unmute")+'"></button><div class="gci-audio-control gci-audio-control-volume-slider"><div class="gci-audio-control-volume-total"><div class="gci-audio-control-volume-current"></div></div></div></div></div></div></figure>'}return M(c)},fR=function(){return M('<div class="gci-audio-player-unsupported">Your browser does not support audio playback for this item.</div>')},gR=function(){var b;b=""+('<button class="gci-audio-control gci-audio-control-playtoggle" type="button" title="'+Fg("Play/Pause")+ '"></button>');return M(b)};
var jR=function(b,c){W.call(this);var d=this,e=c||{};this.e=new Im(100);this.J(this.e);T(this.e,"tick",this.oA,!1,this);this.b=$(L(hR,{fileName:e.fileName,fA:e.eA,title:e.title}));var f=this.b.find(".gci-audio-player").get(0);this.j=!1;this.a=iR(this,f);if(this.a.canPlayType&&(""!=this.a.canPlayType("audio/mpeg")||""!=this.a.canPlayType("audio/webm"))){this.b.find(".gci-audio-player-unsupported").remove();this.op=this.b.find(".gci-audio-control-playtoggle");this.op.on("click.gci-audio-player",function(){1==
d.Kg?d.pause():d.play()});var g=this.b.find(".gci-audio-control-mutetoggle"),f=this.b.find(".gci-audio-control-volume-slider"),h=this.b.find(".gci-audio-control-volume-current"),l=1;g.on("click.gci-audio-player",function(){0<d.a.volume?(l=d.a.volume,d.a.volume=0):d.a.volume=l});f.on("click.gci-audio-player",function(b){var c=$(this).offset().top;b=$(this).height()-(b.pageY-c);l=Math.round(100*b/$(this).height())/100;d.a.volume=l});var m=this.b.find(".gci-audio-control-currenttime"),r=this.b.find(".gci-audio-control-duration"),
f=this.b.find(".gci-audio-control-timeslider"),u=this.b.find(".gci-audio-control-timeslider-current");f.on("click.gci-audio-player",function(b){var c=$(this).offset().left;b=Math.round(100*(b.pageX-c)/$(this).width());d.a.currentTime=1E3*d.a.duration*b/100/1E3});T(this,"timeUpdate",function(){d.b.addClass("gci-audio-with-time");var b=3==d.Kg?0:1E3*d.a.currentTime,c=1E3*d.a.duration;!isNaN(b)&&m.text(yj(b));!isNaN(c)&&r.text(yj(c));u.css("width",100*b/c+"%")});T(this,"psc",function(){3==d.Kg||2==d.Kg?
this.op.removeClass("gci-audio-control-pause"):1==d.Kg&&this.op.addClass("gci-audio-control-pause")});T(this,"lsc",function(){2==d.Uo&&r.text(yj(1E3*d.a.duration))});T(this,"vsc",function(){0==d.a.volume?(g.addClass("gci-audio-control-unmute"),h.css("height","0")):(g.removeClass("gci-audio-control-unmute"),h.css("height",100*d.a.volume+"%"))});this.load(b);e.Wv&&this.play();this.h=[];this.h.push(nG("gci.ui.media-startplaying",function(b){pa(d)!=b&&d.pause()}));this.h.push(nG("gci.ui.media-play",function(){d.pause()}))}};
v(jR,W);k=jR.prototype;k.w=function(){return this.b};k.Kg=0;k.Uo=0;k.oA=function(){var b=3==this.Kg?0:1E3*this.a.currentTime;this.l&&b>this.l?(this.pause(),kR(this,3)):this.dispatchEvent("timeUpdate")};k.play=function(){var b=this,c=function(){b.isDisposed()||(b.e.dispatchEvent("tick"),b.e.start(),b.a.play(),kR(b,1))};this.j?c():kk(this,"gci.ui.media-player-ready",c)};k.pause=function(){this.a.pause();this.e.stop();kR(this,2)};
var kR=function(b,c){if(c!=b.Kg){b.Kg=c;switch(c){case 3:b.dispatchEvent("gci.ui.media-play");break;case 2:b.dispatchEvent("gci.ui.media-Stop");break;case 1:b.dispatchEvent("gci.ui.media-play"),pG("gci.ui.media-startplaying",pa(b))}b.dispatchEvent("psc")}},iR=function(b,c){var d=Ef("audio");d.setAttribute("preload","none");c.appendChild(d);T(d,"ended",b.g,!1,b);T(d,"error",b.g,!1,b);T(d,"volumechange",b.g,!1,b);T(d,"loadstart",b.g,!1,b);return d};
jR.prototype.D=function(){ok(this.a);Lf(this.a);this.b.remove();oG(this.h);jR.r.D.call(this)};jR.prototype.load=function(b){var c=b.slice(0,-3)+"webm",d=Ef("source");d.src=b;d.type="audio/mpeg";this.a.appendChild(d);b=Ef("source");b.src=c;b.type="audio/webm";this.a.appendChild(b)};
jR.prototype.g=function(b){switch(b.type){case "ended":kR(this,3);break;case "error":this.dispatchEvent("error");break;case "canplaythrough":2!=this.Uo&&(this.Uo=2,this.dispatchEvent("lsc"));break;case "volumechange":this.dispatchEvent("vsc");break;case "loadstart":this.j=!0,this.dispatchEvent("gci.ui.media-player-ready")}};
var lR=function(b){return M('<li class="'+Q(b.className)+'" title="'+Q(b.text)+'" role="tab"><span>'+N(b.text)+"</span></li>")},mR=function(b){return M('<div role="tabpanel"><h3 class="'+Q(b.className)+'-header" '+(b.VD?'style="display: none"':"")+">"+N(b.Fh)+'</h3><div class="'+Q(b.className)+'-content gci-asset-viewer-tab-section"></div></div>')},nR=function(b){var c='<div><div class="gci-asset-viewer-map-info">';if(b.Mq)var d=N(b.Mq)+" (Creator)",c=c+('<h4 class="gci-asset-viewer-creator-name">'+
d+"</h4>");c+=b.Lq?'<span class="gci-asset-viewer-creator-date">'+N(b.Lq)+"</span>":"";b.Nq&&(b="Nationality: "+N(b.Nq),c+='<p class="gci-asset-viewer-creator-nationality">'+b+"</p>");return M(c+'</div><div class="gci-asset-viewer-google-maps"></div><div>')},oR=function(b){b=b||{};b=""+('<div class="gci-asset-viewer-basic-info">'+P(qv({label:O("Details"),type:"hotdog",ac:O("gci-asset-viewer-details")}))+(b.kb?'<span class="gci-asset-viewer-creator">'+N(b.kb)+"</span>":"")+(b.xn?(b.kb?"<span> | </span>":
"")+'<a class="gci-asset-viewer-location" href="#location">'+N(b.xn)+"</a>":"")+(b.ec?(b.kb||b.xn?"<span> | </span>":"")+'<a class="gci-asset-viewer-partner" href="#partner">'+N(b.ec)+"</a>":"")+"</div>");return M(b)},pR=function(b){return M('<div class="gci-asset-infobox"><div class="gci-asset-infobox-inner"><div class="gci-asset-infobox-event-headline"><span class="gci-asset-infobox-event-title">'+N(b.zw)+"</span>"+(b.da?'<span class="gci-asset-infobox-separator">-</span><span class="gci-asset-infobox-event-date">'+
N(b.da)+"</span>":"")+'</div><div class="gci-asset-infobox-event-location">'+N(b.location)+'</div></div><div class="gci-asset-infobox-pick"><div class="gci-asset-infobox-pick-inner"></div></div></div>')},qR=function(){return M('<div class="gci-fullscreen-microscope-container"><div class="gci-fullscreen-microscope"></div><a href="#close" class="SPRITE_close_big gci-fullscreen-microscope-close"></a></div>')};
var rR=Ac?"webkitfullscreenchange":zc?"mozfullscreenchange":I?"MSFullscreenChange":"fullscreenchange",sR=function(){var b=document.documentElement;b.webkitRequestFullscreen?b.webkitRequestFullscreen():b.mozRequestFullScreen?b.mozRequestFullScreen():b.msRequestFullscreen?b.msRequestFullscreen():b.requestFullscreen&&b.requestFullscreen()},tR=function(){var b=tf().zb();b.webkitCancelFullScreen?b.webkitCancelFullScreen():b.mozCancelFullScreen?b.mozCancelFullScreen():b.msExitFullscreen?b.msExitFullscreen(): b.exitFullscreen&&b.exitFullscreen()},uR=function(){var b=tf().zb();return!!(b.webkitIsFullScreen||b.mozFullScreen||b.msFullscreenElement||b.fullscreenElement)};
var zR=function(b,c,d,e,f,g,h,l,m){U.call(this);this.ia=Y;this.F=c;this.j=d;this.h=!!l;this.p=m||"";this.o=f||"";g&&(this.Rg=g);this.l=[];this.v=$("<div>").addClass("gci-asset-viewer");this.a=$("<div>").addClass("gci-asset-viewer-content-container");this.g=null;!X(this.ia)&&Ji(!1);var r=this,u=function(){var c=$("<figure>").addClass("gci-asset-viewer-content").appendTo(r.v);wA(r.F)&&c.addClass("gci-asset-viewer-text");r.me=$("<header>").addClass("gci-asset-viewer-header").addClass("gci-unified-header").appendTo(r.v);
r.pf=$("<aside>").addClass("gci-asset-viewer-sidebar").addClass("gci-unified-sidebar").hide().appendTo(r.v);vR(r,c,h);wA(r.F)||(r.e(),wR(r));r.v.appendTo(b);e&&!wA(r.F)&&(xR(r,!0),(c=r.v.find("."+e).data("openTab"))&&c(!0));r.h&&yR(r,!0)};c=ry(this.F.V,Cl)||[];c.length?IE(c,t(function(b){this.isDisposed()||(this.l=b,u())},this)):u();this.h&&yR(this,!0)};v(zR,wk);k=zR.prototype;k.Rg=null;k.v=null;k.me=null;k.pf=null;k.jh=null;k.Pa=null;k.ha=null;k.Sj=null;k.Za=null;k.fm=null;k.qg=null;k.Qm=null;
k.$n=null;k.En=null;k.Jk=null;k.Wl=0;k.mk=!1;k.Ci=!1;k.Tq=!1;k.$l=!1;k.S=null;var AR=4/3,BR={width:100,height:75};
zR.prototype.D=function(){this.Rg=null;S(this.Qm);CR(this);try{S(this.ha),this.ha=null,this.Sj&&this.Sj.remove(),this.Sj=null}catch(b){}this.v&&this.v.remove();this.v=null;this.me&&this.me.remove();this.me=null;this.qg&&this.qg.unbind("annotation-selected");S(this.qg);this.qg=null;$("body").removeClass("gci-asset-streetview-immersive");this.Za&&this.Za.g();this.Za=null;$(".gci-asset-viewer-transition-clone").remove();$("body").off(".gci-asset-viewer-enable-microscope-mouse-tracker");this.Ci=!1;DR(this,
this.h);$("body").removeClass("gci-asset-viewer-microscope-zooming");$("body").removeClass("gci-asset-viewer-microscope-zoomed");S(this.Pa);this.Pa=null;S(this.$n);this.$n=null;S(this.En);this.En=null;S(this.Jk);this.Jk=null;this.pf&&this.pf.remove();this.pf=null;!X(this.ia)&&Ji(!0);zR.r.D.call(this)};
var ER=function(b,c,d){var e=$("<div>").addClass("gci-asset-viewer-slider").appendTo(c),f=$("<div>");b.Jk=new Jp(e,{gd:f});var g;$.each(b.Rg,t(function(b,c){if(!zC(c)){var d=sA(c,{});d.on("click",t(function(){this.trigger("asset-viewer-focus",[c.getId(),e.scrollTop()])},this));f.append(d);this.F.getId()==c.getId()&&(g=d.addClass("selected"))}},b));window.setTimeout(t(function(){var b=g.position().top;d&&this.Jk.scrollTop(d);this.Jk.scrollTop(b,g.height());f.find(".collections-image-holder").trigger("refresh")},
b),0);b.v.addClass("gci-asset-viewer-has-slider")};zR.prototype.pa=function(){return this.F};
var FR=function(b,c,d){var e=null,f=b.F.ab();f?f.width>c&&f.height>d?(b=f.width*d/f.height,f=f.height*c/f.width,b>c?e={width:c,height:f}:e={width:b,height:d}):f.width>c?e={width:c,height:f.height*c/f.width}:f.height>d?e={width:f.width*d/f.height,height:d}:e={width:f.width,height:f.height}:(e={width:d*AR,height:d},e.width>c&&(e={width:c,height:c/AR}));return e},vR=function(b,c,d){wA(b.F)?b.En=new Jp(c,{gd:b.a,um:"dark"}):(b.a.appendTo(c),b.b());if(CC(b.F)){if(!LC(b.F))return;b.Rg&&yy(b.F.V,Xk)?GR(b):
HR(b)}else if(yA(b.F)||FC(b.F)){if(!LC(b.F))return;IR(b)}else if(wA(b.F))JR(b);else if(b.F.qb())KR(b);else if(zA(b.F)){if(!LC(b.F))return;LR(b)}else b.F.Pc()?MR(b):bb("wb`"+b.F.U());(wA(b.F)||b.F.qb()||zA(b.F)||b.F.Pc())&&window.setTimeout(t(function(){this.b();this.trigger("asset-rendered-or-played")},b),0);b.Rg&&!yy(b.F.V,Xk)&&ER(b,c,d);wA(b.F)||NR(b)},NR=function(b){b.jh&&b.jh.remove();if(b.F.data("gci.exhibit.caption")){var c=b.v.find(".gci-asset-viewer-content");b.jh=$("<figcaption>").addClass("gci-asset-viewer-caption").appendTo(c);
xk(new Jp(b.jh),b);var c=b.F.data("gci.exhibit.caption"),c=ui(c,!0),d=$("<span>").addClass("gci-asset-viewer-content-text-caption");b.jh.append(d);ri(c,d,void 0,!0);b.o&&b.jh.append($("<div>").addClass("gci-asset-viewer-author").text(" \u2014 "+b.o))}};
zR.prototype.b=function(){if(!this.isDisposed()){var b=this.v.find(".gci-asset-viewer-content");b.length&&b.is(":visible")||(b=$("<div>").addClass("gci-asset-viewer-content gci-asset-viewer-content-test").appendTo($("#collections-page-asset-viewer")));var c=FR(this,b.width(),b.height());(yA(this.F)||FC(this.F))&&this.a.css({height:c.height,width:c.width,top:"50%","margin-top":"-"+c.height/2+"px",left:"50%","margin-left":"-"+c.width/2+"px"});if(wA(this.F)&&!X(this.ia)){c=this.v.find(".gci-asset-viewer-content-text-container");
OR(this,c);var d=c.height();c.css("font-size","12px");for(var e=parseInt(c.css("font-size"),10);c.contents().height()<d&&35>e;)e++,c.css("font-size",e+"px");for(;c.contents().height()>d&&12<e;)e--,c.css("font-size",e+"px")}b.hasClass("gci-asset-viewer-content-test")&&b.remove();this.me&&(b=this.me.find(".gci-asset-viewer-title"),this.me.toggleClass("gci-unified-header-clickable",600==b.width()));this.qg&&this.qg.resize();if(this.Za)try{var f=this.Za.I();if(1.01<=f.size.height||0==f.z)this.Za.h(),
this.Za.b(),this.Za.l()}catch(g){}}};
var OR=function(b,c){var d=b.v.find(".gci-asset-viewer-content");d.length&&d.is(":visible")||(d=$("<div>").addClass("gci-asset-viewer-content gci-asset-viewer-content-test").appendTo($("#collections-page-asset-viewer")));var e=FR(b,d.width(),d.height());c.css("height",e.height);d.hasClass("gci-asset-viewer-content-test")&&d.remove()},yR=function(b,c,d){b.Ci=!0;b.Tq=c;b.mk=!1;c?(DR(b,!d),PR(b)):DR(b)},PR=function(b){b.$l=!0;var c=function(c){!b.mk&&b.Ci&&(window.clearTimeout(b.Wl),c&&$("body").removeClass("gci-asset-viewer-microscope-idle"),
b.Wl=window.setTimeout(function(){$("body").addClass("gci-asset-viewer-microscope-idle")},zi()?8E3:1500))};zi()||($("body").bind("mousedown.gci-asset-viewer-microscope-mouse-tracker",function(){b.mk=!0}),$("body").bind("mouseup.gci-asset-viewer-microscope-mouse-tracker",function(){b.mk=!1}),$("body").bind("mousemove.gci-asset-viewer-microscope-mouse-tracker",c));$("body").on("click.gci-asset-viewer-microscope-mouse-tracker",function(c){$(c.target).closest(".gci-asset-viewer-content-container").length||
DR(b)}).on("keydown.gci-asset-viewer-microscope-mouse-tracker",function(){DR(b)}).on("touchstart.gci-asset-viewer-microscope-mouse-tracker",c);vi($("body"),"..gci-asset-viewer-microscope-mouse-tracker",function(){$("body").off(".gci-asset-viewer-enable-microscope-mouse-tracker");b.Ci=!0;c();return!0});c()},DR=function(b,c){b.$l=!1;$("body").off(".gci-asset-viewer-microscope-mouse-tracker");window.clearTimeout(b.Wl);c||$("body").removeClass("gci-asset-viewer-microscope-idle");b.mk=!1};
zR.prototype.e=function(){var b=$("<h1>").addClass("gci-unified-header-title-container"),c=$("<h2>"),d=$("<span>").attr("title",this.F.getTitle()).addClass("gci-asset-viewer-title").addClass("gci-unified-header-title");d.text(this.F.getTitle());var e=t(function(){600==d.width()&&this.me.toggleClass("gci-unified-header-full")},this);b.on("click.gci-asset-viewer",e).append(d);e=lB(this.F);Ea(x(e))||b.append($("<span>").addClass("gci-asset-viewer-date").text(e));var f=this.F.hf();f&&(e=ju("common/pixel.gif"),
$("<img>").attr("src",e).attr("alt","Go to Museum View").addClass("gci-asset-show-streetview").addClass("SPRITE_icon_pegman").appendTo(b).bind("click",t(function(){var b=this.F.qa();b&&(b={"l.id":iB(b),location:f},this.ia.Oa(this.ia.W.Zd,b));return!1},this)));var g=this.F.qa(),h=g&&g.getName(),l=g&&g.getId(),e=xx(this.ia),l=h&&(!e||e!=l),m={xn:Ot(this.F.V,Rk)||"",kb:HA(this.F)};l&&(m.ec=h);h=$(L(oR,m));h.find(".gci-asset-viewer-details").on("click.gci-asset-viewer",t(function(){xR(this)},this));var r=
this;if(this.F.Oc())h.find(".gci-asset-viewer-creator").addClass("gci-asset-viewer-basic-info-link").on("click.gci-asset-viewer",function(){ZC(r.F);return!1});var u=SC(this.F,2,1);if(u.length)h.find(".gci-asset-viewer-location").addClass("gci-asset-viewer-basic-info-link").on("click.gci-asset-viewer",t(function(){1==u.length?this.ia.Rj(u[0].nc(),u[0].ya()):aD(u);return!1},this));else h.find(".gci-asset-viewer-location").addClass("gci-asset-viewer-no-link");if(l&&!e)h.find(".gci-asset-viewer-partner").addClass("gci-asset-viewer-basic-info-link").on("click.gci-asset-viewer",
t(function(){this.ia.pg(g);return!1},this));c.append(h);this.me.empty().append(b).append(c)};
var xR=function(b,c){b.pf.toggle(c);b.v&&b.v.toggleClass("gci-asset-viewer-sidebar-open",c);window.setTimeout(t(function(){this.S&&gy(this.S)},b),0);b.v.find(".gci-asset-viewer-details").toggleClass("collections-ui-button-active",c);var d=yA(b.F)||FC(b.F)?550:0,e=b.pf.is(":visible");e?b.v.find(".gci-asset-viewer-tabs li:first-child").click():b.trigger("asset-viewer-opened",[null]);window.setTimeout(function(){e&&b.Za&&(b.Za.h(),b.Za.b(!1),b.Za.l());window.setTimeout(function(){b.Za&&b.Za.b()},400);
b.b()},d)},QR=function(b,c,d){U.call(this);d=d||{};this.Zn=b;this.ir=c;this.e=d.Im||null;this.g=!!d.es;this.a=d.dh||null;this.b=d.eh||null};v(QR,wk);QR.prototype.Ee=function(){return this.Zn};var RR=function(b){var c=$(L(mR,{className:b.Zn,Fh:b.ir,es:b.g})),d=c.find(".gci-asset-viewer-tab-section");b.e?ri(b.e,d):b.render(d);Pd(d[0],Od(d.text()));b.a&&c.addClass(b.a);return c};QR.prototype.render=function(b){this.b&&this.b(b)};
var SR=function(b){var c=[];Ot(b.F.V,Vk)&&c.push(new QR("gci-asset-viewer-tab-story","Story",{Im:Ot(b.F.V,Vk)||""}));b.F.Vb()&&c.push(new QR("gci-asset-viewer-tab-description","Description",{Im:b.F.Vb()}));RC(b.F)&&c.push(new QR("gci-asset-viewer-tab-more-information","More Details",{dh:"gci-more-information",eh:t(b.Oz,b)}));if(Ot(b.F.V,Pk)){var d=new QR("gci-asset-viewer-tab-transcript","Transcript",{Im:Ot(b.F.V,Pk)||""});X(b.ia)?c.unshift(d):c.push(d)}var d=[],e=[],f=[];if(b.l.length)for(var g=
0;g<b.l.length;g++){var h=b.l[g];h&&(vA(h)?d.push(h):yA(h)?e.push(h):zA(h)&&f.push(h))}e.length&&c.push(new QR("gci-asset-viewer-tab-video","Videos",{dh:"gci-asset-viewer-videos",eh:t(b.Pz,b,e)}));d.length&&c.push(new QR("gci-asset-viewer-tab-image","Images",{dh:"gci-asset-viewer-images",eh:t(b.Nz,b,d)}));f.length&&c.push(new QR("gci-asset-viewer-tab-audio","Audio",{dh:"gci-asset-viewer-audios",eh:t(b.Lz,b,f)}));d=b.F;(UC(d)||VC(d)||WC(d))&&c.push(new QR("gci-asset-viewer-tab-map","Map",{dh:"gci-asset-viewer-map",
eh:t(b.Iw,b)}));return c},TR=function(b){var c=[];c.push(new QR("gci-asset-viewer-tab-debug","Debug",{dh:"gci-asset-viewer-debug",eh:t(b.Mz,b)}));SC(b.F).length&&c.push(new QR("gci-asset-viewer-tab-annotation","Annotation",{dh:"gci-asset-viewer-annotation",eh:t(b.Kz,b)}));return c},wR=function(b){var c=SR(b);b.ia.kf()&&(c=ub(c,TR(b)));c.length||c.push(new QR("gci-asset-viewer-tab-description","Description",{Im:"No further details available",es:!0}));var d=$("<ul>").addClass("gci-asset-viewer-tabs").attr("role",
"tablist").appendTo(b.pf),e=$("<div>").addClass("gci-asset-viewer-tab-content-wrapper").appendTo(b.pf),f=$("<div>").addClass("gci-asset-viewer-tab-content").appendTo(e),g=function(b){b=d.find("."+b);b.hasClass("gci-asset-viewer-tab-active")||(d.find("li").removeClass("gci-asset-viewer-tab-active").attr("aria-selected","false"),b.addClass("gci-asset-viewer-tab-active").attr("aria-selected","true"))},h=t(function(){for(var b=c.length&&c[0].Ee(),d=0,e;e=c[d];d++){e=e.Ee();var h=f.find("."+e+"-header");
if(h.length){var l=h.position().top,h=h.outerHeight(!0)-h.height(),l=l+h,h=f.scrollTop(),m=f.prop("scrollHeight");if(0<l){0!=h&&h+f.height()==m&&(b=e);break}b=e}}b&&g(b);DR(this)},b);b.$n=new Jp(f,{Sh:h});(h=Ot(b.F.V,Wk)||"")&&f.append($("<div>").addClass("gci-asset-viewer-quote").text(ui(h.toString())));for(var h=t(function(b,c){var d=f.find("."+b+"-header"),e=f.scrollTop(),h=d.position().top,l=d.outerHeight(!0)-d.height(),e=e+h+l;d.is("h3:first")&&(e=0);c?(f.stop(!0).scrollTop(e),g(b)):f.animate({scrollTop:e},
"fast",void 0,sa(g,b));this.pf.is(":visible")&&this.trigger("asset-viewer-opened",[b])},b),l=0,m;m=c[l];l++){var r=m.Ee(),r=$(L(lR,{className:m.Zn,text:m.ir})).on("click."+r,t(h,b,r,!1)).data("openTab",t(h,b,r));d.append(r);f.append(RR(m))}c.length&&h(c[0].Ee());h=Ak(b.ia.j,"enable_abuse_report")&&(Jt(b.ia)||yx(b.ia));l=b.F&&b.F.qa();!b.F||wA(b.F)||Jt(b.ia)&&l&&l.getId()==xx(b.ia)?f.addClass(h?"gci-asset-viewer-has-report":"gci-asset-viewer-attribution-none"):UR(b,e);h&&(h=document.createElement("a"),
h.href=K.mu+b.F.getId(),h.target="_blank",ch(h,"gci-asset-viewer-report-link"),h.innerText="Report issue",e[0].appendChild(h))},UR=function(b,c){var d=$("<div>").addClass("gci-asset-viewer-attribution"),e=b.F.qa(),f=$("<div>").addClass("gci-asset-viewer-attribution-text").appendTo(d);if(e){var g=e.ie().addClass("gci-asset-viewer-attribution-logo"),h=bB(e);h&&(g.text(""),h.insertBefore(g.contents()),d.append(g));g=e.ie();nB(e,g,b);f.append(g)}(e=b.F.ie())&&f.append($("<div>").append($("<span>").text("Original source: ")).append(e.addClass("gci-asset-viewer-attribution-source")));
$("<div>").addClass("gci-asset-viewer-attribution-gutter").append(d).appendTo(c)};k=zR.prototype;
k.Oz=function(b){var c={};PC(this.F,t(function(b,d,g){c[b.getKey()]?c[b.getKey()].push({yk:b,ym:d,Sq:g}):c[b.getKey()]=[{yk:b,ym:d,Sq:g}]},this),QC());var d=Tb(c);Bb(d,function(b,c){var d=b[0].ym,h=c[0].ym,l=d.oh(),m=h.oh(),d=VR(d),h=VR(h);return l<m?1:l==m?Ca(d,h):-1});y(d,function(c){var d=c[0].ym,g=d?VR(d):c[0].yk.getKey(),h=$("<div>").addClass("property"),g=$("<h2>").addClass("name").text(g+":").appendTo(h);this.ia.kf()&&g.attr("title",WR(d));var l=this.ia.Jb();$.each(c,t(function(b,c){var d=
c.yk,e=c.Sq;if(5==d.U()){if(e=wm(d))if(h.append(e),l){var f=this.F.qa();if(f&&d.cc()==Tk.M)e.on("click",function(){Tt(l,f,"AssetOnPartnerSite")});else e.on("click",function(){Qt(l,"ClickExternalLink","Other")})}}else d=$("<div>").addClass("value").appendTo(h),ri(e,d)},this));h.appendTo(b)},this)};
k.Pz=function(b,c){var d=$("<div>").addClass("gci-supplemental-player").appendTo(c),e=function(b,c){d.empty();var e=$("<div>").appendTo(d);try{new YT.Player(e[0],{width:360,height:360/AR,videoId:b.Lc(),playerVars:{autoplay:c?1:0,rel:0}});var f=$("<div>");ti(b.Vb(),f);d.append($("<div>").addClass("gci-supplemental-player-title").text(b.getTitle())).append(f)}catch(r){}};e(b[0],!1);if(1!=b.length)for(var f=0;f<b.length;f++)(function(b){sA(b,{Ec:BR,fadeIn:!0}).on("click",function(){e(b,!0);return!1}).appendTo(c)})(b[f])};
k.Iw=function(b){b=$(L(nR,{Mq:HA(this.F),Lq:Ot(this.F.V,Bx)||"",Nq:Ot(this.F.V,Ex)||""})).appendTo(b).find(".gci-asset-viewer-google-maps").css({width:360,height:360});this.S=new dy(b.get(0),{Sf:{draggable:!X(this.ia),scrollwheel:!1}});window.setTimeout(t(this.iw,this),0)};
k.iw=function(){if(!this.isDisposed()&&this.F&&this.S)for(var b=[UC(this.F),WC(this.F),VC(this.F)],c=0;c<b.length;c++){var d=b[c];if(d){var e,f;switch(c){case 0:e="Born";(f=sy(this.F.V,Bx))?(f=new Xl(f.getDate()),f=f.k?$l(f.k):""):f="";break;case 1:e="Created";f=lB(this.F);break;default:e="Died",(f=sy(this.F.V,Bx))?(f=new Xl(f.getDate()),f=f.b?$l(f.b):""):f=""}hy(this.S,{rk:d,displayName:d.pd(),Eg:this.F.getId()+c,ft:L(pR,{zw:e,da:f,location:d.pd()})})}}};
k.Nz=function(b,c){var d=$("<div>").addClass("gci-supplemental-player").appendTo(c),e=function(b){var c=d.find("*");c.css("visibility","hidden");var e=360*b.ab().height/b.ab().width;sA(b,{Ec:{width:360,height:e},Bd:!0,fadeIn:!0}).appendTo(d);e=$("<div>");ti(b.Vb(),e);d.append($("<div>").addClass("gci-supplemental-player-title").text(b.getTitle()!=b.getId()?b.getTitle():"")).append(e);c.remove()};e(b[0]);if(1!=b.length)for(var f=0;f<b.length;f++)(function(b){sA(b,{Ec:BR,fadeIn:!0}).on("click",function(){e(b);
return!1}).appendTo(c)})(b[f])};
k.Lz=function(b,c){var d=$("<div>").addClass("gci-supplemental-player").appendTo(c),e,f=this,g=function(b,c){var g;e&&(g=e);var h=d.find("*");h.css("visibility","hidden");d.append($("<div>").addClass("gci-supplemental-player-title").text(b.getTitle()));e=new jR(b.Cd()||"",{Wv:c});f.J(e);d.append(e.w());var l=$("<div>");ri(b.Vb(),l);d.append(l);S(g);h.remove()};g(b[0],!1);if(1!=b.length){for(var h=$("<ul>"),l=0;l<b.length;l++)(function(b){h.append($("<li>").append($("<a>").text(b.getTitle()).attr("href","#audio").on("click",
function(){g(b,!0);return!1})))})(b[l]);c.append(h)}};k.Mz=function(b){this.ia.kf()&&OC(this.F,t(function(c,d,e){var f=d?VR(d):c.getKey();d=$("<div>").addClass("property debug").append($("<h2>").addClass("name").text(f+":").attr("title",WR(d)));5==c.U()?(c=wm(c))&&d.append(c):d.append($("<div>").addClass("value").text(e));d.appendTo(b)},this))};
k.Kz=function(b){if(this.ia.kf()){for(var c=SC(this.F),d=0,e;e=c[d];d++){var f=$("<div>").addClass("property debug").append($("<div>").addClass("name").text("Annotation:"));f.append($("<div>").addClass("value").append($('<a target="_blank">').attr("href","http://kg/"+e.ya()).text(e.getTitle())).append($("<div>").text("Status: "+XR(e.getStatus()))).append($("<div>").text("Relation: "+YR(e.nc()))).append($("<div>").text("Relevance: "+Fu(e.a))));f.appendTo(b)}c=(d=(c=Ot(this.F.V,wl)||null)?parseInt(c,
16):null)?"Edit annotations":"No collection id found on asset";d=d?"//www.google.com/culturalinstitute/manage/asset-editor/"+d+"?l.id="+this.F.getId():"";b.append($("<div>").addClass("property debug").append($("<div>").addClass("value").append($('<a target="_blank" style="color: #ccc;">').attr("href",d).text(c))))}};
k.Xf=function(){var b=this;if(yA(this.F)||FC(this.F))try{if(this.ha)this.ha.playVideo();else{var c={autoplay:1,rel:0},d=this.F.data("gci.exhibit.streamInfo");d&&(c.start=Math.floor(d.start/1E3),c.end=Math.floor(d.end/1E3));this.ha=new YT.Player(this.Sj[0],{width:"100%",height:"100%",videoId:this.F.Lc(),playerVars:c,events:{onStateChange:function(c){c.data==YT.PlayerState.ENDED&&b.trigger("asset-rendered-or-played",[!0])}}})}}catch(e){}};
var $R=function(b,c){window.clearTimeout(b.Wl);ZR(b);b.F=c;NR(b);if(b.Za){var d=b.F.data("gci.exhibit.msState");d&&!d.size&&(d=eD(d,b.Za.p()),b.F.data("gci.exhibit.msState",d));d?(b.Za.h(),b.Za.e(d,1E3)):(b.Za.b(),b.Za.l())}},ZR=function(b){X(b.ia)||(b.Ci=!1,$("body").off(".gci-asset-viewer-enable-microscope-mouse-tracker"),$("body").on("click.gci-asset-viewer-enable-microscope-mouse-tracker",t(function(b){$(b.target).closest(".gci-asset-viewer-content-container").length&&($("body").off(".gci-asset-viewer-enable-microscope-mouse-tracker"),
this.Ci=!0)},b)))};zR.prototype.bind=function(b,c){this.v.bind(b,c)};zR.prototype.trigger=function(b,c){this.v.trigger(b,c)};zR.prototype.unbind=function(b,c){this.v.unbind(b,c)};
var IR=function(b){var c=X(b.ia),d=b.F.ab();b.v.addClass("gci-asset-viewer-video-type");c&&b.a.css({width:300,height:300/AR});b.h||(b.Pa=new Ly(b.a,xA(b.F),{Qe:d,Cc:!0,fadeIn:!0}),b.Pa.load());b.Sj=$("<div>").addClass("shield").on("click.collections-asset-viewer-item",t(b.Xf,b,b.a)).appendTo(b.a);b.h&&b.Xf();c||window.setTimeout(t(function(){this.b()},b),0)},JR=function(b){b.v.addClass("gci-asset-viewer-text-type");var c=$("<div>").addClass("gci-asset-viewer-content-text-container").appendTo(b.a);
X(b.ia)||OR(b,c);c=$("<div>").addClass("gci-asset-viewer-content-text").appendTo(c);si(ui(b.F.ma().T()),c);b.F.data("gci.exhibit.isBlockQuote")&&c.addClass("block-quote");b.F.data("gci.exhibit.caption")&&(b.jh=$("<div>").addClass("gci-asset-viewer-author").append($("<span>").text(" \u2014 "+b.F.data("gci.exhibit.caption"))).appendTo(c))},KR=function(b){var c=X(b.ia);b.v.addClass("gci-asset-viewer-streetview-type");c?b.v.css("height",aS(!0)):$("body").toggleClass("gci-asset-streetview-immersive");
window.setTimeout(function(){b.a&&(b.qg=new fG(b.F,b.a,b.p),b.qg.bind("annotation-selected",function(c,e){b.trigger("annotation-selected",e)}))},0)},LR=function(b){b.a.addClass("gci-asset-viewer-audio-type").append(bS(b,b.F))},GR=function(b){b.v.addClass("gci-asset-viewer-microscope-type");var c=$(".gci-asset-viewer-transition-clone");ZR(b);window.setTimeout(function(){var d=zC(b.Rg[0])?b.Rg.slice(1):b.Rg,e=b.v.find(".gci-asset-viewer-content");b.fm=xk(new VQ(e,d),b);aR(b.fm,function(){b.b();b.trigger("asset-rendered-or-played");
c.remove()});bR(b.fm,function(){return new pf(this.n.width(),bD())});$Q(b.fm,!0)},c.length?333:0)},bS=function(b,c){var d=new jR(c.Cd()||"");b.J(d);return d.w()},MR=function(b){b.v.addClass("gci-asset-viewer-three-d-type");var c=B(b.F.a,110);if(X(b.ia)){var d=300/AR;b.a.css({width:300,height:d});var e={width:300,height:d};b.Pa=new Ly(b.a,xA(b.F),{Qe:{width:300,height:d},de:e,Cc:!0,fadeIn:!0});b.Pa.load();b.a.on("click",t(function(){this.Qm||(S(this.Pa),this.Pa=null,this.Qm=new eR(this.a.get(0),c))},
b))}else b.Qm=new eR(b.a.get(0),c)},HR=function(b){var c=X(b.ia);b.v.addClass("gci-asset-viewer-microscope-type");var d=$(".gci-asset-viewer-transition-clone");ZR(b);window.setTimeout(t(function(){if(this.F&&!this.isDisposed())if(c){var e=this.F.ab(),f=this.a.width(),g=e.height*f/e.width,h=aS();if(this.F.Re()||AC(this.F))h-=130;g>h&&(g=h,f=e.width*g/e.height);this.a.css({height:g,width:f});f={width:f,height:g};this.Pa=new Ly(this.a,xA(this.F),{Qe:e,de:f,Cc:!0,fadeIn:!0});this.Pa.load();this.a.addClass("gci-asset-viewer-content-microscope-loaded");
this.a.on("click",function(){cS(b)})}else e=EC(this.F)&&this.F.Se(),this.Za=new OP(this.a.get(0),{bf:e,Df:!1}),this.Za.j(!1),zi()&&this.Za.k(3),this.Za.tb(t(function(b){if(!this.isDisposed())return this.a.width()?new pf(this.a.width()-50,bD()):b},this)),this.Za.H(t(function(b){if(!this.isDisposed()){var c=$("body").hasClass("gci-asset-viewer-microscope-zoomed"),d=$("body").height(),d=dS()/d,e=1/b.size.height+d,d=1.01<e&&0!=b.z;b=1.03<e&&0!=b.z;$("body").toggleClass("gci-asset-viewer-microscope-zooming",
d);$("body").toggleClass("gci-asset-viewer-microscope-zoomed",b);this.Tq||(!this.$l&&b?PR(this):this.$l&&!b&&DR(this));c!=b&&this.Za&&this.Za.h();!c&&d&&this.pf.is(":visible")&&xR(this,!1)}},this)),this.Za.o(t(function(){if(!this.isDisposed()){this.a.addClass("gci-asset-viewer-content-microscope-loaded");this.b();var b=this.F.data("gci.exhibit.msState");b&&!b.size&&(b=eD(b,this.Za.p()),this.F.data("gci.exhibit.msState",b));b&&this.Za.e(b,1E3)}},this)),this.Za.O(function(){b.isDisposed()||(b.trigger("asset-rendered-or-played"),
d.remove())}),EC(this.F)?(e=!!this.F.data("gci.exhibit.msState"),PP(this.Za,JC(this.F,e))):(e=FR(this,1200,1200),f=xA(this.F,e),this.Za.B(f,e.width,e.height),this.a.addClass("gci-asset-viewer-content-microscope-loaded"))},b),d.length?333:0)};zR.prototype.resize=function(){window.setTimeout(t(this.b,this),0)};
var cS=function(b){zi()&&!uR()&&sR();$("#content, body > header, body > footer").hide();b.g=$(L(qR)).appendTo($("body"));b.g.find(".gci-fullscreen-microscope-close").on("click",function(){CR(b);return!1});var c=b.g.find(".gci-fullscreen-microscope").get(0),d=EC(b.F)&&b.F.Se();b.Za=new OP(c,{bf:d,Df:zi()});b.Za.j(!1);b.Za.k(3);EC(b.F)?(c=!!b.F.data("gci.exhibit.msState"),PP(b.Za,JC(b.F,c))):(c=FR(b,1200,1200),d=xA(b.F,c),b.Za.B(d,c.width,c.height))},CR=function(b){b.g&&b.Za&&(zi()&&uR()&&tR(),b.Za.g(),
b.g.remove(),$("#content, body > header, body > footer").show())},XR=function(b){switch(b){case 1:return"confirmed";case 2:return"rejected";case 3:return"unreviewed";default:return"unknown"}},YR=function(b){switch(b){case 1:return"event";case 2:return"location";case 3:return"person";case 4:return"created_by";case 5:return"medium";case 6:return"art_movement";default:return"unknown"}},WR=function(b){var c=[],d=b?b.cc():null;if(d){(d=qt[d]||null)&&c.push("schema_name:"+d.k);var d="key:"+b.getKey(),e=
"type:"+eS[b.U()],f="schema_key_hash:"+b.cc(),g="display_score:"+b.oh(),h;h=null!=B(b,6)?B(b,6):0;wb(c,d,e,f,g,"facet_score:"+h,"annotatable:"+B(b,7))}return c.join(", ")},eS={1:"text",2:"location",3:"date",4:"identifier",5:"link"},QC=function(){return[Qk.M,Nk.M,"-8821813686241052451",Rk.M,Wk.M,Vk.M,Mk.M,Pk.M,xl.M,Al.M]},VR=function(b){var c=b.getKey();if(b=b.Wc())b=Ul(b),Ea(x(b))||(c=b);return c},aS=function(b){return $(window).height()-$("body > header").height()-(b?130:70)},bD=function(){return $("body").hasClass("gci-asset-viewer-slideshow-mode")?
$("body").height()-($("body").hasClass("gci-embed")?0:70)-50:$("body").height()-dS()-50},dS=function(){return 2*Math.max($("body > header").outerHeight()+($("body").hasClass("gci-embed")?0:70),$("#gci-action-tabs").outerHeight()+$("body > footer").outerHeight())};
var fS=function(b,c,d){return pb(ry(b,zl),"embed")?c?1==B(c,1):d&&(b=E(d.k,Sy,19))?1==B(b,1):!1:!1};var gS=function(b){b=b?"This user gallery has been created by an independent third party and may not always represent the views of the institutions, listed below, who have supplied the content.":"The exhibit featured may in some cases have been created by an independent third party and may not always represent the views of the institutions, listed below, who have supplied the content.";this.b=$("<div>").addClass("gci-credits-partners-logos");this.a=$("<div>").addClass("gci-credits-partners-attributions");
this.dj=$("<div>").addClass("gci-credits-partners-outer-container");this.ej=$("<div>").addClass("gci-credits-partners-container");this.Uh=$("<div>").addClass("credits-partners-wrapper-box").append($("<div>").addClass("gci-credits-header-container").append($("<h2>").addClass("gci-credits-header-title").text("Credits: All Media"))).append(this.dj.append(this.ej.append($("<div>").addClass("gci-credits-partners-disclaimer").text(b)).append(this.b).append(this.a)));U.call(this)};v(gS,wk);k=gS.prototype;
k.D=function(){this.Uh&&this.Uh.remove();this.Uh=null;this.dj&&this.dj.remove();this.dj=null;this.ej&&this.ej.remove();this.ej=null;gS.r.D.call(this)};k.Uh=null;k.dj=null;k.ej=null;k.get=function(){return this.Uh};
var jS=function(b,c){var d={},e={},f=0;$.each(c,function(b,c){f+=1;var g=c.qa();if(g){var r=d[g.getId()];null==r?d[g.getId()]={count:1,Z:g}:r.count++}if(r=c.ie()){var u=r.text(),w=e[u];null==w?e[u]={count:1,Z:g,wq:r}:w.count++}});var g=Y,g=Jt(g)&&1==Ub(d).length&&d[xx(g)||""];0<f&&!g?($.each(d,function(c,f){var g=f.Z,r=g.ie();nB(g,r,b);g&&!g.ds()&&(e[g.getName()]={count:f.count,wq:r,Z:null},delete d[c.toString()])}),hS(b,e),iS(b,d)):g&&b.Uh.parent().addClass("gci-only-credits-list")};
gS.prototype.resize=function(){var b=this.Uh.find(".credits-partner-box");if(0!=b.length){var c=30;$.each(b,function(b,e){var f=$(e).find("img").height();f>c&&(c=f)});$.each(b,function(b,e){$(e).find(".gci-credits-partner-box-logo-anchor").css("height",c)});Bi(this.ej,this.dj)}};
var hS=function(b,c){var d=$.map(c,gd);d.sort(function(b,c){return c.count-b.count});b.a.hide();b.a.empty();$.each(d,t(function(b,c){var d=$("<div>").addClass("gci-contributing-partners-asset-attribution").append(c.wq),h=c.Z;h&&(h=" (via "+(h.getName()+")"),d.append($("<span>").text(h)));this.a.append(d)},b));b.a.show()},iS=function(b,c){var d=$.map(c,gd);d.sort(function(b,c){return c.count-b.count});var e=d.length,f=t(function(){--e;0==e&&this.resize()},b);b.b.hide();b.b.empty();$.each(d,t(function(b,
c){var d=$("<div>").addClass("credits-partner-box"),m=c.Z,r=YA(m),r=Ai(r).empty().addClass("gci-credits-partner-box-logo-anchor").appendTo(d),u=bB(m);u?(r.append($("<div>").append(u)),u.on("load.gci-credits-partner-box-logo-el",f),u.on("error.gci-credits-partner-box-logo-el",f)):--e;r=m.ie();d.append(r);nB(m,r,this);this.b.append(d)},b));b.b.show()};
var kS=function(b,c,d){U.call(this);this.a=b;this.h=c;this.Jc=d.Jc||1;this.Dn=d.Eq?WD(d.Eq)||0:0;this.g=d.Bm;this.lc=[];this.b=!!d.pc;this.e=!!d.Mb};v(kS,wk);var lS={W3_H8:.375,W9_H16:.5625,W3_H4:.75,W1_H1:1,W4_H3:4/3,W16_H9:16/9};k=kS.prototype;k.D=function(){$.each(this.lc,function(b,c){c.la()});this.a.remove();kS.r.D.call(this)};k.w=function(){return this.a};k.lh=function(){var b=10,c="W1_H1",d=this.Jc;$.each(lS,function(e,f){Math.abs(f-d)<b&&(c=e.toString(),b=Math.abs(f-d))});return c};k.dd=function(){return this.lc.length};
k.resize=function(b,c,d){d=0>this.Jc?Math.round(-this.Jc*d):Math.round(this.Jc*c);this.Zl()||(d=Math.min(d,950),this.Jc=d/c);c=Y;X(c)&&(c=parseInt(c.w().width(),10),d=this.b?c:this.e?3*c:d>c?c:d);c={width:d};c[mS(this.h)]=b;this.a.css(c);$.each(this.lc,function(b,c){c.resize()});return d};k.width=function(){return this.a.width()};k.left=function(){return this.a.position().left};k.xA=function(){this.a.trigger("collections-exhibit-column-modified",[this])};
k.ri=function(){$.each(this.lc,function(b,c){c.ri()})};k.tc=function(){var b=new MD,c=new BD;D(c,2,this.Jc);CD(c,this.g);G(b,1,c);this.Dn&&D(b,3,this.Dn);var d=[];$.each(this.lc,function(b,c){d.push(c.tc())});ec(b,2,d);return b};k.pc=function(){return this.b};k.Mb=function(){return this.e};k.Zl=function(){return this.b||this.e};
var oS=function(b,c,d){U.call(this);this.G=Y;this.g=b;this.id=c||null;this.e=$("<div>").addClass("collections-exhibit");this.o=d||1;this.si=new Date;this.H=new Date;this.version=2;this.B=[];this.K=[];this.b=new ny(null);this.R=!1;this.p={};this.ca=!1;this.a=[];this.Q=this.Ca=this.l=this.h=this.j=this.ka=this.O=this.I=this.A=this.sa=this.ga=null;b=new DD;D(b,1,1);D(b,2,100);this.ga=nS(this,{Jc:-.75,Bm:[b],pc:!0});b=new DD;D(b,1,1);D(b,2,100);this.sa=nS(this,{Jc:this.Td()?-.5:-1,Bm:[b],Mb:!0});this.ri()};
v(oS,wk);k=oS.prototype;k.$h=0;k.zf=10;k.kr=-1;k.lr=-1;k.D=function(){this.ca||(this.B=[],this.K=[],this.b=null,$.each(this.a,function(b,c){c.la()}),S(this.l),this.e.remove(),oS.r.D.call(this))};k.getId=function(){return this.id};k.Lo=function(){return this.R};var fQ=function(b){return b.g!=b.g};oS.prototype.am=function(b){return this.p[b].am};oS.prototype.bm=function(b){return this.p[b].bm};
oS.prototype.setTitle=function(b,c,d){this.b.setProperty(Mk,b,c,!0);d&&(this.A=d);this.Xj();pS(this);this.e.trigger("collections-exhibit-gallery-cover-changed",[this]);return this};oS.prototype.getTitle=function(b,c){var d=qS(this);return d?d.T(b,c):""};var qS=function(b){return(b=sy(b.b,Mk))?Tl(b.ma()):null};oS.prototype.Vb=function(b,c){var d;return(d=(d=sy(this.b,Nk))?Tl(d.ma()):null)?d.T(b,c):""};
var rS=function(b,c){c&&(b.A=c,b.Xj(),pS(b))},sS=function(b,c,d){return(b=(b=sy(b.b,Yk))?Tl(b.ma()):null)?b.T(c,d):""},tS=function(b,c){c&&(b.I=c,b.Xj(),pS(b))},uS=function(b,c,d){return(b=(b=sy(b.b,Zk))?Tl(b.ma()):null)?b.T(c,d):""};oS.prototype.$j=function(){var b=sy(this.b,dl);return null!=b?Tl(b.ma()).T(this.g):""};
var vS=function(b){var c=sy(b.b,gl);if(!(c=null!=c?Tl(c.ma()).T(b.g):"")){var c=rH,d=Ot(b.b,fl)||"CURATOR",e=b.$j(),f=sy(b.b,el);b=null!=f?Tl(f.ma()).T(b.g):"";c=c(d,e,b)}return c},wS=function(b){var c=ty(b.b)||null,d={start:null,end:null},e=ry(b.b,$k)||[];1<e.length?e[0]>e[1]?(d.end=e[0],d.start=e[1]):(d.start=e[0],d.end=e[1]):0<e.length&&(d.start=e[0]);var e=(Ot(b.b,bl)||"").split("|")[0]||""||"keydate",f=(Ot(b.b,bl)||"").split("|");return uH(c,d,e,(1<f.length?f[1]||"":"")||"day",b.g)},xS=function(b){$.each(b.a,
function(b,d){for(var e=d.dd(),f=0;f<e;++f){var g=d.lc[f],h=g.pa();h&&yA(h)&&dQ(g)}})},yS=function(b){return $.map(b.K,function(b){b=b.Fc();return b.U()!=bf()?b:null})};k=oS.prototype;k.ef=function(){return this.h};k.Td=function(){return!this.Nb()};k.Nb=function(){return!!yy(this.b,nl)||1==this.o};k.Xj=function(){this.e.trigger("collections-exhibit-gallery-modified",[this])};k.ri=function(){$.each(this.a,function(b,c){c.ri()});return this};k.gb=function(b){return this.a[b]};
var zS=function(b,c){for(var d=0,e;e=b.gb(d);d++)for(var f=0,g;g=e.lc[f];f++)if(g.id==c)return g;return null};oS.prototype.ew=0;oS.prototype.Ja=function(){return"cell-"+this.ew++};
var nS=function(b,c){var d=c.pc?0:c.Mb?1:b.a.length-1;null!=c.fj&&(c.fj+=1,d=c.fj>b.a.length-1?b.a.length-1:1>c.fj?1:c.fj);var e=$("<div>").addClass("column");c.fadeIn&&e.fadeIn();0<d&&d<=b.a.length?b.a[d-1].w().after(e):b.e.append(e);var f=new kS(e,b,c);$.each(c.Bm,t(function(d,h){var l=B(h,2),m=100,r=0,u=e;1<h.dd()&&(u=$("<div>").addClass("exhibit-horizontal-cell").css({height:l+"%"}).appendTo(e),l=100,m=Math.floor(100/h.dd()),r=100-h.dd()*m);for(var w=1<h.dd()?{"float":mS(this)}:{},C=0;C<h.dd();C++){var J=
c.pc?"cover":c.Mb?"credits":b.Ja(),V=$.extend(w,0==C?{height:l+"%",width:m+r+"%"}:{height:l+"%",width:m+"%"}),xa=$("<a>").css(V).attr("href","#").data("cell-id",J).appendTo(u),V=f,J=new QP(J,xa,this,f,{pc:c.pc,Mb:c.Mb,Ma:c.Ma});J.b.bind("collections-exhibit-cell-modified",t(V.xA,V));V.lc.push(J)}},b));b.a.splice(d,0,f);c.F&&f.lc[0].zc(c.F);b.e.trigger("collections-exhibit-gallery-column-added",[b,d,f]);b.Xj();c.fj&&b.resize(!0);f.w().bind("collections-exhibit-column-modified",t(b.Xj,b));return f};
oS.prototype.resize=function(b){var c=this.e.parent();(c.height()!=this.kr||c.width()!=this.lr||b)&&AS(this)};
var AS=function(b){var c=b.e.parent(),d=c.width(),e=0,c=c.height(),f=b.e.height();$.each(b.a,t(function(b,c){e+=1==b?0:this.zf;e+=c.resize(e,f,d);for(var l=c.dd(),m=0;m<l;++m){var r=c.lc[m];r.pa()&&wA(r.pa())&&Bi(r.rf,r.Bb)}},b));b.e.width(e);b.kr=c;b.lr=d;b.l.resize();Bi(b.e.find(".credits-list-box"),b.e.find(".credits-list-container"))},pS=function(b){var c=void 0,c=b.ga.lc[0].Bb;c.empty();var c=$("<div>").addClass("cover-box").appendTo(c),d=b.g;if(fQ(b)){var e=b.g;Ea(x(b.getTitle(e,!0)))&&Ea(x(sS(b,
e,!0)))&&Ea(x(uS(b,e,!0)))||(d=e)}e=$("<div>").addClass("exhibit-date-title").append($("<div>").addClass("exhibit-date-title-inner-wrapper").append($("<div>").addClass("gci-exhibit-date-wrapper").append($("<span>").addClass("gci-exhibit-date-border")).append($("<span>").text(wS(b)||"").addClass("gci-exhibit-date-text")).append($("<span>").addClass("gci-exhibit-date-border"))).append($("<div>").addClass("exhibit-title").text(b.getTitle(d)||""))).append($("<br>"));e.append($("<div>").addClass("exhibit-subtitle").text(ui(sS(b,
d))||"")).append($("<br>")).append($("<div>").addClass("exhibit-subtitle-origin").text(uS(b,d)||"")).append($("<br>"));e.appendTo(c)},BS=function(b){var c=b.ef();if(!c)return null;var d=$("<div>").addClass("gci-cover-asset-attribution"),e=c.qa(),f=e?e.getId():null,g=xx(b.G);!e||g&&g==f||(f=null,f=$("<a>").on("click",t(function(){var b={"l.id":c.getId(),exhibitId:this.id};this.G.Oa(this.G.W.Zd,b,{exhibitId:this.id});return!1},b)),f.text("Image"),g=e.ie(),d.append($("<div>").append(f).append(": ").append(g)),
nB(e,g,b));(b=c.ie())&&d.append($("<div>").append($("<span>").text("Original source: ")).append(b));return d},DS=function(b){if(!b.R){var c=void 0,c=b.sa.lc[0].Bb;c.empty();if(1==b.o){var d=$("<div>").addClass("credits-list-wrapper-box").append($("<div>").addClass("gci-credits-header-container").append($("<h2>").addClass("gci-credits-header-title").text("Credits: Exhibit"))).appendTo(c),d=$("<div>").addClass("credits-list-container").appendTo(d),e=$("<ul>").addClass("credits-list-box").appendTo(d);
$.each(ry(b.b,hl,b.g),function(b,c){var d=c.split("\u2014");e.append($("<li>").addClass("credits-list-item").append($("<span>").addClass("credits-list-role").text(d[0])).append($("<span>").addClass("credits-list-separator").text(" \u2014 ").toggleClass("credits-list-separator-hidden",!d[0]||!d[1])).append($("<span>").addClass("credits-list-name").text(d[1]||"")))})}b.l=new gS(b.Td());c.append(b.l.get());jS(b.l,CS(b))}},kQ=function(b){if(b.Td())return!1;b=qS(b);if(!b)return!1;b=b.b.Wb();var c="en";
$.each(b,function(b,e){c=e.getLang();return!1});return Ld.test(c)},mS=function(b){return kQ(b)?"right":"left"};oS.prototype.bind=function(b,c,d){this.e.bind.apply(this.e,arguments);return this};oS.prototype.unbind=function(b,c){this.e.unbind.apply(this.e,arguments);return this};
var ES=function(b,c){b.j&&(b.h=c[b.j],b.j=null);for(var d=0,e;e=b.gb(d);d++)for(var f=0,g;g=e.lc[f];f++){var h=g.wa();if(h){var l=c[h];if(l)if(h=g,l=l.clone(),h.li){g=h.xb;var m=h.nd,r=h.caption,u=h.yd,w=h.Sg,C=h.fg;h.zc(l);h.l&&g?ZP(h,g):m&&h.ti(m,!0);r&&gQ(h,r);u&&eQ(h,u);w&&YP(h,w.He(),B(w,2));C&&WP(h,C)}else h.h=!0;else l=g,l.li=h,l.h=!1,l.a=null,l.Bb.removeClass("blank"),l.b.attr("aria-hidden","false"),l.b.addClass("unresolved")}}};
oS.prototype.tc=function(){var b=new qE,c=new rE;D(c,1,0);D(c,2,0);G(b,1,c);this.id&&D(b,2,this.id);ka(this.o)&&D(b,26,this.o);ka(this.$h)&&D(b,3,this.$h);ia(this.si)&&D(b,18,this.si.getTime());ia(this.H)&&D(b,15,this.H.getTime());ia(this.O)&&D(b,19,this.O.getTime());ia(this.ka)&&D(b,20,this.ka.getTime());this.A&&G(b,10,this.A);this.I&&G(b,12,this.I);this.B&&ec(b,17,this.B);this.h&&this.h.getId()&&vE(b,this.h.getId());wE(b,this.b.Ea().L());D(b,24,this.g);yE(b,[]);var d=[];$.each(this.p,t(function(b,
c){var e=new nE;D(e,1,c.hb);D(e,3,c.am);D(e,2,c.bm);d.push(e)},this));yE(b,d);var c=new LD,e=[];$.each(this.a,function(b,c){c.Zl()||e.push(c.tc())});OD(c,e);G(b,14,c);return b};
var GS=function(b,c,d){d=!0;zE(E(b,rE,1));var e=c||{},f=(c=b.getExtension(fc))?c.Vc():[];$.each(f,function(b,c){if(c.getId()){var d=new tA(c);e[d.getId()]=d}});var g=new oS(xE(b),b.getId(),b.U());g.$h=B(b,3);g.version=B(b,4);g.Ca=E(b,Sy,28);g.si=new Date(B(b,18));g.H=new Date(b.ph());B(b,19)&&(g.O=new Date(B(b,19)));B(b,20)&&(g.ka=new Date(B(b,20)));g.B=F(b,cE,17);g.j=b.wa();var h=sE(b);h&&!h.wa()&&h.getStreetView()&&(f=new Hz,Jz(f,h.getStreetView()),h=new Lz,D(h,4,7),G(h,14,f),g.h=new tA(h),g.j=
null);var l={},f=c?c.od():[];$.each(f,function(b,c){if(c&&c.ya()){var d=new EG(c);l[d.ya()]=d}});$.each(F(b,Cu,21),function(b,c){var d=c.Fc().ya();d&&(d=l[d])&&g.K.push(new Iy(c,d))});if(c=c?c.qa():null)g.Q=new VA(c);g.b=null;g.b=new ny(E(b,Vu,22));g.p={};$.each(F(b,nE,25),function(b,c){var d=c.getLang(),e=new FS(d);e.am=B(c,3);e.bm=B(c,2);g.p[d]=e});rS(g,E(b,lE,10));tS(g,E(b,lE,12));b.getPanel()||(g.R=!0);b.getPanel()&&ND(b.getPanel())&&$.each(ND(b.getPanel()),function(b,c){if(!E(c,HD,4)){var f=
c.getStyle();if(null==f){f=new BD;D(f,2,1);var h=new DD;D(h,1,1);D(h,2,100);CD(f,[h])}var l=nS(g,{Jc:f.lh(),Bm:F(f,DD,1),Ma:d,Eq:c,uc:e});$.each(UD(c),function(b,c){var d=l.lc[b];if(d){d.tt=c;switch(c.U()){case 3:d.Bb.hasClass("blank")||(SP(d),d.Bb.addClass("blank"),d.b.attr("aria-hidden","true"),TP(d));break;case 1:var e=c.ma().L(),f=d.id,g=new Lz;G(g,12,e);e=new tA(g);D(e.a,4,6);D(e.a,1,"text-asset-"+f);f=e.getId();D(e.a,92,f);f=E(c,zD,11)?E(c,zD,11).A():null;e.data("gci.exhibit.isBlockQuote",1==
f);d.zc(e);f&&VP(d,f);c.Kc()&&gQ(d,Tl(c.L().Kc()));break;case 2:f=c.pa()?c.pa().wa():null;d.li=f;TP(d);d.h=!1;c.Kc()&&gQ(d,Tl(c.L().Kc()));B(c,6)&&eQ(d,B(c,6));break;default:throw Error("xb`"+c.U());}c.pa()&&(d.l&&cD(c.pa())?(f=cD(c.pa()),e=void 0,B(f,4)&&B(f,5)&&(e=new pf(B(f,4),B(f,5))),f=new xC(B(f,1),B(f,2),f.getZoom(),e),ZP(d,f)):uD(c.pa())&&(f=uD(c.pa()),d.ti({top:f.ur(),left:f.sr(),Mg:yD(f)})),c.pa().If()&&(f=c.pa().If(),YP(d,f.He(),B(f,2))),c.pa().getStreetView()&&(f=c.pa().getStreetView(),
WP(d,f)))}})}});ES(g,e);pS(g);DS(g);g.ri();return g};oS.prototype.load=function(b){$.each(this.a,function(c,d){for(var e=d.dd(),f=0;f<e;++f)d.lc[f].load(b)})};var HS=function(b,c,d){c=Math.max(0,c-3);for(d=Math.min(b.a.length,d+3);c<d;++c)for(var e=b.a[c],f=e.dd(),g=0;g<f;++g){var h=e.lc[g];h.j=!1;h.load()}};oS.prototype.unload=function(){$.each(this.a,function(b,c){for(var d=c.dd(),e=0;e<d;++e)c.lc[e].unload()})};
var CS=function(b,c){var d={};null==b.h||void 0!=c&&0!=c||(d[b.h.getId()]=b.h);for(var e,f=void 0!=c?c:b.a.length-1,g=void 0!=c?c:0;g<=f;g++){e=b.gb(g);for(var h=0,l;l=e.lc[h];h++)(l=l.pa())&&l.getId()&&(d[l.getId()]=l)}return d};oS.prototype.clone=function(){return GS(this.tc(),CS(this))};var IS=function(b){return(b=Ot(b.b,xl))?parseInt(b,16):null};oS.prototype.qa=function(){if(this.Q)return this.Q;var b=IS(this),c=CS(this);if(b&&c)for(var d in c){var e=c[d];if(e&&e.qa()&&e.qa().getId()==b)return e.qa()}return null}; oS.prototype.Hh=function(){return"Y"===Ot(this.b,Gl)};var FS=function(b){this.hb=b;this.bm=this.am=!1};
var JS=function(b,c){DE.call(this,c,void 0);this.p=b;this.j=null};v(JS,HE);var LS=function(b,c){var d=new JS(c);KS(d,b);return d},KS=function(b,c){b.j=c;(c.j||c.h)&&b.items.push(c.ef());if(c instanceof oS)for(var d=0,e;e=c.gb(d);d++)for(var f=0,g;g=e.lc[f];f++)g.pa()&&b.items.push(g.pa());else for(e=(d=c.Ea().getPanel())&&ND(d)||[],d=0;f=e[d];d++){g=UD(f)||[];for(var f=0,h;h=g[f];f++)2==h.U()&&(h=h.pa())&&h.wa()&&b.items.push(c.pa(h.wa()))}b.sb=b.items.length},MS=function(b,c,d){KS(b,d);c(b.sb,b.items)}; JS.prototype.zi=function(b,c){return b.exhibit?(MS(this,c,b.exhibit),!0):b.exhibitId?(this.p.get(b.exhibitId,t(function(b){b?MS(this,c,b):c(0,[])},this)),!0):!1};JS.prototype.Fe=function(){return this.j};
var OS=function(b){A(this,b,"gci.c.lesr",-1,NS)};v(OS,z);var NS=[1];OS.prototype.L=function(){return H(this)};OS.Ta="gci.c.lesr";OS.prototype.Ge=function(){return B(this,2)};var QS=function(b){A(this,b,0,-1,PS)};v(QS,z);var PS=[8,12];QS.prototype.L=function(){return H(this)};QS.prototype.getTitle=function(){return B(this,4)};QS.prototype.setTitle=function(b){D(this,4,b)};QS.prototype.Xc=function(){return B(this,7)};
var SS=function(b){A(this,b,"gci.c.lolr",-1,RS)};v(SS,z);var RS=[1];SS.prototype.L=function(){return H(this)};SS.Ta="gci.c.lolr";var TS=function(b){A(this,b,0,-1,null)};v(TS,z);TS.prototype.L=function(){return H(this)};TS.prototype.T=function(){return B(this,2)};
var US=function(b,c){U.call(this);this.G=Y;this.h=b;this.b={ss:null};this.l=!c;this.e={};this.a={};nG("gci-exhibitservice-unvalidate",function(b){b&&this.rp(b)},this)};v(US,wk);k=US.prototype;k.D=function(){Ej(this.e);this.e=null;this.a={};US.r.D.call(this)};
k.get=function(b,c,d){if(this.l){if(this.e[b]){c&&c(this.e[b]);return}if(this.a[b]){if(d){c&&c(null);return}if(!c)return;var e=this.a[b];1==e.U()?(e=GS(e,null,!0),e.ca=!0):e=new bH(e);this.e[b]=e;delete this.a[b];c(e);return}}e={};e.exhibit_ids=b;d=d||!1;Sm(vp(this.h,K.an,e,CE),t(this.Nw,this,b,c,d),t(this.Mw,this))};k.rp=function(b){this.e[b]=null;this.a[b]=null};k.Mw=function(){lx(this.G,"Failed to get exhibit.")};
k.Nw=function(b,c,d,e){var f=null;$.each(e.rh(),t(function(c,e){if(3==e.U()&&(this.l&&(this.a[b]=e.Fe()),!d)){var l=e.Fe();1==l.U()?(l=GS(l,null,!0),l.ca=!0):l=new bH(l);var m=l.getId();this.l&&m&&(this.e[m]=l);m==b&&(f=l)}},this));c&&c(f)};
k.ss=function(b,c,d){var e=this;if(this.b.hm)Tm(this.b.hm,c);else{var f={offset:b.offset,maxMatches:b.maxMatches},g=b.collectionId;g&&(f.collectionId=g);(g=b.q)&&(f.q=g);(g=b.sort)&&(f.sort=g);(g=b.filter)&&(f.filter=g);(b=b.langCode)&&(f.langCode=b.split(","));this.b.hm=Sm(vp(this.h,K.Su,f,OS),function(b){e.b.hm=null;c(b)},function(b){e.b.hm=null;lx(e.G,"Failed to load exhibits.",b);d&&d()})}};
k.nk=function(b,c,d){if(!this.b.nk){var e={objectType:3};null!=b&&(e.collectionId=b);this.b.nk=Sm(Vm(vp(this.h,K.Uu,e,SS),t(function(){this.b.nk=null},this)),c,d?d:q)}};var VS=function(b,c,d,e){c=c.tc?c.tc().toArray():c.Ea().toArray();c={gallery:Jb(c)};null!=e&&(c[K.gn]=e);Sm(b.h.makeRequest(K.uj,c,fM),t(b.B,b,d),t(b.p,b,q))};US.prototype.B=function(b,c){var d=E(c,qE,1);d&&b(new bH(d))};US.prototype.p=function(b){lx(this.G,"Failed to create the exhibit.");b()};
var XS=function(b,c){this.k=b||null;this.b=!!c;this.S=new oe;this.a=new WS("",void 0);this.a.next=this.a.prev=this.a},ZS=function(b,c){var d=b.S.get(c);d&&b.b&&(d.remove(),YS(b,d));return d};k=XS.prototype;k.get=function(b,c){var d=ZS(this,b);return d?d.value:c};k.shift=function(){var b=this.a.next;this.a!=b&&(b.remove(),this.S.remove(b.key));return b.value};k.remove=function(b){return(b=this.S.get(b))?(b.remove(),this.S.remove(b.key),!0):!1};k.Ub=function(){return this.S.Ub()};k.isEmpty=function(){return this.S.isEmpty()};
k.Dd=function(){return this.map(function(b,c){return c})};k.gc=function(){return this.map(function(b){return b})};k.contains=function(b){return this.some(function(c){return c==b})};k.clear=function(){$S(this,0)};k.forEach=function(b,c){for(var d=this.a.next;d!=this.a;d=d.next)b.call(c,d.value,d.key,this)};k.map=function(b,c){for(var d=[],e=this.a.next;e!=this.a;e=e.next)d.push(b.call(c,e.value,e.key,this));return d};
k.some=function(b,c){for(var d=this.a.next;d!=this.a;d=d.next)if(b.call(c,d.value,d.key,this))return!0;return!1};k.every=function(b,c){for(var d=this.a.next;d!=this.a;d=d.next)if(!b.call(c,d.value,d.key,this))return!1;return!0};
var YS=function(b,c){b.b?(c.next=b.a.next,c.prev=b.a,b.a.next=c,c.next.prev=c):(c.prev=b.a.prev,c.next=b.a,b.a.prev=c,c.prev.next=c);null!=b.k&&$S(b,b.k)},$S=function(b,c){for(var d=b.S.Ub();d>c;d--){var e=b,f=b.b?b.a.prev:b.a.next;f.remove();e.S.remove(f.key)}},WS=function(b,c){this.key=b;this.value=c};WS.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};
var aT=function(b){DE.call(this,b,void 0);this.j=new XS(500,!0)};v(aT,HE);aT.prototype.zi=function(b,c){if(!b.assetIds||!b.assetIds.length)return!1;IE(b.assetIds,t(function(b){aH(this,b);c(this.sb,this.items)},this));return!0};
var bT=function(b,c,d){c.assetIds&&c.assetIds.length&&IE(c.assetIds,t(function(b){aH(this,b);d(this.sb,this.items)},b),!0)},aH=function(b,c){b.items=b.items.concat(c);b.sb=b.items.length;y(c,function(c){c&&cT(b,c)})},cT=function(b,c){var d=b.j,e=c.getId(),f=ZS(d,e);f?f.value=c:(f=new WS(e,c),d.S.xc(e,f),YS(d,f))},hH=function(b,c,d,e){var f=b.j.get(c);d&&f&&f.Lo()&&(b.j.remove(c),f=null);if(f)return $m(f);var g=new Mm;e?bT(b,{assetIds:c},function(){g.callback(b.j.get(c))}):b.zi({assetIds:c},function(){g.callback(b.j.get(c))}); return g};aT.prototype.qd=function(){Ej(this.items);this.items=[];this.sb=0;this.j.clear()};
var dT=function(b,c,d,e,f){$M.call(this,b,c,d);this.G=Y;this.l=e;this.B=f.get("c")};v(dT,$M);k=dT.prototype;k.v=null;k.pq=!1;k.Gm=!0;k.eo=!0;k.aa=null;k.Sb=null;k.Ei=null;k.Fi=null;k.nm=null;k.vc=null;k.Ck=".gci-unified-header, .gci-nav-button, .gci-asset-viewer-navigation-container, .gci-asset-viewer-slider, .gci-asset-viewer-caption, .gci-asset-viewer-sidebar";
k.Na=function(b,c,d){dT.r.Na.call(this,b,c,d);this.v=$("<div>").addClass("gci-asset-viewer-page").appendTo(b);d&&d.loader?(this.Gm=!1,this.aa=d.loader):c.exhibitId?(this.Gm=!1,this.aa=new JS(this.B,{exhibitId:c.exhibitId})):c.assetIds?this.aa=new aT({assetIds:c.assetIds.split(",")}):c["l.id"]&&(this.aa=new aT({assetIds:[c["l.id"]]}));this.aa?b=!0:(sx(this.G),b=!1);b&&(this.aa.bind("focus.gci-asset-viewer",t(this.hr,this)),this.aa.items.length?this.Rt():(this.l&&(S(this.vc),this.vc=new fN("asset")),
this.aa.load({},t(this.Rt,this))))};k.Wa=function(){S(this.vc);this.vc=null;this.Sb&&this.Sb.unbind(".gci-asset-viewer");S(this.Sb);this.Sb=null;this.Ei&&this.Ei.remove();this.Ei=null;this.Fi&&this.Fi.remove();this.Fi=null;this.v&&this.v.remove();this.o=this.v=null;this.Gm?S(this.aa):this.aa.unbind(".gci-asset-viewer");this.aa=null;this.Gm=!0;this.nm=null;dT.r.Wa.call(this)};
k.Rt=function(){if(this.aa.items.length){this.vc&&gN(this.vc,"dl");var b=$("<div>").addClass("gci-asset-viewer-navigation-container").appendTo(this.v);this.pn(b);1<this.aa.items.length&&(this.Ei=$(L(rv)).on("click.gci-asset-viewer",t(function(){this.prev();return!1},this)).appendTo(this.v),this.Fi=$(L(sv)).on("click.gci-asset-viewer",t(function(){this.next();return!1},this)).appendTo(this.v));b=qi(this.Sa(),"l");this.aa.ml(b.id,!0)||(0<this.aa.items.length&&!b.id?this.aa.focus(0,!0):lx(this.G,"Item not found."))}else b=
this.Sa(),b.exhibitId?(delete b.exhibitId,this.G.Oa(this.G.W.Zd,b)):tx("Item not found.",!0)};k.pn=function(b){b.append($('<a href="#close">').addClass("SPRITE_close_big").addClass("gci-asset-viewer-close").on("click",t(function(){this.Fg();return!1},this)))};k.gr=function(b,c,d,e,f,g,h){return new zR(b,c,this.Q,d,e,f,g,h,this.Sa().location)};k.hr=function(){this.focus()};
k.focus=function(b,c,d){var e=this;if(!b&&EE(this.aa).Lo()){var f=EE(this.aa).getId();IE([f],function(b){e.b&&b.length&&e.focus(b[0],void 0,d)})}else if(1<this.aa.items.length&&this.Ei&&this.Fi&&(this.Ei.toggle(this.aa?FE(this.aa):!1),this.Fi.toggle(this.aa?this.aa.Vj():!1)),this.aa.Fe&&this.aa.Fe()&&(f=this.aa.Fe().$j()),EE(this.aa)){var g={};Yb(g,this.Sa());g["l.id"]=EE(this.aa).getId();b&&b.getId()!=g["l.id"]?g["l.expanded-id"]=b.getId():delete g["l.expanded-id"];var h=this.Sa(),l=b||EE(this.aa);
b=!!g.exhibitId;l.Re()&&zC(l)?(this.l&&!this.vc&&(this.vc=new fN("asset")),NC(l,t(function(b){this.vc&&gN(this.vc,"fl");if(h["l.expanded-id"]){var c=!1;$.each(b,t(function(e,f){f.getId()==h["l.expanded-id"]&&h["l.id"]!=h["l.expanded-id"]&&(eT(l,f),this.focus(f,b,d),c=!0)},this))}!c&&1<b.length&&(eT(l,b[1]),this.focus(b[1],b,d))},this))):!AC(l)||zC(l)||c?(this.Sb&&this.Sb.pa().getId()==l.getId()&&b?$R(this.Sb,l):(this.Sb&&this.Sb.unbind(".gci-asset-viewer"),S(this.Sb),this.Sb=null,this.Sb=this.gr(this.v,
l,this.o,f,c,this.nm||0),this.Sb.bind("asset-viewer-opened.gci-asset-viewer",t(function(b,c){this.o=c},this)),this.Sb.bind("annotation-selected.gci-asset-viewer",function(b,c){var d={"l.id":l.getId()};d.location=c.location;e.Fa(d,!0)}),this.nm=null,c&&this.Sb.bind("asset-viewer-focus.gci-asset-viewer",t(function(b,e,f){this.nm=f;$.each(c,t(function(b,f){f.getId()==e&&this.focus(f,c,d)},this))},this))),l.getTitle()&&(g.urlStub=l.getTitle()),this.G.of(window.location.href,TC(l),this.pq),d||this.Fa(g,
!0),this.vc&&gN(this.vc,"ac"),this.vc&&this.vc.report(),S(this.vc),this.vc=null):(this.l&&!this.vc&&(this.vc=new fN("asset")),NC(l,t(function(b){this.vc&&gN(this.vc,"fl");$.each(b,t(function(c,e){e.getId()==l.getId()&&(eT(l,e),this.focus(e,b,d))},this))},this)))}};var eT=function(b,c){b.data("gci.exhibit.caption")&&c.data("gci.exhibit.caption",b.data("gci.exhibit.caption"))};k=dT.prototype;k.next=function(){this.aa&&this.aa&&this.aa.Vj()&&this.aa.next(q)};
k.prev=function(){this.aa&&this.aa&&FE(this.aa)&&this.aa.prev(q)};k.Fg=function(){Rs(this.K,!0)};k.ld=function(){this.prev()};k.md=function(){this.next()};k.cd=function(){this.Sb&&this.Sb.resize()};k.Jo=function(){var b=this.Sb&&this.Sb.pa();return!!b&&fS(b.V,E(b.a,Sy,109),b.qa())};
var fT=function(b,c,d,e,f,g,h,l,m){zR.call(this,b,c,d,e,f,g,h,l,m)};v(fT,zR);fT.prototype.D=function(){this.ia.b&&(this.ia.b.unbind("collections-assets-cart-asset-added"),this.ia.b.unbind("collections-assets-cart-asset-removed"));fT.r.D.call(this)};fT.prototype.e=function(){fT.r.e.call(this);zA(this.F)||this.F.qb()||this.F.Pc()||gT(this)};
var gT=function(b){var c=b.me.find(".gci-unified-header-title-container"),d=$("<img>").addClass("gci-asset-viewer-save").attr("src",Qp()).appendTo(c),e=function(){d.off(".gci-asset-viewer-actions");d.attr("title","Add Item").removeClass("gci-asset-actions-disabled").on("click.gci-asset-viewer-actions",function(){b.ia.Nh(function(){b.ia.b&&b.ia.b.j(b.F,function(){f();xu(b.ia.a)})});return!1})},f=function(){d.off(".gci-asset-viewer-actions");d.attr("title","In Cart").addClass("gci-asset-actions-disabled").on("click.gci-asset-viewer-actions",
function(){return!1})};b.ia.b&&b.ia.b.contains(b.F)?f():e();b.ia.b&&(b.ia.b.bind("collections-assets-cart-asset-added",t(function(b,c){this.F&&c.getId()==this.F.getId()&&f()},b)),b.ia.b.bind("collections-assets-cart-asset-removed",t(function(b,c){this.F&&c.getId()==this.F.getId()&&e()},b)))};
var hT=function(){cp.call(this)};v(hT,cp);hT.prototype.Hp=function(b){b=b.k;return null!=window.FormData&&b&&Gn(b)?.5:0};hT.prototype.clone=function(){var b=new hT;b.bi(this.k,this.j);b.Fm(this.Rk);return b};hT.prototype.Sp=function(b){this.a.wj(b);this.b=b;fi(b.Gb,"rt","j");var c=b.h;b.k?(Cn(this,b),this.xhr.send(b.getUrl(),"POST",new FormData(b.k),c)):this.xhr.send(b.getUrl(),b.b,null,c)};
var iT=function(b,c,d){b=Mv(b).gallery_editor;Tm(b,function(b){c.call(d,b)});Um(b,function(){ux("Sorry, something went wrong.",!0)});Um(b,gn)};var jT=function(b,c,d){$(b);this.target=$(c);this.pageX=d.pageX;this.pageY=d.pageY;this.e=d.clientX;this.g=d.clientY;this.a=null;this.update(d)};jT.prototype.update=function(b){this.offsetX=b.clientX-this.b;this.offsetY=b.clientY-this.k;this.b=b.clientX;this.k=b.clientY};
jT.prototype.Ct=function(){var b=this.b-this.e,c=this.k-this.g,d=Math.abs(b),e=Math.abs(c);0==b&&0==c?this.a="tap":40<e&&e>d?(this.a=0<c?"swipedown":"swipeup",this.target.trigger("swipe",[this])):40<d&&(this.a=0<b?"swiperight":"swipeleft",this.target.trigger("swipe",[this]));this.a&&this.target.trigger(this.a,[this]);this.target.trigger("touch",[this])};jT.prototype.move=function(b){this.update(b);this.target.trigger("swipemove",[this])};
var kT=function(b){this.wm=[];b.bind("touchstart touchmove touchcancel touchend",$.proxy(function(b){b.preventDefault();b.stopPropagation();var d=this,e=b.originalEvent;"touchcancel"==b.type||"touchend"==b.type?$.each(e.changedTouches,function(e,g){var h=d.wm[g.identifier];h&&("touchend"==b.type&&h.Ct(g),delete d.wm[g.identifier])}):"touchstart"==b.type?$.each(e.changedTouches,function(e,g){d.wm[g.identifier]=new jT(d,b.target,g)}):"touchmove"==b.type&&$.each(e.changedTouches,function(b,c){var e=
d.wm[c.identifier];e&&e.move(c)});return!1},this))};(function(b){b.fn.Zg=function(){this.data("gci-touch-handler")||this.data("gci-touch-handler",new kT(this));return this};b.fn.sp=function(){this.data("gci-touch-handler")&&(this.removeData("gci-touch-handler"),this.unbind("touchstart touchmove touchcancel touchend"))}})(jQuery);
var lT=function(b){return M('<div class="gci-ui-simple-popup-container"><span class="gci-ui-simple-popup-message">'+N(b.message)+"</span></div>")};var mT=function(){};mT.prototype.ic=function(){};var nT=function(b,c,d){this.a=b;this.b=c;this.j=d};v(nT,mT);nT.prototype.ic=function(b,c,d){DI(this.a,this.b,b,c,void 0,d,this.j)};var oT=function(b,c,d,e){nT.call(this,b,c);this.k=d?5:0;this.g=e||void 0};v(oT,nT);oT.prototype.h=function(){return this.k};oT.prototype.e=function(b){this.k=b};oT.prototype.ic=function(b,c,d,e){var f=DI(this.a,this.b,b,c,null,d,10,e,this.g);if(f&496){var g=pT(f,this.b);c=pT(f,c);f=DI(this.a,g,b,c,null,d,10,e,this.g);f&496&&(g=pT(f,g),c=pT(f,c),DI(this.a,g,b,c,null,d,this.k,e,this.g))}};var pT=function(b,c){b&48&&(c^=2);b&192&&(c^=1);return c};
var qT=function(b,c,d,e){oT.call(this,b,c,d||e);(d||e)&&this.e(65|(e?32:132))};v(qT,oT);var rT=function(){},sT;ca(rT);var uT=function(){var b=new tT;b.na=function(){return"jfk-checkbox"};return b},vT={button:"pressed",checkbox:"checked",menuitem:"selected",menuitemcheckbox:"checked",menuitemradio:"checked",radio:"checked",tab:"selected",treeitem:"selected"};rT.prototype.Bh=function(){};rT.prototype.ke=function(b){return b.fa().Ka("DIV",wT(this,b).join(" "),b.getContent())};rT.prototype.Rd=function(b){return b};
var yT=function(b,c,d){if(b=b.w?b.w():b){var e=[c];I&&!Jc("7")&&(e=xT(ah(b),c),e.push(c));(d?dh:fh)(b,e)}};rT.prototype.El=function(){return!0};
rT.prototype.oc=function(b,c){c.id&&lr(b,c.id);var d=this.Rd(c);d&&d.firstChild?zT(b,d.firstChild.nextSibling?vb(d.childNodes):d.firstChild):b.Oi=null;var e=0,f=this.na(),g=this.na(),h=!1,l=!1,m=!1,r=vb(ah(c));y(r,function(b){h||b!=f?l||b!=g?e|=this.k(b):l=!0:(h=!0,g==f&&(l=!0));1==this.k(b)&&Vf(d)&&Wf(d)&&Uf(d,!1)},this);b.dc=e;h||(r.push(f),g==f&&(l=!0));l||r.push(g);var u=b.Be;u&&r.push.apply(r,u);if(I&&!Jc("7")){var w=xT(r);0<w.length&&(r.push.apply(r,w),m=!0)}if(!h||!l||u||m)c.className=r.join(" ");
return c};rT.prototype.Fr=function(b){ur(b)&&this.Hr(b.w(),!0);b.isEnabled()&&this.ck(b,b.Va())};var AT=function(b,c,d){if(b=d||b.Bh())d=c.getAttribute("role")||null,b!=d&&Wp(c,b)},CT=function(b,c,d){c.Va()||Xp(d,"hidden",!c.Va());c.isEnabled()||b.tf(d,1,!c.isEnabled());BT(c,8)&&b.tf(d,8,!!(c.dc&8));BT(c,16)&&b.tf(d,16,c.Lb());BT(c,64)&&b.tf(d,64,c.rd())};k=rT.prototype;k.ro=function(b,c){Mq(b,!c,!I&&!yc)};k.Hr=function(b,c){yT(b,this.na()+"-rtl",c)};
k.Gr=function(b){var c;return BT(b,32)&&(c=b.w())?Vf(c)&&Wf(c):!1};k.ck=function(b,c){var d;if(BT(b,32)&&(d=b.w())){if(!c&&b.dc&32){try{d.blur()}catch(e){}b.dc&32&&b.Fl(null)}(Vf(d)&&Wf(d))!=c&&Uf(d,c)}};k.setVisible=function(b,c){Jq(b,c);b&&Xp(b,"hidden",!c)};k.so=function(b,c,d){var e=b.w();if(e){var f=this.a(c);f&&yT(b,f,d);this.tf(e,c,d)}};
k.tf=function(b,c,d){sT||(sT={1:"disabled",8:"selected",16:"checked",64:"expanded"});c=sT[c];var e=b.getAttribute("role")||null;e&&(e=vT[e]||c,c="checked"==c||"selected"==c?e:c);c&&Xp(b,c,d)};k.setContent=function(b,c){var d=this.Rd(b);if(d&&(Jf(d),c))if(ja(c))Rf(d,c);else{var e=function(b){if(b){var c=sf(d);d.appendChild(ja(b)?c.createTextNode(b):b)}};fa(c)?y(c,e):!ga(c)||"nodeType"in c?e(c):y(vb(c),e)}};k.na=function(){return"goog-control"};
var wT=function(b,c){var d=b.na(),e=[d],f=b.na();f!=d&&e.push(f);d=c.dc;for(f=[];d;){var g=d&-d;f.push(b.a(g));d&=~g}e.push.apply(e,f);(d=c.Be)&&e.push.apply(e,d);I&&!Jc("7")&&e.push.apply(e,xT(e));return e},xT=function(b,c){var d=[];c&&(b=b.concat([c]));y([],function(e){!lb(e,sa(pb,b))||c&&!pb(e,c)||d.push(e.join("_"))});return d};rT.prototype.a=function(b){this.b||DT(this);return this.b[b]};
rT.prototype.k=function(b){if(!this.I){this.b||DT(this);var c=this.b,d={},e;for(e in c)d[c[e]]=e;this.I=d}b=parseInt(this.I[b],10);return isNaN(b)?0:b};var DT=function(b){var c=b.na();c.replace(/\xa0|\s/g," ");b.b={1:c+"-disabled",2:c+"-hover",4:c+"-active",8:c+"-selected",16:c+"-checked",32:c+"-focused",64:c+"-open"}};
var ET=function(){};v(ET,rT);ca(ET);k=ET.prototype;k.Bh=function(){return"button"};k.tf=function(b,c,d){switch(c){case 8:case 16:Xp(b,"pressed",d);break;default:case 64:case 1:ET.r.tf.call(this,b,c,d)}};k.ke=function(b){var c=ET.r.ke.call(this,b);FT(c,b.g);var d=b.getValue();d&&this.Cl(c,d);BT(b,16)&&this.tf(c,16,b.Lb());return c};k.oc=function(b,c){c=ET.r.oc.call(this,b,c);var d=this.getValue(c);b.Db=d;b.g=c.title;BT(b,16)&&this.tf(c,16,b.Lb());return c};k.getValue=q;k.Cl=q; var FT=function(b,c){b&&(c?b.title=c:b.removeAttribute("title"))};ET.prototype.na=function(){return"goog-button"};
var HT=function(b,c){if(!b)throw Error("yb`"+b);if(!la(c))throw Error("zb`"+c);GT[b]=c},IT={},GT={};var JT=function(b,c,d){jr.call(this,d);if(!c){c=this.constructor;for(var e;c;){e=pa(c);if(e=IT[e])break;c=c.r?c.r.constructor:null}c=e?la(e.pb)?e.pb():new e:null}this.b=c;this.Oi=p(b)?b:null};v(JT,jr);k=JT.prototype;k.Oi=null;k.dc=0;k.Mk=39;k.zj=255;k.Lk=0;k.Gl=!0;k.Be=null;k.Pl=!0;k.to=null;var LT=function(b,c){b.mb&&c!=b.Pl&&KT(b,c);b.Pl=c};k=JT.prototype;k.wb=function(){var b=this.b.ke(this);this.P=b;AT(this.b,b,this.ek());this.b.ro(b,!1);this.Va()||this.b.setVisible(b,!1)};k.ek=function(){return this.to};
k.Mc=function(){return this.b.Rd(this.w())};k.Dl=function(b){return this.b.El(b)};k.Ha=function(b){this.P=b=this.b.oc(this,b);AT(this.b,b,this.ek());this.b.ro(b,!1);this.Gl="none"!=b.style.display};k.Ia=function(){JT.r.Ia.call(this);CT(this.b,this,this.P);this.b.Fr(this);if(this.Mk&-2&&(this.Pl&&KT(this,!0),BT(this,32))){var b=this.w();if(b){var c=this.A||(this.A=new bJ);aJ(c,b);nr(this).C(c,"key",this.le).C(b,"focus",this.kx).C(b,"blur",this.Fl)}}};
var KT=function(b,c){var d=nr(b),e=b.w();c?(d.C(e,"mouseover",b.Ca).C(e,"mousedown",b.Je).C(e,"mouseup",b.Ne).C(e,"mouseout",b.Xa),b.R!=q&&d.C(e,"contextmenu",b.R),I&&(d.C(e,"dblclick",b.Rr),b.ca||(b.ca=new MT(b),b.J(b.ca)))):(d.k(e,"mouseover",b.Ca).k(e,"mousedown",b.Je).k(e,"mouseup",b.Ne).k(e,"mouseout",b.Xa),b.R!=q&&d.k(e,"contextmenu",b.R),I&&(d.k(e,"dblclick",b.Rr),S(b.ca),b.ca=null))};
JT.prototype.Rb=function(){JT.r.Rb.call(this);this.A&&hJ(this.A);this.Va()&&this.isEnabled()&&this.b.ck(this,!1)};JT.prototype.D=function(){JT.r.D.call(this);this.A&&(this.A.la(),delete this.A);delete this.b;this.ca=this.Be=this.Oi=null};JT.prototype.getContent=function(){return this.Oi};JT.prototype.setContent=function(b){this.b.setContent(this.w(),b);this.Oi=b};var zT=function(b,c){b.Oi=c};k=JT.prototype;
k.Kc=function(){var b=this.getContent();if(!b)return"";b=ja(b)?b:fa(b)?hb(b,Zf).join(""):Yf(b);return Fa(b)};k.Va=function(){return this.Gl};k.setVisible=function(b,c){if(c||this.Gl!=b&&this.dispatchEvent(b?"show":"hide")){var d=this.w();d&&this.b.setVisible(d,b);this.isEnabled()&&this.b.ck(this,b);this.Gl=b;return!0}return!1};k.isEnabled=function(){return!(this.dc&1)};
k.Ga=function(b){var c=this.wg();c&&"function"==typeof c.isEnabled&&!c.isEnabled()||!NT(this,1,!b)||(b||(OT(this,!1),PT(this,!1)),this.Va()&&this.b.ck(this,b),QT(this,1,!b,!0))};var PT=function(b,c){NT(b,2,c)&&QT(b,2,c)},OT=function(b,c){NT(b,4,c)&&QT(b,4,c)};k=JT.prototype;k.Fp=function(b){NT(this,8,b)&&QT(this,8,b)};k.Lb=function(){return!!(this.dc&16)};k.Yc=function(b){NT(this,16,b)&&QT(this,16,b)};k.Og=function(b){NT(this,32,b)&&QT(this,32,b)};k.rd=function(){return!!(this.dc&64)};
k.sc=function(b){NT(this,64,b)&&QT(this,64,b)};var QT=function(b,c,d,e){e||1!=c?BT(b,c)&&d!=!!(b.dc&c)&&(b.b.so(b,c,d),b.dc=d?b.dc|c:b.dc&~c):b.Ga(!d)},BT=function(b,c){return!!(b.Mk&c)};JT.prototype.Sc=function(b,c){if(this.mb&&this.dc&b&&!c)throw Error("Ca");!c&&this.dc&b&&QT(this,b,!1);this.Mk=c?this.Mk|b:this.Mk&~b};var RT=function(b,c){return!!(b.zj&c)&&BT(b,c)},NT=function(b,c,d){return BT(b,c)&&!!(b.dc&c)!=d&&(!(b.Lk&c)||b.dispatchEvent(kr(c,d)))&&!b.isDisposed()};
JT.prototype.Ca=function(b){!ST(b,this.w())&&this.dispatchEvent("enter")&&this.isEnabled()&&RT(this,2)&&PT(this,!0)};JT.prototype.Xa=function(b){!ST(b,this.w())&&this.dispatchEvent("leave")&&(RT(this,4)&&OT(this,!1),RT(this,2)&&PT(this,!1))};JT.prototype.R=q;var ST=function(b,c){return!!b.k&&Pf(c,b.k)};k=JT.prototype;k.Je=function(b){this.isEnabled()&&(RT(this,2)&&PT(this,!0),Qj(b)&&(RT(this,4)&&OT(this,!0),this.b&&this.b.Gr(this)&&this.w().focus()));Qj(b)&&b.preventDefault()};
k.Ne=function(b){this.isEnabled()&&(RT(this,2)&&PT(this,!0),this.dc&4&&this.Jg(b)&&RT(this,4)&&OT(this,!1))};k.Rr=function(b){this.isEnabled()&&this.Jg(b)};k.Jg=function(b){RT(this,16)&&this.Yc(!this.Lb());RT(this,8)&&this.Fp(!0);RT(this,64)&&this.sc(!this.rd());var c=new Jj("action",this);b&&(c.altKey=b.altKey,c.ctrlKey=b.ctrlKey,c.metaKey=b.metaKey,c.shiftKey=b.shiftKey,c.e=b.e);return this.dispatchEvent(c)};k.kx=function(){RT(this,32)&&this.Og(!0)};
k.Fl=function(){RT(this,4)&&OT(this,!1);RT(this,32)&&this.Og(!1)};k.le=function(b){return this.Va()&&this.isEnabled()&&this.Ch(b)?(b.preventDefault(),b.stopPropagation(),!0):!1};k.Ch=function(b){return 13==b.keyCode&&this.Jg(b)};if(!la(JT))throw Error("Ab`"+JT);if(!la(rT))throw Error("Bb`"+rT);var TT=pa(JT);IT[TT]=rT;HT("goog-control",function(){return new JT(null)});
var MT=function(b){this.b=b;this.a=!1;this.k=new U(this);this.J(this.k);b=this.b.P;this.k.C(b,"mousedown",this.g).C(b,"mouseup",this.h).C(b,"click",this.e)};v(MT,Bj);MT.prototype.g=function(){this.a=!1};MT.prototype.h=function(){this.a=!0};MT.prototype.e=function(b){if(this.a)this.a=!1;else{var c=b.Kb,d=c.button,e=c.type;c.button=0;c.type="mousedown";this.b.Je(new Nj(c,b.currentTarget));c.type="mouseup";this.b.Ne(new Nj(c,b.currentTarget));c.button=d;c.type=e}}; MT.prototype.D=function(){this.b=null;MT.r.D.call(this)};
var UT=function(){};v(UT,ET);ca(UT);k=UT.prototype;k.Bh=function(){};k.ke=function(b){LT(b,!1);b.zj&=-256;b.Sc(32,!1);return b.fa().Ka("BUTTON",{"class":wT(this,b).join(" "),disabled:!b.isEnabled(),title:b.g||"",value:b.getValue()||""},b.Kc()||"")};k.El=function(b){return"BUTTON"==b.tagName||"INPUT"==b.tagName&&("button"==b.type||"submit"==b.type||"reset"==b.type)};k.oc=function(b,c){LT(b,!1);b.zj&=-256;b.Sc(32,!1);if(c.disabled){var d=this.a(1);ch(c,d)}return UT.r.oc.call(this,b,c)};
k.Fr=function(b){nr(b).C(b.w(),"click",b.Jg)};k.ro=q;k.Hr=q;k.Gr=function(b){return b.isEnabled()};k.ck=q;k.so=function(b,c,d){UT.r.so.call(this,b,c,d);(b=b.w())&&1==c&&(b.disabled=d)};k.getValue=function(b){return b.value};k.Cl=function(b,c){b&&(b.value=c)};k.tf=q;
var VT=function(b,c,d){JT.call(this,b,c||UT.pb(),d)};v(VT,JT);k=VT.prototype;k.getValue=function(){return this.Db};k.Jf=function(b){this.Db=b;this.b.Cl(this.w(),b)};k.yh=function(b){this.g=b;FT(this.w(),b)};k.D=function(){VT.r.D.call(this);delete this.Db;delete this.g};k.Ia=function(){VT.r.Ia.call(this);if(BT(this,32)){var b=this.w();b&&nr(this).C(b,"keyup",this.Ch)}};k.Ch=function(b){return 13==b.keyCode&&"key"==b.type||32==b.keyCode&&"keyup"==b.type?this.Jg(b):32==b.keyCode};HT("goog-button",function(){return new VT(null)});
var WT=function(b){this.e=b};ca(WT);var XT=function(b,c){b&&(b.tabIndex=c?0:-1)};WT.prototype.b=function(b){return"DIV"==b.tagName};
var $T=function(b,c,d){d.id&&lr(c,d.id);var e=b.na(),f=!1,g=ah(d);g&&y(g,function(b){if(b==e)f=!0;else if(b)if(b==e+"-disabled")c.Ga(!1);else if(b==e+"-horizontal"){if(c.w())throw Error("Ca");c.xg="horizontal"}else if(b==e+"-vertical"){if(c.w())throw Error("Ca");c.xg="vertical"}},b);f||ch(d,e);ZT(b,c,d);return d},ZT=function(b,c,d){if(d)for(var e=d.firstChild,f;e&&e.parentNode==d;){f=e.nextSibling;if(1==e.nodeType){var g=b.a(e);g&&(g.P=e,c.isEnabled()||g.Ga(!1),c.Ib(g),g.fb(e))}else e.nodeValue&&
""!=Ga(e.nodeValue)||d.removeChild(e);e=f}};WT.prototype.a=function(b){a:{var c;b=ah(b);for(var d=0,e=b.length;d<e;d++)if(c=b[d],c=c in GT?GT[c]():null){b=c;break a}b=null}return b};WT.prototype.k=function(b){b=b.w();Mq(b,!0,zc);I&&(b.hideFocus=!0);var c=this.e;c&&Wp(b,c)};WT.prototype.na=function(){return"goog-container"};var aU=function(b,c){var d=b.na(),e=[d,"horizontal"==c.xg?d+"-horizontal":d+"-vertical"];c.isEnabled()||e.push(d+"-disabled");return e};
var bU=function(b,c,d){jr.call(this,d);this.yg=c||WT.pb();this.xg=b||"vertical"};v(bU,jr);k=bU.prototype;k.Po=null;k.Ah=null;k.yg=null;k.xg=null;k.Kf=!0;k.zh=!0;k.Di=!0;k.Gc=-1;k.Hc=null;k.Uf=!1;k.xf=null;var cU=function(b){return b.Po||b.w()};k=bU.prototype;k.wb=function(){var b=this.yg;this.P=this.fa().Ka("DIV",aU(b,this).join(" "))};k.Mc=function(){return this.w()};k.Dl=function(b){return this.yg.b(b)};k.Ha=function(b){this.P=$T(this.yg,this,b);"none"==b.style.display&&(this.Kf=!1)};
k.Ia=function(){bU.r.Ia.call(this);rr(this,function(b){b.mb&&dU(this,b)},this);var b=this.w();this.yg.k(this);this.setVisible(this.Kf,!0);nr(this).C(this,"enter",this.Ao).C(this,"highlight",this.hx).C(this,"unhighlight",this.jx).C(this,"open",this.Bx).C(this,"close",this.gx).C(b,"mousedown",this.ix).C(sf(b),"mouseup",this.ux).C(b,["mousedown","mouseup","mouseover","mouseout","contextmenu"],this.sx);this.Di&&eU(this,!0)};
var eU=function(b,c){var d=nr(b),e=cU(b);c?d.C(e,"focus",b.Er).C(e,"blur",b.Dr).C(b.Ah||(b.Ah=new bJ(cU(b))),"key",b.le):d.k(e,"focus",b.Er).k(e,"blur",b.Dr).k(b.Ah||(b.Ah=new bJ(cU(b))),"key",b.le)};k=bU.prototype;k.Rb=function(){this.Pg(-1);this.Hc&&this.Hc.sc(!1);this.Uf=!1;bU.r.Rb.call(this)};k.D=function(){bU.r.D.call(this);this.Ah&&(this.Ah.la(),this.Ah=null);this.yg=this.Hc=this.xf=this.Po=null};k.Ao=function(){return!0};
k.hx=function(b){var c=vr(this,b.target);if(-1<c&&c!=this.Gc){var d=fU(this);d&&PT(d,!1);this.Gc=c;d=fU(this);this.Uf&&OT(d,!0);this.Hc&&d!=this.Hc&&(BT(d,64)?d.sc(!0):this.Hc.sc(!1))}c=this.w();null!=b.target.w()&&Xp(c,"activedescendant",b.target.w().id)};k.jx=function(b){b.target==fU(this)&&(this.Gc=-1);this.w().removeAttribute("aria-activedescendant")};k.Bx=function(b){(b=b.target)&&b!=this.Hc&&b.wg()==this&&(this.Hc&&this.Hc.sc(!1),this.Hc=b)};k.gx=function(b){b.target==this.Hc&&(this.Hc=null)};
k.ix=function(b){this.zh&&(this.Uf=!0);var c=cU(this);c&&Vf(c)&&Wf(c)?c.focus():b.preventDefault()};k.ux=function(){this.Uf=!1};k.sx=function(b){var c;a:{c=b.target;if(this.xf)for(var d=this.w();c&&c!==d;){var e=c.id;if(e in this.xf){c=this.xf[e];break a}c=c.parentNode}c=null}if(c)switch(b.type){case "mousedown":c.Je(b);break;case "mouseup":c.Ne(b);break;case "mouseover":c.Ca(b);break;case "mouseout":c.Xa(b);break;case "contextmenu":c.R(b)}};k.Er=function(){};
k.Dr=function(){this.Pg(-1);this.Uf=!1;this.Hc&&this.Hc.sc(!1)};k.le=function(b){return this.isEnabled()&&this.Va()&&(0!=sr(this)||this.Po)&&this.qo(b)?(b.preventDefault(),b.stopPropagation(),!0):!1};
k.qo=function(b){var c=fU(this);if(c&&"function"==typeof c.le&&c.le(b)||this.Hc&&this.Hc!=c&&"function"==typeof this.Hc.le&&this.Hc.le(b))return!0;if(b.shiftKey||b.ctrlKey||b.metaKey||b.altKey)return!1;switch(b.keyCode){case 27:if(this.Di)cU(this).blur();else return!1;break;case 36:gU(this);break;case 35:hU(this);break;case 38:if("vertical"==this.xg)iU(this);else return!1;break;case 37:if("horizontal"==this.xg)ur(this)?jU(this):iU(this);else return!1;break;case 40:if("vertical"==this.xg)jU(this);
else return!1;break;case 39:if("horizontal"==this.xg)ur(this)?iU(this):jU(this);else return!1;break;default:return!1}return!0};var dU=function(b,c){var d=c.w(),d=d.id||(d.id=c.getId());b.xf||(b.xf={});b.xf[d]=c};k=bU.prototype;k.Ib=function(b,c){bU.r.Ib.call(this,b,c)};
k.mn=function(b,c,d){b.Lk|=2;b.Lk|=64;b.Sc(32,!1);LT(b,!1);var e=b.wg()==this?vr(this,b):-1;bU.r.mn.call(this,b,c,d);b.mb&&this.mb&&dU(this,b);b=e;-1==b&&(b=sr(this));b==this.Gc?this.Gc=Math.min(sr(this)-1,c):b>this.Gc&&c<=this.Gc?this.Gc++:b<this.Gc&&c>this.Gc&&this.Gc--};
k.removeChild=function(b,c){if(b=ja(b)?or(this,b):b){var d=vr(this,b);-1!=d&&(d==this.Gc?(PT(b,!1),this.Gc=-1):d<this.Gc&&this.Gc--);var e=b.w();e&&e.id&&this.xf&&(d=this.xf,e=e.id,e in d&&delete d[e])}b=bU.r.removeChild.call(this,b,c);LT(b,!0);return b};k.Va=function(){return this.Kf};
k.setVisible=function(b,c){if(c||this.Kf!=b&&this.dispatchEvent(b?"show":"hide")){this.Kf=b;var d=this.w();d&&(Jq(d,b),this.Di&&XT(cU(this),this.zh&&this.Kf),c||this.dispatchEvent(this.Kf?"aftershow":"afterhide"));return!0}return!1};k.isEnabled=function(){return this.zh};
k.Ga=function(b){this.zh!=b&&this.dispatchEvent(b?"enable":"disable")&&(b?(this.zh=!0,rr(this,function(b){b.ku?delete b.ku:b.Ga(!0)})):(rr(this,function(b){b.isEnabled()?b.Ga(!1):b.ku=!0}),this.Uf=this.zh=!1),this.Di&&XT(cU(this),b&&this.Kf))};var kU=function(b,c){c!=b.Di&&b.mb&&eU(b,c);b.Di=c;b.zh&&b.Kf&&XT(cU(b),c)};bU.prototype.Pg=function(b){(b=tr(this,b))?PT(b,!0):-1<this.Gc&&PT(fU(this),!1)};
var fU=function(b){return tr(b,b.Gc)},gU=function(b){lU(b,function(b,d){return(b+1)%d},sr(b)-1)},hU=function(b){lU(b,function(b,d){b--;return 0>b?d-1:b},0)},jU=function(b){lU(b,function(b,d){return(b+1)%d},b.Gc)},iU=function(b){lU(b,function(b,d){b--;return 0>b?d-1:b},b.Gc)},lU=function(b,c,d){d=0>d?vr(b,b.Hc):d;var e=sr(b);d=c.call(b,d,e);for(var f=0;f<=e;){var g=tr(b,d);if(g&&b.zq(g)){b.Pg(d);break}f++;d=c.call(b,d,e)}};bU.prototype.zq=function(b){return b.Va()&&b.isEnabled()&&BT(b,2)};
var mU=function(){};v(mU,ET);ca(mU);k=mU.prototype;k.ke=function(b){var c={"class":"goog-inline-block "+wT(this,b).join(" ")},c=b.fa().Ka("DIV",c,this.Hl(b.getContent(),b.fa()));FT(c,b.g);return c};k.Bh=function(){return"button"};k.Rd=function(b){return b&&b.firstChild&&b.firstChild.firstChild};k.Hl=function(b,c){return c.Ka("DIV","goog-inline-block "+(this.na()+"-outer-box"),c.Ka("DIV","goog-inline-block "+(this.na()+"-inner-box"),b))};k.El=function(b){return"DIV"==b.tagName};
k.oc=function(b,c){nU(c,!0);nU(c,!1);var d;a:{d=b.fa().rr(c);var e=this.na()+"-outer-box";if(d&&bh(d,e)&&(d=b.fa().rr(d),e=this.na()+"-inner-box",d&&bh(d,e))){d=!0;break a}d=!1}d||c.appendChild(this.Hl(c.childNodes,b.fa()));dh(c,["goog-inline-block",this.na()]);return mU.r.oc.call(this,b,c)};k.na=function(){return"goog-custom-button"};
var nU=function(b,c){if(b)for(var d=c?b.firstChild:b.lastChild,e;d&&d.parentNode==b;){e=c?d.nextSibling:d.previousSibling;if(3==d.nodeType){var f=d.nodeValue;if(""==Ga(f))b.removeChild(d);else{d.nodeValue=c?f.replace(/^[\s\xa0]+/,""):f.replace(/[\s\xa0]+$/,"");break}}else break;d=e}};
var oU=function(){};v(oU,ET);ca(oU);k=oU.prototype;k.ke=function(b){var c={"class":"goog-inline-block "+wT(this,b).join(" ")},c=b.fa().Ka("DIV",c,b.getContent());FT(c,b.g);return c};k.Bh=function(){return"button"};k.El=function(b){return"DIV"==b.tagName};k.oc=function(b,c){ch(c,"goog-inline-block");return oU.r.oc.call(this,b,c)};k.getValue=function(){return""};k.na=function(){return"goog-flat-button"};HT("goog-flat-button",function(){return new VT(null,oU.pb())});
var pU=function(){};v(pU,rT);ca(pU);pU.prototype.na=function(){return"goog-menuheader"};var qU=function(b,c,d){JT.call(this,b,d||pU.pb(),c);this.Sc(1,!1);this.Sc(2,!1);this.Sc(4,!1);this.Sc(32,!1);this.dc=1};v(qU,JT);HT("goog-menuheader",function(){return new qU(null)});var rU=function(){this.e=[]};v(rU,rT);ca(rU);var sU=function(b,c){var d=b.e[c];if(!d){switch(c){case 0:d=b.na()+"-highlight";break;case 1:d=b.na()+"-checkbox";break;case 2:d=b.na()+"-content"}b.e[c]=d}return d};k=rU.prototype;k.Bh=function(){return"menuitem"};k.ke=function(b){var c=b.fa().Ka("DIV",wT(this,b).join(" "),tU(this,b.getContent(),b.fa()));uU(this,b,c,BT(b,8)||BT(b,16));return c};k.Rd=function(b){return b&&b.firstChild};
k.oc=function(b,c){var d=Nf(c),e=sU(this,2);d&&bh(d,e)||c.appendChild(tU(this,c.childNodes,b.fa()));bh(c,"goog-option")&&(b.Sc(16,!0),b&&c&&uU(this,b,c,!0));return rU.r.oc.call(this,b,c)};k.setContent=function(b,c){var d=this.Rd(b),e=vU(this,b)?d.firstChild:null;rU.r.setContent.call(this,b,c);e&&!vU(this,b)&&d.insertBefore(e,d.firstChild||null)};
var tU=function(b,c,d){b=sU(b,2);return d.Ka("DIV",b,c)},vU=function(b,c){var d=b.Rd(c);if(d){var d=d.firstChild,e=sU(b,1);return!!d&&Of(d)&&bh(d,e)}return!1},uU=function(b,c,d,e){AT(b,d,c.ek());CT(b,c,d);e!=vU(b,d)&&(gh(d,"goog-option",e),d=b.Rd(d),e?(b=sU(b,1),d.insertBefore(c.fa().Ka("DIV",b),d.firstChild||null)):d.removeChild(d.firstChild))};rU.prototype.a=function(b){switch(b){case 2:return sU(this,0);case 16:case 8:return"goog-option-selected";default:return rU.r.a.call(this,b)}}; rU.prototype.k=function(b){var c=sU(this,0);switch(b){case "goog-option-selected":return 16;case c:return 2;default:return rU.r.k.call(this,b)}};rU.prototype.na=function(){return"goog-menuitem"};
var wU=function(b,c,d,e){JT.call(this,b,e||rU.pb(),d);this.O=c};v(wU,JT);k=wU.prototype;k.getValue=function(){var b=this.O;return null!=b?b:this.Kc()};k.Sc=function(b,c){wU.r.Sc.call(this,b,c);switch(b){case 8:this.Lb()&&!c&&this.Yc(!1);var d=this.w();d&&this&&d&&uU(this.b,this,d,c);break;case 16:(d=this.w())&&this&&d&&uU(this.b,this,d,c)}};
k.Kc=function(){var b=this.getContent();return fa(b)?(b=hb(b,function(b){return Of(b)&&(bh(b,"goog-menuitem-accel")||bh(b,"goog-menuitem-mnemonic-separator"))?"":Zf(b)}).join(""),Fa(b)):wU.r.Kc.call(this)};k.Ne=function(b){var c=this.wg();if(c){var d=c.a;c.a=null;if(d&&ka(b.clientX)&&nf(d,new mf(b.clientX,b.clientY)))return}wU.r.Ne.call(this,b)};k.Ch=function(b){return b.keyCode==this.As&&this.Jg(b)?!0:wU.r.Ch.call(this,b)};k.Xw=function(){return this.As};HT("goog-menuitem",function(){return new wU(null)}); wU.prototype.ek=function(){return BT(this,16)?"menuitemcheckbox":BT(this,8)?"menuitemradio":wU.r.ek.call(this)};wU.prototype.wg=function(){return JT.prototype.wg.call(this)};wU.prototype.xl=function(){return JT.prototype.xl.call(this)};
var xU=function(){};v(xU,rT);ca(xU);xU.prototype.ke=function(b){return b.fa().Ka("DIV",this.na())};xU.prototype.oc=function(b,c){c.id&&lr(b,c.id);if("HR"==c.tagName){var d=c;c=this.ke(b);Kf(c,d);Lf(d)}else ch(c,this.na());return c};xU.prototype.setContent=function(){};xU.prototype.na=function(){return"goog-menuseparator"};
var yU=function(b,c){JT.call(this,null,b||xU.pb(),c);this.Sc(1,!1);this.Sc(2,!1);this.Sc(4,!1);this.Sc(32,!1);this.dc=1};v(yU,JT);yU.prototype.Ia=function(){yU.r.Ia.call(this);var b=this.w();Wp(b,"separator")};HT("goog-menuseparator",function(){return new yU});
var zU=function(b){this.e=b||"menu"};v(zU,WT);ca(zU);zU.prototype.b=function(b){return"UL"==b.tagName||zU.r.b.call(this,b)};zU.prototype.a=function(b){return"HR"==b.tagName?new yU:zU.r.a.call(this,b)};zU.prototype.na=function(){return"goog-menu"};zU.prototype.k=function(b){zU.r.k.call(this,b);b=b.w();Xp(b,"haspopup","true")};
var AU=function(b){yU.call(this,xU.pb(),b)};v(AU,yU);HT("goog-menuseparator",function(){return new yU});var BU=function(b,c){bU.call(this,"vertical",c||zU.pb(),b);kU(this,!1)};v(BU,bU);k=BU.prototype;k.rn=!0;k.na=function(){return this.yg.na()};k.getPosition=function(){return this.Va()?wq(this.w()):null};k.setVisible=function(b,c,d){(c=BU.r.setVisible.call(this,b,c))&&b&&this.mb&&this.rn&&cU(this).focus();b&&d&&ka(d.clientX)?this.a=new mf(d.clientX,d.clientY):this.a=null;return c};k.Ao=function(b){this.rn&&cU(this).focus();return BU.r.Ao.call(this,b)};
k.zq=function(b){return b.isEnabled()&&b.Va()&&BT(b,2)};k.Ha=function(b){var c=this.yg,d;d=this.fa();d=vf(d.a,"DIV",c.na()+"-content",b);for(var e=d.length,f=0;f<e;f++)ZT(c,this,d[f]);BU.r.Ha.call(this,b)};k.qo=function(b){var c=BU.r.qo.call(this,b);c||rr(this,function(d){!c&&d.Xw&&d.As==b.keyCode&&(this.isEnabled()&&this.Pg(vr(this,d)),c=d.le(b))},this);return c};k.Pg=function(b){BU.r.Pg.call(this,b);(b=tr(this,b))&&zq(b.w(),this.w())};
var CU=function(){};v(CU,mU);ca(CU);CU.prototype.Rd=function(b){return CU.r.Rd.call(this,b&&b.firstChild)};CU.prototype.oc=function(b,c){var d=vf(document,"*","goog-menu",c)[0];if(d){Jq(d,!1);sf(d).body.appendChild(d);var e=new BU;e.fb(d);b.Pi(e)}return CU.r.oc.call(this,b,c)};CU.prototype.Hl=function(b,c){return CU.r.Hl.call(this,[c.Ka("DIV","goog-inline-block "+(this.na()+"-caption"),b),c.Ka("DIV","goog-inline-block "+(this.na()+"-dropdown"),"\u00a0")],c)};CU.prototype.na=function(){return"goog-menu-button"};
var DU=function(b,c,d,e,f){VT.call(this,b,d||CU.pb(),e);this.Sc(64,!0);this.K=new qT(null,5);c&&this.Pi(c);this.sa=new Im(500);!mi&&!ni||Jc("533.17.9")||(this.kk=!0);this.Jh=f||zU.pb()};v(DU,VT);k=DU.prototype;k.kk=!1;k.Ia=function(){DU.r.Ia.call(this);EU(this,!0);this.a&&FU(this,this.a,!0);Xp(this.P,"haspopup",!!this.a)};k.Rb=function(){DU.r.Rb.call(this);EU(this,!1);if(this.a){this.sc(!1);this.a.Rb();FU(this,this.a,!1);var b=this.a.w();b&&Lf(b)}};
k.D=function(){DU.r.D.call(this);this.a&&(this.a.la(),delete this.a);delete this.Kh;this.sa.la()};k.Je=function(b){DU.r.Je.call(this,b);this.dc&4&&(this.sc(!this.rd(),b),this.a&&(b=this.rd(),this.a.Uf=b))};k.Ne=function(b){DU.r.Ne.call(this,b);!this.a||this.dc&4||(this.a.Uf=!1)};k.Jg=function(){OT(this,!1);return!0};k.tx=function(b){this.a&&this.a.Va()&&!this.vo(b.target)&&this.sc(!1)};
k.vo=function(b){var c;if(!(c=b&&Pf(this.w(),b))&&(c=this.a))a:if(c=this.a,Pf(c.w(),b))c=!0;else{for(var d=0,e=sr(c);d<e;d++){var f=tr(c,d);if("function"==typeof f.vo&&f.vo(b)){c=!0;break a}}c=!1}return c||!1};
k.Ch=function(b){if(32==b.keyCode){if(b.preventDefault(),"keyup"!=b.type)return!0}else if("key"!=b.type)return!1;if(this.a&&this.a.Va()){var c=13==b.keyCode||32==b.keyCode,d=this.a.le(b);return 27==b.keyCode||c?(this.sc(!1),!0):d}return 40==b.keyCode||38==b.keyCode||32==b.keyCode||13==b.keyCode?(this.sc(!0,b),!0):!1};k.Bo=function(){this.sc(!1)};k.Ax=function(){this.dc&4||this.sc(!1)};k.Fl=function(b){this.kk||this.sc(!1);DU.r.Fl.call(this,b)};
var GU=function(b){b.a||b.Pi(new BU(b.fa(),b.Jh));return b.a||null};DU.prototype.Pi=function(b){var c=this.a;if(b!=c&&(c&&(this.sc(!1),this.mb&&FU(this,c,!1),delete this.a),this.mb&&Xp(this.P,"haspopup",!!b),b)){this.a=b;pr(b,this);b.setVisible(!1);var d=this.kk;(b.rn=d)&&kU(b,!0);this.mb&&FU(this,b,!0)}return c};DU.prototype.ga=function(b){GU(this).Ib(b,!0)};DU.prototype.setVisible=function(b,c){var d=DU.r.setVisible.call(this,b,c);d&&!this.Va()&&this.sc(!1);return d};
DU.prototype.Ga=function(b){DU.r.Ga.call(this,b);this.isEnabled()||this.sc(!1)};var HU=function(b){b.K.e&&b.K.e(33)};
DU.prototype.sc=function(b,c){DU.r.sc.call(this,b);if(this.a&&!!(this.dc&64)==b){if(b)this.a.mb||this.a.render(),this.ad=xq(this.w()),this.Tc=Hq(this.w()),IU(this),!c||40!=c.keyCode&&38!=c.keyCode?this.a.Pg(-1):gU(this.a);else{OT(this,!1);this.a.Uf=!1;var d=this.w();d&&(Xp(d,"activedescendant",""),Xp(d,"owns",""));null!=this.Ja&&(this.Ja=void 0,(d=this.a.w())&&Dq(d,"",""))}this.a.setVisible(b,!1,c);if(!this.isDisposed()){var d=nr(this),e=b?d.C:d.k;e.call(d,this.fa().zb(),"mousedown",this.tx,!0);this.kk&&
e.call(d,this.a,"blur",this.Ax);e.call(d,this.sa,"tick",this.Bf);b?this.sa.start():this.sa.stop()}}this.a&&this.a.w()&&this.a.P.removeAttribute("aria-hidden")};var IU=function(b){if(b.a.mb){var c=b.Kh||b.w(),d=b.K;b.K.a=c;c=b.a.w();b.a.Va()||(c.style.visibility="hidden",Jq(c,!0));!b.Ja&&b.K.h&&b.K.k&32&&(b.Ja=Eq(c));d.ic(c,d.b^1,null,b.Ja);b.a.Va()||(Jq(c,!1),c.style.visibility="visible")}};
DU.prototype.Bf=function(){var b=Hq(this.w()),c=xq(this.w()),d;d=this.Tc;(d=!(d==b||d&&b&&d.left==b.left&&d.width==b.width&&d.top==b.top&&d.height==b.height))||(d=this.ad,d=!(d==c||d&&c&&d.top==c.top&&d.right==c.right&&d.bottom==c.bottom&&d.left==c.left));d&&(this.Tc=b,this.ad=c,IU(this))};
var FU=function(b,c,d){var e=nr(b);d=d?e.C:e.k;d.call(e,c,"action",b.Bo);d.call(e,c,"close",b.Wd);d.call(e,c,"highlight",b.Xd);d.call(e,c,"unhighlight",b.ze)},EU=function(b,c){var d=nr(b);(c?d.C:d.k).call(d,b.w(),"keydown",b.Ih)};DU.prototype.Xd=function(b){(b=b.target.w())&&JU(this,b)};DU.prototype.Ih=function(b){BT(this,32)&&this.w()&&this.a&&this.a.Va()&&b.stopPropagation()};DU.prototype.ze=function(){if(!fU(this.a)){var b=this.w();Xp(b,"activedescendant","");Xp(b,"owns","")}};
DU.prototype.Wd=function(b){if(this.rd()&&b.target instanceof wU){b=b.target;var c=b.w();b.Va()&&b.dc&2&&null!=c&&JU(this,c)}};var JU=function(b,c){var d=b.w(),e=Yp(c,"activedescendant"),e=sf(c).getElementById(e)||c;if(!e.id){var f=gr.pb();e.id=hr(f)}Zp(d,e);Xp(d,"owns",e.id)};HT("goog-menu-button",function(){return new DU(null)});
var KU=function(){};v(KU,oU);ca(KU);KU.prototype.ke=function(b){var c={"class":"goog-inline-block "+wT(this,b).join(" ")},c=b.fa().Ka("DIV",c,[LU(this,b.getContent(),b.fa()),MU(this,b.fa())]);FT(c,b.g);return c};KU.prototype.Rd=function(b){return b&&b.firstChild};
KU.prototype.oc=function(b,c){var d=vf(document,"*","goog-menu",c)[0];if(d){Jq(d,!1);b.fa().zb().body.appendChild(d);var e=new BU;e.fb(d);b.Pi(e)}vf(document,"*",this.na()+"-caption",c)[0]||c.appendChild(LU(this,c.childNodes,b.fa()));vf(document,"*",this.na()+"-dropdown",c)[0]||c.appendChild(MU(this,b.fa()));return KU.r.oc.call(this,b,c)};
var LU=function(b,c,d){return d.Ka("DIV","goog-inline-block "+(b.na()+"-caption"),c)},MU=function(b,c){return c.Ka("DIV",{"class":"goog-inline-block "+(b.na()+"-dropdown"),"aria-hidden":!0},"\u00a0")};KU.prototype.na=function(){return"goog-flat-menu-button"};HT("goog-flat-menu-button",function(){return new DU(null,null,KU.pb())});
var OU=function(b){W.call(this);this.a=[];NU(this,b)};v(OU,W);OU.prototype.b=null;var NU=function(b,c){c&&(y(c,function(b){PU(b,!1)},b),wb(b.a,c))},QU=function(b,c,d){c&&(PU(c,!1),yb(b.a,d,0,c))};OU.prototype.Hf=function(){return this.b};var RU=function(b){var c=b.b;return c?db(b.a,c):-1};OU.prototype.clear=function(){var b=this.a;if(!fa(b))for(var c=b.length-1;0<=c;c--)delete b[c];b.length=0;this.b=null};OU.prototype.D=function(){OU.r.D.call(this);delete this.a;this.b=null}; var PU=function(b,c){b&&"function"==typeof b.Fp&&b.Fp(c)};
var SU=function(b,c,d,e,f){DU.call(this,b,c,d,e,f||new zU("listbox"));this.yb=this.getContent();this.Fb=null;this.to="listbox"};v(SU,DU);k=SU.prototype;k.Ob=null;k.Ia=function(){SU.r.Ia.call(this);TU(this);UU(this)};k.Ha=function(b){SU.r.Ha.call(this,b);(b=this.Kc())?VU(this,b):this.Hf()||WU(this,0)};k.D=function(){SU.r.D.call(this);this.Ob&&(this.Ob.la(),this.Ob=null);this.yb=null};k.Bo=function(b){XU(this,b.target);SU.r.Bo.call(this,b);b.stopPropagation();this.dispatchEvent("action")};
k.Ex=function(){var b=this.Hf();SU.r.Jf.call(this,b&&b.getValue());TU(this)};k.Pi=function(b){var c=SU.r.Pi.call(this,b);b!=c&&(this.Ob&&this.Ob.clear(),b&&(this.Ob?rr(b,function(b){YU(b);var c=this.Ob;QU(c,b,c.a.length)},this):ZU(this,b)));return c};var VU=function(b,c){b.yb=c;TU(b)};SU.prototype.ga=function(b){YU(b);SU.r.ga.call(this,b);if(this.Ob){var c=this.Ob;QU(c,b,c.a.length)}else ZU(this,GU(this));$U(this)};
var XU=function(b,c){if(b.Ob){var d=b.Hf(),e=b.Ob;c!=e.b&&(PU(e.b,!1),e.b=c,PU(c,!0));e.dispatchEvent("select");c!=d&&b.dispatchEvent("change")}},WU=function(b,c){b.Ob&&XU(b,b.Ob.a[c]||null)};SU.prototype.Jf=function(b){if(null!=b&&this.Ob)for(var c=0,d;d=this.Ob.a[c]||null;c++)if(d&&"function"==typeof d.getValue&&d.getValue()==b){XU(this,d);return}XU(this,null)};SU.prototype.getValue=function(){var b=this.Hf();return b?b.getValue():null};SU.prototype.Hf=function(){return this.Ob?this.Ob.Hf():null};
var ZU=function(b,c){b.Ob=new OU;c&&rr(c,function(b){YU(b);var c=this.Ob;QU(c,b,c.a.length)},b);UU(b)},UU=function(b){b.Ob&&nr(b).C(b.Ob,"select",b.Ex)},TU=function(b){var c=b.Hf();b.setContent(c?c.Kc():b.yb);var d=b.b.Rd(b.w());d&&b.fa().Wx(d)&&(null==b.Fb&&(b.Fb=Yp(d,"label")),c=(c=c?c.w():null)?Yp(c,"label"):b.Fb,Xp(d,"label",c),$U(b))},$U=function(b){var c=b.b;if(c&&(c=c.Rd(b.w()))){var d=b.P;c.id||(c.id=hr(gr.pb()));Wp(c,"option");Xp(d,"activedescendant",c.id);b.Ob&&(d=vb(b.Ob.a),d=mb(d,function(b){return b instanceof
wU}),Xp(c,"setsize",d),Xp(c,"posinset",1+RU(b.Ob)))}},YU=function(b){b.to=b instanceof wU?"option":"separator"};SU.prototype.sc=function(b,c){SU.r.sc.call(this,b,c);this.rd()?GU(this).Pg(this.Ob?RU(this.Ob):-1):$U(this)};HT("goog-select",function(){return new SU(null)});
var aV=function(){jr.call(this);this.a=new SU(null,null,KU.pb());this.J(this.a);this.a.kk=!0;HU(this.a);T(this.a,"action",function(b){var c=b.target.Hf();if(b=rl(c.w(),"id"))c=Yf(c.w()),c=$(L(lT,{message:"Loading curation list for "+c})),new bs("undismissable",c),c=new Mh(window.location.href),di(c,K.gn,b),fx(Y,c.toString())})};v(aV,jr);aV.prototype.Ha=function(b){this.a.fb(b);(b=rl(b,"currentPartnerName"))&&this.a.setContent(b)};
var bV=[,"Embed","Cultural Institute","Chromecast",,"Mobile app","Website","Chrome extension"],cV={1:"gci-destination-embed",2:"gci-destination-destination",5:"gci-destination-mobile",6:"gci-destination-website",3:"gci-destination-chromecast",7:"gci-destination-chromeext"},dV=[1,2,5,6,3,7],eV=function(b,c){this.name=b;this.className=c},gV=function(b,c){return fV(b,c)},fV=function(b,c){var d=[];y(b,function(b){pb(c,b)&&d.push(new eV(bV[b],cV[b]))});return d},iV=function(b){var c=Y.j;if(b){var d=[];
y(dV,function(e){hV(b,e,c)&&d.push(e)});return d}return dV},hV=function(b,c,d){switch(c){case 1:c=b.pi();d=Ak(d,"enable_embed");if(c&&d||yy(b.V,ct))return b=E(b.k,Sy,19),!!b&&(1==B(b,1)||0!=F(b,Py,2).length);break;case 2:return b.pi();case 5:return(Xw(b.G,"superAdmin")?!0:yy(b.V,ct)&&yy(b.V,et))&&!Ea(x(ax(b.V,it)));case 6:return yy(b.V,ct)&&b.g();case 3:return yy(b.V,ft);case 7:return yy(b.V,gt)}return!1};
var jV=function(b){var c;c||(c={});var d=window,e="undefined"!=typeof b.href?b.href:String(b);b=c.target||b.target;var f=[],g;for(g in c)switch(g){case "width":case "height":case "top":case "left":f.push(g+"="+c[g]);break;case "target":case "noreferrer":break;default:f.push(g+"="+(c[g]?1:0))}g=f.join(",");if((xc()||sc("iPad")||sc("iPod"))&&d.navigator&&d.navigator.standalone&&b&&"_self"!=b)g=d.document.createElement("A"),g.setAttribute("href",e),g.setAttribute("target",b),c.noreferrer&&g.setAttribute("rel",
"noreferrer"),e=document.createEvent("MouseEvent"),e.initMouseEvent("click",!0,!0,d,1),g.dispatchEvent(e);else if(c.noreferrer){if(d=d.open("",b,g))I&&-1!=e.indexOf(";")&&(e="'"+e.replace(/'/g,"%27")+"'"),d.opener=null,e=Sa(e),d.document.write('<META HTTP-EQUIV="refresh" content="0; url='+e+'">'),d.document.close()}else d.open(e,b,g)};
var kV=function(){window.opener&&window.opener.postMessage("close_curation","*");window.parent&&window.parent.postMessage("close_curation","*");window.close()},lV=function(){window.opener&&window.opener.postMessage("exhibit_updated","*");window.parent&&window.parent.postMessage("exhibit_updated","*")};
var mV=function(b,c,d){wU.call(this,b,c,d);this.Sc(16,!0)};v(mV,wU);HT("goog-checkbox-menuitem",function(){return new mV(null)});var nV=function(b,c){this.Q=b||[];Xw(Y,"superAdmin")&&this.Q.push({id:"awaiting_google_check",label:"Awaiting Google Check (superadmin)"});this.H=c||[];this.p="allvis";this.o="alllang";var d=new BU;this.J(d);if(0!=this.H.length&&0!=this.Q.length)y(this.H,function(b){d.Ib(new mV(b.label,b.id||"alllang"),!0)},this),d.Ib(new AU,!0),y(this.Q,function(b){d.Ib(new mV(b.label,b.id||"allvis"),!0)},this),rr(d,function(b){b.getValue&&("alllang"!=b.getValue()&&"allvis"!=b.getValue()||b.Yc(!0))});else{var e=
0!=this.H.length?"alllang":"allvis";y(0!=this.H.length?this.H:this.Q,function(b){d.Ib(new wU(b.label,b.id||e),!0)},this)}SU.call(this,"Filter by",d,KU.pb())};v(nV,SU);nV.prototype.Ia=function(){nV.r.Ia.call(this);GU(this).C("action",this.$c,void 0,this)};nV.prototype.Rb=function(){GU(this).k("action",this.$c);nV.r.Rb.call(this)};nV.prototype.$c=function(b){oV(this,b.target.getValue());this.dispatchEvent({type:"filter",params:{visibility:"allvis"==this.p?"":this.p,language:"alllang"==this.o?"":this.o}})};
var oV=function(b,c){var d=GU(b);0==b.Q.length||pV(b,c)?(b.o=c,rr(d,t(function(b){b.getValue&&pV(this,b.getValue())&&b.Yc(b.getValue()==c)},b))):(b.p=c,rr(d,t(function(b){b.getValue&&qV(this,b.getValue())&&b.Yc(b.getValue()==c)},b)));rV(b)},rV=function(b){var c="Filter by",d="allvis"==b.p?"":b.p,e="alllang"==b.o?"":b.o;if(""!=d||""!=e){var f=[];rr(GU(b),function(b){b.getValue&&(e&&b.getValue()==e&&f.push(b.Kc()),d&&b.getValue()==d&&f.push(b.Kc()))});c=f.join(" \u2014 ")}VU(b,c);WU(b,-1)},sV=function(b, c,d){c=c||"allvis";c!=b.p&&(b.Jf(c),oV(b,c));d=d||"alllang";d!=b.o&&(b.Jf(d),oV(b,d))},pV=function(b,c){return"alllang"==c?!0:!!ob(b.H,function(b){return b.id==c})},qV=function(b,c){return"allvis"==c?!0:!!ob(b.Q,function(b){return b.id==c})};
var tV=function(b){b=b||{};var c=M,d='<div role="button"'+(b.id?' id="'+Q(b.id)+'"':"")+' class="',e;e=b||{};var f="goog-inline-block jfk-button ";switch(e.style){case 0:f+="jfk-button-standard";break;case 2:f+="jfk-button-action";break;case 3:f+="jfk-button-primary";break;case 1:f+="jfk-button-default";break;case 4:f+="jfk-button-flat";break;case 5:f+="jfk-button-mini";break;case 6:f+="jfk-button-contrast";break;default:f+="jfk-button-standard"}f+=(1==e.width?" jfk-button-narrow":"")+(e.checked?
" jfk-button-checked":"")+(e.va?" "+e.va:"")+(e.disabled?" jfk-button-disabled":"");return c(d+Q(new zg(f,void 0))+'"'+(b.disabled?' aria-disabled="true"':' tabindex="'+(b.Nk?Q(b.Nk):"0")+'"')+(b.title?" "+(b.DA?"data-tooltip":"title")+'="'+Q(b.title)+'"':"")+(b.value?' value="'+Q(b.value)+'"':"")+(b.attributes?" "+Pg(b.attributes):"")+">"+N(null!=b.content?b.content:"")+"</div>")};
var uV=function(b){b=b||{};return M('<span class="jfk-checkbox goog-inline-block'+(b.eu?" jfk-checkbox-undetermined":b.checked?" jfk-checkbox-checked":" jfk-checkbox-unchecked")+(b.disabled?" jfk-checkbox-disabled":"")+(b.va?" "+Q(b.va):"")+'" role="checkbox" aria-checked="'+(b.eu?"mixed":b.checked?"true":"false")+'"'+(b.Rv?'aria-labelledby="'+Q(b.Rv)+'"':b.Qv?'aria-label="'+Q(b.Qv)+'"':"")+(b.id?'id="'+Q(b.id)+'"':"")+(b.disabled?'aria-disabled="true" tabindex="-1"':'tabindex="'+(b.Nk?Q(b.Nk):"0")+ '"')+(b.attributes?" "+Pg(b.attributes):"")+'dir="ltr"><div class="jfk-checkbox-checkmark" role="presentation"></div></span>')};
var vV=function(b){var c=M,d="",e='<div class="gci-cms-titlebar"><div class="gci-left-actions"><span class="gci-listmanager-standard-tools"><div class="gci-listmanager-create">'+P(tV({va:O("gci-listmanager-create-button"),style:3,content:b.hw}))+"</div>",f;f=M;var g;g=g={va:O("gci-listmanager-search-button jfk-button-collapse-left")};g=M(tV({style:2,content:Cg(""+M('<img src="//ssl.gstatic.com/ui/v1/button/search-white.png" style="width: 21px; height: 21px;" class="jfk-button-img">')),va:g.va,Nk:g.Nk}));
f=f('<div class="gci-listmanager-search" role="search"><input type="search" class="gci-listmanager-search-input jfk-textinput"/>'+N(g)+"</div>");e=e+f+M('<div class="gci-listmanager-buttons-container"><span class="gci-listmanager-sort-button" style="display: none;"></span><span class="gci-listmanager-filter-button" style="display: none;"></span></div>')+'</span><span class="gci-listmanager-edit-tools-label"></span><span class="gci-listmanager-edit-tools"></span></div><div class="gci-right-actions">';
f=O("Previous page");g=O("Next page");f=M('<div class="gci-pager-container"><span class="gci-pager-text"></span>'+P(tV({va:O("jfk-button-collapse-right gci-pager-prev-button"),width:1,content:Cg('<div class="jfk-button-img gci-pager-prev-icon SPRITE_icon_page_left"></div>'),title:f}))+P(tV({va:O("jfk-button-collapse-left gci-pager-next-button"),width:1,content:Cg('<div class="jfk-button-img gci-pager-next-icon SPRITE_icon_page_right"></div>'),title:g}))+"</div>");d='<div class="gci-listmanager-component gci-cms-style">'+
M(d+(e+f+"</div></div>"))+'<div class="gci-cms-content"><div class="gci-listmanager-list-detail-container">';e=""+('<div class="gci-listmanager-list-container"><div class="gci-listmanager-table-container"><table class="gci-listmanager-table"><thead><tr><th class="gci-listmanager-table-selection-column">'+P(uV({va:O("gci-listmanager-header-checkbox"),attributes:Eg('title="'+Fg("Select all")+'"')}))+"</th>"+(b.ws?'<th class="gci-listmanager-table-name-column gci-listmanager-active-column" guidedhelpid="listmanager-active-column">'+
N(b.ws)+"</th>":""));b.cz&&(e+='<th class="gci-listmanager-table-status-column" guidedhelpid="listmanager-status-column">Status</th>');b.ez&&(e+='<th class="gci-listmanager-table-visibility-column">Publishing</th>');b.dz&&(e+='<th class="gci-listmanager-table-languages-column">Languages</th>');b=M(e+'<th class="gci-listmanager-table-lastmodified-column">Last Modification</th></tr></thead><tbody class="gci-listmanager-table-body"></tbody></table></div></div>');return c(d+b+'</div><div class="gci-listmanager-noitemsnotice-container"></div></div></div>')}, wV=function(b){var c="";b="<b>"+(N(b.start)+("</b>-<b>"+(N(b.end)+("</b> of <b>"+(N(b.total)+"</b>")))));return M(c+("<span>"+b+"</span>"))};
var tT=function(){};v(tT,rT);ca(tT);tT.prototype.ke=function(b){var c=b.fa().Ka("SPAN",wT(this,b).join(" "));xV(this,c,b.l);return c};tT.prototype.oc=function(b,c){c=tT.r.oc.call(this,b,c);var d=ah(c),e=!1;pb(d,yV(this,null))?e=null:pb(d,yV(this,!0))?e=!0:pb(d,yV(this,!1))&&(e=!1);b.l=e;Xp(c,"checked",null==e?"mixed":1==e?"true":"false");return c};tT.prototype.Bh=function(){return"checkbox"};
var xV=function(b,c,d){if(c){var e=yV(b,d);bh(c,e)||(Nb(zV,function(b){b=yV(this,b);gh(c,b,b==e)},b),Xp(c,"checked",null==d?"mixed":1==d?"true":"false"))}};tT.prototype.na=function(){return"goog-checkbox"};var yV=function(b,c){var d=b.na();if(1==c)return d+"-checked";if(0==c)return d+"-unchecked";if(null==c)return d+"-undetermined";throw Error("Cb`"+c);};
var AV=function(b,c,d){d=d||tT.pb();JT.call(this,null,d,c);this.l=p(b)?b:!1};v(AV,JT);var zV={a:!0,b:!1,k:null};k=AV.prototype;k.Qd=null;k.Lb=function(){return 1==this.l};k.Yc=function(b){b!=this.l&&(this.l=b,xV(this.b,this.w(),this.l))};k.toggle=function(){this.Yc(this.l?!1:!0)};
k.Ia=function(){AV.r.Ia.call(this);if(this.Pl){var b=nr(this);this.Qd&&b.C(this.Qd,"click",this.zo).C(this.Qd,"mouseover",this.Ca).C(this.Qd,"mouseout",this.Xa).C(this.Qd,"mousedown",this.Je).C(this.Qd,"mouseup",this.Ne);b.C(this.w(),"click",this.zo)}b=this.P;this.Qd&&b!=this.Qd&&Ea(Yp(b,"label"))&&(this.Qd.id||(this.Qd.id=this.getId()+".lbl"),Xp(b,"labelledby",this.Qd.id))};k.Ga=function(b){AV.r.Ga.call(this,b);if(b=this.w())b.tabIndex=this.isEnabled()?0:-1};
k.zo=function(b){b.stopPropagation();var c=this.l?"uncheck":"check";this.isEnabled()&&!b.target.href&&this.dispatchEvent(c)&&(b.preventDefault(),this.toggle(),this.dispatchEvent("change"))};k.Ch=function(b){32==b.keyCode&&(this.Jg(b),this.zo(b));return!1};HT("goog-checkbox",function(){return new AV});
var BV=function(b,c){this.k=b;this.h=!!c;this.e={0:this.k+"-arrowright",1:this.k+"-arrowup",2:this.k+"-arrowdown",3:this.k+"-arrowleft"}};v(BV,mT);k=BV.prototype;k.ls=!1;k.vn=2;k.uq=20;k.An=3;k.Yo=-5;k.ic=function(b,c,d){b=this.vn;2==b&&(b=0);CV(this,this.An,b,2==this.vn?DV(this.An)?this.a.offsetHeight/2:this.a.offsetWidth/2:this.uq,d)};
var CV=function(b,c,d,e,f,g){if(b.b){var h=EV(c,d),l,m=b.b;l=Eq(m);l=(DV(c)?l.height/2:l.width/2)-e;var r=CI(m,h),u;if(u=xq(m))m=Hq(m),m=new hq(m.top,m.left+m.width,m.top+m.height,m.left),DV(c)?m.top<u.top&&!(r&1)?l-=u.top-m.top:m.bottom>u.bottom&&r&1&&(l-=m.bottom-u.bottom):m.left<u.left&&!(r&2)?l-=u.left-m.left:m.right>u.right&&r&2&&(l-=m.right-u.right);l=DV(c)?new mf(b.Yo,l):new mf(l,b.Yo);r=DV(c)?6:9;u=c^3;DV(c)&&"rtl"==b.b.dir&&(u=c);h=DI(b.b,EV(u,d),b.a,h,l,f,b.ls?r:0,void 0,null);if(!g&&h&
496){CV(b,c^3,d,e,f,!0);return}!b.h||h&496||(f=parseFloat(b.a.style.left),g=parseFloat(b.a.style.top),isFinite(f)&&0==f%1&&isFinite(g)&&0==g%1||tq(b.a,Math.round(f),Math.round(g)))}FV(b,c,d,e)},FV=function(b,c,d,e){var f=b.g;Nb(b.e,function(b){gh(f,b,!1)},b);ch(f,b.e[c]);f.style.top=f.style.left=f.style.right=f.style.bottom="";b.b?(d=Bq(b.b,b.a),e=GV(b.b,c),DV(c)?(b=HV(d.y+e.y,b.a.offsetHeight-15),f.style.top=b+"px"):(b=HV(d.x+e.x,b.a.offsetWidth-15),f.style.left=b+"px")):f.style[0==d?DV(c)?"top":
"left":DV(c)?"bottom":"right"]=e+"px"},HV=function(b,c){return 15>c?15:je(b,15,c)},EV=function(b,c){switch(b){case 2:return 0==c?1:3;case 1:return 0==c?0:2;case 0:return 0==c?6:7;default:return 0==c?4:5}},GV=function(b,c){var d=0,e=0,f=Eq(b);switch(c){case 2:d=f.width/2;break;case 1:d=f.width/2;e=f.height;break;case 0:e=f.height/2;break;case 3:d=f.width,e=f.height/2}return new mf(d,e)},DV=function(b){return 0==b||3==b};
var IV=function(b){Bj.call(this);this.b=b||tf()};v(IV,Bj);IV.prototype.g=function(){Wp(this.w(),"tooltip");Xp(this.w(),"live","polite")};var JV=function(b){IV.call(this,b);this.a=this.b.Ka("div",this.Ee()+"-contentId");this.e=this.b.Ka("div",this.Ee()+"-arrow",this.b.Ka("div",this.Ee()+"-arrowimplbefore"),this.b.Ka("div",this.Ee()+"-arrowimplafter"));this.k=this.b.Ka("div",{"class":this.Ee(),role:"tooltip"},this.a,this.e);this.g()};v(JV,IV);JV.prototype.Ee=function(){return"jfk-tooltip"};JV.prototype.w=function(){return this.k};JV.prototype.D=function(){this.k&&Lf(this.k)};
var KV=function(b){JV.call(this,b)};v(KV,JV);KV.prototype.g=function(){Wp(this.w(),"tooltip")};var NV=function(b){b=b||tf();var c=pa(b.zb());LV[c]||(LV[c]=new MV(b))},PV=function(b){var c=b.getAttribute("title");c&&OV(b,c)},OV=function(b,c,d){d||(d=c instanceof Yd?Zd(c):c);b.removeAttribute("title");b.removeAttribute("data-tooltip-contained");b.removeAttribute("data-tooltip");c?(c instanceof Yd?b.a=c:(b.setAttribute("data-tooltip",c),b.a=null),b.setAttribute("aria-label",d)):(b.a=null,b.removeAttribute("aria-label"));NV(tf(b))},LV={},MV=function(b){U.call(this);this.p=b;this.l=new WI(this.O,
0,this);this.J(this.l);b=b.zb();this.C(b,["mouseout","mousedown","click","blur",Lj,"keydown"],this.A,!0);this.C(b,["mouseover","focus",Kj],this.H,!0)};v(MV,U);MV.prototype.D=function(){QV(this);MV.r.D.call(this)};var RV=function(b,c){switch(c.type){case "mousedown":case "mouseover":case "mouseout":case "click":b.o=!1;break;case "keydown":b.o=!0}};
MV.prototype.H=function(b){RV(this,b);var c=b.target;b="focus"==b.type||b.type==Kj;var d=this.a&&Pf(this.a.a,c);this.o||!b||d?(this.I=b,this.e=c):this.e=null;QV(this);this.l.start(this.b?50:300)};MV.prototype.A=function(b){RV(this,b);var c=b.target;b="mousedown"==b.type||"click"==b.type;c=this.a&&Pf(this.a.a,c);b&&c||(this.e=null,QV(this),this.l.start(this.b?50:300))};var QV=function(b){b.h&&(n.clearTimeout(b.h),b.h=0,b.b=null)};
MV.prototype.O=function(){if(!this.e)SV(this),this.b=null;else if(!(this.b&&this.a&&Pf(this.a.w(),this.e))){var b=$f(this.e,function(b){return b.getAttribute&&(b.getAttribute("data-tooltip-contained")||b.getAttribute("data-tooltip")||b.a)&&!b.getAttribute("data-tooltip-suspended")}),c=!1;this.b&&this.b!=b&&(SV(this),this.b=null,c=!0);if(!this.b&&b&&(this.b=b,TV(this,b))){var d=ie;if(b.getAttribute("data-tooltip-contained"))for(var e=wf("jfk-tooltip-data",b),f=0;f<e.length;f++){if(e[f].parentNode==
b){d=e[f].cloneNode(!0);break}}else d=b.a?b.a:be(b.getAttribute("data-tooltip"));var e=b.getAttribute("data-tooltip-align"),f=b.getAttribute("data-tooltip-class"),g=b.getAttribute("data-tooltip-offset"),g=Ea(x(g))?-1:Number(g);if(!c&&(b=b.getAttribute("data-tooltip-delay"),b=Math.max(0,b-300))){this.h=Jm(sa(this.B,this.b,d,e,g,f),b,this);return}this.B(this.b,d,e,g,f)}}};
var TV=function(b,c){return c.getAttribute("data-tooltip-only-on-overflow")&&c.offsetWidth>=c.scrollWidth&&c.offsetHeight>=c.scrollHeight||b.I&&"mouse"==c.getAttribute("data-tooltip-trigger")?!1:!0},UV=function(b){if(b)switch(b.toLowerCase().split(",")[0]){case "l":return 0;case "t":return 2;case "r":return 3}return 1};
MV.prototype.B=function(b,c,d,e,f){this.h=0;if(!this.a){this.a=new KV(this.p);SV(this);var g=this.a.w();this.p.zb().body.appendChild(g);this.J(this.a);this.g=new BV(this.a.Ee(),!0);this.g.ls=!0;var g=this.g,h=this.a.w(),l=this.a.e;g.a=h;g.g=l}a:{if(d)switch(d.toLowerCase().split(",")[1]){case "l":h=0;break a;case "r":h=1;break a}h=2}g=this.g;d=UV(d);null!=d&&(g.An=d);null!=h&&(g.vn=h);ka(void 0)&&(g.uq=Math.max(void 0,15));ka(e)&&(g.Yo=e);eh(this.a.w(),"jfk-tooltip-hide");this.j!=f&&(this.j&&!Ea(x(this.j))&&
eh(this.a.w(),this.j),Ea(x(f))||ch(this.a.w(),f),this.j=f);tq(this.a.w(),0,0);if(c instanceof Yd)this.a.a.innerHTML=Zd(c);else for(Jf(this.a.a);e=c.firstChild;)this.a.a.appendChild(e);this.g.b=b;this.g.ic(null,0)};var SV=function(b){b.a&&ch(b.a.w(),"jfk-tooltip-hide")};
var WV=function(b,c,d,e){VT.call(this,b,VV.pb(),c);this.o=d||0;this.a=e||0;this.ib=!1};v(WV,VT);k=WV.prototype;k.getStyle=function(){return this.o};k.yh=function(b){this.g=b;var c=this.w();c&&(this.ib?OV(c,b,void 0):b?c.title=b:c.removeAttribute("title"))};k.Ga=function(b){this.isEnabled()!=b&&(WV.r.Ga.call(this,b),XV(this))};k.focus=function(){var b=this.P;try{b.focus()}catch(c){}};k.Og=function(b){WV.r.Og.call(this,b);YV(this,!1)};
k.Je=function(b){WV.r.Je.call(this,b);this.isEnabled()&&YV(this,!0)};k.Ne=function(b){WV.r.Ne.call(this,b);this.isEnabled()&&YV(this,!0)};var YV=function(b,c){b.w()&&gh(b.w(),"jfk-button-clear-outline",c)},XV=function(b){b.w()&&ZV(b.b,b)},VV=function(){this.A=this.na()+"-standard";this.e=this.na()+"-action";this.B=this.na()+"-primary";this.j=this.na()+"-default";this.l=this.na()+"-flat";this.p=this.na()+"-narrow";this.o=this.na()+"-mini";this.h=this.na()+"-contrast"};v(VV,ET);ca(VV);k=VV.prototype;
k.Wg=function(b,c,d){b&&d.o!=b&&(d.o=b,XV(d));c&&d.a!=c&&(d.a=c,XV(d))};k.na=function(){return"jfk-button"};k.ke=function(b){var c=b.fa(),d=L(tV,{disabled:!b.isEnabled(),checked:b.Lb(),style:b.getStyle(),title:b.g,DA:b.ib,value:b.getValue(),width:b.a},void 0,c);c.append(d,b.getContent());this.oc(b,d);return d};
k.oc=function(b,c){VV.r.oc.call(this,b,c);this.g||(this.g=Zb(this.A,sa(this.Wg,0,null),this.e,sa(this.Wg,2,null),this.B,sa(this.Wg,3,null),this.j,sa(this.Wg,1,null),this.l,sa(this.Wg,4,null),this.o,sa(this.Wg,5,null),this.h,sa(this.Wg,6,null),this.p,sa(this.Wg,null,1)));for(var d=ah(c),e=0;e<d.length;++e){var f=this.g[d[e]];f&&f(b)}if(d=c.getAttribute("data-tooltip"))b.g=d,b.ib=!0;return c};k.getValue=function(b){return b.getAttribute("value")||""};k.Cl=function(b,c){b&&b.setAttribute("value",c)}; var ZV=function(b,c){function d(b,c){(b?e:f).push(c)}var e=[],f=[],g=c.getStyle();d(0==g,b.A);d(2==g,b.e);d(3==g,b.B);d(4==g,b.l);d(5==g,b.o);d(1==g,b.j);d(6==g,b.h);d(1==c.a,b.p);d(!c.isEnabled(),b.na()+"-disabled");fh(c.w(),f);dh(c.w(),e)};
var $V=function(b,c){var d=uT();AV.call(this,b,c,d);this.Sc(4,!0)};v($V,AV);$V.prototype.wb=function(){this.P=L(uV,{checked:this.Lb(),disabled:!this.isEnabled(),eu:null==this.l},void 0,this.fa())};$V.prototype.Ha=function(b){$V.r.Ha.call(this,b);ch(b,"goog-inline-block");this.w().dir="ltr";Z(this,"jfk-checkbox-checkmark")||(b=this.fa().Ka("div","jfk-checkbox-checkmark"),this.w().appendChild(b));Wp(Z(this,"jfk-checkbox-checkmark"),"presentation")}; $V.prototype.Og=function(b){$V.r.Og.call(this,b);aW(this,!1)};$V.prototype.Je=function(b){$V.r.Je.call(this,b);this.isEnabled()&&aW(this,!0)};var aW=function(b,c){b.w()&&gh(b.w(),"jfk-checkbox-clearOutline",c)};
var bW=function(b){jr.call(this,b);this.total=this.Db=this.p=this.offset=0;this.l=this.hb=this.filter=this.Ca=this.g=this.Q=null;this.K=new WV(null);this.J(this.K);this.Xa=new WV(null);this.J(this.Xa);this.H=new WV(null);this.J(this.H);this.A=new WV(null);this.J(this.A);this.b=new $V;this.J(this.b);this.yb=null;this.Fb=[];this.a=[];this.o=null};v(bW,jr);var cW=function(b,c,d,e){Jj.call(this,"selection_changed");this.type=b;this.a=c;this.filter=e};v(cW,Jj);
bW.prototype.wb=function(){var b={hw:"Create New Exhibit",ws:"Exhibit",cz:!0,ez:!0,dz:Bk(this.G.j),Uz:"Search exhibits"};this.P=L(vV,b);dW(this,Z(this,"gci-listmanager-edit-tools"));eW(this,!1);this.b.fb(Z(this,"gci-listmanager-header-checkbox"));this.ib();this.Xa.fb(Z(this,"gci-listmanager-search-button"));this.Xa.yh(b.Uz);this.K.fb(Z(this,"gci-listmanager-create-button"));this.H.fb(Z(this,"gci-pager-prev-button"));this.A.fb(Z(this,"gci-pager-next-button"));var b=Z(this,"gci-listmanager-table-container"),
c=Z(this,"gci-listmanager-table");this.yb=new Jp(b,{gd:c});this.J(this.yb)};bW.prototype.Ia=function(){bW.r.Ia.call(this);NV(this.fa());fW(this)};bW.prototype.ib=q;
var gW=function(b,c){this.id=b;this.label=c},iW=function(b){var c=[new gW("name_az","Name A-Z"),new gW("name_za","Name Z-A"),new gW("date_modified","Newest first")],d=Z(b,"gci-listmanager-sort-button");S(b.Ca);b.Ca=hW(b,d,c,b.Xd,b);b.Ca.Jf(b.g)},kW=function(b,c,d){var e=Z(b,"gci-listmanager-filter-button");S(b.l);b.l=new nV(c,d);b.l.render(e);Jq(e,!0);b.l.C("filter",t(function(b){var c=b.params.language;this.filter=b.params.visibility;this.hb=c;jW(this,0)},b));b.l&&sV(b.l,b.filter,b.hb)},hW=function(b,
c,d,e,f){var g=new BU;b.J(g);y(d,function(b){g.Ib(new wU(b.label,b.id),!0)},b);d=new SU("Sort by",g,KU.pb());b.J(d);d.render(c);Jq(c,!0);g.C("action",function(b){e.call(f,b.target.getValue())},void 0,b);return d};bW.prototype.D=function(){lW(this);bW.r.D.call(this);var b=tf(),b=pa(b.zb());LV[b]&&(LV[b].la(),delete LV[b])};bW.prototype.ad=q;
var fW=function(b){b.C("selection_changed",b.ad,!1,b);var c=Z(b,"gci-listmanager-search-input");uk(nr(b),c,"keydown",function(b){13===b.keyCode&&this.Tc()},!1,b);b.Xa.C("action",b.Tc,!1,b);b.K.C("action",b.Wd,!1,b);b.H.C("action",b.Bf,!1,b);b.A.C("action",b.ze,!1,b);b.b.C("change",b.Jh,!1,b)};bW.prototype.Tc=function(){this.Q=Z(this,"gci-listmanager-search-input").value;jW(this,0)};bW.prototype.Xd=function(b){this.g=b;jW(this,0)};bW.prototype.ze=function(){this.p!==this.offset&&jW(this,this.p)};
bW.prototype.Bf=function(){this.Db!==this.offset&&jW(this,this.Db)};
var oW=function(b,c,d,e){var f=mW,g=Z(b,"gci-listmanager-table-body"),h,l=!1;b.a[c]?(g=g.rows[c],h=b.a[c],l=h.Lb(),h.Rb()):(g=g.insertRow(-1),g.className="gci-listmanager-table-row",h=new $V,b.a[c]=h,h.C("change",b.Kh,!1,b));e=L(f,e);nW(g,e);h.fb(xf("gci-listmanager-row-checkbox",g));nr(b).C(g,"click",function(b){h.toggle();h.dispatchEvent("change");b.stopPropagation()});h.Yc(l);b.Fb[c]=d;y(wf("gci-listmanager-tooltip",g),PV);return g},nW=function(b,c){var d=vf(document,"tr",void 0,c),e=0;y(Mf(d[0]),
function(c){var d;d=e<b.cells.length?b.cells[e]:b.insertCell(-1);fh(d,ah(d));dh(d,ah(c));for(Jf(d);c.firstChild;){var h=Lf(c.firstChild);d.appendChild(h)}++e});for(d=e;d<b.cells.length;++d)b.deleteCell(d)};bW.prototype.Jh=function(){for(var b=this.b.Lb(),c=0;c<this.a.length;++c)this.a[c].Yc(b),pW(this.a[c]);qW(this);rW(this);sW(this)};bW.prototype.Kh=function(b){pW(b.target);qW(this);rW(this);sW(this)};
var tW=function(b){return gb(hb(b.a,function(b,d){return b.Lb()?this.Fb[d]:null},b),ea)},sW=function(b){Hm(b,"selection_changed",!1,new cW(0,tW(b),0,null))},pW=function(b){var c;c=b.w();c=ag(c);gh(c,"gci-listmanager-selected",b.Lb())},qW=function(b){if(0!==b.a.length){for(var c=b.a[0].Lb(),d=1;d<b.a.length;++d)if(b.a[d].Lb()!==c){b.b.Yc(null);return}b.b.Yc(c)}},rW=function(b){for(var c=0;c<b.a.length;++c)if(b.a[c].Lb()){eW(b,!0);return}eW(b,!1)},lW=function(b){var c=Z(b,"gci-listmanager-table-body");
c.parentNode.replaceChild(Ef("tbody",{className:"gci-listmanager-table-body"}),c);y(b.a,function(b){b.la()});b.Fb=[];b.a=[]},uW=function(b){b.o||(b.o={Vz:b.b.isEnabled(),nextPage:b.A.isEnabled(),Bz:b.H.isEnabled(),create:b.K.isEnabled()},b.b.Ga(!1),b.A.Ga(!1),b.H.Ga(!1),b.K.Ga(!1))},vW=function(b){b.o&&(b.b.Ga(b.o.Vz),b.A.Ga(b.o.nextPage),b.H.Ga(b.o.Bz),b.K.Ga(b.o.create),b.o=null)},jW=function(b,c){b.offset=c;wW(b,t(function(){this.b.Yc(!1);eW(this,!1);this.yb.scrollTop(0)},b));b.dispatchEvent({type:"params_changed",
params:b.Sa()})};bW.prototype.Sa=function(){return{Hg:this.filter,Ig:this.hb,tm:this.offset,xk:this.Q,aj:this.g}};var eW=function(b,c){Jq(Z(b,"gci-listmanager-edit-tools"),c);Jq(Z(b,"gci-listmanager-edit-tools-label"),c);Jq(Z(b,"gci-listmanager-standard-tools"),!c)},xW=function(b){var c=Y;return hb(b,function(b){return{code:b,name:kx(c,b)}})};
var yW=function(b){b=b||{};b=""+('<div class="gci-embedcode-content"><p class="gci-embedcode-explanation">Copy and paste this code into the website where you want to embed this item.</p><div class="gci-embedcode-size-selection gci-light"><span class="gci-embedcode-size-label">Window size:</span><span class="gci-embedcode-size-controls"><div class="gci-embedcode-size-selector"><div class="goog-menu gci-embed-menu"></div></div><span class="gci-embedcode-custom-size"><input class="gci-embedcode-custom-width gci-embedcode-custom-field jfk-textinput" label="'+
Fg("width")+'" type="text" size="4">\u00d7<input class="gci-embedcode-custom-height gci-embedcode-custom-field jfk-textinput" label="'+Fg("height")+'" type="text" size="4"></span></span><div class="gci-embedcode-custom-too-small-msg gci-alert"><span class="SPRITE_status_alert"></span><span>Embed sizes below 640&times;480 may display incorrectly.</span></div></div><textarea class="jfk-textinput gci-light gci-embedcode-codearea" rows="5" readonly>'+Gg(b.nD)+"</textarea></div>");return M(b)};
var zW=function(b){W.call(this);this.a=null;this.P=b;b=I||Ac&&!Jc("531")&&"TEXTAREA"==b.tagName;this.b=new U(this);this.b.C(this.P,b?["keydown","paste","cut","drop","input"]:"input",this)};v(zW,W);
zW.prototype.handleEvent=function(b){if("input"==b.type)I&&Jc(10)&&0==b.keyCode&&0==b.a||(AW(this),yc&&this.P!=sf(this.P).activeElement||this.dispatchEvent(BW(b)));else if("keydown"!=b.type||bq(b)){var c="keydown"==b.type?this.P.value:null;I&&229==b.keyCode&&(c=null);var d=BW(b);AW(this);this.a=Jm(function(){this.a=null;this.P.value!=c&&this.dispatchEvent(d)},0,this)}};var AW=function(b){null!=b.a&&(n.clearTimeout(b.a),b.a=null)},BW=function(b){b=new Nj(b.Kb);b.type="input";return b}; zW.prototype.D=function(){zW.r.D.call(this);this.b.la();AW(this);delete this.P};
var CW=function(b,c){jr.call(this,c);this.a=b||""},DW;v(CW,jr);CW.prototype.g=null;var EW=function(){null!=DW||(DW="placeholder"in document.createElement("INPUT"));return DW};k=CW.prototype;k.fk=!1;k.wb=function(){this.P=this.fa().Ka("INPUT",{type:"text"})};k.Ha=function(b){CW.r.Ha.call(this,b);this.a||(this.a=b.getAttribute("label")||"");bg(sf(b))==b&&(this.fk=!0,b=this.w(),eh(b,"label-input-label"));EW()&&(this.w().placeholder=this.a);b=this.w();Xp(b,"label",this.a)};
k.Ia=function(){CW.r.Ia.call(this);var b=new U(this);b.C(this.w(),"focus",this.Tr);b.C(this.w(),"blur",this.rx);if(EW())this.b=b;else{zc&&b.C(this.w(),["keypress","keydown","keyup"],this.wx);var c=sf(this.w());b.C(Cf(c),"load",this.Ix);this.b=b;FW(this)}GW(this);this.w().b=this};k.Rb=function(){CW.r.Rb.call(this);this.b&&(this.b.la(),this.b=null);this.w().b=null};var FW=function(b){!b.l&&b.b&&b.w().form&&(b.b.C(b.w().form,"submit",b.xx),b.l=!0)};k=CW.prototype;
k.D=function(){CW.r.D.call(this);this.b&&(this.b.la(),this.b=null)};k.Tr=function(){this.fk=!0;var b=this.w();eh(b,"label-input-label");if(!EW()&&!HW(this)&&!this.o){var c=this,b=function(){c.w()&&(c.w().value="")};I?Jm(b,10):b()}};k.rx=function(){EW()||(this.b.k(this.w(),"click",this.Tr),this.g=null);this.fk=!1;GW(this)};k.wx=function(b){27==b.keyCode&&("keydown"==b.type?this.g=this.w().value:"keypress"==b.type?this.w().value=this.g:"keyup"==b.type&&(this.g=null),b.preventDefault())};
k.xx=function(){HW(this)||(this.w().value="",Jm(this.qx,10,this))};k.qx=function(){HW(this)||(this.w().value=this.a)};k.Ix=function(){GW(this)};var HW=function(b){return!!b.w()&&""!=b.w().value&&b.w().value!=b.a};CW.prototype.clear=function(){this.w().value="";null!=this.g&&(this.g="")};CW.prototype.reset=function(){HW(this)&&(this.clear(),GW(this))};CW.prototype.getValue=function(){return null!=this.g?this.g:HW(this)?this.w().value:""};
var GW=function(b){var c=b.w();EW()?b.w().placeholder!=b.a&&(b.w().placeholder=b.a):FW(b);Xp(c,"label",b.a);HW(b)?(c=b.w(),eh(c,"label-input-label")):(b.o||b.fk||(c=b.w(),ch(c,"label-input-label")),EW()||Jm(b.p,10,b))};CW.prototype.Ga=function(b){this.w().disabled=!b;var c=this.w();gh(c,"label-input-label-disabled",!b)};CW.prototype.isEnabled=function(){return!this.w().disabled};CW.prototype.p=function(){!this.w()||HW(this)||this.fk||(this.w().value=this.a)};
var JW=function(b,c,d){jr.call(this,d);this.H=null;this.K=b;this.Q=!!c;this.g=new SU(null,null,KU.pb());this.Ib(this.g);this.A=new CW;this.Ib(this.A);this.o=new CW;this.Ib(this.o);this.a=IW[1][0];this.b=IW[1][1];this.p=this.l=null};v(JW,jr);var IW=[[640,480],[800,600],[1024,768]];JW.prototype.wb=function(){this.Ha(L(yW))};
JW.prototype.Ha=function(b){JW.r.Ha.call(this,b);this.g.fb(Z(this,"gci-embedcode-size-selector"));y(IW,function(b){this.g.ga(new wU(b[0]+(" \u00d7 "+b[1]),b.join(",")))},this);this.g.ga(new wU("Custom size","custom"));Jq(Z(this,"gci-embedcode-custom-size"),!1);this.A.fb(Z(this,"gci-embedcode-custom-width"));this.o.fb(Z(this,"gci-embedcode-custom-height"))};
JW.prototype.Ia=function(){JW.r.Ia.call(this);WU(this.g,1);var b=nr(this);uk(b,this.g,"change",function(b){Jq(Z(this,"gci-embedcode-custom-size"),"custom"==b.target.getValue());KW(this,!1)},void 0,this);this.l=new zW(this.o.P);this.p=new zW(this.A.P);uk(b,this.l,"input",function(){KW(this,!1)},void 0,this);uk(b,this.p,"input",function(){KW(this,!1)},void 0,this);var c=Z(this,"gci-embedcode-codearea");this.H=T(c,"click",function(){c.select&&c.select()});KW(this,this.Q)};
JW.prototype.Rb=function(){JW.r.Rb.call(this);mk(this.H);this.l.la();this.p.la();this.p=this.l=null};
var KW=function(b,c){var d=b.g.Hf().getValue();if("custom"==d){var d=parseInt(b.A.getValue(),10),e=parseInt(b.o.getValue(),10);0<d&&!isNaN(d)&&(b.a=d);0<e&&!isNaN(e)&&(b.b=e)}else d=d.split(","),b.a=d[0],b.b=d[1];gh(b.w(),"gci-embedcode-custom-too-small",640>b.a&&480>b.b);d='<iframe allowfullscreen frameborder="0" width="'+b.a+'" height="'+b.b+'" src="'+b.K+'"></iframe>';e=Z(b,"gci-embedcode-codearea");e.value=d;c&&(e.focus(),e.select())};
var LW=function(b){var c="";b="Embed: "+N(b.title);return M(c+('<div class="gci-embed-popup-content gci-cms-style"><h2 class="gci-embed-popup-title">'+b+'</h2><div class="gci-embed-popup-container"/></div>'))};var MW=function(b,c){var d=L(LW,{title:c});this.l=$(d);bs.call(this,"ok-only",this.l,{jp:"Close",bt:"gci-embed-popup"});this.j=new JW(b,!0);this.j.render(xf("gci-embed-popup-container",d))};v(MW,bs);var NW=function(b){return M(P(tV(Ag(b,{content:Cg(""+pg(b))}))))},pg=function(b){return M('<div class="jfk-button-img gci-labelediconbutton-icon '+Q(b.Pe)+'"></div>'+N(b.label)+(b.Vx?'<div class="jfk-button-img gci-labelediconbutton-icon SPRITE_icon_arrow_drop_down"></div>':""))};
var OW=function(b,c){var d=b||{};this.H=x(d.iE);this.p=x(d.dE);this.K=!!d.eE;WV.call(this,qg({label:this.H,Pe:this.p,Vx:this.K}),c);d.hE&&this.Sc(16,!0)};v(OW,WV);OW.prototype.fb=function(b){OW.r.fb.call(this,b);this.H=Yf(b);var c=xf("gci-labelediconbutton-icon",b);c&&(this.p=gb(ah(c),function(b){return"gci-labelediconbutton-icon"!=b&&"jfk-button-img"!=b}).join(" "));xf("SPRITE_icon_arrow_drop_down",b)&&(this.K=!0)};
var mW=function(b){var c="",d='<table><tbody><tr><td class="gci-listmanager-table-selection-column">'+P(uV({va:O("gci-listmanager-row-checkbox")}))+'</td><td class="gci-listmanager-table-edit-column">',e;e=M('<div class="gci-listmanager-titlebox">'+M('<div class="gci-exhibitmanager-exhibit-titleimage gci-exhibit-grid gci-exhibit-item gci-exhibit-grid-item collections-asset-thumbnail image">'+P($G({Hk:!1,title:b.title}))+"</div>")+'<div class="gci-listmanager-infos"><h4>'+N(b.title)+"</h4>"+(b.ut?
"<p>"+N(b.ut)+"</p>":"")+(b.si?"<p>"+N(b.si)+"</p>":"")+"</div></div>");d=d+e+'</td><td class="gci-listmanager-table-status-column">';e=M('<div class="gci-listmanager-status '+Q(b.status.className)+'"><div class="gci-listmanager-status-main"><span title="'+Q(b.status.name)+'" class="gci-listmanager-status-icon gci-listmanager-tooltip"></span><span class="gci-listmanager-status-name">'+N(b.status.name)+"</span></div>"+(b.status.message?b.status.url?'<div class="gci-listmanager-status-message"><a class="gci-listmanager-status-link" href="'+
Q(R(b.status.url))+'">'+N(b.status.message)+"</a></div>":'<div class="gci-listmanager-status-message">'+N(b.status.message)+"</div>":"")+"</div>");d=d+e+'</td><td class="gci-listmanager-table-visibility-column'+(b.ox?"":" gci-destination-unlaunched")+'">';e=b.destinations;var f=O('To make this exhibit visible, you need to choose at least one destination. Select it, then use the "Publish" control above.'),g="";if(0==e.length)g+='<span class="gci-listmanager-visibility-destination gci-listmanager-novisibility">Not published'+
(f?'<span class="gci-listmanager-novisibility-help gci-listmanager-tooltip SPRITE_icon_help_grey" title='+Ng(f)+"></span>":"")+"</span>";else for(var f=e.length,h=0;h<f;h++)var l=e[h],g=g+('<span title="'+Q(l.name)+'" class="gci-listmanager-visibility-destination gci-listmanager-tooltip '+Q(l.className)+(l.disabled?" gci-listmanager-visibility-destination-disabled":"")+'"></span>');e=M(g);d=d+e+"</td>";e="";if(b.tA){e+='<td class="gci-listmanager-table-languages-column">';g=b.sA;f=g.length;if(0<f)for(h=
0;h<f;h++)l=g[h],e+='<span class="gci-cms-language gci-listmanager-tooltip" title="'+Q(l.name)+'">'+N(l.code)+"</span>";else e+='<span class="gci-listmanager-notranslations">No translation</span>';e+="</td>"}e=M(e);b=c+(d+e+'<td class="gci-listmanager-table-lastmodified-column">'+N(b.uy)+"</td></tr></tbody></table>");return M(b)},PW=function(b){return M(P(NW({label:b.uw,Pe:O("SPRITE_icon_edit"),va:O("gci-exhibitmanager-edit-button"),style:0}))+P(NW({label:b.Vw,Pe:O("gci-destination-embed"),va:O("gci-exhibitmanager-embed-button"),
style:0})))},QW=function(){var b="",c;c=Cg("You have not created any exhibits yet.");var d=Cg('Create a new exhibit or visit the <a href="https://support.google.com/culturalinstitute/partners">help center</a> to learn more');c=M('<div class="gci-listmanager-noitemsnotice-message-container"><img class="gci-listmanager-noitemsnotice-arrow" src="'+Q(R(ju("common/no_items_arrow.png")))+'"><div class="gci-listmanager-noitemsnotice-text"><heading class="gci-listmanager-noitemsnotice-title">'+N(c)+'</heading><p class="gci-listmanager-noitemsnotice-subtitle">'+ N(d)+"</p></div></div>");return M(b+c)};
var RW=function(b,c){bW.call(this,c);this.G=Y;this.sa=b;this.R=this.Z=null;this.Ja=[];this.$c=0;this.ga=new OW;this.J(this.ga);this.ca=new OW;this.J(this.ca);this.g="date_modified"};v(RW,bW);RW.prototype.Wd=function(){if(this.Z&&yy(this.Z.V,jt)){var b=px(Xw(this.G,"classicCurationBaseUrl"))+"?partnerId="+this.Z.getId();jV(b)}else{var b=BH(),c=this;VS(this.sa,b,function(b){SW(c,b.getId())},this.Z?this.Z.getId():void 0)}};
RW.prototype.ib=function(){iW(this);if(this.Z){var b=[new gW("","All visibilities"),new gW("embed","Embeddable")];this.Z.pi()&&b.push(new gW("destination","Visible on the Cultural Institute"));!Ea(x(ax(this.Z.V,it)))&&b.push(new gW("mobile","Published on mobile"));this.Z.g()&&b.push(new gW("website","Published on website"));if(!Bk(this.G.j))return kW(this,b,[]);this.sa.nk(this.R,t(function(c){c=TW(c);kW(this,b,c)},this))}else Bk(this.G.j)&&this.sa.nk(this.R,t(function(b){b=TW(b);1!=b.length&&kW(this,
[],b)},this))};var TW=function(b){var c=[new gW("","All languages")];y(F(b,TS,1),function(b){c.push(new gW(x(B(b,1)),x(b.T())))});return c},dW=function(b,c){og(c,PW,{uw:"Edit",Vw:"Get embed code"});b.ga.fb(xf("gci-exhibitmanager-edit-button",c));b.ca.fb(xf("gci-exhibitmanager-embed-button",c));b.ga.C("action",b.Ih,!1,b);b.ca.C("action",function(){var b=UW(this)[0],c="https://"+Ww(this.G,"embedHost")+"/embed/exhibit/"+B(b,1),b=new MW(c,x(b.getTitle()));aN(this.G.W.Ab,b)},!1,b)};
RW.prototype.Ih=function(){var b=tW(this)[0],c=ob(this.Ja,function(c){return B(c,1)==b});c&&(B(c,10)?VW(this,b):SW(this,b))};RW.prototype.ad=function(b){b=0==b.type?b.a.length:this.$c;this.ga.setVisible(1===b);if(1!==b)this.ca.setVisible(!1);else{var c=UW(this)[0];this.ca.setVisible(pb(B(c,8),1))}b=Yz(new Uz("{count, plural, =1 {1 exhibit selected} other {# exhibits selected}}"),{count:b});Rf(Z(this,"gci-listmanager-edit-tools-label"),b)};
var UW=function(b){return gb(b.Ja,function(b,d){return 0>d||d>=this.a.length?!1:this.a[d].Lb()},b)},wW=function(b,c){var d={};b.R&&(d.collectionId=b.R);d.q=b.Q;d.offset=b.offset;d.maxMatches=10;d.sort=b.g;d.filter=b.filter;d.langCode=b.hb;Z(b,"gci-listmanager-search-input").value=x(b.Q);b.Ca.Jf(b.g);b.l&&sV(b.l,b.filter,b.hb);uW(b);b.sa.ss(d,t(function(b){vW(this);var d=this.Ja=F(b,QS,1);lW(this);for(var g=0;g<d.length;++g)WW(this,g,d[g]);g=!d.length&&0==this.offset&&Ea(x(this.Q))&&Ea(x(this.filter))&&
Ea(x(this.hb))&&"date_modified"==this.g;Jq(Z(this,"gci-listmanager-list-detail-container"),!g);d=Z(this,"gci-listmanager-noitemsnotice-container");Jf(d);g&&(g=L(QW,void 0),d.appendChild(g));g=b.Ge();this.total=(d=B(b,3))||0;this.p=g||this.offset;this.Db=Math.max(0,this.offset-10);this.H.Ga(0<this.offset);this.A.Ga(this.offset<this.p&&this.p<this.total);g=Z(this,"gci-pager-text");Jf(g);0!=this.total&&(g.appendChild(L(wV,{start:Math.min(this.offset+1,d),end:Math.min(this.offset+10,d),total:d})),0<this.offset||
this.offset<this.p&&this.p<this.total||ch(Z(this,"gci-pager-text"),"gci-pager-text-disabled"));this.$c=B(b,3)|0;c&&c()},b),t(function(){vW(this);c&&c()},b))},WW=function(b,c,d){var e=B(d,1),f=Bk(b.G.j),f={title:d.getTitle(),si:wj(B(d,6)||0,4),destinations:gV(iV(b.Z),B(d,8)),uy:Aj(B(d,9)||0),ox:B(d,13),ut:B(d,5),status:XW(d),tA:f,sA:xW(B(d,12))};c=oW(b,c,e,f);var f=xf("gci-exhibitmanager-exhibit-titleimage",c),g=d.Xc();g&&(g=Ci(g),(new Ly(f,g,{de:{width:125,height:85},Cc:!0,title:d.getTitle()})).load());
nr(b).C(xf("gci-listmanager-table-edit-column",c),"click",function(b){B(d,10)?VW(this,e):SW(this,e);b.preventDefault();b.stopPropagation()});B(d,3)&&nr(b).C(xf("gci-listmanager-status-link",c),"click",function(b){var c=B(d,1);c&&this.G.Oa("exhibit",{exhibitId:c});b.preventDefault();b.stopPropagation()})},XW=function(b){var c="",d="",e="",f="";B(b,2)&&(c="In progress",e="gci-listmanager-status-pending");if(B(b,3)){if(!c||B(b,9)<=B(b,11))c="Complete",e="gci-listmanager-status-ok";d="See completed version"; f=x(B(b,1))}return{name:c,message:d,className:e,url:f}},SW=function(b,c){b.G.Oa("edit",{exhibitId:c})},VW=function(b,c){var d=b.Z?b.Z.getId():-1;jV(px(Xw(b.G,"classicCurationBaseUrl"))+"?partnerId="+d+"#!composer:exhibitId="+c)};
var YW=function(b,c,d,e){$M.call(this,b,c,d);this.Qb=null;this.a=e.get("c")};v(YW,$M);
YW.prototype.Na=function(b,c,d){var e=this.g;YW.r.Na.call(this,b,c,d);e||ZW(this,b);c=this.Sa();b=this.Qb;c={gp:c.exhibitId,Hg:c.filter,Ig:c.lang,tm:c.offset,xk:c.q,aj:c.sort};b.Z=null;b.R=null;c=c||{};d=c.tm||0;isFinite(d)&&(d=String(d));b.offset=ja(d)?/^\s*-?0x/i.test(d)?parseInt(d,16):parseInt(d,10):NaN;p(c.xk)&&(b.Q=c.xk);p(c.aj)&&(b.g=c.aj);p(c.Hg)&&(b.filter=c.Hg);p(c.Ig)&&(b.hb=c.Ig);wW(b);b.ib();c=c.gp;null!=c&&SW(b,c)};
YW.prototype.Wa=function(){this.h||(S(this.Qb),this.Qb=null,this.n&&this.n.remove(),this.n=null);YW.r.Wa.call(this)};
var ZW=function(b,c){b.Qb=new RW(b.a);b.Qb.render(c[0]);b.n=$(b.Qb.w());b.Qb.C("params_changed",function(c){var e=b.Sa();c.params.tm?e.offset=c.params.tm:delete e.offset;c.params.xk?e.q=c.params.xk:delete e.q;c.params.aj&&"date_modified"!=c.params.aj?e.sort=c.params.aj:delete e.sort;c.params.Hg?e.filter=c.params.Hg:delete e.filter;c.params.gp?e.exhibitId=c.params.gp:delete e.exhibitId;c.params.Ig?e.lang=c.params.Ig:delete e.lang;b.Fa(e)})};
var $W=function(b){for(var c='<div class="gci-gallery-progress"><span class="gci-gallery-screen-creator"></span>',d=b.steps,e=0;e<d;e++)c+='<div class="gci-gallery-progress-step" style="width: '+Q(Ug(b.width))+'%;"><div class="gci-gallery-progress-bar"></div></div>';c+='<div class="gci-gallery-progress-step" style="width: '+Q(Ug(b.ey))+'%;"><div class="gci-gallery-progress-bar"></div></div></div>';return M(c)},aX=function(b){return M('<div class="gci-gallery-player-caption">'+N(b.caption)+"</div>")},
bX=function(b){b=b||{};return M('<div class="gci-gallery-player-screen"><div class="gci-gallery-background"></div><div class="gci-gallery-microscope"></div>'+(b.caption?aX(b):"")+"</div>")},cX=function(b){b=b||{};return M('<div class="gci-gallery-player-screen gci-gallery-player-screen-sv"><div class="gci-gallery-streetview"></div>'+(b.caption?aX(b):"")+"</div>")},dX=function(b){b=b||{};return M('<div class="gci-gallery-player-screen"><div class="gci-gallery-video"></div><div class="gci-gallery-video-mask"></div>'+
(b.caption?aX(b):"")+"</div>")},eX=function(b){var c;c='<div class="gci-gallery-player-credits"><div class="gci-exhibit-image"></div><div class="gci-exhibit-cover-bottom-gradient"></div><div class="gci-gallery-player-restart"><div class="gci-gallery-player-restart-container"><div class="SPRITE_start_immersive"></div><div class="gci-gallery-player-restart-text">Restart</div></div></div><div class="gci-gallery-credits-container"><div class="gci-gallery-credits"><h1>Credits</h1><ul>';for(var d=b.px,
e=d.length,f=0;f<e;f++)c+="<li>"+N(d[f])+"</li>";c+="</ul>"+(b.fc&&b.fc.url&&b.fc.title?'<a href="'+Q(R(b.fc.url))+'" class="gci-gallery-partner-link" target="_blank">'+N(b.fc.title)+"</a>":"")+'<div class="gci-exhibit-partner"></div></div></div></div>';return M(c)},fX=function(b){b=""+('<div class="gci-gallery-viewer gci-gallery-viewer-beginning '+(b.yA?"gci-3d-transform":"gci-no-3d-transform")+'"><div class="gci-gallery-viewer-content"></div>'+P(rv({title:O("Go to the previous screen")}))+P(sv({title:O("Go to the next screen")}))+
"</div>");return M(b)},iX=function(b){var c="",d='<div class="gci-gallery-player-header'+(b.Va?" gci-gallery-player-header-visible":"")+" "+(b.Nb||b.ua?"gci-gallery-header-plain":"gci-gallery-header-gradient")+'"><span class="gci-gallery-player-header-title">'+(b.da?N(b.da)+" - ":"")+N(b.title)+"</span>"+gX()+'<span class="gci-gallery-player-help-container"><span class="gci-gallery-player-help SPRITE_help_immersive"></span>'+hX(b)+'</span><span class="gci-gallery-player-fullscreen"><span class="gci-gallery-player-fullscreen-disable" title="'+
Fg("Exit full screen")+'"></span><span class="gci-gallery-player-fullscreen-enable" title="'+Fg("Full screen")+'"></span></span>';b.kA?(b=""+('<span class="gci-gallery-player-slideshow SPRITE_slideshow" title="'+Fg("Slideshow")+'"></span>'),b=M(b)):b="";return M(c+(d+b+"</div>"))},gX=function(){var b;b=""+('<span class="gci-gallery-player-close SPRITE_close_immersive" title="'+Fg("Exit")+'"></span>');return M(b)},hX=function(b){var c='<div class="gci-gallery-player-tips '+(b.qe?"gci-gallery-player-tips-mobile":
"")+'"><div class="gci-gallery-player-tips-container">',c=b.qe?c+'<div class="gci-gallery-player-tips-swipe"><div class="SPRITE_tip_swipe"></div></div>':c+('<div class="gci-gallery-player-tips-scroll" title="'+Fg("Use your mousewheel to navigate.")+'"><div class="SPRITE_tip_scroll"></div><div class="gci-gallery-player-tips-scroll-text">Scroll</div></div><div class="gci-gallery-player-tips-keyboard" title="'+Fg("Use your keyboard left and right arrows to navigate.")+'"><div class="SPRITE_tip_keyboard"></div><div class="gci-gallery-player-tips-keyboard-text">Keyboard</div></div>');
return M(c+"</div></div>")},jX=function(b){b=""+('<div class="gci-gallery-player-start"><div class="gci-gallery-player-start-container">'+(b.qe?"":'<div class="SPRITE_start_immersive"></div>')+'<div class="gci-gallery-player-start-text">Start</div></div></div>');return M(b)},kX=function(b){b=b||{};return M('<div class="gci-screen gci-screen-future'+(b.os?" gci-screen-mobile-enabled":"")+'"><div class="gci-screen-content"></div>'+(b.os?'<div class="gci-screen-mobile-mask"></div>':"")+"</div>")},mX=
function(b){b=b||{};return M('<div class="gci-gallery-viewer-scene'+(b.Rx?" gci-gallery-immersive-scene":"")+(b.Ng?" gci-scene-type-"+Q(b.Ng):"")+'"><div class="gci-gallery-viewer-scene-content-wrapper">'+("tour-stop"==b.Ng?'<div class="gci-gallery-viewer-stop-column"><div class="gci-gallery-viewer-stop-content"></div>'+(b.$r?lX():"")+"</div>":b.$r?lX():"")+'<div class="gci-gallery-viewer-scene-content gci-scene-no-visual"></div></div></div>')},oX=function(b){b=b||{};var c='<div class="gci-gallery-viewer-scene-info-wrapper">';
b.oa&&(c+='<div class="gci-scene-type-headline">Title Page</div>');c+='<div class="gci-scene-content-cover-info"><div class="gci-scene-content-cover-info-center"><div class="gci-scene-content-cover-info-content">';if(b.title||b.da||b.Nd)c+='<div class="gci-exhibit-date-title"><div class="gci-exhibit-date-wrapper"><span class="gci-exhibit-date-border"></span>'+(b.da?'<span class="gci-exhibit-date-text">'+N(b.da)+"</span>":"")+'<span class="gci-exhibit-date-border"></span></div><h1 class="gci-scene-editable'+
(b.title?"":" gci-scene-editable-empty")+'" data-model="title" data-placeholder="'+Fg("Add title")+'">'+(b.title?N(b.title):"")+"</h1></div>";if(b.description||b.Nd)c+='<p class="gci-scene-editable'+(b.description?"":" gci-scene-editable-empty")+'" data-model="description" data-placeholder="'+Fg("Add description")+'">'+(b.description?N(b.description):"")+"</p>";var d=""+jX(b),e;e=b||{};e=M(e.fc?'<div class="gci-gallery-attribution"><span class="gci-gallery-attribution-separator"></span><div class="gci-gallery-attribution-text">'+
N(e.fc)+"</div></div>":"");c=c+("</div></div>"+nX({fs:Cg(d+e+hX(b))})+"</div></div>");return M(c)},nX=function(b){b=b||{};return M('<div class="gci-scene-content-cover-bottom-gradient">'+(b.fs?N(b.fs):"")+"</div>")},pX=function(b){var c;c='<div class="gci-gallery-viewer-scene-info-wrapper">';b.qe&&(c+='<div class="gci-gallery-expand"><a href="#" class="gci-gallery-expand-button" title="'+Fg("Expand this section.")+'"><span aria-hidden="true"></span></a></div>');c+='<div class="gci-scene-type-headline">Section</div><div class="gci-scene-content-stop-info">';
if(b.title||b.Nd)c+='<h1 class="gci-scene-editable" data-model="title"',b.Nd&&(c+='data-placeholder="'+Fg("Add title")+'"'),c+=">"+(b.title?N(b.title):"")+"</h1>";if(b.description||b.Nd)c+='<p class="gci-scene-editable" data-model="description"',b.Nd&&(c+='data-placeholder="'+Fg("Add description")+'"'),c+=">"+(b.description?N(b.description):"")+"</p>";return M(c+"</div></div>")},lX=function(){return M('<div class="gci-scene-bigmap"></div>')},qX=function(b){b=b||{};var c='<div class="gci-scene-separator"><div class="gci-scene-separator-area">';
if(b.fd){var d="",d=b.oa?d+'Drag a saved <br> item or<a href="#picker" class="gci-scene-separator-area-picker-link">Select a <br> Street View</a>':d+"Drag a saved item",d=Cg(d),c=c+('<div class="gci-scene-separator-create gci-scene-separator-create-room"><div class="gci-scene-separator-section gci-scene-separator-title"><div class=gci-scene-separator-content>Add new panel</div></div><div class="gci-scene-separator-section"><img src="'+Q(R(ju("common/pixel.gif")))+'" class="SPRITE_create_3up"/></div><div class="gci-scene-separator-section"><div class=gci-scene-separator-content>'+
N(d)+"</div></div></div>");b.oa&&(c+='<div class="gci-scene-separator-create gci-scene-separator-create-tour"><div class="gci-scene-separator-section gci-scene-separator-title"><div class=gci-scene-separator-content>Add new section</div></div><div class="gci-scene-separator-section"><img src="'+Q(R(ju("common/pixel.gif")))+'" class="SPRITE_create_stop"/></div><div class="gci-scene-separator-section"><div class=gci-scene-separator-content>'+N(d)+"</div></div></div>")}return M(c+"</div></div>")},rX=
function(){return M('<div class="gci-gallery-image-room"><div class="gci-gallery-image-holder"></div><div class="gci-gallery-image-room-shield"></div></div>')},sX=function(b){b=b||{};return M('<div class="gci-gallery-video-room"><div class="gci-gallery-video-holder"></div><div class="shield"></div>'+(b.MA?'<div class="gci-gallery-video-mask"></div>':"")+"</div>")},tX=function(){return M('<div class="gci-gallery-streetview-room"><div class="gci-gallery-streetview-holder"></div><div class="gci-gallery-streetview-room-shield"></div><div class="gci-streetview-shield"></div><div class="gci-gallery-streetview-player-holder"></div></div>')},
uX=function(){return M('<div class="gci-asset-gallery-item gci-unresolved-asset"><div class="gci-consumer-unresolved-container"><div class="SPRITE_missingAsset40x40blackbg"></div><span class="gci-consumer-unresolved-asset-message">This material has been removed by the owner</span></div></div>')},vX=function(b){var c='<div class="gci-caption-widget gci-caption-widget-out ';switch(b.style){case 0:c+="gci-caption-gallery";break;case 1:c+="gci-caption-immersive gci-caption-immersive-long";break;case 2:c+=
"gci-caption-immersive gci-caption-immersive-short"}c+='">';b.qe&&(c+='<div class="gci-gallery-expand"><a href="#" class="gci-gallery-expand-button" title="'+Fg("Expand this caption.")+'"><span aria-hidden="true"></span></a></div>');c+='<div class="gci-caption-container"><div class="gci-caption-content'+(b.HA?" gci-caption-video-text":"")+(b.Tv?" gci-caption-audio-text":"")+'">'+(b.il?'<div class="gci-caption-content-error">'+N(b.il)+"</div>":"")+"</div></div></div>";return M(c)},wX=function(){return M('<div class="gci-caption-content-text"></div>')},
xX=function(b){b=""+('<div class="gci-caption-video-thumbnail"><img src="'+Q(R(b.IA))+'" alt="'+Fg("video caption")+'" /><div class="gci-video-shield"><img src="'+Q(R(ju("common/overlay-play_0.png")))+'"></div></div>');return M(b)},yX=function(){return M('<button class="gci-video-caption-close">\u00d7</button>')},zX=function(b){b=b||{};b=""+('<div class="gci-audio-caption"><div class="gci-audio-caption-title">'+(b.title?N(b.title):"")+'</div><div class="gci-audio-caption-processing-msg">Processing audio file...</div><div class="gci-audio-caption-player"></div></div>');
return M(b)},AX=function(b){b=b||{};var c;c='<div class="gci-scene-credits"><div class="gci-credits-information-panel"><header>Credits: all media</header><div class="gci-scene-credits-disclaimer">';c=b.Nb?c+"The exhibit featured may in some cases have been created by an independent third party and may not always represent the views of the institutions, listed below, who have supplied the content.":c+"This user gallery has been created by an independent third party and may not always represent the views of the institutions, listed below, who have supplied the content.";
c+="</div>";if(b.lg&&0<b.lg){c+='<section class="gci-scene-credits-partners"><ul class="gci-small-discover">';b=b.lg;for(var d=0;d<b;d++)c+="<li></li>";c+="</ul></section>"}return M(c+"</div></div>")},BX=function(b){b=b||{};var c,d=!b.lg&&!b.vt&&!b.as;c=""+('<div class="gci-scene-credits'+(d?" gci-scene-credits-noinformation":"")+'"><div class="gci-credits-actions-panel"><div class="gci-credits-visual"></div><div class="gci-credits-visual-mask"></div><div class="gci-credits-actions"><span class="gci-credits-action-share"><div class="gci-credits-action-icon SPRITE_big_rounded_share"></div><div>Share</div></span><span class="gci-credits-action-restart"><div class="gci-credits-action-icon SPRITE_big_rounded_restart"></div><div>Restart</div></span><span class="gci-credits-action-home"><div class="gci-credits-action-icon SPRITE_big_rounded_home"></div><div>Home</div></span></div></div>');
if(!d){c+='<div class="gci-credits-information-panel"><header>Credits</header>'+(b.vt?'<div class="gci-credits-main-partner"></div>':"")+(b.as?'<div class="gci-credits-text"></div>':"");if(b.lg&&0<b.lg){c+='<section class="gci-scene-credits-partners"><ul class="gci-small-discover">';b=b.lg;for(d=0;d<b;d++)c+="<li></li>";c+="</ul></section>"}c+="</div>"}return M(c+"</div>")};
var CX=function(b,c,d){Bj.call(this);this.h=b;this.g=c;this.e=d;this.jc=t(this.j,this)};v(CX,Bj);CX.prototype.b=!1;CX.prototype.k=0;CX.prototype.a=null;var EX=function(b){b.a||b.k?b.b=!0:DX(b)};CX.prototype.stop=function(){this.a&&(n.clearTimeout(this.a),this.a=null,this.b=!1)};CX.prototype.pause=function(){this.k++};CX.prototype.D=function(){CX.r.D.call(this);this.stop()};CX.prototype.j=function(){this.a=null;this.b&&!this.k&&(this.b=!1,DX(this))};var DX=function(b){b.a=Jm(b.jc,b.g);b.h.call(b.e)};
var GX=function(b,c,d){U.call(this);this.G=Y;var e=this;this.n=$("<div>").addClass("collections-exhibit-player").appendTo(b);this.h=$("<div>").addClass("background-cover").appendTo(b);this.e=$("<div>").addClass("gci-exhibit-player-exhibit-viewer").appendTo(this.n);this.b=null;$(L(gX)).on("click",function(){e.n.trigger("exit");return!1}).appendTo(this.e);this.l=$("<div>").addClass("gci-exhibit-player-cover-slider").append($("<div>").addClass("gci-exhibit-player-cover-slider-layer")).hide().appendTo(this.e);
this.p=$("<div>").addClass("gci-exhibit-player-exhibit-attribution-container").appendTo(b);this.H=$("<div>").addClass("gci-exhibit-cover-bottom-gradient").appendTo(b);this.a=$("<div>").attr("id","monitor").addClass("monitor").appendTo(this.e);this.g=$("<div>").addClass("slider-container").appendTo(this.e).hide();this.I=$("<div>").addClass("slider-container-padding").appendTo(this.g);this.j=new FX(this,$("<div>").addClass("slider").appendTo($("<div>").addClass("slider-container-container").appendTo(this.I)));
this.J(this.j);this.R=0;this.ca=!!c;this.Q=!!d;this.o=[];this.K=this.B=0;this.A=new CX(t(this.sa,this),1E3);this.O=null};v(GX,wk);k=GX.prototype;k.nv=100;k.ja=null;k.mc=null;k.Md=null;k.rg=null;k.sg=null;k.ah=null;k.vi=0;k.Ds=!1;
k.D=function(){HX(this);S(this.ah);this.ah=null;this.h&&this.h.remove();this.h=null;this.l&&this.l.remove();this.b&&this.b.remove();this.b=null;this.p&&this.p.remove();this.p=null;this.H&&this.H.remove();this.H=null;this.mc&&this.mc.remove();this.mc=null;this.a&&this.a.remove();this.a=null;this.I&&this.I.remove();this.I=null;this.g&&this.g.remove();this.g=null;this.e&&this.e.remove();this.e=null;this.n&&this.n.remove();this.n=null;S(this.A);this.A=null;GX.r.D.call(this)};
var MX=function(b,c){if(b.ja!=c){HX(b);b.ja=c;Pd(b.n[0],kQ(b.ja));b.mc=c.e;b.o=$.map(Array(c.a.length),function(){return!1});b.B=0;b.K=(new Date).getTime();b.a.empty().append(b.mc);Ki(b.a);c.resize();b.ka();b.b.hide();b.g.show();IX(b.j,c);b.ja.bind("collections-exhibit-gallery-column-added.collections-exhibit-player",$.proxy(b.Ca,b));b.ja.bind("collections-exhibit-gallery-column-resized.collections-exhibit-player",$.proxy(b.Ja,b));b.ja.bind("collections-exhibit-gallery-cover-changed.collections-exhibit-player",
$.proxy(b.ka,b));vi(b.e,"gallery-exhibit-player",$.proxy(GX.prototype.ga,b));b.rg=$("<div>").addClass("gci-exhibit-player-left").append($(L(rv)).on("click.gci-exhibit-player",t(function(){this.left();return!1},b))).hide().appendTo(b.n);b.sg=$("<div>").addClass("gci-exhibit-player-right").append($(L(sv)).on("click.gci-exhibit-player",t(function(){this.right();return!1},b))).appendTo(b.n);if(zi())b.a.on("scroll.collections-exhibit-player",t(function(){this.position(this.getPosition(),!1,void 0,!0)},
b));if(b.ca)b.a.on("mousedown.collections-exhibit-player",t(function(b){return JX(this,b)},b));var d=!!b.G.ib,e=b.a.width(),d=d?0:1500,f={};f[mS(b.ja)]=e;var g={};g[mS(b.ja)]=0;b.mc.css(f).stop(!0,!0).animate(g,{duration:d,step:t(function(){KX(this)},b)});d={};d[mS(b.ja)]=e+LX(b);b.l.css(d).stop(!0,!0);window.setTimeout(t(function(){EX(this.A)},b),0);c.load(void 0)}},HX=function(b){mk(b.O);b.e.unbind(".gallery-exhibit-player");$(document).unbind(".collections-exhibit-player");b.mc&&b.mc.detach();
b.ja&&(b.ja.unload(),b.ja.unbind(".collections-exhibit-player"));b.a.empty();b.h.hide();var c=b.j;c.g.empty().width(0);c.b=1;c.l=0;c.e=[];c.h=null;b.rg&&b.rg.remove();b.rg=null;b.sg&&b.sg.remove();b.sg=null;b.ja=null;b.mc=null;b.o=[];b.B=0;b.K=0};
GX.prototype.position=function(b,c,d,e){var f=this.mc.width()-this.a.width();b=Math.min(Math.max(Math.round(b),0),f);this.j.position(b);var g=NX(this,b),h=this.ja.a.length-1,l=t(function(){this.rg.data("visible")!=(0!=b)&&this.rg.stop(!0,!0);this.sg.data("visible")!=(b!=f)&&this.sg.stop(!0,!0);this.b.data("visible")!=(0!=OX(this))&&this.b.stop(!0,!0);window.setTimeout(t(function(){var c=this.rg;0!=b?c.fadeIn():c.fadeOut();this.rg.data("visible",0!=b);c=this.sg;b!=f?c.fadeIn():c.fadeOut();this.sg.data("visible",
b!=f);c=this.b;0!=OX(this)?c.fadeIn():c.fadeOut();this.b.data("visible",0!=OX(this))},this),0);if(Math.abs(b-this.R)>GX.prototype.nv||g==h){this.R=b;this.n.trigger("scrolled",[PX(this,b)]);if(this.Q){var c=QX(this);HS(this.ja,g,c)}EX(this.A)}},this);c?this.a.stop(!0,!0).animate({scrollLeft:b},{duration:d?d:1E3,easing:"easeInOutCubic",step:t(function(){KX(this)},this),complete:l}):(e||(this.mc.stop(!0,!0),this.a.scrollLeft(b)),KX(this),l())};
GX.prototype.sa=function(){for(var b=Math.max(0,OX(this)),c=Math.min(this.o.length-1,QX(this));b<=c;++b){var d=this.o[b];this.o[b]=!0;d||this.B++;80<=RX(this)&&6E4<=new Date-this.K&&this.n.trigger("set-awesome");d||(d=CS(this.ja,b),this.n.trigger("asset-views",[d]))}};var RX=function(b){return b.ja?parseInt(b.B/b.ja.a.length*100,10):0};GX.prototype.focus=function(b){if(b=this.ja.gb(b))b=Math.max(0,b.left()-Math.round(this.a.innerWidth()/2)+Math.round(b.width()/2)),this.position(b,!0)};
var NX=function(b,c){for(var d=b.ja,e=kQ(b.ja)?d.a.length-1:0,f;f=d.gb(e);kQ(b.ja)?e--:e++){f=f.width()+b.ja.zf;if(c<f)return e;c-=f}return-1};GX.prototype.right=function(){var b=this.ja,c=OX(this),d=QX(this);if(d==c){var e=b.gb(kQ(this.ja)?c:d),e=e.left()+(kQ(this.ja)?this.a.width():e.width()-this.a.width());if(e!=this.getPosition()){this.position(e,!0);return}d++}0<=d&&(e=b.gb(kQ(this.ja)?c:d))&&this.position(e.left(),!0)};
GX.prototype.left=function(){var b=this.ja,c=OX(this),d=QX(this);if(d==c){var e=b.gb(c),e=e.left();if(e!=this.getPosition()){this.position(e,!0);return}c--}0<=c&&(e=b.gb(kQ(this.ja)?d:c),e=e.left()+((kQ(this.ja)&&d!=this.ja.a.length-1?e.width():0)+e.width()-this.a.width()),this.position(e,!0))};var OX=function(b){return NX(b,b.getPosition()+(kQ(b.ja)?b.a.width():0))},QX=function(b){var c=b.getPosition()+(kQ(b.ja)?0:b.a.width()-1);return NX(b,c)};GX.prototype.Fe=function(){return this.ja};
GX.prototype.getPosition=function(){return this.a.scrollLeft()};var PX=function(b,c){var d=c||b.getPosition();kQ(b.ja)&&(d+=b.a.width());var e=NX(b,d);if(0>e)return"";var f=b.Fe().gb(e),d=Math.round(100*(d-f.left())/f.width());kQ(b.ja)&&(d=Math.abs(100-d));return e+","+d},SX=function(b,c){var d=/^([0-9]+),([0-9]+)$/.exec(c);if(d){var e=b.Fe(),f=e.gb(parseInt(d[1],10));f&&(d=parseInt(d[2],10),d=(kQ(b.ja)?-1:1)*f.width()*d/100,e=f.left()-(kQ(b.ja)?f.width()+e.zf*(2*(e.a.length-2)-1):0)+d,b.position(e))}};
GX.prototype.ga=function(b){this.Ds||(this.Ds=!0);b=wi(b.originalEvent||b);b=Math.abs(b.deltaX)>Math.abs(b.deltaY)?b.deltaX:b.deltaY;b=this.getPosition()-120*b;this.position(b);return!1};
var JX=function(b,c){var d=$(c.target);if(d.hasClass(".cell-frame")||d.parents(".cell-frame"))if(d=(d.hasClass(".cell-frame")?d:d.parents(".cell-frame")).data("cell-id"),(d=b.ja&&zS(b.ja,d))&&d.pa()&&d.pa().qb())return!0;var e=b.getPosition()+1.5*c.pageX,f=null;$(document).on("mousemove.collections-exhibit-player",t(function(b){f||(f=$("<div>").addClass("gci-exhibit-player-drag-layer").appendTo("body"));this.position(e-1.5*b.pageX,!0);return!1},b));$(document).on("mouseup.collections-exhibit-player",
t(function(){f&&f.remove();$(document).off("mousemove.collections-exhibit-player");$(document).off("mouseup.collections-exhibit-player");return!1},b));return!1};GX.prototype.resize=function(b,c){TX(this,b,c)};
var TX=function(b,c,d){if(b.e){var e=800<$("body").height()?.7:.8,f;f=$("body").height()-b.e.height();f=("auto"!=$("body").css("min-height")?parseInt($("body").css("min-height"),10):f)-f;var g=$(".slider-container-container").height();f=f-g-20;e=b.ja&&1!=b.ja.o?.9:e;e*b.e.height()>f?(e*=100,f=100-e,b.a.css("height",e+"%"),b.g.css("top","auto"),b.g.css("height",f+"%")):(b.a.css("height",f),b.g.css("top",f),b.g.css("height","auto"));e=b.a.height();e=Math.max(0,e-380);b.n.css("font-size",X(b.G)?12:10+
e/27.5);b.ja&&(d?b.ja.resize(c):(d=PX(b),b.ja.resize(c),SX(b,d)),b.ah&&b.ah.resize());KX(b);b.j&&b.mc&&b.j.resize(c)}};GX.prototype.Ca=function(b,c,d,e){b=this.mc.width();c=this.mc.height();c=e.resize(b,c,this.a.width());this.mc.width(b+c);KX(this);UX(this.j,d,e)};GX.prototype.Ja=function(b,c,d){this.ja&&this.ja.resize(!0);KX(this);b=this.j;c=0;for(var e;e=b.e[c];c++)if(e.bl==d){e.Jm.remove();b.e.splice(c,1);b.resize();b.position(b.Ua.getPosition());break}};
GX.prototype.ka=function(){var b=this.ja.ef();b?(this.h.show(),S(this.ah),this.ah=new Ly(this.h,xA(b),{Cc:!0}),this.ah.load()):this.h.hide();KX(this);VX(this);this.p.empty().append($("<div>").addClass("gci-exhibit-attribution-display").text(vS(this.ja)||""));(b=BS(this.ja))&&this.p.append(b.addClass("gci-exhibit-cover-attribution-display"))};
var VX=function(b){var c=wS(b.ja),d=b.ja.getTitle(fQ(b.ja)?b.ja.g:"en");b.b&&b.b.remove();b.b=$(L(iX,{da:c,title:d,qe:zi()}));b.b.find(".gci-gallery-player-close").on("click",function(){b.n.trigger("exit");return!1});mk(b.O);var e=b.b.find(".gci-gallery-player-fullscreen");b.O=T(document,rR,function(){e.toggleClass("gci-gallery-player-fullscreen-active")});e.on("click",function(){uR()?tR():sR();return!1});uR()&&e.toggleClass("gci-gallery-player-fullscreen-active");b.b.appendTo(b.e)},KX=function(b){if(b.ja){var c=
b.h.find(".holder-background"),d=b.ja.gb(0).w(),e="TRUE"==Ot(b.ja.b,jl);b.l.toggle(e);if(e){var f=b.ja.gb(0).width()+2*b.ja.zf,f=b.mc.width()-f;b.l.width(f).height($("body").height());var f=WX(b),g=LX(b),h=b.mc.position().left,l={};l[mS(b.ja)]=g+(0<h?h:0);b.l.css(l);c.css("background-position",-(f-g)/3+"px 50%");c={"z-index":0};c[mS(b.ja)]=(f-g)/2+b.ja.zf;d.css(c)}else c.css("background-position","50% 50%"),c={"z-index":1},c[mS(b.ja)]=b.ja.zf,d.css(c);b.n.toggleClass("gci-exhibit-player-cover-slides-behind",
e)}},LX=function(b){return WX(b)-b.getPosition()-b.ja.zf},WX=function(b){return b.ja.gb(0).width()+2*b.ja.zf+b.ja.zf/2},FX=function(b,c){U.call(this);this.Ua=b;this.h=null;this.g=c;this.j=1;this.l=this.vi=0;this.b=1;this.e=[]};v(FX,wk);var XX=K.fv-60;FX.prototype.D=function(){this.Ua=null;this.g.remove();this.g=null;this.e=[];FX.r.D.call(this)};
var YX=function(b,c){var d=b.g.width()-b.Md.width(),e=b.Ua,d=(e.mc.width()-e.a.width())/d;return c*d},IX=function(b,c){b.g.empty();b.h=c;b.j=b.Ua.mc.height()/40;for(var d=0,e;e=b.h.gb(d);d++)UX(b,d,e);b.Md=$("<div>").addClass("slider-cursor").width(b.b*b.Ua.n.width()/b.j).appendTo(b.g);b.vi=Math.floor((b.Md.outerWidth()-b.Md.innerWidth())/2);b.Md.bind("mousedown.collections-exhibit-player",$.proxy(b.o,b));b.Md.Zg().bind("swipemove.collections-exhibit-player",$.proxy(function(b,c){var d=this.Md.position().left+
c.offsetX+this.vi;this.Ua.position(YX(this,d));return!1},b))};FX.prototype.position=function(b){var c=this.Ua,d=this.g.width()-this.Md.width(),c=(c.mc.width()-c.a.width())/d;b=Math.round(b/c)-this.vi;c=this.g.width()-this.Md.width()-this.vi;d={};d.left=Math.min(Math.max(b,-2),c);this.Md.css(d)};
FX.prototype.o=function(b){var c=this,d=this.Md.position().left-b.pageX,e=this.Ua;$(document).bind("mousemove.collections-exhibit-player",function(b){e.position(YX(c,d+b.pageX+c.vi));return!1});$(document).bind("mouseup.collections-exhibit-player",$.proxy(this.p,this));return!1};FX.prototype.p=function(){$(document).unbind("mousemove.collections-exhibit-player");$(document).unbind("mouseup.collections-exhibit-player");return!1};
var UX=function(b,c,d){var e=ZX(b,d),f=b.b*b.l,g={width:Math.round(b.b*e)};g[mS(b.h)]=f;var h=$("<div>").addClass("slider-column").css(g).appendTo(b.g);b.a(b.l+e);var l=0;$.each(d.g,function(e,f){l=$X(b,d,h,f,c,l)});0>=c&&c>b.e.length&&(c=b.e.length);b.e.splice(c,0,{Jm:h,bl:d,width:e});b.Md&&b.resize(!0)};
FX.prototype.resize=function(b){this.j=this.Ua.mc.height()/40;var c=0,d=this;$.each(this.e,function(b,e){if(0>e.bl.Jc)e.width=-e.bl.Jc*d.b*d.Ua.a.width()/d.j,e.Jm.width(e.width);else{var f=ZX(d,e.bl);e.width=Math.round(d.b*f)}c+=e.width});if(b||c!=this.l){var e=1;c>XX&&(e=XX/c);var f=0;$.each(this.e,function(b,c){var l={width:e*c.width};l[mS(d.h)]=e*f;c.Jm.css(l);f+=c.width});this.b=e;this.a(f)}this.Md.width(this.b*this.Ua.n.width()/this.j);this.position(this.Ua.getPosition())};
var ZX=function(b,c){var d=0>c.Jc?Math.round(-c.Jc*b.Ua.a.width()/b.j):Math.round(40*c.Jc),e=b.l+d,f=0;e>XX?f=XX/e:1!=b.b&&(f=1);if(0<f){var g=0;$.each(b.e,function(c,d){var e={width:f*d.width};e[mS(b.h)]=f*g;d.Jm.css(e);g+=d.width});b.b=f;b.a(g)}return d};FX.prototype.a=function(b){this.g.width(this.b*b).parent().width(this.b*b);this.l=b};
var $X=function(b,c,d,e,f,g){var h=B(e,2),l=100,m=0,r=d;1<e.dd()&&(r=$("<div>").addClass("slider-exhibit-horizontal-cell").css({height:h+"%"}).appendTo(d),h=100,l=Math.floor(100/e.dd()),m=100-e.dd()*l);d=1<e.dd()?{"float":mS(b.h)}:{};for(var u=0;u<e.dd();u++,g++){var w=$.extend(d,0==u?{height:h+"%",width:l+m+"%"}:{height:h+"%",width:l+m+"%"}),w=$("<div>").addClass("slider-cell").appendTo($("<div>").addClass("slider-cell-wrapper").css(w).data("coordinates",{fw:f,cellIndex:g}).bind("click.collections-exhihibit-player", function(){var c=$(this).data("coordinates");c&&b.Ua.focus(c.fw,c.cellIndex)}).appendTo(r)),C=c.lc[g];C.a||C.Zl()||w.addClass("blank")}return g};
var aY=function(b,c,d,e,f){$M.call(this,b,c,d);this.G=Y;this.B=f.get("c");this.I=e;this.l=this.Zb=null};v(aY,$M);k=aY.prototype;k.v=null;k.Da=null;k.aa=null;k.td=null;k.df=null;k.eo=!0;
k.Na=function(b,c,d){this.I&&(S(this.df),this.df=new fN("exhibit"));var e=this.g;aY.r.Na.call(this,b,c,d);X(this.G)&&$("body > footer").hide();if(e){if(c&&c.exhibitId==this.Zb){this.G.of(window.location.href,this.l,!0);return}this.Uj()}this.v=b;var f=this,g=null;b.bind("exit",function(){Rs(f.K,!0)});b.bind("scrolled",function(b,c){g&&window.clearTimeout(g);g=window.setTimeout(function(){g=null;if(!uR()&&f.b){var b=$.extend({},f.Sa(),{position:c});f.Fa(b,!0,!0)}},500)})};
k.Uj=function(){this.Da&&this.Da.e.off("click.collections-consumer-exhibit-page",".collections-exhibit .cell-frame");S(this.df);this.df=null;S(this.td);this.td=null;S(this.Da);this.l=this.Zb=this.Da=null;this.v&&this.v.unbind("exit").unbind("scrolled").unbind("set-awesome");this.v=null};k.Wa=function(){X(this.G)&&$("body > footer").show();this.Da&&xS(this.Da);this.h||this.Uj();aY.r.Wa.call(this)};
k.load=function(b){if(!b)tx("Exhibit not found.",!0);else if(this.b){bY(this,"dl");this.Da=b;this.Zb=b.id;this.l=b.getTitle();MX(this.td,b);this.aa=LS(b,this.B);b.e.find(".cell-frame").on("click.collections-consumer-exhibit-page",t(this.Dy,this));var c=this.Sa();c&&c.position&&SX(this.td,c.position);c=this.td;if(c.Q){var d=OX(c),e=QX(c);HS(c.ja,d,e)}c=this.G.h;!this.isDisposed()&&c&&(this.b||this.v.is(":visible"))&&(d=this.Sa().projectId,cY(c,this.Da.id,this.Da.Td(),IS(this.Da),d));this.G.of(window.location.href,
b.getTitle(),!0);bY(this,"ac",!0)}};k.Dy=function(b){this.aa=LS(this.Da,this.B);var c=$(b.currentTarget).data("cell-id");b=zS(this.Da,c);a:{for(var d=this.Da,e=0,f=0,g;g=d.gb(f);f++)for(var h=0,l;l=g.lc[h];h++){if(l.id==c){c=e;break a}(l.pa()||0==f&&d.ef())&&++e}c=-1}this.aa.focus(c);b&&b.a&&b.pa()&&this.Zf(b.pa().getId());return!1};
k.Zf=function(b,c){var d={"l.id":b,exhibitId:this.Da.id},e={loader:this.aa,exhibitId:this.Da.id};this.Da.Td()&&(d.userGallery="",e.userGallery="");c&&(e.startSlideshow=!0);this.G.Oa(this.G.W.Zd,d,e)};k.mf=function(b){var c=this.G.h;if(c){var d=this.Sa().projectId,e=this.Da.Td(),f=IS(this.Da);dY(c,4,{Zb:this.Da.id,Td:e,Qg:f,nf:b,ba:d})}};k.Fa=function(b,c,d){this.Da&&(b.urlStub=this.Da.getTitle());aY.r.Fa.call(this,b,c,d)};
k.cd=function(){this.td&&this.td.resize();this.v.find(".background-cover .collections-image-holder").css({"-webkit-transform":"none"});window.setTimeout(t(function(){this.v.find(".background-cover .collections-image-holder").css({"-webkit-transform":""})},this),0)};k.md=function(){this.td&&this.td.right()};k.ld=function(){this.td&&this.td.left()};var bY=function(b,c,d){b.I&&(b.df&&gN(b.df,c),d&&(b.df&&b.df.report(),S(b.df),b.df=null))};
var eY=function(b){b=b||{};var c=M,d='<div class="gci-ui-youtubeplayer'+(b.nj?" gci-ui-youtubeplayer-with-controls":"")+'"><div class="gci-ui-youtubeplayer-player"></div>';b=b.nj?M('<div class="gci-ui-youtubeplayer-cropping"><div class="gci-ui-youtubeplayer-cropping-start"><label>Start time:</label><span class="gci-ui-youtubeplayer-cropping-start-input"></span></div><div class="gci-ui-youtubeplayer-cropping-end"><label>End time:</label><span class="gci-ui-youtubeplayer-cropping-end-input"></span></div></div>'):
"";return c(d+b+"</div>")},fY=function(b){return M('<span class="gci-ui-youtubeplayer-cropping-fields">'+(3600<=b.Wo?'<input class="gci-ui-youtubeplayer-cropping-hour" type="text" maxlength="2" placeholder="00"></input>:':"")+(60<=b.Wo?'<input class="gci-ui-youtubeplayer-cropping-min" type="text" maxlength="2" placeholder="00"></input>:':"")+'<input class="gci-ui-youtubeplayer-cropping-sec" type="text" maxlength="2" placeholder="00"></input></span>')};
var jY=function(b,c,d){W.call(this);d=d||{};this.n=L(eY,{nj:d.nj});b.appendChild(this.n);this.A=c;this.l=!!d.autoplay;this.B=!!d.$q;this.ha=null;this.b=d.endTime||null;this.a=d.startTime||null;this.o=d.Cq||!1;this.j=d.Xv||!1;this.g=!1;this.e=[];this.e.push(nG("gci.ui.media-play",function(){try{this.ha.stopVideo()}catch(b){}},this));this.e.push(nG("gci.ui.media-startplaying",function(b){if(b!=pa(this)&&this.ha)try{this.pause()}catch(c){}},this));this.h=new bJ;gY(this);d.nj&&this.C("gci.ui.media-player-ready",
function(){var b=this.ha.getDuration(),c=xf("gci-ui-youtubeplayer-cropping-start-input",this.n);og(c,fY,{Wo:b});this.a&&hY(c,parseInt(this.a,10));c=xf("gci-ui-youtubeplayer-cropping-end-input",this.n);og(c,fY,{Wo:b});hY(c,parseInt(this.b||b,10));iY(this)},void 0,this)};v(jY,W);jY.prototype.D=function(){try{S(this.ha)}catch(b){}oG(this.e);this.n.remove();jY.r.D.call(this)};
var gY=function(b){var c={autoplay:b.l?1:0,disablekb:1,rel:0,cc_load_policy:1};Hi()||(c.wmode="transparent");b.b&&(c.end=b.b);b.a&&(c.start=b.a);b.o&&(c.controls=0,c.showinfo=0);b.j&&(c.autohide=1);b.ha=new YT.Player(xf("gci-ui-youtubeplayer-player",b.n),{width:"100%",height:"100%",videoId:b.A,playerVars:c,events:{onReady:t(function(){this.dispatchEvent("gci.ui.media-player-ready")},b),onStateChange:t(function(b){switch(b.data){case YT.PlayerState.PLAYING:this.g||pG("gci.ui.media-startplaying",pa(this));
this.dispatchEvent("gci.ui.media-play");break;case YT.PlayerState.ENDED:this.dispatchEvent("gci.ui.media-play");this.ha?(b=this.b||this.ha.getDuration(),b=this.ha.getCurrentTime()>=b):b=!1;b&&this.B&&ch(this.n,"gci-ui-youtubeplayer-fadeout");break;case YT.PlayerState.PAUSED:this.dispatchEvent("gci.ui.media-Stop")}window.focus()},b)}})};
jY.prototype.play=function(){var b=t(function(){eh(this.n,"gci-ui-youtubeplayer-fadeout");this.ha.playVideo();this.ha.seekTo(this.a||0,!0)},this);try{this.ha&&(this.ha.playVideo?b():kk(this,"gci.ui.media-player-ready",b))}catch(c){}};jY.prototype.stop=function(){try{this.ha&&(this.ha.stopVideo?this.ha.stopVideo():kk(this,"gci.ui.media-player-ready",function(){this.ha.stopVideo()},void 0,this))}catch(b){}};
jY.prototype.pause=function(){try{this.ha&&(this.ha.pauseVideo?this.ha.pauseVideo():kk(this,"gci.ui.media-player-ready",function(){this.ha.pauseVideo()},void 0,this))}catch(b){}};jY.prototype.ud=function(){this.g=!0;ch(this.n,"gci-ui-youtubeplayer-preloading");kk(this,"gci.ui.media-play",function(){this.g=!1;this.pause();eh(this.n,"gci-ui-youtubeplayer-preloading")},void 0,this);this.play()};
var iY=function(b){T(b.h,"key",b.p,void 0,b);var c=t(function(b){var c=!1;T(b,"focus",function(f){b.select();c=!0;aJ(this.h,f.target)},void 0,this);T(b,"mouseup",function(b){c&&b.preventDefault();c=!1});T(b,"blur",function(){var c=En(b);2>c.length&&Hn(b,"0"+c);this.dispatchEvent("gci.ui.media-edited")},void 0,this)},b);y(b.n.querySelectorAll(".gci-ui-youtubeplayer-cropping-start-input input"),function(b){c(b);T(b,"keyup",function(b){if(kY(b)){b=this.n.querySelector(".gci-ui-youtubeplayer-cropping-start-input");
var c=this.b||this.ha.getDuration(),d=lY(b);d>=c&&(d=c-1,hY(b,d));this.a=d;this.ha.seekTo(this.a,!0);this.ha.pauseVideo()}},void 0,this)},b);y(b.n.querySelectorAll(".gci-ui-youtubeplayer-cropping-end-input input"),function(b){c(b);var e=null;T(b,"keyup",function(b){kY(b)&&(window.clearTimeout(e),e=window.setTimeout(t(function(){var b=this.n.querySelector(".gci-ui-youtubeplayer-cropping-end-input"),c=this.a||0,d=lY(b);d<=c?(d=c+1,hY(b,d)):d>this.ha.getDuration()&&(d=Math.floor(this.ha.getDuration()),
hY(b,d));this.b=d;this.ha.seekTo(d,!0);this.ha.pauseVideo()},this),800))},void 0,this)},b)},lY=function(b){var c=b.querySelector(".gci-ui-youtubeplayer-cropping-sec"),d=b.querySelector(".gci-ui-youtubeplayer-cropping-min");b=b.querySelector(".gci-ui-youtubeplayer-cropping-hour");c=En(c)||0;d=d?En(d):0;b=b?En(b):0;d=new bj(0,0,0,parseInt(b,10),parseInt(d,10),parseInt(c,10));return 60*(60*(24*d.a+d.b)+d.k)+d.e},hY=function(b,c){var d=b.querySelector(".gci-ui-youtubeplayer-cropping-sec"),e=b.querySelector(".gci-ui-youtubeplayer-cropping-min"),
f=b.querySelector(".gci-ui-youtubeplayer-cropping-hour"),g=new gj(1900,0,1);g.add(new bj("s",c));var h;f&&(h=g.getHours(),Hn(f,10>h?"0"+h:h));e&&(h=g.getMinutes(),Hn(e,10>h?"0"+h:h));h=g.getSeconds();Hn(d,10>h?"0"+h:h)};jY.prototype.p=function(b){if(!(b.ctrlKey||!b.shiftKey&&48<=b.a&&57>=b.a)&&bq(b)){switch(b.keyCode){case 46:case 8:case 9:return}13==b.keyCode&&(b.target.nextElementSibling?b.target.nextElementSibling.focus():b.target.blur());b.preventDefault()}}; var kY=function(b){if(!bq(b)||9==b.keyCode)return!1;var c=En(b.target);60<=c&&Hn(b.target,59);2==c.length&&b.target.nextElementSibling&&b.target.nextElementSibling.focus();return!0};
var pY=function(b,c,d){U.call(this);this.G=Y;this.g=(this.h=X(this.G))?mY:nY;this.a=[];this.j=b;this.e=new bH(c,d);this.l=null;this.a=[];if(b=this.e.Ea().getPanel())for(c=0;c<gH(this.e);c++)if(d=ND(b)[c],UD(d).length&&(d=UD(d)[0],d.pa())){var e=cD(d.pa());if(e){var f=void 0;B(e,4)&&B(e,5)&&(f=new pf(B(e,4),B(e,5)));e=new xC(B(e,1),B(e,2),e.getZoom(),f)}var g=d.pa().wa(),f=d.Kc()?Tl(d.Kc()).T():"";(g=this.e.pa(g.toString()))&&(CC(g)||DC(g))&&this.a.push({F:g,Bj:f,ui:e,Wt:d.pa().getStreetView(),Mm:d.pa().If()})}oY(this)};
v(pY,wk);pY.prototype.D=function(){qY(this);pY.r.D.call(this)};pY.prototype.bind=function(b,c){this.j.bind(b,c)};var rY=function(b){b.j.trigger("gci-immersive-exit")};k=pY.prototype;k.unbind=function(b,c){this.j.unbind(b,c)};k.close=function(){sY(this)};k.Pd=!1;k.ji=null;k.Yj=null;k.Ri=null;k.fo=parseInt($("body").width(),10)||0;k.Bp=parseInt($("body").height(),10)||0;k.vb=-1;k.mr=0;k.rl=null;
var nY={cancel:{left:"",right:""},To:{left:"20%",right:"-20%"},So:{left:"0%",right:"0%"},zp:{left:"-100%",right:"100%"},yp:{left:"0%",right:"0%"},Lp:{left:"-100%",right:"100%"},Kp:{left:"0%",right:"0%"}},mY={cancel:{"-webkit-transform":"",transform:""},To:{"-webkit-transform":"translate3d(20%, 0, 0)",transform:"translate3d(20%, 0, 0)"},So:{"-webkit-transform":"translate3d(0, 0, 0)",transform:"translate3d(0, 0, 0)"},zp:{"-webkit-transform":"translate3d(-100%, 0, 0)",transform:"translate3d(-100%, 0, 0)"},
yp:{"-webkit-transform":"translate3d(0, 0, 0)",transform:"translate3d(0, 0, 0)"},Lp:{"-webkit-transform":"translate3d(-100%, 0, 0)",transform:"translate3d(-100%, 0, 0)"},Kp:{"-webkit-transform":"translate3d(0, 0, 0)",transform:"translate3d(0, 0, 0)"}},oY=function(b){b.b=$("<div>").addClass("gci-gallery-player-wrapper").appendTo($("body"));var c=$("<div>").addClass("gci-gallery-player");b.h?c.addClass("gci-player-3d-transform"):c.addClass("gci-player-no-3d-transform");tY(b,c);for(var d=0;d<b.a.length;d++){var e=
b.a[d],f=b.a[d-1],g=e.F;g&&CC(g)?uY(e,f)?(e.sd=f.sd,e.Ya=f.Ya,e.Bj&&(f=$(L(aX,{caption:e.Bj})),e.Ya.append(f),e.ob=f)):vY(b,c,e):g&&g.qb()?wY(c,e):g&&yA(g)&&xY(c,e)}yY(b,c);b.vb=-1;d=$("<div>").addClass("gci-gallery-scroller-container");b.Pd=!0;zi()||X(b.G)?(b.b.append(c),d.bind("swipeleft",function(){b.right()}).bind("swiperight",function(){b.left()}).bind("tap",function(){b.vb==b.a.length?sY(b):b.right()}).Zg().appendTo(b.b)):zY(b,d,c);var c=c.find(".gci-scene-type-cover"),h=c.find(".gci-exhibit-date-title-inner-wrapper"),
l=c.find(".gci-exhibit-description");h.stop(!1,!0).css({opacity:0,"margin-top":"100px"});l.stop(!1,!0).css({opacity:0});var m=c.find(".gci-gallery-player-start");m.stop(!1,!0).css({opacity:0,"margin-top":"20px"});var r=c.find(".gci-gallery-player-tips");r.stop(!1,!0).css({opacity:0,"margin-bottom":"-20px"});var u=function(){m.animate({opacity:1,"margin-top":"0"},300,function(){$(this).css({opacity:"","margin-top":""});r.animate({opacity:1,"margin-bottom":"0"},300,function(){$(this).css({opacity:"",
"margin-bottom":""});b.Pd=!1})})};b.ji=window.setTimeout(function(){h.animate({opacity:1,"margin-top":"120px"},500,function(){$(this).css({opacity:"","margin-top":""});l?l.animate({opacity:1},500,function(){$(this).css({opacity:""});u()}):u()})},500);c.click(function(){b.Pd||AY(b);return!1});BY(b);CY(b);b.mr=(new Date).getTime();b.rl=new CX(function(){var c=b.a[b.vb];if(c){if(!c.ju){var d=c.F,e={};e[d.getId()]=d;b.j.trigger("asset-views",[e])}c.ju=!0;80<=DY(b)&&6E4<=(new Date).getTime()-b.mr&&b.j.trigger("set-awesome")}},
1E3);EY(b)},EY=function(b){b.b.find(".gci-gallery-screen-previous-preloaded").removeClass("gci-gallery-screen-previous-preloaded");for(var c=b.vb-2;c<b.vb;c++){var d=b.a[c];d&&d.ve&&(d.Ya.addClass("gci-gallery-screen-previous-preloaded"),aG(d.ve.a))}b.b.find(".gci-gallery-screen-next-preloaded").removeClass("gci-gallery-screen-next-preloaded");for(c=b.vb+1;c<b.vb+3;c++)(d=b.a[c])&&(d.ve||c==b.vb+1)&&(d.Ya.addClass("gci-gallery-screen-next-preloaded"),d.ve&&aG(d.ve.a));c=function(b){try{b&&b.Vd&&b.Vd.ud()}catch(c){}};
c(b.a[b.vb-1]);c(b.a[b.vb+1])};
pY.prototype.left=function(){var b=this;if(!this.Pd){FY(this);GY(this);this.Pd=!0;var c=this.a[this.vb-1],d=this.a[this.vb],e=!1;if(-1==this.vb)this.Pd=!1;else{d&&!c?(HY(this,!0),c={Ya:this.b.find(".gci-scene-type-cover")}):!d&&c&&(HY(this,!1),this.G.pj(!1),e=!0,d={Ya:this.b.find(".gci-gallery-player-credits")});var f=!1,g=function(){if(!f){f=!0;d.ob&&d.ob.stop(!1,!0).css({display:"",opacity:"",right:""});c.ob&&c.ob.stop(!1,!0).css({display:"block",opacity:"",right:""});try{d.Vd&&d.Vd.stop()}catch(e){}d.Ya.stop(!1,
!0).removeClass("gci-gallery-screen-previous-preloaded gci-gallery-screen-previous-out gci-gallery-screen-active").css($.extend({display:""},b.g.cancel));c.Ya.stop(!1,!0).removeClass("gci-gallery-screen-previous-preloaded gci-gallery-screen-previous-in gci-gallery-screen-streetview-fade-in").addClass("gci-gallery-screen-active").css($.extend({display:""},b.g.cancel));--b.vb;b.Pd=!1;IY(b)}};if(uY(c,d)&&!yA(c.F))JY(this),c.sd&&c.ui?c.sd.e(c.ui,900):d.ve&&(c.Ya.addClass("gci-gallery-screen-streetview-fade-in"),
d.Ya.fadeOut(900)),d.ob&&d.ob.stop(!1,!0).fadeOut(900),c.ob&&c.ob.stop(!1,!0).fadeIn(900),this.ji=window.setTimeout(g,900);else{c.ob&&c.ob.stop(!1,!0).show().css({right:"5%"});KY(c);d.Ya.addClass("gci-gallery-screen-previous-out");c.Ya.addClass("gci-gallery-screen-previous-preloaded gci-gallery-screen-previous-in");e||(this.h?window.setTimeout(function(){d.Ya.css(b.g.To);window.setTimeout(g,900)},0):d.Ya.stop(!1,!0).animate(this.g.To,900,"easeInOutQuint",g));this.h?window.setTimeout(function(){c.Ya.css(b.g.So);
window.setTimeout(g,900)},0):c.Ya.stop(!1,!0).animate(this.g.So,900,"easeInOutQuint",g);try{c.Vd&&c.Vd.play()}catch(h){}JY(this)}}}};
pY.prototype.right=function(){var b=this;if(!this.Pd){FY(this);GY(this);this.Pd=!0;var c=this.a[this.vb+1],d=this.a[this.vb],e=!1;if(-1==this.vb)AY(this);else{if(this.vb+1==this.a.length)e=!0,c={Ya:this.b.find(".gci-gallery-player-credits")};else if(this.vb+1>this.a.length){this.Pd=!1;return}var f=!1,g=function(){if(!f){f=!0;d.ob&&d.ob.stop(!1,!0).css({display:"",opacity:"",right:""});c.ob&&c.ob.stop(!1,!0).css({display:"block",opacity:"",right:""});try{d.Vd&&d.Vd.stop()}catch(g){}d.Ya.stop(!1,!0).removeClass("gci-gallery-screen-next-preloaded gci-gallery-screen-next-out gci-gallery-screen-active").css($.extend({display:""},
b.g.cancel));c.Ya.stop(!1,!0).removeClass("gci-gallery-screen-next-preloaded gci-gallery-screen-next-in gci-gallery-screen-streetview-fade-in").addClass("gci-gallery-screen-active").css($.extend({display:""},b.g.cancel));b.vb+=1;b.Pd=!1;e&&(HY(b,!0),b.G.pj(!0));IY(b)}};uY(c,d)&&!yA(c.F)?(LY(this),c.sd&&c.ui?c.sd.e(c.ui,900):c.sd?c.sd.b(!0,"fit"):c.ve&&(c.Ya.addClass("gci-gallery-screen-streetview-fade-in"),d.Ya.fadeOut(900)),d.ob&&d.ob.stop(!1,!0).fadeOut(900),c.ob&&c.ob.stop(!1,!0).fadeIn(900),this.ji=
window.setTimeout(g,900)):(d.ob&&!X(this.G)&&d.ob.show().stop(!1,!0).animate({right:"300%"},1440,"easeInOutQuint"),this.ji=window.setTimeout(function(){KY(c);d.Ya.addClass("gci-gallery-screen-next-out");c.Ya.addClass("gci-gallery-screen-next-in");c.Ya.addClass(e?"gci-gallery-screen-active":"gci-gallery-screen-next-preloaded");c.ob&&!X(b.G)?(c.ob.css({display:"block",right:"0",opacity:"0"}).stop(!1,!0),window.setTimeout(function(){c.ob.animate({right:"5%",opacity:"1"},300,"easeInOutQuint")},450)):
c.ob&&c.ob.css({display:"block",right:"5%",opacity:"1"});b.h?window.setTimeout(function(){d.Ya.css(b.g.zp);window.setTimeout(g,900)},0):d.Ya.stop(!1,!0).animate(b.g.zp,900,"easeInOutQuint",g);if(e)c.Ya.find(".collections-image-holder").trigger("update");else{b.h?window.setTimeout(function(){c.Ya.css(b.g.yp);window.setTimeout(g,900)},0):c.Ya.stop(!1,!0).animate(b.g.yp,900,"easeInOutQuint",g);try{c.Vd&&c.Vd.play()}catch(f){}}LY(b)},300))}}};
var qY=function(b){HY(b,!0);GY(b);FY(b);mk(b.l);S(b.rl);b.rl=null;y(b.a,function(b){S(b.F);b.sd&&b.sd.g();S(b.ve);S(b.Vd);b.Ya&&b.Ya.remove();b.ob&&b.ob.remove()});b.a=[];b.b.remove();$("body > header, .gci-header-gradient").css({top:""});$("body > footer, #gci-action-tabs, #logo-footer").css({bottom:""})},sY=function(b){FY(b);b.G.pj(!1);var c=b.e,d=b.a;qY(b);b.e=c;b.a=d;oY(b)},AY=function(b){b.Pd=!0;var c=b.a[0];KY(c);var d=b.b.find(".gci-scene-type-cover"),e=d.find(".gci-gallery-player-start"),
f=d.find(".gci-gallery-player-tips");e.fadeOut(300);f.fadeOut(300,function(){c.ob&&c.ob.stop(!1,!0).show();c.Ya.addClass("gci-gallery-screen-next-preloaded gci-gallery-screen-next-in");HY(b,!1);d.css("z-index","2");var g=function(){d.removeClass("gci-gallery-screen-active").css($.extend({display:"","z-index":""},b.g.cancel))};b.h?window.setTimeout(function(){d.css(b.g.Lp);window.setTimeout(g,900)},0):d.stop().animate(b.g.Lp,900,"easeInOutQuint",g);var h=function(){c.Ya.removeClass("gci-gallery-screen-next-preloaded gci-gallery-screen-next-in").addClass("gci-gallery-screen-active").css(b.g.cancel);
e.css("display","");f.css("display","");try{c.Vd&&c.Vd.play()}catch(d){}LY(b);b.vb+=1;b.Pd=!1;IY(b)};b.h?window.setTimeout(function(){c.Ya.css(b.g.Kp);window.setTimeout(h,900)},0):c.Ya.animate(b.g.Kp,900,"easeInOutQuint",h)})},tY=function(b,c){var d=$(L(ZG,{view:"fullscreen",Da:{title:b.e.getTitle(),fh:vH(b.e),fc:sH(b.e),description:kH(b.e)}})),e=b.e.ef(),e=sA(e,{fadeIn:!0,size:{width:b.fo,height:b.Bp},Bd:!0,Ma:!1});d.addClass("gci-scene-type-cover gci-gallery-screen-active").find(".gci-exhibit-image").replaceWith(e);
d.find(".gci-exhibit-date-title-wrapper").detach().appendTo(e);d.find(".gci-exhibit-view").remove();var f=d.find(".gci-exhibit-cover-bottom-gradient");$(L(gX)).on("click",function(){rY(b);return!1}).appendTo(d);var g=$(L(jX,{qe:zi()}));g.find(".gci-gallery-player-start-text").text("Start");f.append(g);g=$(L(hX,{qe:zi()}));MY(g);f.append(g);c.append(d);var h=e.find(".collections-image-holder");window.setTimeout(function(){h.trigger("update")},0)},MY=function(b){b.find(".gci-gallery-player-tips-keyboard-text").text("Keyboard");
b.find(".gci-gallery-player-tips-scroll-text").text("Scroll");b.find(".gci-gallery-player-tips-keyboard").prop("title","Use your keyboard left and right arrows to navigate.");b.find(".gci-gallery-player-tips-scroll").prop("title","Use your mousewheel to navigate.")},yY=function(b,c){var d=b.e.ef(),e=d.qa(),f=hb(nH(b.e),function(b){return b.replace("\u2014"," \u2014 ")}),g=null;if(e){var h=YA(e),e=ZA(e,!0);h&&e&&(g={url:h,title:e})}f=$(L(eX,{px:f,fc:g}));NY(b,f);d=sA(d,{fadeIn:!0,size:{width:b.fo,
height:b.Bp},Bd:!0,Ma:!1});f.find(".gci-exhibit-image").replaceWith(d);f.find(".gci-gallery-player-restart-text").text("Restart");f.find(".gci-gallery-player-restart-container").on("click",function(){sY(b);return!1});f.find("h1").text("Credits");c.append(f)},NY=function(b,c){var d=[],e=[];$.each(b.e.Bc,function(b,g){if(g){var h=g.qa();h&&-1==db(d,h.getId())&&(0==d.length?c.find(".gci-exhibit-partner").replaceWith(h.render("onebox")):h.render("onebox").insertAfter(c.find(".gci-onebox-partner").last()),
d.push(h.getId()));if(h=g.ie()){var l=h.text();-1==db(e,l)&&(h.addClass("gci-gallery-partner-link-attribution").insertAfter(c.find(".gci-onebox-partner").last()),e.push(l))}}})},vY=function(b,c,d){var e=d.F,f=$(L(bX,{caption:d.Bj}));X(b.G)||f.find(".gci-gallery-background").append(sA(e,{size:{width:b.fo+300,height:b.Bp+300}}));var g=f.find(".gci-gallery-microscope");b=new OP(g.get(0),{bf:e.Se(),Df:X(b.G)});b.j(!1);b.A(!1);b.k(3);d.sd=b;d.Ya=f;d.ob=f.find(".gci-gallery-player-caption");c.append(f)},
wY=function(b,c){var d=c.F,e=$(L(cX,{caption:c.Bj})),d=c.Wt?yB(c.Wt):d.k,d=new dG(e.find(".gci-gallery-streetview"),d,{yi:"viewer",oj:!1,km:!0});c.ve=d;c.Ya=e;c.ob=e.find(".gci-gallery-player-caption");b.append(e)},xY=function(b,c){var d=$(L(dX,{caption:c.Bj})),e={Cq:!0,$q:!0},f;if(c.Mm){f=c.Mm.He()||0;var g=f+(B(c.Mm,2)||0);f={start:Math.floor(f/1E3),end:Math.floor(g/1E3)}}else f=null;f&&(e.startTime=f.start,e.endTime=f.end);try{c.Vd=new jY(d.find(".gci-gallery-video")[0],x(c.F.Lc()),e)}catch(h){}c.Ya=
d;c.ob=d.find(".gci-gallery-player-caption");b.append(d)},BY=function(b){var c=$(L(iX,{da:vH(b.e),title:b.e.getTitle(),qe:zi(),ua:!0}));MY(c);c.find(".gci-gallery-player-close").prop("title","Exit").on("click",function(){rY(b);return!1});mk(b.l);var d=c.find(".gci-gallery-player-fullscreen");b.l=T(document,rR,function(){d.toggleClass("gci-gallery-player-fullscreen-active")});d.on("click",function(){uR()?tR():sR();return!1});uR()&&d.toggleClass("gci-gallery-player-fullscreen-active");b.b.append(c)},
CY=function(b){if(!X(b.G)){var c=parseFloat((100/b.a.length).toFixed(2)),d=b.a.length-1;b.b.append($(L($W,{steps:d,width:c,ey:100-d*c})))}},zY=function(b,c,d){d=$("<div>").addClass("gci-gallery-scroller-content").append(d);var e=0,f=0,g=!0;Lp(xk(new Jp(c,{gd:d,Sh:function(){if(!g){var d=c.scrollLeft();1<d-f?b.right():1<f-d&&b.left();c.scrollLeft(f)}},bj:!0}),b));c.appendTo(b.b);e=parseInt(c.prop("scrollWidth"),10);f=e/2;c.scrollLeft(f);g=!1},KY=function(b){b.sd&&(b.sd.o(function(){if(b.ui){var c=
b.sd,d=b.ui,d=eD(d,c.p());c.e(d,0)}else b.sd.b(!1,"fit")}),PP(b.sd,JC(b.F,!0)))},JY=function(b){b.b.find(".gci-gallery-progress-step:gt("+(b.vb-1)+")").removeClass("gci-gallery-progress-step-active")},LY=function(b){b.b.find(".gci-gallery-progress-step:lt("+(b.vb+1+1)+")").addClass("gci-gallery-progress-step-active")},uY=function(b,c){return b&&c&&b.F&&c.F&&b.F.getId()==c.F.getId()},IY=function(b){GY(b);var c=b.a[b.vb];if(c&&c.ve){aG(c.ve.a);var d=OE(c.ve.a.ea.ea),e=d.a,f=0;b.Yj&&window.cancelAnimationFrame(b.Yj);
var g=function(){var h;h=f;h/=150;1>h?h=10*h*h:(h--,h=-10*(h*(h-2)-1));h=new ME((e+h)%360,d.b,d.getZoom());c.ve.a.ea.ea.setPov(PE(h));f++;300>f&&(b.Yj=window.requestAnimationFrame(g))};g()}zi()&&b.b.find(".gci-gallery-scroller-container").toggle(b.vb!=b.a.length);EX(b.rl);OY(b);EY(b);b.Ri&&window.clearTimeout(b.Ri);0<=b.vb&&b.vb<b.a.length&&(b.Ri=window.setTimeout(function(){b.b.find(".gci-gallery-player-help-container").addClass("gci-gallery-player-help-container-active");zi()||(b.Ri=window.setTimeout(function(){var c=
b.b.find(".gci-gallery-player-tips-scroll");c.append($("<div>").addClass("gci-gallery-player-tips-more-help").text(c.prop("title").toString()));c=b.b.find(".gci-gallery-player-tips-keyboard");c.append($("<div>").addClass("gci-gallery-player-tips-more-help").text(c.prop("title").toString()))},5E3))},15E3))},GY=function(b){b.b.find(".gci-gallery-player-help-container").removeClass("gci-gallery-player-help-container-active");b.b.find(".gci-gallery-player-tips-more-help").remove()},FY=function(b){b.ji&&
window.clearTimeout(b.ji);b.Ri&&window.clearTimeout(b.Ri);b.Yj&&window.cancelAnimationFrame(b.Yj)},DY=function(b){return 100*mb(b.a,function(b){return!!b.ju})/b.a.length},HY=function(b,c){var d=$("body > header, .gci-header-gradient"),e=$("body > footer, #gci-action-tabs, #logo-footer"),f=c;p(c)||(f=b.b.find(".gci-gallery-player-header").hasClass("gci-gallery-player-header-visible"));f?(d.stop(!1,!0).css({display:"",top:""}),e.stop(!1,!0).css({display:"",bottom:""}),b.b.stop(!1,!0).css({top:"",bottom:"",
overflow:""}),b.b.find(".gci-gallery-player-header").removeClass("gci-gallery-player-header-visible"),b.b.find(".gci-gallery-progress").removeClass("gci-gallery-progress-visible")):(b.b.css("overflow","hidden").stop(!1,!0),window.setTimeout(function(){d.stop(!1,!0).animate({top:"-200px"},200,function(){$(this).css("display","none")});e.stop(!1,!0).animate({bottom:"-200px"},200,function(){$(this).css("display","none")});b.b.animate({top:0,bottom:0},200);b.b.find(".gci-gallery-player-header").addClass("gci-gallery-player-header-visible");
b.b.find(".gci-gallery-progress").addClass("gci-gallery-progress-visible")},0))},OY=function(b){if(!X(b.G)){var c=b.a[b.vb],d="";c&&c.F&&HA(c.F)&&(d=HA(c.F));b=b.b.find(".gci-gallery-screen-creator");d!=b.text()&&b.stop(!1,!0).animate({"margin-top":"50px"},100,function(){$(this).text(d).animate({"margin-top":"3px"},100,function(){$(this).css("margin-top","")})})}};
var PY=function(b){this.a=new oe;this.Ra=b;this.b=null;this.jc=q},RY=function(b){QY(b);0!=b.a.Ub()&&b.b&&FM(b.Ra,t(function(b){if(this.b){for(var d=new oe,e=0,f;f=b[e];e++)d.xc(f.getId(),f);this.a.forEach(function(b,c){this.a.xc(c,b+1);if(qe(d.S,c)){var e=d.get(c);(LC(e)||KC(e))&&this.jc(e)}},this);this.b=window.setTimeout(t(function(){RY(this)},this),5E3)}},b))},QY=function(b){b.a.forEach(function(b,d){20<=b&&this.a.remove(d)},b)},SY=function(b,c){b.a.xc(c,0);1==b.a.Ub()&&(b.b=window.setTimeout(t(function(){RY(this)}, b),5E3))};PY.prototype.clear=function(){this.a.clear();this.b&&window.clearTimeout(this.b);this.b=null};var TY=function(b,c){b.jc=c};
var VY=function(b,c){W.call(this);this.h=b;var d=c||new UY;this.Ad=d.Ad;this.ua=!!d.ua;this.maxHeight=d.maxHeight||this.h.width();this.maxWidth=d.maxWidth||this.h.width();this.Ma=!!d.Ma;this.Qc=!!d.Qc};v(VY,W);var UY=function(b){b=b||{};this.Ad=b.Ad||!1;this.Qc=b.Qc||!1;this.ua=b.ua||!1;this.maxWidth=b.maxWidth||null;this.maxHeight=b.maxHeight||null;this.Ma=null!=b.Ma?b.Ma:!0};
var ZY=function(b,c,d,e){VY.call(this,b,d);b=e||{};this.n=$(L(rX)).appendTo(this.h);this.g=this.n.find(".gci-gallery-image-holder");this.e=c;this.a=null;if(this.ua&&b.xb)this.a=b.xb;else if(b.xb&&b.xb.size){if(.95>b.xb.size.width||.95>b.xb.size.height)this.a=b.xb}else b.xb&&1.9<b.xb.z&&(this.a=b.xb);this.a&&(this.a=WY(this.ua,this.a));this.p=b.pw?!1:!0;this.l=q;this.A=null;c=this.e.ab();this.B=Math.min(this.maxHeight*c.width/c.height,this.maxWidth);this.Pa=null;this.o=b.Xp||null;this.Ko=!!b.Ko;this.I=
!!b.ow;c=XY(this,this.a);this.Ad||this.ua?(this.p?YY(this):(b=null,this.a&&(b={x:this.a.x,y:this.a.y}),this.Pa=xk(new Ly(this.g,xA(this.e,{width:c.width,height:c.height}),{Cc:!0,fadeIn:!0,Ma:this.Ma,oi:b}),this)),!this.Ma&&this.load()):(this.n.css({width:c.width}),b={width:c.width,height:c.height},this.g.css(b),this.p&&this.a?(YY(this),!this.Ma&&this.load()):(this.n.find(".gci-gallery-image-room-shield").css(b),this.Pa=xk(new Ly(this.g,xA(this.e),{de:{width:c.width,height:c.height},Cc:!0,fadeIn:!0,
Ma:this.Ma}),this)))};v(ZY,VY);ZY.prototype.b=null;ZY.prototype.j=!1;ZY.prototype.D=function(){ZY.r.D.call(this);this.b&&this.b.g();this.n.remove()};var $Y=function(b){return!(!b.a||!(b.a.size&&(.95>b.a.size.width||.95>b.a.size.height)||1.9<b.a.z))};
ZY.prototype.load=function(){this.Pa&&this.Pa.load();if(this.b){if(EC(this.e))PP(this.b,JC(this.e,this.a&&!this.a.size));else{var b;b=null;var c=this.e.ab();if(c)if(1200<c.width&&1200<c.height){var d=1200*c.width/c.height,c=1200*c.height/c.width;1200<d?b={width:1200,height:c}:b={width:d,height:1200}}else 1200<c.width?b={width:1200,height:1200*c.height/c.width}:1200<c.height?b={width:1200*c.width/c.height,height:1200}:b={width:c.width,height:c.height};else b={width:1200*AR,height:1200},1200<b.width&&
(b={width:1200,height:1200/AR});d=xA(this.e,b);this.b.B(d,b.width,b.height);this.j=!0}this.b&&(b=this.o?this.o.height():100,this.o&&!this.H&&(d=this.n.find(".m2-zoomWidget").detach(),this.o.append(d),this.H=!0),this.b.k(0),this.b.K({top:0,left:0},b))}};
var XY=function(b,c){var d=b.e.ab(),e=d.width/d.height;c?(e=b.maxHeight,d=Math.floor(c?b.maxHeight:b.B)):1>e?(d=b.maxHeight*e,e=b.maxHeight):(d=b.B,e=d/e);return new pf(d,e)},YY=function(b){if(b.p&&!b.g.hasClass("gci-microscope-image")){b.Pa&&(S(b.Pa),b.Pa=null);b.Ko||b.Ad||!b.ua||b.n.toggleClass("gci-gallery-image-unzoomed",!!b.a&&!!b.a.size&&.95<=b.a.size.width&&.95<=b.a.size.height);var c=Y;!b.ua||b.I||X(c)||b.Pa||(c=XY(b),b.Pa=xk(new Ly(b.n,xA(b.e)+"-fSoften=1,80,0",{de:{width:c.width,height:c.height},
Cc:!0,fadeIn:!0,Ma:b.Ma}),b),b.Pa.getContainer().addClass("gci-gallery-image-blurry-bg"));b.g.addClass("gci-microscope-image");aZ(b)}},aZ=function(b){var c=EC(b.e)&&b.e.Se();b.b=new OP(b.g.get(0),{bf:c,Df:!1});b.b.Ic("scale");b.b.j(!1);b.b.A(!1);b.b.k(3);bZ(b);b.b.o(function(){b.j=!0;b.l();cZ(b);b.l=q})};
ZY.prototype.Qn=function(){this.b&&this.b.O(t(function(){this.b.H(t(function(b){this.a&&yC(b,this.a)||(this.a=b,this.ua||this.Ad||!$Y(this)||(b=XY(this,this.a),this.n.css({width:b.width}),this.g.css({width:b.width,height:b.height}),this.b.h(),cZ(this)),clearTimeout(this.A),this.A=setTimeout(t(function(){this.dispatchEvent("gci-assetimagebox-zoom-changed")},this),500))},this))},this))};
var bZ=function(b,c,d,e){var f=!!e;p(c)&&(b.a=WY(b.ua,c));b.a?(c=function(){b.Ad||b.a.size||(b.a=eD(b.a,b.b.p()));b.Ad&&b.a&&(!b.a.size||1<=b.a.size.width||1<=b.a.size.height)?(b.b.b(f,"fill"),b.b.e(new xC(b.a.x,b.a.y,b.b.I().z),f?900:0)):b.a&&b.b.e(b.a,f?900:0)},d||(b.j?c():b.l=c),b.e&&(b.a?b.e.data("gci.exhibit.msState",b.a):b.e.removeData("gci.exhibit.msState"))):(d=function(){b.b.b(f,b.Ad||b.ua?"fill":"fit")},b.j?d():b.l=d)},cZ=function(b){if(b.b&&b.j&&!b.Ad){var c=b.n.find(".m2-tileLayer").first(),
d=Math.max(c.position().top,b.g.position().top),e=Math.max(c.position().left,b.g.position().left),f=b.n.find(".gci-gallery-image-room-shield");0==d&&0==e||f.addClass("gci-gallery-image-room-shield-no-square");if(!b.a){var g=Math.floor(Math.min(c.width(),b.g.width()));b=Math.floor(Math.min(c.height(),b.g.height()));f.css({width:g,height:b,"margin-top":d,"margin-left":e})}}},WY=function(b,c){return X(Y)&&b?new xC(c.x,c.y,c.z,new pf(0,c.size?c.size.height:1)):c};
var eZ=function(b,c,d,e){VY.call(this,b,d);this.n=$(L(tX)).appendTo(this.h);this.I=this.n.find(".gci-gallery-streetview-holder");this.B=c;this.b=this.g=this.Ua=null;this.e=this.A=0;this.p=300;this.o=this.l=this.Pa=null;this.j=!1;this.a=e||null;b=this.maxHeight;c=b*AR;c>this.maxWidth&&(c=this.maxWidth,b=c/AR);this.Ad?(c=this.h.width(),b=this.h.height()):this.n.css({width:c,height:b});if(this.Qc)dZ(this);else{d=xA(this.B)||"";if(this.a)try{var f=this.a.getExtension(YB),g=f&&f.getUrl()||"";if(g)d=g;
else{var h=rz(this.a)||"",f="",l=oz(this.a);l&&Wy(l)&&Xy(l)&&(f=Wy(l)+","+Xy(l));var m=ka(B(this.a,2))?"&heading="+B(this.a,2):"",r=ka(B(this.a,3))?"&pitch="+B(this.a,3):"",u=ka(sz(this.a))?"&fov="+sz(this.a):"";if(h||f)l="640x480",this.Ad&&(l=Math.floor(c)+"x"+Math.floor(b)),d=Li(f?"&location="+f:"&pano="+h,m,r,u,l)}}catch(w){}d&&(this.Pa=xk(new Ly(this.I,d,{Cc:!0,fadeIn:!0,Ma:!0}),this))}};v(eZ,VY);eZ.prototype.D=function(){eZ.r.D.call(this);oG(this.l);this.Ua&&this.Ua.la();this.n.remove()};
eZ.prototype.load=function(){this.Pa&&this.Pa.load();this.Qc&&fZ(this)};
var dZ=function(b,c,d){var e=b.B.k;b.a&&(e=yB(b.a));c={yi:"viewer",oj:!1,km:!c,Gg:function(){b.n.addClass("gci-gallery-streetview-with-player")},Nd:d||!1};d=b.n.find(".gci-gallery-streetview-player-holder");b.n.addClass("gci-gallery-streetview-loading-player");b.Ua=new dG(d.show(),e,c);b.g=QE(vB(e));e=function(){window.clearTimeout(b.H);b.H=window.setTimeout(function(){b.dispatchEvent("gci-assetstreetviewbox-pov-changed")},300)};b.Ua.bind("level-changed",e);b.Ua.bind("moved",e);oG(b.l);b.l=nG("gci.ui.media-play",
function(){window.setTimeout(function(){fZ(b)},500)})};eZ.prototype.hf=function(){return this.Ua?this.Ua.hf():null};eZ.prototype.stop=function(){fZ(this)};var fZ=function(b){if(b.Ua&&!b.j){if(b.Qc){if(!b.Ua.b)return;b.b&&window.cancelAnimationFrame(b.b);aG(b.Ua.a);b.A=b.g.a;b.e=0;b.p=300;gZ(b)}else b.Ua.la(),b.Ua=null,b.n.removeClass("gci-gallery-streetview-with-player gci-gallery-streetview-loading-player");b.j=!0}};
eZ.prototype.play=function(){if(this.Ua&&this.Qc&&!this.b){var b=this,c=function(){fZ(b);b.n.off("mousedown").on("mousedown",function(){b.j=!1;b.b&&window.cancelAnimationFrame(b.b)});hZ(b)};this.Ua.b?c():this.Ua.bind("viewer-loaded",c)}};
var hZ=function(b){!b.isDisposed()&&b.Ua&&(gZ(b),b.e<b.p&&(b.b=window.requestAnimationFrame(function(){hZ(b)})))},gZ=function(b){if(!b.isDisposed()&&b.Ua&&b.g){var c;c=b.e;c/=b.p/2;1>c?c=10*c*c:(c--,c=-10*(c*(c-2)-1));var d=b.g;c=new ME((b.A+c)%360,d.b,d.getZoom());b.Ua.a.ea.ea.setPov(PE(c));b.j=!1;b.e++}else b.b&&window.cancelAnimationFrame(b.b)},iZ=function(b,c){return b.Ua?OF(b.Ua.a,c,"text"):null};
var kZ=function(b,c,d,e){VY.call(this,b,d);this.n=$(L(sX,{MA:this.ua&&this.Qc})).appendTo(this.h);this.b=c;this.Pa=this.ha=null;this.a=e||null;jZ(this)};v(kZ,VY);kZ.prototype.D=function(){this.n.remove()};kZ.prototype.load=function(){this.Pa.load();this.ua&&this.Qc&&(lZ(this),this.ha.ud())};kZ.prototype.play=function(){this.Qc&&(lZ(this),this.ha.play())};kZ.prototype.stop=function(){this.ha&&this.ha.pause()};
var jZ=function(b){var c=b.maxHeight,d=c*AR;!b.ua&&d>b.maxWidth&&(d=b.maxWidth,c=d/AR);var e=b.n.find(".gci-gallery-video-holder");b.ua||e.css({width:d,height:c});b.n.addClass("gci-asset-viewer-video-type");b.Pa=xk(new Ly(e,xA(b.b),{Cc:!0,fadeIn:!0,Ma:b.Ma}),b);b.n.find(".shield").on("click",function(){lZ(b,!0)})},lZ=function(b,c){if(b.ha)c&&b.ha.play();else{var d=b.b.Lc();if(d){var e={autoplay:!!c,Cq:b.ua,$q:b.ua&&b.Qc};b.a&&(b.a.start&&(e.startTime=Math.floor(b.a.start/1E3)),b.a.end&&(e.endTime= Math.floor(b.a.end/1E3)));b.ha=new jY(b.n.find(".shield").get(0),d,e);b.J(b.ha)}}};
var nZ=function(b,c,d){W.call(this);this.p=X(Y);d=d||{};this.g=null;this.j=d.text||null;this.e=d.iu||null;this.ha=null;this.b=d.Uv||null;this.A=d.Vv||null;this.l=d.Uc||null;this.n=$(L(vX,{Tv:this.j&&this.b,il:d.il,qe:this.p,style:c,HA:this.e&&this.j})).appendTo(b);this.B=c;this.a=this.n.find(".gci-caption-container");this.h=this.n.find(".gci-caption-content");this.o=null;mZ(this)};v(nZ,W);nZ.prototype.D=function(){this.n.remove();nZ.r.D.call(this)};
var oZ=function(b){b.n.fadeOut(100,function(){b.la()})},pZ=function(b,c){b.n.addClass("gci-caption-widget-out");window.setTimeout(function(){b.la();c&&c()},100)},mZ=function(b){b.p&&b.n.find(".gci-gallery-expand-button").on("touch",t(function(){this.dispatchEvent(this.n.hasClass("gci-caption-widget-expanded")?"gci-screen-content-collapsed":"gci-screen-content-expanded");this.n.toggleClass("gci-caption-widget-expanded");return!1},b)).Zg();b.e&&qZ(b);b.b&&(b.n.addClass("gci-caption-has-audio"),rZ(b));
if(b.j){var c=$(L(wX)).appendTo(b.h);ri(b.j,c);c=xk(new Jp(b.a,{gd:b.h,bj:!0,wk:!0}),b);c.bind("infinite-scroll",ed);c.bind("scroll-reach-end",ed);c.bind("scroll-reach-start",ed)}window.setTimeout(function(){b.isDisposed()||b.n.removeClass("gci-caption-widget-out")},15)},qZ=function(b){b.ha&&S(b.ha);b.h.find(".gci-caption-video-thumbnail").remove();b.h.prepend($(L(xX,{IA:Gi(b.e)})));b.h.find(".gci-caption-video-thumbnail").on("click",function(){sZ(b)})},sZ=function(b){b.l&&SG(b.l);if(b.ha&&0!=b.B)b.ha.play();
else{var c=function(){b.e&&!b.isDisposed()&&(b.a.addClass("gci-caption-video-playing"),b.ha=new jY(b.a.find(".gci-caption-video-thumbnail").empty().get(0),b.e,{autoplay:!0,Xv:!0}),b.J(b.ha),b.ha.play())};if(0==b.B){var d=b.a.width()||0,e=b.a.height()||0;b.a.addClass("gci-caption-video-animate").animate({width:340,height:265},300,function(){c();b.a.append($(L(yX)));b.a.find(".gci-video-caption-close").on("click",function(){tZ(b,d,e)})})}else c()}},tZ=function(b,c,d){b.a.find(".gci-video-caption-close").remove();
qZ(b);b.a.removeClass("gci-caption-video-playing").animate({width:c,height:d},300,function(){b.a.removeClass("gci-caption-video-animate").css({width:"",height:""})})},rZ=function(b){b.o&&oG(b.o);b.o=null;var c=$(L(zX,{title:b.A||b.b.getTitle()})).appendTo(b.a.find(".gci-caption-content")),d=b.b.Cd();d?(b.g=new jR(d),b.g.C("gci.ui.media-play",function(){b.l&&SG(b.l)}),b.J(b.g),c.find(".gci-audio-caption-player").append(b.g.w())):(b.o=nG("gci.galleryeditpage.asset-ready",t(function(b){b.getId()==this.b.getId()&& b.Cd()&&(c.remove(),this.b=b,rZ(this))},b)),pG("gci.galleryeditpage.poll-asset",b.b.getId()),c.addClass("gci-audio-caption-processing"))},uZ=function(b){b.e?sZ(b):b.g&&b.g.play()};
var vZ=function(){return M('<div class="gci-gallery-progressbar"><div class="gci-gallery-progressbar-progress"></div><div class="gci-gallery-progressbar-steps"></div><div class="gci-gallery-progressbar-tip"><div class="gci-gallery-progressbar-tip-container"><div class="gci-gallery-progressbar-tip-body"></div><div class="gci-gallery-progressbar-tip-pick"><div class="gci-gallery-progressbar-tip-pick-inner"></div></div></div></div></div>')},wZ=function(){return M('<div class="gci-gallery-progressbar-section gci-gallery-progressbar-step"></div>')},
xZ=function(){return M('<div class="gci-gallery-progressbar-scene gci-gallery-progressbar-step"></div>')},yZ=function(){return M('<div class="gci-gallery-progressbar-credits gci-gallery-progressbar-step"></div>')},zZ=function(b){b=b||{};return M('<div class="gci-gallery-progressbar-tip-content">'+(b.title?'<div class="gci-gallery-progressbar-tip-title">'+N(b.title)+"</div>":"")+'<div class="gci-gallery-progressbar-tip-thumb"></div></div>')};
var GZ=function(b,c){W.call(this);this.ni=c;this.h={};this.n=$(L(vZ)).appendTo(b);this.j=this.n.find(".gci-gallery-progressbar-steps");this.a=this.n.find(".gci-gallery-progressbar-tip");this.g=this.b=this.e=null;var d=this;this.n.on("mouseenter",function(){AZ(d)});this.n.on("mouseleave",function(){d.n.removeClass("gci-gallery-progressbar-show-tip");BZ(d,500)});this.n.on("mousemove",".gci-gallery-progressbar-step",function(b){var c=$(this),g=c.data("step-content"),h=c.data("step-position");g&&h&&(c.is(d.b)?
d.n.removeClass("gci-gallery-progressbar-show-tip"):CZ(d,b.pageX,g,h))});this.n.on("click",".gci-gallery-progressbar-step",function(b){if(!$(this).is(d.b)){var c=$(this).data("step-content"),g=$(this).data("step-position");$(this).is(":last-child")?DZ(d):c&&EZ(c)&&g?FZ(d,g,null):FZ(d,null,b.pageX);d.b=$(this);d.dispatchEvent({type:"gci-gallery-progress-goto",target:g})}})};v(GZ,W);GZ.prototype.D=function(){this.n.remove()};
var HZ=function(b,c,d){var e;e=EZ(d)?$(L(wZ)):d.Mb()?$(L(yZ)):$(L(xZ));b.h[c]=e;e.data("step-content",d).data("step-position",c).appendTo(b.j)},AZ=function(b){window.clearTimeout(b.g);b.n.addClass("gci-gallery-progressbar-expanded")},BZ=function(b,c){b.g=window.setTimeout(function(){b.n.removeClass("gci-gallery-progressbar-expanded")},c||10)},FZ=function(b,c,d){if(c||d){b.n.removeClass("gci-gallery-progressbar-show-tip");if(c){c=b.h[c];if(!c||c.is(b.b))return;b.b=c;if(c.is(":last-child")){DZ(b);return}c=
c.position().left+c.width()/2}else c=d;c&&b.n.find(".gci-gallery-progressbar-progress").css("width",c)}},DZ=function(b){b.n.find(".gci-gallery-progressbar-progress").css("width","100%")},CZ=function(b,c,d,e){var f=120,g=IZ(d),h=d.getTitle();d.Mb()&&(h="Credits");if(b.e!=d){var l=$(L(zZ,{title:h}));b.a.find(".gci-gallery-progressbar-tip-body").empty().append(l)}var m=function(){var e=b.n.width(),f=b.a.width(),g=b.a.find(".gci-gallery-progressbar-tip-container").width(),h=e-f,l=c-f/2,m=0>=l,r=l>=h;
if(f!=g&&(m||r)){var e=e-g,kb=c-g/2,m=0>=kb,r=kb>=e;if(m||r)h=e,l=kb}e=b.a.find(".gci-gallery-progressbar-tip-pick-inner");m?(e.css("left",l),l=(f-g)/2*-1):r?(e.css("left",l-h),l=h-(f-g)/2):e.css("left","");b.a.css("left",l);b.e=d};b.n.addClass("gci-gallery-progressbar-show-tip");if(b.e!=d&&g){b.a.off("click").on("click",function(){FZ(b,void 0,c);b.dispatchEvent({type:"gci-gallery-progress-goto",target:e})});var l=g.wa(),r=g.getStreetView();h&&(f-=b.a.find(".gci-gallery-progressbar-tip-title").outerHeight());
l?Tm(hH(b.ni,g.wa()||""),function(c){b.a.find(".gci-gallery-progressbar-tip-thumb").append(sA(c,{Ec:{height:f,width:140}}));m()}):(r&&b.a.find(".gci-gallery-progressbar-tip-thumb").append(uA(r,{Ec:{height:f,width:140}})),m());b.e=d}else g||(b.e=d),m()};
var JZ=function(b,c){this.e=b;this.o=this.p=this.k=this.a=this.b=null;this.g=c||"en";this.l=this.j=this.h=null},EZ=function(b){return"tour-stop"==b.e},KZ=function(b){return"asset"==b.e};JZ.prototype.pc=function(){return"cover"==this.e};JZ.prototype.Mb=function(){return"credits"==this.e};JZ.prototype.clone=function(){var b=new JZ(this.U(),this.g);this.b&&LZ(b,this.b.clone());if(this.k){var c=this.k.L();b.k=c}MZ(b.setTitle(this.getTitle()),this.Vb());return b};JZ.prototype.U=function(){return this.e};
var LZ=function(b,c){b.b=c;"tour-stop"==b.e&&(b.a=NG(b.b));return b};JZ.prototype.gb=function(){return this.b};JZ.prototype.Oe=function(){return EZ(this)&&(!!LG(this.a)||!!Cy(this.a.a))};JZ.prototype.setTitle=function(b){this.a?this.a.setTitle(b||"",this.g):this.p=b;return this};JZ.prototype.getTitle=function(){return this.a?this.a.getTitle(this.g):this.p};var MZ=function(b,c){b.a?b.a.a.setProperty(Nk,c||""||null,b.g,!0):b.o=c;return b};JZ.prototype.Vb=function(){return this.a?this.a.Vb(this.g):this.o};
JZ.prototype.zc=function(b){switch(this.e){case "asset":this.b||(this.b=PG());OG(this.b).zc(b);break;case "tour-stop":if(!this.a)break;this.a.zc(b);break;case "cover":var c=new tD;b=b.getId();D(c,1,b);this.k=c}return this};var IZ=function(b){switch(b.e){case "asset":var c;if(c=b.b&&OG(b.b))c=OG(b.b).a.pa();return c;case "tour-stop":return b.a&&ID(b.a.b);case "cover":return b.k}return null};JZ.prototype.Ul=function(){if(!KZ(this))return!1;var b=this.gb(),b=b&&OG(b);return!(!b||!ZD(b,this.g))};
JZ.prototype.Tl=function(){if(!KZ(this))return!1;var b=this.gb(),c=b&&OG(b),b=c&&(B(c.a,6)||null)||null,c=c&&$D(c,this.g)||[];return!!b||!!c.length};
var NZ=function(b){b=IZ(b);if(!b)return null;b=b.If();var c=null;b&&(c=Math.floor(b.He()||0),c={start:c,end:c+Math.floor(B(b,2)||0)});return c},OZ=function(b,c,d){if(!b.Mb())return b;var e={};Nb(c,function(b){b&&(b=b.qa())&&(d&&b.getId()==d?this.j=b:e[b.getId()]||(e[b.getId()]=b))},b);if(b.j&&yy(b.j.V,ct))return e={},b.j=null,b;b.h=Tb(e);return b},PZ=function(b,c){b.l=c;return b},QZ=function(b){KZ(b)&&QG(b.b,2)};
JZ.prototype.ua=function(){var b;KZ(this)?(b=this.b.a.getStyle(),b=2==(b?b.U():null)):b=!1;return b};var RZ=function(b){return b.b?(b=OG(b.b))?bE(b):[]:[]},SZ=function(b,c){if(!KZ(b)||!KZ(c))return!1;var d=IZ(b),e=IZ(c),f=d.getStreetView()||e.getStreetView(),g=d.If()||e.If();if(f||g||!d||!e)return!1;d=d.wa()==e.wa();e=b.ua()==c.ua();return d&&e};
var VZ=function(b,c,d){d=d||{};this.ga=!!d.Qn;this.Ca=d.Xy||q;b=$(L($E,{Nd:this.ga})).appendTo(b);this.ka=null;if(c.Ti){d=c.Ti.Zt;if(!d.qb())return;this.ka=d.k;d=c.Ti.$a;var e=zB(this.ka,c.Ti.$a);if(!e||Vb(e))return;nF.call(this,b,this.ka,{Vn:!0,gs:d,Cf:this.ga})}else d=new google.maps.LatLng(0,0),e=c.Mh?Fm(c.Mh):null,c.Mh&&Dm(c.Mh)&&(d=Dm(c.Mh)),nF.call(this,b,void 0,{Vn:!0,Cf:this.ga,Sf:{zoom:2,minZoom:2,center:d},viewport:e});this.p=c.Mh||null;this.H=null;var f=this;this.ga&&(this.bind("floorplan-click",
function(b,c){TZ(f,{$a:c.$a,position:c.position})}),this.bind("floorplan-changed",function(b,c){TZ(f,{$a:c.$a,position:c.position})}),google.maps.event.addListener(this.map,"click",function(b){f.h||TZ(f,{position:b.latLng})}),jy(this,"bounds_changed",function(){f.h||TZ(f)}));UZ(this)};v(VZ,nF);
var TZ=function(b,c){var d=c||{},e=d.position||b.H&&b.H.getPosition();if(e){var f=new xm(new km);Em(f,e.lng(),e.lat());b.p=f;if((d=d.$a)&&b.ka){e=sB(b.ka,d);if(!e)return;b.Ca(b.p,e,d)}else{if(d=b.map.getBounds()){var g=d.getCenter(),h=d.getSouthWest(),l=d.getNorthEast(),f=h.lat(),m=l.lat(),h=h.lng(),r=l.lng(),u=g.lat(),w=g.lng(),C=Math.abs(l.lat()-g.lat()),g=Math.abs(l.lng()-g.lng());C!=g&&(C>g?(f=u-g,m=u+g):(h=w-C,r=w+C),d=new google.maps.LatLngBounds(new google.maps.LatLng(f,h),new google.maps.LatLng(m,
r)));if(d=d.extend(e))e=b.p,f=d,d=new em,m=f.getNorthEast(),f=f.getSouthWest(),g=m.lat(),D(d,3,g),m=m.lng(),D(d,4,m),m=f.lat(),D(d,1,m),f=f.lng(),D(d,2,f),G(e.a,4,d)}b.Ca(b.p)}UZ(b)}},UZ=function(b){if(b.p){var c=Dm(b.p);if(c){if(b.H){if(b.H.getPosition().equals(c))return;xF(b,b.H)}b.h?(b.a?(c=new google.maps.Marker({position:c,icon:ey,clickable:!1,zIndex:5}),c.setMap(b.map),b.O[b.a.$a]||(b.O[b.a.$a]=[]),b.O[b.a.$a].push(c)):c=null,b.H=c):(c=new google.maps.Marker({position:c,icon:ey,clickable:!1, zIndex:5}),b.h||c.setMap(b.map),b.sa.push(c),b.H=c)}}};VZ.prototype.R=function(b){VZ.r.R.call(this,b);b[0]&&b[0].geometry&&(b=b[0].geometry.location)&&TZ(this,{position:b})};
var XZ=function(b,c,d,e){W.call(this);this.ia=Y;this.vd=this.a=this.v=null;this.content=b;this.o=[b];this.p=0;this.e=this.l=this.g=null;this.ub=c;this.j=null;this.N=d;this.map=null;this.Xa=this.sa=this.O=!1;this.ka=null;this.H=this.Db=!1;this.h=e;this.b=null;this.B=AH(this.N);this.J(this.B);WZ(this)};v(XZ,W);XZ.prototype.Vt=mX;XZ.prototype.fd=!1;XZ.prototype.D=function(){YZ(this);this.vd&&this.vd.remove();this.v&&this.v.remove();XZ.r.D.call(this)};
var YZ=function(b){b.b&&b.b.cancel();S(b.g);S(b.l);S(b.e);b.l=null;b.g=null;b.e=null;b.a&&b.a.empty();b.v.find(".gci-gallery-viewer-stop-content").empty()};XZ.prototype.getContent=function(){return this.content};var WZ=function(b,c,d){c&&(b.content=c,b.o[0]=c);d&&b.De()},ZZ=function(b){b.v||(b.sa=!1,b.v=$(L(b.Vt,{$r:b.content.Oe(),Tl:b.content.Tl(),Ul:b.content.Ul(),Rx:b.ua(),oa:b.ia.oa(),Ng:b.content.U()})),b.a=b.v.find(".gci-gallery-viewer-scene-content"),b.vd=$(L(qX,{oa:b.ia.oa(),fd:b.fd})))};
XZ.prototype.De=function(b){var c=this;this.Xa=!1;var d=function(){c.sa=!0;c.dispatchEvent("gci-scene-content-rendered")};YZ(this);$Z(this);switch(this.content.U()){case "asset":a_(this,d);break;case "cover":b_(this,d);break;case "tour-stop":c_(this,d);break;case "credits":this.yb(d)}b||(this.b?Tm(this.b,this.ca,this):this.ca())};XZ.prototype.ca=function(){this.Xa||(this.g&&this.g.load(),this.e&&this.e.load(),this.l&&this.l.load(),this.Xa=!0,this.Ca())};
var a_=function(b,c){var d=b.content.gb();if(d&&(d=OG(d))){var e=t(function(){c&&c();this.R()},b);d.a.pa()?d_(b,d.a.pa(),e):e()}};XZ.prototype.R=function(){var b=this.o[this.p];if(KZ(b)){var c=OG(b.gb());if(c)if(aE(c)){var d=this;this.j&&this.ua()?pZ(this.j,function(){c&&e_(d,c)}):e_(this,c)}else this.j&&oZ(this.j)}};
var e_=function(b,c){S(b.j);var d=ZD(c,b.h.g)||void 0,e=B(c.a,6)||null||void 0,f=void 0,g,h,l=function(){if(d||e||f||h){var c=0;b.ua()&&b.a.hasClass("gci-long-caption-scene")?c=1:b.ua()&&(c=2);S(b.j);b.j=new nZ(b.a,c,{text:d,iu:e,Uv:f,Vv:g,Uc:b.B,il:h});X(b.ia)&&(b.j.C("gci-screen-content-expanded",function(){b.dispatchEvent("gci-screen-content-expanded")}),b.j.C("gci-screen-content-collapsed",function(){b.dispatchEvent("gci-screen-content-collapsed")}));if(b.ua())b.H&&!b.l&&b.Qc()&&!X(b.ia)&&uZ(b.j);
else if(c=b.a.find(".gci-gallery-image-holder"),c.length){var l=b.a.find(".gci-asset-image"),c=c.offset().left+c.width()-(l.offset().left+l.width());b.j.n.css({left:c})}}},m=$D(c,b.h.g);if(m[0]&&(m=mD(m[0],b.h.g))){g=m.getTitle();b.b=Tm(hH(b.ub,m.getId()||"",void 0,!0),function(c){if(b.fd||c&&c.Cd())b.fd&&!c?h="Audio file not available.":f=c,l()});return}l()},b_=function(b,c){var d=function(){var d=b.content.getTitle();b.fd&&d&&"Untitled"==d&&(d=null);var d=$(L(oX,{fc:qH(b.N),title:d,da:vH(b.N),description:b.content.Vb(),
Nd:b.fd,oa:b.ia.oa(),qe:zi()})),e=d.find(".gci-scene-content-cover-info-content"),e=xk(new Jp(e,{Sh:ed,bj:!0,wk:!0}),b);e.bind("infinite-scroll",ed);e.bind("scroll-reach-end",ed);e.bind("scroll-reach-start",ed);e=d.find(".gci-scene-content-cover-info-content p");e=xk(new Jp(e,{Sh:ed,wk:!0,bj:!0,um:b.N.Nb()?"white":""}),b);e.bind("infinite-scroll",ed);e.bind("scroll-reach-end",ed);e.bind("scroll-reach-start",ed);d.appendTo(b.a);c&&c()},e=b.content.k;if(e){var f=e.getStreetView();f&&!e.wa()?(f_(b,b.a,
f,fD(f)),d()):e.wa()?b.b=Tm(hH(b.ub,e.wa()||""),function(c){c&&(b.ka=c,CC(c)?(b.a.removeClass("gci-scene-no-visual"),g_(b,b.a,c,{mi:e}),h_(b,c)):c.qb()&&(b.a.removeClass("gci-scene-no-visual"),f_(b,b.a,e.getStreetView()||null,c)));d()}):d()}else d()};
XZ.prototype.yb=function(b){b=b||q;this.N.Nb()?i_(this):$(L(AX,{lg:(this.content.h||[]).length,Nb:this.N.Nb()})).appendTo(this.a);xk(new Jp(this.a.find(".gci-credits-information-panel"),{gd:this.a.find(".gci-scene-credits-partners"),bj:!0}),this);if(0<(this.content.h||[]).length){var c=this.a.find(".gci-scene-credits-partners ul li"),d=this.content.h||[];Bb(d,function(b,c){return b.getName().toLowerCase()<c.getName().toLowerCase()?-1:1});y(d,function(b,d){b.render("onebox").appendTo(c.get(d))})}b()};
var i_=function(b){var c=b.content.j,d=b.content.l;$(L(BX,{lg:(b.content.h||[]).length,vt:c,as:!!d})).appendTo(b.a);var e=b.content.k,f=b.a.find(".gci-credits-visual");e&&(b.b=Tm(hH(b.ub,e.wa()||""),function(b){CC(b)?g_(this,f,b,{mi:e}):b.qb()&&f_(this,f,e.getStreetView()||null,b)},b));var g=b.ia.oa();b.a.find(".gci-credits-action-share").on("click",t(function(){g||this.ia.pj(!0);return!1},b));b.a.find(".gci-credits-action-restart").on("click",t(function(){j_(this.h)},b));b.a.find(".gci-credits-action-home").on("click",
t(function(){if(!g){var b=this.ia,c=b.H;c&&"home-page"!=c.getId()?b.Oa(k_(b),{projectId:c.getId()}):b.Oa("home")}},b));if(Ak(b.ia.j,"enable_abuse_report")&&(Jt(b.ia)||yx(b.ia))){var h=document.createElement("a");h.href=K.nu+b.N.getId();h.target="_blank";ch(h,"gci-credits-report");h.innerText="Report issue";xf("gci-credits-actions-panel",b.a[0]).appendChild(h)}c&&c.render("onebox").appendTo(b.a.find(".gci-credits-main-partner"));d&&ri(d,b.a.find(".gci-credits-text"))},f_=function(b,c,d,e){var f=new UY({Ad:b.ua()||
EZ(b.content)||b.content.pc(),ua:b.ua(),Qc:b.Qc(),maxHeight:b.h.Ca(),maxWidth:l_(b.h)});b.a.removeClass("gci-scene-no-visual");b.e=new eZ(c,e,f,d)},c_=function(b,c){var d=X(b.ia),e=c||q,f=b.v.find(".gci-gallery-viewer-stop-content");$(L(pX,{title:b.content.getTitle(),description:b.content.Vb(),Nd:b.fd,qe:d})).appendTo(f);if(d){var g=b.v.find(".gci-gallery-viewer-stop-column");g.find(".gci-gallery-expand-button").on("touch",t(function(){this.dispatchEvent(g.hasClass("gci-gallery-viewer-stop-column-expanded")?
"gci-screen-content-collapsed":"gci-screen-content-expanded");g.toggleClass("gci-gallery-viewer-stop-column-expanded");window.setTimeout(t(function(){this.isDisposed()||this.map&&gy(this.map)},this),200);return!1},b)).Zg()}b.J(new Jp(f,{bj:!0,wk:!0}));var h=IZ(b.content);if(h){var l=h.getStreetView();l&&!h.wa()?(f_(b,b.a,l,fD(l)),m_(b),e()):h.wa()?b.b=Tm(hH(b.ub,h.wa()||""),function(c){c&&(b.ka=c,m_(b,c),CC(c)?(b.a.removeClass("gci-scene-no-visual"),g_(b,b.a,c,{mi:h}),h_(b,c,!0)):c.qb()&&f_(b,b.a,
l,c));e()}):(m_(b),e())}else m_(b),e()},m_=function(b,c){n_(b);if(b.content.Oe()&&b.a){var d=NG(b.content.gb()),e=d&&LG(d),f=Cy(d.a)||null,g=b.v.find(".gci-scene-bigmap");g.length||(d=b.v.find(".gci-gallery-viewer-stop-column"),g=$(L(lX)).appendTo(d));b.v.addClass("gci-scene-withbigmap");!e&&f?b.Ja(g,{Mh:f}):(d=function(c){c&&b.Ja(g,{Ti:{Zt:c,$a:e.$a},Mh:f})},c&&c.qb()?d(c):b.b=Tm(hH(b.ub,e.lA),d))}},n_=function(b){b.map&&S(b.map);b.map=null;b.v.find(".gci-scene-bigmap").empty();b.v.removeClass("gci-scene-withbigmap")};
XZ.prototype.Ja=function(b,c){this.map=xk(new VZ(b,c),this)};var o_=function(b,c){ZZ(b);ZK(c,b.v,function(){b.De(!0)});b.vd&&!b.content.Mb()&&ZK(c,b.vd)};XZ.prototype.insertAfter=function(b){ZZ(this);this.v.insertAfter(b);this.vd.insertAfter(this.v);this.De()};XZ.prototype.ua=function(){return this.content.pc()&&!!this.content.k||EZ(this.content)||this.content.ua()||"TRUE"==ax(this.N.Ba,ml)||this.N.Nb()&&this.content.Mb()};
XZ.prototype.Qc=function(){return this.ua()&&!(this.content.pc()&&this.content.k||EZ(this.content))};XZ.prototype.Mb=function(){return this.content.Mb()};
var $Z=function(b){b.v.hasClass("gci-gallery-viewer-scene")?b.v.toggleClass("gci-gallery-immersive-scene",b.ua()):b.v.find(".gci-gallery-viewer-scene").toggleClass("gci-gallery-immersive-scene",b.ua())},d_=function(b,c,d){var e=d||q;(d=c.getStreetView())&&!c.wa()?(b.ua()?p_(b,c,fD(d)):q_(b,c,fD(d)),e()):c.wa()&&(b.b=Tm(hH(b.ub,c.wa()||""),function(d){d?(b.ka=d,b.ua()?p_(b,c,d):q_(b,c,d)):og(b.a.get(0),uX);e()}))};XZ.prototype.w=function(){return this.v};
var q_=function(b,c,d){var e=XC(d);b.a.append(e);b.a.removeClass("gci-scene-no-visual");var f=b.a.find(".gci-asset-image");CC(d)?(e.addClass("gci-asset-type-image"),g_(b,f,d,{Xp:b.a.find(".gci-asset-zoom-widget"),mi:c})):yA(d)||FC(d)?r_(b,f,d):d.qb()&&f_(b,f,c.getStreetView()||null,d);if(!b.fd){var g=new LA({aa:zH(b.N),Sk:!b.N.Nb(),Zb:b.N.getId()});if(!yA(d)&&!d.qb())f.on("click",function(){d.Zf(g,f);return!1});if(d.qb())f.on("click",function(){b.e.Ua||dZ(b.e);return!1});mB(d,e,{context:g,au:f})}},
p_=function(b,c,d){var e=c.getStreetView();b.a.removeClass("gci-scene-no-visual");s_(b);CC(d)?(b.a.addClass("gci-asset-type-image"),g_(b,b.a,d,{mi:c}),h_(b,d,!0)):yA(d)||FC(d)?r_(b,b.a,d):d.qb()&&f_(b,b.a,e,d)},s_=function(b){if(!b.ua()||X(b.ia))return!1;var c;c=b.content;if(KZ(c)){var d=c.gb();c=(d=d&&OG(d))&&ZD(d,c.g)||null}else c=null;if((c=c||"")&&300<c.length){if(b.a.hasClass("gci-long-caption-scene"))return!1;b.a.addClass("gci-long-caption-scene");return!0}return b.a.hasClass("gci-long-caption-scene")?
(b.a.removeClass("gci-long-caption-scene"),!0):!1},g_=function(b,c,d,e){e=e||{};var f=null;e.mi&&(f=dD(e.mi));var g=!1;if(!b.fd&&(b.content.pc()||EZ(b.content)||b.content.Mb())){var h=b.h.I,l=b.h.getHeight();EZ(b.content)&&(h*=.7);if(d.ab().width<h||d.ab().height<l)g=!0}h=new UY({Ad:EZ(b.content)||b.content.pc(),ua:b.ua(),maxHeight:b.h.Ca(),maxWidth:l_(b.h)});b.g=new ZY(c,d,h,{ow:b.N.Jj(),Ko:1<b.o.length,xb:f,pw:g,Xp:e.Xp});t_(b,$Y(b.g));b.J(b.g)},r_=function(b,c,d){var e=new UY({maxWidth:l_(b.h),
maxHeight:b.h.Ca(),ua:b.ua(),Qc:b.Qc()});b.l=new kZ(c,d,e,NZ(b.content))},h_=function(b,c,d){if(!b.fd){var e=YC(c),f=sA(c,{Ec:{width:150,height:60},fadeIn:!0});e.find(".gci-asset-image").replaceWith(f);var g=new LA({aa:zH(b.N),Sk:!b.N.Nb(),Zb:b.N.getId()});mB(c,e,{context:g});e.on("click",function(){c.Zf(g);return!1});d&&b.a.append($(L(nX)));e.appendTo(b.a)}},t_=function(b,c){b.a.toggleClass("gci-gallery-image-cropped",c)};
XZ.prototype.resize=function(b){this.O=!0;!b&&this.O&&(this.De(!0),this.O=!1)};XZ.prototype.Va=function(){return this.H};XZ.prototype.ib=function(){this.e&&this.e.play();this.l&&this.l.play();!this.l&&this.ua()&&this.j&&!X(this.ia)&&uZ(this.j)};var u_=function(b){b.ua()&&b.ib()},v_=function(b){b.H=!1;b.e&&b.e.stop();b.l&&b.l.stop();if(b.j){var c=b.j;c.ha?c.ha.stop():c.g&&c.g.pause()}b.content.Mb()&&b.N.Nb()&&b.ia.we(!0)};
XZ.prototype.ud=function(){this.O&&(this.De(!0),this.O=!1);this.b?Tm(this.b,this.ca,this):this.ca()};var w_=function(b){return!!(b.ua()&&KZ(b.content)&&IZ(b.content)&&IZ(b.content).getStreetView())},x_=function(b,c){if(!b.o[c])return!1;if(b.p!=c){b.p=c;var d=b.o[b.p];b.R();d=IZ(d);b.g&&(d=dD(d),bZ(b.g,d,void 0,!0))}return!0},y_=function(b){return!!yy(b.N.Ba,pl)&&!!KZ(b.content)&&!!b.e};
XZ.prototype.Ca=function(){if(y_(this)&&this.e&&this.e.Ua){var b=RZ(this.content);y(b,function(b){var d=E(b.a,nz,2);if(d){var e=iZ(this.e,d);e.O=b;e.C("click",function(){e&&this.ga(e)},void 0,this)}},this)}};XZ.prototype.ga=function(b){if(b=sD(b.O))b=rD(b),fs("",ae(b.T(this.h.g)))};
var B_=function(b,c){W.call(this);this.G=Y;this.a=[];this.n=$(L(kX,{os:zi()&&!X(this.G)}));this.g=!1;this.n.appendTo(b);var d=this.n.find(".gci-screen-content");this.h=new RK({nz:5*Math.floor(c.I/450),gz:d});UK(this.h);this.p=this.l=this.o=!1;this.j=this.e=0;this.B=this.n.find(".gci-screen-mobile-mask");var e=this;this.B.length?this.B.bind("swipeleft",function(){!z_(e)&&e.dispatchEvent("gci-screen-reachend")}).bind("swiperight",function(){!z_(e,!0)&&e.dispatchEvent("gci-screen-reachbeginning")}).bind("tap",
function(){!z_(e)&&e.dispatchEvent("gci-screen-reachend")}).Zg():X(this.G)&&this.n.bind("swipeleft",t(function(){!z_(this)&&this.dispatchEvent("gci-screen-reachend")},this)).bind("swiperight",t(function(){!z_(this,!0)&&this.dispatchEvent("gci-screen-reachbeginning")},this));this.b=xk(new Jp(d,{Sh:function(){for(var b=null,c=null,d=0,l=e.n.width()+20;d<e.a.length;){var m=e.a[d];if(!m)break;var m=m.w(),r=m.offset();if(null==b&&0<=r.left)b=d;else if(r.top&&r.left+m.width()>l)break;c=d;d++}if(null!=c&&
null!=b){d=new Vl(e.e,e.j);m=new Vl(b,c);l=Math.max(d.start,m.start);m=Math.min(d.end,m.end);l=l<=m?new Vl(l,m):null;for(m=d.start;m<=d.end;m++)l&&l.start<=m&&l.end>=m||e.a[m]&&v_(e.a[m]);e.e=b;e.j=c}else e.e=0,e.j=0;e.dispatchEvent("gci-screen-scroll")}}),this);Lp(this.b);this.b.bind("infinite-scroll",function(){cL(e.h)});this.b.bind("scroll-reach-end",function(){!z_(e)&&e.dispatchEvent("gci-screen-reachend")});this.b.bind("scroll-reach-start",function(){!z_(e,!0)&&e.dispatchEvent("gci-screen-reachbeginning")});
this.b.bind("scroll-done",function(){e.isDisposed()||(e.o=!1,e.l=!1,A_(e),e.dispatchEvent("gci-screen-scroll-end"))})};v(B_,W);B_.prototype.w=function(){return this.n};
var D_=function(b,c,d){(d=d?d.vd:null)?(c.insertAfter(d),Cj(c,function(){sb(b.a,c);C_(b);A_(b)})):(o_(c,b.h),Cj(c,function(){var d=c.vd;aL(this.h,c.w());d&&aL(this.h,d);sb(b.a,c);C_(b);A_(b)},b));b.J(c);X(b.G)&&(c.C("gci-screen-content-expanded",t(function(){this.n.sp();this.dispatchEvent("gci-screen-content-expanded")},b)),c.C("gci-screen-content-collapsed",t(function(){C_(this);this.dispatchEvent("gci-screen-content-collapsed")},b)));b.a.push(c);!zi()||X(b.G)||c.ua()&&!c.Mb()||b.n.removeClass("gci-screen-mobile-enabled");
C_(b)},C_=function(b){X(b.G)&&(!b.a[0]||b.a[0].ua()&&!b.a[0].Mb()?b.n.Zg():b.n.sp())};B_.prototype.ud=function(b){E_(this);var c=b?this.a.length-1:0,d=this.a[c];dL(this.h,d.w());for(var e=3;d&&0<e;)d.ud(),e--,b?c--:c++,d=this.a[c]};var E_=function(b){b.n.addClass("gci-screen-active");!b.p&&y(b.a,function(b){b.resize()});b.p=!0};
B_.prototype.show=function(b){if(!this.g){this.ud();cL(this.h);var c=F_(this);c.ua()&&u_(c);var d=this,e=function(){d.isDisposed()||(d.dispatchEvent("gci-screen-sliding-done"),d.n.removeClass("gci-screen-no-animation"),A_(d))};b?(this.n.addClass("gci-screen-no-animation").addClass("gci-screen-current").removeClass("gci-screen-past").removeClass("gci-screen-future"),window.setTimeout(e,15)):(this.g=!0,this.n.removeClass("gci-screen-past").removeClass("gci-screen-future").addClass("gci-screen-current").delay(400).queue(function(){$(this).dequeue();
d.g=!1;e()}))}};
var I_=function(b,c){if(!b.g){var d=function(){b.isDisposed()||(G_(b),b.g=!1,H_(b,b.a.length-1),y(b.a,function(b){x_(b,b.o.length-1)}))};c?(b.n.addClass("gci-screen-no-animation").addClass("gci-screen-past").removeClass("gci-screen-future"),window.setTimeout(function(){b.isDisposed()||(b.n.removeClass("gci-screen-no-animation"),d())},15)):(b.g=!0,b.n.addClass("gci-screen-past").removeClass("gci-screen-future").delay(400).queue(function(){$(this).removeClass("gci-screen-current");d();$(this).dequeue()}))}},
J_=function(b,c){if(!b.g){var d=function(){b.isDisposed()||(G_(b),H_(b,0),y(b.a,function(b){x_(b,0)}),b.g=!1)};c&&(b.n.addClass("gci-screen-no-animation").removeClass("gci-screen-past").removeClass("gci-screen-current").addClass("gci-screen-future"),window.setTimeout(function(){b.isDisposed()||(b.n.removeClass("gci-screen-no-animation"),d())},15));b.g=!0;b.n.removeClass("gci-screen-past").removeClass("gci-screen-current").addClass("gci-screen-future").delay(400).queue(function(){d();$(this).dequeue()})}},
G_=function(b){y(b.a,function(b){b.Va()&&v_(b)})},L_=function(b){if(1==b.a.length)return b=b.a[0],!b.o[b.p+1];var c=K_(b);return Pp(b.b)||!c},O_=function(b,c){if(!z_(b,c))if(c)d=M_(b),Op(b.b)||!d?b.dispatchEvent("gci-screen-reachbeginning"):N_(b,d);else{var d=K_(b);Pp(b.b)||!d?b.dispatchEvent("gci-screen-reachend"):N_(b,d)}},z_=function(b,c){if(1!=b.a.length)return!1;var d=!1;c?(d=b.a[0],d=x_(d,d.p-1)):(d=b.a[0],d=x_(d,d.p+1));d&&(b.dispatchEvent("gci-screen-scroll"),b.dispatchEvent("gci-screen-scroll-end"));
return d},N_=function(b,c,d,e){if(!b.o){b.o=!0;b.l=!!d;dL(b.h,c.w());var f=c.w().position().left,g=Ip(b.b),h=700,l=f+g-30;e&&(h=300,e=c.w().width(),c=e/2,e=f+e,f+c>b.n.width()?l=g+e-b.n.width()+30:f>c?l=g+c:0<f&&(l=null,b.o=!1,b.l=!1));l&&Np(b.b,l,void 0,!d,h)}},H_=function(b,c,d){b.a[c]&&(1<b.a.length&&N_(b,b.a[c],!0),d&&x_(b.a[c],d))},F_=function(b){var c=b.e;return null!=c&&b.a[c]?b.a[c]:null},K_=function(b){return(b=b.a[b.e+1])?b:null},M_=function(b){return(b=b.a[b.e-1])?b:null};
B_.prototype.resize=function(){y(this.a,function(b){b.resize(!0)});this.n.hasClass("gci-screen-active")&&A_(this)};var A_=function(b){for(var c=Math.max(0,b.e-3),d=Math.min(b.j+3,b.a.length-1);c<=d;){var e=b.a[c];if(!e)break;c<b.e?e.ud():c<=b.j?(e.ud(),e.H||(e.H=!0,e.Db=!0,e.ib())):e.ud();c++}};
var P_=function(b,c,d){W.call(this);this.Do=this.O=X(Y);this.N=null;this.Kh=d;this.g="";this.B=!0;this.b=[];this.$b=[];this.a=-1;this.ub=c;this.h=!1;this.Wd=0;this.ga=new Im(2E3);this.J(this.ga);T(this.ga,"tick",this.ny,!1,this);this.sa=new Im(2E3);this.J(this.sa);T(this.sa,"tick",this.yy,!1,this);this.ka=null;this.n=$(L(fX,{yA:this.Do})).appendTo(b);this.j=b.find(".gci-gallery-viewer-content");this.yb=null;this.Gj={};this.Fb=0;this.Bf=!0;this.Q=!1;this.ad=!0;this.R=!1;this.e=null;this.I=this.n.width();
this.Ja=this.n.height();this.K=this.zd=0;this.Db=null};v(P_,W);
P_.prototype.load=function(b,c){var d=this;this.unload();this.N=b;this.g=this.Kh||xE(this.N.xa);this.n.toggleClass("gci-user-gallery-viewer",!this.N.Nb());var e=this.N.Ea().getPanel();if(e){Q_(this);var f=R_(this);f.w().addClass("gci-screen-first");var g=null,h=!1,h=MZ((new JZ("cover",this.g)).setTitle(this.N.getTitle(this.g)),this.N.Vb(this.g)||kH(this.N,this.g)),l=this.N.k();l&&(h.k=l);h=this.p(h);this.l(h,f);if(h.ua()&&this.B)h.a.on("click",function(){S_(d);return!1});for(var h=h.ua(),m=null,r=
0;r<gH(this.N);r++){var u=new MG(ND(e)[r]),u=LZ(new JZ(NG(u)?"tour-stop":"asset",this.g),u);if(EZ(u))this.zd++;else if("TRUE"==ax(this.N.Ba,ml)){QZ(u);var w=IZ(u);if(null==cD(w)){var C=new jz;D(C,1,.5);D(C,2,.5);D(C,3,0);D(C,4,1);D(C,5,1);G(w,2,C)}}this.ad&&m&&m.ua()&&SZ(m.getContent(),u)?m.o.push(u):(m=this.p(u),this.B&&m.ua()?(h=!0,g=f,f=R_(this)):this.B&&h&&(h=!1,g=f,f=R_(this)),this.l(m,f),g&&1==g.a.length&&w_(g.a[0])&&1==f.a.length&&w_(f.a[0])&&(g.w().addClass("gci-screen-fade-from-past"),f.w().addClass("gci-screen-fade-from-future")))}this.$c(f,
h,l)}this.ze();c?T_(this,c):U_(this,0);V_(this);this.Wd=(new Date).getTime();this.Bf&&(this.ga.start(),this.sa.start())};P_.prototype.Fa=function(){W_(this)||X_(this,!0)};P_.prototype.D=function(){P_.r.D.call(this);this.unload();this.n.remove()};P_.prototype.$c=function(b,c,d){if(!this.N.Nb()||this.B){if(this.N.Nb()&&this.B||c)b=R_(this);c=PZ(OZ(new JZ("credits",this.g),this.N.Bc,fH(this.N)),oH(this.N,this.g)||"");this.B&&d&&(c.k=d);this.l(this.p(c),b)}};var j_=function(b){T_(b,"0:0");Y_(b,0,0)};
P_.prototype.ze=function(){this.n.addClass("gci-gallery-viewer-no-scrollbar");if(!this.e&&!this.O){this.e=new GZ(this.n,this.ub);AZ(this.e);this.J(this.e);var b=this;this.e.C("gci-gallery-progress-goto",function(c){T_(b,c.target,!0,!0);Y_(b)});for(var c=Math.ceil((gH(this.N)-this.zd)/(200-this.zd)),d=0,e=0;e<this.b.length;e++)for(var f=this.b[e],g=0;g<f.a.length;g++){var h=f.a[g]||null;if(h)for(var h=h.o,l=0;l<h.length;l++){var m=h[l],r=Z_(this,e,g,l);EZ(m)?r&&HZ(this.e,r,m):m.Mb()?r&&HZ(this.e,r,
m):(0<c&&0==d%c&&r&&HZ(this.e,r,m),d++)}}this.e&&FZ(this.e,Z_(this));BZ(this.e,1E3)}};P_.prototype.unload=function(){mk(this.yb);Ej(this.b);this.b=[];Ej(this.$b);this.$b=[];this.a=-1;this.j.empty();Ej(this.e);this.e=null};P_.prototype.p=function(b){return new XZ(b,this.ub,this.N,this)};
var Q_=function(b){b.ka=$(L(iX,{da:vH(b.N,b.g),title:b.N.getTitle(b.g),qe:zi(),Va:!0,kA:!EH(b.N),Nb:b.N.Nb()})).appendTo(b.j);b.ka.find(".gci-gallery-player-slideshow").on("click",function(){if(b.ub.items[0]){var c=b.ub.items[0];c&&c.Zf(new LA({aa:zH(b.N),Sk:!0,Zb:b.N.getId(),Kk:!0}))}return!1});b.ka.find(".gci-gallery-player-close").on("click",function(){b.ga.dispatchEvent("tick");b.sa.dispatchEvent("tick");b.dispatchEvent("gci-viewer-exit");return!1});mk(b.yb);var c=b.ka.find(".gci-gallery-player-fullscreen");
b.yb=T(document,rR,function(){c.toggleClass("gci-gallery-player-fullscreen-active")});c.on("click",function(){uR()?tR():sR();return!1});uR()&&c.toggleClass("gci-gallery-player-fullscreen-active");b.ka.appendTo(b.j)};P_.prototype.l=function(b,c,d){var e=this;D_(c||this.b[this.a],b,d);c=d?db(this.$b,d)+1:this.$b.length;yb(this.$b,c,0,b);Cj(b,function(){sb(e.$b,b)});this.dispatchEvent({type:"gci-viewer-scene-added",target:b});return c};
var R_=function(b){var c=new B_(b.j,b);b.b.push(c);b.O&&(c.C("gci-screen-content-expanded",t(function(){this.n.find(".gci-nav-button").attr("disabled","true")},b)),c.C("gci-screen-content-collapsed",t(function(){this.n.find(".gci-nav-button").removeAttr("disabled")},b)));return c},$_=function(b){return b.b[b.a]},a0=function(b){nk(b,"gci-screen-scroll-end");nk(b,"gci-screen-reachend");nk(b,"gci-screen-reachbeginning");nk(b,"gci-screen-scroll")},g0=function(b){if(!(0>b.a)){var c=b.b[b.a];b0(b);c.C("gci-screen-scroll-end",
function(){Y_(b);b0(b)});c.C("gci-screen-reachend",function(){if(!b.h&&b.a!=b.b.length-1){var c=b.b[b.a];b.K++;b.O||1>=c.a.length||2<=b.K?(c0(b),b.K=0,S_(b)):d0(b)}});c.C("gci-screen-reachbeginning",function(){if(!b.h&&0!=b.a){var c=b.b[b.a];b.K++;b.O||1>=c.a.length||2==b.K?(c0(b),b.K=0,e0(b)):f0(b)}});c.C("gci-screen-scroll",function(){!c.l&&b.e&&(b.a==b.b.length-1&&L_(c)?DZ(b.e):FZ(b.e,Z_(b)))})}},b0=function(b){var c=b.b[b.a];c&&(0==b.a&&0==c.e?(b.n.addClass("gci-gallery-viewer-beginning"),b.Q=
!0,b.R&&(b.R=!1,b.n.removeClass("gci-gallery-viewer-end"))):(b.Q&&(b.Q=!1,b.n.removeClass("gci-gallery-viewer-beginning")),b.a==b.b.length-1&&L_(c)?(b.n.addClass("gci-gallery-viewer-end"),b.R=!0):b.R&&(b.R=!1,b.n.removeClass("gci-gallery-viewer-end"))),W_(b)&&window.setTimeout(function(){W_(b)&&X_(b,!1)},600))};
P_.prototype.ny=function(){var b=this,c={};y(this.$b,function(d){if(d.Db){var e=pa(d);b.Gj[e]||(b.Gj[e]=!0,b.Fb++,(d=d.ka)&&(c[d.getId()]=d))}});Vb(c)||this.n.trigger("asset-views",[c]);100==this.Xa()&&this.ga.stop()};P_.prototype.Xa=function(){return Math.floor(this.Fb/this.$b.length*100)};P_.prototype.yy=function(){80<=Math.floor(this.Fb/(this.$b.length-1)*100)&&6E4<=(new Date).getTime()-this.Wd&&(this.n.trigger("set-awesome"),this.sa.stop())};
var h0=function(b,c){b.N&&b.N.Nb()&&b.Q?(X_(b,!0),window.setTimeout(c,150)):c()},W_=function(b){var c=b.b[b.a]?F_(b.b[b.a]):null;return!!b.N&&(!b.N.Nb()||b.Q||!!c&&c.getContent().Mb())},X_=function(b,c){b.N.Nb()&&(c?b.dispatchEvent("gci-viewer-showchrome"):b.dispatchEvent("gci-viewer-hidecrome"))},c0=function(b){b.n.removeClass("gci-screen-preview-future").removeClass("gci-screen-preview-past");b.Db=window.setTimeout(function(){b.isDisposed()||b.n.removeClass("gci-screen-preview")},200)},d0=function(b){b.h||
b.a==b.b.length-1||(window.clearTimeout(b.Db),b.n.addClass("gci-screen-preview").addClass("gci-screen-preview-future"),window.setTimeout(function(){b.isDisposed()||c0(b)},1E3))},S_=function(b){b.h||b.a==b.b.length-1||h0(b,function(){b.n.addClass("gci-gallery-screens-prepare-future");var c=b.b[b.a+1],d=b.b[b.a];b.h=!0;I_(d);a0(d);b.a++;i0(b);H_(c,0);kk(c,"gci-screen-sliding-done",function(){b.h=!1;j0(b);b.n.removeClass("gci-gallery-screens-prepare-future")});c.show();Y_(b,null,0);g0(b);b.e&&FZ(b.e,
Z_(b))})},f0=function(b){b.h||0==b.a||(window.clearTimeout(b.Db),b.n.addClass("gci-screen-preview").addClass("gci-screen-preview-past"),window.setTimeout(function(){b.isDisposed()||c0(b)},1E3))},e0=function(b){if(!b.h&&0!=b.a){b.n.addClass("gci-gallery-screens-prepare-past");var c=b.b[b.a-1],d=b.b[b.a];b.h=!0;J_(d);a0(d);b.a--;k0(b);H_(c,c.a.length-1);kk(c,"gci-screen-sliding-done",function(){b.h=!1;l0(b);b.n.removeClass("gci-gallery-screens-prepare-past")});c.show();Y_(b,null,c.a.length-1);g0(b);
b.e&&FZ(b.e,Z_(b))}},T_=function(b,c,d,e){var f=c.split(":"),g=f[0],h=f[1],f=f[2];"0"!=g&&(X_(b,!0),b.n.removeClass("gci-gallery-viewer-beginning"));U_(b,parseInt(g,10),d);h&&(H_(b.b[b.a],parseInt(h,10),null!=f?parseInt(f,10):void 0),!e&&b.e&&FZ(b.e,c))},Z_=function(b,c,d,e){c=null!=c?c:b.a;b=null!=c?b.b[c]:null;if(!b)return null;d=null!=d?d:b.e||0;b=b?b.a[d]||null:null;e=e||null;!e&&b&&(e=b.p);c=c+":"+d;e&&(c+=":"+e);return c},Y_=function(b,c,d){uR()||(c=Z_(b,c,d))&&b.dispatchEvent({type:"gci-viewer-position",
position:c})},U_=function(b,c,d){if(!b.h&&b.b[c])if(b.a==c)j0(b),l0(b);else{var e;0>b.a?(e=b.b[c],e.show(!0),b.a=c,j0(b),l0(b)):(b.h=!d,c>b.a?I_(b.b[b.a],d):J_(b.b[b.a],d),b.a=c,e=b.b[b.a],kk(e,"gci-screen-sliding-done",function(){b.h=!1;j0(b);l0(b)}),e.show(d));for(c=0;c<b.a;c++)I_(b.b[c],!0);for(c=b.a+1;c<b.b.length;c++)J_(b.b[c],!0);g0(b)}},j0=function(b){var c=b.b[b.a+1];c&&(c.ud(),2>=c.a.length&&(c=b.b[b.a+2])&&c.ud())},l0=function(b){(b=b.b[b.a-1])&&b.ud(!0)},k0=function(b){(b=b.b[b.a+2])&&
b.n.removeClass("gci-screen-active")},i0=function(b){(b=b.b[b.a-2])&&b.n.removeClass("gci-screen-active")};P_.prototype.left=function(){if(this.b[this.a]){var b=this.b[this.a];z_(b,!0)||((Op(b.b)?0:M_(b))?O_(b,!0):e0(this))}};P_.prototype.right=function(){if(this.b[this.a]){var b=this.b[this.a];z_(b)||((Pp(b.b)?0:K_(b))?O_(b):S_(this))}};
var V_=function(b){b.n.find(".gci-nav-previous").on("click",t(function(){this.left();return!1},b));b.n.find(".gci-nav-next").on("click",t(function(){this.right();return!1},b))};P_.prototype.resize=function(){this.Ja=this.n.height();this.I=this.n.width();y(this.b,function(b){b.resize()})};P_.prototype.getHeight=function(){return this.Ja};var l_=function(b){return b.O?b.I:.4*b.I};P_.prototype.Ca=function(){return.85*this.Ja-125};
var m0=function(b,c,d,e,f){$M.call(this,b,c,d);this.I=e.get("c");this.l=this.a=this.N=this.v=null;this.ub=f};v(m0,$M);k=m0.prototype;k.Na=function(b,c,d){var e=this.g,f=c||{};m0.r.Na.call(this,b,c,d);if(e){if(this.N&&f.exhibitId==this.N.getId()){this.ia.of(window.location.href,this.N.getTitle(),!0);return}this.Ok()}else this.v=b,this.l=this.l||b;this.ub.qd();this.ao(f.exhibitId)};
k.Wa=function(){m0.r.Wa.call(this);pG("gci.ui.media-play");this.h||(this.Ok(),this.a&&S(this.a),this.a=null,this.l.remove(),this.l=null,this.v.remove(),this.v=null)};k.Ok=function(){this.a&&this.a.unload()};k.cd=function(){Ii()||this.a&&this.a.resize()};k.ao=function(b){var c=this,d=this.I.a[b]||null;d?this.hh(d):this.I.get(b,function(){(d=c.I.a[b]||null)?c.hh(d):c.jl()},!0)};
var n0=function(b){b.a||(b.a=new P_(b.l,b.ub,b.Sa()[K.vf]),b.a.C("gci-viewer-exit",function(){Rs(b.K,!0)}),b.a.C("gci-viewer-position",function(c){var d=$.extend({},b.Sa(),{position:c.position});"0:0"==c.position&&delete d.position;b.Fa(d,!0,!0)}))};m0.prototype.hh=function(b){n0(this);this.N=new bH(b,void 0,this.ub);b=this.Sa();this.a.load(this.N,b&&b.position);this.ia.of(window.location.href,this.N.getTitle(),!0)};m0.prototype.md=function(){this.a&&this.a.right()}; m0.prototype.ld=function(){this.a&&this.a.left()};
var p0=function(b){b=b||{};var c="",c=b.oa?c+"My exhibits":c+"My galleries",c=O(c),d="",c='<div class="gci-gallery-editpage"><header class="gci-gallery-editpage-header">'+P(tV({va:O("gci-gallery-editor-leave"),content:Cg(""+P(pv({yf:O("SPRITE_back")}))),title:c})),e;b.oa?(e=""+P(tV({va:O("gci-gallery-editor-details-btn"),content:Cg(""+P(pv({yf:O("SPRITE_icon_edit_details")}))+"Details")})),e=M(e)):e="";b=d+(c+e+'<div class="gci-gallery-edit-notice"></div>'+o0(b)+'</header><div class="gci-gallery-editpage-viewer"></div><div class="gci-gallery-editpage-composer"></div></div>');
return M(b)},o0=function(b){b=b||{};var c='<div class="gci-gallery-header-right">';if(null!=b.Sd&&null!=b.Fd)if(b.oa){c+=q0(b);if(!b.Fd||b.Sd)var d="",d=b.Fd&&b.Sd?d+"Discard draft":b.Fd&&!b.Sd?d+"Take Down":d+"Delete",c=c+P(tV({va:O("gci-gallery-editor-delete"),content:Cg(d)}));b.Sd&&(d="",d=b.Fd?d+"Complete draft":d+"Mark as complete",c+=P(tV({va:O("gci-gallery-editor-publish"),content:Cg(d),style:2})));b.Fd&&(c+='<a class="gci-gallery-see-published-version" href="#">See completed version</a>')}else{var d=
b||{},e="";d.oa?d.lf||(e+='<span class="gci-gallery-editor-public-message">To make your exhibit public, click here:</span>'):(e+='<span class="gci-gallery-editor-public-message">',e=d.lf?e+"Changes might take up to one hour to be public.":e+"Make your gallery public to share it.",e+="</span>");var d=M(e),e=b||{},f="",f=e.lf?f+P(tV({va:O("gci-gallery-editor-visibility"),content:Cg(""+P(pv({yf:O("SPRITE_icon_user_collection_lock_open")}))+"Public")})):f+P(tV({va:O("gci-gallery-editor-visibility"),content:Cg(""+
P(pv({yf:O("SPRITE_icon_user_collection_lock_closed")}))+"Private")})),e=M(f),c=c+(d+e+q0(b))}return M(c+"</div>")},q0=function(b){b=b||{};var c;c=""+P(tV({va:O("gci-gallery-editor-preview-btn"),content:O("Preview")}));!b.oa&&b.lf&&(c+=P(tV({va:O("gci-gallery-editor-view-live"),content:O("View in site"),style:2})));return M(c)},r0=function(){return M('<div class="gci-gallery-translationpage gci-cms-style"><header class="gci-gallery-translationpage-header">'+P(tV({va:O("gci-gallery-translation-back"), content:Cg('<div class="jfk-button-img gci-gallery-translation-back-icon SPRITE_back"></div>')}))+'</header><div class="gci-gallery-translationpage-editor"></div></div>')};
var s0=function(b,c,d,e){$M.call(this,b,c,e);this.G=Y;this.Ra=d.get("b");this.ni=d.get("d");this.Qb=null};v(s0,$M);s0.prototype.Wa=function(){s0.r.Wa.call(this);this.G.we(!1);this.h||S(this.Qb)};s0.prototype.Na=function(b,c,d){this.G.we(!0);mu(this.G.a,K.Jd,!1);var e=c||{},f=e.langCode,e=e.exhibitId;this.g||t0(this,b,f,e);s0.r.Na.call(this,b,c,d);f&&e||fs("Missing language",ae("Please provide a langCode parameter."))};
var t0=function(b,c,d,e){iT(b.G.ta,function(b){this.Qb=b.e(this.Ra,this.ni);this.J(this.Qb);og(c[0],r0);this.Qb.render(c.find(".gci-gallery-translationpage-editor")[0]);this.Qb.hy(function(b){if(b=b.lang){var c=this.Sa();c.langCode=b;this.Fa(c,!0)}else this.jl()},this);c.find(".gci-gallery-translation-back").on("click",t(this.jl,this));this.Qb.Qt(d);this.Qb.ts(e)},b)};
s0.prototype.Fa=function(b,c,d){s0.r.Fa.call(this,b,c,d);b.langCode&&b.exhibitId&&this.Qb&&!this.Qb.isDisposed()&&(this.Qb.Qt(b.langCode),this.Qb.ts(b.exhibitId))};s0.prototype.ld=function(){this.Qb&&this.Qb.Rw()};s0.prototype.md=function(){this.Qb&&this.Qb.Sw()};s0.prototype.kh=function(){return!!this.Qb&&this.Qb.kh()};
var u0=function(){DE.call(this)};v(u0,DE);k=u0.prototype;k.D=function(){this.Qa&&(this.Qa.cancel(),this.Qa=null);u0.r.D.call(this)};k.Qa=null;k.zi=function(b,c){if(this.Qa)return!1;var d=sp(Y.ta),e=b.entity_ids,f={};f.entity_ids=("string"==typeof e?[e]:e).join(",");Sm(vp(d,K.an,f,CE),t(this.Lw,this,c),t(this.Wy,this));return!0};k.Wy=function(){this.Qa=null;lx(Y,"Failed to load entity.")}; k.Lw=function(b,c){this.Qa=null;var d=[];c.rh()&&$.each(c.rh(),t(function(b,c){if(c&&2==c.U()){var g=c.Fc();g&&d.push(new EG(g))}},this));b(d.length,d)};var v0=function(b,c){GE(b,2,function(b){return new EG(b.Fc())},c,"Failed to load entities.")};
var w0;w0=function(b,c,d){var e=qj(b);return c||0!=d?c&&0==d?1==b?"in "+(e+" minute"):"in "+(e+" minutes"):c||1!=d?c&&1==d?1==b?"in "+(e+" hour"):"in "+(e+" hours"):c||2!=d?c&&2==d?1==b?"in "+(e+" day"):"in "+(e+" days"):"":1==b?e+" day ago":e+" days ago":1==b?e+" hour ago":e+" hours ago":1==b?e+" minute ago":e+" minutes ago"};
var x0=function(b,c,d,e,f,g){m0.call(this,b,c,d,f,g);this.G=Y;this.Ra=e;this.kd=this.j=null;this.p="en";this.cb=null;this.e=!1;this.La=null;this.B=this.G.oa();this.o=new PY(e);TY(this.o,t(function(b){cT(g,b);var c=b.getId();this.o.a.remove(c);pG("gci.galleryeditpage.asset-ready",b)},this));this.A=null};v(x0,m0);
x0.prototype.Na=function(b,c,d){this.G.we(!0);mu(this.G.a,K.Jd,!0);this.e=!!c.preview;this.g?(x0.r.Na.call(this,b,c,d),y0(this)):($(L(p0,{oa:this.B,WE:Bk(this.G.j)})).appendTo(b),this.l=b.find(".gci-gallery-editpage-viewer"),this.j=b.find(".gci-gallery-editpage-header"),x0.r.Na.call(this,b,c,d),this.j.on("click",".gci-gallery-editor-view-live",t(this.R,this)).on("click",".gci-gallery-editor-preview-btn",t(this.ka,this)).on("click",".gci-gallery-editor-visibility",t(function(){z0(this)},this)).on("click",
".gci-gallery-editor-leave",t(this.H,this)).on("click",".gci-gallery-see-published-version",t(this.ga,this)).on("click",".gci-gallery-editor-publish",t(function(){z0(this,!0)},this)).on("click",".gci-gallery-editor-delete",t(this.O,this)).on("click",".gci-gallery-editor-details-btn",t(function(){A0(this,b)},this)),this.v.off("keydown").on("keydown","input, textarea, .gci-scene-editable",function(b){b.stopPropagation()}),this.La&&(WM(this.La,!0),XM(this.La,!0)),oG(this.A),this.A=nG("gci.galleryeditpage.poll-asset",
t(function(b){SY(this.o,b)},this)))};x0.prototype.R=function(){var b={urlStub:this.N.getTitle()};b.exhibitId=this.N.getId();var c=this.N.Nb()?"exhibit":"user-gallery";this.G.Oa(c,b);this.G.pj(!0);return!1};x0.prototype.ga=function(){jV("../exhibit/"+this.N.getId()+"?fromCms");return!1};x0.prototype.ka=function(){var b=this.Sa();b.preview="true";delete b.position;this.Fa(b);return!1};
var z0=function(b,c){b.B&&!b.N.k()?fs("",ae("A cover image is mandatory to make your exhibit public.")):(B0(b,"Saving..."),b.N.lf()&&!c?dH(b.N):eH(b.N),C0(b),BM(b.Ra,b.N,t(function(){lV();B0(this,"All changes saved.")},b),t(function(){B0(this,"An error occured while saving.");this.N.lf()&&!c?dH(this.N):eH(this.N);C0(this)},b),!0))},A0=function(b,c){b.N&&iT(b.G.ta,function(b){b=b.b(c,this.N,t(this.Iy,this));this.J(b);b.C("gallery-go-to-translate",function(b){if(b=b.lang){var c={};c.langCode=b;c.exhibitId=
this.N.getId();this.G.Oa("exhibit-translation",c)}},!1,this)},b)};
x0.prototype.Iy=function(b){jb([b.fc,b.Jj,b.Pn,b.Tn,b.location,b.pp],p)&&(p(b.Tn)&&lH(this.N,b.Tn),p(b.location)&&DH(this.N,b.location),p(b.Jj)&&wH(this.N,b.Jj),p(b.fc)&&tH(this.N,b.fc),p(b.pp)&&yH(this.N,b.pp),p(b.Pn)&&xH(this.N,b.Pn),B0(this,"Saving..."),this.cb.resize(),j_(this.cb),BM(this.Ra,this.N,t(function(){B0(this,"All changes saved.");D0(this)},this)));if(0<b.yj.length){B0(this,"Saving...");for(var c=[],d=0;d<b.yj.length;d++){var e=b.yj[d];1==e.U()&&c.push(e.Fc().ya())}GM(this.Ra,this.N.getId(),
b.yj,t(function(){var d=t(function(c){for(var d=this.N,e=b.yj,f=0,r;r=c[f];f++)d.g[r.ya()]||(d.g[r.ya()]=r);c=Gy(F(d.xa,Cu,21),e);ec(d.xa,21,c);B0(this,"All changes saved.")},this);c.length?v0(c,d):d([])},this))}};x0.prototype.H=function(){ox(this.G)?kV():this.jl()};
x0.prototype.O=function(){var b=this.N.Fd()&&this.N.Sd()?"Discard modifications":this.N.Fd()&&!this.N.Sd()?"Take down exhibit":"Delete exhibit",c=this.N.Fd()&&this.N.Sd()?"You are about to discard all modifications you have made since you last published this exhibit. Are you sure?":this.N.Fd()&&!this.N.Sd()?"You are about to take down this exhibit. Your exhibit will no longer be visible to the public. Are you sure?":"You are about to delete this exhibit. Are you sure?",d=t(function(){this.N.Fd()&&
!this.N.Sd()?z0(this):E0(this)},this);gs(b,ae(c),d,this)};var E0=function(b){CM(b.Ra,b.N.getId(),t(function(){this.N.Fd()?(this.Ra.rp(this.N.getId()),this.ao(this.N.getId())):this.H()},b),!0)};k=x0.prototype;k.te=function(b){this.b&&(WM(b,!0),XM(b,!0));this.La||(this.La=b,this.cb&&this.cb.te(this.La))};k.Fa=function(b,c,d){x0.r.Fa.call(this,b,c,d);c=this.e;this.e=!!b.preview;c!=this.e&&y0(this)};
k.Wa=function(){this.G.we(!1);this.cb&&this.cb.Tc();oG(this.A);this.o.clear();this.h||(this.Ok(),this.cb&&S(this.cb),this.cb=null,this.j&&this.j.remove(),this.j=null);this.La&&WM(this.La,!1);x0.r.Wa.call(this)};k.Ok=function(){x0.r.Ok.call(this);this.cb&&this.cb.unload()};k.cd=function(){x0.r.cd.call(this);this.cb&&this.cb.resize();this.kd&&this.kd.resize()};
k.ao=function(b){var c=this,d=this.Ra.e[b]||null;d?this.hh(d):this.G.Nh(function(){this.Ra.get(b,function(){(d=c.Ra.e[b]||null)?c.hh(d):yM()},void 0,!0)},this)};k.hh=function(b){var c=t(function(){this.N=new bH(b,void 0,this.ub);this.p=xE(this.N.xa);C0(this);F0(this);this.cb.load(this.N);y0(this);this.G.of(window.location.href,this.N.getTitle(),!0)},this);G0(this,c)};
var y0=function(b){if(b.e&&b.N){b.v.addClass("gci-gallery-editor-preview");mu(b.G.a,K.Jd,!1);b.G.we(!0);n0(b);var c=b.Sa();b.a.load(b.N,c&&c.position);c="Preview of "+b.N.getTitle();b.a.n.find(".gci-gallery-player-header-title").text(c);nk(b.a,"gci-viewer-exit");b.a.C("gci-viewer-exit",function(){var c=b.Sa();delete c.preview;b.Fa(c)})}else b.e||(mu(b.G.a,K.Jd,!0),b.G.we(!0),b.v.removeClass("gci-gallery-editor-preview"),b.a&&b.a.unload(),b.cb.resize())},F0=function(b){var c=b.N.xa.ph(),c=(c?new Date(c):
new Date).getTime(),d;d=c;var e=ta();e<d&&(d=e);var e=ta(),f=Math.floor((e-d)/6E4),e=!1;0>f&&(e=!0,f*=-1);60>f?d=w0(f,e,0):(f=Math.floor(f/60),24>f?d=w0(f,e,1):(f=new Date(ta()),f.setHours(0),f.setMinutes(0),f.setSeconds(0),f.setMilliseconds(0),f=Math.ceil((f.getTime()-d)/864E5),e&&(f*=-1),d=14>f?w0(f,e,2):""));c=wj(c,4);B0(b,d?"Last edit "+(d+"."):"Last edit: "+(c+"."))},B0=function(b,c){b.v&&b.v.find(".gci-gallery-edit-notice").text(c)},C0=function(b){var c=$(L(o0,{oa:b.B,Sd:b.N.Sd(),lf:b.N.lf(),
Fd:b.N.Fd()}));b.j.find(".gci-gallery-header-right").replaceWith(c)},G0=function(b,c){if(b.cb)c();else{var d=b.v.find(".gci-gallery-editpage-composer");iT(b.G.ta,function(b){this.cb=b.a(d,this.ub);H0(this);c()},b)}},H0=function(b){b.La&&b.cb.te(b.La);b.cb.C("gallery-composer-edit",function(b){var d=b.target;d&&I0(this,d,b.mw)},!1,b);b.cb.C("gallery-composer-add",function(b){var d=b.target;d&&(KZ(d.getContent())||EZ(d.getContent()))&&(b=db(this.cb.$b,d),d.bu(!1),J0(this,b,d.getContent().gb(),t(function(){d.bu(!0)},
this)))},!1,b);b.cb.C("gallery-composer-delete",function(b){var d=b.target;d&&(KZ(d.getContent())||EZ(d.getContent()))&&K0(this,d.getContent().gb(),t(function(){d.vd.animate({width:0},300);d.w().animate({width:0,opacity:0},300,t(function(){S(d);A_($_(this.cb))},this))},this))},!1,b);b.cb.C("gallery-composer-inplace-edition",function(b){(b=b.target)&&L0(this,b)},!1,b)},D0=function(b){b.B&&!b.N.Sd()&&(dH(b.N),zy(b.N.Ba,kl,!0),C0(b))},L0=function(b,c){var d=db(b.cb.$b,c);pG("gci-exhibitservice-unvalidate",
b.N.getId());switch(c.getContent().U()){case "asset":J0(b,d,c.getContent().gb());break;case "cover":M0(b,c.getContent());break;case "tour-stop":J0(b,d,c.getContent().gb());break;case "credits":N0(b,c.getContent())}},J0=function(b,c,d,e){B0(b,"Saving...");DM(b.Ra,b.N.getId(),d.tc(),c-1,function(f){var g=d.tc();D(g,3,f);iH(b.N,d.tc(),c-1);B0(b,"All changes saved.");D0(b);e&&e()})},K0=function(b,c,d){var e=WD(c.tc());e&&(B0(b,"Saving..."),EM(b.Ra,b.N.getId(),e,function(){var e=b.N,g=c.tc(),h=e.xa.getPanel();
if(h&&ND(h)){var l=ND(h);sb(l,g);OD(h,l);for(var h=[],g=UD(g)||[],m=0,r;r=g[m];m++)2==r.U()&&(r=r.pa())&&r.wa()&&h.push(r.wa());for(var u=0;g=l[u];u++)for(g=UD(g)||[],m=0;r=g[m];m++)2==r.U()&&(r=r.pa())&&r.wa()&&-1!=db(h,r.wa())&&sb(h,r.wa());for(u=0;u<h.length;u++)delete e.Bc[h[u]];e.a=null;cH(e)}d();B0(b,"All changes saved.");D0(b)}))},M0=function(b,c){B0(b,"Saving...");jH(mH(b.N.setTitle(c.getTitle()||"",b.p),c.Vb()||"",b.p),c.k);BM(b.Ra,b.N,function(){B0(b,"All changes saved.");lV();D0(b)})},
N0=function(b,c){B0(b,"Saving...");pH(b.N,c.l||"",b.p);BM(b.Ra,b.N,function(){B0(b,"All changes saved.");D0(b)})},I0=function(b,c,d){b.g&&b.v&&b.cb&&(S(b.kd),iT(b.G.ta,function(b){b=this.kd=b.k(c.getContent().clone(),this.ub,this.N,this.Ra,this.cb,db(this.cb.$b,c));var f=this.v;ZZ(b);b.v.appendTo(f);b.content.Mb()||b.vd.insertAfter(b.v);b.De();null!=d&&this.kd.focus(d);F0(this);O0(this,c)},b))},O0=function(b,c){b.La&&b.kd.te(b.La);b.kd.C("gci-scene-changed",function(){c&&(y_(this.kd)&&this.kd.zd(),
WZ(c,this.kd.getContent(),!1),L0(this,c))},!1,b);b.kd.C("gci-scene-edition-done",function(){c&&(WZ(c,void 0,!0),this.cb.ib(c),S(this.kd),A_($_(this.cb)),N_($_(this.cb),c,!0))},!1,b);b.kd.C("gci-scene-edition-next",function(){var b=this.cb.Ih(c);b&&I0(this,b)},!1,b);b.kd.C("gci-scene-edition-previous",function(){var b=this.cb.Jh(c);b&&I0(this,b)},!1,b)};x0.prototype.md=function(){this.e?this.a&&this.a.right():this.cb&&this.cb.right()}; x0.prototype.ld=function(){this.e?this.a&&this.a.left():this.cb&&this.cb.left()};
var P0=function(b){A(this,b,"gci.c.bave",-1,null)};v(P0,z);P0.prototype.L=function(){return H(this)};P0.Ta="gci.c.bave";var Q0=function(b){this.b=b};v(Q0,ho);Q0.prototype.k=function(b){fi(b.Gb,K.qu,this.b)};Q0.prototype.e=function(){return P0};Q0.prototype.a=function(b){0<b.length&&ux("A new version of the application is required.")};var R0=function(b){this.b=b};v(R0,ho);R0.prototype.k=function(b){var c=new Mh(window.location.href);$.each(this.b,function(d,e){var f=Y.g+d;"*"!=d&&d!=Zh(b.Gb.clone())&&f!=Zh(b.Gb.clone())||$.each(e,function(d,e){var f=gi(c,e);p(f)&&fi(b.Gb,e,f)})});gi(b.Gb,K.vf)||fi(b.Gb,K.vf,"en");b.e||(qo(b),po(b,!0))};
var S0=function(b){W.call(this);b=b||{};this.b=p(b.kp)?b.kp:"en";this.a=p(b.vz)?b.vz:this.b};v(S0,W);var T0=function(){var b=M,c;c=O("Loading more items...");c=""+P(qv({label:c,type:"secondary",ac:O("collections-ui-button-big gci-longlist-loadmore-button"),disabled:!0,value:c}));c=M(c);return b('<div class="gci-longlist"><div class="gci-longlist-scroll-wrapper"><ul class="gci-longlist-items"><li class="gci-longlist-loadmore">'+c+"</li></ul></div></div>")},U0=function(b){return M('<li class="gci-longlist-item gci-longlist-item-being-rendered" data-list-item-id="'+Q(b.gy)+'"><div class="gci-longlist-item-content"><div class="gci-longlist-item-summary"></div><div class="gci-longlist-assets-overview"></div></div></li>')},
V0=function(b){var c="";b=Zz(new Uz("{NUM_ASSETS_1,plural,=0{No Items}=1{1 Item}other{{NUM_ASSETS_2} Items}}"),{NUM_ASSETS_1:b.yc,NUM_ASSETS_2:N(b.yc)});return M(c+b)},W0=function(b){b=""+('<div class="gci-longlist-item-summary-container"><div class="gci-longlist-item-summary-default">'+(b.Hm||b.Cb?'<div class="gci-longlist-item-logo-holder">'+(b.Cb?'<span><img src="'+Q(R(b.Cb))+'"/></span>':"")+"</div>":"")+'<div class="gci-longlist-item-name" title="'+Q(b.title)+'">'+N(b.title)+"</div>"+(b.description?
'<span class="gci-longlist-description">'+N(b.description)+"</span>":"")+(b.yc?'<span class="gci-longlist-assets-number">'+V0(b)+"</span>":"")+'</div><img class="gci-longlist-item-remove SPRITE_icon_asset_remove" src="'+Q(R(ju("common/pixel.gif")))+'" alt="'+Fg("Delete")+'"></div>');return M(b)};
var X0=function(b,c,d,e){U.call(this);this.G=Y;this.sa=c;this.v=null;this.H=0;this.a=[];this.o={};this.e=0;this.O=null;this.B="";this.ba=bx(this.G)?bx(this.G).getId():"";this.Q=!1;this.ga=null;this.v=L(T0);$(b).append(this.v);this.co&&$(this.v).addClass("gci-longlist-can-delete-items");this.K=$(this.v).find(".gci-longlist-items");this.ca=$(this.v).find(".gci-longlist-scroll-wrapper");this.O=new Jp(this.ca,{gd:this.K,iz:393});X(this.G)||this.O.bind("infinite-scroll",t(this.I,this));this.p=null;if(d){this.p=
new XJ($(d).addClass("gci-longlist-search-container"),{hz:!0,mt:e});this.J(this.p);var f=this;b=function(){f.cg(ZJ(f.p))};this.p.C("selection-changed",b);this.p.C("key-up",b)}this.A=$(this.v).find(".gci-longlist-loadmore");$(this.K).on("click",".gci-longlist-item",t(function(b){var c=$(b.currentTarget).data("list-item-id"),c=this.o[c];b=$(b.target);b=[c,b];$(this.v).trigger("click-item",b);return!1},this));this.J(this.O)};v(X0,wk);k=X0.prototype;
k.D=function(){$(this.K).off("click");Ej(this.o);this.o=null;$(this.v).remove();this.v=null;X0.r.D.call(this)};k.co=!1;k.It=!1;k.ge=null;k.bind=function(b,c){$(this.v).bind(b,c)};k.unbind=function(b,c){$(this.v).unbind(b,c)};k.load=function(b,c){var d=b||q;c&&c.q&&(this.p&&ZJ(this.p,c.q),this.B=c.q);Y0(this,!0);S(this.ge);this.ge=new fN(this.sa);this.Yh(t(function(b,c){this.ge&&gN(this.ge,"dl");Z0(this,b,c);d()},this))};k.Vl=function(){return!1};
var Z0=function(b,c,d){b.isDisposed()||($(b.K).find(".gci-longlist-item, .gci-longlist-item-dummy").detach(),b.ca.scrollTop(0),b.a=c,b.Jp(),b.e=0,b.H=d||c.length,$0(b,0,12),c=[b.H,b.Gf().length],$(b.v).trigger("count-update",c))},a1=function(b,c){return b.o[c]};k=X0.prototype;k.Qq=function(){};k.Jn=function(b){b=b.re;S(this.o[b]);delete this.o[b];this.H--;this.e--;b=[this.o.length];$(this.v).trigger("count-update",b)};k.Jp=q;k.Gf=function(){return this.a};
k.cg=function(b){this.B=b;var c=this;window.clearTimeout(this.ga);this.ga=window.setTimeout(function(){var d=[b];$(c.v).trigger("query-update",d)},500)};
var $0=function(b,c,d){if(b.a.length){var e=b.Gf(),f=e.length;"undefined"!=typeof c&&(e=d?e.slice(c,d):e.slice(c));b.e=Math.min(d||f,f);var g=[],h=[],l=$("<div>");$.each(e,t(function(b,c){var d=a1(this,this.Ki(c));d||(d=this.Ej(l,c),this.o[d.re]=d,this.J(d));this.rj(d,c);l.append(d.w());this.co&&(d.unbind("delete-item"),d.bind("delete-item",t(function(b,c){this.Qq(c)},this)));g.push(d);d.a||h.push(d.re)},b));b.A.before(l);b.A.on("click",t(b.I,b));0<h.length?b.Yh(t(function(b){this.isDisposed()||(this.ge&&
gN(this.ge,"al"),$.each(b,t(function(b,c){this.rj(a1(this,this.Ki(c)),c)},this)),b1(this,g))},b),{ids:h}):b1(b,g)}else Y0(b,!1)},Y0=function(b,c){if(c){var d=b.A.find(".gci-longlist-loadmore-button");d.text(d.data("value").toString());d.prop("disabled",!0)}b.A.toggle(c)},b1=function(b,c){var d=t(function(){this.Q=!1;this.ge&&gN(this.ge,"ac");this.ge&&this.ge.report();S(this.ge);this.ge=null;Y0(this,!1);if(this.Vl()||this.e<this.Gf().length){var b=this.A.find(".gci-longlist-loadmore-button");b.text("Load more");
b.prop("disabled",!1);this.A.toggle(!0)}},b);b.It||X(b.G)||($.each(c,function(b,c){c.tp()}),0>=Hp(b.O)&&b.I());d()},c1=function(b,c){var d=$("<li>");d.addClass("gci-longlist-item-dummy");d.append(c);b.append(d)};
X0.prototype.I=function(){this.Q||(Y0(this,!0),this.Q=!0,this.G.Jb()&&Nt(this.G.Jb()),this.e-1+12<this.Gf().length?$0(this,this.e,this.e+12):this.Vl()?this.Yh(t(function(b){this.isDisposed()||(this.a=this.a.concat(b),$0(this,this.e,this.e+12))},this)):this.e<this.Gf().length?$0(this,this.e,this.Gf().length):(Y0(this,!1),this.Q=!1))};
var d1=function(b,c){b.It=c;$(b.v).toggleClass("gci-longlist-collapsed",c);c?$(b.v).find(".gci-longlist-assets-overview").empty():$0(b,0,b.e)},e1=function(b){var c=[];$.each(b,function(b,e){var f=new tA(e);c.push(f)});return c},f1=function(b,c,d,e,f){U.call(this);this.re=b.toString();this.h=d;this.g=$.extend({},e);this.a=null;this.e=!!f;this.b=L(U0,{gy:this.re});var g=$(this.b);g.find(".gci-longlist-item-summary").append(c);if(this.e)g.find(".gci-longlist-item-remove").on("click",t(function(){g.trigger("delete-item",
[this]);return!1},this))};v(f1,wk);var g1=function(b){return $(L(W0,b))};f1.prototype.D=function(){this.a=null;$(this.b).remove();f1.r.D.call(this)};f1.prototype.w=function(){return this.b};var h1=function(b,c){b.a=c};f1.prototype.tp=function(b,c){if(this.a){var d=$(this.w()).find(".gci-longlist-assets-overview");if(!d.find(".collections-asset-thumbnail").length){d.empty();var e=this;window.setTimeout(function(){e.a&&AA(d,e.a,{height:b||90,ci:!!c,qA:e.h})},0);$(this.b).removeClass("gci-longlist-item-being-rendered")}}}; f1.prototype.getData=function(){return this.g};f1.prototype.bind=function(b,c){$(this.b).bind(b,c)};f1.prototype.unbind=function(b,c){$(this.b).unbind(b,c)};
var i1=function(b,c,d,e,f){X0.call(this,b,c,e,f);this.l=null;this.g="newest";this.Ja=d;this.b=[]};v(i1,X0);k=i1.prototype;k.S=null;k.im=!1;k.fu=null;k.gu=null;k.lj=function(b){var c=b!=this.g;this.g=b;c&&(this.b=[],Z0(this,this.a))};k.cg=function(b){i1.r.cg.call(this,b);this.l=null;this.b=[];window.clearTimeout(this.gu);this.gu=window.setTimeout(t(function(){this.l=null;Z0(this,this.a)},this),300)};
var k1=function(b,c){("undefined"!=typeof c?c:!b.im)?j1(b):(d1(b,!1),b.im=!1,b.l=null,b.b=[],Z0(b,b.a))},j1=function(b){d1(b,!0);b.S||(b.S=new dy(b.Ja,{ys:{maxZoom:14},Sx:{pixelOffset:new google.maps.Size(-170,-20)}}),jy(b.S,"bounds_changed",t(function(){this.R||(window.clearTimeout(this.fu),this.fu=window.setTimeout(t(this.Ca,this),500))},b)));b.im=!0;l1(b)};i1.prototype.Ca=function(){this.l=my(this.S);this.b=[];Z0(this,this.a);this.I()}; var l1=function(b){if(b.S&&b.im){b.R=!0;var c=gb(hb(b.Gf(),b.ka,b),ea);ky(b.S);0!=c.length&&(ly(b.S,c),c=b.S,c.map.panToBounds(c.A),b.R=!1)}};
var n1=function(b){A(this,b,"gci.as.gpr",-1,m1)};v(n1,z);var m1=[2];n1.prototype.L=function(){return H(this)};n1.Ta="gci.as.gpr";n1.prototype.qa=function(){return E(this,OB,1)};n1.prototype.mh=function(){return F(this,$u,2)};var o1=function(b,c,d){d=d||{};var e=d.oz||function(){vt("Failed to find a matching partner.")},f=d.nE||VA,g=function(b){var d=new f(b.qa());b=hb(b.mh(),function(b){return new Yw(b)});c(d,b)};Sm(vp(sp(Y.ta),K.Ku,{url_name:b},n1),function(b){b.qa()?g(b):e()},e)};
var p1=function(b,c,d){jr.call(this,d);c=c||{};this.o=c.rt||!1;this.b=c.jE||new S0;this.g=T(this.b,"lang-code-change",function(){this.a.Jf(this.b.a)},void 0,this);this.l=b;this.a=null};v(p1,jr);p1.prototype.D=function(){mk(this.g);p1.r.D.call(this)};
p1.prototype.wb=function(){p1.r.wb.call(this);var b=null,c=new BU;y(this.l,function(d){var e=d.code;if(null==b||e==this.b.a)b=e;c.Ib(new wU(d.displayName,e),!0)},this);c.w().style.overflowY="auto";S(this.a);this.a=new SU("Select a language",c,KU.pb());this.J(this.a);HU(this.a);this.a.fb(this.w());this.o?WU(this.a,-1):this.a.Jf(b);nr(this).C(this.a,"action",function(){var b=this.a.getValue();if(null!=b){var c=this.b;c.a!=b&&(c.a=b,c.dispatchEvent("lang-code-change"))}});mr(this,this.a.w());this.Ha(this.w())}; p1.prototype.focus=function(){this.a&&this.a.w().focus()};p1.prototype.getValue=function(){var b=this.a.getValue();return ja(b)?b:null};
var q1=function(b,c){var d=Xw(Y,"tosVersion"),e=rx(),f=Zr("Terms of Service",ae(""),function(){e&&Qt(e,"CmsTOS","Accepted");var b=sp(Y.ta);Tm(b.makeRequest(K.ou,{version:d},iM),c)},function(){e&&Qt(e,"CmsTOS","Canceled");fx(Y,K.cv)},void 0,"gci-tos-popup",Br());Mr(f);var g=f.Mc();og(g,ov);Lf(b);Jq(b,!0);var h=xf("gci-tos-scroller-contents",g);h.appendChild(b);xk(new Jp($(xf("gci-tos-scroller-container",g)),{gd:$(h)}),f);Rf(Or(f.a,Qr.key),"Accept");Rf(Or(f.a,Rr.key),"Don't Accept");g=new p1(jx(Y),
{rt:!1});h=document.createElement("span");g.render(h);ch(h,"gci-tos-lang-selector");Hf(Fr(f),h);var l=g.b;T(l,"lang-code-change",function(){var b=Di(window.location.href);ci(b.a,K.vf,l.a);b=Fi(b);fx(Y,b)});g=Di(K.dv);ci(g.a,K.vf,"en");ci(g.a,K.iv,"");h=document.createElement("a");h.href=Fi(g);h.target="_blank";ch(h,"gci-tos-print");Rf(h,"Print");Hf(Gr(f),h);f.ic();return f};
var r1=function(b){A(this,b,"gci.c.gcr",-1,null)};v(r1,z);r1.prototype.L=function(){return H(this)};r1.Ta="gci.c.gcr";var t1=function(b){A(this,b,"gci.es.lr",-1,s1)};v(t1,z);var s1=[1,2];t1.prototype.L=function(){return H(this)};t1.Ta="gci.es.lr";t1.prototype.Ge=function(){return B(this,3)};var v1=function(b){A(this,b,0,-1,u1)};v(v1,z);var u1=[1];v1.prototype.L=function(){return H(this)};var x1=function(b){A(this,b,"gci.c.sr",-1,w1)};v(x1,z);var w1=[1,2,3,4,5];x1.prototype.L=function(){return H(this)};x1.Ta="gci.c.sr";x1.prototype.Vc=function(){return F(this,Lz,1)};x1.prototype.mh=function(){return F(this,$u,2)};x1.prototype.od=function(){return F(this,fE,3)};x1.prototype.gf=function(){return F(this,OB,5)};
var y1=function(){return nx()?"home":"my-galleries"},z1=function(){return nx()?"edit":"user-gallery-edit"};var B1=function(){U.call(this);this.b=[];this.e=0;this.a=new Im(5E3);this.a.C("tick",function(){A1(this)},void 0,this);this.a.start()};v(B1,wk);B1.prototype.D=function(){this.b=[];C1(this);B1.r.D.call(this)};
var cY=function(b,c,d,e,f){dY(b,3,{Zb:c,Td:d,nf:e,ba:f})},D1=function(b,c,d,e,f){dY(b,5,{Zb:c,Td:d,nf:e,ba:f})},E1=function(b,c){dY(b,6,{gl:c})},F1=function(b,c,d){dY(b,14,{nf:c,ba:d})},G1=function(b,c,d,e,f,g,h,l){var m;switch(e){case "asset":switch(f){case "exhibit":m=4;break;case "search":m=5;break;case "entity":m=6;break;case "direct":m=7}break;case "exhibit":m=1}dY(b,1,{$g:c,context:m,nf:d,ba:g,Zb:h,Td:l})},dY=function(b,c,d){if(b.a){var e=new Dt;D(e,1,c);d.$g&&D(e,3,d.$g);d.Zb&&(D(e,4,d.Zb),
D(e,10,!!d.Td));d.nf&&D(e,8,d.nf);d.gl&&D(e,5,d.gl);d.ba?D(e,7,d.ba):bx(Y)&&(c=bx(Y).getId(),D(e,7,c));c=Jt(Y)?2:1;D(e,13,c);d.Qg&&D(e,6,d.Qg);d.context&&D(e,2,d.context);D(e,9,(new Date).getTime());b.b.push(e)}},A1=function(b){if(!b.Qa&&b.a&&b.b.length){var c=new v1;ec(c,1,b.b);b.b=[];var d=sp(Y.ta),e=t(function(){this.Qa=null;this.e++;720<this.e&&C1(this)},b),f=t(function(){this.Qa=null;C1(this)},b);b.Qa=Sm(d.makeRequest(K.Bv,c,iM),e,f)}},C1=function(b){b.a&&b.a.stop();S(b.a);b.a=null};
var H1=function(b,c){cx.call(this,b,c);var d=bx(this);this.name=d?d.getTitle()||document.title:"Google Cultural Institute";this.Ja="";this.h=new B1;this.ga=new Ft({ww:!d});this.K=null};v(H1,cx);var I1=["asset-viewer","exhibit","user-gallery"];k=H1.prototype;k.ba="";k.channel=null;k.Hn=q;k.Tp=q;k.D=function(){$("#loading-spinner").unbind("ajaxSend ajaxComplete");H1.r.D.call(this)};k.Oa=function(b,c,d,e){return this.W.Oa(b,c,d,e)};
k.of=function(b,c,d){H1.r.of.call(this,b,c,d);d&&(this.Tp=t(function(b){var d=this.W.Ab;b=b||d.jo();this.K&&this.Vm(this.K,Ei(b),c||document.title,t(function(b){d&&d.mf&&d.mf(b)},this))},this),this.Tp(b))};k.Jb=function(){return this.ga};k.gg=function(b,c){if(this.Jb()&&!(0<=db(I1,b))&&(c=Ht(this.Jb(),c),this.Ja!=c)){var d;b==this.W.bg&&(d=this.W.Ab.eb.e);var e=this.Jb(),f={};null!=d&&(f["ga.search"]=d);Mt(e,It(c,void 0,f),{Mf:!0});this.Ja=c}};
k.Vm=function(b,c,d,e){this.Hn=t(function(){J1(b,c,e);K1(this,b.find(".gci-consumer-share-fb"),"http://www.facebook.com/sharer.php?u="+encodeURIComponent(c),e,2);var f=d,f=this.channel&&(Ot(this.channel.V,Kk)||"")||Ww(this,"twitterSharingMessage")||document.title;K1(this,b.find(".gci-consumer-share-twitter"),"http://twitter.com/intent/tweet?url="+encodeURIComponent(c)+"&text="+encodeURIComponent(f),e,3);var f=this.channel&&(Ot(this.channel.V,Ik)||"")||Ww(this,"emailSharingSubject")||document.title,
g;(g=this.channel)&&(g=Ot(this.channel.V,Jk)||"")&&(g=g.replace(RegExp("_URL_","gi"),c));g=g||Ww(this,"emailSharingBody").replace(/_URL_/gi,c)||document.title+" - "+c;f="mailto:?subject="+encodeURIComponent(f)+"&body="+encodeURIComponent(g);K1(this,b.find(".gci-consumer-share-email"),f,e,4);L1(this,b,c,d,e);M1(this,b,e)},this)};
var J1=function(b,c,d){b=b.find(".gci-consumer-share-gplus-inside");$.each(b.get(),function(b,f){try{gapi.load("plusone",function(){gapi.plusone.render(f,{href:c,annotation:"none",expandTo:"top",callback:function(){d(1)}})})}catch(g){}})},L1=function(b,c,d,e,f){c=c.find(".gci-consumer-share-embed");var g=b.W.Ab;if(g.Jo()){var h=d.replace(/^.*(\/embed)?\/(asset-viewer|exhibit)\//,"https://"+Ww(Y,"embedHost")+"/embed/$2/");K1(b,c,"",function(b){aN(g,new MW(h,e));f(b)},12);c.show()}else c.hide()},M1=
function(b,c,d){c=c.find(".gci-consumer-share-hangout");var e="https://plus.google.com/hangouts/_?gid=77337084071";"art-project"==b.ba?(Ss(b.W)==b.W.Zd&&(e+="&gd=aw_"+b.W.Ab.Sa()["l.id"]),c.attr("href",e).off("click.gci-consumer-on-share").on("click.gci-consumer-on-share",function(){d(5)}),c.show()):c.hide()},K1=function(b,c,d,e,f){var g=b.Jb();c.attr("href",d).off("click.gci-consumer-on-share").on("click.gci-consumer-on-share",function(){e(f);if(g)a:{var b="Share",c="Unknown";switch(f){case 6:c=
"Sina Weibo";break;case 8:c="Tencent QQ";break;case 7:c="Tencent QZone";break;case 9:c="Renren";break;case 10:c="Kaixin001";break;case 11:c="Douban";break;case 5:c="Google Hangout";break;case 4:c="Email";break;case 3:c="Twitter";b="Tweet";break;case 2:c="Facebook";break;case 1:break a}var d=It(window.location.href,["debug","hl","s.sort_by","v.filter","v.view"]);window._gaq&&window._gaq.push(["_trackSocial",c,b,d])}})};
var N1=function(b,c,d,e,f){OM.call(this,b,c,d,e,f);var g=this;this.v.find(".gci-assets-cart-my-galleries").on("click",function(){g.v.trigger("gci-assets-cart-goto-exhibit");return!1});this.v.find(".gci-assets-cart-back-to-gallery").on("click",function(){g.v.trigger("gci-assets-cart-goto-exhibit");return!1});this.v.find(".gci-assets-cart-add-items, .gci-assets-cart-empty-editpage-mode a").on("click",t(function(){zx(Y.W.bg);return!1},this))};v(N1,OM);
var O1={WA:"/consumer/api/disable-onboarding",dq:"81556",Ru:"/consumer/api/list-exhibit",Vu:"/consumer/api/list-user-galleries",Hu:"/consumer/api/get-channel",Iu:"/consumer/api/get-createdby-list",Ju:"/consumer/api/get-locationentity-list",iq:"/consumer/api/get-partners-list",Lu:"/consumer/api/get-cultural-prefs",Cv:"/consumer/api/update-cultural-prefs",kv:"/consumer/api/recommendation",yv:"/common/api/suggest",Nu:"https://plus.google.com/+googleculturalinstitute",Mu:"https://plus.google.com/+GoogleArtProject", gi:"compare",mq:"share"};Yb(K,O1);
var P1=function(){return M('<section class="gci-compare-container"><div class="gci-compare-left"></div><div class="gci-compare-right"></div><div class="SPRITE_close_big gci-compare-close"></div></section>')},Q1=function(b){var c=M;b=M('<header class="gci-compare-panel-header"><h1><span class="gci-compare-panel-title">'+N(b.F.title)+"</span>"+(b.F.da?'<span class="gci-compare-panel-date"> ('+N(b.F.da)+")</span>":"")+"</h1><h2>"+(b.F.kb?'<span class="gci-compare-panel-author">'+N(b.F.kb)+"</span>":
"")+'<span class="gci-compare-panel-partner">'+N(b.F.ec)+"</span></h2></header>");return c('<section class="gci-compare-panel">'+b+'<div class="gci-compare-panel-microscope"></div></section>')},R1=function(){return M('<div class="gci-compare-tab"></div>')},T1=function(){var b;b=""+('<div class="gci-compare-tab-action"><div class="gci-compare-tab-go"></div><div class="gci-compare-tab-layer-button"></div></div><div class="gci-compare-tab-items"><div class="gci-layers-opacity-slider-wrapper"></div>'+
S1({index:1})+'<div class="gci-compare-tab-item-separator"><span></span></div>'+S1({index:2})+'<div class="gci-layers-opacity-slider-wrapper"></div><div class="gci-layers-adjust-label">Adjust foreground only? <input type="checkbox"></div></div><h2 class="gci-compare-tab-dragdrop-title"><span class="gci-compare-tab-drag-msg">Drag and drop two items to compare.</span><span class="gci-compare-tab-no-drag-msg">Select two items to compare.</span></h2>');return M(b)},S1=function(b){var c;c=""+('<div class="gci-compare-tab-item gci-compare-tab-item'+
Q(b.index)+'"><div class="gci-compare-tab-item-content"><h3>');switch(b.index){case 1:c+='<span class="gci-compare-tab-drag-msg">Drag first item here.</span><span class="gci-compare-tab-no-drag-msg">Select first item.</span>';break;case 2:c+='<span class="gci-compare-tab-drag-msg">Drag second item here.</span><span class="gci-compare-tab-no-drag-msg">Select second item.</span>'}return M(c+'</h3><div class="gci-compare-tab-item-holder"></div><div class="gci-compare-tab-item-remove">Remove</div><div class="gci-compare-tab-item-remove-icon SPRITE_icon_entity_discover_close"></div></div></div>')};
var U1=function(){var b;b=""+('<img src="'+Q(R(ju("common/pixel.gif")))+'" class="gci-asset-actions-compare SPRITE_icon_asset_compare_white" alt="'+Fg("Compare icon")+'" title="'+Fg("Compare")+'">');return M(b)},V1=function(){var b;b=""+('<img src="'+Q(R(ju("common/pixel.gif")))+'" class="gci-asset-actions-share SPRITE_icon_asset_share_white" alt="'+Fg("Share icon")+'" title="'+Fg("Share")+'">');return M(b)};
var W1=function(){iG.call(this);jG=this;this.a=[null,null];this.h=this.e=!1};v(W1,iG);
var jG=null,Y1=function(b,c){$.each(c,t(function(b,c){X1(this,c,b)},b))},Z1=function(b,c,d){var e=jG;CC(d)&&(c=$C(c),$(L(U1)).appendTo(c),b.find(".gci-asset-actions-compare").on("click.gci-compare",function(){X1(e,d);return!1}))},X1=function(b,c,d){d="undefined"!=typeof d?d:$.inArray(null,b.a);0>d&&(X1(b,b.a[1],0),d=1);b.a[d]&&b.a[d].getId()==c.getId()||(b.a[d]&&(b.a[d]=null),c=c.clone(),b.a[d]=c,b.Lg("item-added",c,d))},$1=function(){return"compare"==Ss(Y.W)},a2=function(b){var c=jG;Y1(c,b);Y.W.bind("collections-page-enter.gci-compare",
t(c.p,c))},b2=function(b){b.a=[null,null];b.e=!1;b.Lg("reset")},c2=function(b){var c=jG;c.e=null==b?!c.e:b;c.Lg("layer-mode-changed")},d2=function(b){var c=jG;c.e=!1;c.h=!1;b||b2(c);$1()&&Rs(Y.W,!0);Y.W.unbind("collections-page-enter.gci-compare");window.setTimeout(function(){c.Lg("refresh")},50)};W1.prototype.p=function(b,c){"compare"!=c&&this.Lg("refresh")};
var f2=function(){zu.call(this,O1.gi);this.title="Compare";this.a=$(L(R1));this.Pe="SPRITE_icon_action_tab_compare";this.h=!1;this.g=this.e=null;this.b=this.a.find(".gci-compare-tab-item");jG.g("item-added",this.Cy,this);jG.g("reset",this.Qw,this);jG.g("refresh",this.zk,this);jG.g("layer-mode-changed",this.Dm,this);Y.W.bind("collections-page-enter.gci-compare-tab",t(this.l,this));e2(this);this.a.on("click","input[type=checkbox]",function(){jG.Lg("target-changed",!!$(this).prop("checked"))})};
v(f2,zu);f2.prototype.D=function(){Y.W.unbind("collections-page-enter.gci-compare");Y.W.unbind("collections-page-enter.gci-compare-tab");this.a.off(".gci-compare-tab");this.a.remove();f2.r.D.call(this)};
var e2=function(b){b.h||(og(b.a.get(0),T1),b.e=new Tp("label","simple"),g2(b),b.J(b.e),b.e.get().appendTo(b.a.find(".gci-compare-tab-go")),b.g=xk(new Tp("label","simple"),b),b.g.get().appendTo(b.a.find(".gci-compare-tab-layer-button")),b.b=b.a.find(".gci-compare-tab-item"),b.a.on("click.gci-compare-tab",".gci-compare-tab-go",t(function(){if($1())d2();else{var b=jG;if(!$1()){var d={};d.item1=b.a[0].getId();d.item2=b.a[1].getId();zx("compare",d)}}this.zk()},b)),b.a.on("click.gci-compare-tab",".gci-compare-tab-layer-button",
t(function(){this.Dm(!0)},b)),b.a.on("click.gci-compare-tab",".gci-compare-tab-item-filled",t(function(b){b=$(b.currentTarget);var d=this.b.index(b);jG.a[d]&&(jG.a[d]=null);$1()&&Rs(Y.W,!0);b.find(".gci-compare-tab-item-holder").empty();b.data("asset-id",null).removeClass("gci-compare-tab-item-filled");this.zk()},b)),b.h=!0)},g2=function(b){$1()?Up(b.e,"Reset"):Up(b.e,"Start Comparing")};k=f2.prototype;
k.Dm=function(b,c){b?c2(c):$1()||(jG.h=!1,jG.e=!1);this.a.find(".gci-compare-tab-layer-button").toggle(jG.h&&$1());this.a.toggleClass("gci-compare-tab-layer-mode",jG.e);Up(this.g,jG.e?"View Side-by-Side":"View Overlaid");var d=this.a.find(".gci-compare-tab-items"),e=$("body").width()/2-d.width()/2;d.css("left",jG.e?e:"250px")};
k.Cy=function(b,c){this.open();var d=this.b.eq(c);d.hasClass("gci-compare-tab-item-filled")&&d.find(".gci-compare-tab-item-holder").empty();d.addClass("gci-compare-tab-item-filled").data("asset-id",b.getId()).find(".gci-compare-tab-item-holder").append(sA(b,{Ec:{height:72,width:72},fadeIn:!0}));this.zk()};k.Qw=function(){this.b.data("asset-id",null).removeClass("gci-compare-tab-item-filled");this.a.find(".gci-compare-tab-item-holder").empty();this.zk()};
k.zk=function(){this.a.toggleClass("gci-compare-tab-ready",0>$.inArray(null,jG.a));this.a.toggleClass("gci-compare-tab-on-compare-page",$1());g2(this);this.Dm()};k.Vs=function(b,c){if(c instanceof tA){this.a.find(".gci-asset-dragged-over").removeClass("gci-asset-dragged-over");var d=h2(this,b);d.length&&d.addClass("gci-asset-dragged-over")}};k.Ws=function(b,c){if(c instanceof tA){var d=h2(this,b);if(d.length){var e=this.b.index(d);X1(jG,c,e);d.removeClass("gci-asset-dragged-over")}}};
var h2=function(b,c){return b.b.filter(function(){var b=$(this);if(!b.data("box_")){var e=b.offset();b.data("box_",{sy:e.left,ty:e.top,py:e.left+b.width(),qy:e.top+b.height()})}b=b.data("box_");return b.sy<=c.pageX&&c.pageX<=b.py&&b.ty<=c.pageY&&c.pageY<=b.qy})};f2.prototype.l=function(b,c){var d=$(this.a).find(".gci-compare-tab-drag-msg"),e=$(this.a).find(".gci-compare-tab-no-drag-msg"),f=c==Y.W.Zd||zi();d.toggle(!f);e.toggle(f)};
f2.prototype.cp=function(){this.j||(this.j=this.a.find(".gci-layers-opacity-slider-wrapper"),i2(this,0),i2(this,1),this.Dm())};var i2=function(b,c){var d=RQ(b.j[c],0==c?.5:1);b.J(d);T(d,"change",function(){var b=d.getValue();jG.Lg("opacity-changed",c,b);return!1},!1,b)};
var j2=function(b,c,d,e,f,g,h,l,m){zR.call(this,b,c,d,e,f,g,h,l,m);var r=Y.h;window.setTimeout(t(function(){if(!this.isDisposed()&&r&&!wA(this.F)){var b=null,c=null;this.j.exhibitId?(b="exhibit",c=this.j.exhibitId):b="entity"==this.j.from?"entity":"browse"==this.j.from?"search":"direct";var d=void 0!=this.j.userGallery,e=this.F.qa(),e=e&&e.getId();G1(r,this.F.getId(),e,"asset",b,null,c,d)}},this),1E3)};v(j2,fT);
j2.prototype.e=function(){j2.r.e.call(this);vA(this.F)&&k2(this);"TRUE"!=ax(this.F.V,Jl)&&Y.Hd()||this.me.find(".gci-asset-viewer-save").hide()};var k2=function(b){var c=b.me.find(".gci-asset-viewer-save");$("<img>").addClass("gci-asset-viewer-compare").attr("alt","Compare").attr("src",Qp()).on("click",function(){X1(jG,b.F);return!1}).insertBefore(c)};
var m2=function(b){A(this,b,"gci.rs.rr",-1,l2)};v(m2,z);var l2=[1];m2.prototype.L=function(){return H(this)};m2.Ta="gci.rs.rr";m2.prototype.rh=function(){return F(this,AE,1)};var n2=function(){return M('<div class="gci-recommendation-tab"><div class="gci-recommendation-container"><div class="gci-recommendation-top-container"><div class="gci-recommendation-container-label-container"><div class="gci-recommendation-container-label">Similar</div></div><div class="gci-recommendation-card-container"></div><div class="gci-recommendation-btn SPRITE_recommendation_more"></div><div class="gci-recommendation-btn-caption">More</div></div><div class="gci-recommendation-bottom-container"></div></div></div>')};
var o2=function(b,c){U.call(this);this.a=$(L(n2)).appendTo(b);this.b="minimized";this.g=c;this.e=null};v(o2,wk);
var p2=$(L(function(){return M('<div class="gci-recommendation-overlay"></div>')})).on("click",ed),u2=function(b,c){q2(b,"minimizing");var d=b.a,e=d.find(".gci-recommendation-container-label");d.stop(!0).animate({height:"90px"},c,function(){"minimizing"==b.b&&(q2(b,"minimized"),mu(Y.a,"recommend",!1),r2(b,!1),s2(b),t2(b,[!1]))});e.removeClass("gci-recommendation-container-label-active");d.find(".gci-recommendation-card-container").stop(!0).animate({"margin-top":"25px"},c);d.find(".gci-asset-item").each(function(b,
d){$(d).stop(!0).animate({top:"0"},c)})},v2=function(b){b=b.a;b.find(".gci-recommendation-bottom-container").toggle();b.find(".gci-recommendation-btn-caption").toggle();b.find(".gci-recommendation-btn").toggleClass("SPRITE_recommendation_more").toggleClass("SPRITE_big_rounded_close")},y2=function(b,c){b.b="in_transition";r2(b,!0);w2(b);var d=b.a.find(".gci-recommendation-card-container").stop(!0).css("margin-top",0),e=0;d.find(".gci-asset-grid-caption").each(function(b,c){e=Math.max(e,$(c).outerHeight())});
var f=0,g=[];d.find(".gci-asset-grid").each(function(b,c){var d=$(c).outerHeight();f=Math.max(f,d);g.push(d)});d.height(f+e);var h=b.a;h.find(".gci-recommendation-container-label").removeClass("gci-recommendation-container-label-active");c&&v2(b);var l=h.find(".gci-recommendation-container").on("click.gci-recommendation",function(){x2(b);return!1});h.stop(!0).animate({height:l.outerHeight()},800,function(){q2(b,c?"maximized":"popped_out")});d.find(".gci-asset-item").each(function(b,c){var d=f-g[b];
$(c).stop(!0).animate({top:d+"px"},800)})};o2.prototype.load=function(b){var c=this,d=sp(Y.ta);b={"s.ai":b,"s.mr":3,"s.t":2};Y.ba&&(b.c=Y.ba);Sm(vp(d,O1.kv,b,m2),function(b){if(!c.isDisposed()){b=b.rh();var d=[];$.each(b,function(b,c){1==c.U()&&d.push(new tA(c.pa()))});z2(c,d)}},fd)};
var z2=function(b,c){var d=b.a;if(c&&0!=c.length){var e=d.find(".gci-recommendation-container"),f=d.find(".gci-recommendation-card-container");$.each(c,function(b,c){var d=c.render("grid",{Xf:function(){rx()&&Qt(rx(),"RecommendationTab","click_recommendation")}}).appendTo(f),e=Math.round(163/c.lh());d.css({width:163,top:0});d.find(".gci-asset-grid").css({width:163,height:e})});var g=d.find(".gci-recommendation-container-label");g.removeClass("gci-recommendation-container-label-active");d.show();var h=
null;d.find(".gci-recommendation-top-container").hover(function(){"minimized"==b.b&&(window.clearTimeout(h),h=window.setTimeout(function(){b.isDisposed()||"hover"==b.b&&y2(b,!1)},850),q2(b,"hover"),f.stop(!0).animate({"margin-top":0},350),g.addClass("gci-recommendation-container-label-active"))},function(){window.clearTimeout(h);h=null;"hover"==b.b&&u2(b,350)});d.find(".collections-image-holder").trigger("preload",[]);d.find(".gci-recommendation-btn").on("click",function(){v2(b);if("maximized"==b.b)return u2(b,
500),!1;b.b="in_transition";d.stop(!0).animate({height:e.outerHeight()},500,function(){q2(b,"maximized")});return!1});d.find(".gci-recommendation-bottom-container").append(b.g);pu(Y.a,"recommend","Discover",null,"SPRITE_icon_action_tab_discover",function(){},function(){y2(b,!0);return!1});b.resize();s2(b)}else d.hide()},q2=function(b,c){rx()&&Qt(rx(),"RecommendationTab",c);b.b=c};
o2.prototype.resize=function(){var b=su(Y.a,"recommend"),c=$(window).width();b.css({position:"",left:""});var d=$("#gci-action-tabs .gci-ui-tabs").width()<c/2;d&&b.css({position:"absolute",left:(c-b.width())/2});b.prev().toggleClass("gci-ui-tab-last-child",d)};
var x2=function(b){"maximized"==b.b&&v2(b);u2(b,500)},r2=function(b,c){var d=p2.is(":visible");c&&d||!c&&!d||(c?(b.a.addClass("gci-recommendation-active"),p2.appendTo($("body")).on("click.gci-recommendation",function(){x2(b);return!1}),t2(b,[!0])):(b.a.removeClass("gci-recommendation-active"),p2.detach().off("click.gci-recommendation")))},t2=function(b,c){b.a.trigger("recommendation-state-changed",c)},s2=function(b){w2(b);var c=function(){window.clearTimeout(b.e);var c=b.a;c.css("opacity",1);b.e=
window.setTimeout(function(){b.isDisposed()||c.animate({opacity:0},350)},1E3)};c();$.each(["mousemove","click","mousewheel"],function(b,e){$("body").on(e+".gci-recommendation-auto-hide",c)})},w2=function(b){window.clearTimeout(b.e);$("body").off(".gci-recommendation-auto-hide")};
var A2=function(){var b;b=""+('<div class="gci-asset-viewer-slideshow-container">'+P(tv())+'<span class="gci-asset-viewer-slideshow-controls"><span class="gci-asset-viewer-slideshow-pause"><img src="'+Q(R(ju("common/pixel.gif")))+'" alt="'+Fg("Pause icon")+'" class="SPRITE_icon_asset_viewer_slideshow_pause gci-asset-viewer-slideshow-pause-icon"></span><span class="gci-asset-viewer-slideshow-play"><img src="'+Q(R(ju("common/pixel.gif")))+'" alt="'+Fg("Play slideshow icon")+'" class="SPRITE_icon_asset_viewer_slideshow_start gci-asset-viewer-slideshow-start-icon"></span></span></div>');
return M(b)},B2=function(){var b;b=""+('<span class="gci-asset-viewer-slideshow-duration-controls"><span class="gci-asset-viewer-slideshow-duration-label">Duration</span>'+P(qv({type:"transparent",Lf:O("SPRITE_icon_asset_viewer_slideshow_minus"),ac:O("gci-asset-viewer-slideshow-minus-icon")}))+'<span class="gci-asset-viewer-slideshow-duration"></span>'+P(qv({type:"transparent",Lf:O("SPRITE_icon_asset_viewer_slideshow_plus"),ac:O("gci-asset-viewer-slideshow-plus-icon")}))+"</span>");return M(b)};
var C2=function(b){b=b||{};var c="";b.userEmail&&b.Hd&&(c+='<a id="gci-header-user-galleries" href="#user-galleries">My Galleries</a>');return M(c)},D2=function(b){for(var c="",d="",e=b.link.value.hl,f=e.length,g=0;g<f;g++)var h=e[g],d=d+(0==g?R(h.url):"");d=Dg(d);e="";f=b.link.value.hl;g=f.length;for(h=0;h<g;h++)var l=f[h],e=e+(0==h?""+l.eg:"");e=O(e);c+=(b.link.external?'<div class="gci-external-link-container">':"")+'<a href="'+(b.link.external?Q(R(d)):Q(R(b.pathPrefix))+"/"+Q(d))+'" class="'+
(b.va?Q(b.va)+" ":"")+(b.link.external?"external":"")+'"'+(b.link.external?'rel="nofollow" target="_blank"':"")+">"+N(e)+"</a>";b.link.external&&(c+='<a href="'+Q(R(d))+'" class="external-icon" rel="nofollow" target="_blank"><img src="'+Q(R(ju("common/pixel.gif")))+'" class="SPRITE_icon_open_new_window_white" alt="'+Fg("external link")+'"></a></div>');return M(c)},E2=function(b){b=""+('<li id="footer-gplus-link"><a href="'+Q(R(b.url))+'" target="_blank">Google+</a></li>');return M(b)},F2=function(){return M('<figure class="gci-onebox-item gci-artproject-onebox"><figcaption class="gci-onebox-item-summary"><h3>Art Project</h3><span class="gci-onebox-item-details">Browse the collections of hundreds of acclaimed art partners from more than 40 countries.</span></figcaption><div class="gci-onebox-item-thumb"><p>Art Project</p></div></figure>')},
G2=function(){var b;b=""+('<div class="gci-consumer-surveybanner"><span class="gci-consumer-surveybanner-msg">Your opinion matters. Help us improve your experience on this website by taking this short survey.</span>'+P(qv({label:O("Click here to start"),type:"simple",ac:O("gci-consumer-surveybanner-link")}))+'<span class="gci-consumer-surveybanner-close"></span></div>');return M(b)};
var H2=function(b,c,d,e){dT.call(this,b,c,d,!0,e);this.e=!1;this.p=new u0;this.J(this.p);this.j=this.a=null};v(H2,dT);k=H2.prototype;k.pq=!0;k.lk=!1;k.Ag=!1;k.ei=8;k.Km=0;k.ue=null;k.di=null;k.Ff=null;k.Wa=function(){I2(this);J2(this);H2.r.Wa.call(this)};k.Fa=function(b,c,d){H2.r.Fa.call(this,b,c,d)};
k.gr=function(b,c,d,e,f,g){K2(this,c);this.unbind("slideshow-started");this.bind("slideshow-started",t(function(b,d){c&&L2(c,"view_slideshow",c.getId(),d)},this));M2(c);var h=this,l=this.Q;l.startSlideshow&&window.setTimeout(function(){h.b&&N2(h,!0)},300);b=new j2(b,c,this.Q,d,e,f,g,this.lk||!!l.startSlideshow,this.Sa().location);this.e=!1;this.bind("asset-rendered-or-played",function(){h.Sb&&(h.e=!0)});b.bind("asset-viewer-opened.gci-asset-viewer",t(function(b,d){(this.o=d)&&L2(c,"click_details",
d.replace("gci-asset-viewer-tab-",""))},this));return b};var M2=function(b){var c=rx();if(c&&b){var d=b.qa();window._gaq&&Mt(c,"/asset-viewer/"+b.getId(),{wt:b.getTitle(),Mf:!1,Z:d})}},L2=function(b,c,d,e){var f=rx();f&&(b={Lj:d,Mj:e,Mf:!1,Z:b.qa()},Pt(f,"AssetViewer",c,b))};H2.prototype.Fg=function(){if(this.lk)J2(this);else{var b=this.Sa();Rs(this.K,!b.exhibitId)||(void 0!=b.userGallery?zx("user-gallery",{exhibitId:b.exhibitId}):zx("exhibit",{exhibitId:b.exhibitId}))}};
H2.prototype.hr=function(){this.focus(void 0,void 0,this.lk&&uR())};H2.prototype.mf=function(b){var c=this.Sa(),d=!!c["l.id"],e=Y.h;if(e&&d){var f=EE(this.aa),f=(f=f.qa())&&f.getId();dY(e,2,{$g:c["l.id"],nf:f,Qg:b,ba:null})}d&&(f=EE(this.aa),(f=f.qa())&&f.gg({share:b}))};
H2.prototype.pn=function(b){H2.r.pn.call(this,b);if(this.aa&&FE(this.aa)||this.aa&&this.aa.Vj())this.ue=$(L(A2)).appendTo(b),this.di=$(L(B2)).insertAfter(b),this.ue.find(".gci-asset-viewer-slideshow-start-icon").on("click",t(function(){N2(this,!0)},this)),this.ue.find(".gci-asset-viewer-slideshow-pause-icon").on("click",t(function(){N2(this,!1)},this)),this.di.find(".gci-asset-viewer-slideshow-minus-icon").on("click",t(function(){this.ei=Math.max(this.ei-1,0);N2(this,!0)},this)),this.di.find(".gci-asset-viewer-slideshow-plus-icon").on("click",
t(function(){this.ei=Math.min(this.ei+1,60);N2(this,!0)},this))};
var N2=function(b,c){b.ue&&(b.Ag=void 0!=c?c:!b.Ag,b.ue.find(".gci-asset-viewer-slideshow-pause").toggle(b.Ag),b.ue.find(".gci-asset-viewer-slideshow-play").toggle(!b.Ag),b.Ag?($("body").toggleClass("gci-asset-viewer-slideshow-mode",b.Ag),O2(b)):($(window).off(".gci-assetviewer-page-slideshow"),window.clearInterval(b.Km),b.Km=0))},O2=function(b){b.lk=!0;b.di.find(".gci-asset-viewer-slideshow-duration").text(b.ei.toString());b.ue.find(".gci-slideshow-control").hide();b.ue.find(".gci-asset-viewer-slideshow-controls").show();
b.di.show();window.clearInterval(b.Km);var c=function(c){b.Km=window.setInterval(t(b.next,b),c?0:1E3*b.ei)};b.e?c():(b.unbind("asset-rendered-or-played"),b.bind("asset-rendered-or-played",function(d,e){b.unbind("asset-rendered-or-played");b.e=!0;c(e)}));b.trigger("slideshow-started",[b.ei]);$("body").on("mousedown.gci-assetviewer-page-slideshow",t(function(b){$(b.target).closest(".gci-asset-viewer-slideshow-container").length||$(b.target).closest(".gci-nav-button").length||$(b.target).closest(".gci-asset-viewer-slideshow-duration-controls").length||
N2(this,!1)},b));vi($("body"),"..gci-assetviewer-page-slideshow",t(function(){N2(this,!1)},b))},J2=function(b){b.lk=!1;$("body").removeClass("gci-asset-viewer-slideshow-mode");tR();b.Sb&&b.Sb.unbind(".gci-assetviewer-page-slideshow");N2(b,!1);b.ue&&b.ue.find(".gci-slideshow-control").show();b.ue&&b.ue.find(".gci-asset-viewer-slideshow-controls").hide();b.di&&b.di.hide();b.unbind("asset-rendered-or-played");b.Sb&&yR(b.Sb,!1);$("body").off(".gci-assetviewer-page-slideshow")};k=H2.prototype;
k.next=function(){H2.r.next.call(this);this.Ag&&N2(this,!0)};k.prev=function(){H2.r.prev.call(this);this.Ag&&N2(this,!0)};k.bind=function(b,c){this.v.on(b,c)};k.unbind=function(b){this.v&&this.v.off(b)};k.trigger=function(b,c){this.v.trigger(b,c)};
var I2=function(b){S(b.j);b.Ff&&b.Ff.remove();b.Ff=null;Y.a.get().removeClass("gci-small-discover").off(".gci-assetviewer-page");vu(Y.a,"discover");if(b.a){var c=b.a;c.a&&c.a.remove();r2(c,!1);vu(Y.a,"recommend")}b.unbind("recommendation-state-changed")},K2=function(b,c){if(!Jt(Y)&&!nx()){I2(b);var d=!1;b.Ff=$("<div>").addClass("gci-assetviewer-page-discover-tab");var e=$("<div>");b.j=new Jp(b.Ff,{gd:e});Lp(b.j);var f=c.qa();f&&(d=!0,e.append(f.render("onebox")));"TRUE"==ax(c.V,Hl)&&(d=!0,f=$(L(F2)),
f.on("click.gci-assetviewer-page",function(){Y.Oa("browse",{projectId:"art-project"});return!1}),e.append(f));f=SC(c);f.length&&(Bb(f,function(b,c){return 4==b.nc()?-1:4==c.nc()?1:5==b.nc()?-1:5==c.nc()?1:0}),f=hb(gb(f,function(b){return 1==b.getStatus()}),function(b){return b.ya()}),zb(f),b.p.load({entity_ids:f},function(b,c){for(var f=0;f<c.length;f++)IG(c[f])&&(d=!0,e.append(c[f].render("onebox")))}));if(d)if(f=!1,"TRUE"==ax(c.V,Hl)&&Y.ba&&"art-project"!==Y.ba&&(f=!0),f=f||0==b.K.Lm,DC(c)||zi()||
f||"TRUE"!=ax(c.V,Hl)){if(f=f||1==b.aa.items.length,pu(Y.a,"discover","Discover",b.Ff,"SPRITE_icon_action_tab_discover"),f){mu(Y.a,"discover",!0);var g=Y.a.get();g.addClass("gci-small-discover");if(zi())b.Ff.on("click..gci-assetviewer-page",t(function(){g.hasClass("gci-small-discover")&&(g.removeClass("gci-small-discover"),this.Ff.off(".gci-assetviewer-page"));return!1},b));else g.on("mouseenter..gci-assetviewer-page",function(){g.hasClass("gci-small-discover")&&g.removeClass("gci-small-discover").off(".gci-assetviewer-page")})}}else rx()&&
Qt(rx(),"RecommendationTab","can_show"),P2(b,c,b.Ff)}},P2=function(b,c,d){b.a=new o2(b.v,d);b.bind("recommendation-state-changed",function(c,d){yR(b.Sb,!d,!0)});b.a.load(c.getId())};H2.prototype.cd=function(){H2.r.cd.call(this);this.a&&this.a.resize()};
var Q2=function(b,c,d,e,f){aY.call(this,b,c,d,!0,e);this.ub=f;this.j=this.a=this.e=this.p=this.o=null};v(Q2,aY);
Q2.prototype.Na=function(b,c,d){var e=this.g;Q2.r.Na.call(this,b,c,d);var f=c||{};this.v.removeClass("gci-premium-gallery-page");if(e){if(f.exhibitId==this.Zb){this.Da&&R2(this);this.a&&(this.a.Fa(),this.v.addClass("gci-premium-gallery-page"));return}this.v.addClass("gci-page-fullscreen")}f.projectId&&(this.o=f.projectId);if(c=bx(Y))this.o=c.id;this.v.addClass("collections-consumer-exhibit-page");var g=this;f.exhibitId&&this.B.get(f.exhibitId,function(){S2(g,b,f,d)},!0);T2(this,b)};
Q2.prototype.A=function(){return this.e?DY(this.e):this.a?this.a.Xa():RX(this.td)};
var S2=function(b,c,d,e){var f=b.B.a[d.exhibitId]||null;if(f&&E(f,Vu,22)){var g=new ny(E(f,Vu,22)),h=!!yy(g,nl),g="TRUE"==Ot(g,ml);if(h||g&&Ak(Y.j,"enable_classic_immersive_new_player")){if(!b.b||!f){b.load(null);return}b.v.removeClass("gci-page-fullscreen");b.v.addClass("gci-premium-gallery-page");b.ub.qd();b.a&&S(b.a);b.a=new P_(b.v,b.ub,b.Sa()[K.vf]);b.a.C("gci-viewer-exit",function(){ox(Y)?kV():Rs(b.K,!0)});b.a.C("gci-viewer-showchrome",function(){Y.we(!0)});b.a.C("gci-viewer-hidecrome",function(){Y.we(!1)});
b.a.C("gci-viewer-position",function(c){b.b&&(c=$.extend({},b.Sa(),{position:c.position}),b.Fa(c,!0,!0))});c=new bH(f,void 0,b.ub);S(b.j);b.j=AH(c);b.J(b.j);TG(b.j);VG(b.j,t(b.A,b));b.Zb=c.getId();b.l=c.getTitle();b.a.load(c,d&&d.position);Ax(window.location.href,b.a.N.getTitle(),!0);d=Y.h;!b.isDisposed()&&d&&b.a&&(b.b||b.v.is(":visible"))&&(f=b.Sa().projectId,cY(d,b.a.N.getId(),!1,fH(b.a.N),f));return}if(g){if(!b.b||!f){b.load(null);return}b.Zb=f.getId();c=new bH(f,void 0,b.ub);S(b.j);b.j=AH(c);
b.J(b.j);TG(b.j);VG(b.j,t(b.A,b));b.e&&S(b.e);b.e&&b.e.unbind("gci-immersive-exit");b.e=new pY(b.v,f);b.e.bind("gci-immersive-exit",function(){Rs(b.K,!0)});b.l=b.e.e.getTitle();Ax(window.location.href,b.e.e.getTitle(),!0);d=Y.h;!b.isDisposed()&&d&&b.e&&(b.b||b.v.is(":visible"))&&(f=b.Sa().projectId,cY(d,b.e.e.getId(),!1,fH(b.e.e),f));return}}U2(b,c,d,e)},U2=function(b,c,d,e){b.td=new GX(c,!0,!0);b.td&&TX(b.td);e&&e.exhibit?b.load(e.exhibit):d.exhibitId&&b.B.get(d.exhibitId,function(c){!c||c instanceof
oS||(c=GS(c.Ea()));b.load(c)})},T2=function(b,c){var d=Y.h;c.unbind("set-awesome");c.bind("set-awesome",t(function(){var b,f,g;this.e?(b=this.e.e.getId(),f=!1,g=fH(this.e.e)):this.a?(b=this.Zb,f=!1,g=fH(this.a.N)):(b=this.Da.id,f=this.Da.Td(),g=IS(this.Da));c.unbind("set-awesome");!this.isDisposed()&&d&&(this.b||this.v.is(":visible"))&&D1(d,b,f,g,this.o)},b));c.unbind("asset-views");c.bind("asset-views",t(function(b,c){if(!this.isDisposed()&&d&&(this.b||this.v.is(":visible"))){var g=this.Zb;$.each(c,
t(function(b,c){if(!wA(c)){var e=c.qa(),e=e&&e.getId();G1(d,c.getId(),e,"exhibit",null,this.o,g)}},this))}},b))};Q2.prototype.Uj=function(){this.o=null;this.v&&this.v.removeClass("collections-consumer-exhibit-page");this.l=this.Zb=null;S(this.a);this.a=null;Q2.r.Uj.call(this)};
Q2.prototype.Wa=function(){this.j&&UG(this.j,this.A());this.e&&this.e.unbind("gci-immersive-exit");this.e&&(this.l=this.Zb=null,S(this.e),this.e=null);this.p&&this.p.remove();this.p=null;vu(Y.a,"discover");this.h||this.Uj();Y.we(!1);pG("gci.ui.media-play");Q2.r.Wa.call(this)};Q2.prototype.load=function(b){Q2.r.load.call(this,b);if(this.b&&b){S(this.j);var c=b.getId();this.j=new RG(c,!0,b.getTitle(),b.qa());this.J(this.j);TG(this.j);VG(this.j,t(this.A,this));R2(this)}};
var R2=function(b){if(!Jt(Y)){var c=yS(b.Da);if(c.length){var d=!1;b.p=$("<div>").addClass("gci-exhibit-page-discover-tab");var e=$("<div>");Lp(new Jp(b.p,{gd:e}));for(var f=0;f<c.length;f++){var g=c[f];if(IG(g)){var d=!0,h=g.render("onebox",{context:new LA({ba:b.o||""})});h.off("click.tracking").on("click.tracking",function(){l&&Qt(l,"DiscoverTab","ContentClicked",g.U())});e.append(h)}}if(d){var l=Y.Jb();pu(Y.a,"discover","Discover",b.p,"SPRITE_icon_action_tab_discover",function(){l&&Qt(l,"DiscoverTab",
"Opened")})}}}};k=Q2.prototype;k.cd=function(){Ii()||(Q2.r.cd.call(this),this.a&&this.a.resize())};k.ld=function(){this.e?this.e.left():this.a?this.a.left():Q2.r.ld.call(this)};k.md=function(){this.e?this.e.right():this.a?this.a.right():Q2.r.md.call(this)};k.jo=function(){if(this.a){var b=new Mh(window.location.href);b.a.remove("position");return b.toString()}return Q2.r.jo.call(this)}; k.Jo=function(){var b=null;this.e?b=this.e.e:this.a&&(b=this.a.N);var c=null,d=null,e=null;b?(c=b.Ba,d=E(b.xa,Sy,28),e=b.qa()):this.Da&&(c=this.Da.b,d=this.Da.Ca,e=this.Da.qa());return c?fS(c,d,e):!1};
var V2=function(){return M('<div class="gci-consumer-obt-ribbon"><span class="gci-consumer-obt-ribbon-icon"></span> <span class="gci-consumer-obt-ribbon-welcome">Welcome to the Google Cultural Institute.</span> <span class="gci-consumer-obt-ribbon-learnmore"><a href="#start-tutorial" class="gci-consumer-obt-showtour">Take a tour</a> or <a href="#watch-video" class="gci-consumer-obt-showvideo">watch a video</a> to get started.</span><span class="gci-consumer-obt-ribbon-close"></span></div>')},Y2=function(){var b;
b=""+('<div class="gci-consumer-obt"><div class="gci-consumer-obt-overlay"></div><div class="gci-consumer-obt-body">'+W2({className:O("gci-consumer-obt-message-search"),title:O("Explore & Search"),description:Cg("Click Explore to discover more categories and projects. <br>Or search for people, events, museums, and works of art.")})+W2({className:O("gci-consumer-obt-message-interact"),title:O("Share & Discover"),description:Cg("<ul><li><b>Share</b> special finds with friends across all your social networks.</li><li><b>Compare</b> two items side-by side.</li><li><b>Save</b> favorite pieces and access them later, and even create your own gallery.</li><li>Or click <b>Discover</b> to see related topics and categories.</li></ul>")})+
W2({className:O("gci-consumer-obt-message-learnmore"),title:O("Learn More"),description:Cg("<p>Click here to discover all that the Google Cultural Institute has to offer, and learn more about our story and our projects.</p>")})+'<div class="gci-ui-popup gci-consumer-obt-welcomebox"><span class="gci-consumer-obt-ribbon-icon"></span>'+X2()+'<p>Discover artworks, world heritage sites, cultural figures, and more.</p></div><div class="gci-ui-popup gci-consumer-obt-videobox"><span class="gci-consumer-obt-ribbon-icon"></span><div class="gci-consumer-obt-videoholder"></div><p><a href="//www.google.com/culturalinstitute/about" target="_blank">Learn more</a> about all the new features or</p>'+
X2()+"</div></div></div>");return M(b)},X2=function(){var b;b=""+P(qv({label:O("Start exploring"),type:"primary",ac:O("gci-consumer-obt-close")}));return M(b)},W2=function(b){return M('<div class="gci-consumer-obt-message '+Q(b.className)+'"><div class="gci-consumer-obt-message-arrow"></div><div class="gci-consumer-obt-message-body"><h1>'+N(b.title)+"</h1><p>"+N(b.description)+"</p></div></div>")};
var $2=function(b,c,d){U.call(this);this.g=d||q;this.n=b;this.h=c;this.n.append(L(V2));this.n.append(L(Y2));this.e=this.n.find(".gci-consumer-obt-ribbon");this.a=this.n.find(".gci-consumer-obt");this.b=!1;var e=this;this.a.on("click",".gci-consumer-obt-close",function(){Z2(e);return!1})};v($2,wk);$2.prototype.D=function(){this.b&&vu(Y.a,"fake_discover");this.a.remove();this.e.remove();this.n.off(".onboarding");this.n.removeClass("gci-consumer-withonboardingribbon gci-consumer-obt-highlights gci-consumer-obt-on gci-consumer-obt-highlight-interact gci-consumer-obt-highlight-learnmore gci-consumer-obt-finaldialog gci-consumer-obt-highlight-search gci-ui-popup-open")};
var c3=function(b){b.n.addClass("gci-consumer-withonboardingribbon");b.e.show().on("click",".gci-consumer-obt-showtour",function(){a3(b);return!1}).on("click",".gci-consumer-obt-showvideo",function(){b3(b);return!1}).on("click",".gci-consumer-obt-ribbon-close",function(){Z2(b);return!1})},a3=function(b){d3(b);b.n.addClass("gci-consumer-obt-highlights gci-consumer-obt-on").on("keydown.onboarding",function(c){c.stopPropagation();27==c.keyCode&&Z2(b)}).delay(1).queue(function(b){$(this).addClass("gci-consumer-obt-highlight-search");
b()}).delay(1E3).queue(function(b){$(this).addClass("gci-consumer-obt-highlight-interact");b()}).delay(1E3).queue(function(b){$(this).addClass("gci-consumer-obt-highlight-learnmore");b()}).delay(1E3).queue(function(c){var d=$(this);d.addClass("gci-consumer-obt-finaldialog");b.n.find(".gci-consumer-obt-body").on("click",function(){Z2(b)});c();window.setTimeout(function(){d.addClass("gci-ui-popup-open")},0)});Rt()},d3=function(b){var c=Y.a;ru(c)||ru(c)||(pu(Y.a,"fake_discover","Discover",$("<div>"),
"SPRITE_icon_action_tab_discover"),b.b=!0)},b3=function(b){try{new YT.Player(b.a.find(".gci-consumer-obt-videoholder").get(0),{videoId:b.h,playerVars:{autoplay:0,rel:0}})}catch(c){}b.n.addClass("gci-consumer-obt-on gci-consumer-obt-video");var d=b.n;window.setTimeout(function(){d.addClass("gci-ui-popup-open")},0);St()},Z2=function(b){b.g();S(b)};
var f3=function(b,c,d){U.call(this);this.b=d||q;this.e=c;this.n=$(L(G2)).appendTo(b);this.a=b;var e=this;this.n.on("click",".gci-consumer-surveybanner-close",function(){var b=Y.Jb();Qt(b,"Survey","BannerClosed");e3(e)});this.n.on("click",".gci-consumer-surveybanner-link",function(){var b=Y.Jb();Qt(b,"Survey","Opened");window.open(e.e);e3(e)});this.a.addClass("gci-consumer-withsurveybanner")};v(f3,wk);f3.prototype.D=function(){this.a.removeClass("gci-consumer-withsurveybanner");this.n.remove()}; var e3=function(b){b.b();b.a.removeClass("gci-consumer-withsurveybanner");window.setTimeout(function(){S(b)},300)};
var g3=function(b){A(this,b,0,-1,null)};v(g3,z);g3.prototype.L=function(){return H(this)};var h3=function(b){A(this,b,"gci.c.gzcp",-1,null)};v(h3,z);h3.prototype.L=function(){return H(this)};h3.Ta="gci.c.gzcp";var j3=function(b,c){U.call(this);if(c.qt||c.st)this.e=b,this.g=c.qt||"",this.b=c.st||null,this.h=$("body"),this.a=null,i3(this)};v(j3,wk);
var i3=function(b){Tm(vp(b.e,O1.Lu,{},h3),function(c){c&&E(c,g3,1)&&(b.a=E(c,g3,1),B(b.a,1)?B(b.a,2)||k3(b):l3(b))})},m3=function(b){b.a&&Tm(b.e.makeRequest(O1.Cv,{zwieback_prefs:Jb(b.a.toArray())},iM),function(){S(b)})},l3=function(b){b.g&&c3(xk(new $2($("body"),b.g,function(){b.a&&(D(b.a,1,!0),m3(b))}),b))},k3=function(b){b.b&&b.b.en&&xk(new f3(b.h,b.b.en,function(){b.a&&(D(b.a,2,!0),m3(b))}),b)};
var n3=function(b,c,d,e,f){jN.call(this,b,c,d,e);this.dg=f||!1};v(n3,jN);k=n3.prototype;k.Ck=".gci-unified-header, .gci-nav-button, .gci-browse-faceter, .gci-ui-itemsviewer-view-container, .gci-ui-itemsviewer-load-more";
k.Na=function(b,c,d){if(c&&($.each(c,function(b,d){b=b.toString();var g="";switch(b){case "q."+bf():g="q."+(2).toString();break;case "q."+cf():g="q."+(1).toString();break;case "q."+df():g="q."+(3).toString()}g&&(c[g]=d,delete c[b])}),c["q.openId"]))switch(c["q.openId"]){case bf():c["q.openId"]=(2).toString();break;case cf():c["q.openId"]=(1).toString();break;case df():c["q.openId"]=(3).toString()}n3.r.Na.call(this,b,c,d)};
k.load=function(){if("browse"==this.rb){var b=this.dg;this.dg=!1;"text"in xK(this.eb)&&(this.dg=!0);n3.r.load.call(this);this.dg=b}else n3.r.load.call(this)};k.$o=function(b,c){n3.r.$o.call(this,b,c);var d=NA(this.a)?b.find(".gci-asset-grid"):b.find(".collections-asset-thumbnail");if(!this.j){var e=this;d.on("mousedown",function(b){rN(e,b,d,c);return!1})}Z1(b,d,c);o3(d,c)};k.mf=function(b){var c=Y.h;c&&dY(c,13,{Qg:b,ba:this.ba?this.ba:null})};
k.Mn=function(b,c){this.j||mu(Y.a,O1.gi,!0);if(yu(p3.a,O1.gi)){var d=p3.a;d.n.trigger("object-dragged-over",[d.b,b,c])}else n3.r.Mn.call(this,b,c)};k.Nn=function(b,c){if(yu(p3.a,O1.gi)){var d=p3.a;d.n.trigger("object-dropped",[d.b,b,c])}else n3.r.Nn.call(this,b,c)};
var q3=function(b){this.k=b;this.a={};this.b={}};k=q3.prototype;k.Qa=null;k.add=function(b){this.a[b.getId()]=b};k.get=function(b,c){b||(b="home-page");if(this.a[b])c&&c(this.a[b]);else if(this.b[b]){if(c){var d=new Yw(this.b[b]);this.a[b]=d;delete this.b[b];c(d)}}else this.Qa?Tm(this.Qa,t(this.get,this,b,c)):(d={},d.c=b,this.Qa=Sm(Vm(vp(this.k,O1.Hu,"home-page"!=b?d:{},r1),t(function(){this.Qa=null},this)),t(this.Pw,this,b,c),t(this.Ow,this)))};k.Ow=function(b){vt("Failed to get project.",b)}; k.Pw=function(b,c,d){E(d,$u,1)?(d=E(d,$u,1),c?(d=new Yw(d),this.a[b]=d,c&&c(this.a[b])):this.b[b]=d):c&&c(null)};
var s3=function(b){A(this,b,"gci.c.gplr",-1,r3)};v(s3,z);var r3=[1];s3.prototype.L=function(){return H(this)};s3.Ta="gci.c.gplr";s3.prototype.gf=function(){return F(this,t3,1)};var t3=function(b){A(this,b,0,-1,u3)};v(t3,z);var u3=[2,3];t3.prototype.L=function(){return H(this)};t3.prototype.qa=function(){return E(this,OB,1)};t3.prototype.ak=function(){return F(this,Lz,2)};t3.prototype.mh=function(){return F(this,$u,3)};
var v3=function(b,c,d){$M.call(this,b,c);this.a=null;this.j=d.get("f");this.e=""};v(v3,$M);v3.prototype.n=null;v3.prototype.D=function(){this.a=null;this.e="";v3.r.D.call(this)};v3.prototype.Na=function(b,c,d){var e=c&&c.projectId,f=bx(Y);f&&(e=f.getId());v3.r.Na.call(this,b,c,d);this.e=e;f?(this.a=new Yw(f.Ea()),w3(this)):d&&d.channel?(this.a=new Yw(d.channel.Ea()),w3(this)):this.j.get(e,t(function(b){this.a=b;w3(this)},this))};
var w3=function(b){var c=Jt(Y),d=b.a.Vb(),e=b.a.Lc(),f=$("body");b.n=$("<div>").addClass("gci-channel-info-page").appendTo(f);f.css("overflow","hidden");c&&b.n.addClass("gci-syndicated");b.n.append($("<div>").addClass("SPRITE_close_big").addClass("gci-channel-info-close").on("click",t(b.Fg,b)));var f=$("<div>").addClass("gci-channel-info-desc").append($("<h1>").addClass("gci-channel-info-title")),g=$("<div>").addClass("gci-channel-info-description");ri(d,g);c||f.append(g);d=$("<div>").addClass("gci-channel-info-partners").addClass("collections-scroller").addClass("dark");
$("<div>").addClass("gci-channel-info-wrapper").append(f).append(c?g:d).appendTo(b.n);window.setTimeout(function(){b.n.addClass("animate")},1);if(e){var h=$("<div>").addClass("gci-channel-info-video").appendTo(f);window.setTimeout(function(){if(b.b){var c={rel:0};"AUbgy8YEnpg"==e&&(c.cc_load_policy=1);try{new YT.Player(h[0],{width:"100%",height:"100%",videoId:e,playerVars:c})}catch(d){}}},500)}(d=b.a.getTitle())&&x3(b,d);c&&d||Sm(vp(sp(Y.ta),O1.iq,{c:b.e},s3),t(b.l,b),null)},x3=function(b,c){var d=
"About - "+c;b.n.find(".gci-channel-info-title").text(d)};
v3.prototype.l=function(b){if((b=b.gf())&&!this.isDisposed()&&this.b)if(Jt(Y)){if(b=b[0])if(b=b.qa())b=new VA(b),x3(this,b.getName())}else{var c=$("<div>").addClass("gci-channel-info-partner-images");$.each(b,t(function(b,e){var f=new VA(e.qa()),g=$("<a>").attr("href","#").on("click.gci-channel-info-page",t(function(){p3.pg(f,this.e);return!1},this)).addClass("gci-channel-info-partner"),h=bB(f);h&&g.append(h);g.append($("<span>").text(f.getName()));c.append(g)},this));"world-wonders"==this.e&&(b=
$("<img>").attr("src",ju("consumer/icon_logo_unesco_white.png")).attr("alt","UNESCO World Heritage Convention"),b=$("<a>").attr("href","http://whc.unesco.org/").addClass("gci-channel-info-partner").append(b).append("UNESCO World Heritage Convention"),c.append(b));this.n.find(".gci-channel-info-partners").append($("<h1>").text("Contributing Collections")).append(c)}};v3.prototype.Wa=function(){$("body").css("overflow","");this.n&&this.n.remove();this.n=null;v3.r.Wa.call(this)}; v3.prototype.Fg=function(){zx(k_(p3),Jt(Y)?null:{projectId:this.e})};
var y3=function(){return M('<div class="gci-homepage gci-browse-page"><header class="gci-unified-header"><nav class="gci-browse-controls"></nav></header><div class="gci-browse-content gci-browse-no-sidebar"><div class="gci-browse-content-gradient"></div><div class="gci-browse-results"></div></div>'+P(rv(null))+P(sv(null))+"</div>")},z3=function(b){var c="";b='<a class="gci-homepage-my-galleries-callout" href="'+Q(R(b.pathPrefix))+'/my-galleries">Create your own galleries</a> and share favorite finds with friends.';
return M(c+('<div class="gci-homepage-features-callout"><p>'+b+"</p></div>"))},A3=function(){return M('<div class="gci-homepage-callouts"><p><span class="gci-homepage-callout-new">New! </span><span>Museums, galleries, archives: discover </span><a href="https://www.google.com/opengallery" target="_blank" class="gci-homepage-callout-open-gallery">Google Open Gallery</a>, powerful free tools to bring your content online.</p></div>')},C3=function(){var b;b=""+('<div class="gci-homepage-featured"><div class="gci-homepage-featured-item-container"><div class="gci-homepage-featured-item gci-homepage-featured-item-art-project"><div class="gci-homepage-featured-item-caption"><div class="gci-homepage-featured-item-caption-title">Art Project</div><div class="gci-homepage-featured-item-caption-description">Discover diverse art collections from around the world. Explore artworks at incredible detail, view exhibitions, and take virtual tours.</div></div>'+
B3({title:"de Young Museum"})+'</div></div><div class="gci-homepage-featured-item-container"><div class="gci-homepage-featured-item gci-homepage-featured-item-historic-moments"><div class="gci-homepage-featured-item-caption"><div class="gci-homepage-featured-item-caption-title">Historic Moments</div><div class="gci-homepage-featured-item-caption-description">Explore online exhibitions detailing the stories behind significant moments in human history.</div></div>'+B3({title:"Getty Images"})+'</div></div><div class="gci-homepage-featured-item-container"><div class="gci-homepage-featured-item gci-homepage-featured-item-world-wonders"><div class="gci-homepage-featured-item-caption"><div class="gci-homepage-featured-item-caption-title">World Wonders</div><div class="gci-homepage-featured-item-caption-description">World Wonders brings modern and ancient world heritage sites online using Street View and other Google technologies.</div></div>'+ B3({title:"Getty Images"})+"</div></div></div>");return M(b)},B3=function(b){var c="";b="Image: "+N(b.title);return M(c+('<div class="gci-homepage-featured-item-attribution">'+b+"</div>"))};
var D3=function(b,c,d,e){$M.call(this,b,c,d);this.ad=e.get("f");this.Wd=e.get("c");this.ba="";this.Ja=this.O=!1;this.ga=!0;this.zd=this.j=!1;this.I=this.ka=this.Tc=this.sa=this.R=this.B=this.p=this.a=this.channel=this.v=this.l=null;this.Xa=[];this.Ca=null};v(D3,$M);D3.prototype.D=function(){oG(this.Ca);D3.r.D.call(this)};
D3.prototype.Na=function(b,c,d){D3.r.Na.call(this,b,c,d);c=c||{};if(!(this.g&&c.projectId==this.ba||bx(Y)&&this.ba))if(this.constructor==D3&&Y.p.projectId&&!bx(Y))Y.Oa("project",{projectId:Y.p.projectId},null,!0);else{d=this.ba;var e=bx(Y);e?this.ba=e.getId():c.projectId&&(this.ba=c.projectId);this.ba!=d&&(c=this.ba,E3(this),this.ba=c);Ax(window.location.href,void 0,!0);S(this.B);this.B=new fN(this.ba?"channelpage":"homepage");this.v=$(L(y3)).appendTo(b);zc&&this.v.addClass("ff-no-text-shadow");this.A=
this.v.find(".gci-browse-results");c=$("<div>").addClass("gci-browse-content-wrapper");this.Db=this.v.find(".gci-nav-previous").on("click",t(this.ld,this));this.Fb=this.v.find(".gci-nav-next").on("click",t(this.md,this));S(this.o);this.o=new Jp(this.A,{gd:c,Sh:t(this.Yf,this)});this.H=$("<div>").addClass("browse-content").appendTo(c).bind("swipeleft",t(this.md,this)).bind("swiperight",t(this.ld,this)).bind("tap",function(b,c){c.target.click();return!1});this.Xd=b;this.ad.get(this.ba,t(this.Zo,this))}};
var E3=function(b){b.channel=null;b.ba="";S(b.a);S(b.p);S(b.e);S(b.o);S(b.B);b.B=null;b.v&&b.v.remove();b.v=null;b.l&&b.l.g();b.l=null};k=D3.prototype;k.Wa=function(){this.h||E3(this);window.clearTimeout(this.sa);this.ga=!1;D3.r.Wa.call(this)};
k.Zo=function(b){if(this.b){var c=this.Sa(),c=c&&c.view||void 0,d=["fullscreen","gallery"],e=this.v.find(".gci-browse-controls");if(b){this.channel=new Yw(b.Ea());c=c||PK(this.channel)||"fullscreen";b=this.channel;var f=E(b.a,Tu,9),d=["fullscreen","gallery"];if(f&&0<B(f,2).length){for(var g=[],h=0;h<B(f,2).length;h++){var l=B(f,2)[h];(l=OK(l))&&g.push(l)}g.length&&(d=g)}(b=PK(b))&&(pb(d,b)||d.push(b));if(b=!X(Y))b=E(this.channel.a,Tu,9),b=!!b&&!!B(b,7);this.O=b}else c=c||"fullscreen",this.ba="",this.channel=
null;S(this.e);X(Y)&&Jt(Y)&&this.H.prepend($("body > header .gci-syndicated-custom-link"));this.e=new MA(e,c,d);this.e.bind("selection-changed",t(this.jr,this));this.jr();c=null;this.channel&&(c=NK(this.channel));c&&c.length?this.Ms(c):(c=this.Wd,e=t(this.Ms,this),d=this.ba,b=Tb(c.j),0<b.length&&!d?e(b):c.g?Tm(c.g,t(c.o,c,e,d)):(b={},d&&(b.c=d),d=d||"",c.g=Sm(vp(c.h,O1.Ru,b,t1),t(c.o,c,e,d),t(c.A,c,e))))}};
k.Ms=function(b){if(this.b){this.B&&gN(this.B,"dl");b=gb(b,ea);this.channel&&0!=b.length||Bb(b,function(b,c){var d=(ty(b.Ba)||null)&&(ty(b.Ba)||null).getTime(),e=(ty(c.Ba)||null)&&(ty(c.Ba)||null).getTime();return d<e?-1:d>e?1:0});NA(this.e)||OA(this.e)&&!this.O?this.a=new F3(b,t(this.Yf,this)):this.a=new DE(void 0,b);var c=Y.p[K.Zp];if(c&&PA(this.e)){this.ga=!1;for(var d=0;d<b.length;d++){if(b[d].id&&b[d].id==c){this.R=d;break}if(b[d].getId&&b[d].getId()==c){this.R=d;break}}}b={$s:this.ba,Hg:"items",
ct:t(this.ze,this),ht:this.O?this.Xd:void 0,hp:270,mz:NA(this.e)?4:0};this.p=new tL(this.a,this.e,this.H,this.rb,b);this.p.bind("ui-updated",t(this.fp,this));this.o.unbind("infinite-scroll");!X(Y)&&(NA(this.e)||OA(this.e)&&!this.O)&&this.o.bind("infinite-scroll",t(this.p.A,this.p,q));OL(this.p);var e=this;this.O&&(this.v.find(".gci-browse-controls").prepend(OL(this.p)),this.p.bind("dragstart",function(){e.Ja=!0}),this.p.bind("dragend",function(){e.Ja=!1}),oG(this.Ca),this.Ca=nG("itemsviewer-focus-item",
function(b,c){var d=e.Xa[b.getId()];if(d){if(c){var l=!d.parent(".gci-ui-fragment").prev().children(".gci-localizable-item").length,m=!d.prev(".gci-localizable-item").length;if(l&&m)return}else e.j=!0,e.o.bind("scroll-done",function(){e.j=!1;e.o.unbind("scroll-done");e.o.a?G3(e,d):e.Yf()});e.o.a?e.o.scrollTop(d.position().top):Np(e.o,d.position().left-370,void 0,!c)}}),this.H.on("mouseover",".gci-localizable-item",function(){if(e.j||e.Ja)return!1;var b=$(this);window.clearTimeout(e.ka);e.ka=window.setTimeout(function(){!e.isDisposed()&&
e.b&&G3(e,b)},250)}).on("mouseout",".gci-localizable-item",function(){window.clearTimeout(e.ka)}));this.p.update();this.B&&gN(this.B,"ac");this.B&&this.B.report();S(this.B);this.B=null}};
k.jr=function(){this.v.removeClass("gci-browse-gallery");this.v.removeClass("gci-browse-grid");this.v.parent().removeClass("gci-page-fullscreen gci-page-framed");OA(this.e)?(this.v.addClass("gci-browse-gallery"),this.v.parent().addClass("gci-page-framed"),Lp(this.o),this.H.sp()):NA(this.e)?(this.v.addClass("gci-browse-grid"),Mp(this.o)):PA(this.e)&&(this.v.parent().addClass("gci-page-fullscreen"),Mp(this.o),this.H.Zg())};
k.fp=function(){this.j=!1;var b={};this.Yf();var c=this;this.O&&(this.Xa=[],this.H.find(".gci-localizable-item").each(function(){var b=$(this),d=b.data("RenderableItem");c.Xa[d.getId()]=b}));this.channel&&PK(this.channel)&&this.e.getValue()!=PK(this.channel)?b.view=this.e.getValue():this.channel&&PK(this.channel)||!OA(this.e)||(b.view="gallery");var d=Jt(Y),e=t(function(){this.v.find(".gci-home-explore-button").remove();xk(new Tp("Explore Everything","simple"),this).get().addClass("gci-home-explore-button").on("click",
t(function(){this.ba?zx(Y.W.bg,d?null:{projectId:this.ba},d?null:{channel:this.channel}):zx(Y.W.bg);return!1},this)).appendTo(this.v.find(".gci-ui-itemsviewer-info-actions"));if(!d||IK(this.channel))this.v.find(".gci-home-learn-button").remove(),xk(new Tp("Learn More","simple",{}),this).get().addClass("gci-home-learn-button").on("click",t(function(){if(this.ba)return zx("project-info",d?null:{projectId:this.ba},d?null:{channel:this.channel}),!1},this)).appendTo(this.v.find(".gci-ui-itemsviewer-info-actions"))},
this);OA(this.e)?this.ba&&e():PA(this.e)?H3(this,null,this.R):NA(this.e)&&(this.H.find(".gci-localizable-item").first().each(function(b,d){G3(c,$(d))}),d&&this.ba?e():this.ba||d||$(L(A3)).appendTo(this.v.find(".gci-ui-itemsviewer-info")),this.H.find("h2").text("Featured Content"));this.Fa(b,!this.zd);this.zd=!0};
var I3=function(b){if(OA(b.e)){var c=b.A.scrollLeft(),d=b.A.prop("scrollWidth"),e=b.A.width();b.Db.attr("disabled",0==c);b.Fb.attr("disabled",c+e==d)}else PA(b.e)&&(d=b.v.find(".gci-fullscreen-current-item"),c=b.v.find(".gci-fullscreen-item"),d=c.index(d),c=c.length-1,b.Db.attr("disabled",0==d),b.Fb.attr("disabled",d==c))};
D3.prototype.md=function(){if(!this.j){if(OA(this.e)){this.j=!0;var b=this.A.prop("scrollWidth"),c=b;this.O&&this.I?(c=this.I.next(".gci-localizable-item"),c.length||(c=this.I.parent(".gci-ui-fragment").next().children(".gci-localizable-item").first()),c=c.length?c.position().left-370:b):c=this.A.scrollLeft()+this.A.width();this.A.animate({scrollLeft:Math.min(c,b)},1E3,"easeInOutCubic",t(function(){this.j=!1;this.Yf()},this));return!1}PA(this.e)&&H3(this,1)}};
D3.prototype.ld=function(){if(!this.j){if(OA(this.e)){this.j=!0;var b;this.O&&this.I?(b=this.I.prev(".gci-localizable-item"),b.length||(b=this.I.parent(".gci-ui-fragment").prev().children(".gci-localizable-item").last()),b=b.length?b.position().left-370:0):b=this.A.scrollLeft()-this.A.width();this.A.animate({scrollLeft:Math.max(b,0)},1E3,"easeInOutCubic",t(function(){this.j=!1;this.Yf()},this));return!1}PA(this.e)&&H3(this,-1)}};
D3.prototype.Yf=function(){I3(this);if(!this.j){window.clearTimeout(this.Tc);window.clearTimeout(this.ka);var b=this;this.Tc=window.setTimeout(function(){if(!b.isDisposed()&&b.b){var c=!b.O;QL(b.p,function(d){d.find(".collections-image-holder").trigger("preload",[]);!c&&370<=d.offset().left+d.width()/2&&(c=!0,G3(b,d))})}},100)}};
var G3=function(b,c){if(c!=b.I){b.I&&b.I.removeClass("gci-localizable-item-focused");var d=c.data("RenderableItem");d&&(c.addClass("gci-localizable-item-focused"),pG("itemsviewer-focus-marker",d),b.I=c)}};D3.prototype.Fa=function(b,c,d){!Jt(Y)&&this.ba&&(b.projectId=this.ba);D3.r.Fa.call(this,b,c,d)};
var H3=function(b,c,d){var e=0,f=null;c&&ka(c)&&(-1==c||1==c)&&(b.ga=!1,f=c);window.clearTimeout(b.sa);b.ga&&(b.sa=window.setTimeout(t(function(){this.b&&(OA(this.e)||H3(this))},b),7E3));var g=b.v.find(".gci-fullscreen-current-item");c=b.v.find(".gci-fullscreen-item");var h=c.index(g),l=b.a.sb,m=h;if(p(d)&&ka(d)&&0<=d&&d<l){if(m=d,m==h)return}else if(null!=f){if(m=0<f?Math.min(h+1,l-1):Math.max(h-1,0),h==m)return}else{if(2>l&&-1!=h)return;m=Math.floor(Math.random()*l);m==h&&(m=Math.min(0==m?m+1:m-
1,l));f=m>h?1:-1}b.j=!0;b.R=m;g.removeClass("gci-fullscreen-current-item");var r=c.eq(m).addClass("gci-fullscreen-current-item"),u=r.find(".collections-image-holder").first(),w=r.find(".holder-background").first().show(),C=r.find(".gci-exhibit-date-title-inner-wrapper, .gci-exhibit-view, .gci-exhibit-cover-attribution-display"),J=r.find(".gci-exhibit-description, .gci-exhibit-source");I3(b);var V=!1,xa=t(function(){C.length?C.fadeIn(t(function(){J.length?J.fadeTo(1E3,1,t(function(){V||(V=!0,this.j=
!1)},this)):this.j=!1},this)):this.j=!1;var c=r.data("asset");if(c&&EC(c)&&2E3>e&&!zi()){var d=c.ab(),f=$("body");if(!d||!(d.width<f.width()||d.height<f.height())){u.find(".gci-microscope").remove();this.l&&this.l.g();this.l=null;d=c.Se();this.l=new OP(u.get(0),{bf:d,Df:!1});u.addClass("gci-image-with-microscope");var g=u.find(":last-child");g.addClass("gci-microscope");this.l.j(!1);this.l.A(!1);this.l.Q(!1);this.l.k(3);this.l.O(function(){b.b&&window.setTimeout(function(){g.animate({opacity:1},800,
function(){w.hide()})},100)});this.l.o(function(){b.l.b(!1,"fill")});PP(this.l,JC(c))}}},b);d=t(function(){e&&(e=(new Date).getTime()-e);J.css("opacity","0");C.hide();g.stop(!0,!1).animate({opacity:0},800,t(function(){g.css("display","none")},this));r.css("display","block").animate({opacity:1},800);u.length?u.css({left:30*f,right:-30*f}).trigger("refresh").animate({left:0,right:0},800,xa):xa()},b);u.length?(e=(new Date).getTime(),u.trigger("preload",[d])):d()};
D3.prototype.ze=function(){var b=this.ba?this.channel:null,c=bx(Y),d=Jt(Y);c&&(b=c);c=[];if(b)for(var e=0,f;f=MK(b)[e];e++)c.push({url:Ci(f.url||""),link:f.rs.getUrl(),title:f.rs.T()});var g=$(L(kL,{ne:b?LK(b):ju("common/cilogo_288_0.png"),Fn:c,Ip:!0})),c=$("<div>");ri(b?JK(b):"Discover exhibits and collections from museums and archives all around the world. Explore cultural treasures in extraordinary detail, from hidden gems to masterpieces.",c);e=$("<div>");b?X(Y)&&d||ri(b.Vb(),e):(e=$(L(z3,{pathPrefix:Y.g})),
e.find(".gci-homepage-my-galleries-callout").on("click",function(){zx("my-galleries");return!1}));g.find(".gci-ui-itemsviewer-info-description").append(c).append(e);Pd(g[0],Od(g.text()));!b||JK(b)||b.Vb()||g.addClass("gci-ui-itemsviewer-empty-description");NA(this.e)&&""===this.ba&&!Jt(Y)&&(g.append($(L(C3))),$.each({"art-project":"gci-homepage-featured-item-art-project","historic-moments":"gci-homepage-featured-item-historic-moments","world-wonders":"gci-homepage-featured-item-world-wonders"},function(b,
c){g.find("."+c).click(function(){mx(Y,Y.g+"/project/"+b);return!1})}));return g};D3.prototype.cd=function(){this.p&&this.p.update()};D3.prototype.mf=function(b){var c=Y.h;c&&dY(c,12,{Qg:b})};var F3=function(b,c){var d=xb(b,0,24);DE.call(this,null,d);this.j=b;this.p=c};v(F3,DE);F3.prototype.gk=function(){return this.sb!=this.j.length};F3.prototype.bo=function(b,c){var d=xb(this.j,this.sb,this.sb+24);this.items=this.items.concat(d);this.sb=this.items.length;c(this.sb-d.length,d);this.p();return!0};
var J3=function(b,c,d,e){D3.call(this,b,c,d,e)};v(J3,D3);J3.prototype.Zo=function(b){b?(J3.r.Zo.call(this,b),X(Y)&&this.H.prepend($("body > header .gci-header-link"))):zx("home")};
J3.prototype.fp=function(){J3.r.fp.call(this);this.v.find(".gci-channel-header").remove();if(!OA(this.e)&&Jt(Y)){var b=$(L(xv,{title:this.channel.getTitle(),bs:!!JK(this.channel),Tt:IK(this.channel)})),c=b.find(".gci-channel-header-description");ri(JK(this.channel),c,void 0,!0);b.find(".gci-channel-learn-more").on("click",function(){zx("project-info");return!1});b.find(".gci-channel-explore-link").on("click",function(){zx(Y.W.bg);return!1});this.v.find(".gci-unified-header").prepend(b)}}; J3.prototype.mf=function(b){var c=Y.h;c&&dY(c,12,{ba:this.ba,Qg:b})};
var K3=function(b,c,d){$M.call(this,b,c,d);this.a=this.j=this.e=this.n=null;this.I=Y.a;this.l=null};v(K3,$M);K3.prototype.o=null;
K3.prototype.Na=function(b,c,d){var e=this,f=this.g;K3.r.Na.call(this,b,c,d);S(this.o);this.o=new fN("comparepage");mu(this.I,O1.gi,!0);c.item1&&c.item2?(f||(this.n=$(L(P1)).appendTo(b),this.n.on("click.gci-compare-page",".SPRITE_close_big",function(){d2(!0)})),b=vx(),jG.h=0<=$.inArray(c.item1,b)&&0<=$.inArray(c.item2,b),b="layers"==c.mode,c2(b),this.a=new aT({assetIds:[c.item1,c.item2]}),L3(this,b),jG.g("layer-mode-changed",this.A,this),jG.g("opacity-changed",this.p,this),jG.g("target-changed",function(b){ZQ(e.l,
b?"gci-layers-primary-microscope":"gci-layers-combined-microscope")})):vt("Please select two items to compare.")};
var L3=function(b,c){var d=function(d,f){if(c&&jG.h)b.j&&b.e&&(b.j.a.b(),b.j.a.l(),b.e.a.b(),b.e.a.l()),b.l?$Q(b.l):M3(b,f);else{if(!b.j||!b.e)if(2!=f.length)vt("Error loading the items.");else{b.o&&gN(b.o,"dl");var g=f[0].getTitle()+(" and "+f[1].getTitle());Ax(window.location.href,g,!0);a2(f);b.e=new N3(b.n.find(".gci-compare-left"),f[0],t(b.B,b));b.J(b.e);b.j=new N3(b.n.find(".gci-compare-right"),f[1],t(b.B,b));b.J(b.j)}b.l&&(g=b.l,cR(g),g.n.toggleClass("gci-layers-enabled"))}};b.a.items.length?
d(0,b.a.items):b.a.load({},d)};K3.prototype.Fa=function(b,c,d){L3(this,"layers"==b.mode);K3.r.Fa.call(this,b,c,d)};K3.prototype.Wa=function(){this.h||(kG("layer-mode-changed",this.A,this),kG("opacity-changed",this.p,this),this.n.off(".gci-compare-page"),this.n.remove(),S(this.e),this.e=null,S(this.j),this.j=null,S(this.a),this.a=null,S(this.l),this.l=null);K3.r.Wa.call(this)};
K3.prototype.B=function(){this.e&&this.e.a&&this.j&&this.j.a&&(this.o&&gN(this.o,"ac"),this.o&&this.o.report(),S(this.o),this.o=null,this.e.b=this.j,this.j.b=this.e)};var M3=function(b,c){!c||2>c.length||(b.l=xk(new VQ(b.n,c,!0),b),bR(b.l,function(){return new pf($("body").width()/2-100,$("body").height()-320)}),$Q(b.l),a2(c))};K3.prototype.A=function(){var b=jG.e;if("layers"==this.Sa().mode!=b){var c={};c.mode=b?"layers":"split";b=$.extend({},this.Sa(),c);this.Fa(b,!0,!0)}};
K3.prototype.p=function(b,c){this.l.o(0,b,c)};
var N3=function(b,c,d){U.call(this);vA(c)||vt("Please compare only images.");this.b=this.a=null;this.e=c;this.g=$(L(Q1,{F:{title:c.getTitle(),kb:HA(c),ec:IA(c),da:lB(c)}})).appendTo(b);this.g.find(".gci-compare-panel-title").addClass("gci-compare-panel-link").on("click",function(){c.Zf();return!1});if(c.Oc())this.g.find(".gci-compare-panel-author").addClass("gci-compare-panel-link").on("click",function(){ZC(c);return!1});this.g.find(".gci-compare-panel-partner").addClass("gci-compare-panel-link").on("click",function(){Y.pg(c.qa());
return!1});O3(this,d)};v(N3,wk);N3.prototype.D=function(){this.a&&this.a.g();this.a=null;this.b&&(this.b.b=null);this.g.remove();$("body").removeClass("gci-asset-viewer-microscope-zoomed");N3.r.D.call(this)};
var O3=function(b,c){window.setTimeout(t(function(){var b=this.g.find(".gci-compare-panel-microscope").get(0),e=EC(this.e)&&this.e.Se();this.a=new OP(b,{bf:e,Df:!1});this.a.j(!0);this.a.K({bottom:10,right:1},150);zi()&&this.a.k(3);EC(this.e)?PP(this.a,JC(this.e)):(b=this.e.ab(),e=xA(this.e,b),this.a.B(e,b.width,b.height),c&&c());this.a.H(t(this.h,this));this.a.o(c||q)},b),0)}; N3.prototype.h=function(b){var c=!1;this.b&&(c=this.b.a.I(),c=1.03>c.size.height&&0!=c.z);b=1.03>b.size.height&&0!=b.z;$("body").toggleClass("gci-asset-viewer-microscope-zoomed",b||c)};
var P3=function(b,c,d){n3.call(this,b,c,d,!0);this.dg=!1;this.O=new u0;this.J(this.O);this.o=null;this.defaultView="gallery"};v(P3,n3);k=P3.prototype;k.wc=null;k.cf=null;k.S=null;
k.Na=function(b,c,d){var e=c||{};e["v.refine"]="";c=e.mid;0!==c.indexOf("/")&&1<c.length&&(e.mid="/"+c.charAt(0)+"/"+c.substring(1));this.wc&&this.wc.ya()==e.mid?(this.o=null,this.v&&this.v.show(),P3.r.Na.call(this,b,e,d),this.qf.find(".gci-browse-summary-title").text(this.wc.getTitle()),Ax(window.location.href,this.wc.getTitle(),!0),this.cf&&gN(this.cf,"ac"),this.cf&&this.cf.report(),S(this.cf),this.cf=null,(c=Y.h)&&E1(c,this.wc.ya())):(S(this.cf),this.cf=new fN("entity"),this.v&&this.v.hide(),this.O.load({entity_ids:[e.mid]},
t(function(c,g){this.wc=g[0];this.cf&&gN(this.cf,"dl");this.wc?this.Na(b,e,d):ux("Entity not found.",!0)},this)))};k.Tj=function(b){P3.r.Tj.call(this,b);var c=this;this.view.bind("ui-updated",function(){c.S&&gy(c.S);c.wf&&c.wf.resize()})};
k.Gn=function(){if(this.o)return null;var b=Ot(this.wc.a,Ok)||"",c=xy(this.wc.a),d=this.wc.b(),e=GG(this.wc),f=$(L(kL,{ne:"",link:{url:FG(this.wc),title:"Text from Wikipedia"},longDesc:!!b,Ht:!!c,Ip:!(!d&&!e),cu:HG(this.wc)}));f.find(".gci-ui-itemsviewer-info-relation").append(L(DG,{gj:{url:c&&c.getUrl(),title:c&&c.T()}}));Q3(this.wc.Vb(),f.find(".gci-ui-itemsviewer-info-description"));b&&Q3(b,f.find(".gci-ui-itemsviewer-info-longdesc"));d&&Cm(d)&&(f.find(".gci-ui-itemsviewer-info-content").append($(L(lL))),
b=f.find(".gci-ui-itemsviewer-desc-map"),this.S=new dy(b.get(0),{Sf:{draggable:!X(Y),scrollwheel:!1}}),hy(this.S,{rk:d,displayName:this.wc.getTitle(),Eg:this.wc.ya().toString()}));if(e||this.S)d=$(L(mL,{Ut:!!this.S,cA:!!e})),f.find(".gci-ui-itemsviewer-info-actions").append(d),f.find(".gci-ui-itemsviewer-show-map").on("click",function(){var b=f.find(".gci-ui-itemsviewer-info-content").height();f.find(".gci-ui-itemsviewer-info-wrapper").animate({scrollTop:b},300,"easeInOutCubic")}),e&&(d=$(L(UA,{Z:{name:e.getName(),
url:YA(e),Pk:ZA(e)||YA(e),Cb:$A(e)}})),f.find(".gci-ui-itemsviewer-related-collection").append(d),d.on("click",".gci-onebox-item-summary",function(){Y.pg(e)}));return f};var Q3=function(b,c){ri(b,c);Pd(c[0],Od(c.text()))};k=P3.prototype;k.ap=function(b,c,d,e){!this.isDisposed()&&this.b&&(this.aa.items.length||this.aa.bc&&this.aa.bc.length||this.aa.Q&&this.aa.Q.length||null!==this.o?(null===this.o&&(this.o=!0),P3.r.ap.call(this,b,c,d,e)):(this.o=!1,window.setTimeout(t(this.load,this),0)))};
k.bp=function(){(this.aa.items.length||this.aa.bc&&(this.aa.bc.length||null!==this.o))&&P3.r.bp.call(this)};k.mo=function(){var b={};this.a.getValue()!=this.defaultView&&(b.view=this.a.getValue());"all"!=this.view.b&&(b.filter=this.view.b);return b};
k.$e=function(b){for(var c=P3.r.$e.call(this,b),d=["q.openId","v.refine"],e=0,f;f=d[e];e++)b?delete c[f]:delete c[f.split(".")[1]];!1!==this.o?c[(4).toString()]=this.wc.ya():c.mid=this.wc.ya();c.separate_streetview="true";c.hide_query_from_oneboxes="true";return c};k.Fa=function(b,c,d,e){var f=(4).toString();b[f]&&(delete b[f],b.mid=this.wc.ya());delete b.separate_streetview;delete b.hide_query_from_oneboxes;P3.r.Fa.call(this,b,c,d,e)}; k.mf=function(b){var c=Y.h;if(c){var d=this.wc.ya();dY(c,7,{gl:d,Qg:b})}};
var S3=function(b){A(this,b,"gci.c.gcblr",-1,R3)};v(S3,z);var R3=[3];S3.prototype.L=function(){return H(this)};S3.Ta="gci.c.gcblr";S3.prototype.vr=function(){return B(this,1)};S3.prototype.Ge=function(){return B(this,2)};S3.prototype.od=function(){return F(this,T3,3)};var T3=function(b){A(this,b,0,-1,U3)};v(T3,z);var U3=[4];T3.prototype.L=function(){return H(this)};T3.prototype.Fc=function(){return E(this,fE,1)};T3.prototype.Ji=function(){return B(this,2)}; T3.prototype.ak=function(){return F(this,Lz,4)};
var V3=function(b,c){X0.call(this,b,"artists",c,"Begin typing to filter artists");this.b=0;this.h=null;this.j="az";this.bind("click-item",function(b,c){var f={};f.mid=c.re;zx("entity",f)})};v(V3,X0);k=V3.prototype;k.Qa=null;
k.Yh=function(b){this.Qa&&(this.Qa.cancel(),this.Qa=null);var c=this.B,d=sp(Y.ta),e={offset:this.b};c&&c.length&&(e.q=c);this.ba&&(e.c=this.ba);switch(this.j){case "za":e.sort=5;break;default:e.sort=4}this.Qa=Sm(Vm(vp(d,O1.Iu,e,S3),t(function(){this.Qa=null},this)),t(function(c){this.b=c.Ge();b(c.od(),c.vr())},this),function(b){b instanceof Nm?Y.l.a([]):vt("Error while loading the list of artists.",b)})};k.Ki=function(b){return b.Fc().ya()};k.Vl=function(){return null!=this.b};
k.cg=function(b){V3.r.cg.call(this,b);1!=b.length&&(this.h&&(window.clearTimeout(this.h),this.h=null),this.h=window.setTimeout(t(function(){this.b=0;this.load()},this),300))};k.lj=function(b){this.j!=b&&(this.j=b,this.b=0,this.load())};k.Ej=function(b,c){var d=c.Fc();if(!d)return null;d=new EG(d);return new f1(d.ya()||"",g1({title:d.getTitle(),yc:c.Ji(),Cb:IG(d),Hm:!0}),c.Ji())};k.rj=function(b,c){if(c.ak().length){var d=e1(c.ak());b.a=d}};
var W3=function(){return M('<section class="gci-consumer-createdbylist-container"><header class="gci-consumer-createdbylist-header gci-consumer-longlist-header gci-unified-header"><h1 class="gci-consumer-longlist-headline gci-unified-header-title">Artists</h1><span class="gci-consumer-createdbylist-count"></span><div class="gci-consumer-createdbylist-search"></div></header><div class="gci-consumer-createdbylist-content"></div><div class="gci-consumer-createdbylist-sort gci-longlist-sort"></div></section>')};
var X3=function(b,c,d){this.a=null;$M.call(this,b,c,d)};v(X3,$M);k=X3.prototype;k.n=null;k.ra=null;
k.Na=function(b,c,d){var e=this.g;X3.r.Na.call(this,b,c,d);if(e)c&&c.projectId&&(this.ra.ba=c.projectId);else{og(b[0],W3);this.n=b[0].firstChild;this.ra=new V3($(this.n).find(".gci-consumer-createdbylist-content").get(0),$(this.n).find(".gci-consumer-createdbylist-search").get(0));this.J(this.ra);c&&c.projectId&&(this.ra.ba=c.projectId);var f=this;this.ra.bind("count-update",function(b,c){f.uf(c)});this.ra.bind("query-update",function(b,c){f.Fa({q:c},!0)});this.a=new FH($(this.n).find(".gci-consumer-createdbylist-sort"),
["az","za"]);this.J(this.a);this.a.bind("selection-changed",t(function(){this.ra.lj(this.a.getValue())},this))}this.ra.load(void 0,c)};k.Wa=function(){this.h||(S(this.a),S(this.ra),this.ra=null,Lf(this.n),this.n=null);X3.r.Wa.call(this)};k.uf=function(b){Ax(window.location.href,"Artists",!0);$(this.n).find(".gci-consumer-createdbylist-count").text(Yz(new Uz("{count, plural, =0 {No results} =1 {One result} other {# results}}"),{count:b}))};
var Y3=function(b){US.call(this,b);this.j={};this.g=null};v(Y3,US);Y3.prototype.D=function(){this.g=null;Ej(this.j);this.j=null;Y3.r.D.call(this)};Y3.prototype.A=function(b,c){this.g=null;vt("Failed to load exhibits.",c);b([])};Y3.prototype.o=function(b,c,d){this.g=null;var e=[],f=this;$.each(F(d,qE,1),function(b,c){e.push(new bH(c))});c||$.each(e,function(b,c){f.j[c.id]=c});b(e)};
var Z3=function(b){var c;c='<div class="gci-partner-channel-attribution"><span class="gci-partner-channel-attribution-featured-in">Featured in</span>';for(var d=b.Hw,e=d.length,f=0;f<e;f++){var g=d[f];c+=' <a class="gci-partner-channel-attribution-channel-name" href="'+Q(R(b.pathPrefix))+"/project/"+Q(g.id)+'" title="'+Q(g.name)+'">'+N(g.name)+"</a>"}return M(c+"</div>")},$3=function(){var b;b=""+('<img class="gci-partner-show-streetview SPRITE_icon_pegman" alt="'+Fg("Show museum view")+'" src="'+ Q(R(ju("common/pixel.gif")))+'">');return M(b)},a4=function(){return M('<div class="gci-partner-streetview-close SPRITE_close_big"></div>')};
var b4=function(b,c,d){n3.call(this,b,c,d,!0);this.dg=!1;this.defaultView="gallery"};v(b4,n3);var c4=xl.M;k=b4.prototype;k.jb=null;k.jg=null;k.S=null;k.Tg=null;k.wf=null;k.Nm=null;
k.Na=function(b,c,d){var e=$.extend({},c);e["v.refine"]="";if(!this.jb||this.jb.getId().toString()!=e[c4]&&ax(this.jb.V,$s)!=e[c4]){this.v&&this.v.hide();var f=this;o1(e[c4],function(e,g){f.jb=e;f.jg=g||[];f.Na(b,c,d)},{oz:function(){ux("Partner not found.",!0)}})}else{this.v&&this.v.show();b4.r.Na.call(this,b,e,d);var g=c||{};this.jb.getId().toString()==g[c4]&&ax(this.jb.V,$s)&&(g[c4]=ax(this.jb.V,$s),this.Fa(g,!0,!1,!0));S(this.wf);this.Nm&&this.Nm.remove();this.qf.find(".gci-browse-summary-title").text(this.jb.getName()).attr("title",
this.jb.getName());f=this;g=function(){f.qf.toggleClass("gci-partner-title-full")};600==this.qf.width()&&(this.qf.off(".gci-partner-page"),this.qf.on("mouseenter.gci-partner-page",g).on("mouseleave.gci-partner-page",g));this.v.toggleClass("gci-is-ap-partner",d4(this));iB(this.jb)&&(this.Tg&&this.Tg.remove(),this.Tg=$(L($3)),this.Tg.on("click",t(function(){var b={museumview:""};b[c4]=WA(this.jb);this.Fa(b,!1,!1,!0);e4(this,!1)},this)),this.Tg.insertAfter(this.qf),"museumview"in e&&(g={museumview:""},
e.location&&(g.location=e.location),g[c4]=WA(this.jb),this.Fa(g,!0,!0,!0),e4(this,!0)));Ax(window.location.href,this.jb.getName(),!0);g=Y.h;if(!this.isDisposed()&&g&&(this.b||this.v.is(":visible"))){var h=this.Sa().projectId;F1(g,this.jb.getId(),h)}this.jg.length&&Y.ba&&!Jt(Y)&&!ob(this.jg,function(b){return b.getId()==Y.ba})?(Y.mj(),delete e.projectId,delete e["v.refine"],this.Fa(e,!0)):this.jb.gg()}};k.Wa=function(){S(this.wf);this.qf.off(".gci-partner-page");b4.r.Wa.call(this)};
k.Tj=function(b){b4.r.Tj.call(this,b);this.view.bind("ui-updated",t(function(){this.S&&gy(this.S);this.wf&&this.wf.resize()},this))};
k.Gn=function(){var b=$(L(kL,{ne:$A(this.jb)||"",link:{url:YA(this.jb),title:ZA(this.jb,!0)},Ip:!0})),c=this,d=Y.Jb();if(d){var e=b.find(".gci-ui-itemsviewer-info-link"),f=b.find(".gci-ui-itemsviewer-info-image-link");e.on("click",function(){Tt(d,c.jb,"PartnerSiteLink")});f.on("click",function(){Tt(d,c.jb,"PartnerSiteLink")})}this.jg&&(e=hb(this.jg,function(b){return{name:b.getTitle(),id:b.getId()}}),e.splice(4),e.length&&b.find(".gci-ui-itemsviewer-item-attribution").append($(L(Z3,{Hw:e,pathPrefix:Y.g}))));
e=b.find(".gci-ui-itemsviewer-info-description");ri(this.jb.Vb(),e);Pd(e[0],Od(e.text()));e=this.jb.b();f=fB(this.jb);if(Cm(e)||f){b.find(".gci-ui-itemsviewer-info-content").append($(L(lL,{address:f})));var g=b.find(".gci-ui-itemsviewer-desc-map");this.S=new dy(g.get(0),{Sf:{draggable:!X(Y),scrollwheel:!1}});hy(this.S,{rk:e,displayName:f,Eg:this.jb.getId().toString()})}if(this.S||iB(this.jb)){f=$(L(mL,{Ut:!0,ci:!0,zA:!d4(this)}));b.find(".gci-ui-itemsviewer-info-actions").append(f);e=f.find(".gci-ui-itemsviewer-show-map");
f=f.find(".gci-ui-itemsviewer-show-sv");if(this.S)e.on("click",function(){var c=b.find(".gci-ui-itemsviewer-info-content").height();b.find(".gci-ui-itemsviewer-info-wrapper").animate({scrollTop:c},300,"easeInOutCubic")});else e.hide();if(iB(this.jb))f.on("click",function(){var b={museumview:""};b[c4]=WA(c.jb);c.Fa(b,!1,!1,!0);e4(c,!1)});else f.hide()}return b};k.Xs=q;k.Kq=function(b,c){({})[xl.M]=this.jb.getId();var d=gb(b,function(b){return b.getId()!=xl.M});uK(this.eb,d,c)};
k.mo=function(){var b={};this.a.getValue()!=this.defaultView&&(b.view=this.a.getValue());"all"!=this.view.b&&(b.filter=this.view.b);return b};k.$e=function(b){var c=b4.r.$e.call(this,b);c[xl.M]=this.jb.getId();"google-street-view"!=WA(this.jb)&&(c.separate_streetview="true");c.partner_search="";for(var d=["q.openId","v.refine","v.filter"],e=0,f;f=d[e];e++)b?delete c[f]:delete c[f.split(".")[1]];return c};
k.Fa=function(b,c,d,e){delete b.partner_search;delete b.separate_streetview;b[xl.M]=WA(this.jb);b4.r.Fa.call(this,b,c,d,e);d||this.jb.gg()};k.mf=function(b){b4.r.mf.call(this,b);var c=Y.h;if(c){var d=this.jb.getId();dY(c,15,{nf:d,Qg:b,ba:void 0})}this.jb.gg({share:b})};
var e4=function(b,c){var d=b.v.find(".gci-nav-button, .gci-browse-content, .gci-browse-controls, .gci-browse-refine"),e=b.v.find(".gci-browse-summary-title").off("click");c?(b.Tg.hide(),d.hide()):(b.Tg.fadeOut(),d.fadeOut());var f=t(function(){S(this.wf);this.Nm.remove();this.Tg.show();d.css("display","");e.removeClass("gci-partner-page-title-link").off("click");var b=this.Sa();delete b.museumview;delete b.location;this.Fa(b,!1,!1,!0);this.view.update()},b);b.v.find(".gci-browse-summary-title").off("click").addClass("gci-partner-page-title-link").on("click",
f);IE([iB(b.jb)],t(function(c){var d=c[0];this.wf=new zR(this.v,d,{},void 0,void 0,void 0,void 0,void 0,this.Sa().location);this.wf.bind("annotation-selected.gci-partner-page",function(c,e){var f={"l.id":d.getId(),museumview:"",location:e.location};b.Fa(f,!0)});this.Nm=$(L(a4)).on("click",t(function(){Rs(this.K,void 0)||f()},this)).appendTo(this.v)},b))};b4.prototype.H=function(){var b=d4(this);return NL(this.view,b)}; var d4=function(b){return b.jg&&b.jg.length?!!ob(b.jg,function(b){return"art-project"==b.getId()}):!1};
var f4=function(b,c,d,e){UJ.call(this,b,c,O1.yv,d.get(0),x1,t(this.O,this),t(this.K,this),{up:t(this.Q,this)});this.H=d;this.B=e||null;this.p=!1};v(f4,UJ);f4.prototype.O=function(b,c){var d={"s.t":c};this.B&&(d.c=this.B.getId());return c?d:null};
f4.prototype.K=function(b){var c=[];if(""==this.e)return c;var d=Jt(Y)?[]:b.od(),e=Jt(Y)?[]:b.gf(),f=b.Vc();b=F(b,qE,4);var g=4;d.length+e.length+b.length+f.length>2*g&&(g=Math.floor(g/2));for(var h=Math.min(e.length,g),l=0;l<h;l++){var m=new VA(e[l]),r=$A(m)?$A(m)+(-1!=$A(m).indexOf("=")?"-s40":"=s40"):ju("common/pixel.gif");c.push({ik:r,text:m.getName(),id:WA(m),Fh:0==l?"Collections":"",ay:!0})}for(l=h=0;l<d.length;l++)if(r=d[l])if(e=new EG(r),IG(e)&&(r=IG(e)+"=s40",c.push({ik:r,text:e.getTitle(),
id:e.ya(),Fh:0==h?"Topics":"",Xx:!0}),h++,h>=g))break;h=Math.min(b.length,g);for(l=0;l<h;l++)d=new bH(b[l]),e=d.xa.wa(),r=ju("common/pixel.gif"),e&&(e=d.pa(e))&&(r=xA(e,{width:40,height:40})),c.push({ik:r,text:d.getTitle(),id:d.getId(),Fh:0==l?"Exhibits":"",Yx:!0});h=Math.min(f.length,g);for(l=0;l<h;l++)e=new tA(f[l]),r=xA(e,{width:40,height:40}),c.push({ik:r,text:e.getTitle(),id:e.getId(),Fh:0==l?"Items":"",Ux:!0});return c};
f4.prototype.Q=function(b,c,d){if(b.data.Fh){var e=tf(d),f=e.Ka("div");zf(f,{"class":"ac-header"});e.appendChild(f,e.a.createTextNode(String(b.data.Fh)));e.appendChild(d,f)}b.data.render(d,c);b.data.select=t(function(c){c.blur();c.value="";c=b.data;if(c.Xx){var d={};d.mid=c.id;zx("entity",d)}else c.ay?(d={},d[c4]=c.id,zx("collection",d)):c.Yx?(d={},d.exhibitId=c.id,d.urlStub=c.text,zx("exhibit",d)):c.Ux&&(d={},d["l.id"]=c.id,zx("asset-viewer",d));this.H.blur();return!1},this)};
var h4=function(b){A(this,b,"gci.c.gelr",-1,g4)};v(h4,z);var g4=[3];h4.prototype.L=function(){return H(this)};h4.Ta="gci.c.gelr";h4.prototype.vr=function(){return B(this,1)};h4.prototype.Ge=function(){return B(this,2)};h4.prototype.od=function(){return F(this,fE,3)};
var i4=function(){return M('<section class="gci-locationlist-container"><div class="gci-locationlist-panel"><header class="gci-locationlist-header gci-consumer-longlist-header gci-unified-header"><h1 class="gci-consumer-longlist-headline gci-unified-header-title">Locations</h1><span class="gci-locationlist-count"></span><div class="gci-locationlist-search"></div></header><div class="gci-locationlist-content"></div></div><div class="gci-locationlist-map-panel"><div class="gci-locationlist-map-holder"></div></div><div class="gci-locationlist-sort-mode gci-longlist-sort"></div></section>')},
j4=function(b){return M('<div class="gci-locationlist-infobox"><div class="gci-locationlist-infobox-inner'+(b.Eo?" gci-locationlist-infobox-withlogo":"")+'">'+(b.Eo?'<img class="gci-locationlist-infobox-image" src="'+Q(R(b.Eo))+'"/>':"")+'<div class="gci-locationlist-infobox-details"><div class="gci-locationlist-infobox-name" title="'+Q(b.title)+'">'+N(b.title)+"</div>"+(b.Dj?'<span class="gci-locationlist-infobox-city-country">'+N(b.Dj)+"</span>":"")+'</div></div><div class="gci-locationlist-infobox-pick"><div class="gci-locationlist-infobox-pick-inner"></div></div></div>')};
var l4=function(b,c,d){i1.call(this,b,"locations",c,d,"Begin typing to filter locations");var e=this;this.bind("click-item",function(b,c){k4(e,c.re)})};v(l4,i1);k=l4.prototype;k.Qa=null;k.Yh=function(b,c){var d=c||{};this.ba||ux("Error: Locations list not available in this context.",!0);d.c=this.ba;this.Qa&&(this.Qa.cancel(),this.Qa=null);this.Qa=Sm(Vm(vp(sp(Y.ta),O1.Ju,d,h4),t(function(){this.Qa=null},this)),t(function(c){b(c.od())},this),t(function(b){b instanceof Nm&&Y.l.a([])},this))};k.Ki=function(b){return b.ya()};
k.cg=function(b){l4.r.cg.call(this,b);1!=b.length&&(this.h&&(window.clearTimeout(this.h),this.h=null),this.h=window.setTimeout(t(function(){this.load()},this),300))};k.lj=function(b){this.j!=b&&(this.j=b,this.load())};k.Ej=function(b,c){var d=new EG(c),e=d.b();return new f1(d.ya()||"",g1({title:d.getTitle(),description:e?e.pd():"",Cb:IG(d)}),0)};k.rj=function(){};var k4=function(b,c){var d={};d.mid=c;b.ba&&(d.projectId=b.ba);zx("entity",d)};
l4.prototype.ka=function(b){var c=new EG(b);b=c.b();if(!b)return null;var d=this;return{location:b,displayName:c.getTitle(),id:c.ya(),Xf:function(){k4(d,c.ya())},Ho:L(j4,{title:c.getTitle(),Eo:IG(c),Dj:b.pd()})}};l4.prototype.Gf=function(){if(this.b.length)return this.b;this.l?this.b=gb(this.a,t(function(b){b=new EG(b);return pb(this.l,b.ya())},this)):this.b=m4(this,this.a,this.B);return this.b}; var m4=function(b,c,d){var e=d.toLowerCase();return 0==e.length?c:gb(c,t(function(b){b=new EG(b);var c=new RegExp("\\b"+e.replace(/ /g,".*\\b"),"gi"),d=b.b(),l=b.getTitle()+" "+(d&&d.pd()+" ")+l;return l.match(c)},b))};
var n4=function(b,c,d){$M.call(this,b,c,d)};v(n4,$M);k=n4.prototype;k.n=null;k.ra=null;
k.Na=function(b,c,d){var e=this.g;n4.r.Na.call(this,b,c,d);if(e)c&&c.projectId&&(this.ra.ba=c.projectId);else{og(b[0],i4);this.n=b[0].firstChild;this.ra=new l4($(this.n).find(".gci-locationlist-content").get(0),$(this.n).find(".gci-locationlist-map-holder").get(0),$(this.n).find(".gci-locationlist-search").get(0));this.J(this.ra);c&&c.projectId&&(this.ra.ba=c.projectId);var f=this;this.ra.bind("count-update",function(b,c,d){f.uf(c,d)});this.ra.bind("query-update",function(b,c){f.Fa({q:c},!0);l1(f.ra)})}this.ra.load(function(){k1(f.ra,
!X(Y))},c)};k.Wa=function(){this.h||(S(this.ra),this.ra=null,Lf(this.n),this.n=null);n4.r.Wa.call(this)};k.uf=function(b,c){Ax(window.location.href,"Locations",!0);$(this.n).find(".gci-locationlist-count").text(Yz(new Uz("{currentNumber} of {totalNumber}"),{currentNumber:c,totalNumber:b}));eh(this.n,"gci-consumer-longlist-loading")};
var o4=function(){var b;b=""+('<section class="gci-partners-loading gci-consumer-partners-container"><div class="gci-consumer-partners-list-panel"><header class="gci-consumer-partners-header gci-consumer-longlist-header gci-unified-header"><h1 class="gci-consumer-longlist-headline gci-unified-header-title">Collections</h1><span class="gci-partners-list-count"></span>'+P(qv({label:O("Museum view only"),type:"simple",Lf:O("SPRITE_icon_pegman"),ac:O("gci-partners-streetview-filter")}))+'<div class="gci-partners-search"></div></header><div class="gci-consumer-partners-content"></div></div><div class="gci-consumer-partners-map-panel"><div class="gci-consumer-partners-map-holder"></div></div><div class="gci-consumer-partners-sort-mode gci-longlist-sort"></div></section>');
return M(b)},q4=function(b){return M('<div class="gci-partners-infobox"><div class="gci-partners-infobox-inner'+(b.Cb?" gci-partners-infobox-withlogo":"")+'">'+(b.Cb?'<div class="gci-partners-infobox-logo-holder"><img src="'+Q(R(b.Cb))+'"/></div>':"")+'<div class="gci-partners-infobox-details"><div class="gci-partners-infobox-name" title="'+Q(b.title)+'">'+N(b.title)+"</div>"+(b.Dj?'<span class="gci-partners-infobox-city-country">'+N(b.Dj)+"</span>":"")+'<span class="gci-partners-infobox-numbers">'+
(b.yc?P(V0(b)):"")+(b.Ue?(b.yc?", ":"")+p4({Xo:b.Ue}):"")+'</span></div></div><div class="gci-partners-infobox-pick"><div class="gci-partners-infobox-pick-inner"></div></div></div>')},r4=function(b){var c='<div class="gci-longlist-item-summary-default">'+(b.Hm||b.Cb?'<div class="gci-longlist-item-logo-holder">'+(b.Cb?'<span><img src="'+Q(R(b.Cb))+'"></span>':"")+"</div>":"")+'<div class="gci-longlist-item-name" title="'+Q(b.title)+'">'+N(b.title)+"</div>"+(b.description?'<span class="gci-longlist-description">'+
N(b.description)+"</span>":"")+(b.yc?'<span class="gci-longlist-assets-number">'+P(V0(b))+"</span>":"")+(b.Ue?'<span class="gci-longlist-artists-number">'+(b.yc?", ":"")+p4({Xo:b.Ue})+"</span>":"");if(b.bh&&0<b.bh.length){for(var c=c+'<div class="gci-longlist-channels">',d=b.bh,e=d.length,f=0;f<e;f++){var g=0!=f?", ":"",h;h=d[f];h=M('<a class="gci-longlist-item-channel-link" href="'+Q(R(b.pathPrefix))+"/project/"+Q(h.id)+'">'+N(h.title)+"</a>");c=c+(g+h)}c+="</div>"}b.Mx&&(c+='<div class="gci-longlist-item-streetview"><img class="SPRITE_icon_pegman" src="'+
Q(R(ju("common/pixel.gif")))+'" alt="'+Fg("Show museum view")+'"></div>');b.$x&&(c+='<img class="gci-longlist-item-newly-added SPRITE_ribbon_new_partner" src="'+Q(R(ju("common/pixel.gif")))+'" alt="'+Fg("Added recently")+'" title="'+Fg("New")+'">');return M(c+"</div>")},p4=function(b){var c="";b=Zz(new Uz("{NUM_1,plural,=0{No Artists}=1{1 Artist}other{{NUM_2} Artists}}"),{NUM_1:b.Xo,NUM_2:N(b.Xo)});return M(c+b)};
var t4=function(b,c,d){i1.call(this,b,"partners",c,d,"Begin typing to filter partners or countries");this.h=!1;var e=this;this.bind("click-item",function(b,c,d){d.hasClass("gci-longlist-item-channel-link")?(b=d.attr("href"),mx(Y,b)):d.hasClass("gci-longlist-item-streetview")||d.parent(".gci-longlist-item-streetview").length?s4(e,c.getData().Pk||c.re,!0):s4(e,c.getData().Pk||c.re)})};v(t4,i1);t4.prototype.Qa=null;
t4.prototype.Yh=function(b,c){var d=c||{};this.ba&&(d.c=this.ba);this.Qa&&(this.Qa.cancel(),this.Qa=null);this.Qa=Sm(Vm(vp(sp(Y.ta),O1.iq,d,s3),t(function(){this.Qa=null},this)),t(function(c){b(c.gf())},this),t(function(b){b instanceof Nm&&Y.l.a([])},this))};t4.prototype.Ki=function(b){return b.qa().getId()};var u4=function(b){return new VA(b.qa())};
t4.prototype.Ej=function(b,c){var d=u4(c),e=[];$.each(c.mh(),function(b,c){var d=new Yw(c);e.push({id:d.getId(),title:d.getTitle()})});var f=d.Ji()||0,g=$(L(r4,{title:d.getName(),description:hB(d),yc:f,Ue:jB(d),Cb:$A(d),Mx:!!iB(d),Hm:!0,$x:gB(d),bh:e,pathPrefix:Y.g}));return new f1(d.getId(),g,f,{Pk:ax(d.V,$s)})};t4.prototype.rj=function(b,c){if(c.ak().length){var d=e1(c.ak());b.a=d}};
t4.prototype.Jp=function(){this.a.sort(t(function(b,c){var d=u4(b),e=u4(c);switch(this.g){case "za":return Ga(e.getName().toLowerCase()).localeCompare(Ga(d.getName().toLowerCase()));case "newest":if(!gB(d)||!gB(e)){if(gB(d))return-1;if(gB(e))return 1}default:return Ga(d.getName().toLowerCase()).localeCompare(Ga(e.getName().toLowerCase()))}},this))};
t4.prototype.Gf=function(){if(this.b.length)return this.b;this.l?this.b=gb(this.a,t(function(b){b=u4(b);return(!this.h||iB(b))&&pb(this.l,b.getId())},this)):this.b=v4(this,this.a,this.B);return this.b};
var v4=function(b,c,d){var e=d.toLowerCase();return 0!=e.length||b.h?gb(c,t(function(b){b=u4(b);if(this.h&&!iB(b))return!1;var c=new RegExp("\\b"+e.replace(/ /g,".*\\b"),"gi"),d=dB(b).T()+" "+eB(b),d=d+" "+b.getName()+" "+d;return d.match(c)?!0:Da(dB(b).T(),e)||Da(eB(b),e)||Da(b.getName(),e)},b)):c},s4=function(b,c,d){var e={};d&&(e.museumview="");e[c4]=c;b.ba&&(e.projectId=b.ba);zx("collection",e)}; t4.prototype.ka=function(b){var c=u4(b);if(!c.b())return null;var d=this;return{location:c.b(),displayName:fB(c),id:c.getId(),Xf:function(){s4(d,ax(c.V,$s))},Ho:L(q4,{title:c.getName(),Cb:$A(c),Dj:hB(c),yc:c.Ji(),Ue:jB(c)})}};
var w4=function(b,c,d){$M.call(this,b,c,d)};v(w4,$M);k=w4.prototype;k.n=null;k.ra=null;
k.Na=function(b,c,d){var e=this.g;w4.r.Na.call(this,b,c,d);if(e)c&&c.projectId&&(this.ra.ba=c.projectId);else{og(b[0],o4);this.n=b[0].firstChild;b=$(this.n).find(".gci-consumer-partners-sort-mode");this.e=new FH(b,["newest","az","za"]);this.e.bind("selection-changed",t(function(){this.ra.lj(this.e.getValue())},this));this.a=new MA(b,c&&c.view||"list",["list","map"]);this.a.bind("selection-changed",t(function(){var b=this.Sa();b.view=this.a.getValue();this.Fa(b)},this));var f=$(this.n).find(".gci-partners-streetview-filter");
f.on("click",t(function(){f.toggleClass("collections-ui-button-active");var b=this.ra;b.h=!b.h;b.h||(b.l=null);b.b=[];Z0(b,b.a);l1(b);return!1},this));this.ra=new t4($(this.n).find(".gci-consumer-partners-content").get(0),$(this.n).find(".gci-consumer-partners-map-holder").get(0),$(this.n).find(".gci-partners-search").get(0));this.J(this.ra);c&&c.projectId&&(this.ra.ba=c.projectId);var g=this;this.ra.bind("count-update",function(b,c,d){g.uf(c,d)});this.ra.bind("query-update",function(b,c){var d=g.Sa();
d.q=c;g.Fa(d,!0)});this.ra.load(function(){g.b&&x4(g)},c)}};k.Fa=function(b,c,d){"list"==b.view&&delete b.view;w4.r.Fa.call(this,b,c,d);x4(this)};k.Wa=function(){this.h||(S(this.e),S(this.a),S(this.ra),this.ra=null,Lf(this.n),this.n=null);w4.r.Wa.call(this)};var x4=function(b){$(b.n).toggleClass("gci-consumer-partners-show-map","map"==b.a.getValue());k1(b.ra,"map"==b.a.getValue())}; w4.prototype.uf=function(b,c){Ax(window.location.href,"Collections",!0);$(this.n).find(".gci-partners-list-count").text(Yz(new Uz("{currentNumber} of {totalNumber}"),{currentNumber:c,totalNumber:b}));eh(this.n,"gci-consumer-longlist-loading")};
var y4=function(b,c,d,e,f){this.e=this.j=this.o=null;m0.call(this,b,c,d,e,f)};v(y4,m0);y4.prototype.Na=function(b,c,d){y4.r.Na.call(this,b,c,d);b=c||{};b.projectId&&(this.j=b.projectId);if(b=bx(Y))this.j=b.id;S(this.o);this.o=new fN("exhibit");z4(this,this.v)};
var z4=function(b,c){var d=Y.h;c.unbind("set-awesome");c.bind("set-awesome",t(function(){var b=this.N.getId(),f=!this.N.Nb(),g=fH(this.N);c.unbind("set-awesome");!this.isDisposed()&&d&&(this.b||this.v.is(":visible"))&&D1(d,b,f,g,this.j)},b));c.unbind("asset-views");c.bind("asset-views",t(function(b,c){if(!this.isDisposed()&&d&&(this.b||this.v.is(":visible"))){var g=this.N.getId();$.each(c,t(function(b,c){if(!wA(c)){var e=c.qa(),e=e&&e.getId();G1(d,c.getId(),e,"exhibit",null,this.j,g)}},this))}},b))}; y4.prototype.hh=function(b){y4.r.hh.call(this,b);S(this.e);this.e=AH(this.N);this.J(this.e);TG(this.e);VG(this.e,t(this.a.Xa,this))};y4.prototype.Wa=function(){y4.r.Wa.call(this);this.e&&UG(this.e,this.a.Xa())};
var A4=function(b){var c='<section class="gci-consumer-longlist-loading gci-consumer-user-galleries-container gci-curation-dashboard-loading"><header class="gci-consumer-user-galleries-header gci-consumer-longlist-header gci-unified-header"><h1 class="gci-user-galleries-list-headline gci-consumer-longlist-headline gci-unified-header-title">',c=b.oa?c+"My Exhibits":c+"My Galleries",c=c+'</h1><h2 class="gci-user-galleries-list-subheadline"></h2></header><div class="gci-consumer-user-galleries-content"></div>';
b.oa&&(b="To get started, click <i>Search</i> at the top of this page and use the "+('<img src="'+Q(R(ju("common/pixel.gif")))+'" class="SPRITE_icon_asset_save_hover">  button to save items.<br>When you\'re ready to create your exhibit, click <i>Create new Exhibit</i>.'),c+='<div class="gci-curation-dashboard-welcome"><h1>Welcome!</h1><p>'+b+"</p></div>");return M(c+"</section>")},B4=function(){var b;b=""+('<div class="gci-user-galleries-new-container"><div class="gci-user-galleries-new-from-scratch gci-user-galleries-new-option"><div class="gci-user-galleries-new-fake-boxes"><div></div><div></div><div></div><div></div></div><h3>New blank gallery</h3><div class="gci-user-galleries-new-option-desc"><span class="gci-user-galleries-new-option-desc-mobile">Add items into your gallery one-by-one</span><span class="gci-user-galleries-new-option-desc-desktop">Drag items into your gallery one-by-one</span></div>'+
P(qv({label:O("Blank gallery"),type:"simple"}))+'</div><div class="gci-user-galleries-new-from-saved gci-user-galleries-new-option"><div class="gci-user-galleries-new-assets"></div><h3 title="'+Fg("Create a new gallery from your saved items")+'">New gallery from saved items</h3><div class="gci-user-galleries-new-option-desc gci-user-galleries-new-option-desc-saved"></div>'+P(qv({label:O("Use saved items"),type:"simple"}))+"</div></div>");return M(b)},C4=function(){return M('<section class="gci-consumer-public-user-galleries-container"><header class="gci-consumer-public-user-galleries-header gci-consumer-longlist-header gci-unified-header"><h1 class="gci-consumer-longlist-headline gci-unified-header-title">User Galleries</h1><span class="gci-consumer-public-user-galleries-count"></span><div class="gci-consumer-public-user-galleries-search"></div></header><div class="gci-consumer-public-user-galleries-content"></div><div class="gci-consumer-public-user-galleries-sort gci-longlist-sort"></div></section>')},
D4=function(b){b=""+('<div class="gci-longlist-item-summary-default'+(b.Hh?" gci-longlist-item-featured":"")+'">'+(b.Hm||b.Cb?'<div class="gci-longlist-item-logo-holder">'+(b.Cb?'<span><img src="'+Q(R(b.Cb))+'"/></span>':"")+"</div>":"")+'<div class="gci-longlist-item-name" title="'+Q(b.title)+'">'+N(b.title)+"</div>"+(b.description?'<span class="gci-longlist-description">'+N(b.description)+"</span>":"")+(b.yc?'<span class="gci-longlist-assets-number">'+P(V0(b))+"</span>":"")+'<img class="gci-longlist-item-featured-icon SPRITE_ribbon_new_partner" src="'+ Q(R(ju("common/pixel.gif")))+'" alt="'+Fg("Featured gallery")+'" title="'+Fg("Featured")+'"></div>');return M(b)};
var E4=function(b,c){X0.call(this,b,"publicusergalleries",c,"Begin typing to filter user galleries");this.b=0;this.h=null;this.g=!1;this.j="default";this.bind("click-item",function(b,c){var f={urlStub:c.getData().title};f.exhibitId=c.re;zx("user-gallery",f)})};v(E4,X0);k=E4.prototype;k.Qa=null;
k.Yh=function(b){this.Qa&&(this.Qa.cancel(),this.Qa=null);var c=this.B,d=sp(Y.ta),e={"s.of":this.b};c&&c.length&&(e["s.t"]=c);this.ba&&(e.c=this.ba);switch(this.j){case "za":e["s.s"]=5;break;case "newest":e["s.s"]=7;break;case "az":e["s.s"]=4;break;default:e["s.s"]=1}this.Qa=Sm(Vm(vp(d,O1.Vu,e,iI),t(function(){this.Qa=null},this)),t(function(c){this.b=c.Ge();var d=$.map(c.Ii(),function(b){return E(b,AE,15).Fe()});b(d,c.lo())},this),function(b){b instanceof Nm?Y.l.a([]):vt("Error while loading the list of user galleries.",
b)})};k.Ki=function(b){return b.getId()};k.Vl=function(){return null!=this.b};k.cg=function(b){E4.r.cg.call(this,b);window.clearTimeout(this.h);this.h=window.setTimeout(t(function(){this.b=0;this.load()},this),300)};k.lj=function(b){this.j!=b&&(this.j=b,this.b=0,this.load())};
k.Ej=function(b,c){var d=new bH(c),e=$(L(D4,{title:d.getTitle(),yc:gH(d),Hh:d.Hh()}));if("default"==this.j){if(d.Hh()&&!this.g){var f=$("<h1>");f.text("Featured");c1(b,f)}!d.Hh()&&this.g&&(f=$("<h1>"),f.addClass("gci-longlist-all-galleries-title"),f.text("All The Galleries"),c1(b,f));this.g=d.Hh()}return new f1(d.getId(),e,gH(d),{title:d.getTitle()})};
k.rj=function(b,c){var d=c.getExtension(fc),e=d?d.Vc():[],f=[],g=null;$.each(ND(c.getPanel()),function(b,c){$.each(UD(c),function(b,c){var d=ob(e,function(b){return b.getId()==(c.pa()?c.pa().wa():null)});d&&d.Xc()!=g&&(g=d.Xc(),f.push(d));return!1})});h1(b,e1(f))};
var F4=function(b,c,d){this.a=null;$M.call(this,b,c,d)};v(F4,$M);k=F4.prototype;k.n=null;k.ra=null;
k.Na=function(b,c,d){var e=this.g;F4.r.Na.call(this,b,c,d);if(!e){og(b[0],C4);this.n=$(b[0].firstChild);this.ra=new E4(this.n.find(".gci-consumer-public-user-galleries-content")[0],this.n.find(".gci-consumer-public-user-galleries-search")[0]);this.J(this.ra);var f=this;this.ra.bind("count-update",function(b,c){f.uf(c)});this.ra.bind("query-update",function(b,c){f.Fa({q:c},!0)});c&&c.projectId&&(this.ra.ba=c.projectId);this.a=new FH($(this.n).find(".gci-consumer-public-user-galleries-sort"),["default",
"newest","az","za"]);this.J(this.a);this.a.bind("selection-changed",t(function(){this.ra.lj(this.a.getValue())},this))}this.ra.load(void 0,c)};k.Wa=function(){this.h||(S(this.a),this.ra.unbind("count-update"),S(this.ra),this.ra=null,this.n.remove(),this.n=null);F4.r.Wa.call(this)};k.uf=function(b){Ax(window.location.href,"User Galleries",!0);$(this.n).find(".gci-consumer-public-user-galleries-count").text(Yz(new Uz("{count, plural, =0 {No results} =1 {One result} other {# results}}"),{count:b}))};
var I4=function(b,c){var d=xf("gci-consumer-user-galleries-content",b);X0.call(this,d,"mygalleries");this.Ra=c;this.La=null;this.bind("click-item",t(function(b,c){var d=c.re;zx(z1(),{exhibitId:d,urlStub:c.getData().title})},this));d=$(b).find(".gci-longlist-scroll-wrapper");if(!nx()){d.prepend($(L(B4)));var e=this;$(b).find(".gci-user-galleries-new-from-scratch").on("click",function(){G4(e)});$(b).find(".gci-user-galleries-new-from-saved").on("click",function(){H4(e)})}};v(I4,X0);k=I4.prototype;
k.co=!0;k.Yh=function(b){this.Ra.list(function(c){b(c)})};k.Ki=function(b){return b.getId()};k.Ej=function(b,c){var d=new bH(c),e=new J4(d.getId(),g1({title:d.getTitle()||"Untitled Collection",yc:Rb(d.Bc)}),d.ef()?Rb(d.Bc)-1:Rb(d.Bc),{title:d.getTitle()});nx()&&(d=d.render("grid",{},{width:16/9*120,height:120}).off("click"),$(e.w()).find(".gci-longlist-item-summary-default").replaceWith(d),d.find(".collections-image-holder").trigger("preload",[]));return e};
k.rj=function(b,c){var d=c.getExtension(fc),e=d?d.Vc():[],f=[];$.each(ND(c.getPanel()),function(b,c){$.each(UD(c),function(b,c){var d=ob(e,function(b){return b.getId()==(c.pa()?c.pa().wa():null)});d&&f.push(d);return!1})});h1(b,e1(f))};
k.Qq=function(b){var c=nx()?"Delete this exhibit?":"Delete this gallery?",d=nx()?"Any changes to items in this exhibit will be lost.":"Any changes to items in this gallery will be lost.",c=$("<div>").append($("<h1>").addClass("gci-ui-popup-warning-header").text(c)).append($("<div>").addClass("gci-ui-popup-warning-text").text(d));new bs("warning",c,{jp:"Delete",jt:t(function(){CM(this.Ra,b.re,t(this.Jn,this,b))},this)})};
k.Jn=function(b){var c=b.re;tb(this.a,function(b){return b.getId()==c});I4.r.Jn.call(this,b);this.I()};k.Jp=function(){this.a.sort(t(function(b,c){return b.ph()>c.ph()?-1:1},this))};
var G4=function(b){var c=BH();zM(b.Ra,c,function(b){zx(z1(),{exhibitId:b.getId()},{exhibit:b})})},H4=function(b){if(b.La){var c=CH(b.La.uc);zM(b.Ra,c,function(b){zx(z1(),{exhibitId:b.getId()},{exhibit:b})})}},K4=function(b){b.La&&!nx()&&MM(b.La,function(){var c=b.La.uc;if(c.length){$(b.v).find(".gci-user-galleries-new-option-desc-saved").attr("title",Yz(new Uz("{count, plural, =1 {Create a new gallery with your saved item.} other {Create a new gallery with your # saved items.}}"),{count:c.length})).text(Yz(new Uz("{count, plural, =1 {Create a new gallery with your saved item.} other {Create a new gallery with your # saved items.}}"),
{count:c.length}));$(b.v).find(".gci-user-galleries-new-from-saved").show();var d=$(b.v).find(".gci-user-galleries-new-assets").empty();d&&AA(d,c,{height:65})}})};I4.prototype.te=function(b){this.La||(this.La=b,K4(this))};var J4=function(b,c,d,e){f1.call(this,b,c,d,e,!0)};v(J4,f1);J4.prototype.tp=function(){var b=nx()?120:void 0;J4.r.tp.call(this,b,!0)};
var L4=function(b,c,d,e){$M.call(this,b,c,d);this.Ra=e;this.La=this.ra=this.n=null};v(L4,$M);L4.prototype.te=function(b){this.La=b;this.ra&&this.ra.te(b)};
L4.prototype.Na=function(b,c,d){var e=this.g;L4.r.Na.call(this,b,c,d);e?this.ra.load():qx(function(){og(b[0],A4,{oa:nx()});this.n=b[0].firstChild;this.ra=new I4(this.n,this.Ra);this.ra.load(t(this.uf,this));this.ra.bind("count-update",t(this.uf,this));this.La&&this.ra.te(this.La);this.J(this.ra)},this);Ax(window.location.origin+Cs(),void 0,!0);qx(function(){WM(this.La,!0)},this)};
L4.prototype.Wa=function(){this.h||(this.ra.unbind("count-update"),S(this.ra),this.ra=null,Lf(this.n),this.n=null);L4.r.Wa.call(this);mu(Y.a,K.Jd,!1);qx(function(){WM(this.La,!1)},this)};
L4.prototype.uf=function(){if(!this.isDisposed()&&this.b){var b=xf("gci-user-galleries-list-subheadline",this.n);Ax(window.location.href,nx()?"My Exhibits":"User Galleries");eh(this.n,"gci-consumer-longlist-loading");if(nx()&&0==this.ra.H)$(this.n).addClass("gci-curation-dashboard-empty");else{$(this.n).removeClass("gci-curation-dashboard-empty");var c=nx()?"{count, plural, =0 {0 Exhibits} =1 {1 Exhibit} other {# Exhibits}}":"{count, plural, =0 {0 Galleries} =1 {1 Gallery} other {# Galleries}}";Rf(b, Yz(new Uz(c),{count:this.ra.H}))}}};
var S4=function(b){H1.call(this,b,M4);b=["fromCms",K.xu,K.Yp,K.wu,K.Zp,K.Du,K.vf,K.Ev,K.gn];dx(this,new R0({"*":b}));ex(this,b);dx(this,new Q0(1));p3=this;Bt(Xw(this,"channelPropertySpecs",[]));this.oa()?window.setTimeout(t(function(){wt()},this),500):(b=new q3(this.o),b.add(this.H),qp(this.ta,"f",b));this.Ra=this.e=null;qp(this.ta,"c",new Y3(this.o));b=new aT;qp(this.ta,"d",b);this.J(new W1);this.mj();N4(this);this.ca=this.R=this.ka=this.b=null;this.A=[];this.O=null;this.W.Ac(new H2(this.W,"asset-viewer",
!0,this.ta));this.Q=new n3(this.W,"browse",!0,this.oa()?!1:!0,this.oa()?!1:!0);this.W.Ac(this.Q);this.A.push(this.Q);var c=this;this.W.Ac(new Q2(this.W,"exhibit",!X(this),this.ta,b));this.oa()||(this.kf()||(document.oncontextmenu=function(){return!1}),this.W.Ac(new v3(this.W,"project-info",this.ta)),this.W.Ac(new K3(this.W,"compare",!1)),Jt(this)?this.W.Ac(new J3(this.W,"home",!0,this.ta)):(O4(this),this.W.Ac(new D3(this.W,"home",!1,this.ta)),this.W.Ac(new J3(this.W,"project",!0,this.ta)),this.W.Ac(new w4(this.W,
"collections",!1)),this.W.Ac(new X3(this.W,"artists",!1)),this.W.Ac(new n4(this.W,"locations",!1)),this.R=new P3(this.W,"entity",!0),this.W.Ac(this.R),this.A.push(this.R),this.ca=new b4(this.W,"collection",!0),this.W.Ac(this.ca),this.A.push(this.ca)));if(this.Hd()||this.oa()){this.Ra=new xM(this.o);qp(this.ta,"b",this.Ra);if(this.oa())P4(this);else{this.W.Ac(new F4(this.W,"user-galleries",!1));var d=new y4(this.W,"user-gallery",!X(this),this.ta,b);d.C("gci-page-exit",function(){c.Oa("user-galleries")});
this.W.Ac(d)}if(Bk(Y.j)&&this.oa()){var e=new s0(this.W,"exhibit-translation",this.ta,!1);this.W.Ac(e);e.C("gci-page-exit",function(){var b={};b.exhibitId=(e.Sa()||{}).exhibitId;c.Oa("edit",b)})}this.oa()?(d=new YW(this.W,y1(),!1,this.ta),this.W.Ac(d),d.C("gci-page-enter",function(){c.O=null;c.b&&XM(c.b,!1)})):(d=new L4(this.W,y1(),!1,this.Ra),this.W.Ac(d),this.A.push(d),d.C("gci-page-enter",function(){c.O=null;c.b&&XM(c.b,!1)}));b=new x0(this.W,z1(),!1,this.Ra,this.ta,b);this.A.push(b);b.C("gci-page-exit",
function(){c.Oa(y1())});b.C("gci-page-enter",function(b){if(b=b.target)if(b=b.Sa().exhibitId||null)c.O=b});this.W.Ac(b)}this.W.bg="browse";this.W.Zd="asset-viewer";Gs(this.W,t(this.Fb,this),t(this.Db,this));this.K=$("body").find(".gci-consumer-share-container");Ts(this.W,["project-info"],[k_(p3)],{direction:"over"});oi&&Ts(this.W,["browse"],["asset-viewer"],{direction:"scatter-out",duration:333});(b=this.o.a)&&Eo(b,new hT);ix(this,function(){Q4(this)},this);if(b=xf("gci-authorized-partners"))d=new aV,
this.J(d),d.fb(b);ox(Y)&&this.we(!0);this.oa()&&Xw(this,"showCartHelper")&&R4(this)},p3;v(S4,H1);var M4={"asset-viewer":"l.id",browse:"f.text",project:"projectId","project-info":"projectId",entity:"mid",exhibit:"exhibitId",collection:c4,collections:"",compare:"compare","my-galleries":"","user-gallery":"exhibitId","user-gallery-edit":"exhibitId",edit:"exhibitId",artists:"",locations:"","exhibit-translation":"exhibitId"};
S4.prototype.D=function(){S4.r.D.call(this);$(document).off(".gci-action-tabs");p3=null};S4.prototype.we=function(b){!b&&ox(Y)||$("body").toggleClass("gci-application-no-chrome",b)};
S4.prototype.mj=function(b,c){var d=this;if(!this.oa()){c?this.ga.a=c:b&&Gt(this.ga,b.getId());var e=this.ta.get("f");if(void 0!==c){if(c==this.ba)return;if(c){e.get(c,function(b){b?(b=new Yw(b.Ea()),d.mj(b)):ux("Project not found.",!0)});return}b=void 0}Jt(this)&&(b=bx(this)||void 0);this.ba=b?b.getId():"";this.channel=b||null;T4(this,b);U4(this,b);V4(this,b)}};
var P4=function(b){var c=$("body > header"),d=c.find(".gci-curation-header-link-search"),e=c.find(".gci-curation-header-link-exhibits");b.W.bind("collections-page-enter.gci-header-link",function(b,c){switch(c){case "browse":d.addClass("gci-curation-header-link-active");e.removeClass("gci-curation-header-link-active");break;case y1():e.addClass("gci-curation-header-link-active"),d.removeClass("gci-curation-header-link-active")}});c.find(".gci-curation-new-exhibit").remove();d.on("click",function(){b.Oa("browse");
return!1});e.on("click",function(){b.Oa(y1());return!1})},Q4=function(b){if(!b.b&&b.I){var c=[z1()],d=parseInt(Ww(b,"favoritesSize"),10)||void 0,e=new dM(b.o);b.b=new N1($(".gci-saved-tab-wrapper"),e,c,b.Ra,d);b.J(b.b);b.b.bind("gci-assets-cart-goto-exhibit",function(){if(b.O){var c={};c.exhibitId=b.O;b.Oa(z1(),c)}else b.Oa(y1())});if(b.A)for(c=0;c<b.A.length;c++)b.A[c].te(b.b);$(".gci-header-gallery-wrapper").empty().append(L(C2,{userEmail:b.I,Hd:b.Hd()}));$("#gci-header-user-galleries").off("click").on("click",
function(){b.Oa(y1());return!1})}},T4=function(b,c){var d=$("body > header"),e=d.find(".gci-header-explore");S(b.e);b.e=new dK(d.find(".gci-header-search-container"));b.e.a=null;S(b.ka);X(b)||(b.ka=new f4(sp(Y.ta),Y.l,YJ(b.e),c),b.J(b.ka),b.e.a=b.ka);if(!Jt(b)){e.off("click").on("click",function(d){if(e.hasClass("gci-header-explore-chip")){if($(d.target).hasClass("SPRITE_icon_find_clear")){b.mj();d=b.W.Ab;if("browse"==Ss(b.W)){var f=d.Sa();delete f.projectId;d.Fa(f)}else b.Oa("home");b.e.focus()}return!1}ZJ(b.e,
"");c?b.Oa("project",{projectId:c.getId()}):b.Oa("home");return!1});var d=e.find(".gci-header-explore-label"),f=c&&c.getTitle()||null;f?d.text(f):d.text((d.data("label")||"").toString())}var g=b.e.n;!ZJ(b.e)&&e.hasClass("gci-header-explore-chip")&&(e.css("width",""),e.removeClass("gci-header-explore-chip"));var h=null;b.e.C("focus",function(){window.clearTimeout(h);if(c){var d=e.outerWidth();e.fadeOut(75,function(){e.addClass("gci-header-explore-chip");e.css("width",d);e.fadeIn(75)})}var f=!X(b)&&
Ji(!1);g.data("zooming-was-enabled-on-focus",f)});b.e.C("blur",function(){ZJ(b.e)||(h=window.setTimeout(function(){b.e.blur();e.hasClass("gci-header-explore-chip")&&e.fadeOut(75,function(){e.css("width","");e.removeClass("gci-header-explore-chip");e.fadeIn(75)})},200));var c=g.data("zooming-was-enabled-on-focus");g.removeData("zooming-was-enabled-on-focus");!X(b)&&Ji(0!=c)});b.e.C("submit",function(){var d=Ga(ZJ(b.e).toString());ZJ(b.e,"");b.e.blur();"browse"==Ss(b.W)&&b.Q.b?nN(b.Q,d):(d=d?{"f.text":d}:
{},c&&!Jt(b)&&(d.projectId=c.getId()),b.Oa("browse",d))})},V4=function(b,c){if(!Jt(b)){var d=$("body > header .gci-header-wrapper");if(0!=d.length){d.find(".gci-header-link").remove();d.find(".gci-external-link-container").remove();for(var e=new Mu(Xw(b,"headerLinks")||null),e=c?QK(c):e,f=0;f<F(e,Nu,1).length;f++){var g=F(e,Nu,1)[f].Xb(),h=$(L(D2,{va:"gci-header-section-link gci-header-link",link:Qu(void 0,g),pathPrefix:b.g}));h.on("click.gci-header-link",function(c){if(!B(g,2))return mx(b,$(c.target).attr("href")),
!1});d.append(h)}}}},U4=function(b,c){if(!Jt(b)){var d="",d=c&&"art-project"==c.a.getName()?O1.Mu:O1.Nu,d=L(E2,{url:d}),e=uf(document,"footer-gplus-link");if(e){var f=e.parentNode;f&&f.replaceChild(d,e)}else Kf(d,xf("footer-last-entry"))}},O4=function(b){var c=$("body"),d=$("body > header").find(".gci-explore-list"),e=d.find(".gci-explore-container").outerHeight(!0),f=$("#home"),g=null,h=function(b){window.clearTimeout(l);window.clearTimeout(g);g=window.setTimeout(function(){f.removeClass("gci-active");
d.removeClass("gci-active").height(0).attr("aria-hidden","true");c.off("keydown.gci-explore-menu")},b?0:500)},l=null,m=function(b){window.clearTimeout(g);window.clearTimeout(l);l=window.setTimeout(function(){f.hasClass("gci-active")||(f.addClass("gci-active"),d.addClass("gci-active").attr("aria-hidden","false").height(e),d.css("left",f.offset().left),c.on("keydown.gci-explore-menu",function(b){switch(b.keyCode){case 27:case 37:case 39:h()}}))},b?0:350)};d.find("a.gci-explore-link").on("click",function(){h(!0);
if(!$(this).hasClass("external"))return mx(b,$(this).attr("href")),!1});f.on("mouseenter",function(){m();return!1}).on("click",function(){f.hasClass("gci-active")?h(!0):m(!0);return!1});d.on("mouseenter",function(){m();return!1});f.on("mouseleave",function(){h();return!1});d.on("mouseleave",function(){h();return!1})},N4=function(b){var c=$("<div>").addClass("gci-saved-tab-wrapper");b.oa()||(pu(b.a,"share","Share",$(L(wv,{locale:"en"})),"SPRITE_icon_action_tab_share",function(){b.Tp()}),qu(b.a,new f2));
if(b.Hd()||b.oa())pu(b.a,K.Jd,"Saved",c,"SPRITE_icon_action_tab_save",void 0,function(){qx(function(){mu(b.a,K.Jd)});return!1}),b.I||wu(b.a,"0");b.a.get().attr("id","gci-action-tabs");$(document).on("click.gci-action-tabs",function(){if(!(yu(b.a,K.Jd)||yu(b.a,O1.gi)||yu(b.a,K.hg)||yu(b.a,K.cn))){var c=b.a;c.g||(c.b?mu(c,c.b):(uu(c),c.trigger("closed",[c,c.b])))}})};S4.prototype.Vm=function(b,c,d,e){S4.r.Vm.call(this,b,c,d,e);yu(this.a,"share")&&this.Hn()};
var o3=function(b,c){var d=p3,e=$C(b),e=$(L(V1)).appendTo(e),f={};f["l.id"]=c.getId();var f=Ps(d.W,"asset-viewer",f),g=Bs(d.W,f,d.g+"/",window.location);e.on("click",function(){var b=c.getTitle()||"(untitled item)";d.K&&(d.Vm(d.K,g,b,q),d.Hn());mu(d.a,O1.mq,!0);return!1})};S4.prototype.pg=function(b,c){if(this.ca&&b){var d={};d[c4]=WA(b);c&&(d.projectId=c);this.Oa("collection",d)}else S4.r.pg.call(this,b,c)};
S4.prototype.Rj=function(b,c){if(this.R){var d={};d.mid=c;this.Oa("entity",d)}else S4.r.Rj.call(this,b,c)};
var R4=function(b){if(b.oa()){var c=parseInt(Xw(b,"assetsAddedToCart"),10)||0;if(ox(Y))if(0!=c)window.opener&&window.opener.postMessage("cart_updated","*"),window.parent&&window.parent.postMessage("cart_updated","*");else{window.opener&&window.opener.postMessage("cart_suggest_search","*");window.parent&&window.parent.postMessage("cart_suggest_search","*");var d=T(n,"message",function(b){"cart_suggest_search"==b.Kb.data&&(this.Oa("browse"),mk(d))},!1,b)}else 0!=c?YM():ZM(function(){this.Oa("browse")},
b)}},k_=function(b){return Jt(b)?"home":"project"};S4.prototype.Fb=function(b,c){var d=c&&c.projectId||"",e=this.p;Jt(this)||(!d&&this.ba?e.projectId=this.ba:delete e.projectId);this.p=e};S4.prototype.Db=function(b){this.mj(void 0,b&&b.params.projectId||"")};S4.prototype.pj=function(b){mu(Y.a,O1.mq,b)};
var W4=function(b){nx()?qx(function(){var b=this,d=function(){Fs(b.W,y1())},e=uf(document,"gci-tos");e?(d=q1(e,d),this.J(d)):d()},b,"To access the curation tool, please click the sign in button."):Fs(b.W,"home");window.scrollTo(0,0);b.p[K.Yp]||Hi()||Jt(b)||b.oa()||!Xw(b,"tutorialVideoId")&&!Xw(b,"userInsightSurveyUrls")||xk(new j3(sp(Y.ta),{qt:Xw(b,"tutorialVideoId"),st:Xw(b,"userInsightSurveyUrls")}),b)};Lw({a:[{id:"gallery_editor",jm:"gallery_editor"}]});Fw(function(){var b;b=$("#content");W4(new S4(b))});
new ue;var Y4=function(){W.call(this);this.a=new U(this);Tv(!0);this.b=[];X4(this)};v(Y4,W);Y4.prototype.D=function(){Y4.r.D.call(this);this.a.la();this.a=null};var X4=function(b){ib([["dr","s"],["idr","t"],["ivr","u"],["ll","v"],["l","r"],["uling","x"],["u","y"]],function(b,d){var e=new Mm;b[d[0]]=e;this.b.push(d[0]);Tm(e,function(){this.dispatchEvent(d[1])},this);return b},{},b)};
Lw({a:[{id:ep,ae:Y4}]});var Z4=function(){W.call(this);new ue};v(Z4,W);Lw({a:[{id:fp,ae:Z4}]});var $4=function(){Bj.call(this);this.a=null;this.e=new Ao;this.k=new oe};v($4,Bj);$4.prototype.b=null;$4.prototype.la=function(){$4.r.la.call(this);this.b&&(n.clearTimeout(this.b),this.b=null);this.e.clear();for(var b=this.k.gc(),c=0;c<b.length;c++)b[c].la();this.k.clear();this.a&&(this.a.la(),this.a=null)};
Lw({a:[{id:kp,ae:$4}]});var a5=function(b){Uw.call(this,this,b.get(hp).fa());this.e=b;this.g=new W};v(a5,Uw);a5.prototype.getData=function(){if(!p(this.k)){var b=Ev(this.e,mp);b?this.k=b.VC():this.k=null}return this.k};a5.prototype.a=function(b){a5.r.a.call(this);this.g.dispatchEvent(new Jj("F",b))};
Lw({a:[{id:lp,ae:a5,multiple:!0}]});var b5=function(b,c){this.defaultValue=b;this.type=c;this.value=b};b5.prototype.get=function(){return this.value};b5.prototype.U=function(){return this.type};var c5=function(b){b5.call(this,b,"b")};v(c5,b5);c5.prototype.get=function(){return this.value};I&&Jc("8");new oe;var d5=function(){this.a={};this.b=""},e5={nB:"k",RA:"ck",eB:"m",ZA:"exm",XA:"excm",OA:"am",mB:"rt",dB:"d",YA:"ed",sB:"sv",UA:"deob",PA:"cb",qB:"rs",TA:"dk",pB:"sdch",xB:"t"};d5.prototype.toString=function(){var b=[],c=t(function(c){p(this.a[c])&&b.push(c+"="+this.a[c])},this);c("sdch");c("k");c("ck");c("m");c("exm");c("am");c("rt");c("d");c("t");c("rs");c("dk");c("excm");(this.a.excm||this.a.exm)&&b.push("ed=1");c("cb");return this.b+b.join("/")};
var f5=function(b,c){return b.a[c]?b.a[c]:null},g5=function(b,c,d){d?b.a[c]=d:delete b.a[c]};d5.prototype.clone=function(){return h5(this.toString())};var h5=function(b){var c=new d5,d=Fh(b)[5];Nb(e5,function(b){var f=d.match("/"+b+"=([^/]+)");f&&g5(c,b,f[1])});c.b=b.substr(0,b.indexOf("_/js/")+5);return c},i5=function(b){b=Eh(Fh(b)[5]||null);return null!==b&&!!b.match("/_/js/")&&!!b.match("/k=")};
var j5=function(){};v(j5,In);j5.prototype.a=function(){var b=new XMLHttpRequest;if("withCredentials"in b)return b;if("undefined"!=typeof XDomainRequest)return new k5;throw Error("Eb");};j5.prototype.e=function(){return{}};
var k5=function(){this.a=new XDomainRequest;this.readyState=0;this.responseText=this.onreadystatechange=null;this.status=-1;this.statusText=this.responseXML=null;this.a.onload=t(this.zx,this);this.a.onerror=t(this.Sr,this);this.a.onprogress=t(this.Cx,this);this.a.ontimeout=t(this.Gx,this)};k=k5.prototype;k.open=function(b,c,d){if(null!=d&&!d)throw Error("Fb");this.a.open(b,c)};k.send=function(b){if(b)if("string"==typeof b)this.a.send(b);else throw Error("Gb");else this.a.send()};k.abort=function(){this.a.abort()};
k.setRequestHeader=function(){};k.zx=function(){this.status=200;this.responseText=this.a.responseText;l5(this,4)};k.Sr=function(){this.status=500;this.responseText=null;l5(this,4)};k.Gx=function(){this.Sr()};k.Cx=function(){this.status=200;l5(this,1)};var l5=function(b,c){b.readyState=c;if(b.onreadystatechange)b.onreadystatechange()};
var o5=function(b){Bj.call(this);this.B=b;this.g=Eh(Fh(b)[5]||null)||"";this.b=i5(b)?h5(b):null;this.O=m5(this.g,"ver");this.H=m5(this.g,"am");this.h=this.j=null;this.k=new U(this);this.tb=[];this.o=[];this.a=[];this.Q=new n5;this.e=[];this.I=!1;b=t(this.p,this);Uv.version=b};v(o5,Bj);var p5=function(b,c){b.a.length&&Wm(c,b.a[b.a.length-1]);b.a.push(c);Tm(c,function(){sb(this.a,c)},b)};
o5.prototype.K=function(b,c,d,e,f,g){c=Fb(b,t(function(b){return pb(this.o,b)},this));var h=c[!1]||[];if(0<(c[!0]||[]).length){this.o.length=0;if(this.a.length){var l=this.a[this.a.length-1];Tm(this.l,function(b){var c=new Mm;Tm(l,t(c.callback,c));Tm(c,function(){return b});return c},this)}var m=new Mm;this.a.push(m);Sm(this.l,function(b){window.setTimeout(t(function(){q5(b.code,b.url,e)&&0<h.length&&r5(this,h,d,e,f,g);sb(this.a,m);m.callback();this.l=null},this),0)},function(b){window.setTimeout(t(function(){e(b);
this.l=null},this),0)},this)}else r5(this,b,d,e,f,g)};
var r5=function(b,c,d,e,f,g){for(var h=[],l=new Mm,m=s5(b,c,!!g),m=Math.ceil(m.length/2E3),r=0,u=0;u<m;u++){var w=(u+1)*Math.floor(c.length/m)+1;if(r=t5(b,c.slice(r,w),g))h.push(r),Wm(l,r.deferred);r=w}var C=new Mm;p5(b,C);Tm(C,t(b.A,b,c,h,d,e,f));Um(C,function(){var b=new u5(c);b.a=!0;b.errorCode=-1;this.A(0,[b],0,e,f)},b);Tm(l,function(){C.callback()});l.callback()},t5=function(b,c,d){var e=s5(b,c,!!d);b.tb.push(e);if(b.I)b=document.createElement("script"),b.src=e,b.type="text/javascript",document.body.appendChild(b);
else{var f=new u5(c),g=new Nn(0<b.e.length?new j5:void 0);b.k.C(g,"success",t(f.j,f,g));b.k.C(g,"error",t(f.h,f,g));b.k.C(g,"timeout",t(f.g,f));tk(b.k,g,"ready",g.la,!1,g);g.Gk(3E4);v5(b.Q,function(){g.send(e);return f.deferred});return f}return null};
o5.prototype.A=function(b,c,d,e,f){b=!1;var g;d=!1;for(var h=0;h<c.length;h++){var l=c[h];if(!g&&l.a){b=!0;g=l.errorCode;break}else l.b&&(d=!0)}var m=vb(this.a);(b||d)&&-1!=g&&(this.a=[]);if(b)e&&e(g);else if(d)f&&f();else for(h=0;h<c.length;h++)l=c[h],q5(l.k,l.e)||e(8001);(b||d)&&-1!=g&&y(m,function(b){b.cancel()})};o5.prototype.D=function(){this.k.la();delete Uv.version;o5.r.D.call(this)};o5.prototype.p=function(){return this.b?f5(this.b,"k"):this.O};
var s5=function(b,c,d){var e=Eh(Fh(b.B)[3]||null);if(0<b.e.length&&!pb(b.e,e)&&window.location.hostname!=e)throw Error("Jb`"+e);b.b?(e=b.b.clone(),delete e.a.m,delete e.a.exm,delete e.a.ed,delete e.a.dk,g5(e,"m",c.join(",")),b.j&&(g5(e,"ck",b.j),b.h&&g5(e,"rs",b.h)),g5(e,"rt","j"),g5(e,"d",null),b=e.toString()):(e=(0<b.e.length?b.B:b.g).match("(.*/_/js/[^/]+/)")[1],c=[c.join(","),"rt=j","ver="+b.p(),"am="+(b.b?f5(b.b,"am"):b.H)],(b=b.b?f5(b.b,"rs"):m5(b.g,"rs"))&&c.push("rs="+b),b=e+c.join("/"));
d&&(b+="?zx="+Xa());return b},q5=function(b,c,d){if(Ba(b,"Google Inc.\n"))try{va(b+"\r\n//@ sourceURL="+c)}catch(e){return d&&d(8001),!1}else return d&&d(8001),!1;return!0},w5=function(b){var c=Eh(Fh(b)[5]||null)||"";return i5(c)||-1!=c.indexOf("/_/js/")&&m5(c,"ver")&&m5(c,"am")?b:null},u5=function(b){this.l=b;this.deferred=new Mm;this.e=this.k="";this.a=!1;this.errorCode=0;this.b=!1};u5.prototype.j=function(b){this.k=$n(b);this.e=String(b.j);this.deferred.callback()};
u5.prototype.h=function(b){this.a=!0;this.errorCode=b.getStatus();this.deferred.callback()};u5.prototype.g=function(){this.b=!0;this.deferred.callback()};var n5=function(){this.a=0;this.b=[]},v5=function(b,c){b.b.push(c);x5(b)},x5=function(b){for(;5>b.a&&b.b.length;)y5(b,b.b.shift())},y5=function(b,c){b.a++;Tm(c(),function(){this.a--;x5(this)},b)},m5=function(b,c){var d=b.match("/"+c+"=([^/]+)");return d?d[1]:null};
var z5=new c5(!1),A5=document.location.href;
Lw({KC:{dml:z5},jf:function(b){var c=z5.get(),d="",e="";window&&window._F_cssRowKey&&(d=window._F_cssRowKey,window._F_combinedSignature&&(e=window._F_combinedSignature));if(d&&"function"!==typeof window._F_installCss)throw Error("Hb");var f,g=n._F_jsUrl;g&&(f=w5(g));!f&&(g=document.getElementById("base-js"))&&(f=g.src?g.src:g.getAttribute("href"),f=w5(f));f||(f=w5(A5));f||(f=document.getElementsByTagName("script"),f=w5(f[f.length-1].src));if(!f)throw Error("Ib");f=new o5(f);d&&(f.j=d);e&&(f.h=e); f.I=c;c=rw.pb();c.a=f;c.A=!0;c=rw.pb();c.K=b;sw(c);b.B=c}});
Lw({a:[{id:ip,ae:function(){this.a=new vn}},{id:jp,ae:pp}],jf:function(b){sp(b).jf(b)}});
var _ModuleManager_initialize=t(rw.prototype.ga,rw.pb());
_ModuleManager_initialize('consumer/_fdm_/gallery_editor',[]);
}catch(e){_DumpException(e)}
// Google Inc.
