vendor: 29,675 bytes, lines 1-702
1! function(t, e) { 2 "function" == typeof define && define.amd ? define("jquery-bridget/jquery-bridget", ["jquery"], (function(i) { 3 return e(t, i) 4 })) : "object" == typeof module && module.exports ? module.exports = e(t, require("jquery")) : t.jQueryBridget = e(t, t.jQuery) 5}(window, (function(t, e) { 6 "use strict"; 7 8 function i(i, s, a) { 9 (a = a || e || t.jQuery) && (s.prototype.option || (s.prototype.option = function(t) { 10 a.isPlainObject(t) && (this.options = a.extend(!0, this.options, t)) 11 }), a.fn[i] = function(t) { 12 if ("string" != typeof t) return d = t, this.each((function(t, e) { 13 var o = a.data(e, i); 14 o ? (o.option(d), o._init()) : (o = new s(e, d), a.data(e, i, o)) 15 })), this; 16 var e, o, u, h, l, d, f = n.call(arguments, 1); 17 return u = f, l = "$()." + i + '("' + (o = t) + '")', (e = this).each((function(t, e) { 18 var n = a.data(e, i); 19 if (n) { 20 var s = n[o]; 21 if (s && "_" != o.charAt(0)) { 22 var d = s.apply(n, u); 23 h = void 0 === h ? d : h 24 } else r(l + " is not a valid method") 25 } else r(i + " not initialized. Cannot call methods, i.e. " + l) 26 })), void 0 !== h ? h : e 27 }, o(a)) 28 } 29 30 function o(t) { 31 !t || t && t.bridget || (t.bridget = i) 32 } 33 var n = Array.prototype.slice, 34 s = t.console, 35 r = void 0 === s ? function() {} : function(t) { 36 s.error(t) 37 }; 38 return o(e || t.jQuery), i 39})), 40function(t, e) { 41 "function" == typeof define && define.amd ? define("ev-emitter/ev-emitter", e) : "object" == typeof module && module.exports ? module.exports = e() : t.EvEmitter = e() 42}("undefined" != typeof window ? window : this, (function() { 43 function t() {} 44 var e = t.prototype; 45 return e.on = function(t, e) { 46 if (t && e) { 47 var i = this._events = this._events || {}, 48 o = i[t] = i[t] || []; 49 return -1 == o.indexOf(e) && o.push(e), this 50 } 51 }, e.once = function(t, e) { 52 if (t && e) { 53 this.on(t, e); 54 var i = this._onceEvents = this._onceEvents || {}; 55 return (i[t] = i[t] || {})[e] = !0, this 56 } 57 }, e.off = function(t, e) { 58 var i = this._events && this._events[t]; 59 if (i && i.length) { 60 var o = i.indexOf(e); 61 return -1 != o && i.splice(o, 1), this 62 } 63 }, e.emitEvent = function(t, e) { 64 var i = this._events && this._events[t]; 65 if (i && i.length) { 66 i = i.slice(0), e = e || []; 67 for (var o = this._onceEvents && this._onceEvents[t], n = 0; n < i.length; n++) { 68 var s = i[n]; 69 o && o[s] && (this.off(t, s), delete o[s]), s.apply(this, e) 70 } 71 return this 72 } 73 }, e.allOff = function() { 74 delete this._events, delete this._onceEvents 75 }, t 76})), 77function(t, e) { 78 "function" == typeof define && define.amd ? define("get-size/get-size", e) : "object" == typeof module && module.exports ? module.exports = e() : t.getSize = e() 79}(window, (function() { 80 "use strict"; 81 82 function t(t) { 83 var e = parseFloat(t); 84 return -1 == t.indexOf("%") && !isNaN(e) && e 85 } 86 87 function e(t) { 88 var e = getComputedStyle(t); 89 return e || o("Style returned " + e + ". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"), e 90 } 91 var i, o = "undefined" == typeof console ? function() {} : function(t) { 92 console.error(t) 93 }, 94 n = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"], 95 s = n.length, 96 r = !1; 97 return function o(a) { 98 if (function() { 99 if (!r) { 100 r = !0; 101 var n = document.createElement("div"); 102 n.style.width = "200px", n.style.padding = "1px 2px 3px 4px", n.style.borderStyle = "solid", n.style.borderWidth = "1px 2px 3px 4px", n.style.boxSizing = "border-box"; 103 var s = document.body || document.documentElement; 104 s.appendChild(n); 105 var a = e(n); 106 i = 200 == Math.round(t(a.width)), o.isBoxSizeOuter = i, s.removeChild(n) 107 } 108 }(), "string" == typeof a && (a = document.querySelector(a)), a && "object" == typeof a && a.nodeType) { 109 var u = e(a); 110 if ("none" == u.display) return function() { 111 for (var t = { 112 width: 0, 113 height: 0, 114 innerWidth: 0, 115 innerHeight: 0, 116 outerWidth: 0, 117 outerHeight: 0 118 }, e = 0; e < s; e++) t[n[e]] = 0; 119 return t 120 }(); 121 var h = {}; 122 h.width = a.offsetWidth, h.height = a.offsetHeight; 123 for (var l = h.isBorderBox = "border-box" == u.boxSizing, d = 0; d < s; d++) { 124 var f = n[d], 125 c = u[f], 126 m = parseFloat(c); 127 h[f] = isNaN(m) ? 0 : m 128 } 129 var p = h.paddingLeft + h.paddingRight, 130 y = h.paddingTop + h.paddingBottom, 131 g = h.marginLeft + h.marginRight, 132 v = h.marginTop + h.marginBottom, 133 _ = h.borderLeftWidth + h.borderRightWidth, 134 z = h.borderTopWidth + h.borderBottomWidth, 135 I = l && i, 136 x = t(u.width); 137 !1 !== x && (h.width = x + (I ? 0 : p + _)); 138 var S = t(u.height); 139 return !1 !== S && (h.height = S + (I ? 0 : y + z)), h.innerWidth = h.width - (p + _), h.innerHeight = h.height - (y + z), h.outerWidth = h.width + g, h.outerHeight = h.height + v, h 140 } 141 } 142})), 143function(t, e) { 144 "use strict"; 145 "function" == typeof define && define.amd ? define("desandro-matches-selector/matches-selector", e) : "object" == typeof module && module.exports ? module.exports = e() : t.matchesSelector = e() 146}(window, (function() { 147 "use strict"; 148 var t = function() { 149 var t = window.Element.prototype; 150 if (t.matches) return "matches"; 151 if (t.matchesSelector) return "matchesSelector"; 152 for (var e = ["webkit", "moz", "ms", "o"], i = 0; i < e.length; i++) { 153 var o = e[i] + "MatchesSelector"; 154 if (t[o]) return o 155 } 156 }(); 157 return function(e, i) { 158 return e[t](i) 159 } 160})), 161function(t, e) { 162 "function" == typeof define && define.amd ? define("fizzy-ui-utils/utils", ["desandro-matches-selector/matches-selector"], (function(i) { 163 return e(t, i) 164 })) : "object" == typeof module && module.exports ? module.exports = e(t, require("desandro-matches-selector")) : t.fizzyUIUtils = e(t, t.matchesSelector) 165}(window, (function(t, e) { 166 var i = { 167 extend: function(t, e) { 168 for (var i in e) t[i] = e[i]; 169 return t 170 }, 171 modulo: function(t, e) { 172 return (t % e + e) % e 173 } 174 }, 175 o = Array.prototype.slice; 176 i.makeArray = function(t) { 177 return Array.isArray(t) ? t : null == t ? [] : "object" == typeof t && "number" == typeof t.length ? o.call(t) : [t] 178 }, i.removeFrom = function(t, e) { 179 var i = t.indexOf(e); - 1 != i && t.splice(i, 1) 180 }, i.getParent = function(t, i) { 181 for (; t.parentNode && t != document.body;) 182 if (t = t.parentNode, e(t, i)) return t 183 }, i.getQueryElement = function(t) { 184 return "string" == typeof t ? document.querySelector(t) : t 185 }, i.handleEvent = function(t) { 186 var e = "on" + t.type; 187 this[e] && this[e](t) 188 }, i.filterFindElements = function(t, o) { 189 t = i.makeArray(t); 190 var n = []; 191 return t.forEach((function(t) { 192 if (t instanceof HTMLElement) { 193 if (!o) return void n.push(t); 194 e(t, o) && n.push(t); 195 for (var i = t.querySelectorAll(o), s = 0; s < i.length; s++) n.push(i[s]) 196 } 197 })), n 198 }, i.debounceMethod = function(t, e, i) { 199 i = i || 100; 200 var o = t.prototype[e], 201 n = e + "Timeout"; 202 t.prototype[e] = function() { 203 var t = this[n]; 204 clearTimeout(t); 205 var e = arguments, 206 s = this; 207 this[n] = setTimeout((function() { 208 o.apply(s, e), delete s[n] 209 }), i) 210 } 211 }, i.docReady = function(t) { 212 var e = document.readyState; 213 "complete" == e || "interactive" == e ? setTimeout(t) : document.addEventListener("DOMContentLoaded", t) 214 }, i.toDashed = function(t) { 215 return t.replace(/(.)([A-Z])/g, (function(t, e, i) { 216 return e + "-" + i 217 })).toLowerCase() 218 }; 219 var n = t.console; 220 return i.htmlInit = function(e, o) { 221 i.docReady((function() { 222 var s = i.toDashed(o), 223 r = "data-" + s, 224 a = document.querySelectorAll("[" + r + "]"), 225 u = document.querySelectorAll(".js-" + s), 226 h = i.makeArray(a).concat(i.makeArray(u)), 227 l = r + "-options", 228 d = t.jQuery; 229 h.forEach((function(t) { 230 var i, s = t.getAttribute(r) || t.getAttribute(l); 231 try { 232 i = s && JSON.parse(s) 233 } catch (i) { 234 return void(n && n.error("Error parsing " + r + " on " + t.className + ": " + i)) 235 } 236 var a = new e(t, i); 237 d && d.data(t, o, a) 238 })) 239 })) 240 }, i 241})), 242function(t, e) { 243 "function" == typeof define && define.amd ? define("outlayer/item", ["ev-emitter/ev-emitter", "get-size/get-size"], e) : "object" == typeof module && module.exports ? module.exports = e(require("ev-emitter"), require("get-size")) : (t.Outlayer = {}, t.Outlayer.Item = e(t.EvEmitter, t.getSize)) 244}(window, (function(t, e) { 245 "use strict"; 246 247 function i(t, e) { 248 t && (this.element = t, this.layout = e, this.position = { 249 x: 0, 250 y: 0 251 }, this._create()) 252 } 253 var o = document.documentElement.style, 254 n = "string" == typeof o.transition ? "transition" : "WebkitTransition", 255 s = "string" == typeof o.transform ? "transform" : "WebkitTransform", 256 r = { 257 WebkitTransition: "webkitTransitionEnd", 258 transition: "transitionend" 259 }[n], 260 a = { 261 transform: s, 262 transition: n, 263 transitionDuration: n + "Duration", 264 transitionProperty: n + "Property", 265 transitionDelay: n + "Delay" 266 }, 267 u = i.prototype = Object.create(t.prototype); 268 u.constructor = i, u._create = function() { 269 this._transn = { 270 ingProperties: {}, 271 clean: {}, 272 onEnd: {} 273 }, this.css({ 274 position: "absolute" 275 }) 276 }, u.handleEvent = function(t) { 277 var e = "on" + t.type; 278 this[e] && this[e](t) 279 }, u.getSize = function() { 280 this.size = e(this.element) 281 }, u.css = function(t) { 282 var e = this.element.style; 283 for (var i in t) e[a[i] || i] = t[i] 284 }, u.getPosition = function() { 285 var t = getComputedStyle(this.element), 286 e = this.layout._getOption("originLeft"), 287 i = this.layout._getOption("originTop"), 288 o = t[e ? "left" : "right"], 289 n = t[i ? "top" : "bottom"], 290 s = parseFloat(o), 291 r = parseFloat(n), 292 a = this.layout.size; - 1 != o.indexOf("%") && (s = s / 100 * a.width), -1 != n.indexOf("%") && (r = r / 100 * a.height), s = isNaN(s) ? 0 : s, r = isNaN(r) ? 0 : r, s -= e ? a.paddingLeft : a.paddingRight, r -= i ? a.paddingTop : a.paddingBottom, this.position.x = s, this.position.y = r 293 }, u.layoutPosition = function() { 294 var t = this.layout.size, 295 e = {}, 296 i = this.layout._getOption("originLeft"), 297 o = this.layout._getOption("originTop"), 298 n = i ? "paddingLeft" : "paddingRight", 299 s = i ? "left" : "right", 300 r = i ? "right" : "left", 301 a = this.position.x + t[n]; 302 e[s] = this.getXValue(a), e[r] = ""; 303 var u = o ? "paddingTop" : "paddingBottom", 304 h = o ? "top" : "bottom", 305 l = o ? "bottom" : "top", 306 d = this.position.y + t[u]; 307 e[h] = this.getYValue(d), e[l] = "", this.css(e), this.emitEvent("layout", [this]) 308 }, u.getXValue = function(t) { 309 var e = this.layout._getOption("horizontal"); 310 return this.layout.options.percentPosition && !e ? t / this.layout.size.width * 100 + "%" : t + "px" 311 }, u.getYValue = function(t) { 312 var e = this.layout._getOption("horizontal"); 313 return this.layout.options.percentPosition && e ? t / this.layout.size.height * 100 + "%" : t + "px" 314 }, u._transitionTo = function(t, e) { 315 this.getPosition(); 316 var i = this.position.x, 317 o = this.position.y, 318 n = t == this.position.x && e == this.position.y; 319 if (this.setPosition(t, e), !n || this.isTransitioning) { 320 var s = t - i, 321 r = e - o, 322 a = {}; 323 a.transform = this.getTranslate(s, r), this.transition({ 324 to: a, 325 onTransitionEnd: { 326 transform: this.layoutPosition 327 }, 328 isCleaning: !0 329 }) 330 } else this.layoutPosition() 331 }, u.getTranslate = function(t, e) { 332 return "translate3d(" + (t = this.layout._getOption("originLeft") ? t : -t) + "px, " + (e = this.layout._getOption("originTop") ? e : -e) + "px, 0)" 333 }, u.goTo = function(t, e) { 334 this.setPosition(t, e), this.layoutPosition() 335 }, u.moveTo = u._transitionTo, u.setPosition = function(t, e) { 336 this.position.x = parseFloat(t), this.position.y = parseFloat(e) 337 }, u._nonTransition = function(t) { 338 for (var e in this.css(t.to), t.isCleaning && this._removeStyles(t.to), t.onTransitionEnd) t.onTransitionEnd[e].call(this) 339 }, u.transition = function(t) { 340 if (parseFloat(this.layout.options.transitionDuration)) { 341 var e = this._transn; 342 for (var i in t.onTransitionEnd) e.onEnd[i] = t.onTransitionEnd[i]; 343 for (i in t.to) e.ingProperties[i] = !0, t.isCleaning && (e.clean[i] = !0); 344 t.from && (this.css(t.from), this.element.offsetHeight), this.enableTransition(t.to), this.css(t.to), this.isTransitioning = !0 345 } else this._nonTransition(t) 346 }; 347 var h = "opacity," + s.replace(/([A-Z])/g, (function(t) { 348 return "-" + t.toLowerCase() 349 })); 350 u.enableTransition = function() { 351 if (!this.isTransitioning) { 352 var t = this.layout.options.transitionDuration; 353 t = "number" == typeof t ? t + "ms" : t, this.css({ 354 transitionProperty: h, 355 transitionDuration: t, 356 transitionDelay: this.staggerDelay || 0 357 }), this.element.addEventListener(r, this, !1) 358 } 359 }, u.onwebkitTransitionEnd = function(t) { 360 this.ontransitionend(t) 361 }, u.onotransitionend = function(t) { 362 this.ontransitionend(t) 363 }; 364 var l = { 365 "-webkit-transform": "transform" 366 }; 367 u.ontransitionend = function(t) { 368 if (t.target === this.element) { 369 var e = this._transn, 370 i = l[t.propertyName] || t.propertyName; 371 delete e.ingProperties[i], 372 function(t) { 373 for (var e in t) return !1; 374 return !0 375 }(e.ingProperties) && this.disableTransition(), i in e.clean && (this.element.style[t.propertyName] = "", delete e.clean[i]), i in e.onEnd && (e.onEnd[i].call(this), delete e.onEnd[i]), this.emitEvent("transitionEnd", [this]) 376 } 377 }, u.disableTransition = function() { 378 this.removeTransitionStyles(), this.element.removeEventListener(r, this, !1), this.isTransitioning = !1 379 }, u._removeStyles = function(t) { 380 var e = {}; 381 for (var i in t) e[i] = ""; 382 this.css(e) 383 }; 384 var d = { 385 transitionProperty: "", 386 transitionDuration: "", 387 transitionDelay: "" 388 }; 389 return u.removeTransitionStyles = function() { 390 this.css(d) 391 }, u.stagger = function(t) { 392 t = isNaN(t) ? 0 : t, this.staggerDelay = t + "ms" 393 }, u.removeElem = function() { 394 this.element.parentNode.removeChild(this.element), this.css({ 395 display: "" 396 }), this.emitEvent("remove", [this]) 397 }, u.remove = function() { 398 return n && parseFloat(this.layout.options.transitionDuration) ? (this.once("transitionEnd", (function() { 399 this.removeElem() 400 })), void this.hide()) : void this.removeElem() 401 }, u.reveal = function() { 402 delete this.isHidden, this.css({ 403 display: "" 404 }); 405 var t = this.layout.options, 406 e = {}; 407 e[this.getHideRevealTransitionEndProperty("visibleStyle")] = this.onRevealTransitionEnd, this.transition({ 408 from: t.hiddenStyle, 409 to: t.visibleStyle, 410 isCleaning: !0, 411 onTransitionEnd: e 412 }) 413 }, u.onRevealTransitionEnd = function() { 414 this.isHidden || this.emitEvent("reveal") 415 }, u.getHideRevealTransitionEndProperty = function(t) { 416 var e = this.layout.options[t]; 417 if (e.opacity) return "opacity"; 418 for (var i in e) return i 419 }, u.hide = function() { 420 this.isHidden = !0, this.css({ 421 display: "" 422 }); 423 var t = this.layout.options, 424 e = {}; 425 e[this.getHideRevealTransitionEndProperty("hiddenStyle")] = this.onHideTransitionEnd, this.transition({ 426 from: t.visibleStyle, 427 to: t.hiddenStyle, 428 isCleaning: !0, 429 onTransitionEnd: e 430 }) 431 }, u.onHideTransitionEnd = function() { 432 this.isHidden && (this.css({ 433 display: "none" 434 }), this.emitEvent("hide")) 435 }, u.destroy = function() { 436 this.css({ 437 position: "", 438 left: "", 439 right: "", 440 top: "", 441 bottom: "", 442 transition: "", 443 transform: "" 444 }) 445 }, i 446})), 447function(t, e) { 448 "use strict"; 449 "function" == typeof define && define.amd ? define("outlayer/outlayer", ["ev-emitter/ev-emitter", "get-size/get-size", "fizzy-ui-utils/utils", "./item"], (function(i, o, n, s) { 450 return e(t, i, o, n, s) 451 })) : "object" == typeof module && module.exports ? module.exports = e(t, require("ev-emitter"), require("get-size"), require("fizzy-ui-utils"), require("./item")) : t.Outlayer = e(t, t.EvEmitter, t.getSize, t.fizzyUIUtils, t.Outlayer.Item) 452}(window, (function(t, e, i, o, n) { 453 "use strict"; 454 455 function s(t, e) { 456 var i = o.getQueryElement(t); 457 if (i) { 458 this.element = i, u && (this.$element = u(this.element)), this.options = o.extend({}, this.constructor.defaults), this.option(e); 459 var n = ++l; 460 this.element.outlayerGUID = n, (d[n] = this)._create(), this._getOption("initLayout") && this.layout() 461 } else a && a.error("Bad element for " + this.constructor.namespace + ": " + (i || t)) 462 } 463 464 function r(t) { 465 function e() { 466 t.apply(this, arguments) 467 } 468 return (e.prototype = Object.create(t.prototype)).constructor = e 469 } 470 var a = t.console, 471 u = t.jQuery, 472 h = function() {}, 473 l = 0, 474 d = {}; 475 s.namespace = "outlayer", s.Item = n, s.defaults = { 476 containerStyle: { 477 position: "relative" 478 }, 479 initLayout: !0, 480 originLeft: !0, 481 originTop: !0, 482 resize: !0, 483 resizeContainer: !0, 484 transitionDuration: "0.4s", 485 hiddenStyle: { 486 opacity: 0, 487 transform: "scale(0.001)" 488 }, 489 visibleStyle: { 490 opacity: 1, 491 transform: "scale(1)" 492 } 493 }; 494 var f = s.prototype; 495 o.extend(f, e.prototype), f.option = function(t) { 496 o.extend(this.options, t) 497 }, f._getOption = function(t) { 498 var e = this.constructor.compatOptions[t]; 499 return e && void 0 !== this.options[e] ? this.options[e] : this.options[t] 500 }, s.compatOptions = { 501 initLayout: "isInitLayout", 502 horizontal: "isHorizontal", 503 layoutInstant: "isLayoutInstant", 504 originLeft: "isOriginLeft", 505 originTop: "isOriginTop", 506 resize: "isResizeBound", 507 resizeContainer: "isResizingContainer" 508 }, f._create = function() { 509 this.reloadItems(), this.stamps = [], this.stamp(this.options.stamp), o.extend(this.element.style, this.options.containerStyle), this._getOption("resize") && this.bindResize() 510 }, f.reloadItems = function() { 511 this.items = this._itemize(this.element.children) 512 }, f._itemize = function(t) { 513 for (var e = this._filterFindItemElements(t), i = this.constructor.Item, o = [], n = 0; n < e.length; n++) { 514 var s = new i(e[n], this); 515 o.push(s) 516 } 517 return o 518 }, f._filterFindItemElements = function(t) { 519 return o.filterFindElements(t, this.options.itemSelector) 520 }, f.getItemElements = function() { 521 return this.items.map((function(t) { 522 return t.element 523 })) 524 }, f.layout = function() { 525 this._resetLayout(), this._manageStamps(); 526 var t = this._getOption("layoutInstant"), 527 e = void 0 !== t ? t : !this._isLayoutInited; 528 this.layoutItems(this.items, e), this._isLayoutInited = !0 529 }, f._init = f.layout, f._resetLayout = function() { 530 this.getSize() 531 }, f.getSize = function() { 532 this.size = i(this.element) 533 }, f._getMeasurement = function(t, e) { 534 var o, n = this.options[t]; 535 n ? ("string" == typeof n ? o = this.element.querySelector(n) : n instanceof HTMLElement && (o = n), this[t] = o ? i(o)[e] : n) : this[t] = 0 536 }, f.layoutItems = function(t, e) { 537 t = this._getItemsForLayout(t), this._layoutItems(t, e), this._postLayout() 538 }, f._getItemsForLayout = function(t) { 539 return t.filter((function(t) { 540 return !t.isIgnored 541 })) 542 }, f._layoutItems = function(t, e) { 543 if (this._emitCompleteOnItems("layout", t), t && t.length) { 544 var i = []; 545 t.forEach((function(t) { 546 var o = this._getItemLayoutPosition(t); 547 o.item = t, o.isInstant = e || t.isLayoutInstant, i.push(o) 548 }), this), this._processLayoutQueue(i) 549 } 550 }, f._getItemLayoutPosition = function() { 551 return { 552 x: 0, 553 y: 0 554 } 555 }, f._processLayoutQueue = function(t) { 556 this.updateStagger(), t.forEach((function(t, e) { 557 this._positionItem(t.item, t.x, t.y, t.isInstant, e) 558 }), this) 559 }, f.updateStagger = function() { 560 var t = this.options.stagger; 561 return null == t ? void(this.stagger = 0) : (this.stagger = function(t) { 562 if ("number" == typeof t) return t; 563 var e = t.match(/(^\d*\.?\d*)(\w*)/), 564 i = e && e[1], 565 o = e && e[2]; 566 return i.length ? (i = parseFloat(i)) * (c[o] || 1) : 0 567 }(t), this.stagger) 568 }, f._positionItem = function(t, e, i, o, n) { 569 o ? t.goTo(e, i) : (t.stagger(n * this.stagger), t.moveTo(e, i)) 570 }, f._postLayout = function() { 571 this.resizeContainer() 572 }, f.resizeContainer = function() { 573 if (this._getOption("resizeContainer")) { 574 var t = this._getContainerSize(); 575 t && (this._setContainerMeasure(t.width, !0), this._setContainerMeasure(t.height, !1)) 576 } 577 }, f._getContainerSize = h, f._setContainerMeasure = function(t, e) { 578 if (void 0 !== t) { 579 var i = this.size; 580 i.isBorderBox && (t += e ? i.paddingLeft + i.paddingRight + i.borderLeftWidth + i.borderRightWidth : i.paddingBottom + i.paddingTop + i.borderTopWidth + i.borderBottomWidth), t = Math.max(t, 0), this.element.style[e ? "width" : "height"] = t + "px" 581 } 582 }, f._emitCompleteOnItems = function(t, e) { 583 function i() { 584 n.dispatchEvent(t + "Complete", null, [e]) 585 } 586 587 function o() { 588 ++r == s && i() 589 } 590 var n = this, 591 s = e.length; 592 if (e && s) { 593 var r = 0; 594 e.forEach((function(e) { 595 e.once(t, o) 596 })) 597 } else i() 598 }, f.dispatchEvent = function(t, e, i) { 599 var o = e ? [e].concat(i) : i; 600 if (this.emitEvent(t, o), u) 601 if (this.$element = this.$element || u(this.element), e) { 602 var n = u.Event(e); 603 n.type = t, this.$element.trigger(n, i) 604 } else this.$element.trigger(t, i) 605 }, f.ignore = function(t) { 606 var e = this.getItem(t); 607 e && (e.isIgnored = !0) 608 }, f.unignore = function(t) { 609 var e = this.getItem(t); 610 e && delete e.isIgnored 611 }, f.stamp = function(t) { 612 (t = this._find(t)) && (this.stamps = this.stamps.concat(t), t.forEach(this.ignore, this)) 613 }, f.unstamp = function(t) { 614 (t = this._find(t)) && t.forEach((function(t) { 615 o.removeFrom(this.stamps, t), this.unignore(t) 616 }), this) 617 }, f._find = function(t) { 618 if (t) return "string" == typeof t && (t = this.element.querySelectorAll(t)), o.makeArray(t) 619 }, f._manageStamps = function() { 620 this.stamps && this.stamps.length && (this._getBoundingRect(), this.stamps.forEach(this._manageStamp, this)) 621 }, f._getBoundingRect = function() { 622 var t = this.element.getBoundingClientRect(), 623 e = this.size; 624 this._boundingRect = { 625 left: t.left + e.paddingLeft + e.borderLeftWidth, 626 top: t.top + e.paddingTop + e.borderTopWidth, 627 right: t.right - (e.paddingRight + e.borderRightWidth), 628 bottom: t.bottom - (e.paddingBottom + e.borderBottomWidth) 629 } 630 }, f._manageStamp = h, f._getElementOffset = function(t) { 631 var e = t.getBoundingClientRect(), 632 o = this._boundingRect, 633 n = i(t); 634 return { 635 left: e.left - o.left - n.marginLeft, 636 top: e.top - o.top - n.marginTop, 637 right: o.right - e.right - n.marginRight, 638 bottom: o.bottom - e.bottom - n.marginBottom 639 } 640 }, f.handleEvent = o.handleEvent, f.bindResize = function() { 641 t.addEventListener("resize", this), this.isResizeBound = !0 642 }, f.unbindResize = function() { 643 t.removeEventListener("resize", this), this.isResizeBound = !1 644 }, f.onresize = function() { 645 this.resize() 646 }, o.debounceMethod(s, "onresize", 100), f.resize = function() { 647 this.isResizeBound && this.needsResizeLayout() && this.layout() 648 }, f.needsResizeLayout = function() { 649 var t = i(this.element); 650 return this.size && t && t.innerWidth !== this.size.innerWidth 651 }, f.addItems = function(t) { 652 var e = this._itemize(t); 653 return e.length && (this.items = this.items.concat(e)), e 654 }, f.appended = function(t) { 655 var e = this.addItems(t); 656 e.length && (this.layoutItems(e, !0), this.reveal(e)) 657 }, f.prepended = function(t) { 658 var e = this._itemize(t); 659 if (e.length) { 660 var i = this.items.slice(0); 661 this.items = e.concat(i), this._resetLayout(), this._manageStamps(), this.layoutItems(e, !0), this.reveal(e), this.layoutItems(i) 662 } 663 }, f.reveal = function(t) { 664 if (this._emitCompleteOnItems("reveal", t), t && t.length) { 665 var e = this.updateStagger(); 666 t.forEach((function(t, i) { 667 t.stagger(i * e), t.reveal() 668 })) 669 } 670 }, f.hide = function(t) { 671 if (this._emitCompleteOnItems("hide", t), t && t.length) { 672 var e = this.updateStagger(); 673 t.forEach((function(t, i) { 674 t.stagger(i * e), t.hide() 675 })) 676 } 677 }, f.revealItemElements = function(t) { 678 var e = this.getItems(t); 679 this.reveal(e) 680 }, f.hideItemElements = function(t) { 681 var e = this.getItems(t); 682 this.hide(e) 683 }, f.getItem = function(t) { 684 for (var e = 0; e < this.items.length; e++) { 685 var i = this.items[e]; 686 if (i.element == t) return i 687 } 688 }, f.getItems = function(t) { 689 t = o.makeArray(t); 690 var e = []; 691 return t.forEach((function(t) { 692 var i = this.getItem(t); 693 i && e.push(i) 694 }), this), e 695 }, f.remove = function(t) { 696 var e = this.getItems(t); 697 this._emitCompleteOnItems("remove", e), e && e.length && e.forEach((function(t) { 698 t.remove(), o.removeFrom(this.items, t) 699 }), this) 700 }, f.destroy = function() { 701 var t = this.element.style; 702 t.height = "", t.position = "", t.width = "", this.items.forEac
702h((function(t) { 703 t.destroy() 704 })), this.unbindResize(); 705 var e = this.element.outlayerGUID; 706 delete d[e], delete this.element.outlayerGUID, u && u.removeData(this.element, this.constructor.namespace) 707 }, s.data = function(t) { 708 var e = (t = o.getQueryElement(t)) && t.outlayerGUID; 709 return e && d[e] 710 }, s.create = function(t, e) { 711 var i = r(s); 712 return i.defaults = o.extend({}, s.defaults), o.extend(i.defaults, e), i.compatOptions = o.extend({}, s.compatOptions), i.namespace = t, i.data = s.data, i.Item = r(n), o.htmlInit(i, t), u && u.bridget && u.bridget(t, i), i 713 }; 714 var c = { 715 ms: 1, 716 s: 1e3 717 }; 718 return s.Item = n, s 719})), 720function(t, e) { 721 "function" == typeof define && define.amd ? define("isotope-layout/js/item", ["outlayer/outlayer"], e) : "object" == typeof module && module.exports ? module.exports = e(require("outlayer")) : (t.Isotope = t.Isotope || {}, t.Isotope.Item = e(t.Outlayer)) 722}(window, (function(t) { 723 "use strict"; 724 725 function e() { 726 t.Item.apply(this, arguments) 727 } 728 var i = e.prototype = Object.create(t.Item.prototype), 729 o = i._create; 730 i._create = function() { 731 this.id = this.layout.itemGUID++, o.call(this), this.sortData = {} 732 }, i.updateSortData = function() { 733 if (!this.isIgnored) { 734 this.sortData.id = this.id, this.sortData["original-order"] = this.id, this.sortData.random = Math.random(); 735 var t = this.layout.options.getSortData, 736 e = this.layout._sorters; 737 for (var i in t) { 738 var o = e[i]; 739 this.sortData[i] = o(this.element, this) 740 } 741 } 742 }; 743 var n = i.destroy; 744 return i.destroy = function() { 745 n.apply(this, arguments), this.css({ 746 display: "" 747 }) 748 }, e 749})), 750function(t, e) { 751 "function" == typeof define && define.amd ? define("isotope-layout/js/layout-mode", ["get-size/get-size", "outlayer/outlayer"], e) : "object" == typeof module && module.exports ? module.exports = e(require("get-size"), require("outlayer")) : (t.Isotope = t.Isotope || {}, t.Isotope.LayoutMode = e(t.getSize, t.Outlayer)) 752}(window, (function(t, e) { 753 "use strict"; 754 755 function i(t) { 756 (this.isotope = t) && (this.options = t.options[this.namespace], this.element = t.element, this.items = t.filteredItems, this.size = t.size) 757 } 758 var o = i.prototype; 759 return ["_resetLayout", "_getItemLayoutPosition", "_manageStamp", "_getContainerSize", "_getElementOffset", "needsResizeLayout", "_getOption"].forEach((function(t) { 760 o[t] = function() { 761 return e.prototype[t].apply(this.isotope, arguments) 762 } 763 })), o.needsVerticalResizeLayout = function() { 764 var e = t(this.isotope.element); 765 return this.isotope.size && e && e.innerHeight != this.isotope.size.innerHeight 766 }, o._getMeasurement = function() { 767 this.isotope._getMeasurement.apply(this, arguments) 768 }, o.getColumnWidth = function() {
769 this.getSegmentSize("column", "Width") 770 }, o.getRowHeight = function() { 771 this.getSegmentSize("row", "Height") 772 }, o.getSegmentSize = function(t, e) { 773 var i = t + e, 774 o = "outer" + e; 775 if (this._getMeasurement(i, o), !this[i]) { 776 var n = this.getFirstItemSize(); 777 this[i] = n && n[o] || this.isotope.size["inner" + e] 778 } 779 }, o.getFirstItemSize = function() { 780 var e = this.isotope.filteredItems[0]; 781 return e && e.element && t(e.element) 782 }, o.layout = function() { 783 this.isotope.layout.apply(this.isotope, arguments) 784 }, o.getSize = function() { 785 this.isotope.getSize(), this.size = this.isotope.size 786 }, i.modes = {}, i.create = function(t, e) { 787 function n() { 788 i.apply(this, arguments) 789 } 790 return (n.prototype = Object.create(o)).constructor = n, e && (n.options = e), i.modes[n.prototype.namespace = t] = n 791 }, i 792})), 793function(t, e) { 794 "function" == typeof define && define.amd ? define("masonry-layout/masonry", ["outlayer/outlayer", "get-size/get-size"], e) : "object" == typeof module && module.exports ? module.exports = e(require("outlayer"), require("get-size")) : t.Masonry = e(t.Outlayer, t.getSize) 795}(window, (function(t, e) { 796 var i = t.create("masonry"); 797 i.compatOptions.fitWidth = "isFitWidth"; 798 var o = i.prototype; 799 return o._resetLayout = function() {
vendor: 15,607 bytes, lines 800-1145
800 this.getSize(), this._getMeasurement("columnWidth", "outerWidth"), this._getMeasurement("gutter", "outerWidth"), this.measureColumns(), this.colYs = []; 801 for (var t = 0; t < this.cols; t++) this.colYs.push(0); 802 this.maxY = 0, this.horizontalColIndex = 0 803 }, o.measureColumns = function() { 804 if (this.getContainerWidth(), !this.columnWidth) { 805 var t = this.items[0], 806 i = t && t.element; 807 this.columnWidth = i && e(i).outerWidth || this.containerWidth 808 } 809 var o = this.columnWidth += this.gutter, 810 n = this.containerWidth + this.gutter, 811 s = n / o, 812 r = o - n % o; 813 s = Math[r && r < 1 ? "round" : "floor"](s), this.cols = Math.max(s, 1) 814 }, o.getContainerWidth = function() { 815 var t = this._getOption("fitWidth") ? this.element.parentNode : this.element, 816 i = e(t); 817 this.containerWidth = i && i.innerWidth 818 }, o._getItemLayoutPosition = function(t) { 819 t.getSize(); 820 var e = t.size.outerWidth % this.columnWidth, 821 i = Math[e && e < 1 ? "round" : "ceil"](t.size.outerWidth / this.columnWidth); 822 i = Math.min(i, this.cols); 823 for (var o = this[this.options.horizontalOrder ? "_getHorizontalColPosition" : "_getTopColPosition"](i, t), n = { 824 x: this.columnWidth * o.col, 825 y: o.y 826 }, s = o.y + t.size.outerHeight, r = i + o.col, a = o.col; a < r; a++) this.colYs[a] = s; 827 return n 828 }, o._getTopColPosition = function(t) { 829 var e = this._getTopColGroup(t), 830 i = Math.min.apply(Math, e); 831 return { 832 col: e.indexOf(i), 833 y: i 834 } 835 }, o._getTopColGroup = function(t) { 836 if (t < 2) return this.colYs; 837 for (var e = [], i = this.cols + 1 - t, o = 0; o < i; o++) e[o] = this._getColGroupY(o, t); 838 return e 839 }, o._getColGroupY = function(t, e) { 840 if (e < 2) return this.colYs[t]; 841 var i = this.colYs.slice(t, t + e); 842 return Math.max.apply(Math, i) 843 }, o._getHorizontalColPosition = function(t, e) { 844 var i = this.horizontalColIndex % this.cols; 845 i = 1 < t && i + t > this.cols ? 0 : i; 846 var o = e.size.outerWidth && e.size.outerHeight; 847 return this.horizontalColIndex = o ? i + t : this.horizontalColIndex, { 848 col: i, 849 y: this._getColGroupY(i, t) 850 } 851 }, o._manageStamp = function(t) { 852 var i = e(t), 853 o = this._getElementOffset(t), 854 n = this._getOption("originLeft") ? o.left : o.right, 855 s = n + i.outerWidth, 856 r = Math.floor(n / this.columnWidth); 857 r = Math.max(0, r); 858 var a = Math.floor(s / this.columnWidth); 859 a -= s % this.columnWidth ? 0 : 1, a = Math.min(this.cols - 1, a); 860 for (var u = (this._getOption("originTop") ? o.top : o.bottom) + i.outerHeight, h = r; h <= a; h++) this.colYs[h] = Math.max(u, this.colYs[h]) 861 }, o._getContainerSize = function() { 862 this.maxY = Math.max.apply(Math, this.colYs); 863 var t = { 864 height: this.maxY 865 }; 866 return this._getOption("fitWidth") && (t.width = this._getContainerFitWidth()), t 867 }, o._getContainerFitWidth = function() { 868 for (var t = 0, e = this.cols; --e && 0 === this.colYs[e];) t++; 869 return (this.cols - t) * this.columnWidth - this.gutter 870 }, o.needsResizeLayout = function() { 871 var t = this.containerWidth; 872 return this.getContainerWidth(), t != this.containerWidth 873 }, i 874})), 875function(t, e) { 876 "function" == typeof define && define.amd ? define("isotope-layout/js/layout-modes/masonry", ["../layout-mode", "masonry-layout/masonry"], e) : "object" == typeof module && module.exports ? module.exports = e(require("../layout-mode"), require("masonry-layout")) : e(t.Isotope.LayoutMode, t.Masonry) 877}(window, (function(t, e) { 878 "use strict"; 879 var i = t.create("masonry"), 880 o = i.prototype, 881 n = { 882 _getElementOffset: !0, 883 layout: !0, 884 _getMeasurement: !0 885 }; 886 for (var s in e.prototype) n[s] || (o[s] = e.prototype[s]); 887 var r = o.measureColumns; 888 o.measureColumns = function() { 889 this.items = this.isotope.filteredItems, r.call(this) 890 }; 891 var a = o._getOption; 892 return o._getOption = function(t) { 893 return "fitWidth" == t ? void 0 !== this.options.isFitWidth ? this.options.isFitWidth : this.options.fitWidth : a.apply(this.isotope, arguments) 894 }, i 895})), 896function(t, e) { 897 "function" == typeof define && define.amd ? define("isotope-layout/js/layout-modes/fit-rows", ["../layout-mode"], e) : "object" == typeof exports ? module.exports = e(require("../layout-mode")) : e(t.Isotope.LayoutMode) 898}(window, (function(t) { 899 "use strict"; 900 var e = t.create("fitRows"), 901 i = e.prototype; 902 return i._resetLayout = function() { 903 this.x = 0, this.y = 0, this.maxY = 0, this._getMeasurement("gutter", "outerWidth") 904 }, i._getItemLayoutPosition = function(t) { 905 t.getSize(); 906 var e = t.size.outerWidth + this.gutter, 907 i = this.isotope.size.innerWidth + this.gutter; 908 0 !== this.x && e + this.x > i && (this.x = 0, this.y = this.maxY); 909 var o = { 910 x: this.x, 911 y: this.y 912 }; 913 return this.maxY = Math.max(this.maxY, this.y + t.size.outerHeight), this.x += e, o 914 }, i._getContainerSize = function() { 915 return { 916 height: this.maxY 917 } 918 }, e 919})), 920function(t, e) { 921 "function" == typeof define && define.amd ? define("isotope-layout/js/layout-modes/vertical", ["../layout-mode"], e) : "object" == typeof module && module.exports ? module.exports = e(require("../layout-mode")) : e(t.Isotope.LayoutMode) 922}(window, (function(t) { 923 "use strict"; 924 var e = t.create("vertical", { 925 horizontalAlignment: 0 926 }), 927 i = e.prototype; 928 return i._resetLayout = function() { 929 this.y = 0 930 }, i._getItemLayoutPosition = function(t) { 931 t.getSize(); 932 var e = (this.isotope.size.innerWidth - t.size.outerWidth) * this.options.horizontalAlignment, 933 i = this.y; 934 return this.y += t.size.outerHeight, { 935 x: e, 936 y: i 937 } 938 }, i._getContainerSize = function() { 939 return { 940 height: this.y 941 } 942 }, e 943})), 944function(t, e) { 945 "function" == typeof define && define.amd ? define(["outlayer/outlayer", "get-size/get-size", "desandro-matches-selector/matches-selector", "fizzy-ui-utils/utils", "isotope-layout/js/item", "isotope-layout/js/layout-mode", "isotope-layout/js/layout-modes/masonry", "isotope-layout/js/layout-modes/fit-rows", "isotope-layout/js/layout-modes/vertical"], (function(i, o, n, s, r, a) { 946 return e(t, i, o, n, s, r, a) 947 })) : "object" == typeof module && module.exports ? module.exports = e(t, require("outlayer"), require("get-size"), require("desandro-matches-selector"), require("fizzy-ui-utils"), require("isotope-layout/js/item"), require("isotope-layout/js/layout-mode"), require("isotope-layout/js/layout-modes/masonry"), require("isotope-layout/js/layout-modes/fit-rows"), require("isotope-layout/js/layout-modes/vertical")) : t.Isotope = e(t, t.Outlayer, t.getSize, t.matchesSelector, t.fizzyUIUtils, t.Isotope.Item, t.Isotope.LayoutMode) 948}(window, (function(t, e, i, o, n, s, r) { 949 var a = t.jQuery, 950 u = String.prototype.trim ? function(t) { 951 return t.trim() 952 } : function(t) { 953 return t.replace(/^\s+|\s+$/g, "") 954 }, 955 h = e.create("isotope", { 956 layoutMode: "masonry", 957 isJQueryFiltering: !0, 958 sortAscending: !0 959 }); 960 h.Item = s, h.LayoutMode = r; 961 var l = h.prototype; 962 l._create = function() { 963 for (var t in this.itemGUID = 0, this._sorters = {}, this._getSorters(), e.prototype._create.call(this), this.modes = {}, this.filteredItems = this.items, this.sortHistory = ["original-order"], r.modes) this._initLayoutMode(t) 964 }, l.reloadItems = function() { 965 this.itemGUID = 0, e.prototype.reloadItems.call(this) 966 }, l._itemize = function() { 967 for (var t = e.prototype._itemize.apply(this, arguments), i = 0; i < t.length; i++) t[i].id = this.itemGUID++; 968 return this._updateItemsSortData(t), t 969 }, l._initLayoutMode = function(t) { 970 var e = r.modes[t], 971 i = this.options[t] || {}; 972 this.options[t] = e.options ? n.extend(e.options, i) : i, this.modes[t] = new e(this) 973 }, l.layout = function() { 974 return !this._isLayoutInited && this._getOption("initLayout") ? void this.arrange() : void this._layout() 975 }, l._layout = function() { 976 var t = this._getIsInstant(); 977 this._resetLayout(), this._manageStamps(), this.layoutItems(this.filteredItems, t), this._isLayoutInited = !0 978 }, l.arrange = function(t) { 979 this.option(t), this._getIsInstant(); 980 var e = this._filter(this.items); 981 this.filteredItems = e.matches, this._bindArrangeComplete(), this._isInstant ? this._noTransition(this._hideReveal, [e]) : this._hideReveal(e), this._sort(), this._layout() 982 }, l._init = l.arrange, l._hideReveal = function(t) { 983 this.reveal(t.needReveal), this.hide(t.needHide) 984 }, l._getIsInstant = function() { 985 var t = this._getOption("layoutInstant"), 986 e = void 0 !== t ? t : !this._isLayoutInited; 987 return this._isInstant = e 988 }, l._bindArrangeComplete = function() { 989 function t() { 990 e && i && o && n.dispatchEvent("arrangeComplete", null, [n.filteredItems]) 991 } 992 var e, i, o, n = this; 993 this.once("layoutComplete", (function() { 994 e = !0, t() 995 })), this.once("hideComplete", (function() { 996 i = !0, t() 997 })), this.once("revealComplete", (function() { 998 o = !0, t() 999 })) 1000 }, l._filter = function(t) { 1001 var e = this.options.filter; 1002 e = e || "*"; 1003 for (var i = [], o = [], n = [], s = this._getFilterTest(e), r = 0; r < t.length; r++) { 1004 var a = t[r]; 1005 if (!a.isIgnored) { 1006 var u = s(a); 1007 u && i.push(a), u && a.isHidden ? o.push(a) : u || a.isHidden || n.push(a) 1008 } 1009 } 1010 return { 1011 matches: i, 1012 needReveal: o, 1013 needHide: n 1014 } 1015 }, l._getFilterTest = function(t) { 1016 return a && this.options.isJQueryFiltering ? function(e) { 1017 return a(e.element).is(t) 1018 } : "function" == typeof t ? function(e) { 1019 return t(e.element) 1020 } : function(e) { 1021 return o(e.element, t) 1022 } 1023 }, l.updateSortData = function(t) { 1024 var e; 1025 e = t ? (t = n.makeArray(t), this.getItems(t)) : this.items, this._getSorters(), this._updateItemsSortData(e) 1026 }, l._getSorters = function() { 1027 var t = this.options.getSortData; 1028 for (var e in t) { 1029 var i = t[e]; 1030 this._sorters[e] = d(i) 1031 } 1032 }, l._updateItemsSortData = function(t) { 1033 for (var e = t && t.length, i = 0; e && i < e; i++) t[i].updateSortData() 1034 }; 1035 var d = function(t) { 1036 if ("string" != typeof t) return t; 1037 var e, i, o = u(t).split(" "), 1038 n = o[0], 1039 s = n.match(/^\[(.+)\]$/), 1040 r = s && s[1], 1041 a = (i = n, (e = r) ? function(t) { 1042 return t.getAttribute(e) 1043 } : function(t) { 1044 var e = t.querySelector(i); 1045 return e && e.textContent 1046 }), 1047 l = h.sortDataParsers[o[1]]; 1048 return l ? function(t) { 1049 return t && l(a(t)) 1050 } : function(t) { 1051 return t && a(t) 1052 } 1053 }; 1054 h.sortDataParsers = { 1055 parseInt: function(t) { 1056 return parseInt(t, 10) 1057 }, 1058 parseFloat: function(t) { 1059 return parseFloat(t) 1060 } 1061 }, l._sort = function() { 1062 if (this.options.sortBy) { 1063 var t = n.makeArray(this.options.sortBy); 1064 this._getIsSameSortBy(t) || (this.sortHistory = t.concat(this.sortHistory)); 1065 var e = (i = this.sortHistory, o = this.options.sortAscending, function(t, e) { 1066 for (var n = 0; n < i.length; n++) { 1067 var s = i[n], 1068 r = t.sortData[s], 1069 a = e.sortData[s]; 1070 if (a < r || r < a) return (a < r ? 1 : -1) * ((void 0 !== o[s] ? o[s] : o) ? 1 : -1) 1071 } 1072 return 0 1073 }); 1074 this.filteredItems.sort(e) 1075 } 1076 var i, o 1077 }, l._getIsSameSortBy = function(t) { 1078 for (var e = 0; e < t.length; e++) 1079 if (t[e] != this.sortHistory[e]) return !1; 1080 return !0 1081 }, l._mode = function() { 1082 var t = this.options.layoutMode, 1083 e = this.modes[t]; 1084 if (!e) throw new Error("No layout mode: " + t); 1085 return e.options = this.options[t], e 1086 }, l._resetLayout = function() { 1087 e.prototype._resetLayout.call(this), this._mode()._resetLayout() 1088 }, l._getItemLayoutPosition = function(t) { 1089 return this._mode()._getItemLayoutPosition(t) 1090 }, l._manageStamp = function(t) { 1091 this._mode()._manageStamp(t) 1092 }, l._getContainerSize = function() { 1093 return this._mode()._getContainerSize() 1094 }, l.needsResizeLayout = function() { 1095 return this._mode().needsResizeLayout() 1096 }, l.appended = function(t) { 1097 var e = this.addItems(t); 1098 if (e.length) { 1099 var i = this._filterRevealAdded(e); 1100 this.filteredItems = this.filteredItems.concat(i) 1101 } 1102 }, l.prepended = function(t) { 1103 var e = this._itemize(t); 1104 if (e.length) { 1105 this._resetLayout(), this._manageStamps(); 1106 var i = this._filterRevealAdded(e); 1107 this.layoutItems(this.filteredItems), this.filteredItems = i.concat(this.filteredItems), this.items = e.concat(this.items) 1108 } 1109 }, l._filterRevealAdded = function(t) { 1110 var e = this._filter(t); 1111 return this.hide(e.needHide), this.reveal(e.matches), this.layoutItems(e.matches, !0), e.matches 1112 }, l.insert = function(t) { 1113 var e = this.addItems(t); 1114 if (e.length) { 1115 var i, o, n = e.length; 1116 for (i = 0; i < n; i++) o = e[i], this.element.appendChild(o.element); 1117 var s = this._filter(e).matches; 1118 for (i = 0; i < n; i++) e[i].isLayoutInstant = !0; 1119 for (this.arrange(), i = 0; i < n; i++) delete e[i].isLayoutInstant; 1120 this.reveal(s) 1121 } 1122 }; 1123 var f = l.remove; 1124 return l.remove = function(t) { 1125 t = n.makeArray(t); 1126 var e = this.getItems(t); 1127 f.call(this, t); 1128 for (var i = e && e.length, o = 0; i && o < i; o++) { 1129 var s = e[o]; 1130 n.removeFrom(this.filteredItems, s) 1131 } 1132 }, l.shuffle = function() { 1133 for (var t = 0; t < this.items.length; t++) this.items[t].sortData.random = Math.random(); 1134 this.options.sortBy = "random", this._sort(), this._layout() 1135 }, l._noTransition = function(t, e) { 1136 var i = this.options.transitionDuration; 1137 this.options.transitionDuration = 0; 1138 var o = t.apply(this, e); 1139 return this.options.transitionDuration = i, o 1140 }, l.getFilteredItemElements = function() { 1141 return this.filteredItems.map((function(t) { 1142 return t.element 1143 })) 1144 }, h 1145}));
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.