PageSourceSearch

https://www.historyhit.com/app/themes/history/dist/scripts/home.js?x67472

js historyhit.com collected 2026-10-01 08:54:55 UTC 129,370 bytes, 2,569 lines download raw bytes

vendor: 3,619 bytes, lines 1-88
1/******/ (function(modules) { // webpackBootstrap
2/******/ 	// The module cache
3/******/ 	var installedModules = {};
4/******/
5/******/ 	// The require function
6/******/ 	function __webpack_require__(moduleId) {
7/******/
8/******/ 		// Check if module is in cache
9/******/ 		if(installedModules[moduleId]) {
10/******/ 			return installedModules[moduleId].exports;
11/******/ 		}
12/******/ 		// Create a new module (and put it into the cache)
13/******/ 		var module = installedModules[moduleId] = {
14/******/ 			i: moduleId,
15/******/ 			l: false,
16/******/ 			exports: {}
17/******/ 		};
18/******/
19/******/ 		// Execute the module function
20/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
21/******/
22/******/ 		// Flag the module as loaded
23/******/ 		module.l = true;
24/******/
25/******/ 		// Return the exports of the module
26/******/ 		return module.exports;
27/******/ 	}
28/******/
29/******/
30/******/ 	// expose the modules object (__webpack_modules__)
31/******/ 	__webpack_require__.m = modules;
32/******/
33/******/ 	// expose the module cache
34/******/ 	__webpack_require__.c = installedModules;
35/******/
36/******/ 	// define getter function for harmony exports
37/******/ 	__webpack_require__.d = function(exports, name, getter) {
38/******/ 		if(!__webpack_require__.o(exports, name)) {
39/******/ 			Object.defineProperty(exports, name, { enumerable: true, get: getter });
40/******/ 		}
41/******/ 	};
42/******/
43/******/ 	// define __esModule on exports
44/******/ 	__webpack_require__.r = function(exports) {
45/******/ 		if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
46/******/ 			Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
47/******/ 		}
48/******/ 		Object.defineProperty(exports, '__esModule', { value: true });
49/******/ 	};
50/******/
51/******/ 	// create a fake namespace object
52/******/ 	// mode & 1: value is a module id, require it
53/******/ 	// mode & 2: merge all properties of value into the ns
54/******/ 	// mode & 4: return value when already ns object
55/******/ 	// mode & 8|1: behave like require
56/******/ 	__webpack_require__.t = function(value, mode) {
57/******/ 		if(mode & 1) value = __webpack_require__(value);
58/******/ 		if(mode & 8) return value;
59/******/ 		if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
60/******/ 		var ns = Object.create(null);
61/******/ 		__webpack_require__.r(ns);
62/******/ 		Object.defineProperty(ns, 'default', { enumerable: true, value: value });
63/******/ 		if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
64/******/ 		return ns;
65/******/ 	};
66/******/
67/******/ 	// getDefaultExport function for compatibility with non-harmony modules
68/******/ 	__webpack_require__.n = function(module) {
69/******/ 		var getter = module && module.__esModule ?
70/******/ 			function getDefault() { return module['default']; } :
71/******/ 			function getModuleExports() { return module; };
72/******/ 		__webpack_require__.d(getter, 'a', getter);
73/******/ 		return getter;
74/******/ 	};
75/******/
76/******/ 	// Object.prototype.hasOwnProperty.call
77/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
78/******/
79/******/ 	// __webpack_public_path__
80/******/ 	__webpack_require__.p = "/app/themes/history/dist/";
81/******/
82/******/
83/******/ 	// Load entry module and return exports
84/******/ 	return __webpack_require__(__webpack_require__.s = 1);
85/******/ })
86/************************************************************************/
87/******/ ({
88
vendor: 2,007 bytes, lines 89-150
89/***/ "../../node_modules/desandro-matches-selector/matches-selector.js":
90/*!*******************************************************************************************************!*\
91  !*** /var/www/html/web/app/themes/history/node_modules/desandro-matches-selector/matches-selector.js ***!
92  \*******************************************************************************************************/
93/*! no static exports found */
94/***/ (function(module, exports, __webpack_require__) {
95
96var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
97 * matchesSelector v2.0.2
98 * matchesSelector( element, '.selector' )
99 * MIT license
100 */
101
102/*jshint browser: true, strict: true, undef: true, unused: true */
103
104( function( window, factory ) {
105  /*global define: false, module: false */
106  'use strict';
107  // universal module definition
108  if ( true ) {
109    // AMD
110    !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
111				__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
112				(__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
113				__WEBPACK_AMD_DEFINE_FACTORY__),
114				__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
115  } else {}
116
117}( window, function factory() {
118  'use strict';
119
120  var matchesMethod = ( function() {
121    var ElemProto = window.Element.prototype;
122    // check for the standard method name first
123    if ( ElemProto.matches ) {
124      return 'matches';
125    }
126    // check un-prefixed
127    if ( ElemProto.matchesSelector ) {
128      return 'matchesSelector';
129    }
130    // check vendor prefixes
131    var prefixes = [ 'webkit', 'moz', 'ms', 'o' ];
132
133    for ( var i=0; i < prefixes.length; i++ ) {
134      var prefix = prefixes[i];
135      var method = prefix + 'MatchesSelector';
136      if ( ElemProto[ method ] ) {
137        return method;
138      }
139    }
140  })();
141
142  return function matchesSelector( elem, selector ) {
143    return elem[ matchesMethod ]( selector );
144  };
145
146}));
147
148
149/***/ }),
150
vendor: 3,307 bytes, lines 151-271
151/***/ "../../node_modules/ev-emitter/ev-emitter.js":
152/*!**********************************************************************************!*\
153  !*** /var/www/html/web/app/themes/history/node_modules/ev-emitter/ev-emitter.js ***!
154  \**********************************************************************************/
155/*! no static exports found */
156/***/ (function(module, exports, __webpack_require__) {
157
158var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
159 * EvEmitter v1.1.0
160 * Lil' event emitter
161 * MIT License
162 */
163
164/* jshint unused: true, undef: true, strict: true */
165
166( function( global, factory ) {
167  // universal module definition
168  /* jshint strict: false */ /* globals define, module, window */
169  if ( true ) {
170    // AMD - RequireJS
171    !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
172				__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
173				(__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
174				__WEBPACK_AMD_DEFINE_FACTORY__),
175				__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
176  } else {}
177
178}( typeof window != 'undefined' ? window : this, function() {
179
180"use strict";
181
182function EvEmitter() {}
183
184var proto = EvEmitter.prototype;
185
186proto.on = function( eventName, listener ) {
187  if ( !eventName || !listener ) {
188    return;
189  }
190  // set events hash
191  var events = this._events = this._events || {};
192  // set listeners array
193  var listeners = events[ eventName ] = events[ eventName ] || [];
194  // only add once
195  if ( listeners.indexOf( listener ) == -1 ) {
196    listeners.push( listener );
197  }
198
199  return this;
200};
201
202proto.once = function( eventName, listener ) {
203  if ( !eventName || !listener ) {
204    return;
205  }
206  // add event
207  this.on( eventName, listener );
208  // set once flag
209  // set onceEvents hash
210  var onceEvents = this._onceEvents = this._onceEvents || {};
211  // set onceListeners object
212  var onceListeners = onceEvents[ eventName ] = onceEvents[ eventName ] || {};
213  // set flag
214  onceListeners[ listener ] = true;
215
216  return this;
217};
218
219proto.off = function( eventName, listener ) {
220  var listeners = this._events && this._events[ eventName ];
221  if ( !listeners || !listeners.length ) {
222    return;
223  }
224  var index = listeners.indexOf( listener );
225  if ( index != -1 ) {
226    listeners.splice( index, 1 );
227  }
228
229  return this;
230};
231
232proto.emitEvent = function( eventName, args ) {
233  var listeners = this._events && this._events[ eventName ];
234  if ( !listeners || !listeners.length ) {
235    return;
236  }
237  // copy over to avoid interference if .off() in listener
238  listeners = listeners.slice(0);
239  args = args || [];
240  // once stuff
241  var onceListeners = this._onceEvents && this._onceEvents[ eventName ];
242
243  for ( var i=0; i < listeners.length; i++ ) {
244    var listener = listeners[i]
245    var isOnce = onceListeners && onceListeners[ listener ];
246    if ( isOnce ) {
247      // remove listener
248      // remove before trigger to prevent recursion
249      this.off( eventName, listener );
250      // unset once flag
251      delete onceListeners[ listener ];
252    }
253    // trigger listener
254    listener.apply( this, args );
255  }
256
257  return this;
258};
259
260proto.allOff = function() {
261  delete this._events;
262  delete this._onceEvents;
263};
264
265return EvEmitter;
266
267}));
268
269
270/***/ }),
271
vendor: 6,464 bytes, lines 272-512
272/***/ "../../node_modules/fizzy-ui-utils/utils.js":
273/*!*********************************************************************************!*\
274  !*** /var/www/html/web/app/themes/history/node_modules/fizzy-ui-utils/utils.js ***!
275  \*********************************************************************************/
276/*! no static exports found */
277/***/ (function(module, exports, __webpack_require__) {
278
279var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
280 * Fizzy UI utils v2.0.7
281 * MIT license
282 */
283
284/*jshint browser: true, undef: true, unused: true, strict: true */
285
286( function( window, factory ) {
287  // universal module definition
288  /*jshint strict: false */ /*globals define, module, require */
289
290  if ( true ) {
291    // AMD
292    !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
293      __webpack_require__(/*! desandro-matches-selector/matches-selector */ "../../node_modules/desandro-matches-selector/matches-selector.js")
294    ], __WEBPACK_AMD_DEFINE_RESULT__ = (function( matchesSelector ) {
295      return factory( window, matchesSelector );
296    }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
297				__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
298  } else {}
299
300}( window, function factory( window, matchesSelector ) {
301
302'use strict';
303
304var utils = {};
305
306// ----- extend ----- //
307
308// extends objects
309utils.extend = function( a, b ) {
310  for ( var prop in b ) {
311    a[ prop ] = b[ prop ];
312  }
313  return a;
314};
315
316// ----- modulo ----- //
317
318utils.modulo = function( num, div ) {
319  return ( ( num % div ) + div ) % div;
320};
321
322// ----- makeArray ----- //
323
324var arraySlice = Array.prototype.slice;
325
326// turn element or nodeList into an array
327utils.makeArray = function( obj ) {
328  if ( Array.isArray( obj ) ) {
329    // use object if already an array
330    return obj;
331  }
332  // return empty array if undefined or null. #6
333  if ( obj === null || obj === undefined ) {
334    return [];
335  }
336
337  var isArrayLike = typeof obj == 'object' && typeof obj.length == 'number';
338  if ( isArrayLike ) {
339    // convert nodeList to array
340    return arraySlice.call( obj );
341  }
342
343  // array of single index
344  return [ obj ];
345};
346
347// ----- removeFrom ----- //
348
349utils.removeFrom = function( ary, obj ) {
350  var index = ary.indexOf( obj );
351  if ( index != -1 ) {
352    ary.splice( index, 1 );
353  }
354};
355
356// ----- getParent ----- //
357
358utils.getParent = function( elem, selector ) {
359  while ( elem.parentNode && elem != document.body ) {
360    elem = elem.parentNode;
361    if ( matchesSelector( elem, selector ) ) {
362      return elem;
363    }
364  }
365};
366
367// ----- getQueryElement ----- //
368
369// use element as selector string
370utils.getQueryElement = function( elem ) {
371  if ( typeof elem == 'string' ) {
372    return document.querySelector( elem );
373  }
374  return elem;
375};
376
377// ----- handleEvent ----- //
378
379// enable .ontype to trigger from .addEventListener( elem, 'type' )
380utils.handleEvent = function( event ) {
381  var method = 'on' + event.type;
382  if ( this[ method ] ) {
383    this[ method ]( event );
384  }
385};
386
387// ----- filterFindElements ----- //
388
389utils.filterFindElements = function( elems, selector ) {
390  // make array of elems
391  elems = utils.makeArray( elems );
392  var ffElems = [];
393
394  elems.forEach( function( elem ) {
395    // check that elem is an actual element
396    if ( !( elem instanceof HTMLElement ) ) {
397      return;
398    }
399    // add elem if no selector
400    if ( !selector ) {
401      ffElems.push( elem );
402      return;
403    }
404    // filter & find items if we have a selector
405    // filter
406    if ( matchesSelector( elem, selector ) ) {
407      ffElems.push( elem );
408    }
409    // find children
410    var childElems = elem.querySelectorAll( selector );
411    // concat childElems to filterFound array
412    for ( var i=0; i < childElems.length; i++ ) {
413      ffElems.push( childElems[i] );
414    }
415  });
416
417  return ffElems;
418};
419
420// ----- debounceMethod ----- //
421
422utils.debounceMethod = function( _class, methodName, threshold ) {
423  threshold = threshold || 100;
424  // original method
425  var method = _class.prototype[ methodName ];
426  var timeoutName = methodName + 'Timeout';
427
428  _class.prototype[ methodName ] = function() {
429    var timeout = this[ timeoutName ];
430    clearTimeout( timeout );
431
432    var args = arguments;
433    var _this = this;
434    this[ timeoutName ] = setTimeout( function() {
435      method.apply( _this, args );
436      delete _this[ timeoutName ];
437    }, threshold );
438  };
439};
440
441// ----- docReady ----- //
442
443utils.docReady = function( callback ) {
444  var readyState = document.readyState;
445  if ( readyState == 'complete' || readyState == 'interactive' ) {
446    // do async to allow for other scripts to run. metafizzy/flickity#441
447    setTimeout( callback );
448  } else {
449    document.addEventListener( 'DOMContentLoaded', callback );
450  }
451};
452
453// ----- htmlInit ----- //
454
455// http://jamesroberts.name/blog/2010/02/22/string-functions-for-javascript-trim-to-camel-case-to-dashed-and-to-underscore/
456utils.toDashed = function( str ) {
457  return str.replace( /(.)([A-Z])/g, function( match, $1, $2 ) {
458    return $1 + '-' + $2;
459  }).toLowerCase();
460};
461
462var console = window.console;
463/**
464 * allow user to initialize classes via [data-namespace] or .js-namespace class
465 * htmlInit( Widget, 'widgetName' )
466 * options are parsed from data-namespace-options
467 */
468utils.htmlInit = function( WidgetClass, namespace ) {
469  utils.docReady( function() {
470    var dashedNamespace = utils.toDashed( namespace );
471    var dataAttr = 'data-' + dashedNamespace;
472    var dataAttrElems = document.querySelectorAll( '[' + dataAttr + ']' );
473    var jsDashElems = document.querySelectorAll( '.js-' + dashedNamespace );
474    var elems = utils.makeArray( dataAttrElems )
475      .concat( utils.makeArray( jsDashElems ) );
476    var dataOptionsAttr = dataAttr + '-options';
477    var jQuery = window.jQuery;
478
479    elems.forEach( function( elem ) {
480      var attr = elem.getAttribute( dataAttr ) ||
481        elem.getAttribute( dataOptionsAttr );
482      var options;
483      try {
484        options = attr && JSON.parse( attr );
485      } catch ( error ) {
486        // log error, do not initialize
487        if ( console ) {
488          console.error( 'Error parsing ' + dataAttr + ' on ' + elem.className +
489          ': ' + error );
490        }
491        return;
492      }
493      // initialize
494      var instance = new WidgetClass( elem, options );
495      // make available via $().data('namespace')
496      if ( jQuery ) {
497        jQuery.data( elem, namespace, instance );
498      }
499    });
500
501  });
502};
503
504// -----  ----- //
505
506return utils;
507
508}));
509
510
511/***/ }),
512
vendor: 60,495 bytes, lines 513-585
513/***/ "../../node_modules/flickity/dist/flickity.pkgd.min.js":
514/*!********************************************************************************************!*\
515  !*** /var/www/html/web/app/themes/history/node_modules/flickity/dist/flickity.pkgd.min.js ***!
516  \********************************************************************************************/
517/*! no static exports found */
518/***/ (function(module, exports, __webpack_require__) {
519
520var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_LOCAL_MODULE_1__, __WEBPACK_LOCAL_MODULE_1__factory, __WEBPACK_LOCAL_MODULE_1__module;var __WEBPACK_LOCAL_MODULE_2__, __WEBPACK_LOCAL_MODULE_2__factory, __WEBPACK_LOCAL_MODULE_2__module;var __WEBPACK_LOCAL_MODULE_3__, __WEBPACK_LOCAL_MODULE_3__factory, __WEBPACK_LOCAL_MODULE_3__module;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_LOCAL_MODULE_4__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_LOCAL_MODULE_5__;var __WEBPACK_LOCAL_MODULE_6__, __WEBPACK_LOCAL_MODULE_6__factory, __WEBPACK_LOCAL_MODULE_6__module;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_LOCAL_MODULE_7__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_LOCAL_MODULE_8__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_LOCAL_MODULE_9__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_LOCAL_MODULE_10__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_LOCAL_MODULE_11__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_LOCAL_MODULE_12__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_LOCAL_MODULE_13__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_LOCAL_MODULE_14__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_LOCAL_MODULE_15__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_LOCAL_MODULE_16__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_LOCAL_MODULE_17__;var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_LOCAL_MODULE_19__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
521 * Flickity PACKAGED v2.3.0
522 * Touch, responsive, flickable carousels
523 *
524 * Licensed GPLv3 for open source use
525 * or Flickity Commercial License for commercial use
526 *
527 * https://flickity.metafizzy.co
528 * Copyright 2015-2021 Metafizzy
529 */
530(function(e,i){if(true){!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! jquery */ "jquery")], __WEBPACK_AMD_DEFINE_RESULT__ = (function(t){return i(e,t)}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
531				__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__))}else {}})(window,function t(e,r){"use strict";var o=Array.prototype.slice;var i=e.console;var u=typeof i=="undefined"?function(){}:function(t){i.error(t)};function n(h,s,c){c=c||r||e.jQuery;if(!c){return}if(!s.prototype.option){s.prototype.option=function(t){if(!c.isPlainObject(t)){return}this.options=c.extend(true,this.options,t)}}c.fn[h]=function(t){if(typeof t=="string"){var e=o.call(arguments,1);return i(this,t,e)}n(this,t);return this};function i(t,r,o){var a;var l="$()."+h+'("'+r+'")';t.each(function(t,e){var i=c.data(e,h);if(!i){u(h+" not initialized. Cannot call methods, i.e. "+l);return}var n=i[r];if(!n||r.charAt(0)=="_"){u(l+" is not a valid method");return}var s=n.apply(i,o);a=a===undefined?s:a});return a!==undefined?a:t}function n(t,n){t.each(function(t,e){var i=c.data(e,h);if(i){i.option(n);i._init()}else{i=new s(e,n);c.data(e,h,i)}})}a(c)}function a(t){if(!t||t&&t.bridget){return}t.bridget=n}a(r||e.jQuery);return n});(function(t,e){if(true){!(__WEBPACK_LOCAL_MODULE_1__factory = (e), (__WEBPACK_LOCAL_MODULE_1__module = { id: "ev-emitter/ev-emitter", exports: {}, loaded: false }), __WEBPACK_LOCAL_MODULE_1__ = (typeof __WEBPACK_LOCAL_MODULE_1__factory === 'function' ? (__WEBPACK_LOCAL_MODULE_1__factory.call(__WEBPACK_LOCAL_MODULE_1__module.exports, __webpack_require__, __WEBPACK_LOCAL_MODULE_1__module.exports, __WEBPACK_LOCAL_MODULE_1__module)) : __WEBPACK_LOCAL_MODULE_1__factory), (__WEBPACK_LOCAL_MODULE_1__module.loaded = true), __WEBPACK_LOCAL_MODULE_1__ === undefined && (__WEBPACK_LOCAL_MODULE_1__ = __WEBPACK_LOCAL_MODULE_1__module.exports))}else {}})(typeof window!="undefined"?window:this,function(){function t(){}var e=t.prototype;e.on=function(t,e){if(!t||!e){return}var i=this._events=this._events||{};var n=i[t]=i[t]||[];if(n.indexOf(e)==-1){n.push(e)}return this};e.once=function(t,e){if(!t||!e){return}this.on(t,e);var i=this._onceEvents=this._onceEvents||{};var n=i[t]=i[t]||{};n[e]=true;return this};e.off=function(t,e){var i=this._events&&this._events[t];if(!i||!i.length){return}var n=i.indexOf(e);if(n!=-1){i.splice(n,1)}return this};e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(!i||!i.length){return}i=i.slice(0);e=e||[];var n=this._onceEvents&&this._onceEvents[t];for(var s=0;s<i.length;s++){var r=i[s];var o=n&&n[r];if(o){this.off(t,r);delete n[r]}r.apply(this,e)}return this};e.allOff=function(){delete this._events;delete this._onceEvents};return t});
532/*!
533 * getSize v2.0.3
534 * measure size of elements
535 * MIT license
536 */
537(function(t,e){if(true){!(__WEBPACK_LOCAL_MODULE_2__factory = (e), (__WEBPACK_LOCAL_MODULE_2__module = { id: "get-size/get-size", exports: {}, loaded: false }), __WEBPACK_LOCAL_MODULE_2__ = (typeof __WEBPACK_LOCAL_MODULE_2__factory === 'function' ? (__WEBPACK_LOCAL_MODULE_2__factory.call(__WEBPACK_LOCAL_MODULE_2__module.exports, __webpack_require__, __WEBPACK_LOCAL_MODULE_2__module.exports, __WEBPACK_LOCAL_MODULE_2__module)) : __WEBPACK_LOCAL_MODULE_2__factory), (__WEBPACK_LOCAL_MODULE_2__module.loaded = true), __WEBPACK_LOCAL_MODULE_2__ === undefined && (__WEBPACK_LOCAL_MODULE_2__ = __WEBPACK_LOCAL_MODULE_2__module.exports))}else {}})(window,function t(){"use strict";function m(t){var e=parseFloat(t);var i=t.indexOf("%")==-1&&!isNaN(e);return i&&e}function e(){}var i=typeof console=="undefined"?e:function(t){console.error(t)};var y=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];var b=y.length;function E(){var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0};for(var e=0;e<b;e++){var i=y[e];t[i]=0}return t}function S(t){var e=getComputedStyle(t);if(!e){i("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? "+"See https://bit.ly/getsizebug1")}return e}var n=false;var C;function x(){if(n){return}n=true;var t=document.createElement("div");t.style.width="200px";t.style.padding="1px 2px 3px 4px";t.style.borderStyle="solid";t.style.borderWidth="1px 2px 3px 4px";t.style.boxSizing="border-box";var e=document.body||document.documentElement;e.appendChild(t);var i=S(t);C=Math.round(m(i.width))==200;s.isBoxSizeOuter=C;e.removeChild(t)}function s(t){x();if(typeof t=="string"){t=document.querySelector(t)}if(!t||typeof t!="object"||!t.nodeType){return}var e=S(t);if(e.display=="none"){return E()}var i={};i.width=t.offsetWidth;i.height=t.offsetHeight;var n=i.isBorderBox=e.boxSizing=="border-box";for(var s=0;s<b;s++){var r=y[s];var o=e[r];var a=parseFloat(o);i[r]=!isNaN(a)?a:0}var l=i.paddingLeft+i.paddingRight;var h=i.paddingTop+i.paddingBottom;var c=i.marginLeft+i.marginRight;var u=i.marginTop+i.marginBottom;var d=i.borderLeftWidth+i.borderRightWidth;var f=i.borderTopWidth+i.borderBottomWidth;var p=n&&C;var v=m(e.width);if(v!==false){i.width=v+(p?0:l+d)}var g=m(e.height);if(g!==false){i.height=g+(p?0:h+f)}i.innerWidth=i.width-(l+d);i.innerHeight=i.height-(h+f);i.outerWidth=i.width+c;i.outerHeight=i.height+u;return i}return s});(function(t,e){"use strict";if(true){!(__WEBPACK_LOCAL_MODULE_3__factory = (e), (__WEBPACK_LOCAL_MODULE_3__module = { id: "desandro-matches-selector/matches-selector", exports: {}, loaded: false }), __WEBPACK_LOCAL_MODULE_3__ = (typeof __WEBPACK_LOCAL_MODULE_3__factory === 'function' ? (__WEBPACK_LOCAL_MODULE_3__factory.call(__WEBPACK_LOCAL_MODULE_3__module.exports, __webpack_require__, __WEBPACK_LOCAL_MODULE_3__module.exports, __WEBPACK_LOCAL_MODULE_3__module)) : __WEBPACK_LOCAL_MODULE_3__factory), (__WEBPACK_LOCAL_MODULE_3__module.loaded = true), __WEBPACK_LOCAL_MODULE_3__ === undefined && (__WEBPACK_LOCAL_MODULE_3__ = __WEBPACK_LOCAL_MODULE_3__module.exports))}else {}})(window,function t(){"use strict";var n=function(){var t=window.Element.prototype;if(t.matches){return"matches"}if(t.matchesSelector){return"matchesSelector"}var e=["webkit","moz","ms","o"];for(var i=0;i<e.length;i++){var n=e[i];var s=n+"MatchesSelector";if(t[s]){return s}}}();return function t(e,i){return e[n](i)}});(function(e,i){if(true){!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__WEBPACK_LOCAL_MODULE_3__], __WEBPACK_LOCAL_MODULE_4__ = ((function(t){return i(e,t)}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)))}else {}})(window,function t(h,r){var c={};c.extend=function(t,e){for(var i in e){t[i]=e[i]}return t};c.modulo=function(t,e){return(t%e+e)%e};var i=Array.prototype.slice;c.makeArray=function(t){if(Array.isArray(t)){return t}if(t===null||t===undefined){return[]}var e=typeof t=="object"&&typeof t.length=="number";if(e){return i.call(t)}return[t]};c.removeFrom=function(t,e){var i=t.indexOf(e);if(i!=-1){t.splice(i,1)}};c.getParent=function(t,e){while(t.parentNode&&t!=document.body){t=t.parentNode;if(r(t,e)){return t}}};c.getQueryElement=function(t){if(typeof t=="string"){return document.querySelector(t)}return t};c.handleEvent=function(t){var e="on"+t.type;if(this[e]){this[e](t)}};c.filterFindElements=function(t,n){t=c.makeArray(t);var s=[];t.forEach(function(t){if(!(t instanceof HTMLElement)){return}if(!n){s.push(t);return}if(r(t,n)){s.push(t)}var e=t.querySelectorAll(n);for(var i=0;i<e.length;i++){s.push(e[i])}});return s};c.debounceMethod=function(t,e,n){n=n||100;var s=t.prototype[e];var r=e+"Timeout";t.prototype[e]=function(){var t=this[r];clearTimeout(t);var e=arguments;var i=this;this[r]=setTimeout(function(){s.apply(i,e);delete i[r]},n)}};c.docReady=function(t){var e=document.readyState;if(e=="complete"||e=="interactive"){setTimeout(t)}else{document.addEventListener("DOMContentLoaded",t)}};c.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var u=h.console;c.htmlInit=function(a,l){c.docReady(function(){var t=c.toDashed(l);var s="data-"+t;var e=document.querySelectorAll("["+s+"]");var i=document.querySelectorAll(".js-"+t);var n=c.makeArray(e).concat(c.makeArray(i));var r=s+"-options";var o=h.jQuery;n.forEach(function(e){var t=e.getAttribute(s)||e.getAttribute(r);var i;try{i=t&&JSON.parse(t)}catch(t){if(u){u.error("Error parsing "+s+" on "+e.className+": "+t)}return}var n=new a(e,i);if(o){o.data(e,l,n)}})})};return c});(function(e,i){if(true){!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__WEBPACK_LOCAL_MODULE_2__], __WEBPACK_LOCAL_MODULE_5__ = ((function(t){return i(e,t)}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)))}else {}})(window,function t(e,i){function n(t,e){this.element=t;this.parent=e;this.create()}var s=n.prototype;s.create=function(){this.element.style.position="absolute";this.element.setAttribute("aria-hidden","true");this.x=0;this.shift=0;this.element.style[this.parent.originSide]=0};s.destroy=function(){this.unselect();this.element.style.position="";var t=this.parent.originSide;this.element.style[t]="";this.element.style.transform="";this.element.removeAttribute("aria-hidden")};s.getSize=function(){this.size=i(this.element)};s.setPosition=function(t){this.x=t;this.updateTarget();this.renderPosition(t)};s.updateTarget=s.setDefaultTarget=function(){var t=this.parent.originSide=="left"?"marginLeft":"marginRight";this.target=this.x+this.size[t]+this.size.width*this.parent.cellAlign};s.renderPosition=function(t){var e=this.parent.originSide==="left"?1:-1;var i=this.parent.options.percentPosition?t*e*(this.parent.size.innerWidth/this.size.width):t*e;this.element.style.transform="translateX("+this.parent.getPositionValue(i)+")"};s.select=function(){this.element.classList.add("is-selected");this.element.removeAttribute("aria-hidden")};s.unselect=function(){this.element.classList.remove("is-selected");this.element.setAttribute("aria-hidden","true")};s.wrapShift=function(t){this.shift=t;this.renderPosition(this.x+this.parent.slideableWidth*t)};s.remove=function(){this.element.parentNode.removeChild(this.element)};return n});(function(t,e){if(true){!(__WEBPACK_LOCAL_MODULE_6__factory = (e), (__WEBPACK_LOCAL_MODULE_6__module = { id: "flickity/js/slide", exports: {}, loaded: false }), __WEBPACK_LOCAL_MODULE_6__ = (typeof __WEBPACK_LOCAL_MODULE_6__factory === 'function' ? (__WEBPACK_LOCAL_MODULE_6__factory.call(__WEBPACK_LOCAL_MODULE_6__module.exports, __webpack_require__, __WEBPACK_LOCAL_MODULE_6__module.exports, __WEBPACK_LOCAL_MODULE_6__module)) : __WEBPACK_LOCAL_MODULE_6__factory), (__WEBPACK_LOCAL_MODULE_6__module.loaded = true), __WEBPACK_LOCAL_MODULE_6__ === undefined && (__WEBPACK_LOCAL_MODULE_6__ = __WEBPACK_LOCAL_MODULE_6__module.exports))}else {}})(window,function t(){"use strict";function e(t){this.parent=t;this.isOriginLeft=t.originSide=="left";this.cells=[];this.outerWidth=0;this.height=0}var i=e.prototype;i.addCell=function(t){this.cells.push(t);this.outerWidth+=t.size.outerWidth;this.height=Math.max(t.size.outerHeight,this.height);if(this.cells.length==1){this.x=t.x;var e=this.isOriginLeft?"marginLeft":"marginRight";this.firstMargin=t.size[e]}};i.updateTarget=function(){var t=this.isOriginLeft?"marginRight":"marginLeft";var e=this.getLastCell();var i=e?e.size[t]:0;var n=this.outerWidth-(this.firstMargin+i);this.target=this.x+this.firstMargin+n*this.parent.cellAlign};i.getLastCell=function(){return this.cells[this.cells.length-1]};i.select=function(){this.cells.forEach(function(t){t.select()})};i.unselect=function(){this.cells.forEach(function(t){t.unselect()})};i.getCellElements=function(){return this.cells.map(function(t){return t.element})};return e});(function(e,i){if(true){!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__WEBPACK_LOCAL_MODULE_4__], __WEBPACK_LOCAL_MODULE_7__ = ((function(t){return i(e,t)}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)))}else {}})(window,function t(e,i){var n={};n.startAnimation=function(){if(this.isAnimating){return}this.isAnimating=true;this.restingFrames=0;this.animate()};n.animate=function(){this.applyDragForce();this.applySelectedAttraction();var t=this.x;this.integratePhysics();this.positionSlider();this.settle(t);if(this.isAnimating){var e=this;requestAnimationFrame(function t(){e.animate()})}};n.positionSlider=function(){var t=this.x;if(this.options.wrapAround&&this.cells.length>1){t=i.modulo(t,this.slideableWidth);t-=this.slideableWidth;this.shiftWrapCells(t)}this.setTranslateX(t,this.isAnimating);this.dispatchScrollEvent()};n.setTranslateX=function(t,e){t+=this.cursorPosition;t=this.options.rightToLeft?-t:t;var i=this.getPositionValue(t);this.slider.style.transform=e?"translate3d("+i+",0,0)":"translateX("+i+")"};n.dispatchScrollEvent=function(){var t=this.slides[0];if(!t){return}var e=-this.x-t.target;var i=e/this.slidesWidth;this.dispatchEvent("scroll",null,[i,e])};n.positionSliderAtSelected=function(){if(!this.cells.length){return}this.x=-this.selectedSlide.target;this.velocity=0;this.positionSlider()};n.getPositionValue=function(t){if(this.options.percentPosition){return Math.round(t/this.size.innerWidth*1e4)*.01+"%"}else{return Math.round(t)+"px"}};n.settle=function(t){var e=!this.isPointerDown&&Math.round(this.x*100)==Math.round(t*100);if(e){this.restingFrames++}if(this.restingFrames>2){this.isAnimating=false;delete this.isFreeScrolling;this.positionSlider();this.dispatchEvent("settle",null,[this.selectedIndex])}};n.shiftWrapCells=function(t){var e=this.cursorPosition+t;this._shiftCells(this.beforeShiftCells,e,-1);var i=this.size.innerWidth-(t+this.slideableWidth+this.cursorPosition);this._shiftCells(this.afterShiftCells,i,1)};n._shiftCells=function(t,e,i){for(var n=0;n<t.length;n++){var s=t[n];var r=e>0?i:0;s.wrapShift(r);e-=s.size.outerWidth}};n._unshiftCells=function(t){if(!t||!t.length){return}for(var e=0;e<t.length;e++){t[e].wrapShift(0)}};n.integratePhysics=function(){this.x+=this.velocity;this.velocity*=this.getFrictionFactor()};n.applyForce=function(t){this.velocity+=t};n.getFrictionFactor=function(){return 1-this.options[this.isFreeScrolling?"freeScrollFriction":"friction"]};n.getRestingPosition=function(){return this.x+this.velocity/(1-this.getFrictionFactor())};n.applyDragForce=function(){if(!this.isDraggable||!this.isPointerDown){return}var t=this.dragX-this.x;var e=t-this.velocity;this.applyForce(e)};n.applySelectedAttraction=function(){var t=this.isDraggable&&this.isPointerDown;if(t||this.isFreeScrolling||!this.slides.length){return}var e=this.selectedSlide.target*-1-this.x;var i=e*this.options.selectedAttraction;this.applyForce(i)};return n});(function(o,a){if(true){!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__WEBPACK_LOCAL_MODULE_1__,__WEBPACK_LOCAL_MODULE_2__,__WEBPACK_LOCAL_MODULE_4__,__WEBPACK_LOCAL_MODULE_5__,__WEBPACK_LOCAL_MODULE_6__,__WEBPACK_LOCAL_MODULE_7__], __WEBPACK_LOCAL_MODULE_8__ = ((function(t,e,i,n,s,r){return a(o,t,e,i,n,s,r)}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)))}else { var t; }})(window,function t(n,e,i,a,s,o,r){var l=n.jQuery;var h=n.getComputedStyle;var c=n.console;function u(t,e){t=a.makeArray(t);while(t.length){e.appendChild(t.shift())}}var d=0;var f={};function p(t,e){var i=a.getQueryElement(t);if(!i){if(c){c.error("Bad element for Flickity: "+(i||t))}return}this.element=i;if(this.element.flickityGUID){var n=f[this.element.flickityGUID];if(n)n.option(e);return n}if(l){this.$element=l(this.element)}this.options=a.extend({},this.constructor.defaults);this.option(e);this._create()}p.defaults={accessibility:true,cellAlign:"center",freeScrollFriction:.075,friction:.28,namespaceJQueryEvents:true,percentPosition:true,resize:true,selectedAttraction:.025,setGallerySize:true};p.createMethods=[];var v=p.prototype;a.extend(v,e.prototype);v._create=function(){var t=this.guid=++d;this.element.flickityGUID=t;f[t]=this;this.selectedIndex=0;this.restingFrames=0;this.x=0;this.velocity=0;this.originSide=this.options.rightToLeft?"right":"left";this.viewport=document.createElement("div");this.viewport.className="flickity-viewport";this._createSlider();if(this.options.resize||this.options.watchCSS){n.addEventListener("resize",this)}for(var e in this.options.on){var i=this.options.on[e];this.on(e,i)}p.createMethods.forEach(function(t){this[t]()},this);if(this.options.watchCSS){this.watchCSS()}else{this.activate()}};v.option=function(t){a.extend(this.options,t)};v.activate=function(){if(this.isActive){return}this.isActive=true;this.element.classList.add("flickity-enabled");if(this.options.rightToLeft){this.element.classList.add("flickity-rtl")}this.getSize();var t=this._filterFindCellElements(this.element.children);u(t,this.slider);this.viewport.appendChild(this.slider);this.element.appendChild(this.viewport);this.reloadCells();if(this.options.accessibility){this.element.tabIndex=0;this.element.addEventListener("keydown",this)}this.emitEvent("activate");this.selectInitialIndex();this.isInitActivated=true;this.dispatchEvent("ready")};v._createSlider=function(){var t=document.createElement("div");t.className="flickity-slider";t.style[this.originSide]=0;this.slider=t};v._filterFindCellElements=function(t){return a.filterFindElements(t,this.options.cellSelector)};v.reloadCells=function(){this.cells=this._makeCells(this.slider.children);this.positionCells();this._getWrapShiftCells();this.setGallerySize()};v._makeCells=function(t){var e=this._filterFindCellElements(t);var i=e.map(function(t){return new s(t,this)},this);return i};v.getLastCell=function(){return this.cells[this.cells.length-1]};v.getLastSlide=function(){return this.slides[this.slides.length-1]};v.positionCells=function(){this._sizeCells(this.cells);this._positionCells(0)};v._positionCells=function(t){t=t||0;this.maxCellHeight=t?this.maxCellHeight||0:0;var e=0;if(t>0){var i=this.cells[t-1];e=i.x+i.size.outerWidth}var n=this.cells.length;for(var s=t;s<n;s++){var r=this.cells[s];r.setPosition(e);e+=r.size.outerWidth;this.maxCellHeight=Math.max(r.size.outerHeight,this.maxCellHeight)}this.slideableWidth=e;this.updateSlides();this._containSlides();this.slidesWidth=n?this.getLastSlide().target-this.slides[0].target:0};v._sizeCells=function(t){t.forEach(function(t){t.getSize()})};v.updateSlides=function(){this.slides=[];if(!this.cells.length){return}var n=new o(this);this.slides.push(n);var t=this.originSide=="left";var s=t?"marginRight":"marginLeft";var r=this._getCanCellFit();this.cells.forEach(function(t,e){if(!n.cells.length){n.addCell(t);return}var i=n.outerWidth-n.firstMargin+(t.size.outerWidth-t.size[s]);if(r.call(this,e,i)){n.addCell(t)}else{n.updateTarget();n=new o(this);this.slides.push(n);n.addCell(t)}},this);n.updateTarget();this.updateSelectedSlide()};v._getCanCellFit=function(){var t=this.options.groupCells;if(!t){return function(){return false}}else if(typeof t=="number"){var e=parseInt(t,10);return function(t){return t%e!==0}}var i=typeof t=="string"&&t.match(/^(\d+)%$/);var n=i?parseInt(i[1],10)/100:1;return function(t,e){return e<=(this.size.innerWidth+1)*n}};v._init=v.reposition=function(){this.positionCells();this.positionSliderAtSelected()};v.getSize=function(){this.size=i(this.element);this.setCellAlign();this.cursorPosition=this.size.innerWidth*this.cellAlign};var g={center:{left:.5,right:.5},left:{left:0,right:1},right:{right:0,left:1}};v.setCellAlign=function(){var t=g[this.options.cellAlign];this.cellAlign=t?t[this.originSide]:this.options.cellAlign};v.setGallerySize=function(){if(this.options.setGallerySize){var t=this.options.adaptiveHeight&&this.selectedSlide?this.selectedSlide.height:this.maxCellHeight;this.viewport.style.height=t+"px"}};v._getWrapShiftCells=function(){if(!this.options.wrapAround){return}this._unshiftCells(this.beforeShiftCells);this._unshiftCells(this.afterShiftCells);var t=this.cursorPosition;var e=this.cells.length-1;this.beforeShiftCells=this._getGapCells(t,e,-1);t=this.size.innerWidth-this.cursorPosition;this.afterShiftCells=this._getGapCells(t,0,1)};v._getGapCells=function(t,e,i){var n=[];while(t>0){var s=this.cells[e];if(!s){break}n.push(s);e+=i;t-=s.size.outerWidth}return n};v._containSlides=function(){if(!this.options.contain||this.options.wrapAround||!this.cells.length){return}var t=this.options.rightToLeft;var e=t?"marginRight":"marginLeft";var i=t?"marginLeft":"marginRight";var n=this.slideableWidth-this.getLastCell().size[i];var s=n<this.size.innerWidth;var r=this.cursorPosition+this.cells[0].size[e];var o=n-this.size.innerWidth*(1-this.cellAlign);this.slides.forEach(function(t){if(s){t.target=n*this.cellAlign}else{t.target=Math.max(t.target,r);t.target=Math.min(t.target,o)}},this)};v.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;this.emitEvent(t,n);if(l&&this.$element){t+=this.options.namespaceJQueryEvents?".flickity":"";var s=t;if(e){var r=new l.Event(e);r.type=t;s=r}this.$element.trigger(s,i)}};v.select=function(t,e,i){if(!this.isActive){return}t=parseInt(t,10);this._wrapSelect(t);if(this.options.wrapAround||e){t=a.modulo(t,this.slides.length)}if(!this.slides[t]){return}var n=this.selectedIndex;this.selectedIndex=t;this.updateSelectedSlide();if(i){this.positionSliderAtSelected()}else{this.startAnimation()}if(this.options.adaptiveHeight){this.setGallerySize()}this.dispatchEvent("select",null,[t]);if(t!=n){this.dispatchEvent("change",null,[t])}this.dispatchEvent("cellSelect")};v._wrapSelect=function(t){var e=this.slides.length;var i=this.options.wrapAround&&e>1;if(!i){return t}var n=a.modulo(t,e);var s=Math.abs(n-this.selectedIndex);var r=Math.abs(n+e-this.selectedIndex);var o=Math.abs(n-e-this.selectedIndex);if(!this.isDragSelect&&r<s){t+=e}else if(!this.isDragSelect&&o<s){t-=e}if(t<0){this.x-=this.slideableWidth}else if(t>=e){this.x+=this.slideableWidth}};v.previous=function(t,e){this.select(this.selectedIndex-1,t,e)};v.next=function(t,e){this.select(this.selectedIndex+1,t,e)};v.updateSelectedSlide=function(){var t=this.slides[this.selectedIndex];if(!t){return}this.unselectSelectedSlide();this.selectedSlide=t;t.select();this.selectedCells=t.cells;this.selectedElements=t.getCellElements();this.selectedCell=t.cells[0];this.selectedElement=this.selectedElements[0]};v.unselectSelectedSlide=function(){if(this.selectedSlide){this.selectedSlide.unselect()}};v.selectInitialIndex=function(){var t=this.options.initialIndex;if(this.isInitActivated){this.select(this.selectedIndex,false,true);return}if(t&&typeof t=="string"){var e=this.queryCell(t);if(e){this.selectCell(t,false,true);return}}var i=0;if(t&&this.slides[t]){i=t}this.select(i,false,true)};v.selectCell=function(t,e,i){var n=this.queryCell(t);if(!n){return}var s=this.getCellSlideIndex(n);this.select(s,e,i)};v.getCellSlideIndex=function(t){for(var e=0;e<this.slides.length;e++){var i=this.slides[e];var n=i.cells.indexOf(t);if(n!=-1){return e}}};v.getCell=function(t){for(var e=0;e<this.cells.length;e++){var i=this.cells[e];if(i.element==t){return i}}};v.getCells=function(t){t=a.makeArray(t);var i=[];t.forEach(function(t){var e=this.getCell(t);if(e){i.push(e)}},this);return i};v.getCellElements=function(){return this.cells.map(function(t){return t.element})};v.getParentCell=function(t){var e=this.getCell(t);if(e){return e}t=a.getParent(t,".flickity-slider > *");return this.getCell(t)};v.getAdjacentCellElements=function(t,e){if(!t){return this.selectedSlide.getCellElements()}e=e===undefined?this.selectedIndex:e;var i=this.slides.length;if(1+t*2>=i){return this.getCellElements()}var n=[];for(var s=e-t;s<=e+t;s++){var r=this.options.wrapAround?a.modulo(s,i):s;var o=this.slides[r];if(o){n=n.concat(o.getCellElements())}}return n};v.queryCell=function(t){if(typeof t=="number"){return this.cells[t]}if(typeof t=="string"){if(t.match(/^[#.]?[\d/]/)){return}t=this.element.querySelector(t)}return this.getCell(t)};v.uiChange=function(){this.emitEvent("uiChange")};v.childUIPointerDown=function(t){if(t.type!="touchstart"){t.preventDefault()}this.focus()};v.onresize=function(){this.watchCSS();this.resize()};a.debounceMethod(p,"onresize",150);v.resize=function(){if(!this.isActive||this.isAnimating||this.isDragging){return}this.getSize();if(this.options.wrapAround){this.x=a.modulo(this.x,this.slideableWidth)}this.positionCells();this._getWrapShiftCells();this.setGallerySize();this.emitEvent("resize");var t=this.selectedElements&&this.selectedElements[0];this.selectCell(t,false,true)};v.watchCSS=function(){var t=this.options.watchCSS;if(!t){return}var e=h(this.element,":after").content;if(e.indexOf("flickity")!=-1){this.activate()}else{this.deactivate()}};v.onkeydown=function(t){var e=document.activeElement&&document.activeElement!=this.element;if(!this.options.accessibility||e){return}var i=p.keyboardHandlers[t.keyCode];if(i){i.call(this)}};p.keyboardHandlers={37:function(){var t=this.options.rightToLeft?"next":"previous";this.uiChange();this[t]()},39:function(){var t=this.options.rightToLeft?"previous":"next";this.uiChange();this[t]()}};v.focus=function(){var t=n.pageYOffset;this.element.focus({preventScroll:true});if(n.pageYOffset!=t){n.scrollTo(n.pageXOffset,t)}};v.deactivate=function(){if(!this.isActive){return}this.element.classList.remove("flickity-enabled");this.element.classList.remove("flickity-rtl");this.unselectSelectedSlide();this.cells.forEach(function(t){t.destroy()});this.element.removeChild(this.viewport);u(this.slider.children,this.element);if(this.options.accessibility){this.element.removeAttribute("tabIndex");this.element.removeEventListener("keydown",this)}this.isActive=false;this.emitEvent("deactivate")};v.destroy=function(){this.deactivate();n.removeEventListener("resize",this);this.allOff();this.emitEvent("destroy");if(l&&this.$element){l.removeData(this.element,"flickity")}delete this.element.flickityGUID;delete f[this.guid]};a.extend(v,r);p.data=function(t){t=a.getQueryElement(t);var e=t&&t.flickityGUID;return e&&f[e]};a.htmlInit(p,"flickity");if(l&&l.bridget){l.bridget("flickity",p)}p.setJQuery=function(t){l=t};p.Cell=s;p.Slide=o;return p});
538/*!
539 * Unipointer v2.4.0
540 * base class for doing one thing with pointer event
541 * MIT license
542 */
543(function(e,i){if(true){!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__WEBPACK_LOCAL_MODULE_1__], __WEBPACK_LOCAL_MODULE_9__ = ((function(t){return i(e,t)}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)))}else {}})(window,function t(s,e){function i(){}function n(){}var r=n.prototype=Object.create(e.prototype);r.bindStartEvent=function(t){this._bindStartEvent(t,true)};r.unbindStartEvent=function(t){this._bindStartEvent(t,false)};r._bindStartEvent=function(t,e){e=e===undefined?true:e;var i=e?"addEventListener":"removeEventListener";var n="mousedown";if("ontouchstart"in s){n="touchstart"}else if(s.PointerEvent){n="pointerdown"}t[i](n,this)};r.handleEvent=function(t){var e="on"+t.type;if(this[e]){this[e](t)}};r.getTouch=function(t){for(var e=0;e<t.length;e++){var i=t[e];if(i.identifier==this.pointerIdentifier){return i}}};r.onmousedown=function(t){var e=t.button;if(e&&(e!==0&&e!==1)){return}this._pointerDown(t,t)};r.ontouchstart=function(t){this._pointerDown(t,t.changedTouches[0])};r.onpointerdown=function(t){this._pointerDown(t,t)};r._pointerDown=function(t,e){if(t.button||this.isPointerDown){return}this.isPointerDown=true;this.pointerIdentifier=e.pointerId!==undefined?e.pointerId:e.identifier;this.pointerDown(t,e)};r.pointerDown=function(t,e){this._bindPostStartEvents(t);this.emitEvent("pointerDown",[t,e])};var o={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"]};r._bindPostStartEvents=function(t){if(!t){return}var e=o[t.type];e.forEach(function(t){s.addEventListener(t,this)},this);this._boundPointerEvents=e};r._unbindPostStartEvents=function(){if(!this._boundPointerEvents){return}this._boundPointerEvents.forEach(function(t){s.removeEventListener(t,this)},this);delete this._boundPointerEvents};r.onmousemove=function(t){this._pointerMove(t,t)};r.onpointermove=function(t){if(t.pointerId==this.pointerIdentifier){this._pointerMove(t,t)}};r.ontouchmove=function(t){var e=this.getTouch(t.changedTouches);if(e){this._pointerMove(t,e)}};r._pointerMove=function(t,e){this.pointerMove(t,e)};r.pointerMove=function(t,e){this.emitEvent("pointerMove",[t,e])};r.onmouseup=function(t){this._pointerUp(t,t)};r.onpointerup=function(t){if(t.pointerId==this.pointerIdentifier){this._pointerUp(t,t)}};r.ontouchend=function(t){var e=this.getTouch(t.changedTouches);if(e){this._pointerUp(t,e)}};r._pointerUp=function(t,e){this._pointerDone();this.pointerUp(t,e)};r.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e])};r._pointerDone=function(){this._pointerReset();this._unbindPostStartEvents();this.pointerDone()};r._pointerReset=function(){this.isPointerDown=false;delete this.pointerIdentifier};r.pointerDone=i;r.onpointercancel=function(t){if(t.pointerId==this.pointerIdentifier){this._pointerCancel(t,t)}};r.ontouchcancel=function(t){var e=this.getTouch(t.changedTouches);if(e){this._pointerCancel(t,e)}};r._pointerCancel=function(t,e){this._pointerDone();this.pointerCancel(t,e)};r.pointerCancel=function(t,e){this.emitEvent("pointerCancel",[t,e])};n.getPointerPoint=function(t){return{x:t.pageX,y:t.pageY}};return n});
544/*!
545 * Unidragger v2.4.0
546 * Draggable base class
547 * MIT license
548 */
549(function(e,i){if(true){!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__WEBPACK_LOCAL_MODULE_9__], __WEBPACK_LOCAL_MODULE_10__ = ((function(t){return i(e,t)}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)))}else {}})(window,function t(r,e){function i(){}var n=i.prototype=Object.create(e.prototype);n.bindHandles=function(){this._bindHandles(true)};n.unbindHandles=function(){this._bindHandles(false)};n._bindHandles=function(t){t=t===undefined?true:t;var e=t?"addEventListener":"removeEventListener";var i=t?this._touchActionValue:"";for(var n=0;n<this.handles.length;n++){var s=this.handles[n];this._bindStartEvent(s,t);s[e]("click",this);if(r.PointerEvent){s.style.touchAction=i}}};n._touchActionValue="none";n.pointerDown=function(t,e){var i=this.okayPointerDown(t);if(!i){return}this.pointerDownPointer={pageX:e.pageX,pageY:e.pageY};t.preventDefault();this.pointerDownBlur();this._bindPostStartEvents(t);this.emitEvent("pointerDown",[t,e])};var s={TEXTAREA:true,INPUT:true,SELECT:true,OPTION:true};var o={radio:true,checkbox:true,button:true,submit:true,image:true,file:true};n.okayPointerDown=function(t){var e=s[t.target.nodeName];var i=o[t.target.type];var n=!e||i;if(!n){this._pointerReset()}return n};n.pointerDownBlur=function(){var t=document.activeElement;var e=t&&t.blur&&t!=document.body;if(e){t.blur()}};n.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.emitEvent("pointerMove",[t,e,i]);this._dragMove(t,e,i)};n._dragPointerMove=function(t,e){var i={x:e.pageX-this.pointerDownPointer.pageX,y:e.pageY-this.pointerDownPointer.pageY};if(!this.isDragging&&this.hasDragStarted(i)){this._dragStart(t,e)}return i};n.hasDragStarted=function(t){return Math.abs(t.x)>3||Math.abs(t.y)>3};n.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e]);this._dragPointerUp(t,e)};n._dragPointerUp=function(t,e){if(this.isDragging){this._dragEnd(t,e)}else{this._staticClick(t,e)}};n._dragStart=function(t,e){this.isDragging=true;this.isPreventingClicks=true;this.dragStart(t,e)};n.dragStart=function(t,e){this.emitEvent("dragStart",[t,e])};n._dragMove=function(t,e,i){if(!this.isDragging){return}this.dragMove(t,e,i)};n.dragMove=function(t,e,i){t.preventDefault();this.emitEvent("dragMove",[t,e,i])};n._dragEnd=function(t,e){this.isDragging=false;setTimeout(function(){delete this.isPreventingClicks}.bind(this));this.dragEnd(t,e)};n.dragEnd=function(t,e){this.emitEvent("dragEnd",[t,e])};n.onclick=function(t){if(this.isPreventingClicks){t.preventDefault()}};n._staticClick=function(t,e){if(this.isIgnoringMouseUp&&t.type=="mouseup"){return}this.staticClick(t,e);if(t.type!="mouseup"){this.isIgnoringMouseUp=true;setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400)}};n.staticClick=function(t,e){this.emitEvent("staticClick",[t,e])};i.getPointerPoint=e.getPointerPoint;return i});(function(n,s){if(true){!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__WEBPACK_LOCAL_MODULE_8__,__WEBPACK_LOCAL_MODULE_10__,__WEBPACK_LOCAL_MODULE_4__], __WEBPACK_LOCAL_MODULE_11__ = ((function(t,e,i){return s(n,t,e,i)}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)))}else {}})(window,function t(n,e,i,a){a.extend(e.defaults,{draggable:">1",dragThreshold:3});e.createMethods.push("_createDrag");var s=e.prototype;a.extend(s,i.prototype);s._touchActionValue="pan-y";s._createDrag=function(){this.on("activate",this.onActivateDrag);this.on("uiChange",this._uiChangeDrag);this.on("deactivate",this.onDeactivateDrag);this.on("cellChange",this.updateDraggable)};s.onActivateDrag=function(){this.handles=[this.viewport];this.bindHandles();this.updateDraggable()};s.onDeactivateDrag=function(){this.unbindHandles();this.element.classList.remove("is-draggable")};s.updateDraggable=function(){if(this.options.draggable==">1"){this.isDraggable=this.slides.length>1}else{this.isDraggable=this.options.draggable}if(this.isDraggable){this.element.classList.add("is-draggable")}else{this.element.classList.remove("is-draggable")}};s.bindDrag=function(){this.options.draggable=true;this.updateDraggable()};s.unbindDrag=function(){this.options.draggable=false;this.updateDraggable()};s._uiChangeDrag=function(){delete this.isFreeScrolling};s.pointerDown=function(t,e){if(!this.isDraggable){this._pointerDownDefault(t,e);return}var i=this.okayPointerDown(t);if(!i){return}this._pointerDownPreventDefault(t);this.pointerDownFocus(t);if(document.activeElement!=this.element){this.pointerDownBlur()}this.dragX=this.x;this.viewport.classList.add("is-pointer-down");this.pointerDownScroll=o();n.addEventListener("scroll",this);this._pointerDownDefault(t,e)};s._pointerDownDefault=function(t,e){this.pointerDownPointer={pageX:e.pageX,pageY:e.pageY};this._bindPostStartEvents(t);this.dispatchEvent("pointerDown",t,[e])};var r={INPUT:true,TEXTAREA:true,SELECT:true};s.pointerDownFocus=function(t){var e=r[t.target.nodeName];if(!e){this.focus()}};s._pointerDownPreventDefault=function(t){var e=t.type=="touchstart";var i=t.pointerType=="touch";var n=r[t.target.nodeName];if(!e&&!i&&!n){t.preventDefault()}};s.hasDragStarted=function(t){return Math.abs(t.x)>this.options.dragThreshold};s.pointerUp=function(t,e){delete this.isTouchScrolling;this.viewport.classList.remove("is-pointer-down");this.dispatchEvent("pointerUp",t,[e]);this._dragPointerUp(t,e)};s.pointerDone=function(){n.removeEventListener("scroll",this);delete this.pointerDownScroll};s.dragStart=function(t,e){if(!this.isDraggable){return}this.dragStartPosition=this.x;this.startAnimation();n.removeEventListener("scroll",this);this.dispatchEvent("dragStart",t,[e])};s.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.dispatchEvent("pointerMove",t,[e,i]);this._dragMove(t,e,i)};s.dragMove=function(t,e,i){if(!this.isDraggable){return}t.preventDefault();this.previousDragX=this.dragX;var n=this.options.rightToLeft?-1:1;if(this.options.wrapAround){i.x%=this.slideableWidth}var s=this.dragStartPosition+i.x*n;if(!this.options.wrapAround&&this.slides.length){var r=Math.max(-this.slides[0].target,this.dragStartPosition);s=s>r?(s+r)*.5:s;var o=Math.min(-this.getLastSlide().target,this.dragStartPosition);s=s<o?(s+o)*.5:s}this.dragX=s;this.dragMoveTime=new Date;this.dispatchEvent("dragMove",t,[e,i])};s.dragEnd=function(t,e){if(!this.isDraggable){return}if(this.options.freeScroll){this.isFreeScrolling=true}var i=this.dragEndRestingSelect();if(this.options.freeScroll&&!this.options.wrapAround){var n=this.getRestingPosition();this.isFreeScrolling=-n>this.slides[0].target&&-n<this.getLastSlide().target}else if(!this.options.freeScroll&&i==this.selectedIndex){i+=this.dragEndBoostSelect()}delete this.previousDragX;this.isDragSelect=this.options.wrapAround;this.select(i);delete this.isDragSelect;this.dispatchEvent("dragEnd",t,[e])};s.dragEndRestingSelect=function(){var t=this.getRestingPosition();var e=Math.abs(this.getSlideDistance(-t,this.selectedIndex));var i=this._getClosestResting(t,e,1);var n=this._getClosestResting(t,e,-1);var s=i.distance<n.distance?i.index:n.index;return s};s._getClosestResting=function(t,e,i){var n=this.selectedIndex;var s=Infinity;var r=this.options.contain&&!this.options.wrapAround?function(t,e){return t<=e}:function(t,e){return t<e};while(r(e,s)){n+=i;s=e;e=this.getSlideDistance(-t,n);if(e===null){break}e=Math.abs(e)}return{distance:s,index:n-i}};s.getSlideDistance=function(t,e){var i=this.slides.length;var n=this.options.wrapAround&&i>1;var s=n?a.modulo(e,i):e;var r=this.slides[s];if(!r){return null}var o=n?this.slideableWidth*Math.floor(e/i):0;return t-(r.target+o)};s.dragEndBoostSelect=function(){if(this.previousDragX===undefined||!this.dragMoveTime||new Date-this.dragMoveTime>100){return 0}var t=this.getSlideDistance(-this.dragX,this.selectedIndex);var e=this.previousDragX-this.dragX;if(t>0&&e>0){return 1}else if(t<0&&e<0){return-1}return 0};s.staticClick=function(t,e){var i=this.getParentCell(t.target);var n=i&&i.element;var s=i&&this.cells.indexOf(i);this.dispatchEvent("staticClick",t,[e,n,s])};s.onscroll=function(){var t=o();var e=this.pointerDownScroll.x-t.x;var i=this.pointerDownScroll.y-t.y;if(Math.abs(e)>3||Math.abs(i)>3){this._pointerDone()}};function o(){return{x:n.pageXOffset,y:n.pageYOffset}}return e});(function(n,s){if(true){!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__WEBPACK_LOCAL_MODULE_8__,__WEBPACK_LOCAL_MODULE_9__,__WEBPACK_LOCAL_MODULE_4__], __WEBPACK_LOCAL_MODULE_12__ = ((function(t,e,i){return s(n,t,e,i)}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)))}else {}})(window,function t(e,i,n,s){"use strict";var r="http://www.w3.org/2000/svg";function o(t,e){this.direction=t;this.parent=e;this._create()}o.prototype=Object.create(n.prototype);o.prototype._create=function(){this.isEnabled=true;this.isPrevious=this.direction==-1;var t=this.parent.options.rightToLeft?1:-1;this.isLeft=this.direction==t;var e=this.element=document.createElement("button");e.className="flickity-button flickity-prev-next-button";e.className+=this.isPrevious?" previous":" next";e.setAttribute("type","button");this.disable();e.setAttribute("aria-label",this.isPrevious?"Previous":"Next");var i=this.createSVG();e.appendChild(i);this.parent.on("select",this.update.bind(this));this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))};o.prototype.activate=function(){this.bindStartEvent(this.element);this.element.addEventListener("click",this);this.parent.element.appendChild(this.element)};o.prototype.deactivate=function(){this.parent.element.removeChild(this.element);this.unbindStartEvent(this.element);this.element.removeEventListener("click",this)};o.prototype.createSVG=function(){var t=document.createElementNS(r,"svg");t.setAttribute("class","flickity-button-icon");t.setAttribute("viewBox","0 0 100 100");var e=document.createElementNS(r,"path");var i=a(this.parent.options.arrowShape);e.setAttribute("d",i);e.setAttribute("class","arrow");if(!this.isLeft){e.setAttribute("transform","translate(100, 100) rotate(180) ")}t.appendChild(e);return t};function a(t){if(typeof t=="string"){return t}return"M "+t.x0+",50"+" L "+t.x1+","+(t.y1+50)+" L "+t.x2+","+(t.y2+50)+" L "+t.x3+",50 "+" L "+t.x2+","+(50-t.y2)+" L "+t.x1+","+(50-t.y1)+" Z"}o.prototype.handleEvent=s.handleEvent;o.prototype.onclick=function(){if(!this.isEnabled){return}this.parent.uiChange();var t=this.isPrevious?"previous":"next";this.parent[t]()};o.prototype.enable=function(){if(this.isEnabled){return}this.element.disabled=false;this.isEnabled=true};o.prototype.disable=function(){if(!this.isEnabled){return}this.element.disabled=true;this.isEnabled=false};o.prototype.update=function(){var t=this.parent.slides;if(this.parent.options.wrapAround&&t.length>1){this.enable();return}var e=t.length?t.length-1:0;var i=this.isPrevious?0:e;var n=this.parent.selectedIndex==i?"disable":"enable";this[n]()};o.prototype.destroy=function(){this.deactivate();this.allOff()};s.extend(i.defaults,{prevNextButtons:true,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}});i.createMethods.push("_createPrevNextButtons");var l=i.prototype;l._createPrevNextButtons=function(){if(!this.options.prevNextButtons){return}this.prevButton=new o(-1,this);this.nextButton=new o(1,this);this.on("activate",this.activatePrevNextButtons)};l.activatePrevNextButtons=function(){this.prevButton.activate();this.nextButton.activate();this.on("deactivate",this.deactivatePrevNextButtons)};l.deactivatePrevNextButtons=function(){this.prevButton.deactivate();this.nextButton.deactivate();this.off("deactivate",this.deactivatePrevNextButtons)};i.PrevNextButton=o;return i});(function(n,s){if(true){!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__WEBPACK_LOCAL_MODULE_8__,__WEBPACK_LOCAL_MODULE_9__,__WEBPACK_LOCAL_MODULE_4__], __WEBPACK_LOCAL_MODULE_13__ = ((function(t,e,i){return s(n,t,e,i)}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)))}else {}})(window,function t(e,i,n,s){function r(t){this.parent=t;this._create()}r.prototype=Object.create(n.prototype);r.prototype._create=function(){this.holder=document.createElement("ol");this.holder.className="flickity-page-dots";this.dots=[];this.handleClick=this.onClick.bind(this);this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))};r.prototype.activate=function(){this.setDots();this.holder.addEventListener("click",this.handleClick);this.bindStartEvent(this.holder);this.parent.element.appendChild(this.holder)};r.prototype.deactivate=function(){this.holder.removeEventListener("click",this.handleClick);this.unbindStartEvent(this.holder);this.parent.element.removeChild(this.holder)};r.prototype.setDots=function(){var t=this.parent.slides.length-this.dots.length;if(t>0){this.addDots(t)}else if(t<0){this.removeDots(-t)}};r.prototype.addDots=function(t){var e=document.createDocumentFragment();var i=[];var n=this.dots.length;var s=n+t;for(var r=n;r<s;r++){var o=document.createElement("li");o.className="dot";o.setAttribute("aria-label","Page dot "+(r+1));e.appendChild(o);i.push(o)}this.holder.appendChild(e);this.dots=this.dots.concat(i)};r.prototype.removeDots=function(t){var e=this.dots.splice(this.dots.length-t,t);e.forEach(function(t){this.holder.removeChild(t)},this)};r.prototype.updateSelected=function(){if(this.selectedDot){this.selectedDot.className="dot";this.selectedDot.removeAttribute("aria-current")}if(!this.dots.length){return}this.selectedDot=this.dots[this.parent.selectedIndex];this.selectedDot.className="dot is-selected";this.selectedDot.setAttribute("aria-current","step")};r.prototype.onTap=r.prototype.onClick=function(t){var e=t.target;if(e.nodeName!="LI"){return}this.parent.uiChange();var i=this.dots.indexOf(e);this.parent.select(i)};r.prototype.destroy=function(){this.deactivate();this.allOff()};i.PageDots=r;s.extend(i.defaults,{pageDots:true});i.createMethods.push("_createPageDots");var o=i.prototype;o._createPageDots=function(){if(!this.options.pageDots){return}this.pageDots=new r(this);this.on("activate",this.activatePageDots);this.on("select",this.updateSelectedPageDots);this.on("cellChange",this.updatePageDots);this.on("resize",this.updatePageDots);this.on("deactivate",this.deactivatePageDots)};o.activatePageDots=function(){this.pageDots.activate()};o.updateSelectedPageDots=function(){this.pageDots.updateSelected()};o.updatePageDots=function(){this.pageDots.setDots()};o.deactivatePageDots=function(){this.pageDots.deactivate()};i.PageDots=r;return i});(function(t,n){if(true){!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__WEBPACK_LOCAL_MODULE_1__,__WEBPACK_LOCAL_MODULE_4__,__WEBPACK_LOCAL_MODULE_8__], __WEBPACK_LOCAL_MODULE_14__ = ((function(t,e,i){return n(t,e,i)}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)))}else {}})(window,function t(e,i,n){function s(t){this.parent=t;this.state="stopped";this.onVisibilityChange=this.visibilityChange.bind(this);this.onVisibilityPlay=this.visibilityPlay.bind(this)}s.prototype=Object.create(e.prototype);s.prototype.play=function(){if(this.state=="playing"){return}var t=document.hidden;if(t){document.addEventListener("visibilitychange",this.onVisibilityPlay);return}this.state="playing";document.addEventListener("visibilitychange",this.onVisibilityChange);this.tick()};s.prototype.tick=function(){if(this.state!="playing"){return}var t=this.parent.options.autoPlay;t=typeof t=="number"?t:3e3;var e=this;this.clear();this.timeout=setTimeout(function(){e.parent.next(true);e.tick()},t)};s.prototype.stop=function(){this.state="stopped";this.clear();document.removeEventListener("visibilitychange",this.onVisibilityChange)};s.prototype.clear=function(){clearTimeout(this.timeout)};s.prototype.pause=function(){if(this.state=="playing"){this.state="paused";this.clear()}};s.prototype.unpause=function(){if(this.state=="paused"){this.play()}};s.prototype.visibilityChange=function(){var t=document.hidden;this[t?"pause":"unpause"]()};s.prototype.visibilityPlay=function(){this.play();document.removeEventListener("visibilitychange",this.onVisibilityPlay)};i.extend(n.defaults,{pauseAutoPlayOnHover:true});n.createMethods.push("_createPlayer");var r=n.prototype;r._createPlayer=function(){this.player=new s(this);this.on("activate",this.activatePlayer);this.on("uiChange",this.stopPlayer);this.on("pointerDown",this.stopPlayer);this.on("deactivate",this.deactivatePlayer)};r.activatePlayer=function(){if(!this.options.autoPlay){return}this.player.play();this.element.addEventListener("mouseenter",this)};r.playPlayer=function(){this.player.play()};r.stopPlayer=function(){this.player.stop()};r.pausePlayer=function(){this.player.pause()};r.unpausePlayer=function(){this.player.unpause()};r.deactivatePlayer=function(){this.player.stop();this.element.removeEventListener("mouseenter",this)};r.onmouseenter=function(){if(!this.options.pauseAutoPlayOnHover){return}this.player.pause();this.element.addEventListener("mouseleave",this)};r.onmouseleave=function(){this.player.unpause();this.element.removeEventListener("mouseleave",this)};n.Player=s;return n});(function(i,n){if(true){!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__WEBPACK_LOCAL_MODULE_8__,__WEBPACK_LOCAL_MODULE_4__], __WEBPACK_LOCAL_MODULE_15__ = ((function(t,e){return n(i,t,e)}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)))}else {}})(window,function t(e,i,n){function l(t){var e=document.createDocumentFragment();t.forEach(function(t){e.appendChild(t.element)});return e}var s=i.prototype;s.insert=function(t,e){var i=this._makeCells(t);if(!i||!i.length){return}var n=this.cells.length;e=e===undefined?n:e;var s=l(i);var r=e==n;if(r){this.slider.appendChild(s)}else{var o=this.cells[e].element;this.slider.insertBefore(s,o)}if(e===0){this.cells=i.concat(this.cells)}else if(r){this.cells=this.cells.concat(i)}else{var a=this.cells.splice(e,n-e);this.cells=this.cells.concat(i).concat(a)}this._sizeCells(i);this.cellChange(e,true)};s.append=function(t){this.insert(t,this.cells.length)};s.prepend=function(t){this.insert(t,0)};s.remove=function(t){var e=this.getCells(t);if(!e||!e.length){return}var i=this.cells.length-1;e.forEach(function(t){t.remove();var e=this.cells.indexOf(t);i=Math.min(e,i);n.removeFrom(this.cells,t)},this);this.cellChange(i,true)};s.cellSizeChange=function(t){var e=this.getCell(t);if(!e){return}e.getSize();var i=this.cells.indexOf(e);this.cellChange(i)};s.cellChange=function(t,e){var i=this.selectedElement;this._positionCells(t);this._getWrapShiftCells();this.setGallerySize();var n=this.getCell(i);if(n){this.selectedIndex=this.getCellSlideIndex(n)}this.selectedIndex=Math.min(this.slides.length-1,this.selectedIndex);this.emitEvent("cellChange",[t]);this.select(this.selectedIndex);if(e){this.positionSliderAtSelected()}};return i});(function(i,n){if(true){!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__WEBPACK_LOCAL_MODULE_8__,__WEBPACK_LOCAL_MODULE_4__], __WEBPACK_LOCAL_MODULE_16__ = ((function(t,e){return n(i,t,e)}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)))}else {}})(window,function t(e,i,o){"use strict";i.createMethods.push("_createLazyload");var n=i.prototype;n._createLazyload=function(){this.on("select",this.lazyLoad)};n.lazyLoad=function(){var t=this.options.lazyLoad;if(!t){return}var e=typeof t=="number"?t:0;var i=this.getAdjacentCellElements(e);var n=[];i.forEach(function(t){var e=s(t);n=n.concat(e)});n.forEach(function(t){new r(t,this)},this)};function s(t){if(t.nodeName=="IMG"){var e=t.getAttribute("data-flickity-lazyload");var i=t.getAttribute("data-flickity-lazyload-src");var n=t.getAttribute("data-flickity-lazyload-srcset");if(e||i||n){return[t]}}var s="img[data-flickity-lazyload], "+"img[data-flickity-lazyload-src], img[data-flickity-lazyload-srcset]";var r=t.querySelectorAll(s);return o.makeArray(r)}function r(t,e){this.img=t;this.flickity=e;this.load()}r.prototype.handleEvent=o.handleEvent;r.prototype.load=function(){this.img.addEventListener("load",this);this.img.addEventListener("error",this);var t=this.img.getAttribute("data-flickity-lazyload")||this.img.getAttribute("data-flickity-lazyload-src");var e=this.img.getAttribute("data-flickity-lazyload-srcset");this.img.src=t;if(e){this.img.setAttribute("srcset",e)}this.img.removeAttribute("data-flickity-lazyload");this.img.removeAttribute("data-flickity-lazyload-src");this.img.removeAttribute("data-flickity-lazyload-srcset")};r.prototype.onload=function(t){this.complete(t,"flickity-lazyloaded")};r.prototype.onerror=function(t){this.complete(t,"flickity-lazyerror")};r.prototype.complete=function(t,e){this.img.removeEventListener("load",this);this.img.removeEventListener("error",this);var i=this.flickity.getParentCell(this.img);var n=i&&i.element;this.flickity.cellSizeChange(n);this.img.classList.add(e);this.flickity.dispatchEvent("lazyLoad",t,n)};i.LazyLoader=r;return i});
550/*!
551 * Flickity v2.3.0
552 * Touch, responsive, flickable carousels
553 *
554 * Licensed GPLv3 for open source use
555 * or Flickity Commercial License for commercial use
556 *
557 * https://flickity.metafizzy.co
558 * Copyright 2015-2021 Metafizzy
559 */
560(function(t,e){if(true){!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__WEBPACK_LOCAL_MODULE_8__,__WEBPACK_LOCAL_MODULE_11__,__WEBPACK_LOCAL_MODULE_12__,__WEBPACK_LOCAL_MODULE_13__,__WEBPACK_LOCAL_MODULE_14__,__WEBPACK_LOCAL_MODULE_15__,__WEBPACK_LOCAL_MODULE_16__], __WEBPACK_AMD_DEFINE_FACTORY__ = (e),
561				__WEBPACK_LOCAL_MODULE_17__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
562				(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__))}else {}})(window,function t(e){return e});
563/*!
564 * Flickity asNavFor v2.0.2
565 * enable asNavFor for Flickity
566 */
567(function(t,e){if(true){!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__WEBPACK_LOCAL_MODULE_17__,__WEBPACK_LOCAL_MODULE_4__], __WEBPACK_AMD_DEFINE_FACTORY__ = (e),
568				__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
569				(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
570				__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__))}else {}})(window,function t(n,s){n.createMethods.push("_createAsNavFor");var e=n.prototype;e._createAsNavFor=function(){this.on("activate",this.activateAsNavFor);this.on("deactivate",this.deactivateAsNavFor);this.on("destroy",this.destroyAsNavFor);var e=this.options.asNavFor;if(!e){return}var i=this;setTimeout(function t(){i.setNavCompanion(e)})};e.setNavCompanion=function(t){t=s.getQueryElement(t);var e=n.data(t);if(!e||e==this){return}this.navCompanion=e;var i=this;this.onNavCompanionSelect=function(){i.navCompanionSelect()};e.on("select",this.onNavCompanionSelect);this.on("staticClick",this.onNavStaticClick);this.navCompanionSelect(true)};e.navCompanionSelect=function(t){var e=this.navCompanion&&this.navCompanion.selectedCells;if(!e){return}var i=e[0];var n=this.navCompanion.cells.indexOf(i);var s=n+e.length-1;var r=Math.floor(a(n,s,this.navCompanion.cellAlign));this.selectCell(r,false,t);this.removeNavSelectedElements();if(r>=this.cells.length){return}var o=this.cells.slice(n,s+1);this.navSelectedElements=o.map(function(t){return t.element});this.changeNavSelectedClass("add")};function a(t,e,i){return(e-t)*i+t}e.changeNavSelectedClass=function(e){this.navSelectedElements.forEach(function(t){t.classList[e]("is-nav-selected")})};e.activateAsNavFor=function(){this.navCompanionSelect(true)};e.removeNavSelectedElements=function(){if(!this.navSelectedElements){return}this.changeNavSelectedClass("remove");delete this.navSelectedElements};e.onNavStaticClick=function(t,e,i,n){if(typeof n=="number"){this.navCompanion.selectCell(n)}};e.deactivateAsNavFor=function(){this.removeNavSelectedElements()};e.destroyAsNavFor=function(){if(!this.navCompanion){return}this.navCompanion.off("select",this.onNavCompanionSelect);this.off("staticClick",this.onNavStaticClick);delete this.navCompanion};return n});
571/*!
572 * imagesLoaded v4.1.4
573 * JavaScript is all like "You images are done yet or what?"
574 * MIT License
575 */
576(function(e,i){"use strict";if(true){!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__WEBPACK_LOCAL_MODULE_1__], __WEBPACK_LOCAL_MODULE_19__ = ((function(t){return i(e,t)}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)))}else {}})(typeof window!=="undefined"?window:this,function t(e,i){var s=e.jQuery;var r=e.console;function o(t,e){for(var i in e){t[i]=e[i]}return t}var n=Array.prototype.slice;function a(t){if(Array.isArray(t)){return t}var e=typeof t=="object"&&typeof t.length=="number";if(e){return n.call(t)}return[t]}function l(t,e,i){if(!(this instanceof l)){return new l(t,e,i)}var n=t;if(typeof t=="string"){n=document.querySelectorAll(t)}if(!n){r.error("Bad element for imagesLoaded "+(n||t));return}this.elements=a(n);this.options=o({},this.options);if(typeof e=="function"){i=e}else{o(this.options,e)}if(i){this.on("always",i)}this.getImages();if(s){this.jqDeferred=new s.Deferred}setTimeout(this.check.bind(this))}l.prototype=Object.create(i.prototype);l.prototype.options={};l.prototype.getImages=function(){this.images=[];this.elements.forEach(this.addElementImages,this)};l.prototype.addElementImages=function(t){if(t.nodeName=="IMG"){this.addImage(t)}if(this.options.background===true){this.addElementBackgroundImages(t)}var e=t.nodeType;if(!e||!h[e]){return}var i=t.querySelectorAll("img");for(var n=0;n<i.length;n++){var s=i[n];this.addImage(s)}if(typeof this.options.background=="string"){var r=t.querySelectorAll(this.options.background);for(n=0;n<r.length;n++){var o=r[n];this.addElementBackgroundImages(o)}}};var h={1:true,9:true,11:true};l.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(!e){return}var i=/url\((['"])?(.*?)\1\)/gi;var n=i.exec(e.backgroundImage);while(n!==null){var s=n&&n[2];if(s){this.addBackground(s,t)}n=i.exec(e.backgroundImage)}};l.prototype.addImage=function(t){var e=new c(t);this.images.push(e)};l.prototype.addBackground=function(t,e){var i=new u(t,e);this.images.push(i)};l.prototype.check=function(){var n=this;this.progressedCount=0;this.hasAnyBroken=false;if(!this.images.length){this.complete();return}function e(t,e,i){setTimeout(function(){n.progress(t,e,i)})}this.images.forEach(function(t){t.once("progress",e);t.check()})};l.prototype.progress=function(t,e,i){this.progressedCount++;this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded;this.emitEvent("progress",[this,t,e]);if(this.jqDeferred&&this.jqDeferred.notify){this.jqDeferred.notify(this,t)}if(this.progressedCount==this.images.length){this.complete()}if(this.options.debug&&r){r.log("progress: "+i,t,e)}};l.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";this.isComplete=true;this.emitEvent(t,[this]);this.emitEvent("always",[this]);if(this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}};function c(t){this.img=t}c.prototype=Object.create(i.prototype);c.prototype.check=function(){var t=this.getIsImageComplete();if(t){this.confirm(this.img.naturalWidth!==0,"naturalWidth");return}this.proxyImage=new Image;this.proxyImage.addEventListener("load",this);this.proxyImage.addEventListener("error",this);this.img.addEventListener("load",this);this.img.addEventListener("error",this);this.proxyImage.src=this.img.src};c.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth};c.prototype.confirm=function(t,e){this.isLoaded=t;this.emitEvent("progress",[this,this.img,e])};c.prototype.handleEvent=function(t){var e="on"+t.type;if(this[e]){this[e](t)}};c.prototype.onload=function(){this.confirm(true,"onload");this.unbindEvents()};c.prototype.onerror=function(){this.confirm(false,"onerror");this.unbindEvents()};c.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this);this.proxyImage.removeEventListener("error",this);this.img.removeEventListener("load",this);this.img.removeEventListener("error",this)};function u(t,e){this.url=t;this.element=e;this.img=new Image}u.prototype=Object.create(c.prototype);u.prototype.check=function(){this.img.addEventListener("load",this);this.img.addEventListener("error",this);this.img.src=this.url;var t=this.getIsImageComplete();if(t){this.confirm(this.img.naturalWidth!==0,"naturalWidth");this.unbindEvents()}};u.prototype.unbindEvents=function(){this.img.removeEventListener("load",this);this.img.removeEventListener("error",this)};u.prototype.confirm=function(t,e){this.isLoaded=t;this.emitEvent("progress",[this,this.element,e])};l.makeJQueryPlugin=function(t){t=t||e.jQuery;if(!t){return}s=t;s.fn.imagesLoaded=function(t,e){var i=new l(this,t,e);return i.jqDeferred.promise(s(this))}};l.makeJQueryPlugin();return l});
577/*!
578 * Flickity imagesLoaded v2.0.0
579 * enables imagesLoaded option for Flickity
580 */
581(function(i,n){if(true){!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__WEBPACK_LOCAL_MODULE_17__,__WEBPACK_LOCAL_MODULE_19__], __WEBPACK_AMD_DEFINE_RESULT__ = (function(t,e){return n(i,t,e)}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
582				__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__))}else {}})(window,function t(e,i,s){"use strict";i.createMethods.push("_createImagesLoaded");var n=i.prototype;n._createImagesLoaded=function(){this.on("activate",this.imagesLoaded)};n.imagesLoaded=function(){if(!this.options.imagesLoaded){return}var n=this;function t(t,e){var i=n.getParentCell(e.img);n.cellSizeChange(i&&i.element);if(!n.options.freeScroll){n.positionSliderAtSelected()}}s(this.slider).on("progress",t)};return i});
583
584/***/ }),
585
vendor: 5,986 bytes, lines 586-801
586/***/ "../../node_modules/get-size/get-size.js":
587/*!******************************************************************************!*\
588  !*** /var/www/html/web/app/themes/history/node_modules/get-size/get-size.js ***!
589  \******************************************************************************/
590/*! no static exports found */
591/***/ (function(module, exports, __webpack_require__) {
592
593var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
594 * getSize v2.0.3
595 * measure size of elements
596 * MIT license
597 */
598
599/* jshint browser: true, strict: true, undef: true, unused: true */
600/* globals console: false */
601
602( function( window, factory ) {
603  /* jshint strict: false */ /* globals define, module */
604  if ( true ) {
605    // AMD
606    !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
607				__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
608				(__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
609				__WEBPACK_AMD_DEFINE_FACTORY__),
610				__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
611  } else {}
612
613})( window, function factory() {
614'use strict';
615
616// -------------------------- helpers -------------------------- //
617
618// get a number from a string, not a percentage
619function getStyleSize( value ) {
620  var num = parseFloat( value );
621  // not a percent like '100%', and a number
622  var isValid = value.indexOf('%') == -1 && !isNaN( num );
623  return isValid && num;
624}
625
626function noop() {}
627
628var logError = typeof console == 'undefined' ? noop :
629  function( message ) {
630    console.error( message );
631  };
632
633// -------------------------- measurements -------------------------- //
634
635var measurements = [
636  'paddingLeft',
637  'paddingRight',
638  'paddingTop',
639  'paddingBottom',
640  'marginLeft',
641  'marginRight',
642  'marginTop',
643  'marginBottom',
644  'borderLeftWidth',
645  'borderRightWidth',
646  'borderTopWidth',
647  'borderBottomWidth'
648];
649
650var measurementsLength = measurements.length;
651
652function getZeroSize() {
653  var size = {
654    width: 0,
655    height: 0,
656    innerWidth: 0,
657    innerHeight: 0,
658    outerWidth: 0,
659    outerHeight: 0
660  };
661  for ( var i=0; i < measurementsLength; i++ ) {
662    var measurement = measurements[i];
663    size[ measurement ] = 0;
664  }
665  return size;
666}
667
668// -------------------------- getStyle -------------------------- //
669
670/**
671 * getStyle, get style of element, check for Firefox bug
672 * https://bugzilla.mozilla.org/show_bug.cgi?id=548397
673 */
674function getStyle( elem ) {
675  var style = getComputedStyle( elem );
676  if ( !style ) {
677    logError( 'Style returned ' + style +
678      '. Are you running this code in a hidden iframe on Firefox? ' +
679      'See https://bit.ly/getsizebug1' );
680  }
681  return style;
682}
683
684// -------------------------- setup -------------------------- //
685
686var isSetup = false;
687
688var isBoxSizeOuter;
689
690/**
691 * setup
692 * check isBoxSizerOuter
693 * do on first getSize() rather than on page load for Firefox bug
694 */
695function setup() {
696  // setup once
697  if ( isSetup ) {
698    return;
699  }
700  isSetup = true;
701
702  // -------------------------- box sizing -------------------------- //
703
704  /**
705   * Chrome & Safari measure the outer-width on style.width on border-box elems
706   * IE11 & Firefox<29 measures the inner-width
707   */
708  var div = document.createElement('div');
709  div.style.width = '200px';
710  div.style.padding = '1px 2px 3px 4px';
711  div.style.borderStyle = 'solid';
712  div.style.borderWidth = '1px 2px 3px 4px';
713  div.style.boxSizing = 'border-box';
714
715  var body = document.body || document.documentElement;
716  body.appendChild( div );
717  var style = getStyle( div );
718  // round value for browser zoom. desandro/masonry#928
719  isBoxSizeOuter = Math.round( getStyleSize( style.width ) ) == 200;
720  getSize.isBoxSizeOuter = isBoxSizeOuter;
721
722  body.removeChild( div );
723}
724
725// -------------------------- getSize -------------------------- //
726
727function getSize( elem ) {
728  setup();
729
730  // use querySeletor if elem is string
731  if ( typeof elem == 'string' ) {
732    elem = document.querySelector( elem );
733  }
734
735  // do not proceed on non-objects
736  if ( !elem || typeof elem != 'object' || !elem.nodeType ) {
737    return;
738  }
739
740  var style = getStyle( elem );
741
742  // if hidden, everything is 0
743  if ( style.display == 'none' ) {
744    return getZeroSize();
745  }
746
747  var size = {};
748  size.width = elem.offsetWidth;
749  size.height = elem.offsetHeight;
750
751  var isBorderBox = size.isBorderBox = style.boxSizing == 'border-box';
752
753  // get all measurements
754  for ( var i=0; i < measurementsLength; i++ ) {
755    var measurement = measurements[i];
756    var value = style[ measurement ];
757    var num = parseFloat( value );
758    // any 'auto', 'medium' value will be 0
759    size[ measurement ] = !isNaN( num ) ? num : 0;
760  }
761
762  var paddingWidth = size.paddingLeft + size.paddingRight;
763  var paddingHeight = size.paddingTop + size.paddingBottom;
764  var marginWidth = size.marginLeft + size.marginRight;
765  var marginHeight = size.marginTop + size.marginBottom;
766  var borderWidth = size.borderLeftWidth + size.borderRightWidth;
767  var borderHeight = size.borderTopWidth + size.borderBottomWidth;
768
769  var isBorderBoxSizeOuter = isBorderBox && isBoxSizeOuter;
770
771  // overwrite width and height if we can get it from style
772  var styleWidth = getStyleSize( style.width );
773  if ( styleWidth !== false ) {
774    size.width = styleWidth +
775      // add padding and border unless it's already including it
776      ( isBorderBoxSizeOuter ? 0 : paddingWidth + borderWidth );
777  }
778
779  var styleHeight = getStyleSize( style.height );
780  if ( styleHeight !== false ) {
781    size.height = styleHeight +
782      // add padding and border unless it's already including it
783      ( isBorderBoxSizeOuter ? 0 : paddingHeight + borderHeight );
784  }
785
786  size.innerWidth = size.width - ( paddingWidth + borderWidth );
787  size.innerHeight = size.height - ( paddingHeight + borderHeight );
788
789  size.outerWidth = size.width + marginWidth;
790  size.outerHeight = size.height + marginHeight;
791
792  return size;
793}
794
795return getSize;
796
797});
798
799
800/***/ }),
801
vendor: 8,178 bytes, lines 802-1041
802/***/ "../../node_modules/masonry-layout/masonry.js":
803/*!***********************************************************************************!*\
804  !*** /var/www/html/web/app/themes/history/node_modules/masonry-layout/masonry.js ***!
805  \***********************************************************************************/
806/*! no static exports found */
807/***/ (function(module, exports, __webpack_require__) {
808
809var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
810 * Masonry v4.2.2
811 * Cascading grid layout library
812 * https://masonry.desandro.com
813 * MIT License
814 * by David DeSandro
815 */
816
817( function( window, factory ) {
818  // universal module definition
819  /* jshint strict: false */ /*globals define, module, require */
820  if ( true ) {
821    // AMD
822    !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
823        __webpack_require__(/*! outlayer/outlayer */ "../../node_modules/outlayer/outlayer.js"),
824        __webpack_require__(/*! get-size/get-size */ "../../node_modules/get-size/get-size.js")
825      ], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
826				__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
827				(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
828				__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
829  } else {}
830
831}( window, function factory( Outlayer, getSize ) {
832
833'use strict';
834
835// -------------------------- masonryDefinition -------------------------- //
836
837  // create an Outlayer layout class
838  var Masonry = Outlayer.create('masonry');
839  // isFitWidth -> fitWidth
840  Masonry.compatOptions.fitWidth = 'isFitWidth';
841
842  var proto = Masonry.prototype;
843
844  proto._resetLayout = function() {
845    this.getSize();
846    this._getMeasurement( 'columnWidth', 'outerWidth' );
847    this._getMeasurement( 'gutter', 'outerWidth' );
848    this.measureColumns();
849
850    // reset column Y
851    this.colYs = [];
852    for ( var i=0; i < this.cols; i++ ) {
853      this.colYs.push( 0 );
854    }
855
856    this.maxY = 0;
857    this.horizontalColIndex = 0;
858  };
859
860  proto.measureColumns = function() {
861    this.getContainerWidth();
862    // if columnWidth is 0, default to outerWidth of first item
863    if ( !this.columnWidth ) {
864      var firstItem = this.items[0];
865      var firstItemElem = firstItem && firstItem.element;
866      // columnWidth fall back to item of first element
867      this.columnWidth = firstItemElem && getSize( firstItemElem ).outerWidth ||
868        // if first elem has no width, default to size of container
869        this.containerWidth;
870    }
871
872    var columnWidth = this.columnWidth += this.gutter;
873
874    // calculate columns
875    var containerWidth = this.containerWidth + this.gutter;
876    var cols = containerWidth / columnWidth;
877    // fix rounding errors, typically with gutters
878    var excess = columnWidth - containerWidth % columnWidth;
879    // if overshoot is less than a pixel, round up, otherwise floor it
880    var mathMethod = excess && excess < 1 ? 'round' : 'floor';
881    cols = Math[ mathMethod ]( cols );
882    this.cols = Math.max( cols, 1 );
883  };
884
885  proto.getContainerWidth = function() {
886    // container is parent if fit width
887    var isFitWidth = this._getOption('fitWidth');
888    var container = isFitWidth ? this.element.parentNode : this.element;
889    // check that this.size and size are there
890    // IE8 triggers resize on body size change, so they might not be
891    var size = getSize( container );
892    this.containerWidth = size && size.innerWidth;
893  };
894
895  proto._getItemLayoutPosition = function( item ) {
896    item.getSize();
897    // how many columns does this brick span
898    var remainder = item.size.outerWidth % this.columnWidth;
899    var mathMethod = remainder && remainder < 1 ? 'round' : 'ceil';
900    // round if off by 1 pixel, otherwise use ceil
901    var colSpan = Math[ mathMethod ]( item.size.outerWidth / this.columnWidth );
902    colSpan = Math.min( colSpan, this.cols );
903    // use horizontal or top column position
904    var colPosMethod = this.options.horizontalOrder ?
905      '_getHorizontalColPosition' : '_getTopColPosition';
906    var colPosition = this[ colPosMethod ]( colSpan, item );
907    // position the brick
908    var position = {
909      x: this.columnWidth * colPosition.col,
910      y: colPosition.y
911    };
912    // apply setHeight to necessary columns
913    var setHeight = colPosition.y + item.size.outerHeight;
914    var setMax = colSpan + colPosition.col;
915    for ( var i = colPosition.col; i < setMax; i++ ) {
916      this.colYs[i] = setHeight;
917    }
918
919    return position;
920  };
921
922  proto._getTopColPosition = function( colSpan ) {
923    var colGroup = this._getTopColGroup( colSpan );
924    // get the minimum Y value from the columns
925    var minimumY = Math.min.apply( Math, colGroup );
926
927    return {
928      col: colGroup.indexOf( minimumY ),
929      y: minimumY,
930    };
931  };
932
933  /**
934   * @param {Number} colSpan - number of columns the element spans
935   * @returns {Array} colGroup
936   */
937  proto._getTopColGroup = function( colSpan ) {
938    if ( colSpan < 2 ) {
939      // if brick spans only one column, use all the column Ys
940      return this.colYs;
941    }
942
943    var colGroup = [];
944    // how many different places could this brick fit horizontally
945    var groupCount = this.cols + 1 - colSpan;
946    // for each group potential horizontal position
947    for ( var i = 0; i < groupCount; i++ ) {
948      colGroup[i] = this._getColGroupY( i, colSpan );
949    }
950    return colGroup;
951  };
952
953  proto._getColGroupY = function( col, colSpan ) {
954    if ( colSpan < 2 ) {
955      return this.colYs[ col ];
956    }
957    // make an array of colY values for that one group
958    var groupColYs = this.colYs.slice( col, col + colSpan );
959    // and get the max value of the array
960    return Math.max.apply( Math, groupColYs );
961  };
962
963  // get column position based on horizontal index. #873
964  proto._getHorizontalColPosition = function( colSpan, item ) {
965    var col = this.horizontalColIndex % this.cols;
966    var isOver = colSpan > 1 && col + colSpan > this.cols;
967    // shift to next row if item can't fit on current row
968    col = isOver ? 0 : col;
969    // don't let zero-size items take up space
970    var hasSize = item.size.outerWidth && item.size.outerHeight;
971    this.horizontalColIndex = hasSize ? col + colSpan : this.horizontalColIndex;
972
973    return {
974      col: col,
975      y: this._getColGroupY( col, colSpan ),
976    };
977  };
978
979  proto._manageStamp = function( stamp ) {
980    var stampSize = getSize( stamp );
981    var offset = this._getElementOffset( stamp );
982    // get the columns that this stamp affects
983    var isOriginLeft = this._getOption('originLeft');
984    var firstX = isOriginLeft ? offset.left : offset.right;
985    var lastX = firstX + stampSize.outerWidth;
986    var firstCol = Math.floor( firstX / this.columnWidth );
987    firstCol = Math.max( 0, firstCol );
988    var lastCol = Math.floor( lastX / this.columnWidth );
989    // lastCol should not go over if multiple of columnWidth #425
990    lastCol -= lastX % this.columnWidth ? 0 : 1;
991    lastCol = Math.min( this.cols - 1, lastCol );
992    // set colYs to bottom of the stamp
993
994    var isOriginTop = this._getOption('originTop');
995    var stampMaxY = ( isOriginTop ? offset.top : offset.bottom ) +
996      stampSize.outerHeight;
997    for ( var i = firstCol; i <= lastCol; i++ ) {
998      this.colYs[i] = Math.max( stampMaxY, this.colYs[i] );
999    }
1000  };
1001
1002  proto._getContainerSize = function() {
1003    this.maxY = Math.max.apply( Math, this.colYs );
1004    var size = {
1005      height: this.maxY
1006    };
1007
1008    if ( this._getOption('fitWidth') ) {
1009      size.width = this._getContainerFitWidth();
1010    }
1011
1012    return size;
1013  };
1014
1015  proto._getContainerFitWidth = function() {
1016    var unusedCols = 0;
1017    // count unused columns
1018    var i = this.cols;
1019    while ( --i ) {
1020      if ( this.colYs[i] !== 0 ) {
1021        break;
1022      }
1023      unusedCols++;
1024    }
1025    // fit container to columns that have been used
1026    return ( this.cols - unusedCols ) * this.columnWidth - this.gutter;
1027  };
1028
1029  proto.needsResizeLayout = function() {
1030    var previousWidth = this.containerWidth;
1031    this.getContainerWidth();
1032    return previousWidth != this.containerWidth;
1033  };
1034
1035  return Masonry;
1036
1037}));
1038
1039
1040/***/ }),
1041
vendor: 15,159 bytes, lines 1042-1594
1042/***/ "../../node_modules/outlayer/item.js":
1043/*!**************************************************************************!*\
1044  !*** /var/www/html/web/app/themes/history/node_modules/outlayer/item.js ***!
1045  \**************************************************************************/
1046/*! no static exports found */
1047/***/ (function(module, exports, __webpack_require__) {
1048
1049var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
1050 * Outlayer Item
1051 */
1052
1053( function( window, factory ) {
1054  // universal module definition
1055  /* jshint strict: false */ /* globals define, module, require */
1056  if ( true ) {
1057    // AMD - RequireJS
1058    !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
1059        __webpack_require__(/*! ev-emitter/ev-emitter */ "../../node_modules/ev-emitter/ev-emitter.js"),
1060        __webpack_require__(/*! get-size/get-size */ "../../node_modules/get-size/get-size.js")
1061      ], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
1062				__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
1063				(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
1064				__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
1065  } else {}
1066
1067}( window, function factory( EvEmitter, getSize ) {
1068'use strict';
1069
1070// ----- helpers ----- //
1071
1072function isEmptyObj( obj ) {
1073  for ( var prop in obj ) {
1074    return false;
1075  }
1076  prop = null;
1077  return true;
1078}
1079
1080// -------------------------- CSS3 support -------------------------- //
1081
1082
1083var docElemStyle = document.documentElement.style;
1084
1085var transitionProperty = typeof docElemStyle.transition == 'string' ?
1086  'transition' : 'WebkitTransition';
1087var transformProperty = typeof docElemStyle.transform == 'string' ?
1088  'transform' : 'WebkitTransform';
1089
1090var transitionEndEvent = {
1091  WebkitTransition: 'webkitTransitionEnd',
1092  transition: 'transitionend'
1093}[ transitionProperty ];
1094
1095// cache all vendor properties that could have vendor prefix
1096var vendorProperties = {
1097  transform: transformProperty,
1098  transition: transitionProperty,
1099  transitionDuration: transitionProperty + 'Duration',
1100  transitionProperty: transitionProperty + 'Property',
1101  transitionDelay: transitionProperty + 'Delay'
1102};
1103
1104// -------------------------- Item -------------------------- //
1105
1106function Item( element, layout ) {
1107  if ( !element ) {
1108    return;
1109  }
1110
1111  this.element = element;
1112  // parent layout class, i.e. Masonry, Isotope, or Packery
1113  this.layout = layout;
1114  this.position = {
1115    x: 0,
1116    y: 0
1117  };
1118
1119  this._create();
1120}
1121
1122// inherit EvEmitter
1123var proto = Item.prototype = Object.create( EvEmitter.prototype );
1124proto.constructor = Item;
1125
1126proto._create = function() {
1127  // transition objects
1128  this._transn = {
1129    ingProperties: {},
1130    clean: {},
1131    onEnd: {}
1132  };
1133
1134  this.css({
1135    position: 'absolute'
1136  });
1137};
1138
1139// trigger specified handler for event type
1140proto.handleEvent = function( event ) {
1141  var method = 'on' + event.type;
1142  if ( this[ method ] ) {
1143    this[ method ]( event );
1144  }
1145};
1146
1147proto.getSize = function() {
1148  this.size = getSize( this.element );
1149};
1150
1151/**
1152 * apply CSS styles to element
1153 * @param {Object} style
1154 */
1155proto.css = function( style ) {
1156  var elemStyle = this.element.style;
1157
1158  for ( var prop in style ) {
1159    // use vendor property if available
1160    var supportedProp = vendorProperties[ prop ] || prop;
1161    elemStyle[ supportedProp ] = style[ prop ];
1162  }
1163};
1164
1165 // measure position, and sets it
1166proto.getPosition = function() {
1167  var style = getComputedStyle( this.element );
1168  var isOriginLeft = this.layout._getOption('originLeft');
1169  var isOriginTop = this.layout._getOption('originTop');
1170  var xValue = style[ isOriginLeft ? 'left' : 'right' ];
1171  var yValue = style[ isOriginTop ? 'top' : 'bottom' ];
1172  var x = parseFloat( xValue );
1173  var y = parseFloat( yValue );
1174  // convert percent to pixels
1175  var layoutSize = this.layout.size;
1176  if ( xValue.indexOf('%') != -1 ) {
1177    x = ( x / 100 ) * layoutSize.width;
1178  }
1179  if ( yValue.indexOf('%') != -1 ) {
1180    y = ( y / 100 ) * layoutSize.height;
1181  }
1182  // clean up 'auto' or other non-integer values
1183  x = isNaN( x ) ? 0 : x;
1184  y = isNaN( y ) ? 0 : y;
1185  // remove padding from measurement
1186  x -= isOriginLeft ? layoutSize.paddingLeft : layoutSize.paddingRight;
1187  y -= isOriginTop ? layoutSize.paddingTop : layoutSize.paddingBottom;
1188
1189  this.position.x = x;
1190  this.position.y = y;
1191};
1192
1193// set settled position, apply padding
1194proto.layoutPosition = function() {
1195  var layoutSize = this.layout.size;
1196  var style = {};
1197  var isOriginLeft = this.layout._getOption('originLeft');
1198  var isOriginTop = this.layout._getOption('originTop');
1199
1200  // x
1201  var xPadding = isOriginLeft ? 'paddingLeft' : 'paddingRight';
1202  var xProperty = isOriginLeft ? 'left' : 'right';
1203  var xResetProperty = isOriginLeft ? 'right' : 'left';
1204
1205  var x = this.position.x + layoutSize[ xPadding ];
1206  // set in percentage or pixels
1207  style[ xProperty ] = this.getXValue( x );
1208  // reset other property
1209  style[ xResetProperty ] = '';
1210
1211  // y
1212  var yPadding = isOriginTop ? 'paddingTop' : 'paddingBottom';
1213  var yProperty = isOriginTop ? 'top' : 'bottom';
1214  var yResetProperty = isOriginTop ? 'bottom' : 'top';
1215
1216  var y = this.position.y + layoutSize[ yPadding ];
1217  // set in percentage or pixels
1218  style[ yProperty ] = this.getYValue( y );
1219  // reset other property
1220  style[ yResetProperty ] = '';
1221
1222  this.css( style );
1223  this.emitEvent( 'layout', [ this ] );
1224};
1225
1226proto.getXValue = function( x ) {
1227  var isHorizontal = this.layout._getOption('horizontal');
1228  return this.layout.options.percentPosition && !isHorizontal ?
1229    ( ( x / this.layout.size.width ) * 100 ) + '%' : x + 'px';
1230};
1231
1232proto.getYValue = function( y ) {
1233  var isHorizontal = this.layout._getOption('horizontal');
1234  return this.layout.options.percentPosition && isHorizontal ?
1235    ( ( y / this.layout.size.height ) * 100 ) + '%' : y + 'px';
1236};
1237
1238proto._transitionTo = function( x, y ) {
1239  this.getPosition();
1240  // get current x & y from top/left
1241  var curX = this.position.x;
1242  var curY = this.position.y;
1243
1244  var didNotMove = x == this.position.x && y == this.position.y;
1245
1246  // save end position
1247  this.setPosition( x, y );
1248
1249  // if did not move and not transitioning, just go to layout
1250  if ( didNotMove && !this.isTransitioning ) {
1251    this.layoutPosition();
1252    return;
1253  }
1254
1255  var transX = x - curX;
1256  var transY = y - curY;
1257  var transitionStyle = {};
1258  transitionStyle.transform = this.getTranslate( transX, transY );
1259
1260  this.transition({
1261    to: transitionStyle,
1262    onTransitionEnd: {
1263      transform: this.layoutPosition
1264    },
1265    isCleaning: true
1266  });
1267};
1268
1269proto.getTranslate = function( x, y ) {
1270  // flip cooridinates if origin on right or bottom
1271  var isOriginLeft = this.layout._getOption('originLeft');
1272  var isOriginTop = this.layout._getOption('originTop');
1273  x = isOriginLeft ? x : -x;
1274  y = isOriginTop ? y : -y;
1275  return 'translate3d(' + x + 'px, ' + y + 'px, 0)';
1276};
1277
1278// non transition + transform support
1279proto.goTo = function( x, y ) {
1280  this.setPosition( x, y );
1281  this.layoutPosition();
1282};
1283
1284proto.moveTo = proto._transitionTo;
1285
1286proto.setPosition = function( x, y ) {
1287  this.position.x = parseFloat( x );
1288  this.position.y = parseFloat( y );
1289};
1290
1291// ----- transition ----- //
1292
1293/**
1294 * @param {Object} style - CSS
1295 * @param {Function} onTransitionEnd
1296 */
1297
1298// non transition, just trigger callback
1299proto._nonTransition = function( args ) {
1300  this.css( args.to );
1301  if ( args.isCleaning ) {
1302    this._removeStyles( args.to );
1303  }
1304  for ( var prop in args.onTransitionEnd ) {
1305    args.onTransitionEnd[ prop ].call( this );
1306  }
1307};
1308
1309/**
1310 * proper transition
1311 * @param {Object} args - arguments
1312 *   @param {Object} to - style to transition to
1313 *   @param {Object} from - style to start transition from
1314 *   @param {Boolean} isCleaning - removes transition styles after transition
1315 *   @param {Function} onTransitionEnd - callback
1316 */
1317proto.transition = function( args ) {
1318  // redirect to nonTransition if no transition duration
1319  if ( !parseFloat( this.layout.options.transitionDuration ) ) {
1320    this._nonTransition( args );
1321    return;
1322  }
1323
1324  var _transition = this._transn;
1325  // keep track of onTransitionEnd callback by css property
1326  for ( var prop in args.onTransitionEnd ) {
1327    _transition.onEnd[ prop ] = args.onTransitionEnd[ prop ];
1328  }
1329  // keep track of properties that are transitioning
1330  for ( prop in args.to ) {
1331    _transition.ingProperties[ prop ] = true;
1332    // keep track of properties to clean up when transition is done
1333    if ( args.isCleaning ) {
1334      _transition.clean[ prop ] = true;
1335    }
1336  }
1337
1338  // set from styles
1339  if ( args.from ) {
1340    this.css( args.from );
1341    // force redraw. http://blog.alexmaccaw.com/css-transitions
1342    var h = this.element.offsetHeight;
1343    // hack for JSHint to hush about unused var
1344    h = null;
1345  }
1346  // enable transition
1347  this.enableTransition( args.to );
1348  // set styles that are transitioning
1349  this.css( args.to );
1350
1351  this.isTransitioning = true;
1352
1353};
1354
1355// dash before all cap letters, including first for
1356// WebkitTransform => -webkit-transform
1357function toDashedAll( str ) {
1358  return str.replace( /([A-Z])/g, function( $1 ) {
1359    return '-' + $1.toLowerCase();
1360  });
1361}
1362
1363var transitionProps = 'opacity,' + toDashedAll( transformProperty );
1364
1365proto.enableTransition = function(/* style */) {
1366  // HACK changing transitionProperty during a transition
1367  // will cause transition to jump
1368  if ( this.isTransitioning ) {
1369    return;
1370  }
1371
1372  // make `transition: foo, bar, baz` from style object
1373  // HACK un-comment this when enableTransition can work
1374  // while a transition is happening
1375  // var transitionValues = [];
1376  // for ( var prop in style ) {
1377  //   // dash-ify camelCased properties like WebkitTransition
1378  //   prop = vendorProperties[ prop ] || prop;
1379  //   transitionValues.push( toDashedAll( prop ) );
1380  // }
1381  // munge number to millisecond, to match stagger
1382  var duration = this.layout.options.transitionDuration;
1383  duration = typeof duration == 'number' ? duration + 'ms' : duration;
1384  // enable transition styles
1385  this.css({
1386    transitionProperty: transitionProps,
1387    transitionDuration: duration,
1388    transitionDelay: this.staggerDelay || 0
1389  });
1390  // listen for transition end event
1391  this.element.addEventListener( transitionEndEvent, this, false );
1392};
1393
1394// ----- events ----- //
1395
1396proto.onwebkitTransitionEnd = function( event ) {
1397  this.ontransitionend( event );
1398};
1399
1400proto.onotransitionend = function( event ) {
1401  this.ontransitionend( event );
1402};
1403
1404// properties that I munge to make my life easier
1405var dashedVendorProperties = {
1406  '-webkit-transform': 'transform'
1407};
1408
1409proto.ontransitionend = function( event ) {
1410  // disregard bubbled events from children
1411  if ( event.target !== this.element ) {
1412    return;
1413  }
1414  var _transition = this._transn;
1415  // get property name of transitioned property, convert to prefix-free
1416  var propertyName = dashedVendorProperties[ event.propertyName ] || event.propertyName;
1417
1418  // remove property that has completed transitioning
1419  delete _transition.ingProperties[ propertyName ];
1420  // check if any properties are still transitioning
1421  if ( isEmptyObj( _transition.ingProperties ) ) {
1422    // all properties have completed transitioning
1423    this.disableTransition();
1424  }
1425  // clean style
1426  if ( propertyName in _transition.clean ) {
1427    // clean up style
1428    this.element.style[ event.propertyName ] = '';
1429    delete _transition.clean[ propertyName ];
1430  }
1431  // trigger onTransitionEnd callback
1432  if ( propertyName in _transition.onEnd ) {
1433    var onTransitionEnd = _transition.onEnd[ propertyName ];
1434    onTransitionEnd.call( this );
1435    delete _transition.onEnd[ propertyName ];
1436  }
1437
1438  this.emitEvent( 'transitionEnd', [ this ] );
1439};
1440
1441proto.disableTransition = function() {
1442  this.removeTransitionStyles();
1443  this.element.removeEventListener( transitionEndEvent, this, false );
1444  this.isTransitioning = false;
1445};
1446
1447/**
1448 * removes style property from element
1449 * @param {Object} style
1450**/
1451proto._removeStyles = function( style ) {
1452  // clean up transition styles
1453  var cleanStyle = {};
1454  for ( var prop in style ) {
1455    cleanStyle[ prop ] = '';
1456  }
1457  this.css( cleanStyle );
1458};
1459
1460var cleanTransitionStyle = {
1461  transitionProperty: '',
1462  transitionDuration: '',
1463  transitionDelay: ''
1464};
1465
1466proto.removeTransitionStyles = function() {
1467  // remove transition
1468  this.css( cleanTransitionStyle );
1469};
1470
1471// ----- stagger ----- //
1472
1473proto.stagger = function( delay ) {
1474  delay = isNaN( delay ) ? 0 : delay;
1475  this.staggerDelay = delay + 'ms';
1476};
1477
1478// ----- show/hide/remove ----- //
1479
1480// remove element from DOM
1481proto.removeElem = function() {
1482  this.element.parentNode.removeChild( this.element );
1483  // remove display: none
1484  this.css({ display: '' });
1485  this.emitEvent( 'remove', [ this ] );
1486};
1487
1488proto.remove = function() {
1489  // just remove element if no transition support or no transition
1490  if ( !transitionProperty || !parseFloat( this.layout.options.transitionDuration ) ) {
1491    this.removeElem();
1492    return;
1493  }
1494
1495  // start transition
1496  this.once( 'transitionEnd', function() {
1497    this.removeElem();
1498  });
1499  this.hide();
1500};
1501
1502proto.reveal = function() {
1503  delete this.isHidden;
1504  // remove display: none
1505  this.css({ display: '' });
1506
1507  var options = this.layout.options;
1508
1509  var onTransitionEnd = {};
1510  var transitionEndProperty = this.getHideRevealTransitionEndProperty('visibleStyle');
1511  onTransitionEnd[ transitionEndProperty ] = this.onRevealTransitionEnd;
1512
1513  this.transition({
1514    from: options.hiddenStyle,
1515    to: options.visibleStyle,
1516    isCleaning: true,
1517    onTransitionEnd: onTransitionEnd
1518  });
1519};
1520
1521proto.onRevealTransitionEnd = function() {
1522  // check if still visible
1523  // during transition, item may have been hidden
1524  if ( !this.isHidden ) {
1525    this.emitEvent('reveal');
1526  }
1527};
1528
1529/**
1530 * get style property use for hide/reveal transition end
1531 * @param {String} styleProperty - hiddenStyle/visibleStyle
1532 * @returns {String}
1533 */
1534proto.getHideRevealTransitionEndProperty = function( styleProperty ) {
1535  var optionStyle = this.layout.options[ styleProperty ];
1536  // use opacity
1537  if ( optionStyle.opacity ) {
1538    return 'opacity';
1539  }
1540  // get first property
1541  for ( var prop in optionStyle ) {
1542    return prop;
1543  }
1544};
1545
1546proto.hide = function() {
1547  // set flag
1548  this.isHidden = true;
1549  // remove display: none
1550  this.css({ display: '' });
1551
1552  var options = this.layout.options;
1553
1554  var onTransitionEnd = {};
1555  var transitionEndProperty = this.getHideRevealTransitionEndProperty('hiddenStyle');
1556  onTransitionEnd[ transitionEndProperty ] = this.onHideTransitionEnd;
1557
1558  this.transition({
1559    from: options.visibleStyle,
1560    to: options.hiddenStyle,
1561    // keep hidden stuff hidden
1562    isCleaning: true,
1563    onTransitionEnd: onTransitionEnd
1564  });
1565};
1566
1567proto.onHideTransitionEnd = function() {
1568  // check if still hidden
1569  // during transition, item may have been un-hidden
1570  if ( this.isHidden ) {
1571    this.css({ display: 'none' });
1572    this.emitEvent('hide');
1573  }
1574};
1575
1576proto.destroy = function() {
1577  this.css({
1578    position: '',
1579    left: '',
1580    right: '',
1581    top: '',
1582    bottom: '',
1583    transition: '',
1584    transform: ''
1585  });
1586};
1587
1588return Item;
1589
1590}));
1591
1592
1593/***/ }),
1594
vendor: 22,488 bytes, lines 1595-2525
1595/***/ "../../node_modules/outlayer/outlayer.js":
1596/*!******************************************************************************!*\
1597  !*** /var/www/html/web/app/themes/history/node_modules/outlayer/outlayer.js ***!
1598  \******************************************************************************/
1599/*! no static exports found */
1600/***/ (function(module, exports, __webpack_require__) {
1601
1602var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
1603 * Outlayer v2.1.1
1604 * the brains and guts of a layout library
1605 * MIT license
1606 */
1607
1608( function( window, factory ) {
1609  'use strict';
1610  // universal module definition
1611  /* jshint strict: false */ /* globals define, module, require */
1612  if ( true ) {
1613    // AMD - RequireJS
1614    !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
1615        __webpack_require__(/*! ev-emitter/ev-emitter */ "../../node_modules/ev-emitter/ev-emitter.js"),
1616        __webpack_require__(/*! get-size/get-size */ "../../node_modules/get-size/get-size.js"),
1617        __webpack_require__(/*! fizzy-ui-utils/utils */ "../../node_modules/fizzy-ui-utils/utils.js"),
1618        __webpack_require__(/*! ./item */ "../../node_modules/outlayer/item.js")
1619      ], __WEBPACK_AMD_DEFINE_RESULT__ = (function( EvEmitter, getSize, utils, Item ) {
1620        return factory( window, EvEmitter, getSize, utils, Item);
1621      }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
1622				__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
1623  } else {}
1624
1625}( window, function factory( window, EvEmitter, getSize, utils, Item ) {
1626'use strict';
1627
1628// ----- vars ----- //
1629
1630var console = window.console;
1631var jQuery = window.jQuery;
1632var noop = function() {};
1633
1634// -------------------------- Outlayer -------------------------- //
1635
1636// globally unique identifiers
1637var GUID = 0;
1638// internal store of all Outlayer intances
1639var instances = {};
1640
1641
1642/**
1643 * @param {Element, String} element
1644 * @param {Object} options
1645 * @constructor
1646 */
1647function Outlayer( element, options ) {
1648  var queryElement = utils.getQueryElement( element );
1649  if ( !queryElement ) {
1650    if ( console ) {
1651      console.error( 'Bad element for ' + this.constructor.namespace +
1652        ': ' + ( queryElement || element ) );
1653    }
1654    return;
1655  }
1656  this.element = queryElement;
1657  // add jQuery
1658  if ( jQuery ) {
1659    this.$element = jQuery( this.element );
1660  }
1661
1662  // options
1663  this.options = utils.extend( {}, this.constructor.defaults );
1664  this.option( options );
1665
1666  // add id for Outlayer.getFromElement
1667  var id = ++GUID;
1668  this.element.outlayerGUID = id; // expando
1669  instances[ id ] = this; // associate via id
1670
1671  // kick it off
1672  this._create();
1673
1674  var isInitLayout = this._getOption('initLayout');
1675  if ( isInitLayout ) {
1676    this.layout();
1677  }
1678}
1679
1680// settings are for internal use only
1681Outlayer.namespace = 'outlayer';
1682Outlayer.Item = Item;
1683
1684// default options
1685Outlayer.defaults = {
1686  containerStyle: {
1687    position: 'relative'
1688  },
1689  initLayout: true,
1690  originLeft: true,
1691  originTop: true,
1692  resize: true,
1693  resizeContainer: true,
1694  // item options
1695  transitionDuration: '0.4s',
1696  hiddenStyle: {
1697    opacity: 0,
1698    transform: 'scale(0.001)'
1699  },
1700  visibleStyle: {
1701    opacity: 1,
1702    transform: 'scale(1)'
1703  }
1704};
1705
1706var proto = Outlayer.prototype;
1707// inherit EvEmitter
1708utils.extend( proto, EvEmitter.prototype );
1709
1710/**
1711 * set options
1712 * @param {Object} opts
1713 */
1714proto.option = function( opts ) {
1715  utils.extend( this.options, opts );
1716};
1717
1718/**
1719 * get backwards compatible option value, check old name
1720 */
1721proto._getOption = function( option ) {
1722  var oldOption = this.constructor.compatOptions[ option ];
1723  return oldOption && this.options[ oldOption ] !== undefined ?
1724    this.options[ oldOption ] : this.options[ option ];
1725};
1726
1727Outlayer.compatOptions = {
1728  // currentName: oldName
1729  initLayout: 'isInitLayout',
1730  horizontal: 'isHorizontal',
1731  layoutInstant: 'isLayoutInstant',
1732  originLeft: 'isOriginLeft',
1733  originTop: 'isOriginTop',
1734  resize: 'isResizeBound',
1735  resizeContainer: 'isResizingContainer'
1736};
1737
1738proto._create = function() {
1739  // get items from children
1740  this.reloadItems();
1741  // elements that affect layout, but are not laid out
1742  this.stamps = [];
1743  this.stamp( this.options.stamp );
1744  // set container style
1745  utils.extend( this.element.style, this.options.containerStyle );
1746
1747  // bind resize method
1748  var canBindResize = this._getOption('resize');
1749  if ( canBindResize ) {
1750    this.bindResize();
1751  }
1752};
1753
1754// goes through all children again and gets bricks in proper order
1755proto.reloadItems = function() {
1756  // collection of item elements
1757  this.items = this._itemize( this.element.children );
1758};
1759
1760
1761/**
1762 * turn elements into Outlayer.Items to be used in layout
1763 * @param {Array or NodeList or HTMLElement} elems
1764 * @returns {Array} items - collection of new Outlayer Items
1765 */
1766proto._itemize = function( elems ) {
1767
1768  var itemElems = this._filterFindItemElements( elems );
1769  var Item = this.constructor.Item;
1770
1771  // create new Outlayer Items for collection
1772  var items = [];
1773  for ( var i=0; i < itemElems.length; i++ ) {
1774    var elem = itemElems[i];
1775    var item = new Item( elem, this );
1776    items.push( item );
1777  }
1778
1779  return items;
1780};
1781
1782/**
1783 * get item elements to be used in layout
1784 * @param {Array or NodeList or HTMLElement} elems
1785 * @returns {Array} items - item elements
1786 */
1787proto._filterFindItemElements = function( elems ) {
1788  return utils.filterFindElements( elems, this.options.itemSelector );
1789};
1790
1791/**
1792 * getter method for getting item elements
1793 * @returns {Array} elems - collection of item elements
1794 */
1795proto.getItemElements = function() {
1796  return this.items.map( function( item ) {
1797    return item.element;
1798  });
1799};
1800
1801// ----- init & layout ----- //
1802
1803/**
1804 * lays out all items
1805 */
1806proto.layout = function() {
1807  this._resetLayout();
1808  this._manageStamps();
1809
1810  // don't animate first layout
1811  var layoutInstant = this._getOption('layoutInstant');
1812  var isInstant = layoutInstant !== undefined ?
1813    layoutInstant : !this._isLayoutInited;
1814  this.layoutItems( this.items, isInstant );
1815
1816  // flag for initalized
1817  this._isLayoutInited = true;
1818};
1819
1820// _init is alias for layout
1821proto._init = proto.layout;
1822
1823/**
1824 * logic before any new layout
1825 */
1826proto._resetLayout = function() {
1827  this.getSize();
1828};
1829
1830
1831proto.getSize = function() {
1832  this.size = getSize( this.element );
1833};
1834
1835/**
1836 * get measurement from option, for columnWidth, rowHeight, gutter
1837 * if option is String -> get element from selector string, & get size of element
1838 * if option is Element -> get size of element
1839 * else use option as a number
1840 *
1841 * @param {String} measurement
1842 * @param {String} size - width or height
1843 * @private
1844 */
1845proto._getMeasurement = function( measurement, size ) {
1846  var option = this.options[ measurement ];
1847  var elem;
1848  if ( !option ) {
1849    // default to 0
1850    this[ measurement ] = 0;
1851  } else {
1852    // use option as an element
1853    if ( typeof option == 'string' ) {
1854      elem = this.element.querySelector( option );
1855    } else if ( option instanceof HTMLElement ) {
1856      elem = option;
1857    }
1858    // use size of element, if element
1859    this[ measurement ] = elem ? getSize( elem )[ size ] : option;
1860  }
1861};
1862
1863/**
1864 * layout a collection of item elements
1865 * @api public
1866 */
1867proto.layoutItems = function( items, isInstant ) {
1868  items = this._getItemsForLayout( items );
1869
1870  this._layoutItems( items, isInstant );
1871
1872  this._postLayout();
1873};
1874
1875/**
1876 * get the items to be laid out
1877 * you may want to skip over some items
1878 * @param {Array} items
1879 * @returns {Array} items
1880 */
1881proto._getItemsForLayout = function( items ) {
1882  return items.filter( function( item ) {
1883    return !item.isIgnored;
1884  });
1885};
1886
1887/**
1888 * layout items
1889 * @param {Array} items
1890 * @param {Boolean} isInstant
1891 */
1892proto._layoutItems = function( items, isInstant ) {
1893  this._emitCompleteOnItems( 'layout', items );
1894
1895  if ( !items || !items.length ) {
1896    // no items, emit event with empty array
1897    return;
1898  }
1899
1900  var queue = [];
1901
1902  items.forEach( function( item ) {
1903    // get x/y object from method
1904    var position = this._getItemLayoutPosition( item );
1905    // enqueue
1906    position.item = item;
1907    position.isInstant = isInstant || item.isLayoutInstant;
1908    queue.push( position );
1909  }, this );
1910
1911  this._processLayoutQueue( queue );
1912};
1913
1914/**
1915 * get item layout position
1916 * @param {Outlayer.Item} item
1917 * @returns {Object} x and y position
1918 */
1919proto._getItemLayoutPosition = function( /* item */ ) {
1920  return {
1921    x: 0,
1922    y: 0
1923  };
1924};
1925
1926/**
1927 * iterate over array and position each item
1928 * Reason being - separating this logic prevents 'layout invalidation'
1929 * thx @paul_irish
1930 * @param {Array} queue
1931 */
1932proto._processLayoutQueue = function( queue ) {
1933  this.updateStagger();
1934  queue.forEach( function( obj, i ) {
1935    this._positionItem( obj.item, obj.x, obj.y, obj.isInstant, i );
1936  }, this );
1937};
1938
1939// set stagger from option in milliseconds number
1940proto.updateStagger = function() {
1941  var stagger = this.options.stagger;
1942  if ( stagger === null || stagger === undefined ) {
1943    this.stagger = 0;
1944    return;
1945  }
1946  this.stagger = getMilliseconds( stagger );
1947  return this.stagger;
1948};
1949
1950/**
1951 * Sets position of item in DOM
1952 * @param {Outlayer.Item} item
1953 * @param {Number} x - horizontal position
1954 * @param {Number} y - vertical position
1955 * @param {Boolean} isInstant - disables transitions
1956 */
1957proto._positionItem = function( item, x, y, isInstant, i ) {
1958  if ( isInstant ) {
1959    // if not transition, just set CSS
1960    item.goTo( x, y );
1961  } else {
1962    item.stagger( i * this.stagger );
1963    item.moveTo( x, y );
1964  }
1965};
1966
1967/**
1968 * Any logic you want to do after each layout,
1969 * i.e. size the container
1970 */
1971proto._postLayout = function() {
1972  this.resizeContainer();
1973};
1974
1975proto.resizeContainer = function() {
1976  var isResizingContainer = this._getOption('resizeContainer');
1977  if ( !isResizingContainer ) {
1978    return;
1979  }
1980  var size = this._getContainerSize();
1981  if ( size ) {
1982    this._setContainerMeasure( size.width, true );
1983    this._setContainerMeasure( size.height, false );
1984  }
1985};
1986
1987/**
1988 * Sets width or height of container if returned
1989 * @returns {Object} size
1990 *   @param {Number} width
1991 *   @param {Number} height
1992 */
1993proto._getContainerSize = noop;
1994
1995/**
1996 * @param {Number} measure - size of width or height
1997 * @param {Boolean} isWidth
1998 */
1999proto._setContainerMeasure = function( measure, isWidth ) {
2000  if ( measure === undefined ) {
2001    return;
2002  }
2003
2004  var elemSize = this.size;
2005  // add padding and border width if border box
2006  if ( elemSize.isBorderBox ) {
2007    measure += isWidth ? elemSize.paddingLeft + elemSize.paddingRight +
2008      elemSize.borderLeftWidth + elemSize.borderRightWidth :
2009      elemSize.paddingBottom + elemSize.paddingTop +
2010      elemSize.borderTopWidth + elemSize.borderBottomWidth;
2011  }
2012
2013  measure = Math.max( measure, 0 );
2014  this.element.style[ isWidth ? 'width' : 'height' ] = measure + 'px';
2015};
2016
2017/**
2018 * emit eventComplete on a collection of items events
2019 * @param {String} eventName
2020 * @param {Array} items - Outlayer.Items
2021 */
2022proto._emitCompleteOnItems = function( eventName, items ) {
2023  var _this = this;
2024  function onComplete() {
2025    _this.dispatchEvent( eventName + 'Complete', null, [ items ] );
2026  }
2027
2028  var count = items.length;
2029  if ( !items || !count ) {
2030    onComplete();
2031    return;
2032  }
2033
2034  var doneCount = 0;
2035  function tick() {
2036    doneCount++;
2037    if ( doneCount == count ) {
2038      onComplete();
2039    }
2040  }
2041
2042  // bind callback
2043  items.forEach( function( item ) {
2044    item.once( eventName, tick );
2045  });
2046};
2047
2048/**
2049 * emits events via EvEmitter and jQuery events
2050 * @param {String} type - name of event
2051 * @param {Event} event - original event
2052 * @param {Array} args - extra arguments
2053 */
2054proto.dispatchEvent = function( type, event, args ) {
2055  // add original event to arguments
2056  var emitArgs = event ? [ event ].concat( args ) : args;
2057  this.emitEvent( type, emitArgs );
2058
2059  if ( jQuery ) {
2060    // set this.$element
2061    this.$element = this.$element || jQuery( this.element );
2062    if ( event ) {
2063      // create jQuery event
2064      var $event = jQuery.Event( event );
2065      $event.type = type;
2066      this.$element.trigger( $event, args );
2067    } else {
2068      // just trigger with type if no event available
2069      this.$element.trigger( type, args );
2070    }
2071  }
2072};
2073
2074// -------------------------- ignore & stamps -------------------------- //
2075
2076
2077/**
2078 * keep item in collection, but do not lay it out
2079 * ignored items do not get skipped in layout
2080 * @param {Element} elem
2081 */
2082proto.ignore = function( elem ) {
2083  var item = this.getItem( elem );
2084  if ( item ) {
2085    item.isIgnored = true;
2086  }
2087};
2088
2089/**
2090 * return item to layout collection
2091 * @param {Element} elem
2092 */
2093proto.unignore = function( elem ) {
2094  var item = this.getItem( elem );
2095  if ( item ) {
2096    delete item.isIgnored;
2097  }
2098};
2099
2100/**
2101 * adds elements to stamps
2102 * @param {NodeList, Array, Element, or String} elems
2103 */
2104proto.stamp = function( elems ) {
2105  elems = this._find( elems );
2106  if ( !elems ) {
2107    return;
2108  }
2109
2110  this.stamps = this.stamps.concat( elems );
2111  // ignore
2112  elems.forEach( this.ignore, this );
2113};
2114
2115/**
2116 * removes elements to stamps
2117 * @param {NodeList, Array, or Element} elems
2118 */
2119proto.unstamp = function( elems ) {
2120  elems = this._find( elems );
2121  if ( !elems ){
2122    return;
2123  }
2124
2125  elems.forEach( function( elem ) {
2126    // filter out removed stamp elements
2127    utils.removeFrom( this.stamps, elem );
2128    this.unignore( elem );
2129  }, this );
2130};
2131
2132/**
2133 * finds child elements
2134 * @param {NodeList, Array, Element, or String} elems
2135 * @returns {Array} elems
2136 */
2137proto._find = function( elems ) {
2138  if ( !elems ) {
2139    return;
2140  }
2141  // if string, use argument as selector string
2142  if ( typeof elems == 'string' ) {
2143    elems = this.element.querySelectorAll( elems );
2144  }
2145  elems = utils.makeArray( elems );
2146  return elems;
2147};
2148
2149proto._manageStamps = function() {
2150  if ( !this.stamps || !this.stamps.length ) {
2151    return;
2152  }
2153
2154  this._getBoundingRect();
2155
2156  this.stamps.forEach( this._manageStamp, this );
2157};
2158
2159// update boundingLeft / Top
2160proto._getBoundingRect = function() {
2161  // get bounding rect for container element
2162  var boundingRect = this.element.getBoundingClientRect();
2163  var size = this.size;
2164  this._boundingRect = {
2165    left: boundingRect.left + size.paddingLeft + size.borderLeftWidth,
2166    top: boundingRect.top + size.paddingTop + size.borderTopWidth,
2167    right: boundingRect.right - ( size.paddingRight + size.borderRightWidth ),
2168    bottom: boundingRect.bottom - ( size.paddingBottom + size.borderBottomWidth )
2169  };
2170};
2171
2172/**
2173 * @param {Element} stamp
2174**/
2175proto._manageStamp = noop;
2176
2177/**
2178 * get x/y position of element relative to container element
2179 * @param {Element} elem
2180 * @returns {Object} offset - has left, top, right, bottom
2181 */
2182proto._getElementOffset = function( elem ) {
2183  var boundingRect = elem.getBoundingClientRect();
2184  var thisRect = this._boundingRect;
2185  var size = getSize( elem );
2186  var offset = {
2187    left: boundingRect.left - thisRect.left - size.marginLeft,
2188    top: boundingRect.top - thisRect.top - size.marginTop,
2189    right: thisRect.right - boundingRect.right - size.marginRight,
2190    bottom: thisRect.bottom - boundingRect.bottom - size.marginBottom
2191  };
2192  return offset;
2193};
2194
2195// -------------------------- resize -------------------------- //
2196
2197// enable event handlers for listeners
2198// i.e. resize -> onresize
2199proto.handleEvent = utils.handleEvent;
2200
2201/**
2202 * Bind layout to window resizing
2203 */
2204proto.bindResize = function() {
2205  window.addEventListener( 'resize', this );
2206  this.isResizeBound = true;
2207};
2208
2209/**
2210 * Unbind layout to window resizing
2211 */
2212proto.unbindResize = function() {
2213  window.removeEventListener( 'resize', this );
2214  this.isResizeBound = false;
2215};
2216
2217proto.onresize = function() {
2218  this.resize();
2219};
2220
2221utils.debounceMethod( Outlayer, 'onresize', 100 );
2222
2223proto.resize = function() {
2224  // don't trigger if size did not change
2225  // or if resize was unbound. See #9
2226  if ( !this.isResizeBound || !this.needsResizeLayout() ) {
2227    return;
2228  }
2229
2230  this.layout();
2231};
2232
2233/**
2234 * check if layout is needed post layout
2235 * @returns Boolean
2236 */
2237proto.needsResizeLayout = function() {
2238  var size = getSize( this.element );
2239  // check that this.size and size are there
2240  // IE8 triggers resize on body size change, so they might not be
2241  var hasSizes = this.size && size;
2242  return hasSizes && size.innerWidth !== this.size.innerWidth;
2243};
2244
2245// -------------------------- methods -------------------------- //
2246
2247/**
2248 * add items to Outlayer instance
2249 * @param {Array or NodeList or Element} elems
2250 * @returns {Array} items - Outlayer.Items
2251**/
2252proto.addItems = function( elems ) {
2253  var items = this._itemize( elems );
2254  // add items to collection
2255  if ( items.length ) {
2256    this.items = this.items.concat( items );
2257  }
2258  return items;
2259};
2260
2261/**
2262 * Layout newly-appended item elements
2263 * @param {Array or NodeList or Element} elems
2264 */
2265proto.appended = function( elems ) {
2266  var items = this.addItems( elems );
2267  if ( !items.length ) {
2268    return;
2269  }
2270  // layout and reveal just the new items
2271  this.layoutItems( items, true );
2272  this.reveal( items );
2273};
2274
2275/**
2276 * Layout prepended elements
2277 * @param {Array or NodeList or Element} elems
2278 */
2279proto.prepended = function( elems ) {
2280  var items = this._itemize( elems );
2281  if ( !items.length ) {
2282    return;
2283  }
2284  // add items to beginning of collection
2285  var previousItems = this.items.slice(0);
2286  this.items = items.concat( previousItems );
2287  // start new layout
2288  this._resetLayout();
2289  this._manageStamps();
2290  // layout new stuff without transition
2291  this.layoutItems( items, true );
2292  this.reveal( items );
2293  // layout previous items
2294  this.layoutItems( previousItems );
2295};
2296
2297/**
2298 * reveal a collection of items
2299 * @param {Array of Outlayer.Items} items
2300 */
2301proto.reveal = function( items ) {
2302  this._emitCompleteOnItems( 'reveal', items );
2303  if ( !items || !items.length ) {
2304    return;
2305  }
2306  var stagger = this.updateStagger();
2307  items.forEach( function( item, i ) {
2308    item.stagger( i * stagger );
2309    item.reveal();
2310  });
2311};
2312
2313/**
2314 * hide a collection of items
2315 * @param {Array of Outlayer.Items} items
2316 */
2317proto.hide = function( items ) {
2318  this._emitCompleteOnItems( 'hide', items );
2319  if ( !items || !items.length ) {
2320    return;
2321  }
2322  var stagger = this.updateStagger();
2323  items.forEach( function( item, i ) {
2324    item.stagger( i * stagger );
2325    item.hide();
2326  });
2327};
2328
2329/**
2330 * reveal item elements
2331 * @param {Array}, {Element}, {NodeList} items
2332 */
2333proto.revealItemElements = function( elems ) {
2334  var items = this.getItems( elems );
2335  this.reveal( items );
2336};
2337
2338/**
2339 * hide item elements
2340 * @param {Array}, {Element}, {NodeList} items
2341 */
2342proto.hideItemElements = function( elems ) {
2343  var items = this.getItems( elems );
2344  this.hide( items );
2345};
2346
2347/**
2348 * get Outlayer.Item, given an Element
2349 * @param {Element} elem
2350 * @param {Function} callback
2351 * @returns {Outlayer.Item} item
2352 */
2353proto.getItem = function( elem ) {
2354  // loop through items to get the one that matches
2355  for ( var i=0; i < this.items.length; i++ ) {
2356    var item = this.items[i];
2357    if ( item.element == elem ) {
2358      // return item
2359      return item;
2360    }
2361  }
2362};
2363
2364/**
2365 * get collection of Outlayer.Items, given Elements
2366 * @param {Array} elems
2367 * @returns {Array} items - Outlayer.Items
2368 */
2369proto.getItems = function( elems ) {
2370  elems = utils.makeArray( elems );
2371  var items = [];
2372  elems.forEach( function( elem ) {
2373    var item = this.getItem( elem );
2374    if ( item ) {
2375      items.push( item );
2376    }
2377  }, this );
2378
2379  return items;
2380};
2381
2382/**
2383 * remove element(s) from instance and DOM
2384 * @param {Array or NodeList or Element} elems
2385 */
2386proto.remove = function( elems ) {
2387  var removeItems = this.getItems( elems );
2388
2389  this._emitCompleteOnItems( 'remove', removeItems );
2390
2391  // bail if no items to remove
2392  if ( !removeItems || !removeItems.length ) {
2393    return;
2394  }
2395
2396  removeItems.forEach( function( item ) {
2397    item.remove();
2398    // remove item from collection
2399    utils.removeFrom( this.items, item );
2400  }, this );
2401};
2402
2403// ----- destroy ----- //
2404
2405// remove and disable Outlayer instance
2406proto.destroy = function() {
2407  // clean up dynamic styles
2408  var style = this.element.style;
2409  style.height = '';
2410  style.position = '';
2411  style.width = '';
2412  // destroy items
2413  this.items.forEach( function( item ) {
2414    item.destroy();
2415  });
2416
2417  this.unbindResize();
2418
2419  var id = this.element.outlayerGUID;
2420  delete instances[ id ]; // remove reference to instance by id
2421  delete this.element.outlayerGUID;
2422  // remove data for jQuery
2423  if ( jQuery ) {
2424    jQuery.removeData( this.element, this.constructor.namespace );
2425  }
2426
2427};
2428
2429// -------------------------- data -------------------------- //
2430
2431/**
2432 * get Outlayer instance from element
2433 * @param {Element} elem
2434 * @returns {Outlayer}
2435 */
2436Outlayer.data = function( elem ) {
2437  elem = utils.getQueryElement( elem );
2438  var id = elem && elem.outlayerGUID;
2439  return id && instances[ id ];
2440};
2441
2442
2443// -------------------------- create Outlayer class -------------------------- //
2444
2445/**
2446 * create a layout class
2447 * @param {String} namespace
2448 */
2449Outlayer.create = function( namespace, options ) {
2450  // sub-class Outlayer
2451  var Layout = subclass( Outlayer );
2452  // apply new options and compatOptions
2453  Layout.defaults = utils.extend( {}, Outlayer.defaults );
2454  utils.extend( Layout.defaults, options );
2455  Layout.compatOptions = utils.extend( {}, Outlayer.compatOptions  );
2456
2457  Layout.namespace = namespace;
2458
2459  Layout.data = Outlayer.data;
2460
2461  // sub-class Item
2462  Layout.Item = subclass( Item );
2463
2464  // -------------------------- declarative -------------------------- //
2465
2466  utils.htmlInit( Layout, namespace );
2467
2468  // -------------------------- jQuery bridge -------------------------- //
2469
2470  // make into jQuery plugin
2471  if ( jQuery && jQuery.bridget ) {
2472    jQuery.bridget( namespace, Layout );
2473  }
2474
2475  return Layout;
2476};
2477
2478function subclass( Parent ) {
2479  function SubClass() {
2480    Parent.apply( this, arguments );
2481  }
2482
2483  SubClass.prototype = Object.create( Parent.prototype );
2484  SubClass.prototype.constructor = SubClass;
2485
2486  return SubClass;
2487}
2488
2489// ----- helpers ----- //
2490
2491// how many milliseconds are in each unit
2492var msUnits = {
2493  ms: 1,
2494  s: 1000
2495};
2496
2497// munge time-like parameter into millisecond number
2498// '0.4s' -> 40
2499function getMilliseconds( time ) {
2500  if ( typeof time == 'number' ) {
2501    return time;
2502  }
2503  var matches = time.match( /(^\d*\.?\d*)(\w*)/ );
2504  var num = matches && matches[1];
2505  var unit = matches && matches[2];
2506  if ( !num.length ) {
2507    return 0;
2508  }
2509  num = parseFloat( num );
2510  var mult = msUnits[ unit ] || 1;
2511  return num * mult;
2512}
2513
2514// ----- fin ----- //
2515
2516// back in global
2517Outlayer.Item = Item;
2518
2519return Outlayer;
2520
2521}));
2522
2523
2524/***/ }),
2525
2526/***/ "./scripts/hot-loaded/home.js":
2527/*!************************************!*\
2528  !*** ./scripts/hot-loaded/home.js ***!
2529  \************************************/
2530/*! no exports provided */
2531/***/ (function(module, __webpack_exports__, __webpack_require__) {
2532
2533"use strict";
2534__webpack_require__.r(__webpack_exports__);
2535/* harmony import */ var flickity_dist_flickity_pkgd_min__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! flickity/dist/flickity.pkgd.min */ "../../node_modules/flickity/dist/flickity.pkgd.min.js");
2536/* harmony import */ var flickity_dist_flickity_pkgd_min__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(flickity_dist_flickity_pkgd_min__WEBPACK_IMPORTED_MODULE_0__);
2537/* harmony import */ var masonry_layout__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! masonry-layout */ "../../node_modules/masonry-layout/masonry.js");
2538/* harmony import */ var masonry_layout__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(masonry_layout__WEBPACK_IMPORTED_MODULE_1__);
2539
2540
2541
2542
2543/***/ })
2543,
2544
2545/***/ 1:
2546/*!******************************************!*\
2547  !*** multi ./scripts/hot-loaded/home.js ***!
2548  \******************************************/
2549/*! no static exports found */
2550/***/ (function(module, exports, __webpack_require__) {
2551
2552module.exports = __webpack_require__(/*! ./scripts/hot-loaded/home.js */"./scripts/hot-loaded/home.js");
2553
2554
2555/***/ }),
2556
2557/***/ "jquery":
2558/*!*************************!*\
2559  !*** external "jQuery" ***!
2560  \*************************/
2561/*! no static exports found */
2562/***/ (function(module, exports) {
2563
2564module.exports = jQuery;
2565
2566/***/ })
2567
2568/******/ });
2569//# sourceMappingURL=home.js.map

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.