vendor: 4,790 bytes, lines 1-138
1// 2// jarallax js 3// 4 5/*! 6 * Name : Just Another Parallax [Jarallax] 7 * Version : 1.12.3 8 * Author : nK <https://nkdev.info> 9 * GitHub : https://github.com/nk-o/jarallax 10 */ 11/******/ (function(modules) { // webpackBootstrap 12/******/ // The module cache 13/******/ var installedModules = {}; 14/******/ 15/******/ // The require function 16/******/ function __webpack_require__(moduleId) { 17/******/ 18/******/ // Check if module is in cache 19/******/ if(installedModules[moduleId]) { 20/******/ return installedModules[moduleId].exports; 21/******/ } 22/******/ // Create a new module (and put it into the cache) 23/******/ var module = installedModules[moduleId] = { 24/******/ i: moduleId, 25/******/ l: false, 26/******/ exports: {} 27/******/ }; 28/******/ 29/******/ // Execute the module function 30/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); 31/******/ 32/******/ // Flag the module as loaded 33/******/ module.l = true; 34/******/ 35/******/ // Return the exports of the module 36/******/ return module.exports; 37/******/ } 38/******/ 39/******/ 40/******/ // expose the modules object (__webpack_modules__) 41/******/ __webpack_require__.m = modules; 42/******/ 43/******/ // expose the module cache 44/******/ __webpack_require__.c = installedModules; 45/******/ 46/******/ // define getter function for harmony exports 47/******/ __webpack_require__.d = function(exports, name, getter) { 48/******/ if(!__webpack_require__.o(exports, name)) { 49/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); 50/******/ } 51/******/ }; 52/******/ 53/******/ // define __esModule on exports 54/******/ __webpack_require__.r = function(exports) { 55/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { 56/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); 57/******/ } 58/******/ Object.defineProperty(exports, '__esModule', { value: true }); 59/******/ }; 60/******/ 61/******/ // create a fake namespace object 62/******/ // mode & 1: value is a module id, require it 63/******/ // mode & 2: merge all properties of value into the ns 64/******/ // mode & 4: return value when already ns object 65/******/ // mode & 8|1: behave like require 66/******/ __webpack_require__.t = function(value, mode) { 67/******/ if(mode & 1) value = __webpack_require__(value); 68/******/ if(mode & 8) return value; 69/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; 70/******/ var ns = Object.create(null); 71/******/ __webpack_require__.r(ns); 72/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); 73/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); 74/******/ return ns; 75/******/ }; 76/******/ 77/******/ // getDefaultExport function for compatibility with non-harmony modules 78/******/ __webpack_require__.n = function(module) { 79/******/ var getter = module && module.__esModule ? 80/******/ function getDefault() { return module['default']; } : 81/******/ function getModuleExports() { return module; }; 82/******/ __webpack_require__.d(getter, 'a', getter); 83/******/ return getter; 84/******/ }; 85/******/ 86/******/ // Object.prototype.hasOwnProperty.call 87/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; 88/******/ 89/******/ // __webpack_public_path__ 90/******/ __webpack_require__.p = ""; 91/******/ 92/******/ 93/******/ // Load entry module and return exports 94/******/ return __webpack_require__(__webpack_require__.s = 10); 95/******/ }) 96/************************************************************************/ 97/******/ ([ 98/* 0 */, 99/* 1 */, 100/* 2 */ 101/***/ (function(module, exports) { 102 103module.exports = function (callback) { 104 if (document.readyState === 'complete' || document.readyState === 'interactive') { 105 // Already ready or interactive, execute callback 106 callback.call(); 107 } else if (document.attachEvent) { 108 // Old browsers 109 document.attachEvent('onreadystatechange', function () { 110 if (document.readyState === 'interactive') callback.call(); 111 }); 112 } else if (document.addEventListener) { 113 // Modern browsers 114 document.addEventListener('DOMContentLoaded', callback); 115 } 116}; 117 118/***/ }), 119/* 3 */ 120/***/ (function(module, exports, __webpack_require__) { 121 122/* WEBPACK VAR INJECTION */(function(global) {var win; 123 124if (typeof window !== "undefined") { 125 win = window; 126} else if (typeof global !== "undefined") { 127 win = global; 128} else if (typeof self !== "undefined") { 129 win = self; 130} else { 131 win = {}; 132} 133 134module.exports = win; 135/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(4))) 136 137/***/ }), 138/* 4 */
139/***/ (function(module, exports) { 140 141function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } 142 143var g; // This works in non-strict mode 144 145g = function () { 146 return this; 147}(); 148 149try { 150 // This works if eval is allowed (see CSP) 151 g = g || new Function("return this")(); 152} catch (e) { 153 // This works if the window reference is available 154 if ((typeof window === "undefined" ? "undefined" : _typeof(window)) === "object") g = window; 155} // g can still be undefined, but nothing to do about it... 156// We return undefined, instead of nothing here, so it's 157// easier to handle this case. if(!global) { ...} 158 159 160module.exports = g; 161 162/***/ }), 163/* 5 */, 164/* 6 */, 165/* 7 */, 166/* 8 */, 167/* 9 */, 168/* 10 */ 169/***/ (function(module, exports, __webpack_require__) { 170 171module.exports = __webpack_require__(11); 172 173 174/***/ }), 175/* 11 */ 176/***/ (function(module, __webpack_exports__, __webpack_require__) { 177 178"use strict"; 179__webpack_require__.r(__webpack_exports__); 180/* harmony import */ var lite_ready__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2); 181/* harmony import */ var lite_ready__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lite_ready__WEBPACK_IMPORTED_MODULE_0__); 182/* harmony import */ var global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3); 183/* harmony import */ var global__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(global__WEBPACK_IMPORTED_MODULE_1__); 184/* harmony import */ var _jarallax_esm__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(12); 185function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } 186 187 188 189 // no conflict 190 191var oldPlugin = global__WEBPACK_IMPORTED_MODULE_1__["window"].jarallax; 192global__WEBPACK_IMPORTED_MODULE_1__["window"].jarallax = _jarallax_esm__WEBPACK_IMPORTED_MODULE_2__["default"]; 193 194global__WEBPACK_IMPORTED_MODULE_1__["window"].jarallax.noConflict = function () { 195 global__WEBPACK_IMPORTED_MODULE_1__["window"].jarallax = oldPlugin; 196 return this; 197}; // jQuery support 198 199 200if ('undefined' !== typeof global__WEBPACK_IMPORTED_MODULE_1__["jQuery"]) { 201 var jQueryPlugin = function jQueryPlugin() { 202 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { 203 args[_key] = arguments[_key]; 204 } 205 206 Array.prototype.unshift.call(args, this); 207 var res = _jarallax_esm__WEBPACK_IMPORTED_MODULE_2__["default"].apply(global__WEBPACK_IMPORTED_MODULE_1__["window"], args); 208 return 'object' !== _typeof(res) ? res : this; 209 }; 210 211 jQueryPlugin.constructor = _jarallax_esm__WEBPACK_IMPORTED_MODULE_2__["default"].constructor; // no conflict 212 213 var oldJqPlugin = global__WEBPACK_IMPORTED_MODULE_1__["jQuery"].fn.jarallax; 214 global__WEBPACK_IMPORTED_MODULE_1__["jQuery"].fn.jarallax = jQueryPlugin; 215 216 global__WEBPACK_IMPORTED_MODULE_1__["jQuery"].fn.jarallax.noConflict = function () { 217 global__WEBPACK_IMPORTED_MODULE_1__["jQuery"].fn.jarallax = oldJqPlugin; 218 return this; 219 }; 220} // data-jarallax initialization 221 222 223lite_ready__WEBPACK_IMPORTED_MODULE_0___default()(function () { 224 Object(_jarallax_esm__WEBPACK_IMPORTED_MODULE_2__["default"])(document.querySelectorAll('[data-jarallax]')); 225}); 226 227/***/ }), 228/* 12 */ 229/***/ (function(module, __webpack_exports__, __webpack_require__) { 230 231"use strict"; 232__webpack_require__.r(__webpack_exports__); 233/* harmony import */ var lite_ready__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2); 234/* harmony import */ var lite_ready__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lite_ready__WEBPACK_IMPORTED_MODULE_0__); 235/* harmony import */ var global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3); 236/* harmony import */ var global__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(global__WEBPACK_IMPORTED_MODULE_1__); 237function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } 238 239function _nonIterableRest() { throw new TypeError("Invalid attempt to de
239structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } 240 241function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } 242 243function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } 244 245function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } 246 247function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } 248 249function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } 250 251function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 252 253function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } 254 255function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } 256 257 258 259var navigator = global__WEBPACK_IMPORTED_MODULE_1__["window"].navigator; 260var isIE = -1 < navigator.userAgent.indexOf('MSIE ') || -1 < navigator.userAgent.indexOf('Trident/') || -1 < navigator.userAgent.indexOf('Edge/'); 261var isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent); 262 263var supportTransform = function () { 264 var prefixes = 'transform WebkitTransform MozTransform'.split(' '); 265 var div = document.createElement('div'); 266 267 for (var i = 0; i < prefixes.length; i += 1) { 268 if (div && div.style[prefixes[i]] !== undefined) { 269 return prefixes[i]; 270 } 271 } 272 273 return false; 274}(); 275 276var $deviceHelper; 277/** 278 * The most popular mobile browsers changes height after page scroll and this generates image jumping. 279 * We can fix it using this workaround with vh units. 280 */ 281 282function getDeviceHeight() { 283 if (!$deviceHelper && document.body) { 284 $deviceHelper = document.createElement('div'); 285 $deviceHelper.style.cssText = 'position: fixed; top: -9999px; left: 0; height: 100vh; width: 0;'; 286 document.body.appendChild($deviceHelper); 287 } 288 289 return ($deviceHelper ? $deviceHelper.clientHeight : 0) || global__WEBPACK_IMPORTED_MODULE_1__["window"].innerHeight || document.documentElement.clientHeight; 290} // Window height data 291 292 293var wndH; 294 295function updateWndVars() { 296 if (isMobile) { 297 wndH = getDeviceHeight(); 298 } else { 299 wndH = global__WEBPACK_IMPORTED_MODULE_1__["window"].innerHeight || document.documentElement.clientHeight; 300 } 301} 302 303updateWndVars(); 304global__WEBPACK_IMPORTED_MODULE_1__["window"].addEventListener('resize', updateWndVars); 305global__WEBPACK_IMPORTED_MODULE_1__["window"].addEventListener('orientationchange', updateWndVars); 306global__WEBPACK_IMPORTED_MODULE_1__["window"].addEventListener('load', updateWndVars); 307lite_ready__WEBPACK_IMPORTED_MODULE_0___default()(function () { 308 updateWndVars({ 309 type: 'dom-loaded' 310 }); 311}); // list with all jarallax instances 312// need to render all in one scroll/resize event 313 314var jarallaxList = []; // get all parents of the element. 315 316function getParents(elem) { 317 var parents = []; 318 319 while (null !== elem.parentElement) { 320 elem = elem.parentElement; 321 322 if (1 === elem.nodeType) { 323 parents.push(elem); 324 } 325 } 326 327 return parents; 328} 329 330function updateParallax() { 331 if (!jarallaxList.length) { 332 return; 333 } 334 335 jarallaxList.forEach(function (data, k) { 336 var instance = data.instance, 337 oldData = data.oldData; 338 var clientRect = instance.$item.getBoundingClientRect(); 339 var newData = { 340 width: clientRect.width, 341 height: clientRect.height, 342 top: clientRect.top, 343 bottom: clientRect.bottom, 344 wndW: global__WEBPACK_IMPORTED_MODULE_1__["window"].innerWidth, 345 wndH: wndH 346 }; 347 var isResized = !oldData || oldData.wndW !== newData.wndW || oldData.wndH !== newData.wndH || oldData.width !== newData.width || oldData.height !== newData.height; 348 var isScrolled = isResized || !oldData || oldData.top !== newData.top || oldData.bottom !== newData.bottom; 349 jarallaxList[k].oldData = newData; 350 351 if (isResized) { 352 instance.onResize(); 353 } 354 355 if (isScrolled) { 356 instance.onScroll(); 357 } 358 }); 359 global__WEBPACK_IMPORTED_MODULE_1__["window"].requestAnimationFrame(updateParallax); 360} 361 362var instanceID = 0; // Jarallax class 363 364var Jarallax = /*#__PURE__*/function () { 365 function Jarallax(item, userOptions) { 366 _classCallCheck(this, Jarallax); 367 368 var self = this; 369 self.instanceID = instanceID; 370 instanceID += 1; 371 self.$item = item; 372 self.defaults = { 373 type: 'scroll', 374 // type of parallax: scroll, scale, opacity, scale-opacity, scroll-opacity 375 speed: 0.5, 376 // supported value from -1 to 2 377 imgSrc: null, 378 imgElement: '.jarallax-img', 379 imgSize: 'cover', 380 imgPosition: '50% 50%', 381 imgRepeat: 'no-repeat', 382 // supported only for background, not for <img> tag 383 keepImg: false, 384 // keep <img> tag in it's default place 385 elementInViewport: null, 386 zIndex: -100, 387 disableParallax: false, 388 disableVideo: false, 389 // video 390 videoSrc: null, 391 videoStartTime: 0, 392 videoEndTime: 0, 393 videoVolume: 0, 394 videoLoop: true, 395 videoPlayOnlyVisible: true, 396 videoLazyLoading: true, 397 // events 398 onScroll: null, 399 // function(calculations) {} 400 onInit: null, 401 // function() {} 402 onDestroy: null, 403 // function() {} 404 onCoverImage: null // function() {} 405 406 }; // prepare data-options 407 408 var dataOptions = self.$item.dataset || {}; 409 var pureDataOptions = {};
410 Object.keys(dataOptions).forEach(function (key) { 411 var loweCaseOption = key.substr(0, 1).toLowerCase() + key.substr(1); 412 413 if (loweCaseOption && 'undefined' !== typeof self.defaults[loweCaseOption]) { 414 pureDataOptions[loweCaseOption] = dataOptions[key]; 415 } 416 }); 417 self.options = self.extend({}, self.defaults, pureDataOptions, userOptions); 418 self.pureOptions = self.extend({}, self.options); // prepare 'true' and 'false' strings to boolean 419 420 Object.keys(self.options).forEach(function (key) { 421 if ('true' === self.options[key]) { 422 self.options[key] = true; 423 } else if ('false' === self.options[key]) { 424 self.options[key] = false; 425 } 426 }); // fix speed option [-1.0, 2.0] 427 428 self.options.speed = Math.min(2, Math.max(-1, parseFloat(self.options.speed))); // prepare disableParallax callback 429 430 if ('string' === typeof self.options.disableParallax) { 431 self.options.disableParallax = new RegExp(self.options.disableParallax); 432 } 433 434 if (self.options.disableParallax instanceof RegExp) { 435 var disableParallaxRegexp = self.options.disableParallax; 436 437 self.options.disableParallax = function () { 438 return disableParallaxRegexp.test(navigator.userAgent); 439 }; 440 } 441 442 if ('function' !== typeof self.options.disableParallax) { 443 self.options.disableParallax = function () { 444 return false; 445 }; 446 } // prepare disableVideo callback 447 448 449 if ('string' === typeof self.options.disableVideo) { 450 self.options.disableVideo = new RegExp(self.options.disableVideo); 451 } 452 453 if (self.options.disableVideo instanceof RegExp) { 454 var disableVideoRegexp = self.options.disableVideo; 455 456 self.options.disableVideo = function () { 457 return disableVideoRegexp.test(navigator.userAgent); 458 }; 459 } 460 461 if ('function' !== typeof self.options.disableVideo) { 462 self.options.disableVideo = function () { 463 return false; 464 }; 465 } // custom element to check if parallax in viewport 466 467 468 var elementInVP = self.options.elementInViewport; // get first item from array 469 470 if (elementInVP && 'object' === _typeof(elementInVP) && 'undefined' !== typeof elementInVP.length) { 471 var _elementInVP = elementInVP; 472 473 var _elementInVP2 = _slicedToArray(_elementInVP, 1); 474 475 elementInVP = _elementInVP2[0]; 476 } // check if dom element 477 478 479 if (!(elementInVP instanceof Element)) { 480 elementInVP = null; 481 } 482 483 self.options.elementInViewport = elementInVP; 484 self.image = { 485 src: self.options.imgSrc || null, 486 $container: null, 487 useImgTag: false, 488 // position fixed is needed for the most of browsers because absolute position have glitches 489 // on MacOS with smooth scroll there is a huge lags with absolute position - https://github.com/nk-o/jarallax/issues/75 490 // on mobile devices better scrolled with absolute position 491 position: /iPad|iPhone|iPod|Android/.test(navigator.userAgent) ? 'absolute' : 'fixed' 492 }; 493 494 if (self.initImg() && self.canInitParallax()) { 495 self.init(); 496 } 497 } // add styles to element 498 // eslint-disable-next-line class-methods-use-this 499 500 501 _createClass(Jarallax, [{ 502 key: "css", 503 value: function css(el, styles) { 504 if ('string' === typeof styles) { 505 return global__WEBPACK_IMPORTED_MODULE_1__["window"].getComputedStyle(el).getPropertyValue(styles); 506 } // add transform property with vendor prefix 507 508 509 if (styles.transform && supportTransform) { 510 styles[supportTransform] = styles.transform; 511 } 512 513 Object.keys(styles).forEach(function (key) { 514 el.style[key] = styles[key]; 515 }); 516 return el; 517 } // Extend like jQuery.extend 518 // eslint-disable-next-line class-methods-use-this 519 520 }, { 521 key: "extend", 522 value: function extend(out) { 523 for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { 524 args[_key - 1] = arguments[_key]; 525 } 526 527 out = out || {}; 528 Object.keys(args).forEach(function (i) { 529 if (!args[i]) { 530 return; 531 } 532
533 Object.keys(args[i]).forEach(function (key) { 534 out[key] = args[i][key]; 535 }); 536 }); 537 return out; 538 } // get window size and scroll position. Useful for extensions 539 // eslint-disable-next-line class-methods-use-this 540 541 }, { 542 key: "getWindowData", 543 value: function getWindowData() { 544 return { 545 width: global__WEBPACK_IMPORTED_MODULE_1__["window"].innerWidth || document.documentElement.clientWidth, 546 height: wndH, 547 y: document.documentElement.scrollTop 548 }; 549 } // Jarallax functions 550 551 }, { 552 key: "initImg", 553 value: function initImg() { 554 var self = this; // find image element 555 556 var $imgElement = self.options.imgElement; 557 558 if ($imgElement && 'string' === typeof $imgElement) { 559 $imgElement = self.$item.querySelector($imgElement); 560 } // check if dom element 561 562 563 if (!($imgElement instanceof Element)) { 564 if (self.options.imgSrc) { 565 $imgElement = new Image(); 566 $imgElement.src = self.options.imgSrc; 567 } else { 568 $imgElement = null; 569 } 570 } 571 572 if ($imgElement) { 573 if (self.options.keepImg) { 574 self.image.$item = $imgElement.cloneNode(true); 575 } else { 576 self.image.$item = $imgElement; 577 self.image.$itemParent = $imgElement.parentNode; 578 } 579 580 self.image.useImgTag = true; 581 } // true if there is img tag 582 583 584 if (self.image.$item) { 585 return true; 586 } // get image src 587 588 589 if (null === self.image.src) { 590 self.image.src = 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7'; 591 self.image.bgImage = self.css(self.$item, 'background-image'); 592 } 593 594 return !(!self.image.bgImage || 'none' === self.image.bgImage); 595 } 596 }, { 597 key: "canInitParallax", 598 value: function canInitParallax() { 599 return supportTransform && !this.options.disableParallax(); 600 } 601 }, { 602 key: "init", 603 value: function init() { 604 var self = this; 605 var containerStyles = { 606 position: 'absolute', 607 top: 0, 608 left: 0, 609 width: '100%', 610 height: '100%', 611 overflow: 'hidden' 612 }; 613 var imageStyles = { 614 pointerEvents: 'none', 615 transformStyle: 'preserve-3d', 616 backfaceVisibility: 'hidden', 617 willChange: 'transform,opacity' 618 }; 619 620 if (!self.options.keepImg) { 621 // save default user styles 622 var curStyle = self.$item.getAttribute('style'); 623 624 if (curStyle) { 625 self.$item.setAttribute('data-jarallax-original-styles', curStyle); 626 } 627 628 if (self.image.useImgTag) { 629 var curImgStyle = self.image.$item.getAttribute('style'); 630 631 if (curImgStyle) { 632 self.image.$item.setAttribute('data-jarallax-original-styles', curImgStyle); 633 } 634 } 635 } // set relative position and z-index to the parent 636 637 638 if ('static' === self.css(self.$item, 'position')) { 639 self.css(self.$item, { 640 position: 'relative' 641 }); 642 } 643 644 if ('auto' === self.css(self.$item, 'z-index')) { 645 self.css(self.$item, { 646 zIndex: 0 647 }); 648 } // container for parallax image 649 650 651 self.image.$container = document.createElement('div'); 652 self.css(self.image.$container, containerStyles); 653 self.css(self.image.$container, { 654 'z-index': self.options.zIndex 655 }); // fix for IE https://github.com/nk-o/jarallax/issues/110 656 657 if (isIE) { 658 self.css(self.image.$container, { 659 opacity: 0.9999 660 }); 661 } 662 663 self.image.$container.setAttribute('id', "jarallax-container-".concat(self.instanceID)); 664 self.$item.appendChild(self.image.$container); // use img tag 665 666 if (self.image.useImgTag) { 667 imageStyles = self.extend({ 668 'object-fit': self.options.imgSize, 669 'object-position': self.options.imgPosition, 670 // support for plugin https://github.com/bfred-it/object-fit-images 671 'font-family': "object-fit: ".concat(self.options.imgSize, "; object-position: ").concat(self.options.imgPosition, ";"), 672 'max-width': 'none' 673 }, containerStyles, imageStyles); // use div with background image 674 } else { 675 self.image.$item = document.createElement('div'); 676 677 if (self.image.src) { 678 imageStyles = self.extend({ 679 'background-position': self.options.imgPosition, 680 'background-size': self.options.imgSize, 681 'background-repeat': self.options.imgRepeat, 682 'background-image': self.image.bgImage || "url(\"".concat(self.image.src, "\")") 683 }, containerStyles, imageStyles); 684 } 685 } 686 687 if ('opacity' === self.options.type || 'scale' === self.options.type || 'scale-opacity' === self.options.type || 1 === self.options.speed) { 688 self.image.position = 'absolute'; 689 } // 1. Check if one of parents have transform style (without this check, scroll transform will be inverted if used parallax with position fixed) 690 // discussion - https://github.com/nk-o/jarallax/issues/9 691 // 2. Check if parents have overflow scroll 692 693 694 if ('fixed' === self.image.position) { 695 var $parents = getParents(self.$item).filter(function (el) { 696 var styles = global__WEBPACK_IMPORTED_MODULE_1__["window"].getComputedStyle(el); 697 var parentTransform = styles['-webkit-transform'] || styles['-moz-transform'] || styles.transform; 698 var overflowRegex = /(auto|scroll)/; 699 return parentTransform && 'none' !== parentTransform || overflowRegex.test(styles.overflow + styles['overflow-y'] + styles['overflow-x']); 700 }); 701 self.image.position = $parents.length ? 'absolute' : 'fixed'; 702 } // add position to parallax block 703 704 705 imageStyles.position = self.image.position; // insert parallax image 706 707 self.css(self.image.$item, imageStyles); 708 self.image.$container.appendChild(self.image.$item); // set initial position and size 709 710 self.onResize(); 711 self.onScroll(true); // call onInit event 712 713 if (self.options.onInit) { 714 self.options.onInit.call(self); 715 } // remove default user background 716 717 718 if ('none' !== self.css(self.$item, 'background-image')) { 719 self.css(self.$item, { 720 'background-image': 'none' 721 }); 722 } 723 724 self.addToParallaxList(); 725 } // add to parallax instances list 726 727 }, { 728 key: "addToParallaxList", 729 value: function addToParallaxList() { 730 jarallaxList.push({ 731 instance: this 732 }); 733 734 if (1 === jarallaxList.length) { 735 global__WEBPACK_IMPORTED_MODULE_1__["window"].requestAnimationFrame(updateParallax); 736 } 737 } // remove from parallax instances list 738 739 }, { 740 key: "removeFromParallaxList", 741 value: function removeFromParallaxList() { 742 var self = this; 743 jarallaxList.forEach(function (data, key) { 744 if (data.instance.instanceID === self.instanceID) { 745 jarallaxList.splice(key, 1); 746 } 747 }); 748 } 749 }, {
750 key: "destroy", 751 value: function destroy() { 752 var self = this; 753 self.removeFromParallaxList(); // return styles on container as before jarallax init 754 755 var originalStylesTag = self.$item.getAttribute('data-jarallax-original-styles'); 756 self.$item.removeAttribute('data-jarallax-original-styles'); // null occurs if there is no style tag before jarallax init 757 758 if (!originalStylesTag) { 759 self.$item.removeAttribute('style'); 760 } else { 761 self.$item.setAttribute('style', originalStylesTag); 762 } 763 764 if (self.image.useImgTag) { 765 // return styles on img tag as before jarallax init 766 var originalStylesImgTag = self.image.$item.getAttribute('data-jarallax-original-styles'); 767 self.image.$item.removeAttribute('data-jarallax-original-styles'); // null occurs if there is no style tag before jarallax init 768 769 if (!originalStylesImgTag) { 770 self.image.$item.removeAttribute('style'); 771 } else { 772 self.image.$item.setAttribute('style', originalStylesTag); 773 } // move img tag to its default position 774 775 776 if (self.image.$itemParent) { 777 self.image.$itemParent.appendChild(self.image.$item); 778 } 779 } // remove additional dom elements 780 781 782 if (self.$clipStyles) { 783 self.$clipStyles.parentNode.removeChild(self.$clipStyles); 784 } 785 786 if (self.image.$container) { 787 self.image.$container.parentNode.removeChild(self.image.$container); 788 } // call onDestroy event 789 790 791 if (self.options.onDestroy) { 792 self.options.onDestroy.call(self); 793 } // delete jarallax from item 794 795 796 delete self.$item.jarallax; 797 } // it will remove some image overlapping 798 // overlapping occur due to an image position fixed inside absolute position element 799 800 }, { 801 key: "clipContainer", 802 value: function clipContainer() { 803 // needed only when background in fixed position 804 if ('fixed' !== this.image.position) { 805 return; 806 } 807 808 var self = this; 809 var rect = self.image.$container.getBoundingClientRect(); 810 var width = rect.width, 811 height = rect.height; 812 813 if (!self.$clipStyles) { 814 self.$clipStyles = document.createElement('style'); 815 self.$clipStyles.setAttribute('type', 'text/css'); 816 self.$clipStyles.setAttribute('id', "jarallax-clip-".concat(self.instanceID)); 817 var head = document.head || document.getElementsByTagName('head')[0]; 818 head.appendChild(self.$clipStyles); 819 } // clip is used for old browsers. 820 // clip-path for modern browsers (also fixes Safari v14 bug https://github.com/nk-o/jarallax/issues/181 ). 821 822 823 var styles = "#jarallax-container-".concat(self.instanceID, " {\n clip: rect(0 ").concat(width, "px ").concat(height, "px 0);\n clip: rect(0, ").concat(width, "px, ").concat(height, "px, 0);\n -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);\n clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);\n }"); // add clip styles inline (this method need for support IE8 and less browsers) 824 825 if (self.$clipStyles.styleSheet) { 826 self.$clipStyles.styleSheet.cssText = styles; 827 } else { 828 self.$clipStyles.innerHTML = styles; 829 } 830 } 831 }, { 832 key: "coverImage", 833 value: function coverImage() { 834 var self = this; 835 var rect = self.image.$container.getBoundingClientRect(); 836 var contH = rect.height; 837 var speed = self.options.speed; 838 var isScroll = 'scroll' === self.options.type || 'scroll-opacity' === self.options.type; 839 var scrollDist = 0; 840 var resultH = contH; 841 var resultMT = 0; // scroll parallax 842 843 if (isScroll) { 844 // scroll distance and height for image 845 if (0 > speed) { 846 scrollDist = speed * Math.max(contH, wndH); 847 848 if (wndH < contH) { 849 scrollDist -= speed * (contH - wndH); 850 } 851 } else { 852 scrollDist = speed * (contH + wndH); 853 } // size for scroll parallax 854 855 856 if (1 < speed) { 857 resultH = Math.abs(scrollDist - wndH); 858 } else if (0 > speed) { 859 resultH = scrollDist / speed + Math.abs(scrollDist); 860 } else { 861 resultH += (wndH - contH) * (1 - speed); 862 } 863 864 scrollDist /= 2; 865 } // store scroll distance 866 867 868 self.parallaxScrollDistance = scrollDist; // vertical center 869 870 if (isScroll) { 871 resultMT = (wndH - resultH) / 2; 872 } else { 873 resultMT = (contH - resultH) / 2; 874 } // apply result to item 875 876 877 self.css(self.image.$item, { 878 height: "".concat(resultH, "px"), 879 marginTop: "".concat(resultMT, "px"), 880 left: 'fixed' === self.image.position ? "".concat(rect.left, "px") : '0', 881 width: "".concat(rect.width, "px") 882 }); // call onCoverImage event 883 884 if (self.options.onCoverImage) { 885 self.options.onCoverImage.call(self); 886 } // return some useful data. Used in the video cover function 887 888 889 return { 890 image: { 891 height: resultH, 892 marginTop: resultMT 893 }, 894 container: rect 895 }; 896 } 897 }, { 898 key: "isVisible", 899 value: function isVisible() { 900 return this.isElementInViewport || false; 901 } 902 }, { 903 key: "onScroll", 904 value: function onScroll(force) { 905 var self = this; 906 var rect = self.$item.getBoundingClientRect(); 907 var contT = rect.top; 908 var contH = rect.height; 909 var styles = {}; // check if in viewport 910 911 var viewportRect = rect; 912 913 if (self.options.elementInViewport) { 914 viewportRect = self.options.elementInViewport.getBoundingClientRect(); 915 } 916 917 self.isElementInViewport = 0 <= viewportRect.bottom && 0 <= viewportRect.right && viewportRect.top <= wndH && viewportRect.left <= global__WEBPACK_IMPORTED_MODULE_1__["window"].innerWidth; // stop calculations if item is not in viewport 918 919 if (force ? false : !self.isElementInViewport) { 920 return; 921 } // calculate parallax helping variables 922 923 924 var beforeTop = Math.max(0, contT); 925 var beforeTopEnd = Math.max(0, contH + contT); 926 var afterTop = Math.max(0, -contT); 927 var beforeBottom = Math.max(0, contT + contH - wndH); 928 var beforeBottomEnd = Math.max(0, contH - (contT + contH - wndH)); 929 var afterBottom = Math.max(0, -contT + wndH - contH); 930 var fromViewportCenter = 1 - 2 * ((wndH - contT) / (wndH + contH)); // calculate on how percent of section is visible 931 932 var visiblePercent = 1; 933 934 if (contH < wndH) { 935 visiblePercent = 1 - (afterTop || beforeBottom) / contH; 936 } else if (beforeTopEnd <= wndH) { 937 visiblePercent = beforeTopEnd / wndH; 938 } else if (beforeBottomEnd <= wndH) { 939 visiblePercent = beforeBottomEnd / wndH; 940 } // opacity 941 942 943 if ('opacity' === self.options.type || 'scale-opacity' === self.options.type || 'scroll-opacity' === self.options.type) {
944 styles.transform = 'translate3d(0,0,0)'; 945 styles.opacity = visiblePercent; 946 } // scale 947 948 949 if ('scale' === self.options.type || 'scale-opacity' === self.options.type) { 950 var scale = 1; 951 952 if (0 > self.options.speed) { 953 scale -= self.options.speed * visiblePercent; 954 } else { 955 scale += self.options.speed * (1 - visiblePercent); 956 } 957 958 styles.transform = "scale(".concat(scale, ") translate3d(0,0,0)"); 959 } // scroll 960 961 962 if ('scroll' === self.options.type || 'scroll-opacity' === self.options.type) { 963 var positionY = self.parallaxScrollDistance * fromViewportCenter; // fix if parallax block in absolute position 964 965 if ('absolute' === self.image.position) { 966 positionY -= contT; 967 } 968 969 styles.transform = "translate3d(0,".concat(positionY, "px,0)"); 970 } 971 972 self.css(self.image.$item, styles); // call onScroll event 973 974 if (self.options.onScroll) { 975 self.options.onScroll.call(self, { 976 section: rect, 977 beforeTop: beforeTop, 978 beforeTopEnd: beforeTopEnd, 979 afterTop: afterTop, 980 beforeBottom: beforeBottom, 981 beforeBottomEnd: beforeBottomEnd, 982 afterBottom: afterBottom, 983 visiblePercent: visiblePercent, 984 fromViewportCenter: fromViewportCenter 985 }); 986 } 987 } 988 }, { 989 key: "onResize", 990 value: function onResize() { 991 this.coverImage(); 992 this.clipContainer(); 993 } 994 }]); 995 996 return Jarallax; 997}(); // global definition 998 999 1000var plugin = function plugin(items, options) { 1001 // check for dom element 1002 // thanks: http://stackoverflow.com/questions/384286/javascript-isdom-how-do-you-check-if-a-javascript-object-is-a-dom-object 1003 if ('object' === (typeof HTMLElement === "undefined" ? "undefined" : _typeof(HTMLElement)) ? items instanceof HTMLElement : items && 'object' === _typeof(items) && null !== items && 1 === items.nodeType && 'string' === typeof items.nodeName) { 1004 items = [items]; 1005 } 1006 1007 var len = items.length; 1008 var k = 0; 1009 var ret; 1010 1011 for (var _len2 = arguments.length, args = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { 1012 args[_key2 - 2] = arguments[_key2]; 1013 } 1014 1015 for (k; k < len; k += 1) { 1016 if ('object' === _typeof(options) || 'undefined' === typeof options) { 1017 if (!items[k].jarallax) { 1018 items[k].jarallax = new Jarallax(items[k], options); 1019 } 1020 } else if (items[k].jarallax) { 1021 // eslint-disable-next-line prefer-spread 1022 ret = items[k].jarallax[options].apply(items[k].jarallax, args); 1023 } 1024 1025 if ('undefined' !== typeof ret) { 1026 return ret; 1027 } 1028 } 1029 1030 return items; 1031}; 1032 1033plugin.constructor = Jarallax; 1034/* harmony default export */ __webpack_exports__["default"] = (plugin); 1035 1036/***/ }) 1037/******/ ]); 1038 1039// 1040// fitvids 1041// 1042 1043/*jshint browser:true */ 1044/*! 1045* FitVids 1.1 1046* 1047* Copyright 2013, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com 1048* Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/ 1049* Released under the WTFPL license - http://sam.zoy.org/wtfpl/ 1050* 1051*/ 1052 1053;(function( $ ){ 1054 1055 'use strict'; 1056 1057 $.fn.fitVids = function( options ) { 1058 var settings = { 1059 customSelector: null, 1060 ignore: null 1061 }; 1062 1063 if(!document.getElementById('fit-vids-style')) { 1064 // appendStyles: https://github.com/toddmotto/fluidvids/blob/master/dist/fluidvids.js 1065 var head = document.head || document.getElementsByTagName('head')[0]; 1066 var css = '.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}'; 1067 var div = document.createElement("div"); 1068 div.innerHTML = '<p>x</p><style id="fit-vids-style">' + css + '</style>'; 1069 head.appendChild(div.childNodes[1]); 1070 } 1071 1072 if ( options ) { 1073 $.extend( settings, options ); 1074 } 1075 1076 return this.each(function(){ 1077 var selectors = [ 1078 'iframe[src*="player.vimeo.com"]', 1079 'iframe[src*="youtube.com"]', 1080 'iframe[src*="youtube-nocookie.com"]', 1081 'iframe[src*="kickstarter.com"][src*="video.html"]', 1082 'object', 1083 'embed' 1084 ]; 1085 1086 if (settings.customSelector) { 1087 selectors.push(settings.customSelector); 1088 } 1089 1090 var ignoreList = '.fitvidsignore'; 1091 1092 if(settings.ignore) { 1093 ignoreList = ignoreList + ', ' + settings.ignore; 1094 } 1095 1096 var $allVideos = $(this).find(selectors.join(',')); 1097 $allVideos = $allVideos.not('object object'); // SwfObj conflict patch 1098 $allVideos = $allVideos.not(ignoreList); // Disable FitVids on this video. 1099 1100 $allVideos.each(function(){ 1101 var $this = $(this); 1102 if($this.parents(ignoreList).length > 0) { 1103 return; // Disable FitVids on this video. 1104 } 1105 if (this.tagName.toLowerCase() === 'embed' && $this.parent('object').length || $this.parent('.fluid-width-video-wrapper').length) { return; } 1106 if ((!$this.css('height') && !$this.css('width')) && (isNaN($this.attr('height')) || isNaN($this.attr('width')))) 1107 { 1108 $this.attr('height', 9); 1109 $this.attr('width', 16); 1110 } 1111 var height = ( this.tagName.toLowerCase() === 'object' || ($this.attr('height') && !isNaN(parseInt($this.attr('height'), 10))) ) ? parseInt($this.attr('height'), 10) : $this.height(), 1112 width = !isNaN(parseInt($this.attr('width'), 10)) ? parseInt($this.attr('width'), 10) : $this.width(), 1113 aspectRatio = height / width; 1114 if(!$this.attr('name')){ 1115 var videoName = 'fitvid' + $.fn.fitVids._count; 1116 $this.attr('name', videoName); 1117 $.fn.fitVids._count++; 1118 } 1119 $this.wrap('<div class="fluid-width-video-wrapper"></div>').parent('.fluid-width-video-wrapper').css('padding-top', (aspectRatio * 100)+'%'); 1120 $this.removeAttr('height').removeAttr('width'); 1121 }); 1122 }); 1123 }; 1124
vendor: 5,207 bytes, lines 1125-1276
1125 // Internal counter for unique video names. 1126 $.fn.fitVids._count = 0; 1127 1128// Works with either jQuery or Zepto 1129})( window.jQuery || window.Zepto ); 1130 1131 1132// 1133// validator 1134// 1135 1136/* ======================================================================== 1137 * Bootstrap (plugin): validator.js v0.11.9 1138 * ======================================================================== 1139 * The MIT License (MIT) 1140 * 1141 * Copyright (c) 2016 Cina Saffary. 1142 * Made by @1000hz in the style of Bootstrap 3 era @fat 1143 * 1144 * Permission is hereby granted, free of charge, to any person obtaining a copy 1145 * of this software and associated documentation files (the "Software"), to deal 1146 * in the Software without restriction, including without limitation the rights 1147 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 1148 * copies of the Software, and to permit persons to whom the Software is 1149 * furnished to do so, subject to the following conditions: 1150 * 1151 * The above copyright notice and this permission notice shall be included in 1152 * all copies or substantial portions of the Software. 1153 * 1154 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1155 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1156 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 1157 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 1158 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 1159 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 1160 * THE SOFTWARE. 1161 * ======================================================================== */ 1162 1163 1164+function ($) { 1165 'use strict'; 1166 1167 // VALIDATOR CLASS DEFINITION 1168 // ========================== 1169 1170 function getValue($el) { 1171 return $el.is('[type="checkbox"]') ? $el.prop('checked') : 1172 $el.is('[type="radio"]') ? !!$('[name="' + $el.attr('name') + '"]:checked').length : 1173 $el.is('select[multiple]') ? ($el.val() || []).length : 1174 $el.val() 1175 } 1176 1177 var Validator = function (element, options) { 1178 this.options = options 1179 this.validators = $.extend({}, Validator.VALIDATORS, options.custom) 1180 this.$element = $(element) 1181 this.$btn = $('button[type="submit"], input[type="submit"]') 1182 .filter('[form="' + this.$element.attr('id') + '"]') 1183 .add(this.$element.find('input[type="submit"], button[type="submit"]')) 1184 1185 this.update() 1186 1187 this.$element.on('input.bs.validator change.bs.validator focusout.bs.validator', $.proxy(this.onInput, this)) 1188 this.$element.on('submit.bs.validator', $.proxy(this.onSubmit, this)) 1189 this.$element.on('reset.bs.validator', $.proxy(this.reset, this)) 1190 1191 this.$element.find('[data-match]').each(function () { 1192 var $this = $(this) 1193 var target = $this.attr('data-match') 1194 1195 $(target).on('input.bs.validator', function (e) { 1196 getValue($this) && $this.trigger('input.bs.validator') 1197 }) 1198 }) 1199 1200 // run validators for fields with values, but don't clobber server-side errors 1201 this.$inputs.filter(function () { 1202 return getValue($(this)) && !$(this).closest('.has-error').length 1203 }).trigger('focusout') 1204 1205 this.$element.attr('novalidate', true) // disable automatic native validation 1206 } 1207 1208 Validator.VERSION = '0.11.9' 1209 1210 Validator.INPUT_SELECTOR = ':input:not([type="hidden"], [type="submit"], [type="reset"], button)' 1211 1212 Validator.FOCUS_OFFSET = 20 1213 1214 Validator.DEFAULTS = { 1215 delay: 500, 1216 html: false, 1217 disable: true, 1218 focus: true, 1219 custom: {}, 1220 errors: { 1221 match: 'Does not match', 1222 minlength: 'Not long enough' 1223 }, 1224 feedback: { 1225 success: 'glyphicon-ok', 1226 error: 'glyphicon-remove' 1227 } 1228 } 1229 1230 Validator.VALIDATORS = { 1231 'native': function ($el) { 1232 var el = $el[0] 1233 if (el.checkValidity) { 1234 return !el.checkValidity() && !el.validity.valid && (el.validationMessage || "error!") 1235 } 1236 }, 1237 'match': function ($el) { 1238 var target = $el.attr('data-match') 1239 return $el.val() !== $(target).val() && Validator.DEFAULTS.errors.match 1240 }, 1241 'minlength': function ($el) { 1242 var minlength = $el.attr('data-minlength') 1243 return $el.val().length < minlength && Validator.DEFAULTS.errors.minlength 1244 } 1245 } 1246 1247 Validator.prototype.update = function () { 1248 var self = this 1249 1250 this.$inputs = this.$element.find(Validator.INPUT_SELECTOR) 1251 .add(this.$element.find('[data-validate="true"]')) 1252 .not(this.$element.find('[data-validate="false"]') 1253 .each(function () { self.clearErrors($(this)) }) 1254 ) 1255 1256 this.toggleSubmit() 1257 1258 return this 1259 } 1260 1261 Validator.prototype.onInput = function (e) { 1262 var self = this 1263 var $el = $(e.target) 1264 var deferErrors = e.type !== 'focusout' 1265 1266 if (!this.$inputs.is($el)) return 1267 1268 this.validateInput($el, deferErrors).done(function () { 1269 self.toggleSubmit() 1270 }) 1271 } 1272 1273 Validator.prototype.validateInput = function ($el, deferErrors) { 1274 var value = getValue($el) 1275 var prevErrors = $el.data('bs.validator.errors') 1276
1277 if ($el.is('[type="radio"]')) $el = this.$element.find('input[name="' + $el.attr('name') + '"]') 1278 1279 var e = $.Event('validate.bs.validator', {relatedTarget: $el[0]}) 1280 this.$element.trigger(e) 1281 if (e.isDefaultPrevented()) return 1282 1283 var self = this 1284 1285 return this.runValidators($el).done(function (errors) { 1286 $el.data('bs.validator.errors', errors) 1287 1288 errors.length 1289 ? deferErrors ? self.defer($el, self.showErrors) : self.showErrors($el) 1290 : self.clearErrors($el) 1291 1292 if (!prevErrors || errors.toString() !== prevErrors.toString()) { 1293 e = errors.length 1294 ? $.Event('invalid.bs.validator', {relatedTarget: $el[0], detail: errors}) 1295 : $.Event('valid.bs.validator', {relatedTarget: $el[0], detail: prevErrors}) 1296 1297 self.$element.trigger(e) 1298 } 1299 1300 self.toggleSubmit() 1301 1302 self.$element.trigger($.Event('validated.bs.validator', {relatedTarget: $el[0]})) 1303 }) 1304 } 1305 1306 1307 Validator.prototype.runValidators = function ($el) { 1308 var errors = [] 1309 var deferred = $.Deferred() 1310 1311 $el.data('bs.validator.deferred') && $el.data('bs.validator.deferred').reject() 1312 $el.data('bs.validator.deferred', deferred) 1313 1314 function getValidatorSpecificError(key) { 1315 return $el.attr('data-' + key + '-error') 1316 } 1317 1318 function getValidityStateError() { 1319 var validity = $el[0].validity 1320 return validity.typeMismatch ? $el.attr('data-type-error') 1321 : validity.patternMismatch ? $el.attr('data-pattern-error') 1322 : validity.stepMismatch ? $el.attr('data-step-error') 1323 : validity.rangeOverflow ? $el.attr('data-max-error') 1324 : validity.rangeUnderflow ? $el.attr('data-min-error') 1325 : validity.valueMissing ? $el.attr('data-required-error') 1326 : null 1327 } 1328 1329 function getGenericError() { 1330 return $el.attr('data-error') 1331 } 1332 1333 function getErrorMessage(key) { 1334 return getValidatorSpecificError(key) 1335 || getValidityStateError() 1336 || getGenericError() 1337 } 1338 1339 $.each(this.validators, $.proxy(function (key, validator) { 1340 var error = null 1341 if ((getValue($el) || $el.attr('required')) && 1342 ($el.attr('data-' + key) !== undefined || key == 'native') && 1343 (error = validator.call(this, $el))) { 1344 error = getErrorMessage(key) || error 1345 !~errors.indexOf(error) && errors.push(error) 1346 } 1347 }, this)) 1348 1349 if (!errors.length && getValue($el) && $el.attr('data-remote')) { 1350 this.defer($el, function () { 1351 var data = {} 1352 data[$el.attr('name')] = getValue($el) 1353 $.get($el.attr('data-remote'), data) 1354 .fail(function (jqXHR, textStatus, error) { errors.push(getErrorMessage('remote') || error) }) 1355 .always(function () { deferred.resolve(errors)}) 1356 }) 1357 } else deferred.resolve(errors) 1358 1359 return deferred.promise() 1360 } 1361 1362 Validator.prototype.validate = function () { 1363 var self = this 1364 1365 $.when(this.$inputs.map(function (el) { 1366 return self.validateInput($(this), false) 1367 })).then(function () { 1368 self.toggleSubmit() 1369 self.focusError() 1370 }) 1371 1372 return this 1373 } 1374 1375 Validator.prototype.focusError = function () { 1376 if (!this.options.focus) return 1377 1378 var $input = this.$element.find(".has-error:first :input") 1379 if ($input.length === 0) return 1380 1381 $('html, body').animate({scrollTop: $input.offset().top - Validator.FOCUS_OFFSET}, 250) 1382 $input.focus() 1383 } 1384 1385 Validator.prototype.showErrors = function ($el) { 1386 var method = this.options.html ? 'html' : 'text' 1387 var errors = $el.data('bs.validator.errors') 1388 var $group = $el.closest('.form-group') 1389 var $groupfield = $el.closest('.form-group > input') 1390 var $block = $group.find('.help-block.with-errors') 1391 var $feedback = $group.find('.form-control-feedback') 1392 1393 if (!errors.length) return 1394 1395 errors = $('<ul/>') 1396 .addClass('list-unstyled') 1397 .append($.map(errors, function (error) { return $('<li/>')[method](error) })) 1398 1399 $block.data('bs.validator.originalContent') === undefined && $block.data('bs.validator.originalContent', $block.html()) 1400 $block.empty().append(errors) 1401 $group.addClass('has-error has-danger') 1402 1403 $groupfield.addClass('form-control-danger'); 1404 1405 $group.hasClass('has-feedback') 1406 && $feedback.removeClass(this.options.feedback.success) 1407 && $feedback.addClass(this.options.feedback.error) 1408 && $group.removeClass('has-success') 1409 } 1410 1411 Validator.prototype.clearErrors = function ($el) { 1412 var $group = $el.closest('.form-group') 1413 var $groupfield = $el.closest('.form-group > input') 1414 var $block = $group.find('.help-block.with-errors') 1415 var $feedback = $group.find('.form-control-feedback') 1416 1417 $block.html($block.data('bs.validator.originalContent')) 1418 $group.removeClass('has-error has-danger has-success') 1419 $groupfield.removeClass('form-control-danger'); 1420 1421 1422 $group.hasClass('has-feedback') 1423 && $feedback.removeClass(this.options.feedback.error) 1424 && $feedback.removeClass(this.options.feedback.success) 1425 && getValue($el) 1426 && $feedback.addClass(this.options.feedback.success) 1427 && $group.addClass('has-success') 1428 } 1429 1430 Validator.prototype.hasErrors = function () { 1431 function fieldErrors() { 1432 return !!($(this).data('bs.validator.errors') || []).length 1433 } 1434 1435 return !!this.$inputs.filter(fieldErrors).length 1436 } 1437 1438 Validator.prototype.isIncomplete = function () { 1439 function fieldIncomplete() { 1440 var value = getValue($(this)) 1441 return !(typeof value == "string" ? $.trim(value) : value) 1442 } 1443 1444 return !!this.$inputs.filter('[required]').filter(fieldIncomplete).length 1445 } 1446 1447 Validator.prototype.onSubmit = function (e) { 1448 this.validate() 1449 if (this.isIncomplete() || this.hasErrors()) e.preventDefault() 1450 } 1451 1452 Validator.prototype.toggleSubmit = function () { 1453 if (!this.options.disable) return 1454 this.$btn.toggleClass('disabled', this.isIncomplete() || this.hasErrors()) 1455 } 1456 1457 Validator.prototype.defer = function ($el, callback) { 1458 callback = $.proxy(callback, this, $el) 1459 if (!this.options.delay) return callback() 1460 window.clearTimeout($el.data('bs.validator.timeout')) 1461 $el.data('bs.validator.timeout', window.setTimeout(callback, this.options.delay)) 1462 } 1463 1464 Validator.prototype.reset = function () { 1465 this.$element.find('.form-control-feedback') 1466 .removeClass(this.options.feedback.error) 1467 .removeClass(this.options.feedback.success) 1468 1469 this.$inputs 1470 .removeData(['bs.validator.errors', 'bs.validator.deferred']) 1471 .each(function () { 1472 var $this = $(this) 1473 var timeout = $this.data('bs.validator.timeout') 1474 window.clearTimeout(timeout) && $this.removeData('bs.validator.timeout') 1475 }) 1476 1477 this.$element.find('.help-block.with-errors') 1478 .each(function () { 1479 var $this = $(this) 1480 var originalContent = $this.data('bs.validator.originalContent') 1481 1482 $this 1483 .removeData('bs.validator.originalContent') 1484 .html(originalContent) 1485 }) 1486 1487 this.$btn.removeClass('disabled') 1488 1489 this.$element.find('.has-error, .has-danger, .has-success').removeClass('has-error has-danger has-success') 1490 1491 return this 1492 } 1493 1494 Validator.prototype.destroy = function () { 1495 this.reset() 1496 1497 this.$element 1498 .removeAttr('novalidate') 1499 .removeData('bs.validator') 1500 .off('.bs.validator') 1501 1502 this.$inputs 1503 .off('.bs.validator') 1504 1505 this.options = null 1506 this.validators = null 1507 this.$element = null 1508 this.$btn = null 1509 this.$inputs = null 1510 1511 return this 1512 } 1513 1514 // VALIDATOR PLUGIN DEFINITION 1515 // =========================== 1516 1517 1518 function Plugin(option) { 1519 return this.each(function () { 1520 var $this = $(this) 1521 var options = $.extend({}, Validator.DEFAULTS, $this.data(), typeof option == 'object' && option) 1522 var data = $this.data('bs.validator') 1523 1524 if (!data && option == 'destroy') return 1525 if (!data) $this.data('bs.validator', (data = new Validator(this, options))) 1526 if (typeof option == 'string') data[option]() 1527 }) 1528 } 1529 1530 var old = $.fn.validator 1531 1532 $.fn.validator = Plugin 1533 $.fn.validator.Constructor = Validator 1534 1535 1536 // VALIDATOR NO CONFLICT 1537 // ===================== 1538 1539 $.fn.validator.noConflict = function () { 1540 $.fn.validator = old 1541 return this 1542 } 1543 1544 1545 // VALIDATOR DATA-API 1546 // ================== 1547 1548 $(window).on('load', function () { 1549 $('form[data-toggle="validator"]').each(function () { 1550 var $form = $(this) 1551 Plugin.call($form, $form.data()) 1552 }) 1553 }) 1554 1555}(jQuery); 1556 1557 1558// 1559// lazy 1560// 1561 1562/*! jQuery & Zepto Lazy v1.7.10 - http://jquery.eisbehr.de/lazy - MIT&GPL-2.0 license - Copyright 2012-2018 Daniel 'Eisbehr' Kern */ 1563!function(t,e){"use strict";function r(r,a,i,u,l){function f(){L=t.devicePixelRatio>1,i=c(i),a.delay>=0&&setTimeout(function(){s(!0)},a.delay),(a.delay<0||a.combined)&&(u.e=v(a.throttle,function(t){"resize"===t.type&&(w=B=-1),s(t.all)}),u.a=function(t){t=c(t),i.push.apply(i,t)},u.g=function(){return i=n(i).filter(function(){return!n(this).data(a.loadedName)})},u.f=function(t){for(var e=0;e<t.length;e++){var r=i.filter(function(){return this===t[e]});r.length&&s(!1,r)}},s(),n(a.appendScroll).on("scroll."+l+" resize."+l,u.e))}function c(t){var i=a.defaultImage,o=a.placeholder,u=a.imageBase,l=a.srcsetAttribute,f=a.loaderAttribute,c=a._f||{};t=n(t).filter(function(){var t=n(this),r=m(this);return!t.data(a.handledName)&&(t.attr(a.attribute)||t.attr(l)||t.attr(f)||c[r]!==e)}).data("plugin_"+a.name,r);for(var s=0,d=t.length;s<d;s++){var A=n(t[s]),g=m(t[s]),h=A.attr(a.imageBaseAttribute)||u;g===N&&h&&A.attr(l)&&A.attr(l,b(A.attr(l),h)),c[g]===e||A.attr(f)||A.attr(f,c[g]),g===N&&i&&!A.attr(E)?A.attr(E,i):g===N||!o||A.css(O)&&"none"!==A.css(O)||A.css(O,"url('"+o+"')")}return t}function s(t,e){if(!i.length)return void(a.autoDestroy&&r.destroy());for(var o=e||i,u=!1,l=a.imageBase||"",f=a.srcsetAttribute,c=a.handledName,s=0;s<o.length;s++)if(t||e||A(o[s])){var g=n(o[s]),h=m(o[s]),b=g.attr(a.attribute),v=g.attr(a.imageBaseAttribute)||l,p=g.attr(a.loaderAttribute);g.data(c)||a.visibleOnly&&!g.is(":visible")||!((b||g.attr(f))&&(h===N&&(v+b!==g.attr(E)||g.attr(f)!==g.attr(F))||h!==N&&v+b!==g.css(O))||p)||(u=!0,g.data(c,!0),d(g,h,v,p))}u&&(i=n(i).filter(function(){return!n(this).data(c)}))}function d(t,e,r,i){++z;var o=function(){y("onError",t),p(),o=n.noop};y("beforeLoad",t);var u=a.attribute,l=a.srcsetAttribute,f=a.sizesAttribute,c=a.retinaAttribute,s=a.removeAttribute,d=a.loadedName,A=t.attr(c);if(i){var g=function(){s&&t.removeAttr(a.loaderAttribute),t.data(d,!0),y(T,t),setTimeout(p,1),g=n.noop};t.off(I).one(I,o).one(D,g),y(i,t,function(e){e?(t.off(D),g()):(t.off(I),o())})||t.trigger(I)}else{var h=n(new Image);h.one(I,o).one(D,function(){t.hide(),e===N?t.attr(C,h.attr(C)).attr(F,h.attr(F)).attr(E,h.attr(E)):t.css(O,"url('"+h.attr(E)+"')"),t[a.effect](a.effectTime),s&&(t.removeAttr(u+" "+l+" "+c+" "+a.imageBaseAttribute),f!==C&&t.removeAttr(f)),t.data(d,!0),y(T,t),h.remove(),p()});var m=(L&&A?A:t.attr(u))||"";h.attr(C,t.attr(f)).attr(F,t.attr(l)).attr(E,m?r+m:null),h.complete&&h.trigger(D)}}function A(t){var e=t.getBoundingClientRect(),r=a.scrollDirection,n=a.threshold,i=h()+n>e.top&&-n<e.bottom,o=g()+n>e.left&&-n<e.right;return"vertical"===r?i:"horizontal"===r?o:i&&o}function g(){return w>=0?w:w=n(t).width()}function h(){return B>=0?B:B=n(t).height()}function m(t){return t.tagName.toLowerCase()}function b(t,e){if(e){var r=t.split(",");t="";for(var a=0,n=r.length;a<n;a++)t+=e+r[a].trim()+(a!==n-1?",":"")}return t}function v(t,e){var n,i=0;return function(o,u){function l(){i=+new Date,e.call(r,o)}var f=+new Date-i;n&&clearTimeout(n),f>t||!a.enableThrottle||u?l():n=setTimeout(l,t-f)}}function p(){--z,i.length||z||y("onFinishedAll")}function y(t,e,n){return!!(t=a[t])&&(t.apply(r,[].slice.call(arguments,1
1563)),!0)}var z=0,w=-1,B=-1,L=!1,T="afterLoad",D="load",I="error",N="img",E="src",F="srcset",C="sizes",O="background-image";"event"===a.bind||o?f():n(t).on(D+"."+l,f)}function a(a,o){var u=this,l=n.extend({},u.config,o),f={},c=l.name+"-"+ ++i;return u.config=function(t,r){return r===e?l[t]:(l[t]=r,u)},u.addItems=function(t){return f.a&&f.a("string"===n.type(t)?n(t):t),u},u.getItems=function(){return f.g?f.g():{}},u.update=function(t){return f.e&&f.e({},!t),u},u.force=function(t){return f.f&&f.f("string"===n.type(t)?n(t):t),u},u.loadAll=function(){return f.e&&f.e({all:!0},!0),u},u.destroy=function(){return n(l.appendScroll).off("."+c,f.e),n(t).off("."+c),f={},e},r(u,l,a,f,c),l.chainable?a:u}var n=t.jQuery||t.Zepto,i=0,o=!1;n.fn.Lazy=n.fn.lazy=function(t){return new a(this,t)},n.Lazy=n.lazy=function(t,r,i){if(n.isFunction(r)&&(i=r,r=[]),n.isFunction(i)){t=n.isArray(t)?t:[t],r=n.isArray(r)?r:[r];for(var o=a.prototype.config,u=o._f||(o._f={}),l=0,f=t.length;l<f;l++)(o[t[l]]===e||n.isFunction(o[t[l]]))&&(o[t[l]]=i);for(var c=0,s=r.length;c<s;c++)u[r[c]]=t[0]}},a.prototype.config={name:"lazy",chainable:!0,autoDestroy:!0,bind:"load",threshold:500,visibleOnly:!1,appendScroll:t,scrollDirection:"both",imageBase:null,defaultImage:"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",placeholder:null,delay:-1,combined:!1,attribute:"data-src",srcsetAttribute:"data-srcset",sizesAttribute:"data-sizes",retinaAttribute:"data-retina",loaderAttribute:"data-loader",imageBaseAttribute:"data-imagebase",removeAttribute:!0,handledName:"handled",loadedName:"loaded",effect:"show",effectTime:0,enableThrottle:!0,throttle:250,beforeLoad:e,afterLoad:e,onError:e,onFinishedAll:e},n(t).on("load",function(){o=!0})}(window); 1564 1565/*! jQuery & Zepto Lazy - YouTube Plugin v1.5 - http://jquery.eisbehr.de/lazy - MIT&GPL-2.0 license - Copyright 2012-2018 Daniel 'Eisbehr' Kern */ 1566!function(t){t.lazy(["yt","youtube"],function(t,e){if("iframe"===t[0].tagName.toLowerCase()){var o=/1|true/.test(t.attr("data-nocookie"));t.attr("src","https://www.youtube"+(o?"-nocookie":"")+".com/embed/"+t.attr("data-src")+"?rel=0&showinfo=0"),this.config("removeAttribute")&&t.removeAttr("data-src")}else e(!1)})}(window.jQuery||window.Zepto); 1567 1568/*! jQuery & Zepto Lazy - Vimeo Plugin v1.1 - http://jquery.eisbehr.de/lazy - MIT&GPL-2.0 license - Copyright 2012-2018 Daniel 'Eisbehr' Kern */ 1569!function(t){t.lazy("vimeo",function(t,e){"iframe"===t[0].tagName.toLowerCase()?(t.attr("src","https://player.vimeo.com/video/"+t.attr("data-src")),this.config("removeAttribute")&&t.removeAttr("data-src")):e(!1)})}(window.jQuery||window.Zepto); 1570 1571/*! jQuery Migrate v1.2.1 | (c) 2005, 2013 jQuery Foundation, Inc. and other contributors | jquery.org/license */ 1572jQuery.migrateMute===void 0&&(jQuery.migrateMute=!0),function(e,t,n){function r(n){var r=t.console;i[n]||(i[n]=!0,e.migrateWarnings.push(n),r&&r.warn&&!e.migrateMute&&(r.warn("JQMIGRATE: "+n),e.migrateTrace&&r.trace&&r.trace()))}function a(t,a,i,o){if(Object.defineProperty)try{return Object.defineProperty(t,a,{configurable:!0,enumerable:!0,get:function(){return r(o),i},set:function(e){r(o),i=e}}),n}catch(s){}e._definePropertyBroken=!0,t[a]=i}var i={};e.migrateWarnings=[],!e.migrateMute&&t.console&&t.console.log&&t.console.log("JQMIGRATE: Logging is active"),e.migrateTrace===n&&(e.migrateTrace=!0),e.migrateReset=function(){i={},e.migrateWarnings.length=0},"BackCompat"===document.compatMode&&r("jQuery is not compatible with Quirks Mode");var o=e("<input/>",{size:1}).attr("size")&&e.attrFn,s=e.attr,u=e.attrHooks.value&&e.attrHooks.value.get||function(){return null},c=e.attrHooks.value&&e.attrHooks.value.set||function(){return n},l=/^(?:input|button)$/i,d=/^[238]$/,p=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,f=/^(?:checked|selected)$/i;a(e,"attrFn",o||{},"jQuery.attrFn is deprecated"),e.attr=function(t,a,i,u){var c=a.toLowerCase(),g=t&&t.nodeType;return u&&(4>s.length&&r("jQuery.fn.attr( props, pass ) is deprecated"),t&&!d.test(g)&&(o?a in o:e.isFunction(e.fn[a])))?e(t)[a](i):("type"===a&&i!==n&&l.test(t.no
vendor: 5,736 bytes, lines 1572-1574
1572deName)&&t.parentNode&&r("Can't change the 'type' of an input or button in IE 6/7/8"),!e.attrHooks[c]&&p.test(c)&&(e.attrHooks[c]={get:function(t,r){var a,i=e.prop(t,r);return i===!0||"boolean"!=typeof i&&(a=t.getAttributeNode(r))&&a.nodeValue!==!1?r.toLowerCase():n},set:function(t,n,r){var a;return n===!1?e.removeAttr(t,r):(a=e.propFix[r]||r,a in t&&(t[a]=!0),t.setAttribute(r,r.toLowerCase())),r}},f.test(c)&&r("jQuery.fn.attr('"+c+"') may use property instead of attribute")),s.call(e,t,a,i))},e.attrHooks.value={get:function(e,t){var n=(e.nodeName||"").toLowerCase();return"button"===n?u.apply(this,arguments):("input"!==n&&"option"!==n&&r("jQuery.fn.attr('value') no longer gets properties"),t in e?e.value:null)},set:function(e,t){var a=(e.nodeName||"").toLowerCase();return"button"===a?c.apply(this,arguments):("input"!==a&&"option"!==a&&r("jQuery.fn.attr('value', val) no longer sets properties"),e.value=t,n)}};var g,h,v=e.fn.init,m=e.parseJSON,y=/^([^<]*)(<[\w\W]+>)([^>]*)$/;e.fn.init=function(t,n,a){var i;return t&&"string"==typeof t&&!e.isPlainObject(n)&&(i=y.exec(e.trim(t)))&&i[0]&&("<"!==t.charAt(0)&&r("$(html) HTML strings must start with '<' character"),i[3]&&r("$(html) HTML text after last tag is ignored"),"#"===i[0].charAt(0)&&(r("HTML string cannot start with a '#' character"),e.error("JQMIGRATE: Invalid selector string (XSS)")),n&&n.context&&(n=n.context),e.parseHTML)?v.call(this,e.parseHTML(i[2],n,!0),n,a):v.apply(this,arguments)},e.fn.init.prototype=e.fn,e.parseJSON=function(e){return e||null===e?m.apply(this,arguments):(r("jQuery.parseJSON requires a valid JSON string"),null)},e.uaMatch=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||0>e.indexOf("compatible")&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},e.browser||(g=e.uaMatch(navigator.userAgent),h={},g.browser&&(h[g.browser]=!0,h.version=g.version),h.chrome?h.webkit=!0:h.webkit&&(h.safari=!0),e.browser=h),a(e,"browser",e.browser,"jQuery.browser is deprecated"),e.sub=function(){function t(e,n){return new t.fn.init(e,n)}e.extend(!0,t,this),t.superclass=this,t.fn=t.prototype=this(),t.fn.constructor=t,t.sub=this.sub,t.fn.init=function(r,a){return a&&a instanceof e&&!(a instanceof t)&&(a=t(a)),e.fn.init.call(this,r,a,n)},t.fn.init.prototype=t.fn;var n=t(document);return r("jQuery.sub() is deprecated"),t},e.ajaxSetup({converters:{"text json":e.parseJSON}});var b=e.fn.data;e.fn.data=function(t){var a,i,o=this[0];return!o||"events"!==t||1!==arguments.length||(a=e.data(o,t),i=e._data(o,t),a!==n&&a!==i||i===n)?b.apply(this,arguments):(r("Use of jQuery.fn.data('events') is deprecated"),i)};var j=/\/(java|ecma)script/i,w=e.fn.andSelf||e.fn.addBack;e.fn.andSelf=function(){return r("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()"),w.apply(this,arguments)},e.clean||(e.clean=function(t,a,i,o){a=a||document,a=!a.nodeType&&a[0]||a,a=a.ownerDocument||a,r("jQuery.clean() is deprecated");var s,u,c,l,d=[];if(e.merge(d,e.buildFragment(t,a).childNodes),i)for(c=function(e){return!e.type||j.test(e.type)?o?o.push(e.parentNode?e.parentNode.removeChild(e):e):i.appendChild(e):n},s=0;null!=(u=d[s]);s++)e.nodeName(u,"script")&&c(u)||(i.appendChild(u),u.getElementsByTagName!==n&&(l=e.grep(e.merge([],u.getElementsByTagName("script")),c),d.splice.apply(d,[s+1,0].concat(l)),s+=l.length));return d});var Q=e.event.add,x=e.event.remove,k=e.event.trigger,N=e.fn.toggle,T=e.fn.live,M=e.fn.die,S="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",C=RegExp("\\b(?:"+S+")\\b"),H=/(?:^|\s)hover(\.\S+|)\b/,A=function(t){return"string"!=typeof t||e.event.special.hover?t:(H.test(t)&&r("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"),t&&t.replace(H,"mouseenter$1 mouseleave$1"))};e.event.props&&"attrChange"!==e.event.props[0]&&e.event.props.unshift("attrChange","attrName","relatedNode","srcElement"),e.event.dispatch&&a(e.event,"handle",e.event.dispatch,"jQuery.event.handle is undocumented and deprecated"),e.event.add=function(e,t,n,a,i){e!==document&&C.test(t)&&r("AJAX events should be attached to document: "+t),Q.call(this,e,A(t||""),n,a,i)},e.event.remove=function(e,t,n,r,a){x.call(this,e,A(t)||"",n,r,a)},e.fn.error=function(){var e=Array.prototype.slice.call(arguments,0);return r("jQuery.fn.error() is deprecated"),e.splice(0,0,"error"),arguments.length?this.bind.apply(this,e):(this.triggerHandler.apply(this,e),this)},e.fn.toggle=function(t,n){if(!e.isFunction(t)||!e.isFunction(n))return N.apply(this,arguments);r("jQuery.fn.toggle(handler, handler...) is deprecated");var a=arguments,i=t.guid||e.guid++,o=0,s=function(n){var r=(e._data(this,"lastToggle"+t.guid)||0)%o;return e._data(this,"lastToggle"+t.guid,r+1),n.preventDefault(),a[r].apply(this,arguments)||!1};for(s.guid=i;a.length>o;)a[o++].guid=i;return this.click(s)},e.fn.live=function(t,n,a){return r("jQuery.fn.live() is deprecated"),T?T.apply(this,arguments):(e(this.context).on(t,this.selector,n,a),this)},e.fn.die=function(t,n){return r("jQuery.fn.die() is deprecated"),M?M.apply(this,arguments):(e(this.context).off(t,this.selector||"**",n),this)},e.event.trigger=function(e,t,n,a){return n||C.test(e)||r("Global events are undocumented and deprecated"),k.call(this,e,t,n||document,a)},e.each(S.split("|"),function(t,n){e.event.special[n]={setup:function(){var t=this;return t!==document&&(e.event.add(document,n+"."+e.guid,function(){e.event.trigger(n,null,t,!0)}),e._data(this,n,e.guid++)),!1},teardown:function(){return this!==document&&e.event.remove(document,n+"."+e._data(this,n)),!1}}})}(jQuery,window); 1573var stacks = {}; 1574stacks.jQuery = jQuery.noConflict(true);
vendor: 23,215 bytes, lines 1575-1590
1575stacks.com_elixir_stacks_foundryNavBarPro = {}; 1576stacks.com_elixir_stacks_foundryNavBarPro = (function(stack) { 1577var jQuery = stacks.jQuery;var $ = jQuery;/*! 1578 * VERSION: 2.0.1 1579 * DATE: 2018-05-30 1580 * UPDATES AND DOCS AT: http://greensock.com 1581 * 1582 * Includes all of the following: TweenLite, TweenMax, TimelineLite, TimelineMax, EasePack, CSSPlugin, RoundPropsPlugin, BezierPlugin, AttrPlugin, DirectionalRotationPlugin 1583 * 1584 * @license Copyright (c) 2008-2018, GreenSock. All rights reserved. 1585 * This work is subject to the terms at http://greensock.com/standard-license or for 1586 * Club GreenSock members, the software agreement that was issued with your membership. 1587 * 1588 * @author: Jack Doyle, [email protected] 1589 **/ 1590var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(a,b,c){var d=function(a){var b,c=[],d=a.length;for(b=0;b!==d;c.push(a[b++]));return c},e=function(a,b,c){var d,e,f=a.cycle;for(d in f)e=f[d],a[d]="function"==typeof e?e(c,b[c]):e[c%e.length];delete a.cycle},f=function(a,b,d){c.call(this,a,b,d),this._cycle=0,this._yoyo=this.vars.yoyo===!0||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._repeat&&this._uncache(!0),this.render=f.prototype.render},g=1e-10,h=c._internals,i=h.isSelector,j=h.isArray,k=f.prototype=c.to({},.1,{}),l=[];f.version="2.0.1",k.constructor=f,k.kill()._gc=!1,f.killTweensOf=f.killDelayedCallsTo=c.killTweensOf,f.getTweensOf=c.getTweensOf,f.lagSmoothing=c.lagSmoothing,f.ticker=c.ticker,f.render=c.render,k.invalidate=function(){return this._yoyo=this.vars.yoyo===!0||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._yoyoEase=null,this._uncache(!0),c.prototype.invalidate.call(this)},k.updateTo=function(a,b){var d,e=this.ratio,f=this.vars.immediateRender||a.immediateRender;b&&this._startTime<this._timeline._time&&(this._startTime=this._timeline._time,this._uncache(!1),this._gc?this._enabled(!0,!1):this._timeline.insert(this,this._startTime-this._delay));for(d in a)this.vars[d]=a[d];if(this._initted||f)if(b)this._initted=!1,f&&this.render(0,!0,!0);else if(this._gc&&this._enabled(!0,!1),this._notifyPluginsOfEnabled&&this._firstPT&&c._onPluginEvent("_onDisable",this),this._time/this._duration>.998){var g=this._totalTime;this.render(0,!0,!1),this._initted=!1,this.render(g,!0,!1)}else if(this._initted=!1,this._init(),this._time>0||f)for(var h,i=1/(1-e),j=this._firstPT;j;)h=j.s+j.c,j.c*=i,j.s=h-j.c,j=j._next;return this},k.render=function(a,b,d){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var e,f,i,j,k,l,m,n,o,p=this._dirty?this.totalDuration():this._totalDuration,q=this._time,r=this._totalTime,s=this._cycle,t=this._duration,u=this._rawPrevTime;if(a>=p-1e-7&&a>=0?(this._totalTime=p,this._cycle=this._repeat,this._yoyo&&0!==(1&this._cycle)?(this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0):(this._time=t,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(e=!0,f="onComplete",d=d||this._timeline.autoRemoveChildren),0===t&&(this._initted||!this.vars.lazy||d)&&(this._startTime===this._timeline._duration&&(a=0),(0>u||0>=a&&a>=-1e-7||u===g&&"isPause"!==this.data)&&u!==a&&(d=!0,u>g&&(f="onReverseComplete")),this._rawPrevTime=n=!b||a||u===a?a:g)):1e-7>a?(this._totalTime=this._time=this._cycle=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==r||0===t&&u>0)&&(f="onReverseComplete",e=this._reversed),0>a&&(this._active=!1,0===t&&(this._initted||!this.vars.lazy||d)&&(u>=0&&(d=!0),this._rawPrevTime=n=!b||a||u===a?a:g)),this._initted||(d=!0)):(this._totalTime=this._time=a,0!==this._repeat&&(j=t+this._repeatDelay,this._cycle=this._totalTime/j>>0,0!==this._cycle&&this._cycle===this._totalTime/j&&a>=r&&this._cycle--,this._time=this._totalTime-this._cycle*j,this._yoyo&&0!==(1&this._cycle)&&(this._time=t-this._time,o=this._yoyoEase||this.vars.yoyoEase,o&&(this._yoyoEase||(o!==!0||this._initted?this._yoyoEase=o=o===!0?this._ease:o instanceof Ease?o:Ease.map[o]:(o=this.vars.ease,this._yoyoEase=o=o?o instanceof Ease?o:"function"==typeof o?new Ease(o,this.vars.easeParams):Ease.map[o]||c.defaultEase:c.defaultEase)),this.ratio=o?1-o.getRatio((t-this._time)/t):0)),this._time>t?this._time=t:this._time<0&&(this._time=0)),this._easeType&&!o?(k=this._time/t,l=this._easeType,m=this._easePower,(1===l||3===l&&k>=.5)&&(k=1-k),3===l&&(k*=2),1===m?k*=k:2===m?k*=k*k:3===m?k*=k*k*k:4===m&&(k*=k*k*k*k),1===l?this.ratio=1-k:2===l?this.ratio=k:this._time/t<.5?this.ratio=k/2:this.ratio=1-k/2):o||(this.ratio=this._ease.getRatio(this._time/t))),q===this._time&&!d&&s===this._cycle)return void(r!==this._totalTime&&this._onUpdate&&(b||this._callback("onUpdate")));if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!d&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=q,this._totalTime=r,this._rawPrevTime=u,this._cycle=s,h.lazyTweens.push(this),void(this._lazy=[a,b]);!this._time||e||o?e&&this._ease._calcEnd&&!o&&(this.ratio=this._ease.getRatio(0===this._time?0:1)):this.ratio=this._ease.getRatio(this._time/t)}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==q&&a>=0&&(this._active=!0),0===r&&(2===this._initted&&a>0&&this._init(),this._startAt&&(a>=0?this._startAt.render(a,!0,d):f||(f="_dummyGS")),this.vars.onStart&&(0!==this._totalTime||0===t)&&(b||this._callback("onStart"))),i=this._firstPT;i;)i.f?i.t[i.p](i.c*this.ratio+i.s):i.t[i.p]=i.c*this.ratio+i.s,i=i._next;this._onUpdate&&(0>a&&this._startAt&&this._startTime&&this._startAt.render(a,!0,d),b||(this._totalTime!==r||f)&&this._callback("onUpdate")),this._cycle!==s&&(b||this._gc||this.vars.onRepeat&&this._callback("onRepeat")),f&&(!this._gc||d)&&(0>a&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(a,!0,d),e&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!b&&this.vars[f]&&this._callback(f),0===t&&this._rawPrevTime===g&&n!==g&&(this._rawPrevTime=0))},f.to=function(a,b,c){return new f(a,b,c)},f.from=function(a,b,c){return c.runBackwards=!0,c.immediateRender=0!=c.immediateRender,new f(a,b,c)},f.fromTo=function(a,b,c,d){return d.startAt=c,d.immediateRender=0!=d.immediateRender&&0!=c.immediateRender,new f(a,b,d)},f.staggerTo=f.allTo=function(a,b,g,h,k,m,n){h=h||0;var o,p,q,r,s=0,t=[],u=function(){g.onComplete&&g.onComplete.apply(g.onCompleteScope||this,arguments),k.apply(n||g.callbackScope||this,m||l)},v=g.cycle,w=g.startAt&&g.startAt.cycle;for(j(a)||("string"==typeof a&&(a=c.selector(a)||a),i(a)&&(a=d(a))),a=a||[],0>h&&(a=d(a),a.reverse(),h*=-1),o=a.length-1,q=0;o>=q;q++){p={};for(r in g)p[r]=g[r];if(v&&(e(p,a,q),null!=p.duration&&(b=p.duration,delete p.duration)),w){w=p.startAt={};for(r in g.startAt)w[r]=g.startAt[r];e(p.startAt,a,q)}p.delay=s+(p.delay||0),q===o&&k&&(p.onComplete=u),t[q]=new f(a[q],b,p),s+=h}return t},f.staggerFrom=f.allFrom=function(a,b,c,d,e,g,h){return c.runBackwards=!0,c.immediateRender=0!=c.immediateRender,f.staggerTo(a,b,c,d,e,g,h)},f.staggerFromTo=f.allFromTo=function(a,b,c,d,e,g,h,i){return d.startAt=c,d.immediateRender=0!=d.immediateRender&&0!=c.immediateRender,f.staggerTo(a,b,d,e,g,h,i)},f.delayedCall=function(a,b,c,d,e){return new f(b,0,{delay:a,onComplete:b,onCompleteParams:c,callbackScope:d,onReverseComplete:b,onReverseCompleteParams:c,immediateRender:!1,useFrames:e,overwrite:0})},f.set=function(a,b){return new f(a,0,b)},f.isTweening=function(a){return c.getTweensOf(a,!0).length>0};var m=function(a,b){for(var d=[],e=0,f=a._first;f;)f instanceof c?d[e++]=f:(b&&(d[e++]=f),d=d.concat(m(f,b)),e=d.length),f=f._next;return d},n=f.getAllTweens=function(b){return m(a._rootTimeline,b).concat(m(a._rootFramesTimeline,b))};f.killAll=function(a,c,d,e){null==c&&(c=!0),null==d&&(d=!0);var f,g,h,i=n(0!=e),j=i.length,k=c&&d&&e;for(h=0;j>h;h++)g=i[h],(k||g instanceof b||(f=g.target===g.vars.onComplete)&&d||c&&!f)&&(a?g.totalTime(g._reversed?0:g.totalDuration()):g._enabled(!1,!1))},f.killChildTweensOf=function(a,b){if(null!=a){var e,g,k,l,m,n=h.tweenLookup;if("string"==typeof a&&(a=c.selector(a)||a),i(a)&&(a=d(a)),j(a))for(l=a.length;--l>-1;)f.killChildTweensOf(a[l],b);else{e=[];for(k in n)for(g=n[k].target.parentNode;g;)g===a&&(e=e.concat(n[k].tweens)),g=g.parentNode;for(m=e.length,l=0;m>l;l++)b&&e[l].totalTime(e[l].totalDuration()),e[l]._enabled(!1,!1)}}};var o=function(a,c,d,e){c=c!==!1,d=d!==!1,e=e!==!1;for(var f,g,h=n(e),i=c&&d&&e,j=h.length;--j>-1;)g=h[j],(i||g instanceof b||(f=g.target===g.vars.onComplete)&&d||c&&!f)&&g.paused(a)};return f.pauseAll=function(a,b,c){o(!0,a,b,c)},f.resumeAll=function(a,b,c){o(!1,a,b,c)},f.globalTimeScale=function(b){var d=a._rootTimeline,e=c.ticker.time;return arguments.length?(b=b||g,d._startTime=e-(e-d._startTime)*d._timeScale/b,d=a._rootFramesTimeline,e=c.ticker.frame,d._startTime=e-(e-d._startTime)*d._timeScale/b,d._timeScale=a._rootTimeline._timeScale=b,b):d._timeScale},k.progress=function(a,b){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!==(1&this._cycle)?1-a:a)+this._cycle*(this._duration+this._repeatDelay),b):this._time/this.duration()},k.totalProgress=function(a,b){return arguments.length?this.totalTime(this.totalDuration()*a,b):this._totalTime/this.totalDuration()},k.time=function(a,b){return arguments.length?(this._dirty&&this.totalDuration(),a>this._duration&&(a=this._duration),this._yoyo&&0!==(1&this._cycle)?a=this._duration-a+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(a+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(a,b)):this._time},k.duration=function(b){return arguments.length?a.prototype.duration.call(this,b):this._duration},k.totalDuration=function(a){return arguments.length?-1===this._repeat?this:this.duration((a-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},k.repeat=function(a){return arguments.length?(this._repeat=a,this._uncache(!0)):this._repeat},k.repeatDelay=function(a){return arguments.length?(this._repeatDelay=a,this._uncache(!0)):this._repeatDelay},k.yoyo=function(a){return arguments.length?(this._yoyo=a,this):this._yoyo},f},!0),_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(a,b,c){var d=function(a){b.call(this,a),this._labels={},this.autoRemoveChildren=this.vars.autoRemoveChildren===!0,this.smoothChildTiming=this.vars.smoothChildTiming===!0,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var c,d,e=this.vars;for(d in e)c=e[d],i(c)&&-1!==c.join("").indexOf("{self}")&&(e[d]=this._swapSelfInParams(c));i(e.tweens)&&this.add(e.tweens,0,e.align,e.stagger)},e=1e-10,f=c._internals,g=d._internals={},h=f.isSelector,i=f.isArray,j=f.lazyTweens,k=f.lazyRender,l=_gsScope._gsDefine.globals,m=function(a){var b,c={};for(b in a)c[b]=a[b];return c},n=function(a,b,c){var d,e,f=a.cycle;for(d in f)e=f[d],a[d]="function"==typeof e?e(c,b[c]):e[c%e.length];delete a.cycle},o=g.pauseCallback=function(){},p=function(a){var b,c=[],d=a.length;for(b=0;b!==d;c.push(a[b++]));return c},q=d.prototype=new b;return d.version="2.0.1",q.constructor=d,q.kill()._gc=q._forcingPlayhead=q._hasPause=!1,q.to=function(a,b,d,e){var f=d.repeat&&l.TweenMax||c;return b?this.add(new f(a,b,d),e):this.set(a,d,e)},q.from=function(a,b,d,e){return this.add((d.repeat&&l.TweenMax||c).from(a,b,d),e)},q.fromTo=function(a,b,d,e,f){var g=e.repeat&&l.TweenMax||c;return b?this.add(g.fromTo(a,b,d,e),f):this.set(a,e,f)},q.staggerTo=function(a,b,e,f,g,i,j,k){var l,o,q=new d({onComplete:i,onCompleteParams:j,callbackScope:k,smoothChildTiming:this.smoothChildTiming}),r=e.cycle;for("string"==typeof a&&(a=c.selector(a)||a),a=a||[],h(a)&&(a=p(a)),f=f||0,0>f&&(a=p(a),a.reverse(),f*=-1),o=0;o<a.length;o++)l=m(e),l.startAt&&(l.startAt=m(l.startAt),l.startAt.cycle&&n(l.startAt,a,o)),r&&(n(l,a,o),null!=l.duration&&(b=l.duration,delete l.duration)),q.to(a[o],b,l,o*f);return this.add(q,g)},q.staggerFrom=function(a,b,c,d,e,f,g,h){return c.immediateRender=0!=c.immediateRender,c.runBackwards=!0,this.staggerTo(a,b,c,d,e,f,g,h)},q.staggerFromTo=function(a,b,c,d,e,f,g,h,i){return d.startAt=c,d.immediateRender=0!=d.immediateRender&&0!=c.immediateRender,this.staggerTo(a,b,d,e,f,g,h,i)},q.call=function(a,b,d,e){return this.add(c.delayedCall(0,a,b,d),e)},q.set=function(a,b,d){return d=this._parseTimeOrLabel(d,0,!0),null==b.immediateRender&&(b.immediateRender=d===this._time&&!this._paused),this.add(new c(a,0,b),d)},d.exportRoot=function(a,b){a=a||{},null==a.smoothChildTiming&&(a.smoothChildTiming=!0);var e,f,g,h,i=new d(a),j=i._timeline;for(null==b&&(b=!0),j._remove(i,!0),i._startTime=0,i._rawPrevTime=i._time=i._totalTime=j._time,g=j._first;g;)h=g._next,b&&g instanceof c&&g.target===g.vars.onComplete||(f=g._startTime-g._delay,0>f&&(e=1),i.add(g,f)),g=h;return j.add(i,0),e&&i.totalDuration(),i},q.add=function(e,f,g,h){var j,k,l,m,n,o;if("number"!=typeof f&&(f=this._parseTimeOrLabel(f,0,!0,e)),!(e instanceof a)){if(e instanceof Array||e&&e.push&&i(e)){for(g=g||"normal",h=h||0,j=f,k=e.length,l=0;k>l;l++)i(m=e[l])&&(m=new d({tweens:m})),this.add(m,j),"string"!=typeof m&&"function"!=typeof m&&("sequence"===g?j=m._startTime+m.totalDuration()/m._timeScale:"start"===g&&(m._startTime-=m.delay())),j+=h;return this._uncache(!0)}if("string"==typeof e)return this.addLabel(e,f);if("function"!=typeof e)throw"Cannot add "+e+" into the timeline; it is not a tween, timeline, function, or string.";e=c.delayedCall(0,e)}if(b.prototype.add.call(this,e,f),e._time&&e.render((this.rawTime()-e._startTime)*e._timeScale,!1,!1),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(n=this,o=n.rawTime()>e._startTime;n._timeline;)o&&n._timeline.smoothChildTiming?n.totalTime(n._totalTime,!0):n._gc&&n._enabled(!0,!1),n=n._timeline;return this},q.remove=function(b){if(b instanceof a){this._remove(b,!1);var c=b._timeline=b.vars.useFrames?a._rootFramesTimeline:a._rootTimeline;return b._startTime=(b._paused?b._pauseTime:c._time)-(b._reversed?b.totalDuration()-b._totalTime:b._totalTime)/b._timeScale,this}if(b instanceof Array||b&&b.push&&i(b)){for(var d=b.length;--d>-1;)this.remove(b[d]);return this}return"string"==typeof b?this.removeLabel(b):this.kill(null,b)},q._remove=function(a,c){b.prototype._remove.call(this,a,c);var d=this._last;return d?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},q.append=function(a,b){return this.add(a,this._parseTimeOrLabel(null,b,!0,a))},q.insert=q.insertMultiple=function(a,b,c,d){return this.add(a,b||0,c,d)},q.appendMultiple=function(a,b,c,d){return this.add(a,this._parseTimeOrLabel(null,b,!0,a),c,d)},q.addLabel=function(a,b){return this._labels[a]=this._parseTimeOrLabel(b),this},q.addPause=function(a,b,d,e){var f=c.delayedCall(0,o,d,e||this);return f.vars.onComplete=f.vars.onReverseComplete=b,f.data="isPause",this._hasPause=!0,this.add(f,a)},q.removeLabel=function(a){return delete this._labels[a],this},q.getLabelTime=function(a){return null!=this._labels[a]?this._labels[a]:-1},q._parseTimeOrLabel=function(b,c,d,e){var f,g;if(e instanceof a&&e.timeline===this)this.remove(e);else if(e&&(e instanceof Array||e.push&&i(e)))for(g=e.length;--g>-1;)e[g]instanceof a&&e[g].timeline===this&&this.remove(e[g]);if(f="number"!=typeof b||c?this.duration()>99999999999?this.recent().endTime(!1):this._duration:0,"string"==typeof c)return this._parseTimeOrLabel(c,d&&"number"==typeof b&&null==this._labels[c]?b-f:0,d);if(c=c||0,"string"!=typeof b||!isNaN(b)&&null==this._labels[b])null==b&&(b=f);else{if(g=b.indexOf("="),-1===g)return null==this._labels[b]?d?this._labels[b]=f+c:c:this._labels[b]+c;c=parseInt(b.charAt(g-1)+"1",10)*Number(b.substr(g+1)),b=g>1?this._parseTimeOrLabel(b.substr(0,g-1),0,d):f}return Number(b)+c},q.seek=function(a,b){return this.totalTime("number"==typeof a?a:this._parseTimeOrLabel(a),b!==!1)},q.stop=function(){return this.paused(!0)},q.gotoAndPlay=function(a,b){return this.play(a,b)},q.gotoAndStop=function(a,b){return this.pause(a,b)},q.render=function(a,b,c){this._gc&&this._enabled(!0,!1);var d,f,g,h,i,l,m,n=this._time,o=this._dirty?this.totalDuration():this._totalDuration,p=this._startTime,q=this._timeScale,r=this._paused;if(n!==this._time&&(a+=this._time-n),a>=o-1e-7&&a>=0)this._totalTime=this._time=o,this._reversed||this._hasPausedChild()||(f=!0,h="onComplete",i=!!this._timeline.autoRemoveChildren,0===this._duration&&(0>=a&&a>=-1e-7||this._rawPrevTime<0||this._rawPrevTime===e)&&this._rawPrevTime!==a&&this._first&&(i=!0,this._rawPrevTime>e&&(h="onReverseComplete"))),this._rawPrevTime=this._duration||!b||a||this._rawPrevTime===a?a:e,a=o+1e-4;else if(1e-7>a)if(this._totalTime=this._time=0,(0!==n||0===this._duration&&this._rawPrevTime!==e&&(this._rawPrevTime>0||0>a&&this._rawPrevTime>=0))&&(h="onReverseComplete",f=this._reversed),0>a)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(i=f=!0,h="onReverseComplete"):this._rawPrevTime>=0&&this._first&&(i=!0),this._rawPrevTime=a;else{if(this._rawPrevTime=this._duration||!b||a||this._rawPrevTime===a?a:e,0===a&&f)for(d=this._first;d&&0===d._startTime;)d._duration||(f=!1),d=d._next;a=0,this._initted||(i=!0)}else{if(this._hasPause&&!this._forcingPlayhead&&!b){if(a>=n)for(d=this._first;d&&d._startTime<=a&&!l;)d._duration||"isPause"!==d.data||d.ratio||0===d._startTime&&0===this._rawPrevTime||(l=d),d=d._next;else for(d=this._last;d&&d._startTime>=a&&!l;)d._duration||"isPause"===d.data&&d._rawPrevTime>0&&(l=d),d=d._prev;l&&(this._time=a=l._startTime,this._totalTime=a+this._cycle*(this._totalDuration+this._repeatDelay))}this._totalTime=this._time=this._rawPrevTime=a}if(this._time!==n&&this._first||c||i||l){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==n&&a>0&&(this._active=!0),0===n&&this.vars.onStart&&(0===this._time&&this._duration||b||this._callback("onStart")),m=this._time,m>=n)for(d=this._first;d&&(g=d._next,m===this._time&&(!this._paused||r));)(d._active||d._startTime<=m&&!d._paused&&!d._gc)&&(l===d&&this.pause(),d._reversed?d.render((d._dirty?d.totalDuration():d._totalDuration)-(a-d._startTime)*d._timeScale,b,c):d.render((a-d._startTime)*d._timeScale,b,c)),d=g;else for(d=this._last;d&&(g=d._prev,m===this._time&&(!this._paused||r));){if(d._active||d._startTime<=n&&!d._paused&&!d._gc){if(l===d){for(l=d._prev;l&&l.endTime()>this._time;)l.render(l._reversed?l.totalDuration()-(a-l._startTime)*l._timeScale:(a-l._startTime)*l._timeScale,b,c),l=l._prev;l=null,this.pause()}d._reversed?d.render((d._dirty?d.totalDuration():d._totalDuration)-(a-d._startTime)*d._timeScale,b,c):d.render((a-d._startTime)*d._timeScale,b,c)}d=g}this._onUpdate&&(b||(j.length&&k(),this._callback("onUpdate"))),h&&(this._gc||(p===this._startTime||q!==this._timeScale)&&(0===this._time||o>=this.totalDuration())&&(f&&(j.length&&k(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!b&&this.vars[h]&&this._callback(h)))}},q._hasPausedChild=function(){for(var a=this._first;a;){if(a._paused||a instanceof d&&a._hasPausedChild())return!0;a=a._next}return!1},q.getChildren=function(a,b,d,e){e=e||-9999999999;for(var f=[],g=this._first,h=0;g;)g._startTime<e||(g instanceof c?b!==!1&&(f[h++]=g):(d!==!1&&(f[h++]=g),a!==!1&&(f=f.concat(g.getChildren(!0,b,d)),h=f.length))),g=g._next;return f},q.getTweensOf=function(a,b){var d,e,f=this._gc,g=[],h=0;for(f&&this._enabled(!0,!0),d=c.getTweensOf(a),e=d.length;--e>-1;)(d[e].timeline===this||b&&this._contains(d[e]))&&(g[h++]=d[e]);return f&&this._enabled(!1,!0),g},q.recent=function(){return this._recent},q._contains=function(a){for(var b=a.timeline;b;){if(b===this)return!0;b=b.timeline}return!1},q.shiftChildren=function(a,b,c){c=c||0;for(var d,e=this._first,f=this._labels;e;)e._startTime>=c&&(e._startTime+=a),e=e._next;if(b)for(d in f)f[d]>=c&&(f[d]+=a);return this._uncache(!0)},q._kill=function(a,b){if(!a&&!b)return this._enabled(!1,!1);for(var c=b?this.getTweensOf(b):this.getChildren(!0,!0,!1),d=c.length,e=!1;--d>-1;)c[d]._kill(a,b)&&(e=!0);return e},q.clear=function(a){var b=this.getChildren(!1,!0,!0),c=b.length;for(this._time=this._totalTime=0;--c>-1;)b[c]._enabled(!1,!1);return a!==!1&&(this._labels={}),this._uncache(!0)},q.invalidate=function(){for(var b=this._first;b;)b.invalidate(),b=b._next;return a.prototype.invalidate.call(this)},q._enabled=function(a,c){if(a===this._gc)for(var d=this._first;d;)d._enabled(a,!0),d=d._next;return b.prototype._enabled.call(this,a,c)},q.totalTime=function(b,c,d){this._forcingPlayhead=!0;var e=a.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,e},q.duration=function(a){return arguments.length?(0!==this.duration()&&0!==a&&this.timeScale(this._duration/a),this):(this._dirty&&this.totalDuration(),this._duration)},q.totalDuration=function(a){if(!arguments.length){if(this._dirty){for(var b,c,d=0,e=this._last,f=999999999999;e;)b=e._prev,e._dirty&&e.totalDuration(),e._startTime>f&&this._sortChildren&&!e._paused&&!this._calculatingDuration?(this._calculatingDuration=1,this.add(e,e._startTime-e._delay),this._calculatingDuration=0):f=e._startTime,e._startTime<0&&!e._paused&&(d-=e._startTime,this._timeline.smoothChildTiming&&(this._startTime+=e._startTime/this._timeScale,this._time-=e._startTime,this._totalTime-=e._startTime,this._rawPrevTime-=e._startTime),this.shiftChildren(-e._startTime,!1,-9999999999),f=0),c=e._startTime+e._totalDuration/e._timeScale,c>d&&(d=c),e=b;this._duration=this._totalDuration=d,this._dirty=!1}return this._totalDuration}return a&&this.totalDuration()?this.timeScale(this._totalDuration/a):this},q.paused=function(b){if(!b)for(var c=this._first,d=this._time;c;)c._startTime===d&&"isPause"===c.data&&(c._rawPrevTime=0),c=c._next;return a.prototype.paused.apply(this,arguments)},q.usesFrames=function(){for(var b=this._timeline;b._timeline;)b=b._timeline;return b===a._rootFramesTimeline},q.rawTime=function(a){return a&&(this._paused||this._repeat&&this.time()>0&&this.totalProgress()<1)?this._totalTime%(this._duration+this._repeatDelay):this._paused?this._totalTime:(this._timeline.rawTime(a)-this._startTime)*this._timeScale},d},!0),_gsScope._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(a,b,c){var d=function(b){a.call(this,b),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=this.vars.yoyo===!0,this._dirty=!0},e=1e-10,f=b._internals,g=f.lazyTweens,h=f.lazyRender,i=_gsScope._gsDefine.globals,j=new c(null,null,1,0),k=d.prototype=new a;return k.constructor=d,k.kill()._gc=!1,d.version="2.0.1",k.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),a.prototype.invalidate.call(this)},k.addCallback=function(a,c,d,e){return this.add(b.delayedCall(0,a,d,e),
vendor: 7,345 bytes, line 1590
1590c)},k.removeCallback=function(a,b){if(a)if(null==b)this._kill(null,a);else for(var c=this.getTweensOf(a,!1),d=c.length,e=this._parseTimeOrLabel(b);--d>-1;)c[d]._startTime===e&&c[d]._enabled(!1,!1);return this},k.removePause=function(b){return this.removeCallback(a._internals.pauseCallback,b)},k.tweenTo=function(a,c){c=c||{};var d,e,f,g={ease:j,useFrames:this.usesFrames(),immediateRender:!1,lazy:!1},h=c.repeat&&i.TweenMax||b;for(e in c)g[e]=c[e];return g.time=this._parseTimeOrLabel(a),d=Math.abs(Number(g.time)-this._time)/this._timeScale||.001,f=new h(this,d,g),g.onStart=function(){f.target.paused(!0),f.vars.time===f.target.time()||d!==f.duration()||f.isFromTo||f.duration(Math.abs(f.vars.time-f.target.time())/f.target._timeScale).render(f.time(),!0,!0),c.onStart&&c.onStart.apply(c.onStartScope||c.callbackScope||f,c.onStartParams||[])},f},k.tweenFromTo=function(a,b,c){c=c||{},a=this._parseTimeOrLabel(a),c.startAt={onComplete:this.seek,onCompleteParams:[a],callbackScope:this},c.immediateRender=c.immediateRender!==!1;var d=this.tweenTo(b,c);return d.isFromTo=1,d.duration(Math.abs(d.vars.time-a)/this._timeScale||.001)},k.render=function(a,b,c){this._gc&&this._enabled(!0,!1);var d,f,i,j,k,l,m,n,o=this._time,p=this._dirty?this.totalDuration():this._totalDuration,q=this._duration,r=this._totalTime,s=this._startTime,t=this._timeScale,u=this._rawPrevTime,v=this._paused,w=this._cycle;if(o!==this._time&&(a+=this._time-o),a>=p-1e-7&&a>=0)this._locked||(this._totalTime=p,this._cycle=this._repeat),this._reversed||this._hasPausedChild()||(f=!0,j="onComplete",k=!!this._timeline.autoRemoveChildren,0===this._duration&&(0>=a&&a>=-1e-7||0>u||u===e)&&u!==a&&this._first&&(k=!0,u>e&&(j="onReverseComplete"))),this._rawPrevTime=this._duration||!b||a||this._rawPrevTime===a?a:e,this._yoyo&&0!==(1&this._cycle)?this._time=a=0:(this._time=q,a=q+1e-4);else if(1e-7>a)if(this._locked||(this._totalTime=this._cycle=0),this._time=0,(0!==o||0===q&&u!==e&&(u>0||0>a&&u>=0)&&!this._locked)&&(j="onReverseComplete",f=this._reversed),0>a)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(k=f=!0,j="onReverseComplete"):u>=0&&this._first&&(k=!0),this._rawPrevTime=a;else{if(this._rawPrevTime=q||!b||a||this._rawPrevTime===a?a:e,0===a&&f)for(d=this._first;d&&0===d._startTime;)d._duration||(f=!1),d=d._next;a=0,this._initted||(k=!0)}else if(0===q&&0>u&&(k=!0),this._time=this._rawPrevTime=a,this._locked||(this._totalTime=a,0!==this._repeat&&(l=q+this._repeatDelay,this._cycle=this._totalTime/l>>0,0!==this._cycle&&this._cycle===this._totalTime/l&&a>=r&&this._cycle--,this._time=this._totalTime-this._cycle*l,this._yoyo&&0!==(1&this._cycle)&&(this._time=q-this._time),this._time>q?(this._time=q,a=q+1e-4):this._time<0?this._time=a=0:a=this._time)),this._hasPause&&!this._forcingPlayhead&&!b){if(a=this._time,a>=o||this._repeat&&w!==this._cycle)for(d=this._first;d&&d._startTime<=a&&!m;)d._duration||"isPause"!==d.data||d.ratio||0===d._startTime&&0===this._rawPrevTime||(m=d),d=d._next;else for(d=this._last;d&&d._startTime>=a&&!m;)d._duration||"isPause"===d.data&&d._rawPrevTime>0&&(m=d),d=d._prev;m&&m._startTime<q&&(this._time=a=m._startTime,this._totalTime=a+this._cycle*(this._totalDuration+this._repeatDelay))}if(this._cycle!==w&&!this._locked){var x=this._yoyo&&0!==(1&w),y=x===(this._yoyo&&0!==(1&this._cycle)),z=this._totalTime,A=this._cycle,B=this._rawPrevTime,C=this._time;if(this._totalTime=w*q,this._cycle<w?x=!x:this._totalTime+=q,this._time=o,this._rawPrevTime=0===q?u-1e-4:u,this._cycle=w,this._locked=!0,o=x?0:q,this.render(o,b,0===q),b||this._gc||this.vars.onRepeat&&(this._cycle=A,this._locked=!1,this._callback("onRepeat")),o!==this._time)return;if(y&&(this._cycle=w,this._locked=!0,o=x?q+1e-4:-1e-4,this.render(o,!0,!1)),this._locked=!1,this._paused&&!v)return;this._time=C,this._totalTime=z,this._cycle=A,this._rawPrevTime=B}if(!(this._time!==o&&this._first||c||k||m))return void(r!==this._totalTime&&this._onUpdate&&(b||this._callback("onUpdate")));if(this._initted||(this._initted=!0),this._active||!this._paused&&this._totalTime!==r&&a>0&&(this._active=!0),0===r&&this.vars.onStart&&(0===this._totalTime&&this._totalDuration||b||this._callback("onStart")),n=this._time,n>=o)for(d=this._first;d&&(i=d._next,n===this._time&&(!this._paused||v));)(d._active||d._startTime<=this._time&&!d._paused&&!d._gc)&&(m===d&&this.pause(),d._reversed?d.render((d._dirty?d.totalDuration():d._totalDuration)-(a-d._startTime)*d._timeScale,b,c):d.render((a-d._startTime)*d._timeScale,b,c)),d=i;else for(d=this._last;d&&(i=d._prev,n===this._time&&(!this._paused||v));){if(d._active||d._startTime<=o&&!d._paused&&!d._gc){if(m===d){for(m=d._prev;m&&m.endTime()>this._time;)m.render(m._reversed?m.totalDuration()-(a-m._startTime)*m._timeScale:(a-m._startTime)*m._timeScale,b,c),m=m._prev;m=null,this.pause()}d._reversed?d.render((d._dirty?d.totalDuration():d._totalDuration)-(a-d._startTime)*d._timeScale,b,c):d.render((a-d._startTime)*d._timeScale,b,c)}d=i}this._onUpdate&&(b||(g.length&&h(),this._callback("onUpdate"))),j&&(this._locked||this._gc||(s===this._startTime||t!==this._timeScale)&&(0===this._time||p>=this.totalDuration())&&(f&&(g.length&&h(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!b&&this.vars[j]&&this._callback(j)))},k.getActive=function(a,b,c){null==a&&(a=!0),null==b&&(b=!0),null==c&&(c=!1);var d,e,f=[],g=this.getChildren(a,b,c),h=0,i=g.length;for(d=0;i>d;d++)e=g[d],e.isActive()&&(f[h++]=e);return f},k.getLabelAfter=function(a){a||0!==a&&(a=this._time);var b,c=this.getLabelsArray(),d=c.length;for(b=0;d>b;b++)if(c[b].time>a)return c[b].name;return null},k.getLabelBefore=function(a){null==a&&(a=this._time);for(var b=this.getLabelsArray(),c=b.length;--c>-1;)if(b[c].time<a)return b[c].name;return null},k.getLabelsArray=function(){var a,b=[],c=0;for(a in this._labels)b[c++]={time:this._labels[a],name:a};return b.sort(function(a,b){return a.time-b.time}),b},k.invalidate=function(){return this._locked=!1,a.prototype.invalidate.call(this)},k.progress=function(a,b){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!==(1&this._cycle)?1-a:a)+this._cycle*(this._duration+this._repeatDelay),b):this._time/this.duration()||0},k.totalProgress=function(a,b){return arguments.length?this.totalTime(this.totalDuration()*a,b):this._totalTime/this.totalDuration()||0},k.totalDuration=function(b){return arguments.length?-1!==this._repeat&&b?this.timeScale(this.totalDuration()/b):this:(this._dirty&&(a.prototype.totalDuration.call(this),this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},k.time=function(a,b){return arguments.length?(this._dirty&&this.totalDuration(),a>this._duration&&(a=this._duration),this._yoyo&&0!==(1&this._cycle)?a=this._duration-a+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(a+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(a,b)):this._time},k.repeat=function(a){return arguments.length?(this._repeat=a,this._uncache(!0)):this._repeat},k.repeatDelay=function(a){return arguments.length?(this._repeatDelay=a,this._uncache(!0)):this._repeatDelay},k.yoyo=function(a){return arguments.length?(this._yoyo=a,this):this._yoyo},k.currentLabel=function(a){return arguments.length?this.seek(a,!0):this.getLabelBefore(this._time+1e-8
vendor: 3,486 bytes, lines 1590-1591
1590)},d},!0),function(){var a=180/Math.PI,b=[],c=[],d=[],e={},f=_gsScope._gsDefine.globals,g=function(a,b,c,d){c===d&&(c=d-(d-b)/1e6),a===b&&(b=a+(c-a)/1e6),this.a=a,this.b=b,this.c=c,this.d=d,this.da=d-a,this.ca=c-a,this.ba=b-a},h=",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",i=function(a,b,c,d){var e={a:a},f={},g={},h={c:d},i=(a+b)/2,j=(b+c)/2,k=(c+d)/2,l=(i+j)/2,m=(j+k)/2,n=(m-l)/8;return e.b=i+(a-i)/4,f.b=l+n,e.c=f.a=(e.b+f.b)/2,f.c=g.a=(l+m)/2,g.b=m-n,h.b=k+(d-k)/4,g.c=h.a=(g.b+h.b)/2,[e,f,g,h]},j=function(a,e,f,g,h){var j,k,l,m,n,o,p,q,r,s,t,u,v,w=a.length-1,x=0,y=a[0].a;for(j=0;w>j;j++)n=a[x],k=n.a,l=n.d,m=a[x+1].d,h?(t=b[j],u=c[j],v=(u+t)*e*.25/(g?.5:d[j]||.5),o=l-(l-k)*(g?.5*e:0!==t?v/t:0),p=l+(m-l)*(g?.5*e:0!==u?v/u:0),q=l-(o+((p-o)*(3*t/(t+u)+.5)/4||0))):(o=l-(l-k)*e*.5,p=l+(m-l)*e*.5,q=l-(o+p)/2),o+=q,p+=q,n.c=r=o,0!==j?n.b=y:n.b=y=n.a+.6*(n.c-n.a),n.da=l-k,n.ca=r-k,n.ba=y-k,f?(s=i(k,y,r,l),a.splice(x,1,s[0],s[1],s[2],s[3]),x+=4):x++,y=p;n=a[x],n.b=y,n.c=y+.4*(n.d-y),n.da=n.d-n.a,n.ca=n.c-n.a,n.ba=y-n.a,f&&(s=i(n.a,y,n.c,n.d),a.splice(x,1,s[0],s[1],s[2],s[3]))},k=function(a,d,e,f){var h,i,j,k,l,m,n=[];if(f)for(a=[f].concat(a),i=a.length;--i>-1;)"string"==typeof(m=a[i][d])&&"="===m.charAt(1)&&(a[i][d]=f[d]+Number(m.charAt(0)+m.substr(2)));if(h=a.length-2,0>h)return n[0]=new g(a[0][d],0,0,a[0][d]),n;for(i=0;h>i;i++)j=a[i][d],k=a[i+1][d],n[i]=new g(j,0,0,k),e&&(l=a[i+2][d],b[i]=(b[i]||0)+(k-j)*(k-j),c[i]=(c[i]||0)+(l-k)*(l-k));return n[i]=new g(a[i][d],0,0,a[i+1][d]),n},l=function(a,f,g,i,l,m){var n,o,p,q,r,s,t,u,v={},w=[],x=m||a[0];l="string"==typeof l?","+l+",":h,null==f&&(f=1);for(o in a[0])w.push(o);if(a.length>1){for(u=a[a.length-1],t=!0,n=w.length;--n>-1;)if(o=w[n],Math.abs(x[o]-u[o])>.05){t=!1;break}t&&(a=a.concat(),m&&a.unshift(m),a.push(a[1]),m=a[a.length-3])}for(b.length=c.length=d.length=0,n=w.length;--n>-1;)o=w[n],e[o]=-1!==l.indexOf(","+o+","),v[o]=k(a,o,e[o],m);for(n=b.length;--n>-1;)b[n]=Math.sqrt(b[n]),c[n]=Math.sqrt(c[n]);if(!i){for(n=w.length;--n>-1;)if(e[o])for(p=v[w[n]], 1591s=p.length-1,q=0;s>q;q++)r=p[q+1].da/c[q]+p[q].da/b[q]||0,d[q]=(d[q]||0)+r*r;for(n=d.length;--n>-1;)d[n]=Math.sqrt(d[n])}for(n=w.length,q=g?4:1;--n>-1;)o=w[n],p=v[o],j(p,f,g,i,e[o]),t&&(p.splice(0,q),p.splice(p.length-q,q));return v},m=function(a,b,c){b=b||"soft";var d,e,f,h,i,j,k,l,m,n,o,p={},q="cubic"===b?3:2,r="soft"===b,s=[];if(r&&c&&(a=[c].concat(a)),null==a||a.length<q+1)throw"invalid Bezier data";for(m in a[0])s.push(m);for(j=s.length;--j>-1;){for(m=s[j],p[m]=i=[],n=0,l=a.length,k=0;l>k;k++)d=null==c?a[k][m]:"string"==typeof(o=a[k][m])&&"="===o.charAt(1)?c[m]+Number(o.charAt(0)+o.substr(2)):Number(o),r&&k>1&&l-1>k&&(i[n++]=(d+i[n-2])/2),i[n++]=d;for(l=n-q+1,n=0,k=0;l>k;k+=q)d=i[k],e=i[k+1],f=i[k+2],h=2===q?0:i[k+3],i[n++]=o=3===q?new g(d,e,f,h):new g(d,(2*e+d)/3,(2*e+f)/3,f);i.length=n}return p},n=function(a,b,c){for(var d,e,f,g,h,i,j,k,l,m,n,o=1/c,p=a.length;--p>-1;)for(m=a[p],f=m.a,g=m.d-f,h=m.c-f,i=m.b-f,d=e=0,k=1;c>=k;k++)j=o*k,l=1-j,d=e-(e=(j*j*g+3*l*(j*h+l*i))*j),n=p*c+k-1,b[n]=(b[n]||0)+d*d},o=function(a,b){b=b>>0||6;var c,d,e,f,g=[],h=[],i=0,j=0,k=b-1,l=[],m=[];for(c in a)n(a[c],g,b);for(e=g.length,d=0;e>d;d++)i+=Math.sqrt(g[d]),f=d%b,m[f]=i,f===k&&(j+=i,f=d/b>>0,l[f]=m,h[f]=j,i=0,m=[]);return{length:j,lengths:h,segments:l}},p=_gsScope._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.
15918",API:2,global:!0,init:function(a,b,c){this._target=a,b instanceof Array&&(b={values:b}),this._func={},this._mod={},this._props=[],this._timeRes=null==b.timeResolution?6:parseInt(b.timeResolution,10);var d,e,f,g,h,i=b.values||[],j={},k=i[0],n=b.autoRotate||c.vars.orientToBezier;this._autoRotate=n?n instanceof Array?n:[["x","y","rotation",n===!0?0:Number(n)||0]]:null;for(d in k)this._props.push(d);for(f=this._props.length;--f>-1;)d=this._props[f],this._overwriteProps.push(d),e=this._func[d]="function"==typeof a[d],j[d]=e?a[d.indexOf("set")||"function"!=typeof a["get"+d.substr(3)]?d:"get"+d.substr(3)]():parseFloat(a[d]),h||j[d]!==i[0][d]&&(h=j);if(this._beziers="cubic"!==b.type&&"quadratic"!==b.type&&"soft"!==b.type?l(i,isNaN(b.curviness)?1:b.curviness,!1,"thruBasic"===b.type,b.correlate,h):m(i,b.type,j),this._segCount=this._beziers[d].length,this._timeRes){var p=o(this._beziers,this._timeRes);this._length=p.length,this._lengths=p.lengths,this._segments=p.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length}if(n=this._autoRotate)for(this._initialRotations=[],n[0]instanceof Array||(this._autoRotate=n=[n]),f=n.length;--f>-1;){for(g=0;3>g;g++)d=n[f][g],this._func[d]="function"==typeof a[d]?a[d.indexOf("set")||"function"!=typeof a["get"+d.substr(3)]?d:"get"+d.substr(3)]:!1;d=n[f][2],this._initialRotations[f]=(this._func[d]?this._func[d].call(this._target):this._target[d])||0,this._overwriteProps.push(d)}return this._startRatio=c.vars.runBackwards?1:0,!0},set:function(b){var c,d,e,f,g,h,i,j,k,l,m=this._segCount,n=this._func,o=this._target,p=b!==this._startRatio;if(this._timeRes){if(k=this._lengths,l=this._curSeg,b*=this._length,e=this._li,b>this._l2&&m-1>e){for(j=m-1;j>e&&(this._l2=k[++e])<=b;);this._l1=k[e-1],this._li=e,this._curSeg=l=this._segments[e],this._s2=l[this._s1=this._si=0]}else if(b<this._l1&&e>0){for(;e>0&&(this._l1=k[--e])>=b;);0===e&&b<this._l1?this._l1=0:e++,this._l2=k[e],this._li=e,this._curSeg=l=this._segments[e],this._s1=l[(this._si=l.length-1)-1]||0,this._s2=l[this._si]}if(c=e,b-=this._l1,e=this._si,b>this._s2&&e<l.length-1){for(j=l.length-1;j>e&&(this._s2=l[++e])<=b;);this._s1=l[e-1],this._si=e}else if(b<this._s1&&e>0){for(;e>0&&(this._s1=l[--e])>=b;);0===e&&b<this._s1?this._s1=0:e++,this._s2=l[e],this._si=e}h=(e+(b-this._s1)/(this._s2-this._s1))*this._prec||0}else c=0>b?0:b>=1?m-1:m*b>>0,h=(b-c*(1/m))*m;for(d=1-h,e=this._props.length;--e>-1;)f=this._props[e],g=this._beziers[f][c],i=(h*h*g.da+3*d*(h*g.ca+d*g.ba))*h+g.a,this._mod[f]&&(i=this._mod[f](i,o)),n[f]?o[f](i):o[f]=i;if(this._autoRotate){var q,r,s,t,u,v,w,x=this._autoRotate;for(e=x.length;--e>-1;)f=x[e][2],v=x[e][3]||0,w=x[e][4]===!0?1:a,g=this._beziers[x[e][0]],q=this._beziers[x[e][1]],g&&q&&(g=g[c],q=q[c],r=g.a+(g.b-g.a)*h,t=g.b+(g.c-g.b)*h,r+=(t-r)*h,t+=(g.c+(g.d-g.c)*h-t)*h,s=q.a+(q.b-q.a)*h,u=q.b+(q.c-q.b)*h,s+=(u-s)*h,u+=(q.c+(q.d-q.c)*h-u)*h,i=p?Math.atan2(u-s,t-r)*w+v:this._initialRotations[e],this._mod[f]&&(i=this._mod[f](i,o)),n[f]?o[f](i):o[f]=i)}}}),q=p.prototype;p.bezierThrough=l,p.cubicToQuadratic=i,p._autoCSS=!0,p.quadraticToCubic=function(a,b,c){return new g(a,(2*b+a)/3,(2*b+c)/3,c)},p._cssRegister=function(){var a=f.CSSPlugin;if(a){var b=a._internals,c=b._parseToProxy,d=b._setPluginRatio,e=b.CSSPropTween;b._registerComplexSpecialProp("bezier",{parser:function(a,b,f,g,h,i){b instanceof Array&&(b={values:b}),i=new p;var j,k,l,m=b.values,n=m.length-1,o=[],q={};if(0>n)return h;for(j=0;n>=j;j++)l=c(a,m[j],g,h,i,n!==j),o[j]=l.end;for(k in b)q[k]=b[k];return q.values=o,h=new e(a,"bezier",0,0,l.pt,2),h.data=l,h.plugin=i,h.setRatio=d,0===q.autoRotate&&(q.autoRotate=!0),!q.autoRotate||q.autoRotate instanceof Array||(j=q.autoRotate===!0?0:Number(q.autoRotate),q.autoRotate=null!=l.end.left?[["left","top","rotation",j,!1]]:null!=l.end.x?[["x","y","rotation",j,!1]]:!1),q.autoRotate&&(g._transform||g._enableTransforms(!1),l.autoRotate=g._target._gsTransform,l.proxy.rotation=l.autoRotate.rotation||0,g._overwriteProps.push("rotation")),i._onInitTween(l.proxy,q,g._tween),h}})}},q._mod=function(a){for(var b,c=this._overwriteProps,d=c.length;--d>-1;)b=a[c[d]],b&&"function"==typeof b&&(this._mod[c[d]]=b)},q._kill=function(a){var b,c,d=this._props;for(b in this._beziers)if(b in a)for(delete this._beziers[b],delete this._func[b],c=d.length;--c>-1;)d[c]===b&&d.splice(c,1);if(d=this._autoRotate)for(c=d.length;--c>-1;)a[d[c][2]]&&d.splice(c,1);return this._super._kill.call(this,a)}}(),_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(a,b){var c,d,e,f,g=function(){a.call(this,"css"),this._overwriteProps.length=0,this.setRatio=g.prototype.setRatio},h=_gsScope._gsDefine.globals,i={},j=g.prototype=new a("css");j.constructor=g,g.version="1.20.5",g.API=2,g.defaultTransformPerspective=0,g.defaultSkewType="compensated",g.defaultSmoothOrigin=!0,j="px",g.suffixMap={top:j,right:j,bottom:j,left:j,width:j,height:j,fontSize:j,padding:j,margin:j,perspective:j,lineHeight:""};var k,l,m,n,o,p,q,r,s=/(?:\-|\.|\b)(\d|\.|e\-)+/g,t=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,u=/(?:\+=|\
vendor: 7,643 bytes, line 1591
1591-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,v=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,w=/(?:\d|\-|\+|=|#|\.)*/g,x=/opacity *= *([^)]*)/i,y=/opacity:([^;]*)/i,z=/alpha\(opacity *=.+?\)/i,A=/^(rgb|hsl)/,B=/([A-Z])/g,C=/-([a-z])/gi,D=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,E=function(a,b){return b.toUpperCase()},F=/(?:Left|Right|Width)/i,G=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,H=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,I=/,(?=[^\)]*(?:\(|$))/gi,J=/[\s,\(]/i,K=Math.PI/180,L=180/Math.PI,M={},N={style:{}},O=_gsScope.document||{createElement:function(){return N}},P=function(a,b){return O.createElementNS?O.createElementNS(b||"http://www.w3.org/1999/xhtml",a):O.createElement(a)},Q=P("div"),R=P("img"),S=g._internals={_specialProps:i},T=(_gsScope.navigator||{}).userAgent||"",U=function(){var a=T.indexOf("Android"),b=P("a");return m=-1!==T.indexOf("Safari")&&-1===T.indexOf("Chrome")&&(-1===a||parseFloat(T.substr(a+8,2))>3),o=m&&parseFloat(T.substr(T.indexOf("Version/")+8,2))<6,n=-1!==T.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(T)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(T))&&(p=parseFloat(RegExp.$1)),b?(b.style.cssText="top:1px;opacity:.55;",/^0.55/.test(b.style.opacity)):!1}(),V=function(a){return x.test("string"==typeof a?a:(a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100:1},W=function(a){_gsScope.console&&console.log(a)},X="",Y="",Z=function(a,b){b=b||Q;var c,d,e=b.style;if(void 0!==e[a])return a;for(a=a.charAt(0).toUpperCase()+a.substr(1),c=["O","Moz","ms","Ms","Webkit"],d=5;--d>-1&&void 0===e[c[d]+a];);return d>=0?(Y=3===d?"ms":c[d],X="-"+Y.toLowerCase()+"-",Y+a):null},$=("undefined"!=typeof window?window:O.defaultView||{getComputedStyle:function(){}}).getComputedStyle,_=g.getStyle=function(a,b,c,d,e){var f;return U||"opacity"!==b?(!d&&a.style[b]?f=a.style[b]:(c=c||$(a))?f=c[b]||c.getPropertyValue(b)||c.getPropertyValue(b.replace(B,"-$1").toLowerCase()):a.currentStyle&&(f=a.currentStyle[b]),null==e||f&&"none"!==f&&"auto"!==f&&"auto auto"!==f?f:e):V(a)},aa=S.convertToPixels=function(a,c,d,e,f){if("px"===e||!e&&"lineHeight"!==c)return d;if("auto"===e||!d)return 0;var h,i,j,k=F.test(c),l=a,m=Q.style,n=0>d,o=1===d;if(n&&(d=-d),o&&(d*=100),"lineHeight"!==c||e)if("%"===e&&-1!==c.indexOf("border"))h=d/100*(k?a.clientWidth:a.clientHeight);else{if(m.cssText="border:0 solid red;position:"+_(a,"position")+";line-height:0;","%"!==e&&l.appendChild&&"v"!==e.charAt(0)&&"rem"!==e)m[k?"borderLeftWidth":"borderTopWidth"]=d+e;else{if(l=a.parentNode||O.body,-1!==_(l,"display").indexOf("flex")&&(m.position="absolute"),i=l._gsCache,j=b.ticker.frame,i&&k&&i.time===j)return i.width*d/100;m[k?"width":"height"]=d+e}l.appendChild(Q),h=parseFloat(Q[k?"offsetWidth":"offsetHeight"]),l.removeChild(Q),k&&"%"===e&&g.cacheWidths!==!1&&(i=l._gsCache=l._gsCache||{},i.time=j,i.width=h/d*100),0!==h||f||(h=aa(a,c,d,e,!0))}else i=$(a).lineHeight,a.style.lineHeight=d,h=parseFloat($(a).lineHeight),a.style.lineHeight=i;return o&&(h/=100),n?-h:h},ba=S.calculateOffset=function(a,b,c){if("absolute"!==_(a,"position",c))return 0;var d="left"===b?"Left":"Top",e=_(a,"margin"+d,c);return a["offset"+d]-(aa(a,b,parseFloat(e),e.replace(w,""))||0)},ca=function(a,b){var c,d,e,f={};if(b=b||$(a,null))if(c=b.length)for(;--c>-1;)e=b[c],(-1===e.indexOf("-transform")||Da===e)&&(f[e.replace(C,E)]=b.getPropertyValue(e));else for(c in b)(-1===c.indexOf("Transform")||Ca===c)&&(f[c]=b[c]);else if(b=a.currentStyle||a.style)for(c in b)"string"==typeof c&&void 0===f[c]&&(f[c.replace(C,E)]=b[c]);return U||(f.opacity=V(a)),d=Ra(a,b,!1),f.rotation=d.rotation,f.skewX=d.skewX,f.scaleX=d.scaleX,f.scaleY=d.scaleY,f.x=d.x,f.y=d.y,Fa&&(f.z=d.z,f.rotationX=d.rotationX,f.rotationY=d.rotationY,f.scaleZ=d.scaleZ),f.filters&&delete f.filters,f},da=function(a,b,c,d,e){var f,g,h,i={},j=a.style;for(g in c)"cssText"!==g&&"length"!==g&&isNaN(g)&&(b[g]!==(f=c[g])||e&&e[g])&&-1===g.indexOf("Origin")&&("number"==typeof f||"string"==typeof f)&&(i[g]="auto"!==f||"left"!==g&&"top"!==g?""!==f&&"auto"!==f&&"none"!==f||"string"!=typeof b[g]||""===b[g].replace(v,"")?f:0:ba(a,g),void 0!==j[g]&&(h=new sa(j,g,j[g],h)));if(d)for(g in d)"className"!==g&&(i[g]=d[g]);return{difs:i,firstMPT:h}},ea={width:["Left","Right"],height:["Top","Bottom"]},fa=["marginLeft","marginRight","marginTop","marginBottom"],ga=function(a,b,c){if("svg"===(a.nodeName+"").toLowerCase())return(c||$(a))[b]||0;if(a.getCTM&&Oa(a))return a.getBBox()[b]||0;var d=parseFloat("width"===b?a.offsetWidth:a.offsetHeight),e=ea[b],f=e.length;for(c=c||$(a,null);--f>-1;)d-=parseFloat(_(a,"padding"+e[f],c,!0))||0,d-=parseFloat(_(a,"border"+e[f]+"Width",c,!0))||0;return d},ha=function(a,b){if("contain"===a||"auto"===a||"auto auto"===a)return a+" ";(null==a||""===a)&&(a="0 0");var c,d=a.split(" "),e=-1!==a.indexOf("left")?"0%":-1!==a.indexOf("right")?"100%":d[0],f=-1!==a.indexOf("top")?"0%":-1!==a.indexOf("bottom")?"100%":d[1];if(d.length>3&&!b){for(d=a.split(", ").join(",").split(","),a=[],c=0;c<d.length;c++)a.push(ha(d[c]));return a.join(",")}return null==f?f="center"===e?"50%":"0":"center"===f&&(f="50%"),("center"===e||isNaN(parseFloat(e))&&-1===(e+"").indexOf("="))&&(e="50%"),a=e+" "+f+(d.length>2?" "+d[2]:""),b&&(b.oxp=-1!==e.indexOf("%"),b.oyp=-1!==f.indexOf("%"),b.oxr="="===e.charAt(1),b.oyr="="===f.charAt(1),b.ox=parseFloat(e.replace(v,"")),b.oy=parseFloat(f.replace(v,"")),b.v=a),b||a},ia=function(a,b){return"function"==typeof a&&(a=a(r,q)),"string"==typeof a&&"="===a.charAt(1)?parseInt(a.charAt(0)+"1",10)*parseFloat(a.substr(2)):parseFloat(a)-parseFloat(b)||0},ja=function(a,b){return"function"==typeof a&&(a=a(r,q)),null==a?b:"string"==typeof a&&"="===a.charAt(1)?parseInt(a.charAt(0)+"1",10)*parseFloat(a.substr(2))+b:parseFloat(a)||0},ka=function(a,b,c,d){var e,f,g,h,i,j=1e-6;return"function"==typeof a&&(a=a(r,q)),null==a?h=b:"number"==typeof a?h=a:(e=360,f=a.split("_"),i="="===a.charAt(1),g=(i?parseInt(a.charAt(0)+"1",10)*parseFloat(f[0].substr(2)):parseFloat(f[0]))*(-1===a.indexOf("rad")?1:L)-(i?0:b),f.length&&(d&&(d[c]=b+g),-1!==a.indexOf("short")&&(g%=e,g!==g%(e/2)&&(g=0>g?g+e:g-e)),-1!==a.indexOf("_cw")&&0>g?g=(g+9999999999*e)%e-(g/e|0)*e:-1!==a.indexOf("ccw")&&g>0&&(g=(g-9999999999*e)%e-(g/e|0)*e)),h=b+g),j>h&&h>-j&&(h=0),h},la={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},ma=function(a,b,c){return a=0>a?a+1:a>1?a-1:a,255*(1>6*a?b+(c-b)*a*6:.5>a?c:2>3*a?b+(c-b)*(2/3-a)*6:b)+.5|0},na=g.parseColor=function(a,b){var c,d,e,f,g,h,i,j,k,l,m;if(a)if("number"==typeof a)c=[a>>16,a>>8&255,255&a];else{if(","===a.charAt(a.length-1)&&(a=a.substr(0,a.length-1)),la[a])c=la[a];else if("#"===a.charAt(0))4===a.length&&(d=a.charAt(1),e=a.charAt(2),f=a.charAt(3),a="#"+d+d+e+e+f+f),a=parseInt(a.substr(1),16),c=[a>>16,a>>8&255,255&a];else if("hsl"===a.substr(0,3))if(c=m=a.match(s),b){if(-1!==a.indexOf("="))return a.match(t)}else g=Number(c[0])%360/360,h=Number(c[1])/100,i=Number(c[2])/100,e=.5>=i?i*(h+1):i+h-i*h,d=2*i-e,c.length>3&&(c[3]=Number(c[3])),c[0]=ma(g+1/3,d,e),c[1]=ma(g,d,e),c[2]=ma(g-1/3,d,e);else c=a.match(s)||la.transparent;c[0]=Number(c[0]),c[1]=Number(c[1]),c[2]=Number(c[2]),c.length>3&&(c[3]=Number(c[3]))}else c=la.black;return b&&!m&&(d=c[0]/255,e=c[1]/255,f=c[2]/255,j=Math.max(d,e,f),k=Math.min(d,e,f),i=(j+k)/2,j===k?g=h=0:(l=j-k,h=i>.5?l/(2-j-k):l/(j+k),g=j===d?(e-f)/l+(f>
vendor: 4,978 bytes, line 1591
1591e?6:0):j===e?(f-d)/l+2:(d-e)/l+4,g*=60),c[0]=g+.5|0,c[1]=100*h+.5|0,c[2]=100*i+.5|0),c},oa=function(a,b){var c,d,e,f=a.match(pa)||[],g=0,h="";if(!f.length)return a;for(c=0;c<f.length;c++)d=f[c],e=a.substr(g,a.indexOf(d,g)-g),g+=e.length+d.length,d=na(d,b),3===d.length&&d.push(1),h+=e+(b?"hsla("+d[0]+","+d[1]+"%,"+d[2]+"%,"+d[3]:"rgba("+d.join(","))+")";return h+a.substr(g)},pa="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(j in la)pa+="|"+j+"\\b";pa=new RegExp(pa+")","gi"),g.colorStringFilter=function(a){var b,c=a[0]+" "+a[1];pa.test(c)&&(b=-1!==c.indexOf("hsl(")||-1!==c.indexOf("hsla("),a[0]=oa(a[0],b),a[1]=oa(a[1],b)),pa.lastIndex=0},b.defaultStringFilter||(b.defaultStringFilter=g.colorStringFilter);var qa=function(a,b,c,d){if(null==a)return function(a){return a};var e,f=b?(a.match(pa)||[""])[0]:"",g=a.split(f).join("").match(u)||[],h=a.substr(0,a.indexOf(g[0])),i=")"===a.charAt(a.length-1)?")":"",j=-1!==a.indexOf(" ")?" ":",",k=g.length,l=k>0?g[0].replace(s,""):"";return k?e=b?function(a){var b,m,n,o;if("number"==typeof a)a+=l;else if(d&&I.test(a)){for(o=a.replace(I,"|").split("|"),n=0;n<o.length;n++)o[n]=e(o[n]);return o.join(",")}if(b=(a.match(pa)||[f])[0],m=a.split(b).join("").match(u)||[],n=m.length,k>n--)for(;++n<k;)m[n]=c?m[(n-1)/2|0]:g[n];return h+m.join(j)+j+b+i+(-1!==a.indexOf("inset")?" inset":"")}:function(a){var b,f,m;if("number"==typeof a)a+=l;else if(d&&I.test(a)){for(f=a.replace(I,"|").split("|"),m=0;m<f.length;m++)f[m]=e(f[m]);return f.join(",")}if(b=a.match(u)||[],m=b.length,k>m--)for(;++m<k;)b[m]=c?b[(m-1)/2|0]:g[m];return h+b.join(j)+i}:function(a){return a}},ra=function(a){return a=a.split(","),function(b,c,d,e,f,g,h){var i,j=(c+"").split(" ");for(h={},i=0;4>i;i++)h[a[i]]=j[i]=j[i]||j[(i-1)/2>>0];return e.parse(b,h,f,g)}},sa=(S._setPluginRatio=function(a){this.plugin.setRatio(a);for(var b,c,d,e,f,g=this.data,h=g.proxy,i=g.firstMPT,j=1e-6;i;)b=h[i.v],i.r?b=i.r(b):j>b&&b>-j&&(b=0),i.t[i.p]=b,i=i._next;if(g.autoRotate&&(g.autoRotate.rotation=g.mod?g.mod.call(this._tween,h.rotation,this.t,this._tween):h.rotation),1===a||0===a)for(i=g.firstMPT,f=1===a?"e":"b";i;){if(c=i.t,c.type){if(1===c.type){for(e=c.xs0+c.s+c.xs1,d=1;d<c.l;d++)e+=c["xn"+d]+c["xs"+(d+1)];c[f]=e}}else c[f]=c.s+c.xs0;i=i._next}},function(a,b,c,d,e){this.t=a,this.p=b,this.v=c,this.r=e,d&&(d._prev=this,this._next=d)}),ta=(S._parseToProxy=function(a,b,c,d,e,f){var g,h,i,j,k,l=d,m={},n={},o=c._transform,p=M;for(c._transform=null,M=b,d=k=c.parse(a,b,d,e),M=p,f&&(c._transform=o,l&&(l._prev=null,l._prev&&(l._prev._next=null)));d&&d!==l;){if(d.type<=1&&(h=d.p,n[h]=d.s+d.c,m[h]=d.s,f||(j=new sa(d,"s",h,j,d.r),d.c=0),1===d.type))for(g=d.l;--g>0;)i="xn"+g,h=d.p+"_"+i,n[h]=d.data[i],m[h]=d[i],f||(j=new sa(d,i,h,j,d.rxp[i]));d=d._next}return{proxy:m,end:n,firstMPT:j,pt:k}},S.CSSPropTween=function(a,b,d,e,g,h,i,j,k,l,m){this.t=a,this.p=b,this.s=d,this.c=e,this.n=i||b,a instanceof ta||f.push(this.n),this.r=j?"function"==typeof j?j:Math.round:j,this.type=h||0,k&&(this.pr=k,c=!0),this.b=void 0===l?d:l,this.e=void 0===m?d+e:m,g&&(this._next=g,g._prev=this)}),ua=function(a,b,c,d,e,f){var g=new ta(a,b,c,d-c,e,-1,f);return g.b=c,g.e=g.xs0=d,g},va=g.parseComplex=function(a,b,c,d,e,f,h,i,j,l){c=c||f||"","function"==typeof d&&(d=d(r,q)),h=new ta(a,b,0,0,h,l?2:1,null,!1,i,c,d),d+="",e&&pa.test(d+c)&&(d=[c,d],g.colorStringFilter(d),c=d[0],d=d[1]);var m,n,o,p,u,v,w,x,y,z,A,B,C,D=c.split(", ").join(",").split(" "),E=d.split(", ").join(",").split(" "),F=D.length,G=k!==!1;for((-1!==d.indexOf(",")||-1!==c.indexOf(","))&&(-1!==(d+c).indexOf("rgb")||-1!==(d+c).indexOf("hsl")?(D=D.join(" ").replace(I,", ").split(" "),E=E.join(" ").replace(I,", ").split(" ")):(D=D.join(" ").split(",").join(", ").split(" "),E=E.join(" ").split(",").join(", ").split(" ")),F=D.length),F!==E.length&&(D=(f||"").split(" "),F=D.length),h.plugin=j,h.setRatio=l,pa.lastIndex=0,m=0;F>m;m++)if(p=D[m],u=E[m]+"",x=parseFloat(p),x||0===x)h.appendXtra("",x,ia(u,x),u.replace(t,""),G&&-1!==u.indexOf("px")?Math.round:!1,!0);else if(e&&pa.test(p))B=u.indexOf(")")+1,B=")"+(B?u.substr(B):""),C=-1!==u.indexOf("hsl")&&U,z=u,p=na(p,C),u=na(u,C),y=p.length+u.length>6,y&&!U&&0===u[3]?(h["xs"+h.l]+=h.l?" transparent":"transparent",h.e=h.e.split(E[m]).join("transparent")):(U||(y=!1),C?h.appendXtra(z.substr(0,z.indexOf("hsl"))+(y?"hsla(":"hsl("),p[0],ia(u[0],p[0]),",",!1,!0).appendXtra("",p[1],ia(u[1],p[1]),"%,",!1).appendXtra("",p[2],ia(u[2],p[2]),y?"%,":"%"+B,!1):h.appendXtra(z.substr(0,z.indexOf("rgb"))+(y?"rgba(":"rgb("),p[0],u[0]-p[0],",",Math.round,!0).appendXtra("",p[1],u[1]-p[1],",",Math.round).appendXtra("",p[2],u[2]-p[2],y?",":B,Math.round),y&&(p=p.length<4?1:p[3],h.appendXtra("",p,(u.length<4?1:u[3])-p,B,!1))),pa.lastIndex=0;else if(v=p.match(s)){if(w=u.match(t),!w||w.length!==v.length)return h;for(o=0,n=0;n<v.length;n++)A=v[n],z=p.indexOf(A,o),h.appendXtra(p.substr(o,z-o),Number(A),ia(w[n],A),"",G&&"px"===p.substr(z+A.length,2)?Math.round:!1,
vendor: 13,715 bytes, lines 1591-1592
15910===n),o=z+A.length;h["xs"+h.l]+=p.substr(o)}else h["xs"+h.l]+=h.l||h["xs"+h.l]?" "+u:u;if(-1!==d.indexOf("=")&&h.data){for(B=h.xs0+h.data.s,m=1;m<h.l;m++)B+=h["xs"+m]+h.data["xn"+m];h.e=B+h["xs"+m]}return h.l||(h.type=-1,h.xs0=h.e),h.xfirst||h},wa=9;for(j=ta.prototype,j.l=j.pr=0;--wa>0;)j["xn"+wa]=0,j["xs"+wa]="";j.xs0="",j._next=j._prev=j.xfirst=j.data=j.plugin=j.setRatio=j.rxp=null,j.appendXtra=function(a,b,c,d,e,f){var g=this,h=g.l;return g["xs"+h]+=f&&(h||g["xs"+h])?" "+a:a||"",c||0===h||g.plugin?(g.l++,g.type=g.setRatio?2:1,g["xs"+g.l]=d||"",h>0?(g.data["xn"+h]=b+c,g.rxp["xn"+h]=e,g["xn"+h]=b,g.plugin||(g.xfirst=new ta(g,"xn"+h,b,c,g.xfirst||g,0,g.n,e,g.pr),g.xfirst.xs0=0),g):(g.data={s:b+c},g.rxp={},g.s=b,g.c=c,g.r=e,g)):(g["xs"+h]+=b+(d||""),g)};var xa=function(a,b){b=b||{},this.p=b.prefix?Z(a)||a:a,i[a]=i[this.p]=this,this.format=b.formatter||qa(b.defaultValue,b.color,b.collapsible,b.multi),b.parser&&(this.parse=b.parser),this.clrs=b.color,this.multi=b.multi,this.keyword=b.keyword,this.dflt=b.defaultValue,this.pr=b.priority||0},ya=S._registerComplexSpecialProp=function(a,b,c){"object"!=typeof b&&(b={parser:c});var d,e,f=a.split(","),g=b.defaultValue;for(c=c||[g],d=0;d<f.length;d++)b.prefix=0===d&&b.prefix,b.defaultValue=c[d]||g,e=new xa(f[d],b)},za=S._registerPluginProp=function(a){if(!i[a]){var b=a.charAt(0).toUpperCase()+a.substr(1)+"Plugin";ya(a,{parser:function(a,c,d,e,f,g,j){var k=h.com.greensock.plugins[b];return k?(k._cssRegister(),i[d].parse(a,c,d,e,f,g,j)):(W("Error: "+b+" js file not loaded."),f)}})}};j=xa.prototype,j.parseComplex=function(a,b,c,d,e,f){var g,h,i,j,k,l,m=this.keyword;if(this.multi&&(I.test(c)||I.test(b)?(h=b.replace(I,"|").split("|"),i=c.replace(I,"|").split("|")):m&&(h=[b],i=[c])),i){for(j=i.length>h.length?i.length:h.length,g=0;j>g;g++)b=h[g]=h[g]||this.dflt,c=i[g]=i[g]||this.dflt,m&&(k=b.indexOf(m),l=c.indexOf(m),k!==l&&(-1===l?h[g]=h[g].split(m).join(""):-1===k&&(h[g]+=" "+m)));b=h.join(", "),c=i.join(", ")}return va(a,this.p,b,c,this.clrs,this.dflt,d,this.pr,e,f)},j.parse=function(a,b,c,d,f,g,h){return this.parseComplex(a.style,this.format(_(a,this.p,e,!1,this.dflt)),this.format(b),f,g)},g.registerSpecialProp=function(a,b,c){ya(a,{parser:function(a,d,e,f,g,h,i){var j=new ta(a,e,0,0,g,2,e,!1,c);return j.plugin=h,j.setRatio=b(a,d,f._tween,e),j},priority:c})},g.useSVGTransformAttr=!0;var Aa,Ba="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),Ca=Z("transform"),Da=X+"transform",Ea=Z("transformOrigin"),Fa=null!==Z("perspective"),Ga=S.Transform=function(){this.perspective=parseFloat(g.defaultTransformPerspective)||0,this.force3D=g.defaultForce3D!==!1&&Fa?g.defaultForce3D||"auto":!1},Ha=_gsScope.SVGElement,Ia=function(a,b,c){var d,e=O.createElementNS("http://www.w3.org/2000/svg",a),f=/([a-z])([A-Z])/g;for(d in c)e.setAttributeNS(null,d.replace(f,"$1-$2").toLowerCase(),c[d]);return b.appendChild(e),e},Ja=O.documentElement||{},Ka=function(){var a,b,c,d=p||/Android/i.test(T)&&!_gsScope.chrome;return O.createElementNS&&!d&&(a=Ia("svg",Ja),b=Ia("rect",a,{width:100,height:50,x:100}),c=b.getBoundingClientRect().width,b.style[Ea]="50% 50%",b.style[Ca]="scaleX(0.5)",d=c===b.getBoundingClientRect().width&&!(n&&Fa),Ja.removeChild(a)),d}(),La=function(a,b,c,d,e,f){var h,i,j,k,l,m,n,o,p,q,r,s,t,u,v=a._gsTransform,w=Qa(a,!0);v&&(t=v.xOrigin,u=v.yOrigin),(!d||(h=d.split(" ")).length<2)&&(n=a.getBBox(),0===n.x&&0===n.y&&n.width+n.height===0&&(n={x:parseFloat(a.hasAttribute("x")?a.getAttribute("x"):a.hasAttribute("cx")?a.getAttribute("cx"):0)||0,y:parseFloat(a.hasAttribute("y")?a.getAttribute("y"):a.hasAttribute("cy")?a.getAttribute("cy"):0)||0,width:0,height:0}),b=ha(b).split(" "),h=[(-1!==b[0].indexOf("%")?parseFloat(b[0])/100*n.width:parseFloat(b[0]))+n.x,(-1!==b[1].indexOf("%")?parseFloat(b[1])/100*n.height:parseFloat(b[1]))+n.y]),c.xOrigin=k=parseFloat(h[0]),c.yOrigin=l=parseFloat(h[1]),d&&w!==Pa&&(m=w[0],n=w[1],o=w[2],p=w[3],q=w[4],r=w[5],s=m*p-n*o,s&&(i=k*(p/s)+l*(-o/s)+(o*r-p*q)/s,j=k*(-n/s)+l*(m/s)-(m*r-n*q)/s,k=c.xOrigin=h[0]=i,l=c.yOrigin=h[1]=j)),v&&(f&&(c.xOffset=v.xOffset,c.yOffset=v.yOffset,v=c),e||e!==!1&&g.defaultSmoothOrigin!==!1?(i=k-t,j=l-u,v.xOffset+=i*w[0]+j*w[2]-i,v.yOffset+=i*w[1]+j*w[3]-j):v.xOffset=v.yOffset=0),f||a.setAttribute("data-svg-origin",h.join(" "))},Ma=function(a){var b,c=P("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),d=this.parentNode,e=this.nextSibling,f=this.style.cssText;if(Ja.appendChild(c),c.appendChild(this),this.style.display="block",a)try{b=this.getBBox(),this._originalGetBBox=this.getBBox,this.getBBox=Ma}catch(g){}else this._originalGetBBox&&(b=this._originalGetBBox());return e?d.insertBefore(this,e):d.appendChild(this),Ja.removeChild(c),this.style.cssText=f,b},Na=function(a){try{return a.getBBox()}catch(b){return Ma.call(a,!0)}},Oa=function(a){return!(!Ha||!a.getCTM||a.parentNode&&!a.ownerSVGElement||!Na(a))},Pa=[1,0,0,1,0,0],Qa=function(a,b){var c,d,e,f,g,h,i=a._gsTransform||new Ga,j=1e5,k=a.style;if(Ca?d=_(a,Da,null,!0):a.currentStyle&&(d=a.currentStyle.filter.match(G),d=d&&4===d.length?[d[0].substr(4),Number(d[2].substr(4)),Number(d[1].substr(4)),d[3].substr(4),i.x||0,i.y||0].join(","):""),c=!d||"none"===d||"matrix(1, 0, 0, 1, 0, 0)"===d,!Ca||!(h=!$(a)||"none"===$(a).display)&&a.parentNode||(h&&(f=k.display,k.display="block"),a.parentNode||(g=1,Ja.appendChild(a)),d=_(a,Da,null,!0),c=!d||"none"===d||"matrix(1, 0, 0, 1, 0, 0)"===d,f?k.display=f:h&&Va(k,"display"),g&&Ja.removeChild(a)),(i.svg||a.getCTM&&Oa(a))&&(c&&-1!==(k[Ca]+"").indexOf("matrix")&&(d=k[Ca],c=0),e=a.getAttribute("transform"),c&&e&&(e=a.transform.baseVal.consolidate().matrix,d="matrix("+e.a+","+e.b+","+e.c+","+e.d+","+e.e+","+e.f+")",c=0)),c)return Pa;for(e=(d||"").match(s)||[],wa=e.length;--wa>-1;)f=Number(e[wa]),e[wa]=(g=f-(f|=0))?(g*j+(0>g?-.5:.5)|0)/j+f:f;return b&&e.length>6?[e[0],e[1],e[4],e[5],e[12],e[13]]:e},Ra=S.getTransform=function(a,c,d,e){if(a._gsTransform&&d&&!e)return a._gsTransform;var f,h,i,j,k,l,m=d?a._gsTransform||new Ga:new Ga,n=m.scaleX<0,o=2e-5,p=1e5,q=Fa?parseFloat(_(a,Ea,c,!1,"0 0 0").split(" ")[2])||m.zOrigin||0:0,r=parseFloat(g.defaultTransformPerspective)||0;if(m.svg=!(!a.getCTM||!Oa(a)),m.svg&&(La(a,_(a,Ea,c,!1,"50% 50%")+"",m,a.getAttribute("data-svg-origin")),Aa=g.useSVGTransformAttr||Ka),f=Qa(a),f!==Pa){if(16===f.length){var s,t,u,v,w,x=f[0],y=f[1],z=f[2],A=f[3],B=f[4],C=f[5],D=f[6],E=f[7],F=f[8],G=f[9],H=f[10],I=f[12],J=f[13],K=f[14],M=f[11],N=Math.atan2(D,H);m.zOrigin&&(K=-m.zOrigin,I=F*K-f[12],J=G*K-f[13],K=H*K+m.zOrigin-f[14]),m.rotationX=N*L,N&&(v=Math.cos(-N),w=Math.sin(-N),s=B*v+F*w,t=C*v+G*w,u=D*v+H*w,F=B*-w+F*v,G=C*-w+G*v,H=D*-w+H*v,M=E*-w+M*v,B=s,C=t,D=u),N=Math.atan2(-z,H),m.rotationY=N*L,N&&(v=Math.cos(-N),w=Math.sin(-N),s=x*v-F*w,t=y*v-G*w,u=z*v-H*w,G=y*w+G*v,H=z*w+H*v,M=A*w+M*v,x=s,y=t,z=u),N=Math.atan2(y,x),m.rotation=N*L,N&&(v=Math.cos(N),w=Math.sin(N),s=x*v+y*w,t=B*v+C*w,u=F*v+G*w,y=y*v-x*w,C=C*v-B*w,G=G*v-F*w,x=s,B=t,F=u),m.rotationX&&Math.abs(m.rotationX)+Math.abs(m.rotation)>359.9&&(m.rotationX=m.rotation=0,m.rotationY=180-m.rotationY),N=Math.atan2(B,C),m.scaleX=(Math.sqrt(x*x+y*y+z*z)*p+.5|0)/p,m.scaleY=(Math.sqrt(C*C+D*D)*p+.5|0)/p,m.scaleZ=(Math.sqrt(F*F+G*G+H*H)*p+.5|0)/p,x/=m.scaleX,B/=m.scaleY,y/=m.scaleX,C/=m.scaleY,Math.abs(N)>o?(m.skewX=N*L,B=0,"simple"!==m.skewType&&(m.scaleY*=1/Math.cos(N))):m.skewX=0,m.perspective=M?1/(0>M?-M:M):0,m.x=I,m.y=J,m.z=K,m.svg&&(m.x-=m.xOrigin-(m.xOrigin*x-m.yOrigin*B),m.y-=m.yOrigin-(m.yOrigin*y-m.xOrigin*C))}else if(!Fa||e||!f.length||m.x!==f[4]||m.y!==f[5]||!m.rotationX&&!m.rotationY){var O=f.length>=6,P=O?f[0]:1,Q=f[1]||0,R=f[2]||0,S=O?f[3]:1;m.x=f[4]||0,m.y=f[5]||0,i=Math.sqrt(P*P+Q*Q),j=Math.sqrt(S*S+R*R),k=P||Q?Math.atan2(Q,P)*L:m.rotation||0,l=R||S?Math.atan2(R,S)*L+k:m.skewX||0,m.scaleX=i,m.scaleY=j,m.rotation=k,m.skewX=l,Fa&&(m.rotationX=m.rotationY=m.z=0,m.perspective=r,m.scaleZ=1),m.svg&&(m.x-=m.xOrigin-(m.xOrigin*P+m.yOrigin*R),m.y-=m.yOrigin-(m.xOrigin*Q+m.yOrigin*S))}Math.abs(m.skewX)>90&&Math.abs(m.skewX)<270&&(n?(m.scaleX*=-1,m.skewX+=m.rotation<=0?180:-180,m.rotation+=m.rotation<=0?180:-180):(m.scaleY*=-1,m.skewX+=m.skewX<=0?180:-180)),m.zOrigin=q;for(h in m)m[h]<o&&m[h]>-o&&(m[h]=0)}return d&&(a._gsTransform=m,m.svg&&(Aa&&a.style[Ca]?b.delayedCall(.001,function(){Va(a.style,Ca)}):!Aa&&a.getAttribute("transform")&&b.delayedCall(.001,function(){a.removeAttribute("transform")}))),m},Sa=function(a){var b,c,d=this.data,e=-d.rotation*K,f=e+d.skewX*K,g=1e5,h=(Math.cos(e)*d.scaleX*g|0)/g,i=(Math.sin(e)*d.scaleX*g|0)/g,j=(Math.sin(f)*-d.scaleY*g|0)/g,k=(Math.cos(f)*d.scaleY*g|0)/g,l=this.t.style,m=this.t.currentStyle;if(m){c=i,i=-j,j=-c,b=m.filter,l.filter="";var n,o,q=this.t.offsetWidth,r=this.t.offsetHeight,s="absolute"!==m.position,t="progid:DXImageTransform.Microsoft.Matrix(M11="+h+", M12="+i+", M21="+j+", M22="+k,u=d.x+q*d.xPercent/100,v=d.y+r*d.yPercent/100;if(null!=d.ox&&(n=(d.oxp?q*d.ox*.01:d.ox)-q/2,o=(d.oyp?r*d.oy*.01:d.oy)-r/2,u+=n-(n*h+o*i),v+=o-(n*j+o*k)),s?(n=q/2,o=r/2,t+=", Dx="+(n-(n*h+o*i)+u)+", Dy="+(o-(n*j+o*k)+v)+")"):t+=", sizingMethod='auto expand')",-1!==b.indexOf("DXImageTransform.Microsoft.Matrix(")?l.filter=b.replace(H,t):l.filter=t+" "+b,(0===a||1===a)&&1===h&&0===i&&0===j&&1===k&&(s&&-1===t.indexOf("Dx=0, Dy=0")||x.test(b)&&100!==parseFloat(RegExp.$1)||-1===b.indexOf(b.indexOf("Alpha"))&&l.removeAttribute("filter")),!s){var y,z,A,B=8>p?1:-1;for(n=d.ieOffsetX||0,o=d.ieOffsetY||0,d.ieOffsetX=Math.round((q-((0>h?-h:h)*q+(0>i?-i:i)*r))/2+u),d.ieOffsetY=Math.round((r-((0>k?-k:k)*r+(0>j?-j:j)*q))/2+v),wa=0;4>wa;wa++)z=fa[wa],y=m[z],c=-1!==y.indexOf("px")?parseFloat(y):aa(this.t,z,parseFloat(y),y.replace(w,""))||0,A=c!==d[z]?2>wa?-d.ieOffsetX:-d.ieOffsetY:2>wa?n-d.ieOffsetX:o-d.ieOffsetY,l[z]=(d[z]=Math.round(c-A*(0===wa||2===wa?1:B)))+"px"}}},Ta=S.set3DTransformRatio=S.setTransformRatio=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,o,p,q,r,s,t,u,v,w,x,y,z=this.data,A=this.t.style,B=z.rotation,C=z.rotationX,D=z.rotationY,E=z.scaleX,F=z.scaleY,G=z.scaleZ,H=z.x,I=z.y,J=z.z,L=z.svg,M=z.perspective,N=z.force3D,O=z.skewY,P=z.skewX;if(O&&(P+=O,B+=O),((1===a||0===a)&&"auto"===N&&(this.tween._totalTime===this.tween._totalDuration||!this.tween._totalTime)||!N)&&!J&&!M&&!D&&!C&&1===G||Aa&&L||!Fa)return void(B||P||L?(B*=K,x=P*K,y=1e5,c=Math.cos(B)*E,f=Math.sin(B)*E,d=Math.sin(B-x)*-F,g=Math.cos(B-x)*F,x&&"simple"===z.skewType&&(b=Math.tan(x-O*K),b=Math.sqrt(1+b*b),d*=b,g*=b,O&&(b=Math.tan(O*K),b=Math.sqrt(1+b*b),c*=b,f*=b)),L&&(H+=z.xOrigin-(z.xOrigin*c+z.yOrigin*d)+z.xOffset,I+=z.yOrigin-(z.xOrigin*f+z.yOrigin*g)+z.yOffset,Aa&&(z.xPercent||z.yPercent)&&(q=this.t.getBBox(),H+=.01*z.xPercent*q.width,I+=.01*z.yPercent*q.height),q=1e-6,q>H&&H>-q&&(H=0),q>I&&I>-q&&(I=0)),u=(c*y|0)/y+","+(f*y|0)/y+","+(d*y|0)/y+","+(g*y|0)/y+","+H+","+I+")",L&&Aa?this.t.setAttribute("transform","matrix("+u):A[Ca]=(z.xPercent||z.yPercent?"translate("+z.xPercent+"%,"+z.yPercent+"%) matrix(":"matrix(")+u):A[Ca]=(z.xPercent||z.yPercent?"translate("+z.xPercent+"%,"+z.yPercent+"%) matrix(":"matrix(")+E+",0,0,"+F+","+H+","+I+")");if(n&&(q=1e-4,q>E&&E>-q&&(E=G=2e-5),q>F&&F>-q&&(F=G=2e-5),!M||z.z||z.rotationX||z.rotationY||(M=0)),B||P)B*=K,r=c=Math.cos(B),s=f=Math.sin(B),P&&(B-=P*K,r=Math.cos(B),s=Math.sin(B),"simple"===z.skewType&&(b=Math.tan((P-O)*K),b=Math.sqrt(1+b*b),r*=b,s*=b,z.skewY&&(b=Math.tan(O*K),b=Math.sqrt(1+b*b),c*=b,f*=b))),d=-s,g=r;else{if(!(D||C||1!==G||M||L))return void(A[Ca]=(z.xPercent||z.yPercent?"translate("+z.xPercent+"%,"+z.yPercent+"%) translate3d(":"translate3d(")+H+"px,"+I+"px,"+J+"px)"+(1!==E||1!==F?" scale("+E+","+F+")":""));c=g=1,d=f=0}k=1,e=h=i=j=l=m=0,o=M?-1/M:0,p=z.zOrigin,q=1e-6,v=",",w="0",B=D*K,B&&(r=Math.cos(B),s=Math.sin(B),i=-s,l=o*-s,e=c*s,h=f*s,k=r,o*=r,c*=r,f*=r),B=C*K,B&&(r=Math.cos(B),s=Math.sin(B),b=d*r+e*s,t=g*r+h*s,j=k*s,m=o*s,e=d*-s+e*r,h=g*-s+h*r,k*=r,o*=r,d=b,g=t),1!==G&&(e*=G,h*=G,k*=G,o*=G),1!==F&&(d*=F,g*=F,j*=F,m*=F),1!==E&&(c*=E,f*=E,i*=E,l*=E),(p||L)&&(p&&(H+=e*-p,I+=h*-p,J+=k*-p+p),L&&(H+=z.xOrigin-(z.xOrigin*c+z.yOrigin*d)+z.xOffset,I+=z.yOrigin-(z.xOrigin*f+z.yOrigin*g)+z.yOffset),q>H&&H>-q&&(H=w),q>I&&I>-q&&(I=w),q>J&&J>-q&&(J=0)),u=z.xPercent||z.yPercent?"translate("+z.xPercent+"%,"+z.yPercent+"%) matrix3d(":"matrix3d(",u+=(q>c&&c>-q?w:c)+v+(q>f&&f>-q?w:f)+v+(q>i&&i>-q?w:i),u+=v+(q>l&&l>-q?w:l)+v+(q>d&&d>-q?w:d)+v+(q>g&&g>-q?w:g),C||D||1!==G?(u+=v+(q>j&&j>-q?w:j)+v+(q>m&&m>-q?w:m)+v+(q>e&&e>-q?w:e),u+=v+(q>h&&h>-q?w:h)+v+(q>k&&k>-q?w:k)+v+(q>o&&o>-q?w:o)+v):u+=",0,0,0,0,1,0,",u+=H+v+I+v+J+v+(M?1+-J/M:1)+")",A[Ca]=u};j=Ga.prototype,j.x=j.y=j.z=j.skewX=j.skewY=j.rotation=j.rotationX=j.rotationY=j.zOrigin=j.xPercent=j.yPercent=j.xOffset=j.yOffset=0,j.scaleX=j.scaleY=j.scaleZ=1,ya("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{ 1592parser:function(a,b,c,d,f,h,i){if(d._lastParsedTransform===i)return f;d._lastParsedTransform=i;var j,k=i.scale&&"function"==typeof i.scale?i.scale:0;"function"==typeof i[c]&&(j=i[c],i[c]=b),k&&(i.scale=k(r,a));var l,m,n,o,p,s,t,u,v,w=a._gsTransform,x=a.style,y=1e-6,z=Ba.length,A=i,B={},C="transformOrigin",D=Ra(a,e,!0,A.parseTransform),E=A.transform&&("function"==typeof A.transform?A.transform(r,q):A.transform);if(D.skewType=A.skewType||D.skewType||g.defaultSkewType,d._transform=D,E&&"string"==typeof E&&Ca)m=Q.style,m[Ca]=E,m.display="block",m.position="absolute",-1!==E.indexOf("%")&&(m.width=_(a,"width"),m.height=_(a,"he
1592ight")),O.body.appendChild(Q),l=Ra(Q,null,!1),"simple"===D.skewType&&(l.scaleY*=Math.cos(l.skewX*K)),D.svg&&(s=D.xOrigin,t=D.yOrigin,l.x-=D.xOffset,l.y-=D.yOffset,(A.transformOrigin||A.svgOrigin)&&(E={},La(a,ha(A.transformOrigin),E,A.svgOrigin,A.smoothOrigin,!0),s=E.xOrigin,t=E.yOrigin,l.x-=E.xOffset-D.xOffset,l.y-=E.yOffset-D.yOffset),(s||t)&&(u=Qa(Q,!0),l.x-=s-(s*u[0]+t*u[2]),l.y-=t-(s*u[1]+t*u[3]))),O.body.removeChild(Q),l.perspective||(l.perspective=D.perspective),null!=A.xPercent&&(l.xPercent=ja(A.xPercent,D.xPercent)),null!=A.yPercent&&(l.yPercent=ja(A.yPercent,D.yPercent));else if("object"==typeof A){if(l={scaleX:ja(null!=A.scaleX?A.scaleX:A.scale,D.scaleX),scaleY:ja(null!=A.scaleY?A.scaleY:A.scale,D.scaleY),scaleZ:ja(A.scaleZ,D.scaleZ),x:ja(A.x,D.x),y:ja(A.y,D.y),z:ja(A.z,D.z),xPercent:ja(A.xPercent,D.xPercent),yPercent:ja(A.yPercent,D.yPercent),perspective:ja(A.transformPerspective,D.perspective)},p=A.directionalRotation,null!=p)if("object"==typeof p)for(m in p)A[m]=p[m];else A.rotation=p;"string"==typeof A.x&&-1!==A.x.indexOf("%")&&(l.x=0,l.xPercent=ja(A.x,D.xPercent)),"string"==typeof A.y&&-1!==A.y.indexOf("%")&&(l.y=0,l.yPercent=ja(A.y,D.yPercent)),l.rotation=ka("rotation"in A?A.rotation:"shortRotation"in A?A.shortRotation+"_short":"rotationZ"in A?A.rotationZ:D.rotation,D.rotation,"rotation",B),Fa&&(l.rotationX=ka("rotationX"in A?A.rotationX:"shortRotationX"in A?A.shortRotationX+"_short":D.rotationX||0,D.rotationX,"rotationX",B),l.rotationY=ka("rotationY"in A?A.rotationY:"shortRotationY"in A?A.shortRotationY+"_short":D.rotationY||0,D.rotationY,"rotationY",B)),l.skewX=ka(A.skewX,D.skewX),l.skewY=ka(A.skewY,D.skewY)}for(Fa&&null!=A.force3D&&(D.force3D=A.force3D,o=!0),n=D.force3D||D.z||D.rotationX||D.rotationY||l.z||l.rotationX||l.rotationY||l.perspective,n||null==A.scale||(l.scaleZ=1);--z>-1;)v=Ba[z],E=l[v]-D[v],(E>y||-y>E||null!=A[v]||null!=M[v])&&(o=!0,f=new ta(D,v,D[v],E,f),v in B&&(f.e=B[v]),f.xs0=0,f.plugin=h,d._overwriteProps.push(f.n));return E=A.transformOrigin,D.svg&&(E||A.svgOrigin)&&(s=D.xOffset,t=D.yOffset,La(a,ha(E),l,A.svgOrigin,A.smoothOrigin),f=ua(D,"xOrigin",(w?D:l).xOrigin,l.xOrigin,f,C),f=ua(D,"yOrigin",(w?D:l).yOrigin,l.yOrigin,f,C),(s!==D.xOffset||t!==D.yOffset)&&(f=ua(D,"xOffset",w?s:D.xOffset,D.xOffset,f,C),f=ua(D,"yOffset",w?t:D.yOffset,D.yOffset,f,C)),E="0px 0px"),(E||Fa&&n&&D.zOrigin)&&(Ca?(o=!0,v=Ea,E=(E||_(a,v,e,!1,"50% 50%"))+"",f=new ta(x,v,0,0,f,-1,C),f.b=x[v],f.plugin=h,Fa?(m=D.zOrigin,E=E.split(" "),D.zOrigin=(E.length>2&&(0===m||"0px"!==E[2])?parseFloat(E[2]):m)||0,f.xs0=f.e=E[0]+" "+(E[1]||"50%")+" 0px",f=new ta(D,"zOrigin",0,0,f,-1,f.n),f.b=m,f.xs0=f.e=D.zOrigin):f.xs0=f.e=E):ha(E+"",D)),o&&(d._transformType=D.svg&&Aa||!n&&3!==this._transformType?2:3),j&&(i[c]=j),k&&(i.scale=k),f},prefix:!0}),ya("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),ya("borderRadius",{defaultValue:"0px",parser:function(a,b,c,f,g,h){b=this.format(b);var i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],z=a.style;for(q=parseFloat(a.offsetWidth),r=parseFloat(a.offsetHeight),i=b.split(" "),j=0;j<y.length;j++)this.p.indexOf("border")&&(y[j]=Z(y[j])),m=l=_(a,y[j],e,!1,"0px"),-1!==m.indexOf(" ")&&(l=m.split(" "),m=l[0],l=l[1]),n=k=i[j],o=parseFloat(m),t=m.substr((o+"").length),u="="===n.charAt(1),u?(p=parseInt(n.charAt(0)+"1",10),n=n.substr(2),p*=parseFloat(n),s=n.substr((p+"").length-(0>p?1:0))||""):(p=parseFloat(n),s=n.substr((p+"").length)),""===s&&(s=d[c]||t),s!==t&&(v=aa(a,"borderLeft",o,t),w=aa(a,"borderTop",o,t),"%"===s?(m=v/q*100+"%",l=w/r*100+"%"):"em"===s?(x=aa(a,"borderLeft",1,"em"),m=v/x+"em",l=w/x+"em"):(m=v+"px",l=w+"px"),u&&(n=parseFloat(m)+p+s,k=parseFloat(l)+p+s)),g=va(z,y[j],m+" "+l,n+" "+k,!1,"0px",g);return g},prefix:!0,formatter:qa("0px 0px 0px 0px",!1,!0)}),ya("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(a,b,c,d,f,g){return va(a.style,c,this.format(_(a,c,e,!1,"0px 0px")),this.format(b),!1,"0px",f)},prefix:!0,formatter:qa("0px 0px",!1,!0)}),ya("backgroundPosition",{defaultValue:"0 0",parser:function(a,b,c,d,f,g){var h,i,j,k,l,m,n="background-position",o=e||$(a,null),q=this.format((o?p?o.getPropertyValue(n+"-x")+" "+o.getPropertyValue(n+"-y"):o.getPropertyValue(n):a.currentStyle.backgroundPositionX+" "+a.currentStyle.backgroundPositionY)||"0 0"),r=this.format(b);if(-1!==q.indexOf("%")!=(-1!==r.indexOf("%"))&&r.split(",").length<2&&(m=_(a,"backgroundImage").replace(D,""),m&&"none"!==m)){for(h=q.split(" "),i=r.split(" "),R.setAttribute("src",m),j=2;--j>-1;)q=h[j],k=-1!==q.indexOf("%"),k!==(-1!==i[j].indexOf("%"))&&(l=0===j?a.offsetWidth-R.width:a.offsetHeight-R.height,h[j]=k?parseFloat(q)/100*l+"px":parseFloat(q)/l*100+"%");q=h.join(" ")}return this.parseComplex(a.style,q,r,f,g)},formatter:ha}),ya("backgroundSize",{defaultValue:"0 0",formatter:function(a){return a+="","co"===a.substr(0,2)?a:ha(-1===a.indexOf(" ")?a+" "+a:a)}}),ya("perspective",{defaultValue:"0px",prefix:!0}),ya("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),ya("transformStyle",{prefix:!0}),ya("backfaceVisibility",{prefix:!0}),ya("userSelect",{prefix:!0}),ya("margin",{parser:ra("marginTop,marginRight,marginBottom,marginLeft")}),ya("padding",{parser:ra("paddingTop,paddingRight,paddingBottom,paddingLeft")}),ya("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(a,b,c,d,f,g){var h,i,j;return 9>p?(i=a.currentStyle,j=8>p?" ":",",h="rect("+i.clipTop+j+i.clipRight+j+i.clipBottom+j+i.clipLeft+")",b=this.format(b).split(",").join(j)):(h=this.format(_(a,this.p,e,!1,this.dflt)),b=this.format(b)),this.parseComplex(a.style,h,b,f,g)}}),ya("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),ya("autoRound,strictUnits",{parser:function(a,b,c,d,e){return e}}),ya("border",{defaultValue:"0px solid #000",parser:function(a,b,c,d,f,g){var h=_(a,"borderTopWidth",e,!1,"0px"),i=this.format(b).split(" "),j=i[0].replace(w,"");return"px"!==j&&(h=parseFloat(h)/aa(a,"borderTopWidth",1,j)+j),this.parseComplex(a.style,this.format(h+" "+_(a,"borderTopStyle",e,!1,"solid")+" "+_(a,"borderTopColor",e,!1,"#000")),i.join(" "),f,g)},color:!0,formatter:function(a){var b=a.split(" ");return b[0]+" "+(b[1]||"solid")+" "+(a.match(pa)||["#000"])[0]}}),ya("borderWidth",{parser:ra("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),ya("float,cssFloat,styleFloat",{parser:function(a,b,c,d,e,f){var g=a.style,h="cssFloat"in g?"cssFloat":"styleFloat";return new ta(g,h,0,0,e,-1,c,!1,0,g[h],b)}});var Ua=function(a){var b,c=this.t,d=c.filter||_(this.data,"filter")||"",e=this.s+this.c*a|0;100===e&&(-1===d.indexOf("atrix(")&&-1===d.indexOf("radient(")&&-1===d.indexOf("oader(")?(c.removeAttribute("filter"),b=!_(this.data,"filter")):(c.filter=d.replace(z,""),b=!0)),b||(this.xn1&&(c.filter=d=d||"alpha(opacity="+e+")"),-1===d.indexOf("pacity")?0===e&&this.xn1||(c.filter=d+" alpha(opacity="+e+")"):c.filter=d.replace(x,"opacity="+e))};ya("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(a,b,c,d,f,g){var h=parseFloat(_(a,"opacity",e,!1,"1")),i=a.style,j="autoAlpha"===c;return"string"==typeof b&&"="===b.charAt(1)&&(b=("-"===b.charAt(0)?-1:1)*parseFloat(b.substr(2))+h),j&&1===h&&"hidden"===_(a,"visibility",e)&&0!==b&&(h=0),U?f=new ta(i,"opacity",h,b-h,f):(f=new ta(i,"opacity",100*h,100*(b-h),f),f.xn1=j?1:0,i.zoom=1,f.type=2,f.b="alpha(opacity="+f.s+")",f.e="alpha(opacity="+(f.s+f.c)+")",f.data=a,f.plugin=g,f.setRatio=Ua),j&&(f=new ta(i,"visibility",0,0,f,-1,null,!1,0,0!==h?"inherit":"hidden",0===b?"hidden":"inherit"),f.xs0="inherit",d._overwriteProps.push(f.n),d._over
vendor: 7,292 bytes, line 1592
1592writeProps.push(c)),f}});var Va=function(a,b){b&&(a.removeProperty?(("ms"===b.substr(0,2)||"webkit"===b.substr(0,6))&&(b="-"+b),a.removeProperty(b.replace(B,"-$1").toLowerCase())):a.removeAttribute(b))},Wa=function(a){if(this.t._gsClassPT=this,1===a||0===a){this.t.setAttribute("class",0===a?this.b:this.e);for(var b=this.data,c=this.t.style;b;)b.v?c[b.p]=b.v:Va(c,b.p),b=b._next;1===a&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};ya("className",{parser:function(a,b,d,f,g,h,i){var j,k,l,m,n,o=a.getAttribute("class")||"",p=a.style.cssText;if(g=f._classNamePT=new ta(a,d,0,0,g,2),g.setRatio=Wa,g.pr=-11,c=!0,g.b=o,k=ca(a,e),l=a._gsClassPT){for(m={},n=l.data;n;)m[n.p]=1,n=n._next;l.setRatio(1)}return a._gsClassPT=g,g.e="="!==b.charAt(1)?b:o.replace(new RegExp("(?:\\s|^)"+b.substr(2)+"(?![\\w-])"),"")+("+"===b.charAt(0)?" "+b.substr(2):""),a.setAttribute("class",g.e),j=da(a,k,ca(a),i,m),a.setAttribute("class",o),g.data=j.firstMPT,a.style.cssText=p,g=g.xfirst=f.parse(a,j.difs,g,h)}});var Xa=function(a){if((1===a||0===a)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var b,c,d,e,f,g=this.t.style,h=i.transform.parse;if("all"===this.e)g.cssText="",e=!0;else for(b=this.e.split(" ").join("").split(","),d=b.length;--d>-1;)c=b[d],i[c]&&(i[c].parse===h?e=!0:c="transformOrigin"===c?Ea:i[c].p),Va(g,c);e&&(Va(g,Ca),f=this.t._gsTransform,f&&(f.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(ya("clearProps",{parser:function(a,b,d,e,f){return f=new ta(a,d,0,0,f,2),f.setRatio=Xa,f.e=b,f.pr=-10,f.data=e._tween,c=!0,f}}),j="bezier,throwProps,physicsProps,physics2D".split(","),wa=j.length;wa--;)za(j[wa]);j=g.prototype,j._firstPT=j._lastParsedTransform=j._transform=null,j._onInitTween=function(a,b,h,j){if(!a.nodeType)return!1;this._target=q=a,this._tween=h,this._vars=b,r=j,k=b.autoRound,c=!1,d=b.suffixMap||g.suffixMap,e=$(a,""),f=this._overwriteProps;var n,p,s,t,u,v,w,x,z,A=a.style;if(l&&""===A.zIndex&&(n=_(a,"zIndex",e),("auto"===n||""===n)&&this._addLazySet(A,"zIndex",0)),"string"==typeof b&&(t=A.cssText,n=ca(a,e),A.cssText=t+";"+b,n=da(a,n,ca(a)).difs,!U&&y.test(b)&&(n.opacity=parseFloat(RegExp.$1)),b=n,A.cssText=t),b.className?this._firstPT=p=i.className.parse(a,b.className,"className",this,null,null,b):this._firstPT=p=this.parse(a,b,null),this._transformType){for(z=3===this._transformType,Ca?m&&(l=!0,""===A.zIndex&&(w=_(a,"zIndex",e),("auto"===w||""===w)&&this._addLazySet(A,"zIndex",0)),o&&this._addLazySet(A,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(z?"visible":"hidden"))):A.zoom=1,s=p;s&&s._next;)s=s._next;x=new ta(a,"transform",0,0,null,2),this._linkCSSP(x,null,s),x.setRatio=Ca?Ta:Sa,x.data=this._transform||Ra(a,e,!0),x.tween=h,x.pr=-1,f.pop()}if(c){for(;p;){for(v=p._next,s=t;s&&s.pr>p.pr;)s=s._next;(p._prev=s?s._prev:u)?p._prev._next=p:t=p,(p._next=s)?s._prev=p:u=p,p=v}this._firstPT=t}return!0},j.parse=function(a,b,c,f){var g,h,j,l,m,n,o,p,s,t,u=a.style;for(g in b){if(n=b[g],"function"==typeof n&&(n=n(r,q)),h=i[g])c=h.parse(a,n,g,this,c,f,b);else{if("--"===g.substr(0,2)){this._tween._propLookup[g]=this._addTween.call(this._tween,a.style,"setProperty",$(a).getPropertyValue(g)+"",n+"",g,!1,g);continue}m=_(a,g,e)+"",s="string"==typeof n,"color"===g||"fill"===g||"stroke"===g||-1!==g.indexOf("Color")||s&&A.test(n)?(s||(n=na(n),n=(n.length>3?"rgba(":"rgb(")+n.join(",")+")"),c=va(u,g,m,n,!0,"transparent",c,0,f)):s&&J.test(n)?c=va(u,g,m,n,!0,null,c,0,f):(j=parseFloat(m),o=j||0===j?m.substr((j+"").length):"",(""===m||"auto"===m)&&("width"===g||"height"===g?(j=ga(a,g,e),o="px"):"left"===g||"top"===g?(j=ba(a,g,e),o="px"):(j="opacity"!==g?0:1,o="")),t=s&&"="===n.charAt(1),t?(l=parseInt(n.charAt(0)+"1",10),n=n.substr(2),l*=parseFloat(n),p=n.replace(w,"")):(l=parseFloat(n),p=s?n.replace(w,""):""),""===p&&(p=g in d?d[g]:o),n=l||0===l?(t?l+j:l)+p:b[g],o!==p&&(""!==p||"lineHeight"===g)&&(l||0===l)&&j&&(j=aa(a,g,j,o),"%"===p?(j/=aa(a,g,100,"%")/100,b.strictUnits!==!0&&(m=j+"%")):"em"===p||"rem"===p||"vw"===p||"vh"===p?j/=aa(a,g,1,p):"px"!==p&&(l=aa(a,g,l,p),p="px"),t&&(l||0===l)&&(n=l+j+p)),t&&(l+=j),!j&&0!==j||!l&&0!==l?void 0!==u[g]&&(n||n+""!="NaN"&&null!=n)?(c=new ta(u,g,l||j||0,0,c,-1,g,!1,0,m,n),c.xs0="none"!==n||"display"!==g&&-1===g.indexOf("Style")?n:m):W("invalid "+g+" tween value: "+b[g]):(c=new ta(u,g,j,l-j,c,0,g,k!==!1&&("px"===p||"zIndex"===g),0,m,n),c.xs0=p))}f&&c&&!c.plugin&&(c.plugin=f)}return c},j.setRatio=function(a){var b,c,d,e=this._firstPT,f=1e-6;if(1!==a||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(a||this._tween._time!==this._tween._duration&&0!==this._tween._time||this._tween._rawPrevTime===-1e-6)for(;e;){if(b=e.c*a+e.s,e.r?b=e.r(b):f>b&&b>-f&&(b=0),e.type)if(1===e.type)if(d=e.l,2===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2;else if(3===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3;else if(4===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3+e.xn3+e.xs4;else if(5===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3+e.xn3+e.xs4+e.xn4+e.xs5;else{for(c=e.xs0+b+e.xs1,d=1;d<e.l;d++)c+=e["xn"+d]+e["xs"+(d+1)];e.t[e.p]=c}else-1===e.type?e.t[e.p]=e.xs0:e.setRatio&&e.setRatio(a);else e.t[e.p]=b+e.xs0;e=e._next}else for(;e;)2!==e.type?e.t[e.p]=e.b:e.setRatio(a),e=e._next;else for(;e;){if(2!==e.type)if(e.r&&-1!==e.type)if(b=e.r(e.s+e.c),e.type){if(1===e.type){for(d=e.l,c=e.xs0+b+e.xs1,d=1;d<e.l;d++)c+=e["xn"+d]+e["xs"+(d+1)];e.t[e.p]=c}}else e.t[e.p]=b+e.xs0;else e.t[e.p]=e.e;else e.setRatio(a);e=e._next}},j._enableTransforms=function(a){this._transform=this._transform||Ra(this._target,e,!0),this._transformType=this._transform.svg&&Aa||!a&&3!==this._transformType?2:3};var Ya=function(a){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};j._addLazySet=function(a,b,c){var d=this._firstPT=new ta(a,b,0,0,this._firstPT,2);d.e=c,d.setRatio=Ya,d.data=this},j._linkCSSP=function(a,b,c,d){return a&&(b&&(b._prev=a),a._next&&(a._next._prev=a._prev),a._prev?a._prev._next=a._next:this._firstPT===a&&(this._firstPT=a._next,d=!0),c?c._next=a:d||null!==this._firstPT||(this._firstPT=a),a._next=b,a._prev=c),a},j._mod=function(a){for(var b=this._firstPT;b;)"function"==typeof a[b.p]&&(b.r=a[b.p]),b=b._next},j._kill=function(b){var c,d,e,f=b;if(b.autoAlpha||b.alpha){f={};for(d in b)f[d]=b[d];f.opacity=1,f.autoAlpha&&(f.visibility=1)}for(b.className&&(c=this._classNamePT)&&(e=c.xfirst,e&&e._prev?this._linkCSSP(e._prev,c._next,e._prev._prev):e===this._firstPT&&(this._firstPT=c._next),c._next&&this._linkCSSP(c._next,c._next._next,e._prev),this._classNamePT=null),c=this._firstPT;c;)c.plugin&&c.plugin!==d&&c.plugin._kill&&(c.plugin._kill(b),d=c.plugin),c=c._next;return a.prototype._kill.call(this,f)};var Za=function(a,b,c){var d,e,f,g;if(a.slice)for(e=a.length;--e>-1;)Za(a[e],b,c);else for(d=a.childNodes,e=d.length;--e>-1;)f=d[e],g=f.type,f.style&&(b.push(ca(f)),c&&c.push(f)),1!==g&&9!==g&&11!==g||!f.childNodes.length||Za(f,b,c)};return g.cascadeTo=function(a,c,d){var e,f,g,h,i=b.to(a,c,d),j=[i],k=[],l=[],m=[],n=b._internals.reservedProps;for(a=i._targets||i.target,Za(a,k,m),i.render(c,!0,!0),Za(a,l),i.render(0,!0,!0),i._enabled(!0),e=m.length;--e>-1;)if(f=d
vendor: 7,785 bytes, line 1592
1592a(m[e],k[e],l[e]),f.firstMPT){f=f.difs;for(g in d)n[g]&&(f[g]=d[g]);h={};for(g in f)h[g]=k[e][g];j.push(b.fromTo(m[e],c,h,f))}return j},a.activate([g]),g},!0),function(){var a=_gsScope._gsDefine.plugin({propName:"roundProps",version:"1.7.0",priority:-1,API:2,init:function(a,b,c){return this._tween=c,!0}}),b=function(a){var b=1>a?Math.pow(10,(a+"").length-2):1;return function(c){return(Math.round(c/a)*a*b|0)/b}},c=function(a,b){for(;a;)a.f||a.blob||(a.m=b||Math.round),a=a._next},d=a.prototype;d._onInitAllProps=function(){var a,d,e,f,g=this._tween,h=g.vars.roundProps,i={},j=g._propLookup.roundProps;if("object"!=typeof h||h.push)for("string"==typeof h&&(h=h.split(",")),e=h.length;--e>-1;)i[h[e]]=Math.round;else for(f in h)i[f]=b(h[f]);for(f in i)for(a=g._firstPT;a;)d=a._next,a.pg?a.t._mod(i):a.n===f&&(2===a.f&&a.t?c(a.t._firstPT,i[f]):(this._add(a.t,f,a.s,a.c,i[f]),d&&(d._prev=a._prev),a._prev?a._prev._next=d:g._firstPT===a&&(g._firstPT=d),a._next=a._prev=null,g._propLookup[f]=j)),a=d;return!1},d._add=function(a,b,c,d,e){this._addTween(a,b,c,c+d,b,e||Math.round),this._overwriteProps.push(b)}}(),function(){_gsScope._gsDefine.plugin({propName:"attr",API:2,version:"0.6.1",init:function(a,b,c,d){var e,f;if("function"!=typeof a.setAttribute)return!1;for(e in b)f=b[e],"function"==typeof f&&(f=f(d,a)),this._addTween(a,"setAttribute",a.getAttribute(e)+"",f+"",e,!1,e),this._overwriteProps.push(e);return!0}})}(),_gsScope._gsDefine.plugin({propName:"directionalRotation",version:"0.3.1",API:2,init:function(a,b,c,d){"object"!=typeof b&&(b={rotation:b}),this.finals={};var e,f,g,h,i,j,k=b.useRadians===!0?2*Math.PI:360,l=1e-6;for(e in b)"useRadians"!==e&&(h=b[e],"function"==typeof h&&(h=h(d,a)),j=(h+"").split("_"),f=j[0],g=parseFloat("function"!=typeof a[e]?a[e]:a[e.indexOf("set")||"function"!=typeof a["get"+e.substr(3)]?e:"get"+e.substr(3)]()),h=this.finals[e]="string"==typeof f&&"="===f.charAt(1)?g+parseInt(f.charAt(0)+"1",10)*Number(f.substr(2)):Number(f)||0,i=h-g,j.length&&(f=j.join("_"),-1!==f.indexOf("short")&&(i%=k,i!==i%(k/2)&&(i=0>i?i+k:i-k)),-1!==f.indexOf("_cw")&&0>i?i=(i+9999999999*k)%k-(i/k|0)*k:-1!==f.indexOf("ccw")&&i>0&&(i=(i-9999999999*k)%k-(i/k|0)*k)),(i>l||-l>i)&&(this._addTween(a,e,g,g+i,e),this._overwriteProps.push(e)));return!0},set:function(a){var b;if(1!==a)this._super.setRatio.call(this,a);else for(b=this._firstPT;b;)b.f?b.t[b.p](this.finals[b.p]):b.t[b.p]=this.finals[b.p],b=b._next}})._autoCSS=!0,_gsScope._gsDefine("easing.Back",["easing.Ease"],function(a){var b,c,d,e,f=_gsScope.GreenSockGlobals||_gsScope,g=f.com.greensock,h=2*Math.PI,i=Math.PI/2,j=g._class,k=function(b,c){var d=j("easing."+b,function(){},!0),e=d.prototype=new a;return e.constructor=d,e.getRatio=c,d},l=a.register||function(){},m=function(a,b,c,d,e){var f=j("easing."+a,{easeOut:new b,easeIn:new c,easeInOut:new d},!0);return l(f,a),f},n=function(a,b,c){this.t=a,this.v=b,c&&(this.next=c,c.prev=this,this.c=c.v-b,this.gap=c.t-a)},o=function(b,c){var d=j("easing."+b,function(a){this._p1=a||0===a?a:1.70158,this._p2=1.525*this._p1},!0),e=d.prototype=new a;return e.constructor=d,e.getRatio=c,e.config=function(a){return new d(a)},d},p=m("Back",o("BackOut",function(a){return(a-=1)*a*((this._p1+1)*a+this._p1)+1}),o("BackIn",function(a){return a*a*((this._p1+1)*a-this._p1)}),o("BackInOut",function(a){return(a*=2)<1?.5*a*a*((this._p2+1)*a-this._p2):.5*((a-=2)*a*((this._p2+1)*a+this._p2)+2)})),q=j("easing.SlowMo",function(a,b,c){b=b||0===b?b:.7,null==a?a=.7:a>1&&(a=1),this._p=1!==a?b:0,this._p1=(1-a)/2,this._p2=a,this._p3=this._p1+this._p2,this._calcEnd=c===!0},!0),r=q.prototype=new a;return r.constructor=q,r.getRatio=function(a){var b=a+(.5-a)*this._p;return a<this._p1?this._calcEnd?1-(a=1-a/this._p1)*a:b-(a=1-a/this._p1)*a*a*a*b:a>this._p3?this._calcEnd?1===a?0:1-(a=(a-this._p3)/this._p1)*a:b+(a-b)*(a=(a-this._p3)/this._p1)*a*a*a:this._calcEnd?1:b},q.ease=new q(.7,.7),r.config=q.config=function(a,b,c){return new q(a,b,c)},b=j("easing.SteppedEase",function(a,b){a=a||1,this._p1=1/a,this._p2=a+(b?0:1),this._p3=b?1:0},!0),r=b.prototype=new a,r.constructor=b,r.getRatio=function(a){return 0>a?a=0:a>=1&&(a=.999999999),((this._p2*a|0)+this._p3)*this._p1},r.config=b.config=function(a,c){return new b(a,c)},c=j("easing.ExpoScaleEase",function(a,b,c){this._p1=Math.log(b/a),this._p2=b-a,this._p3=a,this._ease=c},!0),r=c.prototype=new a,r.constructor=c,r.getRatio=function(a){return this._ease&&(a=this._ease.getRatio(a)),(this._p3*Math.exp(this._p1*a)-this._p3)/this._p2},r.config=c.config=function(a,b,d){return new c(a,b,d)},d=j("easing.RoughEase",function(b){b=b||{};for(var c,d,e,f,g,h,i=b.taper||"none",j=[],k=0,l=0|(b.points||20),m=l,o=b.randomize!==!1,p=b.clamp===!0,q=b.template instanceof a?b.template:null,r="number"==typeof b.strength?.4*b.strength:.4;--m>-1;)c=o?Math.random():1/l*m,d=q?q.getRatio(c):c,"none"===i?e=r:"out"===i?(f=1-c,e=f*f*r):"in"===i?e=c*c*r:.5>c?(f=2*c,e=f*f*.5*r):(f=2*(1-c),e=f*f*.5*r),o?d+=Math.random()*e-.5*e:m%2?d+=.5*e:d-=.5*e,p&&(d>1?d=1:0>d&&(d=0)),j[k++]={x:c,y:d};for(j.sort(function(a,b){return a.x-b.x}),h=new n(1,1,null),m=l;--m>-1;)g=j[m],h=new n(g.x,g.y,h);this._prev=new n(0,0,0!==h.t?h:h.next)},!0),r=d.prototype=new a,r.constructor=d,r.getRatio=function(a){var b=this._prev;if(a>b.t){for(;b.next&&a>=b.t;)b=b.next;b=b.prev}else for(;b.prev&&a<=b.t;)b=b.prev;return this._prev=b,b.v+(a-b.t)/b.gap*b.c},r.config=function(a){return new d(a)},d.ease=new d,m("Bounce",k("BounceOut",function(a){return 1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375}),k("BounceIn",function(a){return(a=1-a)<1/2.75?1-7.5625*a*a:2/2.75>a?1-(7.5625*(a-=1.5/2.75)*a+.75):2.5/2.75>a?1-(7.5625*(a-=2.25/2.75)*a+.9375):1-(7.5625*(a-=2.625/2.75)*a+.984375)}),k("BounceInOut",function(a){var b=.5>a;return a=b?1-2*a:2*a-1,a=1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375,b?.5*(1-a):.5*a+.5})),m("Circ",k("CircOut",function(a){return Math.sqrt(1-(a-=1)*a)}),k("CircIn",function(a){return-(Math.sqrt(1-a*a)-1)}),k("CircInOut",function(a){return(a*=2)<1?-.5*(Math.sqrt(1-a*a)-1):.5*(Math.sqrt(1-(a-=2)*a)+1)})),e=function(b,c,d){var e=j("easing."+b,function(a,b){this._p1=a>=1?a:1,this._p2=(b||d)/(1>a?a:1),this._p3=this._p2/h*(Math.asin(1/this._p1)||0),this._p2=h/this._p2},!0),f=e.prototype=new a;return f.constructor=e,f.getRatio=c,f.config=function(a,b){return new e(a,b)},e},m("Elastic",e("ElasticOut",function(a){return this._p1*Math.pow(2,-10*a)*Math.sin((a-this._p3)*this._p2)+1},.3),e("ElasticIn",function(a){return-(this._p1*Math.pow(2,10*(a-=1))*Math.sin((a-this._p3)*this._p2))},.3),e("ElasticInOut",function(a){return(a*=2)<1?-.5*(this._p1*Math.pow(2,10*(a-=1))*Math.sin((a-this._p3)*this._p2)):this._p1*Math.pow(2,-10*(a-=1))*Math.sin((a-this._p3)*this._p2)*.5+1},.45)),m("Expo",k("ExpoOut",function(a){return 1-Math.pow(2,-10*a)}),k("ExpoIn",function(a){return Math.pow(2,10*(a-1))-.001}),k("ExpoInOut",function(a){return(a*=2)<1?.5*Math.pow(2,10*(a-1)):.5*(2-Math.pow(2,-10*(a-1)))})),m("Sine",k("SineOut",function(a){return Math.sin(a*i)}),k("SineIn",function(a){return-Math.cos(a*i)+1}),k("SineInOut",function(a){return-.5*(Math.cos(Math.PI*a)-1)})),j("easing.EaseLookup",{find:function(b){return a.map[b]}},!0),l(f.SlowMo,"SlowMo","ease,"),l(d,"RoughEase","ease,"),l(b,"SteppedEase","ease,"),p},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(a,b){"use strict";var c={},d=a.document,e=a.GreenSockGlobals=a.GreenSockGlobals||a,f=e[b];if(f)return"undefined"!=typeof module&&module.exports&&(module.exports=f),f;var g,h,i,j,k,l=function(a){var b,c=a.split("."),d=e;for(b=0;b<c.length;b++)d[c[b]]=d=d[c[b]]||{};return d},m=l("com.greensock"),n=1e-
vendor: 1,436 bytes, line 1592
159210,o=function(a){var b,c=[],d=a.length;for(b=0;b!==d;c.push(a[b++]));return c},p=function(){},q=function(){var a=Object.prototype.toString,b=a.call([]);return function(c){return null!=c&&(c instanceof Array||"object"==typeof c&&!!c.push&&a.call(c)===b)}}(),r={},s=function(d,f,g,h){this.sc=r[d]?r[d].sc:[],r[d]=this,this.gsClass=null,this.func=g;var i=[];this.check=function(j){for(var k,m,n,o,p=f.length,q=p;--p>-1;)(k=r[f[p]]||new s(f[p],[])).gsClass?(i[p]=k.gsClass,q--):j&&k.sc.push(this);if(0===q&&g){if(m=("com.greensock."+d).split("."),n=m.pop(),o=l(m.join("."))[n]=this.gsClass=g.apply(g,i),h)if(e[n]=c[n]=o,"undefined"!=typeof module&&module.exports)if(d===b){module.exports=c[b]=o;for(p in c)o[p]=c[p]}else c[b]&&(c[b][n]=o);else"function"==typeof define&&define.amd&&define((a.GreenSockAMDPath?a.GreenSockAMDPath+"/":"")+d.split(".").pop(),[],function(){return o});for(p=0;p<this.sc.length;p++)this.sc[p].check()}},this.check(!0)},t=a._gsDefine=function(a,b,c,d){return new s(a,b,c,d)},u=m._class=function(a,b,c){return b=b||function(){},t(a,[],function(){return b},c),b};t.globals=e;var v=[0,0,1,1],w=u("easing.Ease",function(a,b,c,d){this._func=a,this._type=c||0,this._power=d||0,this._params=b?v.concat(b):v},!0),x=w.map={},y=w.register=function(a,b,c,d){for(var e,f,g,h,i=b.split(","),j=i.length,k=(c||"easeIn,easeOut,easeInOut").split(",");--j>-1;)for(f=i[j],e=d?u("easing."+f,null,!0):m.easing[f]||{},g=k.length;--g>-1;
vendor: 17,709 bytes, lines 1592-1593
1592)h=k[g],x[f+"."+h]=x[h+f]=e[h]=a.getRatio?a:a[h]||new a};for(i=w.prototype,i._calcEnd=!1,i.getRatio=function(a){if(this._func)return this._params[0]=a,this._func.apply(null,this._params);var b=this._type,c=this._power,d=1===b?1-a:2===b?a:.5>a?2*a:2*(1-a);return 1===c?d*=d:2===c?d*=d*d:3===c?d*=d*d*d:4===c&&(d*=d*d*d*d),1===b?1-d:2===b?d:.5>a?d/2:1-d/2},g=["Linear","Quad","Cubic","Quart","Quint,Strong"],h=g.length;--h>-1;)i=g[h]+",Power"+h,y(new w(null,null,1,h),i,"easeOut",!0),y(new w(null,null,2,h),i,"easeIn"+(0===h?",easeNone":"")),y(new w(null,null,3,h),i,"easeInOut");x.linear=m.easing.Linear.easeIn,x.swing=m.easing.Quad.easeInOut;var z=u("events.EventDispatcher",function(a){this._listeners={},this._eventTarget=a||this});i=z.prototype,i.addEventListener=function(a,b,c,d,e){e=e||0;var f,g,h=this._listeners[a],i=0;for(this!==j||k||j.wake(),null==h&&(this._listeners[a]=h=[]),g=h.length;--g>-1;)f=h[g],f.c===b&&f.s===c?h.splice(g,1):0===i&&f.pr<e&&(i=g+1);h.splice(i,0,{c:b,s:c,up:d,pr:e})},i.removeEventListener=function(a,b){var c,d=this._listeners[a];if(d)for(c=d.length;--c>-1;)if(d[c].c===b)return void d.splice(c,1)},i.dispatchEvent=function(a){var b,c,d,e=this._listeners[a];if(e)for(b=e.length,b>1&&(e=e.slice(0)),c=this._eventTarget;--b>-1;)d=e[b],d&&(d.up?d.c.call(d.s||c,{type:a,target:c}):d.c.call(d.s||c))};var A=a.requestAnimationFrame,B=a.cancelAnimationFrame,C=Date.now||function(){return(new Date).getTime()},D=C();for(g=["ms","moz","webkit","o"],h=g.length;--h>-1&&!A;)A=a[g[h]+"RequestAnimationFrame"],B=a[g[h]+"CancelAnimationFrame"]||a[g[h]+"CancelRequestAnimationFrame"];u("Ticker",function(a,b){var c,e,f,g,h,i=this,l=C(),m=b!==!1&&A?"auto":!1,o=500,q=33,r="tick",s=function(a){var b,d,j=C()-D;j>o&&(l+=j-q),D+=j,i.time=(D-l)/1e3,b=i.time-h,(!c||b>0||a===!0)&&(i.frame++,h+=b+(b>=g?.004:g-b),d=!0),a!==!0&&(f=e(s)),d&&i.dispatchEvent(r)};z.call(i),i.time=i.frame=0,i.tick=function(){s(!0)},i.lagSmoothing=function(a,b){return arguments.length?(o=a||1/n,void(q=Math.min(b,o,0))):1/n>o},i.sleep=function(){null!=f&&(m&&B?B(f):clearTimeout(f),e=p,f=null,i===j&&(k=!1))},i.wake=function(a){null!==f?i.sleep():a?l+=-D+(D=C()):i.frame>10&&(D=C()-o+5),e=0===c?p:m&&A?A:function(a){return setTimeout(a,1e3*(h-i.time)+1|0)},i===j&&(k=!0),s(2)},i.fps=function(a){return arguments.length?(c=a,g=1/(c||60),h=this.time+g,void i.wake()):c},i.useRAF=function(a){return arguments.length?(i.sleep(),m=a,void i.fps(c)):m},i.fps(a),setTimeout(function(){"auto"===m&&i.frame<5&&"hidden"!==(d||{}).visibilityState&&i.useRAF(!1)},1500)}),i=m.Ticker.prototype=new m.events.EventDispatcher,i.constructor=m.Ticker;var E=u("core.Animation",function(a,b){if(this.vars=b=b||{},this._duration=this._totalDuration=a||0,this._delay=Number(b.delay)||0,this._timeScale=1,this._active=b.immediateRender===!0,this.data=b.data,this._reversed=b.reversed===!0,Y){k||j.wake();var c=this.vars.useFrames?X:Y;c.add(this,c._time),this.vars.paused&&this.paused(!0)}});j=E.ticker=new m.Ticker,i=E.prototype,i._dirty=i._gc=i._initted=i._paused=!1,i._totalTime=i._time=0,i._rawPrevTime=-1,i._next=i._last=i._onUpdate=i._timeline=i.timeline=null,i._paused=!1;var F=function(){k&&C()-D>2e3&&("hidden"!==(d||{}).visibilityState||!j.lagSmoothing())&&j.wake();var a=setTimeout(F,2e3);a.unref&&a.unref()};F(),i.play=function(a,b){return null!=a&&this.seek(a,b),this.reversed(!1).paused(!1)},i.pause=function(a,b){return null!=a&&this.seek(a,b),this.paused(!0)},i.resume=function(a,b){return null!=a&&this.seek(a,b),this.paused(!1)},i.seek=function(a,b){return this.totalTime(Number(a),b!==!1)},i.restart=function(a,b){return this.reversed(!1).paused(!1).totalTime(a?-this._delay:0,b!==!1,!0)},i.reverse=function(a,b){return null!=a&&this.seek(a||this.totalDuration(),b),this.reversed(!0).paused(!1)},i.render=function(a,b,c){},i.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},i.isActive=function(){var a,b=this._timeline,c=this._startTime;return!b||!this._gc&&!this._paused&&b.isActive()&&(a=b.rawTime(!0))>=c&&a<c+this.totalDuration()/this._timeScale-1e-7},i._enabled=function(a,b){return k||j.wake(),this._gc=!a,this._active=this.isActive(),b!==!0&&(a&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!a&&this.timeline&&this._timeline._remove(this,!0)),!1},i._kill=function(a,b){return this._enabled(!1,!1)},i.kill=function(a,b){return this._kill(a,b),this},i._uncache=function(a){for(var b=a?this:this.timeline;b;)b._dirty=!0,b=b.timeline;return this},i._swapSelfInParams=function(a){for(var b=a.length,c=a.concat();--b>-1;)"{self}"===a[b]&&(c[b]=this);return c},i._callback=function(a){var b=this.vars,c=b[a],d=b[a+"Params"],e=b[a+"Scope"]||b.callbackScope||this,f=d?d.length:0;switch(f){case 0:c.call(e);break;case 1:c.call(e,d[0]);break;case 2:c.call(e,d[0],d[1]);break;default:c.apply(e,d)}},i.eventCallback=function(a,b,c,d){if("on"===(a||"").substr(0,2)){var e=this.vars;if(1===arguments.length)return e[a];null==b?delete e[a]:(e[a]=b,e[a+"Params"]=q(c)&&-1!==c.join("").indexOf("{self}")?this._swapSelfInParams(c):c,e[a+"Scope"]=d),"onUpdate"===a&&(this._onUpdate=b)}return this},i.delay=function(a){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+a-this._delay),this._delay=a,this):this._delay},i.duration=function(a){return arguments.length?(this._duration=this._totalDuration=a,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&0!==a&&this.totalTime(this._totalTime*(a/this._duration),!0),this):(this._dirty=!1,this._duration)},i.totalDuration=function(a){return this._dirty=!1,arguments.length?this.duration(a):this._totalDuration},i.time=function(a,b){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(a>this._duration?this._duration:a,b)):this._time},i.totalTime=function(a,b,c){if(k||j.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>a&&!c&&(a+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var d=this._totalDuration,e=this._timeline;if(a>d&&!c&&(a=d),this._startTime=(this._paused?this._pauseTime:e._time)-(this._reversed?d-a:a)/this._timeScale,e._dirty||this._uncache(!1),e._timeline)for(;e._timeline;)e._timeline._time!==(e._startTime+e._totalTime)/e._timeScale&&e.totalTime(e._totalTime,!0),e=e._timeline}this._gc&&this._enabled(!0,!1),(this._totalTime!==a||0===this._duration)&&(K.length&&$(),this.render(a,b,!1),K.length&&$())}return this},i.progress=i.totalProgress=function(a,b){var c=this.duration();return arguments.length?this.totalTime(c*a,b):c?this._time/c:this.ratio},i.startTime=function(a){return arguments.length?(a!==this._startTime&&(this._startTime=a,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,a-this._delay)),this):this._startTime},i.endTime=function(a){return this._startTime+(0!=a?this.totalDuration():this.duration())/this._timeScale},i.timeScale=function(a){if(!arguments.length)return this._timeScale;var b,c;for(a=a||n,this._timeline&&this._timeline.smoothChildTiming&&(b=this._pauseTime,c=b||0===b?b:this._timeline.totalTime(), 1593this._startTime=c-(c-this._startTime)*this._timeScale/a),this._timeScale=a,c=this.timeline;c&&c.timeline;)c._dirty=!0,c.totalDuration(),c=c.timeline;return this},i.reversed=function(a){return arguments.length?(a!=this._reversed&&(this._reversed=a,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},i.paused=function(a){if(!arguments.length)return this._paused;var b,c,d=this._timeline;return a!=this._paused&&d&&(k||a||j.wake(),b=d.rawTime(),c=b-this._pauseTime,!a&&d.smoothChildTiming&&(this._startTime+=c,this._uncache(!1)),this._pauseTime=a?b:null,this._paused=a,this._active=this.isActive(),!a&&0!==c&&this._initted&&this.duration()&&(b=d.smoothChildTiming?this._totalTime:(b-this._startTime)/this._timeScale,this.render(b,b===this._totalTime,!0))),this._gc&&!a&&this._enabled(!0,!1),this};var G=u("core.SimpleTimeline",function(a){E.call(this,0,a),this.autoRemoveChildren=this.smoothChildTiming=!0});i=G.prototype=new E,i.constructor=G,i.kill()._gc=!1,i._first=i._last=i._recent=null,i._sortChildren=!1,i.add=i.insert=function(a,b,c,d){var e,f;if(a._startTime=Number(b||0)+a._delay,a._paused&&this!==a._timeline&&(a._pauseTime=this.rawTime()-(a._timeline.rawTime()-a._pauseTime)),a.timeline&&a.timeline._remove(a,!0),a.timeline=a._timeline=this,a._gc&&a._enabled(!0,!0),e=this._last,this._sortChildren)for(f=a._startTime;e&&e._startTime>f;)e=e._prev;return e?(a._next=e._next,e._next=a):(a._next=this._first,this._first=a),a._next?a._next._prev=a:this._last=a,a._prev=e,this._recent=a,this._timeline&&this._uncache(!0),this},i._remove=function(a,b){return a.timeline===this&&(b||a._enabled(!1,!0),a._prev?a._prev._next=a._next:this._first===a&&(this._first=a._next),a._next?a._next._prev=a._prev:this._last===a&&(this._last=a._prev),a._next=a._prev=a.timeline=null,a===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},i.render=function(a,b,c){var d,e=this._first;for(this._totalTime=this._time=this._rawPrevTime=a;e;)d=e._next,(e._active||a>=e._startTime&&!e._paused&&!e._gc)&&(e._reversed?e.render((e._dirty?e.totalDuration():e._totalDuration)-(a-e._startTime)*e._timeScale,b,c):e.render((a-e._startTime)*e._timeScale,b,c)),e=d},i.rawTime=function(){return k||j.wake(),this._totalTime};var H=u("TweenLite",function(b,c,d){if(E.call(this,c,d),this.render=H.prototype.render,null==b)throw"Cannot tween a null target.";this.target=b="string"!=typeof b?b:H.selector(b)||b;var e,f,g,h=b.jquery||b.length&&b!==a&&b[0]&&(b[0]===a||b[0].nodeType&&b[0].style&&!b.nodeType),i=this.vars.overwrite;if(this._overwrite=i=null==i?W[H.defaultOverwrite]:"number"==typeof i?i>>0:W[i],(h||b instanceof Array||b.push&&q(b))&&"number"!=typeof b[0])for(this._targets=g=o(b),this._propLookup=[],this._siblings=[],e=0;e<g.length;e++)f=g[e],f?"string"!=typeof f?f.length&&f!==a&&f[0]&&(f[0]===a||f[0].nodeType&&f[0].style&&!f.nodeType)?(g.splice(e--,1),this._targets=g=g.concat(o(f))):(this._siblings[e]=_(f,this,!1),1===i&&this._siblings[e].length>1&&ba(f,this,null,1,this._siblings[e])):(f=g[e--]=H.selector(f),"string"==typeof f&&g.splice(e+1,1)):g.splice(e--,1);else this._propLookup={},this._siblings=_(b,this,!1),1===i&&this._siblings.length>1&&ba(b,this,null,1,this._siblings);(this.vars.immediateRender||0===c&&0===this._delay&&this.vars.immediateRender!==!1)&&(this._time=-n,this.render(Math.min(0,-this._delay)))},!0),I=function(b){return b&&b.length&&b!==a&&b[0]&&(b[0]===a||b[0].nodeType&&b[0].style&&!b.nodeType)},J=function(a,b){var c,d={};for(c in a)V[c]||c in b&&"transform"!==c&&"x"!==c&&"y"!==c&&"width"!==c&&"height"!==c&&"className"!==c&&"border"!==c||!(!S[c]||S[c]&&S[c]._autoCSS)||(d[c]=a[c],delete a[c]);a.css=d};i=H.prototype=new E,i.constructor=H,i.kill()._gc=!1,i.ratio=0,i._firstPT=i._targets=i._overwrittenProps=i._startAt=null,i._notifyPluginsOfEnabled=i._lazy=!1,H.version="2.0.1",H.defaultEase=i._ease=new w(null,null,1,1),H.defaultOverwrite="auto",H.ticker=j,H.autoSleep=120,H.lagSmoothing=function(a,b){j.lagSmoothing(a,b)},H.selector=a.$||a.jQuery||function(b){var c=a.$||a.jQuery;return c?(H.selector=c,c(b)):(d||(d=a.document),d?d.querySelectorAll?d.querySelectorAll(b):d.getElementById("#"===b.charAt(0)?b.substr(1):b):b)};var K=[],L={},M=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,N=/[\+-]=-?[\.\d]/,O=function(a){for(var b,c=this._firstPT,d=1e-6;c;)b=c.blob?1===a&&null!=this.end?this.end:a?this.join(""):this.start:c.c*a+c.s,c.m?b=c.m.call(this._tween,b,this._target||c.t,this._tween):d>b&&b>-d&&!c.blob&&(b=0),c.f?c.fp?c.t[c.p](c.fp,b):c.t[c.p](b):c.t[c.p]=b,c=c._next},P=function(a,b,c,d){var e,f,g,h,i,j,k,l=[],m=0,n="",o=0;for(l.start=a,l.end=b,a=l[0]=a+"",b=l[1]=b+"",c&&(c(l),a=l[0],b=l[1]),l.length=0,e=a.match(M)||[],f=b.match(M)||[],d&&(d._next=null,d.blob=1,l._firstPT=l._applyPT=d),i=f.length,h=0;i>h;h++)k=f[h],j=b.substr(m,b.indexOf(k,m)-m),n+=j||!h?j:",",m+=j.length,o?o=(o+1)%5:"rgba("===j.substr(-5)&&(o=1),k===e[h]||e.length<=h?n+=k:(n&&(l.push(n),n=""),g=parseFloat(e[h]),l.push(g),l._firstPT={_next:l._firstPT,t:l,p:l.length-1,s:g,c:("="===k.charAt(1)?parseInt(k.charAt(0)+"1",10)*parseFloat(k.substr(2)):parseFloat(k)-g)||0,f:0,m:o&&4>o?Math.round:0}),m+=k.length;return n+=b.substr(m),n&&l.push(n),l.setRatio=O,N.test(b)&&(l.end=null),l},Q=function(a,b,c,d,e,f,g,h,i){"function"==typeof d&&(d=d(i||0,a));var j,k=typeof a[b],l="function"!==k?"":b.indexOf("set")||"function"!=typeof a["get"+b.substr(3)]?b:"get"+b.substr(3),m="get"!==c?c:l?g?a[l](g):a[l]():a[b],n="string"==typeof d&&"="===d.charAt(1),o={t:a,p:b,s:m,f:"function"===k,pg:0,n:e||b,m:f?"function"==typeof f?f:Math.round:0,pr:0,c:n?parseInt(d.charAt(0)+"1",10)*parseFloat(d.substr(2)):parseFloat(d)-m||0};return("number"!=typeof m||"number"!=typeof d&&!n)&&(g||isNaN(m)||!n&&isNaN(d)||"boolean"==typeof m||"boolean"==typeof d?(o.fp=g,j=P(m,n?parseFloat(o.s)+o.c+(o.s+"").replace(/[0-9\-\.]/g,""):d,h||H.defaultStringFilter,o),o={t:j,p:"setRatio",s:0,c:1,f:2,pg:0,n:e||b,pr:0,m:0}):(o.s=parseFloat(m),n||(o.c=parseFloat(d)-o.s||0))),o.c?((o._next=this._firstPT)&&(o._next._prev=o),this._firstPT=o,o):void 0},R=H._internals={isArray:q,isSelector:I,lazyTweens:K,blobDif:P},S=H._plugins={},T=R.tweenLookup={},U=0,V=R.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1,id:1,yoyoEase:1},W={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},X=E._rootFramesTimeline=new G,Y=E._rootTimeline=new G,Z=30,$=R.lazyRender=function(){var a,b=K.length;for(L={};--b>-1;)a=K[b],a&&a._lazy!==!1&&(a.render(a._lazy[0],a._lazy[1],!0),a._lazy=!1);K.length=0};Y._startTime=j.time,X._startTime=j.frame,Y._active=X._active=!0,setTimeout($,1),E._updateRoot=H.render=function(){var a,b,c;if(K.length&&$(),Y.render((j.time-Y._startTime)*Y._timeScale,!1,!1),X.render((j.frame-X._startTime)*X._timeScale,!1,!1),K.length&&$(),j.frame>=Z){Z=j.frame+(parseInt(H.autoSleep,10)||120);for(c in T){for(b=T[c].tweens,a=b.length;--a>-1;)b[a]._gc&&b.splice(a,1);0===b.length&&delete T[c]}if(c=Y._first,(!c||c._paused)&&H.autoSleep&&!X._first&&1===j._listeners.tick.length){for(;c&&c._paused;)c=c._next;c||j.sleep()}}},j.addEventListener("tick",E._updateRoot);var _=function(a,b,c){var d,e,f=a._gsTweenID;if(T[f||(a._gsTweenID=f="t"+U++)]||(T[f]={target:a,tweens:[]}),b&&(d=T[f].tweens,d[e=d.length]=b,c))for(;--e>-1;)d[e]===b&&d.splice(e,1);return T[f].tweens},aa=function(a,b,c,d){var e,f,g=a.vars.onOverwrite;return g&&(e=g(a,b,c,d)),g=H.onOverwrite,g&&(f=g(a,b,c,d)),e!==!1&&f!==!1},ba=function(a,b,c,d,e){var f,g,h,i;if(1===d||d>=4){for(i=e.length,f=0;i>f;f++)if((h=e[f])!==b)h._gc||h._kill(null,a,b)&&(g=!0);else if(5===d)break;return g}var j,k=b._startTime+n,l=[],m=0,o=0===b._duration;for(f=e.length;--f>-1;)(h=e[f])===b||h._gc||h._paused||(h._timeline!==b._timeline?(j=j||ca(b,0,o),0===ca(h,j,o)&&(l[m++]=h)):h._startTime<=k&&h._startTime+h.totalDuration()/h._timeScale>k&&((o||!h._initted)&&k-h._startTime<=2e-10||(l[m++]=h)));for(f=m;--f>-1;)if(h=l[f],2===d&&h._kill(c,a,b)&&(g=!0),2!==d||!h._firstPT&&h._initted){if(2!==d&&!aa(h,b))continue;h._enabled(!1,!1)&&(g=!0)}return g},ca=function(a,b,c){for(var d=a._timeline,e=d._timeScale,f=a._startTime;d._timeline;){if(f+=d._startTime,e*=d._timeScale,d._paused)return-100;d=d._timeline}return f/=e,f>b?f-b:c&&f===b||!a._initted&&2*n>f-b?n:(f+=a.totalDuration()/a._timeScale/e)>b+n?0:f-b-n};i._init=function(){var a,b,c,d,e,f,g=this.vars,h=this._overwrittenProps,i=this._duration,j=!!g.immediateRender,k=g.ease;if(g.startAt){this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),e={};for(d in g.startAt)e[d]=g.startAt[d];if(e.data="isStart",e.overwrite=!1,e.immediateRender=!0,e.lazy=j&&g.lazy!==!1,e.startAt=e.delay=null,e.onUpdate=g.onUpdate,e.onUpdateParams=g.onUpdateParams,e.onUpdateScope=g.onUpdateScope||g.callbackScope||this,this._startAt=H.to(this.target||{},0,e),j)if(this._time>0)this._startAt=null;else if(0!==i)return}else if(g.runBackwards&&0!==i)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{0!==this._time&&(j=!1),c={};for(d in g)V[d]&&"autoCSS"!==d||(c[d]=g[d]);if(c.overwrite=0,c.data="isFromStart",c.lazy=j&&g.lazy!==!1,c.immediateRender=j,this._startAt=H.to(this.target,0,c),j){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=k=k?k instanceof w?k:"function"==typeof k?new w(k,g.easeParams):x[k]||H.defaultEase:H.defaultEase,g.easeParams instanceof Array&&k.config&&(this._ease=k.config.apply(k,g.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(f=this._targets.length,a=0;f>a;a++)this._initProps(this._targets[a],this._propLookup[a]={},this._siblings[a],h?h[a]:null,a)&&(b=!0);else b=this._initProps(this.target,this._propLookup,this._siblings,h,0);if(b&&H._onPluginEvent("_onInitAllProps",this),h&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),g.runBackwards)for(c=this._firstPT;c;)c.s+=c.c,c.c=-c.c,c=c._next;this._onUpdate=g.onUpdate,this._initted=!0}
vendor: 4,158 bytes, line 1593
1593,i._initProps=function(b,c,d,e,f){var g,h,i,j,k,l;if(null==b)return!1;L[b._gsTweenID]&&$(),this.vars.css||b.style&&b!==a&&b.nodeType&&S.css&&this.vars.autoCSS!==!1&&J(this.vars,b);for(g in this.vars)if(l=this.vars[g],V[g])l&&(l instanceof Array||l.push&&q(l))&&-1!==l.join("").indexOf("{self}")&&(this.vars[g]=l=this._swapSelfInParams(l,this));else if(S[g]&&(j=new S[g])._onInitTween(b,this.vars[g],this,f)){for(this._firstPT=k={_next:this._firstPT,t:j,p:"setRatio",s:0,c:1,f:1,n:g,pg:1,pr:j._priority,m:0},h=j._overwriteProps.length;--h>-1;)c[j._overwriteProps[h]]=this._firstPT;(j._priority||j._onInitAllProps)&&(i=!0),(j._onDisable||j._onEnable)&&(this._notifyPluginsOfEnabled=!0),k._next&&(k._next._prev=k)}else c[g]=Q.call(this,b,g,"get",l,g,0,null,this.vars.stringFilter,f);return e&&this._kill(e,b)?this._initProps(b,c,d,e,f):this._overwrite>1&&this._firstPT&&d.length>1&&ba(b,this,c,this._overwrite,d)?(this._kill(c,b),this._initProps(b,c,d,e,f)):(this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(L[b._gsTweenID]=!0),i)},i.render=function(a,b,c){var d,e,f,g,h=this._time,i=this._duration,j=this._rawPrevTime;if(a>=i-1e-7&&a>=0)this._totalTime=this._time=i,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(d=!0,e="onComplete",c=c||this._timeline.autoRemoveChildren),0===i&&(this._initted||!this.vars.lazy||c)&&(this._startTime===this._timeline._duration&&(a=0),(0>j||0>=a&&a>=-1e-7||j===n&&"isPause"!==this.data)&&j!==a&&(c=!0,j>n&&(e="onReverseComplete")),this._rawPrevTime=g=!b||a||j===a?a:n);else if(1e-7>a)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==h||0===i&&j>0)&&(e="onReverseComplete",d=this._reversed),0>a&&(this._active=!1,0===i&&(this._initted||!this.vars.lazy||c)&&(j>=0&&(j!==n||"isPause"!==this.data)&&(c=!0),this._rawPrevTime=g=!b||a||j===a?a:n)),(!this._initted||this._startAt&&this._startAt.progress())&&(c=!0);else if(this._totalTime=this._time=a,this._easeType){var k=a/i,l=this._easeType,m=this._easePower;(1===l||3===l&&k>=.5)&&(k=1-k),3===l&&(k*=2),1===m?k*=k:2===m?k*=k*k:3===m?k*=k*k*k:4===m&&(k*=k*k*k*k),1===l?this.ratio=1-k:2===l?this.ratio=k:.5>a/i?this.ratio=k/2:this.ratio=1-k/2}else this.ratio=this._ease.getRatio(a/i);if(this._time!==h||c){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!c&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=h,this._rawPrevTime=j,K.push(this),void(this._lazy=[a,b]);this._time&&!d?this.ratio=this._ease.getRatio(this._time/i):d&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==h&&a>=0&&(this._active=!0),0===h&&(this._startAt&&(a>=0?this._startAt.render(a,!0,c):e||(e="_dummyGS")),this.vars.onStart&&(0!==this._time||0===i)&&(b||this._callback("onStart"))),f=this._firstPT;f;)f.f?f.t[f.p](f.c*this.ratio+f.s):f.t[f.p]=f.c*this.ratio+f.s,f=f._next;this._onUpdate&&(0>a&&this._startAt&&a!==-1e-4&&this._startAt.render(a,!0,c),b||(this._time!==h||d||c)&&this._callback("onUpdate")),e&&(!this._gc||c)&&(0>a&&this._startAt&&!this._onUpdate&&a!==-1e-4&&this._startAt.render(a,!0,c),d&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!b&&this.vars[e]&&this._callback(e),0===i&&this._rawPrevTime===n&&g!==n&&(this._rawPrevTime=0))}},i._kill=function(a,b,c){if("all"===a&&(a=null),null==a&&(null==b||b===this.target))return this._lazy=!1,this._enabled(!1,!1);b="string"!=typeof b?b||this._targets||this.target:H.selector(b)||b;var d,e,f,g,h,i,j,k,l,m=c&&this._time&&c._startTime===this._startTime&&this._timeline===c._timeline;if((q(b)||I(b))&&"number"!=typeof b[0])for(d=b.length;--d>-1;)this._kill(a,b[d],c)&&(i=!0);else{if(this._targets){for(d=this._targets.length;--d>-1;)if(b===this._targets[d]){h=this._propLookup[d]||{},this._overwrittenProps=this._overwrittenProps||[],e=this._overwrittenProps[d]=a?this._overwrittenProps[d]||{}:"all";break}}else{if(b!==this.target)return!1;h=this._propLookup,e=this._overwrittenProps=a?this._overwrittenProps||{}:"all"}
vendor: 4,295 bytes, lines 1593-1595
1593if(h){if(j=a||h,k=a!==e&&"all"!==e&&a!==h&&("object"!=typeof a||!a._tempKill),c&&(H.onOverwrite||this.vars.onOverwrite)){for(f in j)h[f]&&(l||(l=[]),l.push(f));if((l||!a)&&!aa(this,c,b,l))return!1}for(f in j)(g=h[f])&&(m&&(g.f?g.t[g.p](g.s):g.t[g.p]=g.s,i=!0),g.pg&&g.t._kill(j)&&(i=!0),g.pg&&0!==g.t._overwriteProps.length||(g._prev?g._prev._next=g._next:g===this._firstPT&&(this._firstPT=g._next),g._next&&(g._next._prev=g._prev),g._next=g._prev=null),delete h[f]),k&&(e[f]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return i},i.invalidate=function(){return this._notifyPluginsOfEnabled&&H._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],E.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-n,this.render(Math.min(0,-this._delay))),this},i._enabled=function(a,b){if(k||j.wake(),a&&this._gc){var c,d=this._targets;if(d)for(c=d.length;--c>-1;)this._siblings[c]=_(d[c],this,!0);else this._siblings=_(this.target,this,!0)}return E.prototype._enabled.call(this,a,b),this._notifyPluginsOfEnabled&&this._firstPT?H._onPluginEvent(a?"_onEnable":"_onDisable",this):!1},H.to=function(a,b,c){return new H(a,b,c)},H.from=function(a,b,c){return c.runBackwards=!0,c.immediateRender=0!=c.immediateRender,new H(a,b,c)},H.fromTo=function(a,b,c,d){return d.startAt=c,d.immediateRender=0!=d.immediateRender&&0!=c.immediateRender,new H(a,b,d)},H.delayedCall=function(a,b,c,d,e){return new H(b,0,{delay:a,onComplete:b,onCompleteParams:c,callbackScope:d,onReverseComplete:b,onReverseCompleteParams:c,immediateRender:!1,lazy:!1,useFrames:e,overwrite:0})},H.set=function(a,b){return new H(a,0,b)},H.getTweensOf=function(a,b){if(null==a)return[];a="string"!=typeof a?a:H.selector(a)||a;var c,d,e,f;if((q(a)||I(a))&&"number"!=typeof a[0]){for(c=a.length,d=[];--c>-1;)d=d.concat(H.getTweensOf(a[c],b));for(c=d.length;--c>-1;)for(f=d[c],e=c;--e>-1;)f===d[e]&&d.splice(c,1)}else if(a._gsTweenID)for(d=_(a).concat(),c=d.length;--c>-1;)(d[c]._gc||b&&!d[c].isActive())&&d.splice(c,1);return d||[]},H.killTweensOf=H.killDelayedCallsTo=function(a,b,c){"object"==typeof b&&(c=b,b=!1);for(var d=H.getTweensOf(a,b),e=d.length;--e>-1;)d[e]._kill(c,a)};var da=u("plugins.TweenPlugin",function(a,b){this._overwriteProps=(a||"").split(","),this._propName=this._overwriteProps[0],this._priority=b||0,this._super=da.prototype},!0);if(i=da.prototype,da.version="1.19.0",da.API=2,i._firstPT=null,i._addTween=Q,i.setRatio=O,i._kill=function(a){var b,c=this._overwriteProps,d=this._firstPT;if(null!=a[this._propName])this._overwriteProps=[];else for(b=c.length;--b>-1;)null!=a[c[b]]&&c.splice(b,1);for(;d;)null!=a[d.n]&&(d._next&&(d._next._prev=d._prev),d._prev?(d._prev._next=d._next,d._prev=null):this._firstPT===d&&(this._firstPT=d._next)),d=d._next;return!1},i._mod=i._roundProps=function(a){for(var b,c=this._firstPT;c;)b=a[this._propName]||null!=c.n&&a[c.n.split(this._propName+"_").join("")],b&&"function"==typeof b&&(2===c.f?c.t._applyPT.m=b:c.m=b),c=c._next},H._onPluginEvent=function(a,b){var c,d,e,f,g,h=b._firstPT;if("_onInitAllProps"===a){for(;h;){for(g=h._next,d=e;d&&d.pr>h.pr;)d=d._next;(h._prev=d?d._prev:f)?h._prev._next=h:e=h,(h._next=d)?d._prev=h:f=h,h=g}h=b._firstPT=e}for(;h;)h.pg&&"function"==typeof h.t[a]&&h.t[a]()&&(c=!0),h=h._next;return c},da.activate=function(a){for(var b=a.length;--b>-1;)a[b].API===da.API&&(S[(new a[b])._propName]=a[b]);return!0},t.plugin=function(a){if(!(a&&a.propName&&a.init&&a.API))throw"illegal plugin definition.";var b,c=a.propName,d=a.priority||0,e=a.overwriteProps,f={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},g=u("plugins."+c.charAt(0).toUpperCase()+c.substr(1)+"Plugin",function(){da.call(this,c,d),this._overwriteProps=e||[]},a.global===!0),h=g.prototype=new da(c);h.constructor=g,g.API=a.API;for(b in f)"function"==typeof a[b]&&(h[f[b]]=a[b]);return g.version=a.version,da.activate([g]),g},g=a._gsQueue){for(h=0;h<g.length;h++)g[h]();for(i in r)r[i].func||a.console.log("GSAP encountered missing dependency: "+i)}k=!1}("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,"TweenMax"); 1594 1595return stack;}
vendor: 5,345 bytes, lines 1595-1657
1595)(stacks.com_elixir_stacks_foundryNavBarPro); 1596stacks.com_elixir_stacks_foundryBanner = {}; 1597stacks.com_elixir_stacks_foundryBanner = (function(stack) { 1598var jQuery = stacks.jQuery;var $ = jQuery;/* 1599 * jQuery Easing v1.3.2 - http://gsgd.co.uk/sandbox/jquery/easing/ 1600 * Open source under the BSD License. 1601 * Copyright © 2008 George McGinley Smith 1602 * All rights reserved. 1603 * https://raw.github.com/gdsmith/jquery-easing/master/LICENSE 1604*/ 1605(function(h){h.easing.jswing=h.easing.swing;h.extend(h.easing,{def:"easeOutQuad",swing:function(e,a,c,b,d){return h.easing[h.easing.def](e,a,c,b,d)},easeInQuad:function(e,a,c,b,d){return b*(a/=d)*a+c},easeOutQuad:function(e,a,c,b,d){return-b*(a/=d)*(a-2)+c},easeInOutQuad:function(e,a,c,b,d){return 1>(a/=d/2)?b/2*a*a+c:-b/2*(--a*(a-2)-1)+c},easeInCubic:function(e,a,c,b,d){return b*(a/=d)*a*a+c},easeOutCubic:function(e,a,c,b,d){return b*((a=a/d-1)*a*a+1)+c},easeInOutCubic:function(e,a,c,b,d){return 1> 1606(a/=d/2)?b/2*a*a*a+c:b/2*((a-=2)*a*a+2)+c},easeInQuart:function(e,a,c,b,d){return b*(a/=d)*a*a*a+c},easeOutQuart:function(e,a,c,b,d){return-b*((a=a/d-1)*a*a*a-1)+c},easeInOutQuart:function(e,a,c,b,d){return 1>(a/=d/2)?b/2*a*a*a*a+c:-b/2*((a-=2)*a*a*a-2)+c},easeInQuint:function(e,a,c,b,d){return b*(a/=d)*a*a*a*a+c},easeOutQuint:function(e,a,c,b,d){return b*((a=a/d-1)*a*a*a*a+1)+c},easeInOutQuint:function(e,a,c,b,d){return 1>(a/=d/2)?b/2*a*a*a*a*a+c:b/2*((a-=2)*a*a*a*a+2)+c},easeInSine:function(e,a, 1607c,b,d){return-b*Math.cos(a/d*(Math.PI/2))+b+c},easeOutSine:function(e,a,c,b,d){return b*Math.sin(a/d*(Math.PI/2))+c},easeInOutSine:function(e,a,c,b,d){return-b/2*(Math.cos(Math.PI*a/d)-1)+c},easeInExpo:function(e,a,c,b,d){return 0==a?c:b*Math.pow(2,10*(a/d-1))+c},easeOutExpo:function(e,a,c,b,d){return a==d?c+b:b*(-Math.pow(2,-10*a/d)+1)+c},easeInOutExpo:function(e,a,c,b,d){return 0==a?c:a==d?c+b:1>(a/=d/2)?b/2*Math.pow(2,10*(a-1))+c:b/2*(-Math.pow(2,-10*--a)+2)+c},easeInCirc:function(e,a,c,b,d){return-b* 1608(Math.sqrt(1-(a/=d)*a)-1)+c},easeOutCirc:function(e,a,c,b,d){return b*Math.sqrt(1-(a=a/d-1)*a)+c},easeInOutCirc:function(e,a,c,b,d){return 1>(a/=d/2)?-b/2*(Math.sqrt(1-a*a)-1)+c:b/2*(Math.sqrt(1-(a-=2)*a)+1)+c},easeInElastic:function(e,a,c,b,d){e=1.70158;var f=0,g=b;if(0==a)return c;if(1==(a/=d))return c+b;f||(f=.3*d);g<Math.abs(b)?(g=b,e=f/4):e=f/(2*Math.PI)*Math.asin(b/g);return-(g*Math.pow(2,10*--a)*Math.sin(2*(a*d-e)*Math.PI/f))+c},easeOutElastic:function(e,a,c,b,d){e=1.70158;var f=0,g=b;if(0== 1609a)return c;if(1==(a/=d))return c+b;f||(f=.3*d);g<Math.abs(b)?(g=b,e=f/4):e=f/(2*Math.PI)*Math.asin(b/g);return g*Math.pow(2,-10*a)*Math.sin(2*(a*d-e)*Math.PI/f)+b+c},easeInOutElastic:function(e,a,c,b,d){e=1.70158;var f=0,g=b;if(0==a)return c;if(2==(a/=d/2))return c+b;f||(f=.3*d*1.5);g<Math.abs(b)?(g=b,e=f/4):e=f/(2*Math.PI)*Math.asin(b/g);return 1>a?-.5*g*Math.pow(2,10*--a)*Math.sin(2*(a*d-e)*Math.PI/f)+c:g*Math.pow(2,-10*--a)*Math.sin(2*(a*d-e)*Math.PI/f)*.5+b+c},easeInBack:function(e,a,c,b,d,f){void 0== 1610f&&(f=1.70158);return b*(a/=d)*a*((f+1)*a-f)+c},easeOutBack:function(e,a,c,b,d,f){void 0==f&&(f=1.70158);return b*((a=a/d-1)*a*((f+1)*a+f)+1)+c},easeInOutBack:function(e,a,c,b,d,f){void 0==f&&(f=1.70158);return 1>(a/=d/2)?b/2*a*a*(((f*=1.525)+1)*a-f)+c:b/2*((a-=2)*a*(((f*=1.525)+1)*a+f)+2)+c},easeInBounce:function(e,a,c,b,d){return b-h.easing.easeOutBounce(e,d-a,0,b,d)+c},easeOutBounce:function(e,a,c,b,d){return(a/=d)<1/2.75?7.5625*b*a*a+c:a<2/2.75?b*(7.5625*(a-=1.5/2.75)*a+.75)+c:a<2.5/2.75?b*(7.5625* 1611(a-=2.25/2.75)*a+.9375)+c:b*(7.5625*(a-=2.625/2.75)*a+.984375)+c},easeInOutBounce:function(e,a,c,b,d){return a<d/2?.5*h.easing.easeInBounce(e,2*a,0,b,d)+c:.5*h.easing.easeOutBounce(e,2*a-d,0,b,d)+.5*b+c}})})(jQuery); 1612return stack;})(stacks.com_elixir_stacks_foundryBanner); 1613stacks.com_elixir_stacks_foundrySlider = {}; 1614stacks.com_elixir_stacks_foundrySlider = (function(stack) { 1615var jQuery = stacks.jQuery;var $ = jQuery;/* 1616 * jQuery FlexSlider v2.6.1 1617 * Copyright 2012 WooThemes 1618 * Contributing Author: Tyler Smith 1619 */ 1620; 1621(function ($) { 1622 1623 var focused = true; 1624 1625 //FlexSlider: Object Instance 1626 $.flexslider = function(el, options) { 1627 var slider = $(el); 1628 1629 // making variables public 1630 1631 //if rtl value was not passed and html is in rtl..enable it by default. 1632 if(typeof options.rtl=='undefined' && $('html').attr('dir')=='rtl'){ 1633 options.rtl=true; 1634 } 1635 slider.vars = $.extend({}, $.flexslider.defaults, options); 1636 1637 var namespace = slider.vars.namespace, 1638 msGesture = window.navigator && window.navigator.msPointerEnabled && window.MSGesture, 1639 touch = (( "ontouchstart" in window ) || msGesture || window.DocumentTouch && document instanceof DocumentTouch) && slider.vars.touch, 1640 // depricating this idea, as devices are being released with both of these events 1641 eventType = "click touchend MSPointerUp keyup", 1642 watchedEvent = "", 1643 watchedEventClearTimer, 1644 vertical = slider.vars.direction === "vertical", 1645 reverse = slider.vars.reverse, 1646 carousel = (slider.vars.itemWidth > 0), 1647 fade = slider.vars.animation === "fade", 1648 asNav = slider.vars.asNavFor !== "", 1649 methods = {}; 1650 1651 // Store a reference to the slider object 1652 $.data(el, "flexslider", slider); 1653 1654 // Private slider methods 1655 methods = { 1656 init: function() { 1657 slider.animating = false;
vendor: 9,114 bytes, lines 1658-1854
1658 // Get current slide and make sure it is a number 1659 slider.currentSlide = parseInt( ( slider.vars.startAt ? slider.vars.startAt : 0), 10 ); 1660 if ( isNaN( slider.currentSlide ) ) { slider.currentSlide = 0; } 1661 slider.animatingTo = slider.currentSlide; 1662 slider.atEnd = (slider.currentSlide === 0 || slider.currentSlide === slider.last); 1663 slider.containerSelector = slider.vars.selector.substr(0,slider.vars.selector.search(' ')); 1664 slider.slides = $(slider.vars.selector, slider); 1665 slider.container = $(slider.containerSelector, slider); 1666 slider.count = slider.slides.length; 1667 // SYNC: 1668 slider.syncExists = $(slider.vars.sync).length > 0; 1669 // SLIDE: 1670 if (slider.vars.animation === "slide") { slider.vars.animation = "swing"; } 1671 slider.prop = (vertical) ? "top" : ( slider.vars.rtl ? "marginRight" : "marginLeft" ); 1672 slider.args = {}; 1673 // SLIDESHOW: 1674 slider.manualPause = false; 1675 slider.stopped = false; 1676 //PAUSE WHEN INVISIBLE 1677 slider.started = false; 1678 slider.startTimeout = null; 1679 // TOUCH/USECSS: 1680 slider.transitions = !slider.vars.video && !fade && slider.vars.useCSS && (function() { 1681 var obj = document.createElement('div'), 1682 props = ['perspectiveProperty', 'WebkitPerspective', 'MozPerspective', 'OPerspective', 'msPerspective']; 1683 for (var i in props) { 1684 if ( obj.style[ props[i] ] !== undefined ) { 1685 slider.pfx = props[i].replace('Perspective','').toLowerCase(); 1686 slider.prop = "-" + slider.pfx + "-transform"; 1687 return true; 1688 } 1689 } 1690 return false; 1691 }()); 1692 slider.ensureAnimationEnd = ''; 1693 // CONTROLSCONTAINER: 1694 if (slider.vars.controlsContainer !== "") slider.controlsContainer = $(slider.vars.controlsContainer).length > 0 && $(slider.vars.controlsContainer); 1695 // MANUAL: 1696 if (slider.vars.manualControls !== "") slider.manualControls = $(slider.vars.manualControls).length > 0 && $(slider.vars.manualControls); 1697 1698 // CUSTOM DIRECTION NAV: 1699 if (slider.vars.customDirectionNav !== "") slider.customDirectionNav = $(slider.vars.customDirectionNav).length === 2 && $(slider.vars.customDirectionNav); 1700 1701 // RANDOMIZE: 1702 if (slider.vars.randomize) { 1703 slider.slides.sort(function() { return (Math.round(Math.random())-0.5); }); 1704 slider.container.empty().append(slider.slides); 1705 } 1706 1707 slider.doMath(); 1708 1709 // INIT 1710 slider.setup("init"); 1711 1712 // CONTROLNAV: 1713 if (slider.vars.controlNav) { methods.controlNav.setup(); } 1714 1715 // DIRECTIONNAV: 1716 if (slider.vars.directionNav) { methods.directionNav.setup(); } 1717 1718 // KEYBOARD: 1719 if (slider.vars.keyboard && ($(slider.containerSelector).length === 1 || slider.vars.multipleKeyboard)) { 1720 $(document).bind('keyup', function(event) { 1721 var keycode = event.keyCode; 1722 if (!slider.animating && (keycode === 39 || keycode === 37)) { 1723 var target = (slider.vars.rtl? 1724 ((keycode === 37) ? slider.getTarget('next') : 1725 (keycode === 39) ? slider.getTarget('prev') : false) 1726 : 1727 ((keycode === 39) ? slider.getTarget('next') : 1728 (keycode === 37) ? slider.getTarget('prev') : false) 1729 ) 1730 ; 1731 slider.flexAnimate(target, slider.vars.pauseOnAction); 1732 } 1733 }); 1734 } 1735 // MOUSEWHEEL: 1736 if (slider.vars.mousewheel) { 1737 slider.bind('mousewheel', function(event, delta, deltaX, deltaY) { 1738 event.preventDefault(); 1739 var target = (delta < 0) ? slider.getTarget('next') : slider.getTarget('prev'); 1740 slider.flexAnimate(target, slider.vars.pauseOnAction); 1741 }); 1742 } 1743 1744 // PAUSEPLAY 1745 if (slider.vars.pausePlay) { methods.pausePlay.setup(); } 1746 1747 //PAUSE WHEN INVISIBLE 1748 if (slider.vars.slideshow && slider.vars.pauseInvisible) { methods.pauseInvisible.init(); } 1749 1750 // SLIDSESHOW 1751 if (slider.vars.slideshow) { 1752 if (slider.vars.pauseOnHover) { 1753 slider.hover(function() { 1754 if (!slider.manualPlay && !slider.manualPause) { slider.pause(); } 1755 }, function() { 1756 if (!slider.manualPause && !slider.manualPlay && !slider.stopped) { slider.play(); } 1757 }); 1758 } 1759 // initialize animation 1760 //If we're visible, or we don't use PageVisibility API 1761 if(!slider.vars.pauseInvisible || !methods.pauseInvisible.isHidden()) { 1762 (slider.vars.initDelay > 0) ? slider.startTimeout = setTimeout(slider.play, slider.vars.initDelay) : slider.play(); 1763 } 1764 } 1765 1766 // ASNAV: 1767 if (asNav) { methods.asNav.setup(); } 1768 1769 // TOUCH 1770 if (touch && slider.vars.touch) { methods.touch(); } 1771 1772 // FADE&&SMOOTHHEIGHT || SLIDE: 1773 if (!fade || (fade && slider.vars.smoothHeight)) { $(window).bind("resize orientationchange focus", methods.resize); } 1774 1775 slider.find("img").attr("draggable", "false"); 1776 1777 // API: start() Callback 1778 setTimeout(function(){ 1779 slider.vars.start(slider); 1780 }, 200); 1781 }, 1782 asNav: { 1783 setup: function() { 1784 slider.asNav = true; 1785 slider.animatingTo = Math.floor(slider.currentSlide/slider.move); 1786 slider.currentItem = slider.currentSlide; 1787 slider.slides.removeClass(namespace + "active-slide").eq(slider.currentItem).addClass(namespace + "active-slide"); 1788 if(!msGesture){ 1789 slider.slides.on(eventType, function(e){ 1790 e.preventDefault(); 1791 var $slide = $(this), 1792 target = $slide.index(); 1793 var posFromX; 1794 if(slider.vars.rtl){ 1795 posFromX = -1*($slide.offset().right - $(slider).scrollLeft()); // Find position of slide relative to right of slider container 1796 } 1797 else 1798 { 1799 posFromX = $slide.offset().left - $(slider).scrollLeft(); // Find position of slide relative to left of slider container 1800 } 1801 if( posFromX <= 0 && $slide.hasClass( namespace + 'active-slide' ) ) { 1802 slider.flexAnimate(slider.getTarget("prev"), true); 1803 } else if (!$(slider.vars.asNavFor).data('flexslider').animating && !$slide.hasClass(namespace + "active-slide")) { 1804 slider.direction = (slider.currentItem < target) ? "next" : "prev"; 1805 slider.flexAnimate(target, slider.vars.pauseOnAction, false, true, true); 1806 } 1807 }); 1808 }else{ 1809 el._slider = slider; 1810 slider.slides.each(function (){ 1811 var that = this; 1812 that._gesture = new MSGesture(); 1813 that._gesture.target = that; 1814 that.addEventListener("MSPointerDown", function (e){ 1815 e.preventDefault(); 1816 if(e.currentTarget._gesture) { 1817 e.currentTarget._gesture.addPointer(e.pointerId); 1818 } 1819 }, false); 1820 that.addEventListener("MSGestureTap", function (e){ 1821 e.preventDefault(); 1822 var $slide = $(this), 1823 target = $slide.index(); 1824 if (!$(slider.vars.asNavFor).data('flexslider').animating && !$slide.hasClass('active')) { 1825 slider.direction = (slider.currentItem < target) ? "next" : "prev"; 1826 slider.flexAnimate(target, slider.vars.pauseOnAction, false, true, true); 1827 } 1828 }); 1829 }); 1830 } 1831 } 1832 }, 1833 controlNav: { 1834 setup: function() { 1835 if (!slider.manualControls) { 1836 methods.controlNav.setupPaging(); 1837 } else { // MANUALCONTROLS: 1838 methods.controlNav.setupManual(); 1839 } 1840 }, 1841 setupPaging: function() { 1842 var type = (slider.vars.controlNav === "thumbnails") ? 'control-thumbs' : 'control-paging', 1843 j = 1, 1844 item, 1845 slide; 1846 1847 slider.controlNavScaffold = $('<ol class="'+ namespace + 'control-nav ' + namespace + type + '"></ol>'); 1848 1849 if (slider.pagingCount > 1) { 1850 for (var i = 0; i < slider.pagingCount; i++) { 1851 slide = slider.slides.eq(i); 1852 if ( undefined === slide.attr( 'data-thumb-alt' ) ) { slide.attr( 'data-thumb-alt', '' ); } 1853 var altText = ( '' !== slide.attr( 'data-thumb-alt' ) ) ? altText = ' alt="' + slide.attr( 'data-thumb-alt' ) + '"' : ''; 1854 item = (slider.vars.controlNav === "thumbnails") ? '<img src="' + slide.attr( 'data-thumb' ) + '"' + altText + '/>' : '<a href="#">
1854' + j + '</a>'; 1855 if ( 'thumbnails' === slider.vars.controlNav && true === slider.vars.thumbCaptions ) { 1856 var captn = slide.attr( 'data-thumbcaption' ); 1857 if ( '' !== captn && undefined !== captn ) { item += '<span class="' + namespace + 'caption">' + captn + '</span>'; } 1858 } 1859 slider.controlNavScaffold.append('<li>' + item + '</li>'); 1860 j++;
vendor: 16,399 bytes, lines 1860-2239
1860 1861 } 1862 } 1863 1864 // CONTROLSCONTAINER: 1865 (slider.controlsContainer) ? $(slider.controlsContainer).append(slider.controlNavScaffold) : slider.append(slider.controlNavScaffold); 1866 methods.controlNav.set(); 1867 1868 methods.controlNav.active(); 1869 1870 slider.controlNavScaffold.delegate('a, img', eventType, function(event) { 1871 event.preventDefault(); 1872 1873 if (watchedEvent === "" || watchedEvent === event.type) { 1874 var $this = $(this), 1875 target = slider.controlNav.index($this); 1876 1877 if (!$this.hasClass(namespace + 'active')) { 1878 slider.direction = (target > slider.currentSlide) ? "next" : "prev"; 1879 slider.flexAnimate(target, slider.vars.pauseOnAction); 1880 } 1881 } 1882 1883 // setup flags to prevent event duplication 1884 if (watchedEvent === "") { 1885 watchedEvent = event.type; 1886 } 1887 methods.setToClearWatchedEvent(); 1888 1889 }); 1890 }, 1891 setupManual: function() { 1892 slider.controlNav = slider.manualControls; 1893 methods.controlNav.active(); 1894 1895 slider.controlNav.bind(eventType, function(event) { 1896 event.preventDefault(); 1897 1898 if (watchedEvent === "" || watchedEvent === event.type) { 1899 var $this = $(this), 1900 target = slider.controlNav.index($this); 1901 1902 if (!$this.hasClass(namespace + 'active')) { 1903 (target > slider.currentSlide) ? slider.direction = "next" : slider.direction = "prev"; 1904 slider.flexAnimate(target, slider.vars.pauseOnAction); 1905 } 1906 } 1907 1908 // setup flags to prevent event duplication 1909 if (watchedEvent === "") { 1910 watchedEvent = event.type; 1911 } 1912 methods.setToClearWatchedEvent(); 1913 }); 1914 }, 1915 set: function() { 1916 var selector = (slider.vars.controlNav === "thumbnails") ? 'img' : 'a'; 1917 slider.controlNav = $('.' + namespace + 'control-nav li ' + selector, (slider.controlsContainer) ? slider.controlsContainer : slider); 1918 }, 1919 active: function() { 1920 slider.controlNav.removeClass(namespace + "active").eq(slider.animatingTo).addClass(namespace + "active"); 1921 }, 1922 update: function(action, pos) { 1923 if (slider.pagingCount > 1 && action === "add") { 1924 slider.controlNavScaffold.append($('<li><a href="#">' + slider.count + '</a></li>')); 1925 } else if (slider.pagingCount === 1) { 1926 slider.controlNavScaffold.find('li').remove(); 1927 } else { 1928 slider.controlNav.eq(pos).closest('li').remove(); 1929 } 1930 methods.controlNav.set(); 1931 (slider.pagingCount > 1 && slider.pagingCount !== slider.controlNav.length) ? slider.update(pos, action) : methods.controlNav.active(); 1932 } 1933 }, 1934 directionNav: { 1935 setup: function() { 1936 var directionNavScaffold = $('<ul class="' + namespace + 'direction-nav"><li class="' + namespace + 'nav-prev"><a class="' + namespace + 'prev" href="#">' + slider.vars.prevText + '</a></li><li class="' + namespace + 'nav-next"><a class="' + namespace + 'next" href="#">' + slider.vars.nextText + '</a></li></ul>'); 1937 1938 // CUSTOM DIRECTION NAV: 1939 if (slider.customDirectionNav) { 1940 slider.directionNav = slider.customDirectionNav; 1941 // CONTROLSCONTAINER: 1942 } else if (slider.controlsContainer) { 1943 $(slider.controlsContainer).append(directionNavScaffold); 1944 slider.directionNav = $('.' + namespace + 'direction-nav li a', slider.controlsContainer); 1945 } else { 1946 slider.append(directionNavScaffold); 1947 slider.directionNav = $('.' + namespace + 'direction-nav li a', slider); 1948 } 1949 1950 methods.directionNav.update(); 1951 1952 slider.directionNav.bind(eventType, function(event) { 1953 event.preventDefault(); 1954 var target; 1955 1956 if (watchedEvent === "" || watchedEvent === event.type) { 1957 target = ($(this).hasClass(namespace + 'next')) ? slider.getTarget('next') : slider.getTarget('prev'); 1958 slider.flexAnimate(target, slider.vars.pauseOnAction); 1959 } 1960 1961 // setup flags to prevent event duplication 1962 if (watchedEvent === "") { 1963 watchedEvent = event.type; 1964 } 1965 methods.setToClearWatchedEvent(); 1966 }); 1967 }, 1968 update: function() { 1969 var disabledClass = namespace + 'disabled'; 1970 if (slider.pagingCount === 1) { 1971 slider.directionNav.addClass(disabledClass).attr('tabindex', '-1'); 1972 } else if (!slider.vars.animationLoop) { 1973 if (slider.animatingTo === 0) { 1974 slider.directionNav.removeClass(disabledClass).filter('.' + namespace + "prev").addClass(disabledClass).attr('tabindex', '-1'); 1975 } else if (slider.animatingTo === slider.last) { 1976 slider.directionNav.removeClass(disabledClass).filter('.' + namespace + "next").addClass(disabledClass).attr('tabindex', '-1'); 1977 } else { 1978 slider.directionNav.removeClass(disabledClass).removeAttr('tabindex'); 1979 } 1980 } else { 1981 slider.directionNav.removeClass(disabledClass).removeAttr('tabindex'); 1982 } 1983 } 1984 }, 1985 pausePlay: { 1986 setup: function() { 1987 var pausePlayScaffold = $('<div class="' + namespace + 'pauseplay"><a href="#"></a></div>'); 1988 1989 // CONTROLSCONTAINER: 1990 if (slider.controlsContainer) { 1991 slider.controlsContainer.append(pausePlayScaffold); 1992 slider.pausePlay = $('.' + namespace + 'pauseplay a', slider.controlsContainer); 1993 } else { 1994 slider.append(pausePlayScaffold); 1995 slider.pausePlay = $('.' + namespace + 'pauseplay a', slider); 1996 } 1997 1998 methods.pausePlay.update((slider.vars.slideshow) ? namespace + 'pause' : namespace + 'play'); 1999 2000 slider.pausePlay.bind(eventType, function(event) { 2001 event.preventDefault(); 2002 2003 if (watchedEvent === "" || watchedEvent === event.type) { 2004 if ($(this).hasClass(namespace + 'pause')) { 2005 slider.manualPause = true; 2006 slider.manualPlay = false; 2007 slider.pause(); 2008 } else { 2009 slider.manualPause = false; 2010 slider.manualPlay = true; 2011 slider.play(); 2012 } 2013 } 2014 2015 // setup flags to prevent event duplication 2016 if (watchedEvent === "") { 2017 watchedEvent = event.type; 2018 } 2019 methods.setToClearWatchedEvent(); 2020 }); 2021 }, 2022 update: function(state) { 2023 (state === "play") ? slider.pausePlay.removeClass(namespace + 'pause').addClass(namespace + 'play').html(slider.vars.playText) : slider.pausePlay.removeClass(namespace + 'play').addClass(namespace + 'pause').html(slider.vars.pauseText); 2024 } 2025 }, 2026 touch: function() { 2027 var startX, 2028 startY, 2029 offset, 2030 cwidth, 2031 dx, 2032 startT, 2033 onTouchStart, 2034 onTouchMove, 2035 onTouchEnd, 2036 scrolling = false, 2037 localX = 0, 2038 localY = 0, 2039 accDx = 0; 2040 2041 if(!msGesture){ 2042 onTouchStart = function(e) { 2043 if (slider.animating) { 2044 e.preventDefault(); 2045 } else if ( ( window.navigator.msPointerEnabled ) || e.touches.length === 1 ) { 2046 slider.pause(); 2047 // CAROUSEL: 2048 cwidth = (vertical) ? slider.h : slider. w; 2049 startT = Number(new Date()); 2050 // CAROUSEL: 2051 2052 // Local vars for X and Y points. 2053 localX = e.touches[0].pageX; 2054 localY = e.touches[0].pageY; 2055 2056 offset = (carousel && reverse && slider.animatingTo === slider.last) ? 0 : 2057 (carousel && reverse) ? slider.limit - (((slider.itemW + slider.vars.itemMargin) * slider.move) * slider.animatingTo) : 2058 (carousel && slider.currentSlide === slider.last) ? slider.limit : 2059 (carousel) ? ((slider.itemW + slider.vars.itemMargin) * slider.move) * slider.currentSlide : 2060 (reverse) ? (slider.last - slider.currentSlide + slider.cloneOffset) * cwidth : (slider.currentSlide + slider.cloneOffset) * cwidth; 2061 startX = (vertical) ? localY : localX; 2062 startY = (vertical) ? localX : localY; 2063 el.addEventListener('touchmove', onTouchMove, false); 2064 el.addEventListener('touchend', onTouchEnd, false); 2065 } 2066 }; 2067 2068 onTouchMove = function(e) { 2069 // Local vars for X and Y points. 2070 2071 localX = e.touches[0].pageX; 2072 localY = e.touches[0].pageY; 2073 2074 dx = (vertical) ? startX - localY : (slider.vars.rtl?-1:1)*(startX - localX); 2075 scrolling = (vertical) ? (Math.abs(dx) < Math.abs(localX - startY)) : (Math.abs(dx) < Math.abs(localY - startY)); 2076 var fxms = 500; 2077 2078 if ( ! scrolling || Number( new Date() ) - startT > fxms ) { 2079 e.preventDefault(); 2080 if (!fade && slider.transitions) { 2081 if (!slider.vars.animationLoop) { 2082 dx = dx/((slider.currentSlide === 0 && dx < 0 || slider.currentSlide === slider.last && dx > 0) ? (Math.abs(dx)/cwidth+2) : 1); 2083 } 2084 slider.setProps(offset + dx, "setTouch"); 2085 } 2086 } 2087 }; 2088 2089 onTouchEnd = function(e) { 2090 // finish the touch by undoing the touch session 2091 el.removeEventListener('touchmove', onTouchMove, false); 2092 2093 if (slider.animatingTo === slider.currentSlide && !scrolling && !(dx === null)) { 2094 var updateDx = (reverse) ? -dx : dx, 2095 target = (updateDx > 0) ? slider.getTarget('next') : slider.getTarget('prev'); 2096 2097 if (slider.canAdvance(target) && (Number(new Date()) - startT < 550 && Math.abs(updateDx) > 50 || Math.abs(updateDx) > cwidth/2)) { 2098 slider.flexAnimate(target, slider.vars.pauseOnAction); 2099 } else { 2100 if (!fade) { slider.flexAnimate(slider.currentSlide, slider.vars.pauseOnAction, true); } 2101 } 2102 } 2103 el.removeEventListener('touchend', onTouchEnd, false); 2104 2105 startX = null; 2106 startY = null; 2107 dx = null; 2108 offset = null; 2109 }; 2110 2111 el.addEventListener('touchstart', onTouchStart, false); 2112 }else{ 2113 el.style.msTouchAction = "none"; 2114 el._gesture = new MSGesture(); 2115 el._gesture.target = el; 2116 el.addEventListener("MSPointerDown", onMSPointerDown, false); 2117 el._slider = slider; 2118 el.addEventListener("MSGestureChange", onMSGestureChange, false); 2119 el.addEventListener("MSGestureEnd", onMSGestureEnd, false); 2120 2121 function onMSPointerDown(e){ 2122 e.stopPropagation(); 2123 if (slider.animating) { 2124 e.preventDefault(); 2125 }else{ 2126 slider.pause(); 2127 el._gesture.addPointer(e.pointerId); 2128 accDx = 0; 2129 cwidth = (vertical) ? slider.h : slider. w; 2130 startT = Number(new Date()); 2131 // CAROUSEL: 2132 2133 offset = (carousel && reverse && slider.animatingTo === slider.last) ? 0 : 2134 (carousel && reverse) ? slider.limit - (((slider.itemW + slider.vars.itemMargin) * slider.move) * slider.animatingTo) : 2135 (carousel && slider.currentSlide === slider.last) ? slider.limit : 2136 (carousel) ? ((slider.itemW + slider.vars.itemMargin) * slider.move) * slider.currentSlide : 2137 (reverse) ? (slider.last - slider.currentSlide + slider.cloneOffset) * cwidth : (slider.currentSlide + slider.cloneOffset) * cwidth; 2138 } 2139 } 2140 2141 function onMSGestureChange(e) { 2142 e.stopPropagation(); 2143 var slider = e.target._slider; 2144 if(!slider){ 2145 return; 2146 } 2147 var transX = -e.translationX, 2148 transY = -e.translationY; 2149 2150 //Accumulate translations. 2151 accDx = accDx + ((vertical) ? transY : transX); 2152 dx = (slider.vars.rtl?-1:1)*accDx; 2153 scrolling = (vertical) ? (Math.abs(accDx) < Math.abs(-transX)) : (Math.abs(accDx) < Math.abs(-transY)); 2154 2155 if(e.detail === e.MSGESTURE_FLAG_INERTIA){ 2156 setImmediate(function (){ 2157 el._gesture.stop(); 2158 }); 2159 2160 return; 2161 } 2162 2163 if (!scrolling || Number(new Date()) - startT > 500) { 2164 e.preventDefault(); 2165 if (!fade && slider.transitions) { 2166 if (!slider.vars.animationLoop) { 2167 dx = accDx / ((slider.currentSlide === 0 && accDx < 0 || slider.currentSlide === slider.last && accDx > 0) ? (Math.abs(accDx) / cwidth + 2) : 1); 2168 } 2169 slider.setProps(offset + dx, "setTouch"); 2170 } 2171 } 2172 } 2173 2174 function onMSGestureEnd(e) { 2175 e.stopPropagation(); 2176 var slider = e.target._slider; 2177 if(!slider){ 2178 return; 2179 } 2180 if (slider.animatingTo === slider.currentSlide && !scrolling && !(dx === null)) { 2181 var updateDx = (reverse) ? -dx : dx, 2182 target = (updateDx > 0) ? slider.getTarget('next') : slider.getTarget('prev'); 2183 2184 if (slider.canAdvance(target) && (Number(new Date()) - startT < 550 && Math.abs(updateDx) > 50 || Math.abs(updateDx) > cwidth/2)) { 2185 slider.flexAnimate(target, slider.vars.pauseOnAction); 2186 } else { 2187 if (!fade) { slider.flexAnimate(slider.currentSlide, slider.vars.pauseOnAction, true); } 2188 } 2189 } 2190 2191 startX = null; 2192 startY = null; 2193 dx = null; 2194 offset = null; 2195 accDx = 0; 2196 } 2197 } 2198 }, 2199 resize: function() { 2200 if (!slider.animating && slider.is(':visible')) { 2201 if (!carousel) { slider.doMath(); } 2202 2203 if (fade) { 2204 // SMOOTH HEIGHT: 2205 methods.smoothHeight(); 2206 } else if (carousel) { //CAROUSEL: 2207 slider.slides.width(slider.computedW); 2208 slider.update(slider.pagingCount); 2209 slider.setProps(); 2210 } 2211 else if (vertical) { //VERTICAL: 2212 slider.viewport.height(slider.h); 2213 slider.setProps(slider.h, "setTotal"); 2214 } else { 2215 // SMOOTH HEIGHT: 2216 if (slider.vars.smoothHeight) { methods.smoothHeight(); } 2217 slider.newSlides.width(slider.computedW); 2218 slider.setProps(slider.computedW, "setTotal"); 2219 } 2220 } 2221 }, 2222 smoothHeight: function(dur) { 2223 if (!vertical || fade) { 2224 var $obj = (fade) ? slider : slider.viewport; 2225 (dur) ? $obj.animate({"height": slider.slides.eq(slider.animatingTo).innerHeight()}, dur) : $obj.innerHeight(slider.slides.eq(slider.animatingTo).innerHeight()); 2226 } 2227 }, 2228 sync: function(action) { 2229 var $obj = $(slider.vars.sync).data("flexslider"), 2230 target = slider.animatingTo; 2231 2232 switch (action) { 2233 case "animate": $obj.flexAnimate(target, slider.vars.pauseOnAction, false, true); break; 2234 case "play": if (!$obj.playing && !$obj.asNav) { $obj.play(); } break; 2235 case "pause": $obj.pause(); break; 2236 } 2237 }, 2238 uniqueID: function($clone) { 2239 // Append _clone to current level and children elements with id attributes
2240 2241 // Removed in v1.0.2.0 to allow infinite scroll loops with content slides. 2242 2243 // $clone.filter( '[id]' ).add($clone.find( '[id]' )).each(function() { 2244 // var $this = $(this); 2245 // $this.attr( 'id', $this.attr( 'id' ) + '_clone' ); 2246 //
vendor: 6,844 bytes, lines 2246-2412
2246 }); 2247 return $clone; 2248 }, 2249 pauseInvisible: { 2250 visProp: null, 2251 init: function() { 2252 var visProp = methods.pauseInvisible.getHiddenProp(); 2253 if (visProp) { 2254 var evtname = visProp.replace(/[H|h]idden/,'') + 'visibilitychange'; 2255 document.addEventListener(evtname, function() { 2256 if (methods.pauseInvisible.isHidden()) { 2257 if(slider.startTimeout) { 2258 clearTimeout(slider.startTimeout); //If clock is ticking, stop timer and prevent from starting while invisible 2259 } else { 2260 slider.pause(); //Or just pause 2261 } 2262 } 2263 else { 2264 if(slider.started) { 2265 slider.play(); //Initiated before, just play 2266 } else { 2267 if (slider.vars.initDelay > 0) { 2268 setTimeout(slider.play, slider.vars.initDelay); 2269 } else { 2270 slider.play(); //Didn't init before: simply init or wait for it 2271 } 2272 } 2273 } 2274 }); 2275 } 2276 }, 2277 isHidden: function() { 2278 var prop = methods.pauseInvisible.getHiddenProp(); 2279 if (!prop) { 2280 return false; 2281 } 2282 return document[prop]; 2283 }, 2284 getHiddenProp: function() { 2285 var prefixes = ['webkit','moz','ms','o']; 2286 // if 'hidden' is natively supported just return it 2287 if ('hidden' in document) { 2288 return 'hidden'; 2289 } 2290 // otherwise loop over all the known prefixes until we find one 2291 for ( var i = 0; i < prefixes.length; i++ ) { 2292 if ((prefixes[i] + 'Hidden') in document) { 2293 return prefixes[i] + 'Hidden'; 2294 } 2295 } 2296 // otherwise it's not supported 2297 return null; 2298 } 2299 }, 2300 setToClearWatchedEvent: function() { 2301 clearTimeout(watchedEventClearTimer); 2302 watchedEventClearTimer = setTimeout(function() { 2303 watchedEvent = ""; 2304 }, 3000); 2305 } 2306 }; 2307 2308 // public methods 2309 slider.flexAnimate = function(target, pause, override, withSync, fromNav) { 2310 if (!slider.vars.animationLoop && target !== slider.currentSlide) { 2311 slider.direction = (target > slider.currentSlide) ? "next" : "prev"; 2312 } 2313 2314 if (asNav && slider.pagingCount === 1) slider.direction = (slider.currentItem < target) ? "next" : "prev"; 2315 2316 if (!slider.animating && (slider.canAdvance(target, fromNav) || override) && slider.is(":visible")) { 2317 if (asNav && withSync) { 2318 var master = $(slider.vars.asNavFor).data('flexslider'); 2319 slider.atEnd = target === 0 || target === slider.count - 1; 2320 master.flexAnimate(target, true, false, true, fromNav); 2321 slider.direction = (slider.currentItem < target) ? "next" : "prev"; 2322 master.direction = slider.direction; 2323 2324 if (Math.ceil((target + 1)/slider.visible) - 1 !== slider.currentSlide && target !== 0) { 2325 slider.currentItem = target; 2326 slider.slides.removeClass(namespace + "active-slide").eq(target).addClass(namespace + "active-slide"); 2327 target = Math.floor(target/slider.visible); 2328 } else { 2329 slider.currentItem = target; 2330 slider.slides.removeClass(namespace + "active-slide").eq(target).addClass(namespace + "active-slide"); 2331 return false; 2332 } 2333 } 2334 2335 slider.animating = true; 2336 slider.animatingTo = target; 2337 2338 // SLIDESHOW: 2339 if (pause) { slider.pause(); } 2340 2341 // API: before() animation Callback 2342 slider.vars.before(slider); 2343 2344 // SYNC: 2345 if (slider.syncExists && !fromNav) { methods.sync("animate"); } 2346 2347 // CONTROLNAV 2348 if (slider.vars.controlNav) { methods.controlNav.active(); } 2349 2350 // !CAROUSEL: 2351 // CANDIDATE: slide active class (for add/remove slide) 2352 if (!carousel) { slider.slides.removeClass(namespace + 'active-slide').eq(target).addClass(namespace + 'active-slide'); } 2353 2354 // INFINITE LOOP: 2355 // CANDIDATE: atEnd 2356 slider.atEnd = target === 0 || target === slider.last; 2357 2358 // DIRECTIONNAV: 2359 if (slider.vars.directionNav) { methods.directionNav.update(); } 2360 2361 if (target === slider.last) { 2362 // API: end() of cycle Callback 2363 slider.vars.end(slider); 2364 // SLIDESHOW && !INFINITE LOOP: 2365 if (!slider.vars.animationLoop) { slider.pause(); } 2366 } 2367 2368 // SLIDE: 2369 if (!fade) { 2370 var dimension = (vertical) ? slider.slides.filter(':first').height() : slider.computedW, 2371 margin, slideString, calcNext; 2372 2373 // INFINITE LOOP / REVERSE: 2374 if (carousel) { 2375 margin = slider.vars.itemMargin; 2376 calcNext = ((slider.itemW + margin) * slider.move) * slider.animatingTo; 2377 slideString = (calcNext > slider.limit && slider.visible !== 1) ? slider.limit : calcNext; 2378 } else if (slider.currentSlide === 0 && target === slider.count - 1 && slider.vars.animationLoop && slider.direction !== "next") { 2379 slideString = (reverse) ? (slider.count + slider.cloneOffset) * dimension : 0; 2380 } else if (slider.currentSlide === slider.last && target === 0 && slider.vars.animationLoop && slider.direction !== "prev") { 2381 slideString = (reverse) ? 0 : (slider.count + 1) * dimension; 2382 } else { 2383 slideString = (reverse) ? ((slider.count - 1) - target + slider.cloneOffset) * dimension : (target + slider.cloneOffset) * dimension; 2384 } 2385 slider.setProps(slideString, "", slider.vars.animationSpeed); 2386 if (slider.transitions) { 2387 if (!slider.vars.animationLoop || !slider.atEnd) { 2388 slider.animating = false; 2389 slider.currentSlide = slider.animatingTo; 2390 } 2391 2392 // Unbind previous transitionEnd events and re-bind new transitionEnd event 2393 slider.container.unbind("webkitTransitionEnd transitionend"); 2394 slider.container.bind("webkitTransitionEnd transitionend", function() { 2395 clearTimeout(slider.ensureAnimationEnd); 2396 slider.wrapup(dimension); 2397 }); 2398 2399 // Insurance for the ever-so-fickle transitionEnd event 2400 clearTimeout(slider.ensureAnimationEnd); 2401 slider.ensureAnimationEnd = setTimeout(function() { 2402 slider.wrapup(dimension); 2403 }, slider.vars.animationSpeed + 100); 2404 2405 } else { 2406 slider.container.animate(slider.args, slider.vars.animationSpeed, slider.vars.easing, function(){ 2407 slider.wrapup(dimension); 2408 }); 2409 } 2410 } else { // FADE: 2411 if (!touch) { 2412
vendor: 14,175 bytes, lines 2412-2736
2412//slider.slides.eq(slider.currentSlide).fadeOut(slider.vars.animationSpeed, slider.vars.easing); 2413 //slider.slides.eq(target).fadeIn(slider.vars.animationSpeed, slider.vars.easing, slider.wrapup); 2414 2415 slider.slides.eq(slider.currentSlide).css({"zIndex": 1}).animate({"opacity": 0}, slider.vars.animationSpeed, slider.vars.easing); 2416 slider.slides.eq(target).css({"zIndex": 2}).animate({"opacity": 1}, slider.vars.animationSpeed, slider.vars.easing, slider.wrapup); 2417 2418 } else { 2419 slider.slides.eq(slider.currentSlide).css({ "opacity": 0, "zIndex": 1 }); 2420 slider.slides.eq(target).css({ "opacity": 1, "zIndex": 2 }); 2421 slider.wrapup(dimension); 2422 } 2423 } 2424 // SMOOTH HEIGHT: 2425 if (slider.vars.smoothHeight) { methods.smoothHeight(slider.vars.animationSpeed); } 2426 } 2427 }; 2428 slider.wrapup = function(dimension) { 2429 // SLIDE: 2430 if (!fade && !carousel) { 2431 if (slider.currentSlide === 0 && slider.animatingTo === slider.last && slider.vars.animationLoop) { 2432 slider.setProps(dimension, "jumpEnd"); 2433 } else if (slider.currentSlide === slider.last && slider.animatingTo === 0 && slider.vars.animationLoop) { 2434 slider.setProps(dimension, "jumpStart"); 2435 } 2436 } 2437 slider.animating = false; 2438 slider.currentSlide = slider.animatingTo; 2439 // API: after() animation Callback 2440 slider.vars.after(slider); 2441 }; 2442 2443 // SLIDESHOW: 2444 slider.animateSlides = function() { 2445 if (!slider.animating && focused ) { slider.flexAnimate(slider.getTarget("next")); } 2446 }; 2447 // SLIDESHOW: 2448 slider.pause = function() { 2449 clearInterval(slider.animatedSlides); 2450 slider.animatedSlides = null; 2451 slider.playing = false; 2452 // PAUSEPLAY: 2453 if (slider.vars.pausePlay) { methods.pausePlay.update("play"); } 2454 // SYNC: 2455 if (slider.syncExists) { methods.sync("pause"); } 2456 }; 2457 // SLIDESHOW: 2458 slider.play = function() { 2459 if (slider.playing) { clearInterval(slider.animatedSlides); } 2460 slider.animatedSlides = slider.animatedSlides || setInterval(slider.animateSlides, slider.vars.slideshowSpeed); 2461 slider.started = slider.playing = true; 2462 // PAUSEPLAY: 2463 if (slider.vars.pausePlay) { methods.pausePlay.update("pause"); } 2464 // SYNC: 2465 if (slider.syncExists) { methods.sync("play"); } 2466 }; 2467 // STOP: 2468 slider.stop = function () { 2469 slider.pause(); 2470 slider.stopped = true; 2471 }; 2472 slider.canAdvance = function(target, fromNav) { 2473 // ASNAV: 2474 var last = (asNav) ? slider.pagingCount - 1 : slider.last; 2475 return (fromNav) ? true : 2476 (asNav && slider.currentItem === slider.count - 1 && target === 0 && slider.direction === "prev") ? true : 2477 (asNav && slider.currentItem === 0 && target === slider.pagingCount - 1 && slider.direction !== "next") ? false : 2478 (target === slider.currentSlide && !asNav) ? false : 2479 (slider.vars.animationLoop) ? true : 2480 (slider.atEnd && slider.currentSlide === 0 && target === last && slider.direction !== "next") ? false : 2481 (slider.atEnd && slider.currentSlide === last && target === 0 && slider.direction === "next") ? false : 2482 true; 2483 }; 2484 slider.getTarget = function(dir) { 2485 slider.direction = dir; 2486 if (dir === "next") { 2487 return (slider.currentSlide === slider.last) ? 0 : slider.currentSlide + 1; 2488 } else { 2489 return (slider.currentSlide === 0) ? slider.last : slider.currentSlide - 1; 2490 } 2491 }; 2492 2493 // SLIDE: 2494 slider.setProps = function(pos, special, dur) { 2495 var target = (function() { 2496 var posCheck = (pos) ? pos : ((slider.itemW + slider.vars.itemMargin) * slider.move) * slider.animatingTo, 2497 posCalc = (function() { 2498 if (carousel) { 2499 return (special === "setTouch") ? pos : 2500 (reverse && slider.animatingTo === slider.last) ? 0 : 2501 (reverse) ? slider.limit - (((slider.itemW + slider.vars.itemMargin) * slider.move) * slider.animatingTo) : 2502 (slider.animatingTo === slider.last) ? slider.limit : posCheck; 2503 } else { 2504 switch (special) { 2505 case "setTotal": return (reverse) ? ((slider.count - 1) - slider.currentSlide + slider.cloneOffset) * pos : (slider.currentSlide + slider.cloneOffset) * pos; 2506 case "setTouch": return (reverse) ? pos : pos; 2507 case "jumpEnd": return (reverse) ? pos : slider.count * pos; 2508 case "jumpStart": return (reverse) ? slider.count * pos : pos; 2509 default: return pos; 2510 } 2511 } 2512 }()); 2513 2514 return (posCalc * -1) + "px"; 2515 }()); 2516 2517 if (slider.transitions) { 2518 target = (vertical) ? "translate3d(0," + target + ",0)" : "translate3d(" + ((slider.vars.rtl?-1:1)*parseInt(target)+'px') + ",0,0)"; 2519 dur = (dur !== undefined) ? (dur/1000) + "s" : "0s"; 2520 slider.container.css("-" + slider.pfx + "-transition-duration", dur); 2521 slider.container.css("transition-duration", dur); 2522 } 2523 2524 slider.args[slider.prop] = target; 2525 if (slider.transitions || dur === undefined) { slider.container.css(slider.args); } 2526 2527 slider.container.css('transform',target); 2528 }; 2529 2530 slider.setup = function(type) { 2531 // SLIDE: 2532 if (!fade) { 2533 var sliderOffset, arr; 2534 2535 if (type === "init") { 2536 slider.viewport = $('<div class="' + namespace + 'viewport"></div>').css({"overflow": "hidden", "position": "relative"}).appendTo(slider).append(slider.container); 2537 // INFINITE LOOP: 2538 slider.cloneCount = 0; 2539 slider.cloneOffset = 0; 2540 // REVERSE: 2541 if (reverse) { 2542 arr = $.makeArray(slider.slides).reverse(); 2543 slider.slides = $(arr); 2544 slider.container.empty().append(slider.slides); 2545 } 2546 } 2547 // INFINITE LOOP && !CAROUSEL: 2548 if (slider.vars.animationLoop && !carousel) { 2549 slider.cloneCount = 2; 2550 slider.cloneOffset = 1; 2551 // clear out old clones 2552 if (type !== "init") { slider.container.find('.clone').remove(); } 2553 slider.container.append(methods.uniqueID(slider.slides.first().clone().addClass('clone')).attr('aria-hidden', 'true')) 2554 .prepend(methods.uniqueID(slider.slides.last().clone().addClass('clone')).attr('aria-hidden', 'true')); 2555 } 2556 slider.newSlides = $(slider.vars.selector, slider); 2557 2558 sliderOffset = (reverse) ? slider.count - 1 - slider.currentSlide + slider.cloneOffset : slider.currentSlide + slider.cloneOffset; 2559 // VERTICAL: 2560 if (vertical && !carousel) { 2561 slider.container.height((slider.count + slider.cloneCount) * 200 + "%").css("position", "absolute").width("100%"); 2562 setTimeout(function(){ 2563 slider.newSlides.css({"display": "block"}); 2564 slider.doMath(); 2565 slider.viewport.height(slider.h); 2566 slider.setProps(sliderOffset * slider.h, "init"); 2567 }, (type === "init") ? 100 : 0); 2568 } else { 2569 slider.container.width((slider.count + slider.cloneCount) * 200 + "%"); 2570 slider.setProps(sliderOffset * slider.computedW, "init"); 2571 setTimeout(function(){ 2572 slider.doMath(); 2573 if(slider.vars.rtl){ 2574 slider.newSlides.css({"width": slider.computedW, "marginLeft" : slider.computedM, "float": "right", "display": "block"}); 2575 } 2576 else{ 2577 slider.newSlides.css({"width": slider.computedW, "marginRight" : slider.computedM, "float": "left", "display": "block"}); 2578 } 2579 // SMOOTH HEIGHT: 2580 if (slider.vars.smoothHeight) { methods.smoothHeight(); } 2581 }, (type === "init") ? 100 : 0); 2582 } 2583 } else { // FADE: 2584 if(slider.vars.rtl){ 2585 slider.slides.css({"width": "100%", "float": 'right', "marginLeft": "-100%", "position": "relative"}); 2586 } 2587 else{ 2588 slider.slides.css({"width": "100%", "float": 'left', "marginRight": "-100%", "position": "relative"}); 2589 } 2590 if (type === "init") { 2591 if (!touch) { 2592 //slider.slides.eq(slider.currentSlide).fadeIn(slider.vars.animationSpeed, slider.vars.easing); 2593 if (slider.vars.fadeFirstSlide == false) { 2594 slider.slides.css({ "opacity": 0, "display": "block", "zIndex": 1 }).eq(slider.currentSlide).css({"zIndex": 2}).css({"opacity": 1}); 2595 } else { 2596 slider.slides.css({ "opacity": 0, "display": "block", "zIndex": 1 }).eq(slider.currentSlide).css({"zIndex": 2}).animate({"opacity": 1},slider.vars.animationSpeed,slider.vars.easing); 2597 } 2598 } else { 2599 slider.slides.css({ "opacity": 0, "display": "block", "webkitTransition": "opacity " + slider.vars.animationSpeed / 1000 + "s ease", "zIndex": 1 }).eq(slider.currentSlide).css({ "opacity": 1, "zIndex": 2}); 2600 } 2601 } 2602 // SMOOTH HEIGHT: 2603 if (slider.vars.smoothHeight) { methods.smoothHeight(); } 2604 } 2605 // !CAROUSEL: 2606 // CANDIDATE: active slide 2607 if (!carousel) { slider.slides.removeClass(namespace + "active-slide").eq(slider.currentSlide).addClass(namespace + "active-slide"); } 2608 2609 //FlexSlider: init() Callback 2610 slider.vars.init(slider); 2611 }; 2612 2613 slider.doMath = function() { 2614 var slide = slider.slides.first(), 2615 slideMargin = slider.vars.itemMargin, 2616 minItems = slider.vars.minItems, 2617 maxItems = slider.vars.maxItems; 2618 2619 slider.w = (slider.viewport===undefined) ? slider.width() : slider.viewport.width(); 2620 slider.h = slide.height(); 2621 slider.boxPadding = slide.outerWidth() - slide.width(); 2622 2623 // CAROUSEL: 2624 if (carousel) { 2625 slider.itemT = slider.vars.itemWidth + slideMargin; 2626 slider.itemM = slideMargin; 2627 slider.minW = (minItems) ? minItems * slider.itemT : slider.w; 2628 slider.maxW = (maxItems) ? (maxItems * slider.itemT) - slideMargin : slider.w; 2629 slider.itemW = (slider.minW > slider.w) ? (slider.w - (slideMargin * (minItems - 1)))/minItems : 2630 (slider.maxW < slider.w) ? (slider.w - (slideMargin * (maxItems - 1)))/maxItems : 2631 (slider.vars.itemWidth > slider.w) ? slider.w : slider.vars.itemWidth; 2632 2633 slider.visible = Math.floor(slider.w/(slider.itemW)); 2634 slider.move = (slider.vars.move > 0 && slider.vars.move < slider.visible ) ? slider.vars.move : slider.visible; 2635 slider.pagingCount = Math.ceil(((slider.count - slider.visible)/slider.move) + 1); 2636 slider.last = slider.pagingCount - 1; 2637 slider.limit = (slider.pagingCount === 1) ? 0 : 2638 (slider.vars.itemWidth > slider.w) ? (slider.itemW * (slider.count - 1)) + (slideMargin * (slider.count - 1)) : ((slider.itemW + slideMargin) * slider.count) - slider.w - slideMargin; 2639 } else { 2640 slider.itemW = slider.w; 2641 slider.itemM = slideMargin; 2642 slider.pagingCount = slider.count; 2643 slider.last = slider.count - 1; 2644 } 2645 slider.computedW = slider.itemW - slider.boxPadding; 2646 slider.computedM = slider.itemM; 2647 }; 2648 2649 slider.update = function(pos, action) { 2650 slider.doMath(); 2651 2652 // update currentSlide and slider.animatingTo if necessary 2653 if (!carousel) { 2654 if (pos < slider.currentSlide) { 2655 slider.currentSlide += 1; 2656 } else if (pos <= slider.currentSlide && pos !== 0) { 2657 slider.currentSlide -= 1; 2658 } 2659 slider.animatingTo = slider.currentSlide; 2660 } 2661 2662 // update controlNav 2663 if (slider.vars.controlNav && !slider.manualControls) { 2664 if ((action === "add" && !carousel) || slider.pagingCount > slider.controlNav.length) { 2665 methods.controlNav.update("add"); 2666 } else if ((action === "remove" && !carousel) || slider.pagingCount < slider.controlNav.length) { 2667 if (carousel && slider.currentSlide > slider.last) { 2668 slider.currentSlide -= 1; 2669 slider.animatingTo -= 1; 2670 } 2671 methods.controlNav.update("remove", slider.last); 2672 } 2673 } 2674 // update directionNav 2675 if (slider.vars.directionNav) { methods.directionNav.update(); } 2676 2677 }; 2678 2679 slider.addSlide = function(obj, pos) { 2680 var $obj = $(obj); 2681 2682 slider.count += 1; 2683 slider.last = slider.count - 1; 2684 2685 // append new slide 2686 if (vertical && reverse) { 2687 (pos !== undefined) ? slider.slides.eq(slider.count - pos).after($obj) : slider.container.prepend($obj); 2688 } else { 2689 (pos !== undefined) ? slider.slides.eq(pos).before($obj) : slider.container.append($obj); 2690 } 2691 2692 // update currentSlide, animatingTo, controlNav, and directionNav 2693 slider.update(pos, "add"); 2694 2695 // update slider.slides 2696 slider.slides = $(slider.vars.selector + ':not(.clone)', slider); 2697 // re-setup the slider to accomdate new slide 2698 slider.setup(); 2699 2700 //FlexSlider: added() Callback 2701 slider.vars.added(slider); 2702 }; 2703 slider.removeSlide = function(obj) { 2704 var pos = (isNaN(obj)) ? slider.slides.index($(obj)) : obj; 2705 2706 // update count 2707 slider.count -= 1; 2708 slider.last = slider.count - 1; 2709 2710 // remove slide 2711 if (isNaN(obj)) { 2712 $(obj, slider.slides).remove(); 2713 } else { 2714 (vertical && reverse) ? slider.slides.eq(slider.last).remove() : slider.slides.eq(obj).remove(); 2715 } 2716 2717 // update currentSlide, animatingTo, controlNav, and directionNav 2718 slider.doMath(); 2719 slider.update(pos, "remove"); 2720 2721 // update slider.slides 2722 slider.slides = $(slider.vars.selector + ':not(.clone)', slider); 2723 // re-setup the slider to accomdate new slide 2724 slider.setup(); 2725 2726 // FlexSlider: removed() Callback 2727 slider.vars.removed(slider); 2728 }; 2729 2730 //FlexSlider: Initialize 2731 methods.init(); 2732 }; 2733 2734 // Ensure the slider isn't focussed if the window loses focus. 2735 $( window ).blur( function ( e ) { 2736 focused = false;
2737 }).focus( function ( e ) { 2738 focused = true; 2739 }); 2740 2741 //FlexSlider: Default Settings 2742 $.flexslider.defaults = { 2743 namespace: "flex-", //{NEW} String: Prefix string attached to the class of every element generated by the plugin 2744 selector: ".slides > li", //{NEW} Selector: Must match a simple pattern. '{container} > {slide}' -- Ignore pattern at your own peril 2745 animation: "fade", //String: Select your animation type, "fade" or "slide" 2746 easing: "swing", //{NEW} String: Determines the easing method used in jQuery transitions. jQuery easing plugin is supported! 2747 direction: "horizontal", //String: Select the sliding direction, "horizontal" or "vertical" 2748 reverse: false, //{NEW} Boolean: Reverse the animation direction 2749 animationLoop: true, //Boolean: Should the animation loop? If false, directionNav will received "disable" classes at either end 2750 smoothHeight: false, //{NEW} Boolean: Allow height of the slider to animate smoothly in horizontal mode 2751 startAt: 0, //Integer: The slide that the slider should start on. Array notation (0 = first slide) 2752 slideshow: true, //Boolean: Animate slider automatically 2753 slideshowSpeed: 7000, //Integer: Set the speed of the slideshow cycling, in milliseconds 2754 animationSpeed: 600, //Integer: Set the speed of animations, in milliseconds 2755 initDelay: 0, //{NEW} Integer: Set an initialization delay, in milliseconds 2756 randomize: false, //Boolean: Randomize slide order 2757 fadeFirstSlide: true, //Boolean: Fade in the first slide when animation type is "fade" 2758 thumbCaptions: false, //Boolean: Whether or not to put captions on thumbnails when using the "thumbnails" controlNav. 2759 2760 // Usability features 2761 pauseOnAction: true, //Boolean: Pause the slideshow when interacting with control elements, highly recommended. 2762 pauseOnHover: false, //Boolean: Pause the slideshow when hovering over slider, then resume when no longer hovering 2763 pauseInvisible: true, //{NEW} Boolean: Pause the slideshow when tab is invisible, resume when visible. Provides better UX, lower CPU usage. 2764 useCSS: true, //{NEW} Boolean: Slider will use CSS3 transitions if available 2765 touch: true, //{NEW} Boolean: Allow touch swipe navigation of the slider on touch-enabled devices 2766 video: false, //{NEW} Boolean: If using video in the slider, will prevent CSS3 3D Transforms to avoid graphical glitches 2767 2768 // Primary Controls 2769 controlNav: true, //Boolean: Create navigation for paging control of each slide? Note: Leave true for manualControls usage 2770 directionNav: true, //Boolean: Create navigation for previous/next navigation? (true/false) 2771 prevText: "Previous", //String: Set the text for the "previous" directionNav item 2772 nextText: "Next", //String: Set the text for the "next" directionNav item 2773 2774 // Secondary Navigation 2775 keyboard: true, //Boolean: Allow slider navigating via keyboard left/right keys 2776 multipleKeyboard: false, //{NEW} Boolean: Allow keyboard navigation to affect multiple sliders. Default behavior cuts out keyboard navigation with more than one slider present. 2777 mousewheel: false, //{UPDATED} Boolean: Requires jquery.mousewheel.js (https://github.com/brandonaaron/jquery-mousewheel) - Allows slider navigating via mousewheel 2778 pausePlay: false, //Boolean: Create pause/play dynamic element 2779 pauseText: "Pause", //String: Set the text for the "pause" pausePlay item 2780 playText: "Play", //String: Set the text for the "play" pausePlay item 2781 2782 // Special properties 2783 controlsContainer: "", //{UPDATED} jQuery Object/Selector: Declare which container the navigation elements should be appended too. Default container is the FlexSlider element. Example use would be $(".flexslider-container"). Property is ignored if given element is not found. 2784 manualControls: "", //{UPDATED} jQuery Object/Selector: Declare custom control navigation. Examples would be $(".flex-control-nav li") or "#tabs-nav li img", etc. The number of elements in your controlNav should match the number of slides/tabs. 2785 customDirectionNav: "", //{NEW}
2785 jQuery Object/Selector: Custom prev / next button. Must be two jQuery elements. In order to make the events work they have to have the classes "prev" and "next" (plus namespace) 2786 sync: "", //{NEW} Selector: Mirror the actions performed on this slider with another slider. Use with care. 2787 asNavFor: "", //{NEW} Selector: Internal property exposed for turning the slider into a thumbnail navigation for another slider 2788 2789 // Carousel Options 2790 itemWidth: 0, //{NEW} Integer: Box-model width of individual carousel items, including horizontal borders and padding. 2791 itemMargin: 0, //{NEW} Integer: Margin between carousel items. 2792 minItems: 1, //{NEW} Integer: Minimum number of carousel items that should be visible. Items will resize fluidly when below this. 2793 maxItems: 0, //{NEW} Integer: Maxmimum number of carousel items that should be visible. Items will resize fluidly when above this limit. 2794 move: 0, //{NEW} Integer: Number of carousel items that should move on animation. If 0, slider will move all visible items. 2795 allowOneSlide: true, //{NEW} Boolean: Whether or not to allow a slider comprised of a single slide 2796 2797 // Callback API 2798 start: function(){}, //Callback: function(slider) - Fires when the slider loads the first slide 2799 before: function(){}, //Callback: function(slider) - Fires asynchronously with each slider animation 2800 after: function(){}, //Callback: function(slider) - Fires after each slider animation completes 2801 end: function(){}, //Callback: function(slider) - Fires when the slider reaches the last slide (asynchronous) 2802 added: function(){}, //{NEW} Callback: function(slider) - Fires after a slide is added 2803 removed: function(){}, //{NEW} Callback: function(slider) - Fires after a slide is removed 2804 init: function() {}, //{NEW} Callback: function(slider) - Fires after the slider is initially setup 2805 rtl: false //{NEW} Boolean: Whether or not to enable RTL mode 2806 }; 2807 2808 //FlexSlider: Plugin Function 2809 $.fn.flexslider = function(options) { 2810 if (options === undefined) { options = {}; } 2811 2812 if (typeof options === "object") { 2813 return this.each(function() { 2814 var $this = $(this), 2815 selector = (options.selector) ? options.selector : ".slides > li", 2816 $slides = $this.find(selector); 2817 2818 if ( ( $slides.length === 1 && options.allowOneSlide === false ) || $slides.length === 0 ) { 2819 $slides.fadeIn(400); 2820 if (options.start) { options.start($this); } 2821 } else if ($this.data('flexslider') === undefined) { 2822 new $.flexslider(this, options); 2823 } 2824 }); 2825 } else { 2826 // Helper strings to quickly perform functions on the slider 2827 var $slider = $(this).data('flexslider'); 2828 switch (options) { 2829 case "play": $slider.play(); break; 2830 case "pause": $slider.pause(); break; 2831 case "stop": $slider.stop(); break; 2832 case "next": $slider.flexAnimate($slider.getTarget("next"), true); break; 2833 case "prev": 2834 case "previous": $slider.flexAnimate($slider.getTarget("prev"), true); break; 2835 default: if (typeof options === "number") { $slider.flexAnimate(options, true); } 2836 } 2837 } 2838 }; 2839})(jQuery); 2840 2841return stack;})(stacks.com_elixir_stacks_foundrySlider); 2842stacks.stacks_in_2 = {}; 2843stacks.stacks_in_2 = (function(stack) { 2844var jQuery = stacks.jQuery;var $ = jQuery;// Set Language for Document 2845document.documentElement.lang = "en"; 2846 2847$(document).ready(function(){ 2848 2849 2850 2851}); 2852 2853$.fn.elementRealHeight = function () { 2854 $clone = this.clone() 2855 .css("visibility","hidden") 2856 .appendTo($('body')); 2857 var $height = $clone.outerHeight(); 2858 $clone.remove(); 2859 return $height; 2860 }; 2861 2862 $.fn.elementRealWidth = function () { 2863 $clone = this.clone() 2864 .css("visibility","hidden") 2865 .appendTo($('body')); 2866 var $width = $clone.outerWidth(); 2867 $clone.remove(); 2868 return $width; 2869 }; 2870 2871 2872 // Handles offsets for anchor tags 2873 // (function(document, history, location) { 2874 // var HISTORY_SUPPORT = !!(history && history.pushState); 2875 // 2876 // var anchorScrolls = { 2877 // ANCHOR_REGEX: /^#[^ ]+$/, 2878 // OFFSET_HEIGHT_PX: 0, 2879 // 2880 // /** 2881 // * Establish events, and fix initial scroll position if a hash is provided. 2882 // */ 2883 // init: function() { 2884 // this.scrollToCurrent(); 2885 // window.addEventListener('hashchange', this.scrollToCurrent.bind(this)); 2886 // document.body.addEventListener('click', this.delegateAnchors.bind(this)); 2887 // }, 2888 // 2889 // /** 2890 // * Return the offset amount to deduct from the normal scroll position. 2891 // * Modify as appropriate to allow for dynamic calculations 2892 // */ 2893 // getFixedOffset: function() { 2894 // return this.OFFSET_HEIGHT_PX; 2895 // }, 2896 // 2897 // /** 2898 // * If the provided href is an anchor which resolves to an element on the 2899 // * page, scroll to it. 2900 // * @param {String} href 2901 // * @return {Boolean} - Was the href an anchor. 2902 // */ 2903 // scrollIfAnchor: function(href, pushToHistory) {
2904 // var match, rect, anchorOffset; 2905 // 2906 // if(!this.ANCHOR_REGEX.test(href)) { 2907 // return false; 2908 // } 2909 // 2910 // match = document.getElementById(href.slice(1)); 2911 // 2912 // if(match) { 2913 // rect = match.getBoundingClientRect(); 2914 // anchorOffset = window.pageYOffset + rect.top - this.getFixedOffset(); 2915 // window.scrollTo(window.pageXOffset, anchorOffset); 2916 // 2917 // // Add the state to history as-per normal anchor links 2918 // if(HISTORY_SUPPORT && pushToHistory) { 2919 // history.pushState({}, document.title, location.pathname + href); 2920 // } 2921 // } 2922 // 2923 // return !!match; 2924 // }, 2925 // 2926 // /** 2927 // * Attempt to scroll to the current location's hash. 2928 // */ 2929 // scrollToCurrent: function() { 2930 // this.scrollIfAnchor(window.location.hash); 2931 // }, 2932 // 2933 // /** 2934 // * If the click event's target was an anchor, fix the scroll position. 2935 // */ 2936 // delegateAnchors: function(e) { 2937 // var elem = e.target; 2938 // 2939 // if( 2940 // elem.nodeName === 'A' && 2941 // this.scrollIfAnchor(elem.getAttribute('href'), true) 2942 // ) { 2943 // e.preventDefault(); 2944 // } 2945 // } 2946 // }; 2947 // 2948 // window.addEventListener( 2949 // 'DOMContentLoaded', anchorScrolls.init.bind(anchorScrolls) 2950 // ); 2951 // })(window.document, window.history, window.location); 2952 2953return stack;})(stacks.stacks_in_2); 2954stacks.stacks_in_18 = {}; 2955stacks.stacks_in_18 = (function(stack) { 2956var jQuery = stacks.jQuery;var $ = jQuery;$(document).ready(function(){ 2957 if ($('#stacks_in_18').length){ 2958 2959 $('#stacks_in_18 > .nav-bar-pro-spacer > .nav-bar-pro-wrapper').parentsUntil('.stacks_top').css({'overflow' : 'visible'}); 2960 $('.stacks_top').css({'overflow' : 'visible'}); 2961 2962 // Auto detect active (.active) page 2963 // Site _MUST_ use Tidy Links for this to be used. 2964 $('#stacks_in_18 ul.nav-bar-items li a').each(function (index){ 2965 if ($(this).attr('href') == "./") { 2966 $(this).addClass('active'); 2967 } 2968 }); 2969 2970 $('#stacks_in_18 ul.nav-bar-drop-down-items li a').each(function (index){ 2971 if ($(this).attr('href') == "./") { 2972 $(this).addClass('active'); 2973 } 2974 }); 2975 2976 2977 2978 2979 2980 // 2981 // Handles pairing navigation with parent banner 2982 // 2983 2984 2985 2986 2987 2988 2989 2990 var stickyOffset = $('#stacks_in_18 .nav-bar-pro-wrapper').offset().top; 2991 2992 $(window).resize(function() { 2993 var stickyOffset = $('#stacks_in_18 .nav-bar-pro-wrapper').offset().top; 2994 }); 2995 2996 $(window).scroll(function(){ 2997 var sticky = $('#stacks_in_18 .nav-bar-pro-wrapper'), 2998 scroll = $(this).scrollTop(); 2999 3000 if (scroll > stickyOffset) sticky.addClass('stuck'); 3001 if (scroll <= stickyOffset) sticky.removeClass('stuck'); 3002 }); 3003 3004 3005 3006 $('#stacks_in_18 .nav-bar-drop-down-toggle').click(function() { 3007 if ($("#stacks_in_18 .nav-bar-drop-down").is(":visible") == true) { 3008 TweenMax.to($('#stacks_in_18 .nav-bar-drop-down'), 0.20, { delay: 0.05, startAt:{ y:0, x:0, scale: 1, rotation:0, rotationY:0, rotationX:0, opacity: 1 }, y: -30, x: 0, scale: 1.00, rotation: 0, rotationY:0, rotationX: 0, opacity: 0 , ease: Power3.easeOut},0).eventCallback("onComplete", function(){ 3009 $("#stacks_in_18 .nav-bar-drop-down").css({'opacity' : '0', 'display' : 'none'}); 3010 }); 3011 } else { 3012 $("#stacks_in_18 .nav-bar-drop-down").css({'opacity' : '0', 'display' : 'block'}); 3013 TweenMax.to($('#stacks_in_18 .nav-bar-drop-down'), 0.20, { delay: 0.05, startAt:{ y: -30, x: 0, scale: 1.00, rotation:0, rotationY:0, rotationX: 0, opacity: 0 }, y:0, x:0, scale:1.0, rotation: 0, rotationY:0, rotationX: 0, opacity: 1 , ease: Power3.easeOut},0); 3014 3015 3016 TweenMax.staggerFromTo("#stacks_in_18 .nav-bar-drop-down > ul > li", 0.30, {opacity:0, y: -40, x: 0, scale:1}, {delay: 0.05, opacity:1, y:0, x:0, scale:1, ease: Power3.easeOut}, 0.1); 3017 3018 } 3019 }); 3020 3021 3022 3023 $('#stacks_in_18').click(function(event){ 3024 event.stopPropagation(); 3025 }); 3026 3027 3028 $('#stacks_in_18 a.drop-down-expand-parent').click(function(event) { 3029 event.preventDefault(); 3030 expandSection = $(this).next(); 3031 $(this).find('> i').toggleClass('fa-angle-right'); 3032 $(this).find('> i').toggleClass('fa-angle-down'); 3033 expandSection.slideToggle(200); 3034 }); 3035 3036 3037 } 3038}); 3039 3040 3041 3042 3043 3044 3045return stack;})(stacks.stacks_in_18); 3046stacks.stacks_in_99 = {}; 3047stacks.stacks_in_99 = (function(stack) { 3048var jQuery = stacks.jQuery;var $ = jQuery; 3049// Can also be used with $(document).ready() 3050$(window).load(function() { 3051 3052 3053Â Â $("#stacks_in_99 .flexslider") 3054 .fitVids() 3055Â Â Â Â .flexslider({ 3056 prevText: "", 3057 nextText: "", 3058Â Â Â Â Â Â animation: "slide",
3059Â Â Â Â Â Â useCSS: false, 3060 keyboard: false, 3061 touch: true, 3062 pauseOnAction: true, 3063 pauseOnHover: false, 3064 randomize: false, 3065 slideshowSpeed: 7000, 3066 animationSpeed: 450, 3067 slideshow: true, 3068 3069 smoothHeight: true, 3070 start: function(slider){ 3071 Â Â $("#stacks_in_99 .loading_indicator").remove(); 3072Â Â Â Â Â Â } 3073Â Â }); 3074 3075 var slide_wrapper = $('#stacks_in_99 .flexslider ul.slides').find('> li:not(.clone)'); 3076 3077 var slide_count = slide_wrapper.length; 3078 var slide_thumb_width = (100 / slide_count); 3079 var slide_thumb_width = slide_thumb_width + "%"; 3080 3081 $('#stacks_in_99 .flex-control-thumbs > li').css({ 'width' : slide_thumb_width }); 3082 3083}); 3084 3085return stack;})(stacks.stacks_in_99); 3086stacks.stacks_in_3 = {}; 3087stacks.stacks_in_3 = (function(stack) { 3088var jQuery = stacks.jQuery;var $ = jQuery;$(document).ready(function(){ 3089 3090 $('#stacks_in_3 > .container').parentsUntil('.stacks_top').css('overflow', 'visible'); 3091 $('.stacks_top').css({'overflow' : 'visible'}); 3092 3093}); 3094 3095return stack;})(stacks.stacks_in_3); 3096stacks.stacks_in_180 = {}; 3097stacks.stacks_in_180 = (function(stack) { 3098var jQuery = stacks.jQuery;var $ = jQuery;$(document).ready(function(){ 3099 3100}); 3101return stack;})(stacks.stacks_in_180); 3102stacks.stacks_in_179 = {}; 3103stacks.stacks_in_179 = (function(stack) { 3104var jQuery = stacks.jQuery;var $ = jQuery;$(document).ready(function(){ 3105 3106}); 3107return stack;})(stacks.stacks_in_179); 3108stacks.stacks_in_181 = {}; 3109stacks.stacks_in_181 = (function(stack) { 3110var jQuery = stacks.jQuery;var $ = jQuery;$(document).ready(function(){ 3111 3112}); 3113return stack;})(stacks.stacks_in_181); 3114stacks.stacks_in_184 = {}; 3115stacks.stacks_in_184 = (function(stack) { 3116var jQuery = stacks.jQuery;var $ = jQuery;$(document).ready(function(){ 3117 3118 3119 3120 3121 3122 3123 3124 3125 // Load parallax effect 3126 3127 $('#stacks_in_184 .banner').jarallax({ 3128 speed: 0.50, 3129 type: 'scroll', 3130 3131 }); 3132 3133 3134}); 3135 3136 3137// $(window).load(function(){ 3138// }); 3139 3140return stack;})(stacks.stacks_in_184); 3141stacks.stacks_in_189 = {}; 3142stacks.stacks_in_189 = (function(stack) { 3143var jQuery = stacks.jQuery;var $ = jQuery;$(document).ready(function(){ 3144 $('#stacks_in_189 > .anchor').parentsUntil('.stacks_top').css({'overflow' : 'visible'}); 3145 $('.stacks_top').css({'overflow' : 'visible'}); 3146}); 3147 3148return stack;})(stacks.stacks_in_189); 3149stacks.stacks_in_163 = {}; 3150stacks.stacks_in_163 = (function(stack) { 3151var jQuery = stacks.jQuery;var $ = jQuery;$(document).ready(function(){ 3152 3153 $('#stacks_in_163 > .container').parentsUntil('.stacks_top').css('overflow', 'visible'); 3154 $('.stacks_top').css({'overflow' : 'visible'}); 3155 3156}); 3157 3158return stack;})(stacks.stacks_in_163); 3159stacks.stacks_in_175 = {}; 3160stacks.stacks_in_175 = (function(stack) { 3161var jQuery = stacks.jQuery;var $ = jQuery;$(function() { 3162 $("#stacks_in_175 iframe[data-src]").Lazy({ 3163 effect: 'fadeIn', 3164 visibleOnly: true 3165 }); 3166}); 3167return stack;})(stacks.stacks_in_175); 3168stacks.stacks_in_191 = {}; 3169stacks.stacks_in_191 = (function(stack) { 3170var jQuery = stacks.jQuery;var $ = jQuery;$(document).ready(function(){ 3171 3172 3173 3174 3175 3176 3177 3178 3179 // Load parallax effect 3180 3181 $('#stacks_in_191 .banner').jarallax({ 3182 speed: 0.50, 3183 type: 'scroll', 3184 3185 }); 3186 3187 3188}); 3189 3190 3191// $(window).load(function(){ 3192// }); 3193 3194return stack;})(stacks.stacks_in_191); 3195stacks.stacks_in_209 = {}; 3196stacks.stacks_in_209 = (function(stack) { 3197var jQuery = stacks.jQuery;var $ = jQuery;$(document).ready(function(){ 3198 $('#stacks_in_209 > .anchor').parentsUntil('.stacks_top').css({'overflow' : 'visible'}); 3199 $('.stacks_top').css({'overflow' : 'visible'}); 3200}); 3201 3202return stack;})(stacks.stacks_in_209); 3203stacks.stacks_in_197 = {}; 3204stacks.stacks_in_197 = (function(stack) { 3205var jQuery = stacks.jQuery;var $ = jQuery;$(document).ready(function(){ 3206 3207 $('#stacks_in_197 > .container').parentsUntil('.stacks_top').css('overflow', 'visible'); 3208 $('.stacks_top').css({'overflow' : 'visible'}); 3209 3210}); 3211 3212return stack;})(stacks.stacks_in_197); 3213stacks.stacks_in_238 = {}; 3214stacks.stacks_in_238 = (function(stack) { 3215var jQuery = stacks.jQuery;var $ = jQuery;$(document).ready(function(){ 3216 3217}); 3218 3219return stack;})(stacks.stacks_in_238); 3220stacks.stacks_in_215 = {}; 3221stacks.stacks_in_215 = (function(stack) { 3222var jQuery = stacks.jQuery;var $ = jQuery;$(document).ready(function(){ 3223 3224 3225 3226 3227 3228 3229 3230 3231 // Load parallax effect 3232 3233 $('#stacks_in_215 .banner').jarallax({ 3234 speed: 0.50, 3235 type: 'scroll', 3236 3237 }); 3238 3239 3240}); 3241 3242 3243// $(window).load(function(){ 3244// }); 3245 3246return stack;})(stacks.stacks_in_215); 3247stacks.stacks_in_219 = {}; 3248stacks.stacks_in_219 = (function(stack) { 3249var jQuery = stacks.jQuery;var $ = jQuery;$(document).ready(function(){ 3250 $('#stacks_in_219 > .anchor').parentsUntil('.stacks_top').css({'overflow' : 'visible'}); 3251 $('.stacks_top').css({'overflow' : 'visible'}); 3252}); 3253 3254return stack;})(stacks.stacks_in_219); 3255stacks.stacks_in_220 = {}; 3256stacks.stacks_in_220 = (function(stack) { 3257var jQuery = stacks.jQuery;var $ = jQuery;$(document).ready(function(){ 3258 3259 $('#stacks_in_220 > .container').parentsUntil('.stacks_top').css('overflow', 'visible'); 3260 $('.stacks_top').css({'overflow' : 'visible'}); 3261 3262}); 3263 3264return stack;})(stacks.stacks_in_220); 3265stacks.stacks_in_237 = {}; 3266stacks.stacks_in_237 = (function(stack) { 3267var jQuery = stacks.jQuery;var $ = jQuery;$(document).ready(function(){ 3268 3269}); 3270 3271return stack;})(stacks.stacks_in_237); 3272stacks.stacks_in_269 = {}; 3273stacks.stacks_in_269 = (function(stack) { 3274var jQuery = stacks.jQuery;var $ = jQuery;$(document).ready(function(){ 3275 $('#stacks_in_269 > .anchor').parentsUntil('.stacks_top').css({'overflow' : 'visible'}); 3276 $('.stacks_top').css({'overflow' : 'visible'}); 3277}); 3278 3279return stack;})(stacks.stacks_in_269); 3280stacks.stacks_in_49_4 = {}; 3281stacks.stacks_in_49_4 = (function(stack) { 3282var jQuery = stacks.jQuery;var $ = jQuery;$(document).ready(function(){ 3283 3284 $('#stacks_in_49_4 > .container').parentsUntil('.stacks_top').css('overflow', 'visible'); 3285 $('.stacks_top').css({'overflow' : 'visible'}); 3286 3287}); 3288 3289return stack;})(stacks.stacks_in_49_4); 3290stacks.stacks_in_49_67 = {}; 3291stacks.stacks_in_49_67 = (function(stack) { 3292var jQuery = stacks.jQuery;var $ = jQuery;$(document).ready(function(){ 3293 3294 $('#stacks_in_49_67-formpro').validator({ 3295 delay: 2000,
3296 custom: { 3297 equals: function($el) { 3298 var matchValue = $el.data("equals") 3299 if ($el.val() !== matchValue) { 3300 return "Hey, that's not valid! It's gotta be " + matchValue 3301 } 3302 } 3303 } 3304 }); 3305}); 3306 3307return stack;})(stacks.stacks_in_49_67);
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.