40 lines
21 KiB
Plaintext
40 lines
21 KiB
Plaintext
(function(){'use strict';function aa(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}var p=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};
|
|
function ba(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 c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");}var q=ba(this);function t(a,b){if(b)a:{var c=q;a=a.split(".");for(var d=0;d<a.length-1;d++){var h=a[d];if(!(h in c))break a;c=c[h]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&b!=null&&p(c,a,{configurable:!0,writable:!0,value:b})}}
|
|
t("Symbol",function(a){function b(k){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c(d+(k||"")+"_"+h++,k)}function c(k,f){this.g=k;p(this,"description",{configurable:!0,writable:!0,value:f})}if(a)return a;c.prototype.toString=function(){return this.g};var d="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",h=0;return b});
|
|
t("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(" "),c=0;c<b.length;c++){var d=q[b[c]];typeof d==="function"&&typeof d.prototype[a]!="function"&&p(d.prototype,a,{configurable:!0,writable:!0,value:function(){return ca(aa(this))}})}return a});function ca(a){a={next:a};a[Symbol.iterator]=function(){return this};return a}
|
|
var da=typeof Object.create=="function"?Object.create:function(a){function b(){}b.prototype=a;return new b},u;if(typeof Object.setPrototypeOf=="function")u=Object.setPrototypeOf;else{var v;a:{var ea={a:!0},fa={};try{fa.__proto__=ea;v=fa.a;break a}catch(a){}v=!1}u=v?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var ha=u;
|
|
function w(a,b){a.prototype=da(b.prototype);a.prototype.constructor=a;if(ha)ha(a,b);else for(var c in b)if(c!="prototype")if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.R=b.prototype}function x(a){var b=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];if(b)return b.call(a);if(typeof a.length=="number")return{next:aa(a)};throw Error(String(a)+" is not an iterable or ArrayLike");}
|
|
function y(a,b){return Object.prototype.hasOwnProperty.call(a,b)}
|
|
t("Promise",function(a){function b(f){this.i=0;this.l=void 0;this.g=[];this.F=!1;var e=this.v();try{f(e.resolve,e.reject)}catch(g){e.reject(g)}}function c(){this.g=null}function d(f){return f instanceof b?f:new b(function(e){e(f)})}if(a)return a;c.prototype.i=function(f){if(this.g==null){this.g=[];var e=this;this.l(function(){e.A()})}this.g.push(f)};var h=q.setTimeout;c.prototype.l=function(f){h(f,0)};c.prototype.A=function(){for(;this.g&&this.g.length;){var f=this.g;this.g=[];for(var e=0;e<f.length;++e){var g=
|
|
f[e];f[e]=null;try{g()}catch(l){this.v(l)}}}this.g=null};c.prototype.v=function(f){this.l(function(){throw f;})};b.prototype.v=function(){function f(l){return function(m){g||(g=!0,l.call(e,m))}}var e=this,g=!1;return{resolve:f(this.K),reject:f(this.A)}};b.prototype.K=function(f){if(f===this)this.A(new TypeError("A Promise cannot resolve to itself"));else if(f instanceof b)this.M(f);else{a:switch(typeof f){case "object":var e=f!=null;break a;case "function":e=!0;break a;default:e=!1}e?this.J(f):this.C(f)}};
|
|
b.prototype.J=function(f){var e=void 0;try{e=f.then}catch(g){this.A(g);return}typeof e=="function"?this.N(e,f):this.C(f)};b.prototype.A=function(f){this.G(2,f)};b.prototype.C=function(f){this.G(1,f)};b.prototype.G=function(f,e){if(this.i!=0)throw Error("Cannot settle("+f+", "+e+"): Promise already settled in state"+this.i);this.i=f;this.l=e;this.i===2&&this.L();this.H()};b.prototype.L=function(){var f=this;h(function(){if(f.I()){var e=q.console;typeof e!=="undefined"&&e.error(f.l)}},1)};b.prototype.I=
|
|
function(){if(this.F)return!1;var f=q.CustomEvent,e=q.Event,g=q.dispatchEvent;if(typeof g==="undefined")return!0;typeof f==="function"?f=new f("unhandledrejection",{cancelable:!0}):typeof e==="function"?f=new e("unhandledrejection",{cancelable:!0}):(f=q.document.createEvent("CustomEvent"),f.initCustomEvent("unhandledrejection",!1,!0,f));f.promise=this;f.reason=this.l;return g(f)};b.prototype.H=function(){if(this.g!=null){for(var f=0;f<this.g.length;++f)k.i(this.g[f]);this.g=null}};var k=new c;b.prototype.M=
|
|
function(f){var e=this.v();f.B(e.resolve,e.reject)};b.prototype.N=function(f,e){var g=this.v();try{f.call(e,g.resolve,g.reject)}catch(l){g.reject(l)}};b.prototype.then=function(f,e){function g(n,z){return typeof n=="function"?function(V){try{l(n(V))}catch(W){m(W)}}:z}var l,m,r=new b(function(n,z){l=n;m=z});this.B(g(f,l),g(e,m));return r};b.prototype.catch=function(f){return this.then(void 0,f)};b.prototype.B=function(f,e){function g(){switch(l.i){case 1:f(l.l);break;case 2:e(l.l);break;default:throw Error("Unexpected state: "+
|
|
l.i);}}var l=this;this.g==null?k.i(g):this.g.push(g);this.F=!0};b.resolve=d;b.reject=function(f){return new b(function(e,g){g(f)})};b.race=function(f){return new b(function(e,g){for(var l=x(f),m=l.next();!m.done;m=l.next())d(m.value).B(e,g)})};b.all=function(f){var e=x(f),g=e.next();return g.done?d([]):new b(function(l,m){function r(V){return function(W){n[V]=W;z--;z==0&&l(n)}}var n=[],z=0;do n.push(void 0),z++,d(g.value).B(r(n.length-1),m),g=e.next();while(!g.done)})};return b});
|
|
t("WeakMap",function(a){function b(g){this.g=(e+=Math.random()+1).toString();if(g){g=x(g);for(var l;!(l=g.next()).done;)l=l.value,this.set(l[0],l[1])}}function c(){}function d(g){var l=typeof g;return l==="object"&&g!==null||l==="function"}function h(g){if(!y(g,f)){var l=new c;p(g,f,{value:l})}}function k(g){var l=Object[g];l&&(Object[g]=function(m){if(m instanceof c)return m;Object.isExtensible(m)&&h(m);return l(m)})}if(function(){if(!a||!Object.seal)return!1;try{var g=Object.seal({}),l=Object.seal({}),
|
|
m=new a([[g,2],[l,3]]);if(m.get(g)!=2||m.get(l)!=3)return!1;m.delete(g);m.set(l,4);return!m.has(g)&&m.get(l)==4}catch(r){return!1}}())return a;var f="$jscomp_hidden_"+Math.random();k("freeze");k("preventExtensions");k("seal");var e=0;b.prototype.set=function(g,l){if(!d(g))throw Error("Invalid WeakMap key");h(g);if(!y(g,f))throw Error("WeakMap key fail: "+g);g[f][this.g]=l;return this};b.prototype.get=function(g){return d(g)&&y(g,f)?g[f][this.g]:void 0};b.prototype.has=function(g){return d(g)&&y(g,
|
|
f)&&y(g[f],this.g)};b.prototype.delete=function(g){return d(g)&&y(g,f)&&y(g[f],this.g)?delete g[f][this.g]:!1};return b});
|
|
t("Map",function(a){function b(){var e={};return e.s=e.next=e.head=e}function c(e,g){var l=e[1];return ca(function(){if(l){for(;l.head!=e[1];)l=l.s;for(;l.next!=l.head;)return l=l.next,{done:!1,value:g(l)};l=null}return{done:!0,value:void 0}})}function d(e,g){var l=g&&typeof g;l=="object"||l=="function"?k.has(g)?l=k.get(g):(l=""+ ++f,k.set(g,l)):l="p_"+g;var m=e[0][l];if(m&&y(e[0],l))for(e=0;e<m.length;e++){var r=m[e];if(g!==g&&r.key!==r.key||g===r.key)return{id:l,list:m,index:e,m:r}}return{id:l,
|
|
list:m,index:-1,m:void 0}}function h(e){this[0]={};this[1]=b();this.size=0;if(e){e=x(e);for(var g;!(g=e.next()).done;)g=g.value,this.set(g[0],g[1])}}if(function(){if(!a||typeof a!="function"||!a.prototype.entries||typeof Object.seal!="function")return!1;try{var e=Object.seal({x:4}),g=new a(x([[e,"s"]]));if(g.get(e)!="s"||g.size!=1||g.get({x:4})||g.set({x:4},"t")!=g||g.size!=2)return!1;var l=g.entries(),m=l.next();if(m.done||m.value[0]!=e||m.value[1]!="s")return!1;m=l.next();return m.done||m.value[0].x!=
|
|
4||m.value[1]!="t"||!l.next().done?!1:!0}catch(r){return!1}}())return a;var k=new WeakMap;h.prototype.set=function(e,g){e=e===0?0:e;var l=d(this,e);l.list||(l.list=this[0][l.id]=[]);l.m?l.m.value=g:(l.m={next:this[1],s:this[1].s,head:this[1],key:e,value:g},l.list.push(l.m),this[1].s.next=l.m,this[1].s=l.m,this.size++);return this};h.prototype.delete=function(e){e=d(this,e);return e.m&&e.list?(e.list.splice(e.index,1),e.list.length||delete this[0][e.id],e.m.s.next=e.m.next,e.m.next.s=e.m.s,e.m.head=
|
|
null,this.size--,!0):!1};h.prototype.clear=function(){this[0]={};this[1]=this[1].s=b();this.size=0};h.prototype.has=function(e){return!!d(this,e).m};h.prototype.get=function(e){return(e=d(this,e).m)&&e.value};h.prototype.entries=function(){return c(this,function(e){return[e.key,e.value]})};h.prototype.keys=function(){return c(this,function(e){return e.key})};h.prototype.values=function(){return c(this,function(e){return e.value})};h.prototype.forEach=function(e,g){for(var l=this.entries(),m;!(m=l.next()).done;)m=
|
|
m.value,e.call(g,m[1],m[0],this)};h.prototype[Symbol.iterator]=h.prototype.entries;var f=0;return h});
|
|
t("Set",function(a){function b(c){this.g=new Map;if(c){c=x(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.g.size}if(function(){if(!a||typeof a!="function"||!a.prototype.entries||typeof Object.seal!="function")return!1;try{var c=Object.seal({x:4}),d=new a(x([c]));if(!d.has(c)||d.size!=1||d.add(c)!=d||d.size!=1||d.add({x:4})!=d||d.size!=2)return!1;var h=d.entries(),k=h.next();if(k.done||k.value[0]!=c||k.value[1]!=c)return!1;k=h.next();return k.done||k.value[0]==c||k.value[0].x!=4||
|
|
k.value[1]!=k.value[0]?!1:h.next().done}catch(f){return!1}}())return a;b.prototype.add=function(c){c=c===0?0:c;this.g.set(c,c);this.size=this.g.size;return this};b.prototype.delete=function(c){c=this.g.delete(c);this.size=this.g.size;return c};b.prototype.clear=function(){this.g.clear();this.size=0};b.prototype.has=function(c){return this.g.has(c)};b.prototype.entries=function(){return this.g.entries()};b.prototype.values=function(){return this.g.values()};b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=
|
|
b.prototype.values;b.prototype.forEach=function(c,d){var h=this;this.g.forEach(function(k){return c.call(d,k,k,h)})};return b});t("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)y(b,d)&&c.push(b[d]);return c}});t("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});t("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
|
|
function ia(a,b){a instanceof String&&(a+="");var c=0,d=!1,h={next:function(){if(!d&&c<a.length){var k=c++;return{value:b(k,a[k]),done:!1}}d=!0;return{done:!0,value:void 0}}};h[Symbol.iterator]=function(){return h};return h}t("Object.getOwnPropertySymbols",function(a){return a?a:function(){return[]}});t("Array.prototype.values",function(a){return a?a:function(){return ia(this,function(b,c){return c})}});/*
|
|
|
|
Copyright The Closure Library Authors.
|
|
SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
var A=this||self;function B(a,b){a=a.split(".");var c=A;a[0]in c||typeof c.execScript=="undefined"||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||b===void 0?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b}function ja(a){return a};function ka(a){A.setTimeout(function(){throw a;},0)};var C,D;a:{for(var la=["CLOSURE_FLAGS"],E=A,F=0;F<la.length;F++)if(E=E[la[F]],E==null){D=null;break a}D=E}var ma=D&&D[610401301];C=ma!=null?ma:!1;var G,na=A.navigator;G=na?na.userAgentData||null:null;function H(a){return C?G?G.brands.some(function(b){return(b=b.brand)&&b.indexOf(a)!=-1}):!1:!1}function I(a){var b;a:{if(b=A.navigator)if(b=b.userAgent)break a;b=""}return b.indexOf(a)!=-1};function J(){return C?!!G&&G.brands.length>0:!1}function oa(){return J()?H("Chromium"):(I("Chrome")||I("CriOS"))&&!(J()?0:I("Edge"))||I("Silk")};var pa=J()?!1:I("Trident")||I("MSIE");!I("Android")||oa();oa();I("Safari")&&(oa()||(J()?0:I("Coast"))||(J()?0:I("Opera"))||(J()?0:I("Edge"))||(J()?H("Microsoft Edge"):I("Edg/"))||J()&&H("Opera"));var qa={},K=null;var ra=typeof Uint8Array!=="undefined",sa=!pa&&typeof btoa==="function";var ta=void 0;var L=typeof Symbol==="function"&&typeof Symbol()==="symbol",ua=new Set;function M(a,b,c,d){c=c===void 0?!1:c;a=typeof Symbol==="function"&&typeof Symbol()==="symbol"?(d===void 0?0:d)&&Symbol.for&&a?Symbol.for(a):a!=null?Symbol(a):Symbol():b;c&&ua.add(a);return a}var N=M("jas",void 0,!0,!0),va=M(void 0,"0di"),wa=M(void 0,Symbol(),!0),xa=M(void 0,"aswk");var ya=L?function(a,b){a[N]|=b}:function(a,b){a.u!==void 0?a.u|=b:Object.defineProperties(a,{u:{value:b,configurable:!0,writable:!0,enumerable:!1}})},O=L?function(a){return a[N]|0}:function(a){return a.u|0},za=L?function(a){return a[N]}:function(a){return a.u},P=L?function(a,b){a[N]=b}:function(a,b){a.u!==void 0?a.u=b:Object.defineProperties(a,{u:{value:b,configurable:!0,writable:!0,enumerable:!1}})};function Aa(a,b){P(b,(a|0)&-30975)}function Ba(a,b){P(b,(a|34)&-30941)};var Q={},Ca={};function Da(a){return!(!a||typeof a!=="object"||a.g!==Ca)}function Ea(a){return a!==null&&typeof a==="object"&&!Array.isArray(a)&&a.constructor===Object}function R(a){return!Array.isArray(a)||a.length?!1:O(a)&1?!0:!1}function Fa(a,b){var c=ja(wa);(b=c?b[c]:void 0)&&(a[wa]=Array.prototype.slice.call(b))};var Ga=typeof A.BigInt==="function"&&typeof A.BigInt(0)==="bigint";var Ha=Number.MIN_SAFE_INTEGER.toString(),Ia=Ga?BigInt(Number.MIN_SAFE_INTEGER):void 0,Ja=Number.MAX_SAFE_INTEGER.toString(),Ka=Ga?BigInt(Number.MAX_SAFE_INTEGER):void 0;function La(a,b){if(a.length>b.length)return!1;if(a.length<b.length||a===b)return!0;for(var c=0;c<a.length;c++){var d=a[c],h=b[c];if(d>h)return!1;if(d<h)return!0}};function S(a,b,c){var d=d!=null?d:0;if(a==null){var h=96;c?(a=[c],h|=512):a=[];b&&(h=h&-33521665|(b&1023)<<15)}else{if(!Array.isArray(a))throw Error("narr");h=O(a);var k=Object.getOwnPropertySymbols;if(k){k=k(a);for(var f=0;f<k.length;f++)if(!ua.has(k[f])){var e=void 0;f=xa;f!=null&&(k=(e=ta)!=null?e:ta={},e=k[f]||0,e>=5||(k[f]=e+1,k=Error(),k.__closure__error__context__984382||(k.__closure__error__context__984382={}),k.__closure__error__context__984382.severity="incident",ka(k)));break}}if(h&2048)throw Error("farr");
|
|
if(h&64)return a;d===1||d===2||(h|=64);if(c&&(h|=512,c!==a[0]))throw Error("mid");a:{c=a;if(d=c.length)if(k=d-1,Ea(c[k])){h|=256;b=k-(+!!(h&512)-1);if(b>=1024)throw Error("pvtlmt");h=h&-33521665|(b&1023)<<15;break a}if(b){b=Math.max(b,d-(+!!(h&512)-1));if(b>1024)throw Error("spvt");h=h&-33521665|(b&1023)<<15}}}P(a,h);return a};function Ma(a){switch(typeof a){case "number":return isFinite(a)?a:String(a);case "bigint":return(Ga?a>=Ia&&a<=Ka:a[0]==="-"?La(a,Ha):La(a,Ja))?Number(a):String(a);case "boolean":return a?1:0;case "object":if(a)if(Array.isArray(a)){if(R(a))return}else if(ra&&a!=null&&a instanceof Uint8Array){if(sa){for(var b="",c=0,d=a.length-10240;c<d;)b+=String.fromCharCode.apply(null,a.subarray(c,c+=10240));b+=String.fromCharCode.apply(null,c?a.subarray(c):a);a=btoa(b)}else{b===void 0&&(b=0);if(!K){K={};c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split("");
|
|
d=["+/=","+/","-_=","-_.","-_"];for(var h=0;h<5;h++){var k=c.concat(d[h].split(""));qa[h]=k;for(var f=0;f<k.length;f++){var e=k[f];K[e]===void 0&&(K[e]=f)}}}b=qa[b];c=Array(Math.floor(a.length/3));d=b[64]||"";for(h=k=0;k<a.length-2;k+=3){var g=a[k],l=a[k+1];e=a[k+2];f=b[g>>2];g=b[(g&3)<<4|l>>4];l=b[(l&15)<<2|e>>6];e=b[e&63];c[h++]=f+g+l+e}f=0;e=d;switch(a.length-k){case 2:f=a[k+1],e=b[(f&15)<<2]||d;case 1:a=a[k],c[h]=b[a>>2]+b[(a&3)<<4|f>>4]+e+d}a=c.join("")}return a}}return a};function Na(a,b,c){var d=Array.prototype.slice.call(a),h=d.length,k=b&256?d[h-1]:void 0;h+=k?-1:0;for(b=b&512?1:0;b<h;b++)d[b]=c(d[b]);if(k){b=d[b]={};for(var f in k)b[f]=c(k[f])}Fa(d,a);return d}function Oa(a,b,c,d,h){if(a!=null){if(Array.isArray(a))a=R(a)?void 0:h&&O(a)&2?a:Pa(a,b,c,d!==void 0,h);else if(Ea(a)){var k={},f;for(f in a)k[f]=Oa(a[f],b,c,d,h);a=k}else a=b(a,d);return a}}
|
|
function Pa(a,b,c,d,h){var k=d||c?O(a):0;d=d?!!(k&32):void 0;for(var f=Array.prototype.slice.call(a),e=0;e<f.length;e++)f[e]=Oa(f[e],b,c,d,h);c&&(Fa(f,a),c(k,f));return f}function Qa(a){return a.D===Q?a.toJSON():Ma(a)};function Ra(a,b,c){c=c===void 0?Ba:c;if(a!=null){if(ra&&a instanceof Uint8Array)return b?a:new Uint8Array(a);if(Array.isArray(a)){var d=O(a);if(d&2)return a;b&&(b=d===0||!!(d&32)&&!(d&64||!(d&16)));return b?(P(a,(d|34)&-12293),a):Pa(a,Ra,d&4?Ba:c,!0,!0)}a.D===Q&&(c=a.o,d=za(c),a=d&2?a:new a.constructor(Sa(c,d,!0)));return a}}function Sa(a,b,c){var d=c||b&2?Ba:Aa,h=!!(b&32);a=Na(a,b,function(k){return Ra(k,h,d)});ya(a,32|(c?2:0));return a};function Ta(a,b,c){a=a.o;var d=za(a);if(d&2)throw Error();if(c===-1)var h=null;else if(h=d>>15&1023||536870912,c>=h)h=d&256?a[a.length-1][c]:void 0;else{var k=c+(+!!(d&512)-1);h=k<0||k>=a.length||k>=h?void 0:a[k]}if(h!=null&&typeof h==="object"&&h.D===Q)b=h;else if(Array.isArray(h)){var f=k=O(h);f===0&&(f|=d&32);f|=d&2;f!==k&&P(h,f);b=new b(h)}else d&2?(k=b[va])?b=k:(k=new b,ya(k.o,34),b=b[va]=k):b=new b;k=b.o;f=za(k);b=f&2?new b.constructor(Sa(k,f,!1)):b;if(h!==b)a:if(h=d>>15&1023||536870912,c>=
|
|
h){f=d;if(d&256)k=a[a.length-1];else{if(b==null)break a;k=a[h+(+!!(d&512)-1)]={};f|=256}k[c]=b;c<h&&(a[c+(+!!(d&512)-1)]=void 0);f!==d&&P(a,f)}else a[c+(+!!(d&512)-1)]=b,d&256&&(a=a[a.length-1],c in a&&delete a[c]);return b};var T;function U(a,b,c){this.o=S(a,b,c)}U.prototype.toJSON=function(){return Ua(this)};U.prototype.D=Q;U.prototype.toString=function(){try{return T=!0,Ua(this).toString()}finally{T=!1}};
|
|
function Ua(a){a=a.o;a=T?a:Pa(a,Qa,void 0,void 0,!1);var b=!T,c=a.length;if(c){var d=a[c-1],h=Ea(d);h?c--:d=void 0;var k=a;if(h){b:{var f=d;var e;var g=!1;if(f)for(var l in f)if(isNaN(+l))h=void 0,((h=e)!=null?h:e={})[l]=f[l];else if(h=f[l],Array.isArray(h)&&(R(h)||Da(h)&&h.size===0)&&(h=null),h==null&&(g=!0),h!=null){var m=void 0;((m=e)!=null?m:e={})[l]=h}g||(e=f);if(e)for(var r in e){g=e;break b}g=null}f=g==null?d!=null:g!==d}for(;c>0;c--){e=k[c-1];if(!(e==null||R(e)||Da(e)&&e.size===0))break;var n=
|
|
!0}if(k!==a||f||n){if(!b)k=Array.prototype.slice.call(k,0,c);else if(n||f||g)k.length=c;g&&k.push(g)}n=k}else n=a;return n};function Va(a){return function(b){if(b==null||b=="")b=new a;else{b=JSON.parse(b);if(!Array.isArray(b))throw Error("dnarr");ya(b,32);b=new a(b)}return b}};function Wa(a){this.o=S(a)}w(Wa,U);function Xa(a){this.o=S(a)}w(Xa,U);function Ya(a){this.o=S(a)}w(Ya,U);function Za(a){this.o=S(a)}w(Za,U);var $a=Va(Za);function X(a,b){a=a.getElementsByTagName("META");for(var c=0;c<a.length;++c)if(a[c].getAttribute("name")===b)return a[c].getAttribute("content")||"";return""};function ab(a,b){this.head=a;this.body=b;this.g=[];X(b,"sampling_mod");a=X(b,"namespace");if(!a){a=Math.random;a="ns-"+a().toString(36).substr(2,5);a:{var c=c===void 0?0:c;for(var d=b.getElementsByTagName("META"),h=0;h<d.length;++h)if(d[h].getAttribute("name")==="namespace"&&d[h].getAttribute("index")===c.toString()){d[h].setAttribute("content",a);break a}d=b.querySelector("#mys-meta");d||(d=document.createElement("div"),d.id="mys-meta",d.style.position="absolute",d.style.display="none",b.appendChild(d));
|
|
b=document.createElement("META");b.setAttribute("name","namespace");b.setAttribute("content",a);b.setAttribute("index",c.toString());d.appendChild(b)}}if(!(this.g.length>0))for(c=X(this.body,"environment"),c=x(c.split("|")),b=c.next();!b.done;b=c.next())(b=b.value)&&this.g.push(b)}function Y(a,b){a.body.dispatchEvent(new CustomEvent(b,{detail:void 0}))};function bb(a){this.o=S(a)}w(bb,U);var cb=Va(bb);function db(a){this.l=a;this.config={P:!1,O:100};this.i=document.createElement("span");this.g=document.createElement("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)}
|
|
db.prototype.wait=function(){var a=this;if(!this.config.P&&(Y(this.l,"spanStart"),this.l.body.appendChild(this.g),!eb(this)))return new Promise(function(b){var c=setInterval(function(){eb(a)&&(clearInterval(c),b())},a.config.O)})};function eb(a){if(a.i.offsetWidth<=1||a.i.offsetHeight<=1)return!1;a.g.remove();Y(a.l,"spanReady");return!0};function fb(a){this.config=a;this.g=Ta(a,Xa,1);Ta(a,Ya,12);Ta(this.g,Wa,10)};function gb(){this.i=this.g=!1;this.l=[]}function hb(a){a.l.length=0;a.i=!0}function ib(a,b){function c(){a.i=!1;var d=a.l.shift();return d===void 0?(a.g=!1,Promise.resolve()):ib(a,d())}a.g=!0;return b?b.then(c,function(){if(a.i)return c();a.g=!1;return Promise.reject()}):c()}function jb(a,b){b=x(b);for(var c=b.next();!c.done;c=b.next())a.l.push(c.value);if(!a.g)return ib(a)};function Z(a,b){this.v=new gb;this.g=0;this.i=new ab(a,b)}Z.prototype.C=function(){return this.g};function kb(a){hb(a.v);return jb(a.v,[function(){if(!a.A){var b=X(a.i.body,"render_config")||"[]";b=cb(b);b=new fb(b);a.A=b}b=(new db(a.i)).wait();Y(a.i,"browserStart");Y(a.i,"browserStartEnd");a.g&=-31;a.g|=2;return b},function(){Y(a.i,"browserReady");Y(a.i,"browserReadyEnd");a.g|=4;Y(a.i,"overallReady")},function(){Y(a.i,"browserQuiet");Y(a.i,"browserQuietEnd");a.g|=8}])}
|
|
Z.prototype.l=function(){var a=this;this.g&=-31;this.g|=1;var b=0,c=this.i.body;c.addEventListener("browserRender",function(){++b;if(b===1)Y(a.i,"overallStart"),lb(a).then(function(){Y(a.i,"overallQuiet")});else{var d=c.clientHeight;c.clientWidth&&d&&lb(a)}})};function lb(a){$a(X(a.i.body,"engine_msg")||"[]");return kb(a)||Promise.resolve()};var mb;B("mys.engine.init",function(a,b){mb=new Z(a,b);mb.l()});B("mys.engine.stage",function(){var a;return((a=mb)==null?void 0:a.g)||0});B("mys.Engine",Z);B("mys.Engine.prototype.i",Z.prototype.l);B("mys.Engine.prototype.s",Z.prototype.C);}).call(this);
|