var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.createTemplateTagFirstArg=function(a){return a.raw=a};$jscomp.createTemplateTagFirstArgWithRaw=function(a,b){a.raw=b;return a};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,f){if(a==Array.prototype||a==Object.prototype)return a;a[b]=f.value;return a};$jscomp.getGlobal=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var f=a[b];if(f&&f.Math==Math)return f}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);
$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(a,b){var f=$jscomp.propertyToPolyfillSymbol[b];if(null==f)return a[b];f=a[f];return void 0!==f?f:a[b]};
$jscomp.polyfill=function(a,b,f,l){b&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(a,b,f,l):$jscomp.polyfillUnisolated(a,b,f,l))};$jscomp.polyfillUnisolated=function(a,b,f,l){f=$jscomp.global;a=a.split(".");for(l=0;l<a.length-1;l++){var e=a[l];if(!(e in f))return;f=f[e]}a=a[a.length-1];l=f[a];b=b(l);b!=l&&null!=b&&$jscomp.defineProperty(f,a,{configurable:!0,writable:!0,value:b})};
$jscomp.polyfillIsolated=function(a,b,f,l){var e=a.split(".");a=1===e.length;l=e[0];l=!a&&l in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var h=0;h<e.length-1;h++){var c=e[h];if(!(c in l))return;l=l[c]}e=e[e.length-1];f=$jscomp.IS_SYMBOL_NATIVE&&"es6"===f?l[e]:null;b=b(f);null!=b&&(a?$jscomp.defineProperty($jscomp.polyfills,e,{configurable:!0,writable:!0,value:b}):b!==f&&(void 0===$jscomp.propertyToPolyfillSymbol[e]&&(f=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[e]=$jscomp.IS_SYMBOL_NATIVE?
$jscomp.global.Symbol(e):$jscomp.POLYFILL_PREFIX+f+"$"+e),$jscomp.defineProperty(l,$jscomp.propertyToPolyfillSymbol[e],{configurable:!0,writable:!0,value:b})))};$jscomp.underscoreProtoCanBeSet=function(){var a={a:!0},b={};try{return b.__proto__=a,b.a}catch(f){}return!1};
$jscomp.setPrototypeOf=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null;$jscomp.arrayIteratorImpl=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};$jscomp.arrayIterator=function(a){return{next:$jscomp.arrayIteratorImpl(a)}};
$jscomp.makeIterator=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):$jscomp.arrayIterator(a)};$jscomp.generator={};$jscomp.generator.ensureIteratorResultIsObject_=function(a){if(!(a instanceof Object))throw new TypeError("Iterator result "+a+" is not an object");};
$jscomp.generator.Context=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null};$jscomp.generator.Context.prototype.start_=function(){if(this.isRunning_)throw new TypeError("Generator is already running");this.isRunning_=!0};$jscomp.generator.Context.prototype.stop_=function(){this.isRunning_=!1};
$jscomp.generator.Context.prototype.jumpToErrorHandler_=function(){this.nextAddress=this.catchAddress_||this.finallyAddress_};$jscomp.generator.Context.prototype.next_=function(a){this.yieldResult=a};$jscomp.generator.Context.prototype.throw_=function(a){this.abruptCompletion_={exception:a,isException:!0};this.jumpToErrorHandler_()};$jscomp.generator.Context.prototype.return=function(a){this.abruptCompletion_={return:a};this.nextAddress=this.finallyAddress_};
$jscomp.generator.Context.prototype.jumpThroughFinallyBlocks=function(a){this.abruptCompletion_={jumpTo:a};this.nextAddress=this.finallyAddress_};$jscomp.generator.Context.prototype.yield=function(a,b){this.nextAddress=b;return{value:a}};$jscomp.generator.Context.prototype.yieldAll=function(a,b){a=$jscomp.makeIterator(a);var f=a.next();$jscomp.generator.ensureIteratorResultIsObject_(f);if(f.done)this.yieldResult=f.value,this.nextAddress=b;else return this.yieldAllIterator_=a,this.yield(f.value,b)};
$jscomp.generator.Context.prototype.jumpTo=function(a){this.nextAddress=a};$jscomp.generator.Context.prototype.jumpToEnd=function(){this.nextAddress=0};$jscomp.generator.Context.prototype.setCatchFinallyBlocks=function(a,b){this.catchAddress_=a;void 0!=b&&(this.finallyAddress_=b)};$jscomp.generator.Context.prototype.setFinallyBlock=function(a){this.catchAddress_=0;this.finallyAddress_=a||0};$jscomp.generator.Context.prototype.leaveTryBlock=function(a,b){this.nextAddress=a;this.catchAddress_=b||0};
$jscomp.generator.Context.prototype.enterCatchBlock=function(a){this.catchAddress_=a||0;a=this.abruptCompletion_.exception;this.abruptCompletion_=null;return a};$jscomp.generator.Context.prototype.enterFinallyBlock=function(a,b,f){f?this.finallyContexts_[f]=this.abruptCompletion_:this.finallyContexts_=[this.abruptCompletion_];this.catchAddress_=a||0;this.finallyAddress_=b||0};
$jscomp.generator.Context.prototype.leaveFinallyBlock=function(a,b){b=this.finallyContexts_.splice(b||0)[0];if(b=this.abruptCompletion_=this.abruptCompletion_||b){if(b.isException)return this.jumpToErrorHandler_();void 0!=b.jumpTo&&this.finallyAddress_<b.jumpTo?(this.nextAddress=b.jumpTo,this.abruptCompletion_=null):this.nextAddress=this.finallyAddress_}else this.nextAddress=a};$jscomp.generator.Context.prototype.forIn=function(a){return new $jscomp.generator.Context.PropertyIterator(a)};
$jscomp.generator.Context.PropertyIterator=function(a){this.object_=a;this.properties_=[];for(var b in a)this.properties_.push(b);this.properties_.reverse()};$jscomp.generator.Context.PropertyIterator.prototype.getNext=function(){for(;0<this.properties_.length;){var a=this.properties_.pop();if(a in this.object_)return a}return null};$jscomp.generator.Engine_=function(a){this.context_=new $jscomp.generator.Context;this.program_=a};
$jscomp.generator.Engine_.prototype.next_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_.next,a,this.context_.next_);this.context_.next_(a);return this.nextStep_()};
$jscomp.generator.Engine_.prototype.return_=function(a){this.context_.start_();var b=this.context_.yieldAllIterator_;if(b)return this.yieldAllStep_("return"in b?b["return"]:function(f){return{value:f,done:!0}},a,this.context_.return);this.context_.return(a);return this.nextStep_()};
$jscomp.generator.Engine_.prototype.throw_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_["throw"],a,this.context_.next_);this.context_.throw_(a);return this.nextStep_()};
$jscomp.generator.Engine_.prototype.yieldAllStep_=function(a,b,f){try{var l=a.call(this.context_.yieldAllIterator_,b);$jscomp.generator.ensureIteratorResultIsObject_(l);if(!l.done)return this.context_.stop_(),l;var e=l.value}catch(h){return this.context_.yieldAllIterator_=null,this.context_.throw_(h),this.nextStep_()}this.context_.yieldAllIterator_=null;f.call(this.context_,e);return this.nextStep_()};
$jscomp.generator.Engine_.prototype.nextStep_=function(){for(;this.context_.nextAddress;)try{var a=this.program_(this.context_);if(a)return this.context_.stop_(),{value:a.value,done:!1}}catch(b){this.context_.yieldResult=void 0,this.context_.throw_(b)}this.context_.stop_();if(this.context_.abruptCompletion_){a=this.context_.abruptCompletion_;this.context_.abruptCompletion_=null;if(a.isException)throw a.exception;return{value:a.return,done:!0}}return{value:void 0,done:!0}};
$jscomp.generator.Generator_=function(a){this.next=function(b){return a.next_(b)};this.throw=function(b){return a.throw_(b)};this.return=function(b){return a.return_(b)};this[Symbol.iterator]=function(){return this}};$jscomp.generator.createGenerator=function(a,b){b=new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(b));$jscomp.setPrototypeOf&&a.prototype&&$jscomp.setPrototypeOf(b,a.prototype);return b};
$jscomp.asyncExecutePromiseGenerator=function(a){function b(l){return a.next(l)}function f(l){return a.throw(l)}return new Promise(function(l,e){function h(c){c.done?l(c.value):Promise.resolve(c.value).then(b,f).then(h,e)}h(a.next())})};$jscomp.asyncExecutePromiseGeneratorFunction=function(a){return $jscomp.asyncExecutePromiseGenerator(a())};$jscomp.asyncExecutePromiseGeneratorProgram=function(a){return $jscomp.asyncExecutePromiseGenerator(new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(a)))};
$jscomp.initSymbol=function(){};$jscomp.polyfill("Symbol",function(a){if(a)return a;var b=function(h,c){this.$jscomp$symbol$id_=h;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:c})};b.prototype.toString=function(){return this.$jscomp$symbol$id_};var f="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",l=0,e=function(h){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new b(f+(h||"")+"_"+l++,h)};return e},"es6","es3");
$jscomp.polyfill("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),f=0;f<b.length;f++){var l=$jscomp.global[b[f]];"function"===typeof l&&"function"!=typeof l.prototype[a]&&$jscomp.defineProperty(l.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return a},"es6",
"es3");$jscomp.iteratorPrototype=function(a){a={next:a};a[Symbol.iterator]=function(){return this};return a};
$jscomp.polyfill("Promise",function(a){function b(){this.batch_=null}function f(c){return c instanceof e?c:new e(function(g,d){g(c)})}if(a&&(!($jscomp.FORCE_POLYFILL_PROMISE||$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION&&"undefined"===typeof $jscomp.global.PromiseRejectionEvent)||!$jscomp.global.Promise||-1===$jscomp.global.Promise.toString().indexOf("[native code]")))return a;b.prototype.asyncExecute=function(c){if(null==this.batch_){this.batch_=[];var g=this;this.asyncExecuteFunction(function(){g.executeBatch_()})}this.batch_.push(c)};
var l=$jscomp.global.setTimeout;b.prototype.asyncExecuteFunction=function(c){l(c,0)};b.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var c=this.batch_;this.batch_=[];for(var g=0;g<c.length;++g){var d=c[g];c[g]=null;try{d()}catch(k){this.asyncThrow_(k)}}}this.batch_=null};b.prototype.asyncThrow_=function(c){this.asyncExecuteFunction(function(){throw c;})};var e=function(c){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var g=this.createResolveAndReject_();
try{c(g.resolve,g.reject)}catch(d){g.reject(d)}};e.prototype.createResolveAndReject_=function(){function c(k){return function(m){d||(d=!0,k.call(g,m))}}var g=this,d=!1;return{resolve:c(this.resolveTo_),reject:c(this.reject_)}};e.prototype.resolveTo_=function(c){if(c===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(c instanceof e)this.settleSameAsPromise_(c);else{a:switch(typeof c){case "object":var g=null!=c;break a;case "function":g=!0;break a;default:g=!1}g?this.resolveToNonPromiseObj_(c):
this.fulfill_(c)}};e.prototype.resolveToNonPromiseObj_=function(c){var g=void 0;try{g=c.then}catch(d){this.reject_(d);return}"function"==typeof g?this.settleSameAsThenable_(g,c):this.fulfill_(c)};e.prototype.reject_=function(c){this.settle_(2,c)};e.prototype.fulfill_=function(c){this.settle_(1,c)};e.prototype.settle_=function(c,g){if(0!=this.state_)throw Error("Cannot settle("+c+", "+g+"): Promise already settled in state"+this.state_);this.state_=c;this.result_=g;2===this.state_&&this.scheduleUnhandledRejectionCheck_();
this.executeOnSettledCallbacks_()};e.prototype.scheduleUnhandledRejectionCheck_=function(){var c=this;l(function(){if(c.notifyUnhandledRejection_()){var g=$jscomp.global.console;"undefined"!==typeof g&&g.error(c.result_)}},1)};e.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var c=$jscomp.global.CustomEvent,g=$jscomp.global.Event,d=$jscomp.global.dispatchEvent;if("undefined"===typeof d)return!0;"function"===typeof c?c=new c("unhandledrejection",{cancelable:!0}):
"function"===typeof g?c=new g("unhandledrejection",{cancelable:!0}):(c=$jscomp.global.document.createEvent("CustomEvent"),c.initCustomEvent("unhandledrejection",!1,!0,c));c.promise=this;c.reason=this.result_;return d(c)};e.prototype.executeOnSettledCallbacks_=function(){if(null!=this.onSettledCallbacks_){for(var c=0;c<this.onSettledCallbacks_.length;++c)h.asyncExecute(this.onSettledCallbacks_[c]);this.onSettledCallbacks_=null}};var h=new b;e.prototype.settleSameAsPromise_=function(c){var g=this.createResolveAndReject_();
c.callWhenSettled_(g.resolve,g.reject)};e.prototype.settleSameAsThenable_=function(c,g){var d=this.createResolveAndReject_();try{c.call(g,d.resolve,d.reject)}catch(k){d.reject(k)}};e.prototype.then=function(c,g){function d(p,q){return"function"==typeof p?function(r){try{k(p(r))}catch(t){m(t)}}:q}var k,m,n=new e(function(p,q){k=p;m=q});this.callWhenSettled_(d(c,k),d(g,m));return n};e.prototype.catch=function(c){return this.then(void 0,c)};e.prototype.callWhenSettled_=function(c,g){function d(){switch(k.state_){case 1:c(k.result_);
break;case 2:g(k.result_);break;default:throw Error("Unexpected state: "+k.state_);}}var k=this;null==this.onSettledCallbacks_?h.asyncExecute(d):this.onSettledCallbacks_.push(d);this.isRejectionHandled_=!0};e.resolve=f;e.reject=function(c){return new e(function(g,d){d(c)})};e.race=function(c){return new e(function(g,d){for(var k=$jscomp.makeIterator(c),m=k.next();!m.done;m=k.next())f(m.value).callWhenSettled_(g,d)})};e.all=function(c){var g=$jscomp.makeIterator(c),d=g.next();return d.done?f([]):new e(function(k,
m){function n(r){return function(t){p[r]=t;q--;0==q&&k(p)}}var p=[],q=0;do p.push(void 0),q++,f(d.value).callWhenSettled_(n(p.length-1),m),d=g.next();while(!d.done)})};return e},"es6","es3");$jscomp.checkEs6ConformanceViaProxy=function(){try{var a={},b=Object.create(new $jscomp.global.Proxy(a,{get:function(f,l,e){return f==a&&"q"==l&&e==b}}));return!0===b.q}catch(f){return!1}};$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS=!1;$jscomp.ES6_CONFORMANCE=$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS&&$jscomp.checkEs6ConformanceViaProxy();
$jscomp.owns=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
$jscomp.polyfill("WeakMap",function(a){function b(){if(!a||!Object.seal)return!1;try{var k=Object.seal({}),m=Object.seal({}),n=new a([[k,2],[m,3]]);if(2!=n.get(k)||3!=n.get(m))return!1;n.delete(k);n.set(m,4);return!n.has(k)&&4==n.get(m)}catch(p){return!1}}function f(){}function l(k){var m=typeof k;return"object"===m&&null!==k||"function"===m}function e(k){if(!$jscomp.owns(k,c)){var m=new f;$jscomp.defineProperty(k,c,{value:m})}}function h(k){if(!$jscomp.ISOLATE_POLYFILLS){var m=Object[k];m&&(Object[k]=
function(n){if(n instanceof f)return n;Object.isExtensible(n)&&e(n);return m(n)})}}if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(a&&$jscomp.ES6_CONFORMANCE)return a}else if(b())return a;var c="$jscomp_hidden_"+Math.random();h("freeze");h("preventExtensions");h("seal");var g=0,d=function(k){this.id_=(g+=Math.random()+1).toString();if(k){k=$jscomp.makeIterator(k);for(var m;!(m=k.next()).done;)m=m.value,this.set(m[0],m[1])}};d.prototype.set=function(k,m){if(!l(k))throw Error("Invalid WeakMap key");
e(k);if(!$jscomp.owns(k,c))throw Error("WeakMap key fail: "+k);k[c][this.id_]=m;return this};d.prototype.get=function(k){return l(k)&&$jscomp.owns(k,c)?k[c][this.id_]:void 0};d.prototype.has=function(k){return l(k)&&$jscomp.owns(k,c)&&$jscomp.owns(k[c],this.id_)};d.prototype.delete=function(k){return l(k)&&$jscomp.owns(k,c)&&$jscomp.owns(k[c],this.id_)?delete k[c][this.id_]:!1};return d},"es6","es3");$jscomp.MapEntry=function(){};
$jscomp.polyfill("Map",function(a){function b(){if($jscomp.ASSUME_NO_NATIVE_MAP||!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var d=Object.seal({x:4}),k=new a($jscomp.makeIterator([[d,"s"]]));if("s"!=k.get(d)||1!=k.size||k.get({x:4})||k.set({x:4},"t")!=k||2!=k.size)return!1;var m=k.entries(),n=m.next();if(n.done||n.value[0]!=d||"s"!=n.value[1])return!1;n=m.next();return n.done||4!=n.value[0].x||"t"!=n.value[1]||!m.next().done?!1:!0}catch(p){return!1}}
if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(a&&$jscomp.ES6_CONFORMANCE)return a}else if(b())return a;var f=new WeakMap,l=function(d){this.data_={};this.head_=c();this.size=0;if(d){d=$jscomp.makeIterator(d);for(var k;!(k=d.next()).done;)k=k.value,this.set(k[0],k[1])}};l.prototype.set=function(d,k){d=0===d?0:d;var m=e(this,d);m.list||(m.list=this.data_[m.id]=[]);m.entry?m.entry.value=k:(m.entry={next:this.head_,previous:this.head_.previous,head:this.head_,key:d,value:k},m.list.push(m.entry),
this.head_.previous.next=m.entry,this.head_.previous=m.entry,this.size++);return this};l.prototype.delete=function(d){d=e(this,d);return d.entry&&d.list?(d.list.splice(d.index,1),d.list.length||delete this.data_[d.id],d.entry.previous.next=d.entry.next,d.entry.next.previous=d.entry.previous,d.entry.head=null,this.size--,!0):!1};l.prototype.clear=function(){this.data_={};this.head_=this.head_.previous=c();this.size=0};l.prototype.has=function(d){return!!e(this,d).entry};l.prototype.get=function(d){return(d=
e(this,d).entry)&&d.value};l.prototype.entries=function(){return h(this,function(d){return[d.key,d.value]})};l.prototype.keys=function(){return h(this,function(d){return d.key})};l.prototype.values=function(){return h(this,function(d){return d.value})};l.prototype.forEach=function(d,k){for(var m=this.entries(),n;!(n=m.next()).done;)n=n.value,d.call(k,n[1],n[0],this)};l.prototype[Symbol.iterator]=l.prototype.entries;var e=function(d,k){var m=k&&typeof k;"object"==m||"function"==m?f.has(k)?m=f.get(k):
(m=""+ ++g,f.set(k,m)):m="p_"+k;var n=d.data_[m];if(n&&$jscomp.owns(d.data_,m))for(d=0;d<n.length;d++){var p=n[d];if(k!==k&&p.key!==p.key||k===p.key)return{id:m,list:n,index:d,entry:p}}return{id:m,list:n,index:-1,entry:void 0}},h=function(d,k){var m=d.head_;return $jscomp.iteratorPrototype(function(){if(m){for(;m.head!=d.head_;)m=m.previous;for(;m.next!=m.head;)return m=m.next,{done:!1,value:k(m)};m=null}return{done:!0,value:void 0}})},c=function(){var d={};return d.previous=d.next=d.head=d},g=0;
return l},"es6","es3");$jscomp.assign=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.assign?Object.assign:function(a,b){for(var f=1;f<arguments.length;f++){var l=arguments[f];if(l)for(var e in l)$jscomp.owns(l,e)&&(a[e]=l[e])}return a};$jscomp.polyfill("Object.assign",function(a){return a||$jscomp.assign},"es6","es3");
$jscomp.polyfill("Promise.prototype.finally",function(a){return a?a:function(b){return this.then(function(f){return Promise.resolve(b()).then(function(){return f})},function(f){return Promise.resolve(b()).then(function(){throw f;})})}},"es9","es3");
(function(){try{var a=document.createStyleSheet();a.cssText="@keyframes loadingAnimate{from {-webkit-transform: rotateY(0deg) scale(0.8);-o-transform: rotateY(0deg) scale(0.8);-ms-transform: rotateY(0deg) scale(0.8);-moz-transform: rotateY(0deg) scale(0.8);transform: rotateY(0deg) scale(0.8);}to {-webkit-transform: rotateY(-180deg) scale(0.8);-o-transform: rotateY(-180deg) scale(0.8);-ms-transform: rotateY(-180deg) scale(0.8);-moz-transform: rotateY(-180deg) scale(0.8);transform: rotateY(-180deg) scale(0.8);}}@-webkit-keyframes loadingAnimate{from {-webkit-transform: rotateY(0deg) scale(0.8);-o-transform: rotateY(0deg) scale(0.8);-ms-transform: rotateY(0deg) scale(0.8);-moz-transform: rotateY(0deg) scale(0.8);transform: rotateY(0deg) scale(0.8);}to {-webkit-transform: rotateY(-180deg) scale(0.8);-o-transform: rotateY(-180deg) scale(0.8);-ms-transform: rotateY(-180deg) scale(0.8);-moz-transform: rotateY(-180deg) scale(0.8);transform: rotateY(-180deg) scale(0.8);}}.loadingRun{-webkit-animation : loadingAnimate 1.2s infinite;animation : loadingAnimate 1.2s infinite;}.loader,.loader:after {border-radius: 50%;width: 60px;height: 60px;}.loader {margin: 60px auto;font-size: 10px;position: relative;text-indent: -9999em;border-top: 1.1em solid rgba(255, 255, 255, 0.2);border-right: 1.1em solid rgba(255, 255, 255, 0.2);border-bottom: 1.1em solid rgba(255, 255, 255, 0.2);border-left: 1.1em solid #ffffff;-webkit-transform: translateZ(0);-ms-transform: translateZ(0);transform: translateZ(0);-webkit-animation: load8 1.1s infinite linear;animation: load8 1.1s infinite linear;}@-webkit-keyframes load8 {0% {-webkit-transform: rotate(0deg);transform: rotate(0deg);}100% {-webkit-transform: rotate(360deg);transform: rotate(360deg);}}@keyframes load8 {0% {-webkit-transform: rotate(0deg);transform: rotate(0deg);}100% {-webkit-transform: rotate(360deg);transform: rotate(360deg);}}"}catch(b){a=document.createElement("style"),
a.type="text/css",a.textContent="@keyframes loadingAnimate{from {-webkit-transform: rotateY(0deg) scale(0.8);-o-transform: rotateY(0deg) scale(0.8);-ms-transform: rotateY(0deg) scale(0.8);-moz-transform: rotateY(0deg) scale(0.8);transform: rotateY(0deg) scale(0.8);}to {-webkit-transform: rotateY(-180deg) scale(0.8);-o-transform: rotateY(-180deg) scale(0.8);-ms-transform: rotateY(-180deg) scale(0.8);-moz-transform: rotateY(-180deg) scale(0.8);transform: rotateY(-180deg) scale(0.8);}}@-webkit-keyframes loadingAnimate{from {-webkit-transform: rotateY(0deg) scale(0.8);-o-transform: rotateY(0deg) scale(0.8);-ms-transform: rotateY(0deg) scale(0.8);-moz-transform: rotateY(0deg) scale(0.8);transform: rotateY(0deg) scale(0.8);}to {-webkit-transform: rotateY(-180deg) scale(0.8);-o-transform: rotateY(-180deg) scale(0.8);-ms-transform: rotateY(-180deg) scale(0.8);-moz-transform: rotateY(-180deg) scale(0.8);transform: rotateY(-180deg) scale(0.8);}}.loadingRun{-webkit-animation : loadingAnimate 1.2s infinite;animation : loadingAnimate 1.2s infinite;}.loader,.loader:after {border-radius: 50%;width: 60px;height: 60px;}.loader {margin: 60px auto;font-size: 10px;position: relative;text-indent: -9999em;border-top: 1.1em solid rgba(255, 255, 255, 0.2);border-right: 1.1em solid rgba(255, 255, 255, 0.2);border-bottom: 1.1em solid rgba(255, 255, 255, 0.2);border-left: 1.1em solid #ffffff;-webkit-transform: translateZ(0);-ms-transform: translateZ(0);transform: translateZ(0);-webkit-animation: load8 1.1s infinite linear;animation: load8 1.1s infinite linear;}@-webkit-keyframes load8 {0% {-webkit-transform: rotate(0deg);transform: rotate(0deg);}100% {-webkit-transform: rotate(360deg);transform: rotate(360deg);}}@keyframes load8 {0% {-webkit-transform: rotate(0deg);transform: rotate(0deg);}100% {-webkit-transform: rotate(360deg);transform: rotate(360deg);}}",
document.getElementsByTagName("HEAD").item(0).appendChild(a)}})();window.LoadingUtils=window.LoadingUtils||{};
window.LoadingUtils.icons={loadingIconBase64:"data:image/svg+xml;base64,PHN2ZyB0PSIxNTI1OTE2MjIyMjk5IiBjbGFzcz0iaWNvbiIgc3R5bGU9IiIgdmlld0JveD0iMTMwIDAgODAwIDEwMjQiIHZlcnNpb249IjEuMSINCiAgeG1sbnM9Imh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XdJxUpYPru+QVqurTJF8KzTxEPge3nqr3k3x3vaTjpHJwq3X+FcCtU3sOvnRwQ0eVWhI7RPLj1XzHTVE6uCHnuEkvgzm4xY6iO+VPAXhjygvPDm43OG0yepKk7phP2hzcf3iK21g0d3C6C3AawLMkFYgUY3MGp9V/3QXQ3YDibI7gtNr/QnXfTXcBirS5gZt0iN+nBc0FnHZ2PQHg3JRD/DmB+xDAPSsuWCH+43thL2XzOkvvcV2vIa6vr7gQfzY9ThdqZq9rf2Tjov8G8BoA3YopKsSfFbgK3n4Ad4ojgA9I/tBHhBLTFj1Ulih4qjo7uFRKjlyOgxtZ8FTuHFwqJUcux8GNLHgqdw4ulZIjl+PgRhY8lTsHl0rJkctxcCMLnspdMnDtglJUMNcrdnP5lWahvv1l2hHi5WysDs7Bxbe/0GEj1nMuvz5URpJzcIUK6OAcXG8FQhuNBycenPRubAsZQltfrOdcfmODk/ajS364bWxLSJy/43Dba36cdGKRhyhu2XHSfoD7EGonLHPZAe5dexX9EPeEwscU1dHbVNzm9pnfZrYF4I6GA817myQvxTj1vHEKVNAuANjXKOkKyY0a3AaAyx1uzgDQnxILptvAClSBiDrRkeqv7VFvPdraBlf1uvZcN3AVvfgABY6TPLX9M6KZ2cwcXoCaI2XZgbYArup5GjY1PDbnvJHq5m46FLiiIVPDY/N/u3pcq/cp2hTEg9Vnn9fGO4FwBfT6DkFSYLi17OyEfwGiWm1shbv/BgAAAABJRU5ErkJggg=="};window.LoadingUtils=window.LoadingUtils||{};window.LoadingUtils.parseBool=function(a,b){if(!0===a||!1===a)return a;if(void 0==a||null==a)return!1;b=!!b;if("number"==typeof a)return 0!=a;if("string"!=typeof a||""==a)return!1;var f=["true","yes","show","enable"],l=["false","no","hide","disable"];a=a.toLowerCase();return 0>f.indexOf(a)&&0>l.indexOf(a)?b:0<=f.indexOf(a)};window.LoadingUtils.isIphone=function(){return 0<navigator.userAgent.toLowerCase().indexOf("iphone")};
window.LoadingUtils.isIphoneXor11=function(){return window.LoadingUtils.isIphone()&&(812==screen.height&&375==screen.width||896==screen.height&&414==screen.width)};window.LoadingUtils.toAbsURL=function(a){var b=document.createElement("a");b.href=a;return b.href};
window.LoadingUtils.changeBookResourceBaseURL=function(a){var b=htmlConfig.loadingConfig&&htmlConfig.loadingConfig.bookResourceBaseURL||window.bookResourceBaseURL||"",f=window.LoadingUtils.parseBool(htmlConfig.loadingConfig.useTheFliphtml5Service||"false");if(!b||f||0<=a.indexOf("http")||0<=a.indexOf("file:///"))return a;a=a.replace("../","").replace("./","");return window.LoadingUtils.toAbsURL(b+a)};window.waitForLoading=!0;var LoadingJS=function(){this.initConfig();this.initHtml();this.initCss();this.startLoading();this.onResize();var a=this;window.onresize=function(){a.onResize()};window.setTimeout(function(){window.waitForLoading=!1},250);this.allowShowVideo=!0};
LoadingJS.prototype={initConfig:function(){!window.loadingConfig&&window.bookConfig&&"string"!=typeof window.bookConfig&&(window.loadingConfig=window.bookConfig);!window.loadingConfig&&window.htmlConfig&&window.htmlConfig.bookConfig&&"string"!=typeof window.htmlConfig.bookConfig&&(window.loadingConfig=window.htmlConfig.bookConfig);window.htmlConfig&&window.htmlConfig.loadingConfig&&(window.loadingConfig=window.htmlConfig.loadingConfig);try{this.loadingVideoObjectFit=loadingConfig.loadingVideoObjectFit||
"fill",this.loadingBackgroundColorType=loadingConfig.loadingBackgroundColorType||"1",this.loadingCaptionColor=loadingConfig.loadingCaptionColor||"#DDDDDD",this.loadingBackground=loadingConfig.loadingBackground||"#1F2232",this.loadingMainColor=loadingConfig.loadingMainColor||loadingConfig.loadingBackground,"function"===typeof this.processMainColor&&this.processMainColor(),this.loadingCaption=loadingConfig.loadingCaption||document.title,this.loadingCaptionFontSize=isNaN(loadingConfig.loadingCaptionFontSize)?
28:parseInt(loadingConfig.loadingCaptionFontSize),this.loadingCaptionFontSize=Math.min(100,this.loadingCaptionFontSize),this.loadingCaptionFontSize=Math.max(0,this.loadingCaptionFontSize),this.loadingPicture=loadingConfig.loadingPicture?window.LoadingUtils.changeBookResourceBaseURL(loadingConfig.loadingPicture)+"?"+(new Date).getTime():"",this.loadingPictureHeight=isNaN(loadingConfig.loadingPictureHeight)?150:parseInt(loadingConfig.loadingPictureHeight),this.loadingDisplayTime=isNaN(loadingConfig.loadingDisplayTime)?
0:parseInt(loadingConfig.loadingDisplayTime),this.loadingSpacing=isNaN(loadingConfig.loadingSpacing)?20:parseInt(loadingConfig.loadingSpacing),this.showLoadingGif=void 0!=loadingConfig.showLoadingGif?window.LoadingUtils.parseBool(loadingConfig.showLoadingGif,!0):!0,this.loadingVideo=loadingConfig.loadingVideo?window.LoadingUtils.changeBookResourceBaseURL(loadingConfig.loadingVideo)+"?"+(new Date).getTime():"",this.isCloseVideoButtonVisible=loadingConfig.isCloseVideoButtonVisible?window.LoadingUtils.parseBool(loadingConfig.isCloseVideoButtonVisible,
!1):!1,this.loadingVideoCover=loadingConfig.loadingVideoCover?window.LoadingUtils.changeBookResourceBaseURL(loadingConfig.loadingVideoCover)+"?"+(new Date).getTime():"",this.alwaysDoublePageOnMobile=loadingConfig.alwaysDoublePageOnMobile?window.LoadingUtils.parseBool(loadingConfig.alwaysDoublePageOnMobile,!1):!1}catch(a){this.loadingCaption=document.title,this.loadingCaptionFontSize=28,this.loadingCaptionColor="#DDDDDD",this.loadingBackground="#1F2232",this.loadingPicture="",this.showLoadingGif=!0,
this.loadingPictureHeight=150,this.loadingDisplayTime=0,this.loadingSpacing=20,this.loadingVideo="",this.loadingVideoObjectFit="fill",this.isCloseVideoButtonVisible=!1,this.loadingVideoCover="",this.alwaysDoublePageOnMobile=!1}document.querySelector("#tmpLoading")&&(document.querySelector("#tmpLoading").style.background=this.loadingBackground)},get upsideOnMobile(){return this.alwaysDoublePageOnMobile&&window.innerHeight>window.innerWidth?!0:!1},initHtml:function(){this.stop=!1;this.instance=document.createElement("div");
this.title=document.createElement("p");this.title.innerHTML=this.loadingCaption;this.copyright=document.createElement("p");this.copyright.setAttribute("style","position:absolute;bottom:5%;font-size:1.1rem;width:100%;text-align:center;");window.userInfo&&window.userInfo.copyright&&(this.copyright.innerHTML=window.userInfo.copyright);this.bg=document.createElement("div");this.bg.setAttribute("style","transform:scale(1);");this.loadingAnimation=!0;this.showLoadingGif&&this.initAnimationHtml();var a=
this;setTimeout(function(){window.userInfoReadyPromise?window.userInfoReadyPromise.then(function(b){a.initializeMedia(b||window.userInfo||{})}).catch(function(){a.initializeMedia(window.userInfo||{})}):window.eventEmitter?(window.eventEmitter.on("loadUserInfo",function(b){a.initializeMedia(b)}),window.userInfo&&a.initializeMedia(window.userInfo)):a.initializeMedia(window.userInfo||{})},0);this.instance.appendChild(this.title);this.instance.appendChild(this.copyright);this.bg.appendChild(this.instance);
document.body.appendChild(this.bg);try{document.getElementById("bacgradient_image")&&(document.getElementById("bacgradient_image").style.visibility="visible")}catch(b){}},initializeMedia:function(a){a=a||{};var b=function(f){return a.power?Array.isArray(a.power)||"string"===typeof a.power?0<=a.power.indexOf(f):!1:!1};this.loadingVideo&&(b("bJ8w&K3tP")?(this.showLoadingGif=!0,this.allowShowVideo=!1):(this.initVideo(),this.loadBox&&(this.loadBox.style.display="none")));if(this.loadingPicture){if(b("qR2j^H5fZ"))return;
this.image=document.createElement("img");this.image.src=this.loadingPicture;this.image.onerror=function(){console.log("LoadingJS: \u56fe\u7247\u52a0\u8f7d\u5931\u8d25:",this.loadingPicture)}.bind(this);this.instance.appendChild(this.image);this.initImageCss()}this.initMediaCss()},initVideo:function(){var a=this;this.videoImage=document.createElement("img");this.videoImage.setAttribute("class","play-video-image");this.videoImage.src=window.LoadingUtils.icons.videoImage;this.videoImage.setAttribute("style",
"position: absolute; top: 0px; right: 0px;left:0;bottom:0;margin:auto; z-index: 4;");this.videoImage.addEventListener("click",function(){this.video.style.display="block";this.instance.style.display="none";this.video.play()}.bind(this));this.videoLoadImage=document.createElement("div");this.videoLoadImage.setAttribute("style","position: absolute; top: auto; right: 0px;left:0;bottom:50%;margin:auto; z-index: 4;");this.videoLoadImage.setAttribute("class","loader");this.video=document.createElement("video");
this.video.src=this.loadingVideo;this.video.setAttribute("preload","auto");this.loadingVideoCover&&this.video.setAttribute("poster",this.loadingVideoCover);this.video.setAttribute("style","width: 100%; height: 100%; object-fit: "+this.loadingVideoObjectFit+"; position: absolute; top: 0px; right: 0px; z-index: 3;");this.video.addEventListener("play",function(){a.isCloseVideoButtonVisible&&a.createCloseBtn()});this.bg.appendChild(this.video);this.instance.appendChild(this.videoImage);this.instance.appendChild(this.videoLoadImage);
this.video.load()},createCloseBtn:function(){var a=this;this.videoCloseBtn=document.createElement("div");var b=document.createElement("img");b.src=window.LoadingUtils.icons.closeIcon;b.setAttribute("style","width: 16px; height: 16px;");this.videoCloseBtn.appendChild(b);this.videoCloseBtn.setAttribute("style","position: absolute; top: 10px; right: 40px; z-index: 999;background: rgba(0, 0, 0, 0.5); border-radius: 50%;height: 30px; width: 30px;cursor: pointer;box-sizing: border-box;display:flex;justify-content:center;align-items:center;");
this.videoCloseBtn.addEventListener("click",function(){return a.video.pause()});this.bg.appendChild(this.videoCloseBtn)},showVideo:function(){try{this.allowShowVideo&&(this.videoImage.style.display="block",this.videoLoadImage.style.display="none")}catch(a){}},loadingSvg:function(){var a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.setAttribute("t","1525916222299");a.setAttribute("class","icon");a.setAttribute("style","");a.setAttribute("viewBox","130 0 800 1024");a.setAttribute("version",
"1.1");a.setAttribute("xmlns","http://www.w3.org/2000/svg");a.setAttribute("p-id","2478");a.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink");a.setAttribute("width","49");a.setAttribute("height","56");var b=document.createElementNS("http://www.w3.org/2000/svg","defs"),f=document.createElementNS("http://www.w3.org/2000/svg","style");f.setAttribute("type","text/css");var l=document.createElementNS("http://www.w3.org/2000/svg","path");l.setAttribute("d","M835.55027 48.761905C876.805122 48.761905 910.222223 81.441158 910.222223 121.753604L910.222223 902.095C910.222223 902.095 910.222223 942.409011 876.805 975.238095L113.777778 975.238095 113.777778 24.380952 88.888889 48.761905 835.55027 48.761905ZM64 0 64 24.380952 64 1024L960 1024C835.55027 1024 904.277615 1024 960 969.325498L960 54.49204C960 54.49204 904.277615 0 835.55027 0L88.888889 0 64 0Z");
l.setAttribute("p-id","2479");var e=document.createElementNS("http://www.w3.org/2000/svg","path");e.setAttribute("d","M775.164361 219.428572C788.910114 219.428572 800.05325 208.512847 800.05325 195.047619 800.05325 181.582391 788.910114 170.666667 775.164361 170.666667L263.111111 170.666667C249.365357 170.666667 238.222222 181.582391 238.222222 195.047619 238.222222 208.512847 249.365357 219.428572 263.111111 219.428572L775.164361 219.428572Z");e.setAttribute("p-id","2481");var h=document.createElementNS("http://www.w3.org/2000/svg",
"path");h.setAttribute("d","M775.164361 365.714285C788.910114 365.714285 800.05325 354.798562 800.05325 341.333333 800.05325 327.868105 788.910114 316.952382 775.164361 316.952382L263.111111 316.952382C249.365357 316.952382 238.222222 327.868105 238.222222 341.333333 238.222222 354.798562 249.365357 365.714285 263.111111 365.714285L775.164361 365.714285Z");h.setAttribute("p-id","2482");var c=document.createElementNS("http://www.w3.org/2000/svg","path");c.setAttribute("d","M775.164361 536.380951C788.910114 536.380951 800.05325 525.465229 800.05325 512 800.05325 498.534771 788.910114 487.619049 775.164361 487.619049L263.111111 487.619049C249.365357 487.619049 238.222222 498.534771 238.222222 512 238.222222 525.465229 249.365357 536.380951 263.111111 536.380951L775.164361 536.380951Z");
c.setAttribute("p-id","2483");b.appendChild(f);a.appendChild(b);a.appendChild(l);a.appendChild(e);a.appendChild(h);a.appendChild(c);return a},createLoadingImg:function(a){var b=document.createElement("img");b.src=a;return b},changeLoadingImgColor:function(a,b){return new Promise(function(f,l){var e=new Image;e.onload=function(){var h=document.createElement("canvas");h.width=e.width;h.height=e.height;var c=h.getContext("2d");c.drawImage(e,0,0);c.globalCompositeOperation="source-in";c.fillStyle=b;c.fillRect(0,
0,h.width,h.height);h=h.toDataURL();f(h)};e.onerror=function(h){console.log(h)};e.src=a})},initAnimationHtml:function(){var a=this,b,f,l,e,h,c;return $jscomp.asyncExecutePromiseGeneratorProgram(function(g){if(1==g.nextAddress){if(!document.createElementNS)return g.return();a.loadBox=document.createElement("div");return g.yield(a.changeLoadingImgColor(window.LoadingUtils.icons.loadingIconBase64,a.loadingCaptionColor),2)}b=g.yieldResult;f=a.createLoadingImg(b);l=a.createLoadingImg(b);a.img3=a.createLoadingImg(b);
window.LoadingUtils.isIphoneXor11()?(e=a,h=0,a.loadingAnimation=!0,c=function(){window.setTimeout(function(){if(e.loadingAnimation)try{var d="rotateY(-"+1.8*h+"deg) scale(0.8)";e.img3.style["-webkit-transform"]=d;e.img3.style["-o-transform"]=d;e.img3.style["-ms-transform"]=d;e.img3.style["-moz-transform"]=d;e.img3.style.transform=d;h++;h%=101;c()}catch(k){}},7)},c()):a.img3.setAttribute("class","loadingRun");a.img3.setAttribute("style","position : absolute;left : 20px;top : 0;-webkit-transform:rotateY(0deg) scale(0.8);-o-transform:rotateY(0deg) scale(0.8);-ms-transform:rotateY(0deg) scale(0.8);-moz-transform:rotateY(0deg) scale(0.8);transform:rotateY(0deg) scale(0.8);-webkit-transform-origin : 0 0;-o-transform-origin : 0 0;-ms-transform-origin : 0 0;-moz-transform-origin : 0 0;transform-origin : 0 0;will-change : transform;fill :"+
a.loadingCaptionColor+";");l.setAttribute("style","position : absolute;left : 20px;top : 0;-webkit-transform:rotateY(180deg) scale(0.8);-o-transform:rotateY(180deg) scale(0.8);-ms-transform:rotateY(180deg) scale(0.8);-moz-transform:rotateY(180deg) scale(0.8);transform:rotateY(180deg) scale(0.8);-webkit-g : 0 0;-o-transform-origin : 0 0;-ms-transform-origin : 0 0;-moz-transform-origin : 0 0;transform-origin : 0 0;fill : "+a.loadingCaptionColor+";");f.setAttribute("style","position : absolute;left : 20px;top : 0;-webkit-transform:rotateY(0) scale(0.8);-o-transform:rotateY(0) scale(0.8);-ms-transform:rotateY(0) scale(0.8);-moz-transform:rotateY(0) scale(0.8);transform:rotateY(0) scale(0.8);-webkit-transform-origin : 0 0;-o-transform-origin : 0 0;-ms-transform-origin : 0 0;-moz-transform-origin : 0 0;transform-origin : 0 0;fill : "+
a.loadingCaptionColor+";");a.loadBox.appendChild(f);a.loadBox.appendChild(l);a.loadBox.appendChild(a.img3);a.instance.appendChild(a.loadBox);g.jumpToEnd()})},startLoading:function(){},destroy:function(){global.isIE8()||global.isIE9()?$(this.bg).animate({opacity:"0"},.6,function(){this.loadingAnimation=!1;$("body>style").html("");$(this.bg).remove();$("body").css({"background-color":""})}.bind(this)):(animateOnce($(this.bg),{opacity:"0"},.6,function(){this.loadingAnimation=!1;$(this.img3).attr("class",
"");$("body>style").html("");$(this.bg).remove();$(this.image).attr("src","");$("body").css({"background-color":""})}.bind(this)),window.setTimeout(function(){this.loadingAnimation&&(this.loadingAnimation=!1,$(this.img3).attr("class",""),$("body>style").html(""),$(this.bg).remove(),$(this.image).attr("src",""),$("body").css({"background-color":""}))}.bind(this),1E3))},initCss:function(){document.getElementsByTagName("html")[0].setAttribute("style","margin : 0;padding : 0;width : 100%;height : 100%;");
document.body.setAttribute("style","margin : 0;padding : 0;width : 100%;height : 100%;position : fixed;background-color :"+this.loadingBackground+";");var a=this.upsideOnMobile?window.innerWidth:"100%";this.bg.setAttribute("style","margin : 0;padding : 0;width : 100%;height : 100%;position : fixed;background-color:"+this.loadingBackground+";width : "+(this.upsideOnMobile?window.innerHeight:"100%")+"px;height : "+a+"px;transform-origin : 0px 0px;transform : translate("+(a+"px) rotate("+(this.upsideOnMobile?
90:0)+"deg);"));this.instance.setAttribute("style","width : 100%;height : 100%;opacity : 1;color :"+this.loadingCaptionColor+";text-align : center;vertical-align : middle;font-family : Tahoma;position : relative;");a="translate(-50%, "+this.loadingSpacing/2+"px)";var b="translate(-50% , -"+(this.loadingSpacing/2+45)+"px)";this.image&&this.initImageCss();this.title.setAttribute("style","font-family:Arial,Helvetica,sans serif;font-size : "+this.loadingCaptionFontSize+"px;position : absolute;top : 50%;left : 50%;-webkit-transform :"+
a+";-moz-transform :"+a+";-ms-transform :"+a+";-o-transform :"+a+";transform :"+a+";margin : 0;padding : 0;width:90%;");this.loadBox&&this.loadBox.setAttribute("style","position:relative;perspective:200px;-webkit-transform-style:preserve-3d;-o-transform-style:preserve-3d;-ms-transform-style:preserve-3d;-moz-transform-style:preserve-3d;transform-style:preserve-3d;position : absolute;width : 39.2px;height : 44.8px;left : 50%;top : 50%;-webkit-transform : "+b+";-moz-transform : "+b+";-ms-transform : "+
b+";-o-transform : "+b+";transform : "+b+";padding : 0;")},initImageCss:function(){if(this.image){var a="translate(-50% , 0)",b="5%",f="block",l=Math.min(.35*window.innerHeight,this.loadingPictureHeight);this.showLoadingGif||this.loadingVideo?300>=window.innerHeight&&(f="none"):(b="50%",a="translate(-50% , -"+(this.loadingSpacing/2+l)+"px)");this.image.setAttribute("style","display : "+f+";position : absolute;top : "+b+";left : 50%;-webkit-transform :"+a+";-moz-transform :"+a+";-ms-transform :"+a+
";-o-transform :"+a+";transform :"+a+";height : "+this.loadingPictureHeight+"px;max-width : 90%;max-height : 35%;")}},initMediaCss:function(){var a="translate(-50% , -"+(this.loadingSpacing/2+60)+"px)";this.videoImage&&this.videoImage.setAttribute("style","position:relative;cursor:pointer;display:none;z-index:4;perspective:200px;-webkit-transform-style:preserve-3d;-o-transform-style:preserve-3d;-ms-transform-style:preserve-3d;-moz-transform-style:preserve-3d;transform-style:preserve-3d;position : absolute;width : auto;height : 60px;left : 50%;top : 50%;-webkit-transform : "+
a+";-moz-transform : "+a+";-ms-transform : "+a+";-o-transform : "+a+";transform : "+a+";padding : 0;");this.videoLoadImage&&(this.videoLoadImage.style["margin-bottom"]=this.loadingSpacing/2+"px")},onResize:function(){}};(function(a){function b(h){return/^(?:[A-Za-z0-9+/]{4})*?(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(h)}function f(h){var c={type:(h.type||"GET").toUpperCase(),url:h.url||"",async:h.async||"true",data:h.data||null,dataType:h.dataType||"json",contentType:h.contentType||"application/x-www-form-urlencoded; charset=utf-8",beforeSend:h.beforeSend||function(){},success:h.success||function(){},error:h.error||function(){}};c.beforeSend();var g=window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):
window.XMLHttpRequest?new XMLHttpRequest:void 0;g.open(c.type,c.url,c.async);g.setRequestHeader("Content-Type",c.contentType);g.send();g.onreadystatechange=function(){4==g.readyState&&(200==g.status?c.success(g.response):c.error())}}function l(h){return new Promise(function(c,g){f({type:h.type,url:h.url,async:h.async,data:h.data,dataType:h.dataType,contentType:h.contentType,beforeSend:h.beforeSend,success:function(d){c(d)},error:function(d){g(d)}})})}function e(){try{window.userInfo||(window.userInfo=
{c:1}),window.eventEmitter.emit("loadUserInfo",window.userInfo)}catch(h){}}window.eventEmitter=function(h){h=h||new Map;return{all:h,on:function(c,g){var d=h.get(c);d&&d.push(g)||h.set(c,[g])},off:function(c,g){(c=h.get(c))&&c.splice(c.indexOf(g)>>>0,1)},emit:function(c,g){(h.get(c)||[]).slice().map(function(d){d(g)});(h.get("*")||[]).slice().map(function(d){d(c,g)})}}}();(function(){try{if(!window.userInfoReadyPromise||"function"!==typeof window.ensureUserInfoReady){var h=null;window.userInfoReadyPromise=
new Promise(function(c){try{if(window.userInfo&&window.userInfo.power)return c(window.userInfo)}catch(g){}try{window.eventEmitter.on("loadUserInfo",function(g){try{h&&clearTimeout(h)}catch(d){}c(g)})}catch(g){}h=setTimeout(function(){c(window.userInfo||null)},1500)});window.ensureUserInfoReady=function(c){var g="number"===typeof c?c:null;return g?Promise.race([window.userInfoReadyPromise,new Promise(function(d){setTimeout(function(){d(window.userInfo||null)},g)})]):window.userInfoReadyPromise}}}catch(c){}})();
window.UserInfoUtils={isBase64:b,ajax:f,ajaxPromise:l,emitDefaultUserInfo:e,loadUserInfoFromUrls:function(h,c,g){h?(window.userInfo||(window.userInfo={c:1}),l({url:h}).then(function(d){d&&b(d)&&(d=JSON.parse(atob(d)),Object.assign(window.userInfo,d),0===d.c&&g&&(d=g(window.location.hostname,window.location.href))&&(c=d))}).catch(function(d){console.log("getui.json \u8bf7\u6c42\u5931\u8d25: ",d)}).finally(function(){c?l({url:c}).then(function(d){d&&(d={power:JSON.parse(d)},Object.assign(window.userInfo,
d))}).catch(function(d){console.log("power.json \u8bf7\u6c42\u5931\u8d25: ",d)}).finally(function(){window.eventEmitter.emit("loadUserInfo",window.userInfo)}):window.eventEmitter.emit("loadUserInfo",window.userInfo)})):e()}}})(window);(function(a){function b(e,h,c){var g={getuiUrl:"",powerUrl:""},d=l.FH5_REGEX.test(e);h=l.BOOKS_PATH_REGEX.test(h);if(c){if(e=l.getBaseDomain(e))g.getuiUrl="https://"+e+"/"+c+"/getui.json",g.powerUrl="https://"+e+"/"+c+"/power.json";return g}d?(g.getuiUrl="../getui.json",g.powerUrl="../power.json"):h&&(g.getuiUrl=location.origin+"/books/getui.json",g.powerUrl=location.origin+"/books/power.json");return g}function f(e,h){var c=l.FH5_REGEX.test(e);h=l.BOOKS_PATH_REGEX.test(h);return c&&(e=l.getBaseDomain(e))?
"https://"+e+"/power.json":h&&!c?window.location.origin+"/power.json":null}var l={FH5_REGEX:/fliphtml5\.com|flipbuilder/,BOOKS_PATH_REGEX:/^https?:\/\/[^/]+\/books(?:\/|$)/,getBaseDomain:function(e){var h=/test|dev/.test(e);return this.FH5_REGEX.test(e)?h?"t.flipbuilder.com":"online.fliphtml5.com":null}};(function(){try{var e=window.location.href,h=window.location.hostname;if(-1<e.indexOf("templates"))window.UserInfoUtils.emitDefaultUserInfo();else{var c=e.match(/book_edit\/([^/]+)/);if(c&&c[1]){var g=
b(h,e,c[1]);window.UserInfoUtils.loadUserInfoFromUrls(g.getuiUrl,g.powerUrl,f)}else{var d=l.FH5_REGEX.test(h),k=l.BOOKS_PATH_REGEX.test(e);if(d||k){var m=b(h,e);window.UserInfoUtils.loadUserInfoFromUrls(m.getuiUrl,m.powerUrl,f)}else window.UserInfoUtils.emitDefaultUserInfo()}}}catch(n){console.log("URL \u89e3\u6790\u9519\u8bef: "+n),window.UserInfoUtils.emitDefaultUserInfo()}})()})(window);(function(a){var b="0";try{a.htmlConfig&&a.htmlConfig.loadingConfig&&void 0!==a.htmlConfig.loadingConfig.loadingType&&(b=a.htmlConfig.loadingConfig.loadingType)}catch(f){}window.jsLoadingBar=null;switch(b){case 0:case "0":window.jsLoadingBar=new LoadingJS;break;case 1:case "1":window.jsLoadingBar="undefined"!==typeof GuideLoadingJS?new GuideLoadingJS:new LoadingJS;break;default:window.jsLoadingBar=new LoadingJS}})(window);
