(function(){/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ 'use strict';var k=this||self;function l(a,b){a=a.split(".");var c=k;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};var m,n;a:{for(var p=["CLOSURE_FLAGS"],q=k,r=0;rb&&-1!=b.indexOf(a)):!1:!1}function y(a){var b;a:{if(b=k.navigator)if(b=b.userAgent)break a;b=""}return-1!=b.indexOf(a)};function z(){return m?!!v&&0=a.i){const d=a.i+-1;(a.g||(a.g=a.j[d]={}))[b]=c}else a.j[b+-1]=c,(a=a.g)&&b in a&&delete a[b]} function N(a,b,c){var d=-1===c?null:c>=a.i?a.g?a.g[c]:void 0:a.j[c+-1];var e=!1;if(null==d||"object"!==typeof d||(e=Array.isArray(d))||d.s!==J)if(e){e=E(a.j);const g=E(d);let f=g;0===f&&(f|=e&16);f|=e&2;f!==g&&F(d,f);b=new b(d)}else b=void 0;else b=d;b!==d&&null!=b&&M(a,c,b);d=b;if(null==d)return d;E(a.j)&2||(b=d,E(b.j)&2&&(e=O(b,!1),e.l=b,b=e),b!==d&&(d=b,M(a,c,d)));return d};let P;function Q(a,b){P=b;a=new a(b);P=void 0;return a};function ba(a){switch(typeof a){case "number":return isFinite(a)?a:String(a);case "boolean":return a?1:0;case "object":if(a&&!Array.isArray(a)&&null!=a&&a instanceof Uint8Array){let b="",c=0;const d=a.length-10240;for(;cha(g,e,d))};var S=class{constructor(a){null==a&&(a=P);P=void 0;if(null==a)a=[],F(a,48);else{if(!Array.isArray(a))throw Error();C(a,32)}this.j=a;a:{var b=this.j.length;a=b-1;if(b&&(b=this.j[a],K(b))){this.g=b;this.i=a- -1;break a}this.i=Number.MAX_VALUE}}toJSON(){var a=R(this.j,fa,void 0,void 0,!1,!1);return ia(this,a,!0)}};S.prototype.s=J;S.prototype.toString=function(){return ia(this,this.j,!1).toString()}; function ia(a,b,c){const d=a?a.constructor.o:void 0;var e=a.i;if(d){if(!c){b=Array.prototype.slice.call(b);var g;if(b.length&&K(g=b[b.length-1]))for(var f=0;f=e){Object.assign(b[b.length-1]={},g);break}}e=b;c=!c;a=a.i;let t;for(g=0;g{if(null==b||""==b)b=new a;else{b=JSON.parse(b);if(!Array.isArray(b))throw Error(void 0);b=Q(a,H(b))}return b}};var T=class extends S{};T.o=[17];var U=class extends S{};U.o=[27];var V=class extends S{};V.o=[8];var ka=ja(class extends S{});var la=class extends S{},ma=ja(la);la.o=[1,2,3];function W(a,b){a=a.getElementsByTagName("META");for(let c=0;c=a.i.offsetWidth||1>=a.i.offsetHeight)return!1;a.g.remove();X(a.context,"spanReady");return!0} var qa=class{constructor(a){this.context=a;this.l={A:!1,v:100};this.i=oa("SPAN");this.g=oa("DIV");this.i.style.fontSize="6px";this.i.textContent="go";this.g.style.position="absolute";this.g.style.top="100%";this.g.style.left="100%";this.g.style.width="1px";this.g.style.height="0";this.g.style.overflow="hidden";this.g.style.visibility="hidden";this.g.appendChild(this.i)}wait(){if(!this.l.A&&(X(this.context,"spanStart"),this.context.body.appendChild(this.g),!pa(this)))return new Promise(a=>{const b= setInterval(()=>{pa(this)&&(clearInterval(b),a())},this.l.v)})}};var ra=class{constructor(a,b){this.context=a;this.g=N(b,U,1)||new U;N(b,V,12)||new V;N(this.g,T,10)||new T}};function sa(a){a.l.length=0;a.i=!0}function ta(a,b){a.g=!0;const c=()=>{a.i=!1;const d=a.l.shift();return void 0===d?(a.g=!1,Promise.resolve()):ta(a,d())};return b?b.then(c,()=>{if(a.i)return c();a.g=!1;return Promise.reject()}):c()}function ua(a,b){for(const c of b)a.l.push(c);if(!a.g)return ta(a)}var va=class{constructor(){this.i=this.g=!1;this.l=[]}};function wa(a){sa(a.l);return ua(a.l,[()=>{if(!a.m){var b=W(a.context.body,"render_config")||"[]";b=ka(b);b=new ra(a.context,b);a.m=b}b=(new qa(a.context)).wait();X(a.context,"browserStart");X(a.context,"browserStartEnd");a.g&=-31;a.g|=2;return b},()=>{X(a.context,"browserReady");X(a.context,"browserReadyEnd");a.g|=4;X(a.context,"overallReady")},()=>{X(a.context,"browserQuiet");X(a.context,"browserQuietEnd");a.g|=8}])} function xa(a){ma(W(a.context.body,"engine_msg")||"[]");return wa(a)||Promise.resolve()}var Y=class{constructor(a,b){this.l=new va;this.g=0;this.context=new na(b)}u(){return this.g}i(){this.g&=-31;this.g|=1;let a=0;const b=this.context.body;b.addEventListener("browserRender",()=>{++a;if(1===a)X(this.context,"overallStart"),xa(this).then(()=>{X(this.context,"overallQuiet")});else{var c=b.clientHeight;b.clientWidth&&c&&xa(this)}})}};let Z;l("mys.engine.init",(a,b)=>{Z=new Y(a,b);Z.i()});l("mys.engine.stage",()=>{let a;return(null==(a=Z)?void 0:a.g)||0});l("mys.Engine",Y);l("mys.Engine.prototype.i",Y.prototype.i);l("mys.Engine.prototype.s",Y.prototype.u);}).call(this);