Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'use strict';
- /** @type {function(!Object): ?} */
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(name) {
- return typeof name;
- } : function(obj) {
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
- };
- /** @type {!Array} */
- var _cf = _cf || [];
- var bmak = {
- ver: 1.43,
- ke_cnt_lmt: 150,
- mme_cnt_lmt: 100,
- mduce_cnt_lmt: 75,
- pme_cnt_lmt: 25,
- pduce_cnt_lmt: 25,
- tme_cnt_lmt: 25,
- tduce_cnt_lmt: 25,
- doe_cnt_lmt: 10,
- dme_cnt_lmt: 10,
- vc_cnt_lmt: 100,
- doa_throttle: 0,
- dma_throttle: 0,
- session_id: 'default_session',
- js_post: false,
- loc: '',
- cf_url: ('https:' === document.location.protocol ? 'https://' : 'http://') + 'apid.cformanalytics.com/api/v1/attempt',
- auth: '',
- api_public_key: null,
- aj_lmt_doact: 1,
- aj_lmt_dmact: 1,
- aj_lmt_tact: 1,
- ce_js_post: 0,
- init_time: 0,
- informinfo: '',
- prevfid: -1,
- fidcnt: 0,
- sensor_data: 0,
- ins: null,
- cns: null,
- enGetLoc: 0,
- enReadDocUrl: 0,
- disFpCalOnTimeout: 0,
- xagg: -1,
- pen: -1,
- brow: '',
- browver: '',
- psub: '-',
- lang: '-',
- prod: '-',
- plen: -1,
- doadma_en: 0,
- sdfn: [],
- d2: 0,
- d3: 0,
- thr: 0,
- cs: '0a46G5m17Vrp4o4c',
- hn: 'unk',
- z1: 0,
- o9: 0,
- vc: '',
- y1: 2016,
- ta: 0,
- tst: -1,
- t_tst: 0,
- ckie: '_abck',
- n_ck: '0',
- ckurl: 0,
- bm: false,
- mr: '-1',
- altFonts: false,
- rst: false,
- runFonts: true,
- fsp: false,
- mn_mc_lmt: 10,
- mn_state: 0,
- mn_mc_indx: 0,
- mn_sen: 0,
- mn_tout: 100,
- mn_stout: 1e3,
- mn_ct: 1,
- mn_cc: '',
- mn_cd: 1e4,
- mn_lc: [],
- mn_ld: [],
- mn_lcl: 0,
- mn_al: [],
- mn_il: [],
- mn_tcl: [],
- mn_r: [],
- mn_abck: '',
- mn_psn: '',
- mn_ts: '',
- mn_lg: [],
- ir: function handleMessageFromWorker() {
- bmak.start_ts = Date.now ? Date.now() : +new Date;
- bmak.kact = '';
- /** @type {number} */
- bmak.ke_cnt = 0;
- /** @type {number} */
- bmak.ke_vel = 0;
- bmak.mact = '';
- /** @type {number} */
- bmak.mme_cnt = 0;
- /** @type {number} */
- bmak.mduce_cnt = 0;
- /** @type {number} */
- bmak.me_vel = 0;
- bmak.pact = '';
- /** @type {number} */
- bmak.pme_cnt = 0;
- /** @type {number} */
- bmak.pduce_cnt = 0;
- /** @type {number} */
- bmak.pe_vel = 0;
- bmak.tact = '';
- /** @type {number} */
- bmak.tme_cnt = 0;
- /** @type {number} */
- bmak.tduce_cnt = 0;
- /** @type {number} */
- bmak.te_vel = 0;
- bmak.doact = '';
- /** @type {number} */
- bmak.doe_cnt = 0;
- /** @type {number} */
- bmak.doe_vel = 0;
- bmak.dmact = '';
- /** @type {number} */
- bmak.dme_cnt = 0;
- /** @type {number} */
- bmak.dme_vel = 0;
- bmak.vcact = '';
- /** @type {number} */
- bmak.vc_cnt = 0;
- /** @type {number} */
- bmak.aj_indx = 0;
- /** @type {number} */
- bmak.aj_ss = 0;
- /** @type {number} */
- bmak.aj_type = -1;
- /** @type {number} */
- bmak.aj_indx_doact = 0;
- /** @type {number} */
- bmak.aj_indx_dmact = 0;
- /** @type {number} */
- bmak.aj_indx_tact = 0;
- /** @type {number} */
- bmak.me_cnt = 0;
- /** @type {number} */
- bmak.pe_cnt = 0;
- /** @type {number} */
- bmak.te_cnt = 0;
- },
- get_cf_date: function handleMessageFromWorker() {
- return Date.now ? Date.now() : +new Date;
- },
- sd_debug: function innerExpandValues(context) {
- if (!bmak.js_post) {
- var accContext = context;
- if ('string' == (typeof _sd_trace === "undefined" ? "undefined" : _typeof(_sd_trace))) {
- _sd_trace = _sd_trace + accContext;
- } else {
- _sd_trace = accContext;
- }
- }
- },
- pi: function pi(name) {
- return parseInt(name);
- },
- uar: function formatTagString() {
- return window.navigator.userAgent.replace(/\\|"/g, '');
- },
- gd: function gd() {
- var artistTrack = bmak.uar();
- var t = '' + bmak.ab(artistTrack);
- /** @type {number} */
- var e = bmak.start_ts / 2;
- var n = window.screen ? window.screen.availWidth : -1;
- var o = window.screen ? window.screen.availHeight : -1;
- var m = window.screen ? window.screen.width : -1;
- var r = window.screen ? window.screen.height : -1;
- var i = window.innerWidth || document.body.clientWidth;
- var c = window.innerHeight || document.body.clientHeight;
- var b = window.outerWidth || document.body.outerWidth;
- bmak.z1 = bmak.pi(bmak.start_ts / (bmak.y1 * bmak.y1));
- var lastNewline = Math.random();
- var I = bmak.pi(1e3 * lastNewline / 2);
- var l = lastNewline + '';
- return l = l.slice(0, 11) + I, bmak.get_browser(), bmak.bc(), bmak.bmisc(), artistTrack + ',uaend,' + bmak.xagg + ',' + bmak.psub + ',' + bmak.lang + ',' + bmak.prod + ',' + bmak.plen + ',' + bmak.pen + ',' + bmak.wen + ',' + bmak.den + ',' + bmak.z1 + ',' + bmak.d3 + ',' + n + ',' + o + ',' + m + ',' + r + ',' + i + ',' + c + ',' + b + ',' +
- bmak.bd() + ',' + t + ',' + l + ',' + e + ',loc:' + bmak.loc;
- },
- get_browser: function get_browser() {
- if (navigator.productSub) {
- bmak.psub = navigator.productSub;
- }
- if (navigator.language) {
- bmak.lang = navigator.language;
- }
- if (navigator.product) {
- bmak.prod = navigator.product;
- }
- bmak.plen = void 0 !== navigator.plugins ? navigator.plugins.length : -1;
- },
- bc: function bc() {
- /** @type {number} */
- var a = window.addEventListener ? 1 : 0;
- /** @type {number} */
- var b = window.XMLHttpRequest ? 1 : 0;
- /** @type {number} */
- var c = window.XDomainRequest ? 1 : 0;
- /** @type {number} */
- var n = window.emit ? 1 : 0;
- /** @type {number} */
- var o = window.DeviceOrientationEvent ? 1 : 0;
- /** @type {number} */
- var m = window.DeviceMotionEvent ? 1 : 0;
- /** @type {number} */
- var r = window.TouchEvent ? 1 : 0;
- /** @type {number} */
- var i = window.spawn ? 1 : 0;
- /** @type {number} */
- var e = window.innerWidth ? 1 : 0;
- /** @type {number} */
- var t = window.outerWidth ? 1 : 0;
- /** @type {number} */
- var d = window.chrome ? 1 : 0;
- /** @type {number} */
- var k = Function.prototype.bind ? 1 : 0;
- /** @type {number} */
- var l = window.Buffer ? 1 : 0;
- /** @type {number} */
- var s = window.PointerEvent ? 1 : 0;
- /** @type {number} */
- bmak.xagg = a + (b << 1) + (c << 2) + (n << 3) + (o << 4) + (m << 5) + (r << 6) + (i << 7) + (e << 8) + (t << 9) + (d << 10) + (k << 11) + (l << 12) + (s << 13);
- },
- bmisc: function bmisc() {
- /** @type {number} */
- bmak.pen = window._phantom ? 1 : 0;
- /** @type {number} */
- bmak.wen = window.webdriver ? 1 : 0;
- /** @type {number} */
- bmak.den = window.domAutomation ? 1 : 0;
- },
- bd: function innerExpandValues() {
- /** @type {!Array} */
- var EnvJasmine = [];
- /** @type {number} */
- var DOMContentLoaded = window.callPhantom ? 1 : 0;
- EnvJasmine.push(',cpen:' + DOMContentLoaded);
- try {
- /** @type {number} */
- var code = (new Function('return/*@cc_on!@*/!1'))() ? 1 : 0;
- } catch (a) {
- /** @type {number} */
- code = 0;
- }
- EnvJasmine.push('i1:' + code);
- /** @type {number} */
- var _V5 = 'number' == _typeof(document.documentMode) ? 1 : 0;
- EnvJasmine.push('dm:' + _V5);
- /** @type {number} */
- var PL$23 = window.chrome && window.chrome.webstore ? 1 : 0;
- EnvJasmine.push('cwen:' + PL$23);
- /** @type {number} */
- var PL$20 = navigator.onLine ? 1 : 0;
- EnvJasmine.push('non:' + PL$20);
- /** @type {number} */
- var PL$15 = window.opera ? 1 : 0;
- EnvJasmine.push('opc:' + PL$15);
- /** @type {number} */
- var status = 'undefined' != (typeof InstallTrigger === "undefined" ? "undefined" : _typeof(InstallTrigger)) ? 1 : 0;
- EnvJasmine.push('fc:' + status);
- /** @type {number} */
- var passed = window.HTMLElement && Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0 ? 1 : 0;
- EnvJasmine.push('sc:' + passed);
- /** @type {number} */
- var failed = 'function' == _typeof(window.RTCPeerConnection) || 'function' == _typeof(window.mozRTCPeerConnection) || 'function' == _typeof(window.webkitRTCPeerConnection) ? 1 : 0;
- EnvJasmine.push('wrc:' + failed);
- var d = 'mozInnerScreenY' in window ? window.mozInnerScreenY : 0;
- EnvJasmine.push('isc:' + d);
- bmak.d2 = bmak.pi(bmak.z1 / 23);
- /** @type {number} */
- var k = 'function' == _typeof(navigator.vibrate) ? 1 : 0;
- EnvJasmine.push('vib:' + k);
- /** @type {number} */
- var l = 'function' == _typeof(navigator.getBattery) ? 1 : 0;
- EnvJasmine.push('bat:' + l);
- /** @type {number} */
- var s = Array.prototype.forEach ? 0 : 1;
- EnvJasmine.push('x11:' + s);
- /** @type {number} */
- var u = 'FileReader' in window ? 1 : 0;
- return EnvJasmine.push('x12:' + u), EnvJasmine.join(',');
- },
- fas: function buildFullCalendar() {
- try {
- return Boolean(navigator.credentials) + (Boolean(navigator.appMinorVersion) << 1) + (Boolean(navigator.bluetooth) << 2) + (Boolean(navigator.storage) << 3) + (Boolean(Math.imul) << 4) + (Boolean(navigator.getGamepads) << 5) + (Boolean(navigator.getStorageUpdates) << 6) + (Boolean(navigator.hardwareConcurrency) << 7) + (Boolean(navigator.mediaDevices) << 8) + (Boolean(navigator.mozAlarms) << 9) + (Boolean(navigator.mozConnection) << 10) + (Boolean(navigator.mozIsLocallyAvailable) << 11) + (Boolean(navigator.mozPhoneNumberService) << 12) + (Boolean(navigator.msManipulationViewsEnabled) <<
- 13) + (Boolean(navigator.permissions) << 14) + (Boolean(navigator.registerProtocolHandler) << 15) + (Boolean(navigator.requestMediaKeySystemAccess) << 16) + (Boolean(navigator.requestWakeLock) << 17) + (Boolean(navigator.sendBeacon) << 18) + (Boolean(navigator.serviceWorker) << 19) + (Boolean(navigator.storeWebWideTrackingException) << 20) + (Boolean(navigator.webkitGetGamepads) << 21) + (Boolean(navigator.webkitTemporaryStorage) << 22) + (Boolean(Number.parseInt) << 23) + (Boolean(Math.hypot) << 24);
- } catch (a) {
- return 0;
- }
- },
- getmr: function innerExpandValues() {
- try {
- if ('undefined' == (typeof performance === "undefined" ? "undefined" : _typeof(performance)) || void 0 === performance.now || 'undefined' == (typeof JSON === "undefined" ? "undefined" : _typeof(JSON))) {
- return void(bmak.mr = 'undef');
- }
- var a = '';
- /** @type {number} */
- var t = 1e3;
- /** @type {!Array} */
- var PL$13 = [Math.abs, Math.acos, Math.asin, Math.atanh, Math.cbrt, Math.exp, Math.random, Math.round, Math.sqrt, isFinite, isNaN, parseFloat, parseInt, JSON.parse];
- /** @type {number} */
- var PL$17 = 0;
- for (; PL$17 < PL$13.length; PL$17++) {
- /** @type {!Array} */
- var o = [];
- /** @type {number} */
- var yDiff = 0;
- var yMin = performance.now();
- /** @type {number} */
- var xDiff = 0;
- /** @type {number} */
- var up = 0;
- if (void 0 !== PL$13[PL$17]) {
- /** @type {number} */
- xDiff = 0;
- for (; xDiff < t && yDiff < .6; xDiff++) {
- var cornerRad = performance.now();
- /** @type {number} */
- var d = 0;
- for (; d < 4e3; d++) {
- PL$13[PL$17](3.14);
- }
- var yMax = performance.now();
- o.push(Math.round(1e3 * (yMax - cornerRad)));
- /** @type {number} */
- yDiff = yMax - yMin;
- }
- var l = o.sort();
- /** @type {number} */
- up = l[Math.floor(l.length / 2)] / 5;
- }
- a = a + up + ',';
- }
- bmak.mr = a;
- } catch (a) {
- bmak.mr = 'exception';
- }
- },
- sed: function sed() {
- var a;
- a = window.$cdc_asdjflasutopfhvcZLmcfl_ || document.$cdc_asdjflasutopfhvcZLmcfl_ ? '1' : '0';
- var t;
- t = null != window.document.documentElement.getAttribute('webdriver') ? '1' : '0';
- var e;
- e = void 0 !== navigator.webdriver && navigator.webdriver ? '1' : '0';
- var n;
- n = void 0 !== window.webdriver ? '1' : '0';
- var o;
- o = void 0 !== window.XPathResult || void 0 !== document.XPathResult ? '1' : '0';
- var m;
- m = null != window.document.documentElement.getAttribute('driver') ? '1' : '0';
- var r;
- return r = null != window.document.documentElement.getAttribute('selenium') ? '1' : '0', [a, t, e, n, o, m, r].join(',');
- },
- cma: function handleFooLinkMouseOut(event, el) {
- try {
- if (1 == el && bmak.mme_cnt < bmak.mme_cnt_lmt || 1 != el && bmak.mduce_cnt < bmak.mduce_cnt_lmt) {
- var e = event || window.event;
- /** @type {number} */
- var tfm = -1;
- /** @type {number} */
- var i = -1;
- if (e && e.pageX && e.pageY) {
- tfm = Math.floor(e.pageX);
- i = Math.floor(e.pageY);
- } else {
- if (e && e.clientX && e.clientY) {
- tfm = Math.floor(e.clientX);
- i = Math.floor(e.clientY);
- }
- }
- var ofs = e.toElement;
- if (null == ofs) {
- ofs = e.target;
- }
- var r = bmak.gf(ofs);
- /** @type {number} */
- var jQId = bmak.get_cf_date() - bmak.start_ts;
- var s = bmak.me_cnt + ',' + el + ',' + jQId + ',' + tfm + ',' + i;
- if (1 != el) {
- s = s + ',' + r;
- var n = void 0 !== e.which ? e.which : e.button;
- if (null != n && 1 != n) {
- s = s + ',' + n;
- }
- }
- s = s + ';';
- bmak.me_vel = bmak.me_vel + bmak.me_cnt + el + jQId + tfm + i;
- bmak.mact = bmak.mact + s;
- bmak.ta += jQId;
- }
- if (1 == el) {
- bmak.mme_cnt++;
- } else {
- bmak.mduce_cnt++;
- }
- bmak.me_cnt++;
- if (bmak.js_post && 3 == el) {
- /** @type {number} */
- bmak.aj_type = 1;
- bmak.bpd();
- bmak.pd(true);
- /** @type {number} */
- bmak.ce_js_post = 1;
- }
- } catch (a) {}
- },
- x2: function isVarName() {
- var pad = bmak.ff;
- var s = pad(98) + pad(109) + pad(97) + pad(107) + pad(46) + pad(103) + pad(101) + pad(116);
- return s = s + pad(95) + pad(99) + pad(102) + pad(95), s = 'return ' + s + pad(100) + pad(97) + pad(116) + pad(101) + pad(40) + pad(41), s = s + ';', (new Function(s))();
- },
- cpa: function prefetchGroupsInfo(courseId, canCreateDiscussions) {
- try {
- /** @type {boolean} */
- var e = false;
- if (1 == canCreateDiscussions && bmak.pme_cnt < bmak.pme_cnt_lmt || 1 != canCreateDiscussions && bmak.pduce_cnt < bmak.pduce_cnt_lmt) {
- var props = courseId || window.event;
- if (props && 'mouse' != props.pointerType) {
- /** @type {boolean} */
- e = true;
- /** @type {number} */
- var g = -1;
- /** @type {number} */
- var b = -1;
- if (props && props.pageX && props.pageY) {
- g = Math.floor(props.pageX);
- b = Math.floor(props.pageY);
- } else {
- if (props && props.clientX && props.clientY) {
- g = Math.floor(props.clientX);
- b = Math.floor(props.clientY);
- }
- }
- /** @type {number} */
- var r = bmak.get_cf_date() - bmak.start_ts;
- var i = bmak.pe_cnt + ',' + canCreateDiscussions + ',' + r + ',' + g + ',' + b + ';';
- bmak.pe_vel = bmak.pe_vel + bmak.pe_cnt + canCreateDiscussions + r + g + b;
- bmak.pact = bmak.pact + i;
- bmak.ta += r;
- if (1 == canCreateDiscussions) {
- bmak.pme_cnt++;
- } else {
- bmak.pduce_cnt++;
- }
- }
- }
- if (1 == canCreateDiscussions) {
- bmak.pme_cnt++;
- } else {
- bmak.pduce_cnt++;
- }
- bmak.pe_cnt++;
- if (bmak.js_post && 3 == canCreateDiscussions && e) {
- /** @type {number} */
- bmak.aj_type = 2;
- bmak.bpd();
- bmak.pd(true);
- /** @type {number} */
- bmak.ce_js_post = 1;
- }
- } catch (a) {}
- },
- ab: function documentCompare(b) {
- if (null == b) {
- return -1;
- }
- try {
- /** @type {number} */
- var raw_unread_count = 0;
- /** @type {number} */
- var a = 0;
- for (; a < b.length; a++) {
- var delta = b.charCodeAt(a);
- if (delta < 128) {
- raw_unread_count = raw_unread_count + delta;
- }
- }
- return raw_unread_count;
- } catch (a) {
- return -2;
- }
- },
- ff: function makeColorMaterial(a) {
- return String.fromCharCode(a);
- },
- to: function BinaryBundle() {
- /** @type {number} */
- var x = bmak.x2() % 1e7;
- /** @type {number} */
- bmak.d3 = x;
- /** @type {number} */
- var fn = x;
- /** @type {number} */
- var e = 0;
- for (; e < 5; e++) {
- /** @type {number} */
- var n = bmak.pi(x / Math.pow(10, e)) % 10;
- /** @type {number} */
- var count = n + 1;
- var markerFactoryBody = 'return a' + bmak.cc(n) + count + ';';
- fn = (new Function('a', markerFactoryBody))(fn);
- }
- bmak.o9 = fn;
- },
- gf: function documentCompare(a) {
- var rv;
- if (rv = null == a ? document.activeElement : a, null == document.activeElement) {
- return -1;
- }
- var e = rv.getAttribute('name');
- if (null == e) {
- var n = rv.getAttribute('id');
- return null == n ? -1 : bmak.ab(n);
- }
- return bmak.ab(e);
- },
- cc: function makeColorMaterial(a) {
- /** @type {number} */
- var remainder = a % 4;
- if (2 == remainder) {
- /** @type {number} */
- remainder = 3;
- }
- /** @type {number} */
- var total = 42 + remainder;
- return String.fromCharCode(total);
- },
- isIgn: function documentCompare(a) {
- var el = document.activeElement;
- if (null == document.activeElement) {
- return 0;
- }
- var val = el.getAttribute('type');
- return 1 == (null == val ? -1 : bmak.get_type(val)) && bmak.fidcnt > 12 && -2 == a ? 1 : 0;
- },
- cka: function _processPhoneNumber(event, number) {
- try {
- var e = event || window.event;
- /** @type {number} */
- var n = -1;
- /** @type {number} */
- var s = 1;
- if (bmak.ke_cnt < bmak.ke_cnt_lmt && e) {
- n = e.keyCode;
- var f = e.charCode;
- /** @type {number} */
- var r = e.shiftKey ? 1 : 0;
- /** @type {number} */
- var g = e.ctrlKey ? 1 : 0;
- /** @type {number} */
- var b = e.metaKey ? 1 : 0;
- /** @type {number} */
- var alen = e.altKey ? 1 : 0;
- /** @type {number} */
- var j = 8 * r + 4 * g + 2 * b + alen;
- /** @type {number} */
- var m = bmak.get_cf_date() - bmak.start_ts;
- var dy = bmak.gf(null);
- /** @type {number} */
- var s = 0;
- if (f && n) {
- n = 0 != f && 0 != n && f != n ? -1 : 0 != n ? n : f;
- }
- if (0 == g && 0 == b && 0 == alen && n >= 32) {
- /** @type {number} */
- n = 3 == number && n >= 32 && n <= 126 ? -2 : n >= 33 && n <= 47 ? -3 : n >= 112 && n <= 123 ? -4 : -2;
- }
- if (dy != bmak.prevfid) {
- /** @type {number} */
- bmak.fidcnt = 0;
- bmak.prevfid = dy;
- } else {
- bmak.fidcnt = bmak.fidcnt + 1;
- }
- if (0 == bmak.isIgn(n)) {
- var top = bmak.ke_cnt + ',' + number + ',' + m + ',' + n + ',' + s + ',' + j + ',' + dy;
- if (null != e.isTrusted && false === e.isTrusted) {
- top = top + ',0';
- }
- top = top + ';';
- bmak.kact = bmak.kact + top;
- bmak.ke_vel = bmak.ke_vel + bmak.ke_cnt + number + m + n + j + dy;
- bmak.ta += m;
- } else {
- /** @type {number} */
- s = 0;
- }
- }
- if (s && e) {
- bmak.ke_cnt++;
- }
- if (!(!bmak.js_post || 1 != number || 13 != n && 9 != n)) {
- /** @type {number} */
- bmak.aj_type = 3;
- bmak.bpd();
- bmak.pd(true);
- /** @type {number} */
- bmak.ce_js_post = 1;
- }
- } catch (a) {}
- },
- cta: function handleFooLinkMouseOut(event, el) {
- try {
- if (1 == el && bmak.tme_cnt < bmak.tme_cnt_lmt || 1 != el && bmak.tduce_cnt < bmak.tduce_cnt_lmt) {
- var e = event || window.event;
- /** @type {number} */
- var lib = -1;
- /** @type {number} */
- var code = -1;
- if (e && e.pageX && e.pageY) {
- lib = Math.floor(e.pageX);
- code = Math.floor(e.pageY);
- } else {
- if (e && e.clientX && e.clientY) {
- lib = Math.floor(e.clientX);
- code = Math.floor(e.clientY);
- }
- }
- /** @type {number} */
- var name = bmak.get_cf_date() - bmak.start_ts;
- var r = bmak.te_cnt + ',' + el + ',' + name + ',' + lib + ',' + code + ';';
- bmak.tact = bmak.tact + r;
- bmak.ta += name;
- bmak.te_vel = bmak.te_vel + bmak.te_cnt + el + name + lib + code;
- /** @type {number} */
- bmak.doa_throttle = 0;
- /** @type {number} */
- bmak.dma_throttle = 0;
- }
- if (1 == el) {
- bmak.tme_cnt++;
- } else {
- bmak.tduce_cnt++;
- }
- bmak.te_cnt++;
- if (bmak.js_post && 2 == el && bmak.aj_indx_tact < bmak.aj_lmt_tact) {
- /** @type {number} */
- bmak.aj_type = 5;
- bmak.bpd();
- bmak.pd(true);
- /** @type {number} */
- bmak.ce_js_post = 1;
- bmak.aj_indx_tact++;
- }
- } catch (a) {}
- },
- getFloatVal: function get_step_data(increment) {
- try {
- if (-1 != bmak.chknull(increment) && !isNaN(increment)) {
- /** @type {number} */
- var value = parseFloat(increment);
- if (!isNaN(value)) {
- return value.toFixed(2);
- }
- }
- } catch (a) {}
- return -1;
- },
- cdoa: function makeColorMaterial(a) {
- try {
- if (bmak.doe_cnt < bmak.doe_cnt_lmt && bmak.doa_throttle < 2 && a) {
- /** @type {number} */
- var t = bmak.get_cf_date() - bmak.start_ts;
- var e = bmak.getFloatVal(a.alpha);
- var n = bmak.getFloatVal(a.beta);
- var o = bmak.getFloatVal(a.gamma);
- var m = bmak.doe_cnt + ',' + t + ',' + e + ',' + n + ',' + o + ';';
- bmak.doact = bmak.doact + m;
- bmak.ta += t;
- bmak.doe_vel = bmak.doe_vel + bmak.doe_cnt + t;
- bmak.doe_cnt++;
- }
- if (bmak.js_post && bmak.doe_cnt > 1 && bmak.aj_indx_doact < bmak.aj_lmt_doact) {
- /** @type {number} */
- bmak.aj_type = 6;
- bmak.bpd();
- bmak.pd(true);
- /** @type {number} */
- bmak.ce_js_post = 1;
- bmak.aj_indx_doact++;
- }
- bmak.doa_throttle++;
- } catch (a) {}
- },
- cdma: function makeColorMaterial(a) {
- try {
- if (bmak.dme_cnt < bmak.dme_cnt_lmt && bmak.dma_throttle < 2 && a) {
- /** @type {number} */
- var t = bmak.get_cf_date() - bmak.start_ts;
- /** @type {number} */
- var e = -1;
- /** @type {number} */
- var n = -1;
- /** @type {number} */
- var o = -1;
- if (a.acceleration) {
- e = bmak.getFloatVal(a.acceleration.x);
- n = bmak.getFloatVal(a.acceleration.y);
- o = bmak.getFloatVal(a.acceleration.z);
- }
- /** @type {number} */
- var m = -1;
- /** @type {number} */
- var r = -1;
- /** @type {number} */
- var i = -1;
- if (a.accelerationIncludingGravity) {
- m = bmak.getFloatVal(a.accelerationIncludingGravity.x);
- r = bmak.getFloatVal(a.accelerationIncludingGravity.y);
- i = bmak.getFloatVal(a.accelerationIncludingGravity.z);
- }
- /** @type {number} */
- var c = -1;
- /** @type {number} */
- var b = -1;
- /** @type {number} */
- var d = 1;
- if (a.rotationRate) {
- c = bmak.getFloatVal(a.rotationRate.alpha);
- b = bmak.getFloatVal(a.rotationRate.beta);
- d = bmak.getFloatVal(a.rotationRate.gamma);
- }
- var k = bmak.dme_cnt + ',' + t + ',' + e + ',' + n + ',' + o + ',' + m + ',' + r + ',' + i + ',' + c + ',' + b + ',' + d + ';';
- bmak.dmact = bmak.dmact + k;
- bmak.ta += t;
- bmak.dme_vel = bmak.dme_vel + bmak.dme_cnt + t;
- bmak.dme_cnt++;
- }
- if (bmak.js_post && bmak.dme_cnt > 1 && bmak.aj_indx_dmact < bmak.aj_lmt_dmact) {
- /** @type {number} */
- bmak.aj_type = 7;
- bmak.bpd();
- bmak.pd(true);
- /** @type {number} */
- bmak.ce_js_post = 1;
- bmak.aj_indx_dmact++;
- }
- bmak.dma_throttle++;
- } catch (a) {}
- },
- get_type: function getCoreTestFilePath(module) {
- return module = module.toLowerCase(), 'text' == module || 'search' == module || 'url' == module || 'email' == module || 'tel' == module || 'number' == module ? 0 : 'password' == module ? 1 : 2;
- },
- chknull: function makeColorMaterial(a) {
- return null == a ? -1 : a;
- },
- getforminfo: function getforminfo() {
- var a = '';
- var t = '';
- var PL$13 = document.getElementsByTagName('input');
- /** @type {number} */
- var n = -1;
- /** @type {number} */
- var PL$17 = 0;
- for (; PL$17 < PL$13.length; PL$17++) {
- var matches = PL$13[PL$17];
- var r = bmak.ab(matches.getAttribute('name'));
- var i = bmak.ab(matches.getAttribute('id'));
- var c = matches.getAttribute('required');
- /** @type {number} */
- var b = null == c ? 0 : 1;
- var artistTrack = matches.getAttribute('type');
- var up = null == artistTrack ? -1 : bmak.get_type(artistTrack);
- var l = matches.getAttribute('autocomplete');
- if (null == l) {
- /** @type {number} */
- n = -1;
- } else {
- l = l.toLowerCase();
- /** @type {number} */
- n = 'off' == l ? 0 : 'on' == l ? 1 : 2;
- }
- var lead = matches.defaultValue;
- var type = matches.value;
- /** @type {number} */
- var GearType = 0;
- /** @type {number} */
- var weight_col = 0;
- if (lead && 0 != lead.length) {
- /** @type {number} */
- weight_col = 1;
- }
- if (!(!type || 0 == type.length || weight_col && type == lead)) {
- /** @type {number} */
- GearType = 1;
- }
- if (2 != up) {
- a = a + up + ',' + n + ',' + GearType + ',' + b + ',' + i + ',' + r + ',' + weight_col + ';';
- }
- t = t + GearType + ';';
- }
- return null == bmak.ins && (bmak.ins = t), bmak.cns = t, a;
- },
- startdoadma: function startdoadma() {
- if (0 == bmak.doadma_en && window.addEventListener) {
- window.addEventListener('deviceorientation', bmak.cdoa, true);
- window.addEventListener('devicemotion', bmak.cdma, true);
- /** @type {number} */
- bmak.doadma_en = 1;
- }
- /** @type {number} */
- bmak.doa_throttle = 0;
- /** @type {number} */
- bmak.dma_throttle = 0;
- },
- updatet: function updatet() {
- return bmak.get_cf_date() - bmak.start_ts;
- },
- htm: function makeColorMaterial(a) {
- bmak.cta(a, 1);
- },
- hts: function makeColorMaterial(a) {
- bmak.cta(a, 2);
- },
- hte: function makeColorMaterial(a) {
- bmak.cta(a, 3);
- },
- htc: function makeColorMaterial(a) {
- bmak.cta(a, 4);
- },
- hmm: function makeColorMaterial(a) {
- bmak.cma(a, 1);
- },
- hc: function makeColorMaterial(a) {
- bmak.cma(a, 2);
- },
- hmd: function makeColorMaterial(a) {
- bmak.cma(a, 3);
- },
- hmu: function makeColorMaterial(a) {
- bmak.cma(a, 4);
- },
- hpd: function makeColorMaterial(a) {
- bmak.cpa(a, 3);
- },
- hpu: function makeColorMaterial(a) {
- bmak.cpa(a, 4);
- },
- hkd: function makeColorMaterial(a) {
- bmak.cka(a, 1);
- },
- hku: function makeColorMaterial(a) {
- bmak.cka(a, 2);
- },
- hkp: function makeColorMaterial(a) {
- bmak.cka(a, 3);
- },
- cfsubmit: function cfsubmit() {
- bmak.sd_debug('<cfsubmit/>');
- if (bmak.js_post) {
- /** @type {number} */
- bmak.aj_type = 4;
- bmak.bpd();
- if (0 == bmak.ce_js_post && bmak.cns != bmak.ins) {
- bmak.pd(true);
- }
- } else {
- bmak.bpd();
- }
- },
- getdurl: function formatTagString() {
- return bmak.enReadDocUrl ? document.URL.replace(/\\|"/g, '') : '';
- },
- x1: function x1() {
- return Math.floor(16777216 * (1 + Math.random())).toString(36);
- },
- gck: function gck() {
- var i = bmak.x1() + bmak.x1() + bmak.x1() + bmak.x1();
- return bmak.set_cookie(bmak.ckie, i + '_' + bmak.ab(i)), i;
- },
- set_cookie: function compareAlphabetically(a, b) {
- if (void 0 !== document.cookie) {
- document.cookie = a + '=' + b + '; path=/; expires=Fri, 01 Feb 2025 08:00:00 GMT;';
- }
- },
- get_cookie: function get_cookie() {
- try {
- var a = bmak.cookie_chk_read(bmak.ckie);
- return a || (bmak.n_ck = 1, a = bmak.bm ? '2' : bmak.gck()), a;
- } catch (a) {}
- return '2';
- },
- cookie_chk_read: function documentCompare(a) {
- if (document.cookie) {
- var data = a + '=';
- var PL$13 = document.cookie.split('; ');
- /** @type {number} */
- var PL$17 = 0;
- for (; PL$17 < PL$13.length; PL$17++) {
- var packByNumType = PL$13[PL$17];
- if (0 === packByNumType.indexOf(data)) {
- var c_user = packByNumType.substring(data.length, packByNumType.length);
- if (!bmak.bm) {
- return c_user;
- }
- if (-1 != c_user.indexOf('~') || -1 != decodeURIComponent(c_user).indexOf('~')) {
- return c_user;
- }
- }
- }
- }
- return false;
- },
- bpd: function _getDataset() {
- bmak.sd_debug('<bpd>');
- /** @type {number} */
- var $start = 0;
- try {
- $start = bmak.get_cf_date();
- var mma_frontpage_item_course_search = bmak.updatet();
- var _maskLayer = '3';
- if (bmak.ckie) {
- _maskLayer = bmak.get_cookie();
- }
- var n = bmak.gd();
- var moz = window.DeviceOrientationEvent ? 'do_en' : 'do_dis';
- var remainder = window.DeviceMotionEvent ? 'dm_en' : 'dm_dis';
- var size1 = window.TouchEvent ? 't_en' : 't_dis';
- var i = moz + ',' + remainder + ',' + size1;
- var c = bmak.getforminfo();
- var b = bmak.getdurl();
- var d = bmak.aj_type + ',' + bmak.aj_indx;
- if (!bmak.fpcf.fpValCalculated && (0 == bmak.js_post || bmak.aj_indx > 0)) {
- bmak.fpcf.fpVal();
- }
- var mma_frontpage_item_all_course_list = bmak.ke_vel + bmak.me_vel + bmak.doe_vel + bmak.dme_vel + bmak.te_vel + bmak.pe_vel;
- /** @type {number} */
- var l = bmak.get_cf_date() - bmak.start_ts;
- var s = bmak.pi(bmak.d2 / 6);
- var u = bmak.fas();
- /** @type {!Array} */
- var frontpageItems = [bmak.ke_vel + 1, bmak.me_vel + 1, bmak.te_vel, bmak.doe_vel, bmak.dme_vel, bmak.pe_vel, mma_frontpage_item_all_course_list, mma_frontpage_item_course_search, bmak.init_time, bmak.start_ts, bmak.fpcf.td, bmak.d2, bmak.ke_cnt, bmak.me_cnt, s, bmak.pe_cnt, bmak.te_cnt, l, bmak.ta, bmak.n_ck, _maskLayer, bmak.ab(_maskLayer), bmak.fpcf.rVal, bmak.fpcf.rCFP, u];
- var f = frontpageItems.join(',');
- var p = '' + bmak.ab(bmak.fpcf.fpValstr);
- var v = bmak.sed();
- var h = '';
- var g = '';
- if (void 0 !== bmak.mn_r[1]) {
- h = bmak.mn_r[1];
- }
- if (void 0 !== bmak.mn_r[2]) {
- g = bmak.mn_r[2];
- }
- bmak.sensor_data = bmak.ver + '-1,2,-94,-100,' + n + '-1,2,-94,-101,' + i + '-1,2,-94,-105,' + bmak.informinfo + '-1,2,-94,-102,' + c + '-1,2,-94,-108,' + bmak.kact + '-1,2,-94,-110,' + bmak.mact + '-1,2,-94,-117,' + bmak.tact + '-1,2,-94,-111,' + bmak.doact + '-1,2,-94,-109,' + bmak.dmact + '-1,2,-94,-114,' + bmak.pact + '-1,2,-94,-103,' + bmak.vcact + '-1,2,-94,-112,' + b + '-1,2,-94,-115,' + f + '-1,2,-94,-106,' + d;
- bmak.sensor_data = bmak.sensor_data + '-1,2,-94,-119,' + bmak.mr + '-1,2,-94,-122,' + v + '-1,2,-94,-123,' + h + '-1,2,-94,-124,' + g;
- var w = bmak.ab(bmak.sensor_data);
- bmak.sensor_data = bmak.sensor_data + '-1,2,-94,-70,' + bmak.fpcf.fpValstr + '-1,2,-94,-80,' + p + '-1,2,-94,-116,' + bmak.o9 + '-1,2,-94,-118,' + w + '-1,2,-94,-121,';
- bmak.sd_debug(',s1:' + bmak.sensor_data.slice(0, 10));
- } catch (filter) {
- try {
- bmak.sd_debug(',s2:' + filter);
- bmak.sensor_data = bmak.ver + '-1,2,-94,-100,' + bmak.uar() + '-1,2,-94,-120,' + filter.replace(/"/g, '\'');
- } catch (a) {
- bmak.sd_debug(',s3:' + a);
- }
- }
- try {
- var y = bmak.od(bmak.cs, bmak.api_public_key).slice(0, 16);
- var ot = Math.floor(bmak.get_cf_date() / 36e5);
- var j = bmak.get_cf_date();
- var $eol = y + bmak.od(ot, y) + bmak.sensor_data;
- bmak.sensor_data = $eol + ';' + (bmak.get_cf_date() - $start) + ';' + bmak.tst + ';' + (bmak.get_cf_date() - j);
- } catch (a) {}
- try {
- if (0 == bmak.sdfn.length) {
- bmak.sd_debug(',s4');
- if (document.getElementById('sensor_data')) {
- bmak.sd_debug(',s5');
- document.getElementById('sensor_data').value = bmak.sensor_data;
- }
- } else {
- bmak.sd_debug(',s6:');
- /** @type {number} */
- var S = 0;
- for (; S < bmak.sdfn.length; S++) {
- if (bmak.sd_debug(',a-' + bmak.sdfn[S]), document.getElementById(bmak.sdfn[S])) {
- bmak.sd_debug(',b');
- document.getElementById(bmak.sdfn[S]).value = bmak.sensor_data;
- var value = document.getElementById(bmak.sdfn[S]).value;
- if ('string' == (typeof value === "undefined" ? "undefined" : _typeof(value))) {
- bmak.sd_debug(',c-' + value.slice(0, 5));
- } else {
- bmak.sd_debug(',c-null');
- }
- } else {
- bmak.sd_debug(',d');
- }
- }
- }
- } catch (a) {
- bmak.sd_debug(',s7:' + a + ',' + bmak.sensor_data);
- }
- bmak.sd_debug('</bpd>');
- },
- od: function propertyStringReplacer(value, key) {
- try {
- /** @type {string} */
- value = String(value);
- /** @type {string} */
- key = String(key);
- /** @type {!Array} */
- var e = [];
- var entry = key.length;
- if (entry > 0) {
- /** @type {number} */
- var property = 0;
- for (; property < value.length; property++) {
- var props = value.charCodeAt(property);
- var prop = value.charAt(property);
- var augmentWritable = key.charCodeAt(property % entry);
- props = bmak.rir(props, 47, 57, augmentWritable);
- if (props != value.charCodeAt(property)) {
- prop = String.fromCharCode(props);
- }
- e.push(prop);
- }
- if (e.length > 0) {
- return e.join('');
- }
- }
- } catch (a) {}
- return value;
- },
- rir: function _findLF(i, n, t, chunk) {
- return i > n && i <= t && (i = i + chunk % (t - n)) > t && (i = i - t + n), i;
- },
- lvc: function makeColorMaterial(b) {
- try {
- if (bmak.vc_cnt < bmak.vc_cnt_lmt) {
- /** @type {number} */
- var w = bmak.get_cf_date() - bmak.start_ts;
- var e = b + ',' + w + ';';
- bmak.vcact = bmak.vcact + e;
- }
- bmak.vc_cnt++;
- } catch (a) {}
- },
- hvc: function hvc() {
- try {
- /** @type {number} */
- var artistTrack = 1;
- if (document[bmak.hn]) {
- /** @type {number} */
- artistTrack = 0;
- }
- bmak.lvc(artistTrack);
- } catch (a) {}
- },
- hb: function makeColorMaterial(a) {
- bmak.lvc(2);
- },
- hf: function makeColorMaterial(a) {
- bmak.lvc(3);
- },
- rve: function rve() {
- if (void 0 !== document.hidden) {
- bmak.hn = 'hidden';
- bmak.vc = 'visibilitychange';
- } else {
- if (void 0 !== document.mozHidden) {
- bmak.hn = 'mozHidden';
- bmak.vc = 'mozvisibilitychange';
- } else {
- if (void 0 !== document.msHidden) {
- bmak.hn = 'msHidden';
- bmak.vc = 'msvisibilitychange';
- } else {
- if (void 0 !== document.webkitHidden) {
- bmak.hn = 'webkitHidden';
- bmak.vc = 'webkitvisibilitychange';
- }
- }
- }
- }
- if (document.addEventListener) {
- if ('unk' != bmak.hn) {
- document.addEventListener(bmak.vc, bmak.hvc, true);
- }
- } else {
- if (document.attachEvent && 'unk' != bmak.hn) {
- document.attachEvent(bmak.vc, bmak.hvc);
- }
- }
- window.onblur = bmak.hb;
- window.onfocus = bmak.hf;
- },
- startTracking: function _executeCallbackAfterASufficientIdlePeriod() {
- bmak.startdoadma();
- try {
- bmak.to();
- } catch (a) {
- /** @type {number} */
- bmak.o9 = -654321;
- }
- setInterval(function() {
- bmak.startdoadma();
- }, 3e3);
- if (document.addEventListener) {
- document.addEventListener('touchmove', bmak.htm, true);
- document.addEventListener('touchstart', bmak.hts, true);
- document.addEventListener('touchend', bmak.hte, true);
- document.addEventListener('touchcancel', bmak.htc, true);
- document.addEventListener('mousemove', bmak.hmm, true);
- document.addEventListener('click', bmak.hc, true);
- document.addEventListener('mousedown', bmak.hmd, true);
- document.addEventListener('mouseup', bmak.hmu, true);
- document.addEventListener('pointerdown', bmak.hpd, true);
- document.addEventListener('pointerup', bmak.hpu, true);
- document.addEventListener('keydown', bmak.hkd, true);
- document.addEventListener('keyup', bmak.hku, true);
- document.addEventListener('keypress', bmak.hkp, true);
- } else {
- if (document.attachEvent) {
- document.attachEvent('touchmove', bmak.htm);
- document.attachEvent('touchstart', bmak.hts);
- document.attachEvent('touchend', bmak.hte);
- document.attachEvent('touchcancel', bmak.htc);
- document.attachEvent('onmousemove', bmak.hmm);
- document.attachEvent('onclick', bmak.hc);
- document.attachEvent('onmousedown', bmak.hmd);
- document.attachEvent('onmouseup', bmak.hmu);
- document.attachEvent('onpointerdown', bmak.hpd);
- document.attachEvent('onpointerup', bmak.hpu);
- document.attachEvent('onkeydown', bmak.hkd);
- document.attachEvent('onkeyup', bmak.hku);
- document.attachEvent('onkeypress', bmak.hkp);
- }
- }
- bmak.rve();
- bmak.informinfo = bmak.getforminfo();
- if (bmak.js_post) {
- /** @type {number} */
- bmak.aj_type = 0;
- bmak.bpd();
- bmak.pd(true);
- }
- },
- gb: function compareAlphabetically(a, b) {
- var n = a.charCodeAt(b);
- return n = n > 255 ? 0 : n;
- },
- encode: function encode(script) {
- if ('undefined' != (typeof btoa === "undefined" ? "undefined" : _typeof(btoa))) {
- return btoa(script);
- }
- var n;
- var e;
- var first;
- var bBody;
- var real_day;
- var aBody;
- var setValue;
- var c = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
- var real_year = '';
- /** @type {number} */
- var oALen = 3 * Math.floor(script.length / 3);
- /** @type {number} */
- var len = 0;
- for (; len < oALen; len = len + 3) {
- n = bmak.gb(script, len);
- e = bmak.gb(script, len + 1);
- first = bmak.gb(script, len + 2);
- /** @type {number} */
- bBody = n >> 2;
- /** @type {number} */
- real_day = ((3 & n) << 4) + (e >> 4);
- /** @type {number} */
- aBody = ((15 & e) << 2) + (first >> 6);
- /** @type {number} */
- setValue = 63 & first;
- real_year = real_year + c.charAt(bBody) + c.charAt(real_day) + c.charAt(aBody) + c.charAt(setValue);
- }
- return script.length % 3 == 1 && (n = bmak.gb(script, len), bBody = n >> 2, real_day = (3 & n) << 4, real_year = real_year + c.charAt(bBody) + c.charAt(real_day) + '=='), script.length % 3 == 2 && (n = bmak.gb(script, len), e = bmak.gb(script, len + 1), bBody = n >> 2, real_day = ((3 & n) << 4) + (e >> 4), aBody = (15 & e) << 2, real_year = real_year + c.charAt(bBody) + c.charAt(real_day) + c.charAt(aBody) + '='), real_year;
- },
- ie9OrLower: function isShallowEqual() {
- try {
- if ('string' == _typeof(navigator.appVersion) && -1 != navigator.appVersion.indexOf('MSIE')) {
- if (parseFloat(navigator.appVersion.split('MSIE')[1]) <= 9) {
- return true;
- }
- }
- } catch (a) {}
- return false;
- },
- apicall: function getXhr(url, callback) {
- var cookiesToString;
- cookiesToString = window.XDomainRequest ? new XDomainRequest : window.XMLHttpRequest ? new XMLHttpRequest : new ActiveXObject('Microsoft.XMLHTTP');
- cookiesToString.open('POST', url, callback);
- var CHUNK_SIZE = bmak.encode(bmak.api_public_key + ':');
- bmak.auth = ',"auth" : "' + CHUNK_SIZE + '"';
- if (cookiesToString.setRequestHeader) {
- cookiesToString.setRequestHeader('Content-type', 'application/json');
- cookiesToString.setRequestHeader('Authorization', 'Basic ' + CHUNK_SIZE);
- bmak.auth = '';
- }
- var cookies = '{"session_id" : "' + bmak.session_id + '","sensor_data" : "' + bmak.sensor_data + '"' + bmak.auth + '}';
- cookiesToString.send(cookies);
- },
- apicall_bm: function getXhr(url, options, callback) {
- var xhr;
- if (void 0 !== window.XMLHttpRequest) {
- /** @type {!XMLHttpRequest} */
- xhr = new XMLHttpRequest;
- } else {
- if (void 0 !== window.XDomainRequest) {
- /** @type {!XDomainRequest} */
- xhr = new XDomainRequest;
- /**
- * @return {undefined}
- */
- xhr.onload = function() {
- /** @type {number} */
- this.readyState = 4;
- if (this.onreadystatechange instanceof Function) {
- this.onreadystatechange();
- }
- };
- } else {
- xhr = new ActiveXObject('Microsoft.XMLHTTP');
- }
- }
- xhr.open('POST', url, options);
- if (void 0 !== xhr.withCredentials) {
- /** @type {boolean} */
- xhr.withCredentials = true;
- }
- var mime = '{"sensor_data":"' + bmak.sensor_data + '"}';
- /**
- * @return {undefined}
- */
- xhr.onreadystatechange = function() {
- if (xhr.readyState > 3 && callback) {
- callback(xhr);
- }
- };
- xhr.send(mime);
- },
- pd_en: function pd_en() {
- var a;
- var t = bmak.getdurl();
- return 0 == bmak.thr ? 1 : (a = t.indexOf('home.html') > -1 ? 1 : 0, bmak.start_ts % 10 != 0 ? 0 : bmak.aj_indx > 3 ? 0 : a && bmak.aj_indx > 0 ? 0 : 1);
- },
- pd: function makeColorMaterial(a) {
- var t;
- if (t = bmak.pd_en()) {
- if (bmak.bm) {
- if (bmak.check_stop_protocol()) {
- bmak.apicall_bm(bmak.cf_url, a, bmak.patp);
- }
- } else {
- bmak.apicall(bmak.cf_url, a);
- }
- bmak.aj_indx = bmak.aj_indx + 1;
- }
- },
- check_stop_protocol: function check_stop_protocol() {
- var tiledImageTLs = bmak.get_stop_signals();
- var tiledImageBR = tiledImageTLs[0];
- if (!bmak.rst && tiledImageBR > -1) {
- bmak.ir();
- /** @type {boolean} */
- bmak.rst = true;
- }
- var tiledImageTL = tiledImageTLs[1];
- return -1 == tiledImageTL || bmak.aj_ss < tiledImageTL;
- },
- get_stop_signals: function _gen_title() {
- /** @type {!Array} */
- var ret = [-1, -1];
- var c_user = bmak.cookie_chk_read(bmak.ckie);
- if (false !== c_user) {
- try {
- var e = decodeURIComponent(c_user).split('~');
- if (e.length >= 4) {
- var value = bmak.pi(e[1]);
- var a = bmak.pi(e[3]);
- value = isNaN(value) ? -1 : value;
- a = isNaN(a) ? -1 : a;
- /** @type {!Array} */
- ret = [a, value];
- }
- } catch (a) {}
- }
- return ret;
- },
- patp: function makeColorMaterial(a) {
- bmak.aj_ss++;
- /** @type {boolean} */
- bmak.rst = false;
- },
- get_mn_params_from_abck: function getExercise() {
- /** @type {!Array} */
- var exercise = [
- []
- ];
- try {
- var c_user = bmak.cookie_chk_read(bmak.ckie);
- if (false !== c_user) {
- var tiledImageTLs = decodeURIComponent(c_user).split('~');
- if (tiledImageTLs.length >= 5) {
- var replaceState = tiledImageTLs[0];
- var tiledImageTL = tiledImageTLs[4];
- var options = tiledImageTL.split('||');
- if (options.length > 0) {
- /** @type {number} */
- var i = 0;
- for (; i < options.length; i++) {
- var filterOption = options[i];
- var c = filterOption.split('-');
- if (c.length >= 5) {
- var pushState = bmak.pi(c[0]);
- var committer_date_iso_8601_strict = c[1];
- var s = bmak.pi(c[2]);
- var l = bmak.pi(c[3]);
- var u = bmak.pi(c[4]);
- /** @type {number} */
- var k = 1;
- if (c.length >= 6) {
- k = bmak.pi(c[5]);
- }
- /** @type {!Array} */
- var methodsToOverwrite = [pushState, replaceState, committer_date_iso_8601_strict, s, l, u, k];
- if (2 == k) {
- exercise.splice(0, 0, methodsToOverwrite);
- } else {
- exercise.push(methodsToOverwrite);
- }
- }
- }
- }
- }
- }
- } catch (a) {}
- return exercise;
- },
- mn_update_challenge_details: function makeColorMaterial(a) {
- bmak.mn_sen = a[0];
- bmak.mn_abck = a[1];
- bmak.mn_psn = a[2];
- bmak.mn_cd = a[3];
- bmak.mn_tout = a[4];
- bmak.mn_stout = a[5];
- bmak.mn_ct = a[6];
- bmak.mn_ts = bmak.start_ts;
- bmak.mn_cc = bmak.mn_abck + bmak.start_ts + bmak.mn_psn;
- },
- mn_get_new_challenge_params: function makeColorMaterial(a) {
- /** @type {null} */
- var i = null;
- /** @type {null} */
- var length = null;
- if (null != a) {
- /** @type {number} */
- var v = 0;
- for (; v < a.length; v++) {
- var o = a[v];
- if (o.length > 0) {
- var row = o[0];
- var undefined = bmak.mn_abck + bmak.start_ts + o[2];
- var reqVal = o[3];
- var hasBaseRule = o[6];
- /** @type {number} */
- var reqVar = 0;
- for (; reqVar < bmak.mn_lcl && 1 == row && bmak.mn_lc[reqVar] != undefined && bmak.mn_ld[reqVar] != reqVal; reqVar++) {}
- if (reqVar == bmak.mn_lcl) {
- /** @type {number} */
- i = v;
- if (2 == hasBaseRule) {
- /** @type {number} */
- length = v;
- }
- }
- }
- if (null != length) {
- break;
- }
- }
- }
- return null != length ? a[length] : null != i ? a[i] : null;
- },
- mn_poll: function onImageUpdated() {
- if (0 == bmak.mn_state) {
- var button2 = bmak.get_mn_params_from_abck();
- var button2Component = bmak.mn_get_new_challenge_params(button2);
- if (null != button2Component) {
- bmak.mn_update_challenge_details(button2Component);
- if (bmak.mn_sen) {
- /** @type {number} */
- bmak.mn_state = 1;
- /** @type {number} */
- bmak.mn_mc_indx = 0;
- /** @type {!Array} */
- bmak.mn_al = [];
- /** @type {!Array} */
- bmak.mn_il = [];
- /** @type {!Array} */
- bmak.mn_tcl = [];
- /** @type {!Array} */
- bmak.mn_lg = [];
- setTimeout(bmak.mn_w, bmak.mn_tout);
- }
- }
- }
- },
- mn_init: function _executeCallbackAfterASufficientIdlePeriod() {
- setInterval(bmak.mn_poll, 1e3);
- },
- rotate_left: function compareAlphabetically(a, b) {
- return a << b | a >>> 32 - b;
- },
- encode_utf8: function enc_utf8(s) {
- return unescape(encodeURIComponent(s));
- },
- mn_h: function getLevenshteinDistance(b) {
- /** @type {number} */
- var H2 = 1732584193;
- /** @type {number} */
- var f = 4023233417;
- /** @type {number} */
- var offset = 2562383102;
- /** @type {number} */
- var s = 271733878;
- /** @type {number} */
- var k = 3285377520;
- var sumB = bmak.encode_utf8(b);
- /** @type {number} */
- var label = 8 * sumB.length;
- sumB = sumB + String.fromCharCode(128);
- /** @type {number} */
- var delta = sumB.length / 4 + 2;
- var max = Math.ceil(delta / 16);
- /** @type {!Array} */
- var arr = new Array(max);
- /** @type {number} */
- var y = 0;
- for (; y < max; y++) {
- /** @type {!Array} */
- arr[y] = new Array(16);
- /** @type {number} */
- var x = 0;
- for (; x < 16; x++) {
- /** @type {number} */
- arr[y][x] = sumB.charCodeAt(64 * y + 4 * x) << 24 | sumB.charCodeAt(64 * y + 4 * x + 1) << 16 | sumB.charCodeAt(64 * y + 4 * x + 2) << 8 | sumB.charCodeAt(64 * y + 4 * x + 3) << 0;
- }
- }
- /** @type {number} */
- var value = label / Math.pow(2, 32);
- arr[max - 1][14] = Math.floor(value);
- /** @type {number} */
- arr[max - 1][15] = 4294967295 & label;
- /** @type {number} */
- var x = 0;
- for (; x < max; x++) {
- var r;
- var imagesw;
- var Error;
- /** @type {!Array} */
- var w = new Array(80);
- var c = H2;
- var g = f;
- var j = offset;
- var i = s;
- var a = k;
- /** @type {number} */
- y = 0;
- for (; y < 80; y++) {
- w[y] = y < 16 ? arr[x][y] : bmak.rotate_left(w[y - 3] ^ w[y - 8] ^ w[y - 14] ^ w[y - 16], 1);
- if (y < 20) {
- /** @type {number} */
- r = g & j | ~g & i;
- /** @type {number} */
- imagesw = 1518500249;
- } else {
- if (y < 40) {
- /** @type {number} */
- r = g ^ j ^ i;
- /** @type {number} */
- imagesw = 1859775393;
- } else {
- if (y < 60) {
- /** @type {number} */
- r = g & j | g & i | j & i;
- /** @type {number} */
- imagesw = 2400959708;
- } else {
- /** @type {number} */
- r = g ^ j ^ i;
- /** @type {number} */
- imagesw = 3395469782;
- }
- }
- }
- Error = bmak.rotate_left(c, 5) + r + a + imagesw + w[y];
- a = i;
- i = j;
- j = bmak.rotate_left(g, 30);
- g = c;
- c = Error;
- }
- H2 = H2 + c;
- f = f + g;
- offset = offset + j;
- s = s + i;
- k = k + a;
- }
- return [H2 >> 24 & 255, H2 >> 16 & 255, H2 >> 8 & 255, 255 & H2, f >> 24 & 255, f >> 16 & 255, f >> 8 & 255, 255 & f, offset >> 24 & 255, offset >> 16 & 255, offset >> 8 & 255, 255 & offset, s >> 24 & 255, s >> 16 & 255, s >> 8 & 255, 255 & s, k >> 24 & 255, k >> 16 & 255, k >> 8 & 255, 255 & k];
- },
- bdm: function getCharPath(s, c) {
- /** @type {number} */
- var d = 0;
- /** @type {number} */
- var jsonProp = 0;
- for (; jsonProp < s.length; ++jsonProp) {
- /** @type {number} */
- d = (d << 8 | s[jsonProp]) >>> 0;
- /** @type {number} */
- d = d % c;
- }
- return d;
- },
- mn_w: function onImageUpdated() {
- try {
- /** @type {number} */
- var a = 0;
- /** @type {number} */
- var currentColumn = 0;
- /** @type {number} */
- var resumeTimeout = 0;
- var end = '';
- var imgW = bmak.get_cf_date();
- var artistTrack = bmak.mn_cd + bmak.mn_mc_indx;
- for (; 0 == a;) {
- end = Math.random().toString(16);
- var r = bmak.mn_cc + artistTrack.toString() + end;
- var specificResourceHandler = bmak.mn_h(r);
- if (0 == bmak.bdm(specificResourceHandler, artistTrack)) {
- /** @type {number} */
- a = 1;
- /** @type {number} */
- resumeTimeout = bmak.get_cf_date() - imgW;
- bmak.mn_al.push(end);
- bmak.mn_tcl.push(resumeTimeout);
- bmak.mn_il.push(currentColumn);
- if (0 == bmak.mn_mc_indx) {
- bmak.mn_lg.push(bmak.mn_abck);
- bmak.mn_lg.push(bmak.mn_ts);
- bmak.mn_lg.push(bmak.mn_psn);
- bmak.mn_lg.push(bmak.mn_cc);
- bmak.mn_lg.push(bmak.mn_cd.toString());
- bmak.mn_lg.push(artistTrack.toString());
- bmak.mn_lg.push(end);
- bmak.mn_lg.push(r);
- bmak.mn_lg.push(specificResourceHandler);
- }
- } else {
- if ((currentColumn = currentColumn + 1) % 1e3 == 0 && (resumeTimeout = bmak.get_cf_date() - imgW) > bmak.mn_stout) {
- return void setTimeout(bmak.mn_w, 1e3 + bmak.mn_stout);
- }
- }
- }
- bmak.mn_mc_indx += 1;
- if (bmak.mn_mc_indx < bmak.mn_mc_lmt) {
- setTimeout(bmak.mn_w, bmak.mn_tout + resumeTimeout);
- } else {
- /** @type {number} */
- bmak.mn_mc_indx = 0;
- /** @type {number} */
- bmak.mn_state = 0;
- bmak.mn_lc[bmak.mn_lcl] = bmak.mn_cc;
- bmak.mn_ld[bmak.mn_lcl] = bmak.mn_cd;
- bmak.mn_lcl = bmak.mn_lcl + 1;
- bmak.mn_r[bmak.mn_ct] = bmak.mn_pr();
- if (bmak.js_post) {
- /** @type {number} */
- bmak.aj_type = 8;
- bmak.bpd();
- bmak.pd(true);
- }
- }
- } catch (a) {
- bmak.sd_debug(',mn_w:' + a);
- }
- },
- mn_pr: function mn_pr() {
- return bmak.mn_al.join(',') + ';' + bmak.mn_tcl.join(',') + ';' + bmak.mn_il.join(',') + ';' + bmak.mn_lg.join(',') + ';';
- },
- calc_fp: function calc_fp() {
- bmak.fpcf.fpVal();
- if (bmak.js_post) {
- /** @type {number} */
- bmak.aj_type = 9;
- bmak.bpd();
- bmak.pd(true);
- }
- },
- listFunctions: {
- _setJsPost: function makeColorMaterial(a) {
- bmak.js_post = a;
- if (bmak.js_post) {
- /** @type {number} */
- bmak.enReadDocUrl = 1;
- }
- },
- _setSessionId: function makeColorMaterial(a) {
- bmak.session_id = a;
- },
- _setJavaScriptKey: function makeColorMaterial(a) {
- bmak.api_public_key = a;
- },
- _setEnAddHidden: function makeColorMaterial(a) {
- bmak.enAddHidden = a;
- },
- _setInitTime: function makeColorMaterial(a) {
- bmak.init_time = a;
- },
- _setApiUrl: function makeColorMaterial(a) {
- bmak.cf_url = a;
- },
- _setEnGetLoc: function makeColorMaterial(a) {
- bmak.enGetLoc = a;
- },
- _setEnReadDocUrl: function makeColorMaterial(a) {
- bmak.enReadDocUrl = a;
- },
- _setDisFpCalOnTimeout: function makeColorMaterial(a) {
- bmak.disFpCalOnTimeout = a;
- },
- _setCookie: function makeColorMaterial(a) {
- bmak.ckie = a;
- },
- _setCS: function basicCompare(a) {
- bmak.cs = (String(a) + bmak.cs).slice(0, 16);
- },
- _setFsp: function makeColorMaterial(a) {
- bmak.fsp = a;
- if (bmak.fsp) {
- bmak.cf_url = bmak.cf_url.replace(/^http:\/\//i, 'https://');
- }
- },
- _setBm: function makeColorMaterial(a) {
- bmak.bm = a;
- if (bmak.bm) {
- bmak.cf_url = (bmak.fsp ? 'https:' : document.location.protocol) + '//' + document.location.hostname + '/_bm/_data';
- bmak.api_public_key = 'afSbep8yjnZUjq3aL010jO15Sawj2VZfdYK8uY90uxq';
- /** @type {boolean} */
- bmak.js_post = true;
- /** @type {number} */
- bmak.enReadDocUrl = 1;
- /** @type {boolean} */
- bmak.runFonts = false;
- }
- },
- _setAu: function createActionInstance(a) {
- if ('string' == (typeof a === "undefined" ? "undefined" : _typeof(a)) && 0 === a.lastIndexOf('/', 0)) {
- bmak.cf_url = (bmak.fsp ? 'https:' : document.location.protocol) + '//' + document.location.hostname + a;
- }
- },
- _setSDFieldNames: function _setSDFieldNames() {
- try {
- var x;
- /** @type {number} */
- x = 0;
- for (; x < arguments.length; x = x + 1) {
- bmak.sdfn.push(arguments[x]);
- }
- } catch (a) {
- bmak.sd_debug(',setSDFN:' + a);
- }
- },
- _setUseAltFonts: function makeColorMaterial(a) {
- bmak.altFonts = a;
- }
- },
- applyFunc: function applyFunc() {
- var x;
- var indexLookupKey;
- var batch;
- /** @type {number} */
- x = 0;
- for (; x < arguments.length; x = x + 1) {
- batch = arguments[x];
- }
- indexLookupKey = batch.shift();
- if (bmak.listFunctions[indexLookupKey]) {
- bmak.listFunctions[indexLookupKey].apply(bmak.listFunctions, batch);
- }
- }
- };
- bmak.sd_debug('<init/>');
- /** @type {number} */
- var i = 0;
- for (; i < _cf.length; i++) {
- bmak.applyFunc(_cf[i]);
- }
- bmak.sd_debug('<setSDFN>' + bmak.sdfn.join() + '</setSDFN>'), _cf = {
- push: bmak.applyFunc
- },
- function(beacons) {
- var data = {};
- beacons.fpcf = data;
- /**
- * @return {?}
- */
- data.sf4 = function() {
- var a = bmak.uar();
- return !(!~a.indexOf('Version/4.0') || !(~a.indexOf('iPad;') || ~a.indexOf('iPhone') || ~a.indexOf('Mac OS X 10_5')));
- };
- data.fpValstr = '-1';
- /** @type {boolean} */
- data.fpValCalculated = false;
- data.rVal = '-1';
- data.rCFP = '-1';
- data.cache = {};
- /** @type {number} */
- data.td = -999999;
- /**
- * @return {undefined}
- */
- data.clearCache = function() {
- data.cache = {};
- };
- /**
- * @return {undefined}
- */
- data.fpVal = function() {
- /** @type {boolean} */
- data.fpValCalculated = true;
- try {
- /** @type {number} */
- var b = 0;
- b = Date.now ? Date.now() : +new Date;
- var filter = data.data();
- data.fpValstr = filter.replace(/"/g, '\\"');
- /** @type {number} */
- var g = 0;
- g = Date.now ? Date.now() : +new Date;
- /** @type {number} */
- data.td = g - b;
- } catch (a) {}
- };
- /**
- * @return {?}
- */
- data.timezoneOffsetKey = function() {
- return (new Date).getTimezoneOffset();
- };
- /**
- * @return {?}
- */
- data.data = function() {
- var a = screen.colorDepth ? screen.colorDepth : -1;
- var e = screen.pixelDepth ? screen.pixelDepth : -1;
- var n = navigator.cookieEnabled ? navigator.cookieEnabled : -1;
- var o = navigator.javaEnabled ? navigator.javaEnabled() : -1;
- var m = navigator.doNotTrack ? navigator.doNotTrack : -1;
- var r = 'default';
- return r = bmak.runFonts ? bmak.altFonts ? data.fonts_optm() : data.fonts() : 'dis', [data.canvas(), r, data.pluginInfo(), data.sessionStorageKey(), data.localStorageKey(), data.indexedDbKey(), data.timezoneOffsetKey(), data.webrtcKey(), a, e, n, o, m].join(';');
- };
- /** @type {!Array} */
- data.PLUGINS = ['WebEx64 General Plugin Container', 'YouTube Plug-in', 'Java Applet Plug-in', 'Shockwave Flash', 'iPhotoPhotocast', 'SharePoint Browser Plug-in', 'Chrome Remote Desktop Viewer', 'Chrome PDF Viewer', 'Native Client', 'Unity Player', 'WebKit-integrierte PDF', 'QuickTime Plug-in', 'RealPlayer Version Plugin', 'RealPlayer(tm) G2 LiveConnect-Enabled Plug-In (32-bit)', 'Mozilla Default Plug-in', 'Adobe Acrobat', 'AdobeAAMDetect', 'Google Earth Plug-in', 'Java Plug-in 2 for NPAPI Browsers', 'Widevine Content Decryption Module', 'Microsoft Office Live Plug-in', 'Windows Media Player Plug-in Dynamic Link Library', 'Google Talk Plugin Video Renderer', 'Edge PDF Viewer', 'Shockwave for Director', 'Default Browser Helper', 'Silverlight Plug-In'];
- /**
- * @return {?}
- */
- data.pluginInfo = function() {
- if (void 0 === navigator.plugins) {
- return null;
- }
- var complexSize = data.PLUGINS.length;
- var out = '';
- /** @type {number} */
- var c = 0;
- for (; c < complexSize; c++) {
- var choiceId = data.PLUGINS[c];
- if (void 0 !== navigator.plugins[choiceId]) {
- out = out + ',' + c;
- }
- }
- return out;
- };
- /**
- * @return {?}
- */
- data.canvas = function() {
- try {
- if (void 0 !== data.cache.canvas) {
- return data.cache.canvas;
- }
- /** @type {number} */
- var a = -1;
- if (!data.sf4()) {
- var x = document.createElement('canvas');
- if (x.width = 280, x.height = 60, x.style.display = 'none', 'function' == _typeof(x.getContext)) {
- var n = x.getContext('2d');
- n.fillStyle = 'rgb(102, 204, 0)';
- n.fillRect(100, 5, 80, 50);
- n.fillStyle = '#f60';
- n.font = '16pt Arial';
- n.fillText('<@nv45. F1n63r,Pr1n71n6!', 10, 40);
- n.strokeStyle = 'rgb(120, 186, 176)';
- n.arc(80, 10, 20, 0, Math.PI, false);
- n.stroke();
- var PL$42 = x.toDataURL();
- /** @type {number} */
- a = 0;
- /** @type {number} */
- var PL$41 = 0;
- for (; PL$41 < PL$42.length; PL$41++) {
- a = (a << 5) - a + PL$42.charCodeAt(PL$41);
- /** @type {number} */
- a = a & a;
- }
- a = a.toString();
- var b = document.createElement('canvas');
- /** @type {number} */
- b.width = 16;
- /** @type {number} */
- b.height = 16;
- var packByNumType = b.getContext('2d');
- packByNumType.font = '6pt Arial';
- data.rVal = Math.floor(1e3 * Math.random()).toString();
- packByNumType.fillText(data.rVal, 1, 12);
- var params = b.toDataURL();
- /** @type {number} */
- var hash = 0;
- /** @type {number} */
- var i = 0;
- for (; i < params.length; i++) {
- hash = (hash << 5) - hash + params.charCodeAt(i);
- /** @type {number} */
- hash = hash & hash;
- }
- data.rCFP = hash.toString();
- }
- }
- return a;
- } catch (a) {
- return 'exception';
- }
- };
- /**
- * @return {?}
- */
- data.fonts_optm = function() {
- /** @type {number} */
- var maxvalue = 200;
- var dec_step = bmak.get_cf_date();
- /** @type {!Array} */
- var n = [];
- if (!data.sf4()) {
- /** @type {!Array} */
- var sharePlaylist = ['sans-serif', 'monospace'];
- /** @type {!Array} */
- var item = [0, 0];
- /** @type {!Array} */
- var newJoinDoc = [0, 0];
- var store = document.createElement('div');
- store.style.cssText = 'position: relative; left: -9999px; visibility: hidden; display: block !important';
- var _id;
- /** @type {number} */
- _id = 0;
- for (; _id < sharePlaylist.length; _id++) {
- var id = document.createElement('span');
- id.innerHTML = 'abcdefhijklmnopqrstuvxyz1234567890;+-.';
- id.style.fontSize = '90px';
- id.style.fontFamily = sharePlaylist[_id];
- store.appendChild(id);
- }
- document.body.appendChild(store);
- /** @type {number} */
- _id = 0;
- for (; _id < store.childNodes.length; _id++) {
- id = store.childNodes[_id];
- item[_id] = id.offsetWidth;
- newJoinDoc[_id] = id.offsetHeight;
- }
- if (document.body.removeChild(store), bmak.get_cf_date() - dec_step > maxvalue) {
- return '';
- }
- /** @type {!Array} */
- var PL$58 = ['Geneva', 'Lobster', 'New York', 'Century', 'Apple Gothic', 'Minion Pro', 'Apple LiGothic', 'Century Gothic', 'Monaco', 'Lato', 'Fantasque Sans Mono', 'Adobe Braille', 'Cambria', 'Futura', 'Bell MT', 'Courier', 'Courier New', 'Calibri', 'Avenir Next', 'Birch Std', 'Palatino', 'Ubuntu Regular', 'Oswald', 'Batang', 'Ubuntu Medium', 'Cantarell', 'Droid Serif', 'Roboto', 'Helvetica Neue', 'Corsiva Hebrew', 'Adobe Hebrew', 'TI-Nspire', 'Comic Neue', 'Noto', 'AlNile', 'Palatino-Bold', 'ArialHebrew-Light', 'Avenir', 'Papyrus', 'Open Sans', 'Times', 'Quicksand', 'Source Sans Pro', 'Damascus', 'Microsoft Sans Serif'];
- var container = document.createElement('div');
- container.style.cssText = 'position: relative; left: -9999px; visibility: hidden; display: block !important';
- /** @type {!Array} */
- var PL$78 = [];
- /** @type {number} */
- var PL$79 = 0;
- for (; PL$79 < PL$58.length; PL$79++) {
- var data = document.createElement('div');
- /** @type {number} */
- _id = 0;
- for (; _id < sharePlaylist.length; _id++) {
- id = document.createElement('span');
- id.innerHTML = 'abcdefhijklmnopqrstuvxyz1234567890;+-.';
- id.style.fontSize = '90px';
- id.style.fontFamily = PL$58[PL$79] + ',' + sharePlaylist[_id];
- data.appendChild(id);
- }
- container.appendChild(data);
- }
- if (bmak.get_cf_date() - dec_step > maxvalue) {
- return '';
- }
- document.body.appendChild(container);
- /** @type {number} */
- PL$79 = 0;
- for (; PL$79 < container.childNodes.length; PL$79++) {
- /** @type {boolean} */
- var inactiveTag = false;
- data = container.childNodes[PL$79];
- /** @type {number} */
- _id = 0;
- for (; _id < data.childNodes.length; _id++) {
- id = data.childNodes[_id];
- if (id.offsetWidth !== item[_id] || id.offsetHeight !== newJoinDoc[_id]) {
- /** @type {boolean} */
- inactiveTag = true;
- break;
- }
- }
- if (inactiveTag && PL$78.push(PL$79), bmak.get_cf_date() - dec_step > maxvalue) {
- break;
- }
- }
- document.body.removeChild(container);
- n = PL$78.sort();
- }
- return n.join(',');
- };
- /**
- * @return {?}
- */
- data.fonts = function() {
- /** @type {!Array} */
- var a = [];
- if (!data.sf4()) {
- /** @type {!Array} */
- var dynacAttrs = ['serif', 'sans-serif', 'monospace'];
- /** @type {!Array} */
- var testStyle = [0, 0, 0];
- /** @type {!Array} */
- var declarations = [0, 0, 0];
- var style = document.createElement('span');
- style.innerHTML = 'abcdefhijklmnopqrstuvxyz1234567890;+-.';
- style.style.fontSize = '90px';
- var property;
- /** @type {number} */
- property = 0;
- for (; property < dynacAttrs.length; property++) {
- style.style.fontFamily = dynacAttrs[property];
- document.body.appendChild(style);
- testStyle[property] = style.offsetWidth;
- declarations[property] = style.offsetHeight;
- document.body.removeChild(style);
- }
- /** @type {!Array} */
- var lookup = ['Geneva', 'Lobster', 'New York', 'Century', 'Apple Gothic', 'Minion Pro', 'Apple LiGothic', 'Century Gothic', 'Monaco', 'Lato', 'Fantasque Sans Mono', 'Adobe Braille', 'Cambria', 'Futura', 'Bell MT', 'Courier', 'Courier New', 'Calibri', 'Avenir Next', 'Birch Std', 'Palatino', 'Ubuntu Regular', 'Oswald', 'Batang', 'Ubuntu Medium', 'Cantarell', 'Droid Serif', 'Roboto', 'Helvetica Neue', 'Corsiva Hebrew', 'Adobe Hebrew', 'TI-Nspire', 'Comic Neue', 'Noto', 'AlNile', 'Palatino-Bold', 'ArialHebrew-Light', 'Avenir', 'Papyrus', 'Open Sans', 'Times', 'Quicksand', 'Source Sans Pro', 'Damascus', 'Microsoft Sans Serif'];
- /** @type {!Array} */
- var columnsScalesMap = [];
- /** @type {number} */
- var val = 0;
- for (; val < lookup.length; val++) {
- /** @type {boolean} */
- var d = false;
- /** @type {number} */
- property = 0;
- for (; property < dynacAttrs.length; property++) {
- if (style.style.fontFamily = lookup[val] + ',' + dynacAttrs[property], document.body.appendChild(style), style.offsetWidth === testStyle[property] && style.offsetHeight === declarations[property] || (d = true), document.body.removeChild(style), d) {
- columnsScalesMap.push(val);
- break;
- }
- }
- }
- a = columnsScalesMap.sort();
- }
- return a.join(',');
- };
- /**
- * @return {?}
- */
- data.webrtcKey = function() {
- return 'function' == _typeof(window.RTCPeerConnection) || 'function' == _typeof(window.mozRTCPeerConnection) || 'function' == _typeof(window.webkitRTCPeerConnection);
- };
- /**
- * @return {?}
- */
- data.indexedDbKey = function() {
- return !!data.hasIndexedDB();
- };
- /**
- * @return {?}
- */
- data.sessionStorageKey = function() {
- return !!data.hasSessionStorage();
- };
- /**
- * @return {?}
- */
- data.localStorageKey = function() {
- return !!data.hasLocalStorage();
- };
- /**
- * @return {?}
- */
- data.hasSessionStorage = function() {
- try {
- return !!window.sessionStorage;
- } catch (a) {
- return false;
- }
- };
- /**
- * @return {?}
- */
- data.hasLocalStorage = function() {
- try {
- return !!window.localStorage;
- } catch (a) {
- return false;
- }
- };
- /**
- * @return {?}
- */
- data.hasIndexedDB = function() {
- return !!window.indexedDB;
- };
- }(bmak);
- try {
- if (bmak.ckie) {
- bmak.get_cookie();
- }
- } catch (a) {}
- try {
- bmak.ir();
- bmak.t_tst = bmak.get_cf_date();
- bmak.startTracking();
- /** @type {number} */
- bmak.tst = bmak.get_cf_date() - bmak.t_tst;
- if (!bmak.disFpCalOnTimeout) {
- setTimeout(bmak.calc_fp, 100);
- }
- /** @type {number} */
- i = 0;
- for (; i < 3; i++) {
- setTimeout(bmak.getmr, 400 + 5e3 * i);
- }
- setTimeout(bmak.mn_init, 1e3);
- } catch (a) {};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement