1function _defineProperty(t, e, o) { 2 return e in t ? Object.defineProperty(t, e, { 3 value: o, 4 enumerable: !0, 5 configurable: !0, 6 writable: !0 7 }) : t[e] = o, t 8}! function i(s, n, r) { 9 function a(e, t) { 10 if (!n[e]) { 11 if (!s[e]) { 12 var o = "function" == typeof require && require; 13 if (!t && o) return o( 14 e, !0); 15 if (l) return l(e, !0); 16 throw (o = new Error("Cannot find module '" + e + "'")).code = 17 "MODULE_NOT_FOUND", o 18 } 19 o = n[e] = { exports: {} }, s[e][0].call(o.exports, function(t) { 20 return a( 21 s[e][1][t] || t) 22 }, o, o.exports, i, s, n, r) 23 } 24 return n[e].exports 25 } 26 for (var l = "function" == 27 typeof require && require, t = 0; t < r.length; t++) a(r[t]); 28 return a 29}({ 30 1: [function(t, e, o) { 31 var i, s; 32 i = this, s = function(t) { 33 "use strict"; 34 var r, n = [], 35 o = "ResizeObserver loop completed with undelivered notifications."; 36 (A = r = r || {}).BORDER_BOX = "border-box", A.CONTENT_BOX = "content-box", A 37 .DEVICE_PIXEL_CONTENT_BOX = "device-pixel-content-box"; 38 39 function p(t) { return Object.freeze(t) } 40 var i = function(t, e) { 41 this.inlineSize = t, this 42 .blockSize = e, p(this) 43 }, 44 g = (e.prototype.toJSON = function() { 45 var t = this; 46 return { 47 x: t.x, 48 y: t.y, 49 top: t 50 .top, 51 right: t.right, 52 bottom: t.bottom, 53 left: t.left, 54 width: t.width, 55 height: t.height 56 } 57 }, e.fromRect = function(t) { 58 return new e(t.x, t.y, t 59 .width, t.height) 60 }, e); 61 62 function e(t, e, o, i) { 63 return this.x = t, this.y = e, this.width = o, this.height = i, 64 this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this 65 .right = this.left + this.width, p(this) 66 } 67 68 function v(t) { return t instanceof SVGElement && "getBBox" in t } 69 70 function b(t) { 71 if (v(t)) { 72 var e = t.getBBox(), 73 o = e.width, 74 e = e.height; 75 return !o && !e 76 } 77 return o = t.offsetWidth, e = t.offsetHeight, !( 78 o || e || t.getClientRects().length) 79 } 80 81 function s(t) { 82 if (t instanceof Element) return 1; 83 var e = null === (e = null === t || 84 void 0 === t ? void 0 : t.ownerDocument) || void 0 === e ? void 0 : e 85 .defaultView; 86 return !!(e && t instanceof e.Element) 87 } 88 89 function m(t) { return parseFloat(t || "0") } 90 91 function x(t, e, o) { 92 return void 0 === t && (t = 0), void 0 === e && (e = 0), new i(((o = 93 void 0 === o ? !1 : o) ? e : t) || 0, (o ? t : e) || 0) 94 } 95 96 function a(t, e) { 97 if (void 0 === e && (e = !1), y.has(t) && !e) return y.get(t); 98 if (b(t)) 99 return y.set(t, S), S; 100 var o = getComputedStyle(t), 101 i = v(t) && t.ownerSVGElement && t.getBBox(), 102 s = !_ && "border-box" === o.boxSizing, 103 n = k.test(o.writingMode || ""), 104 r = !i && C.test(o.overflowY || ""), 105 a = !i && C.test(o.overflowX || ""), 106 l = i ? 0 : m(o.paddingTop), 107 c = i ? 0 : m(o.paddingRight), 108 u = i ? 0 : m(o.paddingBottom), 109 d = i ? 0 : m(o.paddingLeft), 110 h = i ? 0 : m(o.borderTopWidth), 111 f = i ? 0 : m(o.borderRightWidth), 112 e = i ? 0 : m(o.borderBottomWidth), 113 c = d + c, 114 u = l + u, 115 f = (i ? 0 : m(o.borderLeftWidth)) + f, 116 h = h + e, 117 e = a ? t.offsetHeight - h - t.clientHeight : 0, 118 a = r ? t.offsetWidth - f - t.clientWidth : 0, 119 r = s ? c + f : 0, 120 s = s ? u + h : 0, 121 r = i ? i.width : m(o.width) - r - a, 122 s = i ? i.height : m(o.height) - s - e, 123 f = r + c + a + f, 124 h = s + u + e + h, 125 s = p({ 126 devicePixelContentBoxSize: x(Math.round(r * devicePixelRatio), Math.round( 127 s * devicePixelRatio), n), 128 borderBoxSize: x(f, h, n), 129 contentBoxSize: x( 130 r, s, n), 131 contentRect: new g(d, l, r, s) 132 }); 133 return y.set(t, s), s 134 } 135 136 function l(t, e, o) { 137 var i = (o = a(t, o)).borderBoxSize, 138 s = o.contentBoxSize, 139 n = o.devicePixelContentBoxSize; 140 switch (e) { 141 case r.DEVICE_PIXEL_CONTENT_BOX: 142 return n; 143 case r.BORDER_BOX: 144 return i; 145 default: 146 return s 147 } 148 } 149 150 function c(t) { 151 if (b(t)) return 1 / 0; 152 for (var e = 0, o = t.parentNode; o;) e += 1, o = o 153 .parentNode; 154 return e 155 } 156 157 function u(o) {
158 n.forEach(function(e) { 159 e.activeTargets.splice(0, e.activeTargets.length), e 160 .skippedTargets.splice(0, e.skippedTargets.length), e.observationTargets 161 .forEach(function(t) { 162 t.isActive() && (c(t.target) > o ? e 163 .activeTargets : e.skippedTargets).push(t) 164 }) 165 }) 166 } 167 168 function d() { 169 var t, e = 0; 170 for (u(e); n.some(function(t) { 171 return 0 < t.activeTargets 172 .length 173 });) e = function() { 174 var s = 1 / 0, 175 e = []; 176 n.forEach(function(t) { 177 var i; 178 0 !== t.activeTargets.length && (i = [], t.activeTargets.forEach( 179 function(t) { 180 var e = new T(t.target), 181 o = c(t.target); 182 i.push(e), t.lastReportedSize = l(t.target, t 183 .observedBox), o < s && (s = o) 184 }), e.push( 185 function() { 186 t.callback.call(t.observer, i, t 187 .observer) 188 }), t.activeTargets.splice(0, t 189 .activeTargets.length)) 190 }); 191 for (var t = 0, o = e; t < o.length; t++)(0, 192 o[t])(); 193 return s 194 }(), u(e); 195 return n.some(function(t) { 196 return 0 < t 197 .skippedTargets.length 198 }) && ("function" == typeof ErrorEvent ? t = 199 new ErrorEvent("error", { message: o }) : ((t = document.createEvent("Event")) 200 .initEvent("error", !1, !1), t.message = o), window.dispatchEvent(t)), 0 < e 201 } 202 203 function h(t) { 204 var e, o; 205 $ || (e = 0, o = document.createTextNode(""), new MutationObserver(function() { 206 return z 207 .splice(0).forEach(function(t) { return t() }) 208 }).observe( 209 o, { characterData: !0 }), $ = function() { 210 o.textContent = "" + (e ? e-- : 211 e++) 212 }), z.push(t), $() 213 } 214 215 function f(t) { return void 0 === t && (t = 0), Date.now() + t } 216 var $, w = "undefined" != 217 typeof window ? window : {}, 218 y = new WeakMap, 219 C = /auto|scroll/, 220 k = /^tb|vertical/, 221 _ = /msie|trident/i.test(w.navigator && w.navigator.userAgent), 222 S = p({ 223 devicePixelContentBoxSize: x(), 224 borderBoxSize: x(), 225 contentBoxSize: x(), 226 contentRect: new g(0, 0, 0, 0) 227 }), 228 T = function(t) { 229 var e = a(t); 230 this.target = t, this.contentRect = e.contentRect, this.borderBoxSize = p([e 231 .borderBoxSize 232 ]), this.contentBoxSize = p([e.contentBoxSize]), this 233 .devicePixelContentBoxSize = p([e.devicePixelContentBoxSize]) 234 }, 235 z = [], 236 P = 0, 237 E = { attributes: !0, characterData: !0, childList: !0, subtree: !0 }, 238 O = ["resize", "load", "transitionend", "animationend", "animationstart", 239 "animationiteration", "keyup", "keydown", "mouseup", "mousedown", "mouseover", 240 "mouseout", "blur", "focus" 241 ], 242 W = !1; 243 244 function H() { 245 var t = this; 246 this.stopped = !0, this.listener = function() { return t.schedule() } 247 } 248 249 function B(t) {!P && 0 < t && R.start(), (P += t) || R.stop() } 250 var R = new(H.prototype 251 .run = function(e) { 252 var o, t, i = this; 253 void 0 === e && (e = 250), W || (W = !0, o = f(e), t = function() { 254 var t = ! 255 1; 256 try { t = d() } finally { 257 if (W = !1, e = o - f(), !P) return; 258 t ? i.run(1e3) : 0 < e ? i.run(e) : i.start() 259 } 260 }, h( 261 function() { requestAnimationFrame(t) })) 262 }, H.prototype.schedule = 263 function() { this.stop(), this.run() }, H.prototype.observe = function() { 264 function t() { return e.observer && e.observer.observe(document.body, E) } 265 var 266 e = this; 267 document.body ? t() : w.addEventListener("DOMContentLoaded", t) 268 }, H.prototype 269 .start = function() { 270 var e = this; 271 this.stopped && (this.stopped = !1, this.observer = new MutationObserver(this 272 .listener), this.observe(), O.forEach(function(t) { 273 return w 274 .addEventListener(t, e.listener, !0) 275 })) 276 }, H.prototype.stop = 277 function() { 278 var e = this; 279 this.stopped || (this.observer && this.observer.disconnect(), O.forEach( 280 function(t) { return w.removeEventListener(t, e.listener, !0) }), 281 this.stopped = !0) 282 }, H), 283 D = (M.prototype.isActive = function() { 284 var t, e = l(this.target, this.observedBox, ! 285 0); 286 return t = this.target, v(t) || function(t) { 287 switch (t.tagName) { 288 case "INPUT": 289 if ("image" !== t.type) break; 290 case "VIDEO": 291 case "AUDIO": 292 case "EMBED": 293 case "OBJECT": 294 case "CANVAS": 295 case "IFRAME": 296 case "IMG": 297 return !0 298 } 299 return !1 300 }(t) || "inline" !== getComputedStyle(t) 301 .display || (this.lastReportedSize = e), this.lastReportedSize 302 .inlineSize !== e.inlineSize || this.lastReportedSize.blockSize !== e 303 .blockSize 304 }, M); 305 306 function M(t, e) { 307 this.target = t, this.observedBox = e || r.CONTENT_BOX, this 308 .lastReportedSize = { inlineSize: 0, blockSize: 0 } 309 } 310 311 function N(t, e) { 312 for (var o = 0; o < t.length; o += 1) 313 if (t[o].target === e) return o; 314 return -1 315 } 316 var X = function(t, e) { 317 this 318 .activeTargets = [], this.skippedTargets = [], this.observationTargets = [], 319 this.observer = t, this.callback = e 320 }, 321 q = new WeakMap, 322 Y = (j.connect = function(t, e) { 323 e = new X(t, e); 324 q.set(t, e) 325 }, j.observe = function(t, e, o) { 326 var i = q.get(t), 327 t = 0 === i.observationTargets.length; 328 N(i.observationTargets, e) < 0 && (t && n.push(i), i.observationTargets.push( 329 new D(e, o && o.box)), B(1), R.schedule()) 330 }, j.unobserve = function(t, 331 e) { 332 var o = q.get(t), 333 t = N(o.observationTargets, e), 334 e = 1 === o.observationTargets.length; 335 0 <= t && (e && n.splice(n.indexOf(o), 1), o.observationTargets.splice(t, 1), B( 336 -1)) 337 }, j.disconnect = function(e) { 338 var o = this, 339 t = q.get(e);
340 t.observationTargets.slice().forEach(function(t) { 341 return o.unobserve(e, t 342 .target) 343 }), t.activeTargets.splice(0, t.activeTargets.length) 344 }, j); 345 346 function j() {} 347 var A = (F.prototype.observe = function(t, e) { 348 if (0 === arguments.length) 349 throw new TypeError( 350 "Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present." 351 ); 352 if (!s(t)) throw new TypeError( 353 "Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element" 354 ); 355 Y.observe(this, t, e) 356 }, F.prototype.unobserve = function(t) { 357 if (0 === 358 arguments.length) throw new TypeError( 359 "Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present." 360 ); 361 if (!s(t)) throw new TypeError( 362 "Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element" 363 ); 364 Y.unobserve(this, t) 365 }, F.prototype.disconnect = function() { 366 Y.disconnect( 367 this) 368 }, F.toString = 369 function() { return "function ResizeObserver () { [polyfill code] }" }, F); 370 371 function F(t) { 372 if (0 === arguments.length) throw new TypeError( 373 "Failed to construct 'ResizeObserver': 1 argument required, but only 0 present." 374 ); 375 if ("function" != typeof t) throw new TypeError( 376 "Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function." 377 ); 378 Y.connect(this, t) 379 } 380 t.ResizeObserver = A, t.ResizeObserverEntry = T, t 381 .ResizeObserverSize = i, Object.defineProperty(t, "__esModule", { value: !0 }) 382 }, 383 "object" == typeof o && void 0 !== e ? s(o) : "function" == typeof define && define.amd ? 384 define(["exports"], s) : s((i = "undefined" != typeof globalThis ? globalThis : i || self) 385 .ResizeObserver = {}) 386 }, {}], 387 2: [function(t, e, o) { 388 window.MutationObserver || (window 389 .MutationObserver = function(x) { 390 function r(t) { this.i = [], this.m = t } 391 392 function $(t) { 393 var e, o = { 394 type: null, 395 target: null, 396 addedNodes: [], 397 removedNodes: [], 398 previousSibling: null, 399 nextSibling: null, 400 attributeName: null, 401 attributeNamespace: null, 402 oldValue: null 403 }; 404 for (e in t) o[e] !== x && t[e] !== 405 x && (o[e] = t[e]); 406 return o 407 } 408 409 function a(i, s) { 410 var n = l(i, s); 411 return function(t) { 412 var e, p, g, v, o = t.length; 413 414 function b(t, e, o, i, s) { 415 var n, r, a, l = t.length - 1; 416 for (s = -~((l - 417 s) / 2); a = t.pop();) n = o[a.j], r = i[a.l], g.c && s && Math 418 .abs(a.j - a.l) >= l && (p.push($({ 419 type: "childList", 420 target: e, 421 addedNodes: [n], 422 removedNodes: [n], 423 nextSibling: n 424 .nextSibling, 425 previousSibling: n 426 .previousSibling 427 })), s--), g.b && r.b && w(p, n, r.b, g.f), 428 g.a && 3 === n.nodeType && n.nodeValue !== r.a && p.push( 429 $({ type: "characterData", target: n, oldValue: r.a })), g.g && 430 m(n, 431 r) 432 } 433 434 function m(t, e) { 435 for (var o, i, s, n, r, a = t.childNodes, l = e.c, c = a 436 .length, u = l ? l.length : 0, d = 0, h = 0, f = 0; h < c || f < 437 u;)(n = a[h]) === (r = (s = l[f]) && s.node) ? (g.b && s.b && w(p, 438 n, s.b, g.f), g.a && s.a !== x && n.nodeValue !== s.a && p 439 .push($({ type: "characterData", target: n, oldValue: s.a })), 440 i && b(i, t, a, l, d), g.g && (n.childNodes.length || s.c && s.c 441 .length) && m(n, s), h++, f++) : (v = !0, o || (o = {}, 442 i = []), n && (o[s = y(n)] || (o[s] = !0, -1 === (s = C(l, 443 n, f, "node")) ? g.c && (p.push( 444 $({ 445 type: "childList", 446 target: t, 447 addedNodes: [ 448 n 449 ], 450 nextSibling: n.nextSibling, 451 previousSibling: n.previousSibling 452 })), d++) : i 453 .push({ j: h, l: s })), h++), r && r !== a[h] && (o[s = y( 454 r)] || (o[s] = !0, -1 === (s = C(a, r, h)) ? g.c && (p 455 .push($({ 456 type: "childList", 457 target: e.node, 458 removedNodes: [r], 459 nextSibling: l[f + 460 1], 461 previousSibling: l[f - 1] 462 })), d--) : i 463 .push({ j: s, l: f })), f++)); 464 i && b(i, t, a, l, d) 465 } 466 s.a && 3 === i.nodeType && i.nodeValue !== n 467 .a && t.push(new $({ 468 type: "characterData", 469 target: i, 470 oldValue: n 471 .a 472 })), s.b && n.b && w(t, i, n.b, s.f), (s.c || s.g) && (p = t, g = 473 s, m(i, n), e = v), !e && t.length === o || (n = l(i, s)) 474 } 475 } 476 477 function w(t, e, o, i) { 478 for (var s, n, r = {}, a = e.attributes, l = a.length; l--;) 479 n = (s = a[l]).name, i && i[n] === x || (u(e, s) !== o[n] && t.push( 480 $({ 481 type: "attributes", 482 target: e, 483 attributeName: n, 484 oldValue: o[n], 485 attributeNamespace: s.namespaceURI 486 })), r[n] = !0);
487 for (n in o) r[n] || t 488 .push($({ target: e, type: "attributes", attributeName: n, oldValue: o[n] })) 489 } 490 491 function l(t, i) { 492 var s = !0; 493 return function t(o) { 494 var e = { node: o }; 495 return !i 496 .a || 3 !== o.nodeType && 8 !== o.nodeType ? (i.b && s && 1 === o 497 .nodeType && (e.b = c(o.attributes, function(t, e) { 498 return i.f && ! 499 i.f[e.name] || (t[e.name] = u(o, e)), t 500 }, {})), s && (i 501 .c || i.a || i.b && i.g) && (e.c = function(t, e) { 502 for (var 503 o = [], i = 0; i < t.length; i++) o[i] = e(t[i], i, 504 t); 505 return o 506 }(o.childNodes, t)), s = i.g) : e.a = o 507 .nodeValue, e 508 }(t) 509 } 510 511 function y(e) { 512 try { return e.id || (e.mo_id = e.mo_id || o++) } catch ( 513 t) { try { return e.nodeValue } catch (t) { return o++ } } 514 } 515 516 function c(t, e, o) { 517 for (var i = 0; i < t.length; i++) o = e(o, t[i], i, 518 t); 519 return o 520 } 521 522 function C(t, e, o, i) { 523 for (; o < t.length; o++) 524 if ((i ? t[o][i] : t[o]) === e) return o; 525 return -1 526 } 527 r._period = 30, r 528 .prototype = { 529 observe: function(t, e) { 530 for (var o, i = { 531 b: !!(e.attributes || e 532 .attributeFilter || e.attributeOldValue), 533 c: !!e 534 .childList, 535 g: !!e.subtree, 536 a: !(!e.characterData && !e 537 .characterDataOldValue) 538 }, s = this.i, n = 0; n < s 539 .length; n++) s[n].s === t && s.splice(n, 1); 540 e.attributeFilter && (i.f = c(e.attributeFilter, function(t, 541 e) { return t[e] = !0, t }, {})), s.push({ s: t, o: a(t, i) }), 542 this 543 .h || (o = this, function t() { 544 var e = o.takeRecords(); 545 e.length && o.m(e, o), o.h = setTimeout(t, r._period) 546 }()) 547 }, 548 takeRecords: function() { 549 for (var t = [], e = this.i, o = 0; o < e.length; o++) 550 e[o].o(t); 551 return t 552 }, 553 disconnect: function() { 554 this.i = [], 555 clearTimeout(this.h), this.h = null 556 } 557 }; 558 var t = document.createElement( 559 "i"); 560 t.style.top = 0; 561 var u = (t = "null" != t.attributes.style.value) ? function(t, 562 e) { return e.value } : function(t, e) { 563 return "style" !== e.name ? e.value : t 564 .style.cssText 565 }, 566 o = 1; 567 return r 568 }(void 0)) 569 }, {}], 570 3: [function(t, e, o) { 571 "use strict"; 572 t("mutationobserver-shim"); 573 var i, c = t("@juggle/resize-observer"); 574 575 function s(t, e, o) { 576 return e in t ? Object.defineProperty(t, e, { 577 value: o, 578 enumerable: !0, 579 configurable: !0, 580 writable: !0 581 }) : t[e] = o, t 582 } 583 584 function n(t) { 585 return (n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? 586 function(t) { return typeof t } : function(t) { 587 return t && "function" == 588 typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : 589 typeof t 590 })(t) 591 } 592 593 function r() { return i.apply(this, arguments) } window.devicePixelRatio || (window 594 .devicePixelRatio = window.screen.deviceXDPI / window.screen.logicalXDPI), window 595 .ResizeObserver = c.ResizeObserver, gsap.registerPlugin(InertiaPlugin, Draggable, 596 ScrollToPlugin, ScrollTrigger), $.utils = { 597 temp: {}, 598 ua: $.ua || navigator.userAgent, 599 is_ios: function() { 600 return $.ua ? "iOS" == this.ua.os.name : !!this.ua.match( 601 /\(i[^;]+;( U;)? CPU.+Mac OS X/) 602 }, 603 is_android: function() { 604 return $.ua ? 605 "Android" == this.ua.os.name : -1 < this.ua.indexOf("Android") || -1 < this.ua 606 .indexOf("Linux") || -1 < this.ua.indexOf("XiaoMi") 607 }, 608 is_mobile: function( 609 t) { 610 return t ? $.ua ? void 0 !== this.ua.device.type : (this.is_ios() || this 611 .is_android()) && window.matchMedia("(max-width: 768px)").matches : window 612 .matchMedia("(max-width: 768px)").matches 613 }, 614 is_wechat: function() { 615 return $.ua ? 616 "WeChat" == this.ua.browser.name : "micromessenger" == this.ua.toLowerCase() 617 .match(/micromessenger/i) 618 }, 619 is_cochat: function() { 620 return $.ua ? "wxwork" == this 621 .ua.ua.match(/WxWork/i) : "wxwork" == this.ua.toLowerCase().match(/wxwork/i) 622 }, 623 is_null: function(t) { return null === t }, 624 is_undefined: function(t) { 625 return void 0 === 626 t 627 }, 628 is_none: function(t) { 629 return this.is_null(t) || this.is_undefined(t) || "" === 630 t || "undefined" === t 631 }, 632 is_true: function(t) { return !0 === t || "true" === t }, 633 is_false: function(t) { return !1 === t || "false" === t }, 634 is_array: function( 635 t) { return t instanceof Array }, 636 is_number: function(t) { 637 return (t instanceof Number || 638 "number" == typeof t) && !isNaN(t) 639 }, 640 is_percentage: function(t) { 641 return this 642 .is_string(t) && "%" == t.slice(-1) 643 }, 644 is_string: function(t) { 645 return ( 646 t instanceof String || "string" == typeof t) && !this.is_none(t) && !this 647 .is_true(t) && !this.is_false(t) 648 }, 649 is_function: function( 650 t) { return t instanceof Function || "function" == typeof t }, 651 is_boolean: function( 652 t) { 653 return t instanceof Boolean || "boolean" == typeof t || this.is_true(t) || this 654 .is_false(t) 655 }, 656 is_jquery: function(t) { return t instanceof jQuery }, 657 is_object: function(t) { 658 return (t instanceof Object || "object" == n(t)) && !this.is_null( 659 t) && !this.is_jquery(t) && !this.is_array(t) && !this.is_function(t) 660 }, 661 is_dom: function(t) { return this.is_object(t) && t instanceof HTMLElement }, 662 fireCallbacks: function(t, e, o) { 663 if (e.length) 664 for (var i = 0; i < e.length; i++) e[i].apply(t, o) 665 }, 666 objectFitPolyfill: (i = 667 function() { window.objectFitPolyfill && objectFitPolyfill() }, r.toString = 668 function() { return i.toString() }, r), 669 placeholder: function() { 670 $.fn.placeholder && $( 671 "input, textarea").placeholder() 672 }, 673 screenScrollbar: function() { 674 $("body").append( 675 '<div class="scrollbar-rails scrollbar-rails-x"><div class="scrollbar-thumb scrollbar-thumb-x"></div></div><div class="scrollbar-rails scrollbar-rails-y"><div class="scrollbar-thumb scrollbar-thumb-y"></div></div>' 676 ); 677 var e = $(window), 678 o = $("body"), 679 i = $(".scrollbar-rails-x"), 680 s = $(".scrollbar-thumb-x"), 681 n = $(".scrollbar-rails-y"), 682 r = $(".scrollbar-thumb-y"), 683 a = t(), 684 l = !1; 685 686 function t() { 687 var t = { 688 contWidth: e.width(), 689 contHeight: e.height(), 690 scrollWidth: o.outerWidth(!0), 691 scrollHeight: o.outerHeight(!0), 692 trackWidth: i.width(), 693 trackHeight: n.height(), 694 barWidth: 0, 695 barHeight: 0, 696 maxX: 0, 697 maxY: 0, 698 curX: o.scrollLeft(), 699 curY: o 700 .scrollTop() 701 }; 702 return t.scrollWidth > t.contWidth ? (t.barWidth = Math 703 .round(t.contWidth / t.scrollWidth * t.trackWidth), t.maxX = t 704 .scrollWidth - t.contWidth) : (t.barWidth = t.trackWidth, t.maxX = 0), t 705 .scrollHeight > t.contHeight ? (t.barHeight = Math.round(t.contHeight / t 706 .scrollHeight * t.trackHeight), t.maxY = t.scrollHeight - t 707 .contHeight) : (t.barHeight = t.trackHeight, t.maxY = 0), s.width(t 708 .barWidth), r.height(t.barHeight), t.rateX = Math.min($.utils.is_number( 709 t.curX / t.maxX) ? t.curX / t.maxX : 0, 1), t.rateY = Math.min($.utils 710 .is_number(t.curY / t.maxY) ? t.curY / t.maxY : 0, 1), 0 < t.maxX ? i 711 .removeClass("scrollbar-rails-disable") : i.addClass( 712 "scrollbar-rails-disable"), 0 < t.maxY ? n.removeClass( 713 "scrollbar-rails-disable") : n.addClass("scrollbar-rails-disable"), 714 t 715 } 716 new c.ResizeObserver($.debounce(250, function() { a = t() })).observe(o[ 717 0]), e.on("scroll", function() { 718 a.curX = e.scrollLeft(), a.curY = e 719 .scrollTop(), a.rateX = Math.min(a.curX / a.maxX, 1), a.rateY = Math 720 .min(a.curY / a.maxY, 1), l || (gsap.to(s, { 721 x: (a.trackWidth - a 722 .barWidth) * a.rateX, 723 duration: .1, 724 overwrite: "auto" 725 }), gsap.to(r, { 726 y: (a.trackHeight - a 727 .barHeight) * a.rateY, 728 duration: .1, 729 overwrite: "auto" 730 })) 731 }), Draggable.create(s, { 732 type: "x", 733 bounds: i, 734 zIndexBoost: !1, 735 onDrag: function() { 736 var t = this.x / (a 737 .trackWidth - a.barWidth);
738 l = !0, gsap.set(e, { scrollTo: { x: t * a.maxX } }) 739 }, 740 onDragEnd: function() { l = !1 } 741 }), Draggable.create(r, { 742 type: "y", 743 bounds: n, 744 zIndexBoost: !1, 745 onDrag: function() { 746 var t = this.y / (a 747 .trackHeight - a.barHeight); 748 l = !0, gsap.set(e, { scrollTo: { y: t * a.maxY } }) 749 }, 750 onDragEnd: function() { l = !1 } 751 }) 752 }, 753 scrollFade: function(a) { 754 var l = this; 755 756 function t() { 757 for (var t, e, o, i, s, n, r = 0; r < a.length; r++) t = a[r], n = 758 s = i = o = e = void 0, e = t.elm, o = l.is_string(t.cls) ? t.cls : 759 "x-show", i = l.is_number(t.range) ? t.range : 0, s = !!l.is_boolean(t 760 .always) && t.always, n = 0, !void($(e).length < 1 || (l.is_function(t 761 .bottom) ? n = t.bottom() : l.is_number(t.bottom) && (n = t 762 .bottom), $("body").height() > $(window).height() + i ? $( 763 window).scrollTop() > i ? $(e).hasClass(o) || $(e).addClass(o) : 764 $(e).hasClass(o) && $(e).removeClass(o) : s && $(e).addClass(o), 0 < 765 n && ($(window).scrollTop() > n - $(window).height() ? gsap.to( 766 e, { 767 duration: .2, 768 y: n - $(window).height() - $(window) 769 .scrollTop() 770 }) : gsap.to(e, { duration: .2, y: 0 })))) 771 } 772 l 773 .is_object(a) && (a = [a]), l.is_array(a) && (t(), $(window).on( 774 "load resize scroll", t)) 775 }, 776 backTop: function(t) { 777 $(t).on("click", 778 function() { gsap.to(window, { scrollTo: 0 }) }) 779 }, 780 htmlSize: function(e, o) { 781 function t() { 782 var t = $(window).width() < o ? o : $(window).width(); 783 e < t ? $("html").css({ "font-size": "100px" }) : $("html") 784 .css({ "font-size": t / e * 100 + "px" }) 785 } 786 t(), $(window).on("load resize", t) 787 }, 788 contHeight: function() { 789 var s = this, 790 n = $(".x-header"), 791 r = $(".x-container"), 792 a = $(".x-footer"), 793 l = !!s.is_none(r.data("pt")) || r.data("pt"), 794 c = s.is_none(r.data("mh")) ? "" : r.data("mh"), 795 u = s.is_none(r.data("ch")) ? "" : r.data("ch"), 796 d = s.is_none(r.data("sh")) ? "" : r.data("sh"), 797 h = s.is_none(r.data("wh")) ? "" : r.data("wh"); 798 799 function t() { 800 var t = $(window).height(), 801 e = n.outerHeight(), 802 o = a.outerHeight(), 803 i = t - e - o; 804 "fixed" === n.css("position") || "absolute" === n.css( 805 "position") ? (s.is_true(l) && r.css({ "padding-top": e + "px" }), r 806 .css({ "min-height": i + e + "px" })) : r.css({ 807 "min-height": i + 808 "px", 809 "padding-top": 0 810 }), $(c).each(function() { 811 $(this) 812 .css({ "min-height": i + "px" }) 813 }), $(u).each(function() { 814 $(this) 815 .css({ height: i + "px" }) 816 }), $(d).each(function() { 817 $(this) 818 .css({ height: t - e + "px" }) 819 }), $(h).each(function() { 820 $(this) 821 .css({ height: t + "px" }) 822 }) 823 } 824 t(), $(window).on("load resize", t) 825 }, 826 horizontalNav: function() { 827 function t() { 828 $(".nav-lv2").each(function() { 829 var t, e, o, i, s = $(this); 830 s.hasClass("exp") || (i = 0, i = (t = $(window).width()) / 2 < (e = 831 s.parent().width()) / 2 + (o = s.parent().offset() 832 .left) ? 2 * (t - (e / 2 + o)) : 2 * (e / 2 + o), s 833 .css({ width: t + "px", left: -o + "px" }).find(".nav-grp") 834 .css({ 835 width: i + "px", 836 "margin-left": e / 2 + o - i / 2 + 837 "px" 838 })) 839 }) 840 } 841 $(".x-header").hasClass("hz-nav") && (this 842 .is_mobile() || (t(), $(window).on("resize", t))) 843 }, 844 getFullScreen: function() { 845 function t() { 846 document.body.scrollHeight > window.innerHeight ? $("body") 847 .removeClass("full-screen") : $("body").addClass("full-screen") 848 } 849 $("body") 850 .addClass("init-screen"), t(), $(window).on("load resize scroll", t) 851 }, 852 unWinScroll: function() { $("body").addClass("lock-screen") }, 853 enWinScroll: function() { 854 $( 855 "body").removeClass("lock-screen") 856 }, 857 unSelect: function(t) { 858 $(t).attr( 859 "unselectable", "on").css((s(t = { "-moz-user-select": "-moz-none" }, 860 "-moz-user-select", "none"), s(t, "-o-user-select", "none"), s(t, 861 "-khtml-user-select", "none"), s(t, "-webkit-user-select", "none"), 862 s(t, "-ms-user-select", "none"), s(t, "user-select", "none"), t)).on( 863 "selectstart", 864 function() { return !1 }) 865 }, 866 enSelect: function(t) { 867 $(t).attr("unselectable", 868 "off").css((s(t = { "-moz-user-select": "text" }, "-moz-user-select", 869 "text"), s(t, "-o-user-select", "text"), s(t, "-khtml-user-select", 870 "text"), s(t, "-webkit-user-select", "text"), s(t, 871 "-ms-user-select", "text"), s(t, "user-select", "text"), t)).off( 872 "selectstart") 873 }, 874 init: function(t) { 875 var e = this; 876 $(function() { 877 e.placeholder(), e.objectFitPolyfill(), (e.is_true(t.htmlSize) || e 878 .is_number(t.htmlSize)) && e.htmlSize(e.is_true(t.htmlSize) ? 879 750 : t.htmlSize, 320), e.contHeight(), e.horizontalNav(), e 880 .getFullScreen(), e.backTop(t.backTop), e.scrollFade(t 881 .scrollFade) 882 }) 883 } 884 } 885 }, 886 { "@juggle/resize-observer": 1, "mutationobserver-shim": 2 } 887 ] 888}, {}, [3]), $.utils.init({ 889 htmlSize: !1, 890 backTop: '[class*="topping"]', 891 scrollFade: [{ 892 elm: ".topping-mod", 893 bottom: function() { 894 var t = $("body") 895 .height(); 896 return t = 0 < $(".x-footer").length ? Math.floor($(".x-footer").offset() 897 .top) : t 898 } 899 }, { elm: ".sidebar-mod", range: $(window).height() / 2, always: !0 }, 900 { elm: ".sidebar-topping", range: 0 } 901 ] 902}), $(function() { 903 $("body").on("mousewheel", function(t, e, o, i) { 904 $( 905 ".x-body").hasClass("istop") || (i < 0 && !$("body").hasClass("topmost") && $("body") 906 .addClass("topmost"), 0 < i && $("body").hasClass("topmost") && $("body").removeClass( 907 "topmost")) 908 }), ScrollTrigger.create({ 909 scroller: ".x-body", 910 trigger: ".x-body", 911 start: "top top", 912 onEnter: function() { return $(".x-body").addClass("istop") }, 913 onLeaveBack: function() { return $(".x-body").removeClass("istop") } 914 }), $(".x-header .menu-btn") 915 .on("click", function() { 916 var t = $(this).closest(".x-header"), 917 e = t.find(".nav-mod"); 918 $.utils.is_mobile() ? t.hasClass("menu-open") ? ($("body").removeClass("menu-screen"), t 919 .removeClass("menu-open"), $.utils.enWinScroll()) : ($("body").addClass("menu-screen"), 920 t.addClass("menu-open"), e.css("padding-top", t.outerHeight() + "px"), $.utils 921 .unWinScroll(), "fixed" !== t.css("position") && gsap.to(window, { 922 duration: .2, 923 scrollTo: 0 924 })) : t.hasClass("menu-sub") ? (t.removeClass("menu-sub"), $.utils 925 .enWinScroll()) : (t.addClass("menu-sub"), $.utils.unWinScroll()) 926 }), 927 $(".nav-lv a[href]").on( 928 "click", 929 function() { 930 $("body").removeClass("menu-screen"), $(".x-header").removeClass("menu-open"), $.utils 931 .enWinScroll() 932 }), 933 $(".nav-mod .arr").on("click", function() { 934 var t = $(this),
935 e = t.closest(".nav-item"); 936 e.hasClass("act") ? e.removeClass("act").children(".nav-lv").slideUp(200) : (e.addClass("act") 937 .siblings(".nav-item").removeClass("act").children(".nav-lv").slideUp(0), t.parent() 938 .siblings(".nav-lv").slideDown(200)) 939 }), 940 window.matchMedia("(max-width: 768px)").addListener( 941 function(t) { 942 t.matches || ($("body").removeClass("menu-screen"), $(".x-header").removeClass( 943 "menu-open").find(".nav-mod").removeAttr("style").find(".nav-item").removeClass( 944 "act").find(".nav-lv").removeAttr("style"), 0 == $(".pop-mod.x-show").length && $ 945 .utils.enWinScroll()) 946 }) 947}), $(function() { 948 $(".pop-mod").on("touchmove", function(t) { 949 if (!($ 950 .utils.is_wechat || $(this).find(".pop-panel").prop("scrollHeight") > $(this).find( 951 ".pop-panel").outerHeight())) return !1 952 }), $(".pop-mod").each(function() { 953 var i = $( 954 this), 955 o = !!$.utils.is_undefined(i.attr("unlock")), 956 t = i.find(".pop-close"), 957 s = [], 958 n = []; 959 960 function r(t, e) { 961 t.length < 1 || (t.addClass("x-show"), o && $.utils.unWinScroll(), $.utils 962 .fireCallbacks(t, s, [t, $(e) || null])) 963 } 964 965 function a(t, e) { 966 t.length < 1 || (t.removeClass("x-show"), clearTimeout(null), setTimeout( 967 function() { 968 0 < t.find("video").length && t.find("video").each( 969 function() { this.pause() }) 970 }, 1e3 * gsap.getProperty(t[0], 971 "transition-duration")), o && $.utils.enWinScroll(), $.utils.fireCallbacks( 972 t, n, [t, $(e) || null])) 973 } 974 i.on("show", function(t, e, o) { 975 t.stopPropagation(), $ 976 .utils.is_function(e) ? (s.push(e), o && r(i)) : r(i, e) 977 }), i.on("hide", function( 978 t, e, o) { 979 t.stopPropagation(), $.utils.is_function(e) ? (n.push(e), o && a(i)) : a( 980 i, e) 981 }), t.on("click", function() { a(i, $(this)) }) 982 }), $(document).on("click", 983 "[pop-show]", 984 function(t) { 985 t.stopPropagation(); 986 t = $(this); 987 $(t.attr("pop-show")).triggerHandler("show", t) 988 }), $(document).on("click", "[pop-hide]", 989 function(t) { 990 t.stopPropagation(); 991 var e = $(this), 992 o = null; 993 $.utils.is_undefined($(t.target).attr("pop-hide")) || ($.utils.is_none(e.attr("pop-hide")) ? o = 994 e.closest(".pop-mod") : (o = $(e.attr("pop-hide")), 0 < e.closest(".pop-mod").length && 995 (o = o.add(e.closest(".pop-mod")))), o.triggerHandler("hide", e)) 996 }) 997}), $(function() { 998 $( 999 ".scroll-mod").xScroll() 1000}), $.fn.xScroll = function() { 1001 if (0 == this.length) return this; 1002 if (1 < this 1003 .length) return this.each(function() { $(this).xScroll() }); 1004 var l = this; 1005 l.find(".scroll-cont").length < 1 && (l.children().wrapAll('<div class="scroll-cont" />'), l.append( 1006 '<div class="scroll-track"><div class="scroll-bar"></div></div>')); 1007 var c = l.children(".scroll-cont"), 1008 u = l.children(".scroll-track"), 1009 d = u.children(".scroll-bar"), 1010 h = 0 == d.width(), 1011 f = 0 == d.height(), 1012 p = null, 1013 g = null, 1014 v = !1, 1015 b = null, 1016 e = null, 1017 m = null; 1018 c.on("mousewheel", function(t) { 1019 (t.deltaY < 0 && b.rate < 1 || 0 < t.deltaY && 0 < b.rate) && (e = !0); 1020 $.utils.is_true(e) && "x" == b.axis && (t.stopPropagation(), t.preventDefault()) 1021 }), c.on("mousewheel", 1022 $.throttle(200, function(t) { 1023 "x" == b.axis && (t.deltaY < 0 && (b.rate < 1 ? gsap.to( 1024 c, { scrollTo: { x: "+=200" }, overwrite: "auto" }) : setTimeout(function() { 1025 e = ! 1026 1 1027 }, 500)), 0 < t.deltaY && (0 < b.rate ? gsap.to(c, { 1028 scrollTo: { x: "-=200" }, 1029 overwrite: "auto" 1030 }) : setTimeout(function() { e = !1 }, 500))) 1031 })); 1032 var t = new ResizeObserver($ 1033 .debounce(50, function() { 1034 var t, e, o, i, s, n, r, a; 1035 b.axis && ($.utils.is_none(p) || p.kill(), $.utils.is_mobile(!0) && 0 == l.closest(".pop-mod") 1036 .length || (p = Draggable.create(c, { 1037 type: "scroll", 1038 cursor: "default", 1039 lockAxis: !0, 1040 allowContextMenu: !0, 1041 allowEventDefault: !0, 1042 zIndexBoost: !1, 1043 inertia: !0 1044 })[0])), 1045 t = c.outerWidth(), e = c.outerHeight(), o = gsap.getProperty(c[0], "scrollWidth"), i = gsap 1046 .getProperty(c[0], "scrollHeight"), s = u.width(), n = u.height(), r = c.scrollLeft(), a = c 1047 .scrollTop(), (b = i - e == o - t ? { 1048 cont: 0, 1049 scroll: 0, 1050 track: 0, 1051 bar: 0, 1052 max: 0, 1053 cur: 0, 1054 axis: null 1055 } : o - t < i - e ? { 1056 cont: e, 1057 scroll: i, 1058 track: n, 1059 bar: Math.round(e / 1060 i * n), 1061 max: i - e, 1062 cur: a, 1063 axis: "y" 1064 } : { 1065 cont: t, 1066 scroll: o, 1067 track: s, 1068 bar: Math.round(t / o * s), 1069 max: o - t, 1070 cur: r, 1071 axis: "x" 1072 }).rate = Math.min($.utils 1073 .is_number(b.cur / b.max) ? b.cur / b.max : 0, 1), 0 < b.max ? (u.removeClass( 1074 "scroll-disable"), "x" == b.axis ? (l.addClass("scroll-x"), l.removeClass( 1075 "scroll-y"), d.height(""), h ? d.width(b.bar) : b.bar = d.width()) : "y" == b 1076 .axis && (l.addClass("scroll-y"), l.removeClass("scroll-x"), d.width(""), f ? d.height(b 1077 .bar) : b.bar = d.height()), gsap.set(d, _defineProperty({}, b.axis, (b.track - b 1078 .bar) * b.rate)), $.utils.is_function(m) && m({ 1079 axis: b.axis, 1080 cur: b.cur, 1081 rate: b 1082 .rate 1083 })) : (l.removeClass("scroll-x scroll-y"), u.addClass("scroll-disable")), 1084 $.utils.is_none(g) || g.kill(), g = Draggable.create(d, { 1085 type: b.axis, 1086 bounds: u, 1087 lockAxis: 1088 !0, 1089 allowContextMenu: !0, 1090 zIndexBoost: !1, 1091 onDrag: function() { 1092 var t = {}; 1093 b.rate = this[b.axis] / (b.track - b.bar), t[b.axis] = b.rate * b.max, v = ! 1094 0, gsap.set(c, { scrollTo: t }) 1095 }, 1096 onDragEnd: function() { v = !1 } 1097 })[0] 1098 })); 1099 t.observe(c[0]), t.observe(u[0]), c.children().each(function() { t.observe(this) }); 1100 var i = new Promise( 1101 function(t, e) { 1102 var o = setInterval(function() { $.utils.is_object(b) && (clearInterval(o), t()) }, 1103 50) 1104 }); 1105 l.on("to", function(t, e, o) { 1106 t.stopPropagation(), i.then(function() { 1107 var t; 1108 $.utils.is_undefined(e) || (t = { 1109 duration: o = $.utils.is_undefined(o) ? 1 : o, 1110 ease: "none", 1111 scrollTo: _defineProperty({}, b.axis, e) 1112 }, gsap.to(c, t)) 1113 }) 1114 }), l.on("append", 1115 function(t, e) { 1116 t.stopPropagation(), $.utils.is_string(e) && (e = $(e)), $.utils.is_jquery(e) && e 1117 .append(u) 1118 }), l.on("scroll", function(t, e) { 1119 t.stopPropagation(), $.utils.is_function(e) && ( 1120 m = e) 1121 }), c.on("scroll", function() { 1122 var t; 1123 "x" == b.axis ? b.cur = c.scrollLeft() : "y" == b 1124 .axis && (b.cur = c.scrollTop()), b.rate = Math.min(b.cur / b.max, 1), v || (( 1125 t = { duration: .05, overwrite: "auto" })[b.axis] = (b.track - b.bar) * b.rate, gsap.to( 1126 d, 1127 t)), $.utils.is_function(m) && m({ axis: b.axis, cur: b.cur, rate: b.rate }) 1128 }) 1129}, $(function() { 1130 $( 1131 ".search-mod .search-tap").on("click", function(t) { 1132 t.stopPropagation(); 1133 var e = $(this), 1134 t = e.closest(".search-mod"), 1135 o = t.find(".search-input"); 1136 $(".search-mod").not(t).removeClass("x-show").find(".search-tap").removeClass("icon-close"), t 1137 .hasClass("x-show") ? t.removeClass("x-show").find(".search-tap").removeClass( 1138 "icon-close") : (t.addClass("x-show"), !t.hasClass("at-l") && e.hasClass("xicon") && t 1139 .find( 1140 ".search-tap").addClass("icon-close"), setTimeout(function() { o.select() }, 100)) 1141 }), $( 1142 ".search-mod .search-box").on("click", function(t) { 1143 t.stopPropagation(), $(".search-mod").not($( 1144 this).closest(".search-mod")).removeClass("x-show").find(".search-tap").removeClass( 1145 "icon-close") 1146 }), $(document).on("click", function(t) { 1147 0 < $(t.target).closest(".search-mod") 1148 .length && $(t.target).closest(".search-mod").hasClass("x-show") && $(t.target).hasClass( 1149 "search-input") || $(".search-mod").hasClass("x-show") && $(".search-mod").removeClass( 1150 "x-show").find(".search-tap").removeClass("icon-close") 1151 }) 1152}), $(function() { 1153 $(".select-mod").each( 1154 function() { 1155 var o = $(this), 1156 t = o.find(".select-trigger"), 1157 e = o.find(".select-bar"), 1158 i = o.find(".select-btn"), 1159 s = o.find(".select-val"), 1160 n = o.find(".select-cont"), 1161 r = o.find(".select-opts"), 1162 a = o.find(".select-native"), 1163 l = !$.utils.is_undefined(o.attr("select-hover")), 1164 c = []; 1165 r.xScroll({ preventDefault: !0 }), 0 < t.length ? s.is("input") && !i.hasClass( 1166 "select-trigger") && (t.removeClass("select-trigger"), t = i.addClass( 1167 "select-trigger")) : 1168 t = (s.is("input") ? i : e).addClass("select-trigger"), 0 < a.length && (0 < n.find(".cur") 1169 .length ? a.find("option").eq(n.find(".cur").index())[0].selected = !0 : a.find( 1170 "option:first")[0].selected = !0), 0 < n.find(".cur").length && (s.is("input") ? s 1171 .val(n.find(".cur").text()) : s.text(n.find(".cur").text()), s.hasClass( 1172 "placeholder") && s.removeClass("placeholder")), t.on("click", function(t) { 1173 o.hasClass( 1174 "sc-show") ? o.removeClass("sc-show") : o.addClass("sc-show").removeClass( 1175 "sq-show") 1176 }), o.on("mouseenter", function() { 1177 $.utils.is_mobile || l && !o 1178 .hasClass("sc-show") && o.addClass("sc-show").removeClass("sq-show") 1179 }), o.on( 1180 "mouseleave", 1181 function() { 1182 $.utils.is_mobile || l && o.hasClass("sc-show") && o.removeClass( 1183 "sc-show") 1184 }), o.on("touchmove", function(t) { t.stopPropagation() }), $(document) 1185 .on("click", function(t) { 1186 (o.hasClass("sc-show") || o.hasClass("sq-show")) && (o.is(t.target) || 0 !== o.has(t 1187 .target).length || o.removeClass("sc-show sq-show")) 1188 }), a.on("click", function( 1189 t) { t.stopPropagation() }), a.on("change", function() { 1190 0 < this.selectedIndex && o.find( 1191 ".select-item").eq(this.selectedIndex - 1).trigger("click") 1192 }), o.on("click", 1193 ".select-item", 1194 function() { 1195 var t = $(this), 1196 e = t.text(); 1197 t.hasClass("cur") || (o.find(".select-item").removeClass("cur"), t.addClass("cur"), 1198 o.removeClass("sc-show sq-show"), s.is("input") ? s.val(e) : s.text(e), s 1199 .hasClass("placeholder") && s.removeClass("placeholder"), $.utils 1200 .fireCallbacks(o, c, [t])) 1201 }), s.on("focus", function() { 1202 var t = $(this);
1203 o.removeClass("sc-show"), "" !== t.val() && (o.hasClass("sq-show") || o.addClass( 1204 "sq-show")) 1205 }), s.on("input", function() { 1206 "" !== $(this).val() ? o.hasClass( 1207 "sq-show") || o.addClass("sq-show") : o.hasClass("sq-show") && o 1208 .removeClass("sq-show"), 0 < o.find(".cur").length && $(this).val() !== o.find( 1209 ".cur").text() && o.find(".cur").removeClass("cur") 1210 }), o.on("select", function( 1211 t, e) { 1212 return t.stopPropagation(), $.utils.is_function(e) ? c.push(e) : $.utils 1213 .is_number(e) && o.find(".select-item").eq(e).trigger("click"), c 1214 }), o.on("reitem", 1215 function(t, e) { t.stopPropagation(), o.find(".select-item").replaceWith(e) }) 1216 }) 1217}), $( 1218 function() { 1219 $(".suds-target").on("click", function(t) { 1220 t.stopPropagation(); 1221 t = $(this).closest(".suds-mod"); 1222 t.hasClass("x-show") ? t.removeClass("x-show") : t.addClass("x-show") 1223 }), $(".suds-pop").on("click", 1224 function(t) { t.stopPropagation() }), $(document).on("click", function() { 1225 $(".suds-mod") 1226 .removeClass("x-show") 1227 }) 1228 }), $(function() { 1229 $(".tab-mod").each(function(t) { 1230 $(this).data("tm", 1231 t) 1232 }), $(".tab-term").each(function() { 1233 $(this).data("tt", $(this).closest(".tab-mod").data( 1234 "tm")) 1235 }), $(".tab-item").each(function() { 1236 $(this).data("ti", $(this).closest(".tab-mod").data( 1237 "tm")) 1238 }), $(".tab-mod").each(function() { 1239 var o = $(this), 1240 i = o.data("tm"), 1241 s = o.find(".tab-term").filter(function() { return $(this).data("tt") == i }), 1242 n = o.find(".tab-item").filter(function() { return $(this).data("ti") == i }), 1243 t = $.utils.is_undefined(o.attr("tab-hover")) ? "click.tab" : "click.tab mouseenter.tab", 1244 r = 0 < s.filter(".cur").length ? s.index(s.filter(".cur")) : 0, 1245 a = []; 1246 s.eq(r).addClass("cur"), n.eq(r).addClass("act"), o.on(t, ".tab-term", function() { 1247 var t = $( 1248 this), 1249 e = s.index(this); 1250 t.data("tt") == i && e != r && (r = e, s.eq(r).addClass("cur").siblings() 1251 .removeClass("cur"), n.eq(r).addClass("act").siblings().removeClass("act"), 1252 $.utils.fireCallbacks(o, a, [r, t, n.eq(r)])) 1253 }), o.on("tab", function(t, 1254 e) { 1255 return t.stopPropagation(), $.utils.is_function(e) ? a.push(e) : $.utils.is_number( 1256 e) && s.eq(e).trigger("click.tab"), a 1257 }) 1258 }) 1259}), $(function() { 1260 $(".tracker-mod").each( 1261 function() { 1262 var i = $(this), 1263 c = i.find(".tracker-box"), 1264 u = i.find(".tracker-track"), 1265 d = i.find(".tracker-item"), 1266 h = i.find(".tracker-prev"), 1267 f = i.find(".tracker-next"), 1268 p = 0 < d.filter(".cur").length ? d.filter(".cur").index() : 0, 1269 g = !$.utils.is_undefined(i.attr("page")), 1270 v = !$.utils.is_undefined(i.attr("round")), 1271 b = null, 1272 m = null, 1273 s = null, 1274 t = null, 1275 n = null; 1276 1277 function o() { 1278 m = u.outerWidth() > c.width() ? "x" : u.outerHeight() > c.height() ? "y" : null, 1279 b && 0 < b.length && b[0].vars.type != m && (b[0].kill(), b = null, gsap.set(u, { 1280 x: 0, 1281 y: 0 1282 })), b || d.removeClass("in out over"), $.utils.is_string(m) ? (b ? b[0] 1283 .update(!0) : b = Draggable.create(u, { 1284 type: m, 1285 bounds: c, 1286 inertia: !0, 1287 lockAxis: ! 1288 0, 1289 zIndexBoost: !1, 1290 dragResistance: .3, 1291 edgeResistance: .9, 1292 dragClickables: !0, 1293 allowContextMenu: !0, 1294 onClick: function(t) { 1295 gsap 1296 .killTweensOf(".tracker-track") 1297 }, 1298 onDragEnd: function() { x() }, 1299 onThrowComplete: function() { 1300 g && !v && ("x" == m ? 0 == this.x ? (h 1301 .addClass("disable"), f.removeClass("disable")) : this 1302 .x == this.minX ? (f.addClass("disable"), h.removeClass( 1303 "disable")) : (h.removeClass("disable"), f.removeClass( 1304 "disable")) : "y" == m && (0 == this.y ? (h.addClass( 1305 "disable"), f.removeClass("disable")) : this.y == 1306 this.minY ? (f.addClass("disable"), h.removeClass( 1307 "disable")) : (h.removeClass("disable"), f 1308 .removeClass("disable")))) 1309 } 1310 }), h.removeClass("disdrag"), f 1311 .removeClass("disdrag")) : (h.addClass("disdrag"), f.addClass("disdrag")), r(d.eq( 1312 p), !0) 1313 } 1314 1315 function x() { 1316 n = t = s = null, d.removeClass("in out over"), s = d.filter( 1317 function() { 1318 return "x" == m ? $(this).offset().left >= c.offset().left && $(this) 1319 .offset().left + $(this).outerWidth() <= c.offset().left + c.width() : 1320 "y" == m ? $(this).offset().top >= c.offset().top && $(this).offset().top + 1321 $(this).outerHeight() <= c.offset().top + c.height() : void 0 1322 }).addClass("in"), 1323 t = d.not(s).addClass("out"), n = t.filter(function() { 1324 return "x" == m ? $(this) 1325 .offset().left < c.offset().left && $(this).offset().left + $(this) 1326 .outerWidth() > c.offset().left || $(this).offset().left < c.offset().left + 1327 c.width() && $(this).offset().left + $(this).outerWidth() > c.offset() 1328 .left + c.width() : "y" == m ? $(this).offset().top < c.offset().top && $( 1329 this).offset().top + $(this).outerHeight() > c.offset().top || $(this) 1330 .offset().top < c.offset().top + c.height() && $(this).offset().top + $( 1331 this).outerHeight() > c.offset().top + c.height() : void 0 1332 }).addClass( 1333 "over") 1334 } 1335 1336 function r(t, e) { 1337 var o, i, s, n, r, a, l; 1338 0 == t.length || !e && t.index() == p || (t.trigger("click.tab"), p = t.index(), v || g || ( 1339 0 == p ? h.addClass("disable") : h.removeClass("disable"), p == d.length - 1 ? f 1340 .addClass("disable") : f.removeClass("disable")), t.hasClass("cur") || t 1341 .addClass("cur").siblings().removeClass("cur"), b && (e = e ? 0 : .5, "x" == m ? ( 1342 o = gsap.getProperty(u[0], "x"), i = c.offset().left + c.width() / 2, s = t 1343 .offset().left + t.outerWidth() / 2, r = { duration: e, x: n = b[0].minX }, 1344 a = { duration: e, x: b[0].maxX }, l = { duration: e, x: "+=" + (i - s) }) : 1345 "y" == m && (o = gsap.getProperty(u[0], "y"), i = c.offset().top + c.height() / 1346 2, s = t.offset().top + t.outerHeight() / 2, r = { 1347 duration: e, 1348 y: n = b[0] 1349 .minY 1350 }, a = { duration: e, y: b[0].maxY }, l = { 1351 duration: e, 1352 y: "+=" + (i - s) 1353 }), l = i < s ? 0 < n - o + s - i ? gsap.to(u, r) : 1354 gsap.to(u, l) : 0 < o + i - s ? gsap.to(u, a) : gsap.to(u, l), 0 < e ? l 1355 .eventCallback("onComplete", x) : x())) 1356 } 1357 o(), $(window).on("resize", $.debounce( 1358 300, o)), d.on("click.tracker", function() { r($(this)) }), h.on("click.tracker", 1359 function() { 1360 var t = 0, 1361 e = i.attr("page"), 1362 o = d.eq(p).prevAll(":visible").first(); 1363 g ? b && (0 != (o = (o = (0 < s.length ? s : n).first().prevAll(":visible")).filter( 1364 function(t) { return 0 < e ? t < e : 0 == t })).length ? (v || (f 1365 .removeClass("disable"), b && 1 == s.first().prevAll(":visible") 1366 .length && h.addClass("disable")), "x" == m ? (0 <= (t = 0 < e ? 1367 gsap.getProperty(u[0], "x") + (c.offset().left - o.offset() 1368 .left) : gsap.getProperty(u[0], "x") + (c.offset().left + c 1369 .width() - (o.offset().left + o.outerWidth()))) && (t = 0, 1370 v || h.addClass("disable")), gsap.to(u, { 1371 duration: .5, 1372 x: t, 1373 onComplete: x 1374 })) : "y" == m && (0 <= (t = 0 < e ? gsap.getProperty( 1375 u[0], "y") + (c.offset().top - o.offset().top) : gsap 1376 .getProperty(u[0], "y") + (c.offset().top + c.height() - (o 1377 .offset().top + o.outerHeight()))) && (t = 0, v || h 1378 .addClass("disable")), gsap.to(u, { 1379 duration: .5, 1380 y: t, 1381 onComplete: x 1382 }))) : b && v && ("x" == m ? gsap.to(u, { 1383 duration: .5, 1384 x: b[0].minX, 1385 onComplete: x 1386 }) : "y" == m && gsap.to( 1387 u, { duration: .5, y: b[0].minY, onComplete: x }))) : 0 == o.length ? v && 1388 r(d 1389 .last()) : r(o) 1390 }), f.on("click.tracker", function() { 1391 var t = 0, 1392 e = i.attr("page"), 1393 o = d.eq(p).nextAll(":visible").first(); 1394 g ? b && (0 != (o = (o = (0 < s.length ? s : n).last().nextAll(":visible")).filter( 1395 function(t) { return 0 < e ? t < e : 0 == t })).length ? (v || (h 1396 .removeClass("disable"), b && 1 == s.last().nextAll(":visible") 1397 .length && f.addClass("disable")), "x" == m ? ((t = 0 < e ? gsap 1398 .getProperty(u[0], "x") - (o.offset().left + o.outerWidth() - (c 1399 .offset().left + c.width())) : gsap.getProperty(u[0], "x") - 1400 (o.offset().left - c.offset().left)) - b[0].minX <= 0 && (t = b[ 1401 0].minX, v || f.addClass("disable")), gsap.to(u, { 1402 duration: .5, 1403 x: t, 1404 onComplete: x 1405 })) : "y" == m && ((t = 0 < e ? gsap 1406 .getProperty(u[0], "y") - (o.offset().top + o.outerHeight() - (c 1407 .offset().top + c.height())) : gsap.getProperty(u[0], "y") - 1408 (o.offset().top - c.offset().top)) - b[0].minY <= 0 && (t = b[0] 1409 .minY, v || f.addClass("disable")), gsap.to(u, { 1410 duration: .5, 1411 y: t, 1412 onComplete: x 1413 }))) : b && v && ("x" == m ? gsap.to( 1414 u, { duration: .5, x: 0, onComplete: x }) : "y" == m && gsap.to( 1415 u, { duration: .5, y: 0, onComplete: x }))) : 0 == o.length ? v && r(d 1416 .first()) : r(o) 1417 }), i.on("refresh", function(t, e) { 1418 t.stopPropagation(), $.utils 1419 .is_undefined(e) && (e = 0), p = e, o() 1420 }) 1421 }) 1422});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.