Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ function b(a,f,g){a._preloadFailed||a.complete&&a.naturalWidth===void 0?g():a.complete&&a.naturalWidth?f():(a.addEventListener("load",function(){f()},!1),a.addEventListener("error",function(){g()},!1))} var c=function(a,f,g){function k(){d.style.display="none"}var h=document.body.getElementsByClassName(a)[0];if(h&&(a=h.getElementsByClassName(g)[0])){var d=a;d._preloadStartTime=Date.now();d.onerror=function(){this._preloadFailed=!0};b(d,function(){d.naturalWidth<800?k():(d._preloadEndTime=Date.now(),h.getElementsByClassName(f)[0].style.display="none")},k)}},e=["_initStaticViewer"],l=this||self;e[0]in l||typeof l.execScript=="undefined"||l.execScript("var "+e[0]); for(var m;e.length&&(m=e.shift());)e.length||c===void 0?l=l[m]&&l[m]!==Object.prototype[m]?l[m]:l[m]={}:l[m]=c;