window.onerror = function(e){
alert(e);
}
Array.prototype._f1 = 0;
var _g1 = {
_h1: [{
_i1: ["tph_djs.js"],
init: "dj_init"
}, {
_i1: ["uph_loadingBars.js"]
}],
_j1: [],
_k1: [],
_l1: [{
_m1: "spr_title",
width: 288,
height: 129,
_n1: !1,
_o1: !1,
preload: !1,
_p1: 144,
_q1: 64,
_r1: 287,
_s1: 128,
_t1: [0]
}, {
_m1: "spr_title_shine",
width: 240,
height: 240,
_n1: !1,
_o1: !1,
preload: !1,
_p1: 120,
_q1: 120,
_u1: 1,
_r1: 238,
_v1: 1,
_s1: 238,
_t1: [1]
}, {
_m1: "spr_player",
width: 48,
height: 48,
_w1: 1,
_n1: !1,
_o1: !1,
preload: !1,
_p1: 24,
_q1: 24,
_r1: 47,
_s1: 47,
_t1: [2, 3, 4, 5, 6, 7]
}, {
_m1: "spr_player_shoe",
width: 48,
height: 48,
_n1: !1,
_o1: !1,
preload: !1,
_p1: 24,
_q1: 24,
_u1: 17,
_r1: 31,
_v1: 17,
_s1: 31,
_t1: [8]
}, {
_m1: "spr_portal",
width: 64,
height: 64,
_n1: !1,
_o1: !1,
preload: !1,
_p1: 32,
_q1: 32,
_u1: 1,
_r1: 62,
_v1: 1,
_s1: 62,
_t1: [9]
}, {
_m1: "spr_portal_sparkle",
width: 32,
height: 32,
_n1: !1,
_o1: !1,
preload: !1,
_p1: 16,
_q1: 16,
_u1: 6,
_r1: 25,
_v1: 6,
_s1: 25,
_t1: [10]
}, {
_m1: "spr_player_finish",
width: 48,
height: 64,
_w1: 1,
_n1: !1,
_o1: !1,
preload: !1,
_p1: 24,
_q1: 24,
_r1: 47,
_s1: 63,
_t1: [11]
}, {
_m1: "spr_player_die",
width: 48,
height: 64,
_w1: 1,
_n1: !1,
_o1: !1,
preload: !1,
_p1: 24,
_q1: 24,
_r1: 47,
_s1: 63,
_t1: [12, 13]
}, {
_m1: "spr_player_happy",
width: 96,
height: 96,
_n1: !1,
_o1: !1,
preload: !1,
_p1: 48,
_q1: 48,
_u1: 13,
_r1: 83,
_v1: 13,
_s1: 83,
_t1: [14]
}, {
_m1: "spr_player_happyfoot",
width: 96,
height: 96,
_n1: !1,
_o1: !1,
preload: !1,
_p1: 48,
_q1: 48,
_u1: 35,
_r1: 63,
_v1: 35,
_s1: 63,
_t1: [15]
}, {
_m1: "spr_bird",
width: 12,
height: 7,
_w1: 1,
_n1: !1,
_o1: !1,
preload: !1,
_p1: 6,
_q1: 3,
_r1: 11,
_s1: 6,
_t1: [16, 17, 18, 19, 20, 21, 22]
}, {
_m1: "spr_player_cape",
width: 64,
height: 64,
_n1: !1,
_o1: !1,
preload: !1,
_p1: 22,
_q1: 32,
_u1: 21,
_r1: 54,
_v1: 18,
_s1: 44,
_t1: [23]
}, {
_m1: "spr_player_happycape",
width: 128,
height: 128,
_n1: !1,
_o1: !1,
preload: !1,
_p1: 44,
_q1: 64,
_u1: 42,
_r1: 108,
_v1: 37,
_s1: 90,
_t1: [24]
}, {
_m1: "spr_menu_button",
width: 120,
height: 120,
_w1: 1,
_n1: !1,
_o1: !1,
preload: !1,
_p1: 60,
_q1: 60,
_r1: 119,
_s1: 119,
_t1: [25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40]
}, {
_m1: "spr_menu_level_button",
width: 52,
height: 52,
_w1: 1,
_n1: !1,
_o1: !1,
preload: !1,
_p1: 26,
_q1: 26,
_r1: 51,
_s1: 51,
_t1: [41, 42, 43]
}, {
_m1: "spr_soundask_button",
width: 104,
height: 52,
_w1: 1,
_n1: !1,
_o1: !1,
preload: !1,
_p1: 52,
_q1: 26,
_r1: 103,
_s1: 51,
_t1: [44, 45]
}, {
_m1: "spr_menu_arrow",
width: 47,
height: 47,
_n1: !1,
_o1: !1,
preload: !1,
_p1: 24,
_q1: 24,
_r1: 46,
_s1: 46,
_t1: [46]
}, {
_m1: "spr_continue_arrow",
width: 47,
height: 47,
_n1: !1,
_o1: !1,
preload: !1,
_p1: 24,
_q1: 24,
_r1: 46,
_s1: 46,
_t1: [47]
}, {
_m1: "spr_restart_arrow",
width: 47,
height: 47,
_n1: !1,
_o1: !1,
preload: !1,
_p1: 23,
_q1: 23,
_r1: 46,
_s1: 46,
_t1: [48]
}, {
_m1: "spr_menu_row",
width: 47,
height: 47,
_w1: 1,
_n1: !1,
_o1: !1,
preload: !1,
_p1: 23,
_q1: 23,
_r1: 46,
_s1: 46,
_t1: [49]
}, {
_m1: "spr_volume_button",
width: 48,
height: 48,
_w1: 1,
_n1: !1,
_o1: !1,
preload: !1,
_p1: 23,
_q1: 23,
_r1: 47,
_s1: 47,
_t1: [50, 51]
}, {
_m1: "spr_pause_button",
width: 48,
height: 48,
_n1: !1,
_o1: !1,
preload: !1,
_p1: 24,
_q1: 24,
_r1: 47,
_s1: 47,
_t1: [52]
}, {
_m1: "spr_tutorial_hand",
width: 96,
height: 128,
_n1: !1,
_o1: !1,
preload: !1,
_p1: 39,
_q1: 18,
_u1: 25,
_r1: 81,
_v1: 3,
_s1: 74,
_t1: [53, 54]
}, {
_m1: "spr_platform",
width: 48,
height: 48,
_w1: 1,
_n1: !1,
_o1: !1,
preload: !1,
_p1: 24,
_q1: 24,
_r1: 47,
_s1: 47,
_t1: [55, 56, 57]
}, {
_m1: "spr_platform_arrow",
width: 48,
height: 48,
_w1: 1,
_n1: !1,
_o1: !1,
preload: !1,
_p1: 24,
_q1: 24,
_r1: 47,
_s1: 47,
_t1: [58, 59, 60]
}, {
_m1: "spr_v_platform",
width: 48,
height: 48,
_n1: !1,
_o1: !1,
preload: !1,
_p1: 24,
_q1: 24,
_r1: 47,
_s1: 47,
_t1: [61]
}, {
_m1: "spr_spinwire",
width: 48,
height: 48,
_w1: 2,
_n1: !1,
_o1: !1,
preload: !1,
_p1: 24,
_q1: 24,
_u1: 12,
_r1: 35,
_v1: 12,
_s1: 35,
_t1: [62, 63, 64]
}, {
_m1: "spr_spinwire_ball",
width: 48,
height: 48,
_n1: !1,
_o1: !1,
preload: !1,
_x1: !0,
_p1: 24,
_q1: 24,
_u1: 17,
_r1: 31,
_v1: 17,
_s1: 31,
_t1: [65, 66],
_y1: [
[0xE7, 0x00, 0x01, 0x07, 0xF0, 0x83, 0x00, 0x01, 0x0F, 0xFC, 0x83, 0x00, 0x01, 0x1F, 0xFE, 0x83, 0x00, 0x01, 0x3F, 0xFE, 0x83,
0x00, 0x01, 0x7F, 0xFF, 0x83, 0x00, 0x01, 0x7F, 0xFF, 0x83, 0x00, 0x01, 0x7F, 0xFF, 0x83, 0x00, 0x01, 0x7F, 0xFF, 0x83, 0x00, 0x01, 0x7F, 0xFF, 0x83, 0x00, 0x01, 0x7F, 0xFF, 0x83, 0x00, 0x01, 0x7F, 0xFF, 0x83, 0x00, 0x01, 0x3F, 0xFE, 0x83, 0x00, 0x01, 0x3F, 0xFE, 0x83, 0x00, 0x01, 0x1F, 0xFC, 0x83, 0x00, 0x01, 0x07, 0xF0, 0xE1, 0x00
]
]
}, {
_m1: "spr_spinwire_button",
width: 27,
height: 17,
_n1: !1,
_o1: !1,
preload: !1,
_p1: 13,
_q1: 14,
_r1: 26,
_s1: 16,
_t1: [67, 68]
}, {
_m1: "spr_ghost",
width: 48,
height: 48,
_w1: 2,
_n1: !1,
_o1: !1,
preload: !1,
_p1: 24,
_q1: 24,
_u1: 22,
_r1: 25,
_v1: 22,
_s1: 25,
_t1: [69, 70]
}, {
_m1: "spr_ghost_platform",
width: 48,
height: 48,
_w1: 1,
_n1: !1,
_o1: !1,
preload: !1,
_p1: 24,
_q1: 24,
_r1: 47,
_s1: 47,
_t1: [71]
}, {
_m1: "spr_teleport",
width: 48,
height: 48,
_w1: 2,
_n1: !1,
_o1: !1,
preload: !1,
_p1: 24,
_q1: 24,
_u1: 22,
_r1: 25,
_v1: 22,
_s1: 25,
_t1: [72]
}, {
_m1: "spr_banner",
width: 320,
height: 50,
_n1: !1,
_o1: !1,
preload: !1,
_p1: 160,
_q1: 25,
_u1: 122,
_r1: 194,
_v1: 2,
_s1: 47,
_t1: [73]
}],
_z1: [{
_m1: "bg_flip_landscape",
_n1: !1,
_o1: !1,
preload: !1,
_t1: 74
}, {
_m1: "bk_sky",
_n1: !1,
_o1: !1,
preload: !1,
_t1: 75
}],
_A1: [],
_B1: [_C1, _D1, _E1,
_F1, _G1, _H1, _I1, _J1, _K1, _L1, _M1, _N1, _O1, _P1, _Q1, _R1, _S1, _T1, _U1, _V1, _W1, _X1, _Y1, _Z1, __1, _02, _12, _22, _32, _42, _52, _62, _72, _82, _92, _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2
],
_i2: [],
_j2: [{
_m1: "fnt_text",
_k2: 20,
bold: !1,
_l2: !1,
_m2: 32,
_n2: 127,
_o2: 1,
antialias: 3,
_p2: "Rounds Black",
_q2: 76,
_r2: 1,
_s2: 1,
_t2: [{
_u2: 32,
_v2: " ",
_w2: 95,
_x2: 185,
_y2: 8,
_z2: 32,
shift: 8,
_A2: 0
}, {
_u2: 33,
_v2: "!",
_w2: 170,
_x2: 185,
_y2: 8,
_z2: 25,
shift: 8,
_A2: 0
}, {
_u2: 34,
_v2: "\"",
_w2: 206,
_x2: 185,
_y2: 11,
_z2: 15,
shift: 12,
_A2: 1
}, {
_u2: 35,
_v2: "#",
_w2: 198,
_x2: 2,
_y2: 21,
_z2: 25,
shift: 21,
_A2: 0
}, {
_u2: 36,
_v2: "$",
_w2: 108,
_x2: 33,
_y2: 17,
_z2: 28,
shift: 17,
_A2: 0
}, {
_u2: 37,
_v2: "%",
_w2: 149,
_x2: 2,
_y2: 24,
_z2: 25,
shift: 24,
_A2: 0
}, {
_u2: 38,
_v2: "&",
_w2: 175,
_x2: 2,
_y2: 21,
_z2: 25,
shift: 21,
_A2: 0
}, {
_u2: 39,
_v2: "'",
_w2: 244,
_x2: 185,
_y2: 6,
_z2: 15,
shift: 6,
_A2: 1
}, {
_u2: 40,
_v2: "(",
_w2: 206,
_x2: 152,
_y2: 11,
_z2: 31,
shift: 12,
_A2: 1
}, {
_u2: 41,
_v2: ")",
_w2: 175,
_x2: 152,
_y2: 12,
_z2: 31,
shift: 12,
_A2: 0
}, {
_u2: 42,
_v2: "*",
_w2: 138,
_x2: 185,
_y2: 12,
_z2: 18,
shift: 12,
_A2: 0
}, {
_u2: 43,
_v2: "+",
_w2: 189,
_x2: 152,
_y2: 15,
_z2: 24,
shift: 15,
_A2: 0
}, {
_u2: 44,
_v2: ",",
_w2: 161,
_x2: 185,
_y2: 7,
_z2: 29,
shift: 7,
_A2: -1
}, {
_u2: 45,
_v2: "-",
_w2: 105,
_x2: 185,
_y2: 14,
_z2: 18,
shift: 14,
_A2: 0
}, {
_u2: 46,
_v2: ".",
_w2: 188,
_x2: 185,
_y2: 7,
_z2: 25,
shift: 7,
_A2: 1
}, {
_u2: 47,
_v2: "/",
_w2: 190,
_x2: 123,
_y2: 15,
_z2: 27,
shift: 15,
_A2: 0
}, {
_u2: 48,
_v2: "0",
_w2: 97,
_x2: 96,
_y2: 17,
_z2: 25,
shift: 19,
_A2: 1
}, {
_u2: 49,
_v2: "1",
_w2: 47,
_x2: 185,
_y2: 12,
_z2: 25,
shift: 13,
_A2: -1
}, {
_u2: 50,
_v2: "2",
_w2: 2,
_x2: 96,
_y2: 17,
_z2: 25,
shift: 17,
_A2: -1
}, {
_u2: 51,
_v2: "3",
_w2: 154,
_x2: 96,
_y2: 17,
_z2: 25,
shift: 17,
_A2: 0
}, {
_u2: 52,
_v2: "4",
_w2: 169,
_x2: 33,
_y2: 19,
_z2: 25,
shift: 19,
_A2: 0
}, {
_u2: 53,
_v2: "5",
_w2: 40,
_x2: 96,
_y2: 17,
_z2: 25,
shift: 17,
_A2: 0
}, {
_u2: 54,
_v2: "6",
_w2: 2,
_x2: 152,
_y2: 16,
_z2: 25,
shift: 18,
_A2: 1
}, {
_u2: 55,
_v2: "7",
_w2: 38,
_x2: 152,
_y2: 16,
_z2: 25,
shift: 16,
_A2: 0
}, {
_u2: 56,
_v2: "8",
_w2: 154,
_x2: 123,
_y2: 17,
_z2: 25,
shift: 18,
_A2: 1
}, {
_u2: 57,
_v2: "9",
_w2: 207,
_x2: 123,
_y2: 16,
_z2: 25,
shift: 18,
_A2: 1
}, {
_u2: 58,
_v2: ":",
_w2: 197,
_x2: 185,
_y2: 7,
_z2: 25,
shift: 7,
_A2: 1
}, {
_u2: 59,
_v2: ";",
_w2: 152,
_x2: 185,
_y2: 7,
_z2: 29,
shift: 7,
_A2: 0
}, {
_u2: 60,
_v2: "<",
_w2: 225,
_x2: 123,
_y2: 16,
_z2: 25,
shift: 16,
_A2: 0
}, {
_u2: 61,
_v2: "=",
_w2: 2,
_x2: 185,
_y2: 15,
_z2: 21,
shift: 15,
_A2: 0
}, {
_u2: 62,
_v2: ">",
_w2: 92,
_x2: 152,
_y2: 16,
_z2: 25,
shift: 16,
_A2: 0
}, {
_u2: 63,
_v2: "?",
_w2: 158,
_x2: 152,
_y2: 15,
_z2: 25,
shift: 16,
_A2: 0
}, {
_u2: 64,
_v2: "@",
_w2: 66,
_x2: 2,
_y2: 25,
_z2: 29,
shift: 27,
_A2: 1
}, {
_u2: 65,
_v2: "A",
_w2: 2,
_x2: 33,
_y2: 20,
_z2: 25,
shift: 19,
_A2: 0
}, {
_u2: 66,
_v2: "B",
_w2: 135,
_x2: 96,
_y2: 17,
_z2: 25,
shift: 20,
_A2: 2
}, {
_u2: 67,
_v2: "C",
_w2: 137,
_x2: 63,
_y2: 17,
_z2: 25,
shift: 18,
_A2: 1
}, {
_u2: 68,
_v2: "D",
_w2: 173,
_x2: 96,
_y2: 17,
_z2: 25,
shift: 20,
_A2: 2
}, {
_u2: 69,
_v2: "E",
_w2: 116,
_x2: 123,
_y2: 17,
_z2: 25,
shift: 18,
_A2: 2
}, {
_u2: 70,
_v2: "F",
_w2: 194,
_x2: 63,
_y2: 17,
_z2: 25,
shift: 18,
_A2: 2
}, {
_u2: 71,
_v2: "G",
_w2: 78,
_x2: 96,
_y2: 17,
_z2: 25,
shift: 19,
_A2: 1
}, {
_u2: 72,
_v2: "H",
_w2: 21,
_x2: 123,
_y2: 17,
_z2: 25,
shift: 21,
_A2: 2
}, {
_u2: 73,
_v2: "I",
_w2: 219,
_x2: 185,
_y2: 6,
_z2: 25,
shift: 9,
_A2: 2
}, {
_u2: 74,
_v2: "J",
_w2: 19,
_x2: 185,
_y2: 12,
_z2: 25,
shift: 13,
_A2: -1
}, {
_u2: 75,
_v2: "K",
_w2: 62,
_x2: 63,
_y2: 18,
_z2: 25,
shift: 19,
_A2: 2
}, {
_u2: 76,
_v2: "L",
_w2: 56,
_x2: 152,
_y2: 16,
_z2: 25,
shift: 17,
_A2: 2
}, {
_u2: 77,
_v2: "M",
_w2: 93,
_x2: 2,
_y2: 26,
_z2: 25,
shift: 26,
_A2: 0
}, {
_u2: 78,
_v2: "N",
_w2: 213,
_x2: 63,
_y2: 17,
_z2: 25,
shift: 21,
_A2: 2
}, {
_u2: 79,
_v2: "O",
_w2: 82,
_x2: 63,
_y2: 18,
_z2: 25,
shift: 20,
_A2: 1
}, {
_u2: 80,
_v2: "P",
_w2: 74,
_x2: 152,
_y2: 16,
_z2: 25,
shift: 19,
_A2: 2
}, {
_u2: 81,
_v2: "Q",
_w2: 68,
_x2: 33,
_y2: 18,
_z2: 27,
shift: 20,
_A2: 1
}, {
_u2: 82,
_v2: "R",
_w2: 21,
_x2: 96,
_y2: 17,
_z2: 25,
shift: 20,
_A2: 2
}, {
_u2: 83,
_v2: "S",
_w2: 135,
_x2: 123,
_y2: 17,
_z2: 25,
shift: 17,
_A2: 0
}, {
_u2: 84,
_v2: "T",
_w2: 210,
_x2: 33,
_y2: 18,
_z2: 25,
shift: 18,
_A2: 0
}, {
_u2: 85,
_v2: "U",
_w2: 59,
_x2: 123,
_y2: 17,
_z2: 25,
shift: 21,
_A2: 2
}, {
_u2: 86,
_v2: "V",
_w2: 127,
_x2: 33,
_y2: 19,
_z2: 25,
shift: 19,
_A2: 0
}, {
_u2: 87,
_v2: "W",
_w2: 34,
_x2: 2,
_y2: 30,
_z2: 25,
shift: 29,
_A2: 0
}, {
_u2: 88,
_v2: "X",
_w2: 22,
_x2: 63,
_y2: 18,
_z2: 25,
shift: 18,
_A2: 0
}, {
_u2: 89,
_v2: "Y",
_w2: 24,
_x2: 33,
_y2: 20,
_z2: 25,
shift: 18,
_A2: -1
// }, {
// _u2: 89,
// _v2: "Y",
// _w2: 10,
// _x2: 218,
// _y2: 20,
// _z2: 20,
// shift: 20,
// _A2: -1
}, {
_u2: 90,
_v2: "Z",
_w2: 192,
_x2: 96,
_y2: 17,
_z2: 25,
shift: 17,
_A2: 0
}, {
_u2: 91,
_v2: "[",
_w2: 219,
_x2: 152,
_y2: 11,
_z2: 30,
shift: 12,
_A2: 2
}, {
_u2: 92,
_v2: "\\",
_w2: 173,
_x2: 123,
_y2: 15,
_z2: 27,
shift: 15,
_A2: 0
}, {
_u2: 93,
_v2: "]",
_w2: 232,
_x2: 152,
_y2: 11,
_z2: 30,
shift: 12,
_A2: 0
}, {
_u2: 94,
_v2: "^",
_w2: 121,
_x2: 185,
_y2: 15,
_z2: 15,
shift: 15,
_A2: 0
}, {
_u2: 95,
_v2: "_",
_w2: 102,
_x2: 63,
_y2: 14,
_z2: 31,
shift: 14,
_A2: 0
}, {
_u2: 96,
_v2: "`",
_w2: 235,
_x2: 185,
_y2: 7,
_z2: 13,
shift: 7,
_A2: 0
}, {
_u2: 97,
_v2: "a",
_w2: 221,
_x2: 2,
_y2: 20,
_z2: 25,
shift: 19,
_A2: 0
}, {
_u2: 98,
_v2: "b",
_w2: 211,
_x2: 96,
_y2: 17,
_z2: 25,
shift: 20,
_A2: 2
}, {
_u2: 99,
_v2: "c",
_w2: 232,
_x2: 63,
_y2: 17,
_z2: 25,
shift: 18,
_A2: 1
}, {
_u2: 100,
_v2: "d",
_w2: 97,
_x2: 123,
_y2: 17,
_z2: 25,
shift: 20,
_A2: 2
}, {
_u2: 101,
_v2: "e",
_w2: 116,
_x2: 96,
_y2: 17,
_z2: 25,
shift: 18,
_A2: 2
}, {
_u2: 102,
_v2: "f",
_w2: 118,
_x2: 63,
_y2: 17,
_z2: 25,
shift: 18,
_A2: 2
}, {
_u2: 103,
_v2: "g",
_w2: 175,
_x2: 63,
_y2: 17,
_z2: 25,
shift: 19,
_A2: 1
}, {
_u2: 104,
_v2: "h",
_w2: 156,
_x2: 63,
_y2: 17,
_z2: 25,
shift: 21,
_A2: 2
}, {
_u2: 105,
_v2: "i",
_w2: 227,
_x2: 185,
_y2: 6,
_z2: 25,
shift: 9,
_A2: 2
}, {
_u2: 106,
_v2: "j",
_w2: 33,
_x2: 185,
_y2: 12,
_z2: 25,
shift: 13,
_A2: -1
}, {
_u2: 107,
_v2: "k",
_w2: 42,
_x2: 63,
_y2: 18,
_z2: 25,
shift: 19,
_A2: 2
}, {
_u2: 108,
_v2: "l",
_w2: 110,
_x2: 152,
_y2: 16,
_z2: 25,
shift: 17,
_A2: 2
}, {
_u2: 109,
_v2: "m",
_w2: 121,
_x2: 2,
_y2: 26,
_z2: 25,
shift: 26,
_A2: 0
}, {
_u2: 110,
_v2: "n",
_w2: 59,
_x2: 96,
_y2: 17,
_z2: 25,
shift: 21,
_A2: 2
}, {
_u2: 111,
_v2: "o",
_w2: 190,
_x2: 33,
_y2: 18,
_z2: 25,
shift: 20,
_A2: 1
}, {
_u2: 112,
_v2: "p",
_w2: 20,
_x2: 152,
_y2: 16,
_z2: 25,
shift: 19,
_A2: 2
}, {
_u2: 113,
_v2: "q",
_w2: 88,
_x2: 33,
_y2: 18,
_z2: 27,
shift: 20,
_A2: 1
}, {
_u2: 114,
_v2: "r",
_w2: 40,
_x2: 123,
_y2: 17,
_z2: 25,
shift: 20,
_A2: 2
}, {
_u2: 115,
_v2: "s",
_w2: 230,
_x2: 96,
_y2: 17,
_z2: 25,
shift: 17,
_A2: 0
}, {
_u2: 116,
_v2: "t",
_w2: 230,
_x2: 33,
_y2: 18,
_z2: 25,
shift: 18,
_A2: 0
}, {
_u2: 117,
_v2: "u",
_w2: 78,
_x2: 123,
_y2: 17,
_z2: 25,
shift: 21,
_A2: 2
}, {
_u2: 118,
_v2: "v",
_w2: 148,
_x2: 33,
_y2: 19,
_z2: 25,
shift: 19,
_A2: 0
}, {
_u2: 119,
_v2: "w",
_w2: 2,
_x2: 2,
_y2: 30,
_z2: 25,
shift: 29,
_A2: 0
}, {
_u2: 120,
_v2: "x",
_w2: 2,
_x2: 63,
_y2: 18,
_z2: 25,
shift: 18,
_A2: 0
}, {
_u2: 121,
_v2: "y",
_w2: 46,
_x2: 33,
_y2: 20,
_z2: 25,
shift: 18,
_A2: -1
}, {
_u2: 122,
_v2: "z",
_w2: 2,
_x2: 123,
_y2: 17,
_z2: 25,
shift: 17,
_A2: 0
}, {
_u2: 123,
_v2: "{",
_w2: 143,
_x2: 152,
_y2: 13,
_z2: 30,
shift: 14,
_A2: 1
}, {
_u2: 124,
_v2: "|",
_w2: 180,
_x2: 185,
_y2: 6,
_z2: 31,
shift: 10,
_A2: 2
}, {
_u2: 125,
_v2: "}",
_w2: 128,
_x2: 152,
_y2: 13,
_z2: 30,
shift: 14,
_A2: 0
}, {
_u2: 126,
_v2: "~",
_w2: 61,
_x2: 185,
_y2: 15,
_z2: 19,
shift: 15,
_A2: 0
}, {
_u2: 127,
_w2: 78,
_x2: 185,
_y2: 15,
_z2: 19,
shift: 15,
_A2: 0
},
{_u2:24685,_v2:"恭",_w2:14,_x2:214,_y2:24,_z2:24,shift:24,_A2:0},{_u2:21916,_v2:"喜",_w2:38,_x2:214,_y2:24,_z2:24,shift:24,_A2:0},{_u2:36807,_v2:"过",_w2:62,_x2:214,_y2:24,_z2:24,shift:24,_A2:0},{_u2:20851,_v2:"关",_w2:86,_x2:214,_y2:24,_z2:24,shift:24,_A2:0},{_u2:38383,_v2:"闯",_w2:110,_x2:214,_y2:24,_z2:24,shift:24,_A2:0},{_u2:20851,_v2:"关",_w2:134,_x2:214,_y2:24,_z2:24,shift:24,_A2:0},{_u2:22833,_v2:"失",_w2:158,_x2:214,_y2:24,_z2:24,shift:24,_A2:0},{_u2:36133,_v2:"败",_w2:182,_x2:214,_y2:24,_z2:24,shift:24,_A2:0},{_u2:26242,_v2:"暂",_w2:206,_x2:214,_y2:24,_z2:24,shift:24,_A2:0},{_u2:20572,_v2:"停",_w2:230,_x2:214,_y2:24,_z2:24,shift:24,_A2:0},{_u2:24320,_v2:"开",_w2:254,_x2:214,_y2:24,_z2:24,shift:24,_A2:0},{_u2:21551,_v2:"启",_w2:278,_x2:214,_y2:24,_z2:24,shift:24,_A2:0},{_u2:22768,_v2:"声",_w2:302,_x2:214,_y2:24,_z2:24,shift:24,_A2:0},{_u2:38899,_v2:"音",_w2:326,_x2:214,_y2:24,_z2:24,shift:24,_A2:0}
],
}],
_B2: [],
_C2: [{}, ],
_D2: [{
_m1: "obj_fm",
_E2: -1,
_F2: !0,
_G2: !0,
_H2: -999999,
parent: -100,
_I2: _J2,
_K2: _L2,
_M2: _N2,
_O2: [],
_P2: []
}, {
_m1: "obj_always_present",
_E2: -1,
_F2: !0,
_G2: !0,
_H2: -99999,
parent: -100,
_I2: _Q2,
_K2: _R2,
_M2: _S2,
_O2: [],
_P2: []
}, {
_m1: "obj_control",
_E2: -1,
_F2: !0,
_H2: -9000,
parent: -100,
_I2: _T2,
_K2: _U2,
_V2: _W2,
_X2: _Y2,
_M2: _Z2,
_O2: [],
_P2: []
}, {
_m1: "obj_player",
_E2: 2,
_F2: !0,
_H2: -300,
parent: -100,
_I2: __2,
_03: _13,
_23: _33,
_43: _53,
_K2: _63,
_M2: _73,
_O2: [],
_P2: []
}, {
_m1: "obj_ingame_button",
_E2: 19,
_F2: !0,
_H2: -9050,
parent: -100,
_I2: _83,
_K2: _93,
_a3: _b3,
_M2: _c3,
_O2: [],
_P2: []
}, {
_m1: "obj_player_finish",
_E2: 6,
_F2: !0,
_H2: -300,
parent: -100,
_I2: _d3,
_K2: _e3,
_M2: _f3,
_O2: [],
_P2: []
}, {
_m1: "obj_player_die",
_E2: 7,
_F2: !0,
_H2: -300,
parent: -100,
_I2: _g3,
_K2: _h3,
_M2: _i3,
_O2: [],
_P2: []
}, {
_m1: "obj_ghost",
_E2: 29,
_F2: !0,
_H2: -650,
parent: -100,
_I2: _j3,
_O2: [],
_P2: []
}, {
_m1: "obj_ghost_on",
_E2: 29,
_F2: !0,
_H2: -650,
parent: -100,
_I2: _k3,
_K2: _l3,
_O2: [],
_P2: []
}, {
_m1: "obj_solid",
_E2: -1,
_F2: !0,
parent: -100,
_O2: [],
_P2: []
}, {
_m1: "obj_unsolid",
_E2: -1,
_F2: !0,
parent: -100,
_O2: [],
_P2: []
}, {
_m1: "obj_platform_solid",
_E2: 23,
_F2: !0,
_H2: -100,
parent: 9,
_I2: _m3,
_n3: _o3,
_K2: _p3,
_M2: _q3,
_O2: [],
_P2: []
}, {
_m1: "obj_platform_unsolid",
_E2: 23,
_F2: !0,
_H2: -100,
parent: 10,
_I2: _r3,
_K2: _s3,
_M2: _t3,
_O2: [],
_P2: []
}, {
_m1: "obj_v_platform",
_E2: 25,
_F2: !0,
_H2: -101,
parent: 9,
_I2: _u3,
_K2: _v3,
_M2: _w3,
_O2: [],
_P2: []
}, {
_m1: "obj_v_platform_unsolid",
_E2: 25,
_F2: !0,
_H2: -101,
parent: 10,
_I2: _x3,
_K2: _y3,
_M2: _z3,
_O2: [],
_P2: []
}, {
_m1: "obj_ghost_platform",
_E2: 30,
_F2: !0,
_H2: -101,
parent: 9,
_I2: _A3,
_B3: _C3,
_K2: _D3,
_M2: _E3,
_O2: [],
_P2: []
}, {
_m1: "obj_ghost_platform_unsolid",
_E2: 30,
_F2: !0,
_H2: -101,
parent: 10,
_I2: _F3,
_B3: _G3,
_K2: _H3,
_M2: _I3,
_O2: [],
_P2: []
}, {
_m1: "obj_ghost_platform_die",
_E2: 30,
_F2: !0,
_H2: -101,
parent: -100,
_I2: _J3,
_K2: _K3,
_M2: _L3,
_O2: [],
_P2: []
}, {
_m1: "obj_platform_arrowu",
_E2: -1,
_F2: !0,
parent: -100,
_I2: _M3,
_O2: [],
_P2: []
}, {
_m1: "obj_platform_double",
_E2: 23,
_H2: -106,
parent: -100,
_I2: _N3,
_O2: [],
_P2: []
}, {
_m1: "obj_platform_doublegrow",
_E2: 23,
_F2: !0,
_H2: -106,
parent: -100,
_I2: _O3,
_K2: _P3,
_O2: [],
_P2: []
}, {
_m1: "obj_portal",
_E2: 4,
_F2: !0,
_H2: -105,
parent: -100,
_Q3: 23,
_I2: _R3,
_K2: _S3,
_M2: _T3,
_O2: [],
_P2: []
}, {
_m1: "obj_spinwire",
_E2: 26,
_F2: !0,
_H2: -400,
parent: -100,
_I2: _U3,
_K2: _V3,
_M2: _W3,
_O2: [],
_P2: []
}, {
_m1: "obj_spinwire_button",
_E2: 28,
_F2: !0,
parent: -100,
_I2: _X3,
_K2: _Y3,
_M2: _Z3,
_O2: [],
_P2: []
}, {
_m1: "obj_teleport",
_E2: 31,
_F2: !0,
_H2: 50,
parent: -100,
_I2: __3,
_K2: _04,
_M2: _14,
_O2: [],
_P2: []
}, {
_m1: "obj_notused2",
_E2: 31,
_F2: !0,
_H2: -100,
parent: 10,
_O2: [],
_P2: []
}, {
_m1: "obj_notused",
_E2: 11,
_F2: !0,
_H2: -290,
parent: -100,
_O2: [],
_P2: []
}, {
_m1: "obj_particle",
_E2: 23,
_F2: !0,
_H2: -105,
parent: -100,
_I2: _24,
_K2: _34,
_M2: _44,
_O2: [],
_P2: []
}, {
_m1: "obj_bird",
_E2: 10,
_F2: !0,
_H2: 2000,
parent: -100,
_I2: _54,
_K2: _64,
_O2: [],
_P2: []
}, {
_m1: "obj_menu_control",
_E2: -1,
_F2: !0,
_H2: -1000,
parent: -100,
_I2: _74,
_K2: _84,
_M2: _94,
_O2: [],
_P2: []
}, {
_m1: "obj_menu_button",
_E2: 13,
_F2: !0,
parent: -100,
_I2: _a4,
_23: _b4,
_K2: _c4,
_a3: _d4,
_M2: _e4,
_O2: [],
_P2: []
}, {
_m1: "obj_volume_button",
_E2: 20,
_F2: !0,
_H2: -100,
parent: -100,
_I2: _f4,
_K2: _g4,
_a3: _h4,
_O2: [],
_P2: []
}, {
_m1: "obj_menu_level_button",
_E2: 14,
_F2: !0,
_H2: -50,
parent: -100,
_I2: _i4,
_K2: _j4,
_a3: _k4,
_M2: _l4,
_O2: [],
_P2: []
}, {
_m1: "obj_menu_back_button",
_E2: 16,
_F2: !0,
_H2: -50,
parent: -100,
_I2: _m4,
_K2: _n4,
_a3: _o4,
_M2: _p4,
_O2: [],
_P2: []
}, {
_m1: "obj_menu_next_button",
_E2: 17,
_F2: !0,
_H2: -50,
parent: -100,
_I2: _q4,
_K2: _r4,
_a3: _s4,
_M2: _t4,
_O2: [],
_P2: []
}, {
_m1: "obj_banner",
_E2: 32,
_F2: !0,
_G2: !0,
_H2: -200000,
parent: -100,
_M2: _u4,
_O2: [],
_P2: []
}],
_v4: [{
_m1: "rm_init",
width: 320,
height: 480,
_w4: 65280,
_x4: !0,
_y4: !1,
_z4: [{}, {}, {}, {}, {}, {}, {}, {}],
_A4: [{
_F2: !0,
_B4: 320,
_C4: 320,
}, {}, {}, {}, {}, {}, {}, {}],
_D4: [{
_w2: 0,
_x2: 0,
index: 0,
id: 100000,
_E4: 0,
_r2: 1,
_s2: 1,
_w4: 4294967295
}],
_F4: []
}, {
_m1: "rm_oranges_init",
width: 320,
height: 480,
_x4: !0,
_y4: !1,
_G4: _H4,
_z4: [{}, {}, {}, {}, {}, {}, {}, {}],
_A4: [{
_F2: !0,
_B4: 320,
_C4: 320,
}, {}, {}, {}, {}, {}, {}, {}],
_D4: [],
_F4: []
}, {
_m1: "rm_menu",
width: 320,
height: 480,
_w4: 16777088,
_x4: !0,
_y4: !1,
_z4: [{
_F2: !0,
index: 1,
_I4: !1,
_J4: !1,
}, {}, {}, {}, {}, {}, {}, {}],
_A4: [{
_F2: !0,
_B4: 320,
_C4: 320,
}, {}, {}, {}, {}, {}, {}, {}],
_D4: [{
_w2: 160,
_x2: 264,
index: 30,
id: 100001,
_E4: 0,
_r2: 1,
_s2: 1,
_w4: 4294967295
}, {
_w2: 48,
_x2: 0,
index: 29,
id: 100002,
_E4: 0,
_r2: 1,
_s2: 1,
_w4: 4294967295
}],
_F4: []
}, {
_m1: "rm_play",
width: 320,
height: 480,
_w4: 16777088,
_x4: !0,
_y4: !1,
_z4: [{
_F2: !0,
index: 1,
_I4: !1,
_J4: !1,
}, {}, {}, {}, {}, {}, {}, {}],
_A4: [{
_F2: !0,
_B4: 320,
_C4: 320,
}, {}, {}, {}, {}, {}, {}, {}],
_D4: [{
_w2: 0,
_x2: 0,
index: 2,
id: 100003,
_E4: 0,
_r2: 1,
_s2: 1,
_w4: 4294967295
}],
_F4: []
}, {
_m1: "rm_flip",
width: 480,
height: 320,
_x4: !0,
_y4: !1,
_z4: [{
_F2: !0,
index: 0,
}, {}, {}, {}, {}, {}, {}, {}],
_A4: [{
_F2: !0,
_B4: 480,
_K4: 320,
_C4: 480,
_L4: 320,
}, {}, {}, {}, {}, {}, {}, {}],
_D4: [],
_F4: []
}],
_M4: [0, 1, 2, 3, 4],
_N4: [{
_w2: 2,
_x2: 246,
_y2: 288,
_z2: 129,
_O4: 0,
_P4: 0,
_Q4: 288,
_R4: 129,
_S4: 288,
_T4: 129,
_U4: 0
}, {
_w2: 2,
_x2: 2,
_y2: 238,
_z2: 238,
_O4: 1,
_P4: 1,
_Q4: 238,
_R4: 238,
_S4: 240,
_T4: 240,
_U4: 0
}, {
_w2: 474,
_x2: 618,
_y2: 36,
_z2: 36,
_O4: 6,
_P4: 6,
_Q4: 36,
_R4: 36,
_S4: 48,
_T4: 48,
_U4: 0
}, {
_w2: 246,
_x2: 114,
_y2: 36,
_z2: 36,
_O4: 6,
_P4: 6,
_Q4: 36,
_R4: 36,
_S4: 48,
_T4: 48,
_U4: 0
}, {
_w2: 462,
_x2: 78,
_y2: 36,
_z2: 36,
_O4: 6,
_P4: 6,
_Q4: 36,
_R4: 36,
_S4: 48,
_T4: 48,
_U4: 0
}, {
_w2: 246,
_x2: 154,
_y2: 36,
_z2: 36,
_O4: 6,
_P4: 6,
_Q4: 36,
_R4: 36,
_S4: 48,
_T4: 48,
_U4: 0
}, {
_w2: 246,
_x2: 194,
_y2: 36,
_z2: 36,
_O4: 6,
_P4: 6,
_Q4: 36,
_R4: 36,
_S4: 48,
_T4: 48,
_U4: 0
}, {
_w2: 106,
_x2: 686,
_y2: 36,
_z2: 36,
_O4: 6,
_P4: 6,
_Q4: 36,
_R4: 36,
_S4: 48,
_T4: 48,
_U4: 0
}, {
_w2: 494,
_x2: 658,
_y2: 15,
_z2: 15,
_O4: 17,
_P4: 17,
_Q4: 15,
_R4: 15,
_S4: 48,
_T4: 48,
_U4: 0
}, {
_w2: 314,
_x2: 434,
_y2: 62,
_z2: 62,
_O4: 1,
_P4: 1,
_Q4: 62,
_R4: 62,
_S4: 64,
_T4: 64,
_U4: 0
}, {
_w2: 490,
_x2: 558,
_y2: 20,
_z2: 20,
_O4: 6,
_P4: 6,
_Q4: 20,
_R4: 20,
_S4: 32,
_T4: 32,
_U4: 0
}, {
_w2: 246,
_x2: 2,
_y2: 36,
_z2: 50,
_O4: 6,
_P4: 6,
_Q4: 36,
_R4: 50,
_S4: 48,
_T4: 64,
_U4: 0
}, {
_w2: 246,
_x2: 2,
_y2: 36,
_z2: 50,
_O4: 6,
_P4: 6,
_Q4: 36,
_R4: 50,
_S4: 48,
_T4: 64,
_U4: 0
}, {
_w2: 246,
_x2: 58,
_y2: 36,
_z2: 50,
_O4: 6,
_P4: 6,
_Q4: 36,
_R4: 50,
_S4: 48,
_T4: 64,
_U4: 0
}, {
_w2: 418,
_x2: 2,
_y2: 71,
_z2: 71,
_O4: 13,
_P4: 13,
_Q4: 71,
_R4: 71,
_S4: 96,
_T4: 96,
_U4: 0
}, {
_w2: 174,
_x2: 558,
_y2: 29,
_z2: 29,
_O4: 35,
_P4: 35,
_Q4: 29,
_R4: 29,
_S4: 96,
_T4: 96,
_U4: 0
}, {
_w2: 338,
_x2: 658,
_y2: 9,
_z2: 4,
_O4: 1,
_P4: 2,
_Q4: 9,
_R4: 4,
_S4: 12,
_T4: 7,
_U4: 0
}, {
_w2: 158,
_x2: 634,
_y2: 9,
_z2: 4,
_O4: 1,
_P4: 2,
_Q4: 9,
_R4: 4,
_S4: 12,
_T4: 7,
_U4: 0
}, {
_w2: 382,
_x2: 434,
_y2: 9,
_z2: 4,
_O4: 1,
_P4: 2,
_Q4: 9,
_R4: 4,
_S4: 12,
_T4: 7,
_U4: 0
}, {
_w2: 502,
_x2: 414,
_y2: 7,
_z2: 4,
_O4: 2,
_P4: 2,
_Q4: 7,
_R4: 4,
_S4: 12,
_T4: 7,
_U4: 0
}, {
_w2: 382,
_x2: 434,
_y2: 9,
_z2: 4,
_O4: 1,
_P4: 2,
_Q4: 9,
_R4: 4,
_S4: 12,
_T4: 7,
_U4: 0
}, {
_w2: 158,
_x2: 634,
_y2: 9,
_z2: 4,
_O4: 1,
_P4: 2,
_Q4: 9,
_R4: 4,
_S4: 12,
_T4: 7,
_U4: 0
}, {
_w2: 338,
_x2: 658,
_y2: 9,
_z2: 4,
_O4: 1,
_P4: 2,
_Q4: 9,
_R4: 4,
_S4: 12,
_T4: 7,
_U4: 0
}, {
_w2: 46,
_x2: 718,
_y2: 34,
_z2: 27,
_O4: 21,
_P4: 18,
_Q4: 34,
_R4: 27,
_S4: 64,
_T4: 64,
_U4: 0
}, {
_w2: 418,
_x2: 558,
_y2: 67,
_z2: 54,
_O4: 42,
_P4: 37,
_Q4: 67,
_R4: 54,
_S4: 128,
_T4: 128,
_U4: 0
}, {
_w2: 402,
_x2: 238,
_y2: 97,
_z2: 84,
_O4: 19,
_P4: 14,
_Q4: 97,
_R4: 84,
_S4: 120,
_T4: 120,
_U4: 0
}, {
_w2: 402,
_x2: 326,
_y2: 97,
_z2: 84,
_O4: 19,
_P4: 14,
_Q4: 97,
_R4: 84,
_S4: 120,
_T4: 120,
_U4: 0
}, {
_w2: 294,
_x2: 346,
_y2: 97,
_z2: 84,
_O4: 19,
_P4: 14,
_Q4: 97,
_R4: 84,
_S4: 120,
_T4: 120,
_U4: 0
}, {
_w2: 2,
_x2: 382,
_y2: 97,
_z2: 84,
_O4: 19,
_P4: 14,
_Q4: 97,
_R4: 84,
_S4: 120,
_T4: 120,
_U4: 0
}, {
_w2: 106,
_x2: 382,
_y2: 97,
_z2: 84,
_O4: 19,
_P4: 14,
_Q4: 97,
_R4: 84,
_S4: 120,
_T4: 120,
_U4: 0
}, {
_w2: 398,
_x2: 414,
_y2: 97,
_z2: 84,
_O4: 19,
_P4: 14,
_Q4: 97,
_R4: 84,
_S4: 120,
_T4: 120,
_U4: 0
}, {
_w2: 210,
_x2: 434,
_y2: 97,
_z2: 84,
_O4: 19,
_P4: 14,
_Q4: 97,
_R4: 84,
_S4: 120,
_T4: 120,
_U4: 0
}, {
_w2: 2,
_x2: 470,
_y2: 97,
_z2: 84,
_O4: 19,
_P4: 14,
_Q4: 97,
_R4: 84,
_S4: 120,
_T4: 120,
_U4: 0
}, {
_w2: 106,
_x2: 470,
_y2: 97,
_z2: 84,
_O4: 19,
_P4: 14,
_Q4: 97,
_R4: 84,
_S4: 120,
_T4: 120,
_U4: 0
}, {
_w2: 314,
_x2: 502,
_y2: 97,
_z2: 84,
_O4: 19,
_P4: 14,
_Q4: 97,
_R4: 84,
_S4: 120,
_T4: 120,
_U4: 0
}, {
_w2: 210,
_x2: 522,
_y2: 97,
_z2: 84,
_O4: 19,
_P4: 14,
_Q4: 97,
_R4: 84,
_S4: 120,
_T4: 120,
_U4: 0
}, {
_w2: 210,
_x2: 522,
_y2: 97,
_z2: 84,
_O4: 19,
_P4: 14,
_Q4: 97,
_R4: 84,
_S4: 120,
_T4: 120,
_U4: 0
}, {
_w2: 294,
_x2: 238,
_y2: 104,
_z2: 103,
_O4: 8,
_P4: 8,
_Q4: 104,
_R4: 103,
_S4: 120,
_T4: 120,
_U4: 0
}, {
_w2: 406,
_x2: 126,
_y2: 104,
_z2: 105,
_O4: 8,
_P4: 7,
_Q4: 104,
_R4: 105,
_S4: 120,
_T4: 120,
_U4: 0
}, {
_w2: 294,
_x2: 126,
_y2: 105,
_z2: 105,
_O4: 8,
_P4: 7,
_Q4: 105,
_R4: 105,
_S4: 120,
_T4: 120,
_U4: 0
}, {
_w2: 294,
_x2: 2,
_y2: 120,
_z2: 120,
_O4: 0,
_P4: 0,
_Q4: 120,
_R4: 120,
_S4: 120,
_T4: 120,
_U4: 0
}, {
_w2: 174,
_x2: 610,
_y2: 52,
_z2: 52,
_O4: 0,
_P4: 0,
_Q4: 52,
_R4: 52,
_S4: 52,
_T4: 52,
_U4: 0
}, {
_w2: 174,
_x2: 610,
_y2: 52,
_z2: 52,
_O4: 0,
_P4: 0,
_Q4: 52,
_R4: 52,
_S4: 52,
_T4: 52,
_U4: 0
}, {
_w2: 230,
_x2: 610,
_y2: 51,
_z2: 51,
_O4: 1,
_P4: 1,
_Q4: 51,
_R4: 51,
_S4: 52,
_T4: 52,
_U4: 0
}, {
_w2: 418,
_x2: 502,
_y2: 88,
_z2: 52,
_O4: 8,
_P4: 0,
_Q4: 88,
_R4: 52,
_S4: 104,
_T4: 52,
_U4: 0
}, {
_w2: 2,
_x2: 558,
_y2: 104,
_z2: 52,
_O4: 0,
_P4: 0,
_Q4: 104,
_R4: 52,
_S4: 104,
_T4: 52,
_U4: 0
}, {
_w2: 210,
_x2: 666,
_y2: 47,
_z2: 47,
_O4: 0,
_P4: 0,
_Q4: 47,
_R4: 47,
_S4: 47,
_T4: 47,
_U4: 0
}, {
_w2: 338,
_x2: 670,
_y2: 47,
_z2: 47,
_O4: 0,
_P4: 0,
_Q4: 47,
_R4: 47,
_S4: 47,
_T4: 47,
_U4: 0
}, {
_w2: 390,
_x2: 670,
_y2: 47,
_z2: 47,
_O4: 0,
_P4: 0,
_Q4: 47,
_R4: 47,
_S4: 47,
_T4: 47,
_U4: 0
}, {
_w2: 442,
_x2: 670,
_y2: 47,
_z2: 47,
_O4: 0,
_P4: 0,
_Q4: 47,
_R4: 47,
_S4: 47,
_T4: 47,
_U4: 0
}, {
_w2: 286,
_x2: 610,
_y2: 24,
_z2: 28,
_O4: 6,
_P4: 10,
_Q4: 24,
_R4: 28,
_S4: 48,
_T4: 48,
_U4: 0
}, {
_w2: 306,
_x2: 722,
_y2: 35,
_z2: 28,
_O4: 6,
_P4: 10,
_Q4: 35,
_R4: 28,
_S4: 48,
_T4: 48,
_U4: 0
}, {
_w2: 2,
_x2: 614,
_y2: 48,
_z2: 48,
_O4: 0,
_P4: 0,
_Q4: 48,
_R4: 48,
_S4: 48,
_T4: 48,
_U4: 0
}, {
_w2: 314,
_x2: 590,
_y2: 51,
_z2: 64,
_O4: 31,
_P4: 11,
_Q4: 51,
_R4: 64,
_S4: 96,
_T4: 128,
_U4: 0
}, {
_w2: 110,
_x2: 558,
_y2: 57,
_z2: 72,
_O4: 25,
_P4: 3,
_Q4: 57,
_R4: 72,
_S4: 96,
_T4: 128,
_U4: 0
}, {
_w2: 54,
_x2: 614,
_y2: 48,
_z2: 48,
_O4: 0,
_P4: 0,
_Q4: 48,
_R4: 48,
_S4: 48,
_T4: 48,
_U4: 0
}, {
_w2: 370,
_x2: 618,
_y2: 48,
_z2: 48,
_O4: 0,
_P4: 0,
_Q4: 48,
_R4: 48,
_S4: 48,
_T4: 48,
_U4: 0
}, {
_w2: 422,
_x2: 618,
_y2: 48,
_z2: 48,
_O4: 0,
_P4: 0,
_Q4: 48,
_R4: 48,
_S4: 48,
_T4: 48,
_U4: 0
}, {
_w2: 106,
_x2: 634,
_y2: 48,
_z2: 48,
_O4: 0,
_P4: 0,
_Q4: 48,
_R4: 48,
_S4: 48,
_T4: 48,
_U4: 0
}, {
_w2: 286,
_x2: 658,
_y2: 48,
_z2: 48,
_O4: 0,
_P4: 0,
_Q4: 48,
_R4: 48,
_S4: 48,
_T4: 48,
_U4: 0
}, {
_w2: 2,
_x2: 666,
_y2: 48,
_z2: 48,
_O4: 0,
_P4: 0,
_Q4: 48,
_R4: 48,
_S4: 48,
_T4: 48,
_U4: 0
}, {
_w2: 158,
_x2: 666,
_y2: 48,
_z2: 48,
_O4: 0,
_P4: 0,
_Q4: 48,
_R4: 48,
_S4: 48,
_T4: 48,
_U4: 0
}, {
_w2: 2,
_x2: 718,
_y2: 37,
_z2: 34,
_O4: 6,
_P4: 3,
_Q4: 37,
_R4: 34,
_S4: 48,
_T4: 48,
_U4: 0
}, {
_w2: 262,
_x2: 710,
_y2: 38,
_z2: 34,
_O4: 6,
_P4: 3,
_Q4: 38,
_R4: 34,
_S4: 48,
_T4: 48,
_U4: 0
}, {
_w2: 146,
_x2: 718,
_y2: 37,
_z2: 34,
_O4: 6,
_P4: 3,
_Q4: 37,
_R4: 34,
_S4: 48,
_T4: 48,
_U4: 0
}, {
_w2: 494,
_x2: 2,
_y2: 15,
_z2: 15,
_O4: 17,
_P4: 17,
_Q4: 15,
_R4: 15,
_S4: 48,
_T4: 48,
_U4: 0
}, {
_w2: 86,
_x2: 718,
_y2: 15,
_z2: 15,
_O4: 17,
_P4: 17,
_Q4: 15,
_R4: 15,
_S4: 48,
_T4: 48,
_U4: 0
}, {
_w2: 370,
_x2: 590,
_y2: 27,
_z2: 17,
_O4: 0,
_P4: 0,
_Q4: 27,
_R4: 17,
_S4: 27,
_T4: 17,
_U4: 0
}, {
_w2: 190,
_x2: 718,
_y2: 27,
_z2: 17,
_O4: 0,
_P4: 0,
_Q4: 27,
_R4: 17,
_S4: 27,
_T4: 17,
_U4: 0
}, {
_w2: 262,
_x2: 666,
_y2: 20,
_z2: 20,
_O4: 14,
_P4: 14,
_Q4: 20,
_R4: 20,
_S4: 48,
_T4: 48,
_U4: 0
}, {
_w2: 346,
_x2: 722,
_y2: 20,
_z2: 20,
_O4: 14,
_P4: 14,
_Q4: 20,
_R4: 20,
_S4: 48,
_T4: 48,
_U4: 0
}, {
_w2: 54,
_x2: 666,
_y2: 48,
_z2: 48,
_O4: 0,
_P4: 0,
_Q4: 48,
_R4: 48,
_S4: 48,
_T4: 48,
_U4: 0
}, {
_w2: 418,
_x2: 78,
_y2: 38,
_z2: 38,
_O4: 5,
_P4: 5,
_Q4: 38,
_R4: 38,
_S4: 48,
_T4: 48,
_U4: 0
}, {
_w2: 210,
_x2: 382,
_y2: 73,
_z2: 46,
_O4: 122,
_P4: 2,
_Q4: 73,
_R4: 46,
_S4: 320,
_T4: 50,
_U4: 0
}, {
_w2: 4,
_x2: 4,
_y2: 480,
_z2: 320,
_O4: 0,
_P4: 0,
_Q4: 480,
_R4: 320,
_S4: 480,
_T4: 320,
_U4: 1
}, {
_w2: 4,
_x2: 332,
_y2: 320,
_z2: 480,
_O4: 0,
_P4: 0,
_Q4: 320,
_R4: 480,
_S4: 320,
_T4: 480,
_U4: 1
}, {
_w2: 490,
_x2: 2,
_y2: 256,
_z2: 256,
_O4: 0,
_P4: 0,
_Q4: 256,
_R4: 256,
_S4: 256,
_T4: 256,
_U4: 1
}],
_V4: ["jelly_jumper_texture_0.png", "jelly_jumper_texture_1.png"],
_W4: {
_X4: !1,
_Y4: 686949659,
_Z4: "cd066871-dfd4-4f14-94d8-01a5cb184dda",
__4: !1,
_05: !0,
_15: !0,
scale: 0,
_25: !0,
_35: !1,
_45: !1,
_55: !0,
_65: !1,
_75: !1,
_85: !0,
_95: !1,
_a5: 0,
_b5: 0,
_c5: !1,
_d5: "html5game",
_e5: "Default",
_f5: 0,
_g5: !0,
_h5: -1968544233,
_i5: [131, 41, 203, 159, 207, 62, 26, 126,
66, 33, 236, 193, 247, 33, 95, 246
],
_j5: "gamemaker: studio",
_k5: 1,
_l5: 0,
_m5: 0,
_n5: 1412288783,
_o5: "jchtml5_fullscreen_loading_bar"
}
};
function _p5() {}
function _q5() {
global._r5 = 0;
global._s5 = 0;
global._t5 = 0;
global._u5 = 0;
global._v5 = 0;
global._w5 = 0;
global._x5 = 0;
global._y5 = 0;
global._z5 = 0;
global._A5 = 0;
global._B5 = 0;
global._C5 = 0;
global._D5 = 0;
global._E5 = 0;
global._F5 = 0;
global._G5 = 0;
global._H5 = 0;
global._I5 = 0;
global._J5 = 0;
global._K5 = 0;
global._L5 = 0;
global._M5 = 0;
global._N5 = 0;
global._O5 = 0;
global._P5 = 0;
global._Q5 = 0;
global._R5 = 0;
global._S5 = 0;
global._T5 = 0;
global._U5 = 0;
global._V5 = 0;
global._W5 = 0;
}
function _C1(_X5, _Y5, _Z5) {
if ((__5(1)._06 == (-1))) {
{
__5(1)._06 = _Z5; {
var _16 = _26(1);
for (var _36 in _16) {
if (!_16.hasOwnProperty(_36)) continue;
var _46 = _16[_36];
if (_46._56) continue; {
_46._66 = 1;
}
}
};
}
};
}
function _D1(_X5, _Y5) {
global._76 = _86();
_96(global._76, "w", 11);
_96(global._76, "u", 18);
_96(global._76, "p", 3);
_96(global._76, "W", 19);
_96(global._76, "v", 13);
_96(global._76, "x", 22);
_96(global._76, "b", 23);
_96(global._76, "g", 7);
_96(global._76, "G", 15);
_96(global._76,
"o", 24);
global._a6 = 36;
global._b6 = 1;
if (!(global._c6 instanceof Array)) {
global._c6 = [];
global._c6._f1 = 1355860334
} else if (global._c6._f1 !== 1355860334) {
global._c6 = global._c6.slice(0);
global._c6._f1 = 1355860334
}
global._c6[1] = " p www www w ";
global._c6[2] = " p www WWWw w ";
global._c6[3] = " p wvvvvw wvvvw ";
global._c6[4] = " p w www w w wu wwwu ";
global._c6[5] = " b p vvvwwx x x ww ";
global._c6[6] = " p g wwww G wWw ";
global._c6[7] = " g wwbG p vvvvvu xxxwWWwww ";
global._c6[8] = " pwwww w u ww ww u wwwwwu";
global._c6[9] = " p wwWwb bvwWW v xxxx w w ";
global._c6[10] = " wwwwwW uwxwWu xxxxwu p uwwww ";
global._c6[11] = " gg Gwwvv G u p WWwu w ";
global._c6[12] = " p w wwwww wwww ww ";
global._c6[13] = " p wWvW x WWw w ";
global._c6[14] = " p v vvv v vu uvuvuv ";
global._c6[15] = " p w WWw vxv vx v ww wwv";
global._c6[16] = " p vv xx wWWWw ";
global._c6[17] = " p v g v vvGv b vvvGvu x ww ";
global._c6[18] = " p WWg wWWWWW uwww wwG w ";
global._c6[19] = " ggg www p wwwu Gvvw GG wWwww ";
global._c6[20] = " WWwWw p uWWwwb xxvvvvxx ww ";
_E1(_X5, _Y5);
}
function _E1(_X5, _Y5) {
if (!(global._c6 instanceof Array)) {
global._c6 = [];
global._c6._f1 = 1355860334
} else if (global._c6._f1 !== 1355860334) {
global._c6 = global._c6.slice(0);
global._c6._f1 = 1355860334
}
global._c6[21] = " o o w p uwWww ";
global._c6[22] = " o b wwvw xx u p owwwu ";
global._c6[23] = " WWWw pwu uwW wWw xb b wwvvv ";
global._c6[24] = " o p ww w WWW uWWw o ";
global._c6[25] = " xx bxx wvvvvw pb uvvWw w w uwww ";
global._c6[26] = " p wwwwwwg ovvvuvv oG ww ";
global._c6[27] = " o p wwwwwwwwo uwwww uwWw w ";
global._c6[28] = " g G p wwww wuwWwu wwu ";
global._c6[29] = " p wWW xxwbWWvwvv uwww ";
global._c6[30] = "o vvvWWW vuwwup vuwwwu o u ";
global._c6[31] = " x pbxb wvvvW xxxxx x wWwww ";
global._c6[32] = "o vv p GG wvvvvG gowvwwW gg wvWu ";
global._c6[33] = "o bG vwvvwvxxxxxx p gWWw wwwW wwwwo";
global._c6[34] = " p wWww wWbvxvvvv u WW wwww ";
global._c6[35] = " p wwww wwwW o o uvvvvv o o WWWWw ";
global._c6[36] = "p o wwg G vvwWw x wWw wwww Ggb wwvvo ";
}
function _F1(_X5, _Y5) {
var _d6, _e6, _f6, _g6;
_d6 = global._c6[global._b6];
_e6 = 1;
_X5._h6(global._i6);
_X5._j6(global._k6);
for (var _l6 = 0, _m6 = ~~ (48); _l6 < _m6; _l6++) {
{
_f6 = _n6(_d6, _e6);
if ((_f6 != " ")) {
{
_g6 = _o6(global._76, _f6);
_p6((_X5._w2 + 24), (_X5._x2 + 24), _g6);
}
};
_X5._h6(_X5._w2 + 48);
if ((_X5._w2 > 257)) {
{
_X5._h6(global._i6);
_X5._j6(_X5._x2 + 48);
}
};
_e6 += 1;
}
};
}
function _G1(_X5, _Y5) {
{
var _q6 = _26(9);
for (var _r6 in _q6) {
if (!_q6.hasOwnProperty(_r6)) continue;
var _s6 = _q6[_r6];
if (_s6._56) continue; {
if (_t6(3) > 0.5) {
{
if (((__5(3)._x2 + 48) > _s6._x2)) {
{
_s6._u6 = _p6(_s6._w2, _s6._x2, _s6._v6);
if ((_s6._w6 == 30)) {
{
if (!(__5(_s6._u6)._x6 instanceof Array)) {
__5(_s6._u6)._x6 = [];
__5(_s6._u6)._x6._f1 = 1738157798
} else if (__5(_s6._u6)._x6._f1 !== 1738157798) {
__5(_s6._u6)._x6 = __5(_s6._u6)._x6.slice(0);
__5(_s6._u6)._x6._f1 = 1738157798
}
__5(_s6._u6)._x6[0] = _s6._x6[0];
__5(_s6._u6)._y6 = _s6._y6; {
var _z6 = _26(_s6._u6);
for (var _A6 in _z6) {
if (!_z6.hasOwnProperty(_A6)) continue;
var _B6 = _z6[_A6];
if (_B6._56) continue; {
if ((_B6._y6 != (-1))) {
__5(_B6._y6)._C6 = _B6.id
};
}
}
};
}
};
__5(_s6._u6)._D6 = 0;
__5(_s6._u6)._E6(_s6._w6);
__5(_s6._u6)._F6(_s6._G6);
__5(_s6._u6)._H6 = _s6._H6;
__5(_s6._u6)._I6 = _s6._I6;
__5(_s6._u6)._J6 = _s6._J6;
__5(_s6._u6)._K6 = _s6._K6;
__5(_s6._u6)._L6 = _s6._L6;
__5(_s6._u6)._M6 = _s6._M6;
__5(_s6._u6)._N6 = _s6._N6;
__5(_s6._u6)._O6 = _s6._O6;
__5(_s6._u6)._P6 = _s6._P6;
__5(_s6._u6)._Q6 = _s6._Q6;
__5(_s6._u6)._R6 = _s6._R6;
__5(_s6._u6)._S6 = _s6._S6;
_T6(_s6);
}
};
}
};
}
}
}; {
var _U6 = _26(10);
for (var _V6 in _U6) {
if (!_U6.hasOwnProperty(_V6)) continue;
var _W6 = _U6[_V6];
if (_W6._56) continue; {
if ((_W6._D6 == 1)) {
{
if (_t6(3) > 0.5) {
{
if (((__5(3)._x2 + 48) < _W6._x2)) {
{
_W6._u6 = _p6(_W6._w2, _W6._x2, _W6._v6);
if ((_W6._w6 == 30)) {
{
if (!(__5(_W6._u6)._x6 instanceof Array)) {
__5(_W6._u6)._x6 = [];
__5(_W6._u6)._x6._f1 = 2315906708
} else if (__5(_W6._u6)._x6._f1 !== 2315906708) {
__5(_W6._u6)._x6 = __5(_W6._u6)._x6.slice(0);
__5(_W6._u6)._x6._f1 = 2315906708
}
__5(_W6._u6)._x6[0] = _W6._x6[0];
__5(_W6._u6)._y6 = _W6._y6; {
var _X6 = _26(_W6._u6);
for (var _Y6 in _X6) {
if (!_X6.hasOwnProperty(_Y6)) continue;
var _Z6 = _X6[_Y6];
if (_Z6._56) continue; {
if ((_Z6._y6 != (-1))) {
__5(_Z6._y6)._C6 = _Z6.id
};
}
}
};
}
};
__5(_W6._u6)._D6 = 0;
__5(_W6._u6)._E6(_W6._w6);
__5(_W6._u6)._F6(_W6._G6);
__5(_W6._u6)._H6 = _W6._H6;
__5(_W6._u6)._I6 = _W6._I6;
__5(_W6._u6)._J6 = _W6._J6;
__5(_W6._u6)._K6 = _W6._K6;
__5(_W6._u6)._L6 = _W6._L6;
__5(_W6._u6)._M6 = _W6._M6;
__5(_W6._u6)._N6 = _W6._N6;
__5(_W6._u6)._O6 = _W6._O6;
__5(_W6._u6)._P6 = _W6._P6;
__5(_W6._u6)._Q6 = _W6._Q6;
__5(_W6._u6)._R6 = _W6._R6;
__5(_W6._u6)._S6 = _W6._S6;
_T6(_W6);
}
};
}
};
}
};
}
}
}; {
var __6 = _26(10);
for (var _07 in __6) {
if (!__6.hasOwnProperty(_07)) continue;
var _17 = __6[_07];
if (_17._56) continue; {
_17._D6 = 1;
}
}
};
}
function _H1(_X5, _Y5) {
_27("jjsav.ini");
_37("data", "have_cape", global._47);
_37("data", "sound_enabled", global._57);
_37("data", "levels_completed", global._67);
_77();
}
function _I1(_X5, _Y5) {
_X5._87 = _X5._w2;
_X5._97 = _X5._x2;
if ((((_X5._a7 != 0)) && ((_X5._b7 == 0)))) {
{
_X5._h6(_X5._w2 + _X5._a7);
_X5._c7 -= floor(abs(_X5._a7));
if ((_X5._c7 < 1)) {
{
_X5._a7 = 0;
}
};
}
};
if ((((_X5._d7 != 0)) && ((_X5._b7 == 0)))) {
{
_X5._66 = _e7(_X5._d7);
for (var _f7 = 0,
_g7 = ~~ (floor(abs(_X5._d7))); _f7 < _g7; _f7++) {
{
if (!(_h7(_X5, _X5._w2, (_X5._x2 + _X5._66), 9) > 0.5)) {
_X5._j6(_X5._x2 + _X5._66)
} else {
{
if ((_X5._66 == 1)) {
{
if (_h7(_X5, _X5._w2, (_X5._x2 + 1), 9) > 0.5) {
{
var _i7;
_i7 = _j7(_X5, _X5._w2, (_X5._x2 + 1), 9);
if ((__5(_i7)._M6 == 1)) {
{
if ((__5(_i7)._O6 < 180)) {
__5(_i7)._O6 += 180
};
}
} else {
__5(_i7)._M6 = 1
};
__5(_i7)._R6 = 1;
__5(_i7)._N6 = (abs(_X5._d7) * 2); {
var _k7 = _26(_i7);
for (var _l7 in _k7) {
if (!_k7.hasOwnProperty(_l7)) continue;
var _m7 = _k7[_l7];
if (_m7._56) continue; {
if ((((_m7._w6 != 25)) && ((_m7._w6 != 30)))) {
{
_U1(_m7, _X5);
if ((_m7._w6 == 24)) {
{
{
var _n7 = _26(_j7(_m7, _m7._w2, (_m7._x2 - 1), 3));
for (var _o7 in _n7) {
if (!_n7.hasOwnProperty(_o7)) continue;
var _p7 = _n7[_o7];
if (_p7._56) continue; {
_p7._66 = 2;
_p7._d7 = (-16);
_c2(_p7, _m7, 7);
}
}
};
_N1(_m7, _X5);
}
};
}
};
}
}
};
}
};
_K1(_X5, _Y5);
}
};
if ((_X5._66 != 2)) {
_X5._d7 = 0
};
break;
}
};
}
};
_G1(_X5, _Y5);
}
};
_J1(_X5, _Y5);
if (_h7(_X5, _X5._w2, _X5._x2, 21) > 0.5) {
{
var _q7;
_q7 = _j7(_X5, _X5._w2, _X5._x2, 21);
_X5._r7 = _p6(_X5._w2, _X5._x2, 5);
__5(_X5._r7)._s7 = 1;
__5(_X5._r7)._t7 = __5(_q7)._x2;
__5(_X5._r7)._u7 = _X5._u7;
_T6(_X5);
}
};
if (((_h7(_X5, _X5._w2, _X5._x2, 7) > 0.5) && ((_X5._b7 == 0)))) {
{
var _v7;
_v7 = _j7(_X5, _X5._w2, _X5._x2, 7);
__5(_v7)._C6 = _X5.id;
_X5._w7 += 1; {
var _x7 = _26(_v7);
for (var _y7 in _x7) {
if (!_x7.hasOwnProperty(_y7)) continue;
var _z7 = _x7[_y7];
if (_z7._56) continue; {
_z7._A7 = _p6(_z7._w2, _z7._x2, 8);
__5(_z7._A7)._B7 = 30;
__5(_z7._A7)._C6 = _z7._C6; {
var _C7 = _26(_z7._A7);
for (var _D7 in _C7) {
if (!_C7.hasOwnProperty(_D7)) continue;
var _E7 = _C7[_D7];
if (_E7._56) continue; {
_E7._F7 = __5(_E7._C6)._w7;
}
}
};
_T6(_z7);
}
}
};
}
};
if (((!(_h7(_X5, _X5._w2, (_X5._x2 + 1), 9) > 0.5)) && ((_X5._b7 == 0)))) {
{
_X5._d7 += _X5._G7;
if ((_X5._d7 > 12)) {
_X5._d7 = 12
};
}
};
if (((_h7(_X5, _X5._w2, _X5._x2, 22) > 0.5) && ((_X5._b7 == 0)))) {
{
_X5._H7 = _p6(_X5._w2, _X5._x2, 6);
__5(_X5._H7)._I7(((_X5._J7 * (-1)) * 4));
__5(_X5._H7)._K7((-3));
__5(_X5._H7)._J7 = _X5._J7;
__5(_X5._H7)._u7 = _X5._u7; {
var _L7 = _26(_X5._H7);
for (var _M7 in _L7) {
if (!_L7.hasOwnProperty(_M7)) continue;
var _N7 = _L7[_M7];
if (_N7._56) continue; {
_N7._K7((-3));
}
}
};
_c2(_X5, _Y5, 4);
_T6(_X5);
}
};
if ((_X5._x2 > (_O7._P7 + 32))) {
{
_T1(_X5, _Y5, 0);
_T6(_X5);
}
};
}
function _J1(_X5, _Y5) {
if (_h7(_X5, _X5._w2, _X5._x2, 24) > 0.5) {
{
var _Q7;
_Q7 = _j7(_X5, _X5._w2, _X5._x2, 24);
if ((__5(_Q7)._R7 == 1)) {
{
if ((_X5._a7 != 0)) {
_X5._S7 = 1
} else {
_X5._S7 = 0
};
_c2(_X5, _Y5, 8);
__5(_Q7)._C6 = _X5.id; {
var _T7 = _26(_Q7);
for (var _U7 in _T7) {
if (!_T7.hasOwnProperty(_U7)) continue;
var _V7 = _T7[_U7];
if (_V7._56) continue; {
global._W7 = _V7.id;
global._X7 = 9999;
global._Y7 = (-1);
_V7._u7 = __5(_V7._C6)._u7; {
var _Z7 = _26(24);
for (var __7 in _Z7) {
if (!_Z7.hasOwnProperty(__7)) continue;
var _08 = _Z7[__7];
if (_08._56) continue; {
if ((_08.id != global._W7)) {
{
var _18;
_18 = _28(_08._w2, _08._x2, __5(global._W7)._w2, __5(global._W7)._x2);
if ((_18 < global._X7)) {
{
global._Y7 = _08.id;
global._X7 = _18;
}
};
}
};
}
}
};
__5(global._Y7)._R7 = 0;
_V7._38 = 1;
__5(global._Y7)._38 = 2;
__5(global._Y7)._48 = 0; {
var _58 = _26(global._Y7);
for (var _68 in _58) {
if (!_58.hasOwnProperty(_68)) continue;
var _78 = _58[_68];
if (_78._56) continue; {
_78._u7 = __5(global._W7)._u7;
_78._88 = _78._w2;
_78._98 = _78._x2;
}
}
};
_V7._88 = __5(_V7._C6)._w2;
_V7._98 = __5(_V7._C6)._x2;
__5(_V7._C6)._h6((-9999));
__5(_V7._C6)._j6((-9999));
}
}
};
}
};
}
};
}
function _K1(_X5, _Y5) {
if ((_X5._w7 > 0)) {
{
var _a8, _b8, _c8;
_a8 = 0;
_b8 = 0;
_c8 = 0;
if (_h7(_X5, _X5._w2, (_X5._x2 + 1), 15) > 0.5) {
{
_c8 = 0;
_b8 = 1;
_a8 = 1;
}
} else {
if (_h7(_X5, (_X5._w2 + _X5._J7), _X5._x2, 16) > 0.5) {
{
_c8 = _X5._J7;
_b8 = 0;
_a8 = 1;
}
} else {
if (_h7(_X5, (_X5._w2 - _X5._J7), _X5._x2, 16) > 0.5) {
{
_c8 = (_X5._J7 * (-1));
_b8 = 0;
_a8 = 1;
}
}
}
}; if ((_a8 == 1)) {
{
var _v7, _d8;
if ((_b8 == 0)) {
_v7 = _j7(_X5, (_X5._w2 + _c8), (_X5._x2 + _b8), 16)
} else {
_v7 = _j7(_X5, (_X5._w2 + _c8), (_X5._x2 + _b8), 15)
};
_d8 = _e8(_X5, _X5._w2, _X5._x2, 8);
__5(_d8)._C6 = _v7;
__5(_d8)._f8 = 1;
__5(_v7)._y6 = _d8;
_X5._w7 -= 1;
}
};
}
};
}
function _L1(_X5, _Y5) {
_X5._d7 = (-6);
_X5._a7 = (_X5._J7 * 4);
_X5._c7 = 48;
}
function _M1(_X5, _Y5, _Z5, _g8, _h8) {
var _i8, _j8, _k8;
_i8 = _Z5;
_j8 = _g8;
_k8 = (_i8 - _j8);
if ((_k8 > 180)) {
_k8 -= 360
} else {
if ((_k8 < (-180))) {
_k8 += 360
}
}; if ((_h8 == 1)) {
return (_e7(_k8) * (-1))
} else {
if ((_h8 == 2)) {
return abs(_k8)
} else {
if ((_h8 == 3)) {
return (_k8 * (-1))
}
}
};
}
function _N1(_X5, _Y5) {
_X5._l8 = _p6(_X5._w2, (_X5._x2 + _X5._S6), 27);
__5(_X5._l8)._F6(_X5._G6);
_c2(_X5, _Y5, 1);
_T6(_X5);
}
function _O1(_X5, _Y5) {
if ((global._m8 == 0)) {
{
if ((_X5._n8 == 1)) {
{
_X5._o8 += 1;
if ((_X5._o8 > 15)) {
{
_X5._o8 = 0;
if ((_X5._p8 == 0)) {
_X5._p8 = 1
} else {
_X5._p8 = 0
};
}
};
if (_t6(3) > 0.5) {
{
if ((_X5._q8 == 1)) {
{
if ((__5(3)._w2 < 137)) {
_X5._q8 = 1
} else {
{
_X5._r8 = 0;
_X5._q8 = 2;
}
};
}
} else {
if ((_X5._q8 == 2)) {
{
if ((__5(3)._x2 > 104)) {
{
_X5._r8 = 1;
_X5._q8 = 3;
_X5._s8 = 56;
_X5._t8 = 208;
}
};
}
} else {
if ((_X5._q8 == 3)) {
{
if ((__5(3)._w2 < 183)) {
{
_X5._r8 = 0;
_X5._q8 = 4;
_X5._n8 = 0;
}
};
}
}
}
};
}
};
}
};
if ((_X5._r8 == 1)) {
{
if ((_X5._u8 < 1)) {
_X5._u8 += 0.1
};
}
} else {
{
if ((_X5._u8 > 0)) {
_X5._u8 -= 0.1
};
}
};
}
};
}
function _P1(_X5, _Y5) {
_X5._v8 = _p6((_O7._w8[0] + (_O7._x8[0] * 0.5) - 32), (_O7._y8[0] + global._z8), 4);
__5(_X5._v8)._E6(19);
_X5._v8 = _p6((_O7._w8[0] + (_O7._x8[0] * 0.5) + 32), (_O7._y8[0] + global._z8), 4);
__5(_X5._v8)._E6(18);
}
function _Q1(_X5, _Y5) {
if ((_X5._A8 == 1)) {
{
_c2(_X5, _Y5, 5);
_X5._A8 = 0;
if ((global._m8 == 0)) {
{
if ((_X5._B8 < 0.05)) {
{
global._m8 = 1;
_P1(_X5, _Y5);
}
};
}
} else {
{
{
var _C8 = _26(4);
for (var _D8 in _C8) {
if (!_C8.hasOwnProperty(_D8)) continue;
var _E8 = _C8[_D8];
if (_E8._56) continue; {
_E8._66 = (-1);
}
}
};
global._m8 = 0;
}
};
}
};
if ((global._m8 == 1)) {
{
if ((_X5._B8 < global._F8)) {
_X5._B8 += 0.1
};
if ((_X5._G8 < 1)) {
_X5._G8 += 0.1
} else {
_X5._G8 = 1
};
}
} else {
{
if ((_X5._B8 > 0)) {
_X5._B8 -= 0.1
};
if ((_X5._G8 > 0)) {
_X5._G8 -= 0.15
} else {
_X5._G8 = 0
};
}
};
}
function _R1(_X5, _Y5, _Z5, _g8, _h8, _H8, _I8) {
_J8(_H8);
_K8(0.5);
var _L8;
_L8 = 0;
for (var _M8 = 0, _N8 = ~~ (8); _M8 < _N8; _M8++) {
{
_O8((_Z5 + _P8(2, _L8)), (_g8 + _Q8(2, _L8)), _h8);
_L8 += 45;
}
};
_K8(1);
_J8(_I8);
_O8(_Z5, _g8, _h8);
}
function _S1(_X5, _Y5) {
if ((_X5._R8 == 1)) {
{
var _S8;
_S8 = ((_X5._w2 - _X5._T8) * 0.25);
_X5._h6(_X5._w2 - _S8);
if ((_X5._w2 == _X5._T8)) {
{
_X5._R8 = 0;
_X5._h6(_X5._T8);
}
};
}
};
if ((_X5._U8 > 1)) {
{
_X5._V8(_X5._U8 - 0.05);
_X5._W8(_X5._X8 - 0.05);
}
};
}
function _T1(_X5, _Y5, _Z5) {
{
var _Y8 = _26(2);
for (var _Z8 in _Y8) {
if (!_Y8.hasOwnProperty(_Z8)) continue;
var __8 = _Y8[_Z8];
if (__8._56) continue; {
__8._09 = 1;
}
}
};
if ((_Z5 == 1)) {
{
// __5(2)._19 = (global._29 + " " + _39(global._b6) + "!");
__5(2)._19 = (global._29+"!");
if ((global._b6 == global._a6)) {
__5(2)._19 = global._49
}; {
var _59 = _26(2);
for (var _69 in _59) {
if (!_59.hasOwnProperty(_69)) continue;
var _79 = _59[_69];
if (_79._56) continue; {
var _89, _99;
_89 = (-64);
_99 = 19;
for (var _a9 = 0, _b9 = ~~ (3); _a9 < _b9; _a9++) {
{
_79._v8 = _p6(((_O7._w8[0] + (_O7._x8[0] * 0.5)) + _89), (_O7._y8[0] + global._z8), 4);
__5(_79._v8)._E6(_99);
_89 += 64;
if ((_99 == 19)) {
_99 = 18
} else {
if ((_99 == 18)) {
_99 = 17
}
};
}
};
}
}
};
}
} else {
{
__5(2)._19 = global._c9; {
var _d9 = _26(2);
for (var _e9 in _d9) {
if (!_d9.hasOwnProperty(_e9)) continue;
var _f9 = _d9[_e9];
if (_f9._56) continue; {
_P1(_f9, _X5);
}
}
};
}
};
// updateShare(global._67);
/*btGame.setShare({
title: "我在【果冻跳跃】中闯过"+global._67+"关,萌版果冻来袭!"
});*/
}
function _U1(_X5, _Y5) {
global._W7 = 0; {
var _g9 = _26(11);
for (var _h9 in _g9) {
if (!_g9.hasOwnProperty(_h9)) continue;
var _i9 = _g9[_h9];
if (_i9._56) continue; {
global._W7 += 1;
if ((_i9._I6 == 23)) {
global._W7 += 1
};
}
}
}; {
var _j9 = _26(12);
for (var _k9 in _j9) {
if (!_j9.hasOwnProperty(_k9)) continue;
var _l9 = _j9[_k9];
if (_l9._56) continue; {
global._W7 += 1;
if ((_l9._I6 == 23)) {
global._W7 += 1
};
}
}
};
_X5._m9 = global._W7;
if ((_X5._m9 == 1)) {
{
_X5._n9 = 1; {
var _o9 = _26(3);
for (var _p9 in _o9) {
if (!_o9.hasOwnProperty(_p9)) continue;
var _q9 = _o9[_p9];
if (_q9._56) continue; {
_q9._r9 = 0;
if (!(_q9._x6 instanceof Array)) {
_q9._x6 = [];
_q9._x6._f1 = 774487260
} else if (_q9._x6._f1 !== 774487260) {
_q9._x6 = _q9._x6.slice(0);
_q9._x6._f1 = 774487260
}
_q9._x6[4] = 10;
}
}
};
}
};
}
function _V1(_X5, _Y5) {
_X5._s9 = 1;
var _t9;
_t9 = 0;
if ((_X5._u9 == 1)) {
{
if ((((_O7._v9 > (_O7._w8[0] + _O7._x8[0] - 49))) && ((_O7._w9 < (_O7._y8[0] + 49))))) {
_t9 = 1
};
}
} else {
if ((_X5._u9 == (-1))) {
{
if ((((_O7._v9 < (_O7._w8[0] + 49))) && ((_O7._w9 < (_O7._y8[0] + 49))))) {
_t9 = 1
};
}
}
}; if ((_t9 == 1)) {
{
_X5._s9 = 0;
if ((_X5._x9 == 1)) {
{
_X5._x9 = 0;
var _y9;
_y9 = 1;
if ((global._m8 == 0)) {
{
if (((_t6(5) > 0.5) || (_t6(6) > 0.5))) {
_y9 = 0
};
}
};
if ((_y9 == 1)) {
__5(2)._A8 = 1
};
}
};
}
};
if (_t6(3) > 0.5) {
{
{
var _z9 = _26(3);
for (var _A9 in _z9) {
if (!_z9.hasOwnProperty(_A9)) continue;
var _B9 = _z9[_A9];
if (_B9._56) continue; {
if ((((_B9._a7 == 0)) && ((_B9._d7 == 0)) && ((_B9._r9 == 1)))) {
{
if (((_h7(_B9, _B9._w2, (_B9._x2 + 1), 9) > 0.5) && ((__5(2)._s9 == 1)) && ((global._m8 == 0)))) {
{
_B9._C9 = _B9._D9;
var _E9;
_E9 = 0;
_B9._F9(_G9(_B9._w2, _B9._x2, _O7._v9, _O7._w9));
_B9._F9((round((_B9._H9 / 90)) * 90));
if ((((_B9._H9 == 0)) || ((_B9._H9 == 360)))) {
{
_B9._J7 = 1;
_E9 = 1;
}
} else {
if ((_B9._H9 == 180)) {
{
_B9._J7 = (-1);
_E9 = 1;
}
}
}; if ((_E9 == 1)) {
{
if ((_B9._J7 == 1)) {
_B9._F6(2)
} else {
_B9._F6(0)
};
var _I9;
_I9 = 0;
if (((((_B9._w2 + (_B9._J7 * 48)) > _O7._J9)) || (((_B9._w2 + (_B9._J7 * 48)) < 0)))) {
_I9 = 1
};
if (((!(_h7(_B9, (_B9._w2 + (_B9._J7 * 48)), _B9._x2, 9) > 0.5)) && (!(_h7(_B9, (_B9._w2 + (_B9._J7 * 48)), _B9._x2, 10) > 0.5)) && ((_I9 == 0)))) {
{
if (_h7(_B9,
_B9._w2, (_B9._x2 + 1), 9) > 0.5) {
{
var _i7;
_i7 = _j7(_B9, _B9._w2, (_B9._x2 + 1), 9); {
var _K9 = _26(_i7);
for (var _L9 in _K9) {
if (!_K9.hasOwnProperty(_L9)) continue;
var _M9 = _K9[_L9];
if (_M9._56) continue; {
if ((((_M9._w6 != 25)) && ((_M9._w6 != 30)))) {
{
if ((_M9._I6 == 23)) {
{
_M9._N9 = _p6(_M9._w2, _M9._x2, 20);
__5(_M9._N9)._V8(_M9._J6);
__5(_M9._N9)._W8(_M9._K6);
__5(_M9._N9)._F6(_M9._L6);
}
};
_N1(_M9, _B9);
}
};
}
}
};
}
};
_L1(_B9, _X5);
}
};
}
};
}
};
}
};
}
}
};
}
};
}
function _W1(_X5, _Y5) {
if ((global._m8 == 0)) {
{
if ((_X5._M6 == 1)) {
{
_X5._O6 += 10;
_X5._S6 = -_Q8(_X5._N6,
_X5._O6);
_X5._N6 = (_X5._N6 * 0.96);
if ((_X5._N6 < 0.9)) {
{
_X5._S6 = 0;
_X5._M6 = 0;
_X5._O6 = 0;
_X5._N6 = 12;
}
};
if (_h7(_X5, _X5._w2, (_X5._x2 - 1), 3) > 0.5) {
{
var _q7;
_q7 = _j7(_X5, _X5._w2, (_X5._x2 - 1), 3);
if ((__5(_q7)._b7 == 0)) {
{
__5(_q7)._C9 = (__5(_q7)._D9 + _X5._S6);
}
};
}
};
if (_h7(_X5, _X5._w2, (_X5._x2 - 4), 23) > 0.5) {
{
var _O9;
_O9 = _j7(_X5, _X5._w2, (_X5._x2 - 4), 23);
__5(_O9)._C9 = _X5._S6;
}
};
}
};
if ((_X5._R6 == 1)) {
{
_X5._P6 += 0.1;
if ((_X5._P6 > 1.25)) {
_X5._R6 = (-1)
};
}
} else {
if ((_X5._R6 == (-1))) {
{
_X5._P6 -= 0.1;
if ((_X5._P6 < 1.05)) {
{
_X5._R6 = 0;
_X5._P6 = 1;
_X5._Q6 = 1;
}
};
}
}
};
}
};
}
function _X1(_X5, _Y5) {}
function _Y1(_X5, _Y5) {
_P9(_X5, _X5._w6, _X5._G6, _X5._w2, (_X5._x2 + _X5._S6), _X5._P6, _X5._Q6, _X5._Q9, 16777215, _X5._H6);
if ((_X5._I6 != (-1))) {
{
_P9(_X5, _X5._I6, _X5._G6, _X5._w2, (_X5._x2 + _X5._S6), (_X5._P6 * _X5._J6), (_X5._Q6 * _X5._K6), _X5._Q9, 16777215, _X5._H6);
}
};
}
function _Z1(_X5, _Y5) {
_X5._M6 = 0;
_X5._N6 = 12;
_X5._O6 = 0;
_X5._P6 = 1;
_X5._Q6 = 1;
_X5._R6 = 0;
_X5._S6 = 0;
_X5._I6 = (-1);
_X5._J6 = 1;
_X5._K6 = 1;
_X5._L6 = 0;
}
function __1(_X5, _Y5, _Z5) {
_X5._R9 = _S9(0, 0, 1, 2, 3);
_X5._T9 = (_O7._y8[0] + 72 + floor(random((_O7._U9[0] / 4))));
if ((_Z5 == 0)) {
{
_X5._V9 = (_O7._w8[0] + floor(random(_O7._x8[0])));
}
} else {
if ((_Z5 == 1)) {
{
_X5._V9 = (_O7._w8[0] + _O7._x8[0] + 40);
}
}
};
for (var _W9 = 0, _X9 = ~~ (_X5._R9); _W9 < _X9; _W9++) {
{
var _Y9;
_Y9 = _p6(_X5._V9, _X5._T9, 28); {
var _Z9 = _26(_Y9);
for (var __9 in _Z9) {
if (!_Z9.hasOwnProperty(__9)) continue;
var _0a = _Z9[__9];
if (_0a._56) continue; {
while (_h7(_0a, _0a._w2, _0a._x2, 28) > 0.5) {
{
_0a._h6((_0a._1a - 32 + floor(random(64))));
_0a._j6((_0a._2a - 24 + floor(random(48))));
}
};
}
}
};
}
};
}
function _02(_X5, _Y5) {
if (dj_exists("resized") > 0.5) {
return 1
};;
global._x5 = 0;
global._y5 = 0;
global._z5 = 0;
global._A5 = 0;
global._B5 = 0;
global._C5 = 0;
global._D5 = 0;
global._E5 = 0;
global._S5 = 0;
global._T5 = 0;
global._U5 = (-1);
global._V5 = 1;
global._H5 = 1 ? 1 : 0;
global._F5 = 0;
global._G5 = 1;
global._W5 = 1 ? 1 : 0;
global._I5 = 1;
global._J5 = 1;
global._K5 = 1;
global._M5 = 5000;
global._L5 = 0;
dj_add1("hide_adrbar", "height", "\n\rdocument.getElementById('gm4html5_div_id').style.height = ~~(height + 128) + 'px';\n\rwindow.scrollTo(0, 1)");
dj_add("orientation", "return window.fm_orientation");
dj_add("installed",
"return window.navigator.standalone ? 1 : 0");
dj_add("timer", "return (new Date) | 0");
dj_add("resized", "var r = window.fm_resized; window.fm_resized = 0; return r");
dj_add("width", "return screen ? screen.width : window.innerWidth");
dj_add("height", "return screen ? screen.height : window.innerHeight");
dj_run("var e = document.getElementById('gm4html5_div_id');\n\rdocument.body.style.overflow = 'hidden';\n\re.style.paddingTop = '20px';\n\re.style.position = 'absolute';\n\re.style.height = '2048px';\n\rwindow.fm_resized = 1;\n\rwindow.fm_orientation = window.orientation ? window.orientation : 0;\n\rdocument.onorientationchange = window.onorientationchange = function() {\n\rwindow.fm_orientation = window.orientation; window.fm_resized = 1\n\r}\n\rdocument.onresize = window.onresize = function() { window.fm_resized = 1 }\n\r");
dj_run("var e;\n\rif (e = document.getElementById('debug_console')) e.style.display = 'none';\n\rif (e = document.getElementById('loading_screen')) e.style.display = 'none';");
}
function _12(_X5, _Y5) {
var _3a, _4a, _5a, _6a, _7a, _8a, _9a, _aa, _ba, _ca, _da;
if ((global._V5 > 0)) {
{
global._V5 -= 1;
return 0;
}
};
_9a = _42(_X5, _Y5);
_ca = _O7._ea();
_da = _O7._fa();
if (((_52(_X5, _Y5) > 0.5) || ((global._U5 != _O7._ga())) || (global._W5 > 0.5))) {
{
global._W5 = 0 ? 1 : 0;
global._S5 = _ca;
global._T5 = _da;
global._U5 = _O7._ga();
_22(_X5, _Y5);
global._L5 = _9a;
_5a = _92(_X5, _Y5);
_6a = _a2(_X5, _Y5);
_7a = _5a;
_8a = _6a;
global._N5 = (((global._S5 / global._T5) > 1) != ((_7a / _8a) > 1)) ? 1 : 0;
if (_b2(_X5, _Y5) > 0.5) {
{
if ((_O7._ga() != 4)) {
_O7._ha(0)
};
if (((global._N5 > 0.5) && ((_O7._ga() != 4)))) {
{
if ((global._I5 != 0)) {
global._I5 = (3 - global._I5)
};
global._Q5 = _O7._ga();
_O7._ha(1);
_ia(4);
}
};
if (((global._N5 > 0.5) && ((_O7._ga() == 4)))) {
{
if ((global._I5 != 0)) {
global._I5 = (3 - global._I5)
};
_ia(global._Q5);
}
};
if (((!(global._N5 > 0.5)) && ((_O7._ga() != 4)) && (global._R5 > 0.5))) {
{
global._R5 = 0 ? 1 : 0;
}
};
}
};
_3a = (global._S5 / _5a);
_4a = (global._T5 / _6a);
if ((global._I5 == 1)) {
_4a = _3a
};
if ((global._I5 == 2)) {
_3a = _4a
};
if ((global._B5 != 0)) {
_3a = min(_3a, global._B5)
};
if ((global._D5 != 0)) {
_3a = max(_3a, global._D5)
};
if ((global._C5 != 0)) {
_4a = min(_4a, global._C5)
};
if ((global._E5 != 0)) {
_4a = max(_4a, global._E5)
};
_5a *= _3a;
_6a *= _4a;
if ((((global._x5 != 0)) && ((_5a > global._x5)))) {
_5a = global._x5
};
if ((((global._y5 != 0)) && ((_6a > global._y5)))) {
_6a = global._y5
};
_3a = (_5a / _7a);
_4a = (_6a / _8a);
if (global._H5 > 0.5) {
{
_3a = min(_3a, _4a);
_4a = _3a;
}
};
_5a = (_7a * _3a);
_6a = (_8a * _4a);
_5a = round(_5a);
_6a = round(_6a);
_aa = (global._J5 / 2 * (_O7._ea() - _5a));
_ba = (1 + (global._K5 / 2 * (_O7._fa() - _6a)));
if ((global._F5 > 0)) {
_aa = max(_aa, 0)
};
if ((global._F5 < 0)) {
_aa = min(_aa, (global._S5 - _5a))
};
if ((global._G5 > 0)) {
_ba = max(_ba, 0)
};
if ((global._G5 < 0)) {
_ba = min(_ba, (global._T5 - _6a))
};
_ja(_aa, _ba);
_ka(_5a, _6a);
}
};
if (((((_9a - global._L5) > global._M5)) || ((global._L5 > _9a)))) {
{
_22(_X5, _Y5);
global._L5 = _9a;
}
};
}
function _22(_X5, _Y5) {
return dj_call1("hide_adrbar", global._T5);
}
function _32(_X5, _Y5) {
return dj_call("orientation");
}
function _42(_X5, _Y5) {
return dj_call("timer");
}
function _52(_X5, _Y5) {
return dj_call("resized");
}
function _62(_X5, _Y5) {
return dj_call("installed");
}
function _72(_X5, _Y5) {
return dj_call("width");
}
function _82(_X5, _Y5) {
return dj_call("height");
}
function _92(_X5, _Y5) {
if (_O7._la() > 0.5) {
return _O7._x8[0]
};
return _O7._J9;
}
function _a2(_X5, _Y5) {
if (_O7._la() > 0.5) {
return _O7._U9[0]
};
return _O7._P7;
}
function _b2(_X5, _Y5) {
if ((((_O7._ma() != 0)) && ((_O7._ma() != 1)))) {
return 1
};
return 0;
}
function _c2(_X5, _Y5, _Z5) {
if ((global._57 == 1)) {
{
switch (_Z5) {
case 1:
break;
case 2:
break;
case 3:
break;
case 4:
break;
case 5:
break;
case 6:
break;
case 7:
case 8:
break;
case 9:
break;
case 10:
break;
};
}
};
}
function _d2(_X5, _Y5) {
dj_add5("adstep", "x", "y", "z", "h", "v", "\n\r var c, a, ch, cw, aw, ah, az, x, y;\n\r c = document.getElementById('gm4html5_div_id').getElementsByTagName('canvas')[0];\n\r if (!(a = document.getElementById('advert'))) return;\n\r ch = c.height;\n\r cw = c.width;\n\r aw = parseInt(a.style.width);\n\r ah = parseInt(a.style.height);\n\r az = (z == 0 ? 1 : Math.floor(cw * z) / aw);\n\r a.style.transform = a.style.webkitTransform = a.style.mozTransform = 'scale(' + az.toFixed(8) + ',' + az.toFixed(8) + ')';\n\r x = (parseInt(c.style.left) + cw * x + aw * az * (-h / 2));\n\r y = (parseInt(c.style.top) + ch * y + ah * az * (-v / 2));\n\r a.style.position = 'absolute';\n\r a.style.left = x.toFixed(4) + 'px';\n\r a.style.top = y.toFixed(4) + 'px';\n\r ");
dj_add3("adsetup", "w", "h", "c", "\n\r var a;\n\r if (!(a = document.getElementById('advert'))) {\n\r a = document.createElement('div');\n\r a.setAttribute('id', 'advert');\n\r document.getElementById('gm4html5_div_id').appendChild(a);\n\r }\n\r if (!a) return;\n\r a.style.width = w + 'px';\n\r a.style.height = h + 'px';\n\r a.innerHTML = c;\n\r ");
dj_add1("advis", "state", "\n\r var a = document.getElementById('advert');\n\r if (!a) return;\n\r a.style.display = state ? '' : 'none';\n\r ");
}
function _e2(_X5, _Y5, _Z5, _g8, _h8) {
dj_call3("adsetup", _Z5, _g8, _h8);
}
function _f2(_X5, _Y5, _Z5, _g8, _h8, _H8, _I8) {
dj_call5("adstep", _Z5, _g8, _h8, _H8, _I8);
}
function _g2(_X5, _Y5, _Z5) {
dj_call1("advis", _Z5);
}
function _h2(_X5, _Y5) {
var _na, _oa;
for (_na = 0;
(_na < (_h2.arguments.length - 2)); _na += 1) {
{
if ((_na == 0)) {
_oa = ""
} else {
_oa += " "
};
_oa += _39(_h2.arguments[2 + (_na)]);
}
};
dj_call1("log", _oa);
}
function _J2(_X5, _Y5) {
{
_02(_X5, _Y5);;
global._r5 = 0;
global._s5 = 240;
_d2(_X5, _Y5);
_pa(0);
_p6(_X5._w2, _X5._x2, 35);
_qa();
global._D5 = 1;
global._E5 = 1;
global._B5 = 1;
global._C5 = 1;
var _ra, _sa, _ta, _ua, _na;
_ra = _72(_X5, _Y5);
_sa = _82(_X5, _Y5);
if ((((((min(_ra, _sa) >= 640)) && ((max(_ra, _sa) >= 960)) && (_b2(_X5, _Y5) > 0.5))) || ((_O7._ma() == 3)))) {
{
global._B5 = 1.75;
global._C5 = 1.75;
_ta = _92(_X5, _Y5);
_ua = _a2(_X5, _Y5);
if ((((_ra != 0)) && ((_sa != 0)))) {
{
if ((((_ra / _sa) > 1) != ((_ta / _ua) > 1))) {
{
_na = _ra;
_ra = _sa;
_sa = _na;
}
};
_na = min((_ra / _ta), (_sa / _ua));
global._B5 = min(global._B5, _na);
global._C5 = min(global._C5, _na);
}
};
}
};
if (0 > 0.5) {
{;
global._t5 = "http://flash.7k7k.com/";
global._u5 = "flash.7k7k.com";
global._v5 = _va();
global._w5 = _wa("true", global._v5);
if ((global._w5 <= 0)) {
{
_xa(global._t5);
return;
}
};
}
};
_ya(("play.php"));
_za();
};
}
function _L2(_X5, _Y5) {
{
_12(_X5, _Y5);
};
}
function _N2(_X5, _Y5) {
{
var _Aa, _Ba, _Ca, _Da;
if (_O7._la() > 0.5) {
{
_Aa = _O7._x8[0];
_Ba = _O7._U9[0];
_Ca = _O7._w8[0];
_Da = _O7._y8[0];
}
} else {
{
_Aa = _O7._J9;
_Ba = _O7._P7;
_Ca = 0;
_Da = 0;
}
}; if ((_O7._ga() == 4)) {
{
_J8(0);
_K8(0.44);
_Ea(0);
_Fa(1);
_Ga(0);
_O8((_O7._J9 / 2), 8, global._Ha);
_K8(1);
}
};
};
}
function _Q2(_X5, _Y5) {
{
_X5._06 = (-1);
_X5._66 = 0;
};
}
function _R2(_X5, _Y5) {
{
if ((_X5._66 == 1)) {
{
global._Ia += 0.1;
if ((global._Ia > 0.98)) {
{
_X5._66 = (-1);
_ia(_X5._06);
_X5._06 = (-1);
}
};
}
} else {
if ((_X5._66 == (-1))) {
{
global._Ia -= 0.1;
if ((global._Ia < 0.05)) {
{
global._Ia = 0;
_X5._66 = 0;
}
};
}
}
};
};
}
function _S2(_X5, _Y5) {
{
if ((global._Ia > 0)) {
{
_K8(global._Ia);
_J8(0);
_Ja(_O7._w8[0], _O7._y8[0], (_O7._w8[0] + _O7._x8[0]), (_O7._y8[0] + _O7._U9[0]), 0);
_K8(1);
}
};
};
}
function _T2(_X5, _Y5) {
{
_F1(_X5, _Y5);
_G1(_X5, _Y5);
_X5._Ka = (global._La + " " + _39(global._b6));
_X5._Ma = 1;
_X5._Na = 1;
_X5._A8 = 0;
_X5._B8 = 0;
_X5._G8 = 0;
_X5._Oa = (_O7._x8[0] - 24);
_X5._u9 = 1;
_X5._Pa = 24;
_X5._Qa = 1;
_X5._Ra = 0;
_X5._09 = 0;
_X5._Sa = 0;
_X5._Ta = 0;
_X5._19 = "";
_X5._n8 = 0;
_X5._q8 = 0;
global._m8 = 0;
_X5._u8 = 0;
_X5._r8 = 0;
if ((global._b6 == 1)) {
{
_X5._r8 = 1;
_X5._p8 = 0;
_X5._o8 = 0;
_X5._s8 = 248;
_X5._t8 = 112;
_X5._q8 = 1;
_X5._n8 = 1;
}
};
_X5._x9 = 1;
_X5._Ua = 304;
_X5._Va = 0;
_X5._Wa = 240;
_X5._Xa = 0;
_X5._Ya = "";
_X5._Za = 0;
__1(_X5, _Y5, 0);
};
}
function _U2(_X5, _Y5) {
{
if ((_X5._09 == 1)) {
{
if ((((global._b6 == global._a6)) && ((__5(1)._66 == 0)))) {
{
if ((_X5._Xa == 0)) {
{
_X5._Xa = 1;
if ((global._47 == 0)) {
{
global._47 = 1;
_X5._Ya = global.__a;
_H1(_X5, _Y5);
}
} else {
_X5._Ya = ""
};
}
};
_X5._Va += 12;
if ((_X5._Va > 360)) {
_X5._Va -= 360
};
_X5._Za += 5;
if ((_X5._Za > 360)) {
_X5._Za -= 360
};
_X5._Wa = (220 + _Q8(10, _X5._Va));
}
};
if ((_X5._Sa < global._F8)) {
_X5._Sa += 0.1
};
if ((_X5._Ta < 1)) {
_X5._Ta += 0.1
};
}
};
if ((global._m8 == 0)) {
{
if (_t6(3) > 0.5) {
{
if ((_X5._Ra == 0)) {
{
var _0b;
_0b = _28(__5(3)._w2, __5(3)._x2, (_O7._w8[0] + _O7._x8[0] - 24), (_O7._y8[0] + _X5._Pa));
if ((_X5._u9 == 1)) {
{
if ((_0b < 128)) {
{
_X5._Ra = 1;
}
};
}
} else {
if ((_X5._u9 == (-1))) {
{
if ((_0b > 128)) {
{
_X5._Ra = 1;
}
};
}
}
};
}
};
}
};
if ((_X5._Ra == 1)) {
{
_X5._Qa -= 0.2;
if ((_X5._Qa < 0.01)) {
{
_X5._Ra = 2;
if ((_X5._u9 == 1)) {
{
_X5._Oa = 24;
_X5._u9 = (-1);
}
} else {
if ((_X5._u9 == (-1))) {
{
_X5._u9 = 1;
_X5._Oa = (_O7._x8[0] - 24);
}
}
};
}
};
}
} else {
if ((_X5._Ra == 2)) {
{
if ((_X5._Qa < 1)) {
_X5._Qa += 0.2
} else {
_X5._Ra = 0
};
}
}
}; if ((_X5._R9 > 0)) {
{
if ((_1b(28) < 1)) {
{
__1(_X5, _Y5, 1);
}
};
}
};
}
};
_Q1(_X5, _Y5);
_O1(_X5, _Y5);
};
}
function _W2(_X5, _Y5) {
{
_X5._x9 = 1;
};
}
function _Y2(_X5, _Y5) {
{
if ((_X5._09 == 0)) {
_V1(_X5, _Y5)
};
};
}
function _Z2(_X5, _Y5) {
{
_Ga(0);
_Fa(1);
_Ea(0);
_R1(_X5, _Y5, (_O7._w8[0] + (_O7._x8[0] * 0.5)), (_O7._y8[0] + 7), _X5._Ka, 0, 16777215);
if ((_X5._u8 > 0)) {
{
_P9(_X5, 22, _X5._p8, _X5._s8, _X5._t8, 1, 1, 0, 16777215, _X5._u8);
}
};
if ((_X5._B8 > 0)) {
{
_J8(0);
_K8(_X5._B8);
_Ja(_O7._w8[0], _O7._y8[0], (_O7._w8[0] + _O7._x8[0]), (_O7._y8[0] + _O7._U9[0]), 0);
_Fa(1);
_Ea(1);
_J8(16777215);
_K8(_X5._G8);
_O8((_O7._w8[0] + (_O7._x8[0] * 0.5)), (_O7._y8[0] + 96), global._2b);
_K8(1);
}
} else {
if ((_X5._Sa > 0)) {
{
var _3b;
_3b = (_O7._w8[0] + (_O7._x8[0] * 0.5));
_J8(0);
_K8(_X5._Sa);
_Ja(_O7._w8[0], _O7._y8[0], (_O7._w8[0] + _O7._x8[0]), (_O7._y8[0] + _O7._U9[0]), 0);
_Fa(1);
_Ea(1);
_J8(16777215);
_K8(_X5._Ta);
_O8(_3b, (_O7._y8[0] + 96), _X5._19);
_O8(_3b, (_O7._y8[0] + 240), _X5._Ya);
_K8(1);
if ((_X5._19 == global._49)) {
{
_P9(_X5, 1, 0, _3b, (_O7._y8[0] + _X5._Ua), 1, 1, _X5._Za, 16777215, 0.66);
_P9(_X5, 12, 0, _3b, _X5._Ua, 1, 1, _X5._Wa, 16777215, 1);
_4b(_X5, 8, 0, _3b, (_O7._y8[0] + _X5._Ua));
_4b(_X5, 9, 0, (_3b - (global._5b * 2)), (_X5._Ua + (global._6b * 2)));
_4b(_X5, 9, 0, (_3b + (global._5b * 2)), (_X5._Ua + (global._6b * 2)));
}
};
}
}
};
_P9(_X5, 21, 0, (_O7._w8[0] + _X5._Oa), (_O7._y8[0] + _X5._Pa),
_X5._Ma, _X5._Na, 0, 16777215, _X5._Qa);
};
}
function __2(_X5, _Y5) {
{
_X5._D9 = 0;
_X5._C9 = _X5._D9;
_X5._7b = 0;
_X5._F6(1);
_X5._a7 = 0;
_X5._d7 = 0;
_X5._J7 = 1;
_X5._S7 = 0;
_X5._8b = (-300);
_X5._r9 = 1;
_X5._b7 = 0;
_X5._c7 = 0;
_X5._87 = _X5._w2;
_X5._97 = _X5._x2;
_X5._9b = global._6b;
_X5._ab = _X5._9b;
_X5._u7 = 270;
_X5._bb = 0;
_X5._cb = 0;
_X5._G7 = 1;
_X5._db = 0;
_X5._w7 = 0;
_X5._eb = 0;
_X5._fb = 0;
if (!(_X5._x6 instanceof Array)) {
_X5._x6 = [];
_X5._x6._f1 = 1584050178
} else if (_X5._x6._f1 !== 1584050178) {
_X5._x6 = _X5._x6.slice(0);
_X5._x6._f1 = 1584050178
}
_X5._x6[7] = (30 + floor(random(100)));
};
}
function _13(_X5, _Y5) {
{
if (!(_X5._x6 instanceof Array)) {
_X5._x6 = [];
_X5._x6._f1 = 1584050178
} else if (_X5._x6._f1 !== 1584050178) {
_X5._x6 = _X5._x6.slice(0);
_X5._x6._f1 = 1584050178
}
_X5._x6[7] = (15 + floor(random(160)));
_X5._eb = 1;
_X5._x6[6] = 3;
if ((_X5._fb == 0)) {
{
if ((floor(random(4)) == 0)) {
{
_X5._fb = 1;
_X5._x6[7] = 12;
}
};
}
} else {
_X5._fb = 0
};
};
}
function _33(_X5, _Y5) {
{
_X5._eb = 0;
};
}
function _53(_X5, _Y5) {
{
if (_h7(_X5, _X5._w2, (_X5._x2 + 1), 11) > 0.5) {
{
_X5._F6(1);
_X5._d7 = (-9);
_X5._G7 = 0.5;
_X5._db = 1;
var _i7;
_i7 = _j7(_X5, _X5._w2, (_X5._x2 + 1),
11); {
var _gb = _26(_i7);
for (var _hb in _gb) {
if (!_gb.hasOwnProperty(_hb)) continue;
var _ib = _gb[_hb];
if (_ib._56) continue; {
_N1(_ib, _X5);
}
}
};
}
};
};
}
function _63(_X5, _Y5) {
{
if ((global._m8 == 0)) {
{
_I1(_X5, _Y5);
if ((_X5._w2 > (-96))) {
{
var _jb;
if ((((_X5._w2 == _X5._87)) && ((_X5._x2 == _X5._97)))) {
_jb = 270
} else {
_jb = _G9(_X5._w2, _X5._x2, _X5._87, _X5._97)
}; if ((_X5._u7 != _jb)) {
{
_X5._u7 += (_M1(_X5, _Y5, _X5._u7, _jb, 3) * 0.2);
}
};
if ((_X5._a7 == 0)) {
_X5._cb += 10
} else {
_X5._cb += 5
}; if ((_X5._cb > 359)) {
_X5._cb -= 360
};
_X5._bb = _Q8(8, _X5._cb);
}
};
}
};
};
}
function _73(_X5,
_Y5) {
{
var _kb;
_kb = _X5._G6;
if ((_X5._eb == 1)) {
_kb += 3
};
if ((global._47 == 1)) {
_P9(_X5, 11, 0, _X5._w2, (_X5._x2 + _X5._C9), 1, 1, (_X5._u7 + _X5._bb), 16777215, _X5._H6)
};
_P9(_X5, _X5._w6, _kb, _X5._w2, (_X5._x2 + _X5._C9), _X5._U8, _X5._X8, _X5._Q9, 16777215, _X5._H6);
_4b(_X5, 3, 0, (_X5._87 - global._5b), (_X5._97 + _X5._C9 + _X5._ab));
_4b(_X5, 3, 0, (_X5._87 + global._5b), (_X5._97 + _X5._C9 + _X5._ab));
};
}
function _83(_X5, _Y5) {
{
_X5._R8 = 0;
_X5._lb = 1;
_X5._7b = 0;
_X5._H6 = 0;
_X5._66 = 1;
};
}
function _93(_X5, _Y5) {
{
_S1(_X5, _Y5);
if ((_X5._66 == 1)) {
{
if ((_X5._H6 < 1)) {
_X5._H6 += 0.1
};
}
} else {
if ((_X5._66 == (-1))) {
{
_X5._H6 -= 0.15;
if ((_X5._H6 < 0.05)) {
_T6(_X5)
};
}
}
};
};
}
function _b3(_X5, _Y5) {
{
if ((_X5._66 == 1)) {
{
_c2(_X5, _Y5, 5);
if ((_X5._w6 == 18)) {
{
_C1(_X5, _Y5, 3);
}
} else {
if ((_X5._w6 == 19)) {
{
_C1(_X5, _Y5, 2);
}
} else {
if ((_X5._w6 == 17)) {
{
global._b6 += 1;
if ((global._b6 > global._a6)) {
_C1(_X5, _Y5, 2)
} else {
_C1(_X5, _Y5, 3)
};
}
}
}
};
_X5._V8(global._mb);
_X5._W8(global._mb);
}
};
};
}
function _c3(_X5, _Y5) {
{
_P9(_X5, _X5._w6, _X5._G6, _X5._w2, _X5._x2, _X5._U8, _X5._X8, 0, 16777215, _X5._H6);
};
}
function _d3(_X5, _Y5) {
{
_X5._s7 = 0;
_X5._7b = 0;
_X5._nb = (-1);
_X5._ob = 0;
_X5._u7 = 270;
_c2(_X5, _Y5, 3);
if ((global._b6 > global._67)) {
global._67 = global._b6
};
_H1(_X5, _Y5);
};
}
function _e3(_X5, _Y5) {
{
if ((global._47 == 1)) {
{
if ((_X5._u7 != 270)) {
{
_X5._u7 += (_M1(_X5, _Y5, _X5._u7, 270, 3) * 0.2);
}
};
}
};
if ((_X5._s7 == 1)) {
{
var _pb;
_pb = ((_X5._x2 - _X5._t7) * 0.5);
_X5._j6(_X5._x2 - _pb);
}
};
_X5._qb(_X5._Q9 + _X5._nb);
_X5._nb += (_e7(_X5._nb) * 0.5);
_X5._V8(_X5._U8 - 0.02);
_X5._W8(_X5._X8 - 0.02);
if ((((_X5._ob == 0)) && ((global._m8 == 0)))) {
{
if ((_X5._U8 < 0.5)) {
{
_X5._ob = 1;
_T1(_X5,
_Y5, 1);
}
};
}
};
if ((_X5._U8 < 0.01)) {
{
_X5._V8(0);
_X5._W8(0);
_X5._F2 = 0;
}
};
};
}
function _f3(_X5, _Y5) {
{
if ((global._47 == 1)) {
_P9(_X5, 11, 0, _X5._w2, _X5._x2, _X5._U8, _X5._X8, (_X5._Q9 + _X5._u7), 16777215, _X5._H6)
};
_P9(_X5, _X5._w6, (-1), _X5._w2, _X5._x2, _X5._U8, _X5._X8, _X5._Q9, 16777215, _X5._H6);
};
}
function _g3(_X5, _Y5) {
{
_X5._rb = 270;
_X5._sb = 0.5;
_X5._u7 = 270;
_X5._87 = _X5._w2;
_X5._97 = _X5._x2;
};
}
function _h3(_X5, _Y5) {
{
if ((global._m8 == 0)) {
{
_X5._sb = 0.5;
_X5._7b = 1;
_X5._qb(_X5._Q9 + (_X5._J7 * 4));
var _jb;
if ((((_X5._w2 == _X5._87)) && ((_X5._x2 == _X5._97)))) {
_jb = 270
} else {
_jb = _G9(_X5._w2, _X5._x2, _X5._87, _X5._97)
}; if ((_X5._u7 != _jb)) {
{
_X5._u7 += (_M1(_X5, _Y5, _X5._u7, _jb, 3) * 0.2);
}
};
if ((_X5._x2 > (_O7._P7 + 32))) {
{
_T1(_X5, _Y5, 0);
_T6(_X5);
}
};
_X5._87 = _X5._w2;
_X5._97 = _X5._x2;
}
} else {
{
_X5._7b = 0;
_X5._sb = 0;
_X5._j6(_X5._x2 - _X5._tb);
_X5._h6(_X5._w2 - _X5._ub);
}
};
};
}
function _i3(_X5, _Y5) {
{
if ((global._47 == 1)) {
_P9(_X5, 11, 0, _X5._w2, _X5._x2, _X5._U8, _X5._X8, _X5._u7, 16777215, _X5._H6)
};
_P9(_X5, _X5._w6, (-1), _X5._w2, _X5._x2, _X5._U8, _X5._X8, _X5._Q9, 16777215, _X5._H6);
};
}
function _j3(_X5,
_Y5) {
{
_X5._7b = 0;
};
}
function _k3(_X5, _Y5) {
{
_X5._vb = 4;
_X5._wb = 4;
_X5._f8 = 0;
_X5._xb = 0;
_X5._7b = 0;
_X5._F6(1);
};
}
function _l3(_X5, _Y5) {
{
if (_t6(_X5._C6) > 0.5) {
{
if ((_X5._f8 == 1)) {
{
if ((_X5._xb == 0)) {
{
_X5._xb = 1;
_X5._vb = (_X5._vb * 3);
_X5._wb = (_X5._wb * 3);
}
};
}
};
var _yb, _zb;
if ((_X5._f8 == 0)) {
{
var _Ab;
_Ab = ((_X5._F7 - 1) * 45);
_yb = (__5(_X5._C6)._w2 + ((__5(_X5._C6)._J7 * _P8(24, (_X5._B7 + _Ab))) * (-1)));
_zb = (__5(_X5._C6)._x2 + _Q8(24, (_X5._B7 + _Ab)));
}
} else {
{
_yb = __5(_X5._C6)._w2;
_zb = __5(_X5._C6)._x2;
}
}; if ((((__5(_X5._C6)._w2 > 0)) && ((__5(_X5._C6)._x2 > (-24))))) {
{
if ((((_X5._w2 != _yb)) || ((_X5._x2 != _zb)))) {
{
var _Bb, _Cb;
_Bb = ((_yb - _X5._w2) * 0.3);
if ((abs(_Bb) > _X5._vb)) {
_Bb = (_e7(_Bb) * _X5._vb)
};
_Cb = ((_zb - _X5._x2) * 0.3);
if ((abs(_Cb) > _X5._wb)) {
_Cb = (_e7(_Cb) * _X5._wb)
};
_X5._h6(_X5._w2 + _Bb);
_X5._j6(_X5._x2 + _Cb);
if ((_X5._f8 == 1)) {
{
if ((_28(_X5._w2, _X5._x2, __5(_X5._C6)._w2, (__5(_X5._C6)._x2 + __5(_X5._C6)._S6)) < 1)) {
{
_X5._h6(__5(_X5._C6)._w2);
_X5._j6(__5(_X5._C6)._x2); {
var _Db = _26(_X5._C6);
for (var _Eb in _Db) {
if (!_Db.hasOwnProperty(_Eb)) continue;
var _Fb = _Db[_Eb];
if (_Fb._56) continue; {
_Fb._F2 = 0;
_c2(_Fb, _X5, 2);
_p6(_Fb._w2, _Fb._x2, 17);
if (!(_Fb._x6 instanceof Array)) {
_Fb._x6 = [];
_Fb._x6._f1 = 3306058022
} else if (_Fb._x6._f1 !== 3306058022) {
_Fb._x6 = _Fb._x6.slice(0);
_Fb._x6._f1 = 3306058022
}
_Fb._x6[0] = 5;
}
}
};
_T6(_X5);
}
};
}
};
}
};
if ((__5(_X5._C6)._w2 > _X5._w2)) {
_X5._V8(1)
} else {
_X5._V8((-1))
};
}
};
}
};
};
}
function _m3(_X5, _Y5) {
{
_X5._H6 = global._Gb;
_X5._F6(_S9(0, 1, 2));
_X5._7b = 0;
_X5._v6 = 12;
_Z1(_X5, _Y5);
_X5._n9 = 0;
};
}
function _o3(_X5, _Y5) {
{
if ((_X5._n9 == 1)) {
{
_p6(_X5._w2, _X5._x2, 21);
}
};
};
}
function _p3(_X5, _Y5) {
{
_W1(_X5, _Y5);
};
}
function _q3(_X5, _Y5) {
{
_Y1(_X5, _Y5);
};
}
function _r3(_X5, _Y5) {
{
_X5._H6 = global._Gb;
_X5._D6 = 1;
_X5._7b = 0;
_X5._Hb = 21;
_X5._v6 = 11;
_Z1(_X5, _Y5);
};
}
function _s3(_X5, _Y5) {
{
_g1._B1[_X5._Hb](_X5, _Y5);
};
}
function _t3(_X5, _Y5) {
{
_Y1(_X5, _Y5);
};
}
function _u3(_X5, _Y5) {
{
_Z1(_X5, _Y5);
_X5._v6 = 14;
};
}
function _v3(_X5, _Y5) {
{
_W1(_X5, _Y5);
};
}
function _w3(_X5, _Y5) {
{
_Y1(_X5, _Y5);
};
}
function _x3(_X5, _Y5) {
{
_Z1(_X5, _Y5);
_X5._v6 = 13;
_X5._D6 = 1;
};
}
function _y3(_X5, _Y5) {
{
_W1(_X5, _Y5);
};
}
function _z3(_X5, _Y5) {
{
_Y1(_X5, _Y5);
};
}
function _A3(_X5, _Y5) {
{
_Z1(_X5, _Y5);
_X5._v6 = 16;
_X5._y6 = (-1);
_X5._7b = 0;
};
}
function _C3(_X5, _Y5) {
{
_Ib(_X5);
};
}
function _D3(_X5, _Y5) {
{
_W1(_X5, _Y5);
};
}
function _E3(_X5, _Y5) {
{
_Y1(_X5, _Y5);
};
}
function _F3(_X5, _Y5) {
{
_Z1(_X5, _Y5);
_X5._v6 = 15;
_X5._y6 = (-1);
_X5._7b = 0;
_X5._D6 = 1;
};
}
function _G3(_X5, _Y5) {
{
_Ib(_X5);
};
}
function _H3(_X5, _Y5) {
{
_W1(_X5, _Y5);
};
}
function _I3(_X5, _Y5) {
{
_Y1(_X5, _Y5);
};
}
function _J3(_X5, _Y5) {
{
_X5._7b = 0;
};
}
function _K3(_X5, _Y5) {
{
_X5._H6 -= 0.05;
_X5._qb(_X5._Q9 + 8);
_X5._V8(_X5._U8 - 0.02);
_X5._W8(_X5._X8 - 0.02);
if ((_X5._H6 < 0.01)) {
_T6(_X5)
};
};
}
function _L3(_X5, _Y5) {
{
_P9(_X5, _X5._w6, _X5._G6, _X5._w2, _X5._x2, _X5._U8, _X5._X8, _X5._Q9, 16777215, _X5._H6);
_P9(_X5, 29, 0, _X5._w2, _X5._x2, _X5._U8, _X5._X8, 0, 16777215, _X5._H6);
};
}
function _M3(_X5, _Y5) {
{
_X5._Jb = _p6(_X5._w2, _X5._x2, 11);
__5(_X5._Jb)._E6(24);
_T6(_X5);
};
}
function _N3(_X5, _Y5) {
{
_X5._Jb = _p6(_X5._w2, _X5._x2, 11);
__5(_X5._Jb)._I6 = 23;
__5(_X5._Jb)._J6 = 0.66;
__5(_X5._Jb)._K6 = 0.66;
__5(_X5._Jb)._L6 = __5(_X5._Jb)._G6;
_T6(_X5);
};
}
function _O3(_X5, _Y5) {
{
_X5._7b = 0;
_X5._Kb = _p6(_X5._w2,
_X5._x2, 11);
__5(_X5._Kb)._F2 = 0;
};
}
function _P3(_X5, _Y5) {
{
_X5._V8(_X5._U8 + 0.04);
_X5._W8(_X5._X8 + 0.04);
if ((_X5._U8 > 0.99)) {
{
__5(_X5._Kb)._F6(_X5._G6);
__5(_X5._Kb)._F2 = 1;
_T6(_X5);
}
};
};
}
function _R3(_X5, _Y5) {
{
_X5._v6 = 0;
_X5._Lb = 0;
_X5._Mb = 0;
_X5._Nb = 1;
for (var _Ob = 0, _Pb = ~~ (8); _Ob < _Pb; _Ob++) {
{
_X5._Mb += 1;
if (!(_X5._Qb instanceof Array)) {
_X5._Qb = [];
_X5._Qb._f1 = 3841641825
} else if (_X5._Qb._f1 !== 3841641825) {
_X5._Qb = _X5._Qb.slice(0);
_X5._Qb._f1 = 3841641825
}
_X5._Qb[_X5._Mb] = _X5._w2;
if (!(_X5._Rb instanceof Array)) {
_X5._Rb = [];
_X5._Rb._f1 = 4259445792
} else if (_X5._Rb._f1 !== 4259445792) {
_X5._Rb = _X5._Rb.slice(0);
_X5._Rb._f1 = 4259445792
}
_X5._Rb[_X5._Mb] = _X5._x2;
if (!(_X5._Sb instanceof Array)) {
_X5._Sb = [];
_X5._Sb._f1 = 2095766334
} else if (_X5._Sb._f1 !== 2095766334) {
_X5._Sb = _X5._Sb.slice(0);
_X5._Sb._f1 = 2095766334
}
_X5._Sb[_X5._Mb] = random(360);
if (!(_X5._Tb instanceof Array)) {
_X5._Tb = [];
_X5._Tb._f1 = 1404060895
} else if (_X5._Tb._f1 !== 1404060895) {
_X5._Tb = _X5._Tb.slice(0);
_X5._Tb._f1 = 1404060895
}
_X5._Tb[_X5._Mb] = (5 + random(0.5));
if (!(_X5._Ub instanceof Array)) {
_X5._Ub = [];
_X5._Ub._f1 = 1364505388
} else if (_X5._Ub._f1 !== 1364505388) {
_X5._Ub = _X5._Ub.slice(0);
_X5._Ub._f1 = 1364505388
}
_X5._Ub[_X5._Mb] = (-1);
if (!(_X5._Vb instanceof Array)) {
_X5._Vb = [];
_X5._Vb._f1 = 504702443
} else if (_X5._Vb._f1 !== 504702443) {
_X5._Vb = _X5._Vb.slice(0);
_X5._Vb._f1 = 504702443
}
_X5._Vb[_X5._Mb] = 1;
if (!(_X5._Wb instanceof Array)) {
_X5._Wb = [];
_X5._Wb._f1 = 226464275
} else if (_X5._Wb._f1 !== 226464275) {
_X5._Wb = _X5._Wb.slice(0);
_X5._Wb._f1 = 226464275
}
_X5._Wb[_X5._Mb] = 1;
if (!(_X5._Xb instanceof Array)) {
_X5._Xb = [];
_X5._Xb._f1 = 3565179399
} else if (_X5._Xb._f1 !== 3565179399) {
_X5._Xb = _X5._Xb.slice(0);
_X5._Xb._f1 = 3565179399
}
_X5._Xb[_X5._Mb] = 1;
}
};
};
}
function _S3(_X5, _Y5) {
{
if ((global._m8 == 0)) {
{
_X5._F9(_X5._H9 - 10);
_X5._qb(_X5._Q9 + 10);
_X5._v6 += 1;
if ((_X5._v6 == 6)) {
{
_X5._v6 = 0;
for (var _Yb = 0, _Zb = ~~ (4); _Yb < _Zb; _Yb++) {
{
var __b;
__b = (_X5._Nb + _X5._Mb);
if (!(_X5._Sb instanceof Array)) {
_X5._Sb = [];
_X5._Sb._f1 = 2095766334
} else if (_X5._Sb._f1 !== 2095766334) {
_X5._Sb = _X5._Sb.slice(0);
_X5._Sb._f1 = 2095766334
}
_X5._Sb[__b] = (_X5._H9 + _X5._Lb);
if (!(_X5._Tb instanceof Array)) {
_X5._Tb = [];
_X5._Tb._f1 = 1404060895
} else if (_X5._Tb._f1 !== 1404060895) {
_X5._Tb = _X5._Tb.slice(0);
_X5._Tb._f1 = 1404060895
}
_X5._Tb[__b] = (5 + random(0.5));
if (!(_X5._Ub instanceof Array)) {
_X5._Ub = [];
_X5._Ub._f1 = 1364505388
} else if (_X5._Ub._f1 !== 1364505388) {
_X5._Ub = _X5._Ub.slice(0);
_X5._Ub._f1 = 1364505388
}
_X5._Ub[__b] = (-1);
if (!(_X5._Vb instanceof Array)) {
_X5._Vb = [];
_X5._Vb._f1 = 504702443
} else if (_X5._Vb._f1 !== 504702443) {
_X5._Vb = _X5._Vb.slice(0);
_X5._Vb._f1 = 504702443
}
_X5._Vb[__b] = 1;
if (!(_X5._Wb instanceof Array)) {
_X5._Wb = [];
_X5._Wb._f1 = 226464275
} else if (_X5._Wb._f1 !== 226464275) {
_X5._Wb = _X5._Wb.slice(0);
_X5._Wb._f1 = 226464275
}
_X5._Wb[__b] = 1;
if (!(_X5._Xb instanceof Array)) {
_X5._Xb = [];
_X5._Xb._f1 = 3565179399
} else if (_X5._Xb._f1 !== 3565179399) {
_X5._Xb = _X5._Xb.slice(0);
_X5._Xb._f1 = 3565179399
}
_X5._Xb[__b] = 1;
if (!(_X5._Qb instanceof Array)) {
_X5._Qb = [];
_X5._Qb._f1 = 3841641825
} else if (_X5._Qb._f1 !== 3841641825) {
_X5._Qb = _X5._Qb.slice(0);
_X5._Qb._f1 = 3841641825
}
_X5._Qb[__b] = _X5._w2;
if (!(_X5._Rb instanceof Array)) {
_X5._Rb = [];
_X5._Rb._f1 = 4259445792
} else if (_X5._Rb._f1 !== 4259445792) {
_X5._Rb = _X5._Rb.slice(0);
_X5._Rb._f1 = 4259445792
}
_X5._Rb[__b] = _X5._x2;
_X5._Mb += 1;
_X5._Lb += 90;
}
};
}
};
_X5._e6 = _X5._Nb;
for (var _0c = 0, _1c = ~~ (_X5._Mb); _0c < _1c; _0c++) {
{
if (!(_X5._Qb instanceof Array)) {
_X5._Qb = [];
_X5._Qb._f1 = 3841641825
} else if (_X5._Qb._f1 !== 3841641825) {
_X5._Qb = _X5._Qb.slice(0);
_X5._Qb._f1 = 3841641825
}
_X5._Qb[_X5._e6] += _P8(_X5._Tb[_X5._e6], _X5._Sb[_X5._e6]);
if (!(_X5._Rb instanceof Array)) {
_X5._Rb = [];
_X5._Rb._f1 = 4259445792
} else if (_X5._Rb._f1 !== 4259445792) {
_X5._Rb = _X5._Rb.slice(0);
_X5._Rb._f1 = 4259445792
}
_X5._Rb[_X5._e6] += _Q8(_X5._Tb[_X5._e6], _X5._Sb[_X5._e6]);
if ((_X5._Tb[_X5._e6] > 0)) {
if (!(_X5._Tb instanceof Array)) {
_X5._Tb = [];
_X5._Tb._f1 = 1404060895
} else if (_X5._Tb._f1 !== 1404060895) {
_X5._Tb = _X5._Tb.slice(0);
_X5._Tb._f1 = 1404060895
}
_X5._Tb[_X5._e6] -= 0.25
};
if (!(_X5._Sb instanceof Array)) {
_X5._Sb = [];
_X5._Sb._f1 = 2095766334
} else if (_X5._Sb._f1 !== 2095766334) {
_X5._Sb = _X5._Sb.slice(0);
_X5._Sb._f1 = 2095766334
}
_X5._Sb[_X5._e6] -= (_X5._Vb[_X5._e6] * _X5._Tb[_X5._e6] * 3);
if ((_X5._Ub[_X5._e6] == (-1))) {
{
if (!(_X5._Wb instanceof Array)) {
_X5._Wb = [];
_X5._Wb._f1 = 226464275
} else if (_X5._Wb._f1 !== 226464275) {
_X5._Wb = _X5._Wb.slice(0);
_X5._Wb._f1 = 226464275
}
_X5._Wb[_X5._e6] -= 0.04;
if ((_X5._Wb[_X5._e6] < 0.01)) {
{
_X5._Mb -= 1;
_X5._Nb = (_X5._e6 + 1);
}
};
}
};
if (!(_X5._Xb instanceof Array)) {
_X5._Xb = [];
_X5._Xb._f1 = 3565179399
} else if (_X5._Xb._f1 !== 3565179399) {
_X5._Xb = _X5._Xb.slice(0);
_X5._Xb._f1 = 3565179399
}
_X5._Xb[_X5._e6] -= 0.03;
_X5._e6 += 1;
}
};
}
};
};
}
function _T3(_X5, _Y5) {
{
var _2c, _3c;
_2c = 0.33;
_3c = (_X5._H9 - 24);
for (var _4c = 0, _5c = ~~ (3); _4c < _5c; _4c++) {
{
_P9(_X5, _X5._w6, 0, _X5._w2, _X5._x2, 1, 1, _3c, 16777215, _2c);
_3c += 8;
_2c += 0.33;
if ((_2c > 0.97)) {
_2c = 1
};
}
};
_X5._e6 = _X5._Nb;
for (var _6c = 0, _7c = ~~ (_X5._Mb); _6c < _7c; _6c++) {
{
_P9(_X5, 5, 0, _X5._Qb[_X5._e6], _X5._Rb[_X5._e6], _X5._Xb[_X5._e6], _X5._Xb[_X5._e6], 0, 16777215, _X5._Wb[_X5._e6]);
_X5._e6 += 1;
}
};
};
}
function _U3(_X5, _Y5) {
{
_X5._e6 = 1;
_X5._8c = _X5._w2;
_X5._S6 = _X5._x2;
_X5._F9(_S9(0, 40, 80));
_X5._F9(0);
_X5._9c = 8;
_X5._ac = _X5._9c;
};
}
function _V3(_X5, _Y5) {
{
if ((global._m8 == 0)) {
{
_X5._F9(_X5._H9 + floor(_X5._ac));
if ((_X5._e6 == 0)) {
{
if ((_X5._ac > 0)) {
_X5._ac -= 0.5
};
_X5._h6((-999));
_X5._j6((-999));
}
} else {
{
if ((_X5._ac < _X5._9c)) {
_X5._ac += 0.5
};
_X5._h6(_X5._8c);
_X5._j6(_X5._S6);
}
};
_X5._7b = 1;
}
} else {
_X5._7b = 0
};
};
}
function _W3(_X5, _Y5) {
{
if ((_X5._e6 == 1)) {
_P9(_X5, _X5._w6, _X5._G6, _X5._8c, _X5._S6, 1, 1, _X5._H9, 16777215, 1)
};
var _B7;
_B7 = (_X5._H9 + 90);
for (var _bc = 0, _cc = ~~ (3); _bc < _cc; _bc++) {
{
_4b(_X5, 27, _X5._e6, floor((_X5._8c + _P8(19, _B7))), floor((_X5._S6 + _Q8(19, _B7))));
_B7 += 120;
}
};
};
}
function _X3(_X5, _Y5) {
{
_X5._j6(_X5._x2 + 24);
_X5._lb = 1;
_X5._C9 = 0;
_X5._dc = 0;
_X5._7b = 0;
};
}
function _Y3(_X5, _Y5) {
{
if ((global._m8 == 0)) {
{
if ((_X5._lb == 1)) {
{
if (_h7(_X5, _X5._w2, _X5._x2, 3) > 0.5) {
{
_c2(_X5, _Y5, 6);
_X5._dc = 5;
_X5._lb = 0;
if ((_X5._G6 == 0)) {
_X5._F6(1)
} else {
_X5._F6(0)
}; {
var _ec = _26(22);
for (var _fc in _ec) {
if (!_ec.hasOwnProperty(_fc)) continue;
var _gc = _ec[_fc];
if (_gc._56) continue; {
if ((_gc._e6 == 1)) {
_gc._e6 = 0
} else {
_gc._e6 = 1
};
}
}
};
}
};
}
} else {
if ((_X5._lb == 0)) {
{
if (!(_h7(_X5, _X5._w2, _X5._x2, 3) > 0.5)) {
{
_X5._dc = 0;
_X5._lb = 1;
}
};
}
}
};
}
};
};
}
function _Z3(_X5, _Y5) {
{
_4b(_X5, _X5._w6,
_X5._G6, _X5._w2, (_X5._x2 + _X5._C9 + _X5._dc));
};
}
function __3(_X5, _Y5) {
{
_X5._7b = 0;
_X5._R7 = 1;
_X5._hc = 0;
_X5._ic = 0;
_X5._jc = 0;
_X5._38 = 0;
_X5._48 = 1;
_X5._kc = 0;
_X5._lc = 1;
_X5._mc = 0;
_X5._nc = 0.08;
_X5._oc = (1 / _X5._nc);
_X5._pc = (360 / ceil(_X5._oc));
};
}
function _04(_X5, _Y5) {
{
if ((global._m8 == 0)) {
{
_X5._jc -= 10;
if ((_X5._jc < 0)) {
_X5._jc += 360
};
_X5._hc += 10;
if ((_X5._hc > 360)) {
_X5._hc -= 360
};
_X5._ic = _Q8(1, _X5._hc);
if ((((_X5._R7 == 0)) && ((_X5._38 == 0)))) {
{
if (!(_h7(_X5, _X5._w2, _X5._x2, 3) > 0.5)) {
{
_X5._R7 = 1;
}
};
}
};
if ((_X5._38 == 1)) {
{
var _Bb,
_Cb;
_Bb = ((_X5._88 - _X5._w2) * 0.5);
_Cb = ((_X5._98 - _X5._x2) * 0.5);
_X5._88 -= _Bb;
_X5._98 -= _Cb;
_X5._kc += _X5._pc;
_X5._48 -= _X5._nc;
if ((_X5._48 < 0.01)) {
{
_X5._48 = 1;
_X5._38 = 0;
_X5._kc = 0;
}
};
}
} else {
if ((_X5._38 == 2)) {
{
_X5._kc += _X5._pc;
_X5._48 += _X5._nc;
if ((_X5._48 > 0.99)) {
{
if (_t6(3) > 0.5) {
{
__5(3)._h6(_X5._w2);
__5(3)._j6(_X5._x2);
if ((__5(3)._S7 == 1)) {
{
{
var _qc = _26(3);
for (var _rc in _qc) {
if (!_qc.hasOwnProperty(_rc)) continue;
var _sc = _qc[_rc];
if (_sc._56) continue; {
if (((!(_h7(_sc, (_sc._w2 + (_sc._J7 * 48)), _sc._x2, 9) > 0.5)) && (!(_h7(_sc, (_sc._w2 + (_sc._J7 * 48)), _sc._x2, 10) > 0.5)))) {
_L1(_sc, _X5)
} else {
{
_sc._a7 = 0;
_sc._d7 = 0;
_sc._c7 = 0;
}
};
}
}
};
}
} else {
{
var _tc = _26(3);
for (var _uc in _tc) {
if (!_tc.hasOwnProperty(_uc)) continue;
var _vc = _tc[_uc];
if (_vc._56) continue; {
_vc._a7 = 0;
_vc._d7 = 0;
_vc._c7 = 0;
}
}
}
}; {
var _wc = _26(3);
for (var _xc in _wc) {
if (!_wc.hasOwnProperty(_xc)) continue;
var _yc = _wc[_xc];
if (_yc._56) continue; {
_G1(_yc, _X5);
if (_h7(_yc, _yc._w2, (_yc._x2 + 1), 9) > 0.5) {
{
_K1(_yc, _X5);
}
};
}
}
};
}
};
_X5._48 = 1;
_X5._38 = 0;
_X5._kc = 0;
}
};
}
}
};
}
};
};
}
function _14(_X5, _Y5) {
{
_P9(_X5,
_X5._w6, _X5._G6, _X5._w2, (_X5._x2 + _X5._ic), _X5._U8, _X5._X8, _X5._jc, 16777215, 1);
if ((_X5._38 > 0)) {
{
if ((global._47 == 1)) {
_P9(_X5, 11, 0, _X5._88, _X5._98, _X5._48, _X5._48, (_X5._kc + _X5._u7), 16777215, _X5._H6)
};
_P9(_X5, 6, 0, _X5._88, _X5._98, _X5._48, _X5._48, _X5._kc, 16777215, _X5._lc);
}
};
};
}
function _24(_X5, _Y5) {
{
_X5._G7 = 0.4;
_X5._H6 = global._Gb;
_X5._H6 -= _S9(0, 0.05, 0.1, 0.15, 0.2);
_X5._7b = 0;
_X5._zc = 0.03;
_X5._Ac = 12;
_X5._e6 = 1;
for (var _Bc = 0, _Cc = ~~ (_X5._Ac); _Bc < _Cc; _Bc++) {
{
if (!(_X5._Dc instanceof Array)) {
_X5._Dc = [];
_X5._Dc._f1 = 3005833649
} else if (_X5._Dc._f1 !== 3005833649) {
_X5._Dc = _X5._Dc.slice(0);
_X5._Dc._f1 = 3005833649
}
_X5._Dc[_X5._e6] = (_X5._w2 - 12 + floor(random(24)));
if (!(_X5._Ec instanceof Array)) {
_X5._Ec = [];
_X5._Ec._f1 = 2855424240
} else if (_X5._Ec._f1 !== 2855424240) {
_X5._Ec = _X5._Ec.slice(0);
_X5._Ec._f1 = 2855424240
}
_X5._Ec[_X5._e6] = (_X5._x2 - 12 + floor(random(24)));
if (!(_X5._Fc instanceof Array)) {
_X5._Fc = [];
_X5._Fc._f1 = 570967874
} else if (_X5._Fc._f1 !== 570967874) {
_X5._Fc = _X5._Fc.slice(0);
_X5._Fc._f1 = 570967874
}
_X5._Fc[_X5._e6] = random(360);
if (!(_X5._Gc instanceof Array)) {
_X5._Gc = [];
_X5._Gc._f1 = 1237748027
} else if (_X5._Gc._f1 !== 1237748027) {
_X5._Gc = _X5._Gc.slice(0);
_X5._Gc._f1 = 1237748027
}
_X5._Gc[_X5._e6] = _S9(5, (-5));
if (!(_X5._Hc instanceof Array)) {
_X5._Hc = [];
_X5._Hc._f1 = 4098195115
} else if (_X5._Hc._f1 !== 4098195115) {
_X5._Hc = _X5._Hc.slice(0);
_X5._Hc._f1 = 4098195115
}
_X5._Hc[_X5._e6] = ((-3) + random(6));
if (!(_X5._Ic instanceof Array)) {
_X5._Ic = [];
_X5._Ic._f1 = 2641649074
} else if (_X5._Ic._f1 !== 2641649074) {
_X5._Ic = _X5._Ic.slice(0);
_X5._Ic._f1 = 2641649074
}
_X5._Ic[_X5._e6] = (1 - random(8));
if (!(_X5._Jc instanceof Array)) {
_X5._Jc = [];
_X5._Jc._f1 = 2515542095
} else if (_X5._Jc._f1 !== 2515542095) {
_X5._Jc = _X5._Jc.slice(0);
_X5._Jc._f1 = 2515542095
}
_X5._Jc[_X5._e6] = global._Gb;
if (!(_X5._Kc instanceof Array)) {
_X5._Kc = [];
_X5._Kc._f1 = 876661701
} else if (_X5._Kc._f1 !== 876661701) {
_X5._Kc = _X5._Kc.slice(0);
_X5._Kc._f1 = 876661701
}
_X5._Kc[_X5._e6] = 0.66;
if (!(_X5._Lc instanceof Array)) {
_X5._Lc = [];
_X5._Lc._f1 = 2951055274
} else if (_X5._Lc._f1 !== 2951055274) {
_X5._Lc = _X5._Lc.slice(0);
_X5._Lc._f1 = 2951055274
}
_X5._Lc[_X5._e6] = 0.66;
_X5._e6 += 1;
}
};
};
}
function _34(_X5,
_Y5) {
{
if ((global._m8 == 0)) {
{
_X5._e6 = 1;
for (var _Mc = 0, _Nc = ~~ (_X5._Ac); _Mc < _Nc; _Mc++) {
{
if (!(_X5._Ic instanceof Array)) {
_X5._Ic = [];
_X5._Ic._f1 = 2641649074
} else if (_X5._Ic._f1 !== 2641649074) {
_X5._Ic = _X5._Ic.slice(0);
_X5._Ic._f1 = 2641649074
}
_X5._Ic[_X5._e6] += _X5._G7;
if (!(_X5._Dc instanceof Array)) {
_X5._Dc = [];
_X5._Dc._f1 = 3005833649
} else if (_X5._Dc._f1 !== 3005833649) {
_X5._Dc = _X5._Dc.slice(0);
_X5._Dc._f1 = 3005833649
}
_X5._Dc[_X5._e6] += _X5._Hc[_X5._e6];
if (!(_X5._Ec instanceof Array)) {
_X5._Ec = [];
_X5._Ec._f1 = 2855424240
} else if (_X5._Ec._f1 !== 2855424240) {
_X5._Ec = _X5._Ec.slice(0);
_X5._Ec._f1 = 2855424240
}
_X5._Ec[_X5._e6] += _X5._Ic[_X5._e6];
if (!(_X5._Fc instanceof Array)) {
_X5._Fc = [];
_X5._Fc._f1 = 570967874
} else if (_X5._Fc._f1 !== 570967874) {
_X5._Fc = _X5._Fc.slice(0);
_X5._Fc._f1 = 570967874
}
_X5._Fc[_X5._e6] += _X5._Gc[_X5._e6];
if (!(_X5._Jc instanceof Array)) {
_X5._Jc = [];
_X5._Jc._f1 = 2515542095
} else if (_X5._Jc._f1 !== 2515542095) {
_X5._Jc = _X5._Jc.slice(0);
_X5._Jc._f1 = 2515542095
}
_X5._Jc[_X5._e6] -= _X5._zc;
if (!(_X5._Kc instanceof Array)) {
_X5._Kc = [];
_X5._Kc._f1 = 876661701
} else if (_X5._Kc._f1 !== 876661701) {
_X5._Kc = _X5._Kc.slice(0);
_X5._Kc._f1 = 876661701
}
_X5._Kc[_X5._e6] -= _X5._zc;
if (!(_X5._Lc instanceof Array)) {
_X5._Lc = [];
_X5._Lc._f1 = 2951055274
} else if (_X5._Lc._f1 !== 2951055274) {
_X5._Lc = _X5._Lc.slice(0);
_X5._Lc._f1 = 2951055274
}
_X5._Lc[_X5._e6] -= _X5._zc;
_X5._e6 += 1;
}
};
if ((((_X5._Kc[1] < 0.01)) || ((_X5._Jc[1] < 0.01)))) {
_T6(_X5)
};
}
};
};
}
function _44(_X5, _Y5) {
{
_X5._e6 = 1;
for (var _Oc = 0, _Pc = ~~ (_X5._Ac); _Oc < _Pc; _Oc++) {
{
_P9(_X5, _X5._w6, _X5._G6, _X5._Dc[_X5._e6], _X5._Ec[_X5._e6], _X5._Kc[_X5._e6], _X5._Lc[_X5._e6], _X5._Fc[_X5._e6],
16777215, _X5._Jc[_X5._e6]);
_X5._e6 += 1;
}
};
};
}
function _54(_X5, _Y5) {
{
_X5._F9(180);
_X5._Qc(0.5);
_X5._H6 = _S9(0.7, 0.75, 0.8);
_X5._7b = _S9(0.5, 0.6, 0.7);
};
}
function _64(_X5, _Y5) {
{
if ((global._m8 == 0)) {
{
if (((_X5._w2 + 26) < _O7._w8[0])) {
_T6(_X5)
};
}
} else {
{
_X5._h6(_X5._w2 + _P8(_X5._Rc, (_X5._H9 + 180)));
}
};
};
}
function _74(_X5, _Y5) {
{
global._m8 = 0;
_X5._Sc = 1;
_X5._Tc = 0;
_X5._Uc = 0;
_X5._Vc = 0;
};
}
function _84(_X5, _Y5) {
{
_X5._Vc += 1;
_X5._Uc += 5;
if ((_X5._Uc > 360)) {
_X5._Uc -= 360
};
_X5._Tc += 10;
if ((_X5._Tc > 359)) {
_X5._Tc -= 360
};
_X5._V8((1 + _Q8(0.03,
_X5._Tc)));
_X5._W8((1 - _Q8(0.03, _X5._Tc)));
};
}
function _94(_X5, _Y5) {
{
var _Wc, _Xc;
_Wc = (_O7._w8[0] + (_O7._x8[0] * 0.5));
_Xc = (_O7._y8[0] + 72);
_P9(_X5, 1, 0, _Wc, _Xc, 1, 1, _X5._Uc, 16777215, 0.66);
_P9(_X5, 0, 0, _Wc, _Xc, _X5._U8, _X5._X8, _X5._Q9, 16777215, _X5._H6);
};
}
window.mainCount = 0;
function _a4(_X5, _Y5) {
{
window.mainCount++;
if(window.mainCount >= 2){
// Play68.goHome();
}
_X5._Yc = global._Zc;
_X5._R8 = 0;
_X5._lb = 1;
_X5._7b = 0;
_X5.__c = 0;
if (!(_X5._x6 instanceof Array)) {
_X5._x6 = [];
_X5._x6._f1 = 1584050178
} else if (_X5._x6._f1 !== 1584050178) {
_X5._x6 = _X5._x6.slice(0);
_X5._x6._f1 = 1584050178
}
_X5._x6[6] = 10;
_X5._0d = 0;
};
}
function _b4(_X5,
_Y5) {
{
if (!(_X5._x6 instanceof Array)) {
_X5._x6 = [];
_X5._x6._f1 = 1584050178
} else if (_X5._x6._f1 !== 1584050178) {
_X5._x6 = _X5._x6.slice(0);
_X5._x6._f1 = 1584050178
}
_X5._x6[6] = 90;
_X5._0d = 1;
};
}
function _c4(_X5, _Y5) {
{
_X5.__c += 10;
_X5._qb(_Q8(3, _X5.__c));
_S1(_X5, _Y5);
if ((_X5._0d == 1)) {
{
_X5._F6(_X5._G6 + 1);
if ((_X5._G6 == 11)) {
{
_X5._F6(0);
_X5._0d = 0;
}
};
}
};
};
}
function _d4(_X5, _Y5) {
{
if ((_X5._lb == 1)) {
{
_c2(_X5, _Y5, 5);
_X5._lb = 0;
_X5._V8(global._mb);
_X5._W8(global._mb);
_X5._R8 = 1;
_X5._T8 = (_X5._w2 - 320);
if (!(_t6(32) > 0.5)) {
{
var _e6, _yb,
_zb, _1d;
_e6 = 1;
_1d = 0;
for (var _2d = 0, _3d = ~~ (3); _2d < _3d; _2d++) {
{
_yb = (64 + _1d);
_zb = 192;
for (var _4d = 0, _5d = ~~ (12); _4d < _5d; _4d++) {
{
_X5._6d = _p6((_yb + 320), _zb, 32);
__5(_X5._6d)._Yc = _39(_e6); {
var _7d = _26(_X5._6d);
for (var _8d in _7d) {
if (!_7d.hasOwnProperty(_8d)) continue;
var _9d = _7d[_8d];
if (_9d._56) continue; {
_9d._F6(2);
if (((global._67 + 1) > _ad(_9d._Yc))) {
_9d._F6(0)
} else {
if (((global._67 + 2) > _ad(_9d._Yc))) {
_9d._F6(1)
}
};
_9d._R8 = 1;
_9d._T8 = (_9d._w2 - 320);
}
}
};
_yb += 64;
if ((_yb > (256 + _1d))) {
{
_yb = (64 + _1d);
_zb += 64;
}
};
_e6 += 1;
}
};
_X5._6d = _p6((_yb + 320),
_zb, 33); {
var _bd = _26(_X5._6d);
for (var _cd in _bd) {
if (!_bd.hasOwnProperty(_cd)) continue;
var _dd = _bd[_cd];
if (_dd._56) continue; {
_dd._R8 = 1;
_dd._T8 = (_dd._w2 - 320);
}
}
};
if ((_e6 != (global._a6 + 1))) {
{
_X5._6d = _p6((_yb + 320 + 192), _zb, 34); {
var _ed = _26(_X5._6d);
for (var _fd in _ed) {
if (!_ed.hasOwnProperty(_fd)) continue;
var _gd = _ed[_fd];
if (_gd._56) continue; {
_gd._R8 = 1;
_gd._T8 = (_gd._w2 - 320);
}
}
};
}
};
_1d += 320;
}
};
}
} else {
{
{
var _hd = _26(32);
for (var _id in _hd) {
if (!_hd.hasOwnProperty(_id)) continue;
var _jd = _hd[_id];
if (_jd._56) continue; {
_jd._R8 = 1;
_jd._T8 = (_jd._T8 - 320);
}
}
}; {
var _kd = _26(33);
for (var _ld in _kd) {
if (!_kd.hasOwnProperty(_ld)) continue;
var _md = _kd[_ld];
if (_md._56) continue; {
_md._R8 = 1;
_md._T8 = (_md._T8 - 320);
}
}
}; {
var _nd = _26(34);
for (var _od in _nd) {
if (!_nd.hasOwnProperty(_od)) continue;
var _pd = _nd[_od];
if (_pd._56) continue; {
_pd._R8 = 1;
_pd._T8 = (_pd._T8 - 320);
}
}
};
}
};
}
};
};
}
function _e4(_X5, _Y5) {
{
_P9(_X5, _X5._w6, _X5._G6, _X5._w2, _X5._x2, _X5._U8, _X5._X8, _X5._Q9, 16777215, 1);
};
}
function _f4(_X5, _Y5) {
{
_X5._7b = 0;
_X5._F6(global._57);
_X5._R8 = 0;
};
}
function _g4(_X5,
_Y5) {
{
_S1(_X5, _Y5);
};
}
function _h4(_X5, _Y5) {
{
if ((_X5._G6 == 1)) {
{
_c2(_X5, _Y5, 10);
_X5._F6(0);
}
} else {
{
_c2(_X5, _Y5, 9);
_X5._F6(1);
}
};
global._57 = _X5._G6;
_H1(_X5, _Y5);
};
}
function _i4(_X5, _Y5) {
{
_X5._R8 = 0;
_X5._Yc = "";
_X5._lb = 1;
_X5._7b = 0;
};
}
function _j4(_X5, _Y5) {
{
_S1(_X5, _Y5);
};
}
function _k4(_X5, _Y5) {
{
if ((((_X5._G6 == 0)) || ((_X5._G6 == 1)))) {
{
_c2(_X5, _Y5, 5);
global._b6 = _ad(_X5._Yc);
_C1(_X5, _Y5, 3);
}
};
_X5._V8(global._mb);
_X5._W8(global._mb);
};
}
function _l4(_X5, _Y5) {
{
_P9(_X5, _X5._w6, _X5._G6, _X5._w2, _X5._x2, _X5._U8, _X5._X8,
0, 16777215, _X5._H6);
_Ga(0);
_J8(0);
_Fa(1);
_Ea(1);
_K8(0.5);
_qd(_X5._w2, _X5._x2, _X5._Yc, _X5._U8, _X5._X8, 0);
_K8(1);
};
}
function _m4(_X5, _Y5) {
{
_X5._R8 = 0;
_X5._lb = 1;
_X5._7b = 0;
};
}
function _n4(_X5, _Y5) {
{
_S1(_X5, _Y5);
};
}
function _o4(_X5, _Y5) {
{
_c2(_X5, _Y5, 5); {
var _rd = _26(30);
for (var _sd in _rd) {
if (!_rd.hasOwnProperty(_sd)) continue;
var _td = _rd[_sd];
if (_td._56) continue; {
_td._lb = 1;
_td._R8 = 1;
_td._T8 = (_td._T8 + 320);
}
}
}; {
var _ud = _26(32);
for (var _vd in _ud) {
if (!_ud.hasOwnProperty(_vd)) continue;
var _wd = _ud[_vd];
if (_wd._56) continue; {
_wd._R8 = 1;
_wd._T8 = (_wd._T8 + 320);
}
}
}; {
var _xd = _26(34);
for (var _yd in _xd) {
if (!_xd.hasOwnProperty(_yd)) continue;
var _zd = _xd[_yd];
if (_zd._56) continue; {
_zd._R8 = 1;
_zd._T8 = (_zd._T8 + 320);
}
}
}; {
var _Ad = _26(33);
for (var _Bd in _Ad) {
if (!_Ad.hasOwnProperty(_Bd)) continue;
var _Cd = _Ad[_Bd];
if (_Cd._56) continue; {
_Cd._R8 = 1;
_Cd._T8 = (_Cd._T8 + 320);
}
}
};
_X5._V8(global._mb);
_X5._W8(global._mb);
};
}
function _p4(_X5, _Y5) {
{
_P9(_X5, _X5._w6, _X5._G6, _X5._w2, _X5._x2, _X5._U8, _X5._X8, 0, 16777215, _X5._H6);
};
}
function _q4(_X5, _Y5) {
{
_X5._R8 = 0;
_X5._lb = 1;
_X5._7b = 0;
};
}
function _r4(_X5, _Y5) {
{
_S1(_X5, _Y5);
};
}
function _s4(_X5, _Y5) {
{
_c2(_X5, _Y5, 5); {
var _Dd = _26(30);
for (var _Ed in _Dd) {
if (!_Dd.hasOwnProperty(_Ed)) continue;
var _Fd = _Dd[_Ed];
if (_Fd._56) continue; {
_Fd._lb = 1;
_Fd._R8 = 1;
_Fd._T8 = (_Fd._T8 - 320);
}
}
}; {
var _Gd = _26(32);
for (var _Hd in _Gd) {
if (!_Gd.hasOwnProperty(_Hd)) continue;
var _Id = _Gd[_Hd];
if (_Id._56) continue; {
_Id._R8 = 1;
_Id._T8 = (_Id._T8 - 320);
}
}
}; {
var _Jd = _26(34);
for (var _Kd in _Jd) {
if (!_Jd.hasOwnProperty(_Kd)) continue;
var _Ld = _Jd[_Kd];
if (_Ld._56) continue; {
_Ld._R8 = 1;
_Ld._T8 = (_Ld._T8 - 320);
}
}
}; {
var _Md = _26(33);
for (var _Nd in _Md) {
if (!_Md.hasOwnProperty(_Nd)) continue;
var _Od = _Md[_Nd];
if (_Od._56) continue; {
_Od._R8 = 1;
_Od._T8 = (_Od._T8 - 320);
}
}
};
_X5._V8(global._mb);
_X5._W8(global._mb);
};
}
function _t4(_X5, _Y5) {
{
_P9(_X5, _X5._w6, _X5._G6, _X5._w2, _X5._x2, _X5._U8, _X5._X8, 0, 16777215, _X5._H6);
};
}
function _u4(_X5, _Y5) {
{
_X5._h6((_O7._J9 / 2));
_X5._j6((_O7._P7 - 25));
if ((_O7._ga() != 4)) {
_4b(_X5, 32, 0, _X5._w2, _X5._x2)
};
};
}
function _H4(_X5) {
_D1(_X5, _X5);
global._Ia = 0;
global._Gb = 0.7;
global._F8 = 0.7;
global._m8 = 0;
global._mb = 1.3;
global._5b = 10;
global._6b = 24;
global._Zc = "Play";
global._La = "Level";
global._2b = "Game Paused";
global._29 = "恭喜过关";
global._49 = "Victory!";
global._c9 = "闯关失败";
global._Ha = "turn your device#to the side";
global._Pd = "Enable Sound?";
global._Qd = "Yes";
global._Rd = "No";
global.__a = "Cape unlocked!";
global._i6 = 16;
global._k6 = 32;
global._z8 = 184;
_p6(0, 0, 1);
_27("jjsav.ini");
global._47 = _Sd("data", "have_cape", 0);
global._57 = _Sd("data", "sound_enabled", 1);
global._67 = _Sd("data",
"levels_completed", 0);
_77();
_ia(2);
}
function _Td(_Ud) {
this._Vd = 0;
this._Wd = !1;
this._Xd = null;
this._Yd = null;
this._Zd = null;
this.__d = null;
this._0e = null;
this._1e = null;
this._2e = [];
this._3e(_Ud._1e)
};
_Td.prototype._4e = function() {
var _5e = new _Td({
_1e: this._1e
});
return _5e
};
_Td.prototype._3e = function(_6e) {
this._1e = _6e;
this._Xd = new _7e._8e(_6e);
this._0e = new _7e._9e(this._Xd.data);
this.__d = new _7e._ae(this._0e);
if (_6e._be.length > 0) {
this._ce(null)
}
this._de(null);
this._Yd = new _7e._ee();
var _fe = this._Xd._ge();
this._he = [_fe._r2,
_fe._s2
]
};
_Td.prototype._ie = function() {
var _je = _ke ? _ke._le() : 30;
return~~ ((_je * this._Zd.duration) + 0.5)
};
_Td.prototype._ce = function(_me) {
this._ne(_me, 0)
};
_Td.prototype._ne = function(_me, _oe) {
var _pe = null;
if (((_me === null) || (_me === undefined)) && (_oe === 0)) {
if (this._1e._be.length > 0) {
_pe = this._1e._qe(this._1e._be[0].name)
}
} else {
_pe = this._1e._qe(_me)
} if (_pe !== null && _pe !== undefined) {
if (_oe === 0) {
this._Vd = 0;
this._Zd = _pe
}
this.__d._re(_oe, _pe, !0)
}
};
_Td.prototype._de = function(_se) {
if (_se === null || _se === undefined) {
if (this._1e._te) {
this._Xd._ue(this._1e._te.name);
}
} else {
this._Xd._ue(_se)
}
this._Xd._ve()
};
_Td.prototype._we = function(_xe, _ye, _ze, _Ae, _Be, _Ce, _De) {
var _Ee = this._Xd;
_fe = this._Xd._ge(), _Fe = this._Vd, _Ge = (_De !== undefined);
var _He = Math.abs(_Ae * this._he[0]);
_Ie = Math.abs(_Be * this._he[1]);
if ((_Fe !== _xe) || (_Ee._w2 !== _ye) || (_Ee._x2 !== _ze) || (_fe._r2 !== _He) || (_fe._s2 !== _Ie) || (_fe._E4 !== _Ce)) {
var _Je = this._ie();
if (_Je > 0) {
var _Ke = _xe % _Je,
_Le = this._Vd % _Je,
duration = this._Zd.duration,
_Me = this._Zd._Ne.length;
if (_Le > _Ke) {
_Ke += _Je
}
var _Oe = (_Ke - _Le) / _Je;
this.__d._Pe(_Oe * duration);
this.__d.apply(this._Xd)
}
this._Vd = _xe;
_Ee._w2 = _ye;
_Ee._x2 = _ze;
_Ee._Qe = ((_Ae * this._he[0]) < 0) ? 1 : 0;
_Ee._Re = ((_Be * this._he[1]) < 0) ? 1 : 0;
_fe._r2 = _He;
_fe._s2 = _Ie;
_fe._E4 = _Ce;
_Ge = !0
}
if (_Ge) {
if (_De) {
_De._Se(_Te, 0, _De, null)
}
_Ee._Ge();
this._Yd._Pe(this._Xd, 1)
}
};
_Td.prototype._Ue = function(_Ve, _ye, _ze, _Ae, _Be, _Ce) {
var _Je = this._ie();
var _We = ~~ (_Je * (_Ve / this._Zd.duration) + 0.5);
this._we(_We, _ye, _ze, _Ae, _Be, _Ce)
};
_Td.prototype._Xe = function(_Ye, _xe, _ye, _ze, _Ae,
_Be, _Ce) {
var _Ze = this._Yd;
if (_Ze.__e.length > 0) {
this._we(_xe, _ye, _ze, _Ae, _Be, _Ce);
_Ye.left = ~~ (_Ze._0f + 0.5);
_Ye._1f = ~~ (_Ze._2f + 0.5);
_Ye.top = ~~ (_Ze._3f + 0.5);
_Ye.bottom = ~~ (_Ze._4f + 0.5);
return !0
}
return !1;
};
_Td.prototype._5f = function(_xe, _ye, _ze, _Ae, _Be, _Ce, _6f, _7f, _8f, _9f, _af, _bf, _cf) {
this._we(_xe, _ye, _ze, _Ae, _Be, _Ce);
_6f._we(_7f, _8f, _9f, _af, _bf, _cf);
for (var _df = 0; _df < _6f._Yd._ef.length; _df++) {
var _ff = _6f._Yd._ef[_df];
var _k2 = _ff.length / 2;
for (var _gf = 0; _gf < _k2; _gf++) {
var _hf, _if, _jf, _kf;
_hf = _ff[(_gf * 2) + 0];
_if = _ff[(_gf * 2) + 1];
if (_gf === (_k2 - 1)) {
_jf = _ff[0];
_kf = _ff[1]
} else {
_jf = _ff[((_gf + 1) * 2) + 0];
_kf = _ff[((_gf + 1) * 2) + 1]
}
var _lf = this._Yd._mf(_hf, _if, _jf, _kf);
if (_lf !== null) {
return !0
}
}
}
return !1
};
_Td.prototype._nf = function(_xe, _ye, _ze, _Ae, _Be, _Ce, _of, _pf, _7f, _8f, _9f, _af, _bf, _cf) {
this._we(_xe, _ye, _ze, _Ae, _Be, _Ce);
if (_of == null) {
return !1
}
if (_of._qf <= 0) {
return !1
}
if (_of._rf.length > 0) {
_7f = _7f % _of._rf.length
}
if (_7f < 0) {
_7f = _7f + _of._rf.length
}
_af = 1.0 / _af;
_bf = 1.0 / _bf;
var _Ze = this._Yd;
var _sf = _tf(_Ze._0f, _pf.left);
var _uf = _vf(_Ze._2f,
_pf._1f);
var _wf = _tf(_Ze._3f, _pf.top);
var _xf = _vf(_Ze._4f, _pf.bottom);
var _yf = Math.sin(-_cf * (_zf / 180.0));
var _Af = Math.cos(-_cf * (_zf / 180.0));
for (var _u2 = _sf; _u2 <= _uf; _u2++) {
for (var _Bf = _wf; _Bf <= _xf; _Bf++) {
var _Cf = ((_Af * (_u2 - _8f) + _yf * (_Bf - _9f)) * _af + _of._Df);
var _Ef = ((_Af * (_Bf - _9f) - _yf * (_u2 - _8f)) * _bf + _of._Ff);
if ((_Cf < 0) || (_Cf >= _of._Gf)) {
continue
}
if ((_Ef < 0) || (_Ef >= _of._Hf)) {
continue
}
if (_of._If) {
if (!_of._rf._Jf[_7f]._Jf[_Cf + (_Ef * _of._Gf)]) {
continue
}
}
var _lf = _Ze._Kf(_u2, _Bf);
if (_lf !== null) {
return !0
}
}
}
return !1
};
_Td.prototype._Lf = function(_xe, _ye, _ze, _Ae, _Be, _Ce, _Mf, _Nf) {
this._we(_xe, _ye, _ze, _Ae, _Be, _Ce);
var _lf = this._Yd._Kf(_Mf, _Nf);
if (_lf !== null) {
return !0
}
return !1
};
_Td.prototype._Of = function(_xe, _ye, _ze, _Ae, _Be, _Ce, _Mf, _Nf, _8f, _9f) {
this._we(_xe, _ye, _ze, _Ae, _Be, _Ce);
var _lf = this._Yd._mf(_Mf, _Nf, _8f, _9f);
if (_lf !== null) {
return !0
}
return !1
};
_Td.prototype._Pf = function(_xe, _ye, _ze, _Ae, _Be, _Ce, _Mf, _Nf, _8f, _9f) {
this._we(_xe, _ye, _ze, _Ae, _Be, _Ce);
var _lf = null;
var _Ze = this._Yd;
var _lf = _Ze._mf(_Mf, _Nf, _8f, _9f);
if (_lf !== null) {
return !0
}
_lf = _Ze._mf(_Mf, _Nf, _8f, _Nf);
if (_lf !== null) {
return !0
}
_lf = _Ze._mf(_8f, _Nf, _8f, _9f);
if (_lf !== null) {
return !0
}
_lf = _Ze._mf(_8f, _9f, _Mf, _9f);
if (_lf !== null) {
return !0;
}
_lf = _Ze._mf(_Mf, _9f, _Mf, _Nf);
if (_lf !== null) {
return !0
}
return !1
};
_Td.prototype._Qf = function(_xe, _ye, _ze, _Ae, _Be, _Ce, _Rf) {
this._we(_xe, _ye, _ze, _Ae, _Be, _Ce);
var _Ze = this._Yd;
var _Ee = this._Xd;
var _sf = _tf(_Ze._0f, _Rf.left);
var _uf = _vf(_Ze._2f, _Rf._1f);
var _wf = _tf(_Ze._3f, _Rf.top);
var _xf = _vf(_Ze._4f, _Rf.bottom);
var _Sf = ((_Rf._1f + _Rf.left) / 2);
var _Tf = ((_Rf.bottom + _Rf.top) / 2);
var _Uf = ((_Rf._1f - _Rf.left) / 2);
var _Vf = ((_Rf.bottom - _Rf.top) / 2);
var _Gf = (_Ze._2f - _Ze._0f);
var _Hf = (_Ze._4f - _Ze._3f);
var _Df = _Ee._w2 - _Ze._0f;
var _Ff = _Ee._x2 - _Ze._3f;
if ((_Ae == 1) && (_Be == 1) && (Math.abs(_Ce) < 0.0001)) {
for (var _u2 = _sf; _u2 <= _uf; _u2++) {
for (var _Bf = _wf; _Bf <= _xf; _Bf++) {
if (_Wf((_u2 - _Sf) / _Uf) + _Wf((_Bf - _Tf) / _Vf) > 1) continue;
var _Cf = _u2 - _ye + _Df;
var _Ef = _Bf - _ze + _Ff;
if ((_Cf < 0) || (_Cf >= _Gf)) continue;
if ((_Ef < 0) || (_Ef >= _Hf)) continue;
var _lf = _Ze._Kf(_u2, _Bf);
if (_lf !== null) {
return !0
}
}
}
} else {
var _Xf = Math.sin(-_Ce * _zf / 180.0);
var _Yf = Math.cos(-_Ce * _zf / 180.0);
for (var _u2 = _sf; _u2 <= _uf; _u2++) {
for (var _Bf = _wf; _Bf <= _xf; _Bf++) {
if (_Wf((_u2 - _Sf) / _Uf) + _Wf((_Bf - _Tf) / _Vf) > 1) continue;
var _Cf = Math.floor((_Yf * (_u2 - _ye) + _Xf * (_Bf - _ze)) / _Ae + _Df);
var _Ef = Math.floor((_Yf * (_Bf - _ze) - _Xf * (_u2 - _ye)) / _Be + _Ff);
if ((_Cf < 0) || (_Cf >= _Gf)) continue;
if ((_Ef < 0) || (_Ef >= _Hf)) continue;
var _lf = _Ze._Kf(_u2, _Bf);
if (_lf !== null) {
return !0
}
}
}
}
return !1
};
var _Zf = null;;
function __f() {
this._0g = [];
this._1g = null;
this._1e = null;
this._2g = null;
if (_3g) {
this._4g = this._5g;
this._6g = this._7g
} else {
this._4g = this._8g;
this._6g = this._9g
}
};
__f.prototype._ag = function(_me, _bg, _cg, _dg) {
this._0g[_me] = {
_eg: [],
_fg: 0,
_gg: 32,
_hg: _ig[_dg],
_w2: 0,
_x2: 0,
_y2: _bg,
_z2: _cg
}
};
__f.prototype._jg = function(_kg, _lg, _bg, _cg) {
var width = _bg;
var height = _cg;
var _mg = this;
var _ng = function(_og) {
var _pg = _og;
_pg.width = width;
_pg.height = height;
var _qg = _rg(_sg + _og.name);
_pg._tg = _qg;
_ig[_qg].onload = function(e) {
_mg._ag(_pg.name, e.srcElement.width, e.srcElement.height, _qg)
};
_ig[_qg].onerror = function(e) {
debug("ImageError: " + e.srcElement.src)
};
_ig[_qg].URL = _og.name
};
this._2g = new _7e._ug(_lg, {
load: _ng
});
this._1g = new _7e._vg(new _7e._wg(this._2g));
this._1e = this._1g._xg(JSON.parse(_kg))
};
__f.prototype._yg = function(_zg, _se, _We, _w2, _x2, _Ag, _Bg, _Cg, _Dg, alpha) {
if (this._1e === null || this._1e === undefined) return;
_7e._Eg._Fg = !0;
var _Gg = new _Td(this);
_Gg._ce(_zg);
_Gg._de(_se);
_Gg._we(_We, _w2, _x2, _Ag, _Bg, _Cg);
this._Hg(_Gg._Xd, _Dg, alpha)
};
__f.prototype._Ig = function(_We, _w2, _x2, _Ag, _Bg, _Cg, _Dg, alpha) {
if (!_Zf || !_Zf._Jg()) {
this._yg(null, null, _We, _w2, _x2, _Ag, _Bg, _Cg, _Dg, alpha)
} else {
_7e._Eg._Fg = !0;
var _Kg = _Zf._Jg();
_Kg._we(_We, _w2, _x2, _Ag, _Bg, _Cg, _Zf);
this._Hg(_Kg._Xd, _Dg, alpha);
if (_Kg._Wd) {
this._Lg(_Kg._Yd)
}
}
};
__f.prototype._Hg = function(_Mg, _Ng, alpha) {
var _Og = (_Ng & 0xff) / 255.0,
_Pg = ((_Ng & 0xff00) >> 8) / 255.0,
_Qg = ((_Ng & 0xff0000) >> 16) / 255.0;
for (var _u2 = 0, _df = _Mg._Rg.length; _u2 < _df; _u2++) {
var _Sg = _Mg._Tg[_u2];
if (!_Sg._Ug) {
continue
}
var _uf = (_Sg._Ee._uf * _Sg._uf * _Og * 255);
var _Vg = (_Sg._Ee._Vg * _Sg._Vg * _Pg * 255);
var _xf = (_Sg._Ee._xf * _Sg._xf * _Qg * 255);
var _Wg = (_Sg._Ee._Wg * _Sg._Wg * alpha * 255);
var _Dg = (_Wg << 24) | (_uf << 0) | (_Vg << 8) | (_xf << 16);
switch (_Sg._Ug.type) {
case _7e._Xg._Yg:
this._4g(_Sg, _Dg, alpha);
break;
case _7e._Xg._Zg:
case _7e._Xg.__g:
this._6g(_Sg, _Dg, alpha);
break
}
}
};
__f.prototype._Lg = function(_0h) {
_1h(_0h._0f, _0h._3f, _0h._0f, _0h._4f);
_1h(_0h._0f, _0h._4f, _0h._2f, _0h._4f);
_1h(_0h._2f, _0h._4f, _0h._2f, _0h._3f);
_1h(_0h._2f, _0h._3f, _0h._0f, _0h._3f);
for (var _df = 0; _df < _0h._ef.length; _df++) {
var _ff = _0h._ef[_df];
var _k2 = _ff.length / 2;
for (var _gf = 0; _gf < _k2; _gf++) {
var _hf, _if, _jf, _kf;
_hf = _ff[(_gf * 2) + 0];
_if = _ff[(_gf * 2) + 1];
if (_gf == (_k2 - 1)) {
_jf = _ff[0];
_kf = _ff[1]
} else {
_jf = _ff[((_gf + 1) * 2) + 0];
_kf = _ff[((_gf + 1) * 2) + 1]
}
_1h(_hf, _if, _jf, _kf)
}
}
};
__f.prototype._8g = function(_Sg, _Dg, alpha) {
var _Yg = _Sg._Ug,
_2h = [];
_Yg._3h(_Sg._Ee._w2, _Sg._Ee._x2, _Sg._4h, _2h);
var _5h = [];
_5h[0] = {};
_5h[0]._w2 = _2h[2];
_5h[0]._x2 = _2h[3];
_5h[0]._6h = _Yg._7h[2];
_5h[0]._8h = _Yg._7h[3];
_5h[1] = {};
_5h[1]._w2 = _2h[4];
_5h[1]._x2 = _2h[5];
_5h[1]._6h = _Yg._7h[4];
_5h[1]._8h = _Yg._7h[5];
_5h[2] = {};
_5h[2]._w2 = _2h[6];
_5h[2]._x2 = _2h[7];
_5h[2]._6h = _Yg._7h[6];
_5h[2]._8h = _Yg._7h[7];
_5h[3] = {};
_5h[3]._w2 = _2h[0];
_5h[3]._x2 = _2h[1];
_5h[3]._6h = _Yg._7h[0];
_5h[3]._8h = _Yg._7h[1];
_9h.globalAlpha = alpha;
var _pg = _Yg._tg._ah;
var _qg = _ig[_pg._tg];
if (_Dg != _bh) {
if (!this._0g[_Yg._tg._ah.name]) {
var _ah = _Yg._tg._ah;
this._ag(_ah.name, _ah.width, _ah.height, _Yg._tg._ah._tg)
}
_qg = _ch(this._0g[_Yg._tg._ah.name], _Dg)
}
var _dh = this._0g[_pg.name];
this._eh(_9h, _qg, _5h[0]._w2, _5h[0]._x2, _5h[1]._w2, _5h[1]._x2, _5h[2]._w2, _5h[2]._x2, _5h[0]._6h * _dh._y2, _5h[0]._8h * _dh._z2,
_5h[1]._6h * _dh._y2, _5h[1]._8h * _dh._z2, _5h[2]._6h * _dh._y2, _5h[2]._8h * _dh._z2);
this._eh(_9h, _qg, _5h[2]._w2, _5h[2]._x2, _5h[3]._w2, _5h[3]._x2, _5h[0]._w2, _5h[0]._x2, _5h[2]._6h * _dh._y2, _5h[2]._8h * _dh._z2, _5h[3]._6h * _dh._y2, _5h[3]._8h * _dh._z2, _5h[0]._6h * _dh._y2, _5h[0]._8h * _dh._z2)
};
__f.prototype._9g = function(_Sg, _Dg, alpha) {
var _Zg = _Sg._Ug,
_2h = [];
_Zg._fh(_Sg._Ee._w2, _Sg._Ee._x2, _Sg, _2h);
var _pg = _Zg._tg._ah;
var _qg = _ig[_pg._tg];
if (_Dg != _bh) {
if (!this._0g[_Zg._tg._ah.name]) {
var _ah = _Zg._tg._ah;
this._ag(_ah.name,
_ah.width, _ah.height, _Zg._tg._ah._tg)
}
_qg = _ch(this._0g[_Zg._tg._ah.name], _Dg)
}
for (var _df = 0; _df < _Zg._gh.length / 3; _df++) {
var _hh = _Zg._gh[(_df * 3) + 0],
_ih = _Zg._gh[(_df * 3) + 1],
_jh = _Zg._gh[(_df * 3) + 2];
var _5h = [];
_5h[0] = {};
_5h[0]._w2 = _2h[(_hh * 2) + 0];
_5h[0]._x2 = _2h[(_hh * 2) + 1];
_5h[0]._6h = _Zg._7h[(_hh * 2) + 0];
_5h[0]._8h = _Zg._7h[(_hh * 2) + 1];
_5h[1] = {};
_5h[1]._w2 = _2h[(_ih * 2) + 0];
_5h[1]._x2 = _2h[(_ih * 2) + 1];
_5h[1]._6h = _Zg._7h[(_ih * 2) + 0];
_5h[1]._8h = _Zg._7h[(_ih * 2) + 1];
_5h[2] = {};
_5h[2]._w2 = _2h[(_jh * 2) + 0];
_5h[2]._x2 = _2h[(_jh * 2) + 1];
_5h[2]._6h = _Zg._7h[(_jh * 2) + 0];
_5h[2]._8h = _Zg._7h[(_jh * 2) + 1];
var _dh = this._0g[_pg.name];
this._eh(_9h, _qg, _5h[0]._w2, _5h[0]._x2, _5h[1]._w2, _5h[1]._x2, _5h[2]._w2, _5h[2]._x2, _5h[0]._6h * _dh._y2, _5h[0]._8h * _dh._z2, _5h[1]._6h * _dh._y2, _5h[1]._8h * _dh._z2, _5h[2]._6h * _dh._y2, _5h[2]._8h * _dh._z2)
}
};
__f.prototype._eh = function(_kh, _lh, _mh, _nh, _hf, _if, _jf, _kf, _oh, _ph, _qh, _rh, _sh, _th) {
_kh.save();
_kh.beginPath();
_kh.moveTo(_mh, _nh);
_kh.lineTo(_hf, _if);
_kh.lineTo(_jf, _kf);
_kh.closePath();
_kh.clip();
var _uh = _oh * (_th - _rh) - _qh * _th + _sh * _rh + (_qh - _sh) * _ph;
if (_uh == 0) {
return
}
var _vh = -(_ph * (_jf - _hf) - _rh * _jf + _th * _hf + (_rh - _th) * _mh) / _uh;
var _wh = (_rh * _kf + _ph * (_if - _kf) - _th * _if + (_th - _rh) * _nh) / _uh;
var _xh = (_oh * (_jf - _hf) - _qh * _jf + _sh * _hf + (_qh - _sh) * _mh) / _uh;
var _yh = -(_qh * _kf + _oh * (_if - _kf) - _sh * _if + (_sh - _qh) * _nh) / _uh;
var _zh = (_oh * (_th * _hf - _rh * _jf) + _ph * (_qh * _jf - _sh * _hf) + (_sh * _rh - _qh * _th) * _mh) / _uh;
var _Ah = (_oh * (_th * _if - _rh * _kf) + _ph * (_qh * _kf - _sh * _if) + (_sh * _rh - _qh * _th) * _nh) / _uh;
_kh.transform(_vh, _wh, _xh, _yh, _zh, _Ah);
_kh.drawImage(_lh, 0, 0);
_kh.restore()
};
__f.prototype._5g = function(_Sg,
_Dg, alpha) {
var _Yg = _Sg._Ug,
_2h = [];
_Yg._3h(_Sg._Ee._w2, _Sg._Ee._x2, _Sg._4h, _2h);
var _qg = _ig[_Yg._tg._ah._tg];
if (!_qg.complete) return;
if (!_qg._Bh) _Ch({
_hg: _qg
});
var _Dh = 6;
var _Eh = _3g._Fh(_Gh._Hh, _qg._Bh, _3g._Ih, _Dh);
var _Jh = _Eh._Kh() >> 2;
var index = _Jh * _Eh._Lh;
_Eh._Lh += _Dh;
var _Mh = _Eh._Nh;
var _Oh = _Eh._Ph;
var _Qh = _Eh._Rh;
var _Sh = index;
var _Th = _Sh + _Jh;
var _Uh = _Th + _Jh;
var _Vh = _Uh + _Jh;
var _Wh = _Vh + _Jh;
var _Xh = _Wh + _Jh;
_Mh[_Sh + 0] = _Mh[_Xh + 0] = _2h[2];
_Mh[_Sh + 1] = _Mh[_Xh + 1] = _2h[3];
_Mh[_Th + 0] = _2h[4];
_Mh[_Th + 1] = _2h[5];
_Mh[_Uh + 0] = _Mh[_Vh + 0] = _2h[6];
_Mh[_Uh + 1] = _Mh[_Vh + 1] = _2h[7];
_Mh[_Wh + 0] = _2h[0];
_Mh[_Wh + 1] = _2h[1];
_Oh[_Sh] = _Oh[_Th] = _Oh[_Uh] = _Oh[_Vh] = _Oh[_Wh] = _Oh[_Xh] = _Dg;
_Qh[_Sh + 0] = _Qh[_Xh + 0] = _Yg._7h[2];
_Qh[_Sh + 1] = _Qh[_Xh + 1] = _Yg._7h[3];
_Qh[_Th + 0] = _Yg._7h[4];
_Qh[_Th + 1] = _Yg._7h[5];
_Qh[_Uh + 0] = _Qh[_Vh + 0] = _Yg._7h[6];
_Qh[_Uh + 1] = _Qh[_Vh + 1] = _Yg._7h[7];
_Qh[_Wh + 0] = _Yg._7h[0];
_Qh[_Wh + 1] = _Yg._7h[1]
};
__f.prototype._7g = function(_Sg, _Dg, alpha) {
var _Zg = _Sg._Ug,
_2h = [];
_Zg._fh(_Sg._Ee._w2, _Sg._Ee._x2, _Sg, _2h);
var _qg = _ig[_Zg._tg._ah._tg];
if (!_qg.complete) return;
if (!_qg._Bh) _Ch({
_hg: _qg
});
var _Dh = _Zg._gh.length;
var _Eh = _3g._Fh(_Gh._Hh, _qg._Bh, _3g._Ih, _Dh);
var _Jh = _Eh._Kh() >> 2;
var index = _Jh * _Eh._Lh;
_Eh._Lh += _Dh;
var _Mh = _Eh._Nh;
var _Oh = _Eh._Ph;
var _Qh = _Eh._Rh;
var _Sh = index;
for (var _df = 0; _df < _Dh; _df++, _Sh += _Jh) {
var _hh = _Zg._gh[_df];
_Mh[_Sh + 0] = _2h[(_hh * 2) + 0];
_Mh[_Sh + 1] = _2h[(_hh * 2) + 1];
_Oh[_Sh + 0] = _Oh[_Sh + 1] = _Dg;
_Qh[_Sh + 0] = _Zg._7h[(_hh * 2) + 0];
_Qh[_Sh + 1] = _Zg._7h[(_hh * 2) + 1]
}
};
function _Yh(_Zh) {
__h("draw_primitive_begin()")
}
function _0i(_Zh, _1i) {
__h("draw_primitive_begin_texture()")
}
function _2i(_w2, _x2) {
__h("draw_vertex()")
}
function _3i(_w2, _x2, _Dg, alpha) {
__h("draw_vertex_color()")
}
var _4i = _3i;
function _5i(_w2, _x2, _6i, _7i) {
__h("draw_vertex_texture()")
}
function _8i(_w2, _x2, _6i, _7i, _Dg, alpha) {
__h("draw_vertex_texture_color()")
}
var _9i = _8i;
function _ai() {
__h("draw_primitive_end()")
}
function _bi(_Zh) {
__h("d3d_primitive_begin()")
}
function _ci(_Zh, _1i) {
__h("d3d_primitive_begin_texture()");
}
function _di(_w2, _x2, _ei) {
__h("d3d_vertex()")
}
function _fi(_w2, _x2, _ei, _Dg, alpha) {
__h("d3d_vertex_color()")
}
var _gi = _fi;
function _hi(_w2, _x2, _ei, _6i, _7i) {
__h("d3d_vertex_texture()")
}
function _ii(_w2, _x2, _ei, _6i, _7i, _Dg, alpha) {
__h("d3d_vertex_texture_color()")
}
var _ji = _ii;
function _ki(_w2, _x2, _ei, _li, _mi, _ni) {
__h("d3d_vertex_normal()")
}
function _oi(_w2, _x2, _ei, _li, _mi, _ni, _Dg, alpha) {
__h("d3d_vertex_normal_color()")
}
var _pi = _oi;
function _qi(_w2, _x2, _ei, _li, _mi, _ni, _6i, _7i) {
__h("d3d_vertex_normal_texture()")
}
function _ri(_w2, _x2, _ei, _li, _mi, _ni, _6i, _7i, _Dg, alpha) {
__h("d3d_vertex_normal_texture_color()")
}
var _si = _ri;
function _ti() {
__h("d3d_primitive_end()")
}
var _ui = null;
var _vi = 0,
_wi = -1,
_xi = null,
_yi = null;
var _zi = 1,
_Ai = 2,
_Bi = 3,
_Ci = 4,
_Di = 5,
_Ei = 6,
_Fi = 7;
function _Gi() {
_Yh = _Hi;
_0i = _Ii;
_2i = _Ji;
_3i = _Ki;
_4i = _Ki;
_5i = _Li;
_8i = _Mi;
_9i = _Mi;
_ai = _Ni;
_bi = _Oi;
_ci = _Pi;
_di = _Qi;
_fi = _Ri;
_gi = _Ri;
_hi = _Si;
_ii = _Ti;
_ji = _Ti;
_ki = _Ui;
_oi = _Vi;
_pi = _Vi;
_qi = _Wi;
_ri = _Xi;
_si = _Xi;
_ti = _Yi
}
function _Zi(__i) {
switch (__i) {
case _zi:
return _Gh._0j;
case _Ai:
return _Gh._1j;
case _Bi:
return _Gh._2j;
case _Ci:
return _Gh._Hh;
case _Di:
return _Gh._3j;
case _Ei:
return _Gh._4j;
case _Fi:
return _Gh._Hh
}
return -1
}
function _5j() {
_vi = 0;
_wi = -1;
_xi = null;
_yi = null
}
function _Hi(_6j) {
_Ii(_6j, -1)
}
function _Ii(_6j, _dg) {
_vi = _6j;
_wi = null;
if (typeof(_dg) == "object") {
_wi = _dg._7j;
} else if ((_dg != -1) && _ig[_dg]) {
_wi = _ig[_dg]
}
if (_wi && !_wi._Bh) {
_Ch({
_hg: _wi
})
}
_yi = new _8j(_9j, _3g._aj(_3g._Ih), !1)
}
function _Ji(_ye, _ze) {
var _Jh = _yi._Kh() >> 2;
var index = _yi._Lh * _Jh;
_yi._bj(1);
_yi._Nh[index + 0] = _ye;
_yi._Nh[index + 1] = _ze;
_yi._Rh[index + 0] = 0;
_yi._Rh[index + 1] = 0;
_yi._Ph[index] = ((_cj * 255.0) << 24) | (_dj & 0x00ffffff)
}
function _Ki(_ye, _ze, _ej, _fj) {
var _Jh = _yi._Kh() >> 2;
var index = _yi._Lh * _Jh;
_yi._bj(1);
_yi._Nh[index + 0] = _ye;
_yi._Nh[index + 1] = _ze;
_yi._Rh[index + 0] = 0;
_yi._Rh[index + 1] = 0;
_yi._Ph[index] = ((_fj * 255.0) << 24) | _gj(_ej);
}
function _Li(_ye, _ze, _hj, _ij) {
var _Jh = _yi._Kh() >> 2;
var index = _yi._Lh * _Jh;
_yi._bj(1);
_yi._Nh[index + 0] = _ye;
_yi._Nh[index + 1] = _ze;
_yi._Rh[index + 0] = _hj;
_yi._Rh[index + 1] = _ij;
_yi._Ph[index] = ((_cj * 255.0) << 24) | (_dj & 0x00ffffff)
}
function _Mi(_ye, _ze, _hj, _ij, _ej, _fj) {
var _Jh = _yi._Kh() >> 2;
var index = _yi._Lh * _Jh;
_yi._bj(1);
_yi._Nh[index + 0] = _ye;
_yi._Nh[index + 1] = _ze;
_yi._Rh[index + 0] = _hj;
_yi._Rh[index + 1] = _ij;
_yi._Ph[index] = ((_fj * 255.0) << 24) | _gj(_ej)
}
function _Ni() {
var _jj = _Zi(_vi);
if (_jj == -1) {
return
}
var _kj = _yi._lj.subarray(0, _yi._Lh * _yi._Kh());
var _mj = _wi ? _wi._Bh : null;
var _Eh = _3g._Fh(_jj, _mj, _3g._Ih, _yi._Lh);
_Eh._lj.set(_kj, _Eh._Lh * _Eh._Kh());
_Eh._Lh += _yi._Lh
}
function _Oi(_Zh) {
_ci(_Zh, -1)
}
function _Pi(_6j, _dg) {
_vi = _6j;
_wi = null;
if (_dg == null || _dg == undefined) {
_xi = null
} else if (typeof(_dg) == "object") {
_wi = _dg._7j;
_xi = _dg._nj
} else if ((_dg != -1) && _ig[_dg]) {
_wi = _ig[_dg]
}
if (_wi && !_wi._Bh) {
_Ch({
_hg: _wi
})
}
_yi = new _8j(_9j, _3g._aj(_3g._oj), !1)
}
function _pj(_hj, _ij) {
if (_xi) {
return ({
_6h: (_xi._w2 + (_hj * _xi._Q4)) / _wi._qj,
_8h: (_xi._x2 + (_ij * _xi._R4)) / _wi._rj
})
} else {
return ({
_6h: _hj,
_8h: _ij
})
}
};
function _Qi(_ye, _ze, _sj) {
var _Jh = _yi._Kh() >> 2;
var index = _yi._Lh * _Jh;
_yi._bj(1);
_yi._Nh[index + 0] = _ye;
_yi._Nh[index + 1] = _ze;
_yi._Nh[index + 2] = _sj;
_yi._tj[index + 0] = 0;
_yi._tj[index + 1] = 0;
_yi._tj[index + 2] = 0;
_yi._Rh[index + 0] = 0;
_yi._Rh[index + 1] = 0;
_yi._Ph[index] = ((_cj * 255.0) << 24) | (_dj & 0x00ffffff)
}
function _Ri(_ye, _ze, _sj, _uj, _fj) {
var _Jh = _yi._Kh() >> 2;
var index = _yi._Lh * _Jh;
_yi._bj(1);
_yi._Nh[index + 0] = _ye;
_yi._Nh[index + 1] = _ze;
_yi._Nh[index + 2] = _sj;
_yi._tj[index + 0] = 0;
_yi._tj[index + 1] = 0;
_yi._tj[index + 2] = 0;
_yi._Rh[index + 0] = 0;
_yi._Rh[index + 1] = 0;
_yi._Ph[index] = ((_fj * 255.0) << 24) | _gj(_uj)
}
function _Si(_ye, _ze, _sj, _vj, _wj) {
var _Jh = _yi._Kh() >> 2;
var index = _yi._Lh * _Jh;
_yi._bj(1);
_yi._Nh[index + 0] = _ye;
_yi._Nh[index + 1] = _ze;
_yi._Nh[index + 2] = _sj;
_yi._tj[index + 0] = 0;
_yi._tj[index + 1] = 0;
_yi._tj[index + 2] = 0;
var _xj = _pj(_vj,
_wj);
_yi._Rh[index + 0] = _xj._6h;
_yi._Rh[index + 1] = _xj._8h;
_yi._Ph[index] = ((_cj * 255.0) << 24) | (_dj & 0x00ffffff)
}
function _Ti(_ye, _ze, _sj, _vj, _wj, _uj, _fj) {
var _Jh = _yi._Kh() >> 2;
var index = _yi._Lh * _Jh;
_yi._bj(1);
_yi._Nh[index + 0] = _ye;
_yi._Nh[index + 1] = _ze;
_yi._Nh[index + 2] = _sj;
_yi._tj[index + 0] = 0;
_yi._tj[index + 1] = 0;
_yi._tj[index + 2] = 0;
var _xj = _pj(_vj, _wj);
_yi._Rh[index + 0] = _xj._6h;
_yi._Rh[index + 1] = _xj._8h;
_yi._Ph[index] = ((_fj * 255.0) << 24) | _gj(_uj)
}
function _Ui(_ye, _ze, _sj, _yj, _zj, _Aj) {
var _Jh = _yi._Kh() >> 2;
var index = _yi._Lh * _Jh;
_yi._bj(1);
_yi._Nh[index + 0] = _ye;
_yi._Nh[index + 1] = _ze;
_yi._Nh[index + 2] = _sj;
_yi._tj[index + 0] = _yj;
_yi._tj[index + 1] = _zj;
_yi._tj[index + 2] = _Aj;
_yi._Rh[index + 0] = 0;
_yi._Rh[index + 1] = 0;
_yi._Ph[index] = ((_cj * 255.0) << 24) | (_dj & 0x00ffffff)
}
function _Vi(_ye, _ze, _sj, _yj, _zj, _Aj, _uj, _fj) {
var _Jh = _yi._Kh() >> 2;
var index = _yi._Lh * _Jh;
_yi._bj(1);
_yi._Nh[index + 0] = _ye;
_yi._Nh[index + 1] = _ze;
_yi._Nh[index + 2] = _sj;
_yi._tj[index + 0] = _yj;
_yi._tj[index + 1] = _zj;
_yi._tj[index + 2] = _Aj;
_yi._Rh[index + 0] = 0;
_yi._Rh[index + 1] = 0;
_yi._Ph[index] = ((_fj * 255.0) << 24) | _gj(_uj)
}
function _Wi(_ye, _ze, _sj, _yj, _zj, _Aj, _vj, _wj) {
var _Jh = _yi._Kh() >> 2;
var index = _yi._Lh * _Jh;
_yi._bj(1);
_yi._Nh[index + 0] = _ye;
_yi._Nh[index + 1] = _ze;
_yi._Nh[index + 2] = _sj;
_yi._tj[index + 0] = _yj;
_yi._tj[index + 1] = _zj;
_yi._tj[index + 2] = _Aj;
var _xj = _pj(_vj, _wj);
_yi._Rh[index + 0] = _xj._6h;
_yi._Rh[index + 1] = _xj._8h;
_yi._Ph[index] = ((_cj * 255.0) << 24) | (_dj & 0x00ffffff)
}
function _Xi(_ye, _ze, _sj, _yj, _zj, _Aj, _vj, _wj, _uj, _fj) {
var _Jh = _yi._Kh() >> 2;
var index = _yi._Lh * _Jh;
_yi._bj(1);
_yi._Nh[index + 0] = _ye;
_yi._Nh[index + 1] = _ze;
_yi._Nh[index + 2] = _sj;
_yi._tj[index + 0] = _yj;
_yi._tj[index + 1] = _zj;
_yi._tj[index + 2] = _Aj;
var _xj = _pj(_vj, _wj);
_yi._Rh[index + 0] = _xj._6h;
_yi._Rh[index + 1] = _xj._8h;
_yi._Ph[index] = ((_fj * 255.0) << 24) | _gj(_uj)
}
function _Yi() {
var _jj = _Zi(_vi);
if (_jj == -1) {
return
}
var _kj = _yi._lj.subarray(0, _yi._Lh * _yi._Kh());
var _mj = _wi ? _wi._Bh : null;
var _Eh = _3g._Fh(_jj, _mj, _3g._oj, _yi._Lh);
_Eh._lj.set(_kj, _Eh._Lh * _Eh._Kh());
_Eh._Lh += _yi._Lh
}
function _Bj(_Cj) {
var _Dj = null,
_Ej = null,
_Fj = null,
_Gj = !1,
_Hj = null,
_Ij;
var _Jj = 0,
_Kj = 0,
_Lj = 0,
_Mj = 0;
(function() {
_Dj = new ArrayBuffer(_Cj);
_Ej = new DataView(_Dj)
})();
function _Nj(_Oj, _Pj) {
var _Qj = !1;
var _Rj = _Hj._Sj;
for (var _u2 = 0; _u2 < _Rj.length; _u2++) {
var _Tj = _Rj[_u2];
if (((_Oj == -1) || (_Tj._Uj == _Oj)) && (_Tj.type == _Pj)) {
_Qj = !0;
if ((_Tj._Vj & _Jj) === 0) {
var _Wj = (_Mj + _Tj._A2);
_Jj |= _Tj._Vj;
if (_Hj._Xj === _Jj) {
_Jj = 0;
_Kj++;
_Mj += _Hj._Yj;
if ((_Mj + _Hj._Yj) >= _Dj.byteLength) {
this._Zj(_Dj.byteLength * 2)
}
}
return _Wj
}
}
}
if (_Qj) {
debug("VERTEX BUILDER: element already written, must write the whole vertex first\n\n", !0);
return -1
}
debug("VERTEX BUILDER: Vertex format does not contain selected type.\n\n", !0);
return -1
};
this._Zj = function(_Cj) {
var __j = new ArrayBuffer(_Cj);
var _0k = new Int8Array(_Dj);
var _1k = new Int8Array(__j);
_1k.set(_0k);
_Dj = __j;
_Ej = new DataView(_Dj)
};
this._2k = function(_3k) {
_Jj = 0;
_Kj = 0;
_Lj = 0;
_Mj = 0;
_Ij = _3k;
_Hj = _3g._aj(_3k);
if (_Hj._Yj > _Dj.byteLength) {
this._Zj(_Hj._Yj * 36)
}
};
this._4k = function() {};
this._5k = function(_w2, _x2) {
var _Wj = _Nj(_Gh._6k, _Gh._7k);
if (_Wj >= 0) {
_Ej.setFloat32(_Wj, _w2, !0);
_Ej.setFloat32(_Wj + 4, _x2, !0)
}
};
this._8k = function(_w2, _x2, _ei) {
var _Wj = _Nj(_Gh._6k, _Gh._9k);
if (_Wj >= 0) {
_Ej.setFloat32(_Wj,
_w2, !0);
_Ej.setFloat32(_Wj + 4, _x2, !0);
_Ej.setFloat32(_Wj + 8, _ei, !0)
}
};
this._ak = function(_uj, _fj) {
var _Wj = _Nj(_Gh._bk, _Gh._ck);
if (_Wj >= 0) {
var _dk = ((_fj * 255.0) << 24) | _gj(_uj);
_Ej.setUint32(_Wj, _dk, !0)
}
};
this._ek = function(_fk) {
var _Wj = _Nj(_Gh._bk, _Gh._ck);
if (_Wj >= 0) {
var _Dg = ((_fk & 0xff) << 24) | ((_fk & 0xff00) << 8) | ((_fk & 0xff0000) >> 8) | ((_fk & 0xff000000) >> 24);
_Ej.setUint32(_Wj, _Dg, !0)
}
};
this._gk = function(_hk) {
var _Wj = _Nj(_Gh._bk, _Gh._ck);
if (_Wj >= 0) {
var _Dg = (_hk & 0xff000000) | ((_hk & 0xff) << 16) | (_hk & 0xff00) | ((_hk & 0xff0000) >> 16);
_Ej.setUint32(_Wj, _Dg, !0)
}
};
this._ik = function(_6h, _8h) {
var _Wj = _Nj(_Gh._jk, _Gh._7k);
if (_Wj >= 0) {
_Ej.setFloat32(_Wj, _6h, !0);
_Ej.setFloat32(_Wj + 4, _8h, !0)
}
};
this._kk = function(_w2, _x2, _ei) {
var _Wj = _Nj(_Gh._lk, _Gh._9k);
if (_Wj >= 0) {
_Ej.setFloat32(_Wj, _w2, !0);
_Ej.setFloat32(_Wj + 4, _x2, !0);
_Ej.setFloat32(_Wj + 8, _ei, !0)
}
};
this._mk = function(_w2) {
var _Wj = _Nj(-1, _Gh._nk);
if (_Wj >= 0) {
_Ej.setFloat32(_Wj, _w2, !0)
}
};
this._ok = function(_w2, _x2) {
var _Wj = _Nj(-1, _Gh._7k);
if (_Wj >= 0) {
_Ej.setFloat32(_Wj, _w2, !0);
_Ej.setFloat32(_Wj + 4,
_x2, !0)
}
};
this._pk = function(_w2, _x2, _ei) {
var _Wj = _Nj(-1, _Gh._9k);
if (_Wj >= 0) {
_Ej.setFloat32(_Wj, _w2, !0);
_Ej.setFloat32(_Wj + 4, _x2, !0);
_Ej.setFloat32(_Wj + 8, _ei, !0)
}
};
this._qk = function(_w2, _x2, _ei, _y2) {
var _Wj = _Nj(-1, _Gh._rk);
if (_Wj >= 0) {
_Ej.setFloat32(_Wj, _w2, !0);
_Ej.setFloat32(_Wj + 4, _x2, !0);
_Ej.setFloat32(_Wj + 8, _ei, !0);
_Ej.setFloat32(_Wj + 12, _y2, !0)
}
};
this._sk = function(_w2, _x2, _ei, _y2) {
var _Wj = _Nj(-1, _Gh._tk);
if (_Wj >= 0) {
_Ej.setUint8(_Wj, _w2, !0);
_Ej.setUint8(_Wj + 1, _x2, !0);
_Ej.setUint8(_Wj + 2, _ei, !0);
_Ej.setUint8(_Wj + 3,
_y2, !0)
}
};
this._uk = function() {
var _vk = new _8j(_Kj, _Hj, !1);
var _wk = _Kj * _Hj._Yj;
var _xk = new Int8Array(_Dj, 0, _wk);
_vk._lj.set(_xk);
_vk._Lh += _Kj;
_vk._uk();
_Fj = _vk;
_Gj = !0;
_Dj = null;
_Ej = null
};
this._yk = function(_zk, _Ak) {
if (_Gj) {
_3g._Bk(_zk, _Ak._7j._Bh, _Fj, 0)
} else {
var _Eh;
if (_Ak == -1) {
_Eh = _3g._Fh(_zk, null, _Ij, _Kj)
} else {
_Eh = _3g._Fh(_zk, _Ak._7j._Bh, _Ij, _Kj)
}
var _Ck = _Eh._Lh * _Hj._Yj;
var _xk = new Int8Array(_Dj, 0, _Kj * _Hj._Yj);
_Eh._lj.set(_xk, _Ck);
_Eh._Lh += _Kj
}
}
}
var _Dk = null;
function _Ek(_Fk) {
var _Gk = 0,
_Hk = 0.5;
var _Ik = _Fk;
var _Jk = [];
var _Kk = [];
var _Lk = [];
var _Mk = _Gk;
var _Nk = _Hk;
Object.defineProperties(this, {
_Ok: {
get: function() {
return _Mk
},
set: function(_Pk) {
_Mk = _Pk
}
},
_Qk: {
get: function() {
return _Nk
},
set: function(_Pk) {
_Nk = _Pk
}
}
});
this._Rk = function() {
_Kk = _Jk.slice();
_Lk = _Ik.axes.slice();
var _Sk = _Ik.buttons;
if (_Sk) {
for (var _xf in _Sk) {
if (!_Sk.hasOwnProperty(_xf)) continue;
if (typeof(_Sk[_xf]) === "object") {
_Jk[_xf] = _Sk[_xf].value
} else {
_Jk[_xf] = _Sk[_xf]
}
}
}
};
this._Tk = function() {
if (_Ik) {
return _Ik.id || ""
}
return ""
};
this._Uk = function() {
if (_Jk) {
return _Jk.length
}
return 0
};
this._Vk = function(_Wk) {
var _Xk = _Jk[_Wk];
var _Yk = _Kk[_Wk];
if ((_Xk !== undefined) && (_Yk !== undefined)) {
return ((_Xk >= _Nk) && (_Yk < _Nk))
}
return !1
};
this._Zk = function(_Wk) {
var _Xk = _Jk[_Wk];
var _Yk = _Kk[_Wk];
if ((_Xk !== undefined) && (_Yk !== undefined)) {
return ((_Xk < _Nk) && (_Yk >= _Nk))
}
return !1
};
this.__k = function(_Wk) {
var _Xk;
if (typeof(_Jk[_Wk]) === "object") {
_Xk = _Jk[_Wk].value
} else {
_Xk = _Jk[_Wk]
} if (_Xk !== undefined) {
return (_Xk >= _Nk)
}
return !1
};
this._0l = function(_Wk) {
var _Xk;
if (typeof(_Jk[_Wk]) === "object") {
_Xk = _Jk[_Wk].value;
} else {
_Xk = _Jk[_Wk]
}
return _Xk || 0.0
};
this._1l = function() {
if (_Lk) {
return _Lk.length
}
return 0
};
this._2l = function(_3l, _4l) {
var _5l = _Lk[_3l] || 0;
if (_Mk > 0.0) {
var _6l = Math.abs(_5l);
if (_6l < _Mk) {
_5l = 0.0
} else {
var _e7 = (_5l >= 0) ? 1.0 : -1.0;
_5l = ((_6l - _Mk) / (_4l - _Mk)) * _e7
}
}
return _5l
}
}
function _7l() {
var _8l = 1.0,
_9l = 1.0;
var _al = 0,
_bl = 1,
_cl = 2;
var _dl = 0x8000,
_el = 0x8001,
_fl = 0x8002,
_gl = 0x8003,
_hl = 0x8004,
_il = 0x8005,
_jl = 0x8006,
_kl = 0x8007,
_ll = 0x8008,
_ml = 0x8009,
_nl = 0x800A,
_ol = 0x800B,
_pl = 0x800C,
_ql = 0x800D,
_rl = 0x800E,
_sl = 0x800F,
_tl = 0x8010,
_ul = 0x8011,
_vl = 0x8012,
_wl = 0x8013,
_xl = 0x8014;
var _yl = 0,
_zl = 1,
_Al = 2,
_Bl = 3,
_Cl = 4,
_Dl = 5,
_El = 6,
_Fl = 7,
_Gl = 8,
_Hl = 9,
_Il = 10,
_Jl = 11,
_Kl = 12,
_Ll = 13,
_Ml = 14,
_Nl = 15;
var _Ol = 0,
_Pl = 1,
_Ql = 2,
_Rl = 3;
function _Sl() {
return !!navigator["getGamepads"] || !! navigator["webkitGetGamepads"] || !! navigator["webkitGamepads"]
}
var _Tl = _Sl() ? _bl : _al;
var _Ul = [];
function _Vl() {
if (navigator["getGamepads"]) {
return navigator["getGamepads"]()
}
if (navigator["webkitGetGamepads"]) {
return navigator["webkitGetGamepads"]()
}
if (navigator["webkitGamepads"]) {
return navigator["webkitGamepads"]()
}
return null
}
function _Wl() {
var _u2 = 0;
for (_u2 = 0; _u2 < _Ul.length; _u2++) {
_Ul[_u2]._Rk()
}
}
function _Xl() {
var _Yl = 0;
var gamepads = _Vl();
if (gamepads !== null) {
for (_Yl = 0; _Yl < gamepads.length; ++_Yl) {
var _Zl = gamepads[_Yl];
if (!_Zl) {
if (_Ul[_Yl]) {
_Ul.splice(_Yl, 1)
}
} else {
if (!_Ul[_Yl]) {
_Ul[_Yl] = new _Ek(_Zl)
}
}
}
}
}
function __l(_Wk) {
if (_Wk < _dl) {
return _Wk
}
switch (_Wk) {
case _el:
return _yl;
case _fl:
return _zl;
case _gl:
return _Al;
case _hl:
return _Bl;
case _il:
return _Cl;
case _jl:
return _Dl;
case _kl:
return _El;
case _ll:
return _Fl;
case _ml:
return _Gl;
case _nl:
return _Hl;
case _ol:
return _Il;
case _pl:
return _Jl;
case _ql:
return _Kl;
case _rl:
return _Ll;
case _sl:
return _Ml;
case _tl:
return _Nl
}
return 0
}
function _0m(_3l) {
if (_3l < _dl) {
return _3l
}
switch (_3l) {
case _ul:
return _Ol;
case _vl:
return _Pl;
case _wl:
return _Ql;
case _xl:
return _Rl
}
return 0
}
function _7l() {}
this._1m = function() {
return _Ul.length
};
this._2m = function(_3m) {
var _4m = _Ul[_3m];
if (_4m) {
return _4m._Tk()
}
return ""
};
this._5m = function() {
return (_Tl !== _al)
};
this._Qk = function(_3m) {
var _4m = _Ul[_3m];
if (_4m) {
return _4m._Qk
}
return 0.0
};
this._6m = function(_3m, _7m) {
var _4m = _Ul[_3m];
if (_4m) {
if ((_7m >= 0.0) && (_7m <= _8l)) {
_4m._Qk = _7m
}
}
};
this._Ok = function(_3m) {
var _4m = _Ul[_3m];
if (_4m) {
return _4m._Ok
}
return 0.0
};
this._8m = function(_3m, _9m) {
var _4m = _Ul[_3m];
if (_4m) {
if ((_9m >= 0.0) && (_9m <= _9l)) {
_4m._Ok = _9m
}
}
};
this._am = function() {
_Ul = []
};
this._bm = function() {
switch (_Tl) {
case _bl:
_Xl();
_Wl();
break;
case _cl:
_Wl();
break;
case _al:
default:
return
}
};
this._cm = function(_3m) {
if (_Ul[_3m] !== null && _Ul[_3m] !== undefined) {
return !0
}
return !1;
};
this._Uk = function(_3m) {
var _4m = _Ul[_3m];
if (_4m) {
return _4m._Uk()
}
return 0
};
this._1l = function(_3m) {
var _4m = _Ul[_3m];
if (_4m) {
return _4m._1l()
}
return 0
};
this.__k = function(_3m, _Wk) {
var _4m = _Ul[_3m];
if (_4m) {
return _4m.__k(__l(_Wk), _4m._Qk)
}
return !1
};
this._Vk = function(_3m, _Wk) {
var _4m = _Ul[_3m];
if (_4m) {
return _4m._Vk(__l(_Wk), _4m._Qk)
}
return !1
};
this._Zk = function(_3m, _Wk) {
var _4m = _Ul[_3m];
if (_4m) {
return _4m._Zk(__l(_Wk), _4m._Qk)
}
return !1
};
this._0l = function(_3m, _Wk) {
var _4m = _Ul[_3m];
if (_4m) {
return _4m._0l(__l(_Wk));
}
return 0
};
this._2l = function(_3m,
_3l) {
var _4m = _Ul[_3m];
if (_4m) {
return _4m._2l(_0m(_3l), _9l)
}
return 0
}
};
var _dm = [];
var _em = "None";
var _fm = 0;
var _gm = 0;
function _hm() {
this._w2 = 0;
this._x2 = 0;
this.__k = 0;
this._Vk = 0;
this._Zk = 0;
this._im = 0
};
_hm.prototype._am = function() {
this.__k = 0;
this._Vk = 0;
this._Zk = 0;
this._im = 0
};
_hm.prototype._jm = function(_ye, _ze) {
if (_ke) {
var _km;
if (!_ke._lm) {
_km = _mm
} else {
_km = _ke._nm
}
for (_8h = 0; _8h < _km.length; _8h++) {
_om = _km[_8h];
if (_om._F2) {
_pm(canvas, _qm);
if (((_ye - _qm.left) >= _om._rm) && ((_ye - _qm.left) < _om._sm) && ((_ze - _qm.top) >= _om._tm) && ((_ze - _qm.top) < _om._um)) {
this._w2 = _om._vm(_ye);
this._x2 = _om._wm(_ze);
return
}
}
}
}
this._w2 = _ye;
this._x2 = _ze
};
function log(_xm) {
setTimeout(function() {
throw new _ym(_xm)
}, 0)
}
function _zm(_Am) {
for (var _u2 = 0; _u2 < _dm.length; _u2++) {
if (_dm[_u2] === _Am) {
return _u2
}
}
return -1
}
function _Bm(_Am) {
var _Cm = -1;
for (var _u2 = 0; _u2 < _dm.length; _u2++) {
if ((_dm[_u2] === _Am) || (_dm[_u2] === -1)) {
_Cm = _u2;
break
}
}
if (_Cm == -1) {
_Cm = _dm.length
}
_dm[_Cm] = _Am;
_Dm[_Cm] = new _hm();
return _Cm
}
var _Em = !1;
function _Fm(event) {
if (!_Em && (_Gm == _Hm)) {
_Im();
_Em = !0
}
for (var _Jm = 0; _Jm < event.changedTouches.length; _Jm++) {
var _Km = event.changedTouches[_Jm];
var type = "";
var _Cm = -1;
_em = event.type;
switch (event.type) {
case "touchstart":
_Cm = _Bm(_Km["identifier"]);
break;
case "touchend":
case "touchcancel":
_Cm = _zm(_Km["identifier"]);
_dm[_Cm] = -1;
break;
case "touchmove":
_Cm = _zm(_Km["identifier"]);
break;
default:
return
}
var _Lm;
var _Mm;
if (_Nm) {
var _Om = {
_w2: 0,
_x2: 0
};
_Nm(_Km, _Om);
_Lm = _Om._w2;
_Mm = _Om._x2
} else {
_Lm = _Km.pageX;
_Mm = _Km.pageY
} if (_Cm == 0) {
if (_Pm != null) {
_Qm = _Lm;
_Rm = _Mm
}
switch (event.type) {
case "touchstart":
_Sm = 1;
break;
case "touchmove":
_Sm = 1;
break;
case "touchcancel":
case "touchend":
_Sm = 0;
break
}
}
_Dm[_Cm]._jm(_Lm, _Mm);
_Tm[_Cm]._w2 = _Lm;
_Tm[_Cm]._x2 = _Mm;
switch (event.type) {
case "touchstart":
_Dm[_Cm].__k = 1;
_Tm[_Cm]._Um = _Vm | _Wm | _Xm;
break;
case "touchcancel":
case "touchend":
_Dm[_Cm].__k = 0;
_Tm[_Cm]._Um = 0;
break;
case "touchmove":
default:
break
}
event.preventDefault()
}
}
function _Ym() {
canvas.ontouchstart = _Fm;
canvas.ontouchmove = _Fm;
canvas.ontouchend = _Fm;
canvas.ontouchcancel = _Fm
}
var _Zm, __m, _0n, _1n, _2n, _3n, _4n;
function _5n(_6n, _7n) {
this._8n = [];
this._qj = _6n;
this._rj = _7n;
var _wf = _6n * _7n;
for (var _u2 = 0; _u2 < _wf; _u2++) {
this._8n[_u2] = 0
}
}
_5n.prototype._9n = function(_an) {
this._qj = _an._qj;
this._rj = _an._rj;
this._8n = _an._8n.slice()
};
var _bn = _cn;
function _cn(_dn, _ye, _ze, _en) {
var _fn = _gn._hn(_dn);
if (!_fn) {
_ym("Error: invalid ds_grid ID (ds_grid_set)");
return
}
if (_ye < 0 || _ye >= _fn._qj || _ze < 0 || _ze >= _fn._rj) {
_ym("Error: grid out of bounds(set) - GridID: " + _dn + " size[" + _fn._qj + "," + _fn._rj + "] at (" + _ye + "," + _ze + ")");
return
}
_fn._8n[_ye + (_ze * _fn._qj)] = _en
}
function _in(_dn, _ye, _ze, _en) {
var _fn = _gn._hn(_dn);
if ((_ye < 0) || (_ye >= _fn._qj) || (_ze < 0) || (_ze >= _fn._rj)) {
return
}
_fn._8n[_ye + (_ze * _fn._qj)] = _en
}
var _jn = _kn;
function _kn(_dn, _ye, _ze, _en) {
var _fn = _gn._hn(_dn);
if (!_fn) {
_ym("Error: invalid ds_grid ID (ds_grid_set)");
return _en
}
if (_ye < 0 || _ye >= _fn._qj || _ze < 0 || _ze >= _fn._rj) {
_ym("Error: grid out of bounds(set) - GridID: " + _dn + " size[" + _fn._qj + "," + _fn._rj + "] at (" + _ye + "," + _ze + ")");
return _en
}
_fn._8n[_ye + (_ze * _fn._qj)] = _en;
return _en
}
function _ln(_dn, _ye, _ze, _en) {
var _fn = _gn._hn(_dn);
if ((_ye < 0) || (_ye >= _fn._qj) || (_ze < 0) || (_ze >= _fn._rj)) {
return _en
}
_fn._8n[_ye + (_ze * _fn._qj)] = _en;
return _en
}
var _mn = _nn;
function _nn(_dn, _ye, _ze, _en) {
var _fn = _gn._hn(_dn);
if (!_fn) {
_ym("Error: invalid ds_grid ID (ds_grid_set)");
return _en
}
if (_ye < 0 || _ye >= _fn._qj || _ze < 0 || _ze >= _fn._rj) {
_ym("Error: grid out of bounds(set) - GridID: " + _dn + " size[" + _fn._qj + "," + _fn._rj + "] at (" + _ye + "," + _ze + ")");
return _en
}
var _on = _fn._8n[_ye + (_ze * _fn._qj)];
_fn._8n[_ye + (_ze * _fn._qj)] = _en;
return _on
}
function _pn(_dn, _ye, _ze, _en) {
var _fn = _gn._hn(_dn);
if ((_ye < 0) || (_ye >= _fn._qj) || (_ze < 0) || (_ze >= _fn._rj)) {
return _en
}
var _on = _fn._8n[_ye + (_ze * _fn._qj)];
_fn._8n[_ye + (_ze * _fn._qj)] = _en;
return _on
}
var _qn = _rn;
function _rn(_dn, _ye, _ze) {
var _fn = _gn._hn(_dn),
_w2 = _sn(_ye),
_x2 = _sn(_ze);
if (!_fn) {
_ym("Error: invalid ds_grid ID (ds_grid_get)");
return undefined
}
if (_w2 < 0 || _w2 >= _fn._qj || _x2 < 0 || _x2 >= _fn._rj) {
_ym("Error: grid out of bounds(get) - GridID: " + _dn + " size[" + _fn._qj + "," + _fn._rj + "] at (" + _w2 + "," + _x2 + ")");
return undefined
}
return _fn._8n[_w2 + (_x2 * _fn._qj)]
}
function _tn(_dn, _ye, _ze) {
var _fn = _gn._hn(_dn),
_w2 = _sn(_ye),
_x2 = _sn(_ze);
if ((_w2 < 0) || (_w2 >= _fn._qj) || (_x2 < 0) || (_x2 >= _fn._rj)) {
return undefined
}
return _fn._8n[_w2 + (_x2 * _fn._qj)]
}
function _un() {
var _sf = new _vn();
_sf._wn = !0;
return _xn._yn(_sf)
}
function _zn(_dn) {
var _An = _xn._hn(_dn);
if (_An) return _An.length;
_ym("Error: invalid ds_list ID (ds_list_size)");
return 0
}
function _Bn() {
var _Cn = _Bn.arguments;
var _Dn = _Bn.arguments.length;
var _An = _xn._hn(_Cn[0]);
if (!_An) {
_ym("Error: invalid ds_list ID (ds_list_add)");
return;
}
for (var _u2 = 1; _u2 < _Dn; _u2++) {
_An._yn(_Cn[_u2])
}
return
}
function _En(_dn,
_Fn) {
var _8h, _Gn = _sn(_Fn),
_An = _xn._hn(_sn(_dn));
if (_An) {
if (_Gn >= 0 && _Gn < _An._Hn.length) {
_8h = _An._Hn[_Gn];
if (typeof(_8h) == "object") {
if (_8h instanceof Array) {
return _8h
} else {
return _8h.Object
}
}
if (_8h != undefined) return _8h
}
_ym("Error: invalid ds_list position (ds_list_find_value)");
return 0
}
_ym("Error: invalid ds_list ID (ds_list_find_value)");
return -1
}
var _In = 1,
_Jn = 2;
function _Kn(_Pj, _Ln) {
this._Mn = _Pj;
this.Object = _Ln
}
function _86() {
var _Nn = {};
var id = _On._yn(_Nn);
return id
}
function _Pn(_dn) {
_On._Qn(_dn)
}
function _Rn(_dn) {
var _Nn = _On._hn(_dn);
if (_Nn) {
var _Sn = {};
_On._Tn(_dn, _Sn)
}
}
function _Un(_dn, _Vn) {
var _Nn = _On._hn(_dn);
if (_Nn) {
if (_Nn[_Vn] !== undefined) {
return !0
}
}
return !1
}
function _96(_dn, _Vn, _en) {
var _Nn = _On._hn(_dn);
if (_Nn) {
if (_Nn[_Vn] !== undefined) {
_ym("Error: KEY(" + _Vn + ") already present in ds_map[" + _dn + "], you can not add a key twice.")
}
_Nn[_Vn] = _en
}
}
function _o6(_dn, _Vn) {
var _Nn = _On._hn(_dn);
if (_Nn) {
if (_Nn[_Vn] !== undefined) {
if ((typeof(_Nn[_Vn]) === "string") || (typeof(_Nn[_Vn]) === "number") || (_Nn[_Vn] instanceof Array)) {
return _Nn[_Vn]
}
var _Wn = _Nn[_Vn];
return _Wn.Object
}
}
_ym("Error: Key (" + _Vn + ") not found in ds_map[" + _dn + "]");
return 0
}
function _Xn(_dn, _Vn) {
var _Yn = !1;
var _Nn = _On._hn(_dn);
for (var _Zn in _Nn) {
if (_Nn.hasOwnProperty(_Zn)) {
if (_Yn) {
return _Zn
}
if (_Zn == _Vn) {
_Yn = !0
}
}
}
return -1
}
function __n(_dn) {
var _Nn = _On._hn(_dn);
for (var _Zn in _Nn) {
if (_Nn.hasOwnProperty(_Zn)) {
return _Zn
}
}
return -1
}
var NaN = 0x7ff0000000000001;
function _0o(_1o, _2o) {
var _e7 = (_1o >> 31) * 2 + 1;
var _3o = (_1o >>> 20) & 0x7FF;
_1o &= 0xFFFFF;
if (_3o === 0x7FF) return (_1o + _2o) ? NaN : _e7 / 0;
_3o ? (_3o -= 1023,
_1o |= 0x100000) : _3o = -1022;
var _4o = _2o + (_1o * 4294967296.0);
return _e7 * _4o * Math.pow(2, _3o - 52)
}
var _5o = 0;
var _6o = null;
function _7o() {
var _k2 = _6o.length;
var _fg = 64 - 8;
var _2o = 0;
var _1o = 0;
while (_5o < _k2) {
var _Wg;
var _v2 = _6o[_5o++];
if (_v2 == ',' || _v2 == ':') {
_5o--;
break
}
if (_v2 >= 'A') {
_Wg = ((_v2.charCodeAt() - 65) + 10) << 4
} else {
_Wg = ((_v2.charCodeAt() - 48) << 4);
}
_v2 = _6o[_5o++];
if (_v2 >= 'A') {
_Wg |= (~~(_v2.charCodeAt() - 65)) + 10
} else {
_Wg |= ~~(_v2.charCodeAt() - 48)
} if (_fg > 32) {
_1o |= _Wg << (_fg - 32)
} else {
_2o |= _Wg << (_fg - 32)
}
_fg -= 8
}
return _0o(_1o,
_2o)
}
function _8o() {
var _k2 = _6o.length;
var _9o = "";
while (_5o < _k2) {
var _Wg;
var _v2 = _6o[_5o++];
if (_v2 == ',' || _v2 == ':') {
_5o--;
break
}
if (_v2 >= 'A') {
_Wg = ((_v2.charCodeAt() - 65) + 10) << 4
} else {
_Wg = ((_v2.charCodeAt() - 48) << 4)
}
_v2 = _6o[_5o++];
if (_v2 >= 'A') {
_Wg |= (_v2.charCodeAt() - 65) + 10
} else {
_Wg |= (_v2.charCodeAt() - 48)
}
_9o += String.fromCharCode(_Wg)
}
return _9o
}
var _ao = !1;
function _bo() {
var id = 0xF35065da3bb79cac7;
return id.toString()
}
function _co() {
var _Cn = _co.arguments;
var _Dn = _co.arguments.length;
var _do = _eo._hn(_Cn[0]);
if (!_do) {
_ym("Error: invalid ds_queue ID (ds_queue_enqueue)");
return
}
for (var _u2 = 1; _u2 < _Dn; _u2++) {
_do[_do.length] = _Cn[_u2]
}
return
}
function _fo(_dn, _en) {
var _Cn = _fo.arguments;
var _Dn = _fo.arguments.length;
var _go = _ho._hn(_Cn[0]);
if (!_go) {
_ym("Error: invalid ds_stack ID (ds_stack_push)");
return
}
for (var _u2 = 1; _u2 < _Dn; _u2++) {
_go.push(_Cn[_u2])
}
}
var _io = !1;
var _jo = 'Trying to stop non-existing sound.',
_ko = 'Trying to draw a non-existing sprite.',
_lo = 'Trying to draw a non-existing background.',
_mo = 'Cannot compare arguments.',
_no = 'Trying to replace non-existing resource.',
_oo = 'File does not exist.',
_po = 'The particle emitter must first be created.';
var _qo = -1,
_ro = [],
_so = [];
function _Ib(_to) {
_T6(_to)
}
function _uo(_uj) {
_J8(_uj)
}
var _vo = _uo;
function _wo(_uj) {
_J8(_uj)
}
var _xo = _wo;
function _yo(_Pj, _zo, _Ao, _Bo, _Co, _Do) {
var type = _sn(_Pj);
var _Eo = _sn(_zo);
var _Fo = _sn(_Ao);
var _Go = _sn(_Bo);
if (_qo < 0) {
_qo = _Ho()
}
if (_ro[type] < 0) {
_ro[type] = _Io()
}
var _Jo = _ro[type];
if (_Eo == 0) {
_Ko(_Jo, _Fo, _Go)
} else {
_Lo(_Jo, _Fo, _Go)
}
_Mo(_Jo, _Co, _Do)
}
var _No = _yo;
function _Oo(_ye,
_ze, _6n, _7n, _Po, _Qo) {
var _Ro = _So(_6n, _7n);
var _To = _Uo._hn(_Ro);
var _Vo = _To.getContext('2d');
_Vo.drawImage(canvas, -_ye, -_ze);
if (_Po) {
_Wo(_Vo, _6n, _7n)
}
var _Xo = new _Yo();
var _Zo = new __o();
_Xo._0p = _Zo;
_Zo._w2 = 0;
_Zo._x2 = 0;
_Zo._y2 = _6n;
_Zo._z2 = _7n;
_Zo._O4 = 0;
_Zo._P4 = 0;
_Zo._Q4 = _Zo._y2;
_Zo._R4 = _Zo._z2;
_Zo._S4 = _Zo._y2;
_Zo._T4 = _Zo._z2;
_Zo._U4 = _Ro;
_Zo._hg = _To;
return _1p._2p(_Xo)
}
function _3p(_dn, _ye, _ze, _6n, _7n, _Po, _Qo) {
var _4p = _Uo._hn(_dn);
var _Ro = _So(_6n, _7n);
var _To = _Uo._hn(_Ro);
var _Vo = _To.getContext('2d');
_Vo.drawImage(_4p, -_ye, -_ze);
if (_Po) {
_Wo(_Vo, _6n, _7n)
}
var _Xo = new _Yo();
var _Zo = new __o();
_Xo._0p = _Zo;
_Zo._w2 = 0;
_Zo._x2 = 0;
_Zo._y2 = _6n;
_Zo._z2 = _7n;
_Zo._O4 = 0;
_Zo._P4 = 0;
_Zo._Q4 = _Zo._y2;
_Zo._R4 = _Zo._z2;
_Zo._S4 = _Zo._y2;
_Zo._T4 = _Zo._z2;
_Zo._U4 = _Ro;
_Zo._hg = _To;
return _1p._2p(_Xo)
}
function _5p(_6n, _7n, _ej) {
var _6p = _So(_6n, _7n);
var _7p = _Uo._hn(_6p);
var _Vo = _7p.getContext('2d');
_Vo.globalAlpha = 1.0;
_Vo.fillStyle = _8p(_gj(_ej), 1);
_Vo.fillRect(0, 0, _6n, _7n);
var _Xo = new _Yo();
var _Zo = new __o();
_Xo._0p = _Zo;
_Zo._w2 = 0;
_Zo._x2 = 0;
_Zo._y2 = _6n;
_Zo._z2 = _7n;
_Zo._O4 = 0;
_Zo._P4 = 0;
_Zo._Q4 = _Zo._y2;
_Zo._R4 = _Zo._z2;
_Zo._S4 = _Zo._y2;
_Zo._T4 = _Zo._z2;
_Zo._U4 = _6p;
_Zo._hg = _7p;
return _1p._2p(_Xo)
}
var _9p = _5p;
function _ap(_xe) {
var _To = _1p._bp(_xe);
if (_To) {
return ({
_7j: _To._0p._hg,
_nj: _To._0p
})
}
return null
}
var _cp = [];
var _dp = 0;
function _ep(_fp, _gp, _hf, _if, _jf, _kf, _hp, _ip) {
var _jp = _hp - _hf;
var _kp = _jf - _hf;
var _lp = _fp - _hf;
var _mp = _ip - _if;
var _np = _kf - _if;
var _op = _gp - _if;
var _pp = (_jp * _jp) + (_mp * _mp);
var _qp = (_jp * _kp) + (_mp * _np);
var _rp = (_jp * _lp) + (_mp * _op);
var _sp = (_kp * _kp) + (_np * _np);
var _tp = (_kp * _lp) + (_np * _op);
var _up = 1.0 / (_pp * _sp - _qp * _qp);
var _6h = (_sp * _rp - _qp * _tp) * _up;
var _8h = (_pp * _tp - _qp * _rp) * _up;
return ((_6h >= 0.0) && (_8h >= 0.0) && (_6h + _8h < 1.0))
}
function _vp(_wp, _xp, _yp, _zp, _Ap) {
var _Bp = (((_wp - _yp) * (_wp - _yp)) + ((_xp - _zp) * (_xp - _zp)));
if (_Bp <= _Ap) return !0;
return !1
}
function _Cp() {
__h("d3d_start()")
}
function _Dp() {
__h("d3d_end()")
}
function _Ep(enable) {
__h("d3d_set_hidden()")
}
function _Fp(_Gp) {
__h("d3d_set_culling()")
}
function _Hp(_o1) {
__h("d3d_set_shading()")
}
function _Ip(_Jp) {
__h("d3d_set_zwriteenable()")
}
function _Kp(_H2) {
__h("d3d_set_depth()")
}
function _Lp(_Mp, _Np, _Op, alpha) {
__h("draw_set_color_write_enable()")
}
var _Pp = _Lp;
function _Qp(enable) {
__h("d3d_set_shading()")
}
function _Rp(_Sp, _zh, _Ah, _Tp, _Dg) {
__h("d3d_light_define_direction()")
}
function _Up(_Sp, _w2, _x2, _ei, _Vp, _Dg) {
__h("d3d_light_define_point()")
}
function _Wp(_Sp, enable) {
__h("d3d_light_enable()")
}
function _Xp(_w4) {
__h("d3d_light_define_ambient()")
}
function _Yp(enable, _Ng, start, end) {
__h("d3d_set_fog()")
}
function _Zp(_hf, _if, __p, _jf, _kf, _0q, _1i, _1q, _2q) {
__h("d3d_draw_floor()")
}
function _3q(_hf, _if, __p, _jf, _kf, _0q, _1i, _1q, _2q, _4q) {
__h("d3d_draw_ellipsoid()")
}
function _5q(_hf, _if, __p, _jf, _kf, _0q, _1i, _1q, _2q) {
__h("d3d_draw_block()");
}
function _6q(_hf, _if, __p, _jf, _kf, _0q, _1i, _1q, _2q, _7q, _4q) {
__h("d3d_draw_cylinder()")
}
function _8q(_hf, _if, __p, _jf, _kf, _0q, _1i, _1q, _2q, _7q, _4q) {
__h("d3d_draw_cone()")
}
function _9q(_hf, _if, __p, _jf, _kf, _0q, _1i, _1q, _2q) {
__h("d3d_draw_wall()")
}
function _aq() {
__h("d3d_model_create()")
}
function _bq(_Sp) {
__h("d3d_model_destroy()")
}
function _cq(_Sp) {
__h("d3d_model_clear()")
}
function _dq(_Sp, _eq) {
__h("d3d_model_save()");
}
function _fq(_Sp, _eq) {
__h("d3d_model_load()")
}
function _gq(_Sp, _w2, _x2, _ei, _1i) {
__h("d3d_model_draw()")
}
function _hq(_Sp, _Zh) {
__h("d3d_model_primitive_begin()")
}
function _iq(_Sp, _w2, _x2, _ei) {
__h("d3d_model_vertex()")
}
function _jq(_Sp, _w2, _x2, _ei, _Dg, alpha) {
__h("d3d_model_vertex_color()")
}
function _kq(_Sp, _w2, _x2, _ei, _6i, _7i) {
__h("d3d_model_vertex_texture()")
}
function _lq(_Sp, _w2, _x2, _ei, _6i, _7i, _Dg, alpha) {
__h("d3d_model_vertex_texture_color()")
}
function _mq(_Sp,
_w2, _x2, _ei, _li, _mi, _ni) {
__h("d3d_model_vertex_normal()")
}
function _nq(_Sp, _w2, _x2, _ei, _li, _mi, _ni, _Dg, alpha) {
__h("d3d_model_vertex_normal_color()")
}
function _oq(_Sp, _w2, _x2, _ei, _li, _mi, _ni, _6i, _7i) {
__h("d3d_model_vertex_normal_texture()")
}
function _pq(_Sp, _w2, _x2, _ei, _li, _mi, _ni, _6i, _7i, _Dg, alpha) {
__h("d3d_model_vertex_normal_texture_color()");
}
function _qq(_Sp) {
__h("d3d_model_primitive_end()")
}
function _rq(_Sp, _hf, _if, __p, _jf, _kf, _0q, _1q, _2q) {
__h("d3d_model_block()")
}
function _sq(_Sp, _hf, _if, __p, _jf,
_kf, _0q, _1q, _2q, _7q, _4q) {
__h("d3d_model_cylinder()")
}
function _tq(_Sp, _hf, _if, __p, _jf, _kf, _0q, _1q, _2q, _7q, _4q) {
__h("d3d_model_cone()")
}
function _uq(_Sp, _hf, _if, __p, _jf, _kf, _0q, _1q, _2q, _4q) {
__h("d3d_model_ellipsoid()")
}
function _vq(_Sp, _hf, _if, __p, _jf, _kf, _0q, _1q, _2q) {
__h("d3d_model_wall()")
}
function _wq(_Sp, _hf, _if, __p, _jf, _kf, _0q, _1q, _2q) {
__h("d3d_model_floor()")
}
function _xq(enable) {
__h("d3d_set_perspective()")
}
function _yq(_zq, _Aq, _Bq, _Cq, _Dq, _Eq, _Fq, _Gq, _Hq) {
__h("d3d_set_projection()")
}
function _Iq(_zq,
_Aq, _Bq, _Cq, _Dq, _Eq, _Fq, _Gq, _Hq, _Cg, _Jq, _Kq, _Lq) {
__h("d3d_set_projection_ext()")
}
function _Mq(_w2, _x2, _y2, _z2, _Cg) {
__h("d3d_set_projection_ortho()")
}
function _Nq(_w2, _x2, _y2, _z2, _Cg) {
__h("d3d_set_projection_perspective()")
}
function _Oq() {
__h("d3d_transform_set_identity()")
}
function _Pq(_Qq, _Rq, _Sq) {
__h("d3d_transform_set_translation()")
}
function _Tq(_Ag, _Bg, _Uq) {
__h("d3d_transform_set_scaling()")
}
function _Vq(_Cg) {
__h("d3d_transform_set_rotation_x()")
}
function _Wq(_Cg) {
__h("d3d_transform_set_rotation_y()")
}
function _Xq(_Cg) {
__h("d3d_transform_set_rotation_z()")
}
function _Yq(_Zq, __q, _0r, _Cg) {
__h("d3d_transform_set_rotation_axis()")
}
function _1r(_Qq, _Rq, _Sq) {
__h("d3d_transform_add_translation()")
}
function _2r(_Ag, _Bg, _Uq) {
__h("d3d_transform_add_scaling()")
}
function _3r(_Cg) {
__h("d3d_transform_add_rotation_x()")
}
function _4r(_Cg) {
__h("d3d_transform_add_rotation_y()")
}
function _5r(_Cg) {
__h("d3d_transform_add_rotation_axis()")
}
function _6r(_Zq, __q, _0r, _Cg) {
__h("d3d_transform_add_rotation_z()")
}
function _7r(_ye,
_ze, _sj) {
__h("d3d_transform_vertex()")
}
function _8r(_Pj) {
__h("matrix_get()")
}
function _9r(_Pj, _ar) {
__h("matrix_set()")
}
function _br(_ye, _ze, _sj, _cr, _dr, _er, _fr, _gr, _hr) {
__h("matrix_build()")
}
function _ir(_jr, _kr) {
__h("matrix_multiply()")
}
function _lr() {
__h("d3d_transform_stack_clear()");
}
function _mr() {
__h("d3d_transform_stack_empty()")
}
function _nr() {
__h("d3d_transform_stack_push()")
}
function _or() {
__h("d3d_transform_stack_pop()")
}
function _pr() {
__h("d3d_transform_stack_top()")
}
function _qr() {
__h("d3d_transform_stack_discard()")
}
var _rr = [];
function _sr() {
if (!_3g) {
return
}
_Cp = _tr;
_Dp = _ur;
_Fp = _vr;
_Hp = _wr;
_Ip = _xr;
_Kp = _yr;
_Ep = _zr;
_Lp = _Ar;
_Pp = _Ar;
_xq = _Br;
_yq = _Cr;
_Iq = _Dr;
_Mq = _Er;
_Nq = _Fr;
_Oq = _Gr;
_Pq = _Hr;
_Tq = _Ir;
_Vq = _Jr;
_Wq = _Kr;
_Xq = _Lr;
_Yq = _Mr;
_1r = _Nr;
_2r = _Or;
_3r = _Pr;
_4r = _Qr;
_5r = _Rr;
_6r = _Sr;
_7r = _Tr;
_lr = _Ur;
_mr = _Vr;
_nr = _Wr;
_or = _Xr;
_pr = _Yr;
_qr = _Zr;
_Zp = __r;
_3q = _0s;
_5q = _1s;
_6q = _2s;
_8q = _3s;
_9q = _4s;
_Qp = _5s;
_Rp = _6s;
_Up = _7s;
_Wp = _8s;
_Xp = _9s;
_Yp = _as;
_aq = _bs;
_bq = _cs;
_cq = _ds;
_dq = _es;
_fq = _fs;
_gq = _gs;
_hq = _hs;
_iq = _is;
_jq = _js;
_ks = _js;
_kq = _ls;
_lq = _ms;
_ns = _ms;
_mq = _os;
_nq = _ps;
_oq = _qs;
_pq = _rs;
_qq = _ss;
_rq = _ts;
_sq = _us;
_tq = _vs;
_uq = _ws;
_vq = _xs;
_wq = _ys;
_8r = _zs;
_9r = _As;
_br = _Bs;
_ir = _Cs
}
function _tr() {
_Ds = !0;
_3g._Es(_Fs);
_3g._Gs(_Hs);
_3g._Is(_Js)
}
function _ur() {
_Ds = !1;
_3g._Es(!1);
_3g._Gs(!1);
_3g._Is(!1)
}
function _vr(_Ks) {
_Js = _Ks > 0.5;
_3g._Is(_Js)
}
function _wr(_Qo) {}
function _xr(_Ls) {
_Hs = (_Ls > 0.5);
_3g._Gs(_Hs);
}
function _yr(_Ms) {
if (_Ds) {
_Ns = Math.min(16000.0, Math.max(-16000.0, _Ms))
} else {
_Ns = 0.0
}
}
function _zr(_Os) {
_Fs = (_Os > 0.5);
_3g._Es(_Fs)
}
function _Ar(_Mp, _Np, _Op,
alpha) {
_Ps._Mp = (_Mp >= 0.5);
_Ps._Np = (_Np >= 0.5);
_Ps._Op = (_Op >= 0.5);
_Ps.alpha = (alpha >= 0.5);
_3g._Qs(_Ps._Mp, _Ps._Np, _Ps._Op, _Ps.alpha)
}
function _Br(enable) {}
function _5s(_Rs) {
if (_Ss != _Rs) {
_Ss = _Rs;
_3g._Ts(_Us())
}
}
function _Cr(_zq, _Aq, _Bq, _Cq, _Dq, _Eq, _Fq, _Gq, _Hq) {
var _Vs = new _Ws();
var _Gn = new _Xs(_zq, _Aq, _Bq);
var _Ys = new _Xs(_Cq, _Dq, _Eq);
var _Zs = new _Xs(_Fq, _Gq, _Hq);
_Vs.__s(_Gn, _Ys, _Zs);
_3g._0t(_Vs)
}
function _Dr(_zq, _Aq, _Bq, _Cq, _Dq, _Eq, _Fq, _Gq, _Hq, _Cg, _Jq, _1t, _2t) {
var _Vs = new _Ws();
var _Gn = new _Xs(_zq, _Aq, _Bq);
var _Ys = new _Xs(_Cq,
_Dq, _Eq);
var _Zs = new _Xs(_Fq, _Gq, _Hq);
_Vs.__s(_Gn, _Ys, _Zs);
var _3t = new _Ws();
_3t._4t(_Cg, _Jq, _1t, _2t);
_3t._gf[_5t] *= _6t;
_3g._0t(_Vs);
_3g._7t(_3t);
_3g._8t((_6t < 0) ? _Gh._9t : _Gh._at)
}
function _Er(_w2, _x2, _y2, _z2, _Cg) {
var _Vs = new _Ws();
var _Th = new _Xs(_w2 + (_y2 / 2.0), _x2 + (_z2 / 2.0), -_y2);
var _Uh = new _Xs(_w2 + (_y2 / 2.0), _x2 + (_z2 / 2.0), 0.0);
var _Vh = new _Xs(Math.sin(-_Cg * (Math.PI / 180.0)), Math.cos(-_Cg * (Math.PI / 180.0)), 0.0);
_Vs.__s(_Th, _Uh, _Vh);
var _bt = new _Ws();
_bt._ct(_y2, -_z2 * _6t, 1.0, 32000.0);
_3g._0t(_Vs);
_3g._7t(_bt);
_3g._8t((_6t < 0) ? _Gh._9t : _Gh._at)
}
function _Fr(_w2, _x2, _y2, _z2, _Cg) {
var _Vs = new _Ws();
var _Th = new _Xs(_w2 + (_y2 / 2.0), _x2 + (_z2 / 2.0), -_y2);
var _Uh = new _Xs(_w2 + (_y2 / 2.0), _x2 + (_z2 / 2.0), 0.0);
var _Vh = new _Xs(Math.sin(-_Cg * (Math.PI / 180.0)), Math.cos(-_Cg * (Math.PI / 180.0)), 0.0);
_Vs.__s(_Th, _Uh, _Vh);
var _3t = new _Ws();
_3t._dt(1.0, (_y2 / _z2), 1.0, 32000.0);
_3t._gf[_5t] *= _6t;
_3g._0t(_Vs);
_3g._7t(_3t);
_3g._8t((_6t < 0) ? _Gh._9t : _Gh._at);
}
function __r(_hf, _if, __p, _jf, _kf, _0q, _1i, _1q, _2q) {
var _et = _ft();
_gt(!0);
_ci(_Ei, _1i); {
_qi(_hf, _if, __p, 0, 0, 1, 0, 0);
_qi(_hf, _kf, __p,
0, 0, 1, 0, _2q);
_qi(_jf, _kf, _0q, 0, 0, 1, _1q, _2q);
_qi(_jf, _if, _0q, 0, 0, 1, _1q, 0)
}
_ti();
_gt(_et)
}
function _0s(_hf, _if, __p, _jf, _kf, _0q, _1i, _ht, _it, _4q) {
var _et = _ft();
_gt(!0);
if (_4q < 3) {
_4q = 3
}
if (_4q > 128) {
_4q = 128;
}
var _Yf = [];
var _Xf = [];
for (var _u2 = 0; _u2 <= _4q; _u2++) {
_Yf[_u2] = Math.cos(_u2 * 2.0 * Math.PI / _4q);
_Xf[_u2] = Math.sin(_u2 * 2.0 * Math.PI / _4q)
}
var _Sf = (_jf + _hf) / 2,
_Tf = (_kf + _if) / 2,
_jt = (_0q + __p) / 2,
_kt = (_jf - _hf) / 2,
_lt = (_kf - _if) / 2,
_mt = (_0q - __p) / 2;
var _nt = (_4q + 1) / 2;
for (var _Bf = 0; _Bf < _nt; _Bf++) {
var _ot = Math.cos(_Bf * Math.PI / _nt),
_pt = Math.sin(_Bf * Math.PI / _nt),
_qt = Math.cos((_Bf + 1) * Math.PI / _nt),
_rt = Math.sin((_Bf + 1) * Math.PI / _nt);
_ci(_Di, _1i);
for (var _u2 = 0; _u2 <= _4q; _u2++) {
_qi(_Sf + _kt * _pt * _Yf[_u2], _Tf + _lt * _pt * _Xf[_u2], _jt + _mt * _ot, _pt * _Yf[_u2], _pt * _Xf[_u2], _ot, _ht * _u2 / _4q, _Bf * _it / _nt);
_qi(_Sf + _kt * _rt * _Yf[_u2], _Tf + _lt * _rt * _Xf[_u2], _jt + _mt * _qt, _rt * _Yf[_u2], _rt * _Xf[_u2], _qt, _ht * _u2 / _4q, (_Bf + 1) * _it / _nt)
}
_ti()
}
_gt(_et)
}
function _1s(_hf, _if, __p, _jf, _kf, _0q, _1i, _ht, _it) {
var _et = _ft();
_gt(!0);
_ci(_Ci, _1i); {
_qi(_hf, _if, __p, 0, 0, -1, 0, 0);
_qi(_hf,
_kf, __p, 0, 0, -1, 0, _it);
_qi(_jf, _kf, __p, 0, 0, -1, _ht, _it);
_qi(_jf, _kf, __p, 0, 0, -1, _ht, _it);
_qi(_jf, _if, __p, 0, 0, -1, _ht, 0);
_qi(_hf, _if, __p, 0, 0, -1, 0, 0)
} {
_qi(_hf, _if, _0q, 0, 0, 1, 0, 0);
_qi(_jf, _if, _0q, 0, 0, 1, _ht, 0);
_qi(_jf, _kf, _0q, 0, 0, 1, _ht, _it);
_qi(_jf, _kf, _0q, 0, 0, 1, _ht, _it);
_qi(_hf, _kf, _0q, 0, 0, 1, 0, _it);
_qi(_hf, _if, _0q, 0, 0, 1, 0, 0)
} {
_qi(_hf, _kf, __p, 0, 1, 0, 0, 0);
_qi(_hf, _kf, _0q, 0, 1, 0, 0, _it);
_qi(_jf, _kf, _0q, 0, 1, 0, _ht, _it);
_qi(_jf, _kf, _0q, 0, 1, 0, _ht, _it);
_qi(_jf, _kf, __p, 0, 1, 0, _ht, 0);
_qi(_hf, _kf, __p, 0, 1, 0, 0, 0)
} {
_qi(_jf,
_kf, __p, 1, 0, 0, 0, 0);
_qi(_jf, _kf, _0q, 1, 0, 0, 0, _it);
_qi(_jf, _if, _0q, 1, 0, 0, _ht, _it);
_qi(_jf, _if, _0q, 1, 0, 0, _ht, _it);
_qi(_jf, _if, __p, 1, 0, 0, _ht, 0);
_qi(_jf, _kf, __p, 1, 0, 0, 0, 0)
} {
_qi(_jf, _if, __p, 0, -1, 0, 0, 0);
_qi(_jf, _if, _0q, 0, -1, 0, 0, _it);
_qi(_hf, _if, _0q, 0, -1, 0, _ht, _it);
_qi(_hf, _if, _0q, 0, -1, 0, _ht, _it);
_qi(_hf, _if, __p, 0, -1, 0, _ht, 0);
_qi(_jf, _if, __p, 0, -1, 0, 0, 0)
} {
_qi(_hf, _if, __p, -1, 0, 0, 0, 0);
_qi(_hf, _if, _0q, -1, 0, 0, 0, _it);
_qi(_hf, _kf, _0q, -1, 0, 0, _ht, _it);
_qi(_hf, _kf, _0q, -1, 0, 0, _ht, _it);
_qi(_hf, _kf, __p, -1, 0, 0, _ht, 0);
_qi(_hf, _if, __p, -1, 0, 0, 0, 0)
}
_ti();
_gt(_et)
}
function _2s(_hf, _if, __p, _jf, _kf, _0q, _1i, _ht, _it, _7q, _4q) {
var _Yf = [];
var _Xf = [];
var _et = _ft();
_gt(!0);
if (_4q < 3) {
_4q = 3
}
if (_4q > 128) {
_4q = 128
}
for (var _u2 = 0; _u2 <= _4q; _u2++) {
_Yf[_u2] = Math.cos(_u2 * 2.0 * Math.PI / _4q);
_Xf[_u2] = Math.sin(_u2 * 2.0 * Math.PI / _4q)
}
var _Sf = (_jf + _hf) / 2.0;
var _Tf = (_kf + _if) / 2.0;
var _kt = (_jf - _hf) / 2.0;
var _lt = (_kf - _if) / 2.0;
if (!0 == _7q) {
_ci(_Ei, _1i);
_qi(_Sf, _Tf, _0q, 0, 0, 1, 0, _it);
for (var _u2 = 0; _u2 <= _4q; _u2++) {
_qi(_Sf + _Yf[_u2] * _kt, _Tf + _Xf[_u2] * _lt, _0q, 0, 0, 1, 0,
_it)
}
_ti()
}
_ci(_Di, _1i);
for (var _u2 = 0; _u2 <= _4q; _u2++) {
_qi(_Sf + _Yf[_u2] * _kt, _Tf + _Xf[_u2] * _lt, _0q, _Yf[_u2], _Xf[_u2], 0, _ht * _u2 / _4q, _it);
_qi(_Sf + _Yf[_u2] * _kt, _Tf + _Xf[_u2] * _lt, __p, _Yf[_u2], _Xf[_u2], 0, _ht * _u2 / _4q, 0)
}
_ti();
if (!0 == _7q) {
_ci(_Ei, _1i);
_qi(_Sf, _Tf, __p, 0, 0, -1, 0, 0);
for (var _u2 = _4q; _u2 >= 0; _u2--) {
_qi(_Sf + _Yf[_u2] * _kt, _Tf + _Xf[_u2] * _lt, __p, 0, 0, -1, 0, 0)
}
_ti()
}
_gt(_et)
}
function _3s(_hf, _if, __p, _jf, _kf, _0q, _1i, _ht, _it, _7q, _4q) {
var _Yf = [];
var _Xf = [];
var _et = _ft();
_gt(!0);
if (_4q < 3) {
_4q = 3
}
if (_4q > 128) {
_4q = 128
}
for (var _u2 = 0; _u2 <= _4q; _u2++) {
_Yf[_u2] = Math.cos(_u2 * 2.0 * Math.PI / _4q);
_Xf[_u2] = Math.sin(_u2 * 2.0 * Math.PI / _4q);
}
var _Sf = (_jf + _hf) / 2.0;
var _Tf = (_kf + _if) / 2.0;
var _kt = (_jf - _hf) / 2.0;
var _lt = (_kf - _if) / 2.0;
_ci(_Di, _1i);
for (var _u2 = 0; _u2 <= _4q; _u2++) {
_qi(_Sf, _Tf, _0q, 0, 0, 1, _ht * _u2 / _4q, _it);
_qi(_Sf + _Yf[_u2] * _kt, _Tf + _Xf[_u2] * _lt, __p, _Yf[_u2], _Xf[_u2], 0, _ht * _u2 / _4q, 0)
}
_ti();
if (!0 == _7q) {
_ci(_Ei, _1i);
_qi(_Sf, _Tf, __p, 0, 0, -1, 0, 0);
for (var _u2 = _4q; _u2 >= 0; _u2--) {
_qi(_Sf + _Yf[_u2] * _kt, _Tf + _Xf[_u2] * _lt, __p, 0, 0, -1, 0, 0)
}
_ti()
}
_gt(_et)
}
function _4s(_hf, _if, __p, _jf, _kf, _0q, _1i, _ht, _it) {
var _et = _ft();
_gt(!0);
var _sf = Math.sqrt(_st(_jf - _hf) + _st(_kf - _if));
if (_sf == 0.0) {
return
}
var _li = (_kf - _if) / _sf;
var _mi = -(_jf - _hf) / _sf;
_ci(_Ei, _1i); {
_qi(_hf, _if, __p, _li, _mi, 0, 0, 0);
_qi(_jf, _kf, __p, _li, _mi, 0, _ht, 0);
_qi(_jf, _kf, _0q, _li, _mi, 0, _ht, _it);
_qi(_hf, _if, _0q, _li, _mi, 0, 0, _it)
}
_ti();
_gt(_et)
}
function _6s(_Sp, _zh, _Ah, _Tp, _Dg) {
var _tt = new _Xs(_zh, _Ah, _Tp);
_tt._ut();
var _vt = _Sp * 4;
_wt[_vt + 0] = _tt._xt;
_wt[_vt + 1] = _tt._yt;
_wt[_vt + 2] = _tt._zt;
_wt[_vt + 3] = 0.0;
_At[_vt + 0] = ((_Dg >> 0) & 0xff) / 255.0;
_At[_vt + 1] = ((_Dg >> 8) & 0xff) / 255.0;
_At[_vt + 2] = ((_Dg >> 16) & 0xff) / 255.0;
_At[_vt + 3] = ((_Dg >> 24) & 0xff) / 255.0;
_Bt[_vt + 0] = 0;
_Bt[_vt + 1] = 0;
_Bt[_vt + 2] = 0;
_Bt[_vt + 3] = 0;
_3g._Ct(_Sp, _Bt.subarray(_Sp * 4, (_Sp + 1) * 4), _wt.subarray(_Sp * 4, (_Sp + 1) * 4), _At.subarray(_Sp * 4, (_Sp + 1) * 4))
}
function _7s(_Sp, _w2, _x2, _ei, _Vp, _Dg) {
var _vt = _Sp * 4;
_Bt[_vt + 0] = _w2;
_Bt[_vt + 1] = _x2;
_Bt[_vt + 2] = _ei;
_Bt[_vt + 3] = _Vp;
_At[_vt + 0] = ((_Dg >> 0) & 0xff) / 255.0;
_At[_vt + 1] = ((_Dg >> 8) & 0xff) / 255.0;
_At[_vt + 2] = ((_Dg >> 16) & 0xff) / 255.0;
_At[_vt + 3] = ((_Dg >> 24) & 0xff) / 255.0;
_wt[_vt + 0] = 0;
_wt[_vt + 1] = 0;
_wt[_vt + 2] = 0;
_wt[_vt + 3] = 0;
_3g._Ct(_Sp, _Bt.subarray(_Sp * 4, (_Sp + 1) * 4), _wt.subarray(_Sp * 4, (_Sp + 1) * 4), _At.subarray(_Sp * 4, (_Sp + 1) * 4))
}
function _8s(_Sp, enable) {
_Dt[_Sp] = enable;
_3g._Et(_Sp, enable, _At.subarray(_Sp * 4, (_Sp + 1) * 4))
}
function _9s(_w4) {
_Ft[0] = ((_w4 >> 0) & 0xff) / 255.0;
_Ft[1] = ((_w4 >> 8) & 0xff) / 255.0;
_Ft[2] = ((_w4 >> 16) & 0xff) / 255.0;
_Ft[3] = ((_w4 >> 24) & 0xff) / 255.0;
_3g._Gt(_Ft)
}
function _as(enable, _w4, start, end) {
if (_Ht == null) {
_Ht = new Float32Array(8)
}
_Ht[0] = enable;
var _Vp = end - start;
_Ht[1] = (_Vp == 0.0) ? 0.0 : (1.0 / _Vp);
_Ht[2] = end;
_Ht[3] = 0.0;
_Ht[4] = ((_w4 >> 0) & 0xff) / 255.0;
_Ht[5] = ((_w4 >> 8) & 0xff) / 255.0;
_Ht[6] = ((_w4 >> 16) & 0xff) / 255.0;
_Ht[7] = ((_w4 >> 24) & 0xff) / 255.0;
_3g._It(_Ht)
}
function _bs() {
return (_rr.push(new _Jt()) - 1)
}
function _cs(_Sp) {
if (_rr[_Sp]) {
_rr[_Sp] = null
}
}
function _ds(_Sp) {
if (_rr[_Sp]) {
_rr[_Sp]._am()
}
}
function _es(_Sp, _eq) {
if (_rr[_Sp]) {
_rr[_Sp]._Kt(_eq)
}
}
function _fs(_Sp, _eq) {
if (_rr[_Sp]) {
_rr[_Sp]._jg(_eq)
}
}
function _gs(_Sp, _w2, _x2, _ei, _1i) {
if (_rr[_Sp]) {
_rr[_Sp]._Ig(_w2, _x2, _ei, _1i)
}
}
function _hs(_Sp, _Zh) {
if (_rr[_Sp]) {
_rr[_Sp]._2k(_Zh)
}
}
function _is(_Sp, _w2, _x2, _ei) {
if (_rr[_Sp]) {
_rr[_Sp]._Lt(_w2, _x2, _ei)
}
}
function _js(_Sp, _w2, _x2, _ei, _Dg, alpha) {
if (_rr[_Sp]) {
_rr[_Sp]._Mt(_w2, _x2, _ei, _Dg, alpha)
}
}
function _ls(_Sp, _w2, _x2, _ei, _6i, _7i) {
if (_rr[_Sp]) {
_rr[_Sp]._Nt(_w2, _x2, _ei, _6i, _7i)
}
}
function _ms(_Sp, _w2, _x2, _ei, _6i, _7i, _Dg, alpha) {
if (_rr[_Sp]) {
_rr[_Sp]._Ot(_w2, _x2, _ei, _6i, _7i, _Dg, alpha)
}
}
function _os(_Sp, _w2, _x2, _ei, _li, _mi, _ni) {
if (_rr[_Sp]) {
_rr[_Sp]._Pt(_w2, _x2, _ei, _li, _mi, _ni)
}
}
function _ps(_Sp, _w2, _x2, _ei, _li, _mi, _ni,
_Dg, alpha) {
if (_rr[_Sp]) {
_rr[_Sp]._Qt(_w2, _x2, _ei, _li, _mi, _ni, _Dg, alpha)
}
}
function _qs(_Sp, _w2, _x2, _ei, _li, _mi, _ni, _6i, _7i) {
if (_rr[_Sp]) {
_rr[_Sp]._Rt(_w2, _x2, _ei, _li, _mi, _ni, _6i, _7i)
}
}
function _rs(_Sp, _w2, _x2, _ei, _li, _mi, _ni, _6i, _7i, _Dg, alpha) {
if (_rr[_Sp]) {
_rr[_Sp]._St(_w2, _x2, _ei, _li, _mi, _ni, _6i, _7i, _Dg, alpha)
}
}
function _ss(_Sp) {
if (_rr[_Sp]) {
_rr[_Sp]._4k()
}
}
function _ts(_Sp, _hf, _if, __p, _jf, _kf, _0q, _1q, _2q) {
if (_rr[_Sp]) {
_rr[_Sp]._Tt(_hf, _if, __p, _jf, _kf, _0q, _1q, _2q)
}
}
function _us(_Sp, _hf, _if, __p, _jf, _kf,
_0q, _1q, _2q, _7q, _4q) {
if (_rr[_Sp]) {
_rr[_Sp]._Ut(_hf, _if, __p, _jf, _kf, _0q, _1q, _2q, _7q, _4q)
}
}
function _vs(_Sp, _hf, _if, __p, _jf, _kf, _0q, _1q, _2q, _7q, _4q) {
if (_rr[_Sp]) {
_rr[_Sp]._Vt(_hf, _if, __p, _jf, _kf, _0q, _1q, _2q, _7q, _4q)
}
}
function _ws(_Sp, _hf, _if, __p, _jf, _kf, _0q, _1q, _2q, _4q) {
if (_rr[_Sp]) {
_rr[_Sp]._Wt(_hf, _if, __p, _jf, _kf, _0q, _1q, _2q, _4q)
}
}
function _xs(_Sp, _hf, _if, __p, _jf, _kf, _0q, _1q, _2q) {
if (_rr[_Sp]) {
_rr[_Sp]._Xt(_hf, _if, __p, _jf, _kf, _0q, _1q, _2q)
}
}
function _ys(_Sp, _hf, _if, __p, _jf, _kf, _0q, _1q, _2q) {
if (_rr[_Sp]) {
_rr[_Sp]._Yt(_hf, _if, __p, _jf, _kf, _0q, _1q, _2q)
}
}
function _Gr() {
_Zt(__t, new _Ws())
}
function _Hr(_Qq, _Rq, _Sq) {
var _gf = new _Ws();
_gf._0u(_Qq, _Rq, _Sq);
_Zt(__t, _gf)
}
function _Ir(_Ag, _Bg, _Uq) {
var _gf = new _Ws();
_gf._1u(_Ag, _Bg, _Uq);
_Zt(__t, _gf)
}
function _Jr(_Cg) {
var _gf = new _Ws();
_gf._2u(_Cg);
_Zt(__t, _gf)
}
function _Kr(_Cg) {
var _gf = new _Ws();
_gf._3u(_Cg);
_Zt(__t, _gf)
}
function _Lr(_Cg) {
var _gf = new _Ws();
_gf._4u(_Cg);
_Zt(__t, _gf)
}
function _Mr(_Zq, __q, _0r, _Cg) {
var _gf = new _Ws();
_gf._5u(new _Xs(_Zq, __q, _0r), -_Cg);
_Zt(__t, _gf)
}
function _Nr(_Qq,
_Rq, _Sq) {
var _6u = new _Ws();
_6u._0u(_Qq, _Rq, _Sq);
var _7u = _8u(__t);
var _gf = new _Ws();
_gf._9u(_7u, _6u);
_Zt(__t, _gf)
}
function _Or(_Ag, _Bg, _Uq) {
var _au = new _Ws();
_au._1u(_Ag, _Bg, _Uq);
var _7u = _8u(__t);
var _gf = new _Ws();
_gf._9u(_7u, _au);
_Zt(__t, _gf)
}
function _Pr(_Cg) {
var _bu = new _Ws();
_bu._2u(_Cg);
var _7u = _8u(__t);
var _gf = new _Ws();
_gf._9u(_7u, _bu);
_Zt(__t, _gf)
}
function _Qr(_Cg) {
var _bu = new _Ws();
_bu._3u(_Cg);
var _7u = _8u(__t);
var _gf = new _Ws();
_gf._9u(_7u, _bu);
_Zt(__t, _gf)
}
function _Rr(_Cg) {
var _bu = new _Ws();
_bu._4u(_Cg);
var _7u = _8u(__t);
var _gf = new _Ws();
_gf._9u(_7u, _bu);
_Zt(__t, _gf)
}
function _Sr(_Zq, __q, _0r, _Cg) {
var _bu = new _Ws();
_bu._5u(new _Xs(_Zq, __q, _0r), -_Cg);
var _7u = _8u(__t);
var _gf = new _Ws();
_gf._9u(_7u, _bu);
_Zt(__t, _gf)
}
function _Tr(_ye, _ze, _sj) {
var _7u = _8u(__t);
var _Cf = (_7u._gf[_cu] * _ye) + (_7u._gf[_du] * _ze) + (_7u._gf[_eu] * _sj) + _7u._gf[_fu];
var _Ef = (_7u._gf[_gu] * _ye) + (_7u._gf[_5t] * _ze) + (_7u._gf[_hu] * _sj) + _7u._gf[_iu];
var _ju = (_7u._gf[_ku] * _ye) + (_7u._gf[_lu] * _ze) + (_7u._gf[_mu] * _sj) + _7u._gf[_nu];
var _uf = [];
_uf[0] = _Cf;
_uf[1] = _Ef;
_uf[2] = _ju;
return _uf
}
function _Ur() {
_ou()
}
function _Vr() {
return _pu()
}
function _Wr() {
var _7u = _8u(__t);
return _qu(_7u)
}
function _Xr() {
return _ru()
}
function _Yr() {
return _su()
}
function _Zr() {
return _tu()
}
function _zs(_Pj) {
var _gf = [];
if (_Pj < 0 || _Pj > 2) {
_ym('ERROR: Invalid matrix type (matrix_get)');
for (var _u2 = 0; _u2 < 16; _u2++) {
_gf[_u2] = 0
}
return _gf
}
var _uu = _vu[_Pj];
for (var _u2 = 0; _u2 < 16; _u2++) {
_gf[_u2] = _uu._gf[_u2]
}
return _gf
}
function _As(_Pj, _ar) {
var _gf = [];
if (_Pj < 0 || _Pj > 2) {
_ym('ERROR: Invalid matrix type (matrix_get)');
for (var _u2 = 0; _u2 < 16; _u2++) {
_gf[_u2] = 0
}
return _gf
}
var _gf = new _Ws();
var _uu = _vu[_Pj];
for (var _u2 = 0; _u2 < 16; _u2++) {
_gf._gf[_u2] = _ar[_u2]
}
_Zt(_Pj, _gf)
}
function _Bs(_ye, _ze, _sj, _cr, _dr, _er, _fr, _gr, _hr) {
var _gf = new _Ws();
var _wu = (Math.PI / 180.0);
_cr = (_wu * -_cr);
_dr = (_wu * -_dr);
_er = (_wu * -_er);
_gf._xu(_ye, _ze, _sj, _cr, _dr, _er, _fr, _gr, _hr);
var _uu = [];
for (var _u2 = 0; _u2 < 16; _u2++) {
_uu[_u2] = _gf._gf[_u2]
}
return _uu
}
function _Cs(_yu, _zu) {
var _Au = new _Ws();
var _Bu = new _Ws();
var _Cu = new _Ws();
for (var _u2 = 0; _u2 < 16; _u2++) {
_Au._gf[_u2] = _yu[_u2];
_Bu._gf[_u2] = _zu[_u2]
}
_Cu._9u(_Au, _Bu);
var _uu = [];
for (var _u2 = 0; _u2 < 16; _u2++) {
_uu[_u2] = _Cu._gf[_u2]
}
return _uu
}
var _Du = 1970;
var _Eu = 0;
var _Fu = 1;
var _Gu = 365.25;
var _Hu = 30.4375;
var _Iu = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
var _Ju = [];
var _Ku = (86400.0);
var _Lu = (_Ku * 30);
var _Mu = !0;
var _Nu = 0;
var _Ou = 1;
function _Pu(_Qu) {
if (_Qu < _Ru) {
return _Qu * _Su
} else {
return (_Qu - _Ru) * _Su
}
}
function _Tu(_Uu) {
return _Uu % 400 == 0 || (_Uu % 100 != 0 && _Uu % 4 == 0)
}
function _Vu(_Uu) {
var _Wu = _Iu.slice();;
if (_Tu(_Uu)) {
_Wu[1] = 29
}
return _Wu
}
var _Su = 86400000.0;
var _Ru = 25569;
function _Xu(_Yu) {
return ((_Yu < 10) ? "0" : "") + _Yu.toString()
}
var _Zu = [];
var __u = [];
var _0v = [];
var _1v = Date.now();
var _2v = 0;
var _3v = 1;
var _4v = 2;
var _5v = 3;
var _6v = function(text) {
if (!text) return;
if (_7v) {
if (!_8v) return;
var _Tj = _8v.document.getElementById('debug_console');
if (!_Tj) return;
var _9v = String.fromCharCode(0x0a);
text = text.replace('', '').replace('', '');
var _av = Date.now() - _1v;
if (!_Tj) {
alert(text)
} else {
_Tj.value += text + _9v;
var _bv = _Tj.textLength
}
_1v = Date.now()
}
if (_cv != undefined) {
if (_cv._W4._95) console.log(text)
}
};
function debug() {
var index;
for (index = 0; index < arguments.length; ++index) {
_6v(arguments[index])
}
}
function _ym() {
var index;
for (index = 0; index < arguments.length; ++index) {
_6v(arguments[index])
}
}
function _dv(_ev) {
if (!_0v[_ev]) {
_0v[_ev] = !0;
_fv(_ev)
}
}
function __h(_ev) {
if (!_Zu[_ev]) {
_Zu[_ev] = !0;
var _gv = "Error: function " + _ev + " is not supported.";
debug(_gv)
}
}
function _hv(_ev) {
if (!_Zu[_ev]) {
_Zu[_ev] = !0;
var _gv = "Error: function " + _ev + " is not yet implemented";
debug(_gv)
}
}
function _iv(_ev) {
if (!__u[_ev]) {
__u[_ev] = !0;
var _gv = "Warning: function " + _ev;
debug(_gv)
}
}
function _jv(_kv) {
var _lv = _mv._nv(_kv, -1);
var _9v = String.fromCharCode(0x0a);
var _ov = "";
for (var _u2 = 0; _u2 < _lv.length; _u2++) {
if (_u2 != 0) _ov = _ov + _9v;
_ov += _lv[_u2]
}
return _ov
}
function _pv(_qv) {
var _fe = document.getElementById(_rv);
var _sv = _fe.parentNode;
var _tv = document.createElement("div");
_uv = "gm4html5_login_ID";
_tv.setAttribute("class", "gm4html5_login");
_tv.setAttribute("id", _uv);
_sv.insertBefore(_tv, _fe.nextSibling);
_tv.innerHTML = "
" + "" + "" + "";
_vv();
_wv = !0;
var login = document.getElementById("gm4html5_login_button_id");
var _xv = document.getElementById("gm4html5_login_username_id");
var _yv = document.getElementById("gm4html5_login_password_id");
_xv.value = _qv._zv[0];
_yv.value = _qv._zv[1];
login.onmouseup = function() {
var _Av = _xv.value;
var _Bv = _yv.value;
var _Cv = _Dv(_uv);
if (!_Cv) return;
_Cv._Av = _Av;
_Cv._Bv = _Bv;
_Cv.value = 0;
_Cv._Ev = "";
_Cv._Fv = !0;
_Cv._Gv = _Hv;
_sv.removeChild(_tv);
_wv = !1;
_Iv();
_Jv(_qv.id)
};
var _Kv = document.getElementById("gm4html5_cancel_button_id");
_Kv.onmouseup = function() {
_sv.removeChild(_tv);
_wv = !1;
var _Cv = _Dv(_uv);
if (!_Cv) return;
_Cv._Av = "";
_Cv._Bv = "";
_Cv.value = 0;
_Cv._Ev = "";
_Cv._Fv = !0;
_Cv._Gv = _Lv;
_Iv();
_Jv(_qv.id)
};
_Mv();
_Nv._yn(_qv.id, null, _Ov, _uv)
}
function _Pv(_qv) {
var _fe = document.getElementById(_rv);
var _sv = _fe.parentNode;
var _tv = document.createElement("div");
_uv = "gm4html5_input_ID";
_tv.setAttribute("class", "gm4html5_login");
_tv.setAttribute("id", _uv);
_sv.insertBefore(_tv, _fe.nextSibling);
_tv.innerHTML = "" + "" + "";
_vv();
_wv = !0;
var _Qv = document.getElementById("gm4html5_input_message_id");
var _Rv = document.getElementById("gm4html5_input_text_id");
_Qv.innerHTML = _qv._zv[0];
_Rv.value = _qv._zv[1];
var _Sv = document.getElementById("gm4html5_input_ok_button_id");
_Sv.onmouseup = function() {
var text = _Rv.value;
var _Cv = _Dv(_uv);
if (!_Cv) return;
_Cv._Av = "";
_Cv._Bv = "";
_Cv.value = parseFloat(text);
_Cv._Ev = text;
_Cv._Fv = !0;
_Cv._Gv = _Hv;
_sv.removeChild(_tv);
_wv = !1;
_Iv();
_Jv(_qv.id)
};
var _Kv = document.getElementById("gm4html5_input_cancel_button_id");
_Kv.onmouseup = function() {
_sv.removeChild(_tv);
_wv = !1;
var _Cv = _Dv(_uv);
if (!_Cv) return;
_Cv._Av = "";
_Cv._Bv = "";
_Cv.value = 0;
_Cv._Ev = "";
_Cv._Fv = !0;
_Cv._Gv = _Lv;
_Iv();
_Jv(_qv.id)
};
_Mv();
_Nv._yn(_qv.id, null, _Ov, _uv)
}
function _Tv(_qv) {
var _fe = document.getElementById(_rv);
var _sv = _fe.parentNode;
var _tv = document.createElement("div");
_uv = "gm4html5_question_ID";
_tv.setAttribute("class", "gm4html5_login");
_tv.setAttribute("id", _uv);
_sv.insertBefore(_tv, _fe.nextSibling);
_tv.innerHTML = "" + "" + " | " + "
" + "
" + "" + "";
_vv();
_wv = !0;
var _Uv = document.getElementById("gm4html5_question_message_id");
_Uv.innerHTML = _qv._zv[0];
var _Sv = document.getElementById("gm4html5_question_yes_button_id");
_Sv.onmouseup = function() {
var _Cv = _Dv(_uv);
if (!_Cv) return;
_Cv._Av = "";
_Cv._Bv = "";
_Cv.value = 1;
_Cv._Ev = "1";
_Cv._Fv = !0;
_Cv._Gv = _Hv;
_sv.removeChild(_tv);
_wv = !1;
_Iv();
_Jv(_qv.id)
};
var _Kv = document.getElementById("gm4html5_question_no_button_id");
_Kv.onmouseup = function() {
_sv.removeChild(_tv);
_wv = !1;
var _Cv = _Dv(_uv);
if (!_Cv) return;
_Cv._Av = "";
_Cv._Bv = "";
_Cv.value = 0;
_Cv._Ev = "0";
_Cv._Fv = !0;
_Cv._Gv = _Lv;
_Iv();
_Jv(_qv.id)
};
_Mv();
_Nv._yn(_qv.id, null, _Ov, _uv)
}
function _Vv(_qv) {
var _fe = document.getElementById(_rv);
var _sv = _fe.parentNode;
var _tv = document.createElement("div");
_uv = "gm4html5_message_ID";
_tv.setAttribute("class", "gm4html5_login");
_tv.setAttribute("id", _uv);
_sv.insertBefore(_tv, _fe.nextSibling);
_tv.innerHTML = "" + "" + " | " + "
" + "
" + "";
_vv();
_wv = !0;
var _Uv = document.getElementById("gm4html5_message_message_id");
_Uv.innerHTML = _qv._zv[0];
var _Sv = document.getElementById("gm4html5_message_ok_button_id");
_Sv.onmouseup = function() {
var _Cv = _Dv(_uv);
if (!_Cv) return;
_Cv._Av = "";
_Cv._Bv = "";
_Cv.value = 1;
_Cv._Ev = "1";
_Cv._Fv = !0;
_Cv._Gv = 1;
_sv.removeChild(_tv);
_wv = !1;
_Iv();
_Jv(_qv.id)
};
_Mv();
_Nv._yn(_qv.id, null, _Ov, _uv)
}
function _Wv() {
if (_Xv.length > 0) {
switch (_Xv[0].type) {
case _2v:
_pv(_Xv[0]);
break;
case _3v:
_Pv(_Xv[0]);
break;
case _4v:
_Tv(_Xv[0]);
break;
case _5v:
_Vv(_Xv[0]);
break
}
}
}
function _Jv(_dn) {
var index = -1;
for (var _u2 = 0; _u2 < _Xv.length; ++_u2) {
if (_Xv[_u2].id == _dn) {
index = _u2;
break
}
}
if (index >= 0) {
_Xv.splice(index, 1)
}
_Wv()
}
function _Mv() {
if (_wv) {
var login = document.getElementById(_uv);
var _y2 = login.offsetWidth;
var _z2 = login.offsetHeight;
var _Cf = (canvas.width - _y2) / 2;
var _Ef = (canvas.height - _z2) / 2;
_qm = new _Yv();
_pm(canvas, _qm);
login.style.left = ~~ (_Cf + _qm.left) + "px";
login.style.top = ~~ (_Ef + _qm.top) + "px"
}
}
function _Zv(__v) {
return __v.substr(0, __v.indexOf("("))
}
function _fv(_0w) {
var _1w = arguments.callee.caller;
var _9o = "Error: " + _0w + _2w(13) + "--------------------------------------------------------------------" + _2w(13);
while (_1w) {
var name = _2w(9) + _Zv(_1w.toString());
_9o += name + '(';
for (var _u2 = 0; _u2 < _1w.arguments.length; _u2++) {
if (_u2 != 0) {
_9o += ', '
}
if (typeof _1w.arguments[_u2] == "string") {
_9o += '"' + _1w.arguments[_u2].toString() + '"'
} else if (typeof _1w.arguments[_u2] == "number") {
_9o += _1w.arguments[_u2].toString()
} else {
if (_1w.arguments[_u2] == undefined) {
_9o += "[undefined]"
} else if (_1w.arguments[_u2] == null) {
_9o += "[null]"
} else if (_1w.arguments[_u2].__type) {
_9o += _1w.arguments[_u2].__type
} else {
_9o += "[unknown]"
}
}
}
_9o += ')' + _2w(13);
_1w = _1w.caller
}
debug(_9o)
}
var _3w = 3;
var _4w = -1;
var _5w = "IDLE";
var _6w = "PROCESSING";
var _7w = "AUTHORISED";
var _8w = "FAILED";
var _9w = [];
var _aw;
var _bw = 0;
var g_fbOAuthToken = "";
function _cw() {
FB.api('/me/permissions', function(response) {
debug("fbQueryPermissions response:");
try {
var text = JSON.stringify(response);
debug(text)
} catch (e) {}
_9w = [];
var data = response["data"];
if (data != undefined) {
var length = data.length;
for (_u2 = 0; _u2 < length; _u2++) {
var _Zn = data[_u2];
var _dw = _Zn["permission"];
var status = _Zn["status"];
if (_dw != undefined && status == "granted") {
_9w.push(_dw)
}
}
}
debug("current permissions: " + _9w)
})
}
function _ew(response) {
try {
var text = JSON.stringify(response);
debug("facebook login response:");
debug(text)
} catch (e) {}
if (response.status === 'connected') {
_fw = response.authResponse.userID;
g_fbOAuthToken = response.authResponse.accessToken;
_gw = _7w;
_cw()
} else if (response.status === 'not_authorized') {
_gw = 'DENIED'
} else {
_gw = _8w
}
}
var _hw = {
appId: 0,
status: !0,
cookie: !0,
xfbml: !0,
version: 'v2.0'
};
function _iw() {
_hw.appId = g_fbAppId;
FB.init(_hw);
FB.getLoginStatus(_ew);
FB.Canvas.setAutoGrow(100);
if (_cv._W4 && _cv._W4._X4 && _cv._W4._jw) {
_cv._W4._jw()
}
}
function _kw(_Bp) {
var _lw, id = 'facebook-jssdk',
_mw = _Bp.getElementsByTagName('script')[0];
if (_Bp.getElementById(id)) {
return
}
_lw = _Bp.createElement('script');
_lw.id = id;
_lw._nw = !0;
_lw.src = "//connect.facebook.net/en_US/sdk.js";
_mw.parentNode.insertBefore(_lw, _mw)
}
function _ow(_pw) {
if (typeof(_cv._W4.GenerateSpotifyApp) != "undefined") {} else {
var _fe = document.getElementById(_rv);
var _sv = _fe.parentNode;
var _tv = document.createElement("div");
_tv.setAttribute("id", "fb-root");
_sv.insertBefore(_tv, _fe.nextSibling);
g_fbAppId = _pw;
window.fbAsyncInit = _iw;
_kw(document)
}
}
function _qw(_rw) {
var _sw = 'https://graph.facebook.com/me';
var _tw = _sw + '?access_token=' + g_fbOAuthToken;
var _uw = new XMLHttpRequest();
_uw.open('GET', _tw);
_uw.ontimeout = function(_vw) {
_gw = 'FAILED'
};
_uw.onerror = function(_vw) {
_gw = 'FAILED'
};
_uw.onreadystatechange = function() {
if (_uw.readyState != 4) return;
var data = JSON.parse(_uw.responseText);
_ww(data);
var _xw = eval(_rw);
if (_xw) {
_xw(data)
}
};
_uw.send(null)
}
function _ww(data) {
_fw = data.id;
_gw = 'AUTHORISED'
}
function _yw(_rw) {
if (typeof(getSpotifyApi) != "undefined") {
var _zw = getSpotifyApi(1);
var _Aw = _zw.require('sp://import/scripts/api/auth');
var _Bw = ['user_about_me', 'publish_stream'];
var _Cw = _cv._W4._Dw;
_gw = 'PROCESSING';
_Aw.authenticateWithFacebook(_Cw, _Bw, {
onSuccess: function(accessToken, _Ew) {
g_fbOAuthToken = accessToken;
_qw(_rw)
},
onFailure: function(error) {
console.log('Authentication failed with error: ' + error);
_gw = 'FAILED'
},
onComplete: function() {}
})
}
}
function _Fw(_Gw) {
if (typeof(_cv._W4.GenerateSpotifyApp) == "undefined") {
if (typeof(FB) == 'undefined') {
console.log("Facebook initialisation has not completed");
return
}
}
_gw = _6w;
if (typeof(_cv._W4.GenerateSpotifyApp) != "undefined") {
_yw(_Gw)
} else {
var _bv = 0;
var _Hw = '';
if (_Gw >= 0) {
_bv = _zn(_Gw);
for (var _u2 = 0; _u2 < _bv; _u2++) {
var _9o = _En(_Gw, _u2);
_Hw += _9o;
if (_u2 < _bv - 1) {
_Hw += ','
}
}
FB.login(_ew, {
scope: _Hw
})
} else {
FB.login(_ew)
}
}
}
function _Iw(_Jw, _Kw, _Lw, _Mw) {
var _Nw = {};
if (_Lw != -1) {
var _Ow = __n(_Lw);
while (_Un(_Lw, _Ow)) {
var _Pw = _o6(_Lw, _Ow);
_Nw[_Ow] = _Pw;
_Ow = _Xn(_Lw, _Ow)
}
}
_Qw = _Mw;
if (_Mw != -1) {
_Rn(_Mw)
}
FB.api(_Jw, _Kw, _Nw, _Rw)
}
function _Rw(data) {
if (_Qw != -1) {
_Sw(data, _Qw);
try {
var text = JSON.stringify(data);
_96(_Qw, "response_text", text)
} catch (e) {}
}
debug("response received from facebook_graph_request")
}
function _Tw(_Jw, _Lw, _Mw) {
var _Nw = {};
_Nw.method = _Jw;
if (_Lw != -1) {
var _Ow = __n(_Lw);
while (_Un(_Lw, _Ow)) {
var _Pw = _o6(_Lw, _Ow);
_Nw[_Ow] = _Pw;
_Ow = _Xn(_Lw, _Ow)
}
}
if (_Mw != -1) {
_Rn(_Mw)
}
FB.ui(_Nw, function(response) {
_Uw(response,
_Mw)
});
return 1
}
function _Uw(data, _Vw) {
if (_Vw != -1) {
_Sw(data, _Vw)
}
debug("response received from facebook_dialog:");
try {
var text = JSON.stringify(data);
debug(text)
} catch (e) {}
}
function _Ww() {
this._Xw = "";
this._Yw = 0;
this._Zw = !1;
this.__w = !1;
this._0x = ""
}
_Ww.prototype._1x = function() {
var _9o;
var _u2 = this._Yw;
var _ov = this._Xw;
while (_u2 < _ov.length) {
var _v2 = _ov.charCodeAt(_u2);
if (_v2 == 0x0d || _v2 == 0x0a) {
_u2++;
_v2 = _ov.charCodeAt(_u2);
if (_v2 == 0x0d || _v2 == 0x0a) {
_u2++
}
break
} else {
_u2++
}
}
this._Yw = _u2
};
_Ww.prototype._2x = function() {
var _9o;
var _u2 = this._Yw;
var _ov = this._Xw;
while (_u2 < _ov.length) {
var _v2 = _ov.charCodeAt(_u2);
if (_v2 == 0x0d || _v2 == 0x0a || _v2 == 0x09 || _v2 == 0x20) {
_u2++
} else {
break
}
}
this._Yw = _u2
};
function _3x(_4x) {
var _5x = _6x._hn(_4x);
if (!_5x) {
_ym("Error: Illegal file handle");
return
}
if (_5x._0x != null) {
if (_5x.__w) {
_7x(_5x._0x, _5x._Xw)
}
}
_6x._Qn(_4x)
}
function _8x(_9x) {
_5x = new _Ww();
_5x._0x = _9x;
_5x._Xw = "";
_5x._Yw = 0;
_5x._ax = !0;
return _6x._yn(_5x)
}
function _bx(_4x, _cx) {
var _5x = _6x._hn(_4x);
if (!_5x) {
_ym("Error: Illegal file handle");
return
}
if (!_5x._ax) {
_ym("Error: File " + _5x._0x + " has not been opened with WRITE permisions");
return
}
_5x._Xw += _lv = _jv(_cx);
_5x.__w = !0;
_5x._Yw = _5x._Xw.length
}
function _dx(_9x) {
var _ex = _fx(_9x, !0);
if (_ex == !0) return !0;
return _fx(_9x, !1)
}
function _gx(_hx) {
var _on;
switch (typeof(_hx)) {
case "object":
if (_hx instanceof Array) {
_on = new _Kn(_Jn, _ix(_hx))
} else {
_on = new _Kn(_In, _jx(_hx))
}
break;
case "boolean":
_on = _hx ? 1 : 0;
break;
case "number":
case "string":
_on = _hx;
break;
default:
_on = _hx.toString();
break
}
return _on
}
function _ix(_Ln) {
var _on = _un();
for (var _u2 = 0; _u2 < _Ln.length; ++_u2) {
var _8h = _gx(_Ln[_u2]);
_Bn(_on, _8h)
}
return _on
}
function _jx(_Ln) {
var _on = _86();
for (var _kx in _Ln) {
var _Wg = _Ln[_kx];
var _8h = _gx(_Wg);
_96(_on, _kx, _8h)
}
return _on
}
function _lx(_hx) {
var _on;
switch (typeof(_hx)) {
case "object":
switch (_hx._Mn) {
case _Jn:
_on = _mx(_hx.Object);
break;
case _In:
_on = _nx(_hx.Object);
break;
default:
_on = _hx.toString();
break
}
break;
case "number":
case "string":
_on = _hx;
break;
default:
_on = _hx.toString();
break
}
return _on
}
function _mx(_ox) {
var _on = [];
var _px = _xn._hn(_ox);
if (_px) {
for (var _u2 = 0; _u2 < _px._Hn.length; ++_u2) {
if (_px._Hn[_u2] != undefined) _on.push(_lx(_px._Hn[_u2]))
}
}
return _on
}
function _nx(_qx) {
var _on = {};
var _Nn = _On._hn(_qx);
if (_Nn) {
for (var _u2 in _Nn) {
if (!_Nn.hasOwnProperty(_u2)) continue;
if (_Nn[_u2] != undefined) _on[_u2] = _lx(_Nn[_u2])
}
}
return _on
}
function _Fa(_rx) {
_mv._sx = _rx
}
function _Ea(_rx) {
_mv._tx = _rx
}
function _Ga(_ux) {
_mv._vx = _ux
}
function _O8(_ye, _ze, _ev) {
_mv._wx(_ev.toString(), _ye, _ze, -1, -1, 0, 1, 1)
}
var _xx = _yx;
function _yx(_ye, _ze, _ev, _zx, _Ax, _Bx, _Cx, _fj) {
_iv("draw_text_color() only uses the 1st colour");
var _Dx = _cj;
var _Ex = _Fx;
_cj = _fj;
_J8(_zx);
_mv._wx(_ev.toString(), _ye, _ze, -1, -1, 0, 1, 1);
_cj = _Dx;
_J8(_Ex)
}
var _Gx = _Hx;
function _Hx(_ye, _ze, _ev, _Ix, _6n, _zx, _Ax, _Bx, _Cx, _fj) {
_iv("draw_text_ext_color() only uses the 1st colour");
var _Dx = _cj;
var _Ex = _Fx;
_cj = _fj;
_J8(_zx);
_mv._wx(_ev.toString(), _ye, _ze, _Ix, _6n, 0, 1, 1);
_cj = _Dx;
_J8(_Ex)
}
function _qd(_ye, _ze, _ev, _fr, _gr, _Ce) {
_mv._wx(_ev.toString(), _ye, _ze, -1, -1, _Ce, _fr, _gr)
}
var _Jx = _Kx;
function _Kx(_ye, _ze, _ev, _Ix, _6n, _fr, _gr, _Ce, _zx, _Ax, _Bx, _Cx, _fj) {
_iv("draw_text_ext_transformed_color() only uses the 1st colour");
var _Dx = _cj;
var _Ex = _Fx;
_cj = _fj;
_J8(_zx);
_mv._wx(_ev.toString(), _ye, _ze, _Ix, _6n, _Ce, _fr, _gr);
_cj = _Dx;
_J8(_Ex)
}
var _Lx = _Mx;
function _Mx(_ye, _ze, _ev, _fr, _gr, _Ce, _zx, _Ax, _Bx, _Cx, _fj) {
_iv("draw_text_transformed_color() only uses the 1st colour");
var _Dx = _cj;
var _Ex = _Fx;
_cj = _fj;
_J8(_zx);
_mv._wx(_ev.toString(), _ye, _ze, -1, -1, _Ce, _fr, _gr);
_cj = _Dx;
_J8(_Ex)
}
function _Nx(_me, _Cj, _Ox, _Px, _Qx, _Rx, _Sx) {
var _Tx = new _Ux();
_Tx._Vx = !0;
_Tx._m1 = "fnt_" + _me;
_Tx._Wx = _me;
_Tx._k2 = _Cj;
_Tx.bold = _Ox;
_Tx._l2 = _Px;
_Tx._m2 = _Qx;
_Tx._n2 = _Rx;
_Tx._Xx = !1;
if (_me.toLowerCase().lastIndexOf(".ttf") != -1) {
_Tx._Yx = new _Zx();
_Tx._Yx.onload = function() {
_Tx._Xx = !0
};
_Tx._Yx.onerror = function(err) {
alert(err)
};
_Tx._Yx.src = "html5game/" + _me;
_Tx.__x = _Cj + "px " + _Tx._Yx._0y + " "
} else {
_Tx.__x = _Cj + "px " + _me + " ";
_Tx._Xx = !0
} if (_Ox) _Tx.__x = _Tx.__x + "bold ";
if (_Px) _Tx.__x = _Tx.__x + "Italic ";
if (_Sx) {
return _mv._1y(_Tx)
} else {
return _Tx
}
}
var _2y = 0,
_3y = 1,
_4y = 2,
_5y = 3,
_6y = 4,
_7y = 5,
_8y = 6,
_9y = 7,
_ay = 8,
_by = 9;
function _1b(_Ln) {
return _cy._hn(_Ln)._dy.length
}
function _ey() {
var _fy = _gy("hiscores_data_", !0);
if (_fy != null) {
_hy = JSON.parse(_fy);
var _u2;
for (_u2 = 0; _u2 < _iy; _u2++) {
_jy[_u2] = _hy[_u2].name;
_ky[_u2] = _hy[_u2].value
}
}
}
function _ly() {
_ky[0] = _ky[1] = _ky[2] = _ky[3] = _ky[4] = _ky[5] = _ky[6] = _ky[7] = _ky[8] = _ky[9] = 0;
_jy[0] = _jy[1] = _jy[2] = _jy[3] = _jy[4] = _jy[5] = _jy[6] = _jy[7] = _jy[8] = _jy[9] = _my
}
function _ny(_oy, _py, _qy) {
var _ry, _sy, _ty, _uy, _vy, _wy;
_ry = (_oy >> 16) & 0xff;
_ty = (_oy >> 8) & 0xff;
_vy = (_oy & 0xff);
_sy = (_py >> 16) & 0xff;
_uy = (_py >> 8) & 0xff;
_wy = (_py & 0xff);
var _xy = 1.0 - _qy;
var _uf = _sn(_ry * _xy + _sy * _qy);
var _Vg = _sn(_ty * _xy + _uy * _qy);
var _xf = _sn(_vy * _xy + _wy * _qy);
var _Dg = ((_uf & 0xff) << 16) | ((_Vg & 0xff) << 8) | (_xf & 0xff);
return _Dg
}
function _yy(_oy, _py, _qy) {
return _ny(_oy, _py, _qy)
}
function _zy(_Ay, _By, _Cy, _Dy) {
var _Ey = _Fy._hn(_Cy);
if ((_Ey != null) && (_Ey != undefined)) {
var _Gy = _Ey._Hy[_Dy];
if ((_Gy != null) && (_Gy != undefined)) {
_Gy._Iy(_Ay, _Ay)
}
}
}
var _Jy = !0;
var _Ky = debug;
function _Ly() {
return "en"
}
function _My(data) {
var _Ny = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
var _Oy, _Py, _Qy, _Ry, _Sy, _Ty, _Uy, _Vy;
var _u2 = 0;
var _Wy = 0;
var _Xy = "";
var _Yy = [];
if (!data) {
return data
}
data += '';
do {
_Ry = _Ny.indexOf(data.charAt(_u2++));
_Sy = _Ny.indexOf(data.charAt(_u2++));
_Ty = _Ny.indexOf(data.charAt(_u2++));
_Uy = _Ny.indexOf(data.charAt(_u2++));
_Vy = _Ry << 18 | _Sy << 12 | _Ty << 6 | _Uy;
_Oy = _Vy >> 16 & 0xff;
_Py = _Vy >> 8 & 0xff;
_Qy = _Vy & 0xff;
if (_Ty == 64) {
_Yy[_Wy++] = String.fromCharCode(_Oy);
} else if (_Uy == 64) {
_Yy[_Wy++] = String.fromCharCode(_Oy, _Py)
} else {
_Yy[_Wy++] = String.fromCharCode(_Oy, _Py, _Qy)
}
} while (_u2 < data.length);
_Xy = _Yy.join('');
return _Xy
}
function _Zy(_vw) {
if (_cv._W4.TrackingID) {
_gaq.push(['_trackEvent',
'GMEvent', _vw
])
} else if (_cv._W4.FlurryId) {
FlurryAgent.logEvent(_vw)
}
}
function __y(_vw) {
var arguments = __y.arguments;
if (_cv._W4.TrackingID) {
if (arguments.length >= 3) {
_gaq.push(['_trackEvent', 'GMEvent', _vw, arguments[1], arguments[2]])
} else {
_gaq.push(['_trackEvent', 'GMEvent', _vw])
}
} else if (_cv._W4.FlurryId) {
if ((arguments.length >= 3) && (arguments.length & 1) == 1) {
var _0z = {};
var _1z = arguments.length - 1;
if (_1z > 10) {
_1z = 10
}
for (var _u2 = 0; _u2 < _1z; _u2 += 2) {
_0z[arguments[_u2 + 1]] = arguments[_u2 + 2].toString()
}
FlurryAgent.logEvent(_vw,
_0z)
} else {
FlurryAgent.logEvent(_vw)
}
}
}
function _2z(_3z) {
return _4z(_3z)
}
var _5z = 0;
var _6z = "";
function _7z(_ov) {
return _8z(_9z(_az(_ov)))
}
function _9z(_ov) {
return _bz(_cz(_dz(_ov), _ov.length * 8))
}
function _8z(_ez) {
try {
_5z
} catch (e) {
_5z = 0
}
var _fz = _5z ? "0123456789ABCDEF" : "0123456789abcdef";
var _gz = "";
var _w2;
for (var _u2 = 0; _u2 < _ez.length; _u2++) {
_w2 = _ez.charCodeAt(_u2);
_gz += _fz.charAt((_w2 >>> 4) & 0x0F) + _fz.charAt(_w2 & 0x0F)
}
return _gz
}
function _az(_ez) {
var _gz = "";
var _u2 = -1;
var _w2, _x2;
while (++_u2 < _ez.length) {
_w2 = _ez.charCodeAt(_u2);
_x2 = _u2 + 1 < _ez.length ? _ez.charCodeAt(_u2 + 1) : 0;
if (0xD800 <= _w2 && _w2 <= 0xDBFF && 0xDC00 <= _x2 && _x2 <= 0xDFFF) {
_w2 = 0x10000 + ((_w2 & 0x03FF) << 10) + (_x2 & 0x03FF);
_u2++
}
if (_w2 <= 0x7F) _gz += String.fromCharCode(_w2);
else if (_w2 <= 0x7FF) _gz += String.fromCharCode(0xC0 | ((_w2 >>> 6) & 0x1F), 0x80 | (_w2 & 0x3F));
else if (_w2 <= 0xFFFF) _gz += String.fromCharCode(0xE0 | ((_w2 >>> 12) & 0x0F), 0x80 | ((_w2 >>> 6) & 0x3F), 0x80 | (_w2 & 0x3F));
else if (_w2 <= 0x1FFFFF) _gz += String.fromCharCode(0xF0 | ((_w2 >>> 18) & 0x07), 0x80 | ((_w2 >>> 12) & 0x3F), 0x80 | ((_w2 >>> 6) & 0x3F), 0x80 | (_w2 & 0x3F))
}
return _gz
}
function _dz(_ez) {
var _gz = Array(_ez.length >> 2);
for (var _u2 = 0; _u2 < _gz.length; _u2++) _gz[_u2] = 0;
for (var _u2 = 0; _u2 < _ez.length * 8; _u2 += 8) _gz[_u2 >> 5] |= (_ez.charCodeAt(_u2 / 8) & 0xFF) << (_u2 % 32);
return _gz
}
function _bz(_ez) {
var _gz = "";
for (var _u2 = 0; _u2 < _ez.length * 32; _u2 += 8) _gz += String.fromCharCode((_ez[_u2 >> 5] >>> (_u2 % 32)) & 0xFF);
return _gz
}
function _cz(_w2, _bv) {
_w2[_bv >> 5] |= 0x80 << ((_bv) % 32);
_w2[(((_bv + 64) >>> 9) << 4) + 14] = _bv;
var _Wg = 1732584193;
var _xf = -271733879;
var _v2 = -1732584194;
var _Bp = 271733878;
for (var _u2 = 0; _u2 < _w2.length; _u2 += 16) {
var _hz = _Wg;
var _iz = _xf;
var _jz = _v2;
var _kz = _Bp;
_Wg = _lz(_Wg, _xf, _v2, _Bp, _w2[_u2 + 0], 7, -680876936);
_Bp = _lz(_Bp, _Wg, _xf, _v2, _w2[_u2 + 1], 12, -389564586);
_v2 = _lz(_v2, _Bp, _Wg, _xf, _w2[_u2 + 2], 17, 606105819);
_xf = _lz(_xf, _v2, _Bp, _Wg, _w2[_u2 + 3], 22, -1044525330);
_Wg = _lz(_Wg, _xf, _v2, _Bp, _w2[_u2 + 4], 7, -176418897);
_Bp = _lz(_Bp, _Wg, _xf, _v2, _w2[_u2 + 5], 12, 1200080426);
_v2 = _lz(_v2, _Bp, _Wg, _xf, _w2[_u2 + 6], 17, -1473231341);
_xf = _lz(_xf, _v2, _Bp, _Wg, _w2[_u2 + 7], 22, -45705983);
_Wg = _lz(_Wg, _xf, _v2, _Bp, _w2[_u2 + 8], 7, 1770035416);
_Bp = _lz(_Bp, _Wg, _xf, _v2, _w2[_u2 + 9], 12, -1958414417);
_v2 = _lz(_v2, _Bp, _Wg, _xf, _w2[_u2 + 10], 17, -42063);
_xf = _lz(_xf, _v2, _Bp, _Wg, _w2[_u2 + 11], 22, -1990404162);
_Wg = _lz(_Wg, _xf, _v2, _Bp, _w2[_u2 + 12], 7, 1804603682);
_Bp = _lz(_Bp, _Wg, _xf, _v2, _w2[_u2 + 13], 12, -40341101);
_v2 = _lz(_v2, _Bp, _Wg, _xf, _w2[_u2 + 14], 17, -1502002290);
_xf = _lz(_xf, _v2, _Bp, _Wg, _w2[_u2 + 15], 22, 1236535329);
_Wg = _mz(_Wg, _xf, _v2, _Bp, _w2[_u2 + 1], 5, -165796510);
_Bp = _mz(_Bp, _Wg, _xf, _v2, _w2[_u2 + 6], 9, -1069501632);
_v2 = _mz(_v2, _Bp, _Wg, _xf, _w2[_u2 + 11], 14, 643717713);
_xf = _mz(_xf, _v2, _Bp, _Wg, _w2[_u2 + 0], 20, -373897302);
_Wg = _mz(_Wg, _xf, _v2, _Bp, _w2[_u2 + 5], 5, -701558691);
_Bp = _mz(_Bp, _Wg, _xf, _v2, _w2[_u2 + 10], 9, 38016083);
_v2 = _mz(_v2, _Bp, _Wg, _xf, _w2[_u2 + 15], 14, -660478335);
_xf = _mz(_xf, _v2, _Bp, _Wg, _w2[_u2 + 4], 20, -405537848);
_Wg = _mz(_Wg, _xf, _v2, _Bp, _w2[_u2 + 9], 5, 568446438);
_Bp = _mz(_Bp, _Wg, _xf, _v2, _w2[_u2 + 14], 9, -1019803690);
_v2 = _mz(_v2, _Bp, _Wg, _xf, _w2[_u2 + 3], 14, -187363961);
_xf = _mz(_xf, _v2, _Bp, _Wg, _w2[_u2 + 8], 20, 1163531501);
_Wg = _mz(_Wg, _xf, _v2, _Bp, _w2[_u2 + 13], 5, -1444681467);
_Bp = _mz(_Bp,
_Wg, _xf, _v2, _w2[_u2 + 2], 9, -51403784);
_v2 = _mz(_v2, _Bp, _Wg, _xf, _w2[_u2 + 7], 14, 1735328473);
_xf = _mz(_xf, _v2, _Bp, _Wg, _w2[_u2 + 12], 20, -1926607734);
_Wg = _nz(_Wg, _xf, _v2, _Bp, _w2[_u2 + 5], 4, -378558);
_Bp = _nz(_Bp, _Wg, _xf, _v2, _w2[_u2 + 8], 11, -2022574463);
_v2 = _nz(_v2, _Bp, _Wg, _xf, _w2[_u2 + 11], 16, 1839030562);
_xf = _nz(_xf, _v2, _Bp, _Wg, _w2[_u2 + 14], 23, -35309556);
_Wg = _nz(_Wg, _xf, _v2, _Bp, _w2[_u2 + 1], 4, -1530992060);
_Bp = _nz(_Bp, _Wg, _xf, _v2, _w2[_u2 + 4], 11, 1272893353);
_v2 = _nz(_v2, _Bp, _Wg, _xf, _w2[_u2 + 7], 16, -155497632);
_xf = _nz(_xf, _v2,
_Bp, _Wg, _w2[_u2 + 10], 23, -1094730640);
_Wg = _nz(_Wg, _xf, _v2, _Bp, _w2[_u2 + 13], 4, 681279174);
_Bp = _nz(_Bp, _Wg, _xf, _v2, _w2[_u2 + 0], 11, -358537222);
_v2 = _nz(_v2, _Bp, _Wg, _xf, _w2[_u2 + 3], 16, -722521979);
_xf = _nz(_xf, _v2, _Bp, _Wg, _w2[_u2 + 6], 23, 76029189);
_Wg = _nz(_Wg, _xf, _v2, _Bp, _w2[_u2 + 9], 4, -640364487);
_Bp = _nz(_Bp, _Wg, _xf, _v2, _w2[_u2 + 12], 11, -421815835);
_v2 = _nz(_v2, _Bp, _Wg, _xf, _w2[_u2 + 15], 16, 530742520);
_xf = _nz(_xf, _v2, _Bp, _Wg, _w2[_u2 + 2], 23, -995338651);
_Wg = _oz(_Wg, _xf, _v2, _Bp, _w2[_u2 + 0], 6, -198630844);
_Bp = _oz(_Bp, _Wg, _xf,
_v2, _w2[_u2 + 7], 10, 1126891415);
_v2 = _oz(_v2, _Bp, _Wg, _xf, _w2[_u2 + 14], 15, -1416354905);
_xf = _oz(_xf, _v2, _Bp, _Wg, _w2[_u2 + 5], 21, -57434055);
_Wg = _oz(_Wg, _xf, _v2, _Bp, _w2[_u2 + 12], 6, 1700485571);
_Bp = _oz(_Bp, _Wg, _xf, _v2, _w2[_u2 + 3], 10, -1894986606);
_v2 = _oz(_v2, _Bp, _Wg, _xf, _w2[_u2 + 10], 15, -1051523);
_xf = _oz(_xf, _v2, _Bp, _Wg, _w2[_u2 + 1], 21, -2054922799);
_Wg = _oz(_Wg, _xf, _v2, _Bp, _w2[_u2 + 8], 6, 1873313359);
_Bp = _oz(_Bp, _Wg, _xf, _v2, _w2[_u2 + 15], 10, -30611744);
_v2 = _oz(_v2, _Bp, _Wg, _xf, _w2[_u2 + 6], 15, -1560198380);
_xf = _oz(_xf, _v2, _Bp,
_Wg, _w2[_u2 + 13], 21, 1309151649);
_Wg = _oz(_Wg, _xf, _v2, _Bp, _w2[_u2 + 4], 6, -145523070);
_Bp = _oz(_Bp, _Wg, _xf, _v2, _w2[_u2 + 11], 10, -1120210379);
_v2 = _oz(_v2, _Bp, _Wg, _xf, _w2[_u2 + 2], 15, 718787259);
_xf = _oz(_xf, _v2, _Bp, _Wg, _w2[_u2 + 9], 21, -343485551);
_Wg = _pz(_Wg, _hz);
_xf = _pz(_xf, _iz);
_v2 = _pz(_v2, _jz);
_Bp = _pz(_Bp, _kz)
}
return Array(_Wg, _xf, _v2, _Bp)
}
function _qz(_rz, _Wg, _xf, _w2, _ov, _wf) {
return _pz(_sz(_pz(_pz(_Wg, _rz), _pz(_w2, _wf)), _ov), _xf)
}
function _lz(_Wg, _xf, _v2, _Bp, _w2, _ov, _wf) {
return _qz((_xf & _v2) | ((~_xf) & _Bp), _Wg, _xf,
_w2, _ov, _wf)
}
function _mz(_Wg, _xf, _v2, _Bp, _w2, _ov, _wf) {
return _qz((_xf & _Bp) | (_v2 & (~_Bp)), _Wg, _xf, _w2, _ov, _wf)
}
function _nz(_Wg, _xf, _v2, _Bp, _w2, _ov, _wf) {
return _qz(_xf ^ _v2 ^ _Bp, _Wg, _xf, _w2, _ov, _wf)
}
function _oz(_Wg, _xf, _v2, _Bp, _w2, _ov, _wf) {
return _qz(_v2 ^ (_xf | (~_Bp)), _Wg, _xf, _w2, _ov, _wf)
}
function _pz(_w2, _x2) {
var _tz = (_w2 & 0xFFFF) + (_x2 & 0xFFFF);
var _uz = (_w2 >> 16) + (_x2 >> 16) + (_tz >> 16);
return (_uz << 16) | (_tz & 0xFFFF)
}
function _sz(_vz, _wz) {
return (_vz << _wz) | (_vz >>> (32 - _wz))
}
function _4z(_ov) {
return _8z(_xz(_az(_ov)))
}
function _xz(_ov) {
return _yz(_zz(_Az(_ov), _ov.length * 8))
}
function _Az(_ez) {
var _gz = Array(_ez.length >> 2);
for (var _u2 = 0; _u2 < _gz.length; _u2++) _gz[_u2] = 0;
for (var _u2 = 0; _u2 < _ez.length * 8; _u2 += 8) _gz[_u2 >> 5] |= (_ez.charCodeAt(_u2 / 8) & 0xFF) << (24 - _u2 % 32);
return _gz
}
function _yz(_ez) {
var _gz = "";
for (var _u2 = 0; _u2 < _ez.length * 32; _u2 += 8) _gz += String.fromCharCode((_ez[_u2 >> 5] >>> (24 - _u2 % 32)) & 0xFF);
return _gz
}
function _zz(_w2, _bv) {
_w2[_bv >> 5] |= 0x80 << (24 - _bv % 32);
_w2[((_bv + 64 >> 9) << 4) + 15] = _bv;
var _y2 = Array(80);
var _Wg = 1732584193;
var _xf = -271733879;
var _v2 = -1732584194;
var _Bp = 271733878;
var e = -1009589776;
for (var _u2 = 0; _u2 < _w2.length; _u2 += 16) {
var _hz = _Wg;
var _iz = _xf;
var _jz = _v2;
var _kz = _Bp;
var _Bz = e;
for (var _Bf = 0; _Bf < 80; _Bf++) {
if (_Bf < 16) _y2[_Bf] = _w2[_u2 + _Bf];
else _y2[_Bf] = _sz(_y2[_Bf - 3] ^ _y2[_Bf - 8] ^ _y2[_Bf - 14] ^ _y2[_Bf - 16], 1);
var _wf = _pz(_pz(_sz(_Wg, 5), _Cz(_Bf, _xf, _v2, _Bp)), _pz(_pz(e, _y2[_Bf]), _Dz(_Bf)));
e = _Bp;
_Bp = _v2;
_v2 = _sz(_xf, 30);
_xf = _Wg;
_Wg = _wf
}
_Wg = _pz(_Wg, _hz);
_xf = _pz(_xf, _iz);
_v2 = _pz(_v2, _jz);
_Bp = _pz(_Bp, _kz);
e = _pz(e, _Bz)
}
return Array(_Wg, _xf, _v2, _Bp, e)
}
function _Cz(_wf,
_xf, _v2, _Bp) {
if (_wf < 20) return (_xf & _v2) | ((~_xf) & _Bp);
if (_wf < 40) return _xf ^ _v2 ^ _Bp;
if (_wf < 60) return (_xf & _v2) | (_xf & _Bp) | (_v2 & _Bp);
return _xf ^ _v2 ^ _Bp
}
function _Dz(_wf) {
return (_wf < 20) ? 1518500249 : (_wf < 40) ? 1859775393 : (_wf < 60) ? -1894007588 : -899497514
}
function _Ez(_me, _Fz) {
for (var index = 0; index < _Fz.length; index++) {
var _Gz = _Fz[index];
if (_Gz._m1 == _me) {
return index
}
}
return -1
}
var _Hz = 1,
_Iz = 2,
_Jz = 3,
_Kz = 4,
_Lz = 5,
_Mz = 6,
_Nz = 7,
_Oz = 8,
_Pz = 9,
_Qz = 10,
_Rz = 11;
var _Sz = 96;
var _Tz = 96;
function _Uz() {
return 0
}
var _Vz = _Wz;
function _Wz(_uj, _fj) {
_9h._Xz();
var _Yz = [];
_Yz[0] = 1;
_Yz[1] = 0;
_Yz[2] = 0;
_Yz[3] = 1;
_Yz[4] = 0;
_Yz[5] = 0;
_9h._Zz(_Yz[0], _Yz[1], _Yz[2], _Yz[3], _Yz[4], _Yz[5]);
if (!_9h.clearRect || _uj != 0 || _fj != 0) {
_9h.globalAlpha = _fj;
_9h.fillStyle = _8p(_gj(_uj), _fj);
_9h.globalCompositeOperation = 'copy';
_9h.fillRect(__z, _0A, _1A, _2A)
} else {
_9h.clearRect(__z, _0A, _1A, _2A)
}
_9h._3A();
}
function _4A(_5A, _6A, _7A) {
return (~~_5A) | (_6A << 8) | (_7A << 16)
}
var _8A = _4A;
var _9A = _9A;
function _aA(_uj) {
return (_uj >> 16) & 0xff
}
var _bA = _aA;
function _cA(_uj) {
return (_uj >> 8) & 0xff
}
var _dA = _cA;
function _eA(_uj) {
return (_uj & 0xff)
}
var _fA = _eA;
function _gA(_uj) {
var _hA = 0.0;
var _iA = 0.0;
var _jA = 0.0;
var _Vf = 0.0;
var _Xf = 0.0;
var _kA = 0.0;
var _Bp = 0.0;
var _gf = 0.0;
_hA = ((_uj >> 16) & 0xff) / 255.0;
_iA = ((_uj >> 8) & 0xff) / 255.0;
_jA = (_uj & 0xff) / 255.0;
_gf = _vf(_vf(_hA, _iA), _jA);
_kA = _tf(_tf(_hA, _iA), _jA);
_Bp = _kA - _gf;
if (_kA == 0) _Xf = 0.0;
else _Xf = 1.0 * _Bp / _kA; if (_Xf == 0) _Vf = 0.0;
else if (_hA == _kA) _Vf = 60.0 * (_iA - _jA) / _Bp;
else if (_iA == _kA) _Vf = 120.0 + 60.0 * (_jA - _hA) / _Bp;
else _Vf = 240.0 + 60.0 * (_hA - _iA) / _Bp; if (_Vf < 0) _Vf = _Vf + 360.0;
var _8h = (Math.floor(_kA * 255.0) & 0xff) << 16;
var _ov = (Math.floor(_Xf * 255.0) & 0xff) << 8;
var _z2 = (Math.floor(_Vf * 255.0 / 360.0)) & 0xff;
return (_8h | _ov | _z2);
}
function _lA(_uj) {
return _gA(_uj) & 0xff
}
var _mA = _lA;
function _nA(_uj) {
return (_gA(_uj) >> 8) & 0xff
}
var _oA = _nA;
function _pA(_uj) {
return (_gA(_uj) >> 16) & 0xff
}
var _qA = _pA;
function _rA(_oy, _py, _sA) {
var _ry = (_oy >> 16) & 0xff;
var _ty = (_oy >> 8) & 0xff;
var _vy = _oy & 0xff;
var _sy = (_py >> 16) & 0xff;
var _uy = (_py >> 8) & 0xff;
var _wy = _py & 0xff;
var _tA = 1.0 - _sA;
var _uf = ~~ (_ry * _tA + _sy * _sA);
var _Vg = ~~ (_ty * _tA + _uy * _sA);
var _xf = ~~ (_vy * _tA + _wy * _sA);
return ((_uf << 16) & 0xff0000) | ((_Vg << 8) & 0xff00) | (_xf & 0xff)
}
var _uA = _rA;
function _vA(_wA, _xA, _qy) {
var _hA = 0.0;
var _iA = 0.0;
var _jA = 0.0;
var _Vf = 0.0;
var _Xf = 0.0;
var _kA = 0.0;
var _1w = 0.0;
var _yA = 0.0;
var _rz = 0.0;
var _wf = 0.0;
var _u2 = 0;
var _zA;
_Vf = _wA * 360.0 / 255.0;
if (_Vf == 360.0) _Vf = 0.0;
_Xf = _xA / 255.0;
_kA = _qy / 255.0;
if (_Xf == 0) {
_hA = _kA;
_iA = _kA;
_jA = _kA
} else {
_Vf = _Vf / 60.0;
_u2 = Math.floor(_Vf);
_1w = _Vf - _u2;
_yA = _kA * (1.0 - _Xf);
_rz = _kA * (1.0 - (_Xf * _1w));
_wf = _kA * (1.0 - (_Xf * (1.0 - _1w)));
switch (_u2) {
case 0:
{
_hA = _kA;
_iA = _wf;
_jA = _yA
}
break;
case 1:
{
_hA = _rz;
_iA = _kA;
_jA = _yA
}
break;
case 2:
{
_hA = _yA;
_iA = _kA;
_jA = _wf
}
break;
case 3:
{
_hA = _yA;
_iA = _rz;
_jA = _kA
}
break;
case 4:
{
_hA = _wf;
_iA = _yA;
_jA = _kA
}
break;
default:
{
_hA = _kA;
_iA = _yA;
_jA = _rz
}
}
}
_zA = Math.floor(_hA * 255.0) | (Math.floor(_iA * 255.0) << 8) | (Math.floor(_jA * 255.0) << 16);
return _zA
}
var _AA = _vA;
function _K8(_fj) {
if (_fj < 0) {
_fj = 0
}
if (_fj > 1) {
_fj = 1
}
_cj = _fj;
_BA = _8p(_dj, _cj)
}
function _CA() {
return _cj
}
function _DA() {
return _Fx
}
var _EA = _DA;
function _J8(_ej) {
_Fx = _ej;
_dj = _gj(_ej);
_FA = _GA(_dj);
_BA = _8p(_dj, _cj)
}
var _HA = _J8;
function _IA(_Mf, _Nf, _8f, _9f, _oy, _py, _JA) {
_KA(_Mf, _9f, _8f, _9f, 10, 10, _oy,
_py, _JA)
}
var _LA = _IA;
var _KA = _MA;
var _NA = _MA;
function _MA(_Mf, _Nf, _8f, _9f, _OA, _PA, _oy, _py, _JA) {
if (_9f < _Nf) {
var _QA = _Nf;
_Nf = _9f;
_9f = _QA
}
if (_8f < _Mf) {
var _QA = _Mf;
_Mf = _8f;
_8f = _QA
}
var width = _8f - _Mf;
var height = _9f - _Nf;
_RA = _OA;
_SA = _PA;
var _Dg = _9h.globalAlpha = _cj;
_9h.beginPath();
_9h.moveTo(_Mf + _RA, _Nf);
_9h.lineTo(_Mf + width - _RA, _Nf);
_9h.quadraticCurveTo(_Mf + width, _Nf, _Mf + width, _Nf + _SA);
_9h.lineTo(_Mf + width, _Nf + height - _SA);
_9h.quadraticCurveTo(_Mf + width, _Nf + height, _Mf + width - _RA, _Nf + height);
_9h.lineTo(_Mf + _RA, _Nf + height);
_9h.quadraticCurveTo(_Mf, _Nf + height, _Mf, _Nf + height - _SA);
_9h.lineTo(_Mf, _Nf + _SA);
_9h.quadraticCurveTo(_Mf, _Nf, _Mf + _RA, _Nf);
_9h.closePath();
if (_JA) {
_9h.strokeStyle = _8p(_gj(_oy), 1.0);
_9h.stroke()
} else {
_9h.fillStyle = _8p(_gj(_oy), 1.0);
_9h.fill()
}
}
var _Ja = _TA;
function _TA(_Mf, _Nf, _8f, _9f, _JA) {
_Mf = ~~_Mf;
_Nf = ~~_Nf;
_8f = ~~_8f;
_9f = ~~_9f;
_9h.globalAlpha = _cj;
if (_JA) {
_9h.lineWidth = 1;
_9h.strokeStyle = _BA;
_9h._UA(_Mf + 0.5, _Nf + 0.5, (_8f - _Mf), (_9f - _Nf))
} else {
_9h.fillStyle = _BA;
_9h._VA(_Mf, _Nf, _8f - _Mf + 1, _9f - _Nf + 1)
}
}
var _WA = _XA;
var _YA = _XA;
function _XA(_Mf, _Nf, _8f, _9f, _oy, _py, _ZA, __A, _JA) {
var _Dg = _8p(_gj(_oy), 1.0);
_9h.globalAlpha = _cj;
if (_JA) {
_9h.lineWidth = 1;
_9h.strokeStyle = _Dg;
_9h._UA(_Mf + 0.5, _Nf + 0.5, (_8f - _Mf), (_9f - _Nf))
} else {
_9h.fillStyle = _Dg;
_9h._VA(_Mf + 0.5, _Nf + 0.5, (_8f - _Mf), (_9f - _Nf))
}
}
var _0B = _1B;
function _1B(_Mf, _Nf, _8f, _9f, _oy, _py, _2B, _JA) {
_9h.globalAlpha = _cj;
_9h.lineWidth = 1;
var _3B = _8p(_gj(_oy), 1.0);
var _4B = _8p(_gj(_py), 1.0);
var _5B;
if (_2B) {
_5B = _9h.createLinearGradient(_Mf, _Nf, _Mf, _9f)
} else {
_5B = _9h.createLinearGradient(_Mf,
_Nf, _8f, _Nf)
}
_5B.addColorStop(0, _3B);
_5B.addColorStop(1, _4B);
if (_JA) {
_9h.strokeStyle = _5B;
_9h._UA(_Mf + 0.5, _Nf + 0.5, _8f - _Mf, _9f - _Nf)
} else {
_9h.fillStyle = _5B;
_9h._VA(_Mf + 0.5, _Nf + 0.5, _8f - _Mf, _9f - _Nf)
}
}
var _6B = _7B;
function _7B(_ye, _ze) {
_9h.globalAlpha = _cj;
_9h.fillStyle = _BA;
_9h._VA(_ye, _ze, 1, 1)
}
function _8B(_Mf, _Nf, _8f, _9f, _6n) {
_9h.globalAlpha = _cj;
_9h.strokeStyle = _FA;
_9h.lineWidth = _6n;
_9h._9B();
_9h._aB(_Mf + 0.5, _Nf + 0.5);
_9h._bB(_8f + 0.5, _9f + 0.5);
_9h._cB();
_9h._dB();
_9h._VA(_8f, _9f, 1, 1)
}
function _1h(_Mf, _Nf, _8f,
_9f) {
_8B(_Mf, _Nf, _8f, _9f, 1)
}
var _eB = _fB;
var _gB = _hB;
function _fB(_ye, _ze) {
return _hB(_ye, _ze) & 0x00ffffff
}
function _hB(_ye, _ze) {
var _iB = canvas.width / _jB;
var _kB = canvas.height / _lB;
var _Dg = _mB(canvas, _ye * _iB, _ze * _kB);
return _Dg
}
var _nB = _oB;
function _oB(_Mf, _Nf, _8f, _9f, _pB, _qB, _JA) {
_Mf += 0.5;
_Nf += 0.5;
_8f += 0.5;
_9f += 0.5;
_pB += 0.5;
_qB += 0.5;
_9h.globalAlpha = _cj;
_9h.lineWidth = 1;
if (_JA) {
_9h.strokeStyle = _BA;
_9h._9B();
_9h._aB(_Mf, _Nf);
_9h._bB(_8f, _9f);
_9h._bB(_pB, _qB);
_9h._bB(_Mf, _Nf);
_9h._dB();
_9h._cB()
} else {
_9h.strokeStyle = _BA;
_9h.lineJoin = "bevel";
_9h.fillStyle = _BA;
_9h._9B();
_9h._aB(_Mf, _Nf);
_9h._bB(_8f, _9f);
_9h._bB(_pB, _qB);
_9h._bB(_Mf, _Nf);
_9h._rB();
_9h._dB();
_9h._cB();
_9h.lineJoin = "miter"
}
}
var _sB = _tB;
var _uB = _tB;
function _tB(_Mf, _Nf, _8f, _9f, _pB, _qB, _oy, _py, _ZA, _JA) {
var _3B = _GA(_gj(_oy) | 0xff000000);
_Mf += 0.5;
_Nf += 0.5;
_8f += 0.5;
_9f += 0.5;
_pB += 0.5;
_qB += 0.5;
_9h.globalAlpha = _cj;
_9h.lineWidth = 1;
if (_JA) {
_9h.strokeStyle = _3B;
_9h._9B();
_9h._aB(_Mf, _Nf);
_9h._bB(_8f, _9f);
_9h._bB(_pB, _qB);
_9h._bB(_Mf, _Nf);
_9h._dB();
_9h._cB()
} else {
_9h.strokeStyle = _3B;
_9h.lineJoin = "bevel";
_9h.fillStyle = _3B;
_9h._9B();
_9h._aB(_Mf, _Nf);
_9h._bB(_8f, _9f);
_9h._bB(_pB, _qB);
_9h._bB(_Mf, _Nf);
_9h._rB();
_9h._dB();
_9h._cB();
_9h.lineJoin = "miter"
}
}
var _vB = _wB;
function _wB(_Mf, _Nf, _8f, _9f, _sA, _xB, _yB, _zB, _AB, _BB, _CB, _DB) {
var _EB;
var _FB;
var _GB;
var _HB;
var _Dg;
if (_CB) {
_WA(_Mf, _Nf, _8f, _9f, _xB, _xB, _xB, _xB, !1);
if (_DB) {
_WA(_Mf, _Nf, _8f, _9f, _IB, _IB, _IB, _IB, !0)
}
}
if (_sA < 0) {
_sA = 0
}
if (_sA > 100) {
_sA = 100
}
var _JB = _sA / 100;
switch (_BB) {
case 0:
_EB = _Mf;
_GB = _Nf;
_FB = _Mf + _JB * (_8f - _Mf);
_HB = _9f;
break;
case 1:
_EB = _8f - _JB * (_8f - _Mf);
_GB = _Nf;
_FB = _8f;
_HB = _9f;
break;
case 2:
_EB = _Mf;
_GB = _Nf;
_FB = _8f;
_HB = _Nf + _JB * (_9f - _Nf);
break;
case 3:
_EB = _Mf;
_GB = _9f - _JB * (_9f - _Nf);
_FB = _8f;
_HB = _9f;
break;
default:
_EB = _Mf;
_GB = _Nf;
_FB = _Mf + _JB * (_8f - _Mf);
_HB = _9f;
break
}
if (_sA > 50) {
_Dg = _ny(_zB, _AB, (_sA - 50.0) / 50.0);
} else {
_Dg = _ny(_yB, _zB, _sA / 50.0)
}
_WA(_EB, _GB, _FB, _HB, _Dg, _Dg, _Dg, _Dg, !1);
if (_DB) {
_WA(_EB, _GB, _FB, _HB, _IB, _IB, _IB, _IB, !0)
}
}
var _KB = _LB;
function _LB(_hf, _if, _jf, _kf, _k2) {
var _MB = Math.sqrt(((_jf - _hf) * (_jf - _hf)) + ((_kf - _if) * (_kf - _if)));
if (_MB != 0) {
if (_k2 > _MB) {
_k2 = _MB;
}
var _Cf = _k2 * (_jf - _hf) / _MB;
var _Ef = _k2 * (_kf - _if) / _MB;
_1h(_hf, _if, _jf, _kf);
_nB(_jf - _Cf - _Ef / 3.0, _kf - _Ef + _Cf / 3.0, _jf, _kf, _jf - _Cf + _Ef / 3.0, _kf - _Ef - _Cf / 3.0, !1)
}
}
function _NB(_Mf, _Nf, _8f, _9f, _JA) {
_OB(_Mf, _Nf, _8f, _9f, _Fx, _Fx, _JA)
}
var _OB = _PB;
var _QB = _PB;
function _PB(_w2, _x2, _hf, _if, _oy, _py, _RB) {
var _y2 = _hf - _w2;
var _z2 = _if - _x2;
var _SB = 0.5522848;
_TB = (_y2 / 2) * _SB, _UB = (_z2 / 2) * _SB, _VB = _w2 + _y2, _WB = _x2 + _z2, _XB = _w2 + _y2 / 2, _YB = _x2 + _z2 / 2;
_9h.beginPath();
_9h.moveTo(_w2, _YB);
_9h.bezierCurveTo(_w2, _YB - _UB, _XB - _TB, _x2, _XB,
_x2);
_9h.bezierCurveTo(_XB + _TB, _x2, _VB, _YB - _UB, _VB, _YB);
_9h.bezierCurveTo(_VB, _YB + _UB, _XB + _TB, _WB, _XB, _WB);
_9h.bezierCurveTo(_XB - _TB, _WB, _w2, _YB + _UB, _w2, _YB);
_9h.closePath();
var _3B = _8p(_gj(_oy), 1.0);
var _4B = _8p(_gj(_py), 1.0);
if (_y2 <= 0) _y2 *= -1;
if (_z2 <= 0) _z2 *= -1;
var _5B = _9h.createRadialGradient(_XB, _YB, 0, _XB, _YB, min(_y2 / 2, _z2 / 2));
_5B.addColorStop(0, _3B);
_5B.addColorStop(1, _4B);
_9h.globalAlpha = _cj;
if (_RB) {
_9h.lineWidth = 1;
_9h.strokeStyle = _5B;
_9h.stroke()
} else {
_9h.fillStyle = _5B;
_9h.fill()
}
}
var _ZB = __B;
var _0C = __B;
function __B(_ye, _ze, _1C, _oy, _py, _JA) {
_9h.globalAlpha = _cj;
var _3B = _8p(_gj(_oy), 1.0);
var _4B = _8p(_gj(_py), 1.0);
var _5B = _9h.createRadialGradient(_ye, _ze, 0, _ye, _ze, _1C);
_5B.addColorStop(0, _3B);
_5B.addColorStop(1, _4B);
_9h._9B();
if (_JA) {
_9h.lineWidth = 1;
_9h.strokeStyle = _5B;
_9h._2C(_ye, _ze, _1C, 0, Math.PI * 2, !0);
_9h._dB()
} else {
_9h.fillStyle = _5B;
_9h._2C(_ye, _ze, _1C, 0, Math.PI * 2, !1);
_9h._rB()
}
_9h._cB()
}
var _3C = _4C;
var _5C = _4C;
function _4C(_ye, _ze, _uj) {
var _3B = _8p(_gj(_uj), 1.0);
_9h.globalAlpha = _cj;
_9h.fillStyle = _3B;
_9h._VA(_ye,
_ze, 1, 1)
}
var _6C = _7C;
var _8C = _7C;
function _7C(_Mf, _Nf, _8f, _9f, _6n, _oy, _py) {
_9h.globalAlpha = _cj;
var _3B = _8p(_gj(_oy), 1.0);
var _4B = _8p(_gj(_py), 1.0);
var _5B = _9h.createLinearGradient(_Mf, _Nf, _8f, _9f);
_5B.addColorStop(0, _3B);
_5B.addColorStop(1, _4B);
_9h.strokeStyle = _5B;
_9h._9B();
_9h._aB(_Mf + 0.5, _Nf + 0.5);
_9h._bB(_8f + 0.5, _9f + 0.5);
_9h.lineWidth = _6n;
_9h._dB();
_9h._cB()
}
function _9C(_Mf, _Nf, _8f, _9f, _oy, _py) {
_6C(_Mf, _Nf, _8f, _9f, 1, _oy, _py)
}
var _aC = _9C;
function _bC(_w2, _x2, _hf, _if, _3B, _4B, _RB) {
_OB(_w2, _x2, _hf, _if, _3B,
_4B, _RB)
}
function _cC(_dC) {
switch (_dC) {
case 1:
_eC(_Lz, _Iz);
break;
case 2:
_eC(_Lz, _Kz);
break;
case 3:
_eC(_Hz, _Kz);
break;
default:
_eC(_Lz, _Mz);
break
}
}
var _eC = _fC;
function _fC(src, _gC) {
__h("Blend modes only available in WebGL mode.")
}
function _hC(_iC, _jC) {
if ((_iC.status < 200) || (_iC.status >= 300)) {
_jC._Gv = _kC;
_jC._lC = ""
} else {
_jC._Gv = _mC;
try {
_jC._lC = _iC.responseText
} catch (e) {
_jC._lC = ""
}
}
}
function _nC(_iC, _oC) {
if (_iC.readyState != 4) return;
var _5x = _Dv(_iC);
if (_5x) {
_5x._pC = _iC.status;
_5x._Fv = !0;
_5x._qC = _86();
var _rC = _iC.getAllResponseHeaders().split("\r\n");
for (var _df in _rC) {
if (!_rC.hasOwnProperty(_df)) continue;
var _sC = _rC[_df].split(": ");
if (_sC.length == 2) {
_96(_5x._qC, _sC[0], _sC[1])
}
}
if (_oC) {
_oC(_iC, _5x)
}
}
}
function _tC(_uC) {
var _vC = {};
_Nv._yn(_wC, _uC, _xC, _vC);
setTimeout(function() {
var _5x = _Dv(_vC);
if (_5x) {
_5x._pC = 404;
_5x._Fv = !0;
_5x._Gv = _kC;
_5x._lC = ""
}
}, 500);
return _wC++
}
function _yC(_Pj, _uC, _zC, _AC, _oC, _BC) {
try {
var _CC = _DC(_uC, _zC);
_Nv._yn(_wC, _uC, _xC, _CC._EC);
if (_BC !== undefined) {
_CC._EC.responseType = _BC
}
if (_CC._FC) {
_GC(_Pj, _uC, _zC, _AC, _CC._EC, _CC._HC, _oC)
} else {
_IC(_Pj, _uC, _zC, _AC, _CC._EC, _oC)
}
} catch (e) {
return _tC(_uC)
}
return _wC++
}
function _DC(_uC, _zC) {
var _CC = {
_EC: null,
_HC: !0,
_FC: !1
};
if ((_uC.substring(0, 7) != "http://") && (_uC.substring(0, 8) != "https://")) {
_CC._HC = !1;
} else {
var _JC = "";
if (_uC.substring(0, 7) == "http://") {
_JC = _uC.substring(7)
}
if (_uC.substring(0, 8) == "https://") {
_JC = _uC.substring(8)
}
if (_JC.substring(0, document.domain.length) == document.domain) {
_CC._HC = !1
}
} if ((_CC._HC) && (window.XDomainRequest)) {
_CC._EC = new XDomainRequest();
_CC._HC = !0;
_CC._FC = !0
} else {
if (window.XMLHttpRequest) {
_CC._EC = new XMLHttpRequest();
_CC._HC = !1;
_CC._FC = (_KC == _LC) && (_MC._NC <= 9.0)
} else if (window.ActiveXObject) {
if (new ActiveXObject("Microsoft.XMLHTTP")) {
_CC._EC = new ActiveXObject("Microsoft.XMLHTTP");
} else {
_CC._EC = new ActiveXObject("Msxml2.XMLHTTP")
}
}
}
return _CC
}
function _IC(_Pj, _uC, _zC, _AC, _iC, _oC) {
try {
_iC.open(_Pj, _uC, !0);
if (_zC !== null) {
for (var _sC in _zC) {
if (!_zC.hasOwnProperty(_sC)) continue;
try {
_iC.setRequestHeader(_zC[_sC]._OC, _zC[_sC].value)
} catch (e) {
debug("Unable to set request header " + _zC[_sC]._OC + ":" + _zC[_sC].value + " " + e.message)
}
}
} else if (_Pj == "POST") {
_iC.setRequestHeader("Content-Type", "application/x-www-form-urlencoded")
}
_iC.onreadystatechange = function() {
_nC(_iC, _oC)
};
_iC.send(_AC);
} catch (e) {
debug(e.message)
}
}
function _GC(_Pj, _uC, _zC, _AC, _iC, _PC, _oC) {
_iC.open(_Pj, _uC);
_iC.ontimeout = function(_vw) {
_QC(_vw, _iC)
};
_iC.onerror = function(_vw) {
_QC(_vw, _iC)
};
if (_PC) {
_iC.onload = function(_vw) {
_RC(_vw, _iC, 200)
}
} else {
_iC.onload = function(_vw) {};
_iC.onreadystatechange = function() {
if (_iC.readyState == 4) {
_RC(null, _iC, _iC.status)
}
}
} if (_zC !== null) {
for (var _sC in _zC) {
if (!_zC.hasOwnProperty(_sC)) continue;
try {
_iC.setRequestHeader(_zC[_sC]._OC, _zC[_sC].value)
} catch (e) {
debug("Unable to set request header " + _zC[_sC]._OC + ":" + _zC[_sC].value + " " + e.message);
}
}
}
_iC._SC = function() {};
_iC.send(_AC)
}
function _RC(_vw, _iC, _TC) {
var _5x = _Dv(_iC);
if (_5x) {
_5x._Fv = !0;
if ((_TC >= 200) && (_TC < 300)) {
_5x._Gv = _mC;
_5x._pC = _TC
} else {
_5x._Gv = _kC;
_5x._pC = 404
}
_5x._lC = _iC.responseText;
_5x._qC = -1
}
}
function _QC(_vw, _iC) {
var _5x = _Dv(_iC);
if (_5x) {
_5x._Fv = !0;
_5x._Gv = _kC;
_5x._lC = "";
_5x._pC = 404;
_5x._qC = -1
}
}
function _ya(_uC) {
return _yC("GET", _uC, null, "", _hC)
}
function _UC(_uC, _VC) {
var _WC = function(_iC, _jC) {
if (_iC.response) {
try {
var _XC = String.fromCharCode.apply(null, new Uint8Array(_iC.response));
_7x(_VC, _XC);
_jC._Gv = _mC;
_jC._lC = _VC
} catch (e) {
debug(e.message);
_jC._Gv = _kC
}
} else {
_jC._Gv = _kC
}
};
return _yC("GET", _uC, null, "", _WC, 'arraybuffer')
};
var _YC = -1,
_ZC = 0,
__C = 1,
_0D = 2,
_1D = 3,
_2D = 4;
var _3D = -3,
_4D = -2,
_5D = -1,
_6D = 0,
_7D = 1,
_8D = 2;
var _9D = -2,
_aD = -1,
_bD = 0,
_cD = 1,
_dD = 2,
_eD = 3;
var _fD = 0,
_gD = 1,
_hD = 2,
_iD = 3,
_jD = 4;
var _kD = -1,
_lD = 0;
var _mD = [];
var _nD = [];
var _oD = [];
var _pD = [];
var _qD = _9D;
function _rD() {
_sD({
type: _fD,
status: _kD
})
};
function _tD() {
_sD({
type: _jD,
_Ev: 0
})
};
function _uD() {
return -1
}
function _vD() {
return 0
}
function _wD() {
return 0
};
function _xD(_qx) {
this._yD = "";
this.title = "";
this.description = "";
this._zD = "";
this.type = "";
this._AD = _4D;
this._BD = !1;
if ((_qx != null) && (_qx != undefined)) {
var id = _o6(_qx, "id");
var title = _o6(_qx, "title");
var description = _o6(_qx, "description");
var _zD = _o6(_qx, "price");
var type = _o6(_qx, "type");
if (id) {
this._yD = id
}
if (title) {
this.title = title
}
if (description) {
this.description = description
}
if (_zD) {
this._zD = _zD
}
if (type) {
this.type = type
}
}
};
function _CD() {
this._DD = "";
this._yD = "";
this._ED = "";
this._FD = "";
this._GD = "";
this._HD = 0;
this._ID = 0;
this._AD = _4D
};
function _JD(_KD) {
switch (_KD.type) {
case _ZC:
{
_qD = _bD;
_rD(_mD)
}
break;
case __C:
{
_qD = _eD;
_tD()
}
break;
case _0D:
{
_qD = _dD;
_uD(_KD.product, _KD._LD)
}
break;
case _1D:
{
_qD = _dD;
_vD(_KD.product)
}
break;
case _2D:
{
_qD = _dD;
_wD(_KD.product)
}
break;
default:
{
_qD = _cD
}
break
}
}
function _sD(_vw) {
_oD.push(_vw)
}
function _MD(_vw) {
_vw.map = _86();
_96(_vw.map, "type", _fD);
_96(_vw.map, "status", _vw.status)
}
function _ND(_vw) {
_vw.map = _86();
_96(_vw.map, "type", _jD);
_96(_vw.map, "result", _vw._Ev)
}
function _OD(_vw) {
var product = null;
var _PD = -1;
var _QD = JSON.parse(_vw._RD);
_PD = _SD(_QD["productId"]);
if (_PD < 0) {
product = new _xD();
product._yD = _QD["productId"];
_mD.push(product);
_PD = _mD.length - 1
} else {
product = _mD[_PD]
}
product._BD = !0;
product._AD = _5D;
if (_QD["title"]) {
product.title = _QD["title"]
}
if (_QD["price"]) {
product._zD = _QD["price"]
}
if (_QD["type"]) {}
if (_QD["description"]) {
product.description = _QD["description"]
}
if (_QD["price_currency_code"]) {}
_vw.map = _86();
_96(_vw.map, "type", _gD);
_96(_vw.map, "product", product._yD);
_96(_vw.map, "index", _PD)
}
function _TD(_vw) {
var _QD = JSON.parse(_vw._RD);
var _LD = -1;
if ((_QD["purchaseIndex"] != null) && (_QD["purchaseIndex"] != undefined)) {
_LD = _QD["purchaseIndex"]
}
var _UD = null;
if (_LD != -1) {
_UD = _nD[_LD]
} else {
_UD = new _CD();
_nD.push(_UD);
_LD = _nD.length - 1
} if (_QD["orderId"]) {
_UD._DD = _QD["orderId"]
}
if (_QD["productId"]) {
_UD._yD = _QD["productId"]
}
if (_QD["purchaseTime"]) {
_UD._ID = _QD["purchaseTime"]
}
if ((_QD["purchaseState"] != null) && (_QD["purchaseState"] != undefined)) {
_UD._AD = _QD["purchaseState"]
}
if (_QD["purchaseToken"]) {
_UD._FD = _QD["purchaseToken"]
}
if (_QD["response"]) {
_UD._HD = _QD["response"]
}
if (_QD["receipt"]) {
_UD._ED = _QD["receipt"]
}
_vw.map = _86();
_96(_vw.map, "type", _hD);
_96(_vw.map, "index", _LD);
_96(_vw.map, "response", _UD._HD)
}
function _VD(_vw) {
var _QD = JSON.parse(_vw._RD);
var _WD = null;
var _FD = null;
var _XD = 0.0;
if (_QD["productId"]) {
_WD = _QD["productId"]
}
if (_QD["token"]) {
_FD = _QD["token"]
}
if (_QD["consumed"]) {
if (typeof(_QD["consumed"]) == "string") {
_XD = (_QD["consumed"] == "false") ? 0.0 : 1.0
} else {
_XD = _QD["consumed"]
}
}
if ((_WD != null) && (_XD == !0)) {
for (var _df = 0; _df < _nD.length; _df++) {
var _UD = _nD[_df];
if ((_UD._WD == _WD) && (_UD._FD == _FD)) {
_nD[_df] = null
}
}
}
_vw.map = _86();
_96(_vw.map, "type", _iD);
_96(_vw.map, "product", _WD);
_96(_vw.map, "consumed", _XD ? 1.0 : 0.0)
}
function _YD(_vw) {
var _ZD = !1;
if ((_vw.type != null) && (_vw.type != undefined)) {
switch (_vw.type) {
case _fD:
{
_MD(_vw);
if (_vw.status == _lD) {
_qD = _cD;
_ZD = !0
} else {
_qD = _aD
}
}
break;
case _gD:
{
_OD(_vw);
if (_qD != _bD) {
_qD = _cD;
_ZD = !0
}
}
break;
case _hD:
{
_TD(_vw);
if ((_qD != _bD) && (_qD != _eD)) {
_qD = _cD;
_ZD = !0
}
}
break;
case _iD:
{
_VD(_vw);
_qD = _cD;
_ZD = !0
}
break;
case _jD:
{
_ND(_vw);
_qD = _cD;
_ZD = !0
}
break
}
}
if (_ZD && (_pD.length != 0)) {
var __D = _pD.shift();
_JD(__D)
}
}
function _0E() {
while (_oD.length > 0) {
var _1E = _oD.shift();
_YD(_1E);
_O7._2E = _1E.map;
_3E._Se(_4E, 0);
_Pn(_1E.map)
}
}
function _SD(_5E) {
var _6E = -1;
if (typeof(_5E) == "string") {
for (var _df = 0; _df < _mD.length; _df++) {
var product = _mD[_df];
if (product._yD.toLowerCase() == _5E.toLowerCase()) {
_6E = _df;
break
}
}
} else {
_6E = ~~_5E
}
return _6E
}
var _7E = null;
function _27(_8E) {
if (_7E) {
_77()
}
var _9E = null;
if (_aE) {
_9E = _bE(_8E, !0)
}
if (_9E == null) {
_9E = _bE(_8E, !1)
}
if (_9E == null) {
_9E = new _cE(_8E)
}
_7E = _9E
}
function _77() {
if (!_7E) return;
var _fy = _7E._dE();
_7E = null;
return _fy
}
function _Sd(_eE, _Vn, _fE) {
if (!_7E) return _fE;
return _7E._gE(_eE, _Vn, _fE)
}
function _37(_eE, _Vn, _qy) {
if (!_7E) return !1;
_7E._hE(_eE, _Vn, "" + _ad(_qy));
return !0
}
function _t6(_Ln) {
var _Wn = _26(_Ln);
if (_Wn != null && _Wn.length > 0) {
for (var _iE = 0; _iE < _Wn.length; _iE++) {
_jE = _Wn[_iE];
if (!_jE._kE && _jE._lE) return !0
}
}
return !1
}
function _1b(_Ln) {
var _mE = _26(_Ln);
if (_mE == null) return 0;
var _fg = 0;
for (var _u2 = 0; _u2 < _mE.length; _u2++) {
if (!_mE[_u2]._kE) _fg++
}
return _fg
}
function _e8(_to, _ye, _ze, _Ln) {
var _nE = 10000000000;
var _u2 = _oE;
var _pE = _qE(null, Math.floor(_Ln), !1, _oE, _ye, _ze, function(_rE) {
var _Cf = _ye - _rE._w2;
var _Ef = _ze - _rE._x2;
var _Bp = Math.sqrt(_Cf * _Cf + _Ef * _Ef);
if (_Bp < _nE) {
_u2 = _rE.id;
_nE = _Bp
}
});
return _u2
}
function _j7(_Ay, _ye, _ze, _Ln) {
var _Cf = _Ay._w2;
var _Ef = _Ay._x2;
_Ay._5k(_ye, _ze);
var id = _sE(null, Math.floor(_Ln), !1, _oE, _ye, _ze, function(_rE) {
if (_rE._tE(_Ay, !0)) {
return _rE.id
} else {
return _oE
}
});
_Ay._5k(_Cf, _Ef);
return id
}
function _p6(_ye, _ze, _Ln) {
var _kx = _cy._hn(_Ln);
if (!_kx) {
_ym("Error: Trying to create an instance using non-existent object type (" + _Ln + ")");
return _oE
}
var _jE = _ke._uE(_ye, _ze, _Ln);
_jE._Se(_vE, 0, _jE, _jE);
return _jE.id
}
function _T6(_Ay) {
_Ay._Se(_wE, 0, _Ay, _Ay);
_Ay._kE = !0
}
function _xE(_to, _ye, _ze) {
var bottom, top;
var _yE = [];
var _zE = _ke._AE;
for (var _u2 = 0; _u2 < _zE._Hn.length; _u2++) {
var _jE = _zE._Hn[_u2];
if (_jE._BE) _jE._CE();
var _DE = _jE._DE;
if (!((_ye > _DE._1f) || (_ye < _DE.left) || (_ze > _DE.bottom) || (_ze < _DE.top))) {
_yE[_yE.length] = _jE
}
}
var _zE = _ke._AE;
for (var _u2 = 0; _u2 < _yE.length; _u2++) {
_T6(_yE[_u2])
}
}
function _EE(_to, _FE, _GE) {
if (_GE) _to._Se(_wE, 0, _to, _to);
_to._HE(_FE, !0, !1);
_to._IE(_to._JE._KE);
_to._LE(_ke);
if (_GE) _to._Se(_vE, 0, _to, _to)
}
function _ME(_to, _FE, _GE) {
if (!_cy._NE(_FE)) {
debug("Error: Trying to change an instance to an nonexistent object type.");
return
}
_EE(_to, _FE, _GE)
}
var _OE = _ME;
function _PE(_Ln, _QE) {
if (_Ln._RE >= 0) {
var _SE = _cy._hn(_Ln._RE);
if (_SE) {
if (_SE._TE == _QE) {
return !0
} else {
return _PE(_SE, _QE)
}
}
}
return !1
};
function _UE(_Vn) {
if (_VE[_Vn]) {
return
}
_VE[_Vn] = 1;
_WE[_Vn] = 1;
_XE = _Vn
}
function _YE(_Vn) {
_ZE[_Vn] = 1;
_VE[_Vn] = 0
}
function __E(_0F) {
with(_Pm) {
switch (_0F) {
case 0:
if (__k[0] || __k[1] || __k[2]) return 0;
else return 1;
case 1:
if (__k[0]) return 1;
else return 0;
case 2:
if (__k[1]) return 1;
else return 0;
case 3:
if (__k[2]) return 1;
else return 0;
case -1:
if (__k[0] || __k[1] || __k[2]) return 1;
else return 0
}
}
return 0
}
function _1F(_0F) {
with(_Pm) {
switch (_0F) {
case 0:
if (_Vk[0] || _Vk[1] || _Vk[2]) return 0;
else return 1;
case 1:
if (_Vk[0]) return 1;
else return 0;
case 2:
if (_Vk[1]) return 1;
else return 0;
case 3:
if (_Vk[2]) return 1;
else return 0;
case -1:
if (_Vk[0] || _Vk[1] || _Vk[2]) return 1;
else return 0
}
}
return 0
}
function _2F(_0F) {
with(_Pm) {
switch (_0F) {
case 0:
if (_Zk[0] || _Zk[1] || _Zk[2]) return 0;
else return 1;
case 1:
if (_Zk[0]) return 1;
else return 0;
case 2:
if (_Zk[1]) return 1;
else return 0;
case 3:
if (_Zk[2]) return 1;
else return 0;
case -1:
if (_Zk[0] || _Zk[1] || _Zk[2]) return 1;
else return 0
}
return 0
}
}
var _3F = 0x7fff;
var floor = Math.floor;
function _4F(_5F) {
var _u2 = _5F & 0xffffffff;
var _1w = _5F - _u2;
if ((_u2 & 1) == 1) {
if (_1w >= 0.5) {
return _u2 + 1
} else {
return _u2
}
} else {
if (_1w <= 0.5) {
return _u2
} else {
return _u2 + 1
}
}
}
var round = _4F;
var _sn = _4F;
var abs = Math.abs;
function cos(_5F) {
var _ye = Math.cos(_5F);
var _wf = ~~ (_ye * 0x1000000);
_ye = _wf / 0x1000000;
return _ye
}
function sin(_5F) {
var _ye = Math.sin(_5F);
var _wf = ~~ (_ye * 0x1000000);
_ye = _wf / 0x1000000;
return _ye
}
function tan(_5F) {
var _ye = Math.tan(_5F);
var _wf = ~~ (_ye * 0x1000000);
_ye = _wf / 0x1000000;
return _ye
}
function _P8(_6F, _7F) {
var _8h = (_6F * Math.cos(_7F * _zf / 180.0));
var _8F = Math.round(_8h);
var _9F = _8h - _8F;
if (Math.abs(_9F) < 0.0001) return _8F;
return _8h
}
function _Q8(_6F, _7F) {
var _8h = -(_6F * Math.sin(_7F * _zf / 180.0));
var _8F = Math.round(_8h);
var _9F = _8h - _8F;
if (Math.abs(_9F) < 0.0001) return _8F;
return _8h
}
function _G9(_Mf, _Nf, _8f, _9f) {
var _w2 = _8f - _Mf;
var _x2 = _9f - _Nf;
if (_w2 === 0) {
if (_x2 > 0) return 270.0;
else if (_x2 < 0) return 90.0;
else return 0.0
} else {
var _MB = 180.0 * Math.atan2(_x2, _w2) / _zf;
_MB = (~~round(_MB * 1000000)) / 1000000.0;
if (_MB <= 0.0) {
return -_MB
} else {
return (360.0 - _MB)
}
}
return _zA
}
function _aF(_Mf, _Nf, _8f, _9f) {
return _G9(_Mf, _Nf, _8f, _9f)
}
function _28(_Mf, _Nf, _8f, _9f) {
var _zh = _8f - _Mf;
var _Ah = _9f - _Nf;
return Math.sqrt(_zh * _zh + _Ah * _Ah)
}
function _vf(_5F, _bF) {
if (_5F < _bF) return _5F;
else return _bF
}
function _tf(_5F, _bF) {
if (_5F > _bF) return _5F;
else return _bF
}
var max = Math.max;
var min = Math.min;
var _cF = [];
var index = 0;
var _dF = _eF(0);
function _eF(_fF) {
var _ov = _fF;
for (_u2 = 0; _u2 < 16; _u2++) {
_ov = (((_ov * 214013 + 2531011) >> 16) & _3F) | 0;
_cF[_u2] = ~~_ov
}
index = 0;
_dF = _fF;
return _dF
}
function _gF() {
var _Wg, _xf, _v2, _Bp;
_Wg = _cF[index];
_v2 = _cF[(index + 13) & 15];
_xf = _Wg ^ _v2 ^ (_Wg << 16) ^ (_v2 << 15);
_v2 = _cF[(index + 9) & 15];
_v2 ^= (_v2 >> 11);
_Wg = _cF[index] = _xf ^ _v2;
_Bp = _Wg ^ ((_Wg << 5) & 0xDA442D20);
index = (index + 15) & 15;
_Wg = _cF[index];
_cF[index] = _Wg ^ _xf ^ _Bp ^ (_Wg << 2) ^ (_xf << 18) ^ (_v2 << 28);
return ((_cF[index] & 0x7fffffff) / 2147483647.0)
}
function random(_ij) {
var _uf = _gF();
return _uf * _ij
}
function _qa() {
var _Bp = new Date();
var _wf = _Bp.getMilliseconds();
_wf = (_wf & 0xffffffff) ^ ((_wf >> 16) & 0xffff) ^ ((_wf << 16) & 0xffff0000);
_eF(_wf)
}
function _S9() {
var _Cn = _S9.arguments;
var _Dn = _S9.arguments.length;
var index = Math.floor(random(_Dn));
return _Cn[index]
}
function _e7(_ye) {
if (_ye == 0) return 0;
if (_ye < 0) return -1;
return 1
}
var ceil = Math.ceil;
function _9F(_ye) {
return _ye - ~~_ye
}
function sqrt(_ye) {
if (_ye >= 0) return Math.sqrt(_ye);
else _ym("Cannot apply sqrt to negative number.")
}
function _Wf(_ye) {
return _ye * _ye
}
var _hF = Math.pow;
var exp = Math.exp;
var _iF = Math.log;
var _jF = Math.asin;
var _kF = Math.acos;
var _lF = Math.atan;
var _mF = Math.atan2;
function _nF() {
var _Cn = _nF.arguments;
var _Dn = _nF.arguments.length;
var _gf = _Cn[0];
for (var _u2 = 1; _u2 < _Dn; _u2++) {
_gf += _Cn[_u2]
}
return (_gf / _Dn)
}
function _oF() {
var arguments = _oF.arguments;
if (arguments.length == 0) {
return 0
}
var _u2, _Bf, _Ev;
for (_u2 = 0; _u2 < arguments.length; _u2++) {
var _pF = 0;
var _qF = 0;
for (_Bf = 0; _Bf < arguments.length; _Bf++) {
if (arguments[_Bf] < arguments[_u2]) {
_pF = _pF + 1
}
if (arguments[_Bf] <= arguments[_u2]) {
_qF = _qF + 1
}
}
if ((_pF < (arguments.length / 2)) && (_qF >= (arguments.length / 2))) {
return arguments[_u2]
}
}
debug("Error: was not able to successfully find the median value");
return 0
}
var _rF = 30,
_sF = 10,
_tF = 3,
_uF = !0;
function _vF(_wF, _xF) {
var _zA = 0.0;
while (_wF <= 0.0) {
_wF = _wF + 360
}
while (_wF >= 360.0) {
_wF = _wF - 360
}
while (_xF < 0.0) {
_xF = _xF + 360
}
while (_xF >= 360.) {
_xF = _xF - 360
}
_zA = _xF - _wF;
if (_zA < 0) {
_zA = -_zA
}
if (_zA > 180) {
_zA = 360 - _zA
}
return _zA
}
function _yF(_Ay, _ye, _ze, _zF, _AF) {
if (_zF == _BF) {
if (_AF) {
return _CF(_Ay, _ye, _ze)
} else {
return _DF(_Ay, _ye, _ze)
}
} else {
return (_j7(_Ay, _ye, _ze, _zF) == _oE)
}
}
function _EF(_Ay, _ye, _ze, _FF, _zF, _AF) {
var _zA = !1;
var _nE = 0.0;
var _GF = 0.0;
var _HF = 0.0;
if ((_Ay._w2 == _ye) && (_Ay._x2 == _ze)) return !0;
_nE = sqrt(_st(_Ay._w2 - _ye) + _st(_Ay._x2 - _ze));
if (_nE <= _FF) {
_GF = _ye;
_HF = _ze;
_zA = !0
} else {
_GF = _Ay._w2 + _FF * (_ye - _Ay._w2) / _nE;
_HF = _Ay._x2 + _FF * (_ze - _Ay._x2) / _nE;
_zA = !1
} if (!_yF(_Ay, _GF, _HF, _zF, _AF)) {
return _zA
}
_Ay._F9(_G9(_Ay._w2, _Ay._x2, _GF, _HF));
_Ay._5k(_GF, _HF);
return _zA
}
function _IF(_Ay, _ye, _ze, _FF, _AF) {
return _EF(_Ay, _ye, _ze, _FF, _BF, _AF)
}
function _JF(_7F, _Ay, _KF, _zF, _AF) {
var _zA = !1;
var _LF = 0.0;
var _MF = 0.0;
if (_vF(_7F, _Ay._H9) > _rF) {
return _zA
}
_LF = _Ay._w2 + _KF * _tF * cos(_zf * _7F / 180);
_MF = _Ay._x2 - _KF * _tF * sin(_zf * _7F / 180);
if (!0 != _yF(_Ay, _LF, _MF, _zF, _AF)) {
return _zA
}
_LF = _Ay._w2 + _KF * cos(_zf * _7F / 180);
_MF = _Ay._x2 - _KF * sin(_zf * _7F / 180);
if (!0 != _yF(_Ay, _LF, _MF, _zF, _AF)) {
return _zA
}
_Ay._F9(_7F);
_Ay._5k(_LF, _MF);
_zA = !0;
return _zA
}
function _NF(_Ay, _ye, _ze, _FF, _FE, _AF) {
var _zA = !1;
var _nE = 0.0;
var _OF = 0.0;
var _PF = 0.0;
if ((_Ay._w2 == _ye) && (_Ay._x2 == _ze)) {
_zA = !0;
return _zA
}
_nE = sqrt(_st(_Ay._w2 - _ye) + _st(_Ay._x2 - _ze));
if (_nE <= _FF) {
if (_yF(_Ay, _ye, _ze, _FE, _AF)) {
_Ay._F9(_aF(_Ay._w2, _Ay._x2, _ye, _ze));
_Ay._5k(_ye, _ze)
}
_zA = !0;
return _zA
}
_OF = _aF(_Ay._w2,
_Ay._x2, _ye, _ze);
_PF = 0;
_zA = !1;
while (_PF < 180) {
if (_JF(_OF - _PF, _Ay, _FF, _FE, _AF)) {
return _zA
}
if (_JF(_OF + _PF, _Ay, _FF, _FE, _AF)) {
return _zA
}
_PF = _PF + _sF
}
if (_uF) {
_Ay._F9(_Ay._H9 + _rF)
}
return _zA
}
function _QF(_Ay, _ye, _ze, _FF, _AF) {
return _NF(_Ay, _ye, _ze, _FF, _BF, _AF)
}
function _RF(_SF, _TF, _UF, _VF, _WF, _XF) {
this._YF = _SF;
this._ZF = _TF;
this.__F = ~~_UF;
this._0G = ~~_VF;
this._1G = _WF;
this._2G = _XF;
this._3G = [];
this._am()
};
_RF.prototype._am = function() {
var _4G = this.__F * this._0G;
for (var _u2 = 0; _u2 < _4G; _u2++) {
this._3G[_u2] = 0
}
};
var _5G = _6G;
function _6G(_dn) {
var _7G = _8G._hn(_dn);
if (_7G) {
_9h.globalAlpha = _cj;
var _Mp = _8p(0xff0000, 1.0);
var _Np = _8p(0x00ff00, 1.0);
for (var _w2 = 0; _w2 < _7G.__F; _w2++) {
for (var _x2 = 0; _x2 < _7G._0G; _x2++) {
var _Dg = _Np;
if (_7G._3G[_w2 * _7G._0G + _x2] < 0) {
_Dg = _Mp
}
_9h.fillStyle = _Dg;
_9h._VA((_7G._YF + _w2 * _7G._1G), (_7G._ZF + _x2 * _7G._2G), _7G._1G, _7G._2G)
}
}
return
}
_ym("Error: invalid mp_grid ID (mp_grid_draw)")
}
function _DF(_Ay, _ye, _ze) {
var _Cf, _Ef, _zA, _9G;
_zA = !0;
_Cf = _Ay._w2;
_Ef = _Ay._x2;
_Ay._5k(_ye, _ze);
var _Hn = _ke._aG();
for (var _iE = 0; _iE < _Hn.length; _iE++) {
_9G = _Hn[_iE];
if (_9G._bG) {
if (_Ay._tE(_9G, !0)) {
_zA = !1;
break
}
}
}
_Ay._5k(_Cf, _Ef);
return _zA
}
function _CF(_Ay, _ye, _ze) {
var _Cf, _Ef, _zA, _9G;
_zA = !0;
_Cf = _Ay._w2;
_Ef = _Ay._x2;
_Ay._5k(_ye, _ze);
var _Hn = _ke._aG();
for (var _iE = 0; _iE < _Hn.length; _iE++) {
_9G = _Hn[_iE];
if (_Ay._tE(_9G, !0)) {
_zA = !1;
break
}
}
_Ay._5k(_Cf, _Ef);
return _zA
}
function _h7(_Ay, _ye, _ze, _Ln) {
var _Cf, _Ef, _zA, _9G;
_zA = !1;
_Cf = _Ay._w2;
_Ef = _Ay._x2;
_Ay._5k(_ye, _ze);
var _Hn = _26(_Ln);
for (var _iE = 0; _iE < _Hn.length; _iE++) {
_9G = _Hn[_iE];
if (_Ay._tE(_9G, !0)) {
_zA = !0;
break
}
}
_Ay._5k(_Cf, _Ef);
return _zA
}
function _cG(_Ay, _ye, _ze, _KF) {
_Ay._I7(_ye - _Ay._w2);
_Ay._K7(_ze - _Ay._x2);
_Ay._Qc(_KF)
}
function _dG(_Ay, _ye, _ze, _eG) {
if (_eG) {
return _CF(_Ay, _ye, _ze)
} else {
return _DF(_Ay, _ye, _ze)
}
}
function _fG(_to, _ye, _ze, _eG) {
if (_eG) return _CF(_to, _ye, _ze);
else return _DF(_to, _ye, _ze)
}
function _gG(_xe) {
if (!_cy._hn(_xe)) return !1;
return !0
}
var _hG = _Ho;
var _iG = _jG;
var _kG = _lG;
var _mG = _nG;
var _oG = _pG;
var _qG = _rG;
var _sG = _tG;
var _uG = _vG;
var _wG = _xG;
var _yG = _zG;
var _AG = _BG;
var _CG = _DG;
var _EG = _FG;
var _GG = _FG;
var _HG = _IG;
var _JG = _KG;
var _LG = _Io;
var _MG = _NG;
var _OG = _PG;
var _QG = _RG;
var _SG = _TG;
var _UG = _VG;
var _WG = _XG;
var _YG = _ZG;
var __G = _0H;
var _1H = _2H;
var _3H = _2H;
var _4H = _Lo;
var _5H = _Lo;
var _6H = _7H;
var _8H = _7H;
var _9H = _7H;
var _aH = _7H;
var _bH = _Ko;
var _cH = _Ko;
var _dH = _eH;
var _fH = _eH;
var _gH = _hH;
var _iH = _hH;
var _jH = _kH;
var _lH = _Mo;
var _mH = _nH;
var _oH = _pH;
var _qH = _rH;
var _sH = _tH;
var _uH = _vH;
var _wH = _xH;
var _yH = _zH;
var _AH = _BH;
var _CH = _DH;
var _EH = _FH;
var _GH = _HH;
var _IH = _JH;
var _KH = _LH;
var _MH = _NH;
var _OH = _PH;
var _QH = _RH;
function _SH(_to) {
_to._TH(-1, 0, 1, 0, !1, 0)
}
var _UH = _VH;
function _VH(_dn, _WH, _XH, _YH) {
var _ZH = __H._A1[_dn];
if (!_ZH) return;
_9h.globalAlpha = _cj;
_9h.strokeStyle = _BA;
var _Cf, _Ef, _zw;
var _0I = 0;
var _1I = _ZH._2I(0);
if (!_YH) {
_WH = _WH - _1I._w2;
_XH = _XH - _1I._x2
} else {
_WH = 0;
_XH = 0
}
_0I = _sn(_ZH.length / 4.0);
if (_0I == 0) return;
var _m2 = !0;
_9h._9B();
for (var _u2 = 0; _u2 <= _0I; _u2++) {
_1I = _ZH._2I(_u2 / _0I);
if (_m2) {
_9h._aB(_WH + _1I._w2, _XH + _1I._x2);
_m2 = !1
} else {
_9h._bB(_WH + _1I._w2, _XH + _1I._x2)
}
}
_9h._dB();
_9h._cB()
}
var _3I = new _4I();
var _5I = new _4I();
var _6I = new _4I();
function _7I() {
var _8I = _3I._yn(new _9I(_8I));
return _8I
}
function _aI(_bI) {
var _cI = _3I._hn(_bI);
_cI._dI()
}
function _eI(_bI, _fI) {
var _cI = _3I._hn(_bI);
_cI._gI(_fI)
}
function _hI(_bI, _iI) {
var _cI = _3I._hn(_bI);
_cI._jI(_iI)
}
function _kI(_bI, _lI) {
var _cI = _3I._hn(_bI);
_cI._mI(_lI)
}
function _nI(_bI, _oI) {
var _cI = _3I._hn(_bI);
_cI._pI(_oI)
}
function _qI(_bI, _rI) {
var _cI = _3I._hn(_bI);
_cI._sI((_rI > 0.5) ? !0 : !1)
}
function _tI(_bI, _uI) {
var _cI = _3I._hn(_bI);
_cI._vI(_uI)
}
function _wI(_bI, _uI) {
var _cI = _3I._hn(_bI);
_cI._xI(_uI)
}
function _yI(_bI, _zI) {
var _cI = _3I._hn(_bI);
_cI._AI(_zI)
}
function _BI(_bI, _CI) {
var _cI = _3I._hn(_bI);
_cI._DI(_CI * _ke._EI._FI)
}
function _GI(_bI) {
var _cI = _3I._hn(_bI);
_cI._HI()
}
function _II(_bI, _JI, _KI) {
var _cI = _3I._hn(_bI);
var scale = _ke._EI._FI;
_cI._LI(_JI * scale, _KI * scale)
}
function _MI(_to, _bI, _dn, _NI, _OI) {
var _PI = -1;
var _cI = _3I._hn(_bI);
var _Ln = Math.floor(_dn);
if (_Ln == _QI) {
_Ln = _to.id
}
if (_Ln == _BF) {
var _Hn = _3E._aG();
for (var _iE = 0; _iE < _Hn.length; _iE++) {
var _jE = _Hn[_iE];
if (_jE._RI) continue;
_PI = _ke._EI._SI(_cI, _jE, _NI, _OI)
}
} else if (_Ln < 100000) {
var _Wn = _cy._hn(_Ln);
if (_Wn === null) {
return _TI
}
var _Hn = _Wn._UI();
for (var _iE = 0; _iE < _Hn.length; _iE++) {
var _jE = _Hn[_iE];
if (_jE._RI) continue;
_PI = _ke._EI._SI(_cI, _jE, _NI, _OI)
}
} else {
var _jE = _3E._hn(_Ln);
_PI = _ke._EI._SI(_cI, _jE, _NI, _OI)
}
return _PI
}
function _VI(_to, _bI, _dn, _WI, _XI) {
if (_WI !== undefined && _XI !== undefined) {
return _MI(_to, _bI, _dn, _WI, _XI)
} else {
return _MI(_to, _bI, _dn, 0.0, 0.0)
}
}
function _YI(_xe, _ej, _ZI) {
var __I = _0J._hn(_xe);
if (__I === null) return;
var _1J = __I._2J;
_1J._w4 = _ej;
_1J._3J = _ZI
}
var _4J = _YI;
function _za() {
if ((_ke._5J + 1) >= _0J._6J.length) return;
_7J = _0J._8J(_ke._5J + 1).id
}
function _ia(_9J) {
var _aJ = _0J._hn(_9J);
if ((_aJ == null) || (_aJ == undefined)) {
_dv("Error: Room " + _9J + " is not a valid room index")
} else {
_7J = _9J
}
}
function _bJ() {
_ia(_cJ)
}
var _dJ = function() {
__h("yy_texture_get_texel_width()")
};
var _eJ = function() {
__h("yy_texture_get_texel_height()")
};
var _fJ = function() {
__h("texture_set_stage()")
};
var _gJ = function() {
__h("shader_is_compiled()")
};
var _hJ = function() {
__h("shader_set()")
};
var _iJ = function() {
__h("shader_get_uniform()");
};
var _jJ = function() {
__h("shader_set_uniform_i()")
};
var _kJ = function() {
__h("shader_set_uniform_f()")
};
var _lJ = function() {
__h("shader_set_uniform_matrix()")
};
var _mJ = function() {
__h("shader_set_uniform_matrix()")
};
var _nJ = function() {
__h("shader_enable_corner_id()")
};
var _oJ = function() {
__h("shader_set_uniform_array_i()")
};
var _pJ = function() {
__h("shader_set_uniform_array_f()")
};
var _qJ = function() {
__h("shader_set_uniform_matrix_array()")
};
function _rJ() {
return 0
}
var _sJ = [];
var _tJ = 200000;
var _uJ = _tJ;
var _vJ = [];
var _wJ = 0;
var audio_sampledata = [];
var _xJ = !1;
var _yJ = 0;
var _zJ = 128;
var _AJ = 0;
var _BJ = [];
var _CJ = {
_DJ: 0,
_EJ: 1,
_FJ: 2,
_GJ: 3,
_HJ: 4,
_IJ: 5,
_JJ: 6
};
var _KJ = 0;
var _LJ = 1.0;
var _MJ = 0;
function _NJ() {
if (_Gm != _Hm) return;
_yJ++
}
var _OJ;
function _PJ() {
if (_Gm != _Hm) {
return
}
_QJ = g_WebAudioContext.createGainNode();
_QJ.connect(g_WebAudioContext.destination);
_RJ(_CJ._EJ);
var _SJ;
if (typeof document.hidden !== "undefined") {
_OJ = "hidden";
_SJ = "visibilitychange";
} else if (typeof document.mozHidden !== "undefined") {
_OJ = "mozHidden";
_SJ = "mozvisibilitychange"
} else if (typeof document.msHidden !== "undefined") {
_OJ = "msHidden";
_SJ = "msvisibilitychange"
} else if (typeof document.webkitHidden !== "undefined") {
_OJ = "webkitHidden";
_SJ = "webkitvisibilitychange"
}
document.addEventListener(_SJ, _TJ, !1);
g_WebAudioContext.listener._Gn = new _Xs(0, 0, 0);
g_WebAudioContext.listener._UJ = new _Xs(0, 0, 0);
g_WebAudioContext.listener._VJ = new Array(0, 0, 0, 0, 0, 0);
_WJ(0, 0, 0);
_XJ(0, 0, 1.0, 0, 1.0, 0.0);
_YJ();
_ZJ()
}
function __J() {
this.buffer = null;
this.gain = 1.0;
this._0K = 1.0;
this._1K = 1.0;
this.duration = 0.0;
this._2K = 0.0;
this._3K = 0;
this._Zh = 0
}
function _4K(_5K, _6K, _7K) {
this._8K = g_WebAudioContext.createGainNode();
this._9K = null;
this._ww = 0;
this._aK(_5K, _6K, _7K)
}
_4K.prototype._aK = function(_5K, _6K, _7K) {
this._bK = !1;
this._cK = g_WebAudioContext.currentTime;
this.playbackpoint = 0;
this._dK = null;
this._8K.disconnect();
this.gain = 1.0;
this._8K.gain.value = 1;
if (this._9K != null) {
this._9K.disconnect();
this._9K = null
}
this.paused = !1;
this._eK = _5K;
this._fK = _7K;
this._gK = !1;
this._hK = _6K;
this._iK = !1;
this._jK = null;
this._kK = null;
if (_5K >= 0) {
this._iK = _lK(_5K);
this._8K.gain.value = audio_sampledata[_5K].gain;
if (this._ww >= _tJ) {
_BJ[this._ww - _tJ] = null
}
this._ww = _uJ;
_BJ[_uJ - _tJ] = this;
++_uJ
}
};
function _lK(_eK) {
if (_eK >= 0 && _eK < _cv._j1.length) {
if (_cv._j1[_eK]._Zh == 1) {
return !0
}
} else {
debug("Error: soundid " + _eK + " not found")
}
return !1
}
function _Im() {
var _mK = g_WebAudioContext.createBufferSource();
var gain = g_WebAudioContext.createGainNode();
_mK.connect(gain);
gain.connect(g_WebAudioContext.destination);
gain.gain.value = 0;
_mK.noteOn(0)
}
function _nK(_oK) {
if (_oK._bK) {
if (_oK._iK) _pK(_oK);
else _qK(_oK);
_oK._eK = -1;
_oK._bK = !1
}
}
function _pK(_oK) {
if (_oK._jK != null) {
try {
_oK._jK.pause();
_oK._kK.disconnect();
if (_oK._8K != null) _oK._8K.disconnect();
if (_oK._9K != null) {
_oK._9K.disconnect();
_oK._9K = null
}
} catch (_rK) {
debug("Audio_StopStreamed exception: " + _rK);
}
}
}
function _qK(_oK) {
try {
if (_oK._dK != null) {
_oK._dK.onended = null;
_oK._dK.loop = !1;
_oK._dK.noteOff(0);
_oK._dK.disconnect();
if (_oK._8K != null) _oK._8K.disconnect();
if (_oK._9K != null) {
_oK._9K.disconnect();
_oK._9K = null
}
}
} catch (_rK) {
debug("Audio_StopUnstreamed exception: " + _rK)
}
}
function _sK(_oK) {
if (!_oK.paused) {
if (_oK._iK) _tK(_oK);
else _uK(_oK);
_oK.paused = !0
}
}
function _tK(_oK) {
try {
_oK._jK.pause()
} catch (_rK) {
debug("Audio_PauseStreamed exception: " + _rK)
}
}
function _uK(_oK) {
try {
_oK._dK.onended = null;
_oK._dK.noteOff(0);
_oK.playbackpoint += g_WebAudioContext.currentTime - _oK._cK
} catch (_rK) {
debug("Audio_PauseUnstreamed exception: " + _rK)
}
}
function _vK(_oK) {
if (_oK.paused) {
if (_oK._iK) _wK(_oK);
else _xK(_oK);
_oK.paused = !1
}
}
function _wK(_oK) {
if (_oK.paused) {
try {
_oK._jK.play()
} catch (_rK) {
debug("Audio_ResumeStreamed exception: " + _rK)
}
}
}
function _xK(_oK) {
try {
_oK._dK = g_WebAudioContext.createBufferSource();
_oK._cK = g_WebAudioContext.currentTime;
_oK._8K = g_WebAudioContext.createGainNode();
_oK._8K.gain.value = _oK.gain * audio_sampledata[_oK._eK].gain;
_oK._dK.connect(_oK._8K);
_oK._dK.onended = function(event) {
_oK._bK = !1
};
if (_oK._9K != null) {
_oK._8K.connect(_oK._9K)
} else {
_oK._8K.connect(_QJ)
}
_oK._dK.buffer = audio_sampledata[_oK._eK].buffer;
if (_oK._fK > 0) _oK._dK.loop = !0; {
var _yK = Math.floor(_oK.playbackpoint / _oK._dK.buffer.duration);
var _zK = _oK.playbackpoint - _yK * _oK._dK.buffer.duration;
_oK._dK.noteGrainOn(0, _zK, _oK._dK.buffer.duration - _zK)
}
} catch (_rK) {
debug("Audio_ResumeUnstreamed exception: " + _rK)
}
}
function _AK(_oK) {
var _BK = !1;
if (_oK._bK) {
return _oK.paused;
}
return !1
}
function _CK(_oK) {
var _DK = !1;
if (_oK._bK) {
if (_oK._iK) _DK = _EK(_oK);
else _DK = _FK(_oK)
}
return _DK
}
function _FK(_oK) {
if (_oK._dK != null) {
if ((_oK._dK.playbackState == undefined || _oK._dK.playbackState != _oK._dK.FINISHED_STATE) || _oK.paused) {
return !0
}
}
return !1
}
function _EK(_oK) {
if (_oK._jK != null) {
if (!_oK._jK.ended) {
return !0
}
}
return !1
}
function _TJ() {
if (_Gm == _Hm) {
if (document[_OJ] == !0) {
if (!_xJ) {
_xJ = !0;
_GK(!0)
}
} else if (document[_OJ] == !1) {
if (_xJ) {
_HK(!0);
_xJ = !1
}
}
}
}
var _IK;
function _RJ(_JK) {
if (_Gm != _Hm) {
return
}
var _KK = g_WebAudioContext.createPanner();
_IK = _KK.INVERSE_DISTANCE;
switch (_JK) {
case _CJ._DJ:
debug("Audio_falloff_none not supported in html5\n");
break;
case _CJ._EJ:
_IK = _KK.INVERSE_DISTANCE;
break;
case _CJ._FJ:
debug("Audio_falloff_inverse_distance_clamped not supported in html5\n");
break;
case _CJ._GJ:
_IK = _KK.LINEAR_DISTANCE;
break;
case _CJ._HJ:
debug("Audio_falloff_linear_distance_clamped not supported in html5\n");
break;
case _CJ._IJ:
_IK = _KK.EXPONENTIAL_DISTANCE;
break;
case _CJ._JJ:
debug("Audio_falloff_exponent_distance_clamped not supported in html5\n");
break;
default:
debug("Attempting to set audio falloff to unknown model\n");
break
}
}
function _GK(_LK) {
for (_u2 = 0; _u2 < _AJ; ++_u2) {
var _mK = _sJ[_u2];
if (_mK._bK) {
if (!_mK.paused) {
_sK(_mK);
if (_LK) _mK._gK = !0
}
}
}
}
function _MK() {
for (_u2 = 0; _u2 < _AJ; ++_u2) {
var _mK = _sJ[_u2];
if (_mK._bK) {
_nK(_mK)
}
}
}
function _NK(_OK) {
for (_u2 = 0; _u2 < _AJ; ++_u2) {
var _mK = _sJ[_u2];
if (_mK._bK) {
var _3K = audio_sampledata[_mK._eK]._3K;
if (_3K == _OK) {
_nK(_mK)
}
}
}
}
function _HK(_LK) {
for (_u2 = 0; _u2 < _AJ; ++_u2) {
var _mK = _sJ[_u2];
if (_mK._bK) {
if (_mK.paused) {
if (_LK) {
if (_mK._gK) {
_vK(_mK);
_mK._gK = !1;
}
} else {
_vK(_mK)
}
}
}
}
}
function _WJ(_PK, _QK, _RK) {
if (_Gm == _Hm) {
var _SK = g_WebAudioContext.listener;
_SK.setPosition(_PK, _QK, _RK);
_SK._Gn._xt = _PK;
_SK._Gn._yt = _QK;
_SK._Gn._zt = _RK
}
}
function _XJ(_PK, _QK, _RK, _TK, _UK, _VK) {
if (_Gm == _Hm) {
var _SK = g_WebAudioContext.listener;
_SK.setOrientation(_PK, _QK, _RK, _TK, _UK, _VK);
_SK._VJ[0] = _PK;
_SK._VJ[1] = _QK;
_SK._VJ[2] = _RK;
_SK._VJ[3] = _TK;
_SK._VJ[4] = _UK;
_SK._VJ[5] = _VK
}
}
function _WK(e) {
if (_Gm != _Hm) return;
var targetid = e.target.targetid;
debug("error loading sound" + targetid);
if (targetid == undefined) {} else {
debug("AudioError: " + this.URL);
this.completed = !1;
_XK++;
ClearEventListeners(this)
}
}
function _YK(e) {
if (_Gm != _Hm) return;
var targetid = e.target.targetid;
if (_ZK) debug("sound loaded" + targetid);
if (targetid == undefined) {} else {
this.completed = !0;
ClearEventListeners(this);
try {
g_WebAudioContext.decodeAudioData(e.target.response, function(buffer) {
var __K = audio_sampledata[targetid];
__K.buffer = buffer;
_XK++
}, function(err) {
debug("error decoding audio data:" + err);
_XK++
})
} catch (_0L) {
debug("error decoding audio data: " + _0L.message);
_XK++
}
}
}
function _1L(_uC, _dn, _2L) {
var __K = audio_sampledata[_dn];
__K.buffer = null
}
function _3L(_uC, _dn, _2L, _4L) {
_uC = _5L(_uC);
if ((_Gm != _Hm) || (_6L == !1)) {
return undefined
}
var _7L;
var index;
index = _uC.indexOf(_2L);
if (index >= 0) {
_uC = _uC.substr(0, index)
}
if (_8L) {
_2L = "ogg"
} else if (_9L) {
_2L = "mp3"
} else {
_2L = "ogg"
}
_uC = _uC + "." + _2L;
var __D = new XMLHttpRequest();
__D.open('GET', _uC, !0);
__D.responseType = 'arraybuffer';
__D.targetid = _dn;
__D.URL = _uC;
__D.completed = !1;
if (_4L != undefined) {
__D.targetid = {
_aL: _4L,
_bL: _dn
};
__D.onload = _cL;
__D.onerror = _dL
} else {
__D.onload = _YK;
__D.onerror = _WK
}
__D.send();
_eL[_dn] = __D;
return _dn
}
var _fL = "Unloaded";
var _gL = "Loading";
var _hL = "Loaded";
var _iL = "Unloading";
var _jL = 0;
var _kL = [];
function _lL(_OK) {
this._3K = _OK;
this._mL = _fL;
this._nL = 0;
this._oL = 0;
this._pL = []
}
_lL.prototype._qL = function(_rL) {
this._pL.push(_rL)
};
_lL.prototype._sL = function(_tL) {
if (this._mL != _tL) {
this._mL = _tL;
debug("Audio Group " + this._3K + "-> " + this._mL);
if (_tL == _hL) {
var map = _86();
_O7._uL = map;
_96(map, "type", "audiogroup_load");
_96(map, "group_id", this._3K);
_cy._vL(_wL, 0)
}
}
};
function _cL(e) {
var targetid = this.targetid._bL;
var _xL = this.targetid._aL;
if (_ZK) debug("sound loaded " + targetid);
if (targetid != undefined) {
e.target.completed = !0;
ClearEventListeners(this);
try {
g_WebAudioContext.decodeAudioData(e.target.response, function(buffer) {
var __K = audio_sampledata[targetid];
__K.buffer = buffer;
_xL._yL()
}, function(err) {
debug("error decoding audio data:" + err);
_xL._yL()
})
} catch (_0L) {
debug("error decoding audio data: " + _0L.message);
_xL._yL()
}
}
}
function _dL(e) {
var targetid = this.targetid._bL;
var _xL = this.targetid._aL;
debug("error loading sound" + targetid);
if (targetid != undefined) {
debug("AudioError: " + this.URL);
this.completed = !1;
ClearEventListeners(this);
_xL._yL()
}
}
_lL.prototype._yL = function() {
this._nL--;
if (this._pL.length > 0) {
this._oL = ((this._pL.length - this._nL) * 100) / (this._pL.length)
}
if (this._nL <= 0) {
this._sL(_hL)
}
};
_lL.prototype._jg = function() {
if (this._mL != _fL) {
return 0
}
if (this._pL.length == 0) {
return 0
}
this._sL(_gL);
this._nL = this._pL.length;
this._oL = 0;
var _u2;
for (_u2 = 0; _u2 < this._pL.length; ++_u2) {
var index = this._pL[_u2];
if (_cv._j1[index]._Zh == 0) {
var id = _3L(_sg + _cv._j1[index]._zL, index, _cv._j1[index]._AL, this);
if (id === undefined) this._yL()
} else {
this._yL()
}
}
};
function _YJ() {
var index;
var _BL = 1;
for (index = 0; index < _cv._j1.length; index++) {
if (_cv._j1[index] !== null) {
var __K = new __J();
audio_sampledata[index] = __K;
__K.buffer = null;
var _CL = _cv._j1[index].volume;
__K.gain = _CL;
__K._0K = _CL;
__K._1K = 1.0;
__K._Zh = _cv._j1[index]._Zh;
if (_cv._j1[index].duration != undefined) {
__K.duration = _cv._j1[index].duration
}
__K._3K = 0;
var _3K = _cv._j1[index]._3K;
if (_3K != undefined) {
__K._3K = _3K
}
}
}
}
function _ZJ() {
if (_cv._k1) {
var _u2;
_jL = _cv._k1.length;
for (_u2 = 0; _u2 < _jL; ++_u2) {
_kL[_u2] = new _lL(_u2)
}
for (_u2 = 0; _u2 < audio_sampledata.length; ++_u2) {
var _mK = audio_sampledata[_u2];
if (_mK != undefined) {
_3K = _mK._3K;
if (_kL[_3K] != undefined) {
_kL[_3K]._qL(_u2)
}
}
}
}
}
var _DL = 0,
_EL = 1,
_FL = 2,
_GL = 3;
function _HL(_IL) {
if (_JL._hn(_IL) == null) return !1;
return !0
}
var _KL = _LL;
function _LL(_xe, _ye, _ze, _6n, _7n, _Po, _Qo) {
var _ML = document.createElement(_rv);
var _NL = _ML.getContext('2d');
_OL(_NL);
_PL = _JL._hn(_xe);
_PL._qf++;
_ML.width = _PL.width;
_ML.height = _PL.height;
_NL._QL(canvas, _ye, _ze, _6n, _7n, 0, 0, _ML.width, _ML.height);
if (_Po) {
_ML.complete = _Wo(_NL, _6n, _7n)
} else {
_ML.complete = !0
}
_PL._qf++;
var _Zo = new __o();
_PL._RL[_PL._RL.length] = _Zo;
_Zo._w2 = 0;
_Zo._x2 = 0;
_Zo._y2 = _PL.width;
_Zo._z2 = _PL.height;
_Zo._O4 = 0;
_Zo._P4 = 0;
_Zo._Q4 = _Zo._y2;
_Zo._R4 = _Zo._z2;
_Zo._S4 = _Zo._y2;
_Zo._T4 = _Zo._z2;
_Zo._U4 = _SL(_ML);
_Zo._hg = _ig[_Zo._U4];
return _xe
}
var _TL = _UL;
function _UL(_dn, _ye, _ze, _6n, _7n, _Po, _Qo, _VL, _WL) {
var _ML = document.createElement(_rv);
var _NL = _ML.getContext('2d');
_OL(_NL);
_ML.width = _Uo._hn(_dn).width;
_ML.height = _Uo._hn(_dn).height;
_NL._QL(_Uo._hn(_dn), 0, 0);
if (_Po) {
_ML.complete = _Wo(_NL, _6n, _7n)
} else {
_ML.complete = !0
}
var _PL = new _XL();
var _YL = _JL._ZL(_PL);
_PL._m1 = "surface.copy";
_PL.width = _ML.width;
_PL.height = _ML.height;
_PL._DE = new _Yv();
_PL._DE._1f = _PL.width;
_PL._DE.bottom = _PL.height;
_PL._n1 = !0;
_PL._o1 = !0;
_PL.preload = !0;
_PL.__L = 0;
_PL._0M = !1;
_PL._p1 = _VL;
_PL._q1 = _WL;
_PL._1M = !0;
_PL._qf = 1;
_PL._2M = !1;
_PL._3M = !1;
_PL._rf = [];
_PL._RL = [];
_PL._y1 = [];
_PL._4M();
var _Zo = new __o();
_PL._RL[0] = _Zo;
_Zo._w2 = 0;
_Zo._x2 = 0;
_Zo._y2 = _PL.width;
_Zo._z2 = _PL.height;
_Zo._O4 = 0;
_Zo._P4 = 0;
_Zo._Q4 = _Zo._y2;
_Zo._R4 = _Zo._z2;
_Zo._S4 = _Zo._y2;
_Zo._T4 = _Zo._z2;
_Zo._U4 = _SL(_ML);
_Zo._hg = _ig[_Zo._U4];
_5M(_Zo);
return _YL
}
var _6M = _7M;
function _7M(_xe, _dn, _ye, _ze, _6n, _7n, _Po, _Qo) {
var _ML = document.createElement(_rv);
var _NL = _ML.getContext('2d');
_OL(_NL);
_PL = _JL._hn(_xe);
_PL._qf++;
_ML.width = _PL.width;
_ML.height = _PL.height;
_NL._QL(_Uo._hn(_dn), 0, 0, _6n, _7n, 0, 0, _ML.width, _ML.height);
if (_Po) {
_ML.complete = _Wo(_NL, _6n, _7n)
} else {
_ML.complete = !0
}
var _Zo = new __o();
_PL._RL[_PL._RL.length] = _Zo;
_Zo._w2 = 0;
_Zo._x2 = 0;
_Zo._y2 = _PL.width;
_Zo._z2 = _PL.height;
_Zo._O4 = 0;
_Zo._P4 = 0;
_Zo._Q4 = _Zo._y2;
_Zo._R4 = _Zo._z2;
_Zo._S4 = _Zo._y2;
_Zo._T4 = _Zo._z2;
_Zo._U4 = _SL(_ML);
_Zo._hg = _ig[_Zo._U4];
return _xe
}
var _8M = _9M;
function _9M(_xe) {
var _aM = _JL._hn(_xe);
if (_aM == null) return 0;
var _PL = new _XL();
var _YL = _JL._ZL(_PL);
_PL._m1 = _aM._m1 + ".copy";
_PL.width = _aM.width;
_PL.height = _aM.height;
_PL._DE._9n(_aM._DE);
_PL._n1 = _aM._n1;
_PL._o1 = _aM._o1;
_PL.preload = _aM.preload;
_PL.__L = _aM.__L;
_PL._0M = _aM._0M;
_PL._p1 = _aM._p1;
_PL._q1 = _aM._q1;
_PL._1M = !0;
_PL._qf = _aM._qf;
_PL._bM = _aM._bM;
_PL._2M = _aM._2M;
_PL._3M = _aM._3M;
_PL._rf = [];
_PL._RL = [];
_PL._y1 = [];
for (var _u2 = 0; _u2 < _aM._qf; _u2++) {
var _Zo = new __o();
_PL._RL[_u2] = _Zo;
_Zo._1M(_aM._RL[_u2]);
var _cM = _dM(_aM._RL[_u2]);
_Zo._U4 = _SL(_cM);
_Zo._w2 = 0;
_Zo._x2 = 0;
_Zo._hg = _ig[_Zo._U4]
}
return _YL
}
function _eM(_fM, _gM, _hM, _iM, _6j, _jM) {
var _y2 = _gM._S4;
var _z2 = _gM._T4;
var _kM = [];
var _lM = _z2 * _y2;
for (_Bf = 0; _Bf < _lM; _Bf++) _kM[_Bf] = !1;
if (_6j == _DL) {
var _mM = _nM(_gM);
var index = 0;
for (var _u2 = 0; _u2 < _mM.length; _u2 += 4) {
if (_mM[_u2 + 3] > _jM) {
_kM[index] = !0
} else {
_kM[index] = !1
}
index++
}
} else {
switch (_6j) {
case _EL:
{
for (var _x2 = _iM.top; _x2 <= _iM.bottom; _x2++) {
for (var _w2 = _iM.left; _w2 <= _iM._1f; _w2++) {
_kM[_w2 + (_x2 * _y2)] = !0
}
}
break
}
case _FL:
{
var _Sf = (_iM.left + _iM._1f) / 2;
var _zh = _Sf - _iM.left + 0.5;
var _Tf = (_iM.top + _iM.bottom) / 2;
var _Ah = _Tf - _iM.top + 0.5;
for (var _x2 = _iM.top; _x2 <= _iM.bottom; _x2++) {
for (var _w2 = _iM.left; _w2 <= _iM._1f; _w2++) {
if ((_zh > 0) && (_Ah > 0)) {
_kM[_w2 + (_x2 * _y2)] = _Wf((_w2 - _Sf) / _zh) + _Wf((_x2 - _Tf) / _Ah) < 1
}
}
}
break
}
case _GL:
{
var _Sf = (_iM.left + _iM._1f) / 2;
var _zh = _Sf - _iM.left + 0.5;
var _Tf = (_iM.top + _iM.bottom) / 2;
var _Ah = _Tf - _iM.top + 0.5;
for (var _x2 = _iM.top; _x2 <= _iM.bottom; _x2++) {
for (var _w2 = _iM.left; _w2 <= _iM._1f; _w2++) {
if ((_zh > 0) && (_Ah > 0)) {
_kM[_w2 + (_x2 * _y2)] = Math.abs((_w2 - _Sf) / _zh) + Math.abs((_x2 - _Tf) / _Ah) < 1
}
}
}
break
}
}
} if (_fM != null) {
for (var _u2 = 0; _u2 < _kM.length; _u2++) {
if (_fM[_u2]) _kM[_u2] = !0
}
}
return _kM
}
function _oM(_pM, _qM) {
if (_HL(_pM)) {
var _rM = _JL._hn(_pM);
var _Zo = _rM._sM(~~_qM);
if (_Zo) {
return ({
_7j: _Zo._hg,
_nj: _Zo
})
}
}
return null
}
function _2w(_en) {
return String.fromCharCode(_en)
}
function _tM(_cx) {
if (!_cx || _cx == "") return 0;
return _cx.charCodeAt(0)
}
function _ad(_cx) {
if (_cx == undefined) {
return 0
} else if (typeof(_cx) == "boolean") {
if (_cx) return 1;
else return 0;
} else if (typeof(_cx) == "number") {
return _cx
}
return parseFloat(_cx)
}
function _39(_Ln) {
if (_Ln == undefined) {
return "undefined"
}
if (_Ln instanceof Array) {
var _on = "{";
for (var _u2 = 0; _u2 < _Ln.length; ++_u2) {
if (_u2 != 0) _on += ",";
_on += _39(_Ln[_u2])
}
_on += "}";
return _on
} else if (typeof(_Ln) == "number") {
if ((~~_Ln) != _Ln) {
return _Ln.toFixed(2).toString()
} else {
return _Ln.toString()
}
} else if (typeof(_Ln) == "boolean") {
if (_Ln) return "1";
else return "0"
} else {
return _Ln.toString()
}
}
function _n6(_cx, _IL) {
var index = _IL - 1;
if (index < 0) {
index = 0
}
return _cx.charAt(index)
}
function _wa(_uM, _cx) {
_uM = _uM.replace(_2w(13), "#");
var _fg = 0;
if (_uM.length > 0) {
var index = 0;
while (index != -1) {
index = _cx.indexOf(_uM, index);
if (index > -1) {
_fg += 1;
index++
}
}
}
return _fg
}
var _vM = [];
function _wM(_xM) {
debug("myBrandConnectReadyEvent");
_vM = _xM
}
function _yM() {
_Iv()
}
function _zM() {
_AM = !0;
debug("myBrandConnectDoneEvent")
}
function _BM() {
var _CM = document.getElementById("ssaBrandConnectInterstitial");
var _DM = document.getElementById("gm4html5_div_id");
_DM.appendChild(_CM);
_vv()
}
var _EM = !1;
var _AM = !1;
var ssa_json = {
'applicationUserId': '1234',
'applicationKey': '2b46ec59',
'onCampaignsReady': _wM,
'onCampaignsDone': _zM,
'onCampaignClose': _yM,
'onCampaignOpen': _BM,
'maxWidth': 1000,
'maxHeight': 700,
};
var _FM = (function(_Bp, _wf) {
var _Vg = _Bp.createElement(_wf),
_ov = _Bp.getElementsByTagName(_wf)[0];
_Vg._nw = !0;
_Vg.src = ('https:' != location.protocol ? 'http://jsd.supersonicads.com' : 'https://a248.e.akamai.net/ssastatic.s3.amazonaws.com') + '/inlineDelivery/delivery.min.gz.js';
_ov.parentNode.insertBefore(_Vg, _ov)
});
var _GM = ads_engagement_launch;
function ads_engagement_launch(_HM, _IM) {
if (SSA_CORE != undefined) SSA_CORE.BrandConnect.engage();
}
var _JM = [];
_KM = _LM;
function _LM(_dn, _6n, _7n) {
if (_dn == _MM) {
_NM = !0;
_OM = _6n;
_PM = _7n;
return 1
}
if (!_QM(_dn)) {
_ym("Surface does not exist");
return 0
}
_So(_6n, _7n, _dn);
return 0
}
_So = _RM;
function _RM(_6n, _7n, _SM) {
var _7p = document.createElement(_rv);
_7p._qj = _7p.width = _6n;
_7p._rj = _7p.height = _7n;
_7p.complete = !0;
_7p._TM = !1;
_7p.name = "";
_7p._9h = _7p.getContext('2d');
_OL(_7p._9h);
var _Zo = new __o();
_7p._UM = _Zo;
_Zo._w2 = 0;
_Zo._x2 = 0;
_Zo._y2 = _6n;
_Zo._z2 = _7n;
_Zo._O4 = 0;
_Zo._P4 = 0;
_Zo._Q4 = _Zo._y2;
_Zo._R4 = _Zo._z2;
_Zo._S4 = _Zo._y2;
_Zo._T4 = _Zo._z2;
if (_SM != undefined) {
_Uo._Tn(_SM, _7p);
_Zo._U4 = _SM
} else {
_Zo._U4 = _Uo._yn(_7p)
}
_Zo._hg = _7p;
_Zo._eg = [];
_Zo._fg = 0;
_Zo._gg = 4;
_Zo._VM = 0;
_Zo._WM = null;
_Zo._ML = _7p;
return _Zo._U4
}
var _XM = _YM;
function _YM(_dn) {
_Uo._Qn(_dn)
}
function _QM(_dn) {
if (_Uo._hn(_dn) != null) return !0;
else return !1
}
function _ZM(_dn) {
var _7p = _Uo._hn(_dn);
if (_7p != null) {
return _7p._qj
}
return 0
}
function __M(_dn) {
var _7p = _Uo._hn(_dn);
if (_7p != null) {
return _7p._rj
}
return 0
}
_0N = _1N;
function _1N(_dn) {
var _7p = _Uo._hn(_dn);
if (_7p != null) {
_9h._Xz();
_JM.push(_9h);
_7p._9h._2N = _dn;
_9h = _7p._9h;
g_CurrentGraphics = _9h;
_3N = !1
}
}
var _4N, _5N, _6N, _7N;
var _8N = _9N;
function _9N(_dn) {
var _7p = _Uo._hn(_dn);
if (_7p != null) {
_aN.left = _bN.left;
_aN.top = _bN.top;
_aN._1f = _bN._1f;
_aN.bottom = _bN.bottom;
_bN.left = 0;
_bN.top = 0;
_bN._1f = _7p._qj;
_bN.bottom = _7p._rj;
_cN._9n(_dN);
_dN._eN = 0;
_dN._fN = 0;
_dN._gN = _7p._qj;
_dN._hN = _7p._rj;
_dN._iN = 0;
_dN._jN = 0;
_dN._kN = _7p._qj;
_dN._lN = _7p._rj;
_dN._rm = 0;
_dN._tm = 0;
_dN._mN = _7p._qj;
_dN._nN = _7p._rj;
_dN._sm = _dN._rm + _dN._mN;
_dN._um = _dN._tm + _dN._nN;
_9h._Xz();
_JM.push(_9h);
_4N = __z;
_5N = _0A;
_6N = _1A;
_7N = _2A;
_oN(0, 0, _7p._qj, _7p._rj);
_pN(0, 0, _7p._qj, _7p._rj);
g_CurrentGraphics = _7p._9h;
_9h = _7p._9h;
_9h._Xz();
_3N = !0
}
}
var _qN = _rN;
function _rN() {
if (_3N) {
_bN = _aN;
_dN._9n(_cN);
_oN(_4N, _5N, _6N, _7N);
_pN(_dN._eN, _dN._fN, _dN._gN, _dN._hN);
_9h._3A()
}
var _sN = _JM.pop();
_9h = _sN ? _sN : _tN;
g_CurrentGraphics = _9h;
_9h._3A()
}
function _mB(_uN, _ye, _ze) {
var data = null;
var _Vo = _uN.getContext('2d');
try {
data = _Vo._vN(_ye, _ze, 1, 1)
} catch (_0L) {
return 0xff000000
}
_wN = data.data;
var index = 0;
var _xN = _wN[index] & 0xff;
var _yN = _wN[index + 1] & 0xff;
var _zN = _wN[index + 2] & 0xff;
var _AN = _wN[index + 3] & 0xff;
return (_xN | (_yN << 8) | (_zN << 16) | (_AN << 24))
}
var _BN = _CN;
var _DN = _EN;
function _CN(_dn, _ye, _ze) {
return _EN(_dn, _ye, _ze) & 0xffffff
}
function _EN(_dn, _ye, _ze) {
var _7p = _Uo._hn(_dn);
if (_7p != null) {
return _mB(_7p, _sn(_ye), _sn(_ze))
}
return 0x00000000
}
var _FN = _GN;
function _GN(_dn, _ye, _ze) {
var _7p = _Uo._hn(_dn);
if (!_7p) return;
_ye = ~~_ye;
_ze = ~~_ze;
var alpha = _9h.globalAlpha; {
_9h.globalAlpha = _cj;
_9h._QL(_7p, _ye, _ze)
}
_9h.globalAlpha = alpha
}
function _HN(_dn, _ye, _ze, _6n, _7n) {
var _7p = _Uo._hn(_dn);
if (!_7p) return;
_IN(_7p._UM, _ye, _ze, _6n, _7n, 0xffffff, 1.0)
}
var _JN = _KN;
function _KN(_dn, _ye, _ze, _fr, _gr, _LN, _fj) {
__h("draw_surface_tiled_ext()")
}
function _MN(_NN, _ye, _ze, _ON) {
var _To = _Uo._hn(_NN);
var _4p = _Uo._hn(_ON);
if (_To != null && _4p != null) {
var _Vo = _To.getContext('2d');
_Vo.save();
_Vo.globalCompositeOperation = 'copy';
_Vo.drawImage(_4p, _ye, _ze);
_Vo.restore()
}
}
function _PN(_NN, _ye, _ze, _ON, _QN, _RN, _SN, _TN) {
var _To = _Uo._hn(_NN);
var _4p = _Uo._hn(_ON);
if (_To != null && _4p != null) {
var _Yz = [];
var _Vo = _To.getContext('2d');
_Vo.save();
_Yz[0] = 1;
_Yz[1] = 0;
_Yz[2] = 0;
_Yz[3] = 1;
_Yz[4] = 0;
_Yz[5] = 0;
_Vo.setTransform(_Yz[0], _Yz[1], _Yz[2], _Yz[3], _Yz[4], _Yz[5]);
_Vo.beginPath();
_Vo.rect(_ye, _ze, _SN, _TN);
_Vo.clip();
_Vo.globalCompositeOperation = 'copy';
_Vo.drawImage(_4p, _QN, _RN, _SN, _TN, _ye, _ze, _SN, _TN);
_Vo.restore()
}
}
function _P9(_Ay, _UN, _VN, _ye, _ze, _fr, _gr, _WN, _uj, _fj) {
if (_VN < 0) _VN = ~~_Ay._G6;
var _aM = _JL._hn(_UN);
if (_aM != null) {
_fj = min(1.0, _fj);
_aM._Ig(_VN, _ye, _ze, _fr, _gr, _WN, _gj(_uj), _fj)
}
}
function _4b(_Ay, _UN, _VN, _ye, _ze) {
if (_VN < 0) _VN = ~~_Ay._G6;
var _aM = _JL._hn(_UN);
if (_aM != null) {
_aM._XN(_VN, _ye, _ze, _cj)
}
}
function _YN(_ZN, __N) {
if (_ZN) {
if (__N === undefined) {
canvas.style.cursor = ""
} else {
canvas.style.cursor = __N;
}
} else {
canvas.style.cursor = "none"
}
}
function _0O(_ej) {
_1O = _gj(_ej)
}
var _2O = _0O;
function _3O() {
return _gj(_1O)
}
var _4O = _3O;
function _ja(_ye, _ze) {
var _5O = document.getElementById(_rv);
var _6O = _5O;
for (var _6O = _5O; _6O; _6O = _6O.parentNode) {
var position;
if (_6O["currentStyle"]) {
position = _6O["currentStyle"]["position"];
} else if (window.getComputedStyle) {
try {
var style = window.getComputedStyle(_6O,
null);
if (style) {
position = style.getPropertyValue("position")
}
} catch (e) {}
}
if (position && (position == "fixed")) {
debug("Warning: Canvas position fixed. Ignoring position alterations");
return
}
}
_5O.style.position = "absolute";
_5O.style.left = _ye + "px";
_5O.style.top = _ze + "px"
}
function _ka(_6n, _7n) {
canvas.width = _6n;
canvas.height = _7n;
_jB = _6n;
_lB = _7n;
_7O = canvas.width;
_8O = canvas.height;
_pm(canvas, _qm);
_9O = _qm.top;
_aO = _qm.left;
_bO = _qm._1f;
_cO = _qm.bottom;
_dO = _7O;
_eO = _8O;
_fO = _6n;
_gO = _7n;
_hO = 1;
_iO = 1
}
function _jO(_ye, _ze,
_6n, _7n) {
_ka(_6n, _7n);
_ja(_ye, _ze)
}
function _kO() {
return _bO - _aO
}
function _lO() {
return _cO - _9O
}
var _mO;
var _nO;
var _oO;
var _pO;
var _qO;
var _rO;
var _sO;
var _tO;
var _uO;
var _vO;
var _wO;
var _xO;
var _yO = 0;
var _zO = 1,
_AO = 2,
_BO = 3,
_CO = 4,
_DO = 5,
_EO = 6;
var _FO = aa_1241_kz();
function aa_1241_kz() {
return 0x87155211
}
function _GO() {
var _HO = null;
if (window.XMLHttpRequest) {
_HO = new XMLHttpRequest()
}
if (typeof(XMLHttpRequest) == "undefined") {
_HO = function() {
try {
return new ActiveXObject("Msxml2.XMLHTTP.6.0");
} catch (e) {}
try {
return new ActiveXObject("Msxml2.XMLHTTP.3.0")
} catch (e) {}
try {
return new ActiveXObject("Msxml2.XMLHTTP")
} catch (e) {}
throw new _ym("This browser does not support XMLHttpRequest.")
}
}
this._IO = _HO;
this._JO = !1
}
var _KO = new _GO();
function _LO() {}
var _MO = _NO;
function _NO(_ZN) {}
var _OO = _PO;
function _PO() {
return !1
}
var _QO = _RO;
function _RO() {}
var _SO = _TO;
function _TO() {}
var _UO = _VO;
function _VO() {}
var _WO = _XO;
function _XO() {}
var _YO = _ZO;
function _ZO() {}
var __O = _0P;
function _0P() {}
var _1P = _2P;
function _2P() {}
var _3P = _4P;
function _4P() {}
var _5P = _6P;
function _6P() {}
var _7P = _8P;
function _8P() {}
var _9P = _aP;
function _aP() {}
var _bP = _cP;
function _cP() {
return -1
}
var _dP = _eP;
function _eP() {}
var _fP = _gP;
function _gP() {}
var _hP = _iP;
function _iP() {}
var _jP = _kP;
function _kP() {
return _lP
}
function _mP() {
return _nP
}
function _oP() {
return _KC
}
function _pP() {
return _qP
}
var _rP = _sP;
function _sP(_uC, _tP, _uP) {
if (_tP != "_self" && _tP != "_blank" && _tP != "_parent" && _tP != "_top") {
_ym("Error: invalid TARGET specified. Only '_self', '_blank', 'parent' or '_top' supported. (YoYo_OpenURL)");
return
}
var _Xx = window.open(_uC, _tP, _uP)
}
var _vP = _wP;
function _wP(_uC, _tP) {
_rP(_uC, _tP, "scrollbars=yes,menubar=yes,resizable=yes,toolbar=yes,location=yes,status=yes");
}
var _xP = _xa;
function _xa(_uC) {
_vP(_uC, "_self")
}
var _yP = _zP;
function _zP(_AP, _BP) {}
var _CP = _DP;
function _DP(_AP, _EP) {}
var _FP = null;
var _GP = null;
var _HP = _IP;
function _IP(_w2, _x2, _vz) {
if (_HP) {
_HP(_w2, _x2, _vz)
}
}
function ads_engagement_launch() {
__h("ads_engagement_launch()")
}
var _JP = _KP;
function _KP(_ev, _LP, _MP, _NP) {}
var _OP = _PP;
function _PP() {
var _wf = new Date().getTime() * 1000;
return _wf - _mO
}
var _QP = _RP;
function _RP(_ye,
_ze, _6n, _7n, _SP) {
var _TP = _UP();
_TP._w2 = _ye;
_TP._x2 = _ze;
_TP._y2 = _6n;
_TP._z2 = _7n;
_TP._OC = _SP;
_TP._jf = _ye + _6n;
_TP._kf = _ze + _7n;
_TP.button = _TP._6h = _TP._8h = 0;
_TP._VP = _WP;
return (_TP.index + 1)
}
var _XP = _YP;
function _YP(_dn) {
if (_dn < 0) return;
var index = _dn - 1;
if ((index < 0) || (index >= _ZP.length)) {
debug("Invalid index when deleting virtual key")
}
__P(_dn - 1)
}
function _0Q() {
_1Q = [];
for (var _sf = 0; _sf < _ZP.length; ++_sf) {
var _2Q = _ZP[_sf];
if ((_2Q._VP & _3Q) != 0) _1Q[_1Q.length] = _2Q
}
}
var _4Q = _5Q;
function _5Q(_dn) {
if (_dn < 0) return;
_dn--;
if (!_ZP[_dn]) return;
_ZP[_dn]._VP |= _3Q;
_0Q()
}
var _6Q = _7Q;
function _7Q(_dn) {
if (_dn < 0) return;
_dn--;
if (!_ZP[_dn]) return;
_ZP[_dn]._VP &= ~_3Q;
_0Q()
}
var _8Q = _9Q;
function _9Q() {
return 0
}
var _aQ = _bQ;
function _bQ() {
return 0
}
var _cQ = _dQ;
function _dQ() {
return 0
}
var _eQ = _fQ;
function _fQ() {
_hv("device_ios_get_imagename()")
}
var _gQ = _hQ;
function _hQ() {
_hv("device_ios_get_image()")
}
var _iQ = _jQ;
function _jQ() {
_hv("openfeint_start()")
}
var _kQ = _lQ;
function _lQ(_5F, _bF) {
_hv("achievement_map_achievement()")
}
var _mQ = _nQ;
function _nQ(_5F, _bF,
_oQ) {
_hv("achievement_map_leaderboard()")
}
var _pQ = _qQ;
function _qQ(_5F, _bF, _oQ) {
_hv("openfeint_send_challenge()");
}
var _rQ = _sQ;
function _sQ(_5F) {
_hv("openfeint_send_invite()")
}
var _tQ = _uQ;
function _uQ(_5F, _bF, _oQ) {
_hv("openfeint_send_social()")
}
var _vQ = _wQ;
function _wQ(_5F) {
_hv("openfeint_set_url()")
}
var _xQ = _yQ;
function _yQ() {
_hv("openfeint_accept_challenge()");
return ""
}
var _zQ = _AQ;
function _AQ() {
_hv("achievement_is_online()");
return !1
}
var _BQ = _CQ;
function _CQ(_5F, _bF) {
_hv("openfeint_send_result()")
}
var _DQ = _EQ;
function _EQ() {
return !1
}
function _FQ() {
_mO = new Date().getTime() * 1000;
var _wf = 0;
for (var _u2 = 0; _u2 < 12; _u2++) {
_Ju[_u2] = _wf;
_wf += _Iu[_u2]
}
_nO = 0;
_oO = 1;
_pO = 2;
_qO = 3;
_rO = 4;
_sO = 5;
_tO = 0;
_uO = 1;
_vO = 2;
_wO = 0;
_xO = 1
}
function _GQ() {
var _wf = setTimeout(function() {
for (var _HQ in _JL._l1) {
if (!_JL._l1.hasOwnProperty(_HQ)) continue;
_JL._IQ(_HQ);
break
}
_GQ()
}, 1000)
}
var _JQ = _va;
function _va() {
return document.domain;
}
function _KQ(_LQ, _MQ) {
for (var _NQ in _LQ) {
var _OQ = _LQ[_NQ];
if (_OQ instanceof Array) {
var _PQ = _un();
_Bn(_MQ, _PQ);
_KQ(_OQ, _PQ)
} else if (typeof(_OQ) == "object") {
var _QQ = _86();
_Bn(_MQ, _QQ);
_Sw(_OQ, _QQ)
} else if (typeof(_OQ) == "string") {
_Bn(_MQ, _OQ)
}
}
}
function _Sw(_kg, _Mw) {
for (var _Ow in _kg) {
if (_kg.hasOwnProperty(_Ow)) {
var _OQ = _kg[_Ow];
if (_OQ instanceof Array) {
var _RQ = _un();
_96(_Mw, _Ow, _RQ);
_KQ(_OQ, _RQ)
} else if (typeof(_OQ) == "object") {
var _SQ = _86();
_96(_Mw, _Ow, _SQ);
_Sw(_OQ, _SQ)
} else if (typeof(_OQ) == "string") {
_96(_Mw, _Ow, _OQ)
}
}
}
}
var _TQ = _UQ;
function _UQ() {}
var _VQ = _WQ;
var _gw = _5w;
function _WQ() {
return _gw
}
var _XQ = _Fw;
var _YQ = _Iw;
var _ZQ = _Tw;
var __Q = _0R;
function _0R() {
if (typeof(_cv._W4.GenerateSpotifyApp) != "undefined") {
if (typeof(g_fbOAuthToken) != "undefined") {
if (g_fbOAuthToken != null) {
var _tw = 'https://www.facebook.com/logout.php?access_token=' + g_fbOAuthToken + '&app_id=' + _cv._W4._Dw + '&next=http://www.yoyogames.com/facebook/wordsong/index.html';
var _uw = new XMLHttpRequest();
_uw.open('GET', _tw);
_uw.send(null);
g_fbOAuthToken = null;
_gw = 'UNINITIALISED'
}
}
} else {
debug("facebook_logout");
FB.logout(function(response) {
if (response.status != 'connected') {
_gw = _5w;
_fw = "";
g_fbOAuthToken = ""
}
})
}
return 0
}
var _1R = _2R;
function _2R(_3R, _4R) {
if (_3R == 0) {
return __E(_4R)
} else {
if (_Dm[_3R] && (_4R <= 1)) {
return _Dm[_3R].__k
}
}
return 0
}
var _5R = _6R;
function _6R(_3R, _4R) {
if (_3R == 0) {
return _1F(_4R)
} else {
if (_Dm[_3R] && (_4R <= 1)) {
return _Dm[_3R]._Vk
}
}
return 0
}
var _7R = _8R;
function _8R(_3R, _4R) {
if (_3R == 0) {
return _2F(_4R)
} else {
if (_Dm[_3R] && (_4R <= 1)) {
return _Dm[_3R]._Zk
}
}
return 0
}
var _9R = _aR;
function _aR(_3R) {
if (_3R == 0) {
return _O7._v9
} else if (_Dm[_3R]) {
return _Dm[_3R]._w2
}
return 0
}
var _bR = _cR;
function _cR(_3R) {
if (_3R == 0 && _dR[0]) {
return _dR[0]._w2
} else if (_Dm[_3R]) {
return _Dm[_3R]._w2
}
return 0
}
var _eR = _fR;
function _fR(_3R) {
if (_3R == 0) {
return _O7._w9
} else if (_Dm[_3R]) {
return _Dm[_3R]._x2
}
return 0
}
var _gR = _hR;
function _hR(_3R) {
if (_3R == 0 && _dR[0]) {
return _dR[0]._x2
} else if (_Dm[_3R]) {
return _Dm[_3R]._x2
}
return 0
}
var _iR = _jR;
function _jR() {
return _kR
}
var _lR = _mR;
function _mR() {
return _nR
};
function _pa(_Rs) {
if (_oR) {
_pR = _qR;
_rR = _sR
}
_oR = _Rs
}
function _tR() {
var _SF = 0;
var _TF = 0;
var _uR = 0;
var _vR = 0;
canvas = document.getElementById(_rv);
var _wR = _7O;
var _xR = _8O;
if (_yR && _zR) {
var _y2 = _qR;
var _z2 = _sR;
var _Jq, _Vf, _Uf;
_Jq = _y2 / _z2;
_Vf = _wR / _Jq;
if (_Vf < _xR) {
_Jq = _z2 / _y2;
_Vf = _wR * _Jq;
_TF = (_xR - _Vf) / 2;
_Uf = _wR;
_Vf += _TF
} else {
_Jq = _y2 / _z2;
_Uf = _xR * _Jq;
_SF = (_wR - _Uf) / 2;
_Vf = _xR;
_Uf += _SF
}
_uR = _Uf;
_vR = _Vf
} else {
_uR = _wR;
_vR = _xR
}
_AR._w2 = _SF;
_AR._x2 = _TF;
_AR._y2 = _uR - _SF;
_AR._z2 = _vR - _TF
}(function() {
'use strict';
Function.prototype._BR = function(parent) {
this.prototype.parent = parent;
for (var _w2 in parent.prototype) {
if (!this.prototype[_w2]) this.prototype[_w2] = parent.prototype[_w2]
}
};
Function.prototype._CR = function(parent) {
return this._BR(parent)
};
Array.prototype._DR = function(_m2,
_bv, _ER) {
if (typeof(_m2) === 'undefined') _m2 = 0;
if (typeof(_bv) === 'undefined') _bv = this.length - _m2;
if (typeof(_ER) === 'undefined') _ER = function(_Wg, _xf) {
return _Wg < _xf
};
var left = _m2,
_go = [],
_Gn = 0;
for (;;) {
for (; left + 1 < _bv; _bv++) {
var _FR = this[left + Math.floor(Math.random() * (_bv - left))];
_go[_Gn++] = _bv;
for (var _1f = left - 1;;) {
while (_ER(this[++_1f], _FR)) {}
while (_ER(_FR, this[--_bv])) {}
if (_1f >= _bv) break;
var _QA = this[_1f];
this[_1f] = this[_bv];
this[_bv] = _QA
}
}
if (_Gn === 0) break;
left = _bv;
_bv = _go[--_Gn]
}
return this
};
Array.prototype._GR = function(_HR,
length) {
if (typeof(length) === 'undefined') length = this.length;
var _sf = 0;
for (var _v2 = 0; _v2 < length; ++_v2) {
if (_HR(this[_v2])) continue;
if (_v2 === _sf) {
++_sf;
continue
}
this[_sf++] = this[_v2]
}
return _sf
};
Array.prototype._IR = function(_m2, _n2, _Pk, _ER) {
if (typeof(_ER) === 'undefined') _ER = function(_Wg, _xf) {
return _Wg < _xf
};
var _fg = _n2 - _m2;
while (_fg > 0) {
var _JR = Math.floor(_fg / 2);
var _KR = _m2 + _JR;
if (_ER(this[_KR], _Pk)) {
_m2 = ++_KR;
_fg -= _JR + 1
} else _fg = _JR
}
return _m2
};
Array.prototype._LR = function(_m2, _n2, _Pk, _ER) {
if (typeof(_ER) === 'undefined') _ER = function(_Wg,
_xf) {
return _Wg < _xf
};
var _fg = _n2 - _m2;
while (_fg > 0) {
var _JR = Math.floor(_fg / 2);
var _KR = _m2 + _JR;
if (!_ER(_Pk, this[_KR])) {
_m2 = ++_KR;
_fg -= _JR + 1
} else _fg = _JR
}
return _m2
};
Array.prototype.rotate = function(_m2, _MR, _n2) {
var _Yn = _MR;
while (_m2 != _Yn) {
var _NR = this[_m2];
this[_m2] = this[_Yn];
this[_Yn] = _NR;
++_m2;
++_Yn;
if (_Yn === _n2) _Yn = _MR;
else if (_m2 === _MR) _MR = _Yn
}
};
var _OR = (function() {
var _PR = function() {
return +new Date()
};
if (typeof(_QR) === 'undefined') window['performance'] = {
now: _PR
};
if (!window['performance'].now) window['performance'].now = _PR;
function _RR(name, parent) {
this.name = name;
this.parent = parent;
this._SR = {};
this._TR = 0;
this._UR = 0;
this._VR = 0;
this._WR = !1;
this._XR = 0
}
_RR.prototype = {
start: function() {
this._TR = _QR.now();
this._WR = !0
},
stop: function(_YR) {
if (!this._WR) return;
this._WR = !1;
this._UR += _QR.now() - this._TR;
if (_YR) this.start();
for (var _w2 in this._SR) this._SR[_w2].stop()
},
_YR: function(_ZR) {
if (!_ZR) {
this._WR = !0;
this._VR += this._UR;
this.start()
}
this._UR = 0;
for (var _w2 in this._SR) this._SR[_w2]._YR(!0)
}
};
var __R = [];
var _fe = new _RR("root");
function _0S(name,
parent) {
if (!__R) throw new _ym("late profile creation not allowed");
var _ov = new _RR(name, parent || 'root');
__R.push(_ov);
return _ov
}
function _1S(_2S) {
_2S._XR--;
delete _2S._SR[_2S.name]
}
function _3S(_6O, _2S) {
if (_6O.name === _2S.parent) return _6O;
for (var _w2 in _6O._SR) {
var _df;
if (_df = _3S(_6O._SR[_w2], _2S)) return _df
}
return null
}
function init() {
while (__R.length) {
var _yA = __R.pop();
if (!(_yA.parentNode = _3S(_fe, _yA))) __R._4S(_yA);
else {
_yA.parentNode._SR[_yA.name] = _yA;
_yA.parentNode._XR++
}
}
__R = null
}
function _5S() {
_fe._YR(!0)
}
var _on = {
_0S: _0S,
_1S: _1S,
init: init,
_YR: _5S,
_6S: _fe
};
return _on
}());
function _7S(_8S) {
if (!_8S) {
console.log("Assertion failed! Pls debug.");
_9S
}
}
var _aS = Number.MAX_VALUE;
var _bS = 2.2204460492503131e-016;
var _cS = Math.PI;
var _dS = 2;
var _eS = 8;
var _fS = 0.1;
var _gS = 2.0;
var _hS = 0.005;
var _iS = (2.0 / 180.0 * _cS);
var _jS = (2.0 * _hS);
var _kS = 8;
var _lS = 32;
var _mS = 1.0;
var _nS = 0.2;
var _oS = (8.0 / 180.0 * _cS);
var _pS = 2.0;
var _qS = (_pS * _pS);
var _rS = (0.5 * _cS);
var _sS = (_rS * _rS);
var _tS = 0.2;
var _uS = 0.75;
var _vS = 0.5;
var _wS = 0.01;
var _xS = (2.0 / 180.0 * _cS);
var _yS = (-1);
var _zS = 0.75;
var _AS = 1.0;
var _BS = 5.0;
var _CS = 2;
var _DS = (_CS * _CS);
var _ES = 256;
function _FS(_GS, _HS, _IS) {
this._JS = _GS;
this._KS = _HS;
this._LS = _IS
}
_FS.prototype = {
toString: function() {
return this._JS + '.' + this._KS + '.' + this._LS
}
};
var _MS = new _FS(2, 3, 1);
function _NS(_w2) {
return isFinite(_w2) && !isNaN(_w2)
}
var _OS = Math.sqrt;
var _PS = Math.atan2;
var _QS = Math.sin;
var _RS = Math.cos;
var _SS = Math.floor;
var _TS = Math.ceil;
var _US = _OS;
var _VS = _PS;
function _WS(_w2) {
return 1.0 / _OS(_w2)
}
function _XS(_w2, _x2) {
if (typeof(_w2) !== 'undefined') {
this._w2 = _w2;
this._x2 = _x2
} else this._w2 = this._x2 = 0
}
_XS.prototype = {
_4e: function() {
return new _XS(this._w2, this._x2)
},
_YS: function() {
this._w2 = 0.0;
this._x2 = 0.0;
return this
},
_Tn: function(_ZS, __S) {
this._w2 = _ZS;
this._x2 = __S;
return this
},
_0T: function(_sf) {
this._w2 = _sf._w2;
this._x2 = _sf._x2;
return this
},
_1T: function() {
var _8h = new _XS();
_8h._Tn(-this._w2, -this._x2);
return _8h
},
_2T: function(_u2) {
switch (_u2) {
case 0:
return this._w2;
case 1:
return this._x2
}
},
_3T: function(_u2, _8h) {
switch (_u2) {
case 0:
return this._w2 = _8h;
case 1:
return this._x2 = _8h
}
},
_yn: function(_8h) {
this._w2 += _8h._w2;
this._x2 += _8h._x2;
return this
},
_4T: function(_8h) {
this._w2 -= _8h._w2;
this._x2 -= _8h._x2;
return this
},
_9u: function(_Wg) {
this._w2 *= _Wg;
this._x2 *= _Wg;
return this
},
_5T: function() {
return _US(this._w2 * this._w2 + this._x2 * this._x2)
},
_6T: function() {
return this._w2 * this._w2 + this._x2 * this._x2
},
_7T: function() {
var length = this._5T();
if (length < _bS) {
return 0.0
}
var _8T = 1.0 / length;
this._w2 *= _8T;
this._x2 *= _8T;
return length
},
_9T: function() {
return _NS(this._w2) && _NS(this._x2)
},
_aT: function() {
return new _XS(-this._x2, this._w2)
},
_bT: function(_cT) {
var _Nw = _cT || [];
_Nw[0] = this._w2;
_Nw[1] = this._x2;
return _Nw
},
_dT: function(data) {
this._w2 = data[0];
this._x2 = data[1]
}
};
_XS._yn = function(_Wg, _xf) {
return new _XS(_Wg._w2 + _xf._w2, _Wg._x2 + _xf._x2)
};
_XS._4T = function(_Wg, _xf) {
return new _XS(_Wg._w2 - _xf._w2, _Wg._x2 - _xf._x2)
};
_XS._eT = function(_Wg, _xf) {
return _Wg._w2 == _xf._w2 && _Wg._x2 == _xf._x2
};
_XS._9u = function(_ov, _Wg) {
return new _XS(_ov * _Wg._w2, _ov * _Wg._x2)
};
_XS._1T = function(_Wg) {
return new _XS(-_Wg._w2, -_Wg._x2)
};
function _fT(_w2,
_x2, _ei) {
if (typeof(_w2) !== 'undefined') {
this._w2 = _w2;
this._x2 = _x2;
this._ei = _ei
}
}
_fT.prototype = {
_4e: function() {
return new _fT(this._w2, this._x2, this._ei)
},
_YS: function() {
this._w2 = 0.0;
this._x2 = 0.0;
this._ei = 0.0
},
_Tn: function(_ZS, __S, _gT) {
this._w2 = _ZS;
this._x2 = __S;
this._ei = _gT
},
_1T: function() {
var _8h = new _fT();
_8h._Tn(-this._w2, -this._x2, -this._ei);
return _8h
},
_yn: function(_8h) {
this._w2 += _8h._w2;
this._x2 += _8h._x2;
this._ei += _8h._ei
},
_4T: function(_8h) {
this._w2 -= _8h._w2;
this._x2 -= _8h._x2;
this._ei -= _8h._ei
},
_9u: function(_ov) {
this._w2 *= _ov;
this._x2 *= _ov;
this._ei *= _ov
},
_w2: 0,
_x2: 0,
_ei: 0
};
_fT._9u = function(_ov, _Wg) {
return new _fT(_ov * _Wg._w2, _ov * _Wg._x2, _ov * _Wg._ei)
};
_fT._yn = function(_Wg, _xf) {
return new _fT(_Wg._w2 + _xf._w2, _Wg._x2 + _xf._x2, _Wg._ei + _xf._ei)
};
_fT._4T = function(_Wg, _xf) {
return new _fT(_Wg._w2 - _xf._w2, _Wg._x2 - _xf._x2, _Wg._ei - _xf._ei)
};
function _hT(_iT, _jT) {
this._0L = _iT ? _iT._4e() : new _XS();
this._kT = _jT ? _jT._4e() : new _XS()
}
_hT.prototype = {
_Tn: function(_iT, _jT) {
this._0L._0T(_iT);
this._kT._0T(_jT)
},
_0T: function(_uu) {
this._0L._0T(_uu._0L);
this._kT._0T(_uu._kT)
},
_lT: function() {
this._0L._w2 = 1.0;
this._kT._w2 = 0.0;
this._0L._x2 = 0.0;
this._kT._x2 = 1.0
},
_YS: function() {
this._0L._w2 = 0.0;
this._kT._w2 = 0.0;
this._0L._x2 = 0.0;
this._kT._x2 = 0.0
},
_mT: function() {
var _Wg = this._0L._w2,
_xf = this._kT._w2,
_v2 = this._0L._x2,
_Bp = this._kT._x2;
var _nT = new _hT();
var _oT = _Wg * _Bp - _xf * _v2;
if (_oT != 0.0) {
_oT = 1.0 / _oT
}
_nT._0L._w2 = _oT * _Bp;
_nT._kT._w2 = -_oT * _xf;
_nT._0L._x2 = -_oT * _v2;
_nT._kT._x2 = _oT * _Wg;
return _nT
},
_pT: function(_xf) {
var _qT = this._0L._w2,
_rT = this._kT._w2,
_sT = this._0L._x2,
_tT = this._kT._x2;
var _oT = _qT * _tT - _rT * _sT;
if (_oT != 0.0) {
_oT = 1.0 / _oT
}
var _w2 = new _XS();
_w2._w2 = _oT * (_tT * _xf._w2 - _rT * _xf._x2);
_w2._x2 = _oT * (_qT * _xf._x2 - _sT * _xf._w2);
return _w2
}
};
_hT._yn = function(_8S, _nT) {
return new _hT(_XS._yn(_8S._0L, _nT._0L), _XS._yn(_8S._kT, _nT._kT))
};
function _uT(_iT, _jT, _vT) {
this._0L = _iT ? _iT._4e() : new _fT();
this._kT = _jT ? _jT._4e() : new _fT();
this._wT = _vT ? _vT._4e() : new _fT()
}
_uT.prototype = {
_YS: function() {
this._0L._YS();
this._kT._YS();
this._wT._YS()
},
_xT: function(_xf) {
var _oT = _yT(this._0L, _zT(this._kT,
this._wT));
if (_oT != 0.0) {
_oT = 1.0 / _oT
}
var _w2 = new _fT();
_w2._w2 = _oT * _yT(_xf, _zT(this._kT, this._wT));
_w2._x2 = _oT * _yT(this._0L, _zT(_xf, this._wT));
_w2._ei = _oT * _yT(this._0L, _zT(this._kT, _xf));
return _w2
},
_AT: function(_xf) {
var _qT = this._0L._w2,
_rT = this._kT._w2,
_sT = this._0L._x2,
_tT = this._kT._x2;
var _oT = _qT * _tT - _rT * _sT;
if (_oT != 0.0) {
_oT = 1.0 / _oT
}
var _w2 = new _XS();
_w2._w2 = _oT * (_tT * _xf._w2 - _rT * _xf._x2);
_w2._x2 = _oT * (_qT * _xf._x2 - _sT * _xf._w2);
return _w2
},
_BT: function(_CT) {
var _Wg = this._0L._w2,
_xf = this._kT._w2,
_v2 = this._0L._x2,
_Bp = this._kT._x2;
var _oT = _Wg * _Bp - _xf * _v2;
if (_oT != 0.0) {
_oT = 1.0 / _oT
}
_CT._0L._w2 = _oT * _Bp;
_CT._kT._w2 = -_oT * _xf;
_CT._0L._ei = 0.0;
_CT._0L._x2 = -_oT * _v2;
_CT._kT._x2 = _oT * _Wg;
_CT._kT._ei = 0.0;
_CT._wT._w2 = 0.0;
_CT._wT._x2 = 0.0;
_CT._wT._ei = 0.0
},
_DT: function(_CT) {
var _oT = _yT(this._0L, _zT(this._kT, this._wT));
if (_oT != 0.0) {
_oT = 1.0 / _oT
}
var _qT = this._0L._w2,
_rT = this._kT._w2,
_ET = this._wT._w2;
var _tT = this._kT._x2,
_FT = this._wT._x2;
var _GT = this._wT._ei;
_CT._0L._w2 = _oT * (_tT * _GT - _FT * _FT);
_CT._0L._x2 = _oT * (_ET * _FT - _rT * _GT);
_CT._0L._ei = _oT * (_rT * _FT - _ET * _tT);
_CT._kT._w2 = _CT._0L._x2;
_CT._kT._x2 = _oT * (_qT * _GT - _ET * _ET);
_CT._kT._ei = _oT * (_ET * _rT - _qT * _FT);
_CT._wT._w2 = _CT._0L._ei;
_CT._wT._x2 = _CT._kT._ei;
_CT._wT._ei = _oT * (_qT * _tT - _rT * _rT)
}
};
function _HT(_Cg, _v2) {
if (typeof(_v2) !== 'undefined') {
this._ov = _Cg;
this._v2 = _v2
} else if (typeof(_Cg) !== 'undefined') this._Tn(_Cg);
}
_HT.prototype = {
_4e: function() {
return new _HT(this._ov, this._v2)
},
_0T: function(_sf) {
this._ov = _sf._ov;
this._v2 = _sf._v2
},
_Tn: function(_w2) {
this._ov = _QS(_w2);
this._v2 = _RS(_w2)
},
_lT: function() {
this._ov = 0.0;
this._v2 = 1.0
},
_IT: function() {
return _VS(this._ov, this._v2)
},
_JT: function() {
return new _XS(this._v2, this._ov)
},
_KT: function() {
return new _XS(-this._ov, this._v2)
},
_ov: 0,
_v2: 1
};
function _LT(position, _E4) {
this._yA = new _XS();
this._rz = new _HT();
if (position) {
this._yA._0T(position);
this._rz._0T(_E4)
}
}
_LT.prototype = {
_4e: function() {
var _MT = new _LT(this._yA, this._rz);
return _MT
},
_0T: function(_MT) {
this._yA._0T(_MT._yA);
this._rz._0T(_MT._rz)
},
_lT: function() {
this._yA._YS();
this._rz._lT()
},
_Tn: function(position, _Cg) {
this._yA._0T(position);
this._rz._Tn(_Cg)
}
};
function _NT() {
this._OT = new _XS();
this._PT = new _XS();
this._v2 = new _XS()
}
_NT.prototype = {
_0T: function(_QT) {
this._OT._0T(_QT._OT);
this._PT._0T(_QT._PT);
this._v2._0T(_QT._v2);
this._Wg = _QT._Wg;
this._RT = _QT._RT;
this._ST = _QT._ST
},
_4e: function() {
var _QT = new _NT();
_QT._OT._0T(this._OT);
_QT._PT._0T(this._PT);
_QT._v2._0T(this._v2);
_QT._Wg = this._Wg;
_QT._RT = this._RT;
_QT._ST = this._ST;
return _QT
},
_TT: function(_MT, _UT) {
_MT._yA._w2 = ((1.0 - _UT) * this._PT._w2) + (_UT * this._v2._w2);
_MT._yA._x2 = ((1.0 - _UT) * this._PT._x2) + (_UT * this._v2._x2);
var _Cg = (1.0 - _UT) * this._RT + _UT * this._Wg;
_MT._rz._Tn(_Cg);
_MT._yA._w2 -= _MT._rz._v2 * this._OT._w2 - _MT._rz._ov * this._OT._x2;
_MT._yA._x2 -= _MT._rz._ov * this._OT._w2 + _MT._rz._v2 * this._OT._x2
},
_VT: function(alpha) {
_7S(this._ST < 1.0);
var _UT = (alpha - this._ST) / (1.0 - this._ST);
this._PT._yn(_XS._9u(_UT, _XS._4T(this._v2, this._PT)));
this._RT += _UT * (this._Wg - this._RT);
this._ST = alpha
},
_7T: function() {
var _WT = 2.0 * _cS;
var _Bp = _WT * _SS(this._RT / _WT);
this._RT -= _Bp;
this._Wg -= _Bp
},
_RT: 0,
_Wg: 0,
_ST: 0
};
function _XT(_Wg, _xf) {
return _Wg._w2 * _xf._w2 + _Wg._x2 * _xf._x2
}
function _YT(_Wg, _xf) {
return _Wg._w2 * _xf._x2 - _Wg._x2 * _xf._w2
}
function _ZT(_Wg, _ov) {
return new _XS(_ov * _Wg._x2, -_ov * _Wg._w2)
}
function __T(_ov, _Wg) {
return new _XS(-_ov * _Wg._x2, _ov * _Wg._w2)
}
function _0U(_8S, _8h) {
return new _XS(_8S._0L._w2 * _8h._w2 + _8S._kT._w2 * _8h._x2, _8S._0L._x2 * _8h._w2 + _8S._kT._x2 * _8h._x2)
}
function _1U(_8S, _8h) {
return new _XS(_XT(_8h, _8S._0L), _XT(_8h, _8S._kT))
}
function _2U(_Wg, _xf) {
var _v2 = _XS._4T(_Wg, _xf);
return _v2._5T()
}
function _3U(_Wg, _xf) {
var _v2 = _XS._4T(_Wg, _xf);
return _XT(_v2, _v2)
}
function _yT(_Wg,
_xf) {
return _Wg._w2 * _xf._w2 + _Wg._x2 * _xf._x2 + _Wg._ei * _xf._ei
}
function _zT(_Wg, _xf) {
return new _fT(_Wg._x2 * _xf._ei - _Wg._ei * _xf._x2, _Wg._ei * _xf._w2 - _Wg._w2 * _xf._ei, _Wg._w2 * _xf._x2 - _Wg._x2 * _xf._w2)
}
function _4U(_8S, _nT) {
return new _hT(_0U(_8S, _nT._0L), _0U(_8S, _nT._kT))
}
function _5U(_8S, _nT) {
var _iT = new _XS(_XT(_8S._0L, _nT._0L), _XT(_8S._kT, _nT._0L));
var _jT = new _XS(_XT(_8S._0L, _nT._kT), _XT(_8S._kT, _nT._kT));
return new _hT(_iT, _jT)
}
function _6U(_8S, _8h) {
return _fT._yn(_fT._yn(_fT._9u(_8h._w2, _8S._0L), _fT._9u(_8h._x2,
_8S._kT)), _fT._9u(_8h._ei, _8S._wT))
}
function _7U(_8S, _8h) {
return new _XS(_8S._0L._w2 * _8h._w2 + _8S._kT._w2 * _8h._x2, _8S._0L._x2 * _8h._w2 + _8S._kT._x2 * _8h._x2)
}
function _8U(_rz, _uf) {
var _9U = new _HT();
_9U._ov = _rz._ov * _uf._v2 + _rz._v2 * _uf._ov;
_9U._v2 = _rz._v2 * _uf._v2 - _rz._ov * _uf._ov;
return _9U
}
function _aU(_rz, _uf) {
var _9U = new _HT();
_9U._ov = _rz._v2 * _uf._ov - _rz._ov * _uf._v2;
_9U._v2 = _rz._v2 * _uf._v2 + _rz._ov * _uf._ov;
return _9U
}
function _bU(_rz, _8h) {
return new _XS(_rz._v2 * _8h._w2 - _rz._ov * _8h._x2, _rz._ov * _8h._w2 + _rz._v2 * _8h._x2)
}
function _cU(_rz, _8h) {
return new _XS(_rz._v2 * _8h._w2 + _rz._ov * _8h._x2, -_rz._ov * _8h._w2 + _rz._v2 * _8h._x2)
}
function _dU(_eU, _8h) {
return new _XS((_eU._rz._v2 * _8h._w2 - _eU._rz._ov * _8h._x2) + _eU._yA._w2, (_eU._rz._ov * _8h._w2 + _eU._rz._v2 * _8h._x2) + _eU._yA._x2)
}
function _fU(_eU, _8h) {
var _fp = _8h._w2 - _eU._yA._w2;
var _gp = _8h._x2 - _eU._yA._x2;
var _w2 = (_eU._rz._v2 * _fp + _eU._rz._ov * _gp);
var _x2 = (-_eU._rz._ov * _fp + _eU._rz._v2 * _gp);
return new _XS(_w2, _x2)
}
function _gU(_8S, _nT) {
var _hU = new _LT();
_hU._rz = _8U(_8S._rz, _nT._rz);
_hU._yA = _XS._yn(_bU(_8S._rz,
_nT._yA), _8S._yA);
return _hU
}
function _iU(_8S, _nT) {
var _hU = new _LT();
_hU._rz = _aU(_8S._rz, _nT._rz);
var _jU = _nT._yA._w2 - _8S._yA._w2;
var _kU = _nT._yA._x2 - _8S._yA._x2;
_hU._yA._w2 = _8S._rz._v2 * _jU + _8S._rz._ov * _kU;
_hU._yA._x2 = -_8S._rz._ov * _jU + _8S._rz._v2 * _kU;
return _hU
}
var _lU = Math.abs;
function _mU(_Wg) {
return new _XS(_lU(_Wg._w2), _lU(_Wg._x2))
}
function _nU(_8S) {
return new _hT(_mU(_8S._0L), _mU(_8S._kT))
}
var _oU = Math.min;
function _pU(_Wg, _xf) {
return new _XS(_oU(_Wg._w2, _xf._w2), _oU(_Wg._x2, _xf._x2))
}
var _qU = Math.max;
function _rU(_Wg,
_xf) {
return new _XS(_qU(_Wg._w2, _xf._w2), _qU(_Wg._x2, _xf._x2))
}
function _sU(_Wg, _2o, _1o) {
return _qU(_2o, _oU(_Wg, _1o))
}
function _tU(_Wg, _2o, _1o) {
return _rU(_2o, _pU(_Wg, _1o))
}
function _uU(_w2) {
_w2 |= (_w2 >> 1);
_w2 |= (_w2 >> 2);
_w2 |= (_w2 >> 4);
_w2 |= (_w2 >> 8);
_w2 |= (_w2 >> 16);
return _w2 + 1
}
function _vU(_w2) {
var _Ev = _w2 > 0 && (_w2 & (_w2 - 1)) == 0;
return _Ev
}
var _wU = 32767;
function _xU(_yU, _zU) {
var _uf = Math.random();
if (typeof(_yU) !== 'undefined') _uf = (_zU - _yU) * _uf + _yU;
else _uf = 2.0 * _uf - 1.0;
return _uf
}
function _AU(_uf, _Vg, _xf) {
this._uf = _uf || 0;
this._Vg = _Vg || 0;
this._xf = _xf || 0
}
_AU.prototype = {
_Tn: function(_uf, _Vg, _xf) {
this._uf = _uf;
this._Vg = _Vg;
this._xf = _xf
}
};
function _BU() {}
_BU.prototype = {
_CU: function(_VP) {
this._DU = _VP
},
_EU: function() {
return this._DU
},
_FU: function(_VP) {
this._DU |= _VP
},
_GU: function(_VP) {
this._DU &= ~_VP
},
_HU: function(_VP) {
this._DU ^= _VP
},
_IU: function(_2h, _JU, _Ng) {},
_KU: function(_2h, _JU, _Ng) {},
_LU: function(_MU, _NU, _Ng) {},
_OU: function(_MU, _NU, _PU, _Ng) {},
_QU: function(_RU, _SU, _Ng) {},
_TU: function(_MT) {},
_UU: function(_VU, _NU, _WU, _fg) {},
_DU: 0
};
_BU._XU = 1;
_BU._YU = 2;
_BU._ZU = 4;
_BU.__U = 8;
_BU._0V = 16;
_BU._1V = 32;
_BU._2V = 64;
_BU._3V = 128;
_BU._4V = 256;
_BU._5V = 512;
_BU._6V = 1024;
if (typeof(_QR) === 'undefined') {
window._QR = {
now: function() {
return +new Date()
}
}
}
function _7V() {
this._8V()
}
_7V.prototype = {
_8V: function() {
this._9V = _QR.now()
},
_aV: function() {
return _QR.now() - this._9V
}
};
function _bV() {
this._cV = 0;
this._MU = new _XS();
this._dV = 0
}
function _eV() {
this._fV = 0;
this._gV = 0
}
_eV.prototype = {
_4e: function() {},
_hV: function() {
return this._fV
},
_iV: function() {},
_jV: function(_MT,
_yA) {},
_kV: function(_gz, _ez, transform, _lV) {},
_mV: function(_nV, _MT, _lV) {},
_oV: function(_pV, _qV) {},
_rV: function(_MT, _yA, _sV, _tV, _lV) {},
_bT: function(_cT) {
var _Nw = _cT || {};
_Nw['m_type'] = this._fV;
_Nw['m_radius'] = this._gV;
return _Nw
},
_dT: function(data) {
this._gV = data['m_radius']
}
};
_eV._uV = 0;
_eV._vV = 1;
_eV._wV = 2;
_eV._xV = 3;
_eV._yV = 4;
function _zV() {
this.parent.call(this);
this._fV = _eV._uV;
this._gV = 0;
this._AV = new _XS();
Object.seal(this)
}
_zV.prototype = {
_4e: function() {
var _BV = new _zV();
_BV._gV = this._gV;
_BV._AV = this._AV._4e();
return _BV
},
_iV: function() {
return 1
},
_jV: function(transform, _yA) {
var _MU = _XS._yn(transform._yA, _bU(transform._rz, this._AV));
var _Bp = _XS._4T(_yA, _MU);
return _XT(_Bp, _Bp) <= this._gV * this._gV
},
_kV: function(_gz, _ez, transform, _lV) {
var position = _XS._yn(transform._yA, _bU(transform._rz, this._AV));
var _ov = _XS._4T(_ez._RU, position);
var _xf = _XT(_ov, _ov) - this._gV * this._gV;
var _uf = _XS._4T(_ez._SU, _ez._RU);
var _v2 = _XT(_ov, _uf);
var _hA = _XT(_uf, _uf);
var _CV = _v2 * _v2 - _hA * _xf;
if (_CV < 0.0 || _hA < _bS) {
return !1
}
var _Wg = -(_v2 + _US(_CV));
if (0.0 <= _Wg && _Wg <= _ez._DV * _hA) {
_Wg /= _hA;
_gz._EV = _Wg;
_gz._tV = _XS._yn(_ov, _XS._9u(_Wg, _uf));
_gz._tV._7T();
return !0
}
return !1
},
_mV: function(_nV, transform, _lV) {
var _fp = transform._yA._w2 + (transform._rz._v2 * this._AV._w2 - transform._rz._ov * this._AV._x2);
var _gp = transform._yA._x2 + (transform._rz._ov * this._AV._w2 + transform._rz._v2 * this._AV._x2);
_nV._FV._w2 = _fp - this._gV;
_nV._FV._x2 = _gp - this._gV;
_nV._GV._w2 = _fp + this._gV;
_nV._GV._x2 = _gp + this._gV
},
_oV: function(_pV, _qV) {
_pV._cV = _qV * _cS * this._gV * this._gV;
_pV._MU = this._AV;
_pV._dV = _pV._cV * (0.5 * this._gV * this._gV + _XT(this._AV, this._AV))
},
_HV: function(_Bp) {
return 0
},
_IV: function(_Bp) {
return this._AV
},
_JV: function() {
return 1
},
_KV: function(index) {
_7S(index == 0);
return this._AV
},
_rV: function(transform, _yA, _sV, _tV, _lV) {
var _MU = _XS._yn(transform._yA, _bU(transform._rz, this._AV));
var _Bp = _XS._4T(_yA, _MU);
var _LV = _Bp._5T();
_sV[0] = _LV - this._gV;
_tV._0T(_XS._9u(1 / _LV, _Bp))
},
_bT: function(_cT) {
var _Nw = _cT || {};
this.parent.prototype._bT.call(this, _Nw);
_Nw['m_p'] = this._AV._bT();
return _Nw
},
_dT: function(data) {
this.parent.prototype._dT.call(this, data);
this._AV._dT(data['m_p'])
}
};
_zV._BR(_eV);
function _MV() {
this.parent.call(this);
this._fV = _eV._vV;
this._gV = _jS;
this._NV = new _XS();
this._OV = new _XS();
this._PV = new _XS();
this._QV = new _XS();
this._RV = !1;
this._SV = !1;
Object.seal(this)
}
_MV.prototype = {
_Tn: function(_Th, _Uh) {
this._OV._0T(_Th);
this._PV._0T(_Uh);
this._RV = !1;
this._SV = !1
},
_4e: function() {
var _BV = new _MV();
_BV._NV = this._NV._4e();
_BV._OV = this._OV._4e();
_BV._PV = this._PV._4e();
_BV._QV = this._QV._4e();
_BV._RV = this._RV;
_BV._SV = this._SV;
return _BV;
},
_iV: function() {
return 1
},
_jV: function(transform, _yA) {
return !1
},
_kV: function(_gz, _ez, _MT, _lV) {
var _RU = _cU(_MT._rz, _XS._4T(_ez._RU, _MT._yA));
var _SU = _cU(_MT._rz, _XS._4T(_ez._SU, _MT._yA));
var _Bp = _XS._4T(_SU, _RU);
var _Th = this._OV;
var _Uh = this._PV;
var e = _XS._4T(_Uh, _Th);
var _tV = new _XS(e._x2, -e._w2);
_tV._7T();
var _TV = _XT(_tV, _XS._4T(_Th, _RU));
var _UV = _XT(_tV, _Bp);
if (_UV == 0.0) {
return !1
}
var _wf = _TV / _UV;
if (_wf < 0.0 || _ez._DV < _wf) {
return !1
}
var _rz = _XS._yn(_RU, _XS._9u(_wf, _Bp));
var _uf = _XS._4T(_Uh,
_Th);
var _hA = _XT(_uf, _uf);
if (_hA == 0.0) {
return !1
}
var _ov = _XT(_XS._4T(_rz, _Th), _uf) / _hA;
if (_ov < 0.0 || 1.0 < _ov) {
return !1
}
_gz._EV = _wf;
if (_TV > 0.0) {
_gz._tV = _bU(_MT._rz, _tV)._1T()
} else {
_gz._tV = _bU(_MT._rz, _tV)
}
return !0
},
_mV: function(_nV, _MT, _lV) {
var _kp = (_MT._rz._v2 * this._OV._w2 - _MT._rz._ov * this._OV._x2) + _MT._yA._w2;
var _np = (_MT._rz._ov * this._OV._w2 + _MT._rz._v2 * this._OV._x2) + _MT._yA._x2;
var _lp = (_MT._rz._v2 * this._PV._w2 - _MT._rz._ov * this._PV._x2) + _MT._yA._w2;
var _op = (_MT._rz._ov * this._PV._w2 + _MT._rz._v2 * this._PV._x2) + _MT._yA._x2;
var _VV = _oU(_kp, _lp);
var _WV = _oU(_np, _op);
var _XV = _qU(_kp, _lp);
var _YV = _qU(_np, _op);
_nV._FV._w2 = _VV - this._gV;
_nV._FV._x2 = _WV - this._gV;
_nV._GV._w2 = _XV + this._gV;
_nV._GV._x2 = _YV + this._gV
},
_oV: function(_pV, _qV) {
_pV._cV = 0.0;
_pV._MU = _XS._9u(0.5, _XS._yn(this._OV, this._PV));
_pV._dV = 0.0
},
_rV: function(_MT, _yA, _sV, _tV, _lV) {
var _Th = _dU(_MT, this._OV);
var _Uh = _dU(_MT, this._PV);
var _Bp = _XS._4T(_yA, _Th);
var _ov = _XS._4T(_Uh, _Th);
var _ZV = _XT(_Bp, _ov);
if (_ZV > 0) {
var _Bu = _XT(_ov, _ov);
if (_ZV > _Bu) {
_Bp._0T(_XS._4T(_yA, _Uh))
} else {
_Bp._4T(_XS._9u(_ZV / _Bu, _ov))
}
}
var _LV = _Bp._5T();
_sV[0] = _LV;
_tV._0T(_LV > 0 ? _XS._9u(1 / _LV, _Bp) : new _XS(0, 0))
},
_bT: function(_cT) {
var _Nw = _cT || {};
this.parent.prototype._bT.call(this, _Nw);
_Nw['m_vertex1'] = this._OV._bT();
_Nw['m_vertex2'] = this._PV._bT();
_Nw['m_hasVertex0'] = this._RV;
if (this._RV) _Nw['m_vertex0'] = this._NV._bT();
_Nw['m_hasVertex3'] = this._SV;
if (this._SV) _Nw['m_vertex3'] = this._QV._bT();
return _Nw
},
_dT: function(data) {
this.parent.prototype._dT.call(this, data);
this._OV._dT(data['m_vertex1']);
this._PV._dT(data['m_vertex2']);
this._RV = data['m_hasVertex0'];
if (this._RV) this._NV._dT(data['m_vertex0']);
this._SV = data['m_hasVertex3'];
if (this._SV) this._QV._dT(data['m_vertex3'])
}
};
_MV._BR(_eV);
function __V() {
this.parent.call(this);
this._fV = _eV._xV;
this._gV = _jS;
this._0W = null;
this._1W = 0;
this._2W = new _XS();
this._3W = new _XS();
this._4W = !1;
this._5W = !1;
Object.seal(this)
}
__V._6W = new _MV();
__V.prototype = {
_7W: function(_2h, _fg) {
_7S(this._0W == null && this._1W == 0);
_7S(_fg >= 3);
for (var _u2 = 1; _u2 < _fg; ++_u2) {
var _Th = _2h[_u2 - 1];
var _Uh = _2h[_u2];
_7S(_3U(_Th,
_Uh) > _hS * _hS)
}
this._1W = _fg + 1;
this._0W = new Array(this._1W);
for (var _u2 = 0; _u2 < _fg; ++_u2) this._0W[_u2] = _2h[_u2]._4e();
this._0W[_fg] = this._0W[0]._4e();
this._2W._0T(this._0W[this._1W - 2]);
this._3W._0T(this._0W[1]);
this._4W = !0;
this._5W = !0
},
_8W: function(_2h, _fg) {
_7S(this._0W == null && this._1W == 0);
_7S(_fg >= 2);
for (var _u2 = 1; _u2 < _fg; ++_u2) {
var _Th = _2h[_u2 - 1];
var _Uh = _2h[_u2];
_7S(_3U(_Th, _Uh) > _hS * _hS)
}
this._1W = _fg;
this._0W = new Array(_fg);
for (var _u2 = 0; _u2 < _fg; ++_u2) this._0W[_u2] = _2h[_u2]._4e();
this._4W = !1;
this._5W = !1;
this._2W._YS();
this._3W._YS()
},
_9W: function(_aW) {
this._2W._0T(_aW);
this._4W = !0
},
_bW: function(_cW) {
this._3W._0T(_cW);
this._5W = !0
},
_4e: function() {
var _BV = new __V();
_BV._1W = this._1W;
_BV._0W = new Array(this._1W);
for (var _u2 = 0; _u2 < this._1W; ++_u2) _BV._0W[_u2] = this._0W[_u2]._4e();
_BV._2W = this._2W._4e();
_BV._3W = this._3W._4e();
_BV._4W = this._4W;
_BV._5W = this._5W;
return _BV
},
_iV: function() {
return this._1W - 1
},
_dW: function(_eW, index) {
_7S(0 <= index && index < this._1W - 1);
_eW._fV = _eV._vV;
_eW._gV = this._gV;
_eW._OV = this._0W[index + 0];
_eW._PV = this._0W[index + 1];
if (index > 0) {
_eW._NV = this._0W[index - 1];
_eW._RV = !0
} else {
_eW._NV = this._2W;
_eW._RV = this._4W
} if (index < this._1W - 2) {
_eW._QV = this._0W[index + 2];
_eW._SV = !0
} else {
_eW._QV = this._3W;
_eW._SV = this._5W
}
},
_jV: function(transform, _yA) {
return !1
},
_kV: function(_gz, _ez, _MT, _lV) {
_7S(_lV < this._1W);
var _fW = _lV;
var _gW = _lV + 1;
if (_gW == this._1W) {
_gW = 0
}
__V._6W._OV = this._0W[_fW]._4e();
__V._6W._PV = this._0W[_gW]._4e();
return __V._6W._kV(_gz, _ez, _MT, 0)
},
_mV: function(_nV, _MT, _lV) {
_7S(_lV < this._1W);
var _fW = _lV;
var _gW = _lV + 1;
if (_gW == this._1W) {
_gW = 0
}
var _kp = (_MT._rz._v2 * this._0W[_fW]._w2 - _MT._rz._ov * this._0W[_fW]._x2) + _MT._yA._w2;
var _np = (_MT._rz._ov * this._0W[_fW]._w2 + _MT._rz._v2 * this._0W[_fW]._x2) + _MT._yA._x2;
var _lp = (_MT._rz._v2 * this._0W[_gW]._w2 - _MT._rz._ov * this._0W[_gW]._x2) + _MT._yA._w2;
var _op = (_MT._rz._ov * this._0W[_gW]._w2 + _MT._rz._v2 * this._0W[_gW]._x2) + _MT._yA._x2;
_nV._FV._w2 = _oU(_kp, _lp);
_nV._FV._x2 = _oU(_np, _op);
_nV._GV._w2 = _qU(_kp, _lp);
_nV._GV._x2 = _qU(_np, _op)
},
_oV: function(_pV, _qV) {
_pV._cV = 0.0;
_pV._MU._YS();
_pV._dV = 0.0
},
_rV: function(_MT, _yA, _sV, _tV, _lV) {
this._dW(__V._6W, _lV);
__V._6W._rV(_MT, _yA, _sV, _tV, 0)
},
_bT: function(_cT) {
var _Nw = _cT || {};
this.parent.prototype._bT.call(this, _Nw);
_Nw['m_count'] = this._1W;
_Nw['m_vertices'] = [];
for (var _u2 = 0; _u2 < this._1W; ++_u2) _Nw['m_vertices'].push(this._0W[_u2]._bT());
_Nw['m_hasPrevVertex'] = this._4W;
if (this._4W) _Nw['m_prevVertex'] = this._2W._bT();
_Nw['m_hasNextVertex'] = this._5W;
if (this._5W) _Nw['m_nextVertex'] = this._3W._bT();
return _Nw
},
_dT: function(data) {
this.parent.prototype._dT.call(this,
data);
this._1W = data['m_count'];
this._0W = [];
for (var _u2 = 0; _u2 < this._1W; ++_u2) {
this._0W[_u2] = new _XS();
this._0W[_u2]._dT(data['m_vertices'][_u2])
}
this._4W = data['m_hasPrevVertex'];
if (this._4W) this._2W._dT(data['m_prevVertex']);
this._5W = data['m_hasNextVertex'];
if (this._5W) this._3W._dT(data['m_nextVertex'])
}
};
__V._BR(_eV);
function _hW() {
this.parent.call(this);
this._fV = _eV._wV;
this._gV = _jS;
this._1W = 0;
this._iW = new _XS();
this._0W = new Array(_eS);
this._jW = new Array(_eS);
Object.seal(this)
}
_hW.prototype = {
_4e: function() {
var _BV = new _hW();
_BV._1W = this._1W;
_BV._iW = this._iW._4e();
for (var _u2 = 0; _u2 < this._1W; ++_u2) {
_BV._0W[_u2] = this._0W[_u2]._4e();
_BV._jW[_u2] = this._jW[_u2]._4e()
}
return _BV
},
_iV: function() {
return 1
},
_Tn: function(_2h, _fg) {
_7S(3 <= _fg && _fg <= _eS);
if (_fg < 3) {
this._kW(1.0, 1.0);
return
}
var _df = _oU(_fg, _eS);
var _lW = new Array(_eS);
var _mW = 0;
for (var _u2 = 0; _u2 < _df; ++_u2) {
var _8h = _2h[_u2];
var _nW = !0;
for (var _Bf = 0; _Bf < _mW; ++_Bf) {
if (_3U(_8h, _lW[_Bf]) < 0.5 * _hS) {
_nW = !1;
break
}
}
if (_nW) {
_lW[_mW++] = _8h._4e()
}
}
_df = _mW;
if (_df < 3) {
_7S(!1);
this._kW(1.0, 1.0);
return
}
var _oW = 0;
var _mh = _lW[0]._w2;
for (_u2 = 1; _u2 < _df; ++_u2) {
var _w2 = _lW[_u2]._w2;
if (_w2 > _mh || (_w2 == _mh && _lW[_u2]._x2 < _lW[_oW]._x2)) {
_oW = _u2;
_mh = _w2
}
}
var _pW = new Array(_eS);
var _gf = 0;
var _qW = _oW;
for (;;) {
_pW[_gf] = _qW;
var _rW = 0;
for (_Bf = 1; _Bf < _df; ++_Bf) {
if (_rW == _qW) {
_rW = _Bf;
continue
}
var _uf = _XS._4T(_lW[_rW], _lW[_pW[_gf]]);
var _8h = _XS._4T(_lW[_Bf], _lW[_pW[_gf]]);
var _v2 = _YT(_uf, _8h);
if (_v2 < 0.0) {
_rW = _Bf
}
if (_v2 == 0.0 && _8h._6T() > _uf._6T()) {
_rW = _Bf
}
}++_gf;
_qW = _rW;
if (_rW == _oW) {
break
}
}
this._1W = _gf;
for (_u2 = 0; _u2 < _gf; ++_u2) {
this._0W[_u2] = _lW[_pW[_u2]]._4e()
}
for (_u2 = 0; _u2 < _gf; ++_u2) {
var _fW = _u2;
var _gW = _u2 + 1 < _gf ? _u2 + 1 : 0;
var _eW = _XS._4T(this._0W[_gW], this._0W[_fW]);
_7S(_eW._6T() > _bS * _bS);
this._jW[_u2] = _ZT(_eW, 1.0)._4e();
this._jW[_u2]._7T()
}
this._iW = _hW._sW(this._0W, _gf)
},
_kW: function(_tW, _uW, _MU, _Cg) {
this._1W = 4;
this._0W[0] = new _XS(-_tW, -_uW);
this._0W[1] = new _XS(_tW, -_uW);
this._0W[2] = new _XS(_tW, _uW);
this._0W[3] = new _XS(-_tW, _uW);
this._jW[0] = new _XS(0.0, -1.0);
this._jW[1] = new _XS(1.0, 0.0);
this._jW[2] = new _XS(0.0, 1.0);
this._jW[3] = new _XS(-1.0, 0.0);
if (!_MU) return;
this._iW._0T(_MU);
var _MT = new _LT();
_MT._yA = _MU;
_MT._rz._Tn(_Cg);
for (var _u2 = 0; _u2 < this._1W; ++_u2) {
this._0W[_u2]._0T(_dU(_MT, this._0W[_u2]));
this._jW[_u2]._0T(_bU(_MT._rz, this._jW[_u2]))
}
},
_jV: function(_MT, _yA) {
var _vW = _cU(_MT._rz, _XS._4T(_yA, _MT._yA));
for (var _u2 = 0; _u2 < this._1W; ++_u2) {
var _wW = _XT(this._jW[_u2], _XS._4T(_vW, this._0W[_u2]));
if (_wW > 0.0) {
return !1
}
}
return !0
},
_kV: function(_gz, _ez, _MT, _lV) {
var _RU = _cU(_MT._rz, _XS._4T(_ez._RU, _MT._yA));
var _SU = _cU(_MT._rz,
_XS._4T(_ez._SU, _MT._yA));
var _Bp = _XS._4T(_SU, _RU);
var _xW = 0.0,
_yW = _ez._DV;
var index = -1;
for (var _u2 = 0; _u2 < this._1W; ++_u2) {
var _TV = _XT(this._jW[_u2], _XS._4T(this._0W[_u2], _RU));
var _UV = _XT(this._jW[_u2], _Bp);
if (_UV == 0.0) {
if (_TV < 0.0) {
return !1
}
} else {
if (_UV < 0.0 && _TV < _xW * _UV) {
_xW = _TV / _UV;
index = _u2
} else if (_UV > 0.0 && _TV < _yW * _UV) {
_yW = _TV / _UV
}
} if (_yW < _xW) {
return !1
}
}
_7S(0.0 <= _xW && _xW <= _ez._DV);
if (index >= 0) {
_gz._EV = _xW;
_gz._tV = _bU(_MT._rz, this._jW[index]);
return !0
}
return !1
},
_mV: function(_nV, _MT, _lV) {
var _VV = (_MT._rz._v2 * this._0W[0]._w2 - _MT._rz._ov * this._0W[0]._x2) + _MT._yA._w2;
var _WV = (_MT._rz._ov * this._0W[0]._w2 + _MT._rz._v2 * this._0W[0]._x2) + _MT._yA._x2;
var _XV = _VV;
var _YV = _WV;
for (var _u2 = 1; _u2 < this._1W; ++_u2) {
var _zW = (_MT._rz._v2 * this._0W[_u2]._w2 - _MT._rz._ov * this._0W[_u2]._x2) + _MT._yA._w2;
var _AW = (_MT._rz._ov * this._0W[_u2]._w2 + _MT._rz._v2 * this._0W[_u2]._x2) + _MT._yA._x2;
_VV = _oU(_VV, _zW);
_WV = _oU(_WV, _AW);
_XV = _qU(_XV, _zW);
_YV = _qU(_YV, _AW)
}
_nV._FV._w2 = _VV - this._gV;
_nV._FV._x2 = _WV - this._gV;
_nV._GV._w2 = _XV + this._gV;
_nV._GV._x2 = _YV + this._gV
},
_oV: function(_pV, _qV) {
_7S(this._1W >= 3);
var _MU = new _XS(0.0, 0.0);
var _BW = 0.0;
var _dV = 0.0;
var _ov = new _XS(0.0, 0.0);
for (var _u2 = 0; _u2 < this._1W; ++_u2) {
_ov._yn(this._0W[_u2])
}
_ov._9u(1.0 / this._1W);
var _CW = 1.0 / 3.0;
for (var _u2 = 0; _u2 < this._1W; ++_u2) {
var _DW = _XS._4T(this._0W[_u2], _ov);
var _EW = _u2 + 1 < this._1W ? _XS._4T(this._0W[_u2 + 1], _ov) : _XS._4T(this._0W[0], _ov);
var _FW = _YT(_DW, _EW);
var _GW = 0.5 * _FW;
_BW += _GW;
_MU._yn(_XS._9u(_GW * _CW, _XS._yn(_DW, _EW)));
var _HW = _DW._w2,
_IW = _DW._x2;
var _JW = _EW._w2,
_KW = _EW._x2;
var _LW = _HW * _HW + _JW * _HW + _JW * _JW;
var _MW = _IW * _IW + _KW * _IW + _KW * _KW;
_dV += (0.25 * _CW * _FW) * (_LW + _MW)
}
_pV._cV = _qV * _BW;
_7S(_BW > _bS);
_MU._9u(1.0 / _BW);
_pV._MU = _XS._yn(_MU, _ov);
_pV._dV = _qV * _dV;
_pV._dV += _pV._cV * (_XT(_pV._MU, _pV._MU) - _XT(_MU, _MU))
},
_JV: function() {
return this._1W
},
_KV: function(index) {
_7S(0 <= index && index < this._1W);
return this._0W[index]
},
_NW: function() {
for (var _u2 = 0; _u2 < this._1W; ++_u2) {
var _fW = _u2;
var _gW = _u2 < this._1W - 1 ? _fW + 1 : 0;
var _yA = this._0W[_fW];
var e = _XS._4T(this._0W[_gW], _yA);
for (var _Bf = 0; _Bf < this._1W; ++_Bf) {
if (_Bf == _fW || _Bf == _gW) {
continue
}
var _8h = _XS._4T(this._0W[_Bf],
_yA);
var _v2 = _YT(e, _8h);
if (_v2 < 0.0) {
return !1
}
}
}
return !0
},
_rV: function(_MT, _yA, _OW, _tV, _lV) {
var _vW = _cU(_MT._rz, _XS._4T(_yA, _MT._yA));
var maxDistance = -Number.MAX_VALUE;
var _PW = _vW;
for (var _u2 = 0; _u2 < this._1W; ++_u2) {
var _wW = _XT(this._jW[_u2], _XS._4T(_vW, this._0W[_u2]));
if (_wW > maxDistance) {
maxDistance = _wW;
_PW = this._jW[_u2]
}
}
if (maxDistance > 0) {
var _QW = _PW;
var _RW = maxDistance * maxDistance;
for (var _u2 = 0; _u2 < this._1W; ++_u2) {
var _sV = _XS._4T(_vW, this._0W[_u2]);
var _SW = _sV._6T();
if (_RW > _SW) {
_QW = _sV;
_RW = _SW
}
}
_OW[0] = _US(_RW);
_tV._0T(_bU(_MT._rz, _QW));
_tV._7T()
} else {
_OW[0] = maxDistance;
_tV._0T(_bU(_MT._rz, _PW))
}
},
_bT: function(_cT) {
var _Nw = _cT || {};
this.parent.prototype._bT.call(this, _Nw);
_Nw['m_count'] = this._1W;
_Nw['m_centroid'] = this._iW._bT();
_Nw['m_vertices'] = [];
_Nw['m_normals'] = [];
for (var _u2 = 0; _u2 < this._1W; ++_u2) {
_Nw['m_vertices'].push(this._0W[_u2]._bT());
_Nw['m_normals'].push(this._jW[_u2]._bT())
}
return _Nw
},
_dT: function(data) {
this.parent.prototype._dT.call(this, data);
this._1W = data['m_count'];
this._iW._dT(data['m_centroid']);
this._0W = [];
this._jW = [];
for (var _u2 = 0; _u2 < this._1W; ++_u2) {
this._0W[_u2] = new _XS();
this._0W[_u2]._dT(data['m_vertices'][_u2]);
this._jW[_u2] = new _XS();
this._jW[_u2]._dT(data['m_normals'][_u2])
}
}
};
_hW._sW = function(_TW, _fg) {
_7S(_fg >= 3);
var _v2 = new _XS();
var _BW = 0.0;
var _UW = new _XS(0.0, 0.0);
var _VW = 1.0 / 3.0;
for (var _u2 = 0; _u2 < _fg; ++_u2) {
var _RU = _UW;
var _SU = _TW[_u2];
var _WW = _u2 + 1 < _fg ? _TW[_u2 + 1] : _TW[0];
var _DW = _XS._4T(_SU, _RU);
var _EW = _XS._4T(_WW, _RU);
var _FW = _YT(_DW, _EW);
var _GW = 0.5 * _FW;
_BW += _GW;
_v2._yn(_XS._9u(_GW, _XS._9u(_VW,
_XS._yn(_XS._yn(_RU, _SU), _WW))))
}
_7S(_BW > _bS);
_v2._9u(1.0 / _BW);
return _v2
};
_hW._BR(_eV);
function _XW() {
this._YW = 0;
this._ZW = 0
}
function __W(_0X, _1X) {
if (_0X._YW == _1X._YW) {
return _0X._ZW - _1X._ZW
}
return _0X._YW - _1X._YW
}
function _2X() {
this._3X = new _4X();
this._5X = 0;
this._6X = 0;
this._7X = 0;
this._8X = [];
this._9X = 0;
this._aX = []
}
_2X.prototype = {
_bX: function(_nV, _cX) {
var _dX = this._3X._bX(_nV, _cX);
++this._6X;
this._eX(_dX);
return _dX
},
_fX: function(_dX) {
this._gX(_dX);
--this._6X;
this._3X._fX(_dX)
},
_hX: function(_dX, _nV, _iX) {
var buffer = this._3X._hX(_dX,
_nV, _iX);
if (buffer) {
this._eX(_dX)
}
},
_jX: function(_dX) {
this._eX(_dX)
},
_kX: function(_dX) {
return this._3X._kX(_dX)
},
_lX: function(_dX) {
return this._3X._lX(_dX)
},
_mX: function(_YW, _ZW) {
var _nX = this._3X._kX(_YW);
var _oX = this._3X._kX(_ZW);
return _pX(_nX, _oX)
},
_qX: function() {
return this._6X
},
_rX: function(_sX) {
this._7X = 0;
this._8X.length = 0;
for (var _u2 = 0; _u2 < this._9X; ++_u2) {
this._5X = this._aX[_u2];
if (this._5X == _2X._tX) {
continue
}
var _uX = this._3X._kX(this._5X);
this._3X._vX(this, _uX)
}
this._9X = 0;
this._8X.sort(__W);
var _u2 = 0;
while (_u2 < this._7X) {
var _wX = this._8X[_u2];
var _xX = this._3X._lX(_wX._YW);
var _yX = this._3X._lX(_wX._ZW);
_sX._zX(_xX, _yX);
++_u2;
while (_u2 < this._7X) {
var _AX = this._8X[_u2];
if (_AX._YW != _wX._YW || _AX._ZW != _wX._ZW) {
break
}++_u2
}
}
},
_vX: function(_sX, _nV) {
this._3X._vX(_sX, _nV)
},
_kV: function(_sX, _ez) {
this._3X._kV(_sX, _ez)
},
_BX: function() {
return this._3X._CX()
},
_DX: function() {
return this._3X._EX()
},
_FX: function() {
return this._3X._GX()
},
_HX: function(_IX) {
this._3X._HX(_IX)
},
_eX: function(_dX) {
this._aX[this._9X] = _dX;
++this._9X
},
_gX: function(_dX) {
for (var _u2 = 0; _u2 < this._9X; ++_u2) {
if (this._aX[_u2] == _dX) {
this._aX[_u2] = _2X._tX
}
}
},
_JX: function(_dX) {
if (_dX == this._5X) {
return !0
}
this._8X[this._7X] = new _XW();
this._8X[this._7X]._YW = _oU(_dX, this._5X);
this._8X[this._7X]._ZW = _qU(_dX, this._5X);
++this._7X;
return !0
}
};
_2X._tX = -1;
function _KX() {
this._0W = null;
this._1W = 0;
this._gV = 0
}
_KX.prototype = {
_0T: function(_sf) {
this._0W = _sf._0W;
this._1W = _sf._1W;
this._gV = _sf._gV
},
_Tn: function(_BV, index) {
switch (_BV._hV()) {
case _eV._uV:
{
var _LX = _BV;
this._0W = [_LX._AV];
this._1W = 1;
this._gV = _LX._gV
}
break;
case _eV._wV:
{
var _MX = _BV;
this._0W = _MX._0W;
this._1W = _MX._1W;
this._gV = _MX._gV
}
break;
case _eV._xV:
{
var _NX = _BV;
_7S(0 <= index && index < _NX._1W);
this._0W = [_NX._0W[index]];
if (index + 1 < _NX._1W) {
this._0W[1] = _NX._0W[index + 1]
} else {
this._0W[1] = _NX._0W[0]
}
this._1W = 2;
this._gV = _NX._gV
}
break;
case _eV._vV:
{
var _eW = _BV;
this._0W = [_eW._OV, _eW._PV];
this._1W = 2;
this._gV = _eW._gV
}
break;
default:
_7S(!1)
}
},
_HV: function(_zh, _Ah) {
var _OX = 0;
var _PX = this._0W[0]._w2 * _zh + this._0W[0]._x2 * _Ah;
for (var _u2 = 1; _u2 < this._1W;
++_u2) {
var value = this._0W[_u2]._w2 * _zh + this._0W[_u2]._x2 * _Ah;
if (value > _PX) {
_OX = _u2;
_PX = value
}
}
return _OX
},
_IV: function(_zh, _Ah) {
return this._0W[this._HV(_zh, _Ah)]
},
_JV: function() {
return this._1W
},
_KV: function(index) {
_7S(0 <= index && index < this._1W);
return this._0W[index]
}
};
function _QX() {
this._RX = 0;
this._fg = 0;
this._SX = [0, 0, 0];
this._TX = [0, 0, 0]
};
function _UX() {
this._VX = new _KX();
this._WX = new _KX();
this._XX = new _LT();
this._YX = new _LT();
this._ZX = !1
};
function __X() {
this._0Y = new _XS();
this._1Y = new _XS();
this._sV = 0;
this._2Y = 0
};
function _3Y() {
this._4Y = new _XS();
this._5Y = new _XS();
this._y2 = new _XS();
this._Wg = 0;
this._SX = 0;
this._TX = 0
}
_3Y.prototype = {
_0T: function(_sf) {
this._4Y._w2 = _sf._4Y._w2;
this._4Y._x2 = _sf._4Y._x2;
this._5Y._w2 = _sf._5Y._w2;
this._5Y._x2 = _sf._5Y._x2;
this._y2._w2 = _sf._y2._w2;
this._y2._x2 = _sf._y2._x2;
this._Wg = _sf._Wg;
this._SX = _sf._SX;
this._TX = _sf._TX
}
};
function _6Y() {
this._7Y = [new _3Y(), new _3Y(), new _3Y()];
this._1W = 0
}
_6Y.prototype = {
_8Y: function(_eg, _VX, _XX, _WX, _YX) {
_7S(_eg._fg <= 3);
this._1W = _eg._fg;
var _2h = this._7Y;
for (var _u2 = 0; _u2 < this._1W; ++_u2) {
var _8h = _2h[_u2];
_8h._SX = _eg._SX[_u2];
_8h._TX = _eg._TX[_u2];
var _9Y = _VX._KV(_8h._SX);
var _aY = _WX._KV(_8h._TX);
_8h._4Y._w2 = (_XX._rz._v2 * _9Y._w2 - _XX._rz._ov * _9Y._x2) + _XX._yA._w2;
_8h._4Y._x2 = (_XX._rz._ov * _9Y._w2 + _XX._rz._v2 * _9Y._x2) + _XX._yA._x2;
_8h._5Y._w2 = (_YX._rz._v2 * _aY._w2 - _YX._rz._ov * _aY._x2) + _YX._yA._w2;
_8h._5Y._x2 = (_YX._rz._ov * _aY._w2 + _YX._rz._v2 * _aY._x2) + _YX._yA._x2;
_8h._y2._w2 = _8h._5Y._w2 - _8h._4Y._w2;
_8h._y2._x2 = _8h._5Y._x2 - _8h._4Y._x2;
_8h._Wg = 0.0
}
if (this._1W > 1) {
var _bY = _eg._RX;
var _cY = this._dY();
if (_cY < 0.5 * _bY || 2.0 * _bY < _cY || _cY < _bS) {
this._1W = 0
}
}
if (this._1W == 0) {
var _8h = _2h[0];
_8h._SX = 0;
_8h._TX = 0;
var _9Y = _VX._KV(0);
var _aY = _WX._KV(0);
_8h._4Y._w2 = (_XX._rz._v2 * _9Y._w2 - _XX._rz._ov * _9Y._x2) + _XX._yA._w2;
_8h._4Y._x2 = (_XX._rz._ov * _9Y._w2 + _XX._rz._v2 * _9Y._x2) + _XX._yA._x2;
_8h._5Y._w2 = (_YX._rz._v2 * _aY._w2 - _YX._rz._ov * _aY._x2) + _YX._yA._w2;
_8h._5Y._x2 = (_YX._rz._ov * _aY._w2 + _YX._rz._v2 * _aY._x2) + _YX._yA._x2;
_8h._y2._w2 = _8h._5Y._w2 - _8h._4Y._w2;
_8h._y2._x2 = _8h._5Y._x2 - _8h._4Y._x2;
_8h._Wg = 1.0;
this._1W = 1
}
},
_eY: function(_eg) {
_eg._RX = this._dY();
_eg._fg = this._1W;
var _2h = this._7Y;
for (var _u2 = 0; _u2 < this._1W; ++_u2) {
_eg._SX[_u2] = _2h[_u2]._SX;
_eg._TX[_u2] = _2h[_u2]._TX
}
},
_fY: function(_yA) {
switch (this._1W) {
case 1:
_yA._w2 = -this._7Y[0]._y2._w2;
_yA._x2 = -this._7Y[0]._y2._x2;
break;
case 2:
{
var _gY = this._7Y[1]._y2._w2 - this._7Y[0]._y2._w2;
var _hY = this._7Y[1]._y2._x2 - this._7Y[0]._y2._x2;
var _iY = _gY * -this._7Y[0]._y2._x2 - _hY * -this._7Y[0]._y2._w2;
if (_iY > 0.0) {
_yA._w2 = -1.0 * _hY;
_yA._x2 = 1.0 * _gY
} else {
_yA._w2 = 1.0 * _hY;
_yA._x2 = -1.0 * _gY
}
}
break;
default:
_7S(!1);
_yA._w2 = _yA._x2 = 0;
break
}
},
_jY: function(_yA) {
switch (this._1W) {
case 1:
_yA._w2 = this._7Y[0]._y2._w2;
_yA._x2 = this._7Y[0]._y2._x2;
break;
case 2:
_yA._w2 = (this._7Y[0]._Wg * this._7Y[0]._y2._w2) + (this._7Y[1]._Wg * this._7Y[1]._y2._w2);
_yA._x2 = (this._7Y[0]._Wg * this._7Y[0]._y2._x2) + (this._7Y[1]._Wg * this._7Y[1]._y2._x2);
break;
case 3:
_yA._w2 = _yA._x2 = 0;
break;
default:
_7S(!1);
_yA._w2 = _yA._x2 = 0;
break
}
},
_kY: function(_lY, _mY) {
switch (this._1W) {
case 1:
_lY._w2 = this._7Y[0]._4Y._w2;
_lY._x2 = this._7Y[0]._4Y._x2;
_mY._w2 = this._7Y[0]._5Y._w2;
_mY._x2 = this._7Y[0]._5Y._x2;
break;
case 2:
_lY._w2 = (this._7Y[0]._Wg * this._7Y[0]._4Y._w2) + (this._7Y[1]._Wg * this._7Y[1]._4Y._w2);
_lY._x2 = (this._7Y[0]._Wg * this._7Y[0]._4Y._x2) + (this._7Y[1]._Wg * this._7Y[1]._4Y._x2);
_mY._w2 = (this._7Y[0]._Wg * this._7Y[0]._5Y._w2) + (this._7Y[1]._Wg * this._7Y[1]._5Y._w2);
_mY._x2 = (this._7Y[0]._Wg * this._7Y[0]._5Y._x2) + (this._7Y[1]._Wg * this._7Y[1]._5Y._x2);
break;
case 3:
_lY._w2 = (this._7Y[0]._Wg * this._7Y[0]._4Y._w2) + (this._7Y[1]._Wg * this._7Y[1]._4Y._w2) + (this._7Y[2]._Wg * this._7Y[2]._4Y._w2);
_lY._x2 = (this._7Y[0]._Wg * this._7Y[0]._4Y._x2) + (this._7Y[1]._Wg * this._7Y[1]._4Y._x2) + (this._7Y[2]._Wg * this._7Y[2]._4Y._x2);
_mY._w2 = _lY._w2;
_mY._x2 = _lY._x2;
break;
default:
_7S(!1);
break
}
},
_dY: function() {
switch (this._1W) {
case 1:
return 0.0;
case 2:
return _2U(this._7Y[0]._y2, this._7Y[1]._y2);
case 3:
return (this._7Y[1]._y2._w2 - this._7Y[0]._y2._w2) * (this._7Y[2]._y2._x2 - this._7Y[0]._y2._x2) - (this._7Y[1]._y2._x2 - this._7Y[0]._y2._x2) * (this._7Y[2]._y2._w2 - this._7Y[0]._y2._w2);
default:
_7S(!1);
return 0.0
}
},
_nY: function() {
var _oY = this._7Y[0]._y2;
var _pY = this._7Y[1]._y2;
var _gY = _pY._w2 - _oY._w2;
var _hY = _pY._x2 - _oY._x2;
var _qY = -(_oY._w2 * _gY + _oY._x2 * _hY);
if (_qY <= 0.0) {
this._7Y[0]._Wg = 1.0;
this._1W = 1;
return
}
var _rY = _pY._w2 * _gY + _pY._x2 * _hY;
if (_rY <= 0.0) {
this._7Y[1]._Wg = 1.0;
this._1W = 1;
this._7Y[0]._0T(this._7Y[1]);
return
}
var _sY = 1.0 / (_rY + _qY);
this._7Y[0]._Wg = _rY * _sY;
this._7Y[1]._Wg = _qY * _sY;
this._1W = 2
},
_tY: function() {
var _oY = this._7Y[0]._y2;
var _pY = this._7Y[1]._y2;
var _uY = this._7Y[2]._y2;
var _gY = _pY._w2 - _oY._w2;
var _hY = _pY._x2 - _oY._x2;
var _vY = _oY._w2 * _gY + _oY._x2 * _hY;
var _wY = _pY._w2 * _gY + _pY._x2 * _hY;
var _rY = _wY;
var _qY = -_vY;
var _xY = _uY._w2 - _oY._w2;
var _yY = _uY._x2 - _oY._x2;
var _zY = _oY._w2 * _xY + _oY._x2 * _yY;
var _AY = _uY._w2 * _xY + _uY._x2 * _yY;
var _BY = _AY;
var _CY = -_zY;
var _DY = _uY._w2 - _pY._w2;
var _EY = _uY._x2 - _pY._x2;
var _FY = _pY._w2 * _DY + _pY._x2 * _EY;
var _GY = _uY._w2 * _DY + _uY._x2 * _EY;
var _HY = _GY;
var _IY = -_FY;
var _JY = _gY * _yY - _hY * _xY;
var _KY = _JY * (_pY._w2 * _uY._x2 - _pY._x2 * _uY._w2);
var _LY = _JY * (_uY._w2 * _oY._x2 - _uY._x2 * _oY._w2);
var _MY = _JY * (_oY._w2 * _pY._x2 - _oY._x2 * _pY._w2);
if (_qY <= 0.0 && _CY <= 0.0) {
this._7Y[0]._Wg = 1.0;
this._1W = 1;
return
}
if (_rY > 0.0 && _qY > 0.0 && _MY <= 0.0) {
var _sY = 1.0 / (_rY + _qY);
this._7Y[0]._Wg = _rY * _sY;
this._7Y[1]._Wg = _qY * _sY;
this._1W = 2;
return
}
if (_BY > 0.0 && _CY > 0.0 && _LY <= 0.0) {
var _NY = 1.0 / (_BY + _CY);
this._7Y[0]._Wg = _BY * _NY;
this._7Y[2]._Wg = _CY * _NY;
this._1W = 2;
this._7Y[1]._0T(this._7Y[2]);
return
}
if (_rY <= 0.0 && _IY <= 0.0) {
this._7Y[1]._Wg = 1.0;
this._1W = 1;
this._7Y[0]._0T(this._7Y[1]);
return
}
if (_BY <= 0.0 && _HY <= 0.0) {
this._7Y[2]._Wg = 1.0;
this._1W = 1;
this._7Y[0]._0T(this._7Y[2]);
return
}
if (_HY > 0.0 && _IY > 0.0 && _KY <= 0.0) {
var _OY = 1.0 / (_HY + _IY);
this._7Y[1]._Wg = _HY * _OY;
this._7Y[2]._Wg = _IY * _OY;
this._1W = 2;
this._7Y[0]._0T(this._7Y[2]);
return
}
var _PY = 1.0 / (_KY + _LY + _MY);
this._7Y[0]._Wg = _KY * _PY;
this._7Y[1]._Wg = _LY * _PY;
this._7Y[2]._Wg = _MY * _PY;
this._1W = 3
}
};
var _QY = new _6Y();
var _RY = new _XS();
var _SY = new _XS();
function _TY(_gz, _eg, _ez) {
++_TY._UY;
var _VX = _ez._VX;
var _WX = _ez._WX;
var _XX = _ez._XX;
var _YX = _ez._YX;
_QY._8Y(_eg, _VX, _XX, _WX, _YX);
var _2h = _QY._7Y;
var _VY = 20;
var _WY = [0, 0, 0],
_XY = [0, 0, 0];
var _YY = 0;
var _ZY = _aS;
var __Y = _ZY;
var _0Z = 0;
while (_0Z < _VY) {
_YY = _QY._1W;
for (var _u2 = 0; _u2 < _YY; ++_u2) {
_WY[_u2] = _2h[_u2]._SX;
_XY[_u2] = _2h[_u2]._TX
}
switch (_QY._1W) {
case 1:
break;
case 2:
_QY._nY();
break;
case 3:
_QY._tY();
break;
default:
_7S(!1)
}
if (_QY._1W == 3) {
break
}
_QY._jY(_SY);
__Y = _SY._6T();
if (__Y >= _ZY) {}
_ZY = __Y;
_QY._fY(_SY);
if (_SY._6T() < _bS * _bS) {
break
}
var _1Z = _2h[_QY._1W];
_1Z._SX = _VX._HV(_XX._rz._v2 * -_SY._w2 + _XX._rz._ov * -_SY._x2, -_XX._rz._ov * -_SY._w2 + _XX._rz._v2 * -_SY._x2);
var _2Z = _VX._KV(_1Z._SX);
_1Z._4Y._w2 = (_XX._rz._v2 * _2Z._w2 - _XX._rz._ov * _2Z._x2) + _XX._yA._w2;
_1Z._4Y._x2 = (_XX._rz._ov * _2Z._w2 + _XX._rz._v2 * _2Z._x2) + _XX._yA._x2;
_1Z._TX = _WX._HV(_YX._rz._v2 * _SY._w2 + _YX._rz._ov * _SY._x2, -_YX._rz._ov * _SY._w2 + _YX._rz._v2 * _SY._x2);
var _3Z = _WX._KV(_1Z._TX);
_1Z._5Y._w2 = (_YX._rz._v2 * _3Z._w2 - _YX._rz._ov * _3Z._x2) + _YX._yA._w2;
_1Z._5Y._x2 = (_YX._rz._ov * _3Z._w2 + _YX._rz._v2 * _3Z._x2) + _YX._yA._x2;
_1Z._y2._w2 = _1Z._5Y._w2 - _1Z._4Y._w2;
_1Z._y2._x2 = _1Z._5Y._x2 - _1Z._4Y._x2;
++_0Z;
++_TY._4Z;
var _5Z = !1;
for (var _u2 = 0; _u2 < _YY; ++_u2) {
if (_1Z._SX == _WY[_u2] && _1Z._TX == _XY[_u2]) {
_5Z = !0;
break
}
}
if (_5Z) {
break
}++_QY._1W
}
_TY._6Z = _qU(_TY._6Z, _0Z);
_QY._kY(_gz._0Y,
_gz._1Y);
_gz._sV = _2U(_gz._0Y, _gz._1Y);
_gz._2Y = _0Z;
_QY._eY(_eg);
if (_ez._ZX) {
var _7Z = _VX._gV;
var _8Z = _WX._gV;
if (_gz._sV > _7Z + _8Z && _gz._sV > _bS) {
_gz._sV -= _7Z + _8Z;
_RY._w2 = _gz._1Y._w2 - _gz._0Y._w2;
_RY._x2 = _gz._1Y._x2 - _gz._0Y._x2;
_RY._7T();
_gz._0Y._w2 += (_7Z * _RY._w2);
_gz._0Y._x2 += (_7Z * _RY._x2);
_gz._1Y._w2 -= (_8Z * _RY._w2);
_gz._1Y._x2 -= (_8Z * _RY._x2)
} else {
var _fp = (0.5 * (_gz._0Y._w2 + _gz._1Y._w2));
var _gp = (0.5 * (_gz._0Y._x2 + _gz._1Y._x2));
_gz._0Y._w2 = _fp;
_gz._0Y._x2 = _gp;
_gz._1Y._w2 = _fp;
_gz._1Y._x2 = _gp;
_gz._sV = 0.0
}
}
}
_TY._UY = 0;
_TY._4Z = 0;
_TY._6Z = 0;
var _9Z = 255;
function _aZ() {}
_aZ.prototype = {
_SX: 0,
_TX: 0,
_bZ: 0,
_cZ: 0,
_8V: function() {
this._SX = this._TX = this._bZ = this._cZ = 0
},
_hn: function() {
return this._SX | (this._TX << 8) | (this._bZ << 16) | (this._cZ << 24)
},
_0T: function(_dZ) {
this._SX = _dZ._SX;
this._TX = _dZ._TX;
this._bZ = _dZ._bZ;
this._cZ = _dZ._cZ
}
};
_aZ._eZ = 0;
_aZ._fZ = 1;
function _gZ() {
this._hZ = new _XS();
this._iZ = 0;
this._jZ = 0;
this.id = new _aZ()
};
_gZ.prototype = {
_4e: function() {
var _kZ = new _gZ();
_kZ._hZ._w2 = this._hZ._w2;
_kZ._hZ._x2 = this._hZ._x2;
_kZ._iZ = this._iZ;
_kZ._jZ = this._jZ;
_kZ.id._0T(this.id);
return _kZ
}
};
function _lZ() {
this._mZ = new Array(_dS);
this._nZ = new _XS();
this._hZ = new _XS();
this.type = 0;
this._oZ = 0
};
_lZ.prototype = {
_4e: function() {
var _pZ = new _lZ();
_pZ._oZ = this._oZ;
_pZ.type = this.type;
_pZ._hZ._w2 = this._hZ._w2;
_pZ._hZ._x2 = this._hZ._x2;
_pZ._nZ._w2 = this._nZ._w2;
_pZ._nZ._x2 = this._nZ._x2;
for (var _u2 = 0; _u2 < this._oZ; ++_u2) _pZ._mZ[_u2] = this._mZ[_u2]._4e();
return _pZ
},
_0T: function(_pZ) {
this._oZ = _pZ._oZ;
this.type = _pZ.type;
this._hZ._w2 = _pZ._hZ._w2;
this._hZ._x2 = _pZ._hZ._x2;
this._nZ._w2 = _pZ._nZ._w2;
this._nZ._x2 = _pZ._nZ._x2;
for (var _u2 = 0; _u2 < this._oZ; ++_u2) this._mZ[_u2] = _pZ._mZ[_u2]._4e()
}
};
_lZ._qZ = 0;
_lZ._rZ = 1;
_lZ._sZ = 2;
_lZ._tZ = 0;
_lZ._uZ = 1;
_lZ._vZ = 2;
_lZ._wZ = 3;
function _xZ() {
this._tV = new _XS();
this._mZ = new Array(_dS);
this._yZ = new Array(_dS)
}
_xZ.prototype = {
_zZ: function(_pZ, _AZ, _BZ, _CZ, _DZ) {
if (_pZ._oZ == 0) {
return
}
switch (_pZ.type) {
case _lZ._qZ:
{
this._tV._w2 = 1;
this._tV._x2 = 0;
var _EZ = (_AZ._rz._v2 * _pZ._hZ._w2 - _AZ._rz._ov * _pZ._hZ._x2) + _AZ._yA._w2;
var _FZ = (_AZ._rz._ov * _pZ._hZ._w2 + _AZ._rz._v2 * _pZ._hZ._x2) + _AZ._yA._x2;
var _GZ = (_CZ._rz._v2 * _pZ._mZ[0]._hZ._w2 - _CZ._rz._ov * _pZ._mZ[0]._hZ._x2) + _CZ._yA._w2;
var _HZ = (_CZ._rz._ov * _pZ._mZ[0]._hZ._w2 + _CZ._rz._v2 * _pZ._mZ[0]._hZ._x2) + _CZ._yA._x2;
var _IZ = _EZ - _GZ;
var _JZ = _FZ - _HZ;
if ((_IZ * _IZ + _JZ * _JZ) > _bS * _bS) {
this._tV._w2 = _GZ - _EZ;
this._tV._x2 = _HZ - _FZ;
this._tV._7T()
}
var _KZ = _EZ + (_BZ * this._tV._w2);
var _LZ = _FZ + (_BZ * this._tV._x2);
var _MZ = _GZ - (_DZ * this._tV._w2);
var _NZ = _HZ - (_DZ * this._tV._x2);
this._mZ[0] = new _XS(0.5 * (_KZ + _MZ), 0.5 * (_LZ + _NZ));
this._yZ[0] = (_MZ - _KZ) * this._tV._w2 + (_NZ - _LZ) * this._tV._x2
}
break;
case _lZ._rZ:
{
this._tV._w2 = _AZ._rz._v2 * _pZ._nZ._w2 - _AZ._rz._ov * _pZ._nZ._x2;
this._tV._x2 = _AZ._rz._ov * _pZ._nZ._w2 + _AZ._rz._v2 * _pZ._nZ._x2;
var _OZ = (_AZ._rz._v2 * _pZ._hZ._w2 - _AZ._rz._ov * _pZ._hZ._x2) + _AZ._yA._w2;
var _PZ = (_AZ._rz._ov * _pZ._hZ._w2 + _AZ._rz._v2 * _pZ._hZ._x2) + _AZ._yA._x2;
for (var _u2 = 0; _u2 < _pZ._oZ; ++_u2) {
var _QZ = (_CZ._rz._v2 * _pZ._mZ[_u2]._hZ._w2 - _CZ._rz._ov * _pZ._mZ[_u2]._hZ._x2) + _CZ._yA._w2;
var _RZ = (_CZ._rz._ov * _pZ._mZ[_u2]._hZ._w2 + _CZ._rz._v2 * _pZ._mZ[_u2]._hZ._x2) + _CZ._yA._x2;
var _Bp = (_QZ - _OZ) * this._tV._w2 + (_RZ - _PZ) * this._tV._x2;
var _KZ = _QZ + ((_BZ - _Bp) * this._tV._w2);
var _LZ = _RZ + ((_BZ - _Bp) * this._tV._x2);
var _MZ = (_QZ - (_DZ * this._tV._w2));
var _NZ = (_RZ - (_DZ * this._tV._x2));
this._mZ[_u2] = new _XS(0.5 * (_KZ + _MZ), 0.5 * (_LZ + _NZ));
this._yZ[_u2] = (_MZ - _KZ) * this._tV._w2 + (_NZ - _LZ) * this._tV._x2
}
}
break;
case _lZ._sZ:
{
this._tV._w2 = _CZ._rz._v2 * _pZ._nZ._w2 - _CZ._rz._ov * _pZ._nZ._x2;
this._tV._x2 = _CZ._rz._ov * _pZ._nZ._w2 + _CZ._rz._v2 * _pZ._nZ._x2;
var _OZ = (_CZ._rz._v2 * _pZ._hZ._w2 - _CZ._rz._ov * _pZ._hZ._x2) + _CZ._yA._w2;
var _PZ = (_CZ._rz._ov * _pZ._hZ._w2 + _CZ._rz._v2 * _pZ._hZ._x2) + _CZ._yA._x2;
for (var _u2 = 0; _u2 < _pZ._oZ; ++_u2) {
var _QZ = (_AZ._rz._v2 * _pZ._mZ[_u2]._hZ._w2 - _AZ._rz._ov * _pZ._mZ[_u2]._hZ._x2) + _AZ._yA._w2;
var _RZ = (_AZ._rz._ov * _pZ._mZ[_u2]._hZ._w2 + _AZ._rz._v2 * _pZ._mZ[_u2]._hZ._x2) + _AZ._yA._x2;
var _Bp = (_QZ - _OZ) * this._tV._w2 + (_RZ - _PZ) * this._tV._x2;
var _MZ = _QZ + ((_DZ - _Bp) * this._tV._w2);
var _NZ = _RZ + ((_DZ - _Bp) * this._tV._x2);
var _KZ = (_QZ - (_BZ * this._tV._w2));
var _LZ = (_RZ - (_BZ * this._tV._x2));
this._mZ[_u2] = new _XS(0.5 * (_KZ + _MZ), 0.5 * (_LZ + _NZ));
this._yZ[_u2] = (_KZ - _MZ) * this._tV._w2 + (_LZ - _NZ) * this._tV._x2
}
this._tV._w2 = -this._tV._w2;
this._tV._x2 = -this._tV._x2
}
break
}
}
};
function _SZ(_TZ, _UZ, _VZ, _WZ) {
for (var _u2 = 0; _u2 < _dS; ++_u2) {
_TZ[_u2] = _lZ._tZ;
_UZ[_u2] = _lZ._tZ
}
for (var _u2 = 0; _u2 < _VZ._oZ; ++_u2) {
var id = _VZ._mZ[_u2].id;
_TZ[_u2] = _lZ._wZ;
for (var _Bf = 0; _Bf < _WZ._oZ; ++_Bf) {
if (_WZ._mZ[_Bf].id._hn() == id._hn()) {
_TZ[_u2] = _lZ._vZ;
break
}
}
}
for (var _u2 = 0; _u2 < _WZ._oZ; ++_u2) {
var id = _WZ._mZ[_u2].id;
_UZ[_u2] = _lZ._uZ;
for (var _Bf = 0; _Bf < _VZ._oZ; ++_Bf) {
if (_VZ._mZ[_Bf].id._hn() == id._hn()) {
_UZ[_u2] = _lZ._vZ;
break
}
}
}
}
function _XZ() {
this._8h = new _XS();
this.id = new _aZ()
};
function _YZ() {
this._RU = new _XS(), this._SU = new _XS();
this._DV = 0
};
function _ZZ() {
this._tV = new _XS();
this._EV = 0
};
function __Z() {
this._FV = new _XS();
this._GV = new _XS()
}
__Z.prototype = {
_0T: function(_0_) {
this._FV._w2 = _0_._FV._w2;
this._FV._x2 = _0_._FV._x2;
this._GV._w2 = _0_._GV._w2;
this._GV._x2 = _0_._GV._x2
},
_4e: function() {
var _1_ = new __Z();
_1_._FV._w2 = this._FV._w2;
_1_._FV._x2 = this._FV._x2;
_1_._GV._w2 = this._GV._w2;
_1_._GV._x2 = this._GV._x2;
return _1_
},
_9T: function() {
return (this._GV._w2 - this._FV._w2) >= 0.0 && (this._GV._x2 - this._FV._x2) >= 0.0 && this._FV._9T() && this._GV._9T()
},
_2_: function() {
return new _XS(0.5 * (this._FV._w2 + this._GV._w2), 0.5 * (this._FV._x2 + this._GV._x2))
},
_3_: function() {
return new _XS(0.5 * (this._GV._w2 - this._FV._w2), 0.5 * (this._GV._x2 - this._FV._x2))
},
_4_: function() {
return 2.0 * ((this._GV._w2 - this._FV._w2) + (this._GV._x2 - this._FV._x2))
},
_5_: function(_6_, _7_) {
if (_7_) {
this._FV._w2 = _oU(_6_._FV._w2, _7_._FV._w2);
this._FV._x2 = _oU(_6_._FV._x2, _7_._FV._x2);
this._GV._w2 = _qU(_6_._GV._w2, _7_._GV._w2);
this._GV._x2 = _qU(_6_._GV._x2, _7_._GV._x2)
} else {
this._FV._w2 = _oU(this._FV._w2,
_6_._FV._w2);
this._FV._x2 = _oU(this._FV._x2, _6_._FV._x2);
this._GV._w2 = _qU(this._GV._w2, _6_._GV._w2);
this._GV._x2 = _qU(this._GV._x2, _6_._GV._x2)
}
},
_8_: function(_nV) {
return this._FV._w2 <= _nV._FV._w2 && this._FV._x2 <= _nV._FV._x2 && _nV._GV._w2 <= this._GV._w2 && _nV._GV._x2 <= this._GV._x2
},
_kV: function(_gz, _ez) {
var _9_ = -_aS;
var _a_ = _aS;
var _yA = _ez._RU;
var _Bp = _XS._4T(_ez._SU, _ez._RU);
var _b_ = _mU(_Bp);
var _tV = new _XS();
for (var _u2 = 0; _u2 < 2; ++_u2) {
if (_b_._2T(_u2) < _bS) {
if (_yA._2T(_u2) < this._FV._2T(_u2) || this._GV._2T(_u2) < _yA._2T(_u2)) {
return !1
}
} else {
var _c_ = 1.0 / _Bp._2T(_u2);
var _d_ = (this._FV._2T(_u2) - _yA._2T(_u2)) * _c_;
var _e_ = (this._GV._2T(_u2) - _yA._2T(_u2)) * _c_;
var _ov = -1.0;
if (_d_ > _e_) {
var _QA = _e_;
_e_ = _d_;
_d_ = _QA;
_ov = 1.0
}
if (_d_ > _9_) {
_tV._w2 = _tV._x2 = 0;
_tV._3T(_u2, _ov);
_9_ = _d_
}
_a_ = _oU(_a_, _e_);
if (_9_ > _a_) {
return !1
}
}
}
if (_9_ < 0.0 || _ez._DV < _9_) {
return !1
}
_gz._EV = _9_;
_gz._tV._w2 = _tV._w2;
_gz._tV._x2 = _tV._x2;
return !0
}
};
function _f_(_pZ, _g_, _AZ, _h_, _CZ) {
_pZ._oZ = 0;
var _lY = _dU(_AZ, _g_._AV);
var _mY = _dU(_CZ, _h_._AV);
var _zh = _mY._w2 - _lY._w2;
var _Ah = _mY._x2 - _lY._x2;
var _i_ = _zh * _zh + _Ah * _Ah;
var _7Z = _g_._gV,
_8Z = _h_._gV;
var _NU = _7Z + _8Z;
if (_i_ > _NU * _NU) {
return
}
_pZ.type = _lZ._qZ;
_pZ._hZ._w2 = _g_._AV._w2;
_pZ._hZ._x2 = _g_._AV._x2;
_pZ._nZ._w2 = _pZ._nZ._x2 = 0;
_pZ._oZ = 1;
_pZ._mZ[0] = new _gZ();
_pZ._mZ[0]._hZ._w2 = _h_._AV._w2;
_pZ._mZ[0]._hZ._x2 = _h_._AV._x2;
_pZ._mZ[0].id._8V()
}
function _j_(_pZ, _k_, _AZ, _h_, _CZ) {
_pZ._oZ = 0;
var _v2 = _dU(_CZ, _h_._AV);
var _l_ = _fU(_AZ, _v2);
var _m_ = 0;
var _n_ = -_aS;
var _NU = _k_._gV + _h_._gV;
var _JU = _k_._1W;
var _2h = _k_._0W;
var _o_ = _k_._jW;
for (var _u2 = 0; _u2 < _JU; ++_u2) {
var _ov = _o_[_u2]._w2 * (_l_._w2 - _2h[_u2]._w2) + _o_[_u2]._x2 * (_l_._x2 - _2h[_u2]._x2);
if (_ov > _NU) {
return
}
if (_ov > _n_) {
_n_ = _ov;
_m_ = _u2
}
}
var _p_ = _m_;
var _q_ = _p_ + 1 < _JU ? _p_ + 1 : 0;
var _Th = _2h[_p_];
var _Uh = _2h[_q_];
if (_n_ < _bS) {
_pZ._oZ = 1;
_pZ.type = _lZ._rZ;
_pZ._nZ._w2 = _o_[_m_]._w2;
_pZ._nZ._x2 = _o_[_m_]._x2;
_pZ._hZ._w2 = 0.5 * (_Th._w2 + _Uh._w2);
_pZ._hZ._x2 = 0.5 * (_Th._x2 + _Uh._x2);
_pZ._mZ[0] = new _gZ();
_pZ._mZ[0]._hZ._w2 = _h_._AV._w2;
_pZ._mZ[0]._hZ._x2 = _h_._AV._x2;
_pZ._mZ[0].id._8V();
return
}
var _r_ = (_l_._w2 - _Th._w2) * (_Uh._w2 - _Th._w2) + (_l_._x2 - _Th._x2) * (_Uh._x2 - _Th._x2);
var _s_ = (_l_._w2 - _Uh._w2) * (_Th._w2 - _Uh._w2) + (_l_._x2 - _Uh._x2) * (_Th._x2 - _Uh._x2);
if (_r_ <= 0.0) {
if (_3U(_l_, _Th) > _NU * _NU) {
return
}
_pZ._oZ = 1;
_pZ.type = _lZ._rZ;
_pZ._nZ._w2 = _l_._w2 - _Th._w2;
_pZ._nZ._x2 = _l_._x2 - _Th._x2;
_pZ._nZ._7T();
_pZ._hZ._w2 = _Th._w2;
_pZ._hZ._x2 = _Th._x2;
_pZ._mZ[0] = new _gZ();
_pZ._mZ[0]._hZ._w2 = _h_._AV._w2;
_pZ._mZ[0]._hZ._x2 = _h_._AV._x2;
_pZ._mZ[0].id._8V()
} else if (_s_ <= 0.0) {
if (_3U(_l_, _Uh) > _NU * _NU) {
return
}
_pZ._oZ = 1;
_pZ.type = _lZ._rZ;
_pZ._nZ._w2 = _l_._w2 - _Uh._w2;
_pZ._nZ._x2 = _l_._x2 - _Uh._x2;
_pZ._nZ._7T();
_pZ._hZ._w2 = _Uh._w2;
_pZ._hZ._x2 = _Uh._x2;
_pZ._mZ[0] = new _gZ();
_pZ._mZ[0]._hZ._w2 = _h_._AV._w2;
_pZ._mZ[0]._hZ._x2 = _h_._AV._x2;
_pZ._mZ[0].id._8V()
} else {
var _t_ = 0.5 * (_Th._w2 + _Uh._w2);
var _u_ = 0.5 * (_Th._x2 + _Uh._x2);
var _n_ = (_l_._w2 - _t_) * _o_[_p_]._w2 + (_l_._x2 - _u_) * _o_[_p_]._x2;
if (_n_ > _NU) {
return
}
_pZ._oZ = 1;
_pZ.type = _lZ._rZ;
_pZ._nZ._w2 = _o_[_p_]._w2;
_pZ._nZ._x2 = _o_[_p_]._x2;
_pZ._hZ._w2 = _t_;
_pZ._hZ._x2 = _u_;
_pZ._mZ[0] = new _gZ();
_pZ._mZ[0]._hZ._w2 = _h_._AV._w2;
_pZ._mZ[0]._hZ._x2 = _h_._AV._x2;
_pZ._mZ[0].id._8V()
}
}
function _v_(_w_, _x_, _y_, _z_, _A_) {
var _B_ = _x_._1W;
var _C_ = _z_._1W;
var _D_ = _x_._jW;
var _E_ = _x_._0W;
var _F_ = _z_._0W;
var _MT = _iU(_A_, _y_);
var _OX = 0;
var _G_ = -_aS;
for (var _u2 = 0; _u2 < _B_; ++_u2) {
var _li = _MT._rz._v2 * _D_[_u2]._w2 - _MT._rz._ov * _D_[_u2]._x2;
var _mi = _MT._rz._ov * _D_[_u2]._w2 + _MT._rz._v2 * _D_[_u2]._x2;
var _kp = (_MT._rz._v2 * _E_[_u2]._w2 - _MT._rz._ov * _E_[_u2]._x2) + _MT._yA._w2;
var _np = (_MT._rz._ov * _E_[_u2]._w2 + _MT._rz._v2 * _E_[_u2]._x2) + _MT._yA._x2;
var _H_ = _aS;
for (var _Bf = 0; _Bf < _C_; ++_Bf) {
var _I_ = _li * (_F_[_Bf]._w2 - _kp) + _mi * (_F_[_Bf]._x2 - _np);
if (_I_ < _H_) {
_H_ = _I_
}
}
if (_H_ > _G_) {
_G_ = _H_;
_OX = _u2
}
}
_w_[0] = _OX;
return _G_
}
function _J_(_v2,
_x_, _y_, _K_, _z_, _A_) {
var _L_ = _x_._jW;
var _C_ = _z_._1W;
var _M_ = _z_._0W;
var _N_ = _z_._jW;
_7S(0 <= _K_ && _K_ < _x_._1W);
var _O_ = _y_._rz._v2 * _L_[_K_]._w2 - _y_._rz._ov * _L_[_K_]._x2;
var _P_ = _y_._rz._ov * _L_[_K_]._w2 + _y_._rz._v2 * _L_[_K_]._x2;
var _Q_ = _A_._rz._v2 * _O_ + _A_._rz._ov * _P_;
var _R_ = -_A_._rz._ov * _O_ + _A_._rz._v2 * _P_;
var index = 0;
var _S_ = _aS;
for (var _u2 = 0; _u2 < _C_; ++_u2) {
var _wW = _Q_ * _N_[_u2]._w2 + _R_ * _N_[_u2]._x2;
if (_wW < _S_) {
_S_ = _wW;
index = _u2
}
}
var _fW = index;
var _gW = _fW + 1 < _C_ ? _fW + 1 : 0;
_v2[0]._8h._w2 = (_A_._rz._v2 * _M_[_fW]._w2 - _A_._rz._ov * _M_[_fW]._x2) + _A_._yA._w2;
_v2[0]._8h._x2 = (_A_._rz._ov * _M_[_fW]._w2 + _A_._rz._v2 * _M_[_fW]._x2) + _A_._yA._x2;
_v2[0].id._SX = _K_;
_v2[0].id._TX = _fW;
_v2[0].id._bZ = _aZ._fZ;
_v2[0].id._cZ = _aZ._eZ;
_v2[1]._8h._w2 = (_A_._rz._v2 * _M_[_gW]._w2 - _A_._rz._ov * _M_[_gW]._x2) + _A_._yA._w2;
_v2[1]._8h._x2 = (_A_._rz._ov * _M_[_gW]._w2 + _A_._rz._v2 * _M_[_gW]._x2) + _A_._yA._x2;
_v2[1].id._SX = _K_;
_v2[1].id._TX = _gW;
_v2[1].id._bZ = _aZ._fZ;
_v2[1].id._cZ = _aZ._eZ
}
function _T_(_pZ, _U_, _AZ, _V_, _CZ) {
_pZ._oZ = 0;
var _W_ = _U_._gV + _V_._gV;
var _X_ = [0];
var _Y_ = _v_(_X_, _U_, _AZ, _V_,
_CZ);
if (_Y_ > _W_) return;
var _Z_ = [0];
var ___ = _v_(_Z_, _V_, _CZ, _U_, _AZ);
if (___ > _W_) return;
var _x_;
var _z_;
var _y_, _A_;
var _K_ = 0;
var _001 = 0;
var _101 = 0.1 * _hS;
if (___ > _Y_ + _101) {
_x_ = _V_;
_z_ = _U_;
_y_ = _CZ;
_A_ = _AZ;
_K_ = _Z_[0];
_pZ.type = _lZ._sZ;
_001 = 1
} else {
_x_ = _U_;
_z_ = _V_;
_y_ = _AZ;
_A_ = _CZ;
_K_ = _X_[0];
_pZ.type = _lZ._rZ;
_001 = 0
}
_J_(_T_._201, _x_, _y_, _K_, _z_, _A_);
var _B_ = _x_._1W;
var _301 = _x_._0W;
var _401 = _K_;
var _501 = _K_ + 1 < _B_ ? _K_ + 1 : 0;
var _601 = _301[_401];
var _701 = _301[_501];
_T_._801._w2 = _701._w2 - _601._w2;
_T_._801._x2 = _701._x2 - _601._x2;
_T_._801._7T();
var _901 = 1.0 * _T_._801._x2;
var _a01 = -1.0 * _T_._801._w2;
var _OZ = 0.5 * (_601._w2 + _701._w2);
var _PZ = 0.5 * (_601._x2 + _701._x2);
var _b01 = _y_._rz._v2 * _T_._801._w2 - _y_._rz._ov * _T_._801._x2;
var _c01 = _y_._rz._ov * _T_._801._w2 + _y_._rz._v2 * _T_._801._x2;
var _d01 = 1.0 * _c01;
var _e01 = -1.0 * _b01;
_601 = _dU(_y_, _601);
_701 = _dU(_y_, _701);
var _f01 = _d01 * _601._w2 + _e01 * _601._x2;
var _g01 = -(_b01 * _601._w2 + _c01 * _601._x2) + _W_;
var _h01 = (_b01 * _701._w2 + _c01 * _701._x2) + _W_;
var _i01 = new Array(2);
var _j01 = new Array(2);
var _k01;
_k01 = _l01(_i01,
_T_._201, -_b01, -_c01, _g01, _401);
if (_k01 < 2) return;
_k01 = _l01(_j01, _i01, _b01, _c01, _h01, _501);
if (_k01 < 2) {
return
}
_pZ._nZ._w2 = _901;
_pZ._nZ._x2 = _a01;
_pZ._hZ._w2 = _OZ;
_pZ._hZ._x2 = _PZ;
var _oZ = 0;
for (var _u2 = 0; _u2 < _dS; ++_u2) {
var _n_ = (_d01 * _j01[_u2]._8h._w2 + _e01 * _j01[_u2]._8h._x2) - _f01;
if (_n_ <= _W_) {
var _m01 = _pZ._mZ[_oZ] = new _gZ();
_m01._hZ._0T(_fU(_A_, _j01[_u2]._8h));
_m01.id._0T(_j01[_u2].id);
if (_001) {
var _n01 = new _aZ();
_n01._0T(_m01.id);
_m01.id._SX = _n01._TX;
_m01.id._TX = _n01._SX;
_m01.id._bZ = _n01._cZ;
_m01.id._cZ = _n01._bZ
}
++_oZ
}
}
_pZ._oZ = _oZ
}
_T_._801 = new _XS();
_T_._201 = [new _XZ(), new _XZ()];
function _o01(_pZ, _X_, _AZ, _h_, _CZ) {
_pZ._oZ = 0;
var _p01 = _fU(_AZ, _dU(_CZ, _h_._AV));
var _8S = _X_._OV,
_nT = _X_._PV;
var _0L = _nT._w2 - _8S._w2;
var _kT = _nT._x2 - _8S._x2;
var _6h = _0L * (_nT._w2 - _p01._w2) + _kT * (_nT._x2 - _p01._x2);
var _8h = _0L * (_p01._w2 - _8S._w2) + _kT * (_p01._x2 - _8S._x2);
var _NU = _X_._gV + _h_._gV;
var _n01 = new _aZ();
_n01._TX = 0;
_n01._cZ = _aZ._eZ;
if (_8h <= 0.0) {
var _q01 = _8S;
var _zh = _p01._w2 - _q01._w2;
var _Ah = _p01._x2 - _q01._x2;
var _MB = _zh * _zh + _Ah * _Ah;
if (_MB > _NU * _NU) {
return
}
if (_X_._RV) {
var _r01 = _X_._NV;
var _s01 = _8S;
var _t01 = _s01._w2 - _r01._w2;
var _u01 = _s01._x2 - _r01._x2;
var _r_ = _t01 * (_s01._w2 - _p01._w2) + _u01 * (_s01._x2 - _p01._x2);
if (_r_ > 0.0) {
return
}
}
_n01._SX = 0;
_n01._bZ = _aZ._eZ;
_pZ._oZ = 1;
_pZ.type = _lZ._qZ;
_pZ._nZ._w2 = _pZ._nZ._x2 = 0;
_pZ._hZ._w2 = _q01._w2;
_pZ._hZ._x2 = _q01._x2;
_pZ._mZ[0] = new _gZ();
_pZ._mZ[0].id._0T(_n01);
_pZ._mZ[0]._hZ._w2 = _h_._AV._w2;
_pZ._mZ[0]._hZ._x2 = _h_._AV._x2;
return
}
if (_6h <= 0.0) {
var _q01 = _nT;
var _zh = _p01._w2 - _q01._w2;
var _Ah = _p01._x2 - _q01._x2;
var _MB = _zh * _zh + _Ah * _Ah;
if (_MB > _NU * _NU) {
return
}
if (_X_._SV) {
var _v01 = _X_._QV;
var _w01 = _nT;
var _x01 = _v01._w2 - _w01._w2;
var _y01 = _v01._x2 - _w01._x2;
var _Uh = _x01 * (_p01._w2 - _w01._w2) + _y01 * (_p01._x2 - _w01._x2);
if (_Uh > 0.0) {
return
}
}
_n01._SX = 1;
_n01._bZ = _aZ._eZ;
_pZ._oZ = 1;
_pZ.type = _lZ._qZ;
_pZ._nZ._w2 = _pZ._nZ._x2 = 0;
_pZ._hZ._w2 = _q01._w2;
_pZ._hZ._x2 = _q01._x2;
_pZ._mZ[0] = new _gZ();
_pZ._mZ[0].id._0T(_n01);
_pZ._mZ[0]._hZ._w2 = _h_._AV._w2;
_pZ._mZ[0]._hZ._x2 = _h_._AV._x2;
return
}
var _z01 = _0L * _0L + _kT * _kT;
_7S(_z01 > 0.0);
var _A01 = (1.0 / _z01) * ((_6h * _8S._w2) + (_8h * _nT._w2));
var _B01 = (1.0 / _z01) * ((_6h * _8S._x2) + (_8h * _nT._x2));
var _zh = _p01._w2 - _A01;
var _Ah = _p01._x2 - _B01;
var _MB = _zh * _zh + _Ah * _Ah;
if (_MB > _NU * _NU) {
return
}
var _li = -_kT;
var _mi = _0L;
if (_li * (_p01._w2 - _8S._w2) + _mi * (_p01._x2 - _8S._x2) < 0.0) {
_li = -_li;
_mi = -_mi
}
_n01._SX = 0;
_n01._bZ = _aZ._fZ;
_pZ._oZ = 1;
_pZ.type = _lZ._rZ;
_pZ._nZ._w2 = _li;
_pZ._nZ._x2 = _mi;
_pZ._nZ._7T();
_pZ._hZ._w2 = _8S._w2;
_pZ._hZ._x2 = _8S._x2;
_pZ._mZ[0] = new _gZ();
_pZ._mZ[0].id._0T(_n01);
_pZ._mZ[0]._hZ._w2 = _h_._AV._w2;
_pZ._mZ[0]._hZ._x2 = _h_._AV._x2;
}
function _C01() {
this.type = 0;
this.index = 0;
this._n_ = 0
}
_C01._D01 = 0;
_C01._E01 = 1;
_C01._F01 = 2;
function _G01() {
this._2h = new Array(_eS);
this._o_ = new Array(_eS);
this._fg = 0
};
function _H01() {
this._fW = 0, this._gW = 0;
this._Th = new _XS(), this._Uh = new _XS();
this._tV = new _XS();
this._I01 = new _XS();
this._g01 = 0;
this._J01 = new _XS();
this._h01 = 0
};
function _K01() {
this._L01 = new _G01();
this._M01 = new _LT();
this._N01 = new _XS();
this._O01 = new _XS(), this._P01 = new _XS(), this._Q01 = new _XS(), this._R01 = new _XS();
this._S01 = new _XS(), this._T01 = new _XS(), this._U01 = new _XS();
this._V01 = new _XS();
this._W01 = 0, this._X01 = 0;
this._Y01 = new _XS(), this._Z01 = new _XS();
this._gV = 0;
this.__01 = !1
}
_K01._011 = new _XS();
_K01._111 = new _XS();
_K01._211 = new _XS();
_K01.prototype = {
_311: function(_pZ, _X_, _AZ, _411, _CZ) {
this._M01._0T(_iU(_AZ, _CZ));
this._N01._w2 = (this._M01._rz._v2 * _411._iW._w2 - this._M01._rz._ov * _411._iW._x2) + this._M01._yA._w2;
this._N01._x2 = (this._M01._rz._ov * _411._iW._w2 + this._M01._rz._v2 * _411._iW._x2) + this._M01._yA._x2;
this._O01._w2 = _X_._NV._w2;
this._O01._x2 = _X_._NV._x2;
this._P01._w2 = _X_._OV._w2;
this._P01._x2 = _X_._OV._x2;
this._Q01._w2 = _X_._PV._w2;
this._Q01._x2 = _X_._PV._x2;
this._R01._w2 = _X_._QV._w2;
this._R01._x2 = _X_._QV._x2;
var _511 = _X_._RV;
var _611 = _X_._SV;
_K01._011._w2 = this._Q01._w2 - this._P01._w2;
_K01._011._x2 = this._Q01._x2 - this._P01._x2;
_K01._011._7T();
this._T01._w2 = _K01._011._x2;
this._T01._x2 = -_K01._011._w2;
var _711 = this._T01._w2 * (this._N01._w2 - this._P01._w2) + this._T01._x2 * (this._N01._x2 - this._P01._x2);
var _811 = 0.0,
_911 = 0.0;
var _a11 = !1,
_b11 = !1;
if (_511) {
_K01._111._w2 = this._P01._w2 - this._O01._w2;
_K01._111._x2 = this._P01._x2 - this._O01._x2;
_K01._111._7T();
this._S01._w2 = _K01._111._x2;
this._S01._x2 = -_K01._111._w2;
_a11 = (_K01._111._w2 * _K01._011._x2 - _K01._111._x2 * _K01._011._w2) >= 0;
_811 = this._S01._w2 * (this._N01._w2 - this._O01._w2) + this._S01._x2 * (this._N01._x2 - this._O01._x2);
}
if (_611) {
_K01._211._w2 = this._R01._w2 - this._Q01._w2;
_K01._211._x2 = this._R01._x2 - this._Q01._x2;
_K01._211._7T();
this._U01._w2 = _K01._211._x2;
this._U01._x2 = -_K01._211._w2;
_b11 = (_K01._011._w2 * _K01._211._x2 - _K01._011._x2 * _K01._211._w2) > 0.0;
_911 = this._U01._w2 * (this._N01._w2 - this._Q01._w2) + this._U01._x2 * (this._N01._x2 - this._Q01._x2)
}
if (_511 && _611) {
if (_a11 && _b11) {
this.__01 = _811 >= 0.0 || _711 >= 0.0 || _911 >= 0.0;
if (this.__01) {
this._V01._w2 = this._T01._w2;
this._V01._x2 = this._T01._x2;
this._Y01._w2 = this._S01._w2;
this._Y01._x2 = this._S01._x2;
this._Z01._w2 = this._U01._w2;
this._Z01._x2 = this._U01._x2
} else {
this._V01._w2 = -this._T01._w2;
this._V01._x2 = -this._T01._x2;
this._Y01._w2 = -this._T01._w2;
this._Y01._x2 = -this._T01._x2;
this._Z01._w2 = -this._T01._w2;
this._Z01._x2 = -this._T01._x2
}
} else if (_a11) {
this.__01 = _811 >= 0.0 || (_711 >= 0.0 && _911 >= 0.0);
if (this.__01) {
this._V01._w2 = this._T01._w2;
this._V01._x2 = this._T01._x2;
this._Y01._w2 = this._S01._w2;
this._Y01._x2 = this._S01._x2;
this._Z01._w2 = this._T01._w2;
this._Z01._x2 = this._T01._x2
} else {
this._V01._w2 = -this._T01._w2;
this._V01._x2 = -this._T01._x2;
this._Y01._w2 = -this._U01._w2;
this._Y01._x2 = -this._U01._x2;
this._Z01._w2 = -this._T01._w2;
this._Z01._x2 = -this._T01._x2
}
} else if (_b11) {
this.__01 = _911 >= 0.0 || (_811 >= 0.0 && _711 >= 0.0);
if (this.__01) {
this._V01._w2 = this._T01._w2;
this._V01._x2 = this._T01._x2;
this._Y01._w2 = this._T01._w2;
this._Y01._x2 = this._T01._x2;
this._Z01._w2 = this._U01._w2;
this._Z01._x2 = this._U01._x2
} else {
this._V01._w2 = -this._T01._w2;
this._V01._x2 = -this._T01._x2;
this._Y01._w2 = -this._T01._w2;
this._Y01._x2 = -this._T01._x2;
this._Z01._w2 = -this._S01._w2;
this._Z01._x2 = -this._S01._x2
}
} else {
this.__01 = _811 >= 0.0 && _711 >= 0.0 && _911 >= 0.0;
if (this.__01) {
this._V01._w2 = this._T01._w2;
this._V01._x2 = this._T01._x2;
this._Y01._w2 = this._T01._w2;
this._Y01._x2 = this._T01._x2;
this._Z01._w2 = this._T01._w2;
this._Z01._x2 = this._T01._x2
} else {
this._V01._w2 = -this._T01._w2;
this._V01._x2 = -this._T01._x2;
this._Y01._w2 = -this._U01._w2;
this._Y01._x2 = -this._U01._x2;
this._Z01._w2 = -this._S01._w2;
this._Z01._x2 = -this._S01._x2
}
}
} else if (_511) {
if (_a11) {
this.__01 = _811 >= 0.0 || _711 >= 0.0;
if (this.__01) {
this._V01._w2 = this._T01._w2;
this._V01._x2 = this._T01._x2;
this._Y01._w2 = this._S01._w2;
this._Y01._x2 = this._S01._x2;
this._Z01._w2 = -this._T01._w2;
this._Z01._x2 = -this._T01._x2
} else {
this._V01._w2 = -this._T01._w2;
this._V01._x2 = -this._T01._x2;
this._Y01._w2 = this._T01._w2;
this._Y01._x2 = this._T01._x2;
this._Z01._w2 = -this._T01._w2;
this._Z01._x2 = -this._T01._x2
}
} else {
this.__01 = _811 >= 0.0 && _711 >= 0.0;
if (this.__01) {
this._V01._w2 = this._T01._w2;
this._V01._x2 = this._T01._x2;
this._Y01._w2 = this._T01._w2;
this._Y01._x2 = this._T01._x2;
this._Z01._w2 = -this._T01._w2;
this._Z01._x2 = -this._T01._x2
} else {
this._V01._w2 = -this._T01._w2;
this._V01._x2 = -this._T01._x2;
this._Y01._w2 = this._T01._w2;
this._Y01._x2 = this._T01._x2;
this._Z01._w2 = -this._S01._w2;
this._Z01._x2 = -this._S01._x2
}
}
} else if (_611) {
if (_b11) {
this.__01 = _711 >= 0.0 || _911 >= 0.0;
if (this.__01) {
this._V01._w2 = this._T01._w2;
this._V01._x2 = this._T01._x2;
this._Y01._w2 = -this._T01._w2;
this._Y01._x2 = -this._T01._x2;
this._Z01._w2 = this._U01._w2;
this._Z01._x2 = this._U01._x2
} else {
this._V01._w2 = -this._T01._w2;
this._V01._x2 = -this._T01._x2;
this._Y01._w2 = -this._T01._w2;
this._Y01._x2 = -this._T01._x2;
this._Z01._w2 = this._T01._w2;
this._Z01._x2 = this._T01._x2
}
} else {
this.__01 = _711 >= 0.0 && _911 >= 0.0;
if (this.__01) {
this._V01._w2 = this._T01._w2;
this._V01._x2 = this._T01._x2;
this._Y01._w2 = -this._T01._w2;
this._Y01._x2 = -this._T01._x2;
this._Z01._w2 = this._T01._w2;
this._Z01._x2 = this._T01._x2
} else {
this._V01._w2 = -this._T01._w2;
this._V01._x2 = -this._T01._x2;
this._Y01._w2 = -this._U01._w2;
this._Y01._x2 = -this._U01._x2;
this._Z01._w2 = this._T01._w2;
this._Z01._x2 = this._T01._x2
}
}
} else {
this.__01 = _711 >= 0.0;
if (this.__01) {
this._V01._w2 = this._T01._w2;
this._V01._x2 = this._T01._x2;
this._Y01._w2 = -this._T01._w2;
this._Y01._x2 = -this._T01._x2;
this._Z01._w2 = -this._T01._w2;
this._Z01._x2 = -this._T01._x2
} else {
this._V01._w2 = -this._T01._w2;
this._V01._x2 = -this._T01._x2;
this._Y01._w2 = this._T01._w2;
this._Y01._x2 = this._T01._x2;
this._Z01._w2 = this._T01._w2;
this._Z01._x2 = this._T01._x2
}
}
this._L01._fg = _411._1W;
for (var _u2 = 0; _u2 < _411._1W; ++_u2) {
this._L01._2h[_u2] = _dU(this._M01, _411._0W[_u2]);
this._L01._o_[_u2] = _bU(this._M01._rz, _411._jW[_u2])
}
this._gV = 2.0 * _jS;
_pZ._oZ = 0;
var _c11 = this._d11();
if (_c11.type == _C01._D01) {
return
}
if (_c11._n_ > this._gV) {
return
}
var _e11 = this._f11();
if (_e11.type != _C01._D01 && _e11._n_ > this._gV) {
return
}
var _g11 = 0.98;
var _h11 = 0.001;
var _i11 = new _C01();
if (_e11.type == _C01._D01) {
_i11 = _c11
} else if (_e11._n_ > _g11 * _c11._n_ + _h11) {
_i11 = _e11
} else {
_i11 = _c11
}
var _rW = new Array(2);
var _j11 = new _H01();
if (_i11.type == _C01._E01) {
_pZ.type = _lZ._rZ;
var _OX = 0;
var _PX = this._V01._w2 * this._L01._o_[0]._w2 + this._V01._x2 * this._L01._o_[0]._x2;
for (var _u2 = 1; _u2 < this._L01._fg; ++_u2) {
var value = this._V01._w2 * this._L01._o_[_u2]._w2 + this._V01._x2 * this._L01._o_[_u2]._x2;
if (value < _PX) {
_PX = value;
_OX = _u2
}
}
var _fW = _OX;
var _gW = _fW + 1 < this._L01._fg ? _fW + 1 : 0;
_rW[0] = new _XZ();
_rW[0]._8h._w2 = this._L01._2h[_fW]._w2;
_rW[0]._8h._x2 = this._L01._2h[_fW]._x2;
_rW[0].id._SX = 0;
_rW[0].id._TX = _fW;
_rW[0].id._bZ = _aZ._fZ;
_rW[0].id._cZ = _aZ._eZ;
_rW[1] = new _XZ();
_rW[1]._8h._w2 = this._L01._2h[_gW]._w2;
_rW[1]._8h._x2 = this._L01._2h[_gW]._x2;
_rW[1].id._SX = 0;
_rW[1].id._TX = _gW;
_rW[1].id._bZ = _aZ._fZ;
_rW[1].id._cZ = _aZ._eZ;
if (this.__01) {
_j11._fW = 0;
_j11._gW = 1;
_j11._Th._w2 = this._P01._w2;
_j11._Th._x2 = this._P01._x2;
_j11._Uh._w2 = this._Q01._w2;
_j11._Uh._x2 = this._Q01._x2;
_j11._tV._w2 = this._T01._w2;
_j11._tV._x2 = this._T01._x2
} else {
_j11._fW = 1;
_j11._gW = 0;
_j11._Th._w2 = this._Q01._w2;
_j11._Th._x2 = this._Q01._x2;
_j11._Uh._w2 = this._P01._w2;
_j11._Uh._x2 = this._P01._x2;
_j11._tV._w2 = -this._T01._w2;
_j11._tV._x2 = -this._T01._x2
}
} else {
_pZ.type = _lZ._sZ;
_rW[0] = new _XZ();
_rW[0]._8h = this._P01;
_rW[0].id._SX = 0;
_rW[0].id._TX = _i11.index;
_rW[0].id._bZ = _aZ._eZ;
_rW[0].id._cZ = _aZ._fZ;
_rW[1] = new _XZ();
_rW[1]._8h = this._Q01;
_rW[1].id._SX = 0;
_rW[1].id._TX = _i11.index;
_rW[1].id._bZ = _aZ._eZ;
_rW[1].id._cZ = _aZ._fZ;
_j11._fW = _i11.index;
_j11._gW = _j11._fW + 1 < this._L01._fg ? _j11._fW + 1 : 0;
_j11._Th._w2 = this._L01._2h[_j11._fW]._w2;
_j11._Th._x2 = this._L01._2h[_j11._fW]._x2;
_j11._Uh._w2 = this._L01._2h[_j11._gW]._w2;
_j11._Uh._x2 = this._L01._2h[_j11._gW]._x2;
_j11._tV._w2 = this._L01._o_[_j11._fW]._w2;
_j11._tV._x2 = this._L01._o_[_j11._fW]._x2
}
_j11._I01._w2 = _j11._tV._x2;
_j11._I01._x2 = -_j11._tV._w2;
_j11._J01._w2 = -_j11._I01._w2;
_j11._J01._x2 = -_j11._I01._x2;
_j11._g01 = _j11._I01._w2 * _j11._Th._w2 + _j11._I01._x2 * _j11._Th._x2;
_j11._h01 = _j11._J01._w2 * _j11._Uh._w2 + _j11._J01._x2 * _j11._Uh._x2;
var _i01 = new Array(2);
var _j01 = new Array(2);
var _k01;
_k01 = _l01(_i01,
_rW, _j11._I01._w2, _j11._I01._x2, _j11._g01, _j11._fW);
if (_k01 < _dS) {
return
}
_k01 = _l01(_j01, _i01, _j11._J01._w2, _j11._J01._x2, _j11._h01, _j11._gW);
if (_k01 < _dS) {
return
}
if (_i11.type == _C01._E01) {
_pZ._nZ._w2 = _j11._tV._w2;
_pZ._nZ._x2 = _j11._tV._x2;
_pZ._hZ._w2 = _j11._Th._w2;
_pZ._hZ._x2 = _j11._Th._x2
} else {
_pZ._nZ._w2 = _411._jW[_j11._fW]._w2;
_pZ._nZ._x2 = _411._jW[_j11._fW]._x2;
_pZ._hZ._w2 = _411._0W[_j11._fW]._w2;
_pZ._hZ._x2 = _411._0W[_j11._fW]._x2
}
var _oZ = 0;
for (var _u2 = 0; _u2 < _dS; ++_u2) {
var _n_ = _j11._tV._w2 * (_j01[_u2]._8h._w2 - _j11._Th._w2) + _j11._tV._x2 * (_j01[_u2]._8h._x2 - _j11._Th._x2);
if (_n_ <= this._gV) {
var _m01 = _pZ._mZ[_oZ] = new _gZ();
if (_i11.type == _C01._E01) {
_m01._hZ._0T(_fU(this._M01, _j01[_u2]._8h));
_m01.id._0T(_j01[_u2].id)
} else {
_m01._hZ._w2 = _j01[_u2]._8h._w2;
_m01._hZ._x2 = _j01[_u2]._8h._x2;
_m01.id._bZ = _j01[_u2].id._cZ;
_m01.id._cZ = _j01[_u2].id._bZ;
_m01.id._SX = _j01[_u2].id._TX;
_m01.id._TX = _j01[_u2].id._SX
}++_oZ
}
}
_pZ._oZ = _oZ
},
_d11: function() {
var _PU = new _C01();
_PU.type = _C01._E01;
_PU.index = this.__01 ? 0 : 1;
_PU._n_ = Number.MAX_VALUE;
for (var _u2 = 0; _u2 < this._L01._fg; ++_u2) {
var _ov = this._V01._w2 * (this._L01._2h[_u2]._w2 - this._P01._w2) + this._V01._x2 * (this._L01._2h[_u2]._x2 - this._P01._x2);
if (_ov < _PU._n_) {
_PU._n_ = _ov
}
}
return _PU
},
_f11: function() {
var _PU = new _C01();
_PU.type = _C01._D01;
_PU.index = -1;
_PU._n_ = -Number.MAX_VALUE;
var _k11 = -this._V01._x2;
var _l11 = this._V01._w2;
for (var _u2 = 0; _u2 < this._L01._fg; ++_u2) {
var _li = -this._L01._o_[_u2]._w2;
var _mi = -this._L01._o_[_u2]._x2;
var _Au = _li * (this._L01._2h[_u2]._w2 - this._P01._w2) + _mi * (this._L01._2h[_u2]._x2 - this._P01._x2);
var _Bu = _li * (this._L01._2h[_u2]._w2 - this._Q01._w2) + _mi * (this._L01._2h[_u2]._x2 - this._Q01._x2);
var _ov = _oU(_Au, _Bu);
if (_ov > this._gV) {
_PU.type = _C01._F01;
_PU.index = _u2;
_PU._n_ = _ov;
return _PU
}
if (_li * _k11 + _mi * _l11 >= 0.0) {
if ((_li - this._Z01._w2) * this._V01._w2 + (_mi - this._Z01._x2) * this._V01._x2 < -_iS) {
continue
}
} else {
if ((_li - this._Y01._w2) * this._V01._w2 + (_mi - this._Y01._x2) * this._V01._x2 < -_iS) {
continue
}
} if (_ov > _PU._n_) {
_PU.type = _C01._F01;
_PU.index = _u2;
_PU._n_ = _ov;
}
}
return _PU
}
};
_K01._m11 = 0;
_K01._n11 = 1;
_K01._o11 = 2;
function _p11(_pZ, _X_, _AZ, _411, _CZ) {
_p11._q11._311(_pZ, _X_, _AZ, _411, _CZ)
}
_p11._q11 = new _K01();
function _l01(_r11, _s11, _d01, _e01, _A2, _t11) {
var _u11 = 0;
var _v11 = (_d01 * _s11[0]._8h._w2 + _e01 * _s11[0]._8h._x2) - _A2;
var _w11 = (_d01 * _s11[1]._8h._w2 + _e01 * _s11[1]._8h._x2) - _A2;
if (_v11 <= 0.0) _r11[_u11++] = _s11[0];
if (_w11 <= 0.0) _r11[_u11++] = _s11[1];
if (_v11 * _w11 < 0.0) {
var _x11 = _v11 / (_v11 - _w11);
_r11[_u11] = new _XZ();
_r11[_u11]._8h._w2 = _s11[0]._8h._w2 + (_x11 * (_s11[1]._8h._w2 - _s11[0]._8h._w2));
_r11[_u11]._8h._x2 = _s11[0]._8h._x2 + (_x11 * (_s11[1]._8h._x2 - _s11[0]._8h._x2));
_r11[_u11].id._SX = _t11;
_r11[_u11].id._TX = _s11[0].id._TX;
_r11[_u11].id._bZ = _aZ._eZ;
_r11[_u11].id._cZ = _aZ._fZ;
++_u11
}
return _u11
}
function _y11(_z11, _SX, _A11, _TX, _AZ,
_CZ) {
_y11._ez._VX._Tn(_z11, _SX);
_y11._ez._WX._Tn(_A11, _TX);
_y11._ez._XX = _AZ;
_y11._ez._YX = _CZ;
_y11._ez._ZX = !0;
_y11._eg._fg = 0;
_TY(_y11._gz, _y11._eg, _y11._ez);
return _y11._gz._sV < 10.0 * _bS
}
_y11._ez = new _UX();
_y11._eg = new _QX();
_y11._gz = new __X();
function _pX(_Wg, _xf) {
return !((_xf._FV._w2 - _Wg._GV._w2) > 0.0 || (_xf._FV._x2 - _Wg._GV._x2) > 0.0 || (_Wg._FV._w2 - _xf._GV._w2) > 0.0 || (_Wg._FV._x2 - _xf._GV._x2) > 0.0);
}
var _B11 = -1;
function _C11() {
this._nV = new __Z();
this._cX = null;
this.parent = 0;
this._D11 = this._E11 = this.height = 0
}
_C11.prototype = {
_F11: function() {
return this._D11 == _B11
}
};
function _4X() {
this._G11 = _B11;
this._H11 = 16;
this._I11 = 0;
this._J11 = new Array(this._H11);
for (var _u2 = 0; _u2 < this._H11 - 1; ++_u2) {
this._J11[_u2] = new _C11();
this._J11[_u2].parent = _u2 + 1;
this._J11[_u2].height = -1
}
this._J11[this._H11 - 1] = new _C11();
this._J11[this._H11 - 1].parent = _B11;
this._J11[this._H11 - 1].height = -1;
this._K11 = 0;
this._L11 = 0;
this._M11 = 0
}
_4X._N11 = new _XS(_fS, _fS);
_4X.prototype = {
_bX: function(_nV, _cX) {
var _dX = this._O11();
this._J11[_dX]._nV._FV._0T(_XS._4T(_nV._FV, _4X._N11));
this._J11[_dX]._nV._GV._0T(_XS._yn(_nV._GV, _4X._N11));
this._J11[_dX]._cX = _cX;
this._J11[_dX].height = 0;
this._P11(_dX);
return _dX
},
_fX: function(_dX) {
_7S(0 <= _dX && _dX < this._H11);
_7S(this._J11[_dX]._F11());
this._Q11(_dX);
this._R11(_dX)
},
_hX: function(_dX, _nV, _iX) {
_7S(0 <= _dX && _dX < this._H11);
_7S(this._J11[_dX]._F11());
if (this._J11[_dX]._nV._8_(_nV)) {
return !1
}
this._Q11(_dX);
this._J11[_dX]._nV._0T(_nV);
this._J11[_dX]._nV._FV._4T(_4X._N11);
this._J11[_dX]._nV._GV._yn(_4X._N11);
var _Bp = _XS._9u(_gS, _iX);
if (_Bp._w2 < 0.0) {
this._J11[_dX]._nV._FV._w2 += _Bp._w2
} else {
this._J11[_dX]._nV._GV._w2 += _Bp._w2
} if (_Bp._x2 < 0.0) {
this._J11[_dX]._nV._FV._x2 += _Bp._x2
} else {
this._J11[_dX]._nV._GV._x2 += _Bp._x2
}
this._P11(_dX);
return !0
},
_lX: function(_dX) {
_7S(0 <= _dX && _dX < this._H11);
return this._J11[_dX]._cX
},
_kX: function(_dX) {
_7S(0 <= _dX && _dX < this._H11);
return this._J11[_dX]._nV
},
_vX: function(_sX, _nV) {
var _go = [];
_go.push(this._G11);
while (_go.length > 0) {
var _S11 = _go.pop();
if (_S11 == _B11) {
continue
}
var _6O = this._J11[_S11];
if (_pX(_6O._nV, _nV)) {
if (_6O._F11()) {
var _T11 = _sX._JX(_S11);
if (_T11 == !1) {
return
}
} else {
_go.push(_6O._D11);
_go.push(_6O._E11)
}
}
}
},
_kV: function(_sX, _ez) {
var _RU = _ez._RU;
var _SU = _ez._SU;
var _uf = _XS._4T(_SU, _RU);
_7S(_uf._6T() > 0.0);
_uf._7T();
var _8h = __T(1.0, _uf);
var _U11 = _mU(_8h);
var _DV = _ez._DV;
var _V11 = new __Z(); {
var _wf = _XS._yn(_RU, _XS._9u(_DV, _XS._4T(_SU, _RU)));
_V11._FV._0T(_pU(_RU, _wf));
_V11._GV._0T(_rU(_RU, _wf))
}
var _go = [];
_go.push(this._G11);
while (_go.length > 0) {
var _S11 = _go.pop();
if (_S11 == _B11) {
continue
}
var _6O = this._J11[_S11];
if (_pX(_6O._nV, _V11) == !1) {
continue
}
var _v2 = _6O._nV._2_();
var _z2 = _6O._nV._3_();
var _n_ = _lU(_XT(_8h, _XS._4T(_RU, _v2))) - _XT(_U11, _z2);
if (_n_ > 0.0) {
continue
}
if (_6O._F11()) {
var _W11 = new _YZ();
_W11._RU._0T(_ez._RU);
_W11._SU._0T(_ez._SU);
_W11._DV = _DV;
var value = _sX._X11(_W11, _S11);
if (value == 0.0) {
return
}
if (value > 0.0) {
_DV = value;
var _wf = _XS._yn(_RU, _XS._9u(_DV, _XS._4T(_SU, _RU)));
_V11._FV._0T(_pU(_RU, _wf));
_V11._GV._0T(_rU(_RU, _wf))
}
} else {
_go.push(_6O._D11);
_go.push(_6O._E11)
}
}
},
_NW: function() {
this._Y11(this._G11);
this._Z11(this._G11);
var __11 = 0;
var _021 = this._K11;
while (_021 != _B11) {
_7S(0 <= _021 && _021 < this._H11);
_021 = this._J11[_021].parent;
++__11
}
_7S(this._CX() == this._121());
_7S(this._I11 + __11 == this._H11)
},
_CX: function() {
if (this._G11 == _B11) {
return 0
}
return this._J11[this._G11].height
},
_EX: function() {
var _221 = 0;
for (var _u2 = 0; _u2 < this._H11; ++_u2) {
var _6O = this._J11[_u2];
if (_6O.height <= 1) {
continue
}
_7S(_6O._F11() == !1);
var _D11 = _6O._D11;
var _E11 = _6O._E11;
var _321 = _lU(this._J11[_E11].height - this._J11[_D11].height);
_221 = _qU(_221, _321)
}
return _221
},
_GX: function() {
if (this._G11 == _B11) {
return 0.0
}
var _fe = this._J11[this._G11];
var _421 = _fe._nV._4_();
var _521 = 0.0;
for (var _u2 = 0; _u2 < this._H11; ++_u2) {
var _6O = this._J11[_u2];
if (_6O.height < 0) {
continue
}
_521 += _6O._nV._4_()
}
return _521 / _421
},
_621: function() {
var _721 = new Array(this._I11);
var _fg = 0;
for (var _u2 = 0; _u2 < this._H11; ++_u2) {
if (this._J11[_u2].height < 0) {
continue
}
if (this._J11[_u2]._F11()) {
this._J11[_u2].parent = _B11;
_721[_fg] = _u2;
++_fg
} else {
this._R11(_u2)
}
}
while (_fg > 1) {
var _821 = _aS;
var _921 = -1,
_a21 = -1;
for (_u2 = 0; _u2 < _fg; ++_u2) {
var _b21 = this._J11[_721[_u2]]._nV;
for (var _Bf = _u2 + 1; _Bf < _fg; ++_Bf) {
var _c21 = this._J11[_721[_Bf]]._nV;
var _xf = new __Z();
_xf._5_(_b21, _c21);
var _d21 = _xf._4_();
if (_d21 < _821) {
_921 = _u2;
_a21 = _Bf;
_821 = _d21
}
}
}
var _e21 = _721[_921];
var _f21 = _721[_a21];
var _D11 = this._J11[_e21];
var _E11 = this._J11[_f21];
var _g21 = this._O11();
var parent = this._J11[_g21];
parent._D11 = _e21;
parent._E11 = _f21;
parent.height = 1 + _qU(_D11.height, _E11.height);
parent._nV._5_(_D11._nV, _E11._nV);
parent.parent = _B11;
_D11.parent = _g21;
_E11.parent = _g21;
_721[_a21] = _721[_fg - 1];
_721[_921] = _g21;
--_fg
}
this._G11 = _721[0];
this._NW()
},
_HX: function(_IX) {
for (var _u2 = 0; _u2 < this._H11; ++_u2) {
this._J11[_u2]._nV._FV._4T(_IX);
this._J11[_u2]._nV._GV._4T(_IX);
}
},
_O11: function() {
if (this._K11 == _B11) {
_7S(this._I11 == this._H11);
var _h21 = this._J11;
this._H11 *= 2;
this._J11 = _h21.concat(new Array(this._H11 - this._I11));
for (var _u2 = this._I11; _u2 < this._H11 - 1; ++_u2) {
this._J11[_u2] = new _C11();
this._J11[_u2].parent = _u2 + 1;
this._J11[_u2].height = -1
}
this._J11[this._H11 - 1] = new _C11();
this._J11[this._H11 - 1].parent = _B11;
this._J11[this._H11 - 1].height = -1;
this._K11 = this._I11
}
var _S11 = this._K11;
this._K11 = this._J11[_S11].parent;
this._J11[_S11].parent = _B11;
this._J11[_S11]._D11 = _B11;
this._J11[_S11]._E11 = _B11;
this._J11[_S11].height = 0;
this._J11[_S11]._cX = null;
++this._I11;
return _S11
},
_R11: function(_S11) {
_7S(0 <= _S11 && _S11 < this._H11);
_7S(0 < this._I11);
this._J11[_S11].parent = this._K11;
this._J11[_S11].height = -1;
this._K11 = _S11;
--this._I11
},
_P11: function(_i21) {
++this._M11;
if (this._G11 == _B11) {
this._G11 = _i21;
this._J11[this._G11].parent = _B11;
return
}
var _j21 = this._J11[_i21]._nV;
var index = this._G11;
while (this._J11[index]._F11() == !1) {
var _D11 = this._J11[index]._D11;
var _E11 = this._J11[index]._E11;
var _BW = this._J11[index]._nV._4_();
var _k21 = new __Z();
_k21._5_(this._J11[index]._nV, _j21);
var _l21 = _k21._4_();
var _d21 = 2.0 * _l21;
var _m21 = 2.0 * (_l21 - _BW);
var _n21;
var _nV;
if (this._J11[_D11]._F11()) {
_nV = new __Z();
_nV._5_(_j21, this._J11[_D11]._nV);
_n21 = _nV._4_() + _m21
} else {
_nV = new __Z();
_nV._5_(_j21, this._J11[_D11]._nV);
var _o21 = this._J11[_D11]._nV._4_();
var _p21 = _nV._4_();
_n21 = (_p21 - _o21) + _m21
}
var _q21;
if (this._J11[_E11]._F11()) {
_nV = new __Z();
_nV._5_(_j21, this._J11[_E11]._nV);
_q21 = _nV._4_() + _m21
} else {
_nV = new __Z();
_nV._5_(_j21, this._J11[_E11]._nV);
var _o21 = this._J11[_E11]._nV._4_();
var _p21 = _nV._4_();
_q21 = _p21 - _o21 + _m21
} if (_d21 < _n21 && _d21 < _q21) {
break
}
if (_n21 < _q21) {
index = _D11
} else {
index = _E11
}
}
var _r21 = index;
var _s21 = this._J11[_r21].parent;
var _t21 = this._O11();
this._J11[_t21].parent = _s21;
this._J11[_t21]._cX = null;
this._J11[_t21]._nV._5_(_j21, this._J11[_r21]._nV);
this._J11[_t21].height = this._J11[_r21].height + 1;
if (_s21 != _B11) {
if (this._J11[_s21]._D11 == _r21) {
this._J11[_s21]._D11 = _t21
} else {
this._J11[_s21]._E11 = _t21
}
this._J11[_t21]._D11 = _r21;
this._J11[_t21]._E11 = _i21;
this._J11[_r21].parent = _t21;
this._J11[_i21].parent = _t21
} else {
this._J11[_t21]._D11 = _r21;
this._J11[_t21]._E11 = _i21;
this._J11[_r21].parent = _t21;
this._J11[_i21].parent = _t21;
this._G11 = _t21;
}
index = this._J11[_i21].parent;
while (index != _B11) {
index = this._u21(index);
var _D11 = this._J11[index]._D11;
var _E11 = this._J11[index]._E11;
_7S(_D11 != _B11);
_7S(_E11 != _B11);
this._J11[index].height = 1 + _qU(this._J11[_D11].height, this._J11[_E11].height);
this._J11[index]._nV._5_(this._J11[_D11]._nV, this._J11[_E11]._nV);
index = this._J11[index].parent
}
},
_Q11: function(_i21) {
if (_i21 == this._G11) {
this._G11 = _B11;
return
}
var parent = this._J11[_i21].parent;
var _v21 = this._J11[parent].parent;
var _r21;
if (this._J11[parent]._D11 == _i21) {
_r21 = this._J11[parent]._E11
} else {
_r21 = this._J11[parent]._D11
} if (_v21 != _B11) {
if (this._J11[_v21]._D11 == parent) {
this._J11[_v21]._D11 = _r21
} else {
this._J11[_v21]._E11 = _r21
}
this._J11[_r21].parent = _v21;
this._R11(parent);
var index = _v21;
while (index != _B11) {
index = this._u21(index);
var _D11 = this._J11[index]._D11;
var _E11 = this._J11[index]._E11;
this._J11[index]._nV._5_(this._J11[_D11]._nV, this._J11[_E11]._nV);
this._J11[index].height = 1 + _qU(this._J11[_D11].height, this._J11[_E11].height);
index = this._J11[index].parent
}
} else {
this._G11 = _r21;
this._J11[_r21].parent = _B11;
this._R11(parent)
}
},
_u21: function(_w21) {
_7S(_w21 != _B11);
var _8S = this._J11[_w21];
if (_8S._F11() || _8S.height < 2) {
return _w21
}
var _x21 = _8S._D11;
var _y21 = _8S._E11;
_7S(0 <= _x21 && _x21 < this._H11);
_7S(0 <= _y21 && _y21 < this._H11);
var _nT = this._J11[_x21];
var _hU = this._J11[_y21];
var _321 = _hU.height - _nT.height;
if (_321 > 1) {
var _z21 = _hU._D11;
var _A21 = _hU._E11;
var _B21 = this._J11[_z21];
var _C21 = this._J11[_A21];
_7S(0 <= _z21 && _z21 < this._H11);
_7S(0 <= _A21 && _A21 < this._H11);
_hU._D11 = _w21;
_hU.parent = _8S.parent;
_8S.parent = _y21;
if (_hU.parent != _B11) {
if (this._J11[_hU.parent]._D11 == _w21) {
this._J11[_hU.parent]._D11 = _y21;
} else {
_7S(this._J11[_hU.parent]._E11 == _w21);
this._J11[_hU.parent]._E11 = _y21
}
} else {
this._G11 = _y21
} if (_B21.height > _C21.height) {
_hU._E11 = _z21;
_8S._E11 = _A21;
_C21.parent = _w21;
_8S._nV._5_(_nT._nV, _C21._nV);
_hU._nV._5_(_8S._nV, _B21._nV);
_8S.height = 1 + _qU(_nT.height, _C21.height);
_hU.height = 1 + _qU(_8S.height, _B21.height)
} else {
_hU._E11 = _A21;
_8S._E11 = _z21;
_B21.parent = _w21;
_8S._nV._5_(_nT._nV, _B21._nV);
_hU._nV._5_(_8S._nV, _C21._nV);
_8S.height = 1 + _qU(_nT.height, _B21.height);
_hU.height = 1 + _qU(_8S.height, _C21.height)
}
return _y21;
}
if (_321 < -1) {
var _D21 = _nT._D11;
var _E21 = _nT._E11;
var _FW = this._J11[_D21];
var _F21 = this._J11[_E21];
_7S(0 <= _D21 && _D21 < this._H11);
_7S(0 <= _E21 && _E21 < this._H11);
_nT._D11 = _w21;
_nT.parent = _8S.parent;
_8S.parent = _x21;
if (_nT.parent != _B11) {
if (this._J11[_nT.parent]._D11 == _w21) {
this._J11[_nT.parent]._D11 = _x21
} else {
_7S(this._J11[_nT.parent]._E11 == _w21);
this._J11[_nT.parent]._E11 = _x21
}
} else {
this._G11 = _x21
} if (_FW.height > _F21.height) {
_nT._E11 = _D21;
_8S._D11 = _E21;
_F21.parent = _w21;
_8S._nV._5_(_hU._nV, _F21._nV);
_nT._nV._5_(_8S._nV, _FW._nV);
_8S.height = 1 + _qU(_hU.height,
_F21.height);
_nT.height = 1 + _qU(_8S.height, _FW.height)
} else {
_nT._E11 = _E21;
_8S._D11 = _D21;
_FW.parent = _w21;
_8S._nV._5_(_hU._nV, _FW._nV);
_nT._nV._5_(_8S._nV, _F21._nV);
_8S.height = 1 + _qU(_hU.height, _FW.height);
_nT.height = 1 + _qU(_8S.height, _F21.height)
}
return _x21
}
return _w21
},
_121: function(_S11) {
if (typeof(_S11) === 'undefined') _S11 = this._G11;
_7S(0 <= _S11 && _S11 < this._H11);
var _6O = this._J11[_S11];
if (_6O._F11()) {
return 0
}
var _G21 = this._121(_6O._D11);
var _H21 = this._121(_6O._E11);
return 1 + _qU(_G21, _H21)
},
_Y11: function(index) {
if (index == _B11) {
return
}
if (index == this._G11) {
_7S(this._J11[index].parent == _B11)
}
var _6O = this._J11[index];
var _D11 = _6O._D11;
var _E11 = _6O._E11;
if (_6O._F11()) {
_7S(_D11 == _B11);
_7S(_E11 == _B11);
_7S(_6O.height == 0);
return
}
_7S(0 <= _D11 && _D11 < this._H11);
_7S(0 <= _E11 && _E11 < this._H11);
_7S(this._J11[_D11].parent == index);
_7S(this._J11[_E11].parent == index);
this._Y11(_D11);
this._Y11(_E11)
},
_Z11: function(index) {
if (index == _B11) {
return
}
var _6O = this._J11[index];
var _D11 = _6O._D11;
var _E11 = _6O._E11;
if (_6O._F11()) {
_7S(_D11 == _B11);
_7S(_E11 == _B11);
_7S(_6O.height == 0);
return
}
_7S(0 <= _D11 && _D11 < this._H11);
_7S(0 <= _E11 && _E11 < this._H11);
var _G21 = this._J11[_D11].height;
var _H21 = this._J11[_E11].height;
var height;
height = 1 + _qU(_G21, _H21);
_7S(_6O.height == height);
var _nV = new __Z();
_nV._5_(this._J11[_D11]._nV, this._J11[_E11]._nV);
_7S(_XS._eT(_nV._FV, _6O._nV._FV));
_7S(_XS._eT(_nV._GV, _6O._nV._GV));
this._Z11(_D11);
this._Z11(_E11)
}
};
function _I21() {
this._VX = new _KX();
this._WX = new _KX();
this._J21 = new _NT();
this._K21 = new _NT();
this._L21 = 0
};
function _M21() {
this._cF = 0;
this._wf = 0
};
_M21._D01 = 0;
_M21._N21 = 1;
_M21._O21 = 2;
_M21._P21 = 3;
_M21._Q21 = 4;
function _R21() {
this._S21 = null;
this._T21 = null;
this._U21 = null;
this._V21 = null;
this._fV = 0;
this._W21 = new _XS();
this._X21 = new _XS()
}
var _Y21 = new _LT();
var _Z21 = new _LT();
_R21.prototype = {
_zZ: function(_eg, _VX, _J21, _WX, _K21, _d_) {
this._S21 = _VX;
this._T21 = _WX;
var _fg = _eg._fg;
_7S(0 < _fg && _fg < 3);
this._U21 = _J21;
this._V21 = _K21;
this._U21._TT(_Y21, _d_);
this._V21._TT(_Z21, _d_);
if (_fg == 1) {
this._fV = _R21.__21;
var _031 = this._S21._KV(_eg._SX[0]);
var _131 = this._T21._KV(_eg._TX[0]);
var _EZ = (_Y21._rz._v2 * _031._w2 - _Y21._rz._ov * _031._x2) + _Y21._yA._w2;
var _FZ = (_Y21._rz._ov * _031._w2 + _Y21._rz._v2 * _031._x2) + _Y21._yA._x2;
var _GZ = (_Z21._rz._v2 * _131._w2 - _Z21._rz._ov * _131._x2) + _Z21._yA._w2;
var _HZ = (_Z21._rz._ov * _131._w2 + _Z21._rz._v2 * _131._x2) + _Z21._yA._x2;
this._X21._w2 = _GZ - _EZ;
this._X21._x2 = _HZ - _FZ;
var _ov = this._X21._7T();
return _ov
} else if (_eg._SX[0] == _eg._SX[1]) {
this._fV = _R21._sZ;
var _231 = _WX._KV(_eg._TX[0]);
var _331 = _WX._KV(_eg._TX[1]);
this._X21._w2 = 1.0 * (_331._x2 - _231._x2);
this._X21._x2 = -1.0 * (_331._w2 - _231._w2);
this._X21._7T();
var _d01 = _Z21._rz._v2 * this._X21._w2 - _Z21._rz._ov * this._X21._x2;
var _e01 = _Z21._rz._ov * this._X21._w2 + _Z21._rz._v2 * this._X21._x2;
this._W21._w2 = 0.5 * (_231._w2 + _331._w2);
this._W21._x2 = 0.5 * (_231._x2 + _331._x2);
var _GZ = (_Z21._rz._v2 * this._W21._w2 - _Z21._rz._ov * this._W21._x2) + _Z21._yA._w2;
var _HZ = (_Z21._rz._ov * this._W21._w2 + _Z21._rz._v2 * this._W21._x2) + _Z21._yA._x2;
var _031 = _VX._KV(_eg._SX[0]);
var _EZ = (_Y21._rz._v2 * _031._w2 - _Y21._rz._ov * _031._x2) + _Y21._yA._w2;
var _FZ = (_Y21._rz._ov * _031._w2 + _Y21._rz._v2 * _031._x2) + _Y21._yA._x2;
var _ov = (_EZ - _GZ) * _d01 + (_FZ - _HZ) * _e01;
if (_ov < 0.0) {
this._X21._w2 = -this._X21._w2;
this._X21._x2 = -this._X21._x2;
_ov = -_ov
}
return _ov
} else {
this._fV = _R21._rZ;
var _431 = this._S21._KV(_eg._SX[0]);
var _531 = this._S21._KV(_eg._SX[1]);
this._X21._w2 = 1.0 * (_531._x2 - _431._x2);
this._X21._x2 = -1.0 * (_531._w2 - _431._w2);
this._X21._7T();
var _d01 = _Y21._rz._v2 * this._X21._w2 - _Y21._rz._ov * this._X21._x2;
var _e01 = _Y21._rz._ov * this._X21._w2 + _Y21._rz._v2 * this._X21._x2;
this._W21._w2 = 0.5 * (_431._w2 + _531._w2);
this._W21._x2 = 0.5 * (_431._x2 + _531._x2);
var _EZ = (_Y21._rz._v2 * this._W21._w2 - _Y21._rz._ov * this._W21._x2) + _Y21._yA._w2;
var _FZ = (_Y21._rz._ov * this._W21._w2 + _Y21._rz._v2 * this._W21._x2) + _Y21._yA._x2;
var _131 = this._T21._KV(_eg._TX[0]);
var _GZ = (_Z21._rz._v2 * _131._w2 - _Z21._rz._ov * _131._x2) + _Z21._yA._w2;
var _HZ = (_Z21._rz._ov * _131._w2 + _Z21._rz._v2 * _131._x2) + _Z21._yA._x2;
var _ov = (_GZ - _EZ) * _d01 + (_HZ - _FZ) * _e01;
if (_ov < 0.0) {
this._X21._w2 = -this._X21._w2;
this._X21._x2 = -this._X21._x2;
_ov = -_ov
}
return _ov
}
},
_631: function(_731, _wf) {
this._U21._TT(_Y21, _wf);
this._V21._TT(_Z21, _wf);
switch (this._fV) {
case _R21.__21:
{
var _831 = _Y21._rz._v2 * this._X21._w2 + _Y21._rz._ov * this._X21._x2;
var _931 = -_Y21._rz._ov * this._X21._w2 + _Y21._rz._v2 * this._X21._x2;
var _a31 = _Z21._rz._v2 * -this._X21._w2 + _Z21._rz._ov * -this._X21._x2;
var _b31 = -_Z21._rz._ov * -this._X21._w2 + _Z21._rz._v2 * -this._X21._x2;
_731[0] = this._S21._HV(_831, _931);
_731[1] = this._T21._HV(_a31, _b31);
var _031 = this._S21._KV(_731[0]);
var _131 = this._T21._KV(_731[1]);
var _EZ = (_Y21._rz._v2 * _031._w2 - _Y21._rz._ov * _031._x2) + _Y21._yA._w2;
var _FZ = (_Y21._rz._ov * _031._w2 + _Y21._rz._v2 * _031._x2) + _Y21._yA._x2;
var _GZ = (_Z21._rz._v2 * _131._w2 - _Z21._rz._ov * _131._x2) + _Z21._yA._w2;
var _HZ = (_Z21._rz._ov * _131._w2 + _Z21._rz._v2 * _131._x2) + _Z21._yA._x2;
return (_GZ - _EZ) * this._X21._w2 + (_HZ - _FZ) * this._X21._x2
}
case _R21._rZ:
{
var _d01 = _Y21._rz._v2 * this._X21._w2 - _Y21._rz._ov * this._X21._x2;
var _e01 = _Y21._rz._ov * this._X21._w2 + _Y21._rz._v2 * this._X21._x2;
var _EZ = (_Y21._rz._v2 * this._W21._w2 - _Y21._rz._ov * this._W21._x2) + _Y21._yA._w2;
var _FZ = (_Y21._rz._ov * this._W21._w2 + _Y21._rz._v2 * this._W21._x2) + _Y21._yA._x2;
var _a31 = _Z21._rz._v2 * -_d01 + _Z21._rz._ov * -_e01;
var _b31 = -_Z21._rz._ov * -_d01 + _Z21._rz._v2 * -_e01;
_731[0] = -1;
_731[1] = this._T21._HV(_a31, _b31);
var _131 = this._T21._KV(_731[1]);
var _GZ = (_Z21._rz._v2 * _131._w2 - _Z21._rz._ov * _131._x2) + _Z21._yA._w2;
var _HZ = (_Z21._rz._ov * _131._w2 + _Z21._rz._v2 * _131._x2) + _Z21._yA._x2;
return (_GZ - _EZ) * _d01 + (_HZ - _FZ) * _e01
}
case _R21._sZ:
{
var _d01 = _Z21._rz._v2 * this._X21._w2 - _Z21._rz._ov * this._X21._x2;
var _e01 = _Z21._rz._ov * this._X21._w2 + _Z21._rz._v2 * this._X21._x2;
var _GZ = (_Z21._rz._v2 * this._W21._w2 - _Z21._rz._ov * this._W21._x2) + _Z21._yA._w2;
var _HZ = (_Z21._rz._ov * this._W21._w2 + _Z21._rz._v2 * this._W21._x2) + _Z21._yA._x2;
var _831 = _Y21._rz._v2 * -_d01 + _Y21._rz._ov * -_e01;
var _b31 = -_Y21._rz._ov * -_d01 + _Y21._rz._v2 * -_e01;
_731[1] = -1;
_731[0] = this._S21._HV(_831, _b31);
var _031 = this._S21._KV(_731[0]);
var _EZ = (_Y21._rz._v2 * _031._w2 - _Y21._rz._ov * _031._x2) + _Y21._yA._w2;
var _FZ = (_Y21._rz._ov * _031._w2 + _Y21._rz._v2 * _031._x2) + _Y21._yA._x2;
return (_EZ - _GZ) * _d01 + (_FZ - _HZ) * _e01;
}
default:
_7S(!1);
_731[0] = -1;
_731[1] = -1;
return 0.0
}
},
_c31: function(_SX, _TX, _wf) {
this._U21._TT(_Y21, _wf);
this._V21._TT(_Z21, _wf);
switch (this._fV) {
case _R21.__21:
{
var _031 = this._S21._KV(_SX);
var _131 = this._T21._KV(_TX);
var _EZ = (_Y21._rz._v2 * _031._w2 - _Y21._rz._ov * _031._x2) + _Y21._yA._w2;
var _FZ = (_Y21._rz._ov * _031._w2 + _Y21._rz._v2 * _031._x2) + _Y21._yA._x2;
var _GZ = (_Z21._rz._v2 * _131._w2 - _Z21._rz._ov * _131._x2) + _Z21._yA._w2;
var _HZ = (_Z21._rz._ov * _131._w2 + _Z21._rz._v2 * _131._x2) + _Z21._yA._x2;
var _n_ = (_GZ - _EZ) * this._X21._w2 + (_HZ - _FZ) * this._X21._x2;
return _n_;
}
case _R21._rZ:
{
var _d01 = _Y21._rz._v2 * this._X21._w2 - _Y21._rz._ov * this._X21._x2;
var _e01 = _Y21._rz._ov * this._X21._w2 + _Y21._rz._v2 * this._X21._x2;
var _EZ = (_Y21._rz._v2 * this._W21._w2 - _Y21._rz._ov * this._W21._x2) + _Y21._yA._w2;
var _FZ = (_Y21._rz._ov * this._W21._w2 + _Y21._rz._v2 * this._W21._x2) + _Y21._yA._x2;
var _131 = this._T21._KV(_TX);
var _GZ = (_Z21._rz._v2 * _131._w2 - _Z21._rz._ov * _131._x2) + _Z21._yA._w2;
var _HZ = (_Z21._rz._ov * _131._w2 + _Z21._rz._v2 * _131._x2) + _Z21._yA._x2;
var _n_ = (_GZ - _EZ) * _d01 + (_HZ - _FZ) * _e01;
return _n_
}
case _R21._sZ:
{
var _d01 = _Z21._rz._v2 * this._X21._w2 - _Z21._rz._ov * this._X21._x2;
var _e01 = _Z21._rz._ov * this._X21._w2 + _Z21._rz._v2 * this._X21._x2;
var _GZ = (_Z21._rz._v2 * this._W21._w2 - _Z21._rz._ov * this._W21._x2) + _Z21._yA._w2;
var _HZ = (_Z21._rz._ov * this._W21._w2 + _Z21._rz._v2 * this._W21._x2) + _Z21._yA._x2;
var _031 = this._S21._KV(_SX);
var _EZ = (_Y21._rz._v2 * _031._w2 - _Y21._rz._ov * _031._x2) + _Y21._yA._w2;
var _FZ = (_Y21._rz._ov * _031._w2 + _Y21._rz._v2 * _031._x2) + _Y21._yA._x2;
var _n_ = (_EZ - _GZ) * _d01 + (_FZ - _HZ) * _e01;
return _n_
}
default:
_7S(!1);
return 0.0
}
}
};
_R21.__21 = 0;
_R21._rZ = 1;
_R21._sZ = 2;
var _d31 = _OR._0S("toi", "solveTOI");
function _e31(_gz, _ez) {
_d31.start();
++_e31._f31;
_gz._cF = _M21._D01;
_gz._wf = _ez._L21;
var _VX = _ez._VX;
var _WX = _ez._WX;
_e31._g31._0T(_ez._J21);
_e31._h31._0T(_ez._K21);
_e31._g31._7T();
_e31._h31._7T();
var _L21 = _ez._L21;
var _W_ = _VX._gV + _WX._gV;
var target = _qU(_hS, _W_ - 3.0 * _hS);
var _i31 = 0.25 * _hS;
_7S(target > _i31);
var _d_ = 0.0;
var _j31 = 20;
var _0Z = 0;
var _eg = new _QX();
_eg._fg = 0;
var _k31 = new _UX();
_k31._VX._0T(_ez._VX);
_k31._WX._0T(_ez._WX);
_k31._ZX = !1;
for (;;) {
_e31._g31._TT(_k31._XX, _d_);
_e31._h31._TT(_k31._YX, _d_);
var _l31 = new __X();
_TY(_l31, _eg, _k31);
if (_l31._sV <= 0.0) {
_gz._cF = _M21._O21;
_gz._wf = 0.0;
break
}
if (_l31._sV < target + _i31) {
_gz._cF = _M21._P21;
_gz._wf = _d_;
break
}
var _m31 = new _R21();
_m31._zZ(_eg, _VX, _e31._g31, _WX, _e31._h31, _d_);
var _n31 = !1;
var _e_ = _L21;
var _o31 = 0;
for (;;) {
var _731 = [];
var _Bu = _m31._631(_731, _e_);
if (_Bu > target + _i31) {
_gz._cF = _M21._Q21;
_gz._wf = _L21;
_n31 = !0;
break
}
if (_Bu > target - _i31) {
_d_ = _e_;
break
}
var _Au = _m31._c31(_731[0], _731[1], _d_);
if (_Au < target - _i31) {
_gz._cF = _M21._N21;
_gz._wf = _d_;
_n31 = !0;
break
}
if (_Au <= target + _i31) {
_gz._cF = _M21._P21;
_gz._wf = _d_;
_n31 = !0;
break
}
var _p31 = 0;
var _xN = _d_,
_yN = _e_;
for (;;) {
var _wf;
if (_p31 & 1) {
_wf = _xN + (target - _Au) * (_yN - _xN) / (_Bu - _Au)
} else {
_wf = 0.5 * (_xN + _yN)
}++_p31;
++_e31._q31;
var _ov = _m31._c31(_731[0], _731[1], _wf);
if (_lU(_ov - target) < _i31) {
_e_ = _wf;
break
}
if (_ov > target) {
_xN = _wf;
_Au = _ov
} else {
_yN = _wf;
_Bu = _ov
} if (_p31 == 50) {
break
}
}
_e31._r31 = _qU(_e31._r31, _p31);
++_o31;
if (_o31 == _eS) {
break
}
}++_0Z;
++_e31._s31;
if (_n31) {
break
}
if (_0Z == _j31) {
_gz._cF = _M21._N21;
_gz._wf = _d_;
break
}
}
_e31._t31 = _qU(_e31._t31, _0Z);
_d31.stop();
_e31._u31 = _qU(_e31._u31, _d31._UR);
_e31._v31 += _d31._UR
}
_e31._g31 = new _NT();
_e31._h31 = new _NT();
_e31._v31 = 0;
_e31._u31 = 0;
_e31._f31 = 0;
_e31._s31 = 0;
_e31._t31 = 0;
_e31._q31 = 0;
_e31._r31 = 0;
function _w31() {
this.type = _x31._y31;
this.position = new _XS(0.0, 0.0);
this._Cg = 0.0;
this._z31 = new _XS(0.0, 0.0);
this._A31 = 0.0;
this._B31 = 0.0;
this._C31 = 0.0;
this._D31 = !0;
this._E31 = !0;
this._F31 = !1;
this._G31 = !1;
this._lE = !0;
this._cX = null;
this._H31 = 1.0;
Object.seal(this)
}
_w31.prototype = {
_dT: function(data) {
this.type = data['type'];
this.position._dT(data['position']);
this._Cg = data['angle'];
this._z31._dT(data['linearVelocity']);
this._A31 = data['angularVelocity'];
this._B31 = data['linearDamping'];
this._C31 = data['angularDamping'];
this._D31 = data['allowSleep'];
this._E31 = data['awake'];
this._F31 = data['fixedRotation'];
this._G31 = data['bullet'];
this._lE = data['active'];
this._H31 = data['gravityScale']
}
};
function _x31(_I31, _J31) {
_7S(_I31.position._9T());
_7S(_I31._z31._9T());
_7S(_NS(_I31._Cg));
_7S(_NS(_I31._A31));
_7S(_NS(_I31._C31) && _I31._C31 >= 0.0);
_7S(_NS(_I31._B31) && _I31._B31 >= 0.0);
this._K31 = 0;
this._L31 = 0;
if (_I31._G31) {
this._L31 |= _x31._M31
}
if (_I31._F31) {
this._L31 |= _x31._N31
}
if (_I31._D31) {
this._L31 |= _x31._O31
}
if (_I31._E31) {
this._L31 |= _x31._P31
}
if (_I31._lE) {
this._L31 |= _x31._Q31
}
this._R31 = _J31;
this._M01 = new _LT();
this._M01._yA._0T(_I31.position);
this._M01._rz._Tn(_I31._Cg);
this._S31 = new _LT();
this._S31._0T(this._M01);
this._T31 = new _NT();
this._T31._OT._YS();
this._T31._PT._0T(this._M01._yA);
this._T31._v2._0T(this._M01._yA);
this._T31._RT = _I31._Cg;
this._T31._Wg = _I31._Cg;
this._T31._ST = 0.0;
this._U31 = null;
this._V31 = null;
this._W31 = null;
this._X31 = null;
this._Y31 = _I31._z31._4e();
this._Z31 = _I31._A31;
this.__31 = _I31._B31;
this._041 = _I31._C31;
this._141 = _I31._H31;
this._241 = new _XS();
this._341 = 0.0;
this._441 = 0.0;
this._fV = _I31.type;
if (this._fV == _x31._541) {
this._641 = 1.0;
this._741 = 1.0
} else {
this._641 = 0.0;
this._741 = 0.0
}
this._841 = 0.0;
this._941 = 0.0;
this._a41 = _I31._cX;
this._b41 = null;
this._c41 = 0
}
_x31._y31 = 0;
_x31._d41 = 1;
_x31._541 = 2;
_x31._e41 = 0x0001;
_x31._P31 = 0x0002;
_x31._O31 = 0x0004;
_x31._M31 = 0x0008;
_x31._N31 = 0x0010;
_x31._Q31 = 0x0020;
_x31._f41 = 0x0040;
_x31._g41 = new _XS();
_x31._h41 = new _LT();
_x31.prototype = {
_i41: function(_j41, _qV) {
if (typeof(_qV) !== 'undefined') {
var _k41 = new _l41();
_k41._BV = _j41;
_k41._qV = _qV;
return this._i41(_k41)
}
_7S(this._R31._m41() == !1);
if (this._R31._m41() == !0) {
return null
}
var _cI = new _n41();
_cI._o41(this, _j41);
if (this._L31 & _x31._Q31) {
var _p41 = this._R31._q41._r41;
_cI._s41(_p41, this._M01)
}
_cI._X31 = this._b41;
this._b41 = _cI;
++this._c41;
_cI._t41 = this;
if (_cI._u41 > 0.0) {
this._v41()
}
this._R31._L31 |= _w41._x41;
return _cI
},
_y41: function(_cI) {
_7S(this._R31._m41() == !1);
if (this._R31._m41() == !0) {
return
}
_7S(_cI._t41 == this);
_7S(this._c41 > 0);
var _6O = this._b41;
var _z41 = !1;
while (_6O != null) {
if (_6O == _cI) {
this._b41 = _6O = _cI._X31;
_z41 = !0;
break
}
_6O = _6O._X31
}
_7S(_z41);
var _eW = this._V31;
while (_eW) {
var _v2 = _eW._A41;
_eW = _eW._Yn;
var _B41 = _v2._C41();
var _D41 = _v2._E41();
if (_cI == _B41 || _cI == _D41) {
this._R31._q41._F41(_v2)
}
}
if (this._L31 & _x31._Q31) {
var _p41 = this._R31._q41._r41;
_cI._G41(_p41)
}
_cI._F41();
_cI._t41 = null;
_cI._X31 = null;
--this._c41;
this._v41()
},
_H41: function(position, _Cg) {
_7S(this._R31._m41() == !1);
if (this._R31._m41() == !0) {
return
}
this._M01._rz._Tn(_Cg);
this._M01._yA._0T(position);
this._S31._0T(this._M01);
this._T31._v2._0T(_dU(this._M01, this._T31._OT));
this._T31._Wg = _Cg;
this._T31._PT._0T(this._T31._v2);
this._T31._RT = _Cg;
var _p41 = this._R31._q41._r41;
for (var _1w = this._b41; _1w; _1w = _1w._X31) {
_1w._I41(_p41, this._M01, this._M01)
}
},
_TT: function() {
return this._M01
},
_2I: function() {
return this._M01._yA
},
_IT: function() {
return this._T31._Wg
},
_J41: function() {
return this._T31._v2
},
_K41: function() {
return this._T31._OT
},
_L41: function(_8h) {
if (this._fV == _x31._y31) {
return
}
if (_XT(_8h, _8h) > 0.0) {
this._AI(!0)
}
this._Y31 = _8h
},
_M41: function() {
return this._Y31
},
_N41: function(_y2) {
if (this._fV == _x31._y31) {
return
}
if (_y2 * _y2 > 0.0) {
this._AI(!0)
}
this._Z31 = _y2
},
_O41: function() {
return this._Z31
},
_P41: function(_Q41, _kZ, _R41) {
if (this._fV != _x31._541) {
return
}
if (_R41 && (this._L31 & _x31._P31) == 0) {
this._AI(!0)
}
if (this._L31 & _x31._P31) {
this._241._yn(_Q41);
this._341 += _YT(_XS._4T(_kZ, this._T31._v2), _Q41)
}
},
_S41: function(_Q41, _R41) {
if (this._fV != _x31._541) {
return
}
if (_R41 && (this._L31 & _x31._P31) == 0) {
this._AI(!0)
}
if (this._L31 & _x31._P31) {
this._241._yn(_Q41)
}
},
_T41: function(_U41, _R41) {
if (this._fV != _x31._541) {
return
}
if (_R41 && (this._L31 & _x31._P31) == 0) {
this._AI(!0)
}
if (this._L31 & _x31._P31) {
this._341 += _U41
}
},
_V41: function(_W41, _kZ, _R41) {
if (this._fV != _x31._541) {
return
}
if (_R41 && (this._L31 & _x31._P31) == 0) {
this._AI(!0)
}
if (this._L31 & _x31._P31) {
this._Y31._yn(_XS._9u(this._741, _W41));
this._Z31 += this._941 * _YT(_XS._4T(_kZ, this._T31._v2), _W41)
}
},
_X41: function(_W41, _R41) {
if (this._fV != _x31._541) {
return
}
if (_R41 && (this._L31 & _x31._P31) == 0) {
this._AI(!0)
}
if (this._L31 & _x31._P31) {
this._Z31 += this._941 * _W41
}
},
_Y41: function() {
return this._641
},
_Z41: function() {
return this._841 + this._641 * _XT(this._T31._OT, this._T31._OT)
},
__41: function(data) {
data._cV = this._641;
data._dV = this._841 + this._641 * _XT(this._T31._OT, this._T31._OT);
data._MU = this._T31._OT
},
_051: function(_pV) {
_7S(this._R31._m41() == !1);
if (this._R31._m41() == !0) {
return
}
if (this._fV != _x31._541) {
return
}
this._741 = 0.0;
this._841 = 0.0;
this._941 = 0.0;
this._641 = _pV._cV;
if (this._641 <= 0.0) {
this._641 = 1.0
}
this._741 = 1.0 / this._641;
if (_pV._dV > 0.0 && (this._L31 & _x31._N31) == 0) {
this._841 = _pV._dV - this._641 * _XT(_pV._MU, _pV._MU);
_7S(this._841 > 0.0);
this._941 = 1.0 / this._841
}
_x31._g41._0T(this._T31._v2);
this._T31._OT._0T(_pV._MU);
this._T31._PT._0T(_dU(this._M01, this._T31._OT));
this._T31._v2._0T(this._T31._PT);
this._Y31._yn(__T(this._Z31,
_XS._4T(this._T31._v2, _x31._g41)))
},
_v41: function() {
this._641 = 0.0;
this._741 = 0.0;
this._841 = 0.0;
this._941 = 0.0;
this._T31._OT._YS();
if (this._fV == _x31._y31 || this._fV == _x31._d41) {
this._T31._PT._0T(this._M01._yA);
this._T31._v2._0T(this._M01._yA);
this._T31._RT = this._T31._Wg;
return
}
_7S(this._fV == _x31._541);
var _OT = new _XS(0, 0);
for (var _1w = this._b41; _1w; _1w = _1w._X31) {
if (_1w._u41 == 0.0) {
continue
}
var _pV = new _bV();
_1w.__41(_pV);
this._641 += _pV._cV;
_OT._yn(_XS._9u(_pV._cV, _pV._MU));
this._841 += _pV._dV
}
if (this._641 > 0.0) {
this._741 = 1.0 / this._641;
_OT._9u(this._741)
} else {
this._641 = 1.0;
this._741 = 1.0
} if (this._841 > 0.0 && (this._L31 & _x31._N31) == 0) {
this._841 -= this._641 * _XT(_OT, _OT);
_7S(this._841 > 0.0);
this._941 = 1.0 / this._841
} else {
this._841 = 0.0;
this._941 = 0.0
}
_x31._g41._0T(this._T31._v2);
this._T31._OT._0T(_OT);
this._T31._PT._0T(_dU(this._M01, this._T31._OT));
this._T31._v2._0T(this._T31._PT);
this._Y31._yn(__T(this._Z31, _XS._4T(this._T31._v2, _x31._g41)))
},
_151: function(_hZ) {
return _dU(this._M01, _hZ)
},
_251: function(_351) {
return _bU(this._M01._rz,
_351)
},
_451: function(_551) {
return _fU(this._M01, _551)
},
_651: function(_751) {
return _cU(this._M01._rz, _751)
},
_851: function(_551) {
return _XS._yn(this._Y31, __T(this._Z31, _XS._4T(_551, this._T31._v2)))
},
_951: function(_hZ) {
return this._851(this._151(_hZ))
},
_a51: function() {
return this.__31
},
_vI: function(_B31) {
this.__31 = _B31
},
_b51: function() {
return this._041
},
_xI: function(_C31) {
this._041 = _C31
},
_c51: function() {
return this._141
},
_d51: function(scale) {
this._141 = scale
},
_e51: function(type) {
_7S(this._R31._m41() == !1);
if (this._R31._m41() == !0) {
return
}
if (this._fV == type) {
return
}
this._fV = type;
this._v41();
if (this._fV == _x31._y31) {
this._Y31._YS();
this._Z31 = 0.0;
this._T31._RT = this._T31._Wg;
this._T31._PT._0T(this._T31._v2);
this._f51()
}
this._AI(!0);
this._241._YS();
this._341 = 0.0;
var _g51 = this._V31;
while (_g51) {
var _h51 = _g51;
_g51 = _g51._Yn;
this._R31._q41._F41(_h51._A41)
}
this._V31 = null;
var _p41 = this._R31._q41._r41;
for (var _1w = this._b41; _1w; _1w = _1w._X31) {
var _i51 = _1w._6X;
for (var _u2 = 0; _u2 < _i51; ++_u2) {
_p41._jX(_1w._j51[_u2]._dX)
}
}
},
_hV: function() {
return this._fV;
},
_k51: function(_l51) {
if (_l51) {
this._L31 |= _x31._M31
} else {
this._L31 &= ~_x31._M31
}
},
_m51: function() {
return (this._L31 & _x31._M31) == _x31._M31
},
_n51: function(_l51) {
if (_l51) {
this._L31 |= _x31._O31
} else {
this._L31 &= ~_x31._O31;
this._AI(!0)
}
},
_o51: function() {
return (this._L31 & _x31._O31) == _x31._O31
},
_AI: function(_l51) {
if (_l51) {
if ((this._L31 & _x31._P31) == 0) {
this._L31 |= _x31._P31;
this._441 = 0.0
}
} else {
this._L31 &= ~_x31._P31;
this._441 = 0.0;
this._Y31._YS();
this._Z31 = 0.0;
this._241._YS();
this._341 = 0.0
}
},
_p51: function() {
return (this._L31 & _x31._P31) == _x31._P31
},
_q51: function(_l51) {
_7S(this._R31._m41() == !1);
if (_l51 == this._r51()) {
return
}
if (_l51) {
this._L31 |= _x31._Q31;
var _p41 = this._R31._q41._r41;
for (var _1w = this._b41; _1w; _1w = _1w._X31) {
_1w._s41(_p41, this._M01)
}
} else {
this._L31 &= ~_x31._Q31;
var _p41 = this._R31._q41._r41;
for (var _1w = this._b41; _1w; _1w = _1w._X31) {
_1w._G41(_p41)
}
var _g51 = this._V31;
while (_g51) {
var _h51 = _g51;
_g51 = _g51._Yn;
this._R31._q41._F41(_h51._A41)
}
this._V31 = null
}
},
_r51: function() {
return (this._L31 & _x31._Q31) == _x31._Q31;
},
_s51: function(_l51) {
var status = (this._L31 & _x31._N31) == _x31._N31;
if (status == _l51) {
return
}
if (_l51) {
this._L31 |= _x31._N31
} else {
this._L31 &= ~_x31._N31
}
this._Z31 = 0.0;
this._v41()
},
_t51: function() {
return (this._L31 & _x31._N31) == _x31._N31
},
_u51: function() {
return this._b41
},
_v51: function() {
return this._U31
},
_w51: function() {
return this._V31
},
_x51: function() {
return this._X31
},
_lX: function() {
return this._a41
},
_y51: function(data) {
this._a41 = data
},
_z51: function() {
return this._R31
},
_f51: function() {
_x31._h41._rz._Tn(this._T31._RT);
_x31._h41._yA._0T(_XS._4T(this._T31._PT, _bU(_x31._h41._rz,
this._T31._OT)));
var _p41 = this._R31._q41._r41;
for (var _1w = this._b41; _1w; _1w = _1w._X31) {
_1w._I41(_p41, _x31._h41, this._M01)
}
},
_A51: function() {
this._M01._rz._Tn(this._T31._Wg);
this._M01._yA._0T(_XS._4T(this._T31._v2, _bU(this._M01._rz, this._T31._OT)))
},
_B51: function(_0_) {
if (this._fV != _x31._541 && _0_._fV != _x31._541) {
return !1
}
for (var _C51 = this._U31; _C51; _C51 = _C51._Yn) {
if (_C51._0_ == _0_) {
if (_C51._D51._E51 == !1) {
return !1
}
}
}
return !0
},
_VT: function(alpha) {
this._T31._VT(alpha);
this._T31._v2._0T(this._T31._PT);
this._T31._Wg = this._T31._RT;
this._M01._rz._Tn(this._T31._Wg);
this._M01._yA._0T(_XS._4T(this._T31._v2, _bU(this._M01._rz, this._T31._OT)))
},
_bT: function(_cT) {
var _Nw = _cT || {};
_Nw['fixtures'] = null;
_Nw['type'] = this._fV;
_Nw['position'] = this._2I()._bT();
_Nw['angle'] = this._IT();
_Nw['linearVelocity'] = this._M41()._bT();
_Nw['angularVelocity'] = this._O41();
_Nw['linearDamping'] = this._a51();
_Nw['angularDamping'] = this._b51();
_Nw['allowSleep'] = this._o51();
_Nw['awake'] = this._p51();
_Nw['fixedRotation'] = this._t51();
_Nw['bullet'] = this._m51();
_Nw['active'] = this._r51();
_Nw['gravityScale'] = this._c51();
return _Nw
}
};
function _F51() {
this._G51 = 0x0001;
this._H51 = 0xFFFF;
this._I51 = 0
}
_F51.prototype = {
_4e: function() {
var _J51 = new _F51();
_J51._G51 = this._G51;
_J51._H51 = this._H51;
_J51._I51 = this._I51;
return _J51
},
_0T: function(_J51) {
this._G51 = _J51._G51;
this._H51 = _J51._H51;
this._I51 = _J51._I51
},
_bT: function(_cT) {
var _Nw = _cT || {};
_Nw['categoryBits'] = this._G51;
_Nw['maskBits'] = this._H51;
_Nw['groupIndex'] = this._I51;
return _Nw
},
_dT: function(data) {
this._G51 = data['categoryBits'];
this._H51 = data['maskBits'];
this._I51 = data['groupIndex']
}
};
function _l41() {
this._BV = null;
this._cX = null;
this._K51 = 0.2;
this._L51 = 0.0;
this._qV = 0.0;
this._M51 = !1;
this._J51 = new _F51();
Object.seal(this)
}
_l41.prototype = {
_dT: function(data) {
this._K51 = data['friction'];
this._L51 = data['restitution'];
this._qV = data['density'];
this._M51 = data['isSensor'];
this._J51._dT(data['filter'])
}
};
function _N51() {
this._nV = new __Z();
this._cI = null;
this._lV = 0;
this._dX = 0
};
function _n41() {
this._a41 = null;
this._t41 = null;
this._X31 = null;
this._j51 = null;
this._6X = 0;
this._O51 = null;
this._u41 = 0.0;
this._P51 = new _F51();
this._Q51 = !1;
this._R51 = 0;
this._S51 = 0
}
_n41.prototype = {
_hV: function() {
return this._O51._hV()
},
_T51: function() {
return this._O51
},
_sI: function(_U51) {
if (_U51 != this._Q51) {
this._t41._AI(!0);
this._Q51 = _U51
}
},
_V51: function() {
return this._Q51
},
_W51: function(_J51) {
this._P51 = _J51;
this._X51()
},
_Y51: function() {
return this._P51
},
_X51: function() {
if (this._t41 == null) {
return
}
var _eW = this._t41._w51();
while (_eW) {
var _A41 = _eW._A41;
var _B41 = _A41._C41();
var _D41 = _A41._E41();
if (_B41 == this || _D41 == this) {
_A41._Z51()
}
_eW = _eW._Yn
}
var _J31 = this._t41._z51();
if (_J31 == null) {
return
}
var _p41 = _J31._q41._r41;
for (var _u2 = 0; _u2 < this._6X; ++_u2) {
_p41._jX(this._j51[_u2]._dX)
}
},
__51: function() {
return this._t41
},
_x51: function() {
return this._X31
},
_lX: function() {
return this._a41
},
_y51: function(data) {
this._a41 = data
},
_jV: function(_yA) {
return this._O51._jV(this._t41._TT(), _yA)
},
_kV: function(_gz, _ez, _lV) {
return this._O51._kV(_gz, _ez, this._t41._TT(), _lV)
},
__41: function(_pV) {
this._O51._oV(_pV, this._u41)
},
_gI: function(_qV) {
_7S(_NS(_qV) && _qV >= 0.0);
this._u41 = _qV
},
_061: function() {
return this._u41
},
_161: function() {
return this._R51
},
_mI: function(_K51) {
this._R51 = _K51
},
_261: function() {
return this._S51
},
_jI: function(_L51) {
this._S51 = _L51
},
_361: function(_lV) {
_7S(0 <= _lV && _lV < this._6X);
return this._j51[_lV]._nV
},
_o41: function(body, _j41) {
this._a41 = _j41._cX;
this._R51 = _j41._K51;
this._S51 = _j41._L51;
this._t41 = body;
this._X31 = null;
this._P51._0T(_j41._J51);
this._Q51 = _j41._M51;
this._O51 = _j41._BV._4e();
var _461 = this._O51._iV();
this._j51 = new Array(_461);
for (var _u2 = 0; _u2 < _461; ++_u2) {
this._j51[_u2] = new _N51();
this._j51[_u2]._cI = null;
this._j51[_u2]._dX = _2X._tX
}
this._6X = 0;
this._u41 = _j41._qV
},
_F41: function() {
_7S(this._6X == 0);
this._j51 = null;
this._O51 = null
},
_s41: function(_p41, _MT) {
_7S(this._6X == 0);
this._6X = this._O51._iV();
for (var _u2 = 0; _u2 < this._6X; ++_u2) {
var _561 = this._j51[_u2];
this._O51._mV(_561._nV, _MT, _u2);
_561._dX = _p41._bX(_561._nV, _561);
_561._cI = this;
_561._lV = _u2
}
},
_G41: function(_p41) {
for (var _u2 = 0; _u2 < this._6X; ++_u2) {
var _561 = this._j51[_u2];
_p41._fX(_561._dX);
_561._dX = _2X._tX
}
this._6X = 0
},
_I41: function(_p41, _661, _761) {
if (this._6X == 0) {
return
}
for (var _u2 = 0; _u2 < this._6X; ++_u2) {
var _561 = this._j51[_u2];
var _6_ = new __Z(),
_7_ = new __Z();
this._O51._mV(_6_, _661, _561._lV);
this._O51._mV(_7_, _761, _561._lV);
_561._nV._5_(_6_, _7_);
var _iX = _XS._4T(_761._yA, _661._yA);
_p41._hX(_561._dX, _561._nV, _iX)
}
},
_rV: function(_yA, _Bp, _df, _lV) {
this._O51._rV(this._t41._TT(), _yA, _Bp, _df, _lV)
},
_bT: function(_cT) {
var _Nw = _cT || {};
_Nw['shape'] = null;
_Nw['friction'] = this._R51;
_Nw['restitution'] = this._S51;
_Nw['density'] = this._u41;
_Nw['isSensor'] = this._Q51;
_Nw['filter'] = this._P51._bT();
return _Nw
}
};
function _861() {}
_861.prototype = {
_961: function(_D51) {},
_a61: function(_cI) {},
_b61: function(_aL) {},
_c61: function(index) {}
};
function _d61() {}
_d61.prototype = {
_B51: function(_B41, _D41) {
var _e61 = _B41._Y51();
var _f61 = _D41._Y51();
if (_e61._I51 == _f61._I51 && _e61._I51 != 0) {
return _e61._I51 > 0
}
var _g61 = (_e61._H51 & _f61._G51) != 0 && (_e61._G51 & _f61._H51) != 0;
return _g61
}
};
function _h61() {
this._i61 = new Array(_dS);
this._j61 = new Array(_dS);
this._fg = 0
}
function _k61() {}
_k61.prototype = {
_l61: function(_A41) {},
_m61: function(_A41) {},
_n61: function(_A41, _o61) {},
_p61: function(_A41, _W41) {}
};
function _q61() {}
_q61.prototype = {
_r61: function(_cI) {
return !1
},
_s61: function(index) {
return !1
}
};
function _t61() {}
_t61.prototype = {
_r61: function(_cI, _kZ, _tV, _EV) {},
_s61: function(index, _kZ, _tV, _EV) {
return 0
}
};
function _u61() {
this._v61 = 0;
this._w61 = 0;
this._x61 = 0;
this._y61 = 0;
this._z61 = 0;
this._A61 = !1
}
function _B61() {
this._v2 = new _XS();
this._Wg = 0
}
function _C61() {
this._8h = new _XS();
this._y2 = 0
}
function _D61() {
this._JR = new _u61();
this._E61 = null;
this._F61 = null
}
var _G61 = _OR._0S("step");
var _H61 = _OR._0S("collide", "step");
var _I61 = _OR._0S("solve", "step");
var _J61 = _OR._0S("solveTOI", "step");
var _K61 = _OR._0S("broadphase", "step");
function _w41(_sb) {
this._q41 = new _L61();
this._M61 = null;
this._N61 = null;
this._O61 = null;
this._U31 = null;
this._P61 = 0;
this._Q61 = 0;
this._R61 = !0;
this._S61 = !0;
this._T61 = !1;
this._U61 = !0;
this._V61 = !0;
this._W61 = _sb;
this._L31 = _w41._X61;
this._Y61 = 0.0;
this._Z61 = new _u61();
this.__61 = new _071();
this._171 = new _271();
this._171._R31 = this
}
function _371() {
this._p41 = null;
this._sX = null
}
_371.prototype = {
_JX: function(_dX) {
var _561 = this._p41._lX(_dX);
return this._sX._r61(_561._cI)
}
};
function _471() {
this._p41 = null;
this._sX = null
}
_471.prototype = {
_X11: function(_ez, _dX) {
var _cX = this._p41._lX(_dX);
var _561 = _cX;
var _cI = _561._cI;
var index = _561._lV;
var _gz = new _ZZ();
var _lf = _cI._kV(_gz, _ez, index);
if (_lf) {
var _EV = _gz._EV;
var _kZ = _XS._yn(_XS._9u((1.0 - _EV), _ez._RU), _XS._9u(_EV, _ez._SU));
return this._sX._r61(_cI, _kZ, _gz._tV, _EV)
}
return _ez._DV
}
};
_w41._571 = new _NT();
_w41._671 = new _NT();
_w41._771 = new _NT();
_w41.prototype = {
_F41: function() {
var _xf = this._O61;
while (_xf) {
var _871 = _xf._X31;
var _1w = _xf._b41;
while (_1w) {
var _971 = _1w._X31;
_1w._6X = 0;
_1w._F41();
_1w = _971
}
_xf = _871
}
},
_a71: function(listener) {
this._M61 = listener
},
_b71: function(_J51) {
this._q41._c71 = _J51
},
_d71: function(listener) {
this._q41._e71 = listener;
},
_f71: function(_g71) {
this._N61 = _g71
},
_SI: function(_j41) {
_7S(this._m41() == !1);
if (this._m41()) {
return null
}
var _xf = new _x31(_j41, this);
_xf._W31 = null;
_xf._X31 = this._O61;
if (this._O61) {
this._O61._W31 = _xf
}
this._O61 = _xf;
++this._P61;
return _xf
},
_h71: function(_xf) {
_7S(this._P61 > 0);
_7S(this._m41() == !1);
if (this._m41()) {
return
}
var _i71 = _xf._U31;
while (_i71) {
var _j71 = _i71;
_i71 = _i71._Yn;
if (this._M61) {
this._M61._961(_j71._D51)
}
this._k71(_j71._D51);
_xf._U31 = _i71
}
_xf._U31 = null;
var _g51 = _xf._V31;
while (_g51) {
var _h51 = _g51;
_g51 = _g51._Yn;
this._q41._F41(_h51._A41)
}
_xf._V31 = null;
var _1w = _xf._b41;
while (_1w) {
var _l71 = _1w;
_1w = _1w._X31;
if (this._M61) {
this._M61._a61(_l71)
}
_l71._G41(this._q41._r41);
_l71._F41();
_xf._b41 = _1w;
_xf._c41 -= 1
}
_xf._b41 = null;
_xf._c41 = 0;
if (_xf._W31) {
_xf._W31._X31 = _xf._X31
}
if (_xf._X31) {
_xf._X31._W31 = _xf._W31
}
if (_xf == this._O61) {
this._O61 = _xf._X31
}
_xf._m71 = !0;
--this._P61
},
_n71: function(_j41) {
_7S(this._m41() == !1);
if (this._m41()) {
return null
}
var _Bf = _o71._o41(_j41);
_Bf._W31 = null;
_Bf._X31 = this._U31;
if (this._U31) {
this._U31._W31 = _Bf
}
this._U31 = _Bf;
++this._Q61;
_Bf._p71._D51 = _Bf;
_Bf._p71._0_ = _Bf._q71;
_Bf._p71._r71 = null;
_Bf._p71._Yn = _Bf._s71._U31;
if (_Bf._s71._U31) _Bf._s71._U31._r71 = _Bf._p71;
_Bf._s71._U31 = _Bf._p71;
_Bf._t71._D51 = _Bf;
_Bf._t71._0_ = _Bf._s71;
_Bf._t71._r71 = null;
_Bf._t71._Yn = _Bf._q71._U31;
if (_Bf._q71._U31) _Bf._q71._U31._r71 = _Bf._t71;
_Bf._q71._U31 = _Bf._t71;
var _u71 = _j41._u71;
var _v71 = _j41._v71;
if (_j41._w71 == !1) {
var _eW = _v71._w51();
while (_eW) {
if (_eW._0_ == _u71) {
_eW._A41._Z51()
}
_eW = _eW._Yn;
}
}
return _Bf
},
_k71: function(_Bf) {
_7S(this._m41() == !1);
if (this._m41()) {
return
}
var _w71 = _Bf._E51;
if (_Bf._W31) {
_Bf._W31._X31 = _Bf._X31
}
if (_Bf._X31) {
_Bf._X31._W31 = _Bf._W31
}
if (_Bf == this._U31) {
this._U31 = _Bf._X31
}
var _u71 = _Bf._s71;
var _v71 = _Bf._q71;
_u71._AI(!0);
_v71._AI(!0);
if (_Bf._p71._r71) {
_Bf._p71._r71._Yn = _Bf._p71._Yn
}
if (_Bf._p71._Yn) {
_Bf._p71._Yn._r71 = _Bf._p71._r71
}
if (_Bf._p71 == _u71._U31) {
_u71._U31 = _Bf._p71._Yn
}
_Bf._p71._r71 = null;
_Bf._p71._Yn = null;
if (_Bf._t71._r71) {
_Bf._t71._r71._Yn = _Bf._t71._Yn;
}
if (_Bf._t71._Yn) {
_Bf._t71._Yn._r71 = _Bf._t71._r71
}
if (_Bf._t71 == _v71._U31) {
_v71._U31 = _Bf._t71._Yn
}
_Bf._t71._r71 = null;
_Bf._t71._Yn = null;
_o71._F41(_Bf);
_7S(this._Q61 > 0);
--this._Q61;
if (_w71 == !1) {
var _eW = _v71._w51();
while (_eW) {
if (_eW._0_ == _u71) {
_eW._A41._Z51()
}
_eW = _eW._Yn
}
}
},
_x71: function(_v61, _y61, _z61) {
_G61.start();
if (this._L31 & _w41._x41) {
this._q41._y71();
this._L31 &= ~_w41._x41
}
this._L31 |= _w41._z71;
this._Z61._v61 = _v61;
this._Z61._y61 = _y61;
this._Z61._z61 = _z61;
if (_v61 > 0.0) {
this._Z61._w61 = 1.0 / _v61;
} else {
this._Z61._w61 = 0.0
}
this._Z61._x61 = this._Y61 * _v61;
this._Z61._A61 = this._R61; {
_H61.start();
this._q41._311();
_H61.stop()
}
if (this._U61 && this._Z61._v61 > 0.0) {
_I61.start();
this._171._pT(this._Z61);
this._pT(this._Z61);
_I61.stop()
}
if (this._S61 && this._Z61._v61 > 0.0) {
_J61.start();
this._A71(this._Z61);
_J61.stop()
}
if (this._Z61._v61 > 0.0) {
this._Y61 = this._Z61._w61
}
if (this._L31 & _w41._X61) {
this._B71()
}
this._L31 &= ~_w41._z71;
_G61.stop()
},
_B71: function() {
for (var body = this._O61; body; body = body._x51()) {
body._241._w2 = body._241._x2 = 0;
body._341 = 0.0
}
},
_C71: function() {
if (this._N61 == null) {
return
}
var _VP = this._N61._EU();
if (_VP & _BU._XU) {
for (var _xf = this._O61; _xf; _xf = _xf._x51()) {
var _MT = _xf._TT();
for (var _1w = _xf._u51(); _1w; _1w = _1w._x51()) {
if (_xf._r51() == !1) {
this._D71(_1w, _MT, new _AU(0.5, 0.5, 0.3))
} else if (_xf._hV() == _x31._y31) {
this._D71(_1w, _MT, new _AU(0.5, 0.9, 0.5))
} else if (_xf._hV() == _x31._d41) {
this._D71(_1w, _MT, new _AU(0.5, 0.5, 0.9))
} else if (_xf._p51() == !1) {
this._D71(_1w, _MT, new _AU(0.6, 0.6, 0.6))
} else {
this._D71(_1w, _MT, new _AU(0.9, 0.7, 0.7))
}
}
}
this._E71(this._171)
}
if (_VP & _BU._YU) {
for (var _Bf = this._U31; _Bf; _Bf = _Bf._x51()) {
this._F71(_Bf)
}
}
if (_VP & _BU._6V) {
var _Ng = new _AU(0.3, 0.9, 0.9);
for (var _v2 = this._q41._V31; _v2; _v2 = _v2._x51()) {
var _B41 = _v2._C41();
var _D41 = _v2._E41();
var _G71 = _B41._361(_v2._H71())._2_();
var _I71 = _D41._361(_v2._J71())._2_();
this._N61._QU(_G71, _I71, _Ng)
}
}
if (_VP & _BU._ZU) {
var _Ng = new _AU(0.9, 0.3, 0.9);
var _K71 = new _AU(0.3, 0.3, 0.9);
var _L71 = this._q41._r41;
for (var _xf = this._O61; _xf; _xf = _xf._x51()) {
if (_xf._r51() == !1) {
continue
}
for (var _1w = _xf._u51(); _1w; _1w = _1w._x51()) {
for (var _u2 = 0; _u2 < _1w._6X; ++_u2) {
var _561 = _1w._j51[_u2];
var _nV = _L71._kX(_561._dX);
var _TW = [];
_TW[0] = new _XS(_nV._FV._w2, _nV._FV._x2);
_TW[1] = new _XS(_nV._GV._w2, _nV._FV._x2);
_TW[2] = new _XS(_nV._GV._w2,
_nV._GV._x2);
_TW[3] = new _XS(_nV._FV._w2, _nV._GV._x2);
this._N61._IU(_TW, 4, _Ng);
var _M71 = new __Z();
_1w._T51()._mV(_M71, _xf._TT(), 0);
var _TW = [];
_TW[0] = new _XS(_M71._FV._w2, _M71._FV._x2);
_TW[1] = new _XS(_M71._GV._w2, _M71._FV._x2);
_TW[2] = new _XS(_M71._GV._w2, _M71._GV._x2);
_TW[3] = new _XS(_M71._FV._w2, _M71._GV._x2);
this._N61._IU(_TW, 4, _K71);
}
}
}
}
if (_VP & _BU.__U) {
for (var _xf = this._O61; _xf; _xf = _xf._x51()) {
var _MT = _xf._TT()._4e();
_MT._yA = _xf._J41();
this._N61._TU(_MT)
}
}
},
_N71: function(_sX, _nV) {
var _O71 = new _371();
_O71._p41 = this._q41._r41;
_O71._sX = _sX;
this._q41._r41._vX(_O71, _nV);
this._171._N71(_sX, _nV)
},
_kV: function(_sX, _P71, _Q71) {
var _O71 = new _471();
_O71._p41 = this._q41._r41;
_O71._sX = _sX;
var _ez = new _YZ();
_ez._DV = 1.0;
_ez._RU = _P71;
_ez._SU = _Q71;
this._q41._r41._kV(_O71, _ez);
this._171._kV(_sX, _P71, _Q71)
},
_R71: function() {
return this._O61
},
_v51: function() {
return this._U31
},
_w51: function() {
return this._q41._V31
},
_S71: function(_l51) {
if (_l51 == this._V61) {
return
}
this._V61 = _l51;
if (this._V61 == !1) {
for (var _xf = this._O61; _xf; _xf = _xf._X31) {
_xf._AI(!0)
}
}
},
_T71: function() {
return this._V61
},
_U71: function(_l51) {
this._R61 = _l51
},
_V71: function() {
return this._R61
},
_W71: function(_l51) {
this._S61 = _l51
},
_X71: function() {
return this._S61
},
_Y71: function(_l51) {
this._T61 = _l51
},
_Z71: function() {
return this._T61
},
_qX: function() {
return this._q41._r41._qX()
},
__71: function() {
return this._P61
},
_081: function() {
return this._Q61
},
_181: function() {
return this._q41._281
},
_BX: function() {
return this._q41._r41._BX()
},
_DX: function() {
return this._q41._r41._DX()
},
_FX: function() {
return this._q41._r41._FX()
},
_381: function(_sb) {
this._W61 = _sb
},
_481: function() {
return this._W61
},
_m41: function() {
return (this._L31 & _w41._z71) == _w41._z71
},
_581: function(_l51) {
if (_l51) {
this._L31 |= _w41._X61
} else {
this._L31 &= ~_w41._X61
}
},
_681: function() {
return (this._L31 & _w41._X61) == _w41._X61
},
_HX: function(_IX) {
_7S((this._L31 & _w41._z71) == 0);
if ((this._L31 & _w41._z71) == _w41._z71) {
return
}
for (var _xf = this._O61; _xf; _xf = _xf._X31) {
_xf._M01._yA._4T(_IX);
_xf._T31._PT._4T(_IX);
_xf._T31._v2._4T(_IX)
}
for (var _Bf = this._U31; _Bf; _Bf = _Bf._X31) {
_Bf._HX(_IX)
}
this._q41._r41._HX(_IX)
},
_781: function() {
return this._q41
},
_pT: function(_JR) {
for (var _xf = this._O61; _xf; _xf = _xf._X31) {
_xf._S31._0T(_xf._M01)
}
this.__61._zZ(this._P61, this._q41._281, this._Q61, this._q41._e71);
for (var _xf = this._O61; _xf; _xf = _xf._X31) {
_xf._L31 &= ~_x31._e41
}
for (var _v2 = this._q41._V31; _v2; _v2 = _v2._X31) {
_v2._L31 &= ~_881._e41
}
for (var _Bf = this._U31; _Bf; _Bf = _Bf._X31) {
_Bf._981 = !1
}
var _a81 = this._P61;
var _go = new Array(_a81);
for (var _b81 = this._O61; _b81; _b81 = _b81._X31) {
if (_b81._L31 & _x31._e41) {
continue
}
if (_b81._p51() == !1 || _b81._r51() == !1) {
continue
}
if (_b81._hV() == _x31._y31) {
continue
}
this.__61._am();
var _c81 = 0;
_go[_c81++] = _b81;
_b81._L31 |= _x31._e41;
while (_c81 > 0) {
var _xf = _go[--_c81];
_7S(_xf._r51() == !0);
this.__61._d81(_xf);
_xf._AI(!0);
if (_xf._hV() == _x31._y31) {
continue
}
for (var _g51 = _xf._V31; _g51; _g51 = _g51._Yn) {
var _A41 = _g51._A41;
if (_A41._L31 & _881._e41) {
continue
}
if (_A41._e81() == !1 || _A41._f81() == !1) {
continue
}
var _g81 = _A41._h81._Q51;
var _i81 = _A41._j81._Q51;
if (_g81 || _i81) {
continue
}
this.__61._k81(_A41);
_A41._L31 |= _881._e41;
var _0_ = _g51._0_;
if (_0_._L31 & _x31._e41) {
continue
}
_7S(_c81 < _a81);
_go[_c81++] = _0_;
_0_._L31 |= _x31._e41
}
for (var _i71 = _xf._U31; _i71; _i71 = _i71._Yn) {
if (_i71._D51._981 == !0) {
continue
}
var _0_ = _i71._0_;
if (_0_._r51() == !1) {
continue
}
this.__61._l81(_i71._D51);
_i71._D51._981 = !0;
if (_0_._L31 & _x31._e41) {
continue
}
_7S(_c81 < _a81);
_go[_c81++] = _0_;
_0_._L31 |= _x31._e41
}
}
this.__61._pT(_JR, this._W61, this._V61);
for (var _u2 = 0; _u2 < this.__61._P61; ++_u2) {
var _xf = this.__61._m81[_u2];
if (_xf._hV() == _x31._y31) {
_xf._L31 &= ~_x31._e41
}
}
} {
_K61.start();
for (var _xf = this._O61; _xf; _xf = _xf._x51()) {
if ((_xf._L31 & _x31._e41) == 0) {
continue
}
if (_xf._hV() == _x31._y31) {
continue
}
_xf._f51()
}
this._q41._y71();
_K61.stop()
}
},
_A71: function(_JR) {
this.__61._zZ(2 * _lS, _lS, 0, this._q41._e71);
if (this._U61) {
for (var _xf = this._O61; _xf; _xf = _xf._X31) {
_xf._L31 &= ~_x31._e41;
_xf._T31._ST = 0.0
}
for (var _v2 = this._q41._V31; _v2; _v2 = _v2._X31) {
_v2._L31 &= ~(_881._f41 | _881._e41);
_v2._n81 = 0;
_v2._o81 = 1.0
}
}
for (;;) {
var _p81 = null;
var _q81 = 1.0;
for (var _v2 = this._q41._V31; _v2; _v2 = _v2._X31) {
if (_v2._e81() == !1) {
continue
}
if (_v2._n81 > _kS) {
continue
}
var alpha = 1.0;
if (_v2._L31 & _881._f41) {
alpha = _v2._o81
} else {
var _r81 = _v2._C41();
var _s81 = _v2._E41();
if (_r81._V51() || _s81._V51()) {
continue
}
var _t81 = _r81.__51();
var _u81 = _s81.__51();
var _bZ = _t81._fV;
var _cZ = _u81._fV;
_7S(_bZ == _x31._541 || _cZ == _x31._541);
var _v81 = _t81._p51() && _bZ != _x31._y31;
var _w81 = _u81._p51() && _cZ != _x31._y31;
if (_v81 == !1 && _w81 == !1) {
continue
}
var _x81 = _t81._m51() || _bZ != _x31._541;
var _y81 = _u81._m51() || _cZ != _x31._541;
if (_x81 == !1 && _y81 == !1) {
continue
}
var _ST = _t81._T31._ST;
if (_t81._T31._ST < _u81._T31._ST) {
_ST = _u81._T31._ST;
_t81._T31._VT(_ST)
} else if (_u81._T31._ST < _t81._T31._ST) {
_ST = _t81._T31._ST;
_u81._T31._VT(_ST)
}
_7S(_ST < 1.0);
var _SX = _v2._H71();
var _TX = _v2._J71();
var _ez = new _I21();
_ez._VX._Tn(_r81._T51(), _SX);
_ez._WX._Tn(_s81._T51(), _TX);
_ez._J21._0T(_t81._T31);
_ez._K21._0T(_u81._T31);
_ez._L21 = 1.0;
var _gz = new _M21();
_e31(_gz, _ez);
var _UT = _gz._wf;
if (_gz._cF == _M21._P21) {
alpha = _oU(_ST + (1.0 - _ST) * _UT, 1.0)
} else {
alpha = 1.0
}
_v2._o81 = alpha;
_v2._L31 |= _881._f41
} if (alpha < _q81) {
_p81 = _v2;
_q81 = alpha
}
}
if (_p81 == null || 1.0 - 10.0 * _bS < _q81) {
this._U61 = !0;
break
}
var _r81 = _p81._C41();
var _s81 = _p81._E41();
var _t81 = _r81.__51();
var _u81 = _s81.__51();
_w41._571._0T(_t81._T31);
_w41._671._0T(_u81._T31);
_t81._VT(_q81);
_u81._VT(_q81);
_p81._bm(this._q41._e71);
_p81._L31 &= ~_881._f41;
++_p81._n81;
if (_p81._e81() == !1 || _p81._f81() == !1) {
_p81._z81(!1);
_t81._T31._0T(_w41._571);
_u81._T31._0T(_w41._671);
_t81._A51();
_u81._A51();
continue
}
_t81._AI(!0);
_u81._AI(!0);
this.__61._am();
this.__61._d81(_t81);
this.__61._d81(_u81);
this.__61._k81(_p81);
_t81._L31 |= _x31._e41;
_u81._L31 |= _x31._e41;
_p81._L31 |= _881._e41;
var _A81 = [_t81, _u81];
for (var _u2 = 0; _u2 < 2; ++_u2) {
var body = _A81[_u2];
if (body._fV == _x31._541) {
for (var _g51 = body._V31; _g51; _g51 = _g51._Yn) {
if (this.__61._P61 == this.__61._B81) {
break
}
if (this.__61._281 == this.__61._C81) {
break
}
var _A41 = _g51._A41;
if (_A41._L31 & _881._e41) {
continue
}
var _0_ = _g51._0_;
if (_0_._fV == _x31._541 && body._m51() == !1 && _0_._m51() == !1) {
continue
}
var _g81 = _A41._h81._Q51;
var _i81 = _A41._j81._Q51;
if (_g81 || _i81) {
continue
}
_w41._771._0T(_0_._T31);
if ((_0_._L31 & _x31._e41) == 0) {
_0_._VT(_q81)
}
_A41._bm(this._q41._e71);
if (_A41._e81() == !1) {
_0_._T31._0T(_w41._771);
_0_._A51();
continue
}
if (_A41._f81() == !1) {
_0_._T31._0T(_w41._771);
_0_._A51();
continue
}
_A41._L31 |= _881._e41;
this.__61._k81(_A41);
if (_0_._L31 & _x31._e41) {
continue
}
_0_._L31 |= _x31._e41;
if (_0_._fV != _x31._y31) {
_0_._AI(!0)
}
this.__61._d81(_0_)
}
}
}
var _D81 = new _u61();
_D81._v61 = (1.0 - _q81) * _JR._v61;
_D81._w61 = 1.0 / _D81._v61;
_D81._x61 = 1.0;
_D81._z61 = 20;
_D81._y61 = _JR._y61;
_D81._A61 = !1;
this.__61._A71(_D81, _t81._K31, _u81._K31);
for (var _u2 = 0; _u2 < this.__61._P61;
++_u2) {
var body = this.__61._m81[_u2];
body._L31 &= ~_x31._e41;
if (body._fV != _x31._541) {
continue
}
body._f51();
for (var _g51 = body._V31; _g51; _g51 = _g51._Yn) {
_g51._A41._L31 &= ~(_881._f41 | _881._e41);
}
}
this._q41._y71();
if (this._T61) {
this._U61 = !1;
break
}
}
},
_F71: function(_D51) {
var _u71 = _D51._E81();
var _v71 = _D51._F81();
var _y_ = _u71._TT();
var _A_ = _v71._TT();
var _hf = _y_._yA;
var _jf = _A_._yA;
var _RU = _D51._G81();
var _SU = _D51._H81();
var _Ng = new _AU(0.5, 0.8, 0.8);
switch (_D51._hV()) {
case _o71._I81:
this._N61._QU(_RU, _SU, _Ng);
break;
case _o71._J81:
{
var _K81 = _D51;
var _Au = _K81._L81();
var _Bu = _K81._M81();
this._N61._QU(_Au, _RU, _Ng);
this._N61._QU(_Bu, _SU, _Ng);
this._N61._QU(_Au, _Bu, _Ng)
}
break;
case _o71._N81:
break;
case _o71._O81:
this._N61._P81(_D51._Q81(), 5.0, _Ng);
default:
this._N61._QU(_hf, _RU, _Ng);
this._N61._QU(_RU, _SU, _Ng);
this._N61._QU(_jf, _SU, _Ng)
}
},
_D71: function(_cI, _MT, _Ng) {
switch (_cI._hV()) {
case _eV._uV:
{
var _LX = _cI._T51();
var _MU = _dU(_MT, _LX._AV);
var _NU = _LX._gV;
var _PU = _bU(_MT._rz, new _XS(1.0, 0.0));
this._N61._OU(_MU, _NU, _PU, _Ng)
}
break;
case _eV._vV:
{
var _eW = _cI._T51();
var _Th = _dU(_MT, _eW._OV);
var _Uh = _dU(_MT, _eW._PV);
this._N61._QU(_Th, _Uh, _Ng)
}
break;
case _eV._xV:
{
var _NX = _cI._T51();
var _fg = _NX._1W;
var _2h = _NX._0W;
var _Th = _dU(_MT, _2h[0]);
for (var _u2 = 1; _u2 < _fg; ++_u2) {
var _Uh = _dU(_MT, _2h[_u2]);
this._N61._QU(_Th, _Uh, _Ng);
_Th = _Uh
}
}
break;
case _eV._wV:
{
var _R81 = _cI._T51();
var _JU = _R81._1W;
_7S(_JU <= _eS);
var _2h = new Array(_eS);
for (var _u2 = 0; _u2 < _JU; ++_u2) {
_2h[_u2] = _dU(_MT, _R81._0W[_u2])
}
this._N61._KU(_2h, _JU, _Ng)
}
break;
default:
break
}
},
_S81: function() {
return this._171._S81()
},
_T81: function(_fg) {
this._171._T81(_fg)
},
_U81: function(_qV) {
this._171._U81(_qV)
},
_V81: function() {
return this._171._V81()
},
_W81: function(_H31) {
this._171._W81(_H31)
},
_X81: function() {
return this._171._X81()
},
_Y81: function(_Z81) {
this._171._Y81(_Z81)
},
__81: function() {
return this._171.__81()
},
_091: function(_NU) {
this._171._091(_NU)
},
_191: function() {
return this._171._191()
},
_291: function(_j41) {
_7S(this._m41() == !1);
if (this._m41()) {
return 0
}
var _yA = this._171._291(_j41);
return _yA
},
_391: function(index, _491) {
this._171._391(index,
_491)
},
_591: function(_BV, _MT, _491) {
_7S(this._m41() == !1);
if (this._m41()) {
return 0
}
return this._171._591(_BV, _MT, _491)
},
_691: function(_j41) {
_7S(this._m41() == !1);
if (this._m41()) {
return null
}
var _Vg = this._171._691(_j41);
return _Vg
},
_791: function(_891, _991) {
_7S(this._m41() == !1);
if (this._m41()) {
return
}
this._171._791(_891, _991)
},
_a91: function(_aL, _491) {
_7S(this._m41() == !1);
if (this._m41()) {
return
}
this._171._a91(_aL, _491)
},
_b91: function() {
return this._171._b91()
},
_c91: function() {
return this._171._c91()
},
_d91: function() {
return this._171._d91()
},
_e91: function() {
return this._171._e91()
},
_f91: function() {
return this._171._f91()
},
_g91: function() {
return this._171._g91()
},
_h91: function(buffer, _i91) {
this._171._h91(buffer, _i91)
},
_j91: function(buffer, _i91) {
this._171._j91(buffer, _i91)
},
_k91: function(buffer, _i91) {
this._171._k91(buffer, _i91)
},
_l91: function(buffer, _i91) {
this._171._l91(buffer, _i91)
},
_m91: function(buffer, _i91) {
this._171._m91(buffer, _i91)
},
_n91: function() {
return this._171._o91
},
_p91: function() {
return this._171._281
},
_q91: function() {
return this._171._r91
},
_s91: function() {
return this._171._t91
},
_u91: function() {
return this._171._u91()
},
_v91: function() {
return this._171._v91()
},
_w91: function() {
return this._171._w91();
},
_x91: function() {
return this._171._x91()
},
_E71: function(_y91) {
var _z91 = _y91._x91();
if (_z91) {
var _A91 = _y91._191();
var _B91 = _y91._c91();
if (_y91._C91.data) {
var _D91 = _y91._e91();
this._N61._UU(_B91, _A91, _D91, _z91)
} else {
this._N61._UU(_B91, _A91, null, _z91)
}
}
}
};
_w41._x41 = 0x0001;
_w41._z71 = 0x0002;
_w41._X61 = 0x0004;
function _E91(_i91) {
this._F91 = new Array(_i91);
this.__01 = 0;
this._G91 = 0;
this._H91 = _i91
}
_E91.prototype = {
_I91: function(_Zn) {
if (this._G91 >= this._H91) return;
this._F91[this._G91++] = _Zn
},
_J91: function() {
_7S(this.__01 < this._G91);
this.__01++
},
_K91: function() {
return this.__01 >= this._G91
},
_L91: function() {
return this._F91[this.__01]
}
};
function _M91(_N91) {
this._O91 = new Array(_N91);
this._P91 = 0;
this._Q91 = 0;
this._R91 = 0;
this._S91 = null
}
_M91._T91 = function() {
this._MU = new _XS();
this._U91 = 0
};
_M91._V91 = function(_w2, _x2, _u2, _Vg) {
this._W91 = _w2;
this._X91 = _x2;
this._Y91 = _u2;
this._Z91 = _Vg
};
_M91.prototype = {
__91: function(_MU, _U91) {
var _Vg = (this._O91[this._P91++] = new _M91._T91());
_Vg._MU._0T(_MU);
_Vg._U91 = _U91
},
_0a1: function(_NU) {
_7S(this._S91 == null);
var _1a1 = 1 / _NU;
var _xW = new _XS(+_aS, +_aS);
var _yW = new _XS(-_aS, -_aS);
for (var _dZ = 0; _dZ < this._P91; _dZ++) {
var _Vg = this._O91[_dZ];
_xW._0T(_pU(_xW, _Vg._MU));
_yW._0T(_rU(_yW, _Vg._MU))
}
this._Q91 = 1 + ((_1a1 * (_yW._w2 - _xW._w2)) >>> 0);
this._R91 = 1 + ((_1a1 * (_yW._x2 - _xW._x2)) >>> 0);
this._S91 = new Array(this._Q91 * this._R91);
for (var _u2 = 0; _u2 < this._Q91 * this._R91; _u2++) this._S91[_u2] = null;
var _do = new _E91(this._Q91 * this._Q91);
for (var _dZ = 0; _dZ < this._P91; _dZ++) {
var _Vg = this._O91[_dZ];
_Vg._MU._0T(_XS._9u(_1a1, _XS._4T(_Vg._MU, _xW)));
var _w2 = _qU(0, _oU(Math.floor(_Vg._MU._w2), this._Q91 - 1));
var _x2 = _qU(0, _oU(Math.floor(_Vg._MU._x2), this._R91 - 1));
_do._I91(new _M91._V91(_w2, _x2, _w2 + _x2 * this._Q91, _Vg))
}
while (!_do._K91()) {
var _w2 = _do._L91()._W91;
var _x2 = _do._L91()._X91;
var _u2 = _do._L91()._Y91;
var _Vg = _do._L91()._Z91;
_do._J91();
if (!this._S91[_u2]) {
this._S91[_u2] = _Vg;
if (_w2 > 0) {
_do._I91(new _M91._V91(_w2 - 1, _x2, _u2 - 1, _Vg))
}
if (_x2 > 0) {
_do._I91(new _M91._V91(_w2, _x2 - 1, _u2 - this._Q91, _Vg))
}
if (_w2 < this._Q91 - 1) {
_do._I91(new _M91._V91(_w2 + 1, _x2, _u2 + 1, _Vg))
}
if (_x2 < this._R91 - 1) {
_do._I91(new _M91._V91(_w2, _x2 + 1, _u2 + this._Q91, _Vg))
}
}
}
var _2a1 = this._Q91 + this._R91;
for (var _3a1 = 0; _3a1 < _2a1; _3a1++) {
for (var _x2 = 0; _x2 < this._R91; _x2++) {
for (var _w2 = 0; _w2 < this._Q91 - 1; _w2++) {
var _u2 = _w2 + _x2 * this._Q91;
var _Wg = this._S91[_u2];
var _xf = this._S91[_u2 + 1];
if (_Wg != _xf) {
_do._I91(new _M91._V91(_w2, _x2, _u2, _xf));
_do._I91(new _M91._V91(_w2 + 1,
_x2, _u2 + 1, _Wg))
}
}
}
for (var _x2 = 0; _x2 < this._R91 - 1; _x2++) {
for (var _w2 = 0; _w2 < this._Q91; _w2++) {
var _u2 = _w2 + _x2 * this._Q91;
var _Wg = this._S91[_u2];
var _xf = this._S91[_u2 + this._Q91];
if (_Wg != _xf) {
_do._I91(new _M91._V91(_w2, _x2, _u2, _xf));
_do._I91(new _M91._V91(_w2, _x2 + 1, _u2 + this._Q91, _Wg))
}
}
}
var _4a1 = !1;
while (!_do._K91()) {
var _w2 = _do._L91()._W91;
var _x2 = _do._L91()._X91;
var _u2 = _do._L91()._Y91;
var _dZ = _do._L91()._Z91;
_do._J91();
var _Wg = this._S91[_u2];
var _xf = _dZ;
if (_Wg != _xf) {
var _5a1 = _Wg._MU._w2 - _w2;
var _6a1 = _Wg._MU._x2 - _x2;
var _7a1 = _xf._MU._w2 - _w2;
var _8a1 = _xf._MU._x2 - _x2;
var _yN = _5a1 * _5a1 + _6a1 * _6a1;
var _wy = _7a1 * _7a1 + _8a1 * _8a1;
if (_yN > _wy) {
this._S91[_u2] = _xf;
if (_w2 > 0) {
_do._I91(new _M91._V91(_w2 - 1, _x2, _u2 - 1, _xf))
}
if (_x2 > 0) {
_do._I91(new _M91._V91(_w2, _x2 - 1, _u2 - this._Q91, _xf))
}
if (_w2 < this._Q91 - 1) {
_do._I91(new _M91._V91(_w2 + 1, _x2, _u2 + 1, _xf))
}
if (_x2 < this._R91 - 1) {
_do._I91(new _M91._V91(_w2, _x2 + 1, _u2 + this._Q91, _xf));
}
_4a1 = !0
}
}
}
if (!_4a1) {
break
}
}
},
_9a1: function(_sX) {
for (var _x2 = 0; _x2 < this._R91 - 1; _x2++) {
for (var _w2 = 0; _w2 < this._Q91 - 1; _w2++) {
var _u2 = _w2 + _x2 * this._Q91;
var _Wg = this._S91[_u2];
var _xf = this._S91[_u2 + 1];
var _v2 = this._S91[_u2 + this._Q91];
var _Bp = this._S91[_u2 + 1 + this._Q91];
if (_xf != _v2) {
if (_Wg != _xf && _Wg != _v2) {
_sX(_Wg._U91, _xf._U91, _v2._U91)
}
if (_Bp != _xf && _Bp != _v2) {
_sX(_xf._U91, _Bp._U91, _v2._U91)
}
}
}
}
}
};
function _aa1(_uf, _Vg, _xf, _Wg) {
if (_uf instanceof _AU) {
this._uf = (255 * _uf._uf);
this._Vg = (255 * _uf._Vg);
this._xf = (255 * _uf._xf);
this._Wg = 255
} else if (typeof(_uf) !== 'undefined') {
this._uf = _uf;
this._Vg = _Vg;
this._xf = _xf;
this._Wg = _Wg
} else this._uf = this._Vg = this._xf = this._Wg = 0
}
_aa1.prototype = {
_ba1: function() {
return !this._uf && !this._Vg && !this._xf && !this._Wg
},
_ca1: function() {
return new _AU(1.0 / 255 * this._uf, 1.0 / 255 * this._Vg, 1.0 / 255 * this._xf)
},
_Tn: function(_da1, _ea1, _fa1, _ga1) {
if (_da1 instanceof _AU) {
this._uf = (255 * _da1._uf);
this._Vg = (255 * _da1._Vg);
this._xf = (255 * _da1._xf);
this._Wg = 255
} else {
this._uf = _da1;
this._Vg = _ea1;
this._xf = _fa1;
this._Wg = _ga1
}
},
_0T: function(_ha1) {
this._uf = _ha1._uf;
this._Vg = _ha1._Vg;
this._xf = _ha1._xf;
this._Wg = _ha1._Wg
},
_4e: function() {
return new _aa1(this._uf, this._Vg,
this._xf, this._Wg)
}
};
_aa1._ia1 = new _aa1();
function _ja1() {
this._VP = 0;
this.position = new _XS();
this._UJ = new _XS();
this._Ng = new _aa1();
this._cX = null
}
_ja1._ka1 = 0;
_ja1._la1 = 1 << 1;
_ja1._ma1 = 1 << 2;
_ja1._na1 = 1 << 3;
_ja1._oa1 = 1 << 4;
_ja1._pa1 = 1 << 5;
_ja1._qa1 = 1 << 6;
_ja1._ra1 = 1 << 7;
_ja1._sa1 = 1 << 8;
_ja1._ta1 = 1 << 9;
function _ua1() {
this._VP = 0;
this._va1 = 0;
this.position = new _XS();
this._Cg = 0;
this._z31 = new _XS();
this._A31 = 0;
this._Ng = new _aa1();
this._wa1 = 1;
this._BV = null;
this._xa1 = !0;
this._cX = null
}
function _ya1() {
this._za1 = null;
this._Aa1 = 0;
this._Ba1 = 0;
this._Ca1 = 0;
this._Da1 = 1.0;
this._W31 = null;
this._X31 = null;
this._Ea1 = -1;
this._641 = 0;
this._Fa1 = 0;
this._Ga1 = new _XS();
this._Y31 = new _XS();
this._Z31 = 0;
this._Ha1 = new _LT();
this._Ha1._lT();
this._Ia1 = !0;
this._Ja1 = !1;
this._Ka1 = !1;
this._a41 = null
}
_ya1.prototype = {
_x51: function() {
return this._X31
},
_x91: function() {
return this._Ba1 - this._Aa1
},
_La1: function() {
return this._Aa1
},
_Ma1: function() {
return this._Ca1;
},
_Na1: function(_VP) {
this._Ca1 = _VP
},
_Y41: function() {
this._Oa1();
return this._641
},
_Z41: function() {
this._Oa1();
return this._Fa1
},
_2_: function() {
this._Oa1();
return this._Ga1
},
_M41: function() {
this._Oa1();
return this._Y31
},
_O41: function() {
this._Oa1();
return this._Z31
},
_TT: function() {
return this._Ha1
},
_2I: function() {
return this._Ha1._yA
},
_IT: function() {
return this._Ha1._rz._IT()
},
_lX: function() {
return this._a41
},
_y51: function(data) {
this._a41 = data
},
_Oa1: function() {
if (this._Ea1 != this._za1._Ea1) {
var _gf = this._za1._Pa1();
this._641 = 0;
this._Ga1._YS();
this._Y31._YS();
for (var _u2 = this._Aa1; _u2 < this._Ba1; _u2++) {
this._641 += _gf;
this._Ga1._yn(_XS._9u(_gf, this._za1._Qa1.data[_u2]));
this._Y31._yn(_XS._9u(_gf, this._za1._Ra1.data[_u2]))
}
if (this._641 > 0) {
this._Ga1._9u(1 / this._641);
this._Y31._9u(1 / this._641)
}
this._Fa1 = 0;
this._Z31 = 0;
for (var _u2 = this._Aa1; _u2 < this._Ba1; _u2++) {
var _yA = _XS._4T(this._za1._Qa1.data[_u2], this._Ga1);
var _8h = _XS._4T(this._za1._Ra1.data[_u2], this._Y31);
this._Fa1 += _gf * _XT(_yA, _yA);
this._Z31 += _gf * _YT(_yA, _8h)
}
if (this._Fa1 > 0) {
this._Z31 *= 1 / this._Fa1
}
this._Ea1 = this._za1._Ea1
}
}
};
_ya1._Sa1 = 1 << 0;
_ya1._Ta1 = 1 << 1;
function _Ua1() {
this._SX = this._TX = 0;
this._VP = 0;
this._Va1 = 0.0;
this._tV = new _XS()
};
function _Wa1() {
this.index = 0;
this.body = null;
this._Va1 = 0.0;
this._tV = new _XS();
this._cV = 0.0
};
function _271() {
this._Ea1 = 0;
this._Xa1 = 0;
this._Ya1 = 0;
this._u41 = 1;
this._Za1 = 1;
this._141 = 1;
this.__a1 = 1;
this._0b1 = 1;
this._1b1 = 1;
this._1W = 0;
this._2b1 = 0;
this._3b1 = 0;
this._4b1 = new _271._5b1();
this._Qa1 = new _271._5b1();
this._Ra1 = new _271._5b1();
this._6b1 = null;
this._7b1 = null;
this._8b1 = null;
this._C91 = new _271._5b1();
this._9b1 = null;
this._ab1 = new _271._5b1();
this._6X = 0;
this._bb1 = 0;
this._cb1 = null;
this._281 = 0;
this._C81 = 0;
this._o91 = null;
this._t91 = 0;
this._db1 = 0;
this._r91 = null;
this._7X = 0;
this._eb1 = 0;
this._8X = null;
this._fb1 = 0;
this._gb1 = 0;
this._hb1 = null;
this._ib1 = 0;
this._jb1 = null;
this._kb1 = 0.05;
this._lb1 = 1.0;
this._mb1 = 0.25;
this._nb1 = 0.25;
this._ob1 = 0.25;
this._pb1 = 0.1;
this._qb1 = 0.2;
this._rb1 = 0.5;
this._sb1 = 0.5;
this._tb1 = 0.5;
this._R31 = null
}
_271._5b1 = function() {
this.data = null;
this._ub1 = 0
};
_271._vb1 = function() {
this.index = 0;
this._U91 = 0
};
_271._vb1._wb1 = function(_Wg, _xf) {
return _Wg._U91 < _xf._U91
};
_271._vb1._xb1 = function(_Wg, _xf) {
return _Wg < _xf._U91
};
_271._vb1._yb1 = function(_Wg, _xf) {
return _Wg._U91 < _xf
};
_271._zb1 = function() {
this._SX = this._TX = 0;
this._VP = 0;
this._wa1 = 0.0;
this._sV = 0.0
};
_271._Ab1 = function() {
this._SX = this._TX = this._Bb1 = 0;
this._VP = 0;
this._wa1 = 0.0;
this._Cb1 = new _XS(), this._Db1 = new _XS(), this._ha1 = new _XS();
this._Eb1 = 0.0, this._Fb1 = 0.0, this._Gb1 = 0.0, this._ov = 0.0
};
_271._Hb1 = _ja1._na1;
_271._Ib1 = _ja1._oa1;
_271._Jb1 = _ja1._qa1;
_271._Kb1 = 12;
_271._Lb1 = 12;
_271._Mb1 = 8 * 4;
_271._Nb1 = 1 << (_271._Lb1 - 1);
_271._Ob1 = _271._Mb1 - _271._Lb1;
_271._Pb1 = _271._Mb1 - _271._Lb1 - _271._Kb1;
_271._Qb1 = 1 << _271._Pb1;
_271._Rb1 = _271._Qb1 * (1 << (_271._Kb1 - 1));
_271._Sb1 = (1 << _271._Kb1) - 1;
_271._Tb1 = (1 << _271._Lb1) - 1;
function _Ub1(_w2, _x2) {
return ((_x2 + _271._Nb1) << _271._Ob1) + (_271._Qb1 * _w2 + _271._Rb1) >>> 0
}
function _Vb1(_U91, _w2, _x2) {
return _U91 + (_x2 << _271._Ob1) + (_w2 << _271._Pb1)
}
function _Wb1(_i91, _Xb1) {
return _Xb1 && _i91 > _Xb1 ? _Xb1 : _i91
}
function _Yb1(_A41) {
return (_A41._VP & _ja1._la1) == _ja1._la1
}
_271.prototype = {
_Zb1: function(__b1, _0c1, _1c1) {
_7S(_1c1 > _0c1);
var _2c1 = (__b1) ? __b1.slice() : [];
_2c1.length = _1c1;
return _2c1
},
_3c1: function(buffer, _ub1, _0c1, _1c1, _4c1) {
_7S(_1c1 > _0c1);
_7S(!_ub1 || _1c1 <= _ub1);
if ((!_4c1 || buffer) && !_ub1) {
buffer = this._Zb1(buffer, _0c1, _1c1)
}
return buffer
},
_5c1: function(buffer, _0c1, _1c1, _4c1) {
_7S(_1c1 > _0c1);
return this._3c1(buffer.data, buffer._ub1, _0c1, _1c1, _4c1)
},
_6c1: function(buffer) {
if (!buffer) {
buffer = new Array(this._2b1);
for (var _u2 = 0; _u2 < this._2b1; _u2++) {
buffer[_u2] = 0
}
}
return buffer
},
_291: function(_j41) {
if (this._1W >= this._2b1) {
var _i91 = this._1W ? 2 * this._1W : _ES;
_i91 = _Wb1(_i91, this._3b1);
_i91 = _Wb1(_i91, this._4b1._ub1);
_i91 = _Wb1(_i91, this._Qa1._ub1);
_i91 = _Wb1(_i91, this._Ra1._ub1);
_i91 = _Wb1(_i91, this._C91._ub1);
_i91 = _Wb1(_i91, this._ab1._ub1);
if (this._2b1 < _i91) {
this._4b1.data = this._5c1(this._4b1, this._2b1, _i91, !1);
this._Qa1.data = this._5c1(this._Qa1, this._2b1, _i91, !1);
this._Ra1.data = this._5c1(this._Ra1, this._2b1, _i91, !1);
this._6b1 = this._3c1(this._6b1, 0, this._2b1, _i91, !1);
this._7b1 = this._3c1(this._7b1, 0, this._2b1, _i91, !0);
this._8b1 = this._3c1(this._8b1,
0, this._2b1, _i91, !0);
this._C91.data = this._5c1(this._C91, this._2b1, _i91, !0);
this._9b1 = this._3c1(this._9b1, 0, this._2b1, _i91, !1);
this._ab1.data = this._5c1(this._ab1, this._2b1, _i91, !0);
this._2b1 = _i91
}
}
if (this._1W >= this._2b1) {
return _yS
}
var index = this._1W++;
this._4b1.data[index] = _j41._VP;
this._Qa1.data[index] = _j41.position._4e();
this._Ra1.data[index] = _j41._UJ._4e();
this._9b1[index] = null;
if (this._8b1) {
this._8b1[index] = 0
}
if (this._C91.data || !_j41._Ng._ba1()) {
this._C91.data = this._6c1(this._C91.data);
this._C91.data[index] = _j41._Ng._4e()
}
if (this._ab1.data || _j41._cX) {
this._ab1.data = this._6c1(this._ab1.data);
this._ab1.data[index] = _j41._cX
}
if (this._6X >= this._bb1) {
var _0c1 = this._bb1;
var _1c1 = this._6X ? 2 * this._6X : _ES;
this._cb1 = this._Zb1(this._cb1, _0c1, _1c1);
this._bb1 = _1c1
}
this._cb1[this._6X] = new _271._vb1();
this._cb1[this._6X++].index = index;
return index
},
_391: function(index, _491) {
var _VP = _ja1._la1;
if (_491) {
_VP |= _ja1._ta1
}
this._4b1.data[index] |= _VP
},
_591: function(_BV, _MT, _491) {
function _7c1(_y91, _BV, _MT, _491) {
this._za1 = _y91;
this._O51 = _BV;
this._M01 = _MT;
this._8c1 = _491;
this._m71 = 0
}
_7c1.prototype = {
_r61: function(_cI) {
return !1
},
_s61: function(index) {
_7S(index >= 0 && index < this._za1._1W);
if (this._O51._jV(this._M01, this._za1._Qa1.data[index])) {
this._za1._391(index, this._8c1);
this._m71++
}
return !0
},
_9c1: function() {
return this._m71
}
};
var _sX = new _7c1(this, _BV, _MT, _491);
var _nV = new __Z();
_BV._mV(_nV, _MT, 0);
this._R31._N71(_sX, _nV);
return _sX._9c1()
},
_a91: function(_aL, _491) {
for (var _u2 = _aL._Aa1; _u2 < _aL._Ba1; _u2++) {
this._391(_u2, _491)
}
},
_691: function(_ac1) {
var _Jh = this._bc1();
var identity = new _LT();
identity._lT();
var transform = identity._4e();
var _cc1 = this._1W;
if (_ac1._BV) {
var _dc1 = new _ja1();
_dc1._VP = _ac1._VP;
_dc1._Ng = _ac1._Ng;
_dc1._cX = _ac1._cX;
var _BV = _ac1._BV;
transform._Tn(_ac1.position, _ac1._Cg);
var _nV = new __Z();
var _461 = _BV._iV();
for (var _lV = 0; _lV < _461; _lV++) {
if (_lV == 0) {
_BV._mV(_nV, identity, _lV)
} else {
var _ec1 = new __Z();
_BV._mV(_ec1, identity, _lV);
_nV._5_(_ec1)
}
}
for (var _x2 = Math.floor(_nV._FV._x2 / _Jh) * _Jh; _x2 < _nV._GV._x2; _x2 += _Jh) {
for (var _w2 = Math.floor(_nV._FV._w2 / _Jh) * _Jh; _w2 < _nV._GV._w2; _w2 += _Jh) {
var _yA = new _XS(_w2, _x2);
if (_BV._jV(identity, _yA)) {
_yA = _dU(transform, _yA);
_dc1.position._0T(_yA);
_dc1._UJ._0T(_XS._yn(_ac1._z31, __T(_ac1._A31, _XS._4T(_yA, _ac1.position))));
this._291(_dc1)
}
}
}
}
var lastIndex = this._1W;
var _aL = new _ya1();
_aL._za1 = this;
_aL._Aa1 = _cc1;
_aL._Ba1 = lastIndex;
_aL._Ca1 = _ac1._va1;
_aL._Da1 = _ac1._wa1;
_aL._a41 = _ac1._cX;
_aL._Ha1 = transform;
_aL._Ia1 = _ac1._xa1;
_aL._W31 = null;
_aL._X31 = this._jb1;
if (this._jb1) {
this._jb1._W31 = _aL
}
this._jb1 = _aL;
++this._ib1;
for (var _u2 = _cc1; _u2 < lastIndex; _u2++) {
this._9b1[_u2] = _aL
}
this._fc1(!0);
if (_ac1._VP & _271._Hb1) {
for (var _dZ = 0; _dZ < this._281; _dZ++) {
var _A41 = this._o91[_dZ];
var _Wg = _A41._SX;
var _xf = _A41._TX;
if (_Wg > _xf) {
var _gc1 = _Wg;
_Wg = _xf;
_xf = _gc1
}
if (_cc1 <= _Wg && _xf < lastIndex) {
if (this._7X >= this._eb1) {
var _0c1 = this._eb1;
var _1c1 = this._7X ? 2 * this._7X : _ES;
this._8X = this._Zb1(this._8X, _0c1, _1c1);
this._eb1 = _1c1
}
var _AX = this._8X[this._7X] = new _271._zb1();
_AX._SX = _Wg;
_AX._TX = _xf;
_AX._VP = _A41._VP;
_AX._wa1 = _ac1._wa1;
_AX._sV = _2U(this._Qa1.data[_Wg], this._Qa1.data[_xf]);
this._7X++
}
}
}
if (_ac1._VP & _271._Ib1) {
var _hc1 = new _M91(lastIndex - _cc1);
for (var _u2 = _cc1; _u2 < lastIndex; _u2++) {
_hc1.__91(this._Qa1.data[_u2], _u2)
}
_hc1._0a1(_Jh / 2);
var _sX = function _ic1(_Wg, _xf, _v2) {
var _Cb1 = this._Qa1.data[_Wg];
var _Db1 = this._Qa1.data[_xf];
var _ha1 = this._Qa1.data[_v2];
var _jc1 = _XS._4T(_Cb1, _Db1);
var _kc1 = _XS._4T(_Db1, _ha1);
var _lc1 = _XS._4T(_ha1, _Cb1);
var _mc1 = _DS * this._1b1;
if (_nc1(_jc1, _jc1) < _mc1 && _nc1(_kc1, _kc1) < _mc1 && _nc1(_lc1, _lc1) < _mc1) {
if (this._fb1 >= this._gb1) {
var _0c1 = this._gb1;
var _1c1 = this._fb1 ? 2 * this._fb1 : _ES;
this._hb1 = this._Zb1(this._hb1, _0c1, _1c1);
this._gb1 = _1c1
}
var _oc1 = this._hb1[this._fb1];
_oc1._SX = _Wg;
_oc1._TX = _xf;
_oc1._Bb1 = _v2;
_oc1._VP = this._4b1.data[_Wg] | this._4b1.data[_xf] | this._4b1.data[_v2];
_oc1._wa1 = _ac1._wa1;
var _pc1 = _XS._9u(1.0 / 3.0, _XS._yn(_Cb1, _XS._yn(_Db1, _ha1)));
_oc1._Cb1 = _XS._4T(_Cb1, _pc1);
_oc1._Db1 = _XS._4T(_Db1, _pc1);
_oc1._ha1 = _XS._4T(_ha1, _pc1);
_oc1._Eb1 = -_XT(_lc1, _jc1);
_oc1._Fb1 = -_XT(_jc1, _kc1);
_oc1._Gb1 = -_XT(_kc1, _lc1);
_oc1._ov = _YT(_Cb1, _Db1) + _YT(_Db1, _ha1) + _YT(_ha1, _Cb1);
this._fb1++
}
};
_hc1._9a1(_sX)
}
if (_ac1._va1 & _ja1._Sa1) {
_qc1(_aL)
}
return _aL
},
_791: function(_891, _991) {
_7S(_891 != _991);
this._rc1(_991._Aa1, _991._Ba1, this._1W);
_7S(_991._Ba1 == this._1W);
this._rc1(_891._Aa1, _891._Ba1, _991._Aa1);
this._7S(_891._Ba1 == _991._Aa1);
var _sc1 = 0;
for (var _u2 = _891._Aa1; _u2 < _991._Ba1; _u2++) {
_sc1 |= this._4b1.data[_u2]
}
this._fc1(!0);
if (_sc1 & _271._Hb1) {
for (var _dZ = 0; _dZ < this._281; _dZ++) {
var _A41 = this._o91[_dZ];
var _Wg = _A41._SX;
var _xf = _A41._TX;
if (_Wg > _xf) {
var _gc1 = _Wg;
_Wg = _xf;
_xf = _gc1
}
if (_891._Aa1 <= _Wg && _Wg < _891._Ba1 && _991._Aa1 <= _xf && _xf < _991._Ba1) {
if (this._7X >= this._eb1) {
var _0c1 = this._eb1;
var _1c1 = this._7X ? 2 * this._7X : _ES;
this._8X = this._Zb1(this._8X, _0c1, _1c1);
this._eb1 = _1c1
}
var _AX = this._8X[this._7X] = new _271._zb1();
_AX._SX = _Wg;
_AX._TX = _xf;
_AX._VP = _A41._VP;
_AX._wa1 = _oU(_891._Da1, _991._Da1);
_AX._sV = _2U(this._Qa1.data[_Wg], this._Qa1.data[_xf]);
this._7X++
}
}
}
if (_sc1 & _271._Ib1) {
var _hc1 = new _M91(_991._Ba1 - _891._Aa1);
for (var _u2 = _891._Aa1; _u2 < _991._Ba1; _u2++) {
if (!(this._4b1.data[_u2] & _ja1._la1)) {
_hc1.__91(this._Qa1.data[_u2], _u2)
}
}
_hc1._0a1(this._bc1() / 2);
var _sX = new _tc1();
_sX._y91 = this;
_sX._891 = _891;
_sX._991 = _991;
_hc1._9a1(_sX)
}
for (var _u2 = _991._Aa1; _u2 < _991._Ba1; _u2++) {
this._9b1[_u2] = _891
}
var _va1 = _891._Ca1 | _991._Ca1;
_891._Ca1 = _va1;
_891._Ba1 = _991._Ba1;
_991._Aa1 = _991._Ba1;
this._uc1(_991);
if (_va1 & _ja1._Sa1) {
this._qc1(_891)
}
},
_uc1: function(_aL) {
_7S(this._ib1 > 0);
_7S(_aL);
if (this._R31._M61) {
this._R31._M61._vc1(_aL)
}
for (var _u2 = _aL._Aa1; _u2 < _aL._Ba1; _u2++) {
this._9b1[_u2] = null
}
if (_aL._W31) {
_aL._W31._X31 = _aL._X31
}
if (_aL._X31) {
_aL._X31._W31 = _aL._W31
}
if (_aL == this._jb1) {
this._jb1 = _aL._X31
}--this._ib1
},
_qc1: function(_aL) {
for (var _u2 = _aL._Aa1; _u2 < _aL._Ba1; _u2++) {
this._6b1[_u2] = 0
}
for (var _dZ = 0; _dZ < this._281; _dZ++) {
var _A41 = this._o91[_dZ];
var _Wg = _A41._SX;
var _xf = _A41._TX;
if (_Wg >= _aL._Aa1 && _Wg < _aL._Ba1 && _xf >= _aL._Aa1 && _xf < _aL._Ba1) {
var _y2 = _A41._Va1;
this._6b1[_Wg] += _y2;
this._6b1[_xf] += _y2
}
}
this._8b1 = this._6c1(this._8b1);
for (var _u2 = _aL._Aa1; _u2 < _aL._Ba1; _u2++) {
var _y2 = this._6b1[_u2];
this._8b1[_u2] = _y2 < 0.8 ? 0 : _aS
}
var _wc1 = _aL._x91();
for (var _wf = 0; _wf < _wc1; _wf++) {
var _4a1 = !1;
for (var _dZ = 0; _dZ < this._281; _dZ++) {
var _A41 = this._o91[_dZ];
var _Wg = _A41._SX;
var _xf = _A41._TX;
if (_Wg >= _aL._Aa1 && _Wg < _aL._Ba1 && _xf >= _aL._Aa1 && _xf < _aL._Ba1) {
var _uf = 1 - _A41._Va1;
var _xc1 = this._8b1[_Wg];
var _yc1 = this._8b1[_xf];
var _zc1 = _yc1 + _uf;
var _Ac1 = _xc1 + _uf;
if (_xc1 > _zc1) {
_xc1 = _zc1;
_4a1 = !0
}
if (_yc1 > _Ac1) {
_yc1 = _Ac1;
_4a1 = !0
}
this._8b1[_Wg] = _xc1;
this._8b1[_xf] = _yc1
}
}
if (!_4a1) {
break
}
}
for (var _u2 = _aL._Aa1; _u2 < _aL._Ba1; _u2++) {
var _yA = this._8b1[_u2];
if (_yA < _aS) {
_yA *= this.__a1
} else {
_yA = 0
}
this._8b1[_u2] = _yA
}
},
_k81: function(_Wg, _xf) {
var _Bp = _XS._4T(this._Qa1.data[_xf], this._Qa1.data[_Wg]);
var _Bc1 = _XT(_Bp, _Bp);
if (_Bc1 < this._1b1) {
if (this._281 >= this._C81) {
var _0c1 = this._C81;
var _1c1 = this._281 ? 2 * this._281 : _ES;
this._o91 = this._Zb1(this._o91, _0c1, _1c1);
this._C81 = _1c1
}
var _Cc1 = _WS(_Bc1);
var _A41 = this._o91[this._281] = new _Ua1();
_A41._SX = _Wg;
_A41._TX = _xf;
_A41._VP = this._4b1.data[_Wg] | this._4b1.data[_xf];
_A41._Va1 = 1 - _Bc1 * _Cc1 * this._0b1;
_A41._tV._0T(_XS._9u(_Cc1, _Bp));
this._281++
}
},
_fc1: function(_Dc1) {
var _Ec1 = 0;
var _Fc1 = this._6X;
for (var _Gc1 = _Ec1; _Gc1 < _Fc1; ++_Gc1) {
var _561 = this._cb1[_Gc1];
var _u2 = _561.index;
var _yA = this._Qa1.data[_u2];
_561._U91 = _Ub1(this._0b1 * _yA._w2, this._0b1 * _yA._x2)
}
this._cb1._DR(_Ec1, _Fc1, function(_Wg, _xf) {
return _271._vb1._wb1(_Wg, _xf)
});
this._281 = 0;
for (var _Wg = _Ec1, _v2 = _Ec1; _Wg < _Fc1; _Wg++) {
var _Hc1 = _Vb1(this._cb1[_Wg]._U91, 1, 0);
for (var _xf = _Wg + 1; _xf < _Fc1; _xf++) {
if (_Hc1 < this._cb1[_xf]._U91) break;
this._k81(this._cb1[_Wg].index, this._cb1[_xf].index);
}
var _Ic1 = _Vb1(this._cb1[_Wg]._U91, -1, 1);
for (; _v2 < _Fc1; _v2++) {
if (_Ic1 <= this._cb1[_v2]._U91) break
}
var _Jc1 = _Vb1(this._cb1[_Wg]._U91, 1, 1);
for (var _xf = _v2; _xf < _Fc1; _xf++) {
if (_Jc1 < this._cb1[_xf]._U91) break;
this._k81(this._cb1[_Wg].index, this._cb1[_xf].index)
}
}
if (_Dc1) {
this._281 = this._o91._GR(_Yb1, this._281)
}
},
_Kc1: function() {
var _nV = new __Z();
_nV._FV._w2 = +_aS;
_nV._FV._x2 = +_aS;
_nV._GV._w2 = -_aS;
_nV._GV._x2 = -_aS;
for (var _u2 = 0; _u2 < this._1W; _u2++) {
var _yA = this._Qa1.data[_u2];
_nV._FV._0T(_pU(_nV._FV, _yA));
_nV._GV._0T(_rU(_nV._GV, _yA));
}
_nV._FV._w2 -= this.__a1;
_nV._FV._x2 -= this.__a1;
_nV._GV._w2 += this.__a1;
_nV._GV._x2 += this.__a1;
this._t91 = 0;
function _Lc1(_y91) {
this._za1 = _y91
}
_Lc1.prototype = {
_r61: function(_cI) {
if (_cI._V51()) {
return !0
}
var _BV = _cI._T51();
var _xf = _cI.__51();
var _L71 = _xf._J41();
var _Mc1 = _xf._Y41();
var _Nc1 = _xf._Z41() - _Mc1 * _xf._K41()._6T();
var _Oc1 = _Mc1 > 0 ? 1 / _Mc1 : 0;
var _Pc1 = _Nc1 > 0 ? 1 / _Nc1 : 0;
var _461 = _BV._iV();
for (var _lV = 0; _lV < _461; _lV++) {
var _nV = _cI._361(_lV)._4e();
_nV._FV._w2 -= this._za1.__a1;
_nV._FV._x2 -= this._za1.__a1;
_nV._GV._w2 += this._za1.__a1;
_nV._GV._x2 += this._za1.__a1;
var _Ec1 = 0;
var _Fc1 = this._za1._6X;
var _Qc1 = this._za1._cb1._IR(_Ec1,
_Fc1, _Ub1(this._za1._0b1 * _nV._FV._w2, this._za1._0b1 * _nV._FV._x2), function(_Wg, _xf) {
return _271._vb1._yb1(_Wg, _xf)
});
var _Rc1 = this._za1._cb1._LR(_Qc1, _Fc1, _Ub1(this._za1._0b1 * _nV._GV._w2, this._za1._0b1 * _nV._GV._x2), function(_Wg, _xf) {
return _271._vb1._xb1(_Wg, _xf)
});
for (var _561 = _Qc1; _561 != _Rc1; ++_561) {
var _Sc1 = this._za1._cb1[_561];
var _Wg = _Sc1.index;
var _Tc1 = this._za1._Qa1.data[_Wg];
if (_nV._FV._w2 <= _Tc1._w2 && _Tc1._w2 <= _nV._GV._w2 && _nV._FV._x2 <= _Tc1._x2 && _Tc1._x2 <= _nV._GV._x2) {
var _Bp = [0];
var _df = new _XS();
_cI._rV(_Tc1, _Bp, _df, _lV);
if (_Bp[0] < this._za1.__a1) {
var _Uc1 = this._za1._4b1.data[_Wg] & _ja1._ma1 ? 0 : this._za1._Vc1();
var _Wc1 = _XS._4T(_Tc1, _L71);
var _Xc1 = _YT(_Wc1, _df);
if (this._za1._t91 >= this._za1._db1) {
var _0c1 = this._za1._db1;
var _1c1 = this._za1._t91 ? 2 * this._za1._t91 : _ES;
this._za1._r91 = this._za1._Zb1(this._za1._r91, _0c1, _1c1);
this._za1._db1 = _1c1
}
var _A41 = this._za1._r91[this._za1._t91] = new _Wa1();
_A41.index = _Wg;
_A41.body = _xf;
_A41._Va1 = 1 - _Bp[0] * this._za1._0b1;
_A41._tV._0T(_df._1T());
_A41._cV = 1 / (_Uc1 + _Oc1 + _Pc1 * _Xc1 * _Xc1);
this._za1._t91++
}
}
}
}
return !0
},
_s61: function(_u2) {
return !1
}
};
var _sX = new _Lc1(this);
this._R31._N71(_sX, _nV)
},
_pT: function(_JR) {
++this._Ea1;
if (this._1W == 0) {
return
}
this._Xa1 = 0;
for (var _u2 = 0; _u2 < this._1W; _u2++) {
this._Xa1 |= this._4b1.data[_u2]
}
if (this._Xa1 & _ja1._la1) {
this._Yc1()
}
this._Ya1 = 0;
for (var _aL = this._jb1; _aL; _aL = _aL._x51()) {
this._Ya1 |= _aL._Ca1
}
var _sb = _XS._9u(_JR._v61 * this._141, this._R31._481());
var _Zc1 = this.__c1(_JR);
for (var _u2 = 0; _u2 < this._1W; _u2++) {
var _8h = this._Ra1.data[_u2];
_8h._yn(_sb);
var _Uh = _XT(_8h,
_8h);
if (_Uh > _Zc1) {
_8h._9u(_US(_Zc1 / _Uh))
}
}
this._0d1(_JR);
if (this._Ya1 & _ya1._Ta1) {
this._1d1(_JR)
}
if (this._Xa1 & _ja1._ma1) {
this._2d1(_JR)
}
for (var _u2 = 0; _u2 < this._1W; _u2++) {
this._Qa1.data[_u2]._yn(_XS._9u(_JR._v61, this._Ra1.data[_u2]))
}
this._Kc1();
this._fc1(!1);
if (this._Xa1 & _ja1._pa1) {
this._3d1(_JR)
}
if (this._Xa1 & _ja1._qa1) {
this._4d1(_JR)
}
if (this._Xa1 & _ja1._ra1) {
this._5d1(_JR)
}
if (this._Xa1 & _ja1._oa1) {
this._6d1(_JR)
}
if (this._Xa1 & _ja1._na1) {
this._7d1(_JR)
}
if (this._Ya1 & _ya1._Sa1) {
this._8d1(_JR)
}
if (this._Xa1 & _ja1._sa1) {
this._9d1(_JR)
}
this._ad1(_JR);
this._bd1(_JR)
},
_0d1: function(_JR) {
var _nV = new __Z();
_nV._FV._w2 = +_aS;
_nV._FV._x2 = +_aS;
_nV._GV._w2 = -_aS;
_nV._GV._x2 = -_aS;
for (var _u2 = 0; _u2 < this._1W; _u2++) {
var _8h = this._Ra1.data[_u2];
var _RU = this._Qa1.data[_u2];
var _SU = _XS._yn(_RU, _XS._9u(_JR._v61, _8h));
_nV._FV = _pU(_nV._FV, _pU(_RU, _SU));
_nV._GV = _rU(_nV._GV, _rU(_RU, _SU))
}
function _cd1(_y91, _JR) {
this._za1 = _y91;
this._dd1 = _JR
}
_cd1.prototype = {
_r61: function(_cI) {
if (_cI._V51()) {
return !0
}
var _BV = _cI._T51();
var body = _cI.__51();
var _Ec1 = 0;
var _Fc1 = this._za1._6X;
var _461 = _BV._iV();
for (var _lV = 0; _lV < _461; _lV++) {
var _nV = _cI._361(_lV)._4e();
_nV._FV._w2 -= this._za1.__a1;
_nV._FV._x2 -= this._za1.__a1;
_nV._GV._w2 += this._za1.__a1;
_nV._GV._x2 += this._za1.__a1;
var _Qc1 = this._za1._cb1._IR(_Ec1, _Fc1, _Ub1(this._za1._0b1 * _nV._FV._w2, this._za1._0b1 * _nV._FV._x2), function(_Wg, _xf) {
return _271._vb1._yb1(_Wg, _xf)
});
var _Rc1 = this._za1._cb1._LR(_Qc1, _Fc1, _Ub1(this._za1._0b1 * _nV._GV._w2, this._za1._0b1 * _nV._GV._x2), function(_Wg, _xf) {
return _271._vb1._xb1(_Wg, _xf)
});
for (var _561 = _Qc1; _561 != _Rc1; ++_561) {
var _Sc1 = this._za1._cb1[_561];
var _Wg = _Sc1.index;
var _Tc1 = this._za1._Qa1.data[_Wg];
if (_nV._FV._w2 <= _Tc1._w2 && _Tc1._w2 <= _nV._GV._w2 && _nV._FV._x2 <= _Tc1._x2 && _Tc1._x2 <= _nV._GV._x2) {
var _ed1 = this._za1._Ra1.data[_Wg];
var _gz = new _ZZ();
var _ez = new _YZ();
_ez._RU = _dU(body._M01, _fU(body._S31, _Tc1));
_ez._SU = _XS._yn(_Tc1, _XS._9u(this._dd1._v61, _ed1));
_ez._DV = 1;
if (_cI._kV(_gz, _ez, _lV)) {
var _yA = _XS._yn(_XS._yn(_XS._9u((1 - _gz._EV), _ez._RU), _XS._9u(_gz._EV, _ez._SU)), _XS._9u(_hS, _gz._tV));
var _8h = _XS._9u(this._dd1._w61, _XS._4T(_yA, _Tc1));
this._za1._Ra1.data[_Wg]._0T(_8h);
var _1w = _XS._9u(this._za1._Pa1(), _XS._4T(_ed1, _8h));
_1w = _XS._9u(_XT(_1w, _gz._tV), _gz._tV);
body._V41(_1w, _yA, !0)
}
}
}
}
return !0
},
_s61: function(_u2) {
return !1
}
};
var _sX = new _cd1(this, _JR);
this._R31._N71(_sX, _nV)
},
_ad1: function(_JR) {
for (var _u2 = 0; _u2 < this._1W; _u2++) {
this._6b1[_u2] = 0
}
for (var _dZ = 0; _dZ < this._t91; _dZ++) {
var _A41 = this._r91[_dZ];
var _Wg = _A41.index;
var _y2 = _A41._Va1;
this._6b1[_Wg] += _y2
}
for (var _dZ = 0; _dZ < this._281; _dZ++) {
var _A41 = this._o91[_dZ];
var _Wg = _A41._SX;
var _xf = _A41._TX;
var _y2 = _A41._Va1;
this._6b1[_Wg] += _y2;
this._6b1[_xf] += _y2
}
if (this._Xa1 & _271._Jb1) {
for (var _u2 = 0; _u2 < this._1W; _u2++) {
if (this._4b1.data[_u2] & _271._Jb1) {
this._6b1[_u2] = 0
}
}
}
var _fd1 = this._kb1 * this._gd1(_JR);
for (var _u2 = 0; _u2 < this._1W; _u2++) {
var _y2 = this._6b1[_u2];
var _z2 = _fd1 * _qU(0.0, _oU(_y2, _BS) - _AS);
this._6b1[_u2] = _z2
}
var _hd1 = _JR._v61 / (this._u41 * this.__a1);
for (var _dZ = 0; _dZ < this._t91; _dZ++) {
var _A41 = this._r91[_dZ];
var _Wg = _A41.index;
var _xf = _A41.body;
var _y2 = _A41._Va1;
var _gf = _A41._cV;
var _df = _A41._tV;
var _yA = this._Qa1.data[_Wg];
var _z2 = this._6b1[_Wg] + _fd1 * _y2;
var _1w = _XS._9u(_hd1 * _y2 * _gf * _z2, _df);
this._Ra1.data[_Wg]._4T(_XS._9u(this._Vc1(), _1w));
_xf._V41(_1w, _yA, !0)
}
for (var _dZ = 0; _dZ < this._281; _dZ++) {
var _A41 = this._o91[_dZ];
var _Wg = _A41._SX;
var _xf = _A41._TX;
var _y2 = _A41._Va1;
var _df = _A41._tV;
var _z2 = this._6b1[_Wg] + this._6b1[_xf];
var _1w = _XS._9u(_hd1 * _y2 * _z2, _df);
this._Ra1.data[_Wg]._4T(_1w);
this._Ra1.data[_xf]._yn(_1w)
}
},
_bd1: function(_JR) {
var _Z81 = this._lb1;
for (var _dZ = 0; _dZ < this._t91; _dZ++) {
var _A41 = this._r91[_dZ];
var _Wg = _A41.index;
var _xf = _A41.body;
var _y2 = _A41._Va1;
var _gf = _A41._cV;
var _df = _A41._tV;
var _yA = this._Qa1.data[_Wg];
var _8h = _XS._4T(_xf._851(_yA), this._Ra1.data[_Wg]);
var _id1 = _XT(_8h, _df);
if (_id1 < 0) {
var _1w = _XS._9u(_Z81 * _y2 * _gf * _id1, _df);
this._Ra1.data[_Wg]._yn(_XS._9u(this._Vc1(), _1w));
_xf._V41(_1w._1T(), _yA, !0)
}
}
for (var _dZ = 0; _dZ < this._281; _dZ++) {
var _A41 = this._o91[_dZ];
var _Wg = _A41._SX;
var _xf = _A41._TX;
var _y2 = _A41._Va1;
var _df = _A41._tV;
var _8h = _XS._4T(this._Ra1.data[_xf],
this._Ra1.data[_Wg]);
var _id1 = _XT(_8h, _df);
if (_id1 < 0) {
var _1w = _XS._9u(_Z81 * _y2 * _id1, _df);
this._Ra1.data[_Wg]._yn(_1w);
this._Ra1.data[_xf]._4T(_1w)
}
}
},
_2d1: function(_JR) {
for (var _u2 = 0; _u2 < this._1W; _u2++) {
if (this._4b1.data[_u2] & _ja1._ma1) {
this._Ra1.data[_u2]._YS()
}
}
},
_1d1: function(_JR) {
for (var _aL = this._jb1; _aL; _aL = _aL._x51()) {
if (_aL._Ca1 & _ya1._Ta1) {
_aL._Oa1();
var _E4 = new _HT(_JR._v61 * _aL._Z31);
var transform = new _LT(_XS._yn(_aL._Ga1, _XS._4T(_XS._9u(_JR._v61, _aL._Y31), _bU(_E4, _aL._Ga1))), _E4);
_aL._Ha1 = _gU(transform,
_aL._Ha1);
var _jd1 = new _LT();
_jd1._yA._w2 = _JR._w61 * transform._yA._w2;
_jd1._yA._x2 = _JR._w61 * transform._yA._x2;
_jd1._rz._ov = _JR._w61 * transform._rz._ov;
_jd1._rz._v2 = _JR._w61 * (transform._rz._v2 - 1);
for (var _u2 = _aL._Aa1; _u2 < _aL._Ba1; _u2++) {
this._Ra1.data[_u2]._0T(_dU(_jd1, this._Qa1.data[_u2]))
}
}
}
},
_6d1: function(_JR) {
var _kd1 = _JR._w61 * this._mb1;
for (var _dZ = 0; _dZ < this._fb1; _dZ++) {
var _oc1 = this._hb1[_dZ];
if (_oc1._VP & _ja1._oa1) {
var _Wg = _oc1._SX;
var _xf = _oc1._TX;
var _v2 = _oc1._Bb1;
var _gc1 = _oc1._Cb1;
var _ld1 = _oc1._Db1;
var _md1 = _oc1._ha1;
var _Cb1 = this._Qa1.data[_Wg];
var _Db1 = this._Qa1.data[_xf];
var _ha1 = this._Qa1.data[_v2];
var _yA = _XS._9u(1 / 3, _XS._yn(_Cb1, _XS._yn(_Db1, _ha1)));
var _uf = new _HT();
_uf._ov = _YT(_gc1, _Cb1) + _YT(_ld1, _Db1) + _YT(_md1, _ha1);
_uf._v2 = _XT(_gc1, _Cb1) + _XT(_ld1, _Db1) + _XT(_md1, _ha1);
var _sy = _uf._ov * _uf._ov + _uf._v2 * _uf._v2;
var _nd1 = _WS(_sy);
_uf._ov *= _nd1;
_uf._v2 *= _nd1;
var _wa1 = _kd1 * _oc1._wa1;
this._Ra1.data[_Wg]._yn(_XS._9u(_wa1, (_XS._4T(_od1(_uf, _gc1), (_XS._4T(_Cb1, _yA))))));
this._Ra1.data[_xf]._yn(_XS._9u(_wa1, (_XS._4T(_od1(_uf, _ld1), (_XS._4T(_Db1, _yA))))));
this._Ra1.data[_v2]._yn(_XS._9u(_wa1, (_XS._4T(_od1(_uf, _md1), (_XS._4T(_ha1, _yA))))))
}
}
},
_7d1: function(_JR) {
var _pd1 = _JR._w61 * this._nb1;
for (var _dZ = 0; _dZ < this._7X; _dZ++) {
var _AX = this._8X[_dZ];
if (_AX._VP & _ja1._na1) {
var _Wg = _AX._SX;
var _xf = _AX._TX;
var _Bp = _XS._4T(this._Qa1.data[_xf], this._Qa1.data[_Wg]);
var _qd1 = _AX._sV;
var _ry = _Bp._5T();
var _wa1 = _pd1 * _AX._wa1;
var _1w = _XS._9u(_wa1 * (_qd1 - _ry) / _ry, _Bp);
this._Ra1.data[_Wg]._4T(_1w);
this._Ra1.data[_xf]._yn(_1w)
}
}
},
_5d1: function(_JR) {
this._7b1 = this._6c1(this._7b1);
for (var _u2 = 0; _u2 < this._1W; _u2++) {
this._6b1[_u2] = 0;
this._7b1[_u2] = new _XS()
}
for (var _dZ = 0; _dZ < this._281; _dZ++) {
var _A41 = this._o91[_dZ];
if (_A41._VP & _ja1._ra1) {
var _Wg = _A41._SX;
var _xf = _A41._TX;
var _y2 = _A41._Va1;
var _df = _A41._tV;
this._6b1[_Wg] += _y2;
this._6b1[_xf] += _y2;
this._7b1[_Wg]._4T(_XS._9u((1 - _y2) * _y2, _df));
this._7b1[_xf]._yn(_XS._9u((1 - _y2) * _y2, _df))
}
}
var _rd1 = this._pb1 * this._sd1(_JR);
var _td1 = this._qb1 * this._sd1(_JR);
for (var _dZ = 0; _dZ < this._281; _dZ++) {
var _A41 = this._o91[_dZ];
if (_A41._VP & _ja1._ra1) {
var _Wg = _A41._SX;
var _xf = _A41._TX;
var _y2 = _A41._Va1;
var _df = _A41._tV;
var _z2 = this._6b1[_Wg] + this._6b1[_xf];
var _ov = _XS._4T(this._7b1[_xf], this._7b1[_Wg]);
var _ud1 = (_rd1 * (_z2 - 2) + _td1 * _XT(_ov, _df)) * _y2;
var _1w = _XS._9u(_ud1, _df);
this._Ra1.data[_Wg]._4T(_1w);
this._Ra1.data[_xf]._yn(_1w)
}
}
},
_3d1: function(_JR) {
var _vd1 = this._ob1;
for (var _dZ = 0; _dZ < this._t91; _dZ++) {
var _A41 = this._r91[_dZ];
var _Wg = _A41.index;
if (this._4b1.data[_Wg] & _ja1._pa1) {
var _xf = _A41.body;
var _y2 = _A41._Va1;
var _gf = _A41._cV;
var _yA = this._Qa1.data[_Wg];
var _8h = _XS._4T(_xf._851(_yA), this._Ra1.data[_Wg]);
var _1w = _XS._9u(_vd1 * _gf * _y2, _8h);
this._Ra1.data[_Wg]._yn(_XS._9u(this._Vc1(), _1w));
_xf._V41(_1w._1T(), _yA, !0)
}
}
for (var _dZ = 0; _dZ < this._281; _dZ++) {
var _A41 = this._o91[_dZ];
if (_A41._VP & _ja1._pa1) {
var _Wg = _A41._SX;
var _xf = _A41._TX;
var _y2 = _A41._Va1;
var _8h = _XS._4T(this._Ra1.data[_xf], this._Ra1.data[_Wg]);
var _1w = _XS._9u(_vd1 * _y2, _8h);
this._Ra1.data[_Wg]._yn(_1w);
this._Ra1.data[_xf]._4T(_1w)
}
}
},
_4d1: function(_JR) {
var _wd1 = this._rb1 * this._sd1(_JR);
var _xd1 = 1.0 - _zS;
for (var _dZ = 0; _dZ < this._t91; _dZ++) {
var _A41 = this._r91[_dZ];
var _Wg = _A41.index;
if (this._4b1.data[_Wg] & _ja1._qa1) {
var _y2 = _A41._Va1;
if (_y2 > _xd1) {
var _xf = _A41.body;
var _gf = _A41._cV;
var _yA = this._Qa1.data[_Wg];
var _df = _A41._tV;
var _1w = _XS._9u(_wd1 * _gf * (_y2 - _xd1), _df);
this._Ra1.data[_Wg]._4T(_XS._9u(this._Vc1(), _1w));
_xf._V41(_1w, _yA, !0)
}
}
}
for (var _dZ = 0; _dZ < this._281; _dZ++) {
var _A41 = this._o91[_dZ];
if (_A41._VP & _ja1._qa1) {
var _y2 = _A41._Va1;
if (_y2 > _xd1) {
var _Wg = _A41._SX;
var _xf = _A41._TX;
var _df = _A41._tV;
var _1w = _XS._9u(_wd1 * (_y2 - _xd1), _df);
this._Ra1.data[_Wg]._4T(_1w);
this._Ra1.data[_xf]._yn(_1w)
}
}
}
},
_8d1: function(_JR) {
this._8b1 = this._6c1(this._8b1);
var _yd1 = _JR._w61 * this._sb1;
for (var _dZ = 0; _dZ < this._281; _dZ++) {
var _A41 = this._o91[_dZ];
var _Wg = _A41._SX;
var _xf = _A41._TX;
if (this._9b1[_Wg] != this._9b1[_xf]) {
var _y2 = _A41._Va1;
var _df = _A41._tV;
var _z2 = this._8b1[_Wg] + this._8b1[_xf];
var _1w = _XS._9u(_yd1 * _z2 * _y2, _df);
this._Ra1.data[_Wg]._4T(_1w);
this._Ra1.data[_xf]._yn(_1w)
}
}
},
_9d1: function(_JR) {
this._C91.data = this._6c1(this._C91.data);
var _zd1 = Math.floor(256 * this._tb1);
for (var _dZ = 0; _dZ < this._281; _dZ++) {
var _A41 = this._o91[_dZ];
var _Wg = _A41._SX;
var _xf = _A41._TX;
if (this._4b1.data[_Wg] & this._4b1.data[_xf] & _ja1._sa1) {
var _Ad1 = this._C91.data[_Wg];
var _Bd1 = this._C91.data[_xf];
var _Cd1 = (_zd1 * (_Bd1._uf - _Ad1._uf)) >> 8;
var _Dd1 = (_zd1 * (_Bd1._Vg - _Ad1._Vg)) >> 8;
var _Ed1 = (_zd1 * (_Bd1._xf - _Ad1._xf)) >> 8;
var _Fd1 = (_zd1 * (_Bd1._Wg - _Ad1._Wg)) >> 8;
_Ad1._uf += _Cd1;
_Ad1._Vg += _Dd1;
_Ad1._xf += _Ed1;
_Ad1._Wg += _Fd1;
_Bd1._uf -= _Cd1;
_Bd1._Vg -= _Dd1;
_Bd1._xf -= _Ed1;
_Bd1._Wg -= _Fd1
}
}
},
_Yc1: function() {
var _Gd1 = 0;
var _Hd1 = new Array(this._1W);
for (var _u2 = 0; _u2 < this._1W; _u2++) {
var _VP = this._4b1.data[_u2];
if (_VP & _ja1._la1) {
var _Id1 = this._R31._M61;
if ((_VP & _ja1._ta1) && _Id1) {
_Id1._c61(_u2)
}
_Hd1[_u2] = _yS
} else {
_Hd1[_u2] = _Gd1;
if (_u2 != _Gd1) {
this._4b1.data[_Gd1] = this._4b1.data[_u2];
this._Qa1.data[_Gd1] = this._Qa1.data[_u2];
this._Ra1.data[_Gd1] = this._Ra1.data[_u2];
this._9b1[_Gd1] = this._9b1[_u2];
if (this._8b1) {
this._8b1[_Gd1] = this._8b1[_u2]
}
if (this._C91.data) {
this._C91.data[_Gd1] = this._C91.data[_u2]
}
if (this._ab1.data) {
this._ab1.data[_Gd1] = this._ab1.data[_u2]
}
}
_Gd1++
}
}
var _Jd1 = {
_Kd1: function(_561) {
return _561.index < 0
},
_Ld1: function(_A41) {
return _A41._SX < 0 || _A41._TX < 0
},
_Md1: function(_A41) {
return _A41.index < 0
},
_Nd1: function(_AX) {
return _AX._SX < 0 || _AX._TX < 0;
},
_Od1: function(_oc1) {
return _oc1._SX < 0 || _oc1._TX < 0 || _oc1._Bb1 < 0
}
};
for (var _dZ = 0; _dZ < this._6X; _dZ++) {
var _561 = this._cb1[_dZ];
_561.index = _Hd1[_561.index]
}
if (this._cb1) {
this._6X = this._cb1._GR(_Jd1._Kd1, this._6X)
}
for (var _dZ = 0; _dZ < this._281; _dZ++) {
var _A41 = this._o91[_dZ];
_A41._SX = _Hd1[_A41._SX];
_A41._TX = _Hd1[_A41._TX]
}
if (this._o91) {
this._281 = this._o91._GR(_Jd1._Ld1, this._281)
}
for (var _dZ = 0; _dZ < this._t91; _dZ++) {
var _A41 = this._r91[_dZ];
_A41.index = _Hd1[_A41.index]
}
if (this._r91) {
this._t91 = this._r91._GR(_Jd1._Md1, this._t91)
}
for (var _dZ = 0; _dZ < this._7X; _dZ++) {
var _AX = this._8X[_dZ];
_AX._SX = _Hd1[_AX._SX];
_AX._TX = _Hd1[_AX._TX]
}
if (this._8X) {
this._7X = this._8X._GR(_Jd1._Nd1, this._7X)
}
for (var _dZ = 0; _dZ < this._fb1; _dZ++) {
var _oc1 = this._hb1[_dZ];
_oc1._SX = _Hd1[_oc1._SX];
_oc1._TX = _Hd1[_oc1._TX];
_oc1._Bb1 = _Hd1[_oc1._Bb1]
}
if (this._hb1) {
this._fb1 = this._hb1._GR(_Jd1._Od1, this._fb1)
}
for (var _aL = this._jb1; _aL; _aL = _aL._x51()) {
var _cc1 = _Gd1;
var lastIndex = 0;
var _Pd1 = !1;
for (var _u2 = _aL._Aa1; _u2 < _aL._Ba1; _u2++) {
var _Bf = _Hd1[_u2];
if (_Bf >= 0) {
_cc1 = _oU(_cc1, _Bf);
lastIndex = _qU(lastIndex, _Bf + 1)
} else {
_Pd1 = !0
}
}
if (_cc1 < lastIndex) {
_aL._Aa1 = _cc1;
_aL._Ba1 = lastIndex;
if (_Pd1) {
if (_aL._Ca1 & _ya1._Ta1) {
_aL._Ka1 = !0
}
}
} else {
_aL._Aa1 = 0;
_aL._Ba1 = 0;
if (_aL._Ia1) {
_aL._Ja1 = !0
}
}
}
this._1W = _Gd1;
for (var _aL = this._jb1; _aL;) {
var _Yn = _aL._x51();
if (_aL._Ja1) {
this._uc1(_aL)
} else if (_aL._Ka1) {}
_aL = _Yn
}
},
_rc1: function(start, _Qd1, end) {
if (start == _Qd1 || _Qd1 == end) {
return
}
function _Hd1(_u2) {
if (_u2 < start) {
return _u2
} else if (_u2 < _Qd1) {
return _u2 + end - _Qd1
} else if (_u2 < end) {
return _u2 + start - _Qd1;
} else {
return _u2
}
}
this._4b1.data.rotate(start, _Qd1, end);
this._Qa1.data.rotate(start, _Qd1, end);
this._Ra1.data.rotate(start, _Qd1, end);
this._9b1.rotate(start, _Qd1, end);
if (this._8b1) {
this._8b1.rotate(start, _Qd1, end)
}
if (this._C91.data) {
this._C91.data.rotate(start, _Qd1, end)
}
if (this._ab1.data) {
this._ab1.data.rotate(start, _Qd1, end)
}
for (var _dZ = 0; _dZ < this._6X; _dZ++) {
var _561 = this._cb1[_dZ];
_561.index = _Hd1(_561.index)
}
for (var _dZ = 0; _dZ < this._281; _dZ++) {
var _A41 = this._o91[_dZ];
_A41._SX = _Hd1(_A41._SX);
_A41._TX = _Hd1(_A41._TX);
}
for (var _dZ = 0; _dZ < this._t91; _dZ++) {
var _A41 = this._r91[_dZ];
_A41.index = _Hd1(_A41.index)
}
for (var _dZ = 0; _dZ < this._7X; _dZ++) {
var _AX = this._8X[_dZ];
_AX._SX = _Hd1(_AX._SX);
_AX._TX = _Hd1(_AX._TX)
}
for (var _dZ = 0; _dZ < this._fb1; _dZ++) {
var _oc1 = this._hb1[_dZ];
_oc1._SX = _Hd1(_oc1._SX);
_oc1._TX = _Hd1(_oc1._TX);
_oc1._Bb1 = _Hd1(_oc1._Bb1)
}
for (var _aL = this._jb1; _aL; _aL = _aL._x51()) {
_aL._Aa1 = _Hd1(_aL._Aa1);
_aL._Ba1 = _Hd1(_aL._Ba1 - 1) + 1
}
},
_091: function(_NU) {
this.__a1 = 2 * _NU;
this._1b1 = this.__a1 * this.__a1;
this._0b1 = 1 / this.__a1;
},
_U81: function(_qV) {
this._u41 = _qV;
this._Za1 = 1 / this._u41
},
_V81: function() {
return this._u41
},
_W81: function(_H31) {
this._141 = _H31
},
_X81: function() {
return this._141
},
_Y81: function(_Z81) {
this._lb1 = _Z81
},
__81: function() {
return this._lb1
},
_191: function() {
return this.__a1 / 2
},
_sd1: function(_JR) {
return this.__a1 * _JR._w61
},
__c1: function(_JR) {
var _UJ = this._sd1(_JR);
return _UJ * _UJ
},
_gd1: function(_JR) {
return this._u41 * this.__c1(_JR)
},
_bc1: function() {
return _zS * this.__a1
},
_Pa1: function() {
var _Jh = this._bc1();
return this._u41 * _Jh * _Jh;
},
_Vc1: function() {
return 1.777777 * this._Za1 * this._0b1 * this._0b1
},
_b91: function() {
return this._4b1.data
},
_c91: function() {
return this._Qa1.data
},
_d91: function() {
return this._Ra1.data
},
_e91: function() {
this._C91.data = this._6c1(this._C91.data);
return this._C91.data
},
_f91: function() {
this._ab1.data = this._6c1(this._ab1.data);
return this._ab1.data
},
_S81: function() {
return this._3b1
},
_T81: function(_fg) {
_7S(this._1W <= _fg);
this._3b1 = _fg
},
_g91: function() {
return this._9b1
},
_Rd1: function(buffer, _Sd1, _1c1) {
_7S((_Sd1 && _1c1) || (!_Sd1 && !_1c1));
if (!buffer._ub1) {}
buffer.data = _Sd1;
buffer._ub1 = _1c1
},
_h91: function(buffer, _i91) {
this._Rd1(this._4b1, buffer, _i91)
},
_j91: function(buffer, _i91) {
this._Rd1(this._Qa1, buffer, _i91)
},
_k91: function(buffer, _i91) {
this._Rd1(this._Ra1, buffer, _i91)
},
_l91: function(buffer,
_i91) {
this._Rd1(this._C91, buffer, _i91)
},
_m91: function(buffer, _i91) {
this._Rd1(this._ab1, buffer, _i91)
},
_N71: function(_sX, _nV) {
if (this._6X == 0) {
return
}
var _Ec1 = 0;
var _Fc1 = this._6X;
var _Qc1 = this._cb1._IR(_Ec1, _Fc1, _Ub1(this._0b1 * _nV._FV._w2, this._0b1 * _nV._FV._x2), function(_Wg, _xf) {
return _271._vb1._yb1(_Wg, _xf)
});
var _Rc1 = this._cb1._LR(_Qc1, _Fc1, _Ub1(this._0b1 * _nV._GV._w2, this._0b1 * _nV._GV._x2), function(_Wg, _xf) {
return _271._vb1._xb1(_Wg, _xf)
});
for (var _561 = _Qc1; _561 < _Rc1; ++_561) {
var _Sc1 = this._cb1[_561];
var _u2 = _Sc1.index;
var _yA = this._Qa1.data[_u2];
if (_nV._FV._w2 < _yA._w2 && _yA._w2 < _nV._GV._w2 && _nV._FV._x2 < _yA._x2 && _yA._x2 < _nV._GV._x2) {
if (!_sX._s61(_u2)) {
break
}
}
}
},
_kV: function(_sX, _P71, _Q71) {
if (this._6X == 0) {
return
}
var _Ec1 = 0;
var _Fc1 = this._6X;
var _Qc1 = this._cb1._IR(_Ec1, _Fc1, _Ub1(this._0b1 * _oU(_P71._w2, _Q71._w2) - 1, this._0b1 * _oU(_P71._x2, _Q71._x2) - 1), function(_Wg, _xf) {
return _271._vb1._yb1(_Wg, _xf)
});
var _Rc1 = this._cb1._LR(_Ec1, _Fc1, _Ub1(this._0b1 * _qU(_P71._w2, _Q71._w2) + 1, this._0b1 * _qU(_P71._x2, _Q71._x2) + 1), function(_Wg,
_xf) {
return _271._vb1._xb1(_Wg, _xf)
});
var _EV = 1;
var _8h = _XS._4T(_Q71, _P71);
var _Uh = _XT(_8h, _8h);
for (var _561 = _Qc1; _561 < _Rc1; ++_561) {
var _Sc1 = this._cb1[_561];
var _u2 = _Sc1.index;
var _yA = _XS._4T(_P71, this._Qa1.data[_u2]);
var _Td1 = _XT(_yA, _8h);
var _SU = _XT(_yA, _yA);
var _Ud1 = _Td1 * _Td1 - _Uh * (_SU - this._1b1);
if (_Ud1 >= 0) {
var _Vd1 = _US(_Ud1);
var _wf = (-_Td1 - _Vd1) / _Uh;
if (_wf > _EV) {
continue
}
if (_wf < 0) {
_wf = (-_Td1 + _Vd1) / _Uh;
if (_wf < 0 || _wf > _EV) {
continue
}
}
var _df = _XS._yn(_yA, _XS._4T(_wf, _8h));
_df._7T();
var _1w = _sX._s61(_u2, _XS._yn(_P71,
_XS._9u(_wf, _8h)), _df, _wf);
_EV = _oU(_EV, _1w);
if (_EV <= 0) {
break
}
}
}
},
_u91: function() {
var _Wd1 = 0;
for (var _dZ = 0; _dZ < this._281; _dZ++) {
var _A41 = this._o91[_dZ];
var _Wg = _A41._SX;
var _xf = _A41._TX;
var _df = _A41._tV;
var _8h = _XS._4T(this._Ra1.data[_xf], this._Ra1.data[_Wg]);
var _id1 = _XT(_8h, _df);
if (_id1 < 0) {
_Wd1 += _id1 * _id1;
}
}
return 0.5 * this._Pa1() * _Wd1
},
_v91: function() {
return this._jb1
},
_w91: function() {
return this._ib1
},
_x91: function() {
return this._1W
}
};
function _Xd1(_Yd1, _Zd1) {
return _US(_Yd1 * _Zd1)
}
function __d1(_0e1, _1e1) {
return _0e1 > _1e1 ? _0e1 : _1e1
}
function _2e1() {
this._m31 = null;
this._3e1 = !1
};
function _4e1() {
this._0_ = null;
this._A41 = null;
this._r71 = null;
this._Yn = null
};
function _881() {
this._5e1 = new _4e1();
this._6e1 = new _4e1();
this._7e1 = new _lZ()
}
_881._8e1 = new _lZ();
_881.prototype = {
_o41: function(_r81, _SX, _s81, _TX) {
this._o81 = 0;
this._L31 = _881._9e1;
this._h81 = _r81 || null;
this._j81 = _s81 || null;
this._ae1 = _SX || 0;
this._be1 = _TX || 0;
this._7e1._oZ = 0;
this._W31 = null;
this._X31 = null;
this._5e1._A41 = null;
this._5e1._r71 = null;
this._5e1._Yn = null;
this._5e1._0_ = null;
this._6e1._A41 = null;
this._6e1._r71 = null;
this._6e1._Yn = null;
this._6e1._0_ = null;
this._n81 = 0;
if (_r81) {
this._R51 = _Xd1(this._h81._R51, this._j81._R51);
this._S51 = __d1(this._h81._S51, this._j81._S51)
} else {
this._R51 = 0;
this._S51 = 0
}
this._ce1 = 0.0
},
_de1: function() {
return this._7e1
},
_ee1: function(_fe1) {
var _u71 = this._h81.__51();
var _v71 = this._j81.__51();
var _z11 = this._h81._T51();
var _A11 = this._j81._T51();
_fe1._zZ(this._7e1, _u71._TT(), _z11._gV, _v71._TT(), _A11._gV)
},
_f81: function() {
return (this._L31 & _881._ge1) == _881._ge1
},
_z81: function(_l51) {
if (_l51) {
this._L31 |= _881._9e1
} else {
this._L31 &= ~_881._9e1
}
},
_e81: function() {
return (this._L31 & _881._9e1) == _881._9e1
},
_x51: function() {
return this._X31
},
_C41: function() {
return this._h81
},
_H71: function() {
return this._ae1
},
_E41: function() {
return this._j81
},
_J71: function() {
return this._be1
},
_mI: function(_K51) {
this._R51 = _K51
},
_161: function() {
return this._R51
},
_he1: function() {
this._R51 = _Xd1(this._h81._R51, this._j81._R51)
},
_jI: function(_L51) {
this._S51 = _L51
},
_261: function() {
return this._S51
},
_ie1: function() {
this._S51 = __d1(this._h81._S51,
this._j81._S51)
},
_je1: function(_Rc) {
this._ce1 = _Rc
},
_ke1: function() {
return this._ce1
},
_c31: function(_pZ, _AZ, _CZ) {},
_Z51: function() {
this._L31 |= _881._le1
},
_me1: null,
_bm: function(listener) {
_881._8e1._0T(this._7e1);
this._L31 |= _881._9e1;
var _ne1 = !1;
var _oe1 = (this._L31 & _881._ge1) == _881._ge1;
var _g81 = this._h81._V51();
var _i81 = this._j81._V51();
var _U51 = _g81 || _i81;
var _u71 = this._h81.__51();
var _v71 = this._j81.__51();
var _AZ = _u71._TT();
var _CZ = _v71._TT();
if (_U51) {
var _z11 = this._h81._T51();
var _A11 = this._j81._T51();
_ne1 = _y11(_z11,
this._ae1, _A11, this._be1, _AZ, _CZ);
this._7e1._oZ = 0
} else {
this._c31(this._7e1, _AZ, _CZ);
_ne1 = this._7e1._oZ > 0;
for (var _u2 = 0; _u2 < this._7e1._oZ; ++_u2) {
var _pe1 = this._7e1._mZ[_u2];
_pe1._iZ = 0.0;
_pe1._jZ = 0.0;
var _qe1 = _pe1.id;
for (var _Bf = 0; _Bf < _881._8e1._oZ; ++_Bf) {
var _re1 = _881._8e1._mZ[_Bf];
if (_re1.id._hn() == _qe1._hn()) {
_pe1._iZ = _re1._iZ;
_pe1._jZ = _re1._jZ;
break
}
}
}
if (_ne1 != _oe1) {
_u71._AI(!0);
_v71._AI(!0)
}
} if (_ne1) {
this._L31 |= _881._ge1
} else {
this._L31 &= ~_881._ge1
} if (_oe1 == !1 && _ne1 == !0 && listener) {
listener._l61(this)
}
if (_oe1 == !0 && _ne1 == !1 && listener) {
listener._m61(this)
}
if (_U51 == !1 && _ne1 && listener) {
listener._n61(this, _881._8e1)
}
}
};
_881._e41 = 0x0001;
_881._ge1 = 0x0002;
_881._9e1 = 0x0004;
_881._le1 = 0x0008;
_881._se1 = 0x0010;
_881._f41 = 0x0020;
function _te1() {
this.parent.call(this)
}
_te1.prototype = {
_c31: function(_pZ, _AZ, _CZ) {
_f_(_pZ, this._h81._T51(), _AZ, this._j81._T51(), _CZ)
},
_o41: function(_B41, _ue1, _D41, _ve1) {
this.parent.prototype._o41.call(this, _B41, 0, _D41, 0);
_7S(this._h81._hV() == _eV._uV);
_7S(this._j81._hV() == _eV._uV)
}
};
_te1._BR(_881);
var _we1 = new _MV();
function _xe1() {
this.parent.call(this)
}
_xe1.prototype = {
_c31: function(_pZ, _AZ, _CZ) {
var _NX = this._h81._T51();
_NX._dW(_we1, this._ae1);
_o01(_pZ, _we1, _AZ, this._j81._T51(), _CZ);
},
_o41: function(_B41, _SX, _D41, _TX) {
this.parent.prototype._o41.call(this, _B41, _SX, _D41, _TX);
_7S(this._h81._hV() == _eV._xV);
_7S(this._j81._hV() == _eV._uV)
}
};
_xe1._BR(_881);
function _ye1() {
this.parent.call(this)
}
_ye1.prototype = {
_c31: function(_pZ, _AZ, _CZ) {
var _NX = this._h81._T51();
_NX._dW(_we1, this._ae1);
_p11(_pZ, _we1, _AZ,
this._j81._T51(), _CZ)
},
_o41: function(_B41, _SX, _D41, _TX) {
this.parent.prototype._o41.call(this, _B41, _SX, _D41, _TX);
_7S(this._h81._hV() == _eV._xV);
_7S(this._j81._hV() == _eV._wV)
}
};
_ye1._o41 = function(_B41, _SX, _D41, _TX) {
return new _ye1(_B41, _SX, _D41, _TX)
};
_ye1._BR(_881);
function _ze1() {
this.parent.call(this)
}
_ze1.prototype = {
_c31: function(_pZ, _AZ, _CZ) {
_o01(_pZ, this._h81._T51(), _AZ, this._j81._T51(), _CZ)
},
_o41: function(_B41, _SX, _D41, _TX) {
this.parent.prototype._o41.call(this, _B41, 0, _D41, 0);
_7S(this._h81._hV() == _eV._vV);
_7S(this._j81._hV() == _eV._uV)
}
};
_ze1._o41 = function(_B41, _SX, _D41, _TX) {
return new _ze1(_B41, _D41)
};
_ze1._BR(_881);
function _Ae1() {
this.parent.call(this)
}
_Ae1.prototype = {
_c31: function(_pZ, _AZ, _CZ) {
_p11(_pZ, this._h81._T51(), _AZ, this._j81._T51(), _CZ)
},
_o41: function(_B41, _SX, _D41, _TX) {
this.parent.prototype._o41.call(this, _B41, 0, _D41, 0);
_7S(this._h81._hV() == _eV._vV);
_7S(this._j81._hV() == _eV._wV)
}
};
_Ae1._o41 = function(_B41, _SX, _D41, _TX) {
return new _Ae1(_B41, _D41)
};
_Ae1._BR(_881);
function _Be1() {
this.parent.call(this)
}
_Be1.prototype = {
_c31: function(_pZ, _AZ, _CZ) {
_j_(_pZ, this._h81._T51(), _AZ, this._j81._T51(), _CZ)
},
_o41: function(_B41, _SX, _D41, _TX) {
this.parent.prototype._o41.call(this, _B41, 0, _D41, 0);
_7S(this._h81._hV() == _eV._wV);
_7S(this._j81._hV() == _eV._uV)
}
};
_Be1._o41 = function(_B41, _SX, _D41, _TX) {
return new _Be1(_B41, _D41)
};
_Be1._BR(_881);
function _Ce1() {
this.parent.call(this)
}
_Ce1.prototype = {
_c31: function(_pZ, _AZ, _CZ) {
_T_(_pZ, this._h81._T51(), _AZ, this._j81._T51(), _CZ)
},
_o41: function(_B41, _SX, _D41, _TX) {
this.parent.prototype._o41.call(this,
_B41, 0, _D41, 0);
_7S(this._h81._hV() == _eV._wV);
_7S(this._j81._hV() == _eV._wV)
}
};
_Ce1._o41 = function(_B41, _SX, _D41, _TX) {
return new _Ce1(_B41, _D41)
};
_Ce1._BR(_881);
_881._De1 = function(_m31, _Ee1, _Fe1) {
_7S(0 <= _Ee1 && _Ee1 < _eV._yV);
_7S(0 <= _Fe1 && _Fe1 < _eV._yV);
if (!_881._Ge1[_Ee1]) _881._Ge1[_Ee1] = [];
_881._Ge1[_Ee1][_Fe1] = new _2e1();
_881._Ge1[_Ee1][_Fe1]._m31 = _m31;
_881._Ge1[_Ee1][_Fe1]._3e1 = !0;
if (_Ee1 != _Fe1) {
if (!_881._Ge1[_Fe1]) _881._Ge1[_Fe1] = [];
_881._Ge1[_Fe1][_Ee1] = new _2e1();
_881._Ge1[_Fe1][_Ee1]._m31 = _m31;
_881._Ge1[_Fe1][_Ee1]._3e1 = !1
}
_m31._He1 = [];
_m31._Ie1 = 2
};
_881._Je1 = function() {
_881._De1(_te1, _eV._uV, _eV._uV);
_881._De1(_Be1, _eV._wV, _eV._uV);
_881._De1(_Ce1, _eV._wV, _eV._wV);
_881._De1(_ze1, _eV._vV, _eV._uV);
_881._De1(_Ae1, _eV._vV, _eV._wV);
_881._De1(_xe1, _eV._xV, _eV._uV);
_881._De1(_ye1, _eV._xV, _eV._wV)
};
_881._Ke1 = function(_m31) {
var _A41;
if (_A41 = _m31._He1.pop()) return _A41;
for (var _u2 = 0; _u2 < _m31._Ie1 - 1; ++_u2) _m31._He1.push(new _m31()); {
_m31._Ie1 += 32
}
return new _m31()
};
_881._o41 = function(_B41, _SX, _D41, _TX) {
if (_881._Le1 == !1) {
_881._Je1();
_881._Le1 = !0
}
var _Ee1 = _B41._hV();
var _Fe1 = _D41._hV();
_7S(0 <= _Ee1 && _Ee1 < _eV._yV);
_7S(0 <= _Fe1 && _Fe1 < _eV._yV);
var _m31 = _881._Ge1[_Ee1] ? _881._Ge1[_Ee1][_Fe1] ? _881._Ge1[_Ee1][_Fe1]._m31 : null : null;
if (_m31) {
var _A41 = _881._Ke1(_m31);
if (_881._Ge1[_Ee1][_Fe1]._3e1) _A41._o41(_B41, _SX, _D41, _TX);
else _A41._o41(_D41, _TX, _B41, _SX);
return _A41
}
return null
};
_881._F41 = function(_A41) {
_7S(_881._Le1 == !0);
var _B41 = _A41._h81;
var _D41 = _A41._j81;
if (_A41._7e1._oZ > 0 && _B41._V51() == !1 && _D41._V51() == !1) {
_B41.__51()._AI(!0);
_D41.__51()._AI(!0)
}
var _bZ = _B41._hV();
var _cZ = _D41._hV();
_7S(0 <= _bZ && _cZ < _eV._yV);
_7S(0 <= _bZ && _cZ < _eV._yV);
_881._Ge1[_bZ][_cZ]._m31._He1.push(_A41)
};
_881._Ge1 = [];
_881._Le1 = !1;
var _Me1 = new _d61();
var _Ne1 = new _k61();
function _L61() {
this._r41 = new _2X();
this._V31 = null;
this._281 = 0;
this._c71 = _Me1;
this._e71 = _Ne1
}
_L61.prototype = {
_zX: function(_Oe1, _Pe1) {
var _VX = _Oe1;
var _WX = _Pe1;
var _B41 = _VX._cI;
var _D41 = _WX._cI;
var _SX = _VX._lV;
var _TX = _WX._lV;
var _u71 = _B41.__51();
var _v71 = _D41.__51();
if (_u71 == _v71) {
return
}
var _eW = _v71._w51();
while (_eW) {
if (_eW._0_ == _u71) {
var _r81 = _eW._A41._C41();
var _s81 = _eW._A41._E41();
var _w21 = _eW._A41._H71();
var _x21 = _eW._A41._J71();
if (_r81 == _B41 && _s81 == _D41 && _w21 == _SX && _x21 == _TX) {
return
}
if (_r81 == _D41 && _s81 == _B41 && _w21 == _TX && _x21 == _SX) {
return
}
}
_eW = _eW._Yn
}
if (_v71._B51(_u71) == !1) {
return
}
if (this._c71 && this._c71._B51(_B41, _D41) == !1) {
return
}
var _v2 = _881._o41(_B41, _SX, _D41, _TX);
if (_v2 == null) {
return
}
_B41 = _v2._C41();
_D41 = _v2._E41();
_SX = _v2._H71();
_TX = _v2._J71();
_u71 = _B41.__51();
_v71 = _D41.__51();
_v2._W31 = null;
_v2._X31 = this._V31;
if (this._V31 != null) {
this._V31._W31 = _v2
}
this._V31 = _v2;
_v2._5e1._A41 = _v2;
_v2._5e1._0_ = _v71;
_v2._5e1._r71 = null;
_v2._5e1._Yn = _u71._V31;
if (_u71._V31 != null) {
_u71._V31._r71 = _v2._5e1
}
_u71._V31 = _v2._5e1;
_v2._6e1._A41 = _v2;
_v2._6e1._0_ = _u71;
_v2._6e1._r71 = null;
_v2._6e1._Yn = _v71._V31;
if (_v71._V31 != null) {
_v71._V31._r71 = _v2._6e1
}
_v71._V31 = _v2._6e1;
if (_B41._V51() == !1 && _D41._V51() == !1) {
_u71._AI(!0);
_v71._AI(!0)
}++this._281
},
_y71: function() {
this._r41._rX(this)
},
_F41: function(_v2) {
var _B41 = _v2._C41();
var _D41 = _v2._E41();
var _u71 = _B41.__51();
var _v71 = _D41.__51();
if (this._e71 && _v2._f81()) {
this._e71._m61(_v2)
}
if (_v2._W31) {
_v2._W31._X31 = _v2._X31
}
if (_v2._X31) {
_v2._X31._W31 = _v2._W31
}
if (_v2 == this._V31) {
this._V31 = _v2._X31
}
if (_v2._5e1._r71) {
_v2._5e1._r71._Yn = _v2._5e1._Yn
}
if (_v2._5e1._Yn) {
_v2._5e1._Yn._r71 = _v2._5e1._r71;
}
if (_v2._5e1 == _u71._V31) {
_u71._V31 = _v2._5e1._Yn
}
if (_v2._6e1._r71) {
_v2._6e1._r71._Yn = _v2._6e1._Yn
}
if (_v2._6e1._Yn) {
_v2._6e1._Yn._r71 = _v2._6e1._r71
}
if (_v2._6e1 == _v71._V31) {
_v71._V31 = _v2._6e1._Yn
}
_881._F41(_v2);
--this._281
},
_311: function() {
var _v2 = this._V31;
while (_v2) {
var _B41 = _v2._C41();
var _D41 = _v2._E41();
var _SX = _v2._H71();
var _TX = _v2._J71();
var _u71 = _B41.__51();
var _v71 = _D41.__51();
if (_v2._L31 & _881._le1) {
if (_v71._B51(_u71) == !1) {
var _Qe1 = _v2;
_v2 = _Qe1._x51();
this._F41(_Qe1);
continue
}
if (this._c71 && this._c71._B51(_B41, _D41) == !1) {
var _Qe1 = _v2;
_v2 = _Qe1._x51();
this._F41(_Qe1);
continue
}
_v2._L31 &= ~_881._le1
}
var _v81 = _u71._p51() && _u71._fV != _x31._y31;
var _w81 = _v71._p51() && _v71._fV != _x31._y31;
if (_v81 == !1 && _w81 == !1) {
_v2 = _v2._x51();
continue
}
var _YW = _B41._j51[_SX]._dX;
var _ZW = _D41._j51[_TX]._dX;
var _Re1 = this._r41._mX(_YW, _ZW);
if (_Re1 == !1) {
var _Qe1 = _v2;
_v2 = _Qe1._x51();
this._F41(_Qe1);
continue
}
_v2._bm(this._e71);
_v2 = _v2._x51()
}
}
};
function _Se1() {
this._7Z = new _XS();
this._8Z = new _XS();
this._iZ = 0;
this._jZ = 0;
this._Te1 = 0;
this._Ue1 = 0;
this._Ve1 = 0
}
function _We1() {
this._Xe1 = new Array(_dS);
this._nZ = new _XS();
this._hZ = new _XS();
this._SX = 0;
this._TX = 0;
this._Ye1 = 0, this._Ze1 = 0;
this.__e1 = new _XS(), this._0f1 = new _XS();
this._1f1 = 0, this._2f1 = 0;
this.type = 0;
this._BZ = 0, this._DZ = 0;
this._oZ = 0
};
function _3f1() {
this._mZ = new Array(_dS);
for (var _u2 = 0; _u2 < this._mZ.length; ++_u2) this._mZ[_u2] = new _Se1();
this._tV = new _XS();
this._Te1 = new _hT();
this._4f1 = new _hT();
this._SX = 0;
this._TX = 0;
this._Ye1 = 0, this._Ze1 = 0;
this._1f1 = 0, this._2f1 = 0;
this._K51 = 0;
this._L51 = 0;
this._5f1 = 0;
this._oZ = 0;
this._6f1 = 0
}
function _7f1() {
this._tV = new _XS();
this._kZ = new _XS();
this._n_ = 0
}
_7f1.prototype = {
_zZ: function(_ha1, _AZ, _CZ, index) {
_7S(_ha1._oZ > 0);
switch (_ha1.type) {
case _lZ._qZ:
{
var _EZ = (_AZ._rz._v2 * _ha1._hZ._w2 - _AZ._rz._ov * _ha1._hZ._x2) + _AZ._yA._w2;
var _FZ = (_AZ._rz._ov * _ha1._hZ._w2 + _AZ._rz._v2 * _ha1._hZ._x2) + _AZ._yA._x2;
var _GZ = (_CZ._rz._v2 * _ha1._Xe1[0]._w2 - _CZ._rz._ov * _ha1._Xe1[0]._x2) + _CZ._yA._w2;
var _HZ = (_CZ._rz._ov * _ha1._Xe1[0]._w2 + _CZ._rz._v2 * _ha1._Xe1[0]._x2) + _CZ._yA._x2;
this._kZ._w2 = 0.5 * (_EZ + _GZ);
this._kZ._x2 = 0.5 * (_FZ + _HZ);
this._tV._w2 = _GZ - _EZ;
this._tV._x2 = _HZ - _FZ;
var _8f1 = this._tV._w2;
var _9f1 = this._tV._x2;
this._tV._7T();
this._n_ = (_8f1 * this._tV._w2 + _9f1 * this._tV._x2) - _ha1._BZ - _ha1._DZ
}
break;
case _lZ._rZ:
{
this._tV._w2 = _AZ._rz._v2 * _ha1._nZ._w2 - _AZ._rz._ov * _ha1._nZ._x2;
this._tV._x2 = _AZ._rz._ov * _ha1._nZ._w2 + _AZ._rz._v2 * _ha1._nZ._x2;
var _OZ = (_AZ._rz._v2 * _ha1._hZ._w2 - _AZ._rz._ov * _ha1._hZ._x2) + _AZ._yA._w2;
var _PZ = (_AZ._rz._ov * _ha1._hZ._w2 + _AZ._rz._v2 * _ha1._hZ._x2) + _AZ._yA._x2;
var _QZ = (_CZ._rz._v2 * _ha1._Xe1[index]._w2 - _CZ._rz._ov * _ha1._Xe1[index]._x2) + _CZ._yA._w2;
var _RZ = (_CZ._rz._ov * _ha1._Xe1[index]._w2 + _CZ._rz._v2 * _ha1._Xe1[index]._x2) + _CZ._yA._x2;
this._n_ = ((_QZ - _OZ) * this._tV._w2 + (_RZ - _PZ) * this._tV._x2) - _ha1._BZ - _ha1._DZ;
this._kZ._w2 = _QZ;
this._kZ._x2 = _RZ
}
break;
case _lZ._sZ:
{
this._tV._w2 = _CZ._rz._v2 * _ha1._nZ._w2 - _CZ._rz._ov * _ha1._nZ._x2;
this._tV._x2 = _CZ._rz._ov * _ha1._nZ._w2 + _CZ._rz._v2 * _ha1._nZ._x2;
var _OZ = (_CZ._rz._v2 * _ha1._hZ._w2 - _CZ._rz._ov * _ha1._hZ._x2) + _CZ._yA._w2;
var _PZ = (_CZ._rz._ov * _ha1._hZ._w2 + _CZ._rz._v2 * _ha1._hZ._x2) + _CZ._yA._x2;
var _QZ = (_AZ._rz._v2 * _ha1._Xe1[index]._w2 - _AZ._rz._ov * _ha1._Xe1[index]._x2) + _AZ._yA._w2;
var _RZ = (_AZ._rz._ov * _ha1._Xe1[index]._w2 + _AZ._rz._v2 * _ha1._Xe1[index]._x2) + _AZ._yA._x2;
this._n_ = ((_QZ - _OZ) * this._tV._w2 + (_RZ - _PZ) * this._tV._x2) - _ha1._BZ - _ha1._DZ;
this._kZ._w2 = _QZ;
this._kZ._x2 = _RZ;
this._tV._w2 = -this._tV._w2;
this._tV._x2 = -this._tV._x2
}
break
}
}
};
function _af1() {
this._JR = new _u61();
this._bf1 = null;
this._fg = 0;
this._E61 = null;
this._F61 = null
}
function _cf1() {
this._df1 = [];
this._ef1 = []
}
_cf1._ff1 = new _LT();
_cf1._gf1 = new _LT();
_cf1._hf1 = new _7f1();
_cf1.prototype = {
_aK: function(_j41) {
this._dd1 = _j41._JR;
this._1W = _j41._fg;
this._df1.length = this._1W;
this._ef1.length = this._1W;
this._if1 = _j41._E61;
this._jf1 = _j41._F61;
this._kf1 = _j41._bf1;
for (var _u2 = 0; _u2 < this._1W; ++_u2) {
var _A41 = this._kf1[_u2];
var _B41 = _A41._h81;
var _D41 = _A41._j81;
var _z11 = _B41._T51();
var _A11 = _D41._T51();
var _BZ = _z11._gV;
var _DZ = _A11._gV;
var _u71 = _B41.__51();
var _v71 = _D41.__51();
var _pZ = _A41._de1();
var _oZ = _pZ._oZ;
_7S(_oZ > 0);
var _lf1 = this._ef1[_u2] || new _3f1();
_lf1._K51 = _A41._R51;
_lf1._L51 = _A41._S51;
_lf1._5f1 = _A41._ce1;
_lf1._SX = _u71._K31;
_lf1._TX = _v71._K31;
_lf1._Ye1 = _u71._741;
_lf1._Ze1 = _v71._741;
_lf1._1f1 = _u71._941;
_lf1._2f1 = _v71._941;
_lf1._6f1 = _u2;
_lf1._oZ = _oZ;
_lf1._4f1._YS();
_lf1._Te1._YS();
this._ef1[_u2] = _lf1;
var _ha1 = this._df1[_u2] || new _We1();
_ha1._SX = _u71._K31;
_ha1._TX = _v71._K31;
_ha1._Ye1 = _u71._741;
_ha1._Ze1 = _v71._741;
_ha1.__e1._w2 = _u71._T31._OT._w2;
_ha1.__e1._x2 = _u71._T31._OT._x2;
_ha1._0f1._w2 = _v71._T31._OT._w2;
_ha1._0f1._x2 = _v71._T31._OT._x2;
_ha1._1f1 = _u71._941;
_ha1._2f1 = _v71._941;
_ha1._nZ._w2 = _pZ._nZ._w2;
_ha1._nZ._x2 = _pZ._nZ._x2;
_ha1._hZ._w2 = _pZ._hZ._w2;
_ha1._hZ._x2 = _pZ._hZ._x2;
_ha1._oZ = _oZ;
_ha1._BZ = _BZ;
_ha1._DZ = _DZ;
_ha1.type = _pZ.type;
this._df1[_u2] = _ha1;
for (var _Bf = 0; _Bf < _oZ; ++_Bf) {
var _m01 = _pZ._mZ[_Bf];
var _mf1 = _lf1._mZ[_Bf];
if (this._dd1._A61) {
_mf1._iZ = this._dd1._x61 * _m01._iZ;
_mf1._jZ = this._dd1._x61 * _m01._jZ
} else {
_mf1._iZ = 0.0;
_mf1._jZ = 0.0
}
_mf1._7Z._YS();
_mf1._8Z._YS();
_mf1._Te1 = 0.0;
_mf1._Ue1 = 0.0;
_mf1._Ve1 = 0.0;
_ha1._Xe1[_Bf] = _m01._hZ
}
}
},
_nf1: function() {
for (var _u2 = 0; _u2 < this._1W; ++_u2) {
var _lf1 = this._ef1[_u2];
var _ha1 = this._df1[_u2];
var _BZ = _ha1._BZ;
var _DZ = _ha1._DZ;
var _pZ = this._kf1[_lf1._6f1]._de1();
var _SX = _lf1._SX;
var _TX = _lf1._TX;
var _of1 = _lf1._Ye1;
var _pf1 = _lf1._Ze1;
var _w21 = _lf1._1f1;
var _x21 = _lf1._2f1;
var __e1 = _ha1.__e1;
var _0f1 = _ha1._0f1;
var _G71 = this._if1[_SX]._v2;
var _qf1 = this._if1[_SX]._Wg;
var _rf1 = this._jf1[_SX]._8h;
var _4Y = this._jf1[_SX]._y2;
var _I71 = this._if1[_TX]._v2;
var _sf1 = this._if1[_TX]._Wg;
var _tf1 = this._jf1[_TX]._8h;
var _5Y = this._jf1[_TX]._y2;
_7S(_pZ._oZ > 0);
_cf1._ff1._rz._Tn(_qf1);
_cf1._gf1._rz._Tn(_sf1);
_cf1._ff1._yA._w2 = _G71._w2 - (_cf1._ff1._rz._v2 * __e1._w2 - _cf1._ff1._rz._ov * __e1._x2);
_cf1._ff1._yA._x2 = _G71._x2 - (_cf1._ff1._rz._ov * __e1._w2 + _cf1._ff1._rz._v2 * __e1._x2);
_cf1._gf1._yA._w2 = _I71._w2 - (_cf1._gf1._rz._v2 * _0f1._w2 - _cf1._gf1._rz._ov * _0f1._x2);
_cf1._gf1._yA._x2 = _I71._x2 - (_cf1._gf1._rz._ov * _0f1._w2 + _cf1._gf1._rz._v2 * _0f1._x2);
var _fe1 = new _xZ();
_fe1._zZ(_pZ, _cf1._ff1, _BZ, _cf1._gf1, _DZ);
_lf1._tV._w2 = _fe1._tV._w2;
_lf1._tV._x2 = _fe1._tV._x2;
var _oZ = _lf1._oZ;
for (var _Bf = 0; _Bf < _oZ; ++_Bf) {
var _mf1 = _lf1._mZ[_Bf];
_mf1._7Z._w2 = _fe1._mZ[_Bf]._w2 - _G71._w2;
_mf1._7Z._x2 = _fe1._mZ[_Bf]._x2 - _G71._x2;
_mf1._8Z._w2 = _fe1._mZ[_Bf]._w2 - _I71._w2;
_mf1._8Z._x2 = _fe1._mZ[_Bf]._x2 - _I71._x2;
var _uf1 = _mf1._7Z._w2 * _lf1._tV._x2 - _mf1._7Z._x2 * _lf1._tV._w2;
var _vf1 = _mf1._8Z._w2 * _lf1._tV._x2 - _mf1._8Z._x2 * _lf1._tV._w2;
var _wf1 = _of1 + _pf1 + _w21 * _uf1 * _uf1 + _x21 * _vf1 * _vf1;
_mf1._Te1 = _wf1 > 0.0 ? 1.0 / _wf1 : 0.0;
var _b01 = 1.0 * _lf1._tV._x2;
var _c01 = -1.0 * _lf1._tV._w2;
var _xf1 = _mf1._7Z._w2 * _c01 - _mf1._7Z._x2 * _b01;
var _yf1 = _mf1._8Z._w2 * _c01 - _mf1._8Z._x2 * _b01;
var _zf1 = _of1 + _pf1 + _w21 * _xf1 * _xf1 + _x21 * _yf1 * _yf1;
_mf1._Ue1 = _zf1 > 0.0 ? 1.0 / _zf1 : 0.0;
_mf1._Ve1 = 0.0;
var _Af1 = _lf1._tV._w2 * (((_tf1._w2 + (-_5Y * _mf1._8Z._x2)) - _rf1._w2) - (-_4Y * _mf1._7Z._x2)) + _lf1._tV._x2 * (((_tf1._x2 + (_5Y * _mf1._8Z._w2)) - _rf1._x2) - (_4Y * _mf1._7Z._w2));
if (_Af1 < -_mS) {
_mf1._Ve1 = -_lf1._L51 * _Af1
}
}
if (_lf1._oZ == 2) {
var _Bf1 = _lf1._mZ[0];
var _Cf1 = _lf1._mZ[1];
var _Df1 = _Bf1._7Z._w2 * _lf1._tV._x2 - _Bf1._7Z._x2 * _lf1._tV._w2;
var _Ef1 = _Bf1._8Z._w2 * _lf1._tV._x2 - _Bf1._8Z._x2 * _lf1._tV._w2;
var _Ff1 = _Cf1._7Z._w2 * _lf1._tV._x2 - _Cf1._7Z._x2 * _lf1._tV._w2;
var _Gf1 = _Cf1._8Z._w2 * _lf1._tV._x2 - _Cf1._8Z._x2 * _lf1._tV._w2;
var _Hf1 = _of1 + _pf1 + _w21 * _Df1 * _Df1 + _x21 * _Ef1 * _Ef1;
var _If1 = _of1 + _pf1 + _w21 * _Ff1 * _Ff1 + _x21 * _Gf1 * _Gf1;
var _Jf1 = _of1 + _pf1 + _w21 * _Df1 * _Ff1 + _x21 * _Ef1 * _Gf1;
var _Kf1 = 1000.0;
if (_Hf1 * _Hf1 < _Kf1 * (_Hf1 * _If1 - _Jf1 * _Jf1)) {
_lf1._4f1._0L._w2 = _Hf1;
_lf1._4f1._0L._x2 = _Jf1;
_lf1._4f1._kT._w2 = _Jf1;
_lf1._4f1._kT._x2 = _If1;
_lf1._Te1._0T(_lf1._4f1._mT())
} else {
_lf1._oZ = 1
}
}
}
},
_Lf1: function() {
for (var _u2 = 0; _u2 < this._1W; ++_u2) {
var _lf1 = this._ef1[_u2];
var _SX = _lf1._SX;
var _TX = _lf1._TX;
var _of1 = _lf1._Ye1;
var _w21 = _lf1._1f1;
var _pf1 = _lf1._Ze1;
var _x21 = _lf1._2f1;
var _oZ = _lf1._oZ;
var _rf1 = this._jf1[_SX]._8h;
var _4Y = this._jf1[_SX]._y2;
var _tf1 = this._jf1[_TX]._8h;
var _5Y = this._jf1[_TX]._y2;
var _tV = _lf1._tV;
var _b01 = 1.0 * _tV._x2;
var _c01 = -1.0 * _tV._w2;
for (var _Bf = 0; _Bf < _oZ; ++_Bf) {
var _mf1 = _lf1._mZ[_Bf];
var _A01 = (_mf1._iZ * _tV._w2) + (_mf1._jZ * _b01);
var _B01 = (_mf1._iZ * _tV._x2) + (_mf1._jZ * _c01);
_4Y -= _w21 * (_mf1._7Z._w2 * _B01 - _mf1._7Z._x2 * _A01);
_rf1._w2 -= _of1 * _A01;
_rf1._x2 -= _of1 * _B01;
_5Y += _x21 * (_mf1._8Z._w2 * _B01 - _mf1._8Z._x2 * _A01);
_tf1._w2 += _pf1 * _A01;
_tf1._x2 += _pf1 * _B01
}
this._jf1[_SX]._y2 = _4Y;
this._jf1[_TX]._y2 = _5Y
}
},
_Mf1: function() {
for (var _u2 = 0; _u2 < this._1W; ++_u2) {
var _lf1 = this._ef1[_u2];
var _SX = _lf1._SX;
var _TX = _lf1._TX;
var _of1 = _lf1._Ye1;
var _w21 = _lf1._1f1;
var _pf1 = _lf1._Ze1;
var _x21 = _lf1._2f1;
var _oZ = _lf1._oZ;
var _rf1 = this._jf1[_SX]._8h;
var _4Y = this._jf1[_SX]._y2;
var _tf1 = this._jf1[_TX]._8h;
var _5Y = this._jf1[_TX]._y2;
var _tV = _lf1._tV;
var _b01 = 1.0 * _tV._x2;
var _c01 = -1.0 * _tV._w2;
var _K51 = _lf1._K51;
_7S(_oZ == 1 || _oZ == 2);
for (var _Bf = 0; _Bf < _oZ; ++_Bf) {
var _mf1 = _lf1._mZ[_Bf];
var _Nf1 = _tf1._w2 + (-_5Y * _mf1._8Z._x2) - _rf1._w2 - (-_4Y * _mf1._7Z._x2);
var _Of1 = _tf1._x2 + (_5Y * _mf1._8Z._w2) - _rf1._x2 - (_4Y * _mf1._7Z._w2);
var _Pf1 = (_Nf1 * _b01 + _Of1 * _c01) - _lf1._5f1;
var _Qf1 = _mf1._Ue1 * (-_Pf1);
var _Rf1 = _K51 * _mf1._iZ;
var _Sf1 = _sU(_mf1._jZ + _Qf1, -_Rf1, _Rf1);
_Qf1 = _Sf1 - _mf1._jZ;
_mf1._jZ = _Sf1;
var _A01 = _Qf1 * _b01;
var _B01 = _Qf1 * _c01;
_rf1._w2 -= _of1 * _A01;
_rf1._x2 -= _of1 * _B01;
_4Y -= _w21 * (_mf1._7Z._w2 * _B01 - _mf1._7Z._x2 * _A01);
_tf1._w2 += _pf1 * _A01;
_tf1._x2 += _pf1 * _B01;
_5Y += _x21 * (_mf1._8Z._w2 * _B01 - _mf1._8Z._x2 * _A01);
}
if (_lf1._oZ == 1) {
_mf1 = _lf1._mZ[0];
_Nf1 = _tf1._w2 + (-_5Y * _mf1._8Z._x2) - _rf1._w2 - (-_4Y * _mf1._7Z._x2);
_Of1 = _tf1._x2 + (_5Y * _mf1._8Z._w2) - _rf1._x2 - (_4Y * _mf1._7Z._w2);
var _id1 = _Nf1 * _tV._w2 + _Of1 * _tV._x2;
var _Qf1 = -_mf1._Te1 * (_id1 - _mf1._Ve1);
var _Sf1 = _qU(_mf1._iZ + _Qf1,
0.0);
_Qf1 = _Sf1 - _mf1._iZ;
_mf1._iZ = _Sf1;
_A01 = _Qf1 * _tV._w2;
_B01 = _Qf1 * _tV._x2;
_rf1._w2 -= _of1 * _A01;
_rf1._x2 -= _of1 * _B01;
_4Y -= _w21 * (_mf1._7Z._w2 * _B01 - _mf1._7Z._x2 * _A01);
_tf1._w2 += _pf1 * _A01;
_tf1._x2 += _pf1 * _B01;
_5Y += _x21 * (_mf1._8Z._w2 * _B01 - _mf1._8Z._x2 * _A01)
} else {
var _Tf1 = _lf1._mZ[0];
var _Uf1 = _lf1._mZ[1];
var _5a1 = _Tf1._iZ;
var _6a1 = _Uf1._iZ;
_7S(_5a1 >= 0.0 && _6a1 >= 0.0);
var _Vf1 = _tf1._w2 + (-_5Y * _Tf1._8Z._x2) - _rf1._w2 - (-_4Y * _Tf1._7Z._x2);
var _Wf1 = _tf1._x2 + (_5Y * _Tf1._8Z._w2) - _rf1._x2 - (_4Y * _Tf1._7Z._w2);
var _Xf1 = _tf1._w2 + (-_5Y * _Uf1._8Z._x2) - _rf1._w2 - (-_4Y * _Uf1._7Z._x2);
var _Yf1 = _tf1._x2 + (_5Y * _Uf1._8Z._w2) - _rf1._x2 - (_4Y * _Uf1._7Z._w2);
var _Zf1 = _Vf1 * _tV._w2 + _Wf1 * _tV._x2;
var __f1 = _Xf1 * _tV._w2 + _Yf1 * _tV._x2;
var _7a1 = _Zf1 - _Tf1._Ve1;
var _8a1 = __f1 - _Uf1._Ve1;
_7a1 -= _lf1._4f1._0L._w2 * _5a1 + _lf1._4f1._kT._w2 * _6a1;
_8a1 -= _lf1._4f1._0L._x2 * _5a1 + _lf1._4f1._kT._x2 * _6a1;
for (;;) {
var _Cf = -(_lf1._Te1._0L._w2 * _7a1 + _lf1._Te1._kT._w2 * _8a1);
var _0g1 = -(_lf1._Te1._0L._x2 * _7a1 + _lf1._Te1._kT._x2 * _8a1);
if (_Cf >= 0.0 && _0g1 >= 0.0) {
var _zh = _Cf - _5a1;
var _Ah = _0g1 - _6a1;
var _1g1 = _zh * _tV._w2;
var _2g1 = _zh * _tV._x2;
var _3g1 = _Ah * _tV._w2;
var _4g1 = _Ah * _tV._x2;
_rf1._w2 -= _of1 * (_1g1 + _3g1);
_rf1._x2 -= _of1 * (_2g1 + _4g1);
_4Y -= _w21 * ((_Tf1._7Z._w2 * _2g1 - _Tf1._7Z._x2 * _1g1) + (_Uf1._7Z._w2 * _4g1 - _Uf1._7Z._x2 * _3g1));
_tf1._w2 += _pf1 * (_1g1 + _3g1);
_tf1._x2 += _pf1 * (_2g1 + _4g1);
_5Y += _x21 * ((_Tf1._8Z._w2 * _2g1 - _Tf1._8Z._x2 * _1g1) + (_Uf1._8Z._w2 * _4g1 - _Uf1._8Z._x2 * _3g1));
_Tf1._iZ = _Cf;
_Uf1._iZ = _0g1;
break
}
_Cf = -_Tf1._Te1 * _7a1;
_0g1 = 0.0;
_Zf1 = 0.0;
__f1 = _lf1._4f1._0L._x2 * _Cf + _8a1;
if (_Cf >= 0.0 && __f1 >= 0.0) {
_zh = _Cf - _5a1;
_Ah = _0g1 - _6a1;
_1g1 = _zh * _tV._w2;
_2g1 = _zh * _tV._x2;
_3g1 = _Ah * _tV._w2;
_4g1 = _Ah * _tV._x2;
_rf1._w2 -= _of1 * (_1g1 + _3g1);
_rf1._x2 -= _of1 * (_2g1 + _4g1);
_4Y -= _w21 * ((_Tf1._7Z._w2 * _2g1 - _Tf1._7Z._x2 * _1g1) + (_Uf1._7Z._w2 * _4g1 - _Uf1._7Z._x2 * _3g1));
_tf1._w2 += _pf1 * (_1g1 + _3g1);
_tf1._x2 += _pf1 * (_2g1 + _4g1);
_5Y += _x21 * ((_Tf1._8Z._w2 * _2g1 - _Tf1._8Z._x2 * _1g1) + (_Uf1._8Z._w2 * _4g1 - _Uf1._8Z._x2 * _3g1));
_Tf1._iZ = _Cf;
_Uf1._iZ = _0g1;
break
}
_Cf = 0.0;
_0g1 = -_Uf1._Te1 * _8a1;
_Zf1 = _lf1._4f1._kT._w2 * _0g1 + _7a1;
__f1 = 0.0;
if (_0g1 >= 0.0 && _Zf1 >= 0.0) {
_zh = _Cf - _5a1;
_Ah = _0g1 - _6a1;
_1g1 = _zh * _tV._w2;
_2g1 = _zh * _tV._x2;
_3g1 = _Ah * _tV._w2;
_4g1 = _Ah * _tV._x2;
_rf1._w2 -= _of1 * (_1g1 + _3g1);
_rf1._x2 -= _of1 * (_2g1 + _4g1);
_4Y -= _w21 * ((_Tf1._7Z._w2 * _2g1 - _Tf1._7Z._x2 * _1g1) + (_Uf1._7Z._w2 * _4g1 - _Uf1._7Z._x2 * _3g1));
_tf1._w2 += _pf1 * (_1g1 + _3g1);
_tf1._x2 += _pf1 * (_2g1 + _4g1);
_5Y += _x21 * ((_Tf1._8Z._w2 * _2g1 - _Tf1._8Z._x2 * _1g1) + (_Uf1._8Z._w2 * _4g1 - _Uf1._8Z._x2 * _3g1));
_Tf1._iZ = _Cf;
_Uf1._iZ = _0g1;
break
}
_Cf = 0.0;
_0g1 = 0.0;
_Zf1 = _7a1;
__f1 = _8a1;
if (_Zf1 >= 0.0 && __f1 >= 0.0) {
_zh = _Cf - _5a1;
_Ah = _0g1 - _6a1;
_1g1 = _zh * _tV._w2;
_2g1 = _zh * _tV._x2;
_3g1 = _Ah * _tV._w2;
_4g1 = _Ah * _tV._x2;
_rf1._w2 -= _of1 * (_1g1 + _3g1);
_rf1._x2 -= _of1 * (_2g1 + _4g1);
_4Y -= _w21 * ((_Tf1._7Z._w2 * _2g1 - _Tf1._7Z._x2 * _1g1) + (_Uf1._7Z._w2 * _4g1 - _Uf1._7Z._x2 * _3g1));
_tf1._w2 += _pf1 * (_1g1 + _3g1);
_tf1._x2 += _pf1 * (_2g1 + _4g1);
_5Y += _x21 * ((_Tf1._8Z._w2 * _2g1 - _Tf1._8Z._x2 * _1g1) + (_Uf1._8Z._w2 * _4g1 - _Uf1._8Z._x2 * _3g1));
_Tf1._iZ = _Cf;
_Uf1._iZ = _0g1;
break
}
break
}
}
this._jf1[_SX]._y2 = _4Y;
this._jf1[_TX]._y2 = _5Y
}
},
_5g1: function() {
for (var _u2 = 0; _u2 < this._1W; ++_u2) {
var _lf1 = this._ef1[_u2];
var _pZ = this._kf1[_lf1._6f1]._de1();
for (var _Bf = 0; _Bf < _lf1._oZ;
++_Bf) {
_pZ._mZ[_Bf]._iZ = _lf1._mZ[_Bf]._iZ;
_pZ._mZ[_Bf]._jZ = _lf1._mZ[_Bf]._jZ
}
}
},
_6g1: function() {
var _7g1 = 0.0;
for (var _u2 = 0; _u2 < this._1W; ++_u2) {
var _ha1 = this._df1[_u2];
var _SX = _ha1._SX;
var _TX = _ha1._TX;
var __e1 = _ha1.__e1;
var _of1 = _ha1._Ye1;
var _w21 = _ha1._1f1;
var _0f1 = _ha1._0f1;
var _pf1 = _ha1._Ze1;
var _x21 = _ha1._2f1;
var _oZ = _ha1._oZ;
var _G71 = this._if1[_SX]._v2;
var _qf1 = this._if1[_SX]._Wg;
var _I71 = this._if1[_TX]._v2;
var _sf1 = this._if1[_TX]._Wg;
for (var _Bf = 0; _Bf < _oZ; ++_Bf) {
_cf1._ff1._rz._Tn(_qf1);
_cf1._gf1._rz._Tn(_sf1);
_cf1._ff1._yA._w2 = _G71._w2 - (_cf1._ff1._rz._v2 * __e1._w2 - _cf1._ff1._rz._ov * __e1._x2);
_cf1._ff1._yA._x2 = _G71._x2 - (_cf1._ff1._rz._ov * __e1._w2 + _cf1._ff1._rz._v2 * __e1._x2);
_cf1._gf1._yA._w2 = _I71._w2 - (_cf1._gf1._rz._v2 * _0f1._w2 - _cf1._gf1._rz._ov * _0f1._x2);
_cf1._gf1._yA._x2 = _I71._x2 - (_cf1._gf1._rz._ov * _0f1._w2 + _cf1._gf1._rz._v2 * _0f1._x2);
_cf1._hf1._zZ(_ha1, _cf1._ff1, _cf1._gf1, _Bf);
var _tV = _cf1._hf1._tV;
var _kZ = _cf1._hf1._kZ;
var _n_ = _cf1._hf1._n_;
var _8g1 = _kZ._w2 - _G71._w2;
var _9g1 = _kZ._x2 - _G71._x2;
var _ag1 = _kZ._w2 - _I71._w2;
var _bg1 = _kZ._x2 - _I71._x2;
_7g1 = _oU(_7g1, _n_);
var _hU = _sU(_tS * (_n_ + _hS), -_nS, 0.0);
var _uf1 = _8g1 * _tV._x2 - _9g1 * _tV._w2;
var _vf1 = _ag1 * _tV._x2 - _bg1 * _tV._w2;
var _4f1 = _of1 + _pf1 + _w21 * _uf1 * _uf1 + _x21 * _vf1 * _vf1;
var _W41 = _4f1 > 0.0 ? -_hU / _4f1 : 0.0;
var _A01 = _W41 * _tV._w2;
var _B01 = _W41 * _tV._x2;
_G71._w2 -= _of1 * _A01;
_G71._x2 -= _of1 * _B01;
_qf1 -= _w21 * (_8g1 * _B01 - _9g1 * _A01);
_I71._w2 += _pf1 * _A01;
_I71._x2 += _pf1 * _B01;
_sf1 += _x21 * (_ag1 * _B01 - _bg1 * _A01)
}
this._if1[_SX]._Wg = _qf1;
this._if1[_TX]._Wg = _sf1
}
return _7g1 >= -3.0 * _hS
},
_cg1: function(_dg1,
_eg1) {
var _7g1 = 0.0;
for (var _u2 = 0; _u2 < this._1W; ++_u2) {
var _ha1 = this._df1[_u2];
var _SX = _ha1._SX;
var _TX = _ha1._TX;
var __e1 = _ha1.__e1;
var _0f1 = _ha1._0f1;
var _oZ = _ha1._oZ;
var _of1 = 0.0;
var _w21 = 0.0;
if (_SX == _dg1 || _SX == _eg1) {
_of1 = _ha1._Ye1;
_w21 = _ha1._1f1
}
var _pf1 = 0.0;
var _x21 = 0.0;
if (_TX == _dg1 || _TX == _eg1) {
_pf1 = _ha1._Ze1;
_x21 = _ha1._2f1
}
var _G71 = this._if1[_SX]._v2;
var _qf1 = this._if1[_SX]._Wg;
var _I71 = this._if1[_TX]._v2;
var _sf1 = this._if1[_TX]._Wg;
for (var _Bf = 0; _Bf < _oZ; ++_Bf) {
_cf1._ff1._rz._Tn(_qf1);
_cf1._gf1._rz._Tn(_sf1);
_cf1._ff1._yA._0T(_XS._4T(_G71, _bU(_cf1._ff1._rz, __e1)));
_cf1._gf1._yA._0T(_XS._4T(_I71, _bU(_cf1._gf1._rz, _0f1)));
_cf1._hf1._zZ(_ha1, _cf1._ff1, _cf1._gf1, _Bf);
var _tV = _cf1._hf1._tV;
var _kZ = _cf1._hf1._kZ;
var _n_ = _cf1._hf1._n_;
var _7Z = _XS._4T(_kZ, _G71);
var _8Z = _XS._4T(_kZ, _I71);
_7g1 = _oU(_7g1, _n_);
var _hU = _sU(_uS * (_n_ + _hS), -_nS, 0.0);
var _uf1 = _YT(_7Z, _tV);
var _vf1 = _YT(_8Z, _tV);
var _4f1 = _of1 + _pf1 + _w21 * _uf1 * _uf1 + _x21 * _vf1 * _vf1;
var _W41 = _4f1 > 0.0 ? -_hU / _4f1 : 0.0;
var _q01 = _XS._9u(_W41, _tV);
_G71._4T(_XS._9u(_of1, _q01));
_qf1 -= _w21 * _YT(_7Z, _q01);
_I71._yn(_XS._9u(_pf1, _q01));
_sf1 += _x21 * _YT(_8Z, _q01)
}
this._if1[_SX]._Wg = _qf1;
this._if1[_TX]._Wg = _sf1
}
return _7g1 >= -1.5 * _hS
}
};
function _071() {
this._m81 = [];
this._kf1 = [];
this._fg1 = [];
this._jf1 = [];
this._if1 = []
}
var _gg1 = _OR._0S("solve initialization", "solve");
var _hg1 = _OR._0S("warm starting", "solve initialization");
var _ig1 = _OR._0S("solve velocities", "solve");
var _jg1 = _OR._0S("solve positions", "solve");
_071._kg1 = new _D61();
_071._lg1 = new _af1();
_071._mg1 = new _cf1();
_071.prototype = {
_am: function() {
this._P61 = 0;
this._281 = 0;
this._Q61 = 0
},
_zZ: function(_ng1, _og1, _pg1, listener) {
this._qg1 = listener;
this._B81 = _ng1;
this._C81 = _og1;
this._rg1 = _pg1;
this._P61 = 0;
this._281 = 0;
this._Q61 = 0;
this._m81.length = _ng1;
this._kf1.length = _og1;
this._fg1.length = _pg1;
this._jf1.length = _ng1;
this._if1.length = _ng1
},
_pT: function(_JR, _sb, _D31) {
_gg1.start();
var _z2 = _JR._v61;
for (var _u2 = 0; _u2 < this._P61; ++_u2) {
var _xf = this._m81[_u2];
this._if1[_u2]._v2._0T(_xf._T31._v2);
var _Wg = _xf._T31._Wg;
this._jf1[_u2]._8h._0T(_xf._Y31);
var _y2 = _xf._Z31;
_xf._T31._PT._0T(_xf._T31._v2);
_xf._T31._RT = _xf._T31._Wg;
if (_xf._fV == _x31._541) {
this._jf1[_u2]._8h._w2 += _z2 * ((_xf._141 * _sb._w2) + (_xf._741 * _xf._241._w2));
this._jf1[_u2]._8h._x2 += _z2 * ((_xf._141 * _sb._x2) + (_xf._741 * _xf._241._x2));
_y2 += _z2 * _xf._941 * _xf._341;
this._jf1[_u2]._8h._w2 *= 1.0 / (1.0 + _z2 * _xf.__31);
this._jf1[_u2]._8h._x2 *= 1.0 / (1.0 + _z2 * _xf.__31);
_y2 *= 1.0 / (1.0 + _z2 * _xf._041)
}
this._if1[_u2]._Wg = _Wg;
this._jf1[_u2]._y2 = _y2
}
_071._kg1._JR = _JR;
_071._kg1._E61 = this._if1;
_071._kg1._F61 = this._jf1;
_071._lg1._JR = _JR;
_071._lg1._bf1 = this._kf1;
_071._lg1._fg = this._281;
_071._lg1._E61 = this._if1;
_071._lg1._F61 = this._jf1;
_071._lg1._sg1 = this._tg1;
_071._mg1._aK(_071._lg1);
_071._mg1._nf1();
if (_JR._A61) {
_hg1.start();
_071._mg1._Lf1();
_hg1.stop()
}
for (var _u2 = 0; _u2 < this._Q61; ++_u2) {
this._fg1[_u2]._ug1(_071._kg1)
}
_gg1.stop();
_ig1.start();
for (var _u2 = 0; _u2 < _JR._y61; ++_u2) {
for (var _Bf = 0; _Bf < this._Q61; ++_Bf) {
this._fg1[_Bf]._Mf1(_071._kg1)
}
_071._mg1._Mf1()
}
_071._mg1._5g1();
_ig1.stop();
_jg1.start();
for (var _u2 = 0; _u2 < this._P61; ++_u2) {
var _v2 = this._if1[_u2]._v2;
var _Wg = this._if1[_u2]._Wg;
var _8h = this._jf1[_u2]._8h;
var _y2 = this._jf1[_u2]._y2;
var _vg1 = _z2 * _8h._w2;
var _wg1 = _z2 * _8h._x2;
var _xg1 = _vg1 * _vg1 + _wg1 * _wg1;
if (_xg1 > _qS) {
var _yg1 = _pS / _US(_xg1);
_8h._w2 *= _yg1;
_8h._x2 *= _yg1
}
var _E4 = _z2 * _y2;
if (_E4 * _E4 > _sS) {
var _yg1 = _rS / _lU(_E4);
_y2 *= _yg1
}
_v2._w2 += _z2 * _8h._w2;
_v2._x2 += _z2 * _8h._x2;
_Wg += _z2 * _y2;
this._if1[_u2]._Wg = _Wg;
this._jf1[_u2]._y2 = _y2
}
var _zg1 = !1;
for (var _u2 = 0; _u2 < _JR._z61; ++_u2) {
var _Ag1 = _071._mg1._6g1();
var _Bg1 = !0;
for (var _Bf = 0; _Bf < this._Q61;
++_Bf) {
var _Cg1 = this._fg1[_Bf]._6g1(_071._kg1);
_Bg1 = _Bg1 && _Cg1
}
if (_Ag1 && _Bg1) {
_zg1 = !0;
break
}
}
for (var _u2 = 0; _u2 < this._P61; ++_u2) {
var body = this._m81[_u2];
body._T31._v2._0T(this._if1[_u2]._v2);
body._T31._Wg = this._if1[_u2]._Wg;
body._Y31._0T(this._jf1[_u2]._8h);
body._Z31 = this._jf1[_u2]._y2;
body._A51()
}
_jg1.stop();
this._Dg1(_071._mg1._ef1);
if (_D31) {
var _Eg1 = _aS;
var _Fg1 = _wS * _wS;
var _Gg1 = _xS * _xS;
for (var _u2 = 0; _u2 < this._P61; ++_u2) {
var _xf = this._m81[_u2];
if (_xf._hV() == _x31._y31) {
continue
}
if ((_xf._L31 & _x31._O31) == 0 || _xf._Z31 * _xf._Z31 > _Gg1 || _XT(_xf._Y31,
_xf._Y31) > _Fg1) {
_xf._441 = 0.0;
_Eg1 = 0.0
} else {
_xf._441 += _z2;
_Eg1 = _oU(_Eg1, _xf._441)
}
}
if (_Eg1 >= _vS && _zg1) {
for (var _u2 = 0; _u2 < this._P61; ++_u2) {
var _xf = this._m81[_u2];
_xf._AI(!1)
}
}
}
},
_A71: function(_D81, _dg1, _eg1) {
_7S(_dg1 < this._P61);
_7S(_eg1 < this._P61);
for (var _u2 = 0; _u2 < this._P61; ++_u2) {
var _xf = this._m81[_u2];
this._if1[_u2]._v2._0T(_xf._T31._v2);
this._if1[_u2]._Wg = _xf._T31._Wg;
this._jf1[_u2]._8h._0T(_xf._Y31);
this._jf1[_u2]._y2 = _xf._Z31
}
_071._lg1._bf1 = this._kf1;
_071._lg1._fg = this._281;
_071._lg1._JR = _D81;
_071._lg1._E61 = this._if1;
_071._lg1._F61 = this._jf1;
_071._mg1._aK(_071._lg1);
for (var _u2 = 0; _u2 < _D81._z61; ++_u2) {
var _Ag1 = _071._mg1._cg1(_dg1, _eg1);
if (_Ag1) {
break
}
}
this._m81[_dg1]._T31._PT._0T(this._if1[_dg1]._v2);
this._m81[_dg1]._T31._RT = this._if1[_dg1]._Wg;
this._m81[_eg1]._T31._PT._0T(this._if1[_eg1]._v2);
this._m81[_eg1]._T31._RT = this._if1[_eg1]._Wg;
_071._mg1._nf1();
for (var _u2 = 0; _u2 < _D81._y61; ++_u2) {
_071._mg1._Mf1()
}
var _z2 = _D81._v61;
for (var _u2 = 0; _u2 < this._P61; ++_u2) {
var _v2 = this._if1[_u2]._v2;
var _Wg = this._if1[_u2]._Wg;
var _8h = this._jf1[_u2]._8h;
var _y2 = this._jf1[_u2]._y2;
var _Hg1 = _XS._9u(_z2, _8h);
if (_XT(_Hg1, _Hg1) > _qS) {
var _yg1 = _pS / _Hg1._5T();
_8h._9u(_yg1)
}
var _E4 = _z2 * _y2;
if (_E4 * _E4 > _sS) {
var _yg1 = _rS / _lU(_E4);
_y2 *= _yg1
}
_v2._yn(_XS._9u(_z2, _8h));
_Wg += _z2 * _y2;
this._if1[_u2]._Wg = _Wg;
this._jf1[_u2]._y2 = _y2;
var body = this._m81[_u2];
body._T31._v2._0T(_v2);
body._T31._Wg = _Wg;
body._Y31._0T(_8h);
body._Z31 = _y2;
body._A51()
}
this._Dg1(_071._mg1._ef1)
},
_d81: function(body) {
_7S(this._P61 < this._B81);
body._K31 = this._P61;
this._m81[this._P61] = body;
if (!this._if1[this._P61]) {
this._if1[this._P61] = new _B61();
this._jf1[this._P61] = new _C61()
}++this._P61
},
_k81: function(_A41) {
_7S(this._281 < this._C81);
this._kf1[this._281++] = _A41
},
_l81: function(_D51) {
_7S(this._Q61 < this._rg1);
this._fg1[this._Q61++] = _D51
},
_Dg1: function(_Ig1) {
if (this._qg1 == null) {
return
}
for (var _u2 = 0; _u2 < this._281; ++_u2) {
var _v2 = this._kf1[_u2];
var _lf1 = _Ig1[_u2];
var _W41 = new _h61();
_W41._fg = _lf1._oZ;
for (var _Bf = 0; _Bf < _lf1._oZ; ++_Bf) {
_W41._i61[_Bf] = _lf1._mZ[_Bf]._iZ;
_W41._j61[_Bf] = _lf1._mZ[_Bf]._jZ
}
this._qg1._p61(_v2, _W41)
}
}
};
function _Jg1() {
this._Kg1 = new _XS();
this._Lg1 = 0;
this._Mg1 = 0
};
function _Ng1() {
this._0_ = null;
this._D51 = null;
this._r71 = null;
this._Yn = null
};
function _Og1() {
this.type = _o71._Pg1;
this._cX = null;
this._u71 = null;
this._v71 = null;
this._w71 = !1
};
_Og1.prototype = {
_dT: function(data, _A81, _Qg1) {
this._u71 = _A81[data['bodyA']];
this._v71 = _A81[data['bodyB']];
this._w71 = data['collideConnected']
}
};
function _o71(_j41) {
_7S(_j41._u71 != _j41._v71);
this._fV = _j41.type;
this._W31 = null;
this._X31 = null;
this._s71 = _j41._u71;
this._q71 = _j41._v71;
this._Yw = 0;
this._E51 = _j41._w71;
this._981 = !1;
this._a41 = _j41._cX;
this._p71 = new _Ng1();
this._p71._D51 = null;
this._p71._0_ = null;
this._p71._r71 = null;
this._p71._Yn = null;
this._t71 = new _Ng1();
this._t71._D51 = null;
this._t71._0_ = null;
this._t71._r71 = null;
this._t71._Yn = null
}
_o71.prototype = {
_hV: function() {
return this._fV;
},
_E81: function() {
return this._s71
},
_F81: function() {
return this._q71
},
_G81: function() {},
_H81: function() {},
_Rg1: function(_w61) {},
_Sg1: function(_w61) {},
_x51: function() {
return this._X31
},
_lX: function() {
return this._a41
},
_y51: function(data) {
this._a41 = data
},
_r51: function() {
return this._s71._r51() && this._q71._r51()
},
_Tg1: function() {
return this._E51
},
_HX: function(_IX) {},
_ug1: function(data) {},
_Mf1: function(data) {},
_6g1: function(data) {},
_bT: function(_cT) {
var _Nw = _cT || {};
_Nw['bodyA'] = null;
_Nw['bodyB'] = null;
_Nw['type'] = this._fV;
_Nw['collideConnected'] = this._E51;
return _Nw
}
};
_o71._Ug1 = 0;
_o71._Vg1 = 1;
_o71._Wg1 = 2;
_o71._Xg1 = 3;
_o71._Pg1 = 0;
_o71._Yg1 = 1;
_o71._Zg1 = 2;
_o71._I81 = 3;
_o71._J81 = 4;
_o71._N81 = 5;
_o71.__g1 = 6;
_o71._0h1 = 7;
_o71._1h1 = 8;
_o71._2h1 = 9;
_o71._3h1 = 10;
_o71._O81 = 11;
_o71._o41 = function(_j41) {
var _D51 = null;
switch (_j41.type) {
case _o71._I81:
_D51 = new _4h1(_j41);
break;
case _o71._N81:
_D51 = new _5h1(_j41);
break;
case _o71._Zg1:
_D51 = new _6h1(_j41);
break;
case _o71._Yg1:
_D51 = new _7h1(_j41);
break;
case _o71._J81:
_D51 = new _8h1(_j41);
break;
case _o71.__g1:
_D51 = new _9h1(_j41);
break;
case _o71._0h1:
_D51 = new _ah1(_j41);
break;
case _o71._1h1:
_D51 = new _bh1(_j41);
break;
case _o71._2h1:
_D51 = new _ch1(_j41);
break;
case _o71._3h1:
_D51 = new _dh1(_j41);
break;
case _o71._O81:
_D51 = new _eh1(_j41);
break;
default:
_7S(!1);
break
}
return _D51
};
_o71._F41 = function(_D51) {};
function _fh1() {
this.parent.call(this);
this.type = _o71._Yg1;
this._gh1 = new _XS();
this._hh1 = new _XS();
this._ih1 = 0.0;
this._jh1 = 0.0;
this._kh1 = 0.0;
this._lh1 = 0.0;
this._mh1 = 0.0;
this._nh1 = !1;
this._oh1 = !1;
Object.seal(this);
}
_fh1.prototype = {
_zZ: function(_t81, _u81, anchor) {
this._u71 = _t81;
this._v71 = _u81;
this._gh1 = this._u71._451(anchor);
this._hh1 = this._v71._451(anchor);
this._ih1 = this._v71._IT() - this._u71._IT()
},
_dT: function(data, _A81, _Qg1) {
this.parent.prototype._dT.call(this,
data, _A81, _Qg1);
this._gh1._dT(data['localAnchorA']);
this._hh1._dT(data['localAnchorB']);
this._ih1 = data['referenceAngle'];
this._jh1 = data['lowerAngle'];
this._kh1 = data['upperAngle'];
this._lh1 = data['maxMotorTorque'];
this._mh1 = data['motorSpeed'];
this._nh1 = data['enableLimit'];
this._oh1 = data['enableMotor']
}
};
_fh1._BR(_Og1);
function _7h1(_j41) {
this.parent.call(this, _j41);
this._ph1 = _j41._gh1._4e();
this._qh1 = _j41._hh1._4e();
this._rh1 = _j41._ih1;
this._sh1 = new _fT();
this._th1 = 0.0;
this._uh1 = _j41._jh1;
this._vh1 = _j41._kh1;
this._wh1 = _j41._lh1;
this._xh1 = _j41._mh1;
this._yh1 = _j41._nh1;
this._zh1 = _j41._oh1;
this._Ah1 = _o71._Ug1;
this._ae1 = 0;
this._be1 = 0;
this._Bh1 = new _XS();
this._Ch1 = new _XS();
this._Dh1 = new _XS();
this._Eh1 = new _XS();
this._Fh1 = 0;
this._Gh1 = 0;
this._Hh1 = 0;
this._Ih1 = 0;
this._641 = new _uT();
this._Jh1 = 0
}
_7h1.prototype = {
_G81: function() {
return this._s71._151(this._ph1)
},
_H81: function() {
return this._q71._151(this._qh1)
},
_Kh1: function() {
return this._ph1
},
_Lh1: function() {
return this._qh1
},
_Mh1: function() {
return this._rh1
},
_Nh1: function() {
var _t81 = this._s71;
var _u81 = this._q71;
return _u81._T31._Wg - _t81._T31._Wg - this._rh1
},
_Oh1: function() {
var _t81 = this._s71;
var _u81 = this._q71;
return _u81._Z31 - _t81._Z31
},
_Ph1: function() {
return this._yh1
},
_Qh1: function(_l51) {
if (_l51 != this._yh1) {
this._s71._AI(!0);
this._q71._AI(!0);
this._yh1 = _l51;
this._sh1._ei = 0.0
}
},
_Rh1: function() {
return this._uh1
},
_Sh1: function() {
return this._vh1
},
_Th1: function(_xW, _yW) {
_7S(_xW <= _yW);
if (_xW != this._uh1 || _yW != this._vh1) {
this._s71._AI(!0);
this._q71._AI(!0);
this._sh1._ei = 0.0;
this._uh1 = _xW;
this._vh1 = _yW
}
},
_Uh1: function() {
return this._zh1
},
_Vh1: function(_l51) {
this._s71._AI(!0);
this._q71._AI(!0);
this._zh1 = _l51
},
_Wh1: function(_Rc) {
this._s71._AI(!0);
this._q71._AI(!0);
this._xh1 = _Rc
},
_Xh1: function() {
return this._xh1;
},
_Yh1: function(_U41) {
this._s71._AI(!0);
this._q71._AI(!0);
this._wh1 = _U41
},
_Zh1: function() {
return this._wh1
},
_Rg1: function(_w61) {
var _q01 = new _XS(this._sh1._w2, this._sh1._x2);
return _XS._9u(_w61, _q01)
},
_Sg1: function(_w61) {
return _w61 * this._sh1._ei
},
__h1: function(_w61) {
return _w61 * this._th1
},
_ug1: function(data) {
this._ae1 = this._s71._K31;
this._be1 = this._q71._K31;
this._Dh1 = this._s71._T31._OT;
this._Eh1 = this._q71._T31._OT;
this._Fh1 = this._s71._741;
this._Gh1 = this._q71._741;
this._Hh1 = this._s71._941;
this._Ih1 = this._q71._941;
var _qf1 = data._E61[this._ae1]._Wg;
var _rf1 = data._F61[this._ae1]._8h._4e();
var _4Y = data._F61[this._ae1]._y2;
var _sf1 = data._E61[this._be1]._Wg;
var _tf1 = data._F61[this._be1]._8h._4e();
var _5Y = data._F61[this._be1]._y2;
var _0i1 = new _HT(_qf1),
_1i1 = new _HT(_sf1);
this._Bh1 = _bU(_0i1, _XS._4T(this._ph1,
this._Dh1));
this._Ch1 = _bU(_1i1, _XS._4T(this._qh1, this._Eh1));
var _of1 = this._Fh1,
_pf1 = this._Gh1;
var _w21 = this._Hh1,
_x21 = this._Ih1;
var _F31 = (_w21 + _x21 == 0.0);
this._641._0L._w2 = _of1 + _pf1 + this._Bh1._x2 * this._Bh1._x2 * _w21 + this._Ch1._x2 * this._Ch1._x2 * _x21;
this._641._kT._w2 = -this._Bh1._x2 * this._Bh1._w2 * _w21 - this._Ch1._x2 * this._Ch1._w2 * _x21;
this._641._wT._w2 = -this._Bh1._x2 * _w21 - this._Ch1._x2 * _x21;
this._641._0L._x2 = this._641._kT._w2;
this._641._kT._x2 = _of1 + _pf1 + this._Bh1._w2 * this._Bh1._w2 * _w21 + this._Ch1._w2 * this._Ch1._w2 * _x21;
this._641._wT._x2 = this._Bh1._w2 * _w21 + this._Ch1._w2 * _x21;
this._641._0L._ei = this._641._wT._w2;
this._641._kT._ei = this._641._wT._x2;
this._641._wT._ei = _w21 + _x21;
this._Jh1 = _w21 + _x21;
if (this._Jh1 > 0.0) {
this._Jh1 = 1.0 / this._Jh1
}
if (this._zh1 == !1 || _F31) {
this._th1 = 0.0
}
if (this._yh1 && _F31 == !1) {
var _2i1 = _sf1 - _qf1 - this._rh1;
if (_lU(this._vh1 - this._uh1) < 2.0 * _iS) {
this._Ah1 = _o71._Xg1
} else if (_2i1 <= this._uh1) {
if (this._Ah1 != _o71._Vg1) {
this._sh1._ei = 0.0
}
this._Ah1 = _o71._Vg1
} else if (_2i1 >= this._vh1) {
if (this._Ah1 != _o71._Wg1) {
this._sh1._ei = 0.0
}
this._Ah1 = _o71._Wg1
} else {
this._Ah1 = _o71._Ug1;
this._sh1._ei = 0.0
}
} else {
this._Ah1 = _o71._Ug1
} if (data._JR._A61) {
this._sh1._9u(data._JR._x61);
this._th1 *= data._JR._x61;
var _q01 = new _XS(this._sh1._w2, this._sh1._x2);
_rf1._4T(_XS._9u(_of1, _q01));
_4Y -= _w21 * (_YT(this._Bh1, _q01) + this._th1 + this._sh1._ei);
_tf1._yn(_XS._9u(_pf1, _q01));
_5Y += _x21 * (_YT(this._Ch1, _q01) + this._th1 + this._sh1._ei)
} else {
this._sh1._YS();
this._th1 = 0.0
}
data._F61[this._ae1]._8h._0T(_rf1);
data._F61[this._ae1]._y2 = _4Y;
data._F61[this._be1]._8h._0T(_tf1);
data._F61[this._be1]._y2 = _5Y
},
_Mf1: function(data) {
var _rf1 = data._F61[this._ae1]._8h._4e();
var _4Y = data._F61[this._ae1]._y2;
var _tf1 = data._F61[this._be1]._8h._4e();
var _5Y = data._F61[this._be1]._y2;
var _of1 = this._Fh1,
_pf1 = this._Gh1;
var _w21 = this._Hh1,
_x21 = this._Ih1;
var _F31 = (_w21 + _x21 == 0.0);
if (this._zh1 && this._Ah1 != _o71._Xg1 && _F31 == !1) {
var _3i1 = _5Y - _4Y - this._xh1;
var _W41 = -this._Jh1 * _3i1;
var _4i1 = this._th1;
var _5i1 = data._JR._v61 * this._wh1;
this._th1 = _sU(this._th1 + _W41, -_5i1, _5i1);
_W41 = this._th1 - _4i1;
_4Y -= _w21 * _W41;
_5Y += _x21 * _W41
}
if (this._yh1 && this._Ah1 != _o71._Ug1 && _F31 == !1) {
var _6i1 = _XS._4T(_XS._4T(_XS._yn(_tf1, __T(_5Y, this._Ch1)), _rf1), __T(_4Y, this._Bh1));
var _7i1 = _5Y - _4Y;
var _3i1 = new _fT(_6i1._w2, _6i1._x2, _7i1);
var _W41 = this._641._xT(_3i1)._1T();
if (this._Ah1 == _o71._Xg1) {
this._sh1._yn(_W41)
} else if (this._Ah1 == _o71._Vg1) {
var _Sf1 = this._sh1._ei + _W41._ei;
if (_Sf1 < 0.0) {
var _8i1 = _XS._yn(_6i1._1T(), _XS._9u(this._sh1._ei, new _XS(this._641._wT._w2, this._641._wT._x2)));
var _9i1 = this._641._AT(_8i1);
_W41._w2 = _9i1._w2;
_W41._x2 = _9i1._x2;
_W41._ei = -this._sh1._ei;
this._sh1._w2 += _9i1._w2;
this._sh1._x2 += _9i1._x2;
this._sh1._ei = 0.0
} else {
this._sh1._yn(_W41)
}
} else if (this._Ah1 == _o71._Wg1) {
var _Sf1 = this._sh1._ei + _W41._ei;
if (_Sf1 > 0.0) {
var _8i1 = _XS._yn(_6i1._1T(), _XS._9u(this._sh1._ei, new _XS(this._641._wT._w2, this._641._wT._x2)));
var _9i1 = this._641._AT(_8i1);
_W41._w2 = _9i1._w2;
_W41._x2 = _9i1._x2;
_W41._ei = -this._sh1._ei;
this._sh1._w2 += _9i1._w2;
this._sh1._x2 += _9i1._x2;
this._sh1._ei = 0.0
} else {
this._sh1._yn(_W41)
}
}
var _q01 = new _XS(_W41._w2, _W41._x2);
_rf1._4T(_XS._9u(_of1,
_q01));
_4Y -= _w21 * (_YT(this._Bh1, _q01) + _W41._ei);
_tf1._yn(_XS._9u(_pf1, _q01));
_5Y += _x21 * (_YT(this._Ch1, _q01) + _W41._ei)
} else {
var _3i1 = _XS._4T(_XS._4T(_XS._yn(_tf1, __T(_5Y, this._Ch1)), _rf1), __T(_4Y, this._Bh1));
var _W41 = this._641._AT(_3i1._1T());
this._sh1._w2 += _W41._w2;
this._sh1._x2 += _W41._x2;
_rf1._4T(_XS._9u(_of1, _W41));
_4Y -= _w21 * _YT(this._Bh1, _W41);
_tf1._yn(_XS._9u(_pf1, _W41));
_5Y += _x21 * _YT(this._Ch1, _W41)
}
data._F61[this._ae1]._8h._0T(_rf1);
data._F61[this._ae1]._y2 = _4Y;
data._F61[this._be1]._8h._0T(_tf1);
data._F61[this._be1]._y2 = _5Y
},
_6g1: function(data) {
var _G71 = data._E61[this._ae1]._v2._4e();
var _qf1 = data._E61[this._ae1]._Wg;
var _I71 = data._E61[this._be1]._v2._4e();
var _sf1 = data._E61[this._be1]._Wg;
var _0i1 = new _HT(_qf1),
_1i1 = new _HT(_sf1);
var _ai1 = 0.0;
var _bi1 = 0.0;
var _F31 = (this._Hh1 + this._Ih1 == 0.0);
if (this._yh1 && this._Ah1 != _o71._Ug1 && _F31 == !1) {
var _Cg = _sf1 - _qf1 - this._rh1;
var _ci1 = 0.0;
if (this._Ah1 == _o71._Xg1) {
var _hU = _sU(_Cg - this._uh1, -_oS, _oS);
_ci1 = -this._Jh1 * _hU;
_ai1 = _lU(_hU)
} else if (this._Ah1 == _o71._Vg1) {
var _hU = _Cg - this._uh1;
_ai1 = -_hU;
_hU = _sU(_hU + _iS, -_oS, 0.0);
_ci1 = -this._Jh1 * _hU
} else if (this._Ah1 == _o71._Wg1) {
var _hU = _Cg - this._vh1;
_ai1 = _hU;
_hU = _sU(_hU - _iS, 0.0, _oS);
_ci1 = -this._Jh1 * _hU
}
_qf1 -= this._Hh1 * _ci1;
_sf1 += this._Ih1 * _ci1
} {
_0i1._Tn(_qf1);
_1i1._Tn(_sf1);
var _7Z = _bU(_0i1, _XS._4T(this._ph1, this._Dh1));
var _8Z = _bU(_1i1, _XS._4T(this._qh1, this._Eh1));
var _hU = _XS._4T(_XS._4T(_XS._yn(_I71, _8Z), _G71), _7Z);
_bi1 = _hU._5T();
var _of1 = this._Fh1,
_pf1 = this._Gh1;
var _w21 = this._Hh1,
_x21 = this._Ih1;
var _4f1 = new _hT();
_4f1._0L._w2 = _of1 + _pf1 + _w21 * _7Z._x2 * _7Z._x2 + _x21 * _8Z._x2 * _8Z._x2;
_4f1._0L._x2 = -_w21 * _7Z._w2 * _7Z._x2 - _x21 * _8Z._w2 * _8Z._x2;
_4f1._kT._w2 = _4f1._0L._x2;
_4f1._kT._x2 = _of1 + _pf1 + _w21 * _7Z._w2 * _7Z._w2 + _x21 * _8Z._w2 * _8Z._w2;
var _W41 = _4f1._pT(_hU)._1T();
_G71._4T(_XS._9u(_of1, _W41));
_qf1 -= _w21 * _YT(_7Z, _W41);
_I71._yn(_XS._9u(_pf1, _W41));
_sf1 += _x21 * _YT(_8Z, _W41)
}
data._E61[this._ae1]._v2._0T(_G71);
data._E61[this._ae1]._Wg = _qf1;
data._E61[this._be1]._v2._0T(_I71);
data._E61[this._be1]._Wg = _sf1;
return _bi1 <= _hS && _ai1 <= _iS
},
_bT: function(_cT) {
var _Nw = _cT || {};
this.parent.prototype._bT.call(this,
_Nw);
_Nw['localAnchorA'] = this._ph1._bT();
_Nw['localAnchorB'] = this._qh1._bT();
_Nw['referenceAngle'] = this._rh1;
_Nw['lowerAngle'] = this._uh1;
_Nw['upperAngle'] = this._vh1;
_Nw['maxMotorTorque'] = this._wh1;
_Nw['motorSpeed'] = this._xh1;
_Nw['enableLimit'] = this._yh1;
_Nw['enableMotor'] = this._zh1;
return _Nw
}
};
_7h1._BR(_o71);
function _di1() {
this.parent.call(this);
this.type = _o71._N81;
this.target = new _XS(0.0, 0.0);
this._ei1 = 0.0;
this._fi1 = 5.0;
this._gi1 = 0.7;
Object.seal(this)
}
_di1._BR(_Og1);
function _5h1(_j41) {
this.parent.call(this,
_j41);
_7S(_j41.target._9T());
_7S(_NS(_j41._ei1) && _j41._ei1 >= 0.0);
_7S(_NS(_j41._fi1) && _j41._fi1 >= 0.0);
_7S(_NS(_j41._gi1) && _j41._gi1 >= 0.0);
this._hi1 = _j41.target._4e();
this._qh1 = _fU(this._q71._TT(), this._hi1);
this._ii1 = _j41._ei1;
this._sh1 = new _XS();
this._ji1 = _j41._fi1;
this._ki1 = _j41._gi1;
this._li1 = 0.0;
this._mi1 = 0.0;
this._ae1 = 0;
this._be1 = 0;
this._Ch1 = new _XS();
this._Eh1 = new _XS();
this._Gh1 = 0;
this._Ih1 = 0;
this._641 = new _hT();
this._ni1 = new _XS()
}
_5h1.prototype = {
_G81: function() {
return this._hi1
},
_H81: function() {
return this._q71._151(this._qh1)
},
_Rg1: function(_w61) {
return _XS._9u(_w61, this._sh1)
},
_Sg1: function(_w61) {
return _w61 * 0.0
},
_oi1: function(target) {
if (this._q71._p51() == !1) {
this._q71._AI(!0)
}
this._hi1._0T(target)
},
_pi1: function() {
return this._hi1
},
_qi1: function(_Q41) {
this._ii1 = _Q41
},
_ri1: function() {
return this._ii1
},
_si1: function(_ti1) {
this._ji1 = _ti1
},
_ui1: function() {
return this._ji1
},
_vi1: function(_yg1) {
this._ki1 = _yg1
},
_wi1: function() {
return this._ki1
},
_HX: function(_IX) {
this._hi1._4T(_IX)
},
_ug1: function(data) {
this._be1 = this._q71._K31;
this._Eh1._0T(this._q71._T31._OT);
this._Gh1 = this._q71._741;
this._Ih1 = this._q71._941;
var _I71 = data._E61[this._be1]._v2._4e();
var _sf1 = data._E61[this._be1]._Wg;
var _tf1 = data._F61[this._be1]._8h._4e();
var _5Y = data._F61[this._be1]._y2;
var _1i1 = new _HT(_sf1);
var _cV = this._q71._Y41();
var _xi1 = 2.0 * _cS * this._ji1;
var _Bp = 2.0 * _cV * this._ki1 * _xi1;
var _dZ = _cV * (_xi1 * _xi1);
var _z2 = data._JR._v61;
_7S(_Bp + _z2 * _dZ > _bS);
this._mi1 = _z2 * (_Bp + _z2 * _dZ);
if (this._mi1 != 0.0) {
this._mi1 = 1.0 / this._mi1
}
this._li1 = _z2 * _dZ * this._mi1;
this._Ch1._0T(_bU(_1i1, _XS._4T(this._qh1, this._Eh1)));
var _4f1 = new _hT();
_4f1._0L._w2 = this._Gh1 + this._Ih1 * this._Ch1._x2 * this._Ch1._x2 + this._mi1;
_4f1._0L._x2 = -this._Ih1 * this._Ch1._w2 * this._Ch1._x2;
_4f1._kT._w2 = _4f1._0L._x2;
_4f1._kT._x2 = this._Gh1 + this._Ih1 * this._Ch1._w2 * this._Ch1._w2 + this._mi1;
this._641._0T(_4f1._mT());
this._ni1._0T(_XS._4T(_XS._yn(_I71, this._Ch1), this._hi1));
this._ni1._9u(this._li1);
_5Y *= 0.98;
if (data._JR._A61) {
this._sh1._9u(data._JR._x61);
_tf1._yn(_XS._9u(this._Gh1, this._sh1));
_5Y += this._Ih1 * _YT(this._Ch1,
this._sh1)
} else {
this._sh1._YS()
}
data._F61[this._be1]._8h._0T(_tf1);
data._F61[this._be1]._y2 = _5Y
},
_Mf1: function(data) {
var _tf1 = data._F61[this._be1]._8h._4e();
var _5Y = data._F61[this._be1]._y2;
var _3i1 = _XS._yn(_tf1, __T(_5Y, this._Ch1));
var _W41 = _0U(this._641, (_XS._yn(_XS._yn(_3i1, this._ni1), _XS._9u(this._mi1, this._sh1)))._1T());
var _4i1 = this._sh1._4e();
this._sh1._yn(_W41);
var _5i1 = data._JR._v61 * this._ii1;
if (this._sh1._6T() > _5i1 * _5i1) {
this._sh1._9u(_5i1 / this._sh1._5T())
}
_W41._0T(_XS._4T(this._sh1, _4i1));
_tf1._yn(_XS._9u(this._Gh1,
_W41));
_5Y += this._Ih1 * _YT(this._Ch1, _W41);
data._F61[this._be1]._8h._0T(_tf1);
data._F61[this._be1]._y2 = _5Y
},
_6g1: function(data) {
return !0
}
};
_5h1._BR(_o71);
function _yi1() {
this.parent.call(this);
this.type = _o71._I81;
this._gh1 = new _XS(0.0, 0.0);
this._hh1 = new _XS(0.0, 0.0);
this.length = 1.0;
this._fi1 = 0.0;
this._gi1 = 0.0;
Object.seal(this)
}
_yi1.prototype = {
_zZ: function(_vy, _wy, _zi1, _Ai1) {
this._u71 = _vy;
this._v71 = _wy;
this._gh1 = this._u71._451(_zi1);
this._hh1 = this._v71._451(_Ai1);
var _Bp = _XS._4T(_Ai1, _zi1);
this.length = _Bp._5T()
},
_dT: function(data, _A81, _Qg1) {
this.parent.prototype._dT.call(this, data, _A81, _Qg1);
this._gh1._dT(data['localAnchorA']);
this._hh1._dT(data['localAnchorB']);
this.length = data['length'];
this._fi1 = data['frequencyHz'];
this._gi1 = data['dampingRatio']
}
};
_yi1._BR(_Og1);
function _4h1(_j41) {
this.parent.call(this, _j41);
this._ph1 = _j41._gh1._4e();
this._qh1 = _j41._hh1._4e();
this._Bi1 = _j41.length;
this._ji1 = _j41._fi1;
this._ki1 = _j41._gi1;
this._sh1 = 0.0;
this._mi1 = 0.0;
this._Ci1 = 0.0;
this._ae1 = 0;
this._be1 = 0;
this._Di1 = new _XS();
this._Bh1 = new _XS();
this._Ch1 = new _XS();
this._Dh1 = new _XS();
this._Eh1 = new _XS();
this._Fh1 = 0;
this._Gh1 = 0;
this._Hh1 = 0;
this._Ih1 = 0;
this._641 = 0
}
_4h1.prototype = {
_G81: function() {
return this._s71._151(this._ph1)
},
_H81: function() {
return this._q71._151(this._qh1)
},
_Rg1: function(_w61) {
var _B21 = _XS._9u((_w61 * this._sh1), this._Di1);
return _B21
},
_Sg1: function(_w61) {
return 0.0
},
_Kh1: function() {
return this._ph1
},
_Lh1: function() {
return this._qh1
},
_Ei1: function(length) {
this._Bi1 = length
},
_Fi1: function() {
return this._Bi1
},
_si1: function(_ti1) {
this._ji1 = _ti1
},
_ui1: function() {
return this._ji1
},
_vi1: function(_yg1) {
this._ki1 = _yg1
},
_wi1: function() {
return this._ki1
},
_ug1: function(data) {
this._ae1 = this._s71._K31;
this._be1 = this._q71._K31;
this._Dh1._0T(this._s71._T31._OT);
this._Eh1._0T(this._q71._T31._OT);
this._Fh1 = this._s71._741;
this._Gh1 = this._q71._741;
this._Hh1 = this._s71._941;
this._Ih1 = this._q71._941;
var _G71 = data._E61[this._ae1]._v2._4e();
var _qf1 = data._E61[this._ae1]._Wg;
var _rf1 = data._F61[this._ae1]._8h._4e();
var _4Y = data._F61[this._ae1]._y2;
var _I71 = data._E61[this._be1]._v2._4e();
var _sf1 = data._E61[this._be1]._Wg;
var _tf1 = data._F61[this._be1]._8h._4e();
var _5Y = data._F61[this._be1]._y2;
var _0i1 = new _HT(_qf1),
_1i1 = new _HT(_sf1);
this._Bh1 = _bU(_0i1, _XS._4T(this._ph1, this._Dh1));
this._Ch1 = _bU(_1i1, _XS._4T(this._qh1, this._Eh1));
this._Di1 = _XS._4T(_XS._4T(_XS._yn(_I71, this._Ch1), _G71), this._Bh1);
var length = this._Di1._5T();
if (length > _hS) {
this._Di1._9u(1.0 / length);
} else {
this._Di1._Tn(0.0, 0.0)
}
var _Gi1 = _YT(this._Bh1, this._Di1);
var _Hi1 = _YT(this._Ch1, this._Di1);
var _Ii1 = this._Fh1 + this._Hh1 * _Gi1 * _Gi1 + this._Gh1 + this._Ih1 * _Hi1 * _Hi1;
this._641 = _Ii1 != 0.0 ? 1.0 / _Ii1 : 0.0;
if (this._ji1 > 0.0) {
var _hU = length - this._Bi1;
var _xi1 = 2.0 * _cS * this._ji1;
var _Bp = 2.0 * this._641 * this._ki1 * _xi1;
var _dZ = this._641 * _xi1 * _xi1;
var _z2 = data._JR._v61;
this._mi1 = _z2 * (_Bp + _z2 * _dZ);
this._mi1 = this._mi1 != 0.0 ? 1.0 / this._mi1 : 0.0;
this._Ci1 = _hU * _z2 * _dZ * this._mi1;
_Ii1 += this._mi1;
this._641 = _Ii1 != 0.0 ? 1.0 / _Ii1 : 0.0
} else {
this._mi1 = 0.0;
this._Ci1 = 0.0
} if (data._JR._A61) {
this._sh1 *= data._JR._x61;
var _q01 = _XS._9u(this._sh1, this._Di1);
_rf1._4T(_XS._9u(this._Fh1, _q01));
_4Y -= this._Hh1 * _YT(this._Bh1,
_q01);
_tf1._yn(_XS._9u(this._Gh1, _q01));
_5Y += this._Ih1 * _YT(this._Ch1, _q01)
} else {
this._sh1 = 0.0
}
data._F61[this._ae1]._8h._0T(_rf1);
data._F61[this._ae1]._y2 = _4Y;
data._F61[this._be1]._8h._0T(_tf1);
data._F61[this._be1]._y2 = _5Y
},
_Mf1: function(data) {
var _rf1 = data._F61[this._ae1]._8h._4e();
var _4Y = data._F61[this._ae1]._y2;
var _tf1 = data._F61[this._be1]._8h._4e();
var _5Y = data._F61[this._be1]._y2;
var _Ji1 = _XS._yn(_rf1, __T(_4Y, this._Bh1));
var _Ki1 = _XS._yn(_tf1, __T(_5Y, this._Ch1));
var _3i1 = _XT(this._Di1, _XS._4T(_Ki1,
_Ji1));
var _W41 = -this._641 * (_3i1 + this._Ci1 + this._mi1 * this._sh1);
this._sh1 += _W41;
var _q01 = _XS._9u(_W41, this._Di1);
_rf1._4T(_XS._9u(this._Fh1, _q01));
_4Y -= this._Hh1 * _YT(this._Bh1, _q01);
_tf1._yn(_XS._9u(this._Gh1, _q01));
_5Y += this._Ih1 * _YT(this._Ch1, _q01);
data._F61[this._ae1]._8h._0T(_rf1);
data._F61[this._ae1]._y2 = _4Y;
data._F61[this._be1]._8h._0T(_tf1);
data._F61[this._be1]._y2 = _5Y;
},
_6g1: function(data) {
if (this._ji1 > 0.0) {
return !0
}
var _G71 = data._E61[this._ae1]._v2._4e();
var _qf1 = data._E61[this._ae1]._Wg;
var _I71 = data._E61[this._be1]._v2._4e();
var _sf1 = data._E61[this._be1]._Wg;
var _0i1 = new _HT(_qf1),
_1i1 = new _HT(_sf1);
var _7Z = _bU(_0i1, _XS._4T(this._ph1, this._Dh1));
var _8Z = _bU(_1i1, _XS._4T(this._qh1, this._Eh1));
var _6h = _XS._4T(_XS._4T(_XS._yn(_I71, _8Z), _G71), _7Z);
var length = _6h._7T();
var _hU = length - this._Bi1;
_hU = _sU(_hU, -_nS, _nS);
var _W41 = -this._641 * _hU;
var _q01 = _XS._9u(_W41, _6h);
_G71._4T(_XS._9u(this._Fh1, _q01));
_qf1 -= this._Hh1 * _YT(_7Z, _q01);
_I71._yn(_XS._9u(this._Gh1, _q01));
_sf1 += this._Ih1 * _YT(_8Z, _q01);
data._E61[this._ae1]._v2._0T(_G71);
data._E61[this._ae1]._Wg = _qf1;
data._E61[this._be1]._v2._0T(_I71);
data._E61[this._be1]._Wg = _sf1;
return _lU(_hU) < _hS
},
_bT: function(_cT) {
var _Nw = _cT || {};
this.parent.prototype._bT.call(this, _Nw);
_Nw['localAnchorA'] = this._ph1._bT();
_Nw['localAnchorB'] = this._qh1._bT();
_Nw['length'] = this._Bi1;
_Nw['frequencyHz'] = this._ji1;
_Nw['dampingRatio'] = this._ki1;
return _Nw
}
};
_4h1._BR(_o71);
function _Li1() {
this.parent.call(this);
this.type = _o71._Zg1;
this._gh1 = new _XS();
this._hh1 = new _XS();
this._Mi1 = new _XS(1.0, 0.0);
this._ih1 = 0.0;
this._nh1 = !1;
this._Ni1 = 0.0;
this._Oi1 = 0.0;
this._oh1 = !1;
this._Pi1 = 0.0;
this._mh1 = 0.0;
Object.seal(this)
}
_Li1.prototype = {
_zZ: function(_t81, _u81, anchor, _PU) {
this._u71 = _t81;
this._v71 = _u81;
this._gh1 = this._u71._451(anchor);
this._hh1 = this._v71._451(anchor);
this._Mi1 = this._u71._651(_PU);
this._ih1 = this._v71._IT() - this._u71._IT()
},
_dT: function(data, _A81, _Qg1) {
this.parent.prototype._dT.call(this, data, _A81, _Qg1);
this._gh1._dT(data['localAnchorA']);
this._hh1._dT(data['localAnchorB']);
this._Mi1._dT(data['localAxisA']);
this._ih1 = data['referenceAngle'];
this._nh1 = data['enableLimit'];
this._Ni1 = data['lowerTranslation'];
this._Oi1 = data['upperTranslation'];
this._oh1 = data['enableMotor'];
this._Pi1 = data['maxMotorForce'];
this._mh1 = data['motorSpeed']
}
};
_Li1._BR(_Og1);
function _6h1(_j41) {
this.parent.call(this, _j41);
this._ph1 = _j41._gh1._4e();
this._qh1 = _j41._hh1._4e();
this._Qi1 = _j41._Mi1._4e();
this._Qi1._7T();
this._Ri1 = __T(1.0, this._Qi1);
this._rh1 = _j41._ih1;
this._sh1 = new _fT();
this._Jh1 = 0.0;
this._th1 = 0.0;
this._Si1 = _j41._Ni1;
this._Ti1 = _j41._Oi1;
this._Ui1 = _j41._Pi1;
this._xh1 = _j41._mh1;
this._yh1 = _j41._nh1;
this._zh1 = _j41._oh1;
this._Ah1 = _o71._Ug1;
this._X21 = new _XS();
this._Vi1 = new _XS();
this._ae1 = 0;
this._be1 = 0;
this._Dh1 = new _XS();
this._Eh1 = new _XS();
this._Fh1 = 0;
this._Gh1 = 0;
this._Hh1 = 0;
this._Ih1 = 0;
this._Wi1 = 0, this._Xi1 = 0;
this._Yi1 = 0, this._Zi1 = 0;
this.__i1 = new _uT();
this._Jh1 = 0
}
_6h1.prototype = {
_G81: function() {
return this._s71._151(this._ph1);
},
_H81: function() {
return this._q71._151(this._qh1)
},
_Rg1: function(_w61) {
return _XS._9u(_w61, _XS._yn(_XS._9u(this._sh1._w2, this._Vi1),
_XS._9u((this._th1 + this._sh1._ei), this._X21)))
},
_Sg1: function(_w61) {
return _w61 * this._sh1._x2
},
_Kh1: function() {
return this._ph1
},
_Lh1: function() {
return this._qh1
},
_0j1: function() {
return this._Qi1
},
_Mh1: function() {
return this._rh1
},
_1j1: function() {
var _lY = this._s71._151(this._ph1);
var _mY = this._q71._151(this._qh1);
var _Bp = _XS._4T(_mY, _lY);
var _PU = this._s71._251(this._Qi1);
var _Hg1 = _XT(_Bp, _PU);
return _Hg1
},
_Oh1: function() {
var _t81 = this._s71;
var _u81 = this._q71;
var _7Z = _bU(_t81._M01._rz, _XS._4T(this._ph1, _t81._T31._OT));
var _8Z = _bU(_u81._M01._rz, _XS._4T(this._qh1, _u81._T31._OT));
var _RU = _XS._yn(_t81._T31._v2, _7Z);
var _SU = _XS._yn(_u81._T31._v2, _8Z);
var _Bp = _XS._4T(_SU, _RU);
var _PU = _bU(_t81._M01._rz, this._Qi1);
var _rf1 = _t81._Y31;
var _tf1 = _u81._Y31;
var _4Y = _t81._Z31;
var _5Y = _u81._Z31;
var _Rc = _XT(_Bp, __T(_4Y, _PU)) + _XT(_PU, _XS._4T(_XS._4T(_XS._yn(_tf1, __T(_5Y, _8Z)), _rf1), __T(_4Y, _7Z)));
return _Rc
},
_Ph1: function() {
return this._yh1
},
_Qh1: function(_l51) {
if (_l51 != this._yh1) {
this._s71._AI(!0);
this._q71._AI(!0);
this._yh1 = _l51;
this._sh1._ei = 0.0
}
},
_Rh1: function() {
return this._Si1
},
_Sh1: function() {
return this._Ti1
},
_Th1: function(_xW, _yW) {
_7S(_xW <= _yW);
if (_xW != this._Si1 || _yW != this._Ti1) {
this._s71._AI(!0);
this._q71._AI(!0);
this._Si1 = _xW;
this._Ti1 = _yW;
this._sh1._ei = 0.0
}
},
_Uh1: function() {
return this._zh1
},
_Vh1: function(_l51) {
this._s71._AI(!0);
this._q71._AI(!0);
this._zh1 = _l51
},
_Wh1: function(_Rc) {
this._s71._AI(!0);
this._q71._AI(!0);
this._xh1 = _Rc
},
_Xh1: function() {
return this._xh1
},
_2j1: function(_Q41) {
this._s71._AI(!0);
this._q71._AI(!0);
this._Ui1 = _Q41
},
_3j1: function() {
return this._Ui1
},
_4j1: function(_w61) {
return _w61 * this._th1
},
_ug1: function(data) {
this._ae1 = this._s71._K31;
this._be1 = this._q71._K31;
this._Dh1 = this._s71._T31._OT;
this._Eh1 = this._q71._T31._OT;
this._Fh1 = this._s71._741;
this._Gh1 = this._q71._741;
this._Hh1 = this._s71._941;
this._Ih1 = this._q71._941;
var _G71 = data._E61[this._ae1]._v2._4e();
var _qf1 = data._E61[this._ae1]._Wg;
var _rf1 = data._F61[this._ae1]._8h._4e();
var _4Y = data._F61[this._ae1]._y2;
var _I71 = data._E61[this._be1]._v2._4e();
var _sf1 = data._E61[this._be1]._Wg;
var _tf1 = data._F61[this._be1]._8h._4e();
var _5Y = data._F61[this._be1]._y2;
var _0i1 = new _HT(_qf1),
_1i1 = new _HT(_sf1);
var _7Z = _bU(_0i1, _XS._4T(this._ph1, this._Dh1));
var _8Z = _bU(_1i1, _XS._4T(this._qh1, this._Eh1));
var _Bp = _XS._yn(_XS._4T(_I71, _G71), _XS._4T(_8Z, _7Z));
var _of1 = this._Fh1,
_pf1 = this._Gh1;
var _w21 = this._Hh1,
_x21 = this._Ih1; {
this._X21 = _bU(_0i1, this._Qi1);
this._Yi1 = _YT(_XS._yn(_Bp, _7Z), this._X21);
this._Zi1 = _YT(_8Z, this._X21);
this._Jh1 = _of1 + _pf1 + _w21 * this._Yi1 * this._Yi1 + _x21 * this._Zi1 * this._Zi1;
if (this._Jh1 > 0.0) {
this._Jh1 = 1.0 / this._Jh1
}
} {
this._Vi1 = _bU(_0i1, this._Ri1);
this._Wi1 = _YT(_XS._yn(_Bp, _7Z), this._Vi1);
this._Xi1 = _YT(_8Z, this._Vi1);
var _Hf1 = _of1 + _pf1 + _w21 * this._Wi1 * this._Wi1 + _x21 * this._Xi1 * this._Xi1;
var _Jf1 = _w21 * this._Wi1 + _x21 * this._Xi1;
var _5j1 = _w21 * this._Wi1 * this._Yi1 + _x21 * this._Xi1 * this._Zi1;
var _If1 = _w21 + _x21;
if (_If1 == 0.0) {
_If1 = 1.0
}
var _6j1 = _w21 * this._Yi1 + _x21 * this._Zi1;
var _7j1 = _of1 + _pf1 + _w21 * this._Yi1 * this._Yi1 + _x21 * this._Zi1 * this._Zi1;
this.__i1._0L._Tn(_Hf1, _Jf1, _5j1);
this.__i1._kT._Tn(_Jf1, _If1,
_6j1);
this.__i1._wT._Tn(_5j1, _6j1, _7j1)
}
if (this._yh1) {
var _8j1 = _XT(this._X21, _Bp);
if (_lU(this._Ti1 - this._Si1) < 2.0 * _hS) {
this._Ah1 = _o71._Xg1
} else if (_8j1 <= this._Si1) {
if (this._Ah1 != _o71._Vg1) {
this._Ah1 = _o71._Vg1;
this._sh1._ei = 0.0
}
} else if (_8j1 >= this._Ti1) {
if (this._Ah1 != _o71._Wg1) {
this._Ah1 = _o71._Wg1;
this._sh1._ei = 0.0
}
} else {
this._Ah1 = _o71._Ug1;
this._sh1._ei = 0.0
}
} else {
this._Ah1 = _o71._Ug1;
this._sh1._ei = 0.0
} if (this._zh1 == !1) {
this._th1 = 0.0;
}
if (data._JR._A61) {
this._sh1._9u(data._JR._x61);
this._th1 *= data._JR._x61;
var _q01 = _XS._yn(_XS._9u(this._sh1._w2, this._Vi1), _XS._9u((this._th1 + this._sh1._ei), this._X21));
var _9j1 = this._sh1._w2 * this._Wi1 + this._sh1._x2 + (this._th1 + this._sh1._ei) * this._Yi1;
var _aj1 = this._sh1._w2 * this._Xi1 + this._sh1._x2 + (this._th1 + this._sh1._ei) * this._Zi1;
_rf1._4T(_XS._9u(_of1, _q01));
_4Y -= _w21 * _9j1;
_tf1._yn(_XS._9u(_pf1, _q01));
_5Y += _x21 * _aj1
} else {
this._sh1._YS();
this._th1 = 0.0
}
data._F61[this._ae1]._8h._0T(_rf1);
data._F61[this._ae1]._y2 = _4Y;
data._F61[this._be1]._8h._0T(_tf1);
data._F61[this._be1]._y2 = _5Y
},
_Mf1: function(data) {
var _rf1 = data._F61[this._ae1]._8h._4e();
var _4Y = data._F61[this._ae1]._y2;
var _tf1 = data._F61[this._be1]._8h._4e();
var _5Y = data._F61[this._be1]._y2;
var _of1 = this._Fh1,
_pf1 = this._Gh1;
var _w21 = this._Hh1,
_x21 = this._Ih1;
if (this._zh1 && this._Ah1 != _o71._Xg1) {
var _3i1 = _XT(this._X21, _XS._4T(_tf1, _rf1)) + this._Zi1 * _5Y - this._Yi1 * _4Y;
var _W41 = this._Jh1 * (this._xh1 - _3i1);
var _4i1 = this._th1;
var _5i1 = data._JR._v61 * this._Ui1;
this._th1 = _sU(this._th1 + _W41, -_5i1, _5i1);
_W41 = this._th1 - _4i1;
var _q01 = _XS._9u(_W41,
this._X21);
var _9j1 = _W41 * this._Yi1;
var _aj1 = _W41 * this._Zi1;
_rf1._4T(_XS._9u(_of1, _q01));
_4Y -= _w21 * _9j1;
_tf1._yn(_XS._9u(_pf1, _q01));
_5Y += _x21 * _aj1
}
var _6i1 = new _XS();
_6i1._w2 = _XT(this._Vi1, _XS._4T(_tf1, _rf1)) + this._Xi1 * _5Y - this._Wi1 * _4Y;
_6i1._x2 = _5Y - _4Y;
if (this._yh1 && this._Ah1 != _o71._Ug1) {
var _7i1;
_7i1 = _XT(this._X21, _XS._4T(_tf1, _rf1)) + this._Zi1 * _5Y - this._Yi1 * _4Y;
var _3i1 = new _fT(_6i1._w2, _6i1._x2, _7i1);
var _bj1 = this._sh1._4e();
var _cj1 = this.__i1._xT(_3i1._1T());
this._sh1._yn(_cj1);
if (this._Ah1 == _o71._Vg1) {
this._sh1._ei = _qU(this._sh1._ei, 0.0)
} else if (this._Ah1 == _o71._Wg1) {
this._sh1._ei = _oU(this._sh1._ei, 0.0)
}
var _xf = _XS._4T(_6i1._1T(), _XS._9u((this._sh1._ei - _bj1._ei), new _XS(this.__i1._wT._w2, this.__i1._wT._x2)));
var _dj1 = _XS._yn(this.__i1._AT(_xf), new _XS(_bj1._w2, _bj1._x2));
this._sh1._w2 = _dj1._w2;
this._sh1._x2 = _dj1._x2;
_cj1 = _fT._4T(this._sh1, _bj1);
var _q01 = _XS._yn(_XS._9u(_cj1._w2, this._Vi1), _XS._9u(_cj1._ei, this._X21));
var _9j1 = _cj1._w2 * this._Wi1 + _cj1._x2 + _cj1._ei * this._Yi1;
var _aj1 = _cj1._w2 * this._Xi1 + _cj1._x2 + _cj1._ei * this._Zi1;
_rf1._4T(_XS._9u(_of1, _q01));
_4Y -= _w21 * _9j1;
_tf1._yn(_XS._9u(_pf1, _q01));
_5Y += _x21 * _aj1
} else {
var _cj1 = this.__i1._AT(_6i1._1T());
this._sh1._w2 += _cj1._w2;
this._sh1._x2 += _cj1._x2;
var _q01 = _XS._9u(_cj1._w2, this._Vi1);
var _9j1 = _cj1._w2 * this._Wi1 + _cj1._x2;
var _aj1 = _cj1._w2 * this._Xi1 + _cj1._x2;
_rf1._4T(_XS._9u(_of1, _q01));
_4Y -= _w21 * _9j1;
_tf1._yn(_XS._9u(_pf1, _q01));
_5Y += _x21 * _aj1
}
data._F61[this._ae1]._8h._0T(_rf1);
data._F61[this._ae1]._y2 = _4Y;
data._F61[this._be1]._8h._0T(_tf1);
data._F61[this._be1]._y2 = _5Y
},
_6g1: function(data) {
var _G71 = data._E61[this._ae1]._v2._4e();
var _qf1 = data._E61[this._ae1]._Wg;
var _I71 = data._E61[this._be1]._v2._4e();
var _sf1 = data._E61[this._be1]._Wg;
var _0i1 = new _HT(_qf1),
_1i1 = new _HT(_sf1);
var _of1 = this._Fh1,
_pf1 = this._Gh1;
var _w21 = this._Hh1,
_x21 = this._Ih1;
var _7Z = _bU(_0i1, _XS._4T(this._ph1, this._Dh1));
var _8Z = _bU(_1i1, _XS._4T(this._qh1, this._Eh1));
var _Bp = _XS._4T(_XS._4T(_XS._yn(_I71, _8Z), _G71), _7Z);
var _PU = _bU(_0i1, this._Qi1);
var _xN = _YT(_XS._yn(_Bp, _7Z), _PU);
var _yN = _YT(_8Z, _PU);
var _ej1 = _bU(_0i1,
this._Ri1);
var _Au = _YT(_XS._yn(_Bp, _7Z), _ej1);
var _Bu = _YT(_8Z, _ej1);
var _W41 = new _fT();
var _fj1 = new _XS();
_fj1._w2 = _XT(_ej1, _Bp);
_fj1._x2 = _sf1 - _qf1 - this._rh1;
var _gj1 = _lU(_fj1._w2);
var _ai1 = _lU(_fj1._x2);
var _lE = !1;
var _hj1 = 0.0;
if (this._yh1) {
var _Hg1 = _XT(_PU, _Bp);
if (_lU(this._Ti1 - this._Si1) < 2.0 * _hS) {
_hj1 = _sU(_Hg1, -_nS, _nS);
_gj1 = _qU(_gj1, _lU(_Hg1));
_lE = !0
} else if (_Hg1 <= this._Si1) {
_hj1 = _sU(_Hg1 - this._Si1 + _hS, -_nS, 0.0);
_gj1 = _qU(_gj1, this._Si1 - _Hg1);
_lE = !0
} else if (_Hg1 >= this._Ti1) {
_hj1 = _sU(_Hg1 - this._Ti1 - _hS, 0.0,
_nS);
_gj1 = _qU(_gj1, _Hg1 - this._Ti1);
_lE = !0
}
}
if (_lE) {
var _Hf1 = _of1 + _pf1 + _w21 * _Au * _Au + _x21 * _Bu * _Bu;
var _Jf1 = _w21 * _Au + _x21 * _Bu;
var _5j1 = _w21 * _Au * _xN + _x21 * _Bu * _yN;
var _If1 = _w21 + _x21;
if (_If1 == 0.0) {
_If1 = 1.0
}
var _6j1 = _w21 * _xN + _x21 * _yN;
var _7j1 = _of1 + _pf1 + _w21 * _xN * _xN + _x21 * _yN * _yN;
var _4f1 = new _uT();
_4f1._0L._Tn(_Hf1, _Jf1, _5j1);
_4f1._kT._Tn(_Jf1, _If1, _6j1);
_4f1._wT._Tn(_5j1, _6j1, _7j1);
var _hU = new _fT();
_hU._w2 = _fj1._w2;
_hU._x2 = _fj1._x2;
_hU._ei = _hj1;
_W41 = _4f1._xT(_hU._1T())
} else {
var _Hf1 = _of1 + _pf1 + _w21 * _Au * _Au + _x21 * _Bu * _Bu;
var _Jf1 = _w21 * _Au + _x21 * _Bu;
var _If1 = _w21 + _x21;
if (_If1 == 0.0) {
_If1 = 1.0
}
var _4f1 = new _hT();
_4f1._0L._Tn(_Hf1, _Jf1);
_4f1._kT._Tn(_Jf1, _If1);
var _ij1 = _4f1._pT(_fj1._1T());
_W41._w2 = _ij1._w2;
_W41._x2 = _ij1._x2;
_W41._ei = 0.0
}
var _q01 = _XS._yn(_XS._9u(_W41._w2, _ej1), _XS._9u(_W41._ei, _PU));
var _9j1 = _W41._w2 * _Au + _W41._x2 + _W41._ei * _xN;
var _aj1 = _W41._w2 * _Bu + _W41._x2 + _W41._ei * _yN;
_G71._4T(_XS._9u(_of1, _q01));
_qf1 -= _w21 * _9j1;
_I71._yn(_XS._9u(_pf1, _q01));
_sf1 += _x21 * _aj1;
data._E61[this._ae1]._v2._0T(_G71);
data._E61[this._ae1]._Wg = _qf1;
data._E61[this._be1]._v2._0T(_I71);
data._E61[this._be1]._Wg = _sf1;
return _gj1 <= _hS && _ai1 <= _iS
},
_bT: function(_cT) {
var _Nw = _cT || {};
this.parent.prototype._bT.call(this, _Nw);
_Nw['localAnchorA'] = this._ph1._bT();
_Nw['localAnchorB'] = this._qh1._bT();
_Nw['localAxisA'] = this._Qi1._bT();
_Nw['referenceAngle'] = this._rh1;
_Nw['enableLimit'] = this._yh1;
_Nw['lowerTranslation'] = this._Si1;
_Nw['upperTranslation'] = this._Ti1;
_Nw['enableMotor'] = this._zh1;
_Nw['maxMotorForce'] = this._Ui1;
_Nw['motorSpeed'] = this._xh1;
return _Nw
}
};
_6h1._BR(_o71);
function _jj1() {
this.parent.call(this);
this.type = _o71._2h1;
this._gh1 = new _XS();
this._hh1 = new _XS();
this._ei1 = 0.0;
this._kj1 = 0.0;
Object.seal(this)
}
_jj1.prototype = {
_zZ: function(_t81, _u81, anchor) {
this._u71 = _t81;
this._v71 = _u81;
this._gh1._0T(this._u71._451(anchor));
this._hh1._0T(this._v71._451(anchor))
},
_dT: function(data, _A81, _Qg1) {
this.parent.prototype._dT.call(this, data, _A81, _Qg1);
this._gh1._dT(data['localAnchorA']);
this._hh1._dT(data['localAnchorB']);
this._ei1 = data['maxForce'];
this._kj1 = data['maxTorque']
}
};
_jj1._BR(_Og1);
function _ch1(_j41) {
this.parent.call(this, _j41);
this._ph1 = _j41._gh1._4e();
this._qh1 = _j41._hh1._4e();
this._lj1 = new _XS();
this._mj1 = 0.0;
this._ii1 = _j41._ei1;
this._nj1 = _j41._kj1;
this._ae1 = 0;
this._be1 = 0;
this._Bh1 = new _XS();
this._Ch1 = new _XS();
this._Dh1 = new _XS();
this._Eh1 = new _XS();
this._Fh1 = 0;
this._Gh1 = 0;
this._Hh1 = 0;
this._Ih1 = 0;
this._oj1 = new _hT();
this._pj1 = 0
}
_ch1.prototype = {
_G81: function() {
return this._s71._151(this._ph1)
},
_H81: function() {
return this._q71._151(this._qh1)
},
_Rg1: function(_w61) {
return _XS._9u(_w61, this._lj1)
},
_Sg1: function(_w61) {
return _w61 * this._mj1
},
_Kh1: function() {
return this._ph1
},
_Lh1: function() {
return this._qh1
},
_qi1: function(_Q41) {
_7S(_NS(_Q41) && _Q41 >= 0.0);
this._ii1 = _Q41
},
_ri1: function() {
return this._ii1
},
_qj1: function(_U41) {
_7S(_NS(_U41) && _U41 >= 0.0);
this._nj1 = _U41
},
_rj1: function() {
return this._nj1
},
_ug1: function(data) {
this._ae1 = this._s71._K31;
this._be1 = this._q71._K31;
this._Dh1._0T(this._s71._T31._OT);
this._Eh1._0T(this._q71._T31._OT);
this._Fh1 = this._s71._741;
this._Gh1 = this._q71._741;
this._Hh1 = this._s71._941;
this._Ih1 = this._q71._941;
var _qf1 = data._E61[this._ae1]._Wg;
var _rf1 = data._F61[this._ae1]._8h._4e();
var _4Y = data._F61[this._ae1]._y2;
var _sf1 = data._E61[this._be1]._Wg;
var _tf1 = data._F61[this._be1]._8h._4e();
var _5Y = data._F61[this._be1]._y2;
var _0i1 = new _HT(_qf1),
_1i1 = new _HT(_sf1);
this._Bh1 = _bU(_0i1, _XS._4T(this._ph1, this._Dh1));
this._Ch1 = _bU(_1i1, _XS._4T(this._qh1, this._Eh1));
var _of1 = this._Fh1,
_pf1 = this._Gh1;
var _w21 = this._Hh1,
_x21 = this._Ih1;
var _4f1 = new _hT();
_4f1._0L._w2 = _of1 + _pf1 + _w21 * this._Bh1._x2 * this._Bh1._x2 + _x21 * this._Ch1._x2 * this._Ch1._x2;
_4f1._0L._x2 = -_w21 * this._Bh1._w2 * this._Bh1._x2 - _x21 * this._Ch1._w2 * this._Ch1._x2;
_4f1._kT._w2 = _4f1._0L._x2;
_4f1._kT._x2 = _of1 + _pf1 + _w21 * this._Bh1._w2 * this._Bh1._w2 + _x21 * this._Ch1._w2 * this._Ch1._w2;
this._oj1 = _4f1._mT();
this._pj1 = _w21 + _x21;
if (this._pj1 > 0.0) {
this._pj1 = 1.0 / this._pj1
}
if (data._JR._A61) {
this._lj1._9u(data._JR._x61);
this._mj1 *= data._JR._x61;
var _q01 = new _XS(this._lj1._w2, this._lj1._x2);
_rf1._4T(_XS._9u(_of1, _q01));
_4Y -= _w21 * (_YT(this._Bh1, _q01) + this._mj1);
_tf1._yn(_XS._9u(_pf1, _q01));
_5Y += _x21 * (_YT(this._Ch1,
_q01) + this._mj1)
} else {
this._lj1._YS();
this._mj1 = 0.0
}
data._F61[this._ae1]._8h._0T(_rf1);
data._F61[this._ae1]._y2 = _4Y;
data._F61[this._be1]._8h._0T(_tf1);
data._F61[this._be1]._y2 = _5Y
},
_Mf1: function(data) {
var _rf1 = data._F61[this._ae1]._8h._4e();
var _4Y = data._F61[this._ae1]._y2;
var _tf1 = data._F61[this._be1]._8h._4e();
var _5Y = data._F61[this._be1]._y2;
var _of1 = this._Fh1,
_pf1 = this._Gh1;
var _w21 = this._Hh1,
_x21 = this._Ih1;
var _z2 = data._JR._v61; {
var _3i1 = _5Y - _4Y;
var _W41 = -this._pj1 * _3i1;
var _4i1 = this._mj1;
var _5i1 = _z2 * this._nj1;
this._mj1 = _sU(this._mj1 + _W41, -_5i1, _5i1);
_W41 = this._mj1 - _4i1;
_4Y -= _w21 * _W41;
_5Y += _x21 * _W41
} {
var _3i1 = _XS._yn(_tf1, _XS._4T(__T(_5Y, this._Ch1), _XS._4T(_rf1, __T(_4Y, this._Bh1))));
var _W41 = _0U(this._oj1, _3i1)._1T();
var _4i1 = this._lj1._4e();
this._lj1._yn(_W41);
var _5i1 = _z2 * this._ii1;
if (this._lj1._6T() > _5i1 * _5i1) {
this._lj1._7T();
this._lj1._9u(_5i1)
}
_W41 = _XS._4T(this._lj1, _4i1);
_rf1._4T(_XS._9u(_of1, _W41));
_4Y -= _w21 * _YT(this._Bh1, _W41);
_tf1._yn(_XS._9u(_pf1, _W41));
_5Y += _x21 * _YT(this._Ch1, _W41)
}
data._F61[this._ae1]._8h._0T(_rf1);
data._F61[this._ae1]._y2 = _4Y;
data._F61[this._be1]._8h._0T(_tf1);
data._F61[this._be1]._y2 = _5Y
},
_6g1: function(data) {
return !0
},
_bT: function(_cT) {
var _Nw = _cT || {};
this.parent.prototype._bT.call(this, _Nw);
_Nw['localAnchorA'] = this._ph1._bT();
_Nw['localAnchorB'] = this._qh1._bT();
_Nw['maxForce'] = this._ii1;
_Nw['maxTorque'] = this._nj1;
return _Nw
}
};
_ch1._BR(_o71);
function _sj1() {
this.parent.call(this);
this.type = _o71._1h1;
this._gh1 = new _XS(0.0, 0.0);
this._hh1 = new _XS(0.0, 0.0);
this._ih1 = 0.0;
this._fi1 = 0.0;
this._gi1 = 0.0;
Object.seal(this)
}
_sj1.prototype = {
_zZ: function(_t81, _u81, anchor) {
this._u71 = _t81;
this._v71 = _u81;
this._gh1._0T(this._u71._451(anchor));
this._hh1._0T(this._v71._451(anchor));
this._ih1 = this._v71._IT() - this._u71._IT();
},
_dT: function(data, _A81, _Qg1) {
this.parent.prototype._dT.call(this, data, _A81, _Qg1);
this._gh1._dT(data['localAnchorA']);
this._hh1._dT(data['localAnchorB']);
this._ih1 = data['referenceAngle'];
this._fi1 = data['frequencyHz'];
this._gi1 = data['dampingRatio']
}
};
_sj1._BR(_Og1);
function _bh1(_j41) {
this.parent.call(this,
_j41);
this._Ci1 = 0;
this._mi1 = 0;
this._ae1 = 0;
this._be1 = 0;
this._Bh1 = new _XS();
this._Ch1 = new _XS();
this._Dh1 = new _XS();
this._Eh1 = new _XS();
this._Fh1 = 0;
this._Gh1 = 0;
this._Hh1 = 0;
this._Ih1 = 0;
this._641 = new _uT();
this._ph1 = _j41._gh1._4e();
this._qh1 = _j41._hh1._4e();
this._rh1 = _j41._ih1;
this._ji1 = _j41._fi1;
this._ki1 = _j41._gi1;
this._sh1 = new _fT()
}
_bh1.prototype = {
_G81: function() {
return this._s71._151(this._ph1)
},
_H81: function() {
return this._q71._151(this._qh1)
},
_Rg1: function(_w61) {
var _q01 = new _XS(this._sh1._w2, this._sh1._x2);
return _XS._9u(_w61, _q01)
},
_Sg1: function(_w61) {
return _w61 * this._sh1._ei
},
_Kh1: function() {
return this._ph1
},
_Lh1: function() {
return this._qh1
},
_Mh1: function() {
return this._rh1
},
_si1: function(_ti1) {
this._ji1 = _ti1
},
_ui1: function() {
return this._ji1
},
_vi1: function(_yg1) {
this._ki1 = _yg1
},
_wi1: function() {
return this._ki1
},
_ug1: function(data) {
this._ae1 = this._s71._K31;
this._be1 = this._q71._K31;
this._Dh1._0T(this._s71._T31._OT);
this._Eh1._0T(this._q71._T31._OT);
this._Fh1 = this._s71._741;
this._Gh1 = this._q71._741;
this._Hh1 = this._s71._941;
this._Ih1 = this._q71._941;
var _qf1 = data._E61[this._ae1]._Wg;
var _rf1 = data._F61[this._ae1]._8h._4e();
var _4Y = data._F61[this._ae1]._y2;
var _sf1 = data._E61[this._be1]._Wg;
var _tf1 = data._F61[this._be1]._8h._4e();
var _5Y = data._F61[this._be1]._y2;
var _0i1 = new _HT(_qf1),
_1i1 = new _HT(_sf1);
this._Bh1._0T(_bU(_0i1, _XS._4T(this._ph1, this._Dh1)));
this._Ch1._0T(_bU(_1i1, _XS._4T(this._qh1, this._Eh1)));
var _of1 = this._Fh1,
_pf1 = this._Gh1;
var _w21 = this._Hh1,
_x21 = this._Ih1;
var _4f1 = new _uT();
_4f1._0L._w2 = _of1 + _pf1 + this._Bh1._x2 * this._Bh1._x2 * _w21 + this._Ch1._x2 * this._Ch1._x2 * _x21;
_4f1._kT._w2 = -this._Bh1._x2 * this._Bh1._w2 * _w21 - this._Ch1._x2 * this._Ch1._w2 * _x21;
_4f1._wT._w2 = -this._Bh1._x2 * _w21 - this._Ch1._x2 * _x21;
_4f1._0L._x2 = _4f1._kT._w2;
_4f1._kT._x2 = _of1 + _pf1 + this._Bh1._w2 * this._Bh1._w2 * _w21 + this._Ch1._w2 * this._Ch1._w2 * _x21;
_4f1._wT._x2 = this._Bh1._w2 * _w21 + this._Ch1._w2 * _x21;
_4f1._0L._ei = _4f1._wT._w2;
_4f1._kT._ei = _4f1._wT._x2;
_4f1._wT._ei = _w21 + _x21;
if (this._ji1 > 0.0) {
_4f1._BT(this._641);
var _tj1 = _w21 + _x21;
var _gf = _tj1 > 0.0 ? 1.0 / _tj1 : 0.0;
var _hU = _sf1 - _qf1 - this._rh1;
var _xi1 = 2.0 * _cS * this._ji1;
var _Bp = 2.0 * _gf * this._ki1 * _xi1;
var _dZ = _gf * _xi1 * _xi1;
var _z2 = data._JR._v61;
this._mi1 = _z2 * (_Bp + _z2 * _dZ);
this._mi1 = this._mi1 != 0.0 ? 1.0 / this._mi1 : 0.0;
this._Ci1 = _hU * _z2 * _dZ * this._mi1;
_tj1 += this._mi1;
this._641._wT._ei = _tj1 != 0.0 ? 1.0 / _tj1 : 0.0
} else {
_4f1._DT(this._641);
this._mi1 = 0.0;
this._Ci1 = 0.0
} if (data._JR._A61) {
this._sh1._9u(data._JR._x61);
var _q01 = new _XS(this._sh1._w2, this._sh1._x2);
_rf1._4T(_XS._9u(_of1, _q01));
_4Y -= _w21 * (_YT(this._Bh1, _q01) + this._sh1._ei);
_tf1._yn(_XS._9u(_pf1, _q01));
_5Y += _x21 * (_YT(this._Ch1,
_q01) + this._sh1._ei)
} else {
this._sh1._YS()
}
data._F61[this._ae1]._8h._0T(_rf1);
data._F61[this._ae1]._y2 = _4Y;
data._F61[this._be1]._8h._0T(_tf1);
data._F61[this._be1]._y2 = _5Y
},
_Mf1: function(data) {
var _rf1 = data._F61[this._ae1]._8h._4e();
var _4Y = data._F61[this._ae1]._y2;
var _tf1 = data._F61[this._be1]._8h._4e();
var _5Y = data._F61[this._be1]._y2;
var _of1 = this._Fh1,
_pf1 = this._Gh1;
var _w21 = this._Hh1,
_x21 = this._Ih1;
if (this._ji1 > 0.0) {
var _7i1 = _5Y - _4Y;
var _uj1 = -this._641._wT._ei * (_7i1 + this._Ci1 + this._mi1 * this._sh1._ei);
this._sh1._ei += _uj1;
_4Y -= _w21 * _uj1;
_5Y += _x21 * _uj1;
var _6i1 = _XS._4T(_XS._4T(_XS._yn(_tf1, __T(_5Y, this._Ch1)), _rf1), __T(_4Y, this._Bh1));
var _ij1 = _7U(this._641, _6i1)._1T();
this._sh1._w2 += _ij1._w2;
this._sh1._x2 += _ij1._x2;
var _q01 = _ij1._4e();
_rf1._4T(_XS._9u(_of1, _q01));
_4Y -= _w21 * _YT(this._Bh1, _q01);
_tf1._yn(_XS._9u(_pf1, _q01));
_5Y += _x21 * _YT(this._Ch1, _q01)
} else {
var _6i1 = _XS._4T(_XS._4T(_XS._yn(_tf1, __T(_5Y, this._Ch1)), _rf1), __T(_4Y, this._Bh1));
var _7i1 = _5Y - _4Y;
var _3i1 = new _fT(_6i1._w2, _6i1._x2, _7i1);
var _W41 = _6U(this._641,
_3i1)._1T();
this._sh1._yn(_W41);
var _q01 = new _XS(_W41._w2, _W41._x2);
_rf1._4T(_XS._9u(_of1, _q01));
_4Y -= _w21 * (_YT(this._Bh1, _q01) + _W41._ei);
_tf1._yn(_XS._9u(_pf1, _q01));
_5Y += _x21 * (_YT(this._Ch1, _q01) + _W41._ei)
}
data._F61[this._ae1]._8h._0T(_rf1);
data._F61[this._ae1]._y2 = _4Y;
data._F61[this._be1]._8h._0T(_tf1);
data._F61[this._be1]._y2 = _5Y;
},
_6g1: function(data) {
var _G71 = data._E61[this._ae1]._v2._4e();
var _qf1 = data._E61[this._ae1]._Wg;
var _I71 = data._E61[this._be1]._v2._4e();
var _sf1 = data._E61[this._be1]._Wg;
var _0i1 = new _HT(_qf1),
_1i1 = new _HT(_sf1);
var _of1 = this._Fh1,
_pf1 = this._Gh1;
var _w21 = this._Hh1,
_x21 = this._Ih1;
var _7Z = _bU(_0i1, _XS._4T(this._ph1, this._Dh1));
var _8Z = _bU(_1i1, _XS._4T(this._qh1, this._Eh1));
var _bi1, _ai1;
var _4f1 = new _uT();
_4f1._0L._w2 = _of1 + _pf1 + _7Z._x2 * _7Z._x2 * _w21 + _8Z._x2 * _8Z._x2 * _x21;
_4f1._kT._w2 = -_7Z._x2 * _7Z._w2 * _w21 - _8Z._x2 * _8Z._w2 * _x21;
_4f1._wT._w2 = -_7Z._x2 * _w21 - _8Z._x2 * _x21;
_4f1._0L._x2 = _4f1._kT._w2;
_4f1._kT._x2 = _of1 + _pf1 + _7Z._w2 * _7Z._w2 * _w21 + _8Z._w2 * _8Z._w2 * _x21;
_4f1._wT._x2 = _7Z._w2 * _w21 + _8Z._w2 * _x21;
_4f1._0L._ei = _4f1._wT._w2;
_4f1._kT._ei = _4f1._wT._x2;
_4f1._wT._ei = _w21 + _x21;
if (this._ji1 > 0.0) {
var _fj1 = _XS._4T(_XS._4T(_XS._yn(_I71, _8Z), _G71), _7Z);
_bi1 = _fj1._5T();
_ai1 = 0.0;
var _q01 = _4f1._AT(_fj1)._1T();
_G71._4T(_XS._9u(_of1, _q01));
_qf1 -= _w21 * _YT(_7Z, _q01);
_I71._yn(_XS._9u(_pf1, _q01));
_sf1 += _x21 * _YT(_8Z, _q01)
} else {
var _fj1 = _XS._4T(_XS._4T(_XS._yn(_I71, _8Z), _G71), _7Z);
var _hj1 = _sf1 - _qf1 - this._rh1;
_bi1 = _fj1._5T();
_ai1 = _lU(_hj1);
var _hU = new _fT(_fj1._w2, _fj1._x2, _hj1);
var _W41 = _4f1._xT(_hU)._1T();
var _q01 = new _XS(_W41._w2,
_W41._x2);
_G71._4T(_XS._9u(_of1, _q01));
_qf1 -= _w21 * (_YT(_7Z, _q01) + _W41._ei);
_I71._yn(_XS._9u(_pf1, _q01));
_sf1 += _x21 * (_YT(_8Z, _q01) + _W41._ei)
}
data._E61[this._ae1]._v2._0T(_G71);
data._E61[this._ae1]._Wg = _qf1;
data._E61[this._be1]._v2._0T(_I71);
data._E61[this._be1]._Wg = _sf1;
return _bi1 <= _hS && _ai1 <= _iS
},
_bT: function(_cT) {
var _Nw = _cT || {};
this.parent.prototype._bT.call(this, _Nw);
_Nw['localAnchorA'] = this._ph1._bT();
_Nw['localAnchorB'] = this._qh1._bT();
_Nw['referenceAngle'] = this._rh1;
_Nw['frequencyHz'] = this._ji1;
_Nw['dampingRatio'] = this._ki1;
return _Nw
}
};
_bh1._BR(_o71);
function _vj1() {
this.parent.call(this);
this.type = _o71._0h1;
this._gh1 = new _XS();
this._hh1 = new _XS();
this._Mi1 = new _XS(1.0, 0.0);
this._oh1 = !1;
this._lh1 = 0.0;
this._mh1 = 0.0;
this._fi1 = 2.0;
this._gi1 = 0.7;
Object.seal(this)
}
_vj1.prototype = {
_zZ: function(_t81, _u81, anchor, _PU) {
this._u71 = _t81;
this._v71 = _u81;
this._gh1._0T(this._u71._451(anchor));
this._hh1._0T(this._v71._451(anchor));
this._Mi1._0T(this._u71._651(_PU));
},
_dT: function(data, _A81, _Qg1) {
this.parent.prototype._dT.call(this,
data, _A81, _Qg1);
this._gh1._dT(data['localAnchorA']);
this._hh1._dT(data['localAnchorB']);
this._Mi1._dT(data['localAxisA']);
this._oh1 = data['enableMotor'];
this._lh1 = data['maxMotorTorque'];
this._mh1 = data['motorSpeed'];
this._fi1 = data['frequencyHz'];
this._gi1 = data['dampingRatio']
}
};
_vj1._BR(_Og1);
function _ah1(_j41) {
this.parent.call(this, _j41);
this._ae1 = 0;
this._be1 = 0;
this._Dh1 = new _XS();
this._Eh1 = new _XS();
this._Fh1 = 0;
this._Gh1 = 0;
this._Hh1 = 0;
this._Ih1 = 0;
this._ph1 = _j41._gh1._4e();
this._qh1 = _j41._hh1._4e();
this._Qi1 = _j41._Mi1._4e();
this._Ri1 = __T(1.0, this._Qi1);
this._641 = 0.0;
this._sh1 = 0.0;
this._Jh1 = 0.0;
this._th1 = 0.0;
this._wj1 = 0.0;
this._xj1 = 0.0;
this._wh1 = _j41._lh1;
this._xh1 = _j41._mh1;
this._zh1 = _j41._oh1;
this._ji1 = _j41._fi1;
this._ki1 = _j41._gi1;
this._Ci1 = 0.0;
this._mi1 = 0.0;
this._yj1 = new _XS();
this._zj1 = new _XS();
this._Aj1 = this._Bj1 = 0;
this._Cj1 = this._Dj1 = 0
}
_ah1.prototype = {
_G81: function() {
return this._s71._151(this._ph1)
},
_H81: function() {
return this._q71._151(this._qh1);
},
_Rg1: function(_w61) {
return _XS._9u(_w61,
_XS._yn(_XS._9u(this._sh1, this._zj1), _XS._9u(this._xj1, this._yj1)))
},
_Sg1: function(_w61) {
return _w61 * this._th1
},
_Kh1: function() {
return this._ph1
},
_Lh1: function() {
return this._qh1
},
_0j1: function() {
return this._Qi1
},
_1j1: function() {
var _t81 = this._s71;
var _u81 = this._q71;
var _lY = _t81._151(this._ph1);
var _mY = _u81._151(this._qh1);
var _Bp = _XS._4T(_mY, _lY);
var _PU = _t81._251(this._Qi1);
var _Hg1 = _XT(_Bp, _PU);
return _Hg1
},
_Oh1: function() {
var _4Y = this._s71._Z31;
var _5Y = this._q71._Z31;
return _5Y - _4Y
},
_Uh1: function() {
return this._zh1
},
_Vh1: function(_l51) {
this._s71._AI(!0);
this._q71._AI(!0);
this._zh1 = _l51
},
_Wh1: function(_Rc) {
this._s71._AI(!0);
this._q71._AI(!0);
this._xh1 = _Rc
},
_Xh1: function() {
return this._xh1
},
_Yh1: function(_U41) {
this._s71._AI(!0);
this._q71._AI(!0);
this._wh1 = _U41
},
_Zh1: function() {
return this._wh1
},
__h1: function(_w61) {
return _w61 * this._th1
},
_Ej1: function(_ti1) {
this._ji1 = _ti1
},
_Fj1: function() {
return this._ji1
},
_Gj1: function(_yg1) {
this._ki1 = _yg1
},
_Hj1: function() {
return this._ki1
},
_ug1: function(data) {
this._ae1 = this._s71._K31;
this._be1 = this._q71._K31;
this._Dh1._0T(this._s71._T31._OT);
this._Eh1._0T(this._q71._T31._OT);
this._Fh1 = this._s71._741;
this._Gh1 = this._q71._741;
this._Hh1 = this._s71._941;
this._Ih1 = this._q71._941;
var _of1 = this._Fh1,
_pf1 = this._Gh1;
var _w21 = this._Hh1,
_x21 = this._Ih1;
var _G71 = data._E61[this._ae1]._v2._4e();
var _qf1 = data._E61[this._ae1]._Wg;
var _rf1 = data._F61[this._ae1]._8h._4e();
var _4Y = data._F61[this._ae1]._y2;
var _I71 = data._E61[this._be1]._v2._4e();
var _sf1 = data._E61[this._be1]._Wg;
var _tf1 = data._F61[this._be1]._8h._4e();
var _5Y = data._F61[this._be1]._y2;
var _0i1 = new _HT(_qf1),
_1i1 = new _HT(_sf1);
var _7Z = _bU(_0i1, _XS._4T(this._ph1, this._Dh1));
var _8Z = _bU(_1i1, _XS._4T(this._qh1, this._Eh1));
var _Bp = _XS._4T(_XS._4T(_XS._yn(_I71, _8Z), _G71), _7Z); {
this._zj1._0T(_bU(_0i1, this._Ri1));
this._Cj1 = _YT(_XS._yn(_Bp, _7Z), this._zj1);
this._Dj1 = _YT(_8Z, this._zj1);
this._641 = _of1 + _pf1 + _w21 * this._Cj1 * this._Cj1 + _x21 * this._Dj1 * this._Dj1;
if (this._641 > 0.0) {
this._641 = 1.0 / this._641;
}
}
this._wj1 = 0.0;
this._Ci1 = 0.0;
this._mi1 = 0.0;
if (this._ji1 > 0.0) {
this._yj1._0T(_bU(_0i1,
this._Qi1));
this._Aj1 = _YT(_XS._yn(_Bp, _7Z), this._yj1);
this._Bj1 = _YT(_8Z, this._yj1);
var _Ii1 = _of1 + _pf1 + _w21 * this._Aj1 * this._Aj1 + _x21 * this._Bj1 * this._Bj1;
if (_Ii1 > 0.0) {
this._wj1 = 1.0 / _Ii1;
var _hU = _XT(_Bp, this._yj1);
var _xi1 = 2.0 * _cS * this._ji1;
var _Bp = 2.0 * this._wj1 * this._ki1 * _xi1;
var _dZ = this._wj1 * _xi1 * _xi1;
var _z2 = data._JR._v61;
this._mi1 = _z2 * (_Bp + _z2 * _dZ);
if (this._mi1 > 0.0) {
this._mi1 = 1.0 / this._mi1
}
this._Ci1 = _hU * _z2 * _dZ * this._mi1;
this._wj1 = _Ii1 + this._mi1;
if (this._wj1 > 0.0) {
this._wj1 = 1.0 / this._wj1
}
}
} else {
this._xj1 = 0.0
}
if (this._zh1) {
this._Jh1 = _w21 + _x21;
if (this._Jh1 > 0.0) {
this._Jh1 = 1.0 / this._Jh1
}
} else {
this._Jh1 = 0.0;
this._th1 = 0.0
} if (data._JR._A61) {
this._sh1 *= data._JR._x61;
this._xj1 *= data._JR._x61;
this._th1 *= data._JR._x61;
var _q01 = _XS._yn(_XS._9u(this._sh1, this._zj1), _XS._9u(this._xj1, this._yj1));
var _9j1 = this._sh1 * this._Cj1 + this._xj1 * this._Aj1 + this._th1;
var _aj1 = this._sh1 * this._Dj1 + this._xj1 * this._Bj1 + this._th1;
_rf1._4T(_XS._9u(this._Fh1, _q01));
_4Y -= this._Hh1 * _9j1;
_tf1._yn(_XS._9u(this._Gh1, _q01));
_5Y += this._Ih1 * _aj1
} else {
this._sh1 = 0.0;
this._xj1 = 0.0;
this._th1 = 0.0
}
data._F61[this._ae1]._8h._0T(_rf1);
data._F61[this._ae1]._y2 = _4Y;
data._F61[this._be1]._8h._0T(_tf1);
data._F61[this._be1]._y2 = _5Y
},
_Mf1: function(data) {
var _of1 = this._Fh1,
_pf1 = this._Gh1;
var _w21 = this._Hh1,
_x21 = this._Ih1;
var _rf1 = data._F61[this._ae1]._8h._4e();
var _4Y = data._F61[this._ae1]._y2;
var _tf1 = data._F61[this._be1]._8h._4e();
var _5Y = data._F61[this._be1]._y2; {
var _3i1 = _XT(this._yj1, _XS._4T(_tf1, _rf1)) + this._Bj1 * _5Y - this._Aj1 * _4Y;
var _W41 = -this._wj1 * (_3i1 + this._Ci1 + this._mi1 * this._xj1);
this._xj1 += _W41;
var _q01 = _XS._9u(_W41, this._yj1);
var _9j1 = _W41 * this._Aj1;
var _aj1 = _W41 * this._Bj1;
_rf1._4T(_XS._9u(_of1, _q01));
_4Y -= _w21 * _9j1;
_tf1._yn(_XS._9u(_pf1, _q01));
_5Y += _x21 * _aj1
} {
var _3i1 = _5Y - _4Y - this._xh1;
var _W41 = -this._Jh1 * _3i1;
var _4i1 = this._th1;
var _5i1 = data._JR._v61 * this._wh1;
this._th1 = _sU(this._th1 + _W41, -_5i1, _5i1);
_W41 = this._th1 - _4i1;
_4Y -= _w21 * _W41;
_5Y += _x21 * _W41
} {
var _3i1 = _XT(this._zj1, _XS._4T(_tf1, _rf1)) + this._Dj1 * _5Y - this._Cj1 * _4Y;
var _W41 = -this._641 * _3i1;
this._sh1 += _W41;
var _q01 = _XS._9u(_W41,
this._zj1);
var _9j1 = _W41 * this._Cj1;
var _aj1 = _W41 * this._Dj1;
_rf1._4T(_XS._9u(_of1, _q01));
_4Y -= _w21 * _9j1;
_tf1._yn(_XS._9u(_pf1, _q01));
_5Y += _x21 * _aj1
}
data._F61[this._ae1]._8h._0T(_rf1);
data._F61[this._ae1]._y2 = _4Y;
data._F61[this._be1]._8h._0T(_tf1);
data._F61[this._be1]._y2 = _5Y
},
_6g1: function(data) {
var _G71 = data._E61[this._ae1]._v2._4e();
var _qf1 = data._E61[this._ae1]._Wg;
var _I71 = data._E61[this._be1]._v2._4e();
var _sf1 = data._E61[this._be1]._Wg;
var _0i1 = new _HT(_qf1),
_1i1 = new _HT(_sf1);
var _7Z = _bU(_0i1, _XS._4T(this._ph1,
this._Dh1));
var _8Z = _bU(_1i1, _XS._4T(this._qh1, this._Eh1));
var _Bp = _XS._yn(_XS._4T(_I71, _G71), _XS._4T(_8Z, _7Z));
var _6a1 = _bU(_0i1, this._Ri1);
var _Ij1 = _YT(_XS._yn(_Bp, _7Z), _6a1);
var _Jj1 = _YT(_8Z, _6a1);
var _hU = _XT(_Bp, _6a1);
var _dZ = this._Fh1 + this._Gh1 + this._Hh1 * this._Cj1 * this._Cj1 + this._Ih1 * this._Dj1 * this._Dj1;
var _W41;
if (_dZ != 0.0) {
_W41 = -_hU / _dZ
} else {
_W41 = 0.0
}
var _q01 = _XS._9u(_W41, _6a1);
var _9j1 = _W41 * _Ij1;
var _aj1 = _W41 * _Jj1;
_G71._4T(_XS._9u(this._Fh1, _q01));
_qf1 -= this._Hh1 * _9j1;
_I71._yn(_XS._9u(this._Gh1, _q01));
_sf1 += this._Ih1 * _aj1;
data._E61[this._ae1]._v2._0T(_G71);
data._E61[this._ae1]._Wg = _qf1;
data._E61[this._be1]._v2._0T(_I71);
data._E61[this._be1]._Wg = _sf1;
return _lU(_hU) <= _hS
},
_bT: function(_cT) {
var _Nw = _cT || {};
this.parent.prototype._bT.call(this, _Nw);
_Nw['localAnchorA'] = this._ph1._bT();
_Nw['localAnchorB'] = this._qh1._bT();
_Nw['localAxisA'] = this._Kj1._bT();
_Nw['enableMotor'] = this._zh1;
_Nw['maxMotorTorque'] = this._wh1;
_Nw['motorSpeed'] = this._xh1;
_Nw['frequencyHz'] = this._ji1;
_Nw['dampingRatio'] = this._ki1;
return _Nw
}
};
_ah1._BR(_o71);
function _Lj1() {
this.parent.call(this);
this.type = _o71.__g1;
this._Mj1 = null;
this._Nj1 = null;
this._yg1 = 1.0;
Object.seal(this)
}
_Lj1.prototype = {
_dT: function(data, _A81, _Qg1) {
this.parent.prototype._dT.call(this, data, _A81, _Qg1);
this._Mj1 = data['joint1'];
this._Nj1 = data['joint2'];
this._yg1 = data['ratio']
}
};
_Lj1._BR(_Og1);
function _9h1(_j41) {
this.parent.call(this, _j41);
this._Oj1 = _j41._Mj1;
this._Pj1 = _j41._Nj1;
this._Qj1 = this._Oj1._hV();
this._Rj1 = this._Pj1._hV();
_7S(this._Qj1 == _o71._Yg1 || this._Qj1 == _o71._Zg1);
_7S(this._Rj1 == _o71._Yg1 || this._Rj1 == _o71._Zg1);
var _Sj1, _Tj1;
this._Uj1 = this._Oj1._E81();
this._s71 = this._Oj1._F81();
var _AZ = this._s71._M01;
var _qf1 = this._s71._T31._Wg;
var _Vj1 = this._Uj1._M01;
var _Wj1 = this._Uj1._T31._Wg;
this._ph1 = new _XS();
this._qh1 = new _XS();
this._Xj1 = new _XS();
this._Yj1 = new _XS();
this._Zj1 = new _XS();
this.__j1 = new _XS();
if (this._Qj1 == _o71._Yg1) {
var _0k1 = _j41._Mj1;
this._Xj1._0T(_0k1._ph1);
this._ph1._0T(_0k1._qh1);
this._1k1 = _0k1._rh1;
this._Zj1._YS();
_Sj1 = _qf1 - _Wj1 - this._1k1
} else {
var _2k1 = _j41._Mj1;
this._Xj1._0T(_2k1._ph1);
this._ph1._0T(_2k1._qh1);
this._1k1 = _2k1._rh1;
this._Zj1._0T(_2k1._Qi1);
var _3k1 = this._Xj1;
var _lY = _cU(_Vj1._rz, _XS._yn(_bU(_AZ._rz, this._ph1), _XS._4T(_AZ._yA, _Vj1._yA)));
_Sj1 = _XT(_XS._4T(_lY, _3k1), this._Zj1)
}
this._4k1 = this._Pj1._E81();
this._q71 = this._Pj1._F81();
var _CZ = this._q71._M01;
var _sf1 = this._q71._T31._Wg;
var _5k1 = this._4k1._M01;
var _6k1 = this._4k1._T31._Wg;
if (this._Rj1 == _o71._Yg1) {
var _0k1 = _j41._Nj1;
this._Yj1._0T(_0k1._ph1);
this._qh1._0T(_0k1._qh1);
this._7k1 = _0k1._rh1;
this.__j1._YS();
_Tj1 = _sf1 - _6k1 - this._7k1
} else {
var _2k1 = _j41._Nj1;
this._Yj1._0T(_2k1._ph1);
this._qh1._0T(_2k1._qh1);
this._7k1 = _2k1._rh1;
this.__j1._0T(_2k1._Qi1);
var _8k1 = this._Yj1;
var _mY = _cU(_5k1._rz, _XS._yn(_bU(_CZ._rz, this._qh1), _XS._4T(_CZ._yA, _5k1._yA)));
_Tj1 = _XT(_XS._4T(_mY, _8k1), this.__j1)
}
this._9k1 = _j41._yg1;
this._ak1 = _Sj1 + this._9k1 * _Tj1;
this._sh1 = 0.0;
this._ae1 = this._be1 = this._bk1 = this._ck1 = 0;
this._dk1 = new _XS();
this._ek1 = new _XS();
this._fk1 = new _XS();
this._gk1 = new _XS();
this._hk1 = this._ik1 = this._jk1 = this._kk1 = 0;
this._lk1 = this._mk1 = this._nk1 = this._ok1 = 0;
this._pk1 = new _XS(), this._qk1 = new _XS();
this._rk1 = this._sk1 = this._tk1 = this._uk1 = 0;
this._641 = 0
}
_9h1.prototype = {
_G81: function() {
return this._s71._151(this._ph1)
},
_H81: function() {
return this._q71._151(this._qh1)
},
_Rg1: function(_w61) {
var _q01 = _XS._9u(this._sh1, this._pk1);
return _XS._9u(_w61, _q01)
},
_Sg1: function(_w61) {
var _vk1 = this._sh1 * this._rk1;
return _w61 * _vk1
},
_wk1: function() {
return this._Oj1
},
_xk1: function() {
return this._Pj1
},
_yk1: function(_yg1) {
_7S(_NS(_yg1));
this._9k1 = _yg1
},
_zk1: function() {
return this._9k1
},
_ug1: function(data) {
this._ae1 = this._s71._K31;
this._be1 = this._q71._K31;
this._bk1 = this._Uj1._K31;
this._ck1 = this._4k1._K31;
this._dk1._0T(this._s71._T31._OT);
this._ek1._0T(this._q71._T31._OT);
this._fk1._0T(this._Uj1._T31._OT);
this._gk1._0T(this._4k1._T31._OT);
this._hk1 = this._s71._741;
this._ik1 = this._q71._741;
this._jk1 = this._Uj1._741;
this._kk1 = this._4k1._741;
this._lk1 = this._s71._941;
this._mk1 = this._q71._941;
this._nk1 = this._Uj1._941;
this._ok1 = this._4k1._941;
var _qf1 = data._E61[this._ae1]._Wg;
var _rf1 = data._F61[this._ae1]._8h._4e();
var _4Y = data._F61[this._ae1]._y2;
var _sf1 = data._E61[this._be1]._Wg;
var _tf1 = data._F61[this._be1]._8h._4e();
var _5Y = data._F61[this._be1]._y2;
var _Wj1 = data._E61[this._bk1]._Wg;
var _Ak1 = data._F61[this._bk1]._8h._4e();
var _Bk1 = data._F61[this._bk1]._y2;
var _6k1 = data._E61[this._ck1]._Wg;
var _Ck1 = data._F61[this._ck1]._8h._4e();
var _Dk1 = data._F61[this._ck1]._y2;
var _0i1 = new _HT(_qf1),
_1i1 = new _HT(_sf1),
_Ek1 = new _HT(_Wj1),
_Fk1 = new _HT(_6k1);
this._641 = 0.0;
if (this._Qj1 == _o71._Yg1) {
this._pk1._YS();
this._rk1 = 1.0;
this._tk1 = 1.0;
this._641 += this._lk1 + this._nk1
} else {
var _6h = _bU(_Ek1, this._Zj1);
var _Gk1 = _bU(_Ek1, _XS._4T(this._Xj1, this._fk1));
var _7Z = _bU(_0i1, _XS._4T(this._ph1, this._dk1));
this._pk1._0T(_6h);
this._tk1 = _YT(_Gk1, _6h);
this._rk1 = _YT(_7Z, _6h);
this._641 += this._jk1 + this._hk1 + this._nk1 * this._tk1 * this._tk1 + this._lk1 * this._rk1 * this._rk1
} if (this._Rj1 == _o71._Yg1) {
this._qk1._YS();
this._sk1 = this._9k1;
this._uk1 = this._9k1;
this._641 += this._9k1 * this._9k1 * (this._mk1 + this._ok1)
} else {
var _6h = _bU(_Fk1, this.__j1);
var _Hk1 = _bU(_Fk1, _XS._4T(this._Yj1, this._gk1));
var _8Z = _bU(_1i1, _XS._4T(this._qh1, this._ek1));
this._qk1._0T(_XS._9u(this._9k1, _6h));
this._uk1 = this._9k1 * _YT(_Hk1, _6h);
this._sk1 = this._9k1 * _YT(_8Z, _6h);
this._641 += this._9k1 * this._9k1 * (this._kk1 + this._ik1) + this._ok1 * this._uk1 * this._uk1 + this._mk1 * this._sk1 * this._sk1
}
this._641 = this._641 > 0.0 ? 1.0 / this._641 : 0.0;
if (data._JR._A61) {
_rf1._yn(_XS._9u((this._hk1 * this._sh1), this._pk1));
_4Y += this._lk1 * this._sh1 * this._rk1;
_tf1._yn(_XS._9u((this._ik1 * this._sh1), this._qk1));
_5Y += this._mk1 * this._sh1 * this._sk1;
_Ak1._4T(_XS._9u((this._jk1 * this._sh1), this._pk1));
_Bk1 -= this._nk1 * this._sh1 * this._tk1;
_Ck1._4T(_XS._9u((this._kk1 * this._sh1), this._qk1));
_Dk1 -= this._ok1 * this._sh1 * this._uk1
} else {
this._sh1 = 0.0
}
data._F61[this._ae1]._8h._0T(_rf1);
data._F61[this._ae1]._y2 = _4Y;
data._F61[this._be1]._8h._0T(_tf1);
data._F61[this._be1]._y2 = _5Y;
data._F61[this._bk1]._8h._0T(_Ak1);
data._F61[this._bk1]._y2 = _Bk1;
data._F61[this._ck1]._8h._0T(_Ck1);
data._F61[this._ck1]._y2 = _Dk1
},
_Mf1: function(data) {
var _rf1 = data._F61[this._ae1]._8h._4e();
var _4Y = data._F61[this._ae1]._y2;
var _tf1 = data._F61[this._be1]._8h._4e();
var _5Y = data._F61[this._be1]._y2;
var _Ak1 = data._F61[this._bk1]._8h._4e();
var _Bk1 = data._F61[this._bk1]._y2;
var _Ck1 = data._F61[this._ck1]._8h._4e();
var _Dk1 = data._F61[this._ck1]._y2;
var _3i1 = _XT(this._pk1, _XS._4T(_rf1, _Ak1)) + _XT(this._qk1, _XS._4T(_tf1, _Ck1));
_3i1 += (this._rk1 * _4Y - this._tk1 * _Bk1) + (this._sk1 * _5Y - this._uk1 * _Dk1);
var _W41 = -this._641 * _3i1;
this._sh1 += _W41;
_rf1._yn(_XS._9u((this._hk1 * _W41),
this._pk1));
_4Y += this._lk1 * _W41 * this._rk1;
_tf1._yn(_XS._9u((this._ik1 * _W41), this._qk1));
_5Y += this._mk1 * _W41 * this._sk1;
_Ak1._4T(_XS._9u((this._jk1 * _W41), this._pk1));
_Bk1 -= this._nk1 * _W41 * this._tk1;
_Ck1._4T(_XS._9u((this._kk1 * _W41), this._qk1));
_Dk1 -= this._ok1 * _W41 * this._uk1;
data._F61[this._ae1]._8h._0T(_rf1);
data._F61[this._ae1]._y2 = _4Y;
data._F61[this._be1]._8h._0T(_tf1);
data._F61[this._be1]._y2 = _5Y;
data._F61[this._bk1]._8h._0T(_Ak1);
data._F61[this._bk1]._y2 = _Bk1;
data._F61[this._ck1]._8h._0T(_Ck1);
data._F61[this._ck1]._y2 = _Dk1;
},
_6g1: function(data) {
var _G71 = data._E61[this._ae1]._v2._4e();
var _qf1 = data._E61[this._ae1]._Wg;
var _I71 = data._E61[this._be1]._v2._4e();
var _sf1 = data._E61[this._be1]._Wg;
var _Ik1 = data._E61[this._bk1]._v2._4e();
var _Wj1 = data._E61[this._bk1]._Wg;
var _Jk1 = data._E61[this._ck1]._v2._4e();
var _6k1 = data._E61[this._ck1]._Wg;
var _0i1 = new _HT(_qf1),
_1i1 = new _HT(_sf1),
_Ek1 = new _HT(_Wj1),
_Fk1 = new _HT(_6k1);
var _gj1 = 0.0;
var _Sj1, _Tj1;
var _Kk1 = new _XS(),
_Lk1 = new _XS();
var _Mk1, _Nk1, _Ok1, _Pk1;
var _cV = 0.0;
if (this._Qj1 == _o71._Yg1) {
_Kk1._YS();
_Mk1 = 1.0;
_Ok1 = 1.0;
_cV += this._lk1 + this._nk1;
_Sj1 = _qf1 - _Wj1 - this._1k1
} else {
var _6h = _bU(_Ek1, this._Zj1);
var _Gk1 = _bU(_Ek1, _XS._4T(this._Xj1, this._fk1));
var _7Z = _bU(_0i1, _XS._4T(this._ph1, this._dk1));
_Kk1._0T(_6h);
_Ok1 = _YT(_Gk1, _6h);
_Mk1 = _YT(_7Z, _6h);
_cV += this._jk1 + this._hk1 + this._nk1 * _Ok1 * _Ok1 + this._lk1 * _Mk1 * _Mk1;
var _3k1 = _XS._4T(this._Xj1, this._fk1);
var _lY = _cU(_Ek1, _XS._yn(_7Z, _XS._4T(_G71, _Ik1)));
_Sj1 = _XT(_XS._4T(_lY, _3k1), this._Zj1)
} if (this._Rj1 == _o71._Yg1) {
_Lk1._YS();
_Nk1 = this._9k1;
_Pk1 = this._9k1;
_cV += this._9k1 * this._9k1 * (this._mk1 + this._ok1);
_Tj1 = _sf1 - _6k1 - this._7k1
} else {
var _6h = _bU(_Fk1, this.__j1);
var _Hk1 = _bU(_Fk1, _XS._4T(this._Yj1, this._gk1));
var _8Z = _bU(_1i1, _XS._4T(this._qh1, this._ek1));
_Lk1._0T(_XS._9u(this._9k1, _6h));
_Pk1 = this._9k1 * _YT(_Hk1, _6h);
_Nk1 = this._9k1 * _YT(_8Z, _6h);
_cV += this._9k1 * this._9k1 * (this._kk1 + this._ik1) + this._ok1 * _Pk1 * _Pk1 + this._mk1 * _Nk1 * _Nk1;
var _8k1 = _XS._4T(this._Yj1, this._gk1);
var _mY = _cU(_Fk1, _XS._yn(_8Z, _XS._4T(_I71, _Jk1)));
_Tj1 = _XT(_XS._4T(_mY,
_8k1), this.__j1)
}
var _hU = (_Sj1 + this._9k1 * _Tj1) - this._ak1;
var _W41 = 0.0;
if (_cV > 0.0) {
_W41 = -_hU / _cV
}
_G71._yn(_XS._9u(this._hk1, _XS._9u(_W41, _Kk1)));
_qf1 += this._lk1 * _W41 * _Mk1;
_I71._yn(_XS._9u(this._ik1, _XS._9u(_W41, _Lk1)));
_sf1 += this._mk1 * _W41 * _Nk1;
_Ik1._4T(_XS._9u(this._jk1, _XS._9u(_W41, _Kk1)));
_Wj1 -= this._nk1 * _W41 * _Ok1;
_Jk1._4T(_XS._9u(this._kk1, _XS._9u(_W41, _Lk1)));
_6k1 -= this._ok1 * _W41 * _Pk1;
data._E61[this._ae1]._v2._0T(_G71);
data._E61[this._ae1]._Wg = _qf1;
data._E61[this._be1]._v2._0T(_I71);
data._E61[this._be1]._Wg = _sf1;
data._E61[this._bk1]._v2._0T(_Ik1);
data._E61[this._bk1]._Wg = _Wj1;
data._E61[this._ck1]._v2._0T(_Jk1);
data._E61[this._ck1]._Wg = _6k1;
return _gj1 < _hS
},
_bT: function(_cT) {
var _Nw = _cT || {};
this.parent.prototype._bT.call(this, _Nw);
_Nw['joint1'] = this._Oj1._Qk1;
_Nw['joint2'] = this._Pj1._Qk1;
_Nw['ratio'] = this._9k1;
return _Nw
}
};
_9h1._BR(_o71);
function _Rk1() {
this.parent.call(this);
this.type = _o71._O81;
this._Sk1 = new _XS();
this._Tk1 = 0.0;
this._ei1 = 1.0;
this._kj1 = 1.0;
this._Uk1 = 0.3;
Object.seal(this)
}
_Rk1.prototype = {
_zZ: function(_t81,
_u81) {
this._u71 = _t81;
this._v71 = _u81;
var _Vk1 = this._v71._2I();
this._Sk1._0T(this._u71._451(_Vk1));
var _Wk1 = this._u71._IT();
var _Xk1 = this._v71._IT();
this._Tk1 = _Xk1 - _Wk1
},
_dT: function(data, _A81, _Qg1) {
this.parent.prototype._dT.call(this, data, _A81, _Qg1);
this._Sk1._dT(data['linearOffset']);
this._Tk1 = data['angularOffset'];
this._ei1 = data['maxForce'];
this._kj1 = data['maxTorque'];
this._Uk1 = data['correctionFactor']
}
};
_Rk1._BR(_Og1);
function _eh1(_j41) {
this.parent.call(this, _j41);
this._Yk1 = _j41._Sk1._4e();
this._Zk1 = _j41._Tk1;
this._lj1 = new _XS();
this._mj1 = 0.0;
this._ii1 = _j41._ei1;
this._nj1 = _j41._kj1;
this.__k1 = _j41._Uk1;
this._ae1 = 0;
this._be1 = 0;
this._Bh1 = new _XS();
this._Ch1 = new _XS();
this._Dh1 = new _XS();
this._Eh1 = new _XS();
this._0l1 = new _XS();
this._1l1 = 0;
this._Fh1 = 0;
this._Gh1 = 0;
this._Hh1 = 0;
this._Ih1 = 0;
this._oj1 = new _hT();
this._pj1 = 0
}
_eh1.prototype = {
_G81: function() {
return this._s71._2I()
},
_H81: function() {
return this._q71._2I()
},
_Rg1: function(_w61) {
return _XS._9u(_w61, this._lj1)
},
_Sg1: function(_w61) {
return _w61 * this._mj1
},
_2l1: function(_Sk1) {
if (_Sk1._w2 != this._Yk1._w2 || _Sk1._x2 != this._Yk1._x2) {
this._s71._AI(!0);
this._q71._AI(!0);
this._Yk1._0T(_Sk1)
}
},
_Q81: function() {
return this._Yk1
},
_3l1: function(_Tk1) {
if (_Tk1 != this._Zk1) {
this._s71._AI(!0);
this._q71._AI(!0);
this._Zk1 = _Tk1
}
},
_4l1: function() {
return this._Zk1
},
_qi1: function(_Q41) {
_7S(_NS(_Q41) && _Q41 >= 0.0);
this._ii1 = _Q41
},
_ri1: function() {
return this._ii1
},
_qj1: function(_U41) {
_7S(_NS(_U41) && _U41 >= 0.0);
this._nj1 = _U41
},
_rj1: function() {
return this._nj1
},
_5l1: function(_6l1) {
_7S(_NS(_6l1) && 0.0 <= _6l1 && _6l1 <= 1.0);
this.__k1 = _6l1
},
_7l1: function() {
return this.__k1
},
_ug1: function(data) {
this._ae1 = this._s71._K31;
this._be1 = this._q71._K31;
this._Dh1._0T(this._s71._T31._OT);
this._Eh1._0T(this._q71._T31._OT);
this._Fh1 = this._s71._741;
this._Gh1 = this._q71._741;
this._Hh1 = this._s71._941;
this._Ih1 = this._q71._941;
var _G71 = data._E61[this._ae1]._v2._4e();
var _qf1 = data._E61[this._ae1]._Wg;
var _rf1 = data._F61[this._ae1]._8h._4e();
var _4Y = data._F61[this._ae1]._y2;
var _I71 = data._E61[this._be1]._v2._4e();
var _sf1 = data._E61[this._be1]._Wg;
var _tf1 = data._F61[this._be1]._8h._4e();
var _5Y = data._F61[this._be1]._y2;
var _0i1 = new _HT(_qf1),
_1i1 = new _HT(_sf1);
this._Bh1._0T(_bU(_0i1, this._Dh1._1T()));
this._Ch1._0T(_bU(_1i1, this._Eh1._1T()));
var _of1 = this._Fh1,
_pf1 = this._Gh1;
var _w21 = this._Hh1,
_x21 = this._Ih1;
var _4f1 = new _hT();
_4f1._0L._w2 = _of1 + _pf1 + _w21 * this._Bh1._x2 * this._Bh1._x2 + _x21 * this._Ch1._x2 * this._Ch1._x2;
_4f1._0L._x2 = -_w21 * this._Bh1._w2 * this._Bh1._x2 - _x21 * this._Ch1._w2 * this._Ch1._x2;
_4f1._kT._w2 = _4f1._0L._x2;
_4f1._kT._x2 = _of1 + _pf1 + _w21 * this._Bh1._w2 * this._Bh1._w2 + _x21 * this._Ch1._w2 * this._Ch1._w2;
this._oj1._0T(_4f1._mT());
this._pj1 = _w21 + _x21;
if (this._pj1 > 0.0) {
this._pj1 = 1.0 / this._pj1
}
this._0l1._w2 = _I71._w2 + this._Ch1._w2 - _G71._w2 - this._Bh1._w2 - (_0i1._v2 * this._Yk1._w2 - _0i1._ov * this._Yk1._x2);
this._0l1._x2 = _I71._x2 + this._Ch1._x2 - _G71._x2 - this._Bh1._x2 - (_0i1._ov * this._Yk1._w2 + _0i1._v2 * this._Yk1._x2);
this._1l1 = _sf1 - _qf1 - this._Zk1;
if (data._JR._A61) {
this._lj1._9u(data._JR._x61);
this._mj1 *= data._JR._x61;
var _q01 = new _XS(this._lj1._w2, this._lj1._x2);
_rf1._4T(_XS._9u(_of1, _q01));
_4Y -= _w21 * (_YT(this._Bh1,
_q01) + this._mj1);
_tf1._yn(_XS._9u(_pf1, _q01));
_5Y += _x21 * (_YT(this._Ch1, _q01) + this._mj1)
} else {
this._lj1._YS();
this._mj1 = 0.0
}
data._F61[this._ae1]._8h._0T(_rf1);
data._F61[this._ae1]._y2 = _4Y;
data._F61[this._be1]._8h._0T(_tf1);
data._F61[this._be1]._y2 = _5Y
},
_Mf1: function(data) {
var _rf1 = data._F61[this._ae1]._8h._4e();
var _4Y = data._F61[this._ae1]._y2;
var _tf1 = data._F61[this._be1]._8h._4e();
var _5Y = data._F61[this._be1]._y2;
var _of1 = this._Fh1,
_pf1 = this._Gh1;
var _w21 = this._Hh1,
_x21 = this._Ih1;
var _z2 = data._JR._v61;
var _8l1 = data._JR._w61; {
var _3i1 = _5Y - _4Y + _8l1 * this.__k1 * this._1l1;
var _W41 = -this._pj1 * _3i1;
var _4i1 = this._mj1;
var _5i1 = _z2 * this._nj1;
this._mj1 = _sU(this._mj1 + _W41, -_5i1, _5i1);
_W41 = this._mj1 - _4i1;
_4Y -= _w21 * _W41;
_5Y += _x21 * _W41
} {
var _3i1 = new _XS(_tf1._w2 + (-_5Y * this._Ch1._w2) - _rf1._w2 - (-_4Y * this._Bh1._w2) + _8l1 * this.__k1 * this._0l1._w2, _tf1._x2 + (_5Y * this._Ch1._x2) - _rf1._x2 - (_4Y * this._Bh1._x2) + _8l1 * this.__k1 * this._0l1._x2);
var _W41 = _0U(this._oj1, _3i1)._1T();
var _4i1 = this._lj1._4e();
this._lj1._yn(_W41);
var _5i1 = _z2 * this._ii1;
if (this._lj1._6T() > _5i1 * _5i1) {
this._lj1._7T();
this._lj1._9u(_5i1)
}
_W41._0T(_XS._4T(this._lj1, _4i1));
_rf1._4T(_XS._9u(_of1, _W41));
_4Y -= _w21 * _YT(this._Bh1, _W41);
_tf1._yn(_XS._9u(_pf1, _W41));
_5Y += _x21 * _YT(this._Ch1, _W41)
}
data._F61[this._ae1]._8h._0T(_rf1);
data._F61[this._ae1]._y2 = _4Y;
data._F61[this._be1]._8h._0T(_tf1);
data._F61[this._be1]._y2 = _5Y
},
_6g1: function(data) {
return !0
},
_bT: function(_cT) {
var _Nw = _cT || {};
this.parent.prototype._bT.call(this, _Nw);
_Nw['linearOffset'] = this._Yk1._bT();
_Nw['angularOffset'] = this._Zk1;
_Nw['maxForce'] = this._ii1;
_Nw['maxTorque'] = this._nj1;
_Nw['correctionFactor'] = this.__k1;
return _Nw
}
};
_eh1._BR(_o71);
var _9l1 = 2.0;
function _al1() {
this.parent.call(this);
this.type = _o71._J81;
this._bl1 = new _XS(-1.0, 1.0);
this._cl1 = new _XS(1.0, 1.0);
this._gh1 = new _XS(-1.0, 0.0);
this._hh1 = new _XS(1.0, 0.0);
this._dl1 = 0.0;
this._el1 = 0.0;
this._yg1 = 1.0;
this._w71 = !0;
Object.seal(this)
}
_al1.prototype = {
_zZ: function(_t81, _u81, _fl1, _gl1, _hl1, _il1, _uf) {
this._u71 = _t81;
this._v71 = _u81;
this._bl1._0T(_fl1);
this._cl1._0T(_gl1);
this._gh1._0T(this._u71._451(_hl1));
this._hh1._0T(this._v71._451(_il1));
var _jl1 = _XS._4T(_hl1, _fl1);
this._dl1 = _jl1._5T();
var _kl1 = _XS._4T(_il1, _gl1);
this._el1 = _kl1._5T();
this._yg1 = _uf;
_7S(this._yg1 > _bS)
},
_dT: function(data, _A81, _Qg1) {
this.parent.prototype._dT.call(this, data, _A81, _Qg1);
this._bl1._dT(data['groundAnchorA']);
this._cl1._dT(data['groundAnchorB']);
this._gh1._dT(data['localAnchorA']);
this._hh1._dT(data['localAnchorB']);
this._dl1 = data['lengthA'];
this._el1 = data['lengthB'];
this._yg1 = data['ratio']
}
};
_al1._BR(_Og1);
function _8h1(_j41) {
this.parent.call(this, _j41);
this._ae1 = 0;
this._be1 = 0;
this._ll1 = new _XS();
this._ml1 = new _XS();
this._Bh1 = new _XS();
this._Ch1 = new _XS();
this._Dh1 = new _XS();
this._Eh1 = new _XS();
this._Fh1 = 0;
this._Gh1 = 0;
this._Hh1 = 0;
this._Ih1 = 0;
this._641 = 0;
this._nl1 = _j41._bl1._4e();
this._ol1 = _j41._cl1._4e();
this._ph1 = _j41._gh1._4e();
this._qh1 = _j41._hh1._4e();
this._pl1 = _j41._dl1;
this._ql1 = _j41._el1;
_7S(_j41._yg1 != 0.0);
this._9k1 = _j41._yg1;
this._ak1 = _j41._dl1 + this._9k1 * _j41._el1;
this._sh1 = 0.0
}
_8h1.prototype = {
_G81: function() {
return this._s71._151(this._ph1)
},
_H81: function() {
return this._q71._151(this._qh1);
},
_Rg1: function(_w61) {
var _q01 = _XS._9u(this._sh1, this._ml1);
return _XS._9u(_w61, _q01)
},
_Sg1: function(_w61) {
return 0.0
},
_L81: function() {
return this._nl1
},
_M81: function() {
return this._ol1
},
_rl1: function() {
return this._pl1
},
_sl1: function() {
return this._ql1
},
_zk1: function() {
return this._9k1
},
_tl1: function() {
var _yA = this._s71._151(this._ph1);
var _ov = this._nl1;
var _Bp = _XS._4T(_yA, _ov);
return _Bp._5T()
},
_ul1: function() {
var _yA = this._q71._151(this._qh1);
var _ov = this._ol1;
var _Bp = _XS._4T(_yA, _ov);
return _Bp._5T();
},
_HX: function(_IX) {
this._nl1._4T(_IX);
this._ol1._4T(_IX)
},
_ug1: function(data) {
this._ae1 = this._s71._K31;
this._be1 = this._q71._K31;
this._Dh1._0T(this._s71._T31._OT);
this._Eh1._0T(this._q71._T31._OT);
this._Fh1 = this._s71._741;
this._Gh1 = this._q71._741;
this._Hh1 = this._s71._941;
this._Ih1 = this._q71._941;
var _G71 = data._E61[this._ae1]._v2._4e();
var _qf1 = data._E61[this._ae1]._Wg;
var _rf1 = data._F61[this._ae1]._8h._4e();
var _4Y = data._F61[this._ae1]._y2;
var _I71 = data._E61[this._be1]._v2._4e();
var _sf1 = data._E61[this._be1]._Wg;
var _tf1 = data._F61[this._be1]._8h._4e();
var _5Y = data._F61[this._be1]._y2;
var _0i1 = new _HT(_qf1),
_1i1 = new _HT(_sf1);
this._Bh1._0T(_bU(_0i1, _XS._4T(this._ph1, this._Dh1)));
this._Ch1._0T(_bU(_1i1, _XS._4T(this._qh1, this._Eh1)));
this._ll1._0T(_XS._yn(_G71, _XS._4T(this._Bh1, this._nl1)));
this._ml1._0T(_XS._yn(_I71, _XS._4T(this._Ch1, this._ol1)));
var _dl1 = this._ll1._5T();
var _el1 = this._ml1._5T();
if (_dl1 > 10.0 * _hS) {
this._ll1._9u(1.0 / _dl1)
} else {
this._ll1._YS()
} if (_el1 > 10.0 * _hS) {
this._ml1._9u(1.0 / _el1)
} else {
this._ml1._YS();
}
var _vl1 = _YT(this._Bh1, this._ll1);
var _wl1 = _YT(this._Ch1, this._ml1);
var _of1 = this._Fh1 + this._Hh1 * _vl1 * _vl1;
var _pf1 = this._Gh1 + this._Ih1 * _wl1 * _wl1;
this._641 = _of1 + this._9k1 * this._9k1 * _pf1;
if (this._641 > 0.0) {
this._641 = 1.0 / this._641
}
if (data._JR._A61) {
this._sh1 *= data._JR._x61;
var _xl1 = _XS._9u(-(this._sh1), this._ll1);
var _yl1 = _XS._9u((-this._9k1 * this._sh1), this._ml1);
_rf1._yn(_XS._9u(this._Fh1, _xl1));
_4Y += this._Hh1 * _YT(this._Bh1, _xl1);
_tf1._yn(_XS._9u(this._Gh1, _yl1));
_5Y += this._Ih1 * _YT(this._Ch1,
_yl1)
} else {
this._sh1 = 0.0
}
data._F61[this._ae1]._8h._0T(_rf1);
data._F61[this._ae1]._y2 = _4Y;
data._F61[this._be1]._8h._0T(_tf1);
data._F61[this._be1]._y2 = _5Y
},
_Mf1: function(data) {
var _rf1 = data._F61[this._ae1]._8h._4e();
var _4Y = data._F61[this._ae1]._y2;
var _tf1 = data._F61[this._be1]._8h._4e();
var _5Y = data._F61[this._be1]._y2;
var _Ji1 = _XS._yn(_rf1, __T(_4Y, this._Bh1));
var _Ki1 = _XS._yn(_tf1, __T(_5Y, this._Ch1));
var _3i1 = -_XT(this._ll1, _Ji1) - this._9k1 * _XT(this._ml1, _Ki1);
var _W41 = -this._641 * _3i1;
this._sh1 += _W41;
var _xl1 = _XS._9u(-_W41,
this._ll1);
var _yl1 = _XS._9u(-this._9k1, _XS._9u(_W41, this._ml1));
_rf1._yn(_XS._9u(this._Fh1, _xl1));
_4Y += this._Hh1 * _YT(this._Bh1, _xl1);
_tf1._yn(_XS._9u(this._Gh1, _yl1));
_5Y += this._Ih1 * _YT(this._Ch1, _yl1);
data._F61[this._ae1]._8h._0T(_rf1);
data._F61[this._ae1]._y2 = _4Y;
data._F61[this._be1]._8h._0T(_tf1);
data._F61[this._be1]._y2 = _5Y
},
_6g1: function(data) {
var _G71 = data._E61[this._ae1]._v2._4e();
var _qf1 = data._E61[this._ae1]._Wg;
var _I71 = data._E61[this._be1]._v2._4e();
var _sf1 = data._E61[this._be1]._Wg;
var _0i1 = new _HT(_qf1),
_1i1 = new _HT(_sf1);
var _7Z = _bU(_0i1, _XS._4T(this._ph1, this._Dh1));
var _8Z = _bU(_1i1, _XS._4T(this._qh1, this._Eh1));
var _zl1 = _XS._yn(_G71, _XS._4T(_7Z, this._nl1));
var _Al1 = _XS._yn(_I71, _XS._4T(_8Z, this._ol1));
var _dl1 = _zl1._5T();
var _el1 = _Al1._5T();
if (_dl1 > 10.0 * _hS) {
_zl1._9u(1.0 / _dl1)
} else {
_zl1._YS()
} if (_el1 > 10.0 * _hS) {
_Al1._9u(1.0 / _el1)
} else {
_Al1._YS()
}
var _vl1 = _YT(_7Z, _zl1);
var _wl1 = _YT(_8Z, _Al1);
var _of1 = this._Fh1 + this._Hh1 * _vl1 * _vl1;
var _pf1 = this._Gh1 + this._Ih1 * _wl1 * _wl1;
var _cV = _of1 + this._9k1 * this._9k1 * _pf1;
if (_cV > 0.0) {
_cV = 1.0 / _cV
}
var _hU = this._ak1 - _dl1 - this._9k1 * _el1;
var _gj1 = _lU(_hU);
var _W41 = -_cV * _hU;
var _xl1 = _XS._9u(-_W41, _zl1);
var _yl1 = _XS._9u(-this._9k1, _XS._9u(_W41, _Al1));
_G71._yn(_XS._9u(this._Fh1, _xl1));
_qf1 += this._Hh1 * _YT(_7Z, _xl1);
_I71._yn(_XS._9u(this._Gh1, _yl1));
_sf1 += this._Ih1 * _YT(_8Z, _yl1);
data._E61[this._ae1]._v2._0T(_G71);
data._E61[this._ae1]._Wg = _qf1;
data._E61[this._be1]._v2._0T(_I71);
data._E61[this._be1]._Wg = _sf1;
return _gj1 < _hS
},
_bT: function(_cT) {
var _Nw = _cT || {};
this.parent.prototype._bT.call(this,
_Nw);
_Nw['groundAnchorA'] = this._nl1._bT();
_Nw['groundAnchorB'] = this._ol1._bT();
_Nw['localAnchorA'] = this._ph1._bT();
_Nw['localAnchorB'] = this._qh1._bT();
_Nw['lengthA'] = this._pl1;
_Nw['lengthB'] = this._ql1;
_Nw['ratio'] = this._9k1;
return _Nw
}
};
_8h1._BR(_o71);
function _Bl1() {
this.parent.call(this);
this.type = _o71._3h1;
this._gh1 = new _XS(-1.0, 0.0);
this._hh1 = new _XS(1.0, 0.0);
this._Cl1 = 0.0;
Object.seal(this)
}
_Bl1.prototype = {
_dT: function(data, _A81, _Qg1) {
this.parent.prototype._dT.call(this, data, _A81, _Qg1);
this._gh1._dT(data['localAnchorA']);
this._hh1._dT(data['localAnchorB']);
this._Cl1 = data['maxLength']
}
};
_Bl1._BR(_Og1);
function _dh1(_j41) {
this.parent.call(this, _j41);
this._ph1 = _j41._gh1._4e();
this._qh1 = _j41._hh1._4e();
this._Dl1 = _j41._Cl1;
this._641 = 0.0;
this._sh1 = 0.0;
this._El1 = _o71._Ug1;
this._Bi1 = 0.0;
this._ae1 = 0;
this._be1 = 0;
this._Di1 = new _XS();
this._Bh1 = new _XS();
this._Ch1 = new _XS();
this._Dh1 = new _XS();
this._Eh1 = new _XS();
this._Fh1 = 0;
this._Gh1 = 0;
this._Hh1 = 0;
this._Ih1 = 0
}
_dh1.prototype = {
_G81: function() {
return this._s71._151(this._ph1)
},
_H81: function() {
return this._q71._151(this._qh1)
},
_Rg1: function(_w61) {
var _B21 = _XS._9u((_w61 * this._sh1), this._Di1);
return _B21
},
_Sg1: function(_w61) {
return 0.0
},
_Kh1: function() {
return this._ph1
},
_Lh1: function() {
return this._qh1
},
_Fl1: function(length) {
this._Dl1 = length
},
_Gl1: function() {
return this._Dl1
},
_Hl1: function() {
return this._El1
},
_ug1: function(data) {
this._ae1 = this._s71._K31;
this._be1 = this._q71._K31;
this._Dh1._0T(this._s71._T31._OT);
this._Eh1._0T(this._q71._T31._OT);
this._Fh1 = this._s71._741;
this._Gh1 = this._q71._741;
this._Hh1 = this._s71._941;
this._Ih1 = this._q71._941;
var _G71 = data._E61[this._ae1]._v2._4e();
var _qf1 = data._E61[this._ae1]._Wg;
var _rf1 = data._F61[this._ae1]._8h._4e();
var _4Y = data._F61[this._ae1]._y2;
var _I71 = data._E61[this._be1]._v2._4e();
var _sf1 = data._E61[this._be1]._Wg;
var _tf1 = data._F61[this._be1]._8h._4e();
var _5Y = data._F61[this._be1]._y2;
var _0i1 = new _HT(_qf1),
_1i1 = new _HT(_sf1);
this._Bh1._0T(_bU(_0i1, _XS._4T(this._ph1, this._Dh1)));
this._Ch1._0T(_bU(_1i1, _XS._4T(this._qh1, this._Eh1)));
this._Di1._0T(_XS._4T(_XS._4T(_XS._yn(_I71,
this._Ch1), _G71), this._Bh1));
this._Bi1 = this._Di1._5T();
var _hU = this._Bi1 - this._Dl1;
if (_hU > 0.0) {
this._El1 = _o71._Wg1
} else {
this._El1 = _o71._Ug1
} if (this._Bi1 > _hS) {
this._Di1._9u(1.0 / this._Bi1)
} else {
this._Di1._YS();
this._641 = 0.0;
this._sh1 = 0.0;
return
}
var _Il1 = _YT(this._Bh1, this._Di1);
var _Jl1 = _YT(this._Ch1, this._Di1);
var _Ii1 = this._Fh1 + this._Hh1 * _Il1 * _Il1 + this._Gh1 + this._Ih1 * _Jl1 * _Jl1;
this._641 = _Ii1 != 0.0 ? 1.0 / _Ii1 : 0.0;
if (data._JR._A61) {
this._sh1 *= data._JR._x61;
var _q01 = _XS._9u(this._sh1, this._Di1);
_rf1._4T(_XS._9u(this._Fh1,
_q01));
_4Y -= this._Hh1 * _YT(this._Bh1, _q01);
_tf1._yn(_XS._9u(this._Gh1, _q01));
_5Y += this._Ih1 * _YT(this._Ch1, _q01)
} else {
this._sh1 = 0.0
}
data._F61[this._ae1]._8h._0T(_rf1);
data._F61[this._ae1]._y2 = _4Y;
data._F61[this._be1]._8h._0T(_tf1);
data._F61[this._be1]._y2 = _5Y
},
_Mf1: function(data) {
var _rf1 = data._F61[this._ae1]._8h._4e();
var _4Y = data._F61[this._ae1]._y2;
var _tf1 = data._F61[this._be1]._8h._4e();
var _5Y = data._F61[this._be1]._y2;
var _Ji1 = _XS._yn(_rf1, __T(_4Y, this._Bh1));
var _Ki1 = _XS._yn(_tf1, __T(_5Y, this._Ch1));
var _hU = this._Bi1 - this._Dl1;
var _3i1 = _XT(this._Di1, _XS._4T(_Ki1, _Ji1));
if (_hU < 0.0) {
_3i1 += data._JR._w61 * _hU
}
var _W41 = -this._641 * _3i1;
var _4i1 = this._sh1;
this._sh1 = _oU(0.0, this._sh1 + _W41);
_W41 = this._sh1 - _4i1;
var _q01 = _XS._9u(_W41, this._Di1);
_rf1._4T(_XS._9u(this._Fh1, _q01));
_4Y -= this._Hh1 * _YT(this._Bh1, _q01);
_tf1._yn(_XS._9u(this._Gh1, _q01));
_5Y += this._Ih1 * _YT(this._Ch1, _q01);
data._F61[this._ae1]._8h._0T(_rf1);
data._F61[this._ae1]._y2 = _4Y;
data._F61[this._be1]._8h._0T(_tf1);
data._F61[this._be1]._y2 = _5Y
},
_6g1: function(data) {
var _G71 = data._E61[this._ae1]._v2._4e();
var _qf1 = data._E61[this._ae1]._Wg;
var _I71 = data._E61[this._be1]._v2._4e();
var _sf1 = data._E61[this._be1]._Wg;
var _0i1 = new _HT(_qf1),
_1i1 = new _HT(_sf1);
var _7Z = _bU(_0i1, _XS._4T(this._ph1, this._Dh1));
var _8Z = _bU(_1i1, _XS._4T(this._qh1, this._Eh1));
var _6h = _XS._4T(_XS._4T(_XS._yn(_I71, _8Z), _G71), _7Z);
var length = _6h._7T();
var _hU = length - this._Dl1;
_hU = _sU(_hU, 0.0, _nS);
var _W41 = -this._641 * _hU;
var _q01 = _XS._9u(_W41, _6h);
_G71._4T(_XS._9u(this._Fh1, _q01));
_qf1 -= this._Hh1 * _YT(_7Z,
_q01);
_I71._yn(_XS._9u(this._Gh1, _q01));
_sf1 += this._Ih1 * _YT(_8Z, _q01);
data._E61[this._ae1]._v2._0T(_G71);
data._E61[this._ae1]._Wg = _qf1;
data._E61[this._be1]._v2._0T(_I71);
data._E61[this._be1]._Wg = _sf1;
return length - this._Dl1 < _hS
},
_bT: function(_cT) {
var _Nw = _cT || {};
this.parent.prototype._bT.call(this, _Nw);
_Nw['localAnchorA'] = this._ph1._bT();
_Nw['localAnchorB'] = this._qh1._bT();
_Nw['maxLength'] = this._Dl1;
return _Nw
}
};
_dh1._BR(_o71);
var _Kl1 = Math.exp;
function _Ll1() {
this._2h = null;
this._fg = 0;
this._Ml1 = null;
this._sb = new _XS();
this._Z81 = 0.1;
this._Nl1 = 0.9;
this._Ol1 = 0.1
}
function _Pl1() {
this._1W = 0;
this._Ql1 = null;
this._Rl1 = null;
this._Sl1 = null;
this._Tl1 = null;
this._Ul1 = null;
this._Vl1 = null;
this._Wl1 = 0;
this._W61 = new _XS();
this._Xl1 = 1.0;
this._Yl1 = 0.1
}
_Pl1.prototype = {
_zZ: function(_j41) {
_7S(_j41._fg >= 3);
this._1W = _j41._fg;
this._Ql1 = new Array(this._1W);
this._Rl1 = new Array(this._1W);
this._Sl1 = new Array(this._1W);
this._Tl1 = new Array(this._1W);
for (var _u2 = 0; _u2 < this._1W; ++_u2) {
this._Ql1[_u2] = _j41._2h[_u2]._4e();
this._Rl1[_u2] = _j41._2h[_u2]._4e();
this._Sl1[_u2] = new _XS();
var _gf = _j41._Ml1[_u2];
if (_gf > 0.0) {
this._Tl1[_u2] = 1.0 / _gf;
} else {
this._Tl1[_u2] = 0.0
}
}
var _C_ = this._1W - 1;
var _Zl1 = this._1W - 2;
this._Ul1 = new Array(_C_);
this._Vl1 = new Array(_Zl1);
for (var _u2 = 0; _u2 < _C_; ++_u2) {
var _RU = this._Ql1[_u2];
var _SU = this._Ql1[_u2 + 1];
this._Ul1[_u2] = _2U(_RU, _SU)
}
for (var _u2 = 0; _u2 < _Zl1; ++_u2) {
var _RU = this._Ql1[_u2];
var _SU = this._Ql1[_u2 + 1];
var _WW = this._Ql1[_u2 + 2];
var _LV = _XS._4T(_SU, _RU);
var _Bc1 = _XS._4T(_WW, _SU);
var _Wg = _YT(_LV, _Bc1);
var _xf = _XT(_LV, _Bc1);
this._Vl1[_u2] = _VS(_Wg,
_xf)
}
this._W61 = _j41._sb._4e();
this._Wl1 = _j41._Z81;
this._Xl1 = _j41._Nl1;
this._Yl1 = _j41._Ol1
},
_x71: function(_z2, _2Y) {
if (_z2 == 0.0) {
return
}
var _Bp = _Kl1(-_z2 * this._Wl1);
for (var _u2 = 0; _u2 < this._1W; ++_u2) {
this._Rl1[_u2]._0T(this._Ql1[_u2]);
if (this._Tl1[_u2] > 0.0) {
this._Sl1[_u2]._yn(_XS._9u(_z2, this._W61))
}
this._Sl1[_u2]._9u(_Bp);
this._Ql1[_u2]._yn(_XS._9u(_z2, this._Sl1[_u2]))
}
for (var _u2 = 0; _u2 < _2Y; ++_u2) {
this.__l1();
this._0m1();
this.__l1()
}
var _8l1 = 1.0 / _z2;
for (var _u2 = 0; _u2 < this._1W; ++_u2) {
this._Sl1[_u2] = _XS._9u(_8l1,
_XS._4T(this._Ql1[_u2], this._Rl1[_u2]))
}
},
_JV: function() {
return this._1W
},
_1m1: function() {
return this._Ql1
},
_Ig: function(_2m1) {
var _v2 = new _AU(0.4, 0.5, 0.7);
for (var _u2 = 0; _u2 < this._1W - 1; ++_u2) {
_2m1._QU(this._Ql1[_u2], this._Ql1[_u2 + 1], _v2)
}
},
_3m1: function(_Cg) {
var _Zl1 = this._1W - 2;
for (var _u2 = 0; _u2 < _Zl1; ++_u2) {
this._Vl1[_u2] = _Cg
}
},
__l1: function() {
var _C_ = this._1W - 1;
for (var _u2 = 0; _u2 < _C_; ++_u2) {
var _RU = this._Ql1[_u2];
var _SU = this._Ql1[_u2 + 1];
var _Bp = _XS._4T(_SU, _RU);
var _vk1 = _Bp._7T();
var _4m1 = this._Tl1[_u2];
var _5m1 = this._Tl1[_u2 + 1];
if (_4m1 + _5m1 == 0.0) {
continue
}
var _Au = _4m1 / (_4m1 + _5m1);
var _Bu = _5m1 / (_4m1 + _5m1);
_RU._4T(_XS._9u(this._Xl1 * _Au * (this._Ul1[_u2] - _vk1), _Bp));
_SU._yn(_XS._9u(this._Xl1 * _Bu * (this._Ul1[_u2] - _vk1), _Bp))
}
},
_0m1: function() {
var _Zl1 = this._1W - 2;
for (var _u2 = 0; _u2 < _Zl1; ++_u2) {
var _RU = this._Ql1[_u2];
var _SU = this._Ql1[_u2 + 1];
var _WW = this._Ql1[_u2 + 2];
var _6m1 = this._Tl1[_u2];
var _7m1 = this._Tl1[_u2 + 1];
var _8m1 = this._Tl1[_u2 + 2];
var _LV = _XS._4T(_SU, _RU);
var _Bc1 = _XS._4T(_WW, _SU);
var _9m1 = _LV._6T();
var _am1 = _Bc1._6T();
if (_9m1 * _am1 == 0.0) {
continue
}
var _Wg = _YT(_LV, _Bc1);
var _xf = _XT(_LV, _Bc1);
var _Cg = _VS(_Wg, _xf);
var _bm1 = _XS._9u((-1.0 / _9m1), _LV._aT());
var _cm1 = _XS._9u((1.0 / _am1), _Bc1._aT());
var _dm1 = _XS._1T(_bm1);
var _em1 = _XS._4T(_bm1, _cm1);
var _fm1 = _cm1;
var _cV = _6m1 * _XT(_dm1, _dm1) + _7m1 * _XT(_em1, _em1) + _8m1 * _XT(_fm1, _fm1);
if (_cV == 0.0) {
continue
}
_cV = 1.0 / _cV;
var _hU = _Cg - this._Vl1[_u2];
while (_hU > _cS) {
_Cg -= 2 * _cS;
_hU = _Cg - this._Vl1[_u2]
}
while (_hU < -_cS) {
_Cg += 2.0 * _cS;
_hU = _Cg - this._Vl1[_u2]
}
var _W41 = -this._Yl1 * _cV * _hU;
_RU._yn(_XS._9u((_6m1 * _W41), _dm1));
_SU._yn(_XS._9u((_7m1 * _W41), _em1));
_WW._yn(_XS._9u((_8m1 * _W41), _fm1))
}
}
};
var _gm1 = {
_hm1: function(_J31) {
var _im1 = [];
var _u2;
var _jm1;
var _xf;
var _1w;
var _BV;
for (_xf = _J31._R71(); _xf; _xf = _xf._x51()) {
for (_1w = _xf._u51(); _1w; _1w = _1w._x51()) {
_BV = _1w._T51();
_1w._km1 = _im1.length;
_im1.push(_BV._bT())
}
}
var _lm1 = [];
for (_xf = _J31._R71(); _xf; _xf = _xf._x51()) {
_xf._mm1 = [];
for (_1w = _xf._u51(); _1w; _1w = _1w._x51()) {
_jm1 = _1w._bT();
_jm1['shape'] = _1w._km1;
delete _1w._km1;
_xf._mm1.push(_lm1.length);
_lm1.push(_jm1)
}
}
var _A81 = [];
for (_xf = _J31._R71(); _xf; _xf = _xf._x51()) {
_jm1 = _xf._bT();
_jm1._lm1 = [];
for (_u2 = 0; _u2 < _xf._mm1.length; ++_u2) _jm1._lm1.push(_xf._mm1[_u2]);
delete _xf._mm1;
_xf._nm1 = _A81.length;
_A81.push(_jm1)
};
var _Qg1 = [];
var _Bf;
for (_Bf = _J31._v51(), _u2 = 0; _Bf; _Bf = _Bf._x51(), ++_u2) _Bf._Qk1 = _u2;
for (_Bf = _J31._v51(); _Bf; _Bf = _Bf._x51()) {
if (_Bf._hV() === _o71._N81) continue;
_jm1 = _Bf._bT();
_jm1['bodyA'] = _Bf._E81()._nm1;
_jm1['bodyB'] = _Bf._F81()._nm1;
_Qg1.push(_jm1)
}
for (_Bf = _J31._v51(); _Bf; _Bf = _Bf._x51()) delete _Bf._Qk1;
for (_xf = _J31._R71(); _xf; _xf = _xf._x51()) delete _xf._nm1;
var _on = {
_im1: _im1,
_lm1: _lm1,
_A81: _A81,
_Qg1: _Qg1
};
return _on
},
_om1: function(_jm1, _J31, clear) {
var _pm1 = JSON.parse(_jm1);
if (clear) {
for (var _xf = _J31._R71(); _xf;) {
var _Yn = _xf._x51();
_J31._h71(_xf);
_xf = _Yn
}
for (var _Bf = _J31._v51(); _Bf;) {
var _Yn = _Bf._x51();
_J31._k71(_Bf);
_Bf = _Yn
}
}
var _im1 = [];
for (var _u2 = 0; _u2 < _pm1._im1.length; ++_u2) {
var _qm1 = _pm1._im1[_u2];
var _BV;
switch (_qm1._fV) {
case _eV._uV:
_BV = new _zV();
break;
case _eV._vV:
_BV = new _MV();
break;
case _eV._xV:
_BV = new __V();
break;
case _eV._wV:
_BV = new _hW();
break
}
_BV._dT(_qm1);
_im1.push(_BV)
}
var _lm1 = [];
for (_u2 = 0; _u2 < _pm1._lm1.length; ++_u2) {
var _rm1 = _pm1._lm1[_u2];
var _cI = new _l41();
_cI._dT(_rm1);
_cI._BV = _im1[_rm1['shape']];
_lm1.push(_cI)
}
var _A81 = [];
for (_u2 = 0; _u2 < _pm1._A81.length; ++_u2) {
var _sm1 = _pm1._A81[_u2];
var _j41 = new _w31();
_j41._dT(_sm1);
var body = _J31._SI(_j41);
for (var _w2 = 0; _w2 < _sm1._lm1.length; ++_w2) body._i41(_lm1[_sm1._lm1[_w2]]);
_A81.push(body)
}
var _Qg1 = [];
var _tm1 = [];
for (_u2 = 0; _u2 < _pm1._Qg1.length; ++_u2) {
var _um1 = _pm1._Qg1[_u2];
var _vm1;
switch (_um1.type) {
case _o71._Yg1:
_vm1 = new _fh1();
break;
case _o71._Zg1:
_vm1 = new _Li1();
break;
case _o71._I81:
_vm1 = new _yi1();
break;
case _o71._J81:
_vm1 = new _al1();
break;
case _o71.__g1:
_vm1 = new _Lj1();
break;
case _o71._0h1:
_vm1 = new _vj1();
break;
case _o71._1h1:
_vm1 = new _sj1();
break;
case _o71._2h1:
_vm1 = new _jj1();
break;
case _o71._3h1:
_vm1 = new _Bl1();
break;
case _o71._O81:
_vm1 = new _Rk1();
break;
default:
throw new _ym('unknown joint')
}
_vm1._dT(_um1, _A81);
if (_um1.type === _o71.__g1) {
_tm1.push([_vm1, _Qg1.length]);
_Qg1.push(null)
} else {
var _D51 = _J31._n71(_vm1);
_Qg1.push(_D51)
}
}
for (_u2 = 0; _u2 < _tm1.length; ++_u2) {
_tm1[_u2][0]._Mj1 = _Qg1[_tm1[_u2][0]._Mj1];
_tm1[_u2][0]._Nj1 = _Qg1[_tm1[_u2][0]._Nj1];
_D51 = _J31._n71(_tm1[_u2][0]);
_Qg1[_tm1[_u2][1]] = _D51
}
}
};
var _wm1 = (function() {
function _xm1(_Nw) {
return new _XS(_Nw ? (_Nw._w2 || 0) : 0, _Nw ? (_Nw._x2 || 0) : 0)
}
function _ym1(_Nw) {
var _zm1 = new Array(_Nw._w2.length);
for (var _u2 = 0; _u2 < _zm1.length; ++_u2) _zm1[_u2] = new _XS(_Nw._w2[_u2], _Nw._x2[_u2]);
return _zm1
}
function _Am1(_Nw, _Bm1) {
var name = _Nw.name;
var _Pk;
if (typeof(_Nw['int']) !== 'undefined') _Pk = _Nw['int'];
else if (typeof(_Nw['float']) !== 'undefined') _Pk = _Nw['float'];
else if (typeof(_Nw['string']) !== 'undefined') _Pk = _Nw['string'];
else if (typeof(_Nw['bool']) !== 'undefined') _Pk = _Nw['bool'];
else if (typeof(_Nw._Cm1) !== 'undefined') _Pk = _xm1(_Nw._Cm1);
else throw new _ym("unknown property type"); if (_Bm1.hasOwnProperty(name)) throw new _ym("custom property possibly overwriting an existing one");
_Bm1[name] = _Pk
}
function _Dm1(_Nw, body) {
var _j41 = new _l41();
_j41._qV = _Nw._qV || 0;
_j41._J51._G51 = typeof(_Nw['filter-categoryBits']) === 'undefined' ? 1 : _Nw['filter-categoryBits'];
_j41._J51._H51 = typeof(_Nw['filter-maskBits']) === 'undefined' ? 65535 : _Nw['filter-maskBits'];
_j41._J51._I51 = typeof(_Nw['filter-groupIndex']) === 'undefined' ? 0 : _Nw['filter-groupIndex'];
_j41._K51 = _Nw._K51 || 0;
_j41._L51 = _Nw._L51 || 0;
_j41._M51 = _Nw._U51 || 0;
var _BV;
if (typeof(_Nw._LX) !== 'undefined') {
_BV = new _zV();
_BV._AV = _xm1(_Nw._LX._MU);
_BV._gV = _Nw._LX._NU || 0
} else if (typeof(_Nw._MX) !== 'undefined') {
var _2h = _ym1(_Nw._MX._2h);
_BV = new _hW();
_BV._Tn(_2h, _2h.length)
} else if (typeof(_Nw._NX) !== 'undefined') {
var _2h = _ym1(_Nw._NX._2h);
_BV = new __V();
_BV._1W = _2h.length;
_BV._0W = _2h;
if (_BV._5W = _Nw._NX._Em1) _BV._3W = _xm1(_Nw._NX._cW);
if (_BV._4W = _Nw._NX._Fm1) _BV._2W = _xm1(_Nw._NX._aW)
} else throw new _ym("unknown shape type");
_j41._BV = _BV;
var _cI = body._i41(_j41);
_cI.name = _Nw.name;
if (_Nw._Gm1)
for (var _u2 = 0; _u2 < _Nw._Gm1.length; ++_u2) _Am1(_Nw, _cI)
}
function _Hm1(_Nw, _J31) {
var _j41 = new _w31();
_j41.type = _Nw.type || _x31._y31;
_j41._Cg = _Nw._Cg || 0;
_j41._C31 = _Nw._C31 || 0;
_j41._A31 = _Nw._A31 || 0;
_j41._E31 = _Nw._E31 || !1;
_j41._G31 = _Nw._G31 || !1;
_j41._F31 = _Nw._F31 || !1;
_j41._B31 = _Nw._B31 || !1;
_j41._z31 = _xm1(_Nw._z31);
_j41._H31 = typeof(_Nw._H31) !== 'undefined' ? _Nw._H31 : 1;
var _Im1 = new _bV();
_Im1._cV = _Nw['massData-mass'] || 0;
_Im1._MU = _xm1(_Nw['massData-center']);
_Im1._dV = _Nw['massData-I'] || 0;
_j41.position = _xm1(_Nw.position);
var body = _J31._SI(_j41);
body.name = _Nw.name;
body._051(_Im1);
if (_Nw._cI)
for (var _u2 = 0; _u2 < _Nw._cI.length; ++_u2) _Dm1(_Nw._cI[_u2], body);
if (_Nw._Gm1)
for (_u2 = 0; _u2 < _Nw._Gm1.length; ++_u2) _Am1(_Nw, body);
return body
}
var _Jm1 = {
'revolute': _fh1,
'distance': _yi1,
'prismatic': _Li1,
'wheel': _vj1,
'rope': _Bl1,
'motor': _Rk1,
'weld': _sj1,
'friction': _jj1
};
function _Km1(_Nw, _J31,
_A81) {
if (!_Jm1[_Nw.type]) throw new _ym("unknown joint type");
var _Lm1 = new _Jm1[_Nw.type]();
switch (_Lm1.type) {
case _o71._Yg1:
_Lm1._gh1 = _xm1(_Nw._hl1);
_Lm1._hh1 = _xm1(_Nw._il1);
_Lm1._nh1 = _Nw._nh1 || !1;
_Lm1._oh1 = _Nw._oh1 || !1;
_Lm1._jh1 = _Nw._Mm1 || 0;
_Lm1._lh1 = _Nw._lh1 || 0;
_Lm1._mh1 = _Nw._mh1 || 0;
_Lm1._ih1 = _Nw._Nm1 || 0;
_Lm1._kh1 = _Nw._Om1 || 0;
break;
case _o71._I81:
_Lm1._gh1 = _xm1(_Nw._hl1);
_Lm1._hh1 = _xm1(_Nw._il1);
_Lm1._gi1 = _Nw._gi1 || 0;
_Lm1._fi1 = _Nw._Pm1 || 0;
_Lm1.length = _Nw.length || 0;
break;
case _o71._Zg1:
_Lm1._gh1 = _xm1(_Nw._hl1);
_Lm1._hh1 = _xm1(_Nw._il1);
_Lm1._nh1 = _Nw._nh1 || !1;
_Lm1._oh1 = _Nw._oh1 || !1;
_Lm1._Mi1 = _xm1(_Nw._Mi1);
_Lm1._Ni1 = _Nw._Mm1 || 0;
_Lm1._Pi1 = _Nw._Pi1 || 0;
_Lm1._mh1 = _Nw._mh1 || 0;
_Lm1._ih1 = _Nw._Nm1 || 0;
_Lm1._Oi1 = _Nw._Om1 || 0;
break;
case _o71._0h1:
_Lm1._gh1 = _xm1(_Nw._hl1);
_Lm1._hh1 = _xm1(_Nw._il1);
_Lm1._oh1 = _Nw._oh1 || !1;
_Lm1._Mi1 = _xm1(_Nw._Mi1);
_Lm1._lh1 = _Nw._lh1 || 0;
_Lm1._mh1 = _Nw._mh1 || 0;
_Lm1._gi1 = _Nw._Qm1 || 0;
_Lm1._fi1 = _Nw._Rm1 || 0;
break;
case _o71._3h1:
_Lm1._gh1 = _xm1(_Nw._hl1);
_Lm1._hh1 = _xm1(_Nw._il1);
_Lm1._Cl1 = _Nw._Cl1 || 0;
break;
case _o71._O81:
_Lm1._Sk1 = _xm1(_Nw._hl1);
_Lm1._Tk1 = _Nw._Nm1 || 0;
_Lm1._ei1 = _Nw._ei1 || 0;
_Lm1._kj1 = _Nw._kj1 || 0;
_Lm1._Uk1 = _Nw._Uk1 || 0;
break;
case _o71._1h1:
_Lm1._gh1 = _xm1(_Nw._hl1);
_Lm1._hh1 = _xm1(_Nw._il1);
_Lm1._ih1 = _Nw._Nm1 || 0;
_Lm1._gi1 = _Nw._gi1 || 0;
_Lm1._fi1 = _Nw._fi1 || 0;
break;
case _o71._2h1:
_Lm1._gh1 = _xm1(_Nw._hl1);
_Lm1._hh1 = _xm1(_Nw._il1);
_Lm1._ei1 = _Nw._ei1 || 0;
_Lm1._kj1 = _Nw._kj1 || 0;
break;
default:
throw new _ym("wat?")
}
_Lm1._u71 = _A81[_Nw._u71 || 0];
_Lm1._v71 = _A81[_Nw._v71 || 0];
_Lm1._w71 = _Nw._w71 || !1;
var _D51 = _J31._n71(_Lm1);
_D51.name = _Nw.name;
if (_Nw._Gm1)
for (var _u2 = 0; _u2 < _Nw._Gm1.length; ++_u2) _Am1(_Nw, _D51);
return _D51
}
function _Sm1() {
this._J31 = null;
this._z61 = 0;
this._y61 = 0;
this._Tm1 = 0;
this._lm1 = {};
this._A81 = {};
this._Qg1 = {};
Object.seal(this)
}
function _Um1(_Nw, _J31) {
var _0z = new _Sm1();
_0z._J31 = _J31 = _J31 || new _w41(new _XS(0, 0));
_0z._z61 = _Nw._z61 || 0;
_0z._y61 = _Nw._y61 || 0;
_0z._Tm1 = _Nw._Tm1 || 0;
if (_Nw._sb) _J31._381(_xm1(_Nw._sb));
_J31._S71(_Nw._D31 || !1);
_J31._581(_Nw._Vm1 || !1);
_J31._U71(_Nw._A61 || !1);
_J31._W71(_Nw._Wm1 || !1);
_J31._Y71(_Nw._Xm1 || !1);
var _A81 = [];
var _Ym1 = _Nw.body;
if (_Ym1) {
for (var _u2 = 0; _u2 < _Ym1.length; ++_u2) {
var body = _Hm1(_Ym1[_u2], _J31);
_A81.push(body);
for (var _1w = body._u51(); _1w; _1w = _1w._x51()) {
if (!_0z._lm1[_1w.name]) _0z._lm1[_1w.name] = [];
_0z._lm1[_1w.name].push(_1w)
}
if (!_0z._A81[body.name]) _0z._A81[body.name] = [];
_0z._A81[body.name].push(body)
}
}
var _Qg1 = [];
var _Zm1 = _Nw._D51;
if (_Zm1) {
for (_u2 = 0; _u2 < _Zm1.length; ++_u2) {
var _D51 = _Km1(_Zm1[_u2], _J31, _A81);
_Qg1.push(_D51);
if (!_0z._Qg1[_D51.name]) _0z._Qg1[_D51.name] = [];
_0z._Qg1[_D51.name].push(_D51)
}
}
return _0z
}
var _on = {
_Um1: _Um1
};
return _on
})();
var __m1 = [{
"trimmed": "version",
"name": "b2_version",
"def": _MS
}, {
"trimmed": "Vec2",
"name": "b2Vec2",
"def": _XS
}, {
"trimmed": "Vec3",
"name": "b2Vec3",
"def": _fT
}, {
"trimmed": "Mat22",
"name": "b2Mat22",
"def": _hT
}, {
"trimmed": "Mat33",
"name": "b2Mat33",
"def": _uT
}, {
"trimmed": "Rot",
"name": "b2Rot",
"def": _HT
}, {
"trimmed": "Transform",
"name": "b2Transform",
"def": _LT
}, {
"trimmed": "Sweep",
"name": "b2Sweep",
"def": _NT
}, {
"trimmed": "Dot_v2_v2",
"name": "b2Dot_v2_v2",
"def": _XT
}, {
"trimmed": "Cross_v2_v2",
"name": "b2Cross_v2_v2",
"def": _YT
}, {
"trimmed": "Cross_v2_f",
"name": "b2Cross_v2_f",
"def": _ZT
}, {
"trimmed": "Cross_f_v2",
"name": "b2Cross_f_v2",
"def": __T
}, {
"trimmed": "Mul_m22_v2",
"name": "b2Mul_m22_v2",
"def": _0U
}, {
"trimmed": "MulT_m22_v2",
"name": "b2MulT_m22_v2",
"def": _1U
}, {
"trimmed": "Distance",
"name": "b2Distance",
"def": _2U
}, {
"trimmed": "DistanceSquared",
"name": "b2DistanceSquared",
"def": _3U
}, {
"trimmed": "Dot_v3_v3",
"name": "b2Dot_v3_v3",
"def": _yT
}, {
"trimmed": "Cross_v3_v3",
"name": "b2Cross_v3_v3",
"def": _zT
}, {
"trimmed": "Mul_m22_m22",
"name": "b2Mul_m22_m22",
"def": _4U
}, {
"trimmed": "MulT_m22_m22",
"name": "b2MulT_m22_m22",
"def": _5U
}, {
"trimmed": "Mul_m33_v3",
"name": "b2Mul_m33_v3",
"def": _6U
}, {
"trimmed": "Mul22_m33_v2",
"name": "b2Mul22_m33_v2",
"def": _7U
}, {
"trimmed": "Mul_r_r",
"name": "b2Mul_r_r",
"def": _8U
}, {
"trimmed": "MulT_r_r",
"name": "b2MulT_r_r",
"def": _aU
}, {
"trimmed": "Mul_r_v2",
"name": "b2Mul_r_v2",
"def": _bU
}, {
"trimmed": "MulT_r_v2",
"name": "b2MulT_r_v2",
"def": _cU
}, {
"trimmed": "Mul_t_v2",
"name": "b2Mul_t_v2",
"def": _dU
}, {
"trimmed": "Min_v2",
"name": "b2Min_v2",
"def": _pU
}, {
"trimmed": "Max_v2",
"name": "b2Max_v2",
"def": _rU
}, {
"trimmed": "Clamp",
"name": "b2Clamp",
"def": _sU
}, {
"trimmed": "MulT_t_v2",
"name": "b2MulT_t_v2",
"def": _fU
}, {
"trimmed": "Mul_t_t",
"name": "b2Mul_t_t",
"def": _gU
}, {
"trimmed": "MulT_t_t",
"name": "b2MulT_t_t",
"def": _iU
}, {
"trimmed": "Clamp_v2",
"name": "b2Clamp_v2",
"def": _tU
}, {
"trimmed": "NextPowerOfTwo",
"name": "b2NextPowerOfTwo",
"def": _uU
}, {
"trimmed": "Abs_v2",
"name": "b2Abs_v2",
"def": _mU
}, {
"trimmed": "Abs_m22",
"name": "b2Abs_m22",
"def": _nU
}, {
"trimmed": "IsPowerOfTwo",
"name": "b2IsPowerOfTwo",
"def": _vU
}, {
"trimmed": "RandomFloat",
"name": "b2RandomFloat",
"def": _xU
}, {
"trimmed": "Timer",
"name": "b2Timer",
"def": _7V
}, {
"trimmed": "Color",
"name": "b2Color",
"def": _AU
}, {
"trimmed": "Draw",
"name": "b2Draw",
"def": _BU
}, {
"trimmed": "ContactID",
"name": "b2ContactID",
"def": _aZ
}, {
"trimmed": "ManifoldPoint",
"name": "b2ManifoldPoint",
"def": _gZ
}, {
"trimmed": "Manifold",
"name": "b2Manifold",
"def": _lZ
}, {
"trimmed": "WorldManifold",
"name": "b2WorldManifold",
"def": _xZ
}, {
"trimmed": "GetPointStates",
"name": "b2GetPointStates",
"def": _SZ
}, {
"trimmed": "ClipVertex",
"name": "b2ClipVertex",
"def": _XZ
}, {
"trimmed": "RayCastInput",
"name": "b2RayCastInput",
"def": _YZ
}, {
"trimmed": "RayCastOutput",
"name": "b2RayCastOutput",
"def": _ZZ
}, {
"trimmed": "AABB",
"name": "b2AABB",
"def": __Z
}, {
"trimmed": "CollideCircles",
"name": "b2CollideCircles",
"def": _f_
}, {
"trimmed": "CollidePolygonAndCircle",
"name": "b2CollidePolygonAndCircle",
"def": _j_
}, {
"trimmed": "FindMaxSeparation",
"name": "b2FindMaxSeparation",
"def": _v_
}, {
"trimmed": "FindIncidentEdge",
"name": "b2FindIncidentEdge",
"def": _J_
}, {
"trimmed": "CollidePolygons",
"name": "b2CollidePolygons",
"def": _T_
}, {
"trimmed": "CollideEdgeAndCircle",
"name": "b2CollideEdgeAndCircle",
"def": _o01
}, {
"trimmed": "EPAxis",
"name": "b2EPAxis",
"def": _C01
}, {
"trimmed": "TempPolygon",
"name": "b2TempPolygon",
"def": _G01
}, {
"trimmed": "ReferenceFace",
"name": "b2ReferenceFace",
"def": _H01
}, {
"trimmed": "EPCollider",
"name": "b2EPCollider",
"def": _K01
}, {
"trimmed": "CollideEdgeAndPolygon",
"name": "b2CollideEdgeAndPolygon",
"def": _p11
}, {
"trimmed": "ClipSegmentToLine",
"name": "b2ClipSegmentToLine",
"def": _l01
}, {
"trimmed": "TestShapeOverlap",
"name": "b2TestShapeOverlap",
"def": _y11
}, {
"trimmed": "TestOverlap",
"name": "b2TestOverlap",
"def": _pX
}, {
"trimmed": "Shape",
"name": "b2Shape",
"def": _eV
}, {
"trimmed": "MassData",
"name": "b2MassData",
"def": _bV
}, {
"trimmed": "CircleShape",
"name": "b2CircleShape",
"def": _zV
}, {
"trimmed": "EdgeShape",
"name": "b2EdgeShape",
"def": _MV
}, {
"trimmed": "ChainShape",
"name": "b2ChainShape",
"def": __V
}, {
"trimmed": "PolygonShape",
"name": "b2PolygonShape",
"def": _hW
}, {
"trimmed": "Pair",
"name": "b2Pair",
"def": _XW
}, {
"trimmed": "PairLessThan",
"name": "b2PairLessThan",
"def": __W
}, {
"trimmed": "BroadPhase",
"name": "b2BroadPhase",
"def": _2X
}, {
"trimmed": "DistanceProxy",
"name": "b2DistanceProxy",
"def": _KX
}, {
"trimmed": "SimplexCache",
"name": "b2SimplexCache",
"def": _QX
}, {
"trimmed": "DistanceInput",
"name": "b2DistanceInput",
"def": _UX
}, {
"trimmed": "DistanceOutput",
"name": "b2DistanceOutput",
"def": __X
}, {
"trimmed": "SimplexVertex",
"name": "b2SimplexVertex",
"def": _3Y
}, {
"trimmed": "Simplex",
"name": "b2Simplex",
"def": _6Y
}, {
"trimmed": "DistanceFunc",
"name": "b2DistanceFunc",
"def": _TY
}, {
"trimmed": "TreeNode",
"name": "b2TreeNode",
"def": _C11
}, {
"trimmed": "DynamicTree",
"name": "b2DynamicTree",
"def": _4X
}, {
"trimmed": "TOIInput",
"name": "b2TOIInput",
"def": _I21
}, {
"trimmed": "TOIOutput",
"name": "b2TOIOutput",
"def": _M21
}, {
"trimmed": "SeparationFunction",
"name": "b2SeparationFunction",
"def": _R21
}, {
"trimmed": "TimeOfImpact",
"name": "b2TimeOfImpact",
"def": _e31
}, {
"trimmed": "BodyDef",
"name": "b2BodyDef",
"def": _w31
}, {
"trimmed": "Body",
"name": "b2Body",
"def": _x31
}, {
"trimmed": "Filter",
"name": "b2Filter",
"def": _F51
}, {
"trimmed": "FixtureDef",
"name": "b2FixtureDef",
"def": _l41
}, {
"trimmed": "Fixture",
"name": "b2Fixture",
"def": _n41
}, {
"trimmed": "DestructionListener",
"name": "b2DestructionListener",
"def": _861
}, {
"trimmed": "ContactFilter",
"name": "b2ContactFilter",
"def": _d61
}, {
"trimmed": "ContactImpulse",
"name": "b2ContactImpulse",
"def": _h61
}, {
"trimmed": "ContactListener",
"name": "b2ContactListener",
"def": _k61
}, {
"trimmed": "QueryCallback",
"name": "b2QueryCallback",
"def": _q61
}, {
"trimmed": "RayCastCallback",
"name": "b2RayCastCallback",
"def": _t61
}, {
"trimmed": "TimeStep",
"name": "b2TimeStep",
"def": _u61
}, {
"trimmed": "Position",
"name": "b2Position",
"def": _B61
}, {
"trimmed": "Velocity",
"name": "b2Velocity",
"def": _C61
}, {
"trimmed": "SolverData",
"name": "b2SolverData",
"def": _D61
}, {
"trimmed": "World",
"name": "b2World",
"def": _w41
}, {
"trimmed": "MixFriction",
"name": "b2MixFriction",
"def": _Xd1
}, {
"trimmed": "MixRestitution",
"name": "b2MixRestitution",
"def": __d1
}, {
"trimmed": "ContactRegister",
"name": "b2ContactRegister",
"def": _2e1
}, {
"trimmed": "ContactEdge",
"name": "b2ContactEdge",
"def": _4e1
}, {
"trimmed": "Contact",
"name": "b2Contact",
"def": _881
}, {
"trimmed": "CircleContact",
"name": "b2CircleContact",
"def": _te1
}, {
"trimmed": "PolygonContact",
"name": "b2PolygonContact",
"def": _Ce1
}, {
"trimmed": "ChainAndCircleContact",
"name": "b2ChainAndCircleContact",
"def": _xe1
}, {
"trimmed": "ChainAndPolygonContact",
"name": "b2ChainAndPolygonContact",
"def": _ye1
}, {
"trimmed": "EdgeAndCircleContact",
"name": "b2EdgeAndCircleContact",
"def": _ze1
}, {
"trimmed": "EdgeAndPolygonContact",
"name": "b2EdgeAndPolygonContact",
"def": _Ae1
}, {
"trimmed": "PolygonAndCircleContact",
"name": "b2PolygonAndCircleContact",
"def": _Be1
}, {
"trimmed": "defaultFilter",
"name": "b2_defaultFilter",
"def": _Me1
}, {
"trimmed": "defaultListener",
"name": "b2_defaultListener",
"def": _Ne1
}, {
"trimmed": "ContactManager",
"name": "b2ContactManager",
"def": _L61
}, {
"trimmed": "VelocityConstraintPoint",
"name": "b2VelocityConstraintPoint",
"def": _Se1
}, {
"trimmed": "ContactPositionConstraint",
"name": "b2ContactPositionConstraint",
"def": _We1
}, {
"trimmed": "ContactVelocityConstraint",
"name": "b2ContactVelocityConstraint",
"def": _3f1
}, {
"trimmed": "PositionSolverManifold",
"name": "b2PositionSolverManifold",
"def": _7f1
}, {
"trimmed": "ContactSolverDef",
"name": "b2ContactSolverDef",
"def": _af1
}, {
"trimmed": "ContactSolver",
"name": "b2ContactSolver",
"def": _cf1
}, {
"trimmed": "Island",
"name": "b2Island",
"def": _071
}, {
"trimmed": "Jacobian",
"name": "b2Jacobian",
"def": _Jg1
}, {
"trimmed": "JointEdge",
"name": "b2JointEdge",
"def": _Ng1
}, {
"trimmed": "JointDef",
"name": "b2JointDef",
"def": _Og1
}, {
"trimmed": "Joint",
"name": "b2Joint",
"def": _o71
}, {
"trimmed": "RevoluteJointDef",
"name": "b2RevoluteJointDef",
"def": _fh1
}, {
"trimmed": "RevoluteJoint",
"name": "b2RevoluteJoint",
"def": _7h1
}, {
"trimmed": "MouseJointDef",
"name": "b2MouseJointDef",
"def": _di1
}, {
"trimmed": "MouseJoint",
"name": "b2MouseJoint",
"def": _5h1
}, {
"trimmed": "DistanceJointDef",
"name": "b2DistanceJointDef",
"def": _yi1
}, {
"trimmed": "DistanceJoint",
"name": "b2DistanceJoint",
"def": _4h1
}, {
"trimmed": "PrismaticJointDef",
"name": "b2PrismaticJointDef",
"def": _Li1
}, {
"trimmed": "PrismaticJoint",
"name": "b2PrismaticJoint",
"def": _6h1
}, {
"trimmed": "FrictionJointDef",
"name": "b2FrictionJointDef",
"def": _jj1
}, {
"trimmed": "FrictionJoint",
"name": "b2FrictionJoint",
"def": _ch1
}, {
"trimmed": "WeldJointDef",
"name": "b2WeldJointDef",
"def": _sj1
}, {
"trimmed": "WeldJoint",
"name": "b2WeldJoint",
"def": _bh1
}, {
"trimmed": "WheelJointDef",
"name": "b2WheelJointDef",
"def": _vj1
}, {
"trimmed": "WheelJoint",
"name": "b2WheelJoint",
"def": _ah1
}, {
"trimmed": "GearJointDef",
"name": "b2GearJointDef",
"def": _Lj1
}, {
"trimmed": "GearJoint",
"name": "b2GearJoint",
"def": _9h1
}, {
"trimmed": "MotorJointDef",
"name": "b2MotorJointDef",
"def": _Rk1
}, {
"trimmed": "MotorJoint",
"name": "b2MotorJoint",
"def": _eh1
}, {
"trimmed": "PulleyJointDef",
"name": "b2PulleyJointDef",
"def": _al1
}, {
"trimmed": "PulleyJoint",
"name": "b2PulleyJoint",
"def": _8h1
}, {
"trimmed": "RopeJointDef",
"name": "b2RopeJointDef",
"def": _Bl1
}, {
"trimmed": "RopeJoint",
"name": "b2RopeJoint",
"def": _dh1
}, {
"trimmed": "RopeDef",
"name": "b2RopeDef",
"def": _Ll1
}, {
"trimmed": "Rope",
"name": "b2Rope",
"def": _Pl1
}, {
"trimmed": "maxManifoldPoints",
"name": "b2_maxManifoldPoints",
"def": _dS
}, {
"trimmed": "maxPolygonVertices",
"name": "b2_maxPolygonVertices",
"def": _eS
}, {
"trimmed": "aabbExtension",
"name": "b2_aabbExtension",
"def": _fS
}, {
"trimmed": "aabbMultiplier",
"name": "b2_aabbMultiplier",
"def": _gS
}, {
"trimmed": "linearSlop",
"name": "b2_linearSlop",
"def": _hS
}, {
"trimmed": "angularSlop",
"name": "b2_angularSlop",
"def": _iS
}, {
"trimmed": "polygonRadius",
"name": "b2_polygonRadius",
"def": _jS
}, {
"trimmed": "maxSubSteps",
"name": "b2_maxSubSteps",
"def": _kS
}, {
"trimmed": "maxTOIContacts",
"name": "b2_maxTOIContacts",
"def": _lS
}, {
"trimmed": "velocityThreshold",
"name": "b2_velocityThreshold",
"def": _mS
}, {
"trimmed": "maxLinearCorrection",
"name": "b2_maxLinearCorrection",
"def": _nS
}, {
"trimmed": "maxAngularCorrection",
"name": "b2_maxAngularCorrection",
"def": _oS
}, {
"trimmed": "maxTranslation",
"name": "b2_maxTranslation",
"def": _pS
}, {
"trimmed": "maxTranslationSquared",
"name": "b2_maxTranslationSquared",
"def": _qS
}, {
"trimmed": "maxRotation",
"name": "b2_maxRotation",
"def": _rS
}, {
"trimmed": "maxRotationSquared",
"name": "b2_maxRotationSquared",
"def": _sS
}, {
"trimmed": "baumgarte",
"name": "b2_baumgarte",
"def": _tS
}, {
"trimmed": "toiBaugarte",
"name": "b2_toiBaugarte",
"def": _uS
}, {
"trimmed": "timeToSleep",
"name": "b2_timeToSleep",
"def": _vS
}, {
"trimmed": "linearSleepTolerance",
"name": "b2_linearSleepTolerance",
"def": _wS
}, {
"trimmed": "angularSleepTolerance",
"name": "b2_angularSleepTolerance",
"def": _xS
}, {
"trimmed": "epsilon",
"name": "b2_epsilon",
"def": _bS
}, {
"trimmed": "JsonSerializer",
"name": "b2JsonSerializer",
"def": _gm1
}, {
"trimmed": "RUBELoader",
"name": "b2RUBELoader",
"def": _wm1
}, {
"trimmed": "Profiler",
"name": "b2Profiler",
"def": _OR
}, {
"trimmed": "ParticleDef",
"name": "b2ParticleDef",
"def": _ja1
}, {
"trimmed": "ParticleColor",
"name": "b2ParticleColor",
"def": _aa1
}, {
"trimmed": "ParticleGroupDef",
"name": "b2ParticleGroupDef",
"def": _ua1
}, {
"trimmed": "ParticleGroup",
"name": "b2ParticleGroup",
"def": _ya1
}, {
"trimmed": "ParticleSystem",
"name": "b2ParticleSystem",
"def": _271
}];
if (typeof(_0n1) !== "undefined" && typeof(window) !== "undefined") {
for (var _u2 = 0; _u2 < __m1.length; ++_u2) window[__m1[_u2]["name"]] = __m1[_u2]["def"]
} else {
var _wy = {};
for (var _u2 = 0; _u2 < __m1.length; ++_u2) _wy[__m1[_u2]["trimmed"]] = __m1[_u2]["def"];
if (typeof(_1n1) !== "undefined") _1n1._2n1 = _wy;
else window["b2"] = _wy
}
})();
function _3n1() {
var _4n1 = "#define MATRIX_VIEW 0\n" + "#define MATRIX_PROJECTION 1\n" + "#define MATRIX_WORLD 2\n" + "#define MATRIX_WORLD_VIEW 3\n" + "#define MATRIX_WORLD_VIEW_PROJECTION 4\n" + "#define MATRICES_MAX 5\n" + "#define FOG_SETTINGS 0\n" + "#define FOG_COLOUR 1\n" + "\n" + "uniform mat4 matrices[MATRICES_MAX];\n" + "uniform vec4 fogParameters[2];\n" + "\n" + "attribute vec3 vertex;\n" + "attribute vec4 color;\n" + "attribute vec2 UV;\n" + "\n" + "varying vec4 fcolor;\n" + "varying vec2 texc;\n" + "varying vec4 fogColor;\n" + "varying float fogFactor;\n" + "\n" + "float CalcFogFactor(vec4 pos)\n" + "{\n" + " vec4 viewpos = matrices[MATRIX_WORLD_VIEW] * pos;\n" + " vec4 fogParams = fogParameters[FOG_SETTINGS];\n" + " return (1.0 - ((fogParams.z - viewpos.z) * fogParams.y)) * fogParams.x;\n" + "}\n" + "\n" + "void main(void)\n" + "{\n" + " fcolor = color;\n" + " texc = UV;\n" + " vec4 pos = vec4(vertex.xyz, 1);\n" + " fogFactor = CalcFogFactor(pos);\n" + " fogColor = vec4(fogParameters[FOG_COLOUR].xyz, 1);\n" + " gl_Position = matrices[MATRIX_WORLD_VIEW_PROJECTION] * pos;\n" + " gl_PointSize = 1.0;\n" + "}";
return _4n1
}
function _5n1() {
var _6n1 = "precision mediump float;\n" + "uniform sampler2D pTexure;\n" + "uniform bool alphaTestEnabled;\n" + "uniform float alphaRefValue;" + "\n" + "varying vec4 fcolor;\n" + "varying vec2 texc;\n" + "varying vec4 fogColor;\n" + "varying float fogFactor;\n" + "\n" + "void DoAlphaTest(vec4 SrcColour)\n" + "{\n" + " if (alphaTestEnabled)\n" + " {\n" + " if (SrcColour.a <= alphaRefValue)\n" + " {\n" + " discard;\n" + " }\n" + " }\n" + "}\n" + "\n" + "void main(void)\n" + "{\n" + " vec4 color = texture2D(pTexure, texc).rgba * fcolor.rgba;\n" + " DoAlphaTest(color);\n" + " gl_FragColor = vec4(mix(color.rgb, fogColor.rgb, fogFactor), color.a);\n" + "}\n";
return _6n1
}
function _7n1() {
var _8n1 = "#define LIGHTS_MAX 8\n" + "#define MATRIX_VIEW 0\n" + "#define MATRIX_PROJECTION 1\n" + "#define MATRIX_WORLD 2\n" + "#define MATRIX_WORLD_VIEW 3\n" + "#define MATRIX_WORLD_VIEW_PROJECTION 4\n" + "#define MATRICES_MAX 5\n" + "#define FOG_SETTINGS 0\n" + "#define FOG_COLOUR 1\n" + "\n" + "uniform mat4 matrices[MATRICES_MAX];\n" + "uniform vec4 fogParameters[2];\n" + "\n" + "uniform vec4 dirlightdir[LIGHTS_MAX];\n" + "uniform vec4 pointlightpos[LIGHTS_MAX];\n" + "uniform vec4 lightcol[LIGHTS_MAX];\n" + "uniform vec4 ambientcol;\n" + "\n" + "attribute vec3 vertex;\n" + "attribute vec4 color;\n" + "attribute vec2 UV;\n" + "attribute vec3 normal;\n" + "\n" + "varying vec4 fcolor;\n" + "varying vec2 texc;\n" + "varying vec4 fogColor;\n" + "varying float fogFactor;\n" + "\n" + "float CalcFogFactor(vec4 pos)\n" + "{\n" + " vec4 viewpos = matrices[MATRIX_WORLD_VIEW] * pos;\n" + " vec4 fogParams = fogParameters[FOG_SETTINGS];\n" + " return (1.0 - ((fogParams.z - viewpos.z) * fogParams.y)) * fogParams.x;\n" + "}\n" + "\n" + "vec4 DoDirLight(vec3 ws_normal, vec4 dir, vec4 diffusecol)\n" + "{\n" + " float dotresult = dot(ws_normal, dir.xyz);\n" + " dotresult = max(0.0, dotresult);\n" + " return dotresult * diffusecol;\n" + "}\n" + "\n" + "vec4 DoPointLight(vec3 ws_pos, vec3 ws_normal, vec4 posrange, vec4 diffusecol)\n" + "{\n" + " float atten = 0.0;\n" + "\n" + " vec3 diffvec = ws_pos - posrange.xyz;\n" + " float veclen = length(diffvec);\n" + " if (veclen <= posrange.w)\n" + " {\n" + " atten = 1.0 / (1.0 + (veclen / posrange.w));\n" + " }\n" + "\n" + " diffvec /= veclen;\n" + " float dotresult = dot(ws_normal, diffvec);\n" + " dotresult = max(0.0, dotresult);\n" + "\n" + " return (diffusecol * dotresult * atten);\n" + "}\n" + "\n" + "vec4 DoLighting(vec4 vertexcolour, vec4 objectspacepos, vec3 objectspacenormal)\n" + "{\n" + " vec3 ws_normal;\n" + " vec3 ws_pos;\n" + " vec4 objectspacenormal4 = vec4(objectspacenormal, 0.0);\n" + "\n" + " ws_normal = (matrices[MATRIX_WORLD] * objectspacenormal4).xyz;\n" + " ws_normal = -normalize(ws_normal);\n" + " ws_pos = (matrices[MATRIX_WORLD] * objectspacepos).xyz;\n" + "\n" + " vec4 accumcol = vec4(0.0, 0.0, 0.0, 0.0);\n" + " for(int i = 0; i < LIGHTS_MAX; i++)\n" + " {\n" + " accumcol += DoDirLight(ws_normal, dirlightdir[i], lightcol[i]);\n" + " }\n" + " for(int i = 0; i < LIGHTS_MAX; i++)\n" + " {\n" + " accumcol += DoPointLight(ws_pos, ws_normal, pointlightpos[i], lightcol[i]);\n" + " }\n" + " accumcol *= vertexcolour;\n" + " accumcol += ambientcol;\n" + " return min(vec4(1.0, 1.0, 1.0, 1.0), accumcol);\n" + "}\n" + "\n" + "void main(void)\n" + "{\n" + " vec4 pos = vec4(vertex.xyz, 1);\n" + " vec4 lcolor = DoLighting(color, pos, normal);\n" + " fcolor = vec4(lcolor.xyz, 1);\n" + " fogFactor = CalcFogFactor(pos);\n" + " fogColor = vec4(fogParameters[FOG_COLOUR].xyz, 1);\n" + " texc = UV;\n" + " gl_Position = matrices[MATRIX_WORLD_VIEW_PROJECTION] * pos;\n" + " gl_PointSize = 1.0;\n" + "}";
return _8n1
}
function _9n1() {
var _6n1 = "precision mediump float;\n" + "uniform sampler2D pTexure;\n" + "uniform bool alphaTestEnabled;\n" + "uniform float alphaRefValue;" + "\n" + "varying vec4 fcolor;\n" + "varying vec2 texc;\n" + "varying vec4 fogColor;\n" + "varying float fogFactor;\n" + "\n" + "void DoAlphaTest(vec4 SrcColour)\n" + "{\n" + " if (alphaTestEnabled)\n" + " {\n" + " if (SrcColour.a <= alphaRefValue)\n" + " {\n" + " discard;\n" + " }\n" + " }\n" + "}\n" + "\n" + "\n" + "void main(void)\n" + "{\n" + " vec4 color = texture2D( pTexure, texc ).rgba * fcolor.rgba;\n" + " DoAlphaTest(color);\n" + " gl_FragColor = vec4(mix(color.rgb, fogColor.rgb, fogFactor), color.a);\n" + "}\n";
return _6n1
}
function _an1(_bn1, _uP) {
var _cn1 = null;
var _dn1 = null,
_en1 = null;
var _fn1 = 0;
var _gn1, _hn1;
var _in1, _jn1, _kn1 = [];
var _ln1, _mn1, _nn1, _on1;
var _pn1, _qn1;
Object.defineProperties(this, {
_rn1: {
get: function() {
return (_cn1 !== null && _cn1 !== undefined)
}
},
_Ih: {
get: function() {
return _in1
}
},
_oj: {
get: function() {
return _jn1
}
},
_sn1: {
get: function() {
return _gn1
}
},
_tn1: {
get: function() {
return _hn1
}
},
_un1: {
get: function() {
return _ln1
}
},
_vn1: {
get: function() {
return _mn1
}
},
_wn1: {
get: function() {
return _nn1
},
set: function(_Pk) {
_nn1 = _Pk
}
},
_xn1: {
get: function() {
return _on1
},
set: function(_Pk) {
_on1 = _Pk
}
}
});
(function() {
_cn1 = _yn1(_bn1, _uP);
if (_cn1) {
_zn1(_cn1);
var _An1 = _cn1.getParameter(_cn1.MAX_TEXTURE_IMAGE_UNITS);
_pn1 = (_An1 < _Gh._Bn1) ? _An1 : _Gh._Bn1;
_qn1 = _cn1.getParameter(_cn1.MAX_TEXTURE_SIZE);
_en1 = new _Cn1(_uP._Dn1);
_dn1 = new _En1(_en1);
_Fn1();
_Gn1();
_Hn1();
_en1._Ts(_gn1)
}
})();
function _zn1(_In1) {
_Cn1.prototype._In1 = _In1;
_En1.prototype._In1 = _In1;
_8j.prototype._In1 = _In1;
_Jn1.prototype._In1 = _In1;
_Kn1.prototype._In1 = _In1;
_Ln1.prototype._In1 = _In1;
};
function _Mn1() {
var userAgent = navigator.userAgent.toString().toLowerCase();
var _Nn1 = userAgent.indexOf("trident/");
if (_Nn1 >= 0) {
var version = parseFloat(userAgent.slice(_Nn1 + "trident/".length));
if (version == 7) {
return !0
}
}
return !1
}
function _yn1(_bn1, _uP) {
if (_Mn1()) return null;
var _On1 = null;
var _Pn1 = ["webgl", "experimental-webgl", "moz-webgl", "webkit-3d"]; {
for (var _u2 = 0; _u2 < _Pn1.length; _u2++) {
try {
var _Qn1 = {
alpha: !0,
stencil: _uP._Rn1,
antialias: !1,
premultipliedAlpha: !1,
preserveDrawingBuffer: _uP._Sn1
};
_On1 = _bn1.getContext(_Pn1[_u2],
_Qn1);
if (_On1) {
break
}
} catch (_0L) {
return null
}
}
}
if (_On1) {
_ln1 = _bn1.width;
_mn1 = _bn1.height;
_nn1 = _ln1;
_on1 = _mn1
}
return _On1
}
function _Fn1() {
var _Tn1 = new _Kn1();
_Tn1._Un1();
_Tn1._Vn1();
_Tn1._Wn1();
_in1 = _kn1.push(_Tn1) - 1;
_dn1._Xn1(_in1);
var _Yn1 = new _Kn1();
_Yn1._Zn1();
_Yn1._Vn1();
_Yn1._Wn1();
_Yn1.__n1();
_jn1 = _kn1.push(_Yn1) - 1;
_dn1._Xn1(_jn1)
};
this._0o1 = function(_1o1) {
for (var _u2 in _kn1) {
if (!_kn1.hasOwnProperty(_u2)) continue;
if (_kn1[_u2]._eT(_1o1)) {
return _u2
}
}
var _2o1 = _kn1.push(_1o1) - 1;
_dn1._Xn1(_2o1);
return _2o1;
};
this._aj = function(_3k) {
return _kn1[_3k]
};
function _3o1(_4o1) {
while (((_4o1 & 0x1) == 0) && (_4o1 > 1)) {
_4o1 >>= 1
}
return (_4o1 == 1)
}
this._5o1 = function() {
return _qn1
};
this._6o1 = function(_7o1, _8o1, _9o1, _ao1) {
_dn1._bo1();
_en1._6o1(_7o1, _8o1, _9o1, _ao1)
};
function _co1(_do1, type, source) {
var _ov = _cn1.createShader((type == 'vertex') ? _cn1.VERTEX_SHADER : _cn1.FRAGMENT_SHADER);
_cn1.shaderSource(_ov, source);
_cn1.compileShader(_ov);
if (!_cn1.getShaderParameter(_ov, _cn1.COMPILE_STATUS)) {
alert("Could not compile " + type + " shader:\n\n" + _cn1.getShaderInfoLog(_ov));
return
}
_cn1.attachShader(_do1, _ov)
};
function _Gn1() {
var _8n1 = _3n1();
var _6n1 = _5n1();
var _eo1 = _cn1.createProgram();
var error = _cn1.getError();
_co1(_eo1, "vertex", _8n1);
_co1(_eo1, "fragment", _6n1);
_cn1.linkProgram(_eo1);
error = _cn1.getError();
if (!_cn1.getProgramParameter(_eo1, _cn1.LINK_STATUS)) {
alert("Could not initialise shaders\n\n");
return !1
}
_cn1.useProgram(_eo1);
_gn1 = _eo1;
_eo1._fo1 = [];
_eo1._fo1.push(_cn1.getAttribLocation(_eo1, "vertex"));
_eo1._fo1.push(_cn1.getAttribLocation(_eo1, "color"));
_eo1._fo1.push(_cn1.getAttribLocation(_eo1,
"UV"));
_eo1._go1 = _cn1.getUniformLocation(_eo1, "pTexure");
_eo1._ho1 = _cn1.getUniformLocation(_eo1, "matrices");
_eo1._io1 = _cn1.getUniformLocation(_eo1, "fogParameters");
_eo1._jo1 = _cn1.getUniformLocation(_eo1, "alphaTestEnabled");
_eo1._ko1 = _cn1.getUniformLocation(_eo1, "alphaRefValue");
return !0
}
function _Hn1() {
var _4n1 = _7n1();
var _6n1 = _9n1();
var _eo1 = _cn1.createProgram();
var error = _cn1.getError();
_co1(_eo1, "vertex", _4n1);
_co1(_eo1, "fragment", _6n1);
_cn1.linkProgram(_eo1);
error = _cn1.getError();
if (!_cn1.getProgramParameter(_eo1,
_cn1.LINK_STATUS)) {
alert("Could not initialise 3D shader\n\n");
return !1
}
_cn1.useProgram(_eo1);
_eo1._lo1 = _cn1.getUniformLocation(_eo1, "ViewMatrix");
_hn1 = _eo1;
_eo1._fo1 = [];
_eo1._fo1.push(_cn1.getAttribLocation(_eo1, "vertex"));
_eo1._fo1.push(_cn1.getAttribLocation(_eo1, "color"));
_eo1._fo1.push(_cn1.getAttribLocation(_eo1, "UV"));
_eo1._fo1.push(_cn1.getAttribLocation(_eo1, "normal"));
_eo1._go1 = _cn1.getUniformLocation(_eo1, "pTexure");
_eo1._ho1 = _cn1.getUniformLocation(_eo1, "matrices");
_eo1._mo1 = _cn1.getUniformLocation(_eo1,
"dirlightdir");
_eo1._no1 = _cn1.getUniformLocation(_eo1, "pointlightpos");
_eo1._oo1 = _cn1.getUniformLocation(_eo1, "lightcol");
_eo1._po1 = _cn1.getUniformLocation(_eo1, "ambientcol");
_eo1._io1 = _cn1.getUniformLocation(_eo1, "fogParameters");
_eo1._jo1 = _cn1.getUniformLocation(_eo1, "alphaTestEnabled");
_eo1._ko1 = _cn1.getUniformLocation(_eo1, "alphaRefValue");
return !0
}
this._qo1 = function(_ro1, _so1, _to1) {
if (_ro1 == "None" || _so1 == "None") {
var _uo1 = {
_vo1: null,
_wo1: null
};
return _uo1
}
var _eo1 = _cn1.createProgram();
var error = _cn1.getError();
_co1(_eo1, "vertex", _ro1);
_co1(_eo1, "fragment", _so1);
_cn1.linkProgram(_eo1);
error = _cn1.getError();
if (!_cn1.getProgramParameter(_eo1, _cn1.LINK_STATUS)) {
var _uo1 = {
_vo1: null,
_wo1: null
};
return _uo1
}
_cn1.useProgram(_eo1);
_eo1._ho1 = _cn1.getUniformLocation(_eo1, "gm_Matrices");
_eo1._mo1 = _cn1.getUniformLocation(_eo1, "gm_Lights_Direction");
_eo1._no1 = _cn1.getUniformLocation(_eo1, "gm_Lights_PosRange");
_eo1._oo1 = _cn1.getUniformLocation(_eo1, "gm_Lights_Colour");
_eo1._po1 = _cn1.getUniformLocation(_eo1, "gm_AmbientColour");
_eo1._fo1 = [];
for (var _xo1 = 0; _xo1 < _to1.length; _xo1++) {
_eo1._fo1.push(_cn1.getAttribLocation(_eo1, _to1[_xo1]))
}
var _yo1 = "gm_BaseTexture";
var _zo1 = [_yo1];
var _Ao1 = 0;
var _Bo1 = [];
var _Co1 = _cn1.getUniformLocation(_eo1, _yo1);
_cn1.uniform1iv(_Co1, [_Ao1++]);
_eo1._go1 = _Co1;
var _Do1 = _cn1.getProgramParameter(_eo1, _cn1.ACTIVE_UNIFORMS);
for (var _6h = 0; _6h < _Do1; _6h++) {
var _Eo1 = _cn1.getActiveUniform(_eo1, _6h);
if ((_Eo1.type == _cn1.SAMPLER_2D) || (_Eo1.type == _cn1.SAMPLER_CUBE)) {
if (_Eo1.name != _yo1) {
_zo1[_Ao1] = _Eo1.name;
var _xo1 = _cn1.getUniformLocation(_eo1,
_Eo1.name);
_cn1.uniform1iv(_xo1, [_Ao1++])
}
}
}
_uo1 = {
_vo1: _eo1,
_wo1: _zo1
};
return _uo1
};
this._Fo1 = function() {
_en1._8V();
_fn1++
};
this._Go1 = function() {
_dn1._bo1();
_en1._ie++;
_en1._Ho1();
_cn1.clearColor(1, 1, 1, 1);
_cn1.colorMask(!1, !1, !1, !0);
_cn1.clear(_cn1.COLOR_BUFFER_BIT);
_cn1.colorMask(!0, !0, !0, !0)
};
this._bo1 = function() {
_dn1._bo1();
_en1._Ho1()
};
this._Io1 = function(_an, _Jo1) {
_dn1._bo1();
_en1._Io1(_an, _Jo1)
};
this._Es = function(_Ko1) {
_dn1._bo1();
_en1._Lo1(_Gh._Mo1, _Ko1)
};
this._Is = function(_Ko1) {
_dn1._bo1();
_en1._Lo1(_Gh._No1, _Ko1)
};
this._8t = function(_Oo1) {
_dn1._bo1();
_en1._Lo1(_Gh._Po1, _Oo1)
};
this._Gs = function(_Ko1) {
_dn1._bo1();
_en1._Lo1(_Gh._Qo1, _Ko1)
};
this._Es = function(_Ko1) {
_dn1._bo1();
_en1._Lo1(_Gh._Mo1, _Ko1)
};
this._Qs = function(_Ro1, _So1, _To1, _Uo1) {
_dn1._bo1();
var _Vo1 = {
_Mp: _Ro1,
_Np: _So1,
_Op: _To1,
alpha: _Uo1
};
_en1._Lo1(_Gh._Wo1, _Vo1)
};
this._Ct = function(_xe, _Xo1, _Yo1, _Zo1) {
_dn1._bo1();
_en1._Ct(_xe, _Xo1, _Yo1, _Zo1)
};
this._Et = function(_xe, _Ko1, __o1) {
_dn1._bo1();
_en1._Et(_xe, _Ko1, __o1)
};
this._Gt = function(__o1) {
_dn1._bo1();
_en1._0p1(__o1)
};
this._It = function(_1p1) {
_dn1._bo1();
_en1._2p1(_1p1)
};
this._3p1 = function(_Rs, _4p1) {
_dn1._bo1();
_en1._3p1(_Rs, _4p1)
};
this._5p1 = function(_6p1, _7p1) {
_dn1._bo1();
if (_7p1) {
_en1._8p1(_6p1, _Gh._9p1, _Gh._ap1);
_en1._8p1(_6p1, _Gh._bp1, _Gh._ap1)
} else {
_en1._8p1(_6p1, _Gh._9p1, _Gh._cp1);
_en1._8p1(_6p1, _Gh._bp1, _Gh._cp1)
}
};
this._dp1 = function(_6p1, _ep1) {
_dn1._bo1();
_en1._8p1(_6p1, _Gh._fp1, _ep1);
_en1._8p1(_6p1, _Gh._gp1, _ep1)
};
this._hp1 = function() {
return _pn1
};
this._ip1 = function(_Rs) {
_dn1._bo1();
_en1._Lo1(_Gh._jp1, _Rs)
};
this._kp1 = function(__v) {
_dn1._bo1();
_en1._Lo1(_Gh._lp1, __v)
};
this._mp1 = function(_np1) {
_dn1._bo1();
_en1._Lo1(_Gh._op1, _np1)
};
this._pp1 = function(_qp1) {
_dn1._bo1();
_en1._Lo1(_Gh._rp1, _qp1)
};
this._Ts = function(_sp1) {
_dn1._bo1();
_en1._Ts(_sp1)
};
this._tp1 = function(_sp1, _up1) {
return _cn1.getUniformLocation(_sp1, _up1)
};
this._vp1 = function(_wp1, _xp1) {
_dn1._bo1();
_en1._vp1(_wp1, _xp1)
};
this._yp1 = function(_wp1, _xp1) {
_dn1._bo1();
_en1._yp1(_wp1, _xp1)
};
this._zp1 = function(_wp1, _xp1) {
_dn1._bo1();
_en1._zp1(_wp1, _xp1)
};
this._Ap1 = function(_wp1, _xp1, _Bp1) {
_dn1._bo1();
_en1._Ap1(_wp1, _xp1, _Bp1)
};
this._Cp1 = function(_wp1, _xp1, _Bp1) {
_dn1._bo1();
_en1._Cp1(_wp1, _xp1, _Bp1)
};
this._Dp1 = function(_cx) {
_dn1._bo1();
_en1._Dp1(_cx)
};
this._Ep1 = function(_Ak, _ye, _ze, _bn1) {
_en1._Ep1(_Ak, _ye, _ze, _bn1)
};
this._Fp1 = function(_6p1, _Ak) {
_Gh._Gp1(_Ak instanceof _Jn1, "Texture is not a yyGLTexture", _Gh._Hp1);
_dn1._bo1();
_en1._Fp1(_6p1, _Ak)
};
this._0t = function(_ar) {
_dn1._bo1();
_en1._Ip1(_ar)
};
this._7t = function(_ar) {
_dn1._bo1();
_en1._Jp1(_ar)
};
this._Kp1 = function(_ar) {
_dn1._bo1();
_en1._Lp1(_ar)
};
this._Mp1 = function(_Np1) {
var _Op1 = _cn1.getParameter(_cn1.TEXTURE_BINDING_2D);
var _mj = _cn1.createTexture();
_cn1.bindTexture(_cn1.TEXTURE_2D, _mj);
_cn1.texImage2D(_cn1.TEXTURE_2D, 0, _cn1.RGBA, _cn1.RGBA, _cn1.UNSIGNED_BYTE, _Np1);
var _on = new _Jn1(_mj, _Np1.width, _Np1.height, _3o1(_Np1.width) && _3o1(_Np1.height));
_cn1.bindTexture(_cn1.TEXTURE_2D, _Op1);
return _on
};
this._Pp1 = function(_ej, _Qp1, _Rp1, _uj) {
var _Vy = 0;
if (_ej) {
_Vy |= _cn1.COLOR_BUFFER_BIT;
}
if (_Qp1) {
_Vy |= _cn1.DEPTH_BUFFER_BIT
}
_en1._Pp1(_Vy, _uj)
};
this._Sp1 = function(_tP) {
_dn1._bo1();
_en1._Sp1(_tP)
};
function _Tp1(_Up1, _6n, _7n) {
if ((_6n == 0) || (_7n == 0)) {
return
}
var _Vp1 = _Up1[(_7n - 1) * _6n] & 0xffffff;
for (_u2 = 0; _u2 < (_6n * _7n); _u2++) {
if ((_Up1[_u2] & 0xffffff) == _Vp1) {
_Up1[_u2] = _Up1[_u2] & 0xffffff
}
}
}
function _Wp1(_Cj) {
var max = _qn1;
var _k2 = 1;
while (_k2 <= max) {
if (_Cj <= _k2) return _k2;
_k2 = _k2 << 1
}
return max
}
this._Xp1 = function(_Np1, _ye, _ze, _6n, _7n, _Po, _Qo, _Yp1) {
this._bo1();
var _Zp1 = new Uint8Array(_6n * _7n * 4);
_cn1.readPixels(_ye,
_on1 - (_ze + _7n), _6n, _7n, _cn1.RGBA, _cn1.UNSIGNED_BYTE, _Zp1);
var __p1;
if (_Yp1) {
var _0q1 = new ArrayBuffer(_6n * _7n * 4);
__p1 = new Uint8Array(_0q1);
for (var _8h = 0; _8h < _7n; _8h++) {
var _1q1 = _Zp1.subarray(_8h * _6n * 4, (_8h + 1) * _6n * 4);
var _2q1 = __p1.subarray((_7n - 1 - _8h) * _6n * 4, (_7n - _8h) * _6n * 4);
_2q1.set(_1q1)
}
if (_Po) {
_Tp1(new Int32Array(_0q1), _6n, _7n)
}
} else {
__p1 = _Zp1
}
var _y2 = _Wp1(_6n);
var _z2 = _Wp1(_7n);
var _Op1 = _cn1.getParameter(_cn1.TEXTURE_BINDING_2D);
var _mj = _cn1.createTexture();
_cn1.bindTexture(_cn1.TEXTURE_2D, _mj);
_cn1.texImage2D(_cn1.TEXTURE_2D,
0, _cn1.RGBA, _y2, _z2, 0, _cn1.RGBA, _cn1.UNSIGNED_BYTE, null);
_cn1.texSubImage2D(_cn1.TEXTURE_2D, 0, 0, 0, _6n, _7n, _cn1.RGBA, _cn1.UNSIGNED_BYTE, __p1);
_cn1.texParameteri(_cn1.TEXTURE_2D, _cn1.TEXTURE_MAG_FILTER, _cn1.NEAREST);
_cn1.texParameteri(_cn1.TEXTURE_2D, _cn1.TEXTURE_MIN_FILTER, _cn1.NEAREST);
var _on = new _Jn1(_mj, _y2, _z2, (_y2 == _6n) && (_z2 == _7n));
_Np1.width = _y2;
_Np1.height = _z2;
_cn1.bindTexture(_cn1.TEXTURE_2D, _Op1);
_en1._8V();
return _on
};
this._3q1 = function(_Np1, _4q1, _ye, _ze, _6n, _7n, _Po, _Qo) {
this._bo1();
var _5q1 = _cn1.getParameter(_cn1.FRAMEBUFFER_BINDING);
var _0q1 = new ArrayBuffer(_6n * _7n * 4);
var __p1 = new Uint8Array(_0q1);
_cn1.bindFramebuffer(_cn1.FRAMEBUFFER, _4q1);
_cn1.readPixels(_ye, _ze, _6n, _7n, _cn1.RGBA, _cn1.UNSIGNED_BYTE, __p1);
_cn1.bindFramebuffer(_cn1.FRAMEBUFFER, _5q1);
if (_Po) {
_Tp1(new Int32Array(_0q1), _6n, _7n)
}
var _y2 = _Wp1(_6n);
var _z2 = _Wp1(_7n);
var _Op1 = _cn1.getParameter(_cn1.TEXTURE_BINDING_2D);
var _mj = _cn1.createTexture();
_cn1.bindTexture(_cn1.TEXTURE_2D, _mj);
_cn1.texImage2D(_cn1.TEXTURE_2D, 0, _cn1.RGBA, _y2, _z2, 0, _cn1.RGBA, _cn1.UNSIGNED_BYTE, null);
_cn1.texSubImage2D(_cn1.TEXTURE_2D,
0, 0, 0, _6n, _7n, _cn1.RGBA, _cn1.UNSIGNED_BYTE, __p1);
_cn1.texParameteri(_cn1.TEXTURE_2D, _cn1.TEXTURE_MAG_FILTER, _cn1.NEAREST);
_cn1.texParameteri(_cn1.TEXTURE_2D, _cn1.TEXTURE_MIN_FILTER, _cn1.NEAREST);
var _on = new _Jn1(_mj, _y2, _z2, (_y2 == _6n) && (_z2 == _7n));
_Np1.width = _y2;
_Np1.height = _z2;
_cn1.bindTexture(_cn1.TEXTURE_2D, _Op1);
_en1._8V();
return _on
};
this._6q1 = function(_Np1, _7q1, _6n, _7n) {
var _y2 = _Wp1(_6n);
var _z2 = _Wp1(_7n);
var _Op1 = _cn1.getParameter(_cn1.TEXTURE_BINDING_2D);
var _mj = _cn1.createTexture();
_cn1.bindTexture(_cn1.TEXTURE_2D,
_mj);
_cn1.texImage2D(_cn1.TEXTURE_2D, 0, _cn1.RGBA, _y2, _z2, 0, _cn1.RGBA, _cn1.UNSIGNED_BYTE, null);
_cn1.texSubImage2D(_cn1.TEXTURE_2D, 0, 0, 0, _6n, _7n, _cn1.RGBA, _cn1.UNSIGNED_BYTE, _7q1);
_cn1.texParameteri(_cn1.TEXTURE_2D, _cn1.TEXTURE_MAG_FILTER, _cn1.NEAREST);
_cn1.texParameteri(_cn1.TEXTURE_2D, _cn1.TEXTURE_MIN_FILTER, _cn1.NEAREST);
var _on = new _Jn1(_mj, _y2, _z2, (_y2 == _6n) && (_z2 == _7n));
_Np1.width = _y2;
_Np1.height = _z2;
_cn1.bindTexture(_cn1.TEXTURE_2D, _Op1);
_en1._8V();
return _on
};
this._8q1 = function(_Np1, _7q1, _6n,
_7n) {
var _0q1 = new ArrayBuffer(_6n * _7n * 4);
var _9q1 = new DataView(_0q1);
for (var _df = 0; _df < _6n * _7n; _df++) {
_9q1.setUint32(_df * 4, ~~_7q1[_df], !0)
}
return this._6q1(_Np1, new Uint8Array(_0q1), _6n, _7n)
};
this._aq1 = function(_Ak, _fj) {
_Gh._Gp1(_Ak instanceof _Jn1, "Texture is not a yyGLTexture", _Gh._Hp1);
var _mj = _Ak._bq1;
var _y2 = _Ak._cq1;
var _z2 = _Ak._dq1;
var _5q1 = _cn1.getParameter(_cn1.FRAMEBUFFER_BINDING);
var _eq1 = _cn1.createFramebuffer();
_cn1.bindFramebuffer(_cn1.FRAMEBUFFER, _eq1);
_cn1.framebufferTexture2D(_cn1.FRAMEBUFFER,
_cn1.COLOR_ATTACHMENT0, _cn1.TEXTURE_2D, _mj, 0);
var __p1 = new Uint8Array(_y2 * _z2 * 4);
_cn1.readPixels(0, 0, _y2, _z2, _cn1.RGBA, _cn1.UNSIGNED_BYTE, __p1);
_cn1.bindFramebuffer(_cn1.FRAMEBUFFER, _5q1);
_cn1.deleteFramebuffer(_eq1);
for (var _u2 = 0; _u2 < (_y2 * _z2); _u2++) {
__p1[(_u2 * 4) + 3] = _fj[_u2]
}
var _pY = _Wp1(_y2);
var _Sy = _Wp1(_z2);
var _Op1 = _cn1.getParameter(_cn1.TEXTURE_BINDING_2D);
var _fq1 = _cn1.createTexture();
_cn1.bindTexture(_cn1.TEXTURE_2D, _fq1);
_cn1.texImage2D(_cn1.TEXTURE_2D, 0, _cn1.RGBA, _pY, _Sy, 0, _cn1.RGBA, _cn1.UNSIGNED_BYTE,
null);
_cn1.texSubImage2D(_cn1.TEXTURE_2D, 0, 0, 0, _y2, _z2, _cn1.RGBA, _cn1.UNSIGNED_BYTE, __p1);
_cn1.texParameteri(_cn1.TEXTURE_2D, _cn1.TEXTURE_MAG_FILTER, _cn1.NEAREST);
_cn1.texParameteri(_cn1.TEXTURE_2D, _cn1.TEXTURE_MIN_FILTER, _cn1.NEAREST);
var _on = new _Jn1(_fq1, _pY, _Sy, (_pY == _y2) && (_Sy == _z2));
_cn1.deleteTexture(_Ak._bq1);
_cn1.bindTexture(_cn1.TEXTURE_2D, _Op1);
return _on
};
this._gq1 = function(_ye, _ze) {
this._bo1();
var __p1 = new Uint8Array(16);
_cn1.readPixels(_ye, _on1 - _ze, 1, 1, _cn1.RGBA, _cn1.UNSIGNED_BYTE, __p1);
var _Dg = (__p1[0]) | (__p1[1] << 8) | (__p1[2] << 16) | (__p1[3] << 24);
_en1._8V();
return _Dg
};
this._hq1 = function(_4q1, _ye, _ze) {
this._bo1();
var _5q1 = _cn1.getParameter(_cn1.FRAMEBUFFER_BINDING);
var __p1 = new Uint8Array(16);
_cn1.bindFramebuffer(_cn1.FRAMEBUFFER, _4q1);
_cn1.readPixels(_ye, _ze, 1, 1, _cn1.RGBA, _cn1.UNSIGNED_BYTE, __p1);
var _Dg = (__p1[0]) | (__p1[1] << 8) | (__p1[2] << 16) | (__p1[3] << 24);
_cn1.bindFramebuffer(_cn1.FRAMEBUFFER, _5q1);
_en1._8V();
return _Dg
};
this._iq1 = function(_6n, _7n) {
var _Op1 = _cn1.getParameter(_cn1.TEXTURE_BINDING_2D);
var _5q1 = _cn1.getParameter(_cn1.FRAMEBUFFER_BINDING);
var _jq1 = _cn1.getParameter(_cn1.RENDERBUFFER_BINDING); {
var _kq1 = _cn1.createFramebuffer();
_kq1.width = _6n;
_kq1.height = _7n;
_cn1.bindFramebuffer(_cn1.FRAMEBUFFER, _kq1);
var _lq1 = _cn1.createTexture();
_cn1.bindTexture(_cn1.TEXTURE_2D, _lq1);
_cn1.texImage2D(_cn1.TEXTURE_2D, 0, _cn1.RGBA, _6n, _7n, 0, _cn1.RGBA, _cn1.UNSIGNED_BYTE, null);
var _mq1 = new _Jn1(_lq1, _6n, _7n, _3o1(_6n) && _3o1(_7n));
var _nq1 = _cn1.createRenderbuffer();
_cn1.bindRenderbuffer(_cn1.RENDERBUFFER, _nq1);
_cn1.renderbufferStorage(_cn1.RENDERBUFFER, _cn1.DEPTH_STENCIL, _kq1.width, _kq1.height);
_cn1.framebufferTexture2D(_cn1.FRAMEBUFFER, _cn1.COLOR_ATTACHMENT0, _cn1.TEXTURE_2D, _lq1, 0);
_cn1.framebufferRenderbuffer(_cn1.FRAMEBUFFER, _cn1.DEPTH_STENCIL_ATTACHMENT, _cn1.RENDERBUFFER, _nq1)
}
_cn1.bindTexture(_cn1.TEXTURE_2D, _Op1);
_cn1.bindFramebuffer(_cn1.FRAMEBUFFER, _5q1);
_cn1.bindRenderbuffer(_cn1.RENDERBUFFER, _jq1);
var _oq1 = {
_pq1: _kq1,
_qq1: _nq1,
_bq1: _mq1
};
return _oq1
};
this._rq1 = function(_4q1) {
_cn1.deleteFramebuffer(_4q1._pq1);
_cn1.deleteRenderbuffer(_4q1._qq1);
_cn1.deleteTexture(_4q1._bq1._bq1);
_4q1._bq1 = null
};
this._sq1 = function(_Ak) {
_Gh._Gp1(_Ak instanceof _Jn1, "NULL texture is not a yyGLTexture", _Gh._Hp1);
_en1._tq1 = _Ak
};
this._Fh = function(__i, _Ak, _3k, _uq1) {
_Gh._Gp1((_Ak == null) || (_Ak instanceof _Jn1), "Texture is not a yyGLTexture", _Gh._Hp1);
return _dn1._Fh(__i, _Ak, _3k, _uq1, _kn1[_3k], _fn1)
};
this._Bk = function(__i, _Ak, _vq1, _wq1) {
_Gh._Gp1((_Ak == null) || (_Ak instanceof _Jn1), "Texture is not a yyGLTexture", _Gh._Hp1);
_dn1._xq1(__i,
_Ak, _vq1, _wq1)
}
}
var _Gh = {
_yq1: 8,
_Bn1: 8,
_zq1: -1,
_Hh: 0,
_4j: 1,
_3j: 2,
_1j: 3,
_2j: 4,
_0j: 5,
_6k: 1,
_bk: 2,
_lk: 3,
_jk: 4,
_Aq1: 5,
_Bq1: 6,
_Cq1: 7,
_Dq1: 8,
_Eq1: 9,
_Fq1: 10,
_Gq1: 11,
_Hq1: 12,
_Iq1: 13,
_Jq1: 14,
_Kq1: 14,
_nk: 1,
_7k: 2,
_9k: 3,
_rk: 4,
_ck: 5,
_tk: 6,
_Lq1: 6,
_Mq1: 1,
_Nq1: 2,
_Oq1: 3,
_Pq1: 4,
_Qq1: 5,
_Rq1: 6,
_Sq1: 7,
_Tq1: 8,
_Uq1: 9,
_Vq1: 10,
_Wq1: 11,
_Xq1: 12,
_Yq1: 13,
_Zq1: 14,
__q1: 15,
_0r1: 16,
_1r1: 16,
_2r1: 0,
_Mo1: 1,
_3r1: 2,
_Qo1: 3,
_4r1: 4,
_5r1: 5,
_6r1: 6,
_No1: 7,
_7r1: 8,
_8r1: 9,
_9r1: 10,
_ar1: 11,
_Wo1: 12,
_jp1: 13,
_br1: 14,
_cr1: 15,
_op1: 16,
_lp1: 17,
_rp1: 18,
_dr1: 19,
_er1: 20,
_Po1: 21,
_fr1: 21,
_gr1: 1,
_hr1: 2,
_ir1: 3,
_jr1: 4,
_kr1: 5,
_lr1: 6,
_mr1: 7,
_nr1: 8,
_or1: 1,
_pr1: 2,
_qr1: 3,
_rr1: 4,
_sr1: 5,
_tr1: 6,
_ur1: 7,
_vr1: 8,
_ap1: 0,
_cp1: 1,
_fp1: 0,
_gp1: 1,
_9p1: 2,
_bp1: 3,
_wr1: 0,
_xr1: 1,
_at: 0,
_9t: 1,
_yr1: 0,
_zr1: 1,
_Hp1: 2,
_Gp1: function(_Ar1, _Br1, _Cr1) {
if (!_Ar1) {
throw new _ym(_Br1)
}
}
};
Object.freeze(_Gh);
function _Cn1(_Dr1) {
var _cn1 = this._In1;
var _Er1 = 0,
_Fr1 = 1,
_Gr1 = 2,
_Hr1 = 3,
_Ir1 = 4,
_Jr1 = 5,
_Kr1 = 6,
_Lr1 = 7,
_Mr1 = 8,
_Nr1 = 9,
_Or1 = 10,
_Pr1 = 11,
_Qr1 = 12,
_Rr1 = 13,
_Sr1 = 14,
_Tr1 = 15,
_Ur1 = 16,
_Vr1 = 17,
_Wr1 = 18,
_Xr1 = 19,
_Yr1 = 20,
_Zr1 = 21,
__r1 = 22,
_0s1 = 23,
_1s1 = 24,
_2s1 = 25,
_3s1 = 26,
_4s1 = 27,
_5s1 = 28,
_6s1 = 29;
_7s1 = 30;
var _8s1 = 0,
_9s1 = 1,
_as1 = 2,
_bs1 = 3,
_cs1 = 4,
_ds1 = 5;
var _es1 = 1,
_fs1 = 2,
_gs1 = 4,
_hs1 = 8;
var _is1 = [];
var _js1 = [],
_ks1, _ls1;
var _ms1, _ns1 = [],
_os1 = [],
_ps1 = [],
_qs1 = new Float32Array(_Gh._yq1 * 4),
_rs1 = new Float32Array(_Gh._yq1 * 4),
_ss1 = new Float32Array(_Gh._yq1 * 4),
_ts1 = new Float32Array(4),
_us1 = new Float32Array(8),
_vs1 = !1,
_ws1 = 0.0,
_xs1;
var _fn1 = 0,
_ys1;
Object.defineProperties(this, {
_ie: {
get: function() {
return _fn1
},
set: function(_Pk) {
_fn1 = _Pk
}
},
_tq1: {
get: function() {
return _ys1
},
set: function(_Pk) {
_ys1 = _Pk
}
}
});
(function() {
_zs1();
var _An1 = _cn1.getParameter(_cn1.MAX_TEXTURE_IMAGE_UNITS);
if (_An1 > _Gh._Bn1) {
_An1 = _Gh._Bn1
}
for (var _Ao1 = 0; _Ao1 < _An1; _Ao1++) {
_ps1[_Ao1] = new _Ln1(_Dr1)
}
var _As1 = _Bs1(_Gh._gr1);
_xs1 = {
_mw: 0,
_Cs1: 0xffffffff,
_Ds1: 0xffffffff,
_Es1: _Fs1(_Gh._vr1),
_Gs1: _As1,
_Hs1: _As1,
_Is1: _As1
};
for (var _u2 = 0; _u2 < _ds1; _u2++) {
_os1[_u2] = new _Ws()
}
_cn1.disable(_cn1.CULL_FACE);
_cn1.disable(_cn1.DEPTH_TEST);
_cn1.enable(_cn1.BLEND);
_cn1.enable(_cn1.SCISSOR_TEST);
_cn1.blendFunc(_cn1.SRC_ALPHA, _cn1.ONE_MINUS_SRC_ALPHA);
_cn1.activeTexture(_cn1.TEXTURE0);
_cn1.frontFace(_cn1.CW);
_cn1.cullFace(_cn1.BACK);
})();
function _zs1() {
_js1 = [];
_ls1 = undefined;
_ks1 = undefined;
_js1[0] = 1;
_js1[1] = 1
};
this._8V = function() {
_zs1()
};
this._Ts = function(_Js1) {
if (_Js1 != _ks1) {
_ls1 = null;
_is1.push(_Vr1);
_is1.push(_Js1);
_ks1 = _Js1
}
};
this._Fp1 = function(_6p1, _Ak) {
if (_js1[_6p1] == _Ak) {
return
}
_js1[_6p1] = _Ak;
_is1.push(_Fr1);
_is1.push(_Ak);
_is1.push(_6p1)
};
this._Dp1 = function(_ev) {
_is1.push(_ev)
};
this._Ep1 = function(_Ak,
_ye, _ze, _bn1) {
_is1.push(_7s1);
_is1.push(_Ak);
_is1.push(_ye);
_is1.push(_ze);
_is1.push(_bn1)
};
this._Ks1 = function(_Ls1) {
if (_ls1 == _Ls1) return;
_ls1 = _Ls1;
_is1.push(_Qr1);
_is1.push(_Ls1)
};
this._Ms1 = function(_Ns1, _Os1) {
_is1.push(_Gr1);
_is1.push(_Ns1);
_is1.push(_Os1)
};
this._Ps1 = function(_Ns1, _Os1) {
_is1.push(_Hr1);
_is1.push(_Ns1);
_is1.push(_Os1)
};
this._Qs1 = function(_Ns1, _Os1) {
_is1.push(_Ir1);
_is1.push(_Ns1);
_is1.push(_Os1)
};
this._Rs1 = function(_Ns1, _Os1) {
_is1.push(_Jr1);
_is1.push(_Ns1);
_is1.push(_Os1)
};
this._Ss1 = function(_Ns1,
_Os1) {
_is1.push(_Kr1);
_is1.push(_Ns1);
_is1.push(_Os1)
};
this._P81 = function(_Ns1, _Os1) {
_is1.push(_Lr1);
_is1.push(_Ns1);
_is1.push(_Os1)
};
this._Jp1 = function(_ar) {
_is1.push(_Nr1);
_is1.push(new _Ws(_ar))
};
this._Ip1 = function(_ar) {
_is1.push(_Or1);
_Ts1 = new _Ws(_ar);
_is1.push(new _Ws(_ar))
};
this._Lp1 = function(_ar) {
_is1.push(_Mr1);
_is1.push(new _Ws(_ar))
};
this._6o1 = function(_ye, _ze, _6n, _7n) {
_is1.push(_Pr1);
_is1.push(_ye);
_is1.push(_ze);
_is1.push(_6n);
_is1.push(_7n)
};
this._Pp1 = function(_Us1, _uj) {
_is1.push(_Rr1);
_is1.push(_Us1);
_is1.push(~~_uj)
};
this._Sp1 = function(_Vs1) {
_is1.push(_Sr1);
_is1.push(_Vs1)
};
this._Ws1 = function(_fj, _5A, _6A, _7A) {
_is1.push(_Tr1);
_is1.push(_fj);
_is1.push(_5A);
_is1.push(_6A);
_is1.push(_7A)
};
this._Io1 = function(_an, _Jo1) {
_is1.push(_Ur1);
_is1.push(_an);
_is1.push(_Jo1)
};
this._vp1 = function(_Xs1, _xp1) {
_is1.push(_Wr1);
_is1.push(_Xs1);
_is1.push(_xp1)
};
this._yp1 = function(_Xs1, _xp1) {
_is1.push(_Xr1);
_is1.push(_Xs1);
_is1.push(_xp1)
};
this._Ap1 = function(_Xs1, _xp1, _Bp1) {
_is1.push(_Yr1);
_is1.push(_Xs1);
_is1.push(_xp1);
_is1.push(_Bp1)
};
this._Cp1 = function(_Xs1, _xp1, _Bp1) {
_is1.push(_Zr1);
_is1.push(_Xs1);
_is1.push(_xp1);
_is1.push(_Bp1)
};
this._zp1 = function(_Xs1, _xp1) {
_is1.push(__r1);
_is1.push(_Xs1);
_is1.push(_xp1)
};
this._Lo1 = function(_Ys1, _Zs1) {
_is1.push(_0s1);
_is1.push(_Ys1);
_is1.push(_Zs1)
};
this._8p1 = function(_6p1, __s1, _0t1) {
_is1.push(_1s1);
_is1.push(_6p1);
_is1.push(__s1);
_is1.push(_0t1)
};
this._Ct = function(_Sp, _1t1, _2t1, _3t1) {
_is1.push(_2s1);
_is1.push(_Sp);
_is1.push(new Float32Array(_1t1));
_is1.push(new Float32Array(_2t1));
_is1.push(new Float32Array(_3t1))
};
this._0p1 = function(_w4) {
_is1.push(_3s1);
_is1.push(new Float32Array(_w4));
};
this._2p1 = function(_4t1) {
_is1.push(_4s1);
_is1.push(new Float32Array(_4t1))
};
this._Et = function(_Sp, enable, _w4) {
_is1.push(_5s1);
_is1.push(_Sp);
_is1.push(enable);
_is1.push(_w4)
};
this._3p1 = function(_Rs, _5t1) {
_is1.push(_6s1);
_is1.push(_Rs);
_is1.push(_5t1)
};
function _6t1(_qy) {
switch (_qy) {
case _Gh._Mq1:
return _cn1.ZERO;
case _Gh._Nq1:
return _cn1.ONE;
case _Gh._Oq1:
return _cn1.SRC_COLOR;
case _Gh._Pq1:
return _cn1.ONE_MINUS_SRC_COLOR;
case _Gh._Qq1:
return _cn1.SRC_ALPHA;
case _Gh._Rq1:
return _cn1.ONE_MINUS_SRC_ALPHA;
case _Gh._Sq1:
return _cn1.ONE_MINUS_DST_ALPHA;
case _Gh._Tq1:
return _cn1.DST_ALPHA;
case _Gh._Uq1:
return _cn1.DST_COLOR;
case _Gh._Vq1:
return _cn1.ONE_MINUS_DST_COLOR;
case _Gh._Wq1:
return _cn1.SRC_ALPHA_SATURATE;
case _Gh._Xq1:
return 0;
case _Gh._Yq1:
return 0;
case _Gh._Zq1:
return 0;
case _Gh.__q1:
return 0;
case _Gh._0r1:
return 0;
case _Gh._1r1:
return 0
}
return 0
}
function _Bs1(_qy) {
switch (_qy) {
case _Gh._gr1:
return _cn1.KEEP;
case _Gh._hr1:
return _cn1.ZERO;
case _Gh._ir1:
return _cn1.REPLACE;
case _Gh._jr1:
return _cn1.INCR;
case _Gh._kr1:
return _cn1.DECR;
case _Gh._lr1:
return _cn1.INVERT;
case _Gh._mr1:
return _cn1.INCR;
case _Gh._nr1:
return _cn1.DECR;
default:
return _cn1.KEEP
}
}
function _Fs1(_qy) {
switch (_qy) {
case _Gh._or1:
return _cn1.NEVER;
case _Gh._pr1:
return _cn1.LESS;
case _Gh._qr1:
return _cn1.EQUAL;
case _Gh._rr1:
return _cn1.LEQUAL;
case _Gh._sr1:
return _cn1.GREATER;
case _Gh._tr1:
return _cn1.NOTEQUAL;
case _Gh._ur1:
return _cn1.GEQUAL;
case _Gh._vr1:
default:
return _cn1.ALWAYS
}
}
function _7t1(_Ys1, _Zs1) {
switch (_Ys1) {
case _Gh._Mo1:
if (_Zs1) {
_cn1.enable(_cn1.DEPTH_TEST)
} else {
_cn1.disable(_cn1.DEPTH_TEST);
}
break;
case _Gh._Qo1:
_cn1.depthMask(_Zs1);
break;
case _Gh._Po1:
_cn1.frontFace((_Zs1 === _Gh._at) ? _cn1.CW : _cn1.CCW);
break;
case _Gh._No1:
if (_Zs1) {
_cn1.enable(_cn1.CULL_FACE)
} else {
_cn1.disable(_cn1.CULL_FACE)
}
break;
case _Gh._Wo1:
_cn1.colorMask(_Zs1._Mp, _Zs1._Np, _Zs1._Op, _Zs1.alpha);
break;
case _Gh._jp1:
if (_Zs1) {
_cn1.enable(_cn1.STENCIL_TEST)
} else {
_cn1.disable(_cn1.STENCIL_TEST)
}
break;
case _Gh._br1:
_xs1._Gs1 = _Bs1(_Zs1);
_cn1.stencilOp(_xs1._Gs1, _xs1._Hs1,
_xs1._Is1);
break;
case _Gh._cr1:
_xs1._Hs1 = _Bs1(_Zs1);
_cn1.stencilOp(_xs1._Gs1, _xs1._Hs1, _xs1._Is1);
break;
case _Gh._op1:
_xs1._Is1 = _Bs1(_Zs1);
_cn1.stencilOp(_xs1._Gs1, _xs1._Hs1, _xs1._Is1);
break;
case _Gh._lp1:
_xs1._Es1 = _Fs1(_Zs1);
_cn1.stencilFunc(_xs1._Es1, _xs1._mw, _xs1._Cs1);
break;
case _Gh._rp1:
_xs1._mw = _Zs1;
_cn1.stencilFunc(_xs1._Es1, _xs1._mw, _xs1._Cs1);
break;
case _Gh._dr1:
_xs1._Cs1 = _Zs1;
_cn1.stencilFunc(_xs1._Es1, _xs1._mw, _xs1._Cs1);
break;
case _Gh._er1:
_cn1.stencilMask(_Zs1);
break
}
}
function _8t1() {
if (_ms1 && _ms1._ho1) {
_os1[_bs1]._9u(_os1[_as1], _os1[_8s1]);
_os1[_cs1]._9u(_os1[_bs1], _os1[_9s1]);
var _9t1 = new Float32Array(16 * _ds1);
for (var _u2 = 0; _u2 < _ds1; _u2++) {
_9t1.set(_os1[_u2]._gf, _u2 * 16)
}
_cn1.uniformMatrix4fv(_ms1._ho1, _cn1._at1, _9t1)
}
}
function _bt1(_ct1) {
if (_ct1 & _hs1) {
if (_ms1._jo1 !== undefined) {
_cn1.uniform1i(_ms1._jo1, _vs1)
}
if (_ms1._ko1 !== undefined) {
_cn1.uniform1f(_ms1._ko1, _ws1)
}
}
if ((_ct1 & _es1) && (_ms1._io1 !== undefined)) {
_cn1.uniform4fv(_ms1._io1, _us1)
}
if (_ct1 & _fs1) {
if (_ms1._no1 !== undefined) {
_cn1.uniform4fv(_ms1._no1,
_qs1)
}
if (_ms1._mo1 !== undefined) {
_cn1.uniform4fv(_ms1._mo1, _rs1)
}
if (_ms1._oo1 !== undefined) {
_cn1.uniform4fv(_ms1._oo1, _ss1)
}
}
if ((_ct1 & _gs1) && (_ms1._po1 !== undefined)) {
_cn1.uniform4fv(_ms1._po1, _ts1)
}
}
function _dt1(_Ak, _6p1) {
if (_Ak === null || _Ak === undefined) {
return
}
var _et1 = _ps1[_6p1];
if (_et1 === null || _et1 === undefined) {
return
}
var _ft1 = _et1._gt1;
var _ht1 = _Ak._it1._gt1;
if (_ft1[_Gh._fp1] != _ht1[_Gh._fp1]) {
_cn1.texParameteri(_cn1.TEXTURE_2D, _cn1.TEXTURE_MAG_FILTER, (_ft1[_Gh._fp1] == _Gh._wr1) ? _cn1.LINEAR : _cn1.NEAREST);
_ht1[_Gh._fp1] = _ft1[_Gh._fp1]
}
if (_ft1[_Gh._gp1] != _ht1[_Gh._gp1]) {
_cn1.texParameteri(_cn1.TEXTURE_2D, _cn1.TEXTURE_MIN_FILTER, (_ft1[_Gh._gp1] == _Gh._wr1) ? _cn1.LINEAR : _cn1.NEAREST);
_ht1[_Gh._gp1] = _ft1[_Gh._gp1]
}
if (_ft1[_Gh._9p1] != _ht1[_Gh._9p1]) {
if (_Ak._jt1) {
var _kt1 = (_ft1[_Gh._9p1] == _Gh._cp1) ? _cn1.CLAMP_TO_EDGE : _cn1.REPEAT;
_cn1.texParameteri(_cn1.TEXTURE_2D, _cn1.TEXTURE_WRAP_S, _kt1)
} else {
debug("WARNING: Non-pow2 texture for TEXTURE_WRAP_S")
}
_ht1[_Gh._9p1] = _ft1[_Gh._9p1]
}
if (_ft1[_Gh._bp1] != _ht1[_Gh._bp1]) {
if (_Ak._jt1) {
var _kt1 = (_ft1[_Gh._bp1] == _Gh._cp1) ? _cn1.CLAMP_TO_EDGE : _cn1.REPEAT;
_cn1.texParameteri(_cn1.TEXTURE_2D, _cn1.TEXTURE_WRAP_T, _kt1)
} else {
debug("WARNING: Non-pow2 texture for TEXTURE_WRAP_T")
}
_ht1[_Gh._bp1] = _ft1[_Gh._bp1]
}
}
this._Ho1 = function() {
var _u2, error, _ww, _Bo1, _lt1, _Ao1, _hg, _Sp, _Dg, enable;
_u2 = 0;
while (_u2 < _is1.length) {
switch (_is1[_u2]) {
case _Vr1:
{
var _uo1 = _is1[_u2 + 1];
_u2 += 2;
_ms1 = _uo1;
_cn1.useProgram(_ms1);
_8t1();
_bt1(0xff);
break
}
case _Pr1:
{
_cn1.viewport(_is1[_u2 + 1], _is1[_u2 + 2], _is1[_u2 + 3],
_is1[_u2 + 4]);
_cn1.scissor(_is1[_u2 + 1], _is1[_u2 + 2], _is1[_u2 + 3], _is1[_u2 + 4]);
_u2 += 5;
break
}
case _Rr1:
{
_Dg = _is1[_u2 + 2];
_cn1.clearColor((_Dg & 0xff) / 255.0, ((_Dg >> 8) & 0xff) / 255.0, ((_Dg >> 16) & 0xff) / 255.0, ((_Dg >> 24) & 0xff) / 255.0);
_cn1.clear(_is1[_u2 + 1]);
_u2 += 3;
break
}
case _Nr1:
{
_os1[_9s1] = _is1[_u2 + 1];
_8t1();
_u2 += 2;
break
}
case _Or1:
{
_os1[_8s1] = _is1[_u2 + 1];
_8t1();
_u2 += 2;
break
}
case _Mr1:
{
_os1[_as1] = _is1[_u2 + 1];
_8t1();
_u2 += 2;
break
}
case _Fr1:
{
_hg = _is1[_u2 + 1];
_Ao1 = _is1[_u2 + 2];
_u2 += 3;
if (_hg === null) {
_hg = _ys1;
_cn1.activeTexture(_cn1.TEXTURE0 + _Ao1);
_cn1.bindTexture(_cn1.TEXTURE_2D, _hg._bq1);
_cn1.uniform1i(_ms1._go1, 0);
_ns1[_Ao1] = null
} else {
_cn1.activeTexture(_cn1.TEXTURE0 + _Ao1);
_cn1.bindTexture(_cn1.TEXTURE_2D, _hg._bq1);
_cn1.uniform1i(_ms1._go1, 0);
_dt1(_hg, _Ao1);
_ns1[_Ao1] = _hg
}
break
}
case _Qr1:
{
var _Eh = _is1[_u2 + 1];
_u2 += 2;
if (_Eh._mt1) {
_Eh._nt1()
}
_Eh._ot1 = this._ie;
_cn1.bindBuffer(_cn1.ARRAY_BUFFER, _Eh._pt1);
var _qt1 = _Eh._rt1;
for (var _df = 0; _df < _ms1._fo1.length; _df++) {
if (_ms1._fo1[_df] >= 0) {
var _st1 = _qt1._Sj[_df];
_cn1.enableVertexAttribArray(_ms1._fo1[_df]);
_cn1.vertexAttribPointer(_ms1._fo1[_df], _st1._tt1, _st1._ut1, _st1._vt1, _qt1._Yj, _st1._A2)
}
}
}
break;
case _Gr1:
{
_cn1.drawArrays(_cn1.TRIANGLES, _is1[_u2 + 1], _is1[_u2 + 2]);
_u2 += 3;
break
}
case _Hr1:
{
_cn1.drawArrays(_cn1.TRIANGLE_FAN, _is1[_u2 + 1], _is1[_u2 + 2]);
_u2 += 3;
break
}
case _Ir1:
{
_cn1.drawArrays(_cn1.TRIANGLE_STRIP, _is1[_u2 + 1], _is1[_u2 + 2]);
_u2 += 3;
break
}
case _Jr1:
{
_cn1.drawArrays(_cn1.LINES, _is1[_u2 + 1], _is1[_u2 + 2]);
_u2 += 3;
break
}
case _Kr1:
{
_cn1.drawArrays(_cn1.LINE_STRIP, _is1[_u2 + 1], _is1[_u2 + 2]);
_u2 += 3;
break
}
case _Lr1:
{
_cn1.drawArrays(_cn1.POINTS, _is1[_u2 + 1], _is1[_u2 + 2]);
_u2 += 3;
break
}
case _Sr1:
{
_cn1.bindFramebuffer(_cn1.FRAMEBUFFER, _is1[_u2 + 1]);
_u2 += 2;
break
}
case _Tr1:
{
_cn1.colorMask(_is1[_u2 + 2], _is1[_u2 + 3], _is1[_u2 + 4], _is1[_u2 + 1]);
_u2 += 5;
break
}
case _Ur1:
{
_cn1.blendFunc(_6t1(_is1[_u2 + 1]), _6t1(_is1[_u2 + 2]));
_u2 += 3;
break
}
case _0s1:
{
var _wt1 = _is1[_u2 + 1];
var _xt1 = _is1[_u2 + 2];
_u2 += 3;
_7t1(_wt1, _xt1);
break
}
case _Wr1:
{
_ww = _is1[_u2 + 1];
_Bo1 = _is1[_u2 + 2];
_u2 += 3;
switch (_Bo1.length) {
case 1:
_cn1.uniform1iv(_ww, _Bo1);
break;
case 2:
_cn1.uniform2iv(_ww,
_Bo1);
break;
case 3:
_cn1.uniform3iv(_ww, _Bo1);
break;
case 4:
_cn1.uniform4iv(_ww, _Bo1);
break
}
break
}
case _Xr1:
{
_ww = _is1[_u2 + 1];
_Bo1 = _is1[_u2 + 2];
_u2 += 3;
switch (_Bo1.length) {
case 1:
_cn1.uniform1fv(_ww, _Bo1);
break;
case 2:
_cn1.uniform2fv(_ww, _Bo1);
break;
case 3:
_cn1.uniform3fv(_ww, _Bo1);
break;
case 4:
_cn1.uniform4fv(_ww, _Bo1);
break
}
break
}
case _Yr1:
{
_ww = _is1[_u2 + 1];
_Bo1 = _is1[_u2 + 2];
_lt1 = _is1[_u2 + 3];
_u2 += 4;
switch (_lt1) {
case 1:
_cn1.uniform1iv(_ww, _Bo1);
break;
case 2:
_cn1.uniform2iv(_ww, _Bo1);
break;
case 3:
_cn1.uniform3iv(_ww,
_Bo1);
break;
case 4:
_cn1.uniform4iv(_ww, _Bo1);
break
}
break
}
case _Zr1:
{
_ww = _is1[_u2 + 1];
_Bo1 = _is1[_u2 + 2];
_lt1 = _is1[_u2 + 3];
_u2 += 4;
switch (_lt1) {
case 1:
_cn1.uniform1fv(_ww, _Bo1);
break;
case 2:
_cn1.uniform2fv(_ww, _Bo1);
break;
case 3:
_cn1.uniform3fv(_ww, _Bo1);
break;
case 4:
_cn1.uniform4fv(_ww, _Bo1);
break
}
break
}
case __r1:
{
_ww = _is1[_u2 + 1];
_Bo1 = _is1[_u2 + 2];
_u2 += 3;
switch (_Bo1.length) {
case 2:
_cn1.uniformMatrix2fv(_ww, !1, _Bo1);
break;
case 3:
_cn1.uniformMatrix3fv(_ww, !1, _Bo1);
break;
case 4:
_cn1.uniformMatrix4fv(_ww, !1, _Bo1);
break
}
break
}
case _1s1:
{
_Ao1 = _is1[_u2 + 1];
var _cF = _is1[_u2 + 2];
var _yt1 = _is1[_u2 + 3];
_u2 += 4;
var _et1 = _ps1[_Ao1];
_et1._gt1[_cF] = _yt1;
_dt1(_ns1[_Ao1], _Ao1);
break
}
case _2s1:
{
_Sp = _is1[_u2 + 1];
_qs1.set(_is1[_u2 + 2], _Sp * 4);
_rs1.set(_is1[_u2 + 3], _Sp * 4);
_ss1.set(_is1[_u2 + 4], _Sp * 4);
_u2 += 5;
_bt1(_fs1);
break
}
case _3s1:
{
_ts1.set(_is1[_u2 + 1]);
_u2 += 2;
_bt1(_gs1);
break
}
case _4s1:
{
_us1.set(_is1[_u2 + 1]);
_u2 += 2;
_bt1(_es1);
break
}
case _5s1:
{
_Sp = _is1[_u2 + 1];
enable = _is1[_u2 + 2];
_Dg = _is1[_u2 + 3];
_u2 += 4;
if (enable) {
_ss1.set(_Dg, _Sp * 4)
} else {
var _vt = _Sp * 4;
_ss1[_vt + 0] = 0;
_ss1[_vt + 1] = 0;
_ss1[_vt + 2] = 0;
_ss1[_vt + 3] = 0
}
_bt1(_fs1);
break
}
case _6s1:
{
_vs1 = _is1[_u2 + 1];
_ws1 = _is1[_u2 + 2];
_u2 += 3;
_bt1(_hs1);
break
}
case _7s1:
{
_hg = _is1[_u2 + 1];
var _Cf = _is1[_u2 + 2];
var _Ef = _is1[_u2 + 3];
var canvas = _is1[_u2 + 4];
_u2 += 5;
_cn1.activeTexture(_cn1.TEXTURE0);
_cn1.bindTexture(_cn1.TEXTURE_2D, _hg._bq1);
_cn1.texSubImage2D(_cn1.TEXTURE_2D, 0, _Cf, _Ef, _cn1.RGBA, _cn1.UNSIGNED_BYTE, canvas);
if (_ns1.length > 0) {
_cn1.bindTexture(_cn1.TEXTURE_2D, _ns1[0]._bq1)
}
break
}
}
}
_is1.length = 0
}
}
function _Jn1(_zt1, _bg,
_cg, _At1) {
var _cn1 = this._In1;
var _Bt1, _Ct1, _Dt1, _Et1, _Ft1;
Object.defineProperties(this, {
_it1: {
get: function() {
return _Bt1
}
},
_bq1: {
get: function() {
return _Ct1
}
},
_cq1: {
get: function() {
return _Dt1
}
},
_dq1: {
get: function() {
return _Et1
}
},
_jt1: {
get: function() {
return _Ft1
}
}
});
(function() {
_Ct1 = _zt1;
_Dt1 = _bg;
_Et1 = _cg;
_Ft1 = _At1;
_Bt1 = new _Ln1();
_Bt1._Gt1(_cn1.TEXTURE_2D)
})()
}
function _Ln1(_Dr1) {
var _cn1 = this._In1;
var _Ht1 = [];
Object.defineProperties(this, {
_gt1: {
get: function() {
return _Ht1
}
}
});
(function() {
if (_Dr1) {
_Ht1[_Gh._fp1] = _Gh._wr1;
_Ht1[_Gh._gp1] = _Gh._wr1
} else {
_Ht1[_Gh._fp1] = _Gh._xr1;
_Ht1[_Gh._gp1] = _Gh._xr1
}
_Ht1[_Gh._9p1] = _Gh._cp1;
_Ht1[_Gh._bp1] = _Gh._cp1
})();
this._Gt1 = function(_tP) {
var _It1 = _Ht1;
_cn1.texParameteri(_tP, _cn1.TEXTURE_MAG_FILTER, (_It1[_Gh._fp1] == _Gh._wr1) ? _cn1.LINEAR : _cn1.NEAREST);
_cn1.texParameteri(_tP, _cn1.TEXTURE_MIN_FILTER, (_It1[_Gh._gp1] == _Gh._wr1) ? _cn1.LINEAR : _cn1.NEAREST);
_cn1.texParameteri(_tP, _cn1.TEXTURE_WRAP_S, (_It1[_Gh._9p1] == _Gh._cp1) ? _cn1.CLAMP_TO_EDGE : _cn1.REPEAT);
_cn1.texParameteri(_tP, _cn1.TEXTURE_WRAP_T, (_It1[_Gh._bp1] == _Gh._cp1) ? _cn1.CLAMP_TO_EDGE : _cn1.REPEAT)
}
}
function _8j(_Cj, _Jt1, _Kt1) {
var _cn1 = this._In1;
this._Lt1;
this._lj;
this._pt1;
this._Nh;
this._Ph;
this._tj;
this._Rh;
this._rt1 = _Jt1;
this._ot1 = -1;
this._Lh = 0;
this._Mt1 = _Cj;
this._mt1 = !1;
_Nt1(this);
function _Nt1(_uN) {
_Ot1(_uN);
_Pt1(_uN);
if (_Kt1) {
_Qt1(_uN)
}
}
function _Ot1(_uN) {
var _Rt1 = _uN._rt1._Yj;
_uN._Lt1 = new ArrayBuffer(_Cj * _Rt1);
_uN._lj = new Int8Array(_uN._Lt1)
}
function _Qt1(_uN) {
_uN._pt1 = _cn1.createBuffer();
_cn1.bindBuffer(_cn1.ARRAY_BUFFER, _uN._pt1);
_cn1.bufferData(_cn1.ARRAY_BUFFER, _uN._lj, _cn1.DYNAMIC_DRAW)
}
function _Pt1(_uN) {
var _St1 = _uN._rt1._Sj;
for (var _df = 0; _df < _St1.length; _df++) {
var _st1 = _St1[_df];
switch (_st1._Uj) {
case _Gh._6k:
_uN._Nh = _Tt1(_st1._ut1, _uN._Lt1, _st1._A2);
break;
case _Gh._bk:
_uN._Ph = _Tt1(_st1._ut1, _uN._Lt1, _st1._A2);
break;
case _Gh._lk:
_uN._tj = _Tt1(_st1._ut1, _uN._Lt1, _st1._A2);
break;
case _Gh._jk:
_uN._Rh = _Tt1(_st1._ut1, _uN._Lt1, _st1._A2);
break
}
}
}
function _Tt1(_Ut1, _Vt1, _Wt1) {
switch (_Ut1) {
case _cn1.UNSIGNED_BYTE:
return (new Int32Array(_Vt1,
_Wt1));
break;
case _cn1.FLOAT:
return (new Float32Array(_Vt1, _Wt1));
break
}
return !1
}
this._Xt1 = function(_vq1) {
if (_vq1._Kh() === this._Kh()) {
var _wk = _vq1._Lh * _vq1._Kh();
var _A2 = this._Lh * this._Kh();
if ((_A2 + _wk) > this._lj.length) {
var _Yt1 = new ArrayBuffer(this._lj.length * 2);
var _kj = new Int8Array(_Yt1);
_kj.set(this._lj);
this._lj = _kj;
this._Lt1 = _Yt1;
_Pt1(this)
}
this._lj.set(_vq1._lj.subarray(0, _wk), _A2);
this._Lh += _vq1._Lh
}
};
this._uk = function() {
if (this._Lh < this.max) {
var _wk = this._Lh * this._Kh();
var _Zt1 = new ArrayBuffer(_wk);
var __t1 = new Int8Array(_Zt1);
__t1.set(this._lj.subarray(0, _wk));
this._lj = __t1;
this._Lt1 = _Zt1
}
this._pt1 = _cn1.createBuffer();
_cn1.bindBuffer(_cn1.ARRAY_BUFFER, this._pt1);
_cn1.bufferData(_cn1.ARRAY_BUFFER, this._lj, _cn1.STATIC_DRAW);
this._Nh = null;
this._Ph = null;
this._tj = null;
this._Rh = null
};
this._bj = function(_0u1) {
if ((this._Lh + _0u1) > this.max) {
var _1u1 = this.max * 2;
this.max = _1u1;
var __j = new ArrayBuffer(_1u1);
var _1k = new Int8Array(__j);
_1k.set(this._lj);
this._Lt1 = __j;
_Pt1(this)
}
this._Lh += _0u1
};
this._Kh = function() {
return this._rt1._Yj
};
this._nt1 = function() {
_cn1.bindBuffer(_cn1.ARRAY_BUFFER, this._pt1);
var _2u1 = new Int8Array(this._Lt1, 0, this._Lh * this._rt1._Yj);
_cn1.bufferSubData(_cn1.ARRAY_BUFFER, 0, _2u1);
this._Lh = 0;
this._mt1 = !1
}
}
function _En1(_3u1) {
var _cn1 = this._In1;
var _4u1 = [];
var _5u1 = 0,
_js1 = null,
_6u1 = null,
_7u1 = _Gh._zq1,
_ks1 = null;
var _8u1 = _3u1;
this._Xn1 = function(_3k) {
if (_4u1[_3k]) {
debug("WARNING: Vertex format has already been registered\n")
} else {
_4u1[_3k] = new _vn()
}
};
this._xq1 = function(__i, _Ak, _vq1, _wq1) {
var _k2 = _vq1._Lh - _wq1;
switch (__i) {
case _Gh._Hh:
_8u1._Fp1(0, _Ak);
_8u1._Ks1(_vq1);
_8u1._Ms1(_wq1, _k2);
break;
case _Gh._4j:
_8u1._Fp1(0, _Ak);
_8u1._Ks1(_vq1);
_8u1._Ps1(_wq1, _k2);
break;
case _Gh._3j:
_8u1._Fp1(0, _Ak);
_8u1._Ks1(_vq1);
_8u1._Qs1(_wq1, _k2);
break;
case _Gh._1j:
_8u1._Fp1(0, null);
_8u1._Ks1(_vq1);
_8u1._Rs1(_wq1, _k2);
break;
case _Gh._2j:
_8u1._Fp1(0, null);
_8u1._Ks1(_vq1);
_8u1._Ss1(_wq1, _k2);
break;
case _Gh._0j:
_8u1._Fp1(0, null);
_8u1._Ks1(_vq1);
_8u1._P81(_wq1, _k2);
break
}
};
this._bo1 = function() {
if (_6u1 == null) return;
this._xq1(_7u1,
_js1, _6u1, _5u1);
_6u1 = _js1 = null;
_7u1 = _Gh._zq1
};
this._Fh = function(__i, _9u1, _3k, _au1, _Jt1, _bu1) {
var _u2, _cu1, _Eh, _du1;
_du1 = _9u1;
if (_6u1 != null) {
if ((_6u1._2o1 == _3k) && ((_6u1._Lh + _au1) <= _6u1._Mt1) && (_js1 == _du1) && (_7u1 == __i) && ((__i != _Gh._2j) && (__i != _Gh._3j) && (__i != _Gh._4j))) {
return _6u1
} else {
var _eu1 = _6u1;
this._bo1();
if ((_eu1._2o1 == _3k) && ((_eu1._Lh + _au1) <= _eu1._Mt1)) {
_6u1 = _eu1;
_5u1 = _eu1._Lh;
_7u1 = __i;
_js1 = _du1;
return _6u1
}
}
}
_7u1 = __i;
_js1 = _du1;
_cu1 = _4u1[_3k]._Hn;
for (_u2 = _cu1.length - 1; _u2 >= 0; _u2--) {
_Eh = _cu1[_u2];
if ((_Eh._ot1 != _bu1) && (_Eh._Lh + _au1) <= _Eh._Mt1) {
_Eh._mt1 = !0;
_5u1 = _Eh._Lh;
_6u1 = _Eh;
return _Eh
}
}
if (_au1 < _9j) {
_au1 = _9j
}
_Eh = new _8j(_au1, _Jt1, !0);
_Eh._2o1 = _3k;
_Eh._mt1 = !0;
_5u1 = _Eh._Lh;
_6u1 = _Eh;
_4u1[_3k]._yn(_Eh);
return _Eh
}
}
function _Kn1() {
var _cn1 = this._In1;
var _fu1 = 1;
var _gu1 = [],
_hu1 = 0,
_iu1 = 0;
Object.defineProperties(this, {
_Sj: {
get: function() {
return _gu1
},
set: function(_Pk) {
_gu1 = _Pk
}
},
_Xj: {
get: function() {
return _iu1
},
set: function(_Pk) {
_iu1 = _Pk
}
},
_Yj: {
get: function() {
return _hu1
},
set: function(_Pk) {
_hu1 = _Pk
}
}
});
function _yn(_Pj,
_Oj, _ju1) {
_iu1 |= _ju1;
var _st1 = {
_A2: _hu1,
type: _Pj,
_Uj: _Oj,
_Vj: _ju1,
_ut1: 0,
_tt1: 0
};
switch (_Pj) {
case _Gh._ck:
case _Gh._tk:
_hu1 += 4;
_st1._ut1 = _cn1.UNSIGNED_BYTE;
_st1._tt1 = 4;
_st1._vt1 = !0;
break;
case _Gh._nk:
_hu1 += 4;
_st1._ut1 = _cn1.FLOAT;
_st1._tt1 = 1;
_st1._vt1 = !1;
break;
case _Gh._7k:
_hu1 += 8;
_st1._ut1 = _cn1.FLOAT;
_st1._tt1 = 2;
_st1._vt1 = !1;
break;
case _Gh._9k:
_hu1 += 12;
_st1._ut1 = _cn1.FLOAT;
_st1._tt1 = 3;
_st1._vt1 = !1;
break;
case _Gh._rk:
_hu1 += 16;
_st1._ut1 = _cn1.FLOAT;
_st1._tt1 = 4;
_st1._vt1 = !1;
break
}
_gu1.push(_st1)
}
this._Un1 = function() {
_yn(_Gh._7k, _Gh._6k, _fu1);
_fu1 = _fu1 << 1
};
this._Zn1 = function() {
_yn(_Gh._9k, _Gh._6k, _fu1);
_fu1 = _fu1 << 1
};
this._Vn1 = function() {
_yn(_Gh._ck, _Gh._bk, _fu1);
_fu1 = _fu1 << 1
};
this.__n1 = function() {
_yn(_Gh._9k, _Gh._lk, _fu1);
_fu1 = _fu1 << 1
};
this._Wn1 = function() {
_yn(_Gh._7k, _Gh._jk, _fu1);
_fu1 = _fu1 << 1
};
this._ku1 = function(_Pj, _Oj) {
if ((_Pj < _Gh._nk) || (_Pj > _Gh._Lq1)) {
debug("ERROR vertex_format_add_custom: illegal types");
return
}
if ((_Oj < _Gh._6k) || (_Oj > _Gh._Kq1)) {
debug("ERROR vertex_format_add_custom: illegal usage");
return
}
_yn(_Pj, _Oj, _fu1);
_fu1 = _fu1 << 1
};
this._eT = function(_1o1) {
if (_gu1.length !== _1o1._Sj.length) {
return !1
}
for (var _u2 = 0; _u2 < _gu1.length; _u2++) {
var _lu1 = _gu1[_u2];
var _mu1 = _1o1._Sj[_u2];
if ((_lu1._A2 !== _mu1._A2) || (_lu1.type !== _mu1.type) || (_lu1._Uj !== _mu1._Uj) || (_lu1._Vj !== _mu1._Vj) || (_lu1._ut1 !== _mu1._ut1) || (_lu1._tt1 !== _mu1._tt1)) {
return !1
}
}
return !0
}
}
function _nu1() {
_rD = _ou1;
_tD = _pu1;
_uD = _qu1;
_vD = _ru1;
_wD = _su1;
_bo = function() {
try {
return window["GetHardwareId"]()
} catch (e) {
var id = 0xFF5025da3ad78cac9;
return id.toString()
}
}
}
function _tu1() {
_sD({
type: _fD,
status: _kD
})
}
function _uu1() {
_sD({
type: _fD,
status: _lD
})
}
function _ou1(_vu1) {
window["buildStoreProxyFile"](_vu1, _wu1, function() {
window["activateStore"](function() {
window["synchroniseProducts"](function(_xu1) {
_sD({
type: _gD,
_RD: _xu1
})
}, function(_xu1) {
_sD({
type: _hD,
_RD: _xu1
})
}, _uu1, _tu1)
}, _tu1)
}, _tu1)
}
function _pu1() {
window["restorePurchases"](function(_yu1) {
_sD({
type: _jD,
_Ev: _yu1
})
})
}
function _qu1(_dn, _zu1) {
window["purchaseContent"](_dn, _zu1, function(_xu1) {
_sD({
type: _hD,
_RD: _xu1
})
}, function(_xu1) {
_sD({
type: _hD,
_RD: _xu1
})
})
}
function _ru1(_dn) {
window["consumeContent"](_dn, function(_xu1) {
_sD({
type: _iD,
_RD: _xu1
})
}, function(_xu1) {
_sD({
type: _iD,
_RD: _xu1
})
})
}
function _su1(_dn) {
var response = "{ \"response\":6 }";
_sD({
type: _gD,
_RD: response
})
}
function _wu1(_vu1, _Au1) {
var _Bu1 = "\r\n" + "\r\n" + " \r\n" + " \r\n" + " 00000000-0000-0000-0000-000000000000\r\n" + " \r\n" + " en-US\r\n" + " 3\r\n" + " \r\n" + " In-app purchases\r\n" + " AppDescription\r\n" + " 0.99\r\n" + " $\r\n" + " USD\r\n" + " \r\n" + " \r\n";
var _Cu1 = " \r\n" + " \r\n" + " PRODUCT_NAME\r\n" + " PRODUCT_PRICE\r\n" + " $\r\n" + " USD\r\n" + " \r\n" + " \r\n";
var _Du1 = " \r\n" + " \r\n" + " \r\n" + " true\r\n" + " false\r\n" + " \r\n";
var _Eu1 = " \r\n" + " PRODUCT_ACTIVE\r\n" + " \r\n";
var _Fu1 = " \r\n" + "\r\n";
var _Gu1 = _Bu1;
for (var _yA = 0; _yA < _vu1.length; _yA++) {
var product = _vu1[_yA];
var _zD = "1.00";
if ((product._zD != null) && (product._zD != undefined) && (product._zD != "")) {
_zD = product._zD;
if (typeof(_zD) == "number") {
_zD = _zD.toString()
}
_zD = _zD.replace("$", "");
_zD = _zD.replace("�", "")
}
var _Hu1 = _Cu1.replace("PRODUCT_ID", product._yD);
_Hu1 = _Hu1.replace("PRODUCT_NAME", product.title);
_Hu1 = _Hu1.replace("PRODUCT_PRICE", _zD);
_Gu1 += _Hu1
}
_Gu1 += _Du1;
for (var _yA = 0; _yA < _vu1.length; _yA++) {
var product = _vu1[_yA];
var _Iu1 = _Au1[product._yD];
var _Ju1 = (_Iu1 == null || _Iu1 == undefined) ? !1 : _Iu1;
var _Ku1 = _Eu1.replace("PRODUCT_ID", product._yD).replace("PRODUCT_ACTIVE", _Ju1 ? "true" : "false");
_Gu1 += _Ku1
}
_Gu1 += _Fu1;
return _Gu1
}
var _Lu1 = null;;
function _Mu1() {
_Nu1 = !1;
if (_8v) {
var _Ou1 = _8v.document.getElementById('debug_console');
if ((_Ou1 != undefined) && (_Ou1 != null)) {
_Ou1.style.display = "none"
}
}
_7O = canvas.width = window.outerWidth;
_8O = canvas.height = window.outerHeight;
_Pu1 = !0
}
var _Qu1 = [];
function _Ru1(_Am) {
for (var _Su1 = 0; _Su1 < _Qu1.length; _Su1++) {
if (_Qu1[_Su1] === _Am) {
return _Su1
}
}
return -1
}
function _Tu1(_Uu1) {
var _Cm = -1;
var _Vu1 = !0;
for (var _Su1 = 0; _Su1 < _Qu1.length; _Su1++) {
if (_Qu1[_Su1] !== -1) {
_Vu1 = !1;
break
}
}
for (var _Su1 = 0; _Su1 < _Qu1.length; _Su1++) {
if (_Su1 === 0 && _Vu1 === !1) {
continue
}
if ((_Qu1[_Su1] === _Uu1) || (_Qu1[_Su1] === -1)) {
_Cm = _Su1;
break
}
}
if (_Cm == -1) {
_Cm = _Qu1.length
}
_Qu1[_Cm] = _Uu1;
_Dm[_Cm] = new _hm();
return _Cm
}
function _Wu1(_Xu1, _ye, _ze) {
var _Cm = _Ru1(_Xu1);
if (_Cm == 0) {
return
}
if (_Cm == -1) {
_Cm = _Yu1(_Xu1, _ye, _ze)
} else {
if (_Cm == 0) {
if (_Pm != null) {
_Qm = _ye;
_Rm = _ze
}
_Sm = 1
}
_Dm[_Cm]._w2 = _ye;
_Dm[_Cm]._x2 = _ze;
_Tm[_Cm]._w2 = _ye;
_Tm[_Cm]._x2 = _ze
}
}
function _Yu1(_Xu1, _ye, _ze) {
var _Cm = _Tu1(_Xu1);
if (_Cm == 0) {
return
}
if (_Cm == 0) {
if (_Pm != null) {
_Qm = _ye;
_Rm = _ze
}
_Sm = 1
}
_Dm[_Cm]._w2 = _ye;
_Dm[_Cm]._x2 = _ze;
_Tm[_Cm]._w2 = _ye;
_Tm[_Cm]._x2 = _ze;
_Dm[_Cm].__k = 1;
_Tm[_Cm]._Um = _Vm | _Wm | _Xm;
return _Cm
}
function _Zu1(_Xu1, _ye, _ze) {
var _Cm = _Ru1(_Xu1);
_Qu1[_Cm] = -1;
if (_Cm == 0) {
return
}
if (_Cm == 0) {
if (_Pm != null) {
_Qm = _ye;
_Rm = _ze
}
_Sm = 0
}
_Dm[_Cm]._w2 = _ye;
_Dm[_Cm]._x2 = _ze;
_Tm[_Cm]._w2 = _ye;
_Tm[_Cm]._x2 = _ze;
_Dm[_Cm].__k = 0;
_Tm[_Cm]._Um = 0
}
function __u1(_Xu1, _ye, _ze) {
var _Cm = _Ru1(_Xu1);
_Zu1(_Xu1, _ye, _ze)
}
function gse(_0v1, _1v1) {
switch (_0v1) {
case "resize":
return _Mu1;
case "loading":
if (!_cv._W4._o5) {
_2v1 = _1v1;
return !0
}
return !1;
case "onloaded":
if (!_cv._W4._o5) {
_3v1 = _1v1
}
break;
case "console":
if (!_cv._W4._o5) {
_4v1 = function() {};
_5v1 = function() {}
}
debug = _6v1;
_dv = _7v1;
break;
case "pause":
_8v1(_1v1);
break;
case "mousescale":
_9v1 = function(_av1) {
var _r2 = canvas.width / window.outerWidth;
var _s2 = canvas.height / window.outerHeight;
_Qm = _av1.pageX * _r2;
_Rm = _av1.pageY * _s2;
_Tm[_av1.button]._w2 = _Qm;
_Tm[_av1.button]._x2 = _Rm
};
break;
case "ontouchmove":
_Wu1(arguments[1], arguments[2], arguments[3]);
break;
case "ontouchdown":
_Yu1(arguments[1], arguments[2], arguments[3]);
break;
case "ontouchup":
_Zu1(arguments[1], arguments[2], arguments[3]);
break;
case "ontouchcancel":
__u1(arguments[1], arguments[2], arguments[3]);
break;
case "browser":
_KC = _bv1;
_cv1 = _dv1;
_vP = arguments[1];
_UC = _ev1;
_fv1 = _gv1;
break;
case "cmd_line":
_hv1(arguments[1]);
break;
case "iap":
_nu1();
break;
case "async":
_iv1(arguments[1]);
break;
case "dpi":
_Sz = _Tz = arguments[1];
break;
case "language":
_Ly = arguments[1];
break;
case "ads":
_FP = arguments[1];
_GP = arguments[2];
_HP = arguments[3];
return _jv1;
case "analytics":
_Zy = arguments[1];
__y = arguments[2];
return _kv1;
}
}
function _jv1(_0F) {
if (_cv._lv1) {
var _mv1 = {
"appId": _cv._lv1._nv1,
"unitId": _cv._lv1._ov1[_0F]._pv1,
"size": _cv._lv1._ov1[_0F]._k2
};
return _mv1
}
return null
}
function _kv1() {
if (_cv._qv1) {
return _cv._qv1._nv1
}
return null
}
function _hv1(_rv1) {
if (_rv1 == "" || _rv1 == null || _rv1 == undefined) {
return
}
try {
var _Cn = _rv1.split('&');
for (var _sv1 in _Cn) {
var _AX = _Cn[_sv1].split('=');
_tv1[_tv1.length] = _AX[0];
_uv1[_uv1.length] = _AX[1];
_vv1++
}
} catch (e) {
alert(e._wv1 + ". Malformed command line parameters: \"" + _rv1 + "\"")
}
}
function _iv1(_xv1) {
_Vv = function(_qv) {
_uv = "win8AsyncMessageDialog";
_Nv._yn(_qv.id, null, _Ov, _uv);
_xv1[0](_qv._zv[0], function() {
var _Cv = _Dv(_uv);
if (!_Cv) return;
_Cv._Av = "";
_Cv._Bv = "";
_Cv.value = 0;
_Cv._Ev = "";
_Cv._Fv = !0;
_Cv._Gv = 1
}, function() {
_wv = !1;
_Jv(_qv.id)
})
};
_Tv = function(_qv) {
_uv = "win8AsyncQuestionDialog";
_Nv._yn(_qv.id, null, _Ov, _uv);
_xv1[1](_qv._zv[0], function() {
var _Cv = _Dv(_uv);
if (!_Cv) return;
_Cv._Av = "";
_Cv._Bv = "";
_Cv.value = 0;
_Cv._Ev = "";
_Cv._Fv = !0;
_Cv._Gv = 1
}, function() {
var _Cv = _Dv(_uv);
if (!_Cv) return;
_Cv._Av = "";
_Cv._Bv = "";
_Cv.value = 0;
_Cv._Ev = "";
_Cv._Fv = !0;
_Cv._Gv = 0
}, function() {
_wv = !1;
_Jv(_qv.id)
})
};
_Pv = function(_qv) {
_uv = "win8AsyncInputDialog";
_Nv._yn(_qv.id, null,
_Ov, _uv);
_xv1[2](_qv._zv[0], function() {
var _Cv = _Dv(_uv);
if (!_Cv) return;
_Cv._Av = "";
_Cv._Bv = "";
_Cv.value = 0;
_Cv._Ev = "";
_Cv._Fv = !0;
_Cv._Gv = 0
}, function() {
_wv = !1;
_Jv(_qv.id)
})
};
_pv = function(_qv) {
_uv = "win8AsyncLoginDialog";
_Nv._yn(_qv.id, null, _Ov, _uv);
_xv1[3](function(_Av, _Bv) {
var _Cv = _Dv(_uv);
if (!_Cv) return;
_Cv._Av = _Av;
_Cv._Bv = _Bv;
_Cv._Gv = 1;
_Cv.value = 0;
_Cv._Ev = "";
_Cv._Fv = !0;
_wv = !1;
_Jv(_qv.id)
})
}
}
function _dv1(_Pj, _uC, _AC, _yv1) {
try {
var _EC = new XMLHttpRequest();
if (_yv1) {
_Nv._yn(_wC, _uC, _xC, _EC)
}
_EC.open(_Pj,
_uC);
_EC.ontimeout = function(_vw) {
_QC(_vw, _EC)
};
_EC.onerror = function(_vw) {
_QC(_vw, _EC)
};
_EC.onload = function(_vw) {
_RC(_vw, _EC)
};
_EC._SC = function() {};
_EC.send(_AC)
} catch (e) {
return -1
}
return _wC++
}
function _6v1() {
if (_7v) {
for (var index = 0; index < arguments.length; ++index) {}
}
}
function _7v1(_ev) {
if (_7v) {
if (!_0v[_ev]) {
_0v[_ev] = !0;
alert(_ev);
}
}
}
function _ev1(_uC, _VC) {
var _EC = {
responseText: "",
status: -1
};
_Nv._yn(_wC, _uC, _xC, _EC);
window["downloadFile"](_uC, _VC, function(_zv1) {
_EC.responseText = _zv1;
_EC.status = 200;
_RC(null,
_EC)
}, function(e) {
_EC.responseText = e.message;
_EC.status = e._Av1;
_QC(null, _EC)
});
return _wC++
}
function _gv1(_Bv1, _Cv1) {
return window["unzipContent"](_Bv1, _Cv1, function(_Dv1, _Ev1) {
debug("zip_unzip() returned " + _Dv1 + " entries successfully")
}, function(_Dv1, _Ev1) {
debug("zip_unzip() returned " + _Dv1 + " entries with errors")
})
}
function _Fv1(_Ng) {
return (((_Ng._uf * 255) & 0xff) << 0) | (((_Ng._Vg * 255) & 0xff) << 8) | (((_Ng._xf * 255) & 0xff) << 16)
}
function _Gv1(_2h, _JU, _Ng) {
_J8(_Fv1(_Ng));
var scale = 1.0 / this._Hv1._FI;
for (var _df = 0; _df < _JU; ++_df) {
var _Iv1 = _2h[_df];
var _Jv1 = _2h[(_df + 1) % _JU];
_1h(_Iv1._w2 * scale, _Iv1._x2 * scale, _Jv1._w2 * scale, _Jv1._x2 * scale)
}
}
function _Kv1(_2h, _JU, _Ng) {
_J8(_Fv1(_Ng));
var scale = 1.0 / this._Hv1._FI;
var _Iv1 = _2h[0];
for (var _df = 2; _df < _JU; ++_df) {
var _Jv1 = _2h[_df - 1];
var _Lv1 = _2h[_df];
_nB(_Iv1._w2 * scale, _Iv1._x2 * scale, _Jv1._w2 * scale, _Jv1._x2 * scale, _Lv1._w2 * scale, _Lv1._x2 * scale, !1)
}
}
function _Mv1(_MU, _NU, _Ng) {
_J8(_Fv1(_Ng));
var scale = 1.0 / this._Hv1._FI;
_NB((_MU._w2 - _NU) * scale, (_MU._x2 - _NU) * scale, (_MU._w2 + _NU) * scale, (_MU._x2 + _NU) * scale, !0)
}
function _Nv1(_MU, _NU, _PU, _Ng) {
_J8(_Fv1(_Ng));
var scale = 1.0 / this._Hv1._FI;
_NB((_MU._w2 - _NU) * scale, (_MU._x2 - _NU) * scale, (_MU._w2 + _NU) * scale, (_MU._x2 + _NU) * scale, !1)
}
function _Ov1(_RU, _SU, _Ng) {
_J8(_Fv1(_Ng));
var scale = 1.0 / this._Hv1._FI;
_1h(_RU._w2 * scale, _RU._x2 * scale, _SU._w2 * scale, _SU._x2 * scale)
}
function _Pv1(_MT) {
var _Qv1 = 0.4;
var scale = 1.0 / this._Hv1._FI;
var _RU = _MT._yA,
_SU = new _Rv1._Sv1();
_SU._w2 = _RU._w2 + _Qv1 * _MT._rz._JT()._w2;
_SU._x2 = _RU._x2 + _Qv1 * _MT._rz._JT()._x2;
_J8(_Tv1);
_1h(_RU._w2 * scale,
_RU._x2 * scale, _SU._w2 * scale, _SU._x2 * scale);
_SU._w2 = _RU._w2 + _Qv1 * _MT._rz._KT()._w2;
_SU._x2 = _RU._x2 + _Qv1 * _MT._rz._KT()._x2;
_J8(_Uv1);
_1h(_RU._w2 * scale, _RU._x2 * scale, _SU._w2 * scale, _SU._x2 * scale)
}
function _Vv1(_VU, _NU, _WU, _fg) {
for (var _df = 0; _df < _fg; _df++) {
var scale = 1.0 / this._Hv1._FI;
_J8(((_WU[_df]._uf & 0xff) << 0) | ((_WU[_df]._Vg & 0xff) << 8) | ((_WU[_df]._xf & 0xff) << 16));
_NB((_VU[_df]._w2 - _NU) * scale, (_VU[_df]._x2 - _NU) * scale, (_VU[_df]._w2 + _NU) * scale, (_VU[_df]._x2 + _NU) * scale, !0)
}
}
function _9I(_bI) {
this.__31 = 0;
this._041 = 0;
this._Wv1 = _bI;
this._Xv1 = !1;
this._Yv1 = !0;
this._Zv1 = !1;
this.__v1 = new _Rv1._0w1();
this._0W = null
};
_9I.prototype._DI = function(_1w1) {
this._0W = null;
this.__v1._BV = new _Rv1._2w1();
this.__v1._BV._gV = _1w1
};
_9I.prototype._HI = function() {
this._0W = [];
this.__v1._BV = new _Rv1._3w1()
};
_9I.prototype._LI = function(_ye, _ze) {
var _JU = this._0W.length;
this._0W[_JU] = new _Rv1._Sv1(_ye, _ze)
};
_9I.prototype._4w1 = function() {
if (this._0W === null || this._0W === undefined) {
return !0
}
if (this.__v1._BV._fV === _Rv1._5w1._wV) {
if (this._0W.length > 2) {
this.__v1._BV._Tn(this._0W, this._0W.length);
return !0
}
} else if (this.__v1._BV._fV === _Rv1._5w1._xV) {
if (this._Zv1) {
if (this._0W.length >= 3) {
this.__v1._BV._7W(this._0W, this._0W.length);
return !0
}
} else {
if (this._0W.length >= 2) {
this.__v1._BV._8W(this._0W, this._0W.length);
return !0
}
}
}
return !1
};
_9I.prototype._pI = function(_oI) {
this.__v1._J51._I51 = _oI
};
_9I.prototype._mI = function(_lI) {
this.__v1._K51 = _lI
};
_9I.prototype._jI = function(_iI) {
this.__v1._L51 = _iI
};
_9I.prototype._gI = function(_fI) {
this.__v1._qV = _fI
};
_9I.prototype._sI = function(_6w1) {
this.__v1._M51 = _6w1
};
_9I.prototype._vI = function(_uI) {
this.__31 = _uI
};
_9I.prototype._xI = function(_uI) {
this._041 = _uI
};
_9I.prototype._xI = function(_uI) {
this._041 = _uI
};
_9I.prototype._AI = function(_zI) {
this._Yv1 = _zI
};
_9I.prototype._dI = function() {
this._Xv1 = !0
};
var _7w1 = 0,
_8w1 = 1,
_9w1 = 2,
_aw1 = 3,
_bw1 = 4,
_cw1 = 5,
_dw1 = 6,
_ew1 = 7,
_fw1 = 8,
_gw1 = 9,
_hw1 = 10,
_iw1 = 11,
_jw1 = 12,
_kw1 = 13,
_lw1 = 14,
_mw1 = 15,
_nw1 = 16,
_ow1 = 17,
_pw1 = 18,
_qw1 = 19,
_rw1 = 20,
_sw1 = 21,
_tw1 = 22,
_uw1 = 23,
_vw1 = 24;
function _ww1(_xw1) {
this._yw1 = _xw1
};
_ww1.prototype._Vh1 = function(_zw1) {
if ((this._yw1 instanceof _Rv1._Aw1) || (this._yw1 instanceof _Rv1._Bw1) || (this._yw1 instanceof _Rv1._Cw1)) {
this._yw1._E81()._AI(!0);
this._yw1._F81()._AI(!0);
this._yw1._Vh1(_zw1)
}
};
function _Dw1(_Ew1, _Fw1, _NI, _OI) {
this._Gw1 = _Ew1;
this._Hw1 = _Fw1;
this._Iw1 = new _Rv1._Sv1(_NI, _OI);
this._Jw1 = []
};
_Dw1.prototype._P41 = function(_Kw1, _Lw1, _Mw1, _Nw1) {
this._Gw1._P41(new _Rv1._Sv1(_Mw1, _Nw1), new _Rv1._Sv1(_Kw1, _Lw1), !0)
};
_Dw1.prototype._X41 = function(_Ow1) {
this._Gw1._X41(_Ow1, !0)
};
_Dw1.prototype._T41 = function(_Pw1) {
this._Gw1._T41(_Pw1, !0)
};
_Dw1.prototype._Qw1 = function(_Rw1) {
var position = this._Gw1._2I();
this._Gw1._H41(position, (_Rw1 * Math.PI) / 180.0);
this._Gw1._AI(!0)
};
_Dw1.prototype._Sw1 = function(_Fn) {
var _Cg = this._Gw1._IT();
var _Tw1 = this._Gw1._2I()._x2;
this._Gw1._H41(new _Rv1._Sv1(_Fn, _Tw1), _Cg);
this._Gw1._AI(!0)
};
_Dw1.prototype._Uw1 = function(_Fn) {
var _Cg = this._Gw1._IT();
var _Vw1 = this._Gw1._2I()._w2;
this._Gw1._H41(new _Rv1._Sv1(_Vw1, _Fn), _Cg);
this._Gw1._AI(!0)
};
_Dw1.prototype._N41 = function(_Ww1) {
this._Gw1._N41((_Ww1 * Math.PI) / 180.0);
this._Gw1._AI(!0)
};
_Dw1.prototype._Xw1 = function(_Yw1) {
var _Zw1 = this._Gw1._M41();
this._Gw1._L41(new _Rv1._Sv1(_Yw1, _Zw1._x2));
this._Gw1._AI(!0)
};
_Dw1.prototype.__w1 = function(_Yw1) {
var _Zw1 = this._Gw1._M41();
this._Gw1._L41(new _Rv1._Sv1(_Zw1._w2, _Yw1));
this._Gw1._AI(!0)
};
_Dw1.prototype._k51 = function(_0x1) {
this._Gw1._k51(_0x1)
};
_Dw1.prototype._s51 = function(_1x1) {
this._Gw1._s51(_1x1)
};
_Dw1.prototype._q51 = function(_2x1) {
this._Gw1._q51(_2x1)
};
_Dw1.prototype._3x1 = function(_4x1) {
var _cI = this._Gw1._u51();
while ((_cI != null) && (_cI != undefined)) {
var _BV = _cI._T51();
var _5x1 = this._Gw1._2I();
if (_BV instanceof _Rv1._2w1) {
_NB((_5x1._w2 - _BV._gV) * _4x1, (_5x1._x2 - _BV._gV) * _4x1, (_5x1._w2 + _BV._gV) * _4x1, (_5x1._x2 + _BV._gV) * _4x1, !0)
} else if (_BV instanceof _Rv1._3w1) {
var _6x1 = Math.sin(this._Gw1._IT());
var _7x1 = Math.cos(this._Gw1._IT());
for (var _df = 0; _df < _BV._1W; ++_df) {
var _Iv1 = _BV._0W[_df];
var _Jv1 = _BV._0W[(_df + 1) % _BV._1W];
_1h((_5x1._w2 + ((_Iv1._w2 * _7x1) - (_Iv1._x2 * _6x1))) * _4x1, (_5x1._x2 + ((_Iv1._w2 * _6x1) + (_Iv1._x2 * _7x1))) * _4x1, (_5x1._w2 + ((_Jv1._w2 * _7x1) - (_Jv1._x2 * _6x1))) * _4x1, (_5x1._x2 + ((_Jv1._w2 * _6x1) + (_Jv1._x2 * _7x1))) * _4x1)
}
}
_cI = _cI._X31
}
};
_Dw1.prototype._8x1 = function(_4x1) {
var _C51 = this._Gw1._U31;
while ((_C51 != null) && (_C51 != undefined)) {
var _D51 = _C51._D51;
if (_D51 instanceof _Rv1._Aw1) {
this._9x1(_D51, _4x1)
} else if (_D51 instanceof _Rv1._Bw1) {
this._ax1(_D51, _4x1)
} else if (_D51 instanceof _Rv1._bx1) {
this._cx1(_D51, _4x1)
} else if (_D51 instanceof _Rv1._dx1) {
this._ex1(_D51, _4x1)
} else if (_D51 instanceof _Rv1._fx1) {
if (_D51._gx1 != null) {
this._9x1(_D51._gx1, _4x1)
}
if (_D51._hx1 != null) {
this._9x1(_D51._hx1,
_4x1)
}
if (_D51._ix1 != null) {
this._ax1(_D51._ix1, _4x1)
}
if (_D51._jx1 != null) {
this._ax1(_D51._jx1, _4x1)
}
}
_C51 = _C51._X31
}
};
_Dw1.prototype._cx1 = function(_kx1, _4x1) {
var _zi1 = _kx1._G81();
var _Ai1 = _kx1._H81();
_1h(_zi1._w2 * _4x1, _zi1._x2 * _4x1, _Ai1._w2 * _4x1, _Ai1._x2 * _4x1)
};
_Dw1.prototype._9x1 = function(_kx1, _4x1) {
var anchor = _kx1._G81();
_1h((anchor._w2 * _4x1) - 2, (anchor._x2 * _4x1) - 2, (anchor._w2 * _4x1) + 2, (anchor._x2 * _4x1) + 2);
_1h((anchor._w2 * _4x1) - 2, (anchor._x2 * _4x1) + 2, (anchor._w2 * _4x1) + 2, (anchor._x2 * _4x1) - 2)
};
_Dw1.prototype._ax1 = function(_kx1,
_4x1) {
var _zi1 = _kx1._G81();
var _Ai1 = this._Gw1._2I();
_1h(_zi1._w2 * _4x1, _zi1._x2 * _4x1, _Ai1._w2 * _4x1, _Ai1._x2 * _4x1)
};
_Dw1.prototype._ex1 = function(_kx1, _4x1) {
var anchor, _lx1;
if (_kx1._mx1() == this._Gw1) {
anchor = _kx1._G81();
_lx1 = _kx1._L81()
} else {
anchor = _kx1._H81();
_lx1 = _kx1._M81()
}
_1h(anchor._w2 * _4x1, anchor._x2 * _4x1, _lx1._w2 * _4x1, _lx1._x2 * _4x1);
_1h(_kx1._L81()._w2 * _4x1, _kx1._L81()._x2 * _4x1, _kx1._M81()._w2 * _4x1, _kx1._M81()._x2 * _4x1)
};
_Dw1.prototype._nx1 = function(_ox1) {
for (var _u2 = 0; _u2 < this._Jw1.length; _u2++) {
if (this._Jw1[_u2] == null || this._Jw1[_u2] == undefined) {
this._Jw1[_u2] = _ox1;
return _u2
}
}
return (this._Jw1.push(_ox1) - 1)
};
_Dw1.prototype._px1 = function(_qx1) {
if (this._Jw1[_qx1]) {
this._Gw1._y41(this._Jw1[_qx1]);
this._Jw1[_qx1] = undefined
}
};
_Dw1.prototype._161 = function(_qx1) {
if (this._Jw1[_qx1]) {
return this._Jw1[_qx1]._161()
}
return 0.0
};
_Dw1.prototype._061 = function(_qx1) {
if (this._Jw1[_qx1]) {
return this._Jw1[_qx1]._061();
}
return 0.0
};
_Dw1.prototype._261 = function(_qx1) {
if (this._Jw1[_qx1]) {
return this._Jw1[_qx1]._261()
}
return 0.0
};
_Dw1.prototype._mI = function(_qx1, _en) {
if (this._Jw1[_qx1]) {
this._Jw1[_qx1]._mI(_en)
}
};
_Dw1.prototype._gI = function(_qx1, _en) {
if (this._Jw1[_qx1]) {
this._Jw1[_qx1]._gI(_en);
this._Gw1._v41()
}
};
_Dw1.prototype._jI = function(_qx1, _en) {
if (this._Jw1[_qx1]) {
this._Jw1[_qx1]._jI(_en)
}
};
var _rx1 = 10,
_sx1 = 32,
_tx1 = (1 << 0),
_ux1 = (1 << 1),
_vx1 = (1 << 2),
_wx1 = (1 << 3),
_xx1 = (1 << 4),
_yx1 = (1 << 5),
_zx1 = (1 << 6);
var _Rv1 = null;
function _Ax1() {
if (_Rv1 === null) {
var _wy = window["b2"];
_Rv1 = {};
_Rv1.version = _wy["version"];
_Rv1._Sv1 = _wy["Vec2"];
_Rv1._Bx1 = _wy["Vec3"];
_Rv1._Cx1 = _wy["Mat22"];
_Rv1._Dx1 = _wy["Mat33"];
_Rv1._Ex1 = _wy["Rot"];
_Rv1._Fx1 = _wy["Transform"];
_Rv1._Gx1 = _wy["Sweep"];
_Rv1._Hx1 = _wy["Dot_v2_v2"];
_Rv1._Ix1 = _wy["Cross_v2_v2"];
_Rv1._Jx1 = _wy["Cross_v2_f"];
_Rv1._Kx1 = _wy["Cross_f_v2"];
_Rv1._Lx1 = _wy["Mul_m22_v2"];
_Rv1._Mx1 = _wy["MulT_m22_v2"];
_Rv1._Nx1 = _wy["Distance"];
_Rv1._Ox1 = _wy["DistanceSquared"];
_Rv1._Px1 = _wy["Dot_v3_v3"];
_Rv1._Qx1 = _wy["Cross_v3_v3"];
_Rv1._Rx1 = _wy["Mul_m22_m22"];
_Rv1._Sx1 = _wy["MulT_m22_m22"];
_Rv1._Tx1 = _wy["Mul_m33_v3"];
_Rv1._Ux1 = _wy["Mul22_m33_v2"];
_Rv1._Vx1 = _wy["Mul_r_r"];
_Rv1._Wx1 = _wy["MulT_r_r"];
_Rv1._Xx1 = _wy["Mul_r_v2"];
_Rv1._Yx1 = _wy["MulT_r_v2"];
_Rv1._Zx1 = _wy["Mul_t_v2"];
_Rv1.__x1 = _wy["Min_v2"];
_Rv1._0y1 = _wy["Max_v2"];
_Rv1._1y1 = _wy["Clamp"];
_Rv1._2y1 = _wy["MulT_t_v2"];
_Rv1._3y1 = _wy["Mul_t_t"];
_Rv1._4y1 = _wy["MulT_t_t"];
_Rv1._5y1 = _wy["Clamp_v2"];
_Rv1._6y1 = _wy["NextPowerOfTwo"];
_Rv1._7y1 = _wy["Abs_v2"];
_Rv1._8y1 = _wy["Abs_m22"];
_Rv1._9y1 = _wy["IsPowerOfTwo"];
_Rv1._ay1 = _wy["RandomFloat"];
_Rv1._by1 = _wy["Timer"];
_Rv1._cy1 = _wy["Color"];
_Rv1._Ig = _wy["Draw"];
_Rv1._dy1 = _wy["ContactID"];
_Rv1._ey1 = _wy["ManifoldPoint"];
_Rv1._fy1 = _wy["Manifold"];
_Rv1._gy1 = _wy["WorldManifold"];
_Rv1._hy1 = _wy["GetPointStates"];
_Rv1._iy1 = _wy["ClipVertex"];
_Rv1._jy1 = _wy["RayCastInput"];
_Rv1._ky1 = _wy["RayCastOutput"];
_Rv1._ly1 = _wy["AABB"];
_Rv1._my1 = _wy["CollideCircles"];
_Rv1._ny1 = _wy["CollidePolygonAndCircle"];
_Rv1._oy1 = _wy["FindMaxSeparation"];
_Rv1._py1 = _wy["FindIncidentEdge"];
_Rv1._qy1 = _wy["CollidePolygons"];
_Rv1._ry1 = _wy["CollideEdgeAndCircle"];
_Rv1._sy1 = _wy["EPAxis"];
_Rv1._ty1 = _wy["TempPolygon"];
_Rv1._uy1 = _wy["ReferenceFace"];
_Rv1._vy1 = _wy["EPCollider"];
_Rv1._wy1 = _wy["CollideEdgeAndPolygon"];
_Rv1._xy1 = _wy["ClipSegmentToLine"];
_Rv1._yy1 = _wy["TestShapeOverlap"];
_Rv1._mX = _wy["TestOverlap"];
_Rv1._5w1 = _wy["Shape"];
_Rv1._zy1 = _wy["MassData"];
_Rv1._2w1 = _wy["CircleShape"];
_Rv1._Ay1 = _wy["EdgeShape"];
_Rv1._By1 = _wy["ChainShape"];
_Rv1._3w1 = _wy["PolygonShape"];
_Rv1._zb1 = _wy["Pair"];
_Rv1._Cy1 = _wy["PairLessThan"];
_Rv1._Dy1 = _wy["BroadPhase"];
_Rv1._Ey1 = _wy["DistanceProxy"];
_Rv1._Fy1 = _wy["SimplexCache"];
_Rv1._Gy1 = _wy["DistanceInput"];
_Rv1._Hy1 = _wy["DistanceOutput"];
_Rv1._Iy1 = _wy["SimplexVertex"];
_Rv1._Jy1 = _wy["Simplex"];
_Rv1._Ky1 = _wy["DistanceFunc"];
_Rv1._Ly1 = _wy["TreeNode"];
_Rv1._My1 = _wy["DynamicTree"];
_Rv1._Ny1 = _wy["TOIInput"];
_Rv1._Oy1 = _wy["TOIOutput"];
_Rv1._Py1 = _wy["SeparationFunction"];
_Rv1._Qy1 = _wy["TimeOfImpact"];
_Rv1._Ry1 = _wy["BodyDef"];
_Rv1._Sy1 = _wy["Body"];
_Rv1._Ty1 = _wy["Filter"];
_Rv1._0w1 = _wy["FixtureDef"];
_Rv1._Uy1 = _wy["Fixture"];
_Rv1._Vy1 = _wy["DestructionListener"];
_Rv1._Wy1 = _wy["ContactFilter"];
_Rv1._Xy1 = _wy["ContactImpulse"];
_Rv1._Yy1 = _wy["ContactListener"];
_Rv1._JX = _wy["QueryCallback"];
_Rv1._X11 = _wy["RayCastCallback"];
_Rv1._Zy1 = _wy["TimeStep"];
_Rv1.__y1 = _wy["Position"];
_Rv1._0z1 = _wy["Velocity"];
_Rv1._1z1 = _wy["SolverData"];
_Rv1._2z1 = _wy["World"];
_Rv1._3z1 = _wy["MixFriction"];
_Rv1._4z1 = _wy["MixRestitution"];
_Rv1._5z1 = _wy["ContactRegister"];
_Rv1._6z1 = _wy["ContactEdge"];
_Rv1._7z1 = _wy["Contact"];
_Rv1._8z1 = _wy["CircleContact"];
_Rv1._9z1 = _wy["PolygonContact"];
_Rv1._az1 = _wy["ChainAndCircleContact"];
_Rv1._bz1 = _wy["ChainAndPolygonContact"];
_Rv1._cz1 = _wy["EdgeAndCircleContact"];
_Rv1._dz1 = _wy["EdgeAndPolygonContact"];
_Rv1._ez1 = _wy["PolygonAndCircleContact"];
_Rv1._fz1 = _wy["defaultFilter"];
_Rv1._gz1 = _wy["defaultListener"];
_Rv1._hz1 = _wy["ContactManager"];
_Rv1._iz1 = _wy["VelocityConstraintPoint"];
_Rv1._jz1 = _wy["ContactPositionConstraint"];
_Rv1._kz1 = _wy["ContactVelocityConstraint"];
_Rv1._lz1 = _wy["PositionSolverManifold"];
_Rv1._mz1 = _wy["ContactSolverDef"];
_Rv1._nz1 = _wy["ContactSolver"];
_Rv1._oz1 = _wy["Island"];
_Rv1._pz1 = _wy["Jacobian"];
_Rv1._qz1 = _wy["JointEdge"];
_Rv1._rz1 = _wy["JointDef"];
_Rv1._sz1 = _wy["Joint"];
_Rv1._tz1 = _wy["RevoluteJointDef"];
_Rv1._Aw1 = _wy["RevoluteJoint"];
_Rv1._uz1 = _wy["MouseJointDef"];
_Rv1._vz1 = _wy["MouseJoint"];
_Rv1._wz1 = _wy["DistanceJointDef"];
_Rv1._bx1 = _wy["DistanceJoint"];
_Rv1._xz1 = _wy["PrismaticJointDef"];
_Rv1._Bw1 = _wy["PrismaticJoint"];
_Rv1._yz1 = _wy["FrictionJointDef"];
_Rv1._zz1 = _wy["FrictionJoint"];
_Rv1._Az1 = _wy["WeldJointDef"];
_Rv1._Bz1 = _wy["WeldJoint"];
_Rv1._Cz1 = _wy["WheelJointDef"];
_Rv1._Cw1 = _wy["WheelJoint"];
_Rv1._Dz1 = _wy["GearJointDef"];
_Rv1._fx1 = _wy["GearJoint"];
_Rv1._Ez1 = _wy["MotorJointDef"];
_Rv1._Fz1 = _wy["MotorJoint"];
_Rv1._Gz1 = _wy["PulleyJointDef"];
_Rv1._dx1 = _wy["PulleyJoint"];
_Rv1._Hz1 = _wy["RopeJointDef"];
_Rv1._Iz1 = _wy["RopeJoint"];
_Rv1._Jz1 = _wy["RopeDef"];
_Rv1._Kz1 = _wy["Rope"];
_Rv1._Lz1 = _wy["maxManifoldPoints"];
_Rv1._Mz1 = _wy["maxPolygonVertices"];
_Rv1._Nz1 = _wy["aabbExtension"];
_Rv1._Oz1 = _wy["aabbMultiplier"];
_Rv1._Pz1 = _wy["linearSlop"];
_Rv1._Qz1 = _wy["angularSlop"];
_Rv1._Rz1 = _wy["polygonRadius"];
_Rv1._Sz1 = _wy["maxSubSteps"];
_Rv1._Tz1 = _wy["maxTOIContacts"];
_Rv1._Uz1 = _wy["velocityThreshold"];
_Rv1._Vz1 = _wy["maxLinearCorrection"];
_Rv1._Wz1 = _wy["maxAngularCorrection"];
_Rv1._Xz1 = _wy["maxTranslation"];
_Rv1._Yz1 = _wy["maxTranslationSquared"];
_Rv1._Zz1 = _wy["maxRotation"];
_Rv1.__z1 = _wy["maxRotationSquared"];
_Rv1._0A1 = _wy["baumgarte"];
_Rv1._1A1 = _wy["toiBaugarte"];
_Rv1._2A1 = _wy["timeToSleep"];
_Rv1._3A1 = _wy["linearSleepTolerance"];
_Rv1._4A1 = _wy["angularSleepTolerance"];
_Rv1._5A1 = _wy["epsilon"];
_Rv1._6A1 = _wy["JsonSerializer"];
_Rv1._7A1 = _wy["RUBELoader"];
_Rv1._8A1 = _wy["Profiler"];
_Rv1._9A1 = _wy["ParticleDef"];
_Rv1._aA1 = _wy["ParticleColor"];
_Rv1._bA1 = _wy["ParticleGroupDef"];
_Rv1._cA1 = _wy["ParticleGroup"];
_Rv1._dA1 = _wy["ParticleSystem"]
}
}
function _eA1(_fA1) {
var _fe1 = new _Rv1._gy1();
_fA1._ee1(_fe1);
this._gA1 = _fA1._C41();
this._hA1 = _fA1._E41();
this._iA1 = [];
this._jA1 = [];
this._iA1[0] = _fA1._de1();
this._jA1[0] = _fe1
};
function _kA1(_lA1, _mA1, _nA1) {
this._oA1 = _lA1;
this._G51 = _mA1;
this._H51 = _nA1
};
function _pA1(_qA1, _rA1) {
_Ax1();
if (_Rv1 === null) {
_Rv1 = window["b2"]
}
this._FI = _qA1;
this._sA1 = _rA1;
this._tA1 = _rx1;
this._V31 = [];
this._uA1 = [];
this._vA1 = new _Rv1._bA1();
this._g71 = null;
this._wA1 = !1;
this._xA1 = [];
for (var _u2 = 0; _u2 < _sx1; _u2++) {
this._xA1[_u2] = new _kA1(-1, 0, 0)
}
var _sb = new _Rv1._Sv1(0, 10);
this._R31 = new _Rv1._2z1(_sb);
this._yA1();
this._zA1();
this._UU = _3g ? this._AA1 : this._BA1;
this._CA1 = _3g ? this._DA1 : this._EA1;
};
_pA1.prototype._yA1 = function() {
var _kh = document.getElementById("canvas").getContext("2d");
if (_kh) {
this._g71 = new _Rv1._Ig();
this._g71._CU(_Rv1._Ig._XU | _Rv1._Ig._YU);
this._g71._Hv1 = this;
this._g71._IU = _Gv1;
this._g71._KU = _Kv1;
this._g71._LU = _Mv1;
this._g71._OU = _Nv1;
this._g71._QU = _Ov1;
this._g71._TU = _Pv1;
this._g71._UU = _Vv1;
this._R31._f71(this._g71)
}
};
_pA1.prototype._zA1 = function() {
var _FA1 = new _Rv1._Yy1();
_FA1._GA1 = this;
_FA1._l61 = function(_A41) {
if (_A41._C41()._V51() || _A41._E41()._V51()) {
this._GA1._HA1(_A41)
}
};
_FA1._n61 = function(_A41, _o61) {};
_FA1._m61 = function(_A41) {};
_FA1._p61 = function(_A41, _IA1) {
this._GA1._HA1(_A41)
};
this._R31._d71(_FA1)
};
_pA1.prototype._HA1 = function(_fA1) {
for (var _df = 0; _df < this._V31.length; _df++) {
var _JA1 = this._V31[_df];
if ((_JA1._gA1 == _fA1._C41() && _JA1._hA1 == _fA1._E41()) || (_JA1._gA1 == _fA1._E41() && _JA1._hA1 == _fA1._C41())) {
var _fe1 = new _Rv1._gy1();
_fA1._ee1(_fe1);
_JA1._iA1[_JA1._iA1.length] = _fA1._de1();
_JA1._jA1[_JA1._jA1.length] = _fe1;
return
}
}
this._V31[this._V31.length] = new _eA1(_fA1)
};
_pA1.prototype._381 = function(_KA1, _LA1) {
this._R31._W61._w2 = _KA1;
this._R31._W61._x2 = _LA1;
if ((_KA1 != 0.0) || (_LA1 != 0.0)) {
var _MA1 = this._R31._R71();
while ((_MA1 != null) && (_MA1 != undefined)) {
if (_MA1._hV() === _Rv1._Sy1._541) {
_MA1._AI(!0)
}
_MA1 = _MA1._x51()
}
}
};
_pA1.prototype._NA1 = function() {
var _Hn = _ke._AE._Hn;
for (var index = 0; index < _Hn.length; index++) {
var _jE = _Hn[index];
if (_jE._OA1 >= 0) {
var _PA1 = _jE._QA1;
if (_PA1 !== null && _PA1 !== undefined) {
var _MA1 = _PA1._Gw1;
if (_MA1._hV() !== _Rv1._Sy1._541) {
if (_jE._RA1()) {
_jE._Se(_SA1, 0, _jE, _jE)
}
_MA1._H41(new _Rv1._Sv1(_jE._w2 * this._FI, _jE._x2 * this._FI), _MA1._IT())
}
} else {
if (_jE._RA1()) {
_jE._Se(_SA1, 0,
_jE, _jE)
}
}
}
}
};
_pA1.prototype._TA1 = function() {
var _UA1 = 1.0 / this._FI;
var _MA1 = this._R31._R71();
while ((_MA1 != null) && (_MA1 != undefined)) {
var _jE = _MA1._lX();
if ((_jE != null) && (_jE != undefined)) {
_jE._VA1(_MA1);
var _Gn = _MA1._2I();
_jE._WA1 = _Gn._w2 * _UA1;
_jE._XA1 = _Gn._x2 * _UA1
}
_MA1 = _MA1._x51()
}
};
_pA1.prototype._bm = function(_YA1) {
if (_YA1 <= 0) {
return
}
this._NA1();
if (this._wA1 == !0) {
return
}
this._TA1();
var _ZA1 = 1.0 / this._sA1;
var __A1 = this._sA1 / _YA1;
var _0B1 = __A1;
while (_0B1 > 0.0) {
var _1B1 = (_0B1 > 1.0) ? _ZA1 : (_ZA1 * _0B1);
this._R31._x71(_1B1,
this._tA1, this._tA1);
_0B1 -= 1.0
}
this._R31._B71();
this._2B1();
this._3B1()
};
_pA1.prototype._2B1 = function() {
var _UA1 = 1.0 / this._FI;
var _MA1 = this._R31._R71();
while ((_MA1 != null) && (_MA1 != undefined)) {
var _jE = _MA1._lX();
if ((_jE != null) && (_jE != undefined)) {
_jE._VA1(_MA1)
}
_MA1 = _MA1._x51()
}
};
_pA1.prototype._3B1 = function() {
var _UA1 = 1.0 / this._FI;
for (var _u2 = 0; _u2 < this._V31.length; _u2++) {
if (this._V31[_u2]._gA1 && this._V31[_u2]._hA1 && this._V31[_u2]._gA1.__51() && this._V31[_u2]._hA1.__51()) {
var _4B1 = this._V31[_u2]._gA1.__51()._lX();
var _5B1 = this._V31[_u2]._hA1.__51()._lX();
_4B1._6B1 = 0;
_4B1._7B1 = [];
_4B1._8B1 = [];
_4B1._9B1 = [];
_4B1._aB1 = [];
_5B1._6B1 = 0;
_5B1._7B1 = [];
_5B1._8B1 = [];
_5B1._9B1 = [];
_5B1._aB1 = [];
var _bB1 = 0;
for (var _cB1 = 0; _cB1 < this._V31[_u2]._iA1.length; _cB1++) {
var _fe1 = this._V31[_u2]._jA1[_cB1];
for (var _Bf in _fe1._mZ) {
if (!_fe1._mZ.hasOwnProperty(_Bf)) continue;
_4B1._7B1[_bB1] = _fe1._mZ[_Bf]._w2 * _UA1;
_4B1._8B1[_bB1] = _fe1._mZ[_Bf]._x2 * _UA1;
_4B1._9B1[_bB1] = _fe1._tV._w2;
_4B1._aB1[_bB1] = _fe1._tV._x2;
_5B1._7B1[_bB1] = _fe1._mZ[_Bf]._w2 * _UA1;
_5B1._8B1[_bB1] = _fe1._mZ[_Bf]._x2 * _UA1;
_5B1._9B1[_bB1] = _fe1._tV._w2;
_5B1._aB1[_bB1] = _fe1._tV._x2;
_4B1._6B1++;
_5B1._6B1++;
_bB1++
}
}
_4B1._Se(_dB1, _5B1._eB1, _4B1, _5B1);
_5B1._Se(_dB1, _4B1._eB1, _5B1, _4B1);
_4B1._6B1 = 0;
_4B1._7B1 = undefined;
_4B1._8B1 = undefined;
_4B1._9B1 = undefined;
_4B1._aB1 = undefined;
_5B1._6B1 = 0;
_5B1._7B1 = undefined;
_5B1._8B1 = undefined;
_5B1._9B1 = undefined;
_5B1._aB1 = undefined
}
}
this._V31 = []
};
_pA1.prototype._SI = function(_ox1, _fB1, _NI, _OI) {
var _PI = -1;
if (!_ox1._4w1()) {
return
}
var _gB1 = this._hB1(_fB1._eB1);
if (_gB1 != -1) {
_ox1.__v1._J51._G51 = this._xA1[_gB1]._G51;
_ox1.__v1._J51._H51 = this._xA1[_gB1]._H51
} else {
_ox1.__v1._J51._G51 = 0;
_ox1.__v1._J51._H51 = 0
}
var _iB1 = _fB1._QA1;
if (_fB1._QA1) {
var _MA1 = _iB1._Gw1;
var _cI = _MA1._i41(_ox1.__v1);
_PI = _iB1._nx1(_cI)
} else {
var _jB1 = new _Rv1._Ry1();
_jB1.type = (_ox1.__v1._qV == 0) ? (_ox1._Xv1 ? _Rv1._Sy1._d41 : _Rv1._Sy1._y31) : _Rv1._Sy1._541;
_jB1._Cg = -_fB1._Q9 * _zf / 180.0;
_jB1._B31 = _ox1.__31;
_jB1._C31 = _ox1._041;
_jB1._E31 = _ox1._Yv1;
var _kB1 = _fB1._lB1(_jB1._Cg, {
_w2: _NI,
_x2: _OI
});
_jB1.position._w2 = (_fB1._w2 - _kB1._w2) * this._FI;
_jB1.position._x2 = (_fB1._x2 - _kB1._x2) * this._FI;
_jB1._cX = _fB1;
var _MA1 = this._R31._SI(_jB1);
var _cI = _MA1._i41(_ox1.__v1);
_iB1 = new _Dw1(_MA1, _gB1, _NI, _OI);
_fB1._QA1 = _iB1;
_fB1._VA1(_MA1);
_PI = _iB1._nx1(_cI);
this._mB1()
}
return _PI
};
_pA1.prototype._h71 = function(_nB1) {
this._R31._h71(_nB1._Gw1)
};
_pA1.prototype._k71 = function(_oB1) {
this._R31._k71(_oB1._yw1)
};
_pA1.prototype._pB1 = function(_lA1) {
for (var _df = 0; _df < _sx1; _df++) {
if (this._xA1[_df]._oA1 == _lA1) {
return _df
}
}
return -1
};
_pA1.prototype._qB1 = function(_lA1) {
var _rB1 = this._pB1(_lA1);
if (_rB1 != -1) {
return _rB1
}
for (var _df = 0; _df < _sx1; _df++) {
if (this._xA1[_df]._oA1 == -1) {
this._xA1[_df]._oA1 = _lA1;
this._xA1[_df]._G51 = (1 << _df);
this._xA1[_df]._H51 = 0;
return _df
}
}
return -1
};
_pA1.prototype._sB1 = function(_lA1) {
var _tB1 = [];
for (var _uB1 in _vB1) {
if (!_vB1.hasOwnProperty(_uB1)) continue;
for (var _qe1 in _vB1[_uB1]) {
if (!_vB1[_uB1].hasOwnProperty(_qe1)) continue;
var _wB1 = -1;
if (_uB1 == _lA1) {
_wB1 = _qe1
} else if (_qe1 == _lA1) {
_wB1 = _uB1
}
if (_wB1 !== -1) {
_tB1[_tB1.length] = _wB1
}
}
}
return _tB1
};
_pA1.prototype._xB1 = function(_Ln,
_yB1) {
for (var _kx in _cy._zB1) {
if (!_cy._zB1.hasOwnProperty(_kx)) continue;
var _AB1 = _cy._zB1[_kx];
if (_AB1._RE === _Ln._TE) {
if (this._sB1(_AB1._TE).length !== 0) {
_yB1[_yB1.length] = _AB1._TE
}
this._xB1(_AB1, _yB1)
}
}
};
_pA1.prototype._BB1 = function(_lA1) {
var _tB1 = this._sB1(_lA1);
var _CB1 = _lA1;
var _DB1 = _cy._hn(_lA1);
while ((_DB1._RE >= 0) && _cy._hn(_DB1._RE)) {
_DB1 = _cy._hn(_DB1._RE);
_tB1 = _tB1.concat(this._sB1(_DB1._TE))
}
for (var _df = 0; _df < _tB1.length; _df++) {
var _EB1 = _tB1[_df];
var _kx = _cy._hn(_EB1);
this._xB1(_kx, _tB1)
}
return _tB1;
};
_pA1.prototype._FB1 = function(_lA1, _Fw1) {
var _tB1 = this._BB1(_lA1);
for (var _GB1 = 0; _GB1 < _tB1.length; ++_GB1) {
for (var _HB1 = 0; _HB1 < _sx1; ++_HB1) {
if (this._xA1[_HB1]._oA1 == _tB1[_GB1]) {
this._xA1[_Fw1]._H51 |= this._xA1[_HB1]._G51;
this._xA1[_HB1]._H51 |= this._xA1[_Fw1]._G51
}
}
}
};
_pA1.prototype._hB1 = function(_lA1) {
var _gB1 = this._pB1(_lA1);
if (_gB1 !== -1) {
return _gB1
}
var _tB1 = this._sB1(_lA1);
var _oA1 = _lA1;
if (_tB1.length === 0) {
var _CB1 = _lA1;
var _DB1 = _cy._hn(_lA1);
while ((_DB1._RE >= 0) && _cy._hn(_DB1._RE)) {
_DB1 = _cy._hn(_DB1._RE);
_oA1 = _DB1._TE;
_tB1 = this._sB1(_oA1);
if (_tB1.length !== 0) {
_gB1 = this._pB1(_oA1);
break
}
}
if (_tB1.length === 0) {
return -1
}
}
if (_gB1 === -1) {
_gB1 = this._qB1(_oA1);
if (_gB1 === -1) {
return -1
}
}
this._FB1(_lA1, _gB1);
return _gB1
};
_pA1.prototype._mB1 = function() {
var _MA1 = this._R31._R71();
while ((_MA1 != null) && (_MA1 != undefined)) {
var _jE = _MA1._lX();
if ((_jE != null) && (_jE != undefined)) {
var _IB1 = _jE._QA1._Hw1;
if (_IB1 != -1) {
var _JB1 = new _Rv1._Ty1();
_JB1._G51 = this._xA1[_IB1]._G51;
_JB1._H51 = this._xA1[_IB1]._H51;
var _cI = _MA1._u51();
while ((_cI != null) && (_cI != undefined)) {
_JB1._I51 = _cI._Y51()._I51;
_cI._W51(_JB1);
_cI = _cI._X31
}
}
}
_MA1 = _MA1._x51()
}
};
_pA1.prototype._mX = function(_to, _By, _ye, _ze, _Ce) {
var _KB1 = new _Rv1._Fx1();
_KB1._Tn(new _Rv1._Sv1(_ye, _ze), _Ce);
if ((_to._QA1 === null) || (_to._QA1 === undefined) || (_By._QA1 === null) || (_By._QA1 === undefined)) {
return
}
var _LB1 = _to._QA1._Gw1;
var _MB1 = _By._QA1._Gw1;
var _NB1;
for (_NB1 = _LB1._u51(); _NB1; _NB1 = _NB1._x51()) {
var _OB1;
for (_OB1 = _MB1._u51(); _OB1; _OB1 = _NB1._x51()) {
if (_Rv1._yy1(_NB1._T51(), 0, _OB1._T51(), 0, _KB1, _MB1._TT())) {
return !0
}
}
}
return !1;
};
_pA1.prototype._291 = function(_PB1, _ye, _ze, _QB1, _RB1, _uj, _fj, _SB1) {
var _j41 = new _Rv1._9A1();
_j41._VP = _PB1;
_j41.position._Tn(_ye * this._FI, _ze * this._FI);
_j41._UJ._Tn(_QB1 * this._FI, _RB1 * this._FI);
_j41._Ng._Tn((_uj & 0xff), (_uj & 0xff00) >> 8, (_uj & 0xff0000) >> 16, (_fj * 255.0));
_j41._cX = _SB1;
return this._R31._291(_j41)
};
_pA1.prototype._TB1 = function() {
for (var _df = 0; _df < this._uA1.length; _df++) {
var _aL = this._uA1[_df];
if (_aL === null || _aL === undefined) {
return _df
}
}
var _Sg = this._uA1.length;
return _Sg
};
_pA1.prototype._UB1 = function(_VB1) {
if (_VB1 >= 0 && _VB1 < this._uA1.length) {
return this._uA1[_VB1]
}
return null
};
_pA1.prototype._791 = function(_WB1, _XB1) {
var _YB1 = this._UB1(_WB1);
var _ZB1 = this._UB1(_XB1);
if ((_YB1 !== null) && (_ZB1 !== null)) {
this._R31._791(_YB1, _ZB1);
this._uA1[_XB1] = null
}
};
_pA1.prototype.__B1 = function(_uN, _0C1, _1C1, _2C1) {
var _fg = this._R31._x91();
if (_1C1 < 0 || _1C1 >= _fg) return;
if (_2C1 < _1C1) return;
if (_2C1 > _fg) return;
var _VP = this._R31._b91();
var _E61 = this._R31._c91();
var _F61 = this._R31._d91();
var _3C1 = this._R31._e91();
var _cX = this._R31._f91();
var _4C1 = _uN._5C1;
var _6C1 = 1.0 / this._FI;
for (var _df = _1C1; _df < _2C1; _df++) {
if (_0C1 & (1 << 0)) {
_uN._7C1(_8C1, _VP[_df])
}
if (_0C1 & (1 << 1)) {
_uN._7C1(_9C1, _E61[_df]._w2 * _6C1);
_uN._7C1(_9C1, _E61[_df]._x2 * _6C1)
}
if (_0C1 & (1 << 2)) {
_uN._7C1(_9C1, _F61[_df]._w2 * _6C1);
_uN._7C1(_9C1, _F61[_df]._x2 * _6C1)
}
if (_0C1 & (1 << 3)) {
_uN._7C1(_8C1, (_3C1[_df]._Wg << 24) | (_3C1[_df]._uf << 16) | (_3C1[_df]._Vg << 8) | _3C1[_df]._xf)
}
if (_0C1 & (1 << 4)) {
_uN._7C1(_aC1, _cX[_df]);
}
}
_uN._bC1(_cC1, _4C1)
};
_pA1.prototype._Na1 = function(_VB1, _PB1) {
var _aL = this._UB1(_VB1);
if (_aL !== null && _aL !== undefined) {
_aL._Na1(_PB1)
}
};
_pA1.prototype._Ma1 = function(_VB1) {
var _aL = this._UB1(_VB1);
if (_aL !== null && _aL !== undefined) {
return _aL._Ma1()
}
return 0
};
_pA1.prototype._BA1 = function(_dC1, _SB1, _of, _eC1) {
var _fg = this._R31._x91();
var _VP = this._R31._b91();
var _E61 = this._R31._c91();
var _3C1 = this._R31._e91();
var _cX = this._R31._f91();
var _6C1 = 1.0 / this._FI;
for (var _df = 0; _df < _fg; _df++) {
if (((_VP[_df] === 0) || ((_VP[_df] & _dC1) !== 0)) && ((_SB1 === 0) || (_SB1 === _cX[_df]))) {
var _Dg = (_3C1[_df]._xf & 0xff) | ((_3C1[_df]._Vg << 8) & 0xff00) | ((_3C1[_df]._uf << 16) & 0xff0000);
_of._Ig(_df, _E61[_df]._w2 * _6C1, _E61[_df]._x2 * _6C1, 1.0, 1.0, 0, _Dg, _3C1[_df]._Wg / 255.0)
}
}
};
_pA1.prototype._EA1 = function(_dC1, _SB1, _of, _eC1, _fr, _gr, _Ce, _uj, _fj) {
var _fg = this._R31._x91();
var _VP = this._R31._b91();
var _E61 = this._R31._c91();
var _cX = this._R31._f91();
var _6C1 = 1.0 / this._FI;
for (var _df = 0; _df < _fg; _df++) {
if (((_VP[_df] === 0) || ((_VP[_df] & _dC1) !== 0)) && ((_SB1 === 0) || (_SB1 === _cX[_df]))) {
_of._Ig(_df, _E61[_df]._w2 * _6C1, _E61[_df]._x2 * _6C1, _fr, _gr, _Ce, _uj, _fj)
}
}
};
_pA1.prototype._AA1 = function(_dC1, _SB1, _of, _eC1) {
var _Zo = _of._RL[_eC1 % _of._fC1()];
if (!_Zo) {
return
}
if (!_Zo._hg.complete) {
return
}
if (!_Zo._hg._Bh) {
_Ch(_Zo)
}
var _fg = this._R31._x91();
var _VP = this._R31._b91();
var _E61 = this._R31._c91();
var _3C1 = this._R31._e91();
var _cX = this._R31._f91();
var _6C1 = 1.0 / this._FI;
var _gC1 = 0;
for (var _df = 0; _df < _fg; _df++) {
if (((_VP[_df] === 0) || ((_VP[_df] & _dC1) !== 0)) && ((_SB1 === 0) || (_SB1 === _cX[_df]))) {
_gC1++
}
}
if (_gC1 === 0) {
return
}
var _Eh = _3g._Fh(_Gh._Hh, _Zo._hg._Bh, _3g._Ih, _gC1 * 6);
var _Jh = _Eh._Kh() >> 2;
var index = _Jh * _Eh._Lh;
_Eh._Lh += _gC1 * 6;
var _Mh = _Eh._Nh;
var _Oh = _Eh._Ph;
var _Qh = _Eh._Rh;
var _Sh = index;
var _Th = _Sh + _Jh;
var _Uh = _Th + _Jh;
var _Vh = _Uh + _Jh;
var _Wh = _Vh + _Jh;
var _Xh = _Wh + _Jh;
var _hf = -(_of._p1 - _Zo._O4);
var _if = -(_of._q1 - _Zo._P4);
var _jf = _hf + _Zo._Q4;
var _kf = _if + _Zo._R4;
var _hC1 = 0;
for (var _df = 0; _df < _fg; _df++) {
if (((_VP[_df] === 0) || ((_VP[_df] & _dC1) !== 0)) && ((_SB1 === 0) || (_SB1 === _cX[_df]))) {
var _w2 = _E61[_df]._w2 * _6C1;
var _x2 = _E61[_df]._x2 * _6C1;
_Mh[_Sh + 0] = _Mh[_Wh + 0] = _Mh[_Xh + 0] = _w2 + _hf;
_Mh[_Sh + 1] = _Mh[_Th + 1] = _Mh[_Xh + 1] = _x2 + _if;
_Mh[_Th + 0] = _Mh[_Uh + 0] = _Mh[_Vh + 0] = _w2 + _jf;
_Mh[_Uh + 1] = _Mh[_Vh + 1] = _Mh[_Wh + 1] = _x2 + _kf;
var _Dg = (_3C1[_df]._xf & 0xff) | ((_3C1[_df]._Vg << 8) & 0xff00) | ((_3C1[_df]._uf << 16) & 0xff0000) | ((_3C1[_df]._Wg << 24) & 0xff000000);
_Oh[_Sh] = _Oh[_Th] = _Oh[_Uh] = _Oh[_Vh] = _Oh[_Wh] = _Oh[_Xh] = _Dg;
_Qh[_Sh + 0] = _Qh[_Wh + 0] = _Qh[_Xh + 0] = _Zo._w2 / _Zo._hg.width;
_Qh[_Sh + 1] = _Qh[_Th + 1] = _Qh[_Xh + 1] = _Zo._x2 / _Zo._hg.height;
_Qh[_Th + 0] = _Qh[_Uh + 0] = _Qh[_Vh + 0] = (_Zo._w2 + _Zo._y2) / _Zo._hg.width;
_Qh[_Uh + 1] = _Qh[_Vh + 1] = _Qh[_Wh + 1] = (_Zo._x2 + _Zo._z2) / _Zo._hg.height;
var _iC1 = _Jh * 6;
_Sh += _iC1;
_Th += _iC1;
_Uh += _iC1;
_Vh += _iC1;
_Wh += _iC1;
_Xh += _iC1
}
}
};
_pA1.prototype._DA1 = function(_dC1,
_SB1, _of, _eC1, _fr, _gr, _Ce, _uj, _fj) {
_Ce = (_Ce * Math.PI) / 180.0;
var _Zo = _of._RL[_eC1 % _of._fC1()];
if (!_Zo) {
return
}
if (!_Zo._hg.complete) {
return
}
if (!_Zo._hg._Bh) {
_Ch(_Zo)
}
var _fg = this._R31._x91();
var _VP = this._R31._b91();
var _E61 = this._R31._c91();
var _cX = this._R31._f91();
var _6C1 = 1.0 / this._FI;
var _gC1 = 0;
for (var _df = 0; _df < _fg; _df++) {
if (((_VP[_df] === 0) || ((_VP[_df] & _dC1) !== 0)) && ((_SB1 === 0) || (_SB1 === _cX[_df]))) {
_gC1++
}
}
if (_gC1 === 0) {
return
}
var _Eh = _3g._Fh(_Gh._Hh, _Zo._hg._Bh, _3g._Ih, _gC1 * 6);
var _Jh = _Eh._Kh() >> 2;
var index = _Jh * _Eh._Lh;
_Eh._Lh += _gC1 * 6;
var _Mh = _Eh._Nh;
var _Oh = _Eh._Ph;
var _Qh = _Eh._Rh;
var _Sh = index;
var _Th = _Sh + _Jh;
var _Uh = _Th + _Jh;
var _Vh = _Uh + _Jh;
var _Wh = _Vh + _Jh;
var _Xh = _Wh + _Jh;
var _Dg = _uj | (((_fj * 255) & 0xff) << 24);
var _hf = -_fr * (_of._p1 - _Zo._O4);
var _if = -_gr * (_of._q1 - _Zo._P4);
var _jf = _hf + (_fr * _Zo._Q4);
var _kf = _if + (_gr * _Zo._R4);
var _hC1 = 0;
if (Math.abs(_Ce) < 0.0001) {
for (var _df = 0; _df < _fg; _df++) {
if (((_VP[_df] === 0) || ((_VP[_df] & _dC1) !== 0)) && ((_SB1 === 0) || (_SB1 === _cX[_df]))) {
var _w2 = _E61[_df]._w2 * _6C1;
var _x2 = _E61[_df]._x2 * _6C1;
_Mh[_Sh + 0] = _Mh[_Wh + 0] = _Mh[_Xh + 0] = _w2 + _hf;
_Mh[_Sh + 1] = _Mh[_Th + 1] = _Mh[_Xh + 1] = _x2 + _if;
_Mh[_Th + 0] = _Mh[_Uh + 0] = _Mh[_Vh + 0] = _w2 + _jf;
_Mh[_Uh + 1] = _Mh[_Vh + 1] = _Mh[_Wh + 1] = _x2 + _kf;
_Oh[_Sh] = _Oh[_Th] = _Oh[_Uh] = _Oh[_Vh] = _Oh[_Wh] = _Oh[_Xh] = _Dg;
_Qh[_Sh + 0] = _Qh[_Wh + 0] = _Qh[_Xh + 0] = _Zo._w2 / _Zo._hg.width;
_Qh[_Sh + 1] = _Qh[_Th + 1] = _Qh[_Xh + 1] = _Zo._x2 / _Zo._hg.height;
_Qh[_Th + 0] = _Qh[_Uh + 0] = _Qh[_Vh + 0] = (_Zo._w2 + _Zo._y2) / _Zo._hg.width;
_Qh[_Uh + 1] = _Qh[_Vh + 1] = _Qh[_Wh + 1] = (_Zo._x2 + _Zo._z2) / _Zo._hg.height;
var _iC1 = _Jh * 6;
_Sh += _iC1;
_Th += _iC1;
_Uh += _iC1;
_Vh += _iC1;
_Wh += _iC1;
_Xh += _iC1
}
}
} else {
var _Xf = Math.sin(_Ce);
var _Yf = Math.cos(_Ce);
var _jC1 = _hf * _Yf;
var _kC1 = _jf * _Yf;
var _lC1 = _if * _Yf;
var _mC1 = _kf * _Yf;
var _nC1 = _hf * _Xf;
var _oC1 = _jf * _Xf;
var _pC1 = _if * _Xf;
var _qC1 = _kf * _Xf;
for (var _df = 0; _df < _fg; _df++) {
if (((_VP[_df] === 0) || ((_VP[_df] & _dC1) !== 0)) && ((_SB1 === 0) || (_SB1 === _cX[_df]))) {
var _w2 = _E61[_df]._w2 * _6C1;
var _x2 = _E61[_df]._x2 * _6C1;
_Mh[_Sh + 0] = _Mh[_Xh + 0] = _w2 + _jC1 + _pC1;
_Mh[_Sh + 1] = _Mh[_Xh + 1] = _x2 - _nC1 + _lC1;
_Mh[_Uh + 0] = _Mh[_Vh + 0] = _w2 + _kC1 + _qC1;
_Mh[_Uh + 1] = _Mh[_Vh + 1] = _x2 - _oC1 + _mC1;
_Mh[_Th + 1] = _x2 - _oC1 + _lC1;
_Mh[_Th + 0] = _w2 + _kC1 + _pC1;
_Mh[_Wh + 0] = _w2 + _jC1 + _qC1;
_Mh[_Wh + 1] = _x2 - _nC1 + _mC1;
_Oh[_Sh] = _Oh[_Th] = _Oh[_Uh] = _Oh[_Vh] = _Oh[_Wh] = _Oh[_Xh] = _Dg;
_Qh[_Sh + 0] = _Qh[_Wh + 0] = _Qh[_Xh + 0] = _Zo._w2 / _Zo._hg.width;
_Qh[_Sh + 1] = _Qh[_Th + 1] = _Qh[_Xh + 1] = _Zo._x2 / _Zo._hg.height;
_Qh[_Th + 0] = _Qh[_Uh + 0] = _Qh[_Vh + 0] = (_Zo._w2 + _Zo._y2) / _Zo._hg.width;
_Qh[_Uh + 1] = _Qh[_Vh + 1] = _Qh[_Wh + 1] = (_Zo._x2 + _Zo._z2) / _Zo._hg.height;
var _iC1 = _Jh * 6;
_Sh += _iC1;
_Th += _iC1;
_Uh += _iC1;
_Vh += _iC1;
_Wh += _iC1;
_Xh += _iC1
}
}
}
};
_pA1.prototype._x91 = function() {
return this._R31._x91()
};
_pA1.prototype._S81 = function() {
return this._R31._S81();
};
_pA1.prototype._191 = function() {
return this._R31._191() * (1.0 / this._FI)
};
_pA1.prototype._V81 = function() {
return this._R31._V81()
};
_pA1.prototype.__81 = function() {
return this._R31.__81()
};
_pA1.prototype._X81 = function() {
return this._R31._X81()
};
_pA1.prototype._T81 = function(_rC1) {
this._R31._T81(_rC1)
};
_pA1.prototype._091 = function(_1w1) {
this._R31._091(_1w1 * this._FI)
};
_pA1.prototype._U81 = function(_fI) {
this._R31._U81(_fI)
};
_pA1.prototype._Y81 = function(_uI) {
this._R31._Y81(_uI)
};
_pA1.prototype._W81 = function(_4x1) {
this._R31._W81(_4x1);
};
var _7e = {};
_7e._sC1 = function(name, parent) {
this.name = name;
this.parent = parent
};
_7e._sC1.prototype = {
length: 0,
_w2: 0,
_x2: 0,
_E4: 0,
_r2: 1,
_s2: 1,
_tC1: !0,
_uC1: !0
};
_7e._vC1 = function(name, _wC1) {
this.name = name;
this._wC1 = _wC1
};
_7e._vC1.prototype = {
_uf: 1,
_Vg: 1,
_xf: 1,
_Wg: 1,
_xC1: null,
_yC1: !1
};
_7e._Eg = function(_wC1, parent) {
this.data = _wC1;
this.parent = parent;
this._zC1()
};
_7e._Eg._Fg = !1;
_7e._Eg.prototype = {
_w2: 0,
_x2: 0,
_E4: 0,
_r2: 1,
_s2: 1,
_AC1: 0,
_BC1: 0,
_CC1: 0,
_DC1: 0,
_vh: 0,
_EC1: 0,
_FC1: 0,
_GC1: 1,
_HC1: 1,
_Ge: function(_Qe, _Re) {
var parent = this.parent;
if (parent != null) {
this._CC1 = this._w2 * parent._AC1 + this._x2 * parent._BC1 + parent._CC1;
this._EC1 = this._w2 * parent._DC1 + this._x2 * parent._vh + parent._EC1;
if (this.data._tC1) {
this._GC1 = parent._GC1 * this._r2;
this._HC1 = parent._HC1 * this._s2
} else {
this._GC1 = this._r2;
this._HC1 = this._s2
}
this._FC1 = this.data._uC1 ? parent._FC1 + this._E4 : this._E4
} else {
this._CC1 = _Qe ? -this._w2 : this._w2;
this._EC1 = _Re != _7e._Eg._Fg ? -this._x2 : this._x2;
this._GC1 = this._r2;
this._HC1 = this._s2;
this._FC1 = this._E4
}
var _IC1 = this._FC1 * Math.PI / 180;
var cos = Math.cos(_IC1);
var sin = Math.sin(_IC1);
this._AC1 = cos * this._GC1;
this._DC1 = sin * this._GC1;
this._BC1 = -sin * this._HC1;
this._vh = cos * this._HC1;
if (_Qe) {
this._AC1 = -this._AC1;
this._BC1 = -this._BC1
}
if (_Re != _7e._Eg._Fg) {
this._DC1 = -this._DC1;
this._vh = -this._vh
}
},
_zC1: function() {
var data = this.data;
this._w2 = data._w2;
this._x2 = data._x2;
this._E4 = data._E4;
this._r2 = data._r2;
this._s2 = data._s2
}
};
_7e._JC1 = function(_KC1, _Ee, _4h) {
this.data = _KC1;
this._Ee = _Ee;
this._4h = _4h;
this._zC1()
};
_7e._JC1.prototype = {
_uf: 1,
_Vg: 1,
_xf: 1,
_Wg: 1,
_LC1: 0,
_Ug: null,
_MC1: [],
_NC1: function(_Ug) {
this._Ug = _Ug;
this._LC1 = this._Ee._OC1;
this._MC1.length = 0
},
_PC1: function(_OC1) {
this._LC1 = this._Ee._OC1 - _OC1
},
_QC1: function() {
return this._Ee._OC1 - this._LC1
},
_zC1: function() {
var data = this.data;
this._uf = data._uf;
this._Vg = data._Vg;
this._xf = data._xf;
this._Wg = data._Wg;
var _RC1 = this._Ee.data._Rg;
for (var _u2 = 0, _df = _RC1.length; _u2 < _df; _u2++) {
if (_RC1[_u2] == data) {
this._NC1(!data._xC1 ? null : this._Ee._SC1(_u2, data._xC1));
break
}
}
}
};
_7e._TC1 = function(name) {
this.name = name;
this._UC1 = {}
};
_7e._TC1.prototype = {
_VC1: function(_WC1, name, _Ug) {
this._UC1[_WC1 + ":" + name] = _Ug
},
_XC1: function(_WC1, name) {
return this._UC1[_WC1 + ":" + name]
},
_YC1: function(_Ee, _ZC1) {
for (var _OC in _ZC1._UC1) {
var __C1 = _OC.indexOf(":");
var _WC1 = parseInt(_OC.substring(0, __C1));
var name = _OC.substring(__C1 + 1);
var _Sg = _Ee._Rg[_WC1];
if (_Sg._Ug && _Sg._Ug.name == name) {
var _Ug = this._XC1(_WC1, name);
if (_Ug) _Sg._NC1(_Ug)
}
}
}
};
_7e._0D1 = function(name, _Ne, duration) {
this.name = name;
this._Ne = _Ne;
this.duration = duration
};
_7e._0D1.prototype = {
apply: function(_Ee, _1D1, _OC1, loop, _2D1) {
if (loop && this.duration != 0) {
_OC1 %= this.duration;
_1D1 %= this.duration
}
var _Ne = this._Ne;
for (var _u2 = 0, _df = _Ne.length; _u2 < _df; _u2++) _Ne[_u2].apply(_Ee, _1D1, _OC1, _2D1, 1)
},
_3D1: function(_Ee, _1D1, _OC1, loop, _2D1, alpha) {
if (loop && this.duration != 0) {
_OC1 %= this.duration;
_1D1 %= this.duration
}
var _Ne = this._Ne;
for (var _u2 = 0, _df = _Ne.length; _u2 < _df; _u2++) _Ne[_u2].apply(_Ee, _1D1, _OC1, _2D1, alpha)
}
};
_7e._4D1 = function(_5D1, target, _JR) {
var _2o = 0;
var _1o = Math.floor(_5D1.length / _JR) - 2;
if (_1o == 0) return _JR;
var current = _1o >>> 1;
while (!0) {
if (_5D1[(current + 1) * _JR] <= target) _2o = current + 1;
else _1o = current; if (_2o == _1o) return (_2o + 1) * _JR;
current = (_2o + _1o) >>> 1
}
};
_7e._6D1 = function(_5D1, target, _JR) {
for (var _u2 = 0, _n2 = _5D1.length - _JR; _u2 <= _n2; _u2 += _JR)
if (_5D1[_u2] > target) return _u2;
return -1
};
_7e._7D1 = function(_Je) {
this._8D1 = [];
this._8D1.length = (_Je - 1) * 6
};
_7e._7D1.prototype = {
_9D1: function(_aD1) {
this._8D1[_aD1 * 6] = 0
},
_bD1: function(_aD1) {
this._8D1[_aD1 * 6] = -1
},
_cD1: function(_aD1, _dD1, _eD1, _fD1, _gD1) {
var _hD1 = 1 / 10;
var _iD1 = _hD1 * _hD1;
var _jD1 = _iD1 * _hD1;
var _kD1 = 3 * _hD1;
var _lD1 = 3 * _iD1;
var _mD1 = 6 * _iD1;
var _nD1 = 6 * _jD1;
var _oD1 = -_dD1 * 2 + _fD1;
var _pD1 = -_eD1 * 2 + _gD1;
var _qD1 = (_dD1 - _fD1) * 3 + 1;
var _rD1 = (_eD1 - _gD1) * 3 + 1;
var _u2 = _aD1 * 6;
var _8D1 = this._8D1;
_8D1[_u2] = _dD1 * _kD1 + _oD1 * _lD1 + _qD1 * _jD1;
_8D1[_u2 + 1] = _eD1 * _kD1 + _pD1 * _lD1 + _rD1 * _jD1;
_8D1[_u2 + 2] = _oD1 * _mD1 + _qD1 * _nD1;
_8D1[_u2 + 3] = _pD1 * _mD1 + _rD1 * _nD1;
_8D1[_u2 + 4] = _qD1 * _nD1;
_8D1[_u2 + 5] = _rD1 * _nD1
},
_sD1: function(_aD1, _tD1) {
_tD1 = _tD1 < 0 ? 0 : (_tD1 > 1 ? 1 : _tD1);
var _uD1 = _aD1 * 6;
var _8D1 = this._8D1;
var _vD1 = _8D1[_uD1];
if (!_vD1) return _tD1;
if (_vD1 == -1) return 0;
var _wD1 = _8D1[_uD1 + 1];
var _xD1 = _8D1[_uD1 + 2];
var _yD1 = _8D1[_uD1 + 3];
var _zD1 = _8D1[_uD1 + 4];
var _AD1 = _8D1[_uD1 + 5];
var _w2 = _vD1,
_x2 = _wD1;
var _u2 = 10 - 2;
while (!0) {
if (_w2 >= _tD1) {
var _BD1 = _w2 - _vD1;
var _CD1 = _x2 - _wD1;
return _CD1 + (_x2 - _CD1) * (_tD1 - _BD1) / (_w2 - _BD1)
}
if (_u2 == 0) break;
_u2--;
_vD1 += _xD1;
_wD1 += _yD1;
_xD1 += _zD1;
_yD1 += _AD1;
_w2 += _vD1;
_x2 += _wD1
}
return _x2 + (1 - _x2) * (_tD1 - _w2) / (1 - _w2)
}
};
_7e._DD1 = function(_Je) {
this._8D1 = new _7e._7D1(_Je);
this.frames = [];
this.frames.length = _Je * 2
};
_7e._DD1.prototype = {
_ED1: 0,
_FD1: function() {
return this.frames.length / 2;
},
_GD1: function(_aD1, _OC1, _Cg) {
_aD1 *= 2;
this.frames[_aD1] = _OC1;
this.frames[_aD1 + 1] = _Cg
},
apply: function(_Ee, _1D1, _OC1, _HD1, alpha) {
var frames = this.frames;
if (_OC1 < frames[0]) return;
var _4h = _Ee._ID1[this._ED1];
if (_OC1 >= frames[frames.length - 2]) {
var _JD1 = _4h.data._E4 + frames[frames.length - 1] - _4h._E4;
while (_JD1 > 180) _JD1 -= 360;
while (_JD1 < -180) _JD1 += 360;
_4h._E4 += _JD1 * alpha;
return
}
var _aD1 = _7e._4D1(frames, _OC1, 2);
var _KD1 = frames[_aD1 - 1];
var _LD1 = frames[_aD1];
var _tD1 = 1 - (_OC1 - _LD1) / (frames[_aD1 - 2] - _LD1);
_tD1 = this._8D1._sD1(_aD1 / 2 - 1, _tD1);
var _JD1 = frames[_aD1 + 1] - _KD1;
while (_JD1 > 180) _JD1 -= 360;
while (_JD1 < -180) _JD1 += 360;
_JD1 = _4h.data._E4 + (_KD1 + _JD1 * _tD1) - _4h._E4;
while (_JD1 > 180) _JD1 -= 360;
while (_JD1 < -180) _JD1 += 360;
_4h._E4 += _JD1 * alpha
}
};
_7e._MD1 = function(_Je) {
this._8D1 = new _7e._7D1(_Je);
this.frames = [];
this.frames.length = _Je * 3
};
_7e._MD1.prototype = {
_ED1: 0,
_FD1: function() {
return this.frames.length / 3
},
_GD1: function(_aD1, _OC1, _w2, _x2) {
_aD1 *= 3;
this.frames[_aD1] = _OC1;
this.frames[_aD1 + 1] = _w2;
this.frames[_aD1 + 2] = _x2
},
apply: function(_Ee, _1D1, _OC1, _HD1, alpha) {
var frames = this.frames;
if (_OC1 < frames[0]) return;
var _4h = _Ee._ID1[this._ED1];
if (_OC1 >= frames[frames.length - 3]) {
_4h._w2 += (_4h.data._w2 + frames[frames.length - 2] - _4h._w2) * alpha;
_4h._x2 += (_4h.data._x2 + frames[frames.length - 1] - _4h._x2) * alpha;
return
}
var _aD1 = _7e._4D1(frames, _OC1, 3);
var _ND1 = frames[_aD1 - 2];
var _OD1 = frames[_aD1 - 1];
var _LD1 = frames[_aD1];
var _tD1 = 1 - (_OC1 - _LD1) / (frames[_aD1 + -3] - _LD1);
_tD1 = this._8D1._sD1(_aD1 / 3 - 1, _tD1);
_4h._w2 += (_4h.data._w2 + _ND1 + (frames[_aD1 + 1] - _ND1) * _tD1 - _4h._w2) * alpha;
_4h._x2 += (_4h.data._x2 + _OD1 + (frames[_aD1 + 2] - _OD1) * _tD1 - _4h._x2) * alpha;
}
};
_7e._PD1 = function(_Je) {
this._8D1 = new _7e._7D1(_Je);
this.frames = [];
this.frames.length = _Je * 3
};
_7e._PD1.prototype = {
_ED1: 0,
_FD1: function() {
return this.frames.length / 3
},
_GD1: function(_aD1, _OC1, _w2, _x2) {
_aD1 *= 3;
this.frames[_aD1] = _OC1;
this.frames[_aD1 + 1] = _w2;
this.frames[_aD1 + 2] = _x2
},
apply: function(_Ee, _1D1, _OC1, _HD1, alpha) {
var frames = this.frames;
if (_OC1 < frames[0]) return;
var _4h = _Ee._ID1[this._ED1];
if (_OC1 >= frames[frames.length - 3]) {
_4h._r2 += (_4h.data._r2 - 1 + frames[frames.length - 2] - _4h._r2) * alpha;
_4h._s2 += (_4h.data._s2 - 1 + frames[frames.length - 1] - _4h._s2) * alpha;
return
}
var _aD1 = _7e._4D1(frames, _OC1, 3);
var _ND1 = frames[_aD1 - 2];
var _OD1 = frames[_aD1 - 1];
var _LD1 = frames[_aD1];
var _tD1 = 1 - (_OC1 - _LD1) / (frames[_aD1 + -3] - _LD1);
_tD1 = this._8D1._sD1(_aD1 / 3 - 1, _tD1);
_4h._r2 += (_4h.data._r2 - 1 + _ND1 + (frames[_aD1 + 1] - _ND1) * _tD1 - _4h._r2) * alpha;
_4h._s2 += (_4h.data._s2 - 1 + _OD1 + (frames[_aD1 + 2] - _OD1) * _tD1 - _4h._s2) * alpha
}
};
_7e._QD1 = function(_Je) {
this._8D1 = new _7e._7D1(_Je);
this.frames = [];
this.frames.length = _Je * 5
};
_7e._QD1.prototype = {
_WC1: 0,
_FD1: function() {
return this.frames.length / 5;
},
_GD1: function(_aD1, _OC1, _uf, _Vg, _xf, _Wg) {
_aD1 *= 5;
this.frames[_aD1] = _OC1;
this.frames[_aD1 + 1] = _uf;
this.frames[_aD1 + 2] = _Vg;
this.frames[_aD1 + 3] = _xf;
this.frames[_aD1 + 4] = _Wg
},
apply: function(_Ee, _1D1, _OC1, _HD1, alpha) {
var frames = this.frames;
if (_OC1 < frames[0]) return;
var _uf, _Vg, _xf, _Wg;
if (_OC1 >= frames[frames.length - 5]) {
var _u2 = frames.length - 1;
_uf = frames[_u2 - 3];
_Vg = frames[_u2 - 2];
_xf = frames[_u2 - 1];
_Wg = frames[_u2]
} else {
var _aD1 = _7e._4D1(frames, _OC1, 5);
var _RD1 = frames[_aD1 - 4];
var _SD1 = frames[_aD1 - 3];
var _TD1 = frames[_aD1 - 2];
var _UD1 = frames[_aD1 - 1];
var _LD1 = frames[_aD1];
var _tD1 = 1 - (_OC1 - _LD1) / (frames[_aD1 - 5] - _LD1);
_tD1 = this._8D1._sD1(_aD1 / 5 - 1, _tD1);
_uf = _RD1 + (frames[_aD1 + 1] - _RD1) * _tD1;
_Vg = _SD1 + (frames[_aD1 + 2] - _SD1) * _tD1;
_xf = _TD1 + (frames[_aD1 + 3] - _TD1) * _tD1;
_Wg = _UD1 + (frames[_aD1 + 4] - _UD1) * _tD1
}
var _Sg = _Ee._Rg[this._WC1];
if (alpha < 1) {
_Sg._uf += (_uf - _Sg._uf) * alpha;
_Sg._Vg += (_Vg - _Sg._Vg) * alpha;
_Sg._xf += (_xf - _Sg._xf) * alpha;
_Sg._Wg += (_Wg - _Sg._Wg) * alpha
} else {
_Sg._uf = _uf;
_Sg._Vg = _Vg;
_Sg._xf = _xf;
_Sg._Wg = _Wg
}
}
};
_7e._VD1 = function(_Je) {
this._8D1 = new _7e._7D1(_Je);
this.frames = [];
this.frames.length = _Je;
this._WD1 = [];
this._WD1.length = _Je
};
_7e._VD1.prototype = {
_WC1: 0,
_FD1: function() {
return this.frames.length
},
_GD1: function(_aD1, _OC1, _xC1) {
this.frames[_aD1] = _OC1;
this._WD1[_aD1] = _xC1
},
apply: function(_Ee, _1D1, _OC1, _HD1, alpha) {
var frames = this.frames;
if (_OC1 < frames[0]) return;
var _aD1;
if (_OC1 >= frames[frames.length - 1]) _aD1 = frames.length - 1;
else _aD1 = _7e._4D1(frames, _OC1, 1) - 1;
var _xC1 = this._WD1[_aD1];
_Ee._Rg[this._WC1]._NC1(!_xC1 ? null : _Ee._SC1(this._WC1,
_xC1))
}
};
_7e._XD1 = function(_Je) {
this.frames = [];
this.frames.length = _Je;
this._2D1 = [];
this._2D1.length = _Je
};
_7e._XD1.prototype = {
_FD1: function() {
return this.frames.length
},
_GD1: function(_aD1, _OC1, event) {
this.frames[_aD1] = _OC1;
this._2D1[_aD1] = event
},
apply: function(_Ee, _1D1, _OC1, _HD1, alpha) {
if (!_HD1) return;
var frames = this.frames;
var _Je = frames.length;
if (_1D1 > _OC1) {
this.apply(_Ee, _1D1, Number.MAX_VALUE, _HD1, alpha);
_1D1 = -1
} else if (_1D1 >= frames[_Je - 1]) return;
if (_OC1 < frames[0]) return;
var _aD1;
if (_1D1 < frames[0]) _aD1 = 0;
else {
_aD1 = _7e._4D1(frames, _1D1, 1);
var _We = frames[_aD1];
while (_aD1 > 0) {
if (frames[_aD1 - 1] != _We) break;
_aD1--
}
}
var _2D1 = this._2D1;
for (; _aD1 < _Je && _OC1 >= frames[_aD1]; _aD1++) _HD1.push(_2D1[_aD1])
}
};
_7e._YD1 = function(_Je) {
this.frames = [];
this.frames.length = _Je;
this._ZD1 = [];
this._ZD1.length = _Je
};
_7e._YD1.prototype = {
_FD1: function() {
return this.frames.length
},
_GD1: function(_aD1, _OC1, _Tg) {
this.frames[_aD1] = _OC1;
this._ZD1[_aD1] = _Tg
},
apply: function(_Ee, _1D1, _OC1, _HD1, alpha) {
var frames = this.frames;
if (_OC1 < frames[0]) return;
var _aD1;
if (_OC1 >= frames[frames.length - 1]) _aD1 = frames.length - 1;
else _aD1 = _7e._4D1(frames, _OC1, 1) - 1;
var _Tg = _Ee._Tg;
var _Rg = _Ee._Rg;
var __D1 = this._ZD1[_aD1];
if (!__D1) {
for (var _u2 = 0, _df = _Rg.length; _u2 < _df; _u2++) _Tg[_u2] = _Rg[_u2]
} else {
for (var _u2 = 0, _df = __D1.length; _u2 < _df; _u2++) _Tg[_u2] = _Ee._Rg[__D1[_u2]]
}
}
};
_7e._0E1 = function(_Je) {
this._8D1 = new _7e._7D1(_Je);
this.frames = [];
this.frames.length = _Je;
this._1E1 = [];
this._1E1.length = _Je
};
_7e._0E1.prototype = {
_WC1: 0,
_Ug: 0,
_FD1: function() {
return this.frames.length
},
_GD1: function(_aD1,
_OC1, _2h) {
this.frames[_aD1] = _OC1;
this._1E1[_aD1] = _2h
},
apply: function(_Ee, _1D1, _OC1, _HD1, alpha) {
var _Sg = _Ee._Rg[this._WC1];
if (_Sg._Ug != _Sg._Ug) return;
var frames = this.frames;
if (_OC1 < frames[0]) {
_Sg._MC1.length = 0;
return
}
var _1E1 = this._1E1;
var _JU = _1E1[0].length;
var _2h = _Sg._MC1;
if (_2h.length < _JU) {
_2h = [];
_2h.length = _JU;
_Sg._MC1 = _2h
}
_Sg._MC1.length = _JU;
if (_OC1 >= frames[frames.length - 1]) {
var _2E1 = _1E1[frames.length - 1];
if (alpha < 1) {
for (var _u2 = 0; _u2 < _JU; _u2++) _2h[_u2] += (_2E1[_u2] - _2h[_u2]) * alpha
} else {
for (var _u2 = 0; _u2 < _JU; _u2++) _2h[_u2] = _2E1[_u2]
}
return
}
var _aD1 = _7e._4D1(frames, _OC1, 1);
var _LD1 = frames[_aD1];
var _tD1 = 1 - (_OC1 - _LD1) / (frames[_aD1 - 1] - _LD1);
_tD1 = this._8D1._sD1(_aD1 - 1, _tD1 < 0 ? 0 : (_tD1 > 1 ? 1 : _tD1));
var _3E1 = _1E1[_aD1 - 1];
var _4E1 = _1E1[_aD1];
if (alpha < 1) {
for (var _u2 = 0; _u2 < _JU; _u2++) {
var _r71 = _3E1[_u2];
_2h[_u2] += (_r71 + (_4E1[_u2] - _r71) * _tD1 - _2h[_u2]) * alpha
}
} else {
for (var _u2 = 0; _u2 < _JU; _u2++) {
var _r71 = _3E1[_u2];
_2h[_u2] = _r71 + (_4E1[_u2] - _r71) * _tD1
}
}
}
};
_7e._5E1 = function() {
this._ID1 = [];
this._Rg = [];
this._6E1 = [];
this._2D1 = [];
this._be = []
};
_7e._5E1.prototype = {
_te: null,
_7E1: function(_8E1) {
var _ID1 = this._ID1;
for (var _u2 = 0, _df = _ID1.length; _u2 < _df; _u2++)
if (_ID1[_u2].name == _8E1) return _ID1[_u2];
return null
},
_9E1: function(_8E1) {
var _ID1 = this._ID1;
for (var _u2 = 0, _df = _ID1.length; _u2 < _df; _u2++)
if (_ID1[_u2].name == _8E1) return _u2;
return -1
},
_aE1: function(_bE1) {
var _Rg = this._Rg;
for (var _u2 = 0, _df = _Rg.length; _u2 < _df; _u2++) {
if (_Rg[_u2].name == _bE1) return _Sg[_u2]
}
return null
},
_cE1: function(_bE1) {
var _Rg = this._Rg;
for (var _u2 = 0, _df = _Rg.length; _u2 < _df; _u2++)
if (_Rg[_u2].name == _bE1) return _u2;
return -1
},
_dE1: function(_eE1) {
var _6E1 = this._6E1;
for (var _u2 = 0, _df = _6E1.length; _u2 < _df; _u2++)
if (_6E1[_u2].name == _eE1) return _6E1[_u2];
return null
},
_fE1: function(_gE1) {
var _2D1 = this._2D1;
for (var _u2 = 0, _df = _2D1.length; _u2 < _df; _u2++)
if (_2D1[_u2].name == _gE1) return _2D1[_u2];
return null
},
_qe: function(_hE1) {
var _be = this._be;
for (var _u2 = 0, _df = _be.length; _u2 < _df; _u2++)
if (_be[_u2].name == _hE1) return _be[_u2];
return null
}
};
_7e._8e = function(_iE1) {
this.data = _iE1;
this._ID1 = [];
for (var _u2 = 0,
_df = _iE1._ID1.length; _u2 < _df; _u2++) {
var _wC1 = _iE1._ID1[_u2];
var parent = !_wC1.parent ? null : this._ID1[_iE1._ID1.indexOf(_wC1.parent)];
this._ID1.push(new _7e._Eg(_wC1, parent))
}
this._Rg = [];
this._Tg = [];
for (var _u2 = 0, _df = _iE1._Rg.length; _u2 < _df; _u2++) {
var _KC1 = _iE1._Rg[_u2];
var _4h = this._ID1[_iE1._ID1.indexOf(_KC1._wC1)];
var _Sg = new _7e._JC1(_KC1, this, _4h);
this._Rg.push(_Sg);
this._Tg.push(_Sg)
}
};
_7e._8e.prototype = {
_w2: 0,
_x2: 0,
_jE1: null,
_uf: 1,
_Vg: 1,
_xf: 1,
_Wg: 1,
_OC1: 0,
_Qe: !1,
_Re: !1,
_Ge: function() {
var _Qe = this._Qe;
var _Re = this._Re;
var _ID1 = this._ID1;
for (var _u2 = 0, _df = _ID1.length; _u2 < _df; _u2++) _ID1[_u2]._Ge(_Qe, _Re)
},
_zC1: function() {
this._kE1();
this._ve()
},
_kE1: function() {
var _ID1 = this._ID1;
for (var _u2 = 0, _df = _ID1.length; _u2 < _df; _u2++) _ID1[_u2]._zC1()
},
_ve: function() {
var _Rg = this._Rg;
var _Tg = this._Tg;
for (var _u2 = 0, _df = _Rg.length; _u2 < _df; _u2++) {
_Tg[_u2] = _Rg[_u2];
_Rg[_u2]._zC1(_u2)
}
},
_ge: function() {
return this._ID1.length == 0 ? null : this._ID1[0]
},
_7E1: function(_8E1) {
var _ID1 = this._ID1;
for (var _u2 = 0, _df = _ID1.length; _u2 < _df; _u2++)
if (_ID1[_u2].data.name == _8E1) return _ID1[_u2];
return null
},
_9E1: function(_8E1) {
var _ID1 = this._ID1;
for (var _u2 = 0, _df = _ID1.length; _u2 < _df; _u2++)
if (_ID1[_u2].data.name == _8E1) return _u2;
return -1
},
_aE1: function(_bE1) {
var _Rg = this._Rg;
for (var _u2 = 0, _df = _Rg.length; _u2 < _df; _u2++)
if (_Rg[_u2].data.name == _bE1) return _Rg[_u2];
return null;
},
_cE1: function(_bE1) {
var _Rg = this._Rg;
for (var _u2 = 0, _df = _Rg.length; _u2 < _df; _u2++)
if (_Rg[_u2].data.name == _bE1) return _u2;
return -1
},
_ue: function(_eE1) {
var _jE1 = this.data._dE1(_eE1);
if (!_jE1) throw "Skin not found: " + _eE1;
this._lE1(_jE1)
},
_lE1: function(_mE1) {
if (_mE1) {
if (this._jE1) _mE1._YC1(this, this._jE1);
else {
var _Rg = this._Rg;
for (var _u2 = 0, _df = _Rg.length; _u2 < _df; _u2++) {
var _Sg = _Rg[_u2];
var name = _Sg.data._xC1;
if (name) {
var _Ug = _mE1._XC1(_u2, name);
if (_Ug) _Sg._NC1(_Ug)
}
}
}
}
this._jE1 = _mE1
},
_nE1: function(_bE1, _xC1) {
return this._SC1(this.data._cE1(_bE1), _xC1)
},
_SC1: function(_WC1, _xC1) {
if (this._jE1) {
var _Ug = this._jE1._XC1(_WC1, _xC1);
if (_Ug) return _Ug
}
if (this.data._te) return this.data._te._XC1(_WC1,
_xC1);
return null
},
_NC1: function(_bE1, _xC1) {
var _Rg = this._Rg;
for (var _u2 = 0, _df = _Rg.length; _u2 < _df; _u2++) {
var _Sg = _Rg[_u2];
if (_Sg.data.name == _bE1) {
var _Ug = null;
if (_xC1) {
_Ug = this._SC1(_u2, _xC1);
if (!_Ug) throw "Attachment not found: " + _xC1 + ", for slot: " + _bE1
}
_Sg._NC1(_Ug);
return
}
}
throw "Slot not found: " + _bE1
},
_Pe: function(_oE1) {
this._OC1 += _oE1
}
};
_7e._pE1 = function(name) {
this.name = name;
};
_7e._pE1.prototype = {
_qE1: 0,
_rE1: 0,
_sE1: null
};
_7e._Iy = function(data) {
this.data = data
};
_7e._Iy.prototype = {
_qE1: 0,
_rE1: 0,
_sE1: null
};
_7e._Xg = {
_Yg: 0,
_tE1: 1,
_Zg: 2,
__g: 3
};
_7e._uE1 = function(name) {
this.name = name;
this._A2 = [];
this._A2.length = 8;
this._7h = [];
this._7h.length = 8
};
_7e._uE1.prototype = {
type: _7e._Xg._Yg,
_w2: 0,
_x2: 0,
_E4: 0,
_r2: 1,
_s2: 1,
width: 0,
height: 0,
_uf: 1,
_Vg: 1,
_xf: 1,
_Wg: 1,
_vE1: null,
_tg: null,
_wE1: 0,
_xE1: 0,
_yE1: 0,
_zE1: 0,
_AE1: 0,
_BE1: 0,
_CE1: function(_6h, _8h, _s_, _Uh, rotate) {
var _7h = this._7h;
if (rotate) {
_7h[2] = _6h;
_7h[3] = _Uh;
_7h[4] = _6h;
_7h[5] = _8h;
_7h[6] = _s_;
_7h[7] = _8h;
_7h[0] = _s_;
_7h[1] = _Uh
} else {
_7h[0] = _6h;
_7h[1] = _Uh;
_7h[2] = _6h;
_7h[3] = _8h;
_7h[4] = _s_;
_7h[5] = _8h;
_7h[6] = _s_;
_7h[7] = _Uh
}
},
_DE1: function() {
var _EE1 = this.width / this._AE1 * this._r2;
var _FE1 = this.height / this._BE1 * this._s2;
var _GE1 = -this.width / 2 * this._r2 + this._wE1 * _EE1;
var _HE1 = -this.height / 2 * this._s2 + this._xE1 * _FE1;
var _IE1 = _GE1 + this._yE1 * _EE1;
var _JE1 = _HE1 + this._zE1 * _FE1;
var _IC1 = this._E4 * Math.PI / 180;
var cos = Math.cos(_IC1);
var sin = Math.sin(_IC1);
var _KE1 = _GE1 * cos + this._w2;
var _LE1 = _GE1 * sin;
var _ME1 = _HE1 * cos + this._x2;
var _NE1 = _HE1 * sin;
var _OE1 = _IE1 * cos + this._w2;
var _PE1 = _IE1 * sin;
var _QE1 = _JE1 * cos + this._x2;
var _RE1 = _JE1 * sin;
var _A2 = this._A2;
_A2[0] = _KE1 - _NE1;
_A2[1] = _ME1 + _LE1;
_A2[2] = _KE1 - _RE1;
_A2[3] = _QE1 + _LE1;
_A2[4] = _OE1 - _RE1;
_A2[5] = _QE1 + _PE1;
_A2[6] = _OE1 - _NE1;
_A2[7] = _ME1 + _PE1
},
_3h: function(_w2, _x2, _4h, _2h) {
_w2 += _4h._CC1;
_x2 += _4h._EC1;
var _AC1 = _4h._AC1,
_BC1 = _4h._BC1,
_DC1 = _4h._DC1,
_vh = _4h._vh;
var _A2 = this._A2;
_2h[0] = _A2[0] * _AC1 + _A2[1] * _BC1 + _w2;
_2h[1] = _A2[0] * _DC1 + _A2[1] * _vh + _x2;
_2h[2] = _A2[2] * _AC1 + _A2[3] * _BC1 + _w2;
_2h[3] = _A2[2] * _DC1 + _A2[3] * _vh + _x2;
_2h[4] = _A2[4] * _AC1 + _A2[5] * _BC1 + _w2;
_2h[5] = _A2[4] * _DC1 + _A2[5] * _vh + _x2;
_2h[6] = _A2[6] * _AC1 + _A2[7] * _BC1 + _w2;
_2h[7] = _A2[6] * _DC1 + _A2[7] * _vh + _x2
}
};
_7e._SE1 = function(name) {
this.name = name
};
_7e._SE1.prototype = {
type: _7e._Xg._Zg,
_2h: null,
_7h: null,
_TE1: null,
_gh: null,
_UE1: 0,
_uf: 1,
_Vg: 1,
_xf: 1,
_Wg: 1,
_vE1: null,
_tg: null,
_VE1: 0,
_WE1: 0,
_XE1: 0,
_YE1: 0,
_ZE1: !1,
_wE1: 0,
_xE1: 0,
_yE1: 0,
_zE1: 0,
_AE1: 0,
_BE1: 0,
__E1: null,
width: 0,
height: 0,
_0F1: function() {
var width = this._XE1 - this._VE1,
height = this._YE1 - this._WE1;
var _TE1 = this._TE1,
_VE1 = this._VE1,
_WE1 = this._WE1;
var _df = this._TE1.length;
if (!this._7h || this._7h.length != _df) {
this._7h = [];
this._7h.length = _df
}
if (this._ZE1) {
for (var _u2 = 0; _u2 < _df; _u2 += 2) {
this._7h[_u2] = _VE1 + _TE1[_u2 + 1] * width;
this._7h[_u2 + 1] = _WE1 + height - _TE1[_u2] * height
}
} else {
for (var _u2 = 0; _u2 < _df; _u2 += 2) {
this._7h[_u2] = _VE1 + _TE1[_u2] * width;
this._7h[_u2 + 1] = _WE1 + _TE1[_u2 + 1] * height
}
}
},
_fh: function(_w2, _x2, _Sg, _1F1) {
var _4h = _Sg._4h;
_w2 += _4h._CC1;
_x2 += _4h._EC1;
var _AC1 = _4h._AC1,
_BC1 = _4h._BC1,
_DC1 = _4h._DC1,
_vh = _4h._vh;
var _2h = this._2h;
var _2F1 = _2h.length;
if (_Sg._MC1.length == _2F1) _2h = _Sg._MC1;
for (var _u2 = 0; _u2 < _2F1; _u2 += 2) {
var _zW = _2h[_u2];
var _AW = _2h[_u2 + 1];
_1F1[_u2] = _zW * _AC1 + _AW * _BC1 + _w2;
_1F1[_u2 + 1] = _zW * _DC1 + _AW * _vh + _x2
}
}
};
_7e._3F1 = function(name) {
this.name = name
};
_7e._3F1.prototype = {
type: _7e._Xg.__g,
_ID1: null,
_4F1: null,
_7h: null,
_TE1: null,
_gh: null,
_UE1: 0,
_uf: 1,
_Vg: 1,
_xf: 1,
_Wg: 1,
_vE1: null,
_tg: null,
_VE1: 0,
_WE1: 0,
_XE1: 0,
_YE1: 0,
_ZE1: !1,
_wE1: 0,
_xE1: 0,
_yE1: 0,
_zE1: 0,
_AE1: 0,
_BE1: 0,
__E1: null,
width: 0,
height: 0,
_0F1: function(_6h, _8h, _s_, _Uh, rotate) {
var width = this._XE1 - this._VE1,
height = this._YE1 - this._WE1;
var _TE1 = this._TE1,
_VE1 = this._VE1,
_WE1 = this._WE1;
var _df = _TE1.length;
if (!this._7h || this._7h.length != _df) {
this._7h = [];
this._7h.length = _df
}
if (this._ZE1) {
for (var _u2 = 0; _u2 < _df; _u2 += 2) {
this._7h[_u2] = _VE1 + _TE1[_u2 + 1] * width;
this._7h[_u2 + 1] = _WE1 + height - _TE1[_u2] * height
}
} else {
for (var _u2 = 0; _u2 < _df; _u2 += 2) {
this._7h[_u2] = _VE1 + _TE1[_u2] * width;
this._7h[_u2 + 1] = _WE1 + _TE1[_u2 + 1] * height
}
}
},
_fh: function(_w2, _x2, _Sg, _1F1) {
var _5F1 = _Sg._Ee._ID1;
var _4F1 = this._4F1;
var _ID1 = this._ID1;
var _y2 = 0,
_8h = 0,
_xf = 0,
_1w = 0,
_df = _ID1.length,
_6F1;
var _7F1, _8F1, _4h, _zW, _AW,
_Va1;
if (_Sg._MC1.length == 0) {
for (; _8h < _df; _y2 += 2) {
_7F1 = 0;
_8F1 = 0;
_6F1 = _ID1[_8h++] + _8h;
for (; _8h < _6F1; _8h++, _xf += 3) {
_4h = _5F1[_ID1[_8h]];
_zW = _4F1[_xf];
_AW = _4F1[_xf + 1];
_Va1 = _4F1[_xf + 2];
_7F1 += (_zW * _4h._AC1 + _AW * _4h._BC1 + _4h._CC1) * _Va1;
_8F1 += (_zW * _4h._DC1 + _AW * _4h._vh + _4h._EC1) * _Va1
}
_1F1[_y2] = _7F1 + _w2;
_1F1[_y2 + 1] = _8F1 + _x2
}
} else {
var _9F1 = _Sg._MC1;
for (; _8h < _df; _y2 += 2) {
_7F1 = 0;
_8F1 = 0;
_6F1 = _ID1[_8h++] + _8h;
for (; _8h < _6F1; _8h++, _xf += 3, _1w += 2) {
_4h = _5F1[_ID1[_8h]];
_zW = _4F1[_xf] + _9F1[_1w];
_AW = _4F1[_xf + 1] + _9F1[_1w + 1];
_Va1 = _4F1[_xf + 2];
_7F1 += (_zW * _4h._AC1 + _AW * _4h._BC1 + _4h._CC1) * _Va1;
_8F1 += (_zW * _4h._DC1 + _AW * _4h._vh + _4h._EC1) * _Va1
}
_1F1[_y2] = _7F1 + _w2;
_1F1[_y2 + 1] = _8F1 + _x2
}
}
}
};
_7e._aF1 = function(name) {
this.name = name;
this._2h = []
};
_7e._aF1.prototype = {
type: _7e._Xg._tE1,
_fh: function(_w2, _x2, _4h, _1F1) {
_w2 += _4h._CC1;
_x2 += _4h._EC1;
var _AC1 = _4h._AC1,
_BC1 = _4h._BC1,
_DC1 = _4h._DC1,
_vh = _4h._vh;
var _2h = this._2h;
for (var _u2 = 0, _df = _2h.length; _u2 < _df; _u2 += 2) {
var _fp = _2h[_u2];
var _gp = _2h[_u2 + 1];
_1F1[_u2] = _fp * _AC1 + _gp * _BC1 + _w2;
_1F1[_u2 + 1] = _fp * _DC1 + _gp * _vh + _x2
}
}
};
_7e._9e = function(_iE1) {
this._iE1 = _iE1;
this._bF1 = {}
};
_7e._9e.prototype = {
_cF1: 0,
_dF1: function(_eF1, _fF1, duration) {
var _gF1 = this._iE1._qe(_eF1);
if (!_gF1) throw "Animation not found: " + _eF1;
var _hF1 = this._iE1._qe(_fF1);
if (!_hF1) throw "Animation not found: " + _fF1;
this._iF1(_gF1, _hF1, duration)
},
_iF1: function(_gF1, _hF1, duration) {
this._bF1[_gF1.name + ":" + _hF1.name] = duration
},
_jF1: function(_gF1, _hF1) {
var _OC1 = this._bF1[_gF1.name + ":" + _hF1.name];
return _OC1 ? _OC1 : this._cF1
}
};
_7e._kF1 = function() {};
_7e._kF1.prototype = {
_Yn: null,
_lF1: null,
_pe: null,
loop: !1,
_mF1: 0,
_OC1: 0,
_1D1: -1,
_nF1: 0,
_oF1: 1,
_pF1: 0,
_qF1: 0,
_3D1: 1,
_rF1: null,
_sF1: null,
onComplete: null,
_tF1: null
};
_7e._ae = function(_Vo1) {
this.data = _Vo1;
this._uF1 = [];
this._2D1 = []
};
_7e._ae.prototype = {
_rF1: null,
_sF1: null,
onComplete: null,
_tF1: null,
_oF1: 1,
_Pe: function(_oE1) {
_oE1 *= this._oF1;
for (var _u2 = 0; _u2 < this._uF1.length; _u2++) {
var current = this._uF1[_u2];
if (!current) continue;
current._OC1 += _oE1 * current._oF1;
if (current._lF1) {
var _vF1 = _oE1 * current._lF1._oF1;
current._lF1._OC1 += _vF1;
current._pF1 += _vF1
}
var _Yn = current._Yn;
if (_Yn) {
_Yn._OC1 = current._1D1 - _Yn._mF1;
if (_Yn._OC1 >= 0) this._wF1(_u2, _Yn)
} else {
if (!current.loop && current._1D1 >= current._nF1) this._xF1(_u2)
}
}
},
apply: function(_Ee) {
for (var _u2 = 0; _u2 < this._uF1.length; _u2++) {
var current = this._uF1[_u2];
if (!current) continue;
this._2D1.length = 0;
var _OC1 = current._OC1;
var _1D1 = current._1D1;
var _nF1 = current._nF1;
var loop = current.loop;
if (!loop && _OC1 > _nF1) _OC1 = _nF1;
var _lF1 = current._lF1;
if (!_lF1) {
if (current._3D1 == 1) current._pe.apply(_Ee, current._1D1,
_OC1, loop, this._2D1);
else current._pe._3D1(_Ee, current._1D1, _OC1, loop, this._2D1, current._3D1)
} else {
var _yF1 = _lF1._OC1;
if (!_lF1.loop && _yF1 > _lF1._nF1) _yF1 = _lF1._nF1;
_lF1._pe.apply(_Ee, _yF1, _yF1, _lF1.loop, null);
var alpha = current._pF1 / current._qF1 * current._3D1;
if (alpha >= 1) {
alpha = 1;
current._lF1 = null
}
current._pe._3D1(_Ee, current._1D1, _OC1, loop, this._2D1, alpha)
}
for (var _zF1 = 0, _6F1 = this._2D1.length; _zF1 < _6F1; _zF1++) {
var event = this._2D1[_zF1];
if (current._tF1 != null) current._tF1(_u2, event);
if (this._tF1 != null) this._tF1(_u2,
event)
}
if (loop ? (_1D1 % _nF1 > _OC1 % _nF1) : (_1D1 < _nF1 && _OC1 >= _nF1)) {
var _fg = Math.floor(_OC1 / _nF1);
if (current.onComplete) current.onComplete(_u2, _fg);
if (this.onComplete) this.onComplete(_u2, _fg)
}
current._1D1 = current._OC1
}
},
_AF1: function() {
for (var _u2 = 0, _df = this._uF1.length; _u2 < _df; _u2++) this._xF1(_u2);
this._uF1.length = 0
},
_xF1: function(_BF1) {
if (_BF1 >= this._uF1.length) return;
var current = this._uF1[_BF1];
if (!current) return;
if (current._sF1 != null) current._sF1(_BF1);
if (this._sF1 != null) this._sF1(_BF1);
this._uF1[_BF1] = null
},
_CF1: function(index) {
if (index < this._uF1.length) return this._uF1[index];
while (index >= this._uF1.length) this._uF1.push(null);
return null
},
_wF1: function(index, _DF1) {
var current = this._CF1(index);
if (current) {
var _lF1 = current._lF1;
current._lF1 = null;
if (current._sF1 != null) current._sF1(index);
if (this._sF1 != null) this._sF1(index);
_DF1._qF1 = this.data._jF1(current._pe, _DF1._pe);
if (_DF1._qF1 > 0) {
_DF1._pF1 = 0;
if (_lF1 && current._pF1 / current._qF1 < 0.5) _DF1._lF1 = _lF1;
else _DF1._lF1 = current
}
}
this._uF1[index] = _DF1;
if (_DF1._rF1 != null) _DF1._rF1(index);
if (this._rF1 != null) this._rF1(index)
},
_EF1: function(_BF1, _hE1, loop) {
var _pe = this.data._iE1._qe(_hE1);
if (!_pe) throw "Animation not found: " + _hE1;
return this._re(_BF1, _pe, loop)
},
_re: function(_BF1, _pe, loop) {
var _DF1 = new _7e._kF1();
_DF1._pe = _pe;
_DF1.loop = loop;
_DF1._nF1 = _pe.duration;
this._wF1(_BF1, _DF1);
return _DF1
},
_FF1: function(_BF1, _hE1, loop, _mF1) {
var _pe = this.data._iE1._qe(_hE1);
if (!_pe) throw "Animation not found: " + _hE1;
return this._GF1(_BF1, _pe, loop, _mF1)
},
_GF1: function(_BF1, _pe, loop, _mF1) {
var _DF1 = new _7e._kF1();
_DF1._pe = _pe;
_DF1.loop = loop;
_DF1._nF1 = _pe.duration;
var _n2 = this._CF1(_BF1);
if (_n2) {
while (_n2._Yn) _n2 = _n2._Yn;
_n2._Yn = _DF1
} else this._uF1[_BF1] = _DF1; if (_mF1 <= 0) {
if (_n2) _mF1 += _n2._nF1 - this.data._jF1(_n2._pe, _pe);
else _mF1 = 0
}
_DF1._mF1 = _mF1;
return _DF1
},
_HF1: function(_BF1) {
if (_BF1 >= this._uF1.length) return null;
return this._uF1[_BF1]
}
};
_7e._vg = function(_IF1) {
this._IF1 = _IF1
};
_7e._vg.prototype = {
scale: 1,
_xg: function(_fe) {
var _iE1 = new _7e._5E1();
var _ID1 = _fe["bones"];
for (var _u2 = 0, _df = _ID1.length; _u2 < _df; _u2++) {
var _JF1 = _ID1[_u2];
var parent = null;
if (_JF1["parent"]) {
parent = _iE1._7E1(_JF1["parent"]);
if (!parent) throw "Parent bone not found: " + _JF1["parent"]
}
var _wC1 = new _7e._sC1(_JF1["name"], parent);
_wC1.length = (_JF1["length"] || 0) * this.scale;
_wC1._w2 = (_JF1["x"] || 0) * this.scale;
_wC1._x2 = (_JF1["y"] || 0) * this.scale;
_wC1._E4 = (_JF1["rotation"] || 0);
_wC1._r2 = _JF1.hasOwnProperty("scaleX") ? _JF1["scaleX"] : 1;
_wC1._s2 = _JF1.hasOwnProperty("scaleY") ? _JF1["scaleY"] : 1;
_wC1._tC1 = !_JF1["inheritScale"] || _JF1["inheritScale"] == "true";
_wC1._uC1 = !_JF1["inheritRotation"] || _JF1["inheritRotation"] == "true";
_iE1._ID1.push(_wC1)
}
var _Rg = _fe["slots"];
for (var _u2 = 0, _df = _Rg.length; _u2 < _df; _u2++) {
var _KF1 = _Rg[_u2];
var _wC1 = _iE1._7E1(_KF1["bone"]);
if (!_wC1) throw "Slot bone not found: " + _KF1["bone"];
var _KC1 = new _7e._vC1(_KF1["name"], _wC1);
var _Ng = _KF1["color"];
if (_Ng) {
_KC1._uf = this._LF1(_Ng, 0);
_KC1._Vg = this._LF1(_Ng, 1);
_KC1._xf = this._LF1(_Ng, 2);
_KC1._Wg = this._LF1(_Ng, 3)
}
_KC1._xC1 = _KF1["attachment"];
_KC1._yC1 = _KF1["additive"] && _KF1["additive"] == "true";
_iE1._Rg.push(_KC1)
}
var _6E1 = _fe["skins"];
for (var _eE1 in _6E1) {
if (!_6E1.hasOwnProperty(_eE1)) continue;
var _MF1 = _6E1[_eE1];
var _jE1 = new _7e._TC1(_eE1);
for (var _bE1 in _MF1) {
if (!_MF1.hasOwnProperty(_bE1)) continue;
var _WC1 = _iE1._cE1(_bE1);
var _NF1 = _MF1[_bE1];
for (var _xC1 in _NF1) {
if (!_NF1.hasOwnProperty(_xC1)) continue;
var _Ug = this._OF1(_jE1, _xC1, _NF1[_xC1]);
if (_Ug != null) _jE1._VC1(_WC1, _xC1, _Ug)
}
}
_iE1._6E1.push(_jE1);
if (_jE1.name == "default") _iE1._te = _jE1
}
var _2D1 = _fe["events"];
for (var _gE1 in _2D1) {
if (!_2D1.hasOwnProperty(_gE1)) continue;
var _PF1 = _2D1[_gE1];
var _Gy = new _7e._pE1(_gE1);
_Gy._qE1 = _PF1["int"] || 0;
_Gy._rE1 = _PF1["float"] || 0;
_Gy._sE1 = _PF1["string"] || null;
_iE1._2D1.push(_Gy)
}
var _be = _fe["animations"];
for (var _hE1 in _be) {
if (!_be.hasOwnProperty(_hE1)) continue;
this._QF1(_hE1, _be[_hE1], _iE1)
}
return _iE1
},
_RF1: function(map) {
if (map["type"] && map["type"].toLowerCase() === "boundingbox") {
return _7e._Xg._tE1
} else if (map["type"] && map["type"].toLowerCase() === "mesh") {
return _7e._Xg._Zg
} else if (map["type"] && map["type"].toLowerCase() === "skinnedmesh") {
return _7e._Xg.__g
}
return _7e._Xg._Yg
},
_OF1: function(_jE1, name, map) {
name = map["name"] || name;
var type = this._RF1(map);
var _vE1 = map["path"] || name;
var scale = this.scale;
if (type == _7e._Xg._Yg) {
var _Yg = this._IF1._SF1(_jE1, name, _vE1);
if (!_Yg) return null;
_Yg._vE1 = _vE1;
_Yg._w2 = (map["x"] || 0) * this.scale;
_Yg._x2 = (map["y"] || 0) * this.scale;
_Yg._r2 = map.hasOwnProperty("scaleX") ? map["scaleX"] : 1;
_Yg._s2 = map.hasOwnProperty("scaleY") ? map["scaleY"] : 1;
_Yg._E4 = map["rotation"] || 0;
_Yg.width = (map["width"] || 0) * scale;
_Yg.height = (map["height"] || 0) * scale;
var _Ng = map["color"];
if (_Ng) {
_Yg._uf = this._LF1(_Ng, 0);
_Yg._Vg = this._LF1(_Ng, 1);
_Yg._xf = this._LF1(_Ng,
2);
_Yg._Wg = this._LF1(_Ng, 3)
}
_Yg._DE1();
return _Yg
} else if (type == _7e._Xg._Zg) {
var _Zg = this._IF1._TF1(_jE1, name, _vE1);
if (!_Zg) return null;
_Zg._vE1 = _vE1;
_Zg._2h = this._UF1(map, "vertices", scale);
_Zg._gh = this._VF1(map, "triangles");
_Zg._TE1 = this._UF1(map, "uvs", 1);
_Zg._0F1();
_Ng = map["color"];
if (_Ng) {
_Zg._uf = this._LF1(_Ng, 0);
_Zg._Vg = this._LF1(_Ng, 1);
_Zg._xf = this._LF1(_Ng, 2);
_Zg._Wg = this._LF1(_Ng, 3)
}
_Zg._UE1 = (map["hull"] || 0) * 2;
if (map["edges"]) _Zg.__E1 = this._VF1(map, "edges");
_Zg.width = (map["width"] || 0) * scale;
_Zg.height = (map["height"] || 0) * scale;
return _Zg
} else if (type == _7e._Xg.__g) {
var _Zg = this._IF1._WF1(_jE1, name, _vE1);
if (!_Zg) return null;
_Zg._vE1 = _vE1;
var _7h = this._UF1(map, "uvs", 1);
_2h = this._UF1(map, "vertices", 1);
var _4F1 = [];
var _ID1 = [];
for (var _u2 = 0, _df = _2h.length; _u2 < _df;) {
var _XF1 = _2h[_u2++] | 0;
_ID1[_ID1.length] = _XF1;
for (var _6F1 = _u2 + _XF1 * 4; _u2 < _6F1;) {
_ID1[_ID1.length] = _2h[_u2];
_4F1[_4F1.length] = _2h[_u2 + 1] * scale;
_4F1[_4F1.length] = _2h[_u2 + 2] * scale;
_4F1[_4F1.length] = _2h[_u2 + 3];
_u2 += 4
}
}
_Zg._ID1 = _ID1;
_Zg._4F1 = _4F1;
_Zg._gh = this._VF1(map, "triangles");
_Zg._TE1 = _7h;
_Zg._0F1();
_Ng = map["color"];
if (_Ng) {
_Zg._uf = this._LF1(_Ng, 0);
_Zg._Vg = this._LF1(_Ng, 1);
_Zg._xf = this._LF1(_Ng, 2);
_Zg._Wg = this._LF1(_Ng, 3)
}
_Zg._UE1 = (map["hull"] || 0) * 2;
if (map["edges"]) _Zg.__E1 = this._VF1(map, "edges");
_Zg.width = (map["width"] || 0) * scale;
_Zg.height = (map["height"] || 0) * scale;
return _Zg
} else if (type == _7e._Xg._tE1) {
var _Ug = this._IF1._YF1(_jE1, name);
var _2h = map["vertices"];
for (var _u2 = 0, _df = _2h.length; _u2 < _df; _u2++) _Ug._2h.push(_2h[_u2] * this.scale);
return _Ug
}
throw "Unknown attachment type: " + type;
},
_QF1: function(name, map, _iE1) {
var _Ne = [];
var duration = 0;
var _Rg = map["slots"];
for (var _bE1 in _Rg) {
if (!_Rg.hasOwnProperty(_bE1)) continue;
var _KF1 = _Rg[_bE1];
var _WC1 = _iE1._cE1(_bE1);
for (var _ZF1 in _KF1) {
if (!_KF1.hasOwnProperty(_ZF1)) continue;
var _5D1 = _KF1[_ZF1];
if (_ZF1 == "color") {
var _Ey = new _7e._QD1(_5D1.length);
_Ey._WC1 = _WC1;
var _aD1 = 0;
for (var _u2 = 0, _df = _5D1.length; _u2 < _df; _u2++) {
var __F1 = _5D1[_u2];
var _Ng = __F1["color"];
var _uf = this._LF1(_Ng, 0);
var _Vg = this._LF1(_Ng, 1);
var _xf = this._LF1(_Ng, 2);
var _Wg = this._LF1(_Ng,
3);
_Ey._GD1(_aD1, __F1["time"], _uf, _Vg, _xf, _Wg);
this._0G1(_Ey, _aD1, __F1);
_aD1++
}
_Ne.push(_Ey);
duration = Math.max(duration, _Ey.frames[_Ey._FD1() * 5 - 5])
} else if (_ZF1 == "attachment") {
var _Ey = new _7e._VD1(_5D1.length);
_Ey._WC1 = _WC1;
var _aD1 = 0;
for (var _u2 = 0, _df = _5D1.length; _u2 < _df; _u2++) {
var __F1 = _5D1[_u2];
_Ey._GD1(_aD1++, __F1["time"], __F1["name"])
}
_Ne.push(_Ey);
duration = Math.max(duration, _Ey.frames[_Ey._FD1() - 1])
} else throw "Invalid timeline type for a slot: " + _ZF1 + " (" + _bE1 + ")"
}
}
var _ID1 = map["bones"];
for (var _8E1 in _ID1) {
if (!_ID1.hasOwnProperty(_8E1)) continue;
var _ED1 = _iE1._9E1(_8E1);
if (_ED1 == -1) throw "Bone not found: " + _8E1;
var _JF1 = _ID1[_8E1];
for (var _ZF1 in _JF1) {
if (!_JF1.hasOwnProperty(_ZF1)) continue;
var _5D1 = _JF1[_ZF1];
if (_ZF1 == "rotate") {
var _Ey = new _7e._DD1(_5D1.length);
_Ey._ED1 = _ED1;
var _aD1 = 0;
for (var _u2 = 0, _df = _5D1.length; _u2 < _df; _u2++) {
var __F1 = _5D1[_u2];
_Ey._GD1(_aD1, __F1["time"], __F1["angle"]);
this._0G1(_Ey, _aD1, __F1);
_aD1++
}
_Ne.push(_Ey);
duration = Math.max(duration, _Ey.frames[_Ey._FD1() * 2 - 2])
} else if (_ZF1 == "translate" || _ZF1 == "scale") {
var _Ey;
var _1G1 = 1;
if (_ZF1 == "scale") _Ey = new _7e._PD1(_5D1.length);
else {
_Ey = new _7e._MD1(_5D1.length);
_1G1 = this.scale
}
_Ey._ED1 = _ED1;
var _aD1 = 0;
for (var _u2 = 0, _df = _5D1.length; _u2 < _df; _u2++) {
var __F1 = _5D1[_u2];
var _w2 = (__F1["x"] || 0) * _1G1;
var _x2 = (__F1["y"] || 0) * _1G1;
_Ey._GD1(_aD1, __F1["time"], _w2, _x2);
this._0G1(_Ey, _aD1, __F1);
_aD1++
}
_Ne.push(_Ey);
duration = Math.max(duration, _Ey.frames[_Ey._FD1() * 3 - 3])
} else throw "Invalid timeline type for a bone: " + _ZF1 + " (" + _8E1 + ")"
}
}
var _9F1 = map["ffd"];
for (var _eE1 in _9F1) {
var _jE1 = _iE1._dE1(_eE1);
var _KF1 = _9F1[_eE1];
for (_bE1 in _KF1) {
var _WC1 = _iE1._cE1(_bE1);
var _2G1 = _KF1[_bE1];
for (var _3G1 in _2G1) {
var _5D1 = _2G1[_3G1];
var _Ey = new _7e._0E1(_5D1.length);
var _Ug = _jE1._XC1(_WC1, _3G1);
if (!_Ug) throw "FFD attachment not found: " + _3G1;
_Ey._WC1 = _WC1;
_Ey._Ug = _Ug;
var _4G1 = _Ug.type == _7e._Xg._Zg;
var _JU;
if (_4G1) _JU = _Ug._2h.length;
else _JU = _Ug._4F1.length / 3 * 2;
var _aD1 = 0;
for (var _u2 = 0, _df = _5D1.length; _u2 < _df; _u2++) {
var __F1 = _5D1[_u2];
var _2h;
if (!__F1["vertices"]) {
if (_4G1) _2h = _Ug._2h;
else {
_2h = [];
_2h.length = _JU
}
} else {
var _5G1 = __F1["vertices"];
var _2h = [];
_2h.length = _JU;
var start = __F1["offset"] || 0;
var _6F1 = _5G1.length;
if (this.scale == 1) {
for (var _zF1 = 0; _zF1 < _6F1; _zF1++) _2h[_zF1 + start] = _5G1[_zF1]
} else {
for (var _zF1 = 0; _zF1 < _6F1; _zF1++) _2h[_zF1 + start] = _5G1[_zF1] * scale
} if (_4G1) {
var _6G1 = _Ug._2h;
for (var _zF1 = 0, _6F1 = _2h.length; _zF1 < _6F1; _zF1++) {
if (_2h[_zF1]) {
_2h[_zF1] += _6G1[_zF1]
} else {
_2h[_zF1] = _6G1[_zF1]
}
}
}
}
_Ey._GD1(_aD1, __F1["time"], _2h);
this._0G1(_Ey, _aD1, __F1);
_aD1++
}
_Ne[_Ne.length] = _Ey;
duration = Math.max(duration, _Ey.frames[_Ey._FD1() - 1])
}
}
}
var _7G1 = map["draworder"];
if (_7G1) {
var _Ey = new _7e._YD1(_7G1.length);
var _8G1 = _iE1._Rg.length;
var _aD1 = 0;
for (var _u2 = 0, _df = _7G1.length; _u2 < _df; _u2++) {
var _9G1 = _7G1[_u2];
var _Tg = null;
if (_9G1["offsets"]) {
_Tg = [];
_Tg.length = _8G1;
for (var _zF1 = _8G1 - 1; _zF1 >= 0; _zF1--) _Tg[_zF1] = -1;
var _aG1 = _9G1["offsets"];
var _bG1 = [];
_bG1.length = _8G1 - _aG1.length;
var _cG1 = 0,
_dG1 = 0;
for (var _zF1 = 0, _6F1 = _aG1.length; _zF1 < _6F1; _zF1++) {
var _eG1 = _aG1[_zF1];
var _WC1 = _iE1._cE1(_eG1["slot"]);
if (_WC1 == -1) throw "Slot not found: " + _eG1["slot"];
while (_cG1 != _WC1) _bG1[_dG1++] = _cG1++;
_Tg[_cG1 + _eG1["offset"]] = _cG1++
}
while (_cG1 < _8G1) _bG1[_dG1++] = _cG1++;
for (var _zF1 = _8G1 - 1; _zF1 >= 0; _zF1--)
if (_Tg[_zF1] == -1) _Tg[_zF1] = _bG1[--_dG1]
}
_Ey._GD1(_aD1++, _9G1["time"], _Tg)
}
_Ne.push(_Ey);
duration = Math.max(duration, _Ey.frames[_Ey._FD1() - 1])
}
var _2D1 = map["events"];
if (_2D1) {
var _Ey = new _7e._XD1(_2D1.length);
var _aD1 = 0;
for (var _u2 = 0, _df = _2D1.length; _u2 < _df; _u2++) {
var _PF1 = _2D1[_u2];
var _Gy = _iE1._fE1(_PF1["name"]);
if (!_Gy) throw "Event not found: " + _PF1["name"];
var event = new _7e._Iy(_Gy);
event._qE1 = _PF1.hasOwnProperty("int") ? _PF1["int"] : _Gy._qE1;
event._rE1 = _PF1.hasOwnProperty("float") ? _PF1["float"] : _Gy._rE1;
event._sE1 = _PF1.hasOwnProperty("string") ? _PF1["string"] : _Gy._sE1;
_Ey._GD1(_aD1++, _PF1["time"], event)
}
_Ne.push(_Ey);
duration = Math.max(duration, _Ey.frames[_Ey._FD1() - 1])
}
_iE1._be.push(new _7e._0D1(name, _Ne, duration))
},
_0G1: function(_Ey, _aD1, __F1) {
var _fG1 = __F1["curve"];
if (!_fG1) return;
if (_fG1 == "stepped") _Ey._8D1._bD1(_aD1);
else if (_fG1 instanceof Array) _Ey._8D1._cD1(_aD1, _fG1[0], _fG1[1], _fG1[2], _fG1[3])
},
_LF1: function(_gG1, _hG1) {
if (_gG1.length != 8) throw "Color hexidecimal length must be 8, recieved: " + _gG1;
return parseInt(_gG1.substring(_hG1 * 2, (_hG1 * 2) + 2), 16) / 255
},
_UF1: function(map, name, scale) {
var _An = map[name];
var _5D1 = [];
_5D1.length = _An.length;
var _u2 = 0,
_df = _An.length;
if (scale == 1) {
for (; _u2 < _df; _u2++) _5D1[_u2] = _An[_u2]
} else {
for (; _u2 < _df; _u2++) _5D1[_u2] = _An[_u2] * scale
}
return _5D1
},
_VF1: function(map, name) {
var _An = map[name];
var _5D1 = [];
_5D1.length = _An.length;
for (var _u2 = 0, _df = _An.length; _u2 < _df; _u2++) _5D1[_u2] = _An[_u2] | 0;
return _5D1
}
};
_7e._ug = function(_iG1, _jG1) {
this._jG1 = _jG1;
this._kG1 = [];
this._lG1 = [];
var _mG1 = new _7e._nG1(_iG1);
var _oG1 = [];
_oG1.length = 4;
var _ah = null;
while (!0) {
var _pG1 = _mG1._qG1();
if (_pG1 == null) break;
_pG1 = _mG1.trim(_pG1);
if (_pG1.length == 0) _ah = null;
else if (!_ah) {
_ah = new _7e._rG1();
_ah.name = _pG1;
if (_mG1._sG1(_oG1) == 2) {
_ah.width = parseInt(_oG1[0]);
_ah.height = parseInt(_oG1[1]);
_mG1._sG1(_oG1)
}
_ah._tG1 = _7e._ug._Sj[_oG1[0]];
_mG1._sG1(_oG1);
_ah._uG1 = _7e._ug._vG1[_oG1[0]];
_ah._wG1 = _7e._ug._vG1[_oG1[1]];
var _H9 = _mG1._xG1();
_ah._yG1 = _7e._ug._zG1._AG1;
_ah._BG1 = _7e._ug._zG1._AG1;
if (_H9 == "x") _ah._yG1 = _7e._ug._zG1.repeat;
else if (_H9 == "y") _ah._BG1 = _7e._ug._zG1.repeat;
else if (_H9 == "xy") _ah._yG1 = _ah._BG1 = _7e._ug._zG1.repeat;
_jG1.load(_ah, _pG1, this);
this._kG1.push(_ah)
} else {
var _Yg = new _7e._CG1();
_Yg.name = _pG1;
_Yg._ah = _ah;
_Yg.rotate = _mG1._xG1() == "true";
_mG1._sG1(_oG1);
var _w2 = parseInt(_oG1[0]);
var _x2 = parseInt(_oG1[1]);
_mG1._sG1(_oG1);
var width = parseInt(_oG1[0]);
var height = parseInt(_oG1[1]);
_Yg._6h = _w2 / _ah.width;
_Yg._8h = _x2 / _ah.height;
if (_Yg.rotate) {
_Yg._s_ = (_w2 + height) / _ah.width;
_Yg._Uh = (_x2 + width) / _ah.height
} else {
_Yg._s_ = (_w2 + width) / _ah.width;
_Yg._Uh = (_x2 + height) / _ah.height
}
_Yg._w2 = _w2;
_Yg._x2 = _x2;
_Yg.width = Math.abs(width);
_Yg.height = Math.abs(height);
if (_mG1._sG1(_oG1) == 4) {
_Yg._DG1 = [parseInt(_oG1[0]), parseInt(_oG1[1]), parseInt(_oG1[2]), parseInt(_oG1[3])];
if (_mG1._sG1(_oG1) == 4) {
_Yg._EG1 = [parseInt(_oG1[0]), parseInt(_oG1[1]), parseInt(_oG1[2]), parseInt(_oG1[3])];
_mG1._sG1(_oG1)
}
}
_Yg._FG1 = parseInt(_oG1[0]);
_Yg._GG1 = parseInt(_oG1[1]);
_mG1._sG1(_oG1);
_Yg._HG1 = parseInt(_oG1[0]);
_Yg._IG1 = parseInt(_oG1[1]);
_Yg.index = parseInt(_mG1._xG1());
this._lG1.push(_Yg)
}
}
};
_7e._ug.prototype = {
_JG1: function(name) {
var _lG1 = this._lG1;
for (var _u2 = 0, _df = _lG1.length; _u2 < _df; _u2++)
if (_lG1[_u2].name == name) return _lG1[_u2];
return null
},
_KG1: function() {
var _kG1 = this._kG1;
for (var _u2 = 0, _df = _kG1.length; _u2 < _df; _u2++) this._jG1._LG1(_kG1[_u2]._tg)
},
_0F1: function(_ah) {
var _lG1 = this._lG1;
for (var _u2 = 0, _df = _lG1.length; _u2 < _df; _u2++) {
var _Yg = _lG1[_u2];
if (_Yg._ah != _ah) continue;
_Yg._6h = _Yg._w2 / _ah.width;
_Yg._8h = _Yg._x2 / _ah.height;
if (_Yg.rotate) {
_Yg._s_ = (_Yg._w2 + _Yg.height) / _ah.width;
_Yg._Uh = (_Yg._x2 + _Yg.width) / _ah.height
} else {
_Yg._s_ = (_Yg._w2 + _Yg.width) / _ah.width;
_Yg._Uh = (_Yg._x2 + _Yg.height) / _ah.height;
}
}
}
};
_7e._ug._Sj = {
alpha: 0,
_MG1: 1,
_NG1: 2,
_OG1: 3,
_PG1: 4,
_QG1: 5,
_RG1: 6
};
_7e._ug._vG1 = {
_SG1: 0,
_Kg1: 1,
_TG1: 2,
_UG1: 3,
_VG1: 4,
_WG1: 5,
_XG1: 6
};
_7e._ug._zG1 = {
_YG1: 0,
_AG1: 1,
repeat: 2
};
_7e._rG1 = function() {};
_7e._rG1.prototype = {
name: null,
_tG1: null,
_uG1: null,
_wG1: null,
_yG1: null,
_BG1: null,
_tg: null,
width: 0,
height: 0
};
_7e._CG1 = function() {};
_7e._CG1.prototype = {
_ah: null,
name: null,
_w2: 0,
_x2: 0,
width: 0,
height: 0,
_6h: 0,
_8h: 0,
_s_: 0,
_Uh: 0,
_HG1: 0,
_IG1: 0,
_FG1: 0,
_GG1: 0,
index: 0,
rotate: !1,
_DG1: null,
_EG1: null
};
_7e._nG1 = function(text) {
var _gv = text.replace("\r\n", "\n");
_gv = _gv.replace("\r", "\n");
this._ZG1 = text.split("\n")
};
_7e._nG1.prototype = {
index: 0,
trim: function(value) {
return value.trim()
},
_qG1: function() {
if (this.index >= this._ZG1.length) return null;
return this._ZG1[this.index++]
},
_xG1: function() {
var _pG1 = this._qG1();
var __C1 = _pG1.indexOf(":");
if (__C1 == -1) throw "Invalid line: " + _pG1;
return this.trim(_pG1.substring(__C1 + 1))
},
_sG1: function(_oG1) {
var _pG1 = this._qG1();
var __C1 = _pG1.indexOf(":");
if (__C1 == -1) throw "Invalid line: " + _pG1;
var _u2 = 0,
__G1 = __C1 + 1;
for (; _u2 < 3; _u2++) {
var _0H1 = _pG1.indexOf(",", __G1);
if (_0H1 == -1) break;
_oG1[_u2] = this.trim(_pG1.substr(__G1, _0H1 - __G1));
__G1 = _0H1 + 1
}
_oG1[_u2] = this.trim(_pG1.substring(__G1));
return _u2 + 1
}
};
_7e._wg = function(_1H1) {
this._1H1 = _1H1
};
_7e._wg.prototype = {
_SF1: function(_jE1, name, _vE1) {
var _Yg = this._1H1._JG1(name);
if (!_Yg) throw "Region not found in atlas: " + _vE1 + " (region attachment: " + name + ")";
var _Ug = new _7e._uE1(name);
_Ug._tg = _Yg;
_Ug._CE1(_Yg._6h, _Yg._8h, _Yg._s_, _Yg._Uh, _Yg.rotate);
_Ug._wE1 = _Yg._HG1;
_Ug._xE1 = _Yg._IG1;
_Ug._yE1 = _Yg.width;
_Ug._zE1 = _Yg.height;
_Ug._AE1 = _Yg._FG1;
_Ug._BE1 = _Yg._GG1;
return _Ug
},
_TF1: function(_jE1, name, _vE1) {
var _Yg = this._1H1._JG1(name);
if (!_Yg) throw "Region not found in atlas: " + _vE1 + " (mesh attachment: " + name + ")";
var _Ug = new _7e._SE1(name);
_Ug._tg = _Yg;
_Ug._VE1 = _Yg._6h;
_Ug._WE1 = _Yg._8h;
_Ug._XE1 = _Yg._s_;
_Ug._YE1 = _Yg._Uh;
_Ug._ZE1 = _Yg.rotate;
_Ug._wE1 = _Yg._HG1;
_Ug._xE1 = _Yg._IG1;
_Ug._yE1 = _Yg.width;
_Ug._zE1 = _Yg.height;
_Ug._AE1 = _Yg._FG1;
_Ug._BE1 = _Yg._GG1;
return _Ug
},
_WF1: function(_jE1, name, _vE1) {
var _Yg = this._1H1._JG1(name);
if (!_Yg) throw "Region not found in atlas: " + _vE1 + " (skinned mesh attachment: " + name + ")";
var _Ug = new _7e._3F1(name);
_Ug._tg = _Yg;
_Ug._VE1 = _Yg._6h;
_Ug._WE1 = _Yg._8h;
_Ug._XE1 = _Yg._s_;
_Ug._YE1 = _Yg._Uh;
_Ug._ZE1 = _Yg.rotate;
_Ug._wE1 = _Yg._HG1;
_Ug._xE1 = _Yg._IG1;
_Ug._yE1 = _Yg.width;
_Ug._zE1 = _Yg.height;
_Ug._AE1 = _Yg._FG1;
_Ug._BE1 = _Yg._GG1;
return _Ug
},
_YF1: function(_jE1, name) {
return new _7e._aF1(name)
}
};
_7e._ee = function() {
this._2H1 = [];
this._ef = [];
this.__e = []
};
_7e._ee.prototype = {
_0f: 0,
_3f: 0,
_2f: 0,
_4f: 0,
_Pe: function(_Ee, _3H1) {
var _Rg = _Ee._Rg;
var _8G1 = _Rg.length;
var _w2 = _Ee._w2,
_x2 = _Ee._x2;
var __e = this.__e;
var _2H1 = this._2H1;
var _ef = this._ef;
__e.length = 0;
for (var _u2 = 0, _df = _ef.length; _u2 < _df; _u2++) _2H1.push(_ef[_u2]);
_ef.length = 0;
for (var _u2 = 0; _u2 < _8G1; _u2++) {
var _Sg = _Rg[_u2];
var _4H1 = _Sg._Ug;
if (!_4H1 || _4H1.type != _7e._Xg._tE1) continue;
__e.push(_4H1);
var _5H1 = _2H1.length,
_MX;
if (_5H1 > 0) {
_MX = _2H1[_5H1 - 1];
_2H1.splice(_5H1 - 1, 1)
} else _MX = [];
_ef.push(_MX);
_MX.length = _4H1._2h.length;
_4H1._fh(_w2, _x2, _Sg._4h, _MX)
}
if (_3H1) this._6H1()
},
_6H1: function() {
var _ef = this._ef;
var _0f = Number.MAX_VALUE,
_3f = Number.MAX_VALUE,
_2f = Number.MIN_VALUE,
_4f = Number.MIN_VALUE;
for (var _u2 = 0, _df = _ef.length; _u2 < _df; _u2++) {
var _2h = _ef[_u2];
for (var _zF1 = 0, _6F1 = _2h.length; _zF1 < _6F1; _zF1 += 2) {
var _w2 = _2h[_zF1];
var _x2 = _2h[_zF1 + 1];
_0f = Math.min(_0f, _w2);
_3f = Math.min(_3f, _x2);
_2f = Math.max(_2f, _w2);
_4f = Math.max(_4f, _x2)
}
}
this._0f = _0f;
this._3f = _3f;
this._2f = _2f;
this._4f = _4f
},
_7H1: function(_w2,
_x2) {
return _w2 >= this._0f && _w2 <= this._2f && _x2 >= this._3f && _x2 <= this._4f
},
_8H1: function(_hf, _if, _jf, _kf) {
var _0f = this._0f,
_3f = this._3f,
_2f = this._2f,
_4f = this._4f;
if ((_hf <= _0f && _jf <= _0f) || (_if <= _3f && _kf <= _3f) || (_hf >= _2f && _jf >= _2f) || (_if >= _4f && _kf >= _4f)) return !1;
var _gf = (_kf - _if) / (_jf - _hf);
var _x2 = _gf * (_0f - _hf) + _if;
if (_x2 > _3f && _x2 < _4f) return !0;
_x2 = _gf * (_2f - _hf) + _if;
if (_x2 > _3f && _x2 < _4f) return !0;
var _w2 = (_3f - _if) / _gf + _hf;
if (_w2 > _0f && _w2 < _2f) return !0;
_w2 = (_4f - _if) / _gf + _hf;
if (_w2 > _0f && _w2 < _2f) return !0;
return !1
},
_9H1: function(_aH1) {
return this._0f < _aH1._2f && this._2f > _aH1._0f && this._3f < _aH1._4f && this._4f > _aH1._3f
},
_Kf: function(_w2, _x2) {
var _ef = this._ef;
for (var _u2 = 0, _df = _ef.length; _u2 < _df; _u2++)
if (this._bH1(_ef[_u2], _w2, _x2)) return this.__e[_u2];
return null
},
_mf: function(_hf, _if, _jf, _kf) {
var _ef = this._ef;
for (var _u2 = 0, _df = _ef.length; _u2 < _df; _u2++)
if (this._cH1(_ef[_u2], _hf, _if, _jf, _kf)) return this.__e[_u2];
return null
},
_bH1: function(_MX, _w2, _x2) {
var _6F1 = _MX.length;
var _dH1 = _6F1 - 2;
var _eH1 = !1;
for (var _zF1 = 0; _zF1 < _6F1; _zF1 += 2) {
var _fH1 = _MX[_zF1 + 1];
var _gH1 = _MX[_dH1 + 1];
if ((_fH1 < _x2 && _gH1 >= _x2) || (_gH1 < _x2 && _fH1 >= _x2)) {
var _hH1 = _MX[_zF1];
if (_hH1 + (_x2 - _fH1) / (_gH1 - _fH1) * (_MX[_dH1] - _hH1) < _w2) _eH1 = !_eH1
}
_dH1 = _zF1
}
return _eH1
},
_cH1: function(_MX, _hf, _if, _jf, _kf) {
var _6F1 = _MX.length;
var _iH1 = _hf - _jf,
_jH1 = _if - _kf;
var _kH1 = _hf * _kf - _if * _jf;
var _hp = _MX[_6F1 - 2],
_ip = _MX[_6F1 - 1];
for (var _zF1 = 0; _zF1 < _6F1; _zF1 += 2) {
var _lH1 = _MX[_zF1],
_mH1 = _MX[_zF1 + 1];
var _nH1 = _hp * _mH1 - _ip * _lH1;
var _oH1 = _hp - _lH1,
_pH1 = _ip - _mH1;
var _qH1 = _iH1 * _pH1 - _jH1 * _oH1;
var _w2 = (_kH1 * _oH1 - _iH1 * _nH1) / _qH1;
if (((_w2 >= _hp && _w2 <= _lH1) || (_w2 >= _lH1 && _w2 <= _hp)) && ((_w2 >= _hf && _w2 <= _jf) || (_w2 >= _jf && _w2 <= _hf))) {
var _x2 = (_kH1 * _pH1 - _jH1 * _nH1) / _qH1;
if (((_x2 >= _ip && _x2 <= _mH1) || (_x2 >= _mH1 && _x2 <= _ip)) && ((_x2 >= _if && _x2 <= _kf) || (_x2 >= _kf && _x2 <= _if))) return !0
}
_hp = _lH1;
_ip = _mH1
}
return !1
},
_rH1: function(_Ug) {
var index = this.__e.indexOf(_Ug);
return index == -1 ? null : this._ef[index];
},
_sH1: function() {
return this._2f - this._0f
},
_tH1: function() {
return this._4f - this._3f
}
};
var _uH1 = 0,
_vH1 = 1,
_wH1 = 2,
_xH1 = 3,
_yH1 = 4,
_zH1 = 5,
_AH1 = 6,
_BH1 = 7,
_CH1 = 8,
_DH1 = 9;
var _EH1 = 0,
_FH1 = 1,
_GH1 = 2,
_HH1 = 3;
function _IH1(_Pj, _dn) {
this.type = _Pj;
this.id = _dn;
this._du1 = null
};
_IH1.prototype._JH1 = function(_Vt1, _KH1, _LH1, _MH1, _NH1) {
var _OH1 = _KH1.getInt32(_LH1, _MH1);
_LH1 += 4;
var width = _KH1.getInt32(_LH1, _MH1);
_LH1 += 4;
var height = _KH1.getInt32(_LH1, _MH1);
_LH1 += 4;
var _PH1 = _KH1.getInt32(_LH1, _MH1);
_LH1 += 4;
var _QH1 = _KH1.getInt32(_LH1, _MH1);
_LH1 += 4;
var _RH1 = _KH1.getInt32(_LH1, _MH1);
_LH1 += 4;
var _SH1 = _LH1;
var _TH1 = new Uint8Array(_Vt1);
var _UH1 = (_PH1 > 0) ? new Uint8Array(_Vt1, _LH1, _PH1) : null;
_LH1 += _PH1;
var _VH1 = (_QH1 > 0) ? new Uint8Array(_Vt1, _LH1, _QH1) : null;
_LH1 += _QH1;
var _WH1 = (_RH1 > 0) ? new Uint8Array(_Vt1, _LH1, _RH1) : null;
_LH1 += _RH1;
this._XH1(_OH1, width, height, _UH1, _VH1, _WH1, _NH1);
_LH1 = _SH1 + (((_PH1 + _QH1 + _RH1) + 3) & ~3);
return _LH1
};
_IH1.prototype._YH1 = function(_5F, _bF) {
var _xf = new ArrayBuffer(4);
var _Wg = new Uint32Array(_xf);
var _v2 = new Uint8Array(_xf);
_Wg[0] = 0xdeadbeef;
if (_v2[0] == 0xef) {
return (((_5F & 0xff) << 8) | (_bF & 0xff))
}
if (_v2[0] == 0xde) {
return (((_bF & 0xff) << 8) | (_5F & 0xff))
}
};
_IH1.prototype._ZH1 = function(__H1) {
try {
do {
if (__H1[1] == 0xd9) {
__H1 = __H1.subarray(2)
} else if (__H1[1] == 0xd8) {
if ((__H1[6] === 0x4a) && (__H1[7] === 0x46) && (__H1[8] === 0x49) && (__H1[9] === 0x46)) {
var _y2 = this._YH1(__H1[14], __H1[15]);
var _z2 = this._YH1(__H1[16], __H1[17]);
var _0I1 = {
width: _y2,
height: _z2,
body: __H1
};
return _0I1
}
__H1 = __H1.subarray(4 + this._YH1(__H1[4], __H1[5]))
} else {
__H1 = __H1.subarray(2 + this._YH1(__H1[2], __H1[3]));
}
} while ((__H1.byteLength >= 0) && (__H1[0] == 0xff))
} catch (e) {
debug(e.message)
}
var _0I1 = {
width: _y2,
height: _z2,
body: __H1
};
return _0I1
};
_IH1.prototype._XH1 = function(_Pj,
_bg, _cg, __H1, _1I1, _2I1, _3I1) {
switch (_Pj) {
case _yH1:
{
this._du1 = this._4I1(_bg, _cg, __H1, "gif")
}
break;
case _xH1:
{
this._du1 = this._4I1(_bg, _cg, __H1, "png")
}
break;
case _vH1:
case _uH1:
{
this._du1 = this._4I1(_bg, _cg, __H1, "jpeg")
}
break;
case _wH1:
{
var _0I1 = this._ZH1(__H1);
this._du1 = this._4I1(_0I1.width, _0I1.height, _0I1.body, "jpeg", function(_gM) {
var _5I1 = String.fromCharCode.apply(null, new Uint16Array(_1I1));
var _5I1 = _5I1.split('').map(function(e) {
return e.charCodeAt(0)
});
var _6I1 = window["Zlib"];
var _7I1 = new _6I1["Inflate"](_5I1);
var _8I1 = _7I1["decompress"]();
this._du1 = _aq1(_gM, _8I1)
})
}
break;
case _zH1:
case _CH1:
{
this._du1 = null
}
break;
case _AH1:
case _BH1:
case _DH1:
{
var _du1 = new Image();
var _mj = _3g._6q1(_du1, __H1, _bg, _cg);
_du1._Bh = _mj;
_du1._qj = _bg;
_du1._rj = _cg;
this._du1 = _du1
}
break;
default:
break
}
};
_IH1.prototype._4I1 = function(_bg, _cg, __H1, _9I1, _oC, _aI1) {
var _bI1 = new Uint16Array(__H1);
var _XC = "";
for (var _u2 = 0, _sf = _bI1.length; _u2 < _sf; _u2++) {
_XC += String.fromCharCode(_bI1[_u2])
}
var _cI1 = window._dI1(_XC);
var _eI1 = "data:image/" + _9I1 + ";base64," + _cI1;
var img = new Image();
img.onload = function() {
var _Zo = {
_hg: img
};
_Ch(_Zo);
if (_oC) {
_oC(_Zo)
}
};
img.onerror = function(e) {
debug(e);
if (_aI1) {
_aI1(e)
}
};
img.src = _eI1;
return img
};
function _aq1(_gM, _fj) {
var _mj = _3g._aq1(_gM._hg._Bh, _fj);
_gM._hg._Bh = _mj;
_gM._hg._qj = _mj._cq1;
_gM._hg._rj = _mj._dq1;
return _gM._hg
}
var _fI1 = 0,
_gI1 = 1,
_hI1 = 2;
var _iI1 = 0,
_jI1 = 1,
_kI1 = 2,
_lI1 = 3;
var _mI1 = 0,
_nI1 = 1;
var _oI1 = {
_JS: 0,
_KS: 0,
version: 1
};
function _pI1(_Pj, _dn) {
this.type = _Pj;
this.id = _dn
};
_pI1.prototype._qI1 = function(_KH1, _LH1, _MH1, _rI1) {
this._0f = _KH1.getFloat32(_LH1,
_MH1);
_LH1 += 4;
this._2f = _KH1.getFloat32(_LH1, _MH1);
_LH1 += 4;
this._3f = _KH1.getFloat32(_LH1, _MH1);
_LH1 += 4;
this._4f = _KH1.getFloat32(_LH1, _MH1);
_LH1 += 4;
var _sI1 = _KH1.getInt32(_LH1, _MH1);
_LH1 += 4;
this._tI1 = [];
for (var _u2 = 0; _u2 < _sI1; _u2++) {
var _uI1 = _KH1.getInt32(_LH1, _MH1);
_LH1 += 4;
var _vI1 = _KH1.getInt32(_LH1, _MH1);
_LH1 += 4;
var _wI1 = _KH1.getInt32(_LH1, _MH1);
_LH1 += 4;
var _xI1 = {
_uI1: _uI1,
_vI1: _vI1,
_wI1: _wI1
};
_xI1._yI1 = (_uI1 > 0) ? [] : null;
_xI1._zI1 = (_vI1 > 0) ? [] : null;
_xI1._AI1 = (_wI1 > 0) ? [] : null;
_LH1 = this._BI1(_xI1, _KH1, _LH1,
_MH1, _rI1);
_LH1 = this._CI1(_xI1, _KH1, _LH1, _MH1);
_LH1 = this._DI1(_xI1, _KH1, _LH1, _MH1);
this._tI1.push(_xI1)
}
return _LH1
};
_pI1.prototype._BI1 = function(_EI1, _KH1, _LH1, _MH1, _rI1) {
_EI1._yI1 = [];
for (var _u2 = 0; _u2 < _EI1._uI1; _u2++) {
var _FI1 = _KH1.getInt32(_LH1, _MH1);
_LH1 += 4;
var _GI1 = null;
switch (_FI1) {
case _jI1:
{
_GI1 = {
type: _jI1
};
var _Mp = _KH1.getUint8(_LH1, _MH1);
_LH1++;
var _Np = _KH1.getUint8(_LH1, _MH1);
_LH1++;
var _Op = _KH1.getUint8(_LH1, _MH1);
_LH1++;
var alpha = _KH1.getUint8(_LH1, _MH1);
_LH1++;
_GI1._Dg = (_Mp | (_Np << 8) | (_Op << 16) | (alpha << 24))
}
break;
case _kI1:
{
_GI1 = {
type: _kI1
};
_GI1._HI1 = _KH1.getInt32(_LH1, _MH1);
_LH1 += 4;
var _II1 = [];
for (var _gf = 0; _gf < 9; _gf++) {
_II1[_gf] = _KH1.getFloat32(_LH1, _MH1);
_LH1 += 4
}
_GI1._II1 = new _Ws();
_GI1._II1._gf[_cu] = _II1[0];
_GI1._II1._gf[_du] = _II1[1];
_GI1._II1._gf[_fu] = _II1[2];
_GI1._II1._gf[_gu] = _II1[3];
_GI1._II1._gf[_5t] = _II1[4];
_GI1._II1._gf[_iu] = _II1[5];
_GI1._JI1 = _KH1.getInt32(_LH1, _MH1);
_LH1 += 4;
_GI1._KI1 = [];
for (var _gf = 0; _gf < _GI1._JI1; _gf++) {
var _yg1 = _KH1.getInt32(_LH1, _MH1);
_LH1 += 4;
var _Mp = _KH1.getUint8(_LH1, _MH1);
_LH1++;
var _Np = _KH1.getUint8(_LH1, _MH1);
_LH1++;
var _Op = _KH1.getUint8(_LH1, _MH1);
_LH1++;
var alpha = _KH1.getUint8(_LH1, _MH1);
_LH1++;
_GI1._KI1.push({
_yg1: _yg1,
_Dg: (_Mp | (_Np << 8) | (_Op << 16) | (alpha << 24))
})
}
_GI1._nj = null;
this._LI1(_GI1)
}
break;
case _lI1:
{
_GI1 = {
type: _lI1
};
_GI1._MI1 = _KH1.getInt32(_LH1, _MH1);
_LH1 += 4;
_GI1._NI1 = _KH1.getInt32(_LH1, _MH1);
_LH1 += 4;
_GI1._OI1 = -1;
for (var index = 0; index < _rI1.length; index++) {
if (_rI1[index].id === _GI1._NI1) {
_GI1._OI1 = index;
break
}
}
var _II1 = [];
for (var _gf = 0; _gf < 9; _gf++) {
_II1[_gf] = _KH1.getFloat32(_LH1,
_MH1);
_LH1 += 4
}
_GI1._II1 = new _Ws();
_GI1._II1._gf[_cu] = _II1[0];
_GI1._II1._gf[_du] = _II1[1];
_GI1._II1._gf[_fu] = _II1[2];
_GI1._II1._gf[_gu] = _II1[3];
_GI1._II1._gf[_5t] = _II1[4];
_GI1._II1._gf[_iu] = _II1[5]
}
break
}
_EI1._yI1.push(_GI1)
}
return _LH1
};
_pI1.prototype._LI1 = function(_PI1) {
if ((_PI1 === null) || (_PI1 === undefined)) {
return
}
var _QI1 = 256,
_RI1 = 1,
_SI1 = 64,
_TI1 = 64;
var _UI1 = [];
var width, height;
switch (_PI1._HI1) {
default: return;
case _mI1:
{
width = _QI1;
height = _RI1;
for (var _u2 = 0; _u2 < _QI1; _u2++) {
_UI1[_u2] = this._VI1(_PI1, _u2)
}
}
break;
case _nI1:
{
width = _SI1;
height = _TI1;
var _WI1 = (_SI1 - 1) / 2;
var _XI1 = (_TI1 - 1) / 2;
var _NU = _vf(_WI1, _XI1);
for (var _Bf = 0; _Bf < _TI1; _Bf++) {
for (var _u2 = 0; _u2 < _SI1; _u2++) {
var _Vw1 = _u2 - _WI1;
var _Tw1 = _Bf - _XI1;
var _nE = Math.sqrt(_Vw1 * _Vw1 + _Tw1 * _Tw1);
_nE /= _NU;
var _yg1 = 255 * _nE;
_UI1[(_Bf * _SI1) + _u2] = this._VI1(_PI1, _yg1)
}
}
}
break
}
_PI1._nj = _YI1(width, height, _UI1)
};
function _YI1(_6n, _7n, _7q1) {
var _ML = document.createElement(_rv);
var _NL = _ML.getContext('2d');
_OL(_NL);
var _mj = _3g._8q1(_ML, _7q1, _6n, _7n);
var _Zo = new __o();
_Zo._w2 = 0;
_Zo._x2 = 0;
_Zo._y2 = _mj._cq1;
_Zo._z2 = _mj._dq1;
_Zo._O4 = 0;
_Zo._P4 = 0;
_Zo._Q4 = _Zo._y2;
_Zo._R4 = _Zo._z2;
_Zo._S4 = _6n;
_Zo._T4 = _7n;
_Zo._U4 = _SL(_ML);
_Zo._hg = _ig[_Zo._U4];
_Zo._hg._Bh = _mj;
_Zo._hg._qj = _ML.width;
_Zo._hg._rj = _ML.height;
return _Zo
}
_pI1.prototype._VI1 = function(_PI1, _ZI1) {
if (_PI1._JI1 <= 0) {
return 0
}
_ZI1 = (_ZI1 < 0) ? 0 : (_ZI1 > 255) ? 255 : _ZI1;
if (_ZI1 < _PI1._KI1[0]._yg1) {
return _PI1._KI1[0]._Dg;
}
for (var _u2 = 1; _u2 < _PI1._JI1; _u2++) {
var __I1 = _PI1._KI1[_u2];
if (__I1._yg1 >= _ZI1) {
var _0J1 = _PI1._KI1[_u2 - 1];
var _1J1 = 0;
if (__I1._yg1 != _0J1._yg1) {
_1J1 = ((_ZI1 - _0J1._yg1) << 8) / (__I1._yg1 - _0J1._yg1)
}
var _2J1 = 256 - _1J1;
var _Dg = __I1._Dg;
var _3J1 = _0J1._Dg;
var _4J1 = [];
_4J1[0] = ((_Dg & 0xff) * _1J1) >> 8;
_4J1[1] = (((_Dg >> 8) & 0xff) * _1J1) >> 8;
_4J1[2] = (((_Dg >> 16) & 0xff) * _1J1) >> 8;
_4J1[3] = (((_Dg >> 24) & 0xff) * _1J1) >> 8;
_4J1[0] += ((_3J1 & 0xff) * _2J1) >> 8;
_4J1[1] += (((_3J1 >> 8) & 0xff) * _2J1) >> 8;
_4J1[2] += (((_3J1 >> 16) & 0xff) * _2J1) >> 8;
_4J1[3] += (((_3J1 >> 24) & 0xff) * _2J1) >> 8;
var _5J1 = _4J1[0] | (_4J1[1] << 8) | (_4J1[2] << 16) | (_4J1[3] << 24);
return _5J1
}
}
return _PI1._KI1[_PI1._JI1 - 1]._Dg
};
_pI1.prototype._CI1 = function(_EI1,
_KH1, _LH1, _MH1) {
_EI1._zI1 = [];
for (var _u2 = 0; _u2 < _EI1._vI1; _u2++) {
var _Mp = _KH1.getUint8(_LH1, _MH1);
_LH1++;
var _Np = _KH1.getUint8(_LH1, _MH1);
_LH1++;
var _Op = _KH1.getUint8(_LH1, _MH1);
_LH1++;
var alpha = _KH1.getUint8(_LH1, _MH1);
_LH1++;
_EI1._zI1.push({
_Dg: (_Mp | (_Np << 8) | (_Op << 16) | (alpha << 24))
})
}
return _LH1
};
_pI1.prototype._DI1 = function(_EI1, _KH1, _LH1, _MH1) {
var _u2, _gf;
_EI1._AI1 = [];
for (_u2 = 0; _u2 < _EI1._wI1; _u2++) {
var _6J1 = {};
_EI1._AI1.push(_6J1);
_6J1._7J1 = _KH1.getInt32(_LH1, _MH1);
_LH1 += 4;
_6J1._8J1 = _KH1.getInt32(_LH1,
_MH1);
_LH1 += 4;
_6J1._9J1 = _KH1.getInt32(_LH1, _MH1);
_LH1 += 4;
_6J1._aJ1 = _KH1.getInt32(_LH1, _MH1);
_LH1 += 4;
_6J1._bJ1 = _KH1.getInt32(_LH1, _MH1);
_LH1 += 4;
_6J1._cJ1 = _KH1.getInt32(_LH1, _MH1);
_LH1 += 4;
_6J1._dJ1 = _KH1.getInt32(_LH1, _MH1);
_LH1 += 4;
_6J1._eJ1 = _KH1.getInt32(_LH1, _MH1);
_LH1 += 4;
if (_oI1.version >= 2) {
_6J1._fJ1 = _KH1.getInt32(_LH1, _MH1);
_LH1 += 4;
_6J1._gJ1 = _KH1.getInt32(_LH1, _MH1);
_LH1 += 4
}
if (_oI1.version >= 3) {
_6J1._hJ1 = _KH1.getInt32(_LH1, _MH1);
_LH1 += 4;
_6J1._iJ1 = _KH1.getInt32(_LH1, _MH1);
_LH1 += 4
}
_6J1._jJ1 = (_6J1._aJ1 > 0) ? [] : null;
_6J1._kJ1 = (_6J1._bJ1 > 0) ? [] : null;
_6J1._lJ1 = (_6J1._cJ1 > 0) ? [] : null;
_6J1._mJ1 = (_6J1._dJ1 > 0) ? [] : null;
_6J1._nJ1 = (_6J1._eJ1 > 0) ? [] : null;
_6J1._oJ1 = (_6J1._fJ1) ? [] : null;
_6J1._pJ1 = (_6J1._gJ1) ? [] : null;
_6J1._qJ1 = (_6J1._hJ1) ? [] : null;
_6J1._rJ1 = (_6J1._iJ1) ? [] : null;
for (_gf = 0; _gf < _6J1._aJ1 * 2; _gf++) {
_6J1._jJ1[_gf] = _KH1.getFloat32(_LH1, _MH1);
_LH1 += 4
}
for (_gf = 0; _gf < _6J1._bJ1 * 2; _gf++) {
_6J1._sJ1[_gf] = _KH1.getInt32(_LH1, _MH1);
_LH1 += 4
}
for (_gf = 0; _gf < _6J1._cJ1 * 3; _gf++) {
_6J1._lJ1[_gf] = _KH1.getUint32(_LH1, _MH1);
_LH1 += 4
}
for (_gf = 0; _gf < _6J1._dJ1 * 2; _gf++) {
_6J1._mJ1[_gf] = _KH1.getFloat32(_LH1, _MH1);
_LH1 += 4
}
for (_gf = 0; _gf < _6J1._eJ1 * 3; _gf++) {
_6J1._nJ1[_gf] = _KH1.getUint32(_LH1, _MH1);
_LH1 += 4
}
if (_oI1.version >= 2) {
for (_gf = 0; _gf < _6J1._fJ1 * 2; _gf++) {
_6J1._oJ1[_gf] = _KH1.getInt32(_LH1, _MH1);
_LH1 += 4
}
for (_gf = 0; _gf < _6J1._gJ1 * 2; _gf++) {
_6J1._pJ1[_gf] = _KH1.getFloat32(_LH1, _MH1);
_LH1 += 4
}
}
if (_oI1.version >= 3) {
for (_gf = 0; _gf < _6J1._hJ1 * 2; _gf++) {
_6J1._qJ1[_gf] = _KH1.getInt32(_LH1, _MH1);
_LH1 += 4
}
for (_gf = 0; _gf < _6J1._iJ1 * 2; _gf++) {
_6J1._rJ1[_gf] = _KH1.getFloat32(_LH1,
_MH1);
_LH1 += 4
}
}
}
return _LH1
};
var _tJ1 = 1.0 / 20.0;
function _uJ1() {
this._vJ1 = 0;
this._wJ1 = 0;
this._0f = 0;
this._2f = 0;
this._3f = 0;
this._4f = 0;
this._xJ1 = null
};
_uJ1.prototype._yJ1 = function(_KH1, _LH1, _MH1) {
this._vJ1 = _KH1.getInt32(_LH1, _MH1);
_LH1 += 4;
this._wJ1 = _KH1.getInt32(_LH1, _MH1);
_LH1 += 4;
this._0f = _KH1.getFloat32(_LH1, _MH1) * _tJ1;
_LH1 += 4;
this._2f = _KH1.getFloat32(_LH1, _MH1) * _tJ1;
_LH1 += 4;
this._3f = _KH1.getFloat32(_LH1, _MH1) * _tJ1;
_LH1 += 4;
this._4f = _KH1.getFloat32(_LH1, _MH1) * _tJ1;
_LH1 += 4;
var _zJ1, _AJ1, _BJ1;
_zJ1 = _KH1.getInt32(_LH1,
_MH1);
_LH1 += 4;
_AJ1 = _KH1.getInt32(_LH1, _MH1);
_LH1 += 4;
_BJ1 = _KH1.getInt32(_LH1, _MH1);
_LH1 += 4;
this._xJ1 = {
_zJ1: _zJ1,
_AJ1: _AJ1,
_BJ1: _BJ1
};
this._CJ1 = [];
for (var _u2 = 0; _u2 < this._wJ1; _u2++) {
var _DJ1 = {};
this._CJ1.push(_DJ1);
_DJ1._EJ1 = _KH1.getInt32(_LH1, _MH1);
_LH1 += 4;
_DJ1._0f = _KH1.getFloat32(_LH1, _MH1) * _tJ1;
_LH1 += 4;
_DJ1._2f = _KH1.getFloat32(_LH1, _MH1) * _tJ1;
_LH1 += 4;
_DJ1._3f = _KH1.getFloat32(_LH1, _MH1) * _tJ1;
_LH1 += 4;
_DJ1._4f = _KH1.getFloat32(_LH1, _MH1) * _tJ1;
_LH1 += 4;
_DJ1._FJ1 = [];
for (var _Bf = 0; _Bf < _DJ1._EJ1; _Bf++) {
var _JE = {};
_DJ1._FJ1.push(_JE);
_JE._TE = _KH1.getInt32(_LH1, _MH1);
_LH1 += 4;
_JE.index = _KH1.getInt32(_LH1, _MH1);
_LH1 += 4;
_JE._H2 = _KH1.getInt32(_LH1, _MH1);
_LH1 += 4;
_JE._GJ1 = _KH1.getInt32(_LH1, _MH1);
_LH1 += 4;
var _HJ1 = [];
for (var _dZ = 0; _dZ < 4; _dZ++) {
_HJ1[_dZ] = _KH1.getInt32(_LH1, _MH1);
_LH1 += 4
}
var _IJ1 = [];
for (var _dZ = 0; _dZ < 4; _dZ++) {
_IJ1[_dZ] = _KH1.getInt32(_LH1, _MH1);
_LH1 += 4;
}
_JE._JJ1 = [];
_JE._KJ1 = [];
_JE._LJ1 = [];
_JE._JJ1[0] = _HJ1[2];
_JE._KJ1[0] = _IJ1[2];
_JE._LJ1[0] = 0;
_JE._JJ1[1] = _HJ1[1];
_JE._KJ1[1] = _IJ1[1];
_JE._LJ1[1] = _IJ1[1];
_JE._JJ1[2] = _HJ1[0];
_JE._KJ1[2] = _IJ1[0];
_JE._LJ1[2] = _IJ1[0];
_JE._JJ1[3] = _HJ1[3];
_JE._KJ1[3] = _IJ1[3];
_JE._LJ1[3] = _IJ1[3];
_JE._0f = _KH1.getFloat32(_LH1, _MH1) * _tJ1;
_LH1 += 4;
_JE._2f = _KH1.getFloat32(_LH1, _MH1) * _tJ1;
_LH1 += 4;
_JE._3f = _KH1.getFloat32(_LH1, _MH1) * _tJ1;
_LH1 += 4;
_JE._4f = _KH1.getFloat32(_LH1, _MH1) * _tJ1;
_LH1 += 4;
var _II1 = [];
for (var _dZ = 0; _dZ < 9; _dZ++) {
_II1[_dZ] = _KH1.getFloat32(_LH1, _MH1);
_LH1 += 4
}
_JE._II1 = new _Ws();
_JE._II1._gf[_cu] = _II1[0];
_JE._II1._gf[_du] = _II1[1];
_JE._II1._gf[_fu] = _II1[2];
_JE._II1._gf[_gu] = _II1[3];
_JE._II1._gf[_5t] = _II1[4];
_JE._II1._gf[_iu] = _II1[5]
}
}
return _LH1
};
var _MJ1 = -1;
var _Nm = null;
var _NJ1 = 0;
var _OJ1 = 0;
var _PJ1 = {
_w2: 0,
_x2: 0,
_ei: 0
};
var _QJ1 = "en";
function _RJ1(canvas) {
debug = _SJ1;
_bJ = _TJ1;
_Ly = _UJ1;
tizen.systeminfo.getPropertyValue("LOCALE", _VJ1, null);
_9Q = _WJ1;
_bQ = _XJ1;
_dQ = _YJ1;
debug('------- Tizen_Init -------------');
debug('href=' + window.location._ZJ1);
debug('canvas size:' + canvas.width + ',' + canvas.height);
debug('window size:' + window.innerWidth + ',' + window.innerHeight);
debug('clientWidth:' + document.documentElement.clientWidth);
debug('clientHeight:' + document.documentElement.clientHeight);
debug('displayName:' + _cv._W4._j5);
_qR = canvas.width;
_sR = canvas.height;
var __J1 = document.documentElement.clientWidth;
var _0K1 = document.documentElement.clientHeight;
_0K1 -= _OJ1;
if (0) {
var _1K1 = _0K1 / __J1;
var _2K1 = canvas.height / canvas.width;
if (_1K1 > _2K1) {
canvas.width = __J1;
canvas.height = __J1 * _2K1;
_ja(0, (_0K1 - canvas.height) * 0.5)
} else {
canvas.height = _0K1;
canvas.width = _0K1 / _2K1;
_ja((__J1 - canvas.width) * 0.5, 0)
}
} else {
_ja(0, 0);
canvas.width = __J1;
canvas.height = _0K1;
debug("set window rect " + __J1 + "," + _0K1)
}
_Uz = _3K1;
_rP = _4K1;
_5K1();
debug("PushEnable=" + _cv._W4._6K1);
if (_cv._W4._6K1) {
_7K1()
} {
_Nm = _8K1;
}
document.addEventListener("webkitvisibilitychange", _9K1, !1);
if (window["DeviceMotionEvent"]) {
debug("DeviceMotionEvent is supported");
window.addEventListener('devicemotion', _aK1, !1)
} else debug("DeviceMotionEvent NOT supported");
window.addEventListener('tizenhwkey', _bK1, !1);
window._cK1 = _dK1
}
function _UJ1() {
return _QJ1
}
function _VJ1(_eK1) {
var _fK1 = _eK1["language"];
var _gK1 = _fK1.slice(0,
2);
_QJ1 = _gK1
}
function _TJ1() {
debug("game_end");
tizen.application.getCurrentApplication().exit()
}
function _bK1(_vw) {
var _hK1 = 0;
if (_vw['keyName'] == 'back') {
_hK1 = 8
} else if (_vw['keyName'] == 'menu') {
_hK1 = 77
}
if (_hK1 != 0) {
_UE(_hK1);
_YE(_hK1)
}
}
function _dK1() {
console.log("tizenUnload");
_MK()
}
function _iK1() {
var __J1 = document.documentElement.clientWidth;
var _0K1 = document.documentElement.clientHeight;
debug('Tizen_ResizeCanvas: ' + __J1 + ',' + _0K1);
_jO(0, 0, __J1, _0K1)
}
function _aK1(_vw) {
var _jK1 = _vw["accelerationIncludingGravity"];
var _kK1 = 1.0 / 9.81;
_PJ1._w2 = _jK1["x"] * _kK1;
_PJ1._x2 = _jK1["y"] * _kK1;
_PJ1._ei = _jK1["z"] * _kK1
}
function _9K1() {
if (_cv._W4.FlurryId) {
if (document.webkitHidden == !0) {
debug('pause flurry session');
FlurryAgent._lK1()
} else if (document.webkitHidden == !1) {
debug('resume flurry session: ' + _cv._W4.FlurryId);
FlurryAgent.startSession(_cv._W4.FlurryId)
}
}
}
function _mK1() {
tizen.systeminfo.getPropertyValue("DEVICE_ORIENTATION", _nK1, null)
}
function _nK1(_VJ) {
var _VJ = _VJ['status'];
if (_MJ1 != _VJ) {
var _oK1 = Math.abs(_PJ1._ei);
if (_oK1 < 0.75 || _MJ1 == -1) {
_pK1(_VJ)
}
}
}
function _4K1(_uC, _tP, _uP) {
debug("tizenUrlOpen:" + _uC);
var appControl = new tizen["ApplicationControl"]("http://tizen.org/appcontrol/operation/view", _uC);
tizen["application"]["launchAppControl"](appControl, null, function() {
console.log("launch application control succeed")
}, function(e) {
console.log("launch application control failed. reason: " + e.message)
}, null)
}
function _pK1(_qK1) {
debug("orientation changed: " + _qK1);
var _VJ = _cv._W4.RotateCanvas;
if (_MJ1 != -1) {
if (_VJ == 0 && (_qK1 == "LANDSCAPE_PRIMARY" || _qK1 == "LANDSCAPE_SECONDARY")) return 0;
if (_VJ == 1 && (_qK1 == "PORTRAIT_PRIMARY" || _qK1 == "PORTRAIT_SECONDARY")) return 0
}
var _rK1 = document.getElementById("gm4html5_div_id");
var __J1 = document.documentElement.clientWidth;
var _0K1 = document.documentElement.clientHeight;
var _sK1 = !1;
var _nh = _OJ1;
var _mh = 0;
switch (_qK1) {
case "PORTRAIT_PRIMARY":
{
_rK1.style.webkitTransform = "rotate(0deg) translateX(0px) translateY(0px)";
break
}
case "PORTRAIT_SECONDARY":
{
if (_VJ == 0 || _VJ == 2) {
_nh = 0;
_rK1.style.webkitTransform = "rotate(180deg) translateY(-" + _0K1 + "px)"
} else {
_rK1.style.webkitTransform = "rotate(0deg) translateX(0px) translateY(0px)";
}
break
}
case "LANDSCAPE_SECONDARY":
{
if (_VJ == 2) {
_rK1.style.webkitTransform = "rotate(-90deg) translateY(-" + __J1 / 2 + "px) translateX(-" + (_0K1 - __J1 / 2) + "px)";
_sK1 = !0
} else if (_VJ == 1) {
_rK1.style.webkitTransform = "rotate(180deg) translateX(0px) translateY(-" + _0K1 + "px)";
_nh = 0
} else {
_rK1.style.webkitTransform = "rotate(0deg) translateX(0px) translateY(0px)"
}
break
}
case "LANDSCAPE_PRIMARY":
{
if (_VJ == 2) {
_rK1.style.webkitTransform = "rotate(90deg) translateX(" + __J1 / 2 + "px) translateY(-" + __J1 / 2 + "px)";
_sK1 = !0;
_mh = _OJ1
} else {
_rK1.style.webkitTransform = "rotate(0deg) translateX(0px) translateY(0px)"
}
break
}
default:
debug("****** Unknown ori: " + _MJ1);
break
}
if (_sK1) {
_0K1 -= _OJ1;
debug("window_set_rectangle: " + _0K1 + "," + __J1);
_jO(0, 0, _0K1, __J1)
} else {
_0K1 -= _OJ1;
debug("window_set_rectangle: " + __J1 + "," + _0K1);
_jO(0, 0, __J1, _0K1)
}
_MJ1 = _qK1
}
function _8K1(_Km, _Om) {
var _tK1 = _Km.pageX;
var _uK1 = _Km.pageY;
var _VJ = _cv._W4.RotateCanvas;
var __J1 = document.documentElement.clientWidth;
var _0K1 = document.documentElement.clientHeight;
_Om._w2 = _tK1;
_Om._x2 = _uK1;
switch (_MJ1) {
case "PORTRAIT_PRIMARY":
break;
case "PORTRAIT_SECONDARY":
{
if (_VJ == 0 || _VJ == 2) {
_Om._w2 = __J1 - _tK1;
_Om._x2 = _0K1 - _uK1
}
break
}
case "LANDSCAPE_SECONDARY":
{
if (_VJ == 2) {
_Om._w2 = _0K1 - _uK1;
_Om._x2 = _tK1
} else if (_VJ == 1) {
_Om._w2 = __J1 - _tK1;
_Om._x2 = _0K1 - _uK1
}
break
}
case "LANDSCAPE_PRIMARY":
{
if (_VJ == 2) {
_Om._w2 = _uK1;
_Om._x2 = __J1 - _tK1
}
break
}
default:
debug("****** Unknown ori: " + _MJ1);
break
}
}
function _3K1() {
if (_MJ1 == "PORTRAIT_PRIMARY" || _MJ1 == "PORTRAIT_SECONDARY") {
return 1
}
return 0
}
function _SJ1() {
var index;
for (index = 0; index < arguments.length; ++index) {
console.log(arguments[index])
}
}
function _WJ1() {
return _PJ1._w2
}
function _XJ1() {
return _PJ1._x2
}
function _YJ1() {
return _PJ1._ei
}
var _vK1 = "Not Enabled";
var _wK1 = "Not Available";
var _xK1 = "Loading";
var _yK1 = "Available";
var _zK1 = "Processing Order";
function _AK1() {
this._BK1 = _vK1;
this._CK1 = !1;
this._DK1 = "";
this._EK1 = 0;
this._FK1 = !0;
this._GK1 = null;
this._LD = -1
}
var _HK1 = new _AK1();
var _IK1 = 128;
function _5K1() {
_rD = _JK1;
_tD = _KK1;
_uD = _LK1;
_vD = _MK1;
_wD = _NK1;
_bo = _OK1
}
function _OK1() {
var _PK1 = tizen.systeminfo.getCapabilities();
var _QK1 = _PK1["duid"];
return _QK1.toString()
}
function _RK1() {
_sD({
type: _fD,
status: _kD
})
}
function _SK1() {
_sD({
type: _fD,
status: _lD
})
}
_AK1.prototype._TK1 = function(_TC, _UK1) {
this._BK1 = _TC;
if (_UK1 != undefined) {
debug("Tizen IAP State-> " + _TC + " : " + _UK1)
} else {
debug("Tizen IAP State-> " + _TC)
}
};
_AK1.prototype._VK1 = function() {
return this._BK1
};
_AK1.prototype._WK1 = function(_XK1) {
this._FK1 = _cv._W4.IAPSandbox;
if (this._FK1) {
debug("Activating Tizen IAP in SANDBOX mode with groupID:" + _XK1)
} else {
debug("Activating Tizen IAP in COMMERCIAL mode with groupID:" + _XK1);
}
this._DK1 = _XK1;
this._TK1(_xK1);
this._YK1()
};
var _ZK1 = {
onfailure: function() {
console.log("AppControlReplyCB onfailure!");
_HK1._TK1(_wK1);
_RK1()
},
onsuccess: function(__K1) {
if (__K1 != null) {
var data = {};
var _u2;
var length = __K1.length;
for (_u2 = 0; _u2 < length; _u2++) {
data[__K1[_u2]._OC] = __K1[_u2].value + ''
}
var _0L1 = data["_result"];
var _1L1 = _2L1(_0L1);
var method = data["_method"];
debug("IAP callback: method:" + method + " result:" + _0L1 + " " + _1L1);
if (method == 'OnPurchaseItemInitialized') {
_HK1._3L1(data, _0L1)
} else if (method == 'OnPurchaseItemFinished') {
_HK1._4L1(data, _0L1)
} else if (method == 'OnItemInformationListReceived') {
_HK1._5L1(data, _0L1)
} else if (method == 'OnPurchasedItemInformationListReceived') {
_HK1._6L1(data, _0L1)
}
}
}
};
function _2L1(_7L1) {
var _8L1 = parseInt(_7L1, 10);
switch (_8L1) {
case 0:
return ('Success');
case 100:
return ('Request cancelled');
case 200:
return ('Network error occured');
case 9000:
return ('Process error occured');
case 9200:
return ('Service Unavailable');
case 9201:
return ('Item GroupId NotFound');
case 9203:
return ('PaymentId Not Found');
case 9207:
return ('ItemId Not Found');
}
return ('Unknown status code ' + _0L1)
}
_AK1.prototype._9L1 = function(_7q1, _aL1) {
var _Zn = new Object();
_Zn.id = _7q1[_aL1 + '_itemId'];
_Zn.name = _7q1[_aL1 + '_itemName'];
_Zn._bL1 = _7q1[_aL1 + '_itemDownloadUrl'];
_Zn.description = _7q1[_aL1 + '_itemDescription'];
_Zn._AD = "";
var _cL1 = _7q1[_aL1 + '_itemPrice'];
var _dL1 = _7q1[_aL1 + '_currencyUnit'];
var _eL1 = _7q1[_aL1 + '_unitPrecedes'];
var _fL1 = _7q1[_aL1 + '_hasPenny'];
var _gL1 = _cL1.split('.');
_gL1 = _gL1[0] + '.' + _gL1[1].substr(0, 2);
_Zn._zD = _gL1;
return _Zn
};
_AK1.prototype._hL1 = function(_iL1) {
var _xu1 = "{ \"productId\":\"" + _iL1.id + "\"" + ", \"title\":\"" + _iL1.name + "\"" + ", \"price\":\"" + _iL1._zD + "\"" + ", \"description\":\"" + _iL1.description + "\"}";
_sD({
type: _gD,
_RD: _xu1
})
};
_AK1.prototype._jL1 = function(_kL1, _zu1, _lL1, _mL1) {
var _nL1 = 0;
var _oL1 = -3;
var _AD = (_mL1) ? _nL1 : _oL1;
var _xu1 = "{ \"productId\":\"" + _kL1 + "\"" + ", \"purchaseIndex\":" + _zu1 + ", \"purchaseState\":" + _AD + ", \"response\":" + _lL1 + " }";
_sD({
type: _hD,
_RD: _xu1
})
};
var _pL1 = _AK1._5L1;
_AK1.prototype._5L1 = function(_7q1, _yu1) {
if (_yu1 == 0) {
var _qL1 = parseInt(_7q1["_startNumber"]);
var _rL1 = parseInt(_7q1["_endNumber"]);
for (var _u2 = _qL1; _u2 <= _rL1; _u2++) {
var _Zn = this._9L1(_7q1, _u2);
_Zn._AD = "Available";
this._hL1(_Zn)
}
this._TK1(_xK1, "retrieving purchased items...");
this._sL1()
} else {
this._TK1(_wK1, "failed to get buy item list");
_RK1()
}
};
var _tL1 = _AK1._6L1;
_AK1.prototype._6L1 = function(_7q1, _yu1) {
if (_yu1 == 0) {
var _qL1 = parseInt(_7q1["_startNumber"]);
var _rL1 = parseInt(_7q1["_endNumber"]);
for (var _u2 = _qL1; _u2 <= _rL1; _u2++) {
var _Zn = this._9L1(_7q1, _u2);
this._hL1(_Zn);
this._jL1(_Zn.id, -1, 0, !0)
}
this._TK1(_yK1,
"got purchased item list");
_SK1();
this._CK1 = !0
} else {
this._TK1(_yK1, "failed to get purchased item list - user not signed in?");
_SK1();
this._CK1 = !0
}
};
var _uL1 = _AK1._3L1;
_AK1.prototype._3L1 = function(_7q1, _yu1) {
var _vL1 = _7q1['_transactionId'];
if (_yu1 == 0) {
var _wL1 = _7q1['_itemId'];
var _xL1 = [new tizen.ApplicationControlData('_transactionId', [_vL1]), new tizen.ApplicationControlData('_itemId', [_wL1]), new tizen.ApplicationControlData('_purchaseResume', ['1'])];
this._yL1('http://tizen.org/appcontrol/operation/iap/purchase',
'tizeninapp.IapClient', _xL1, _ZK1)
} else {
debug("IAP purchase was not successful");
this._jL1(this._GK1, _vL1, _yu1, !1);
this._GK1 = null;
this._TK1(_yK1)
}
};
var _zL1 = _AK1._4L1;
_AK1.prototype._4L1 = function(_7q1, _yu1) {
var _AL1 = (_yu1 == 0);
var _vL1 = _7q1['_transactionId'];
if (_AL1) {
debug("IAP purchase was successful")
} else {
debug("IAP purchase failed with status:" + _2L1(_yu1))
}
this._jL1(this._GK1, _vL1, _yu1, _AL1);
this._TK1(_yK1, "purchase operation finished")
};
_AK1.prototype._yL1 = function(_BL1, _nv1, _CL1) {
if (this._FK1) {
_CL1.push(new tizen.ApplicationControlData('_mcc', ['250']));
_CL1.push(new tizen.ApplicationControlData('_mnc', ['01']));
_CL1.push(new tizen.ApplicationControlData('_mode', ['1']))
} else {
_CL1.push(new tizen.ApplicationControlData('_mode', ['0']))
}
var _DL1 = new tizen.ApplicationControl(_BL1, null, null, null, _CL1);
tizen.application.launchAppControl(_DL1, _nv1, function() {}, function(e) {
console.log("launch app control fail - Reason: " + e);
if (_nv1 == "tizeninapp.IapClient") {
this._TK1(_yK1);
this._jL1(this._GK1, this._LD,
9000, !1)
} else {
this._TK1(_wK1);
_RK1()
}
}, _ZK1)
};
_AK1.prototype._YK1 = function() {
var _EL1 = 1;
var _FL1 = _IK1;
var _DK1 = this._DK1;
this._EK1 += 1;
var _GL1 = this._EK1;
var _xL1 = [new tizen.ApplicationControlData('_transactionId', [_GL1]), new tizen.ApplicationControlData('_startNumber', [_EL1]), new tizen.ApplicationControlData('_endNumber', [_FL1]), new tizen.ApplicationControlData('_itemGroupId', [_DK1])];
this._yL1('http://tizen.org/appcontrol/operation/iap/get_item_list', 'tizeninapp.IapService', _xL1, _ZK1)
};
_AK1.prototype._sL1 = function() {
var _EL1 = 1;
var _FL1 = _IK1;
var _DK1 = this._DK1;
this._EK1 += 1;
var _GL1 = this._EK1;
var _xL1 = [new tizen.ApplicationControlData('_transactionId', [_GL1]), new tizen.ApplicationControlData('_startNumber', [_EL1]), new tizen.ApplicationControlData('_endNumber', [_FL1]), new tizen.ApplicationControlData('_itemGroupId', [_DK1])];
this._yL1('http://tizen.org/appcontrol/operation/iap/get_purchased_item_list', 'tizeninapp.IapService', _xL1, _ZK1)
};
_AK1.prototype._HL1 = function(_IL1, _zu1) {
this._GK1 = _IL1;
this._LD = _zu1;
var _JL1 = _IL1;
var _DK1 = this._DK1;
var _xL1 = [new tizen.ApplicationControlData('_itemId', [_JL1]), new tizen.ApplicationControlData('_itemGroupId', [_DK1]), new tizen.ApplicationControlData('_transactionId', [_zu1]), ];
this._TK1(_zK1);
this._yL1('http://tizen.org/appcontrol/operation/iap/purchase', 'tizeninapp.IapClient', _xL1, _ZK1)
};
function _JK1(_vu1) {
var _DK1 = _cv._W4._KL1;
if (typeof(_DK1) != "string" || _DK1.length <= 0) {
debug("Tizen Item Group ID not set")
} else {
_HK1._WK1(_DK1)
}
}
function _LK1(_IL1, _zu1) {
_HK1._HL1(_IL1, _zu1)
}
function _MK1(_dn) {
debug("Tizen IAP does not support consumables");
var _LL1 = 0;
var _xu1 = "{ \"productId\":\"" + _dn + "\"" + ", \"consumed\":\"false\"" + ", \"response\":" + _LL1 + " }";
_sD({
type: _iD,
_RD: _xu1
})
}
function _KK1() {
var _yu1 = 0;
_sD({
type: _jD,
_Ev: _yu1
})
}
function _NK1(_dn) {
var response = "{ \"response\":6 }";
_sD({
type: _gD,
_RD: response
})
}
var _ML1 = 0;
var _NL1 = 1;
var _OL1 = 2;
var _PL1 = [];
function _QL1(_RL1, _Pj, _SL1) {
this._AL1 = _RL1;
this.type = _Pj;
this.data = _SL1
}
function _7K1() {
_LO = _TL1;
_UL1 = _VL1;
_WL1();
_XL1();
var _YL1 = tizen.application.getCurrentApplication().getRequestedAppControl();
if (_YL1) {
console.log("Requester AppID : " + _YL1.callerAppId);
var appControl = _YL1.appControl;
var _ZL1 = __L1(appControl);
if (_ZL1 != null) {
_0M1(!0, _NL1, _ZL1)
}
}
}
function _WL1() {
debug("Register push service...");
var _1M1 = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/push_notify");
tizen.push.registerService(_1M1, _2M1, _3M1)
}
var _4M1 = _3M1;
function _3M1(response) {
debug('Push registration error: ' + response['name']);
debug('response.code= ' + response['code']);
debug('response.message= ' + response['message']);
_0M1(!1, _ML1, response['name'])
}
var _5M1 = _2M1;
function _2M1(id) {
debug("Push Registration succeeded with id: " + id);
_0M1(!0, _ML1, id);
debug("Connect to push service...");
tizen.push.connectService(_6M1, _7M1)
}
var _8M1 = _7M1;
function _7M1(response) {
console.log('# # # # #Push error callback: ' + response['name']);
_0M1(!1, _NL1, response['name']);
}
var _9M1 = _6M1;
function _6M1(_aM1) {
console.log("# # # # Push notification received");
var message = _aM1['alertMessage'];
var _ZL1 = _aM1['appData'];
if (_nR == !1) {
_bM1(message, _ZL1)
} else {
_0M1(!0, _NL1, _ZL1)
}
}
function _bM1(_cM1, _7q1) {
console.log("PostNotification: " + _cM1);
try {
var _dM1 = tizen.application.getAppInfo();
var _eM1 = _dM1['id'].split(".");
var _fM1 = "/opt/apps/" + _eM1[0] + "/res/wgt/icon.png";
var _gM1 = {};
_gM1['content'] = _cM1;
_gM1['iconPath'] = _fM1;
_gM1['vibration'] = !0;
_gM1['appId'] = _dM1['id'];
var _CL1 = new tizen.ApplicationControlData("http://tizen.org/appcontrol/data/push/appdata", [_7q1]);
var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/push_notify",
null, null, null, [_CL1]);
_gM1['appControl'] = appControl;
var _hM1 = _eM1[1];
var notification = new tizen.StatusNotification("SIMPLE", _hM1, _gM1);
tizen.notification.post(notification)
} catch (err) {
console.log(err.name + ": " + err.message)
}
}
function _TL1() {
if (_PL1.length <= 0) return;
console.log("tizenPushEventsDispatch: " + _PL1.length + " events");
var map = _86();
_O7._uL = map;
for (var _u2 = 0; _u2 < _PL1.length; ++_u2) {
var _iM1 = _PL1[_u2];
var _jM1 = "";
switch (_iM1.type) {
case 0:
_jM1 = "register";
break;
case 1:
_jM1 = "remote";
break;
case 2:
_jM1 = "local";
break
}
_Rn(map);
if (!_iM1._AL1) {
_96(map, "status", 0);
_96(map, "type", _jM1);
_96(map, "error", _iM1.data)
} else if (_iM1.type == _ML1) {
_96(map, "type", _jM1);
_96(map, "status", 1);
_96(map, "reg_id", _iM1.data)
} else {
_96(map, "type", _jM1);
_96(map, "status", 1);
_96(map, "data", _iM1.data)
}
_cy._vL(_kM1, 0)
}
_Pn(map);
_O7._uL = -1;
_PL1.length = 0
}
function _0M1(_RL1, _Pj, _SL1) {
_PL1.push(new _QL1(_RL1, _Pj, _SL1))
}
function __L1(appControl) {
if (appControl['operation'] == "http://tizen.org/appcontrol/operation/push_notify") {
var data = appControl['data'];
for (var _u2 = 0; _u2 < data.length; _u2++) {
if (data[_u2]['key'] == "http://tizen.org/appcontrol/data/push/appdata") {
var _ZL1 = data[_u2].value[0];
console.log("Got Notification payload:");
return _ZL1
}
}
}
return null
}
function _XL1() {
var _lM1 = tizen.notification.getAll();
var index = 0;
debug("***** Found " + _lM1.length + " notifications");
for (index = 0; index < _lM1.length; index++) {
console.log(_lM1[index]['id'] + ": title=" + _lM1[index]['title'] + " content=" + _lM1[index]['content']);
var appControl = _lM1[index].appControl;
var _ZL1 = __L1(appControl);
if (_ZL1 != null) {
_0M1(!0, _NL1, _ZL1);
try {
tizen.notification.remove(_lM1[index].id)
} catch (err) {
console.log(err.name + ": " + err.message)
}
}
}
}
function _VL1() {
if (!_nR) {
_nR = !0;
_XL1()
}
}(function() {
'use strict';
function _gf(_xf) {
throw _xf
}
var _df = void 0,
_uf = this;
function _ov(_xf, _Bp) {
var _Wg = _xf.split("."),
_v2 = _uf;
!(_Wg[0] in _v2) && _v2._mM1 && _v2._mM1("var " + _Wg[0]);
for (var _1w; _Wg.length && (_1w = _Wg.shift());)!_Wg.length && _Bp !== _df ? _v2[_1w] = _Bp : _v2 = _v2[_1w] ? _v2[_1w] : _v2[_1w] = {}
};
var _6h = "undefined" !== typeof Uint8Array && "undefined" !== typeof Uint16Array && "undefined" !== typeof Uint32Array;
function _8h(_xf) {
var _Bp = _xf.length,
_Wg = 0,
_v2 = Number.POSITIVE_INFINITY,
_1w, e, _Vg, _z2, _dZ, _sf, _rz, _yA, _wf;
for (_yA = 0; _yA < _Bp; ++_yA) _xf[_yA] > _Wg && (_Wg = _xf[_yA]), _xf[_yA] < _v2 && (_v2 = _xf[_yA]);
_1w = 1 << _Wg;
e = new(_6h ? Uint32Array : Array)(_1w);
_Vg = 1;
_z2 = 0;
for (_dZ = 2; _Vg <= _Wg;) {
for (_yA = 0; _yA < _Bp; ++_yA)
if (_xf[_yA] === _Vg) {
_sf = 0;
_rz = _z2;
for (_wf = 0; _wf < _Vg; ++_wf) _sf = _sf << 1 | _rz & 1, _rz >>= 1;
for (_wf = _sf; _wf < _1w; _wf += _dZ) e[_wf] = _Vg << 16 | _yA;
++_z2
}++_Vg;
_z2 <<= 1;
_dZ <<= 1
}
return [e, _Wg, _v2]
};
function _y2(_xf, _Bp) {
this._Vg = [];
this._z2 = 32768;
this._Bp = this._1w = this._Wg = this._sf = 0;
this._ez = _6h ? new Uint8Array(_xf) : _xf;
this._gf = !1;
this._u2 = _w2;
this._uf = !1;
if (_Bp || !(_Bp = {})) _Bp.index && (this._Wg = _Bp.index), _Bp._nM1 && (this._z2 = _Bp._nM1), _Bp._oM1 && (this._u2 = _Bp._oM1), _Bp._pM1 && (this._uf = _Bp._pM1);
switch (this._u2) {
case _x2:
this._xf = 32768;
this._v2 = new(_6h ? Uint8Array : Array)(32768 + this._z2 + 258);
break;
case _w2:
this._xf = 0;
this._v2 = new(_6h ? Uint8Array : Array)(this._z2);
this.e = this._ei;
this._df = this._8h;
this._Bf = this._y2;
break;
default:
_gf(_ym("invalid inflate mode"))
}
}
var _x2 = 0,
_w2 = 1,
_ei = {
_wf: _x2,
_ov: _w2
};
_y2.prototype._dZ = function() {
for (; !this._gf;) {
var _xf = _8S(this, 3);
_xf & 1 && (this._gf = !0);
_xf >>>= 1;
switch (_xf) {
case 0:
var _Bp = this._ez,
_Wg = this._Wg,
_v2 = this._v2,
_1w = this._xf,
e = _df,
_Vg = _df,
_z2 = _df,
_dZ = _v2.length,
_sf = _df;
this._Bp = this._1w = 0;
e = _Bp[_Wg++];
e === _df && _gf(_ym("invalid uncompressed block header: LEN (first byte)"));
_Vg = e;
e = _Bp[_Wg++];
e === _df && _gf(_ym("invalid uncompressed block header: LEN (second byte)"));
_Vg |= e << 8;
e = _Bp[_Wg++];
e === _df && _gf(_ym("invalid uncompressed block header: NLEN (first byte)"));
_z2 = e;
e = _Bp[_Wg++];
e === _df && _gf(_ym("invalid uncompressed block header: NLEN (second byte)"));
_z2 |= e << 8;
_Vg === ~_z2 && _gf(_ym("invalid uncompressed block header: length verify"));
_Wg + _Vg > _Bp.length && _gf(_ym("input buffer is broken"));
switch (this._u2) {
case _x2:
for (; _1w + _Vg > _v2.length;) {
_sf = _dZ - _1w;
_Vg -= _sf;
if (_6h) _v2.set(_Bp.subarray(_Wg, _Wg + _sf), _1w), _1w += _sf, _Wg += _sf;
else
for (; _sf--;) _v2[_1w++] = _Bp[_Wg++];
this._xf = _1w;
_v2 = this.e();
_1w = this._xf
}
break;
case _w2:
for (; _1w + _Vg > _v2.length;) _v2 = this.e({
_yA: 2
});
break;
default:
_gf(_ym("invalid inflate mode"))
}
if (_6h) _v2.set(_Bp.subarray(_Wg, _Wg + _Vg), _1w), _1w += _Vg, _Wg += _Vg;
else
for (; _Vg--;) _v2[_1w++] = _Bp[_Wg++];
this._Wg = _Wg;
this._xf = _1w;
this._v2 = _v2;
break;
case 1:
this._Bf(_nT, _hU);
break;
case 2:
_qM1(this);
break;
default:
_gf(_ym("unknown BTYPE: " + _xf))
}
}
return this._df()
};
var _FW = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15],
_F21 = _6h ? new Uint16Array(_FW) : _FW,
_B21 = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 258, 258],
_C21 = _6h ? new Uint16Array(_B21) : _B21,
_rM1 = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 0, 0],
_dV = _6h ? new Uint8Array(_rM1) : _rM1,
_sM1 = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577],
_4f1 = _6h ? new Uint16Array(_sM1) : _sM1,
_vk1 = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13],
_CT = _6h ? new Uint8Array(_vk1) : _vk1,
_tM1 = new(_6h ? Uint8Array : Array)(288),
_uM1, _q01;
_uM1 = 0;
for (_q01 = _tM1.length; _uM1 < _q01; ++_uM1) _tM1[_uM1] = 143 >= _uM1 ? 8 : 255 >= _uM1 ? 9 : 279 >= _uM1 ? 7 : 8;
var _nT = _8h(_tM1),
_p01 = new(_6h ? Uint8Array : Array)(30),
_vM1, _wM1;
_vM1 = 0;
for (_wM1 = _p01.length; _vM1 < _wM1; ++_vM1) _p01[_vM1] = 5;
var _hU = _8h(_p01);
function _8S(_xf, _Bp) {
for (var _Wg = _xf._1w, _v2 = _xf._Bp, _1w = _xf._ez, e = _xf._Wg, _Vg; _v2 < _Bp;) _Vg = _1w[e++], _Vg === _df && _gf(_ym("input buffer is broken")), _Wg |= _Vg << _v2, _v2 += 8;
_Vg = _Wg & (1 << _Bp) - 1;
_xf._1w = _Wg >>> _Bp;
_xf._Bp = _v2 - _Bp;
_xf._Wg = e;
return _Vg
}
function _eU(_xf, _Bp) {
for (var _Wg = _xf._1w, _v2 = _xf._Bp, _1w = _xf._ez, e = _xf._Wg, _Vg = _Bp[0], _z2 = _Bp[1], _dZ, _sf, _rz; _v2 < _z2;) {
_dZ = _1w[e++];
if (_dZ === _df) break;
_Wg |= _dZ << _v2;
_v2 += 8
}
_sf = _Vg[_Wg & (1 << _z2) - 1];
_rz = _sf >>> 16;
_xf._1w = _Wg >> _rz;
_xf._Bp = _v2 - _rz;
_xf._Wg = e;
return _sf & 65535
}
function _qM1(_xf) {
function _Bp(_Wg, _xf, _v2) {
var _Bp, e, _1w, _Vg;
for (_Vg = 0; _Vg < _Wg;) switch (_Bp = _eU(this, _xf), _Bp) {
case 16:
for (_1w = 3 + _8S(this, 2); _1w--;) _v2[_Vg++] = e;
break;
case 17:
for (_1w = 3 + _8S(this, 3); _1w--;) _v2[_Vg++] = 0;
e = 0;
break;
case 18:
for (_1w = 11 + _8S(this, 7); _1w--;) _v2[_Vg++] = 0;
e = 0;
break;
default:
e = _v2[_Vg++] = _Bp
}
return _v2
}
var _Wg = _8S(_xf, 5) + 257,
_v2 = _8S(_xf, 5) + 1,
_1w = _8S(_xf,
4) + 4,
e = new(_6h ? Uint8Array : Array)(_F21.length),
_Vg, _z2, _dZ, _sf;
for (_sf = 0; _sf < _1w; ++_sf) e[_F21[_sf]] = _8S(_xf, 3);
_Vg = _8h(e);
_z2 = new(_6h ? Uint8Array : Array)(_Wg);
_dZ = new(_6h ? Uint8Array : Array)(_v2);
_xf._Bf(_8h(_Bp.call(_xf, _Wg, _Vg, _z2)), _8h(_Bp.call(_xf, _v2, _Vg, _dZ)))
}
_y2.prototype._Bf = function(_xf, _Bp) {
var _Wg = this._v2,
_v2 = this._xf;
this._kx = _xf;
for (var _1w = _Wg.length - 258, e, _Vg, _z2, _dZ; 256 !== (e = _eU(this, _xf));)
if (256 > e) _v2 >= _1w && (this._xf = _v2, _Wg = this.e(), _v2 = this._xf), _Wg[_v2++] = e;
else {
_Vg = e - 257;
_dZ = _C21[_Vg];
0 < _dV[_Vg] && (_dZ += _8S(this, _dV[_Vg]));
e = _eU(this, _Bp);
_z2 = _4f1[e];
0 < _CT[e] && (_z2 += _8S(this, _CT[e]));
_v2 >= _1w && (this._xf = _v2, _Wg = this.e(), _v2 = this._xf);
for (; _dZ--;) _Wg[_v2] = _Wg[_v2++-_z2]
}
for (; 8 <= this._Bp;) this._Bp -= 8, this._Wg--;
this._xf = _v2
};
_y2.prototype._y2 = function(_xf, _Bp) {
var _Wg = this._v2,
_v2 = this._xf;
this._kx = _xf;
for (var _1w = _Wg.length, e, _Vg, _z2, _dZ; 256 !== (e = _eU(this, _xf));)
if (256 > e) _v2 >= _1w && (_Wg = this.e(), _1w = _Wg.length), _Wg[_v2++] = e;
else {
_Vg = e - 257;
_dZ = _C21[_Vg];
0 < _dV[_Vg] && (_dZ += _8S(this, _dV[_Vg]));
e = _eU(this, _Bp);
_z2 = _4f1[e];
0 < _CT[e] && (_z2 += _8S(this, _CT[e]));
_v2 + _dZ > _1w && (_Wg = this.e(), _1w = _Wg.length);
for (; _dZ--;) _Wg[_v2] = _Wg[_v2++-_z2]
}
for (; 8 <= this._Bp;) this._Bp -= 8, this._Wg--;
this._xf = _v2
};
_y2.prototype.e = function() {
var _xf = new(_6h ? Uint8Array : Array)(this._xf - 32768),
_Bp = this._xf - 32768,
_Wg, _v2, _1w = this._v2;
if (_6h) _xf.set(_1w.subarray(32768, _xf.length));
else {
_Wg = 0;
for (_v2 = _xf.length; _Wg < _v2; ++_Wg) _xf[_Wg] = _1w[_Wg + 32768]
}
this._Vg.push(_xf);
this._sf += _xf.length;
if (_6h) _1w.set(_1w.subarray(_Bp, _Bp + 32768));
else
for (_Wg = 0; 32768 > _Wg; ++_Wg) _1w[_Wg] = _1w[_Bp + _Wg];
this._xf = 32768;
return _1w
};
_y2.prototype._ei = function(_xf) {
var _Bp, _Wg = this._ez.length / this._Wg + 1 | 0,
_v2, _1w, e, _Vg = this._ez,
_z2 = this._v2;
_xf && ("number" === typeof _xf._yA && (_Wg = _xf._yA), "number" === typeof _xf._6h && (_Wg += _xf._6h));
2 > _Wg ? (_v2 = (_Vg.length - this._Wg) / this._kx[2], e = 258 * (_v2 / 2) | 0, _1w = e < _z2.length ? _z2.length + e : _z2.length << 1) : _1w = _z2.length * _Wg;
_6h ? (_Bp = new Uint8Array(_1w), _Bp.set(_z2)) : _Bp = _z2;
return this._v2 = _Bp
};
_y2.prototype._df = function() {
var _xf = 0,
_Bp = this._v2,
_Wg = this._Vg,
_v2, _1w = new(_6h ? Uint8Array : Array)(this._sf + (this._xf - 32768)),
e, _Vg, _z2, _dZ;
if (0 === _Wg.length) return _6h ? this._v2.subarray(32768, this._xf) : this._v2.slice(32768, this._xf);
e = 0;
for (_Vg = _Wg.length; e < _Vg; ++e) {
_v2 = _Wg[e];
_z2 = 0;
for (_dZ = _v2.length; _z2 < _dZ; ++_z2) _1w[_xf++] = _v2[_z2]
}
e = 32768;
for (_Vg = this._xf; e < _Vg; ++e) _1w[_xf++] = _Bp[e];
this._Vg = [];
return this.buffer = _1w
};
_y2.prototype._8h = function() {
var _xf, _Bp = this._xf;
_6h ? this._uf ? (_xf = new Uint8Array(_Bp), _xf.set(this._v2.subarray(0,
_Bp))) : _xf = this._v2.subarray(0, _Bp) : (this._v2.length > _Bp && (this._v2.length = _Bp), _xf = this._v2);
return this.buffer = _xf
};
function _xM1(_xf, _Bp) {
var _Wg, _v2;
this._ez = _xf;
this._Wg = 0;
if (_Bp || !(_Bp = {})) _Bp.index && (this._Wg = _Bp.index), _Bp._yM1 && (this._8S = _Bp._yM1);
_Wg = _xf[this._Wg++];
_v2 = _xf[this._Wg++];
switch (_Wg & 15) {
case _zM1:
this.method = _zM1;
break;
default:
_gf(_ym("unsupported compression method"))
}
0 !== ((_Wg << 8) + _v2) % 31 && _gf(_ym("invalid fcheck flag:" + ((_Wg << 8) + _v2) % 31));
_v2 & 32 && _gf(_ym("fdict flag is not supported"));
this._rz = new _y2(_xf, {
index: this._Wg,
_nM1: _Bp._nM1,
_oM1: _Bp._oM1,
_pM1: _Bp._pM1
})
}
_xM1.prototype._dZ = function() {
var _xf = this._ez,
_Bp, _Wg;
_Bp = this._rz._dZ();
this._Wg = this._rz._Wg;
if (this._8S) {
_Wg = (_xf[this._Wg++] << 24 | _xf[this._Wg++] << 16 | _xf[this._Wg++] << 8 | _xf[this._Wg++]) >>> 0;
var _v2 = _Bp;
if ("string" === typeof _v2) {
var _1w = _v2.split(""),
e, _Vg;
e = 0;
for (_Vg = _1w.length; e < _Vg; e++) _1w[e] = (_1w[e].charCodeAt(0) & 255) >>> 0;
_v2 = _1w
}
for (var _z2 = 1, _dZ = 0, _sf = _v2.length, _rz, _yA = 0; 0 < _sf;) {
_rz = 1024 < _sf ? 1024 : _sf;
_sf -= _rz;
do _z2 += _v2[_yA++],
_dZ += _z2;
while (--_rz);
_z2 %= 65521;
_dZ %= 65521
}
_Wg !== (_dZ << 16 | _z2) >>> 0 && _gf(_ym("invalid adler-32 checksum"))
}
return _Bp
};
var _zM1 = 8;
_ov("Zlib.Inflate", _xM1);
_ov("Zlib.Inflate.prototype.decompress", _xM1.prototype._dZ);
var _AM1 = {
_BM1: _ei._ov,
_CM1: _ei._wf
}, _xt, _yt, _zt, $;
if (Object._DM1) _xt = Object._DM1(_AM1);
else
for (_yt in _xt = [], _zt = 0, _AM1) _xt[_zt++] = _yt;
_zt = 0;
for ($ = _xt.length; _zt < $; ++_zt) _yt = _xt[_zt], _ov("Zlib.Inflate.BufferType." + _yt, _AM1[_yt])
}).call(this);
var _EM1 = !1,
_FM1 = -1,
_GM1 = -1,
_HM1 = 0,
_IM1 = 1,
_JM1 = 2,
_KM1 = 3,
_LM1 = 4,
_MM1 = 5,
_NM1 = 6,
_OM1 = 7,
_PM1 = 8,
_QM1 = 9,
_RM1 = 10,
_SM1 = 11,
_TM1 = [0, 0, 0],
_UM1 = [0, 0, 0],
_VM1 = [0, 0, 0, 0, 0, 0],
_WM1 = [0, 0, 0],
_XM1 = [0, 0, 0],
_YM1 = [0, 0, 0],
_ZM1 = [0, 0, 0],
__M1 = [0, 0, 0],
_0N1 = [0, 0, 0],
_1N1 = [0, 0, 0],
_2N1 = 0,
_3N1 = 0;
function _4N1() {
if ((_ke._le() <= 30) || (_5N1 <= 30)) {
return 1.0
}
if ((_ke._le() / _5N1) < 1.2) {
return 30.0 / _ke._le()
} else {
return 30.0 / _5N1
}
}
function _6N1() {
if (!_lG(_FM1)) {
_FM1 = _Ho();
_rG(_FM1, 100000)
}
if (!_lG(_GM1)) {
_GM1 = _Ho();
_rG(_GM1, -100000)
}
if (!_EM1) {
_7N1()
}
}
function _7N1() {
var _u2;
_EM1 = !0;
for (_u2 = 0; _u2 <= 5; _u2++) {
_VM1[_u2] = _Io()
}
for (_u2 = 0; _u2 <= 2; _u2++) {
_WM1[_u2] = _Io();
_TM1[_u2] = _Io();
_XM1[_u2] = _Io();
_UM1[_u2] = _Io();
_YM1[_u2] = _Io();
_ZM1[_u2] = _Io();
__M1[_u2] = _Io();
_0N1[_u2] = _Io();
_1N1[_u2] = _Io()
}
_2N1 = _Io();
_3N1 = _Io()
}
function _8N1(_9N1, _ye, _ze, _Cj, _uj) {
var _1w = _4N1();
if (_Cj === 0) {
_TG(_VM1[0], _aN1);
_XG(_VM1[0], 0.1, 0.1, 0.05 * _1w, 0);
_vH(_VM1[0], 0, 360, 0, 0, !1);
_zH(_VM1[0], 0, 360, 0, 0);
_xH(_VM1[0], 2 * _1w, 2 * _1w, -0.1 * _1w, 0);
_Mo(_VM1[0], 0.6, 0);
_pH(_VM1[0], _sn(10.0 / _1w), _sn(15.0 / _1w));
_FG(_9N1, _ye, _ze, _VM1[0],
_uj, 20);
_TG(_VM1[1], _aN1);
_XG(_VM1[1], 0.1, 0.1, 0.1 * _1w, 0);
_vH(_VM1[1], 0, 360, 0, 0, !1);
_Mo(_VM1[1], 0.8, 0);
_pH(_VM1[1], _sn(15 / _1w), _sn(15 / _1w));
_FG(_9N1, _ye, _ze, _VM1[1], _bN1, 1)
} else if (_Cj == 2) {
_TG(_VM1[4], _aN1);
_XG(_VM1[4], 0.4, 0.4, 0.2 * _1w, 0);
_vH(_VM1[4], 0, 360, 0, 0, !1);
_zH(_VM1[4], 0, 360, 0, 0);
_xH(_VM1[4], 7 * _1w, 7 * _1w, -0.2 * _1w, 0);
_Mo(_VM1[4], 0.6, 0);
_pH(_VM1[4], _sn(15 / _1w), _sn(20 / _1w));
_FG(_9N1, _ye, _ze, _VM1[4], _uj, 20);
_TG(_VM1[5], _aN1);
_XG(_VM1[5], 0.4, 0.4, 0.4 * _1w, 0);
_vH(_VM1[5], 0, 360, 0, 0, !1);
_Mo(_VM1[5], 0.8,
0);
_pH(_VM1[5], _sn(20 / _1w), _sn(20 / _1w));
_FG(_9N1, _ye, _ze, _VM1[5], _bN1, 1)
} else {
_TG(_VM1[2], _aN1);
_XG(_VM1[2], 0.3, 0.3, 0.1 * _1w, 0);
_vH(_VM1[2], 0, 360, 0, 0, !1);
_zH(_VM1[2], 0, 360, 0, 0);
_xH(_VM1[2], 4 * _1w, 4 * _1w, -0.18 * _1w, 0);
_Mo(_VM1[2], 0.6, 0);
_pH(_VM1[2], _sn(12 / _1w), _sn(17 / _1w));
_FG(_9N1, _ye, _ze, _VM1[2], _uj, 20);
_TG(_VM1[3], _aN1);
_XG(_VM1[3], 0.3, 0.3, 0.2 * _1w, 0);
_vH(_VM1[3], 0, 360, 0, 0, !1);
_Mo(_VM1[3], 0.8, 0);
_pH(_VM1[3], _sn(17 / _1w), _sn(17 / _1w));
_FG(_9N1, _ye, _ze, _VM1[3], _bN1, 1)
}
}
function _cN1(_9N1, _ye, _ze, _Cj, _uj) {
var _1w = _4N1();
if (_Cj === 0) {
_TG(_WM1[0], _dN1);
_Mo(_WM1[0], 1, 0);
_XG(_WM1[0], 0.0, 0.0, 0.15 * _1w, 0.0);
_pH(_WM1[0], _sn(10.0 / _1w), _sn(12.0 / _1w));
_FG(_9N1, _ye, _ze, _WM1[0], _uj, 1)
} else if (_Cj == 2) {
_TG(_WM1[2], _dN1);
_Mo(_WM1[2], 1, 0);
_XG(_WM1[2], 0, 0, 0.4 * _1w, 0);
_pH(_WM1[2], _sn(18.0 / _1w), _sn(20.0 / _1w));
_FG(_9N1, _ye, _ze, _WM1[2], _uj, 1)
} else {
_TG(_WM1[1], _dN1);
_Mo(_WM1[1], 1, 0);
_XG(_WM1[1], 0, 0, 0.25 * _1w, 0);
_pH(_WM1[1], _sn(13.0 / _1w), _sn(15.0 / _1w));
_FG(_9N1, _ye, _ze, _WM1[1], _uj, 1)
}
}
function _eN1(_9N1, _ye, _ze, _Cj, _uj) {
var _1w = _4N1();
if (_Cj === 0) {
_TG(_TM1[0], _dN1);
_Mo(_TM1[0], 1, 0);
_XG(_TM1[0], 0, 0, 0.2 * _1w, 0);
_ZG(_TM1[0], 1, 0.5);
_pH(_TM1[0], _sn(10.0 / _1w), _sn(12.0 / _1w));
_FG(_9N1, _ye, _ze, _TM1[0], _uj, 1)
} else if (_Cj == 2) {
_TG(_TM1[2], _dN1);
_Mo(_TM1[2], 1, 0);
_XG(_TM1[2], 0, 0, 0.6 * _1w, 0);
_ZG(_TM1[2], 1, 0.5);
_pH(_TM1[2], _sn(18.0 / _1w), _sn(20.0 / _1w));
_FG(_9N1, _ye, _ze, _TM1[2], _uj, 1)
} else {
_TG(_TM1[1], _dN1);
_Mo(_TM1[1], 1, 0);
_XG(_TM1[1], 0, 0, 0.35 * _1w, 0);
_ZG(_TM1[1], 1, 0.5);
_pH(_TM1[1], _sn(13.0 / _1w), _sn(15.0 / _1w));
_FG(_9N1, _ye, _ze, _TM1[1], _uj, 1)
}
}
function _fN1(_9N1,
_ye, _ze, _Cj, _uj) {
var _1w = _4N1();
if (_Cj === 0) {
_TG(_XM1[1], _gN1);
_XG(_XM1[1], 0.1, 0.2, 0, 0);
_xH(_XM1[1], 0.5 * _1w, 3.0 * _1w, 0.0, 0.0);
_zH(_XM1[1], 0, 360, 0, 0);
_Mo(_XM1[1], 1, 0.4);
_pH(_XM1[1], _sn(15.0 / _1w), _sn(25.0 / _1w));
_BH(_XM1[1], 0.10 * _1w, 270);
_FG(_9N1, _ye, _ze, _XM1[1], _uj, 75)
} else if (_Cj == 2) {
_TG(_XM1[1], _gN1);
_XG(_XM1[1], 0.1, 0.2, 0, 0);
_xH(_XM1[1], 0.5 * _1w, 8.0 * _1w, 0.0, 0.0);
_zH(_XM1[1], 0, 360, 0, 0);
_Mo(_XM1[1], 1, 0.4);
_pH(_XM1[1], _sn(30.0 / _1w), _sn(40.0 / _1w));
_BH(_XM1[1], 0.17 * _1w, 270);
_FG(_9N1, _ye, _ze, _XM1[1], _uj, 250)
} else {
_TG(_XM1[1], _gN1);
_XG(_XM1[1], 0.1, 0.2, 0, 0);
_xH(_XM1[1], 0.5 * _1w, 6.0 * _1w, 0.0, 0.0);
_zH(_XM1[1], 0, 360, 0, 0);
_Mo(_XM1[1], 1, 0.4);
_pH(_XM1[1], _sn(20.0 / _1w), _sn(30.0 / _1w));
_BH(_XM1[1], 0.15 * _1w, 270);
_FG(_9N1, _ye, _ze, _XM1[1], _uj, 150)
}
}
function _hN1(_9N1, _ye, _ze, _Cj, _uj) {
var _u2;
var _1w = _4N1();
if (_Cj === 0) {
_TG(_UM1[0], _aN1);
_XG(_UM1[0], 0.2, 0.4, -0.01 * _1w, 0);
_Mo(_UM1[0], 0.4, 0);
_pH(_UM1[0], _sn(25.0 / _1w), _sn(25.0 / _1w));
for (_u2 = 0; _u2 <= 5; _u2++) {
_FG(_9N1, _ye - 5 + _iN1(10), _ze - 5 + _iN1(10), _UM1[0], _uj, 1)
}
} else if (_Cj === 2) {
_TG(_UM1[2], _aN1);
_XG(_UM1[2], 0.4, 1, -0.01 * _1w, 0);
_Mo(_UM1[2], 0.4, 0);
_pH(_UM1[2], _sn(50.0 / _1w), _sn(50.0 / _1w));
for (_u2 = 0; _u2 <= 15; _u2++) {
_FG(_9N1, _ye - 30 + _iN1(60), _ze - 30 + _iN1(60), _UM1[2], _uj, 1)
}
} else {
_TG(_UM1[1], _aN1);
_XG(_UM1[1], 0.4, 0.7, -0.01 * _1w, 0);
_Mo(_UM1[1], 0.4, 0);
_pH(_UM1[1], _sn(30.0 / _1w), _sn(30.0 / _1w));
for (_u2 = 0; _u2 <= 10; _u2++) {
_FG(_9N1, _ye - 15 + _iN1(30), _ze - 15 + _iN1(30), _UM1[1], _uj, 1)
}
}
}
function _jN1(_9N1, _ye, _ze, _Cj, _uj) {
var _u2;
var _1w = _4N1();
if (_Cj === 0) {
_TG(_YM1[0], _aN1);
_XG(_YM1[0], 0.2, 0.4, -0.01 * _1w,
0);
_Mo(_YM1[0], 0.4, 0);
_xH(_YM1[0], 3.0 * _1w, 4.0 * _1w, 0, 0);
_zH(_YM1[0], 90, 90, 0, 0);
_pH(_YM1[0], _sn(25.0 / _1w), _sn(25.0 / _1w));
for (_u2 = 0; _u2 <= 5; _u2++) {
_FG(_9N1, _ye - 5 + _iN1(10), _ze - 5 + _iN1(10), _YM1[0], _uj, 1)
}
} else if (_Cj === 2) {
_TG(_YM1[2], _aN1);
_XG(_YM1[2], 0.4, 1, -0.01 * _1w, 0);
_Mo(_YM1[2], 0.4, 0);
_xH(_YM1[2], 6.0 * _1w, 7.0 * _1w, 0, 0);
_zH(_YM1[2], 90, 90, 0, 0);
_pH(_YM1[2], _sn(50.0 / _1w), _sn(50.0 / _1w));
for (_u2 = 0; _u2 <= 15; _u2++) {
_FG(_9N1, _ye - 30 + _iN1(60), _ze - 30 + _iN1(60), _YM1[2], _uj, 1)
}
} else {
_TG(_YM1[1], _aN1);
_XG(_YM1[1], 0.4,
0.7, -0.01 * _1w, 0);
_Mo(_YM1[1], 0.4, 0);
_xH(_YM1[1], 5.0 * _1w, 6.0 * _1w, 0, 0);
_zH(_YM1[1], 90, 90, 0, 0);
_pH(_YM1[1], _sn(30.0 / _1w), _sn(30.0 / _1w));
for (_u2 = 0; _u2 <= 10; _u2++) {
_FG(_9N1, _ye - 15 + _iN1(30), _ze - 15 + _iN1(30), _YM1[1], _uj, 1)
}
}
}
function _kN1(_9N1, _ye, _ze, _Cj, _uj) {
var _1w = _4N1();
if (_Cj === 0) {
_TG(_ZM1[0], _lN1);
_XG(_ZM1[0], 0.4, 0.3, -0.02 * _1w, 0);
_vH(_ZM1[0], 0, 360, 0, 0, !1);
_pH(_ZM1[0], _sn(20 / _1w), _sn(20 / _1w));
_FG(_9N1, _ye, _ze, _ZM1[0], _uj, 1)
} else if (_Cj === 2) {
_TG(_ZM1[2], _lN1);
_XG(_ZM1[2], 1.2, 1.2, -0.04 * _1w, 0);
_vH(_ZM1[2],
0, 360, 0, 0, !1);
_pH(_ZM1[2], _sn(30 / _1w), _sn(30 / _1w));
_FG(_9N1, _ye, _ze, _ZM1[2], _uj, 1)
} else {
_TG(_ZM1[1], _lN1);
_XG(_ZM1[1], 0.75, 0.75, -0.03 * _1w, 0);
_vH(_ZM1[1], 0, 360, 0, 0, !1);
_pH(_ZM1[1], _sn(25 / _1w), _sn(25 / _1w));
_FG(_9N1, _ye, _ze, _ZM1[1], _uj, 1)
}
}
function _mN1(_9N1, _ye, _ze, _Cj, _uj) {
var _1w = _4N1();
if (_Cj === 0) {
_TG(__M1[0], _nN1);
_XG(__M1[0], 0.4, 0.4, -0.02 * _1w, 0);
_vH(__M1[0], 0, 360, 0, 0, !1);
_pH(__M1[0], _sn(20 / _1w), _sn(20 / _1w));
_FG(_9N1, _ye, _ze, __M1[0], _uj, 1)
} else if (_Cj === 2) {
_TG(__M1[2], _nN1);
_XG(__M1[2], 1.2, 1.2, -0.04 * _1w,
0);
_vH(__M1[2], 0, 360, 0, 0, !1);
_pH(__M1[2], _sn(30 / _1w), _sn(30 / _1w));
_FG(_9N1, _ye, _ze, __M1[2], _uj, 1)
} else {
_TG(__M1[1], _nN1);
_XG(__M1[1], 0.75, 0.75, -0.03 * _1w, 0);
_vH(__M1[1], 0, 360, 0, 0, !1);
_pH(__M1[1], _sn(25 / _1w), _sn(25 / _1w));
_FG(_9N1, _ye, _ze, __M1[1], _uj, 1)
}
}
function _oN1(_9N1, _ye, _ze, _Cj, _uj) {
var _1w = _4N1();
if (_Cj === 0) {
_TG(_0N1[0], _gN1);
_XG(_0N1[0], 0.4, 0.4, -0.02 * _1w, 0);
_vH(_0N1[0], 0, 360, 0, 0, !1);
_pH(_0N1[0], _sn(20 / _1w), _sn(20 / _1w));
_FG(_9N1, _ye, _ze, _0N1[0], _uj, 1)
} else if (_Cj === 2) {
_TG(_0N1[2], _gN1);
_XG(_0N1[2],
1.2, 1.2, -0.04 * _1w, 0);
_vH(_0N1[2], 0, 360, 0, 0, !1);
_pH(_0N1[2], _sn(30 / _1w), _sn(30 / _1w));
_FG(_9N1, _ye, _ze, _0N1[2], _uj, 1)
} else {
_TG(_0N1[1], _gN1);
_XG(_0N1[1], 0.75, 0.75, -0.03 * _1w, 0);
_vH(_0N1[1], 0, 360, 0, 0, !1);
_pH(_0N1[1], _sn(25 / _1w), _sn(25 / _1w));
_FG(_9N1, _ye, _ze, _0N1[1], _uj, 1)
}
}
function _pN1(_9N1, _ye, _ze, _Cj, _uj) {
var _1w = _4N1();
if (_Cj === 0) {
_TG(_1N1[0], _aN1);
_XG(_1N1[0], 2, 2, 0, 0);
_ZG(_1N1[0], 1, 0.5);
_nH(_1N1[0], 0, 0.3, 0);
_pH(_1N1[0], _sn(100.0 / _1w), _sn(100.0 / _1w));
_FG(_9N1, _ye, _ze, _1N1[0], _uj, 1)
} else if (_Cj === 2) {
_TG(_1N1[2], _aN1);
_XG(_1N1[2], 8, 8, 0, 0);
_ZG(_1N1[2], 1, 0.5);
_nH(_1N1[2], 0, 0.3, 0);
_pH(_1N1[2], _sn(100.0 / _1w), _sn(100.0 / _1w));
_FG(_9N1, _ye, _ze, _1N1[02], _uj, 1)
} else {
_TG(_1N1[1], _aN1);
_XG(_1N1[1], 4, 4, 0, 0);
_ZG(_1N1[1], 1, 0.5);
_nH(_1N1[1], 0, 0.3, 0);
_pH(_1N1[1], _sn(100.0 / _1w), _sn(100.0 / _1w));
_FG(_9N1, _ye, _ze, _1N1[1], _uj, 1)
}
}
function _qN1(_9N1, _ye, _ze, _Cj, _uj) {
var _u2;
var _1w = _4N1();
_TG(_2N1, _rN1);
_XG(_2N1, 0.2, 0.3, 0.0, 0.0);
_vH(_2N1, 0, 0, 0, 0, !0);
_xH(_2N1, 7 * _1w, 7 * _1w, 0, 0);
_zH(_2N1, 260, 260, 0, 0);
_kH(_2N1, 0.4);
_pH(_2N1,
_sn(0.2 * _ke._CX() / _1w), _sn(0.2 * _ke._CX() / _1w));
if (_Cj === 0) {
for (_u2 = 0; _u2 <= 1; _u2++) {
_FG(_9N1, _iN1(1) * 1.2 * _ke._sN1(), -30.0 + _iN1(20), _2N1, _uj, 1)
}
} else if (_Cj == 2) {
for (_u2 = 0; _u2 <= 8; _u2++) {
_FG(_9N1, _iN1(1) * 1.2 * _ke._sN1(), -30.0 + _iN1(20), _2N1, _uj, 1)
}
} else {
for (_u2 = 0; _u2 <= 4; _u2++) {
_FG(_9N1, _iN1(1) * 1.2 * _ke._sN1(), -30.0 + _iN1(20), _2N1, _uj, 1)
}
}
}
function _tN1(_9N1, _ye, _ze, _Cj, _uj) {
var _u2;
var _1w = _4N1();
_TG(_3N1, _uN1);
_XG(_3N1, 0.1, 0.25, 0.0, 0.0);
_kH(_3N1, 0.6);
_vH(_3N1, 0, 360, 0, 0, !1);
_xH(_3N1, 2.5 * _1w, 3.0 * _1w, 0.0, 0.0);
_zH(_3N1, 240, 300, 0, 20);
_pH(_3N1, _sn(0.5 * _ke._CX() / _1w), _sn(0.5 * _ke._CX() / _1w));
if (_Cj === 0) {
for (_u2 = 0; _u2 <= 0; _u2++) {
_FG(_9N1, _iN1(1) * 1.2 * _ke._sN1() - 60, -30.0 + _iN1(20), _3N1, _uj, 1)
}
} else if (_Cj === 2) {
for (_u2 = 0; _u2 <= 6; _u2++) {
_FG(_9N1, _iN1(1) * 1.2 * _ke._sN1() - 60, -30.0 + _iN1(20), _3N1, _uj, 1)
}
} else {
for (_u2 = 0; _u2 <= 2; _u2++) {
_FG(_9N1, _iN1(1) * 1.2 * _ke._sN1() - 60, -30.0 + _iN1(20), _3N1, _uj, 1)
}
}
}
function _vN1(_wN1, _6j, _ye, _ze, _Cj, _uj) {
var _lW;
_6N1();
if (_wN1) {
_lW = _FM1
} else {
_lW = _GM1
}
switch (_6j) {
case _HM1:
_8N1(_lW, _ye, _ze, _Cj,
_uj);
break;
case _IM1:
_cN1(_lW, _ye, _ze, _Cj, _uj);
break;
case _JM1:
_eN1(_lW, _ye, _ze, _Cj, _uj);
break;
case _KM1:
_fN1(_lW, _ye, _ze, _Cj, _uj);
break;
case _LM1:
_hN1(_lW, _ye, _ze, _Cj, _uj);
break;
case _MM1:
_jN1(_lW, _ye, _ze, _Cj, _uj);
break;
case _NM1:
_kN1(_lW, _ye, _ze, _Cj, _uj);
break;
case _OM1:
_mN1(_lW, _ye, _ze, _Cj, _uj);
break;
case _PM1:
_oN1(_lW, _ye, _ze, _Cj, _uj);
break;
case _QM1:
_pN1(_lW, _ye, _ze, _Cj, _uj);
break;
case _RM1:
_qN1(_lW, _ye, _ze, _Cj, _uj);
break;
case _SM1:
_tN1(_lW, _ye, _ze, _Cj, _uj);
break
}
}
var _xN1 = !1,
_kR = !1,
_yN1 = !0;
function _8v1(_zN1) {
if (_zN1) {
_xN1 = !0
} else {
_kR = !1;
_xN1 = !1;
if (_yN1) {
_Nu1 = !1
}
}
}
function _AN1() {
if (window["page"] === undefined) {
_yN1 = !1;
window.addEventListener("focus", function() {
_8v1(!1)
});
window.addEventListener("blur", function() {
_8v1(!0)
});
window.addEventListener("click", function() {
_8v1(!1)
})
}
}
function _BN1() {
if (_xN1) {
_kR = !0;
_xN1 = !1
} else if (_kR) {
_kR = !1;
if (_yN1) {
_Nu1 = !0
}
}
}
function _CN1() {
var _DE, _u2, _DN1;
var _km = null;
if (_ke._lm) {
_km = _ke._nm
}
var _Hn = _ke._AE._Hn;
for (var _EN1 = 0; _EN1 < _Hn.length; _EN1++) {
var _iE = _Hn[_EN1];
var _JE = _iE._JE;
if (!_iE._kE) {
if (_JE._FN1[_GN1]) {
if (_HL(_iE._w6) || _HL(_iE._HN1)) {
_DE = _iE._IN1();
if ((_DE._1f < 0) || (_DE.left > _ke._sN1()) || (_DE.bottom < 0) || (_DE.top > _ke._CX())) {
_iE._Se(_GN1, _JN1, _iE, _iE)
}
} else {
if ((_iE._w2 < 0) || (_iE._w2 > _ke._sN1()) || (_iE._x2 < 0) || (_iE._x2 > _ke._CX())) {
_iE._Se(_GN1, _JN1, _iE, _iE)
}
}
}
if (_JE._FN1[_KN1]) {
if (_HL(_iE._w6) || _HL(_iE._HN1)) {
_DE = _iE._IN1();
if ((_DE.left < 0) || (_DE._1f > _ke._sN1()) || (_DE.top < 0) || (_DE.bottom > _ke._CX())) {
_iE._Se(_KN1, _JN1, _iE, _iE)
}
} else {
if ((_iE._w2 < 0) || (_iE._w2 > _ke._sN1()) || (_iE._x2 < 0) || (_iE._x2 > _ke._CX())) {
_iE._Se(_KN1, _JN1, _iE, _iE)
}
}
}
if (_km) {
for (_DN1 = 0; _DN1 < _km.length; _DN1++) {
var _LN1 = _km[_DN1];
if (_LN1._F2) {
var _MN1 = _LN1._eN;
var _NN1 = _LN1._fN;
var _ON1 = _LN1._eN + _LN1._gN;
var _PN1 = _LN1._fN + _LN1._hN;
if (_JE._FN1[_QN1 + _DN1]) {
if (_HL(_iE._w6) || _HL(_iE._HN1)) {
_DE = _iE._IN1();
if ((_DE._1f < _MN1) || (_DE.left > _ON1) || (_DE.bottom < _NN1) || (_DE.top > _PN1)) {
_iE._Se(_QN1 + _DN1, _JN1, _iE, _iE)
}
} else {
if ((_iE._w2 < _MN1) || (_iE._w2 > _ON1) || (_iE._x2 < _NN1) || (_iE._x2 > _PN1)) {
_iE._Se(_QN1 + _DN1, _JN1, _iE, _iE)
}
}
}
if (_JE._FN1[_RN1 + _DN1]) {
if (_HL(_iE._w6) || _HL(_iE._HN1)) {
_DE = _iE._IN1();
if ((_DE.left < _MN1) || (_DE._1f > _ON1) || (_DE.top < _NN1) || (_DE.bottom > _PN1)) {
_iE._Se(_RN1 + _DN1, _JN1, _iE, _iE)
}
} else {
if ((_iE._w2 < _MN1) || (_iE._w2 > _ON1) || (_iE._x2 < _NN1) || (_iE._x2 > _PN1)) {
_iE._Se(_RN1 + _DN1, _JN1, _iE, _iE)
}
}
}
}
}
}
}
}
}
function _SN1() {
for (var _uB1 in _vB1) {
if (!_vB1.hasOwnProperty(_uB1)) continue;
var _TN1 = _cy._hn(_uB1);
var _UN1 = _TN1._UI();
for (var _4B1 = 0; _4B1 < _UN1.length; _4B1++) {
var _VN1 = _UN1[_4B1];
if (!_VN1._kE && _VN1._lE) {
var _WN1 = _vB1[_uB1];
for (var _XN1 in _WN1) {
if (!_WN1.hasOwnProperty(_XN1)) continue;
var _qe1 = _WN1[_XN1];
var _YN1 = _cy._hn(_qe1);
var _ZN1 = _YN1._UI();
for (var _5B1 = 0; _5B1 < _ZN1.length; _5B1++) {
var __N1 = _ZN1[_5B1];
if (!__N1._kE && __N1._lE) {
if ((_VN1._JE == __N1._JE) && (_5B1 < _4B1)) continue;
if (_VN1._tE(__N1, !0)) {
if ((_VN1._bG) || (__N1._bG)) {
_VN1._w2 = _VN1._0O1;
_VN1._x2 = _VN1._1O1;
_VN1._BE = !0;
_VN1._2O1 = _VN1._3O1;
__N1._w2 = __N1._0O1;
__N1._x2 = __N1._1O1;
__N1._BE = !0;
__N1._2O1 = __N1._3O1;
}
_VN1._Se(_dB1, _qe1, _VN1, __N1);
__N1._Se(_dB1, _uB1, __N1, _VN1);
if ((_VN1._bG) || (__N1._bG)) {
_VN1._RA1();
__N1._RA1();
_VN1._5k(_VN1._w2 + _VN1._ub,
_VN1._x2 + _VN1._tb);
__N1._5k(__N1._w2 + __N1._ub, __N1._x2 + __N1._tb);
if (_VN1._tE(__N1, !0) === !0) {
_VN1._w2 = _VN1._0O1;
_VN1._x2 = _VN1._1O1;
_VN1._BE = !0;
_VN1._2O1 = _VN1._3O1;
__N1._w2 = __N1._0O1;
__N1._x2 = __N1._1O1;
__N1._BE = !0;
__N1._2O1 = __N1._3O1
}
}
}
}
}
}
}
}
}
}
function _4O1() {
if (_ke) {
var _km, _Sp;
if (!_ke._lm) {
_km = _mm
} else {
_km = _ke._nm
}
for (var _8h = 0; _8h < _km.length; _8h++) {
_om = _km[_8h];
if (_om._F2) {
_pm(canvas, _qm);
if (((_Pm._5O1 - _qm.left) >= _om._rm) && ((_Pm._5O1 - _qm.left) < _om._sm) && ((_Pm._6O1 - _qm.top) >= _om._tm) && ((_Pm._6O1 - _qm.top) < _om._um)) {
var _Cf = _O7._v9;
var _Ef = _O7._w9;
var _7O1 = _cy._aG();
for (var _kx = 0; _kx < _7O1.length; _kx++) {
var _Wn = _7O1[_kx];
var _8O1 = _Wn._FN1;
if (_8O1[_9O1] || _8O1[_aO1] || _8O1[_bO1] || _8O1[_cO1] || _8O1[_dO1] || _8O1[_eO1] || _8O1[_fO1] || _8O1[_gO1] || _8O1[_hO1] || _8O1[_iO1] || _8O1[_jO1] || _8O1[_kO1] || _8O1[_lO1] || _8O1[_mO1]) {
if (_Wn._nO1.length > 0) {
var _oO1 = _Wn._nO1._Hn.slice(0);
for (var _u2 = _oO1.length - 1; _u2 >= 0; _u2--) {
var _jE = _oO1[_u2];
if (!_jE._kE) {
{
if (_jE._BE) _jE._CE();
if (_jE._pO1(_Cf, _Ef, !0)) {
var _qO1 = !0;
for (_Sp = 0; _Sp < 3; _Sp++) {
if (_Pm.__k[_Sp]) {
if (_8O1[_9O1 + _Sp]) {
_jE._Se(_9O1 + _Sp, 0, _jE, _jE)
}
_qO1 = !1
}
}
for (_Sp = 0; _Sp < 3; _Sp++) {
if (_Pm._Vk[_Sp] === 1) {
if (_8O1[_cO1 + _Sp]) {
_jE._Se(_cO1 + _Sp, 0, _jE, _jE)
}
_qO1 = !1
}
}
for (_Sp = 0; _Sp < 3; _Sp++) {
if (_Pm._Zk[_Sp] === 1) {
if (_8O1[_fO1 + _Sp]) {
_jE._Se(_fO1 + _Sp, 0, _jE, _jE)
}
}
}
if (_qO1) {
_jE._Se(_iO1, 0, _jE, _jE)
}
if (!_jE._rO1) {
_jE._Se(_jO1, 0, _jE, _jE);
_jE._rO1 = !0
}
} else {
if (_jE._rO1) {
_jE._Se(_kO1, 0, _jE, _jE);
_jE._rO1 = !1
}
}
}
}
}
}
}
}
for (_Sp = 0; _Sp < 3; _Sp++) {
if (_Pm.__k[_Sp]) {
_3E._Se(_sO1 + _Sp, 0)
}
}
for (_Sp = 0; _Sp < 3; _Sp++) {
if (_Pm._Vk[_Sp] === 1) {
_3E._Se(_tO1 + _Sp,
0)
}
}
for (_Sp = 0; _Sp < 3; _Sp++) {
if (_Pm._Zk[_Sp] === 1) {
_3E._Se(_uO1 + _Sp, 0)
}
}
if (_vO1) {
_3E._Se(_lO1, 0)
}
if (_wO1) {
_3E._Se(_mO1, 0)
}
}
}
}
}
}
function _xO1() {
var _ih, _jh, _Bf;
var _Hn = _ke._AE._Hn;
for (var _iE = 0; _iE < _Hn.length; _iE++) {
var _jE = _Hn[_iE];
if (!_jE._kE && (_jE._yO1 >= 0)) {
if (!_jE._zO1) {
var _Ey = _Fy._hn(_jE._yO1);
if ((_Ey !== null) && (_Ey !== undefined)) {
if (_jE._AO1 > 0) {
_ih = _Ey._BO1(_jE._CO1);
_jE._CO1 += _jE._AO1;
_jh = _Ey._BO1(_jE._CO1);
for (_Bf = _ih; _Bf < _jh; _Bf++) {
_zy(_jE, _jE, _jE._yO1, _Bf)
}
if ((_jE._DO1 === !0) && (_jE._CO1 > _Ey._EO1())) {
_jE._CO1 = 0
}
} else {
_ih = _Ey._FO1(_jE._CO1);
_jE._CO1 += _jE._AO1;
_jh = _Ey._FO1(_jE._CO1);
for (_Bf = _ih; _Bf > _jh; _Bf--) {
_zy(_jE, _jE, _jE._yO1, _Bf)
}
if ((_jE._DO1 === !0) && (_jE._CO1 < 0)) {
_jE._CO1 = _Ey._EO1()
}
}
}
}
}
}
}
function _GO1() {
var _Hn = _ke._AE._Hn;
for (var _iE = 0; _iE < _Hn.length; _iE++) {
var _jE = _Hn[_iE];
if (!_jE._kE) {
for (var _Wg = 0; _Wg < _HO1; _Wg++) {
var event = _IO1 | (_Wg + 1);
var _Wn = _jE._JE;
if (_Wn._FN1[event]) {
var _JO1;
_JO1 = ~~ (_jE._x6[_Wg]);
if (_JO1 >= 0) {
_JO1--;
_jE._x6[_Wg] = _JO1
}
if (_JO1 === 0) {
_jE._Se(_IO1 | (_Wg + 1), 0, _jE, _jE)
}
}
}
}
}
}(function(window) {
if (!Object.defineProperty) {
throw ("Font.js requires Object.defineProperty, which this browser does not support.")
}
if (!document.createElement("canvas").getContext) {
throw ("Font.js requires