1/*!/wp-content/themes/ecg/js/main.js*/ 2(function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId]){return installedModules[moduleId].exports}var module=installedModules[moduleId]={i:moduleId,l:!1,exports:{}};modules[moduleId].call(module.exports,module,module.exports,__webpack_require__);module.l=!0;return module.exports}__webpack_require__.m=modules;__webpack_require__.c=installedModules;__webpack_require__.d=function(exports,name,getter){if(!__webpack_require__.o(exports,name)){Object.defineProperty(exports,name,{enumerable:!0,get:getter})}};__webpack_require__.r=function(exports){if(typeof Symbol!=='undefined'&&Symbol.toStringTag){Object.defineProperty(exports,Symbol.toStringTag,{value:'Module'})}Object.defineProperty(exports,'__esModule',{value:!0})};__webpack_require__.t=function(value,mode){if(mode&1)value=__webpack_require__(value);if(mode&8)return value;if((mode&4)&&typeof value==='object'&&value&&value.__esModule)return value;var ns=Object.create(null);__webpack_require__.r(ns);Object.defineProperty(ns,'default',{enumerable:!0,value:value});if(mode&2&&typeof value!='string')for(var key in value)__webpack_require__.d(ns,key,function(key){return value[key]}.bind(null,key));return ns};__webpack_require__.n=function(module){var getter=module&&module.__esModule?function getDefault(){return module['default']}:function getModuleExports(){return module};__webpack_require__.d(getter,'a',getter);return getter};__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)};__webpack_require__.p="/";return __webpack_require__(__webpack_require__.s=0)})({
vendor: 1,334 bytes, lines 2-9
2"../redferntheme/node_modules/desandro-matches-selector/matches-selector.js": 3/*!**********************************************************************************!*\ 4 !*** ../redferntheme/node_modules/desandro-matches-selector/matches-selector.js ***! 5 \**********************************************************************************/ 6/*! no static exports found */ 7(function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(window,factory){'use strict';if(!0){!(__WEBPACK_AMD_DEFINE_FACTORY__=(factory),__WEBPACK_AMD_DEFINE_RESULT__=(typeof __WEBPACK_AMD_DEFINE_FACTORY__==='function'?(__WEBPACK_AMD_DEFINE_FACTORY__.call(exports,__webpack_require__,exports,module)):__WEBPACK_AMD_DEFINE_FACTORY__),__WEBPACK_AMD_DEFINE_RESULT__!==undefined&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}else{}}(window,function factory(){'use strict';var matchesMethod=(function(){var ElemProto=window.Element.prototype;if(ElemProto.matches){return'matches'} 8if(ElemProto.matchesSelector){return'matchesSelector'} 9var prefixes=['webkit','moz','ms','o'];for(var i=0;i<prefixes.length;i++){var prefix=prefixes[i];var method=prefix+'MatchesSelector';if(ElemProto[method]){return method}}})();return function matchesSelector(elem,selector){return elem[matchesMethod](selector)}}))}),
vendor: 2,171 bytes, lines 9-24
9"../redferntheme/node_modules/ev-emitter/ev-emitter.js": 10/*!*************************************************************!*\ 11 !*** ../redferntheme/node_modules/ev-emitter/ev-emitter.js ***! 12 \*************************************************************/ 13/*! no static exports found */ 14(function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(global,factory){if(!0){!(__WEBPACK_AMD_DEFINE_FACTORY__=(factory),__WEBPACK_AMD_DEFINE_RESULT__=(typeof __WEBPACK_AMD_DEFINE_FACTORY__==='function'?(__WEBPACK_AMD_DEFINE_FACTORY__.call(exports,__webpack_require__,exports,module)):__WEBPACK_AMD_DEFINE_FACTORY__),__WEBPACK_AMD_DEFINE_RESULT__!==undefined&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}else{}}(typeof window!='undefined'?window:this,function(){"use strict";function EvEmitter(){} 15var proto=EvEmitter.prototype;proto.on=function(eventName,listener){if(!eventName||!listener){return} 16var events=this._events=this._events||{};var listeners=events[eventName]=events[eventName]||[];if(listeners.indexOf(listener)==-1){listeners.push(listener)} 17return this};proto.once=function(eventName,listener){if(!eventName||!listener){return} 18this.on(eventName,listener);var onceEvents=this._onceEvents=this._onceEvents||{};var onceListeners=onceEvents[eventName]=onceEvents[eventName]||{};onceListeners[listener]=!0;return this};proto.off=function(eventName,listener){var listeners=this._events&&this._events[eventName];if(!listeners||!listeners.length){return} 19var index=listeners.indexOf(listener);if(index!=-1){listeners.splice(index,1)} 20return this};proto.emitEvent=function(eventName,args){var listeners=this._events&&this._events[eventName];if(!listeners||!listeners.length){return} 21listeners=listeners.slice(0);args=args||[];var onceListeners=this._onceEvents&&this._onceEvents[eventName];for(var i=0;i<listeners.length;i++){var listener=listeners[i] 22var isOnce=onceListeners&&onceListeners[listener];if(isOnce){this.off(eventName,listener);delete onceListeners[listener]} 23listener.apply(this,args)} 24return this};proto.allOff=function(){delete this._events;delete this._onceEvents};return EvEmitter}))}),
vendor: 3,630 bytes, lines 24-39
24"../redferntheme/node_modules/fizzy-ui-utils/utils.js": 25/*!************************************************************!*\ 26 !*** ../redferntheme/node_modules/fizzy-ui-utils/utils.js ***! 27 \************************************************************/ 28/*! no static exports found */ 29(function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(window,factory){if(!0){!(__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(/*! desandro-matches-selector/matches-selector */"../redferntheme/node_modules/desandro-matches-selector/matches-selector.js")],__WEBPACK_AMD_DEFINE_RESULT__=(function(matchesSelector){return factory(window,matchesSelector)}).apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==undefined&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}else{}}(window,function factory(window,matchesSelector){'use strict';var utils={};utils.extend=function(a,b){for(var prop in b){a[prop]=b[prop]} 30return a};utils.modulo=function(num,div){return((num%div)+div)%div};var arraySlice=Array.prototype.slice;utils.makeArray=function(obj){if(Array.isArray(obj)){return obj} 31if(obj===null||obj===undefined){return[]} 32var isArrayLike=typeof obj=='object'&&typeof obj.length=='number';if(isArrayLike){return arraySlice.call(obj)} 33return[obj]};utils.removeFrom=function(ary,obj){var index=ary.indexOf(obj);if(index!=-1){ary.splice(index,1)}};utils.getParent=function(elem,selector){while(elem.parentNode&&elem!=document.body){elem=elem.parentNode;if(matchesSelector(elem,selector)){return elem}}};utils.getQueryElement=function(elem){if(typeof elem=='string'){return document.querySelector(elem)} 34return elem};utils.handleEvent=function(event){var method='on'+event.type;if(this[method]){this[method](event)}};utils.filterFindElements=function(elems,selector){elems=utils.makeArray(elems);var ffElems=[];elems.forEach(function(elem){if(!(elem instanceof HTMLElement)){return} 35if(!selector){ffElems.push(elem);return} 36if(matchesSelector(elem,selector)){ffElems.push(elem)} 37var childElems=elem.querySelectorAll(selector);for(var i=0;i<childElems.length;i++){ffElems.push(childElems[i])}});return ffElems};utils.debounceMethod=function(_class,methodName,threshold){threshold=threshold||100;var method=_class.prototype[methodName];var timeout;_class.prototype[methodName]=function(){clearTimeout(timeout);var args=arguments;var _this=this;timeout=setTimeout(function(){method.apply(_this,args)},threshold)}};utils.docReady=function(callback){var readyState=document.readyState;if(readyState=='complete'||readyState=='interactive'){setTimeout(callback)}else{document.addEventListener('DOMContentLoaded',callback)}};utils.toDashed=function(str){return str.replace(/(.)([A-Z])/g,function(match,$1,$2){return $1+'-'+$2}).toLowerCase()};var console=window.console;utils.htmlInit=function(WidgetClass,namespace){utils.docReady(function(){var dashedNamespace=utils.toDashed(namespace);var dataAttr='data-'+dashedNamespace;var dataAttrElems=document.querySelectorAll('['+dataAttr+']');var jsDashElems=document.querySelectorAll('.js-'+dashedNamespace);var elems=utils.makeArray(dataAttrElems).concat(utils.makeArray(jsDashElems));var dataOptionsAttr=dataAttr+'-options';var jQuery=window.jQuery;elems.forEach(function(elem){var attr=elem.getAttribute(dataAttr)||elem.getAttribute(dataOptionsAttr);var options;try{options=attr&&JSON.parse(attr)}catch(error){if(console){console.error('Error parsing '+dataAttr+' on '+elem.className+': '+error)} 38return} 39var instance=new WidgetClass(elem,options);if(jQuery){jQuery.data(elem,namespace,instance)}})})};return utils}))}),
vendor: 3,479 bytes, lines 39-64
39"../redferntheme/node_modules/get-size/get-size.js": 40/*!*********************************************************!*\ 41 !*** ../redferntheme/node_modules/get-size/get-size.js ***! 42 \*********************************************************/ 43/*! no static exports found */ 44(function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;/*! 45 * getSize v2.0.2 46 * measure size of elements 47 * MIT license 48 */ 49(function(window,factory){'use strict';if(!0){!(__WEBPACK_AMD_DEFINE_RESULT__=(function(){return factory()}).call(exports,__webpack_require__,exports,module),__WEBPACK_AMD_DEFINE_RESULT__!==undefined&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}else{}})(window,function factory(){'use strict';function getStyleSize(value){var num=parseFloat(value);var isValid=value.indexOf('%')==-1&&!isNaN(num);return isValid&&num} 50function noop(){} 51var logError=typeof console=='undefined'?noop:function(message){console.error(message)};var measurements=['paddingLeft','paddingRight','paddingTop','paddingBottom','marginLeft','marginRight','marginTop','marginBottom','borderLeftWidth','borderRightWidth','borderTopWidth','borderBottomWidth'];var measurementsLength=measurements.length;function getZeroSize(){var size={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0};for(var i=0;i<measurementsLength;i++){var measurement=measurements[i];size[measurement]=0} 52return size} 53function getStyle(elem){var style=getComputedStyle(elem);if(!style){logError('Style returned '+style+'. Are you running this code in a hidden iframe on Firefox? '+'See http://bit.ly/getsizebug1')} 54return style} 55var isSetup=!1;var isBoxSizeOuter;function setup(){if(isSetup){return} 56isSetup=!0;var div=document.createElement('div');div.style.width='200px';div.style.padding='1px 2px 3px 4px';div.style.borderStyle='solid';div.style.borderWidth='1px 2px 3px 4px';div.style.boxSizing='border-box';var body=document.body||document.documentElement;body.appendChild(div);var style=getStyle(div);getSize.isBoxSizeOuter=isBoxSizeOuter=getStyleSize(style.width)==200;body.removeChild(div)} 57function getSize(elem){setup();if(typeof elem=='string'){elem=document.querySelector(elem)} 58if(!elem||typeof elem!='object'||!elem.nodeType){return} 59var style=getStyle(elem);if(style.display=='none'){return getZeroSize()} 60var size={};size.width=elem.offsetWidth;size.height=elem.offsetHeight;var isBorderBox=size.isBorderBox=style.boxSizing=='border-box';for(var i=0;i<measurementsLength;i++){var measurement=measurements[i];var value=style[measurement];var num=parseFloat(value);size[measurement]=!isNaN(num)?num:0} 61var paddingWidth=size.paddingLeft+size.paddingRight;var paddingHeight=size.paddingTop+size.paddingBottom;var marginWidth=size.marginLeft+size.marginRight;var marginHeight=size.marginTop+size.marginBottom;var borderWidth=size.borderLeftWidth+size.borderRightWidth;var borderHeight=size.borderTopWidth+size.borderBottomWidth;var isBorderBoxSizeOuter=isBorderBox&&isBoxSizeOuter;var styleWidth=getStyleSize(style.width);if(styleWidth!==!1){size.width=styleWidth+(isBorderBoxSizeOuter?0:paddingWidth+borderWidth)} 62var styleHeight=getStyleSize(style.height);if(styleHeight!==!1){size.height=styleHeight+(isBorderBoxSizeOuter?0:paddingHeight+borderHeight)} 63size.innerWidth=size.width-(paddingWidth+borderWidth);size.innerHeight=size.height-(paddingHeight+borderHeight);size.outerWidth=size.width+marginWidth;size.outerHeight=size.height+marginHeight;return size} 64return getSize})}),
vendor: 6,615 bytes, lines 64-100
64"../redferntheme/node_modules/imagesloaded/imagesloaded.js": 65/*!*****************************************************************!*\ 66 !*** ../redferntheme/node_modules/imagesloaded/imagesloaded.js ***! 67 \*****************************************************************/ 68/*! no static exports found */ 69(function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;/*! 70 * imagesLoaded v4.1.4 71 * JavaScript is all like "You images are done yet or what?" 72 * MIT License 73 */ 74(function(window,factory){'use strict';if(!0){!(__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(/*! ev-emitter/ev-emitter */"../redferntheme/node_modules/ev-emitter/ev-emitter.js")],__WEBPACK_AMD_DEFINE_RESULT__=(function(EvEmitter){return factory(window,EvEmitter)}).apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==undefined&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}else{}})(typeof window!=='undefined'?window:this,function factory(window,EvEmitter){'use strict';var $=window.jQuery;var console=window.console;function extend(a,b){for(var prop in b){a[prop]=b[prop]} 75return a} 76var arraySlice=Array.prototype.slice;function makeArray(obj){if(Array.isArray(obj)){return obj} 77var isArrayLike=typeof obj=='object'&&typeof obj.length=='number';if(isArrayLike){return arraySlice.call(obj)} 78return[obj]} 79function ImagesLoaded(elem,options,onAlways){if(!(this instanceof ImagesLoaded)){return new ImagesLoaded(elem,options,onAlways)} 80var queryElem=elem;if(typeof elem=='string'){queryElem=document.querySelectorAll(elem)} 81if(!queryElem){console.error('Bad element for imagesLoaded '+(queryElem||elem));return} 82this.elements=makeArray(queryElem);this.options=extend({},this.options);if(typeof options=='function'){onAlways=options}else{extend(this.options,options)} 83if(onAlways){this.on('always',onAlways)} 84this.getImages();if($){this.jqDeferred=new $.Deferred()} 85setTimeout(this.check.bind(this))} 86ImagesLoaded.prototype=Object.create(EvEmitter.prototype);ImagesLoaded.prototype.options={};ImagesLoaded.prototype.getImages=function(){this.images=[];this.elements.forEach(this.addElementImages,this)};ImagesLoaded.prototype.addElementImages=function(elem){if(elem.nodeName=='IMG'){this.addImage(elem)} 87if(this.options.background===!0){this.addElementBackgroundImages(elem)} 88var nodeType=elem.nodeType;if(!nodeType||!elementNodeTypes[nodeType]){return} 89var childImgs=elem.querySelectorAll('img');for(var i=0;i<childImgs.length;i++){var img=childImgs[i];this.addImage(img)} 90if(typeof this.options.background=='string'){var children=elem.querySelectorAll(this.options.background);for(i=0;i<children.length;i++){var child=children[i];this.addElementBackgroundImages(child)}}};var elementNodeTypes={1:!0,9:!0,11:!0};ImagesLoaded.prototype.addElementBackgroundImages=function(elem){var style=getComputedStyle(elem);if(!style){return} 91var reURL=/url\((['"])?(.*?)\1\)/gi;var matches=reURL.exec(style.backgroundImage);while(matches!==null){var url=matches&&matches[2];if(url){this.addBackground(url,elem)} 92matches=reURL.exec(style.backgroundImage)}};ImagesLoaded.prototype.addImage=function(img){var loadingImage=new LoadingImage(img);this.images.push(loadingImage)};ImagesLoaded.prototype.addBackground=function(url,elem){var background=new Background(url,elem);this.images.push(background)};ImagesLoaded.prototype.check=function(){var _this=this;this.progressedCount=0;this.hasAnyBroken=!1;if(!this.images.length){this.complete();return} 93function onProgress(image,elem,message){setTimeout(function(){_this.progress(image,elem,message)})} 94this.images.forEach(function(loadingImage){loadingImage.once('progress',onProgress);loadingImage.check()})};ImagesLoaded.prototype.progress=function(image,elem,message){this.progressedCount++;this.hasAnyBroken=this.hasAnyBroken||!image.isLoaded;this.emitEvent('progress',[this,image,elem]);if(this.jqDeferred&&this.jqDeferred.notify){this.jqDeferred.notify(this,image)} 95if(this.progressedCount==this.images.length){this.complete()} 96if(this.options.debug&&console){console.log('progress: '+message,image,elem)}};ImagesLoaded.prototype.complete=function(){var eventName=this.hasAnyBroken?'fail':'done';this.isComplete=!0;this.emitEvent(eventName,[this]);this.emitEvent('always',[this]);if(this.jqDeferred){var jqMethod=this.hasAnyBroken?'reject':'resolve';this.jqDeferred[jqMethod](this)}};function LoadingImage(img){this.img=img} 97LoadingImage.prototype=Object.create(EvEmitter.prototype);LoadingImage.prototype.check=function(){var isComplete=this.getIsImageComplete();if(isComplete){this.confirm(this.img.naturalWidth!==0,'naturalWidth');return} 98this.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};LoadingImage.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth};LoadingImage.prototype.confirm=function(isLoaded,message){this.isLoaded=isLoaded;this.emitEvent('progress',[this,this.img,message])};LoadingImage.prototype.handleEvent=function(event){var method='on'+event.type;if(this[method]){this[method](event)}};LoadingImage.prototype.onload=function(){this.confirm(!0,'onload');this.unbindEvents()};LoadingImage.prototype.onerror=function(){this.confirm(!1,'onerror');this.unbindEvents()};LoadingImage.prototype.unbindEvents=function(){this.proxyImage.removeEventListener('load',this);this.proxyImage.removeEventListener('error',this);this.img.removeEventListener('load',this);this.img.removeEventListener('error',this)};function Background(url,element){this.url=url;this.element=element;this.img=new Image()} 99Background.prototype=Object.create(LoadingImage.prototype);Background.prototype.check=function(){this.img.addEventListener('load',this);this.img.addEventListener('error',this);this.img.src=this.url;var isComplete=this.getIsImageComplete();if(isComplete){this.confirm(this.img.naturalWidth!==0,'naturalWidth');this.unbindEvents()}};Background.prototype.unbindEvents=function(){this.img.removeEventListener('load',this);this.img.removeEventListener('error',this)};Background.prototype.confirm=function(isLoaded,message){this.isLoaded=isLoaded;this.emitEvent('progress',[this,this.element,message])};ImagesLoaded.makeJQueryPlugin=function(jQuery){jQuery=jQuery||window.jQuery;if(!jQuery){return} 100$=jQuery;$.fn.imagesLoaded=function(options,callback){var instance=new ImagesLoaded(this,options,callback);return instance.jqDeferred.promise($(this))}};ImagesLoaded.makeJQueryPlugin();return ImagesLoaded})}),
vendor: 10,056 bytes, lines 100-141
100"../redferntheme/node_modules/isotope-layout/js/isotope.js": 101/*!*****************************************************************!*\ 102 !*** ../redferntheme/node_modules/isotope-layout/js/isotope.js ***! 103 \*****************************************************************/ 104/*! no static exports found */ 105(function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;/*! 106 * Isotope v3.0.5 107 * 108 * Licensed GPLv3 for open source use 109 * or Isotope Commercial License for commercial use 110 * 111 * https://isotope.metafizzy.co 112 * Copyright 2017 Metafizzy 113 */ 114(function(window,factory){if(!0){!(__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(/*! outlayer/outlayer */"../redferntheme/node_modules/outlayer/outlayer.js"),__webpack_require__(/*! get-size/get-size */"../redferntheme/node_modules/get-size/get-size.js"),__webpack_require__(/*! desandro-matches-selector/matches-selector */"../redferntheme/node_modules/desandro-matches-selector/matches-selector.js"),__webpack_require__(/*! fizzy-ui-utils/utils */"../redferntheme/node_modules/fizzy-ui-utils/utils.js"),__webpack_require__(/*! ./item */"../redferntheme/node_modules/isotope-layout/js/item.js"),__webpack_require__(/*! ./layout-mode */"../redferntheme/node_modules/isotope-layout/js/layout-mode.js"),__webpack_require__(/*! ./layout-modes/masonry */"../redferntheme/node_modules/isotope-layout/js/layout-modes/masonry.js"),__webpack_require__(/*! ./layout-modes/fit-rows */"../redferntheme/node_modules/isotope-layout/js/layout-modes/fit-rows.js"),__webpack_require__(/*! ./layout-modes/vertical */"../redferntheme/node_modules/isotope-layout/js/layout-modes/vertical.js")],__WEBPACK_AMD_DEFINE_RESULT__=(function(Outlayer,getSize,matchesSelector,utils,Item,LayoutMode){return factory(window,Outlayer,getSize,matchesSelector,utils,Item,LayoutMode)}).apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==undefined&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}else{}}(window,function factory(window,Outlayer,getSize,matchesSelector,utils,Item,LayoutMode){'use strict';var jQuery=window.jQuery;var trim=String.prototype.trim?function(str){return str.trim()}:function(str){return str.replace(/^\s+|\s+$/g,'')};var Isotope=Outlayer.create('isotope',{layoutMode:'masonry',isJQueryFiltering:!0,sortAscending:!0});Isotope.Item=Item;Isotope.LayoutMode=LayoutMode;var proto=Isotope.prototype;proto._create=function(){this.itemGUID=0;this._sorters={};this._getSorters();Outlayer.prototype._create.call(this);this.modes={};this.filteredItems=this.items;this.sortHistory=['original-order'];for(var name in LayoutMode.modes){this._initLayoutMode(name)}};proto.reloadItems=function(){this.itemGUID=0;Outlayer.prototype.reloadItems.call(this)};proto._itemize=function(){var items=Outlayer.prototype._itemize.apply(this,arguments);for(var i=0;i<items.length;i++){var item=items[i];item.id=this.itemGUID++} 115this._updateItemsSortData(items);return items};proto._initLayoutMode=function(name){var Mode=LayoutMode.modes[name];var initialOpts=this.options[name]||{};this.options[name]=Mode.options?utils.extend(Mode.options,initialOpts):initialOpts;this.modes[name]=new Mode(this)};proto.layout=function(){if(!this._isLayoutInited&&this._getOption('initLayout')){this.arrange();return} 116this._layout()};proto._layout=function(){var isInstant=this._getIsInstant();this._resetLayout();this._manageStamps();this.layoutItems(this.filteredItems,isInstant);this._isLayoutInited=!0};proto.arrange=function(opts){this.option(opts);this._getIsInstant();var filtered=this._filter(this.items);this.filteredItems=filtered.matches;this._bindArrangeComplete();if(this._isInstant){this._noTransition(this._hideReveal,[filtered])}else{this._hideReveal(filtered)} 117this._sort();this._layout()};proto._init=proto.arrange;proto._hideReveal=function(filtered){this.reveal(filtered.needReveal);this.hide(filtered.needHide)};proto._getIsInstant=function(){var isLayoutInstant=this._getOption('layoutInstant');var isInstant=isLayoutInstant!==undefined?isLayoutInstant:!this._isLayoutInited;this._isInstant=isInstant;return isInstant};proto._bindArrangeComplete=function(){var isLayoutComplete,isHideComplete,isRevealComplete;var _this=this;function arrangeParallelCallback(){if(isLayoutComplete&&isHideComplete&&isRevealComplete){_this.dispatchEvent('arrangeComplete',null,[_this.filteredItems])}} 118this.once('layoutComplete',function(){isLayoutComplete=!0;arrangeParallelCallback()});this.once('hideComplete',function(){isHideComplete=!0;arrangeParallelCallback()});this.once('revealComplete',function(){isRevealComplete=!0;arrangeParallelCallback()})};proto._filter=function(items){var filter=this.options.filter;filter=filter||'*';var matches=[];var hiddenMatched=[];var visibleUnmatched=[];var test=this._getFilterTest(filter);for(var i=0;i<items.length;i++){var item=items[i];if(item.isIgnored){continue} 119var isMatched=test(item);if(isMatched){matches.push(item)} 120if(isMatched&&item.isHidden){hiddenMatched.push(item)}else if(!isMatched&&!item.isHidden){visibleUnmatched.push(item)}} 121return{matches:matches,needReveal:hiddenMatched,needHide:visibleUnmatched}};proto._getFilterTest=function(filter){if(jQuery&&this.options.isJQueryFiltering){return function(item){return jQuery(item.element).is(filter)}} 122if(typeof filter=='function'){return function(item){return filter(item.element)}} 123return function(item){return matchesSelector(item.element,filter)}};proto.updateSortData=function(elems){var items;if(elems){elems=utils.makeArray(elems);items=this.getItems(elems)}else{items=this.items} 124this._getSorters();this._updateItemsSortData(items)};proto._getSorters=function(){var getSortData=this.options.getSortData;for(var key in getSortData){var sorter=getSortData[key];this._sorters[key]=mungeSorter(sorter)}};proto._updateItemsSortData=function(items){var len=items&&items.length;for(var i=0;len&&i<len;i++){var item=items[i];item.updateSortData()}};var mungeSorter=(function(){function mungeSorter(sorter){if(typeof sorter!='string'){return sorter} 125var args=trim(sorter).split(' ');var query=args[0];var attrMatch=query.match(/^\[(.+)\]$/);var attr=attrMatch&&attrMatch[1];var getValue=getValueGetter(attr,query);var parser=Isotope.sortDataParsers[args[1]];sorter=parser?function(elem){return elem&&parser(getValue(elem))}:function(elem){return elem&&getValue(elem)};return sorter} 126function getValueGetter(attr,query){if(attr){return function getAttribute(elem){return elem.getAttribute(attr)}} 127return function getChildText(elem){var child=elem.querySelector(query);return child&&child.textContent}} 128return mungeSorter})();Isotope.sortDataParsers={'parseInt':function(val){return parseInt(val,10)},'parseFloat':function(val){return parseFloat(val)}};proto._sort=function(){if(!this.options.sortBy){return} 129var sortBys=utils.makeArray(this.options.sortBy);if(!this._getIsSameSortBy(sortBys)){this.sortHistory=sortBys.concat(this.sortHistory)} 130var itemSorter=getItemSorter(this.sortHistory,this.options.sortAscending);this.filteredItems.sort(itemSorter)};proto._getIsSameSortBy=function(sortBys){for(var i=0;i<sortBys.length;i++){if(sortBys[i]!=this.sortHistory[i]){return!1}} 131return!0};function getItemSorter(sortBys,sortAsc){return function sorter(itemA,itemB){for(var i=0;i<sortBys.length;i++){var sortBy=sortBys[i];var a=itemA.sortData[sortBy];var b=itemB.sortData[sortBy];if(a>b||a<b){var isAscending=sortAsc[sortBy]!==undefined?sortAsc[sortBy]:sortAsc;var direction=isAscending?1:-1;return(a>b?1:-1)*direction}} 132return 0}} 133proto._mode=function(){var layoutMode=this.options.layoutMode;var mode=this.modes[layoutMode];if(!mode){throw new Error('No layout mode: '+layoutMode)} 134mode.options=this.options[layoutMode];return mode};proto._resetLayout=function(){Outlayer.prototype._resetLayout.call(this);this._mode()._resetLayout()};proto._getItemLayoutPosition=function(item){return this._mode()._getItemLayoutPosition(item)};proto._manageStamp=function(stamp){this._mode()._manageStamp(stamp)};proto._getContainerSize=function(){return this._mode()._getContainerSize()};proto.needsResizeLayout=function(){return this._mode().needsResizeLayout()};proto.appended=function(elems){var items=this.addItems(elems);if(!items.length){return} 135var filteredItems=this._filterRevealAdded(items);this.filteredItems=this.filteredItems.concat(filteredItems)};proto.prepended=function(elems){var items=this._itemize(elems);if(!items.length){return} 136this._resetLayout();this._manageStamps();var filteredItems=this._filterRevealAdded(items);this.layoutItems(this.filteredItems);this.filteredItems=filteredItems.concat(this.filteredItems);this.items=items.concat(this.items)};proto._filterRevealAdded=function(items){var filtered=this._filter(items);this.hide(filtered.needHide);this.reveal(filtered.matches);this.layoutItems(filtered.matches,!0);return filtered.matches};proto.insert=function(elems){var items=this.addItems(elems);if(!items.length){return} 137var i,item;var len=items.length;for(i=0;i<len;i++){item=items[i];this.element.appendChild(item.element)} 138var filteredInsertItems=this._filter(items).matches;for(i=0;i<len;i++){items[i].isLayoutInstant=!0} 139this.arrange();for(i=0;i<len;i++){delete items[i].isLayoutInstant} 140this.reveal(filteredInsertItems);};var _remove=proto.remove;proto.remove=function(elems){elems=utils.makeArray(elems);var removeItems=this.getItems(elems);_remove.call(this,elems);var len=removeItems&&removeItems.length;for(var i=0;len&&i<len;i++){var item=removeItems[i];utils.removeFrom(this.filteredItems,item)}};proto.shuffle=function(){for(var i=0;i<this.items.length;i++){var item=this.items[i];item.sortData.random=Math.random()} 141this.options.sortBy='random';this._sort();this._layout()};proto._noTransition=function(fn,args){var transitionDuration=this.options.transitionDuration;this.options.transitionDuration=0;var returnValue=fn.apply(this,args);this.options.transitionDuration=transitionDuration;return returnValue};proto.getFilteredItemElements=function(){return this.filteredItems.map(function(item){return item.element})};return Isotope}))}),
vendor: 1,672 bytes, lines 141-148
141"../redferntheme/node_modules/isotope-layout/js/item.js": 142/*!**************************************************************!*\ 143 !*** ../redferntheme/node_modules/isotope-layout/js/item.js ***! 144 \**************************************************************/ 145/*! no static exports found */ 146(function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(window,factory){if(!0){!(__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(/*! outlayer/outlayer */"../redferntheme/node_modules/outlayer/outlayer.js")],__WEBPACK_AMD_DEFINE_FACTORY__=(factory),__WEBPACK_AMD_DEFINE_RESULT__=(typeof __WEBPACK_AMD_DEFINE_FACTORY__==='function'?(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__)):__WEBPACK_AMD_DEFINE_FACTORY__),__WEBPACK_AMD_DEFINE_RESULT__!==undefined&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}else{}}(window,function factory(Outlayer){'use strict';function Item(){Outlayer.Item.apply(this,arguments)} 147var proto=Item.prototype=Object.create(Outlayer.Item.prototype);var _create=proto._create;proto._create=function(){this.id=this.layout.itemGUID++;_create.call(this);this.sortData={}};proto.updateSortData=function(){if(this.isIgnored){return} 148this.sortData.id=this.id;this.sortData['original-order']=this.id;this.sortData.random=Math.random();var getSortData=this.layout.options.getSortData;var sorters=this.layout._sorters;for(var key in getSortData){var sorter=sorters[key];this.sortData[key]=sorter(this.element,this)}};var _destroy=proto.destroy;proto.destroy=function(){_destroy.apply(this,arguments);this.css({display:''})};return Item}))}),
vendor: 2,955 bytes, lines 148-157
148"../redferntheme/node_modules/isotope-layout/js/layout-mode.js": 149/*!*********************************************************************!*\ 150 !*** ../redferntheme/node_modules/isotope-layout/js/layout-mode.js ***! 151 \*********************************************************************/ 152/*! no static exports found */ 153(function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(window,factory){if(!0){!(__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(/*! get-size/get-size */"../redferntheme/node_modules/get-size/get-size.js"),__webpack_require__(/*! outlayer/outlayer */"../redferntheme/node_modules/outlayer/outlayer.js")],__WEBPACK_AMD_DEFINE_FACTORY__=(factory),__WEBPACK_AMD_DEFINE_RESULT__=(typeof __WEBPACK_AMD_DEFINE_FACTORY__==='function'?(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__)):__WEBPACK_AMD_DEFINE_FACTORY__),__WEBPACK_AMD_DEFINE_RESULT__!==undefined&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}else{}}(window,function factory(getSize,Outlayer){'use strict';function LayoutMode(isotope){this.isotope=isotope;if(isotope){this.options=isotope.options[this.namespace];this.element=isotope.element;this.items=isotope.filteredItems;this.size=isotope.size}} 154var proto=LayoutMode.prototype;var facadeMethods=['_resetLayout','_getItemLayoutPosition','_manageStamp','_getContainerSize','_getElementOffset','needsResizeLayout','_getOption'];facadeMethods.forEach(function(methodName){proto[methodName]=function(){return Outlayer.prototype[methodName].apply(this.isotope,arguments)}});proto.needsVerticalResizeLayout=function(){var size=getSize(this.isotope.element);var hasSizes=this.isotope.size&&size;return hasSizes&&size.innerHeight!=this.isotope.size.innerHeight};proto._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)};proto.getColumnWidth=function(){this.getSegmentSize('column','Width')};proto.getRowHeight=function(){this.getSegmentSize('row','Height')};proto.getSegmentSize=function(segment,size){var segmentName=segment+size;var outerSize='outer'+size;this._getMeasurement(segmentName,outerSize);if(this[segmentName]){return} 155var firstItemSize=this.getFirstItemSize();this[segmentName]=firstItemSize&&firstItemSize[outerSize]||this.isotope.size['inner'+size]};proto.getFirstItemSize=function(){var firstItem=this.isotope.filteredItems[0];return firstItem&&firstItem.element&&getSize(firstItem.element)};proto.layout=function(){this.isotope.layout.apply(this.isotope,arguments)};proto.getSize=function(){this.isotope.getSize();this.size=this.isotope.size};LayoutMode.modes={};LayoutMode.create=function(namespace,options){function Mode(){LayoutMode.apply(this,arguments)} 156Mode.prototype=Object.create(proto);Mode.prototype.constructor=Mode;if(options){Mode.options=options} 157Mode.prototype.namespace=namespace;LayoutMode.modes[namespace]=Mode;return Mode};return LayoutMode}))}),
vendor: 1,675 bytes, lines 157-163
157"../redferntheme/node_modules/isotope-layout/js/layout-modes/fit-rows.js": 158/*!*******************************************************************************!*\ 159 !*** ../redferntheme/node_modules/isotope-layout/js/layout-modes/fit-rows.js ***! 160 \*******************************************************************************/ 161/*! no static exports found */ 162(function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(window,factory){if(!0){!(__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(/*! ../layout-mode */"../redferntheme/node_modules/isotope-layout/js/layout-mode.js")],__WEBPACK_AMD_DEFINE_FACTORY__=(factory),__WEBPACK_AMD_DEFINE_RESULT__=(typeof __WEBPACK_AMD_DEFINE_FACTORY__==='function'?(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__)):__WEBPACK_AMD_DEFINE_FACTORY__),__WEBPACK_AMD_DEFINE_RESULT__!==undefined&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}else{}}(window,function factory(LayoutMode){'use strict';var FitRows=LayoutMode.create('fitRows');var proto=FitRows.prototype;proto._resetLayout=function(){this.x=0;this.y=0;this.maxY=0;this._getMeasurement('gutter','outerWidth')};proto._getItemLayoutPosition=function(item){item.getSize();var itemWidth=item.size.outerWidth+this.gutter;var containerWidth=this.isotope.size.innerWidth+this.gutter;if(this.x!==0&&itemWidth+this.x>containerWidth){this.x=0;this.y=this.maxY} 163var position={x:this.x,y:this.y};this.maxY=Math.max(this.maxY,this.y+item.size.outerHeight);this.x+=itemWidth;return position};proto._getContainerSize=function(){return{height:this.maxY}};return FitRows}))}),
vendor: 1,895 bytes, lines 163-175
163"../redferntheme/node_modules/isotope-layout/js/layout-modes/masonry.js": 164/*!******************************************************************************!*\ 165 !*** ../redferntheme/node_modules/isotope-layout/js/layout-modes/masonry.js ***! 166 \******************************************************************************/ 167/*! no static exports found */ 168(function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;/*! 169 * Masonry layout mode 170 * sub-classes Masonry 171 * https://masonry.desandro.com 172 */ 173(function(window,factory){if(!0){!(__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(/*! ../layout-mode */"../redferntheme/node_modules/isotope-layout/js/layout-mode.js"),__webpack_require__(/*! masonry-layout/masonry */"../redferntheme/node_modules/masonry-layout/masonry.js")],__WEBPACK_AMD_DEFINE_FACTORY__=(factory),__WEBPACK_AMD_DEFINE_RESULT__=(typeof __WEBPACK_AMD_DEFINE_FACTORY__==='function'?(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__)):__WEBPACK_AMD_DEFINE_FACTORY__),__WEBPACK_AMD_DEFINE_RESULT__!==undefined&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}else{}}(window,function factory(LayoutMode,Masonry){'use strict';var MasonryMode=LayoutMode.create('masonry');var proto=MasonryMode.prototype;var keepModeMethods={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(var method in Masonry.prototype){if(!keepModeMethods[method]){proto[method]=Masonry.prototype[method]}} 174var measureColumns=proto.measureColumns;proto.measureColumns=function(){this.items=this.isotope.filteredItems;measureColumns.call(this)};var _getOption=proto._getOption;proto._getOption=function(option){if(option=='fitWidth'){return this.options.isFitWidth!==undefined?this.options.isFitWidth:this.options.fitWidth} 175return _getOption.apply(this.isotope,arguments)};return MasonryMode}))}),
vendor: 1,477 bytes, lines 175-180
175"../redferntheme/node_modules/isotope-layout/js/layout-modes/vertical.js": 176/*!*******************************************************************************!*\ 177 !*** ../redferntheme/node_modules/isotope-layout/js/layout-modes/vertical.js ***! 178 \*******************************************************************************/ 179/*! no static exports found */ 180(function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(window,factory){if(!0){!(__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(/*! ../layout-mode */"../redferntheme/node_modules/isotope-layout/js/layout-mode.js")],__WEBPACK_AMD_DEFINE_FACTORY__=(factory),__WEBPACK_AMD_DEFINE_RESULT__=(typeof __WEBPACK_AMD_DEFINE_FACTORY__==='function'?(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__)):__WEBPACK_AMD_DEFINE_FACTORY__),__WEBPACK_AMD_DEFINE_RESULT__!==undefined&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}else{}}(window,function factory(LayoutMode){'use strict';var Vertical=LayoutMode.create('vertical',{horizontalAlignment:0});var proto=Vertical.prototype;proto._resetLayout=function(){this.y=0};proto._getItemLayoutPosition=function(item){item.getSize();var x=(this.isotope.size.innerWidth-item.size.outerWidth)*this.options.horizontalAlignment;var y=this.y;this.y+=item.size.outerHeight;return{x:x,y:y}};proto._getContainerSize=function(){return{height:this.y}};return Vertical}))}),
vendor: 5,042 bytes, lines 180-201
180"../redferntheme/node_modules/masonry-layout/masonry.js": 181/*!**************************************************************!*\ 182 !*** ../redferntheme/node_modules/masonry-layout/masonry.js ***! 183 \**************************************************************/ 184/*! no static exports found */ 185(function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;/*! 186 * Masonry v4.2.1 187 * Cascading grid layout library 188 * https://masonry.desandro.com 189 * MIT License 190 * by David DeSandro 191 */ 192(function(window,factory){if(!0){!(__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(/*! outlayer/outlayer */"../redferntheme/node_modules/outlayer/outlayer.js"),__webpack_require__(/*! get-size/get-size */"../redferntheme/node_modules/get-size/get-size.js")],__WEBPACK_AMD_DEFINE_FACTORY__=(factory),__WEBPACK_AMD_DEFINE_RESULT__=(typeof __WEBPACK_AMD_DEFINE_FACTORY__==='function'?(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__)):__WEBPACK_AMD_DEFINE_FACTORY__),__WEBPACK_AMD_DEFINE_RESULT__!==undefined&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}else{}}(window,function factory(Outlayer,getSize){'use strict';var Masonry=Outlayer.create('masonry');Masonry.compatOptions.fitWidth='isFitWidth';var proto=Masonry.prototype;proto._resetLayout=function(){this.getSize();this._getMeasurement('columnWidth','outerWidth');this._getMeasurement('gutter','outerWidth');this.measureColumns();this.colYs=[];for(var i=0;i<this.cols;i++){this.colYs.push(0)} 193this.maxY=0;this.horizontalColIndex=0};proto.measureColumns=function(){this.getContainerWidth();if(!this.columnWidth){var firstItem=this.items[0];var firstItemElem=firstItem&&firstItem.element;this.columnWidth=firstItemElem&&getSize(firstItemElem).outerWidth||this.containerWidth} 194var columnWidth=this.columnWidth+=this.gutter;var containerWidth=this.containerWidth+this.gutter;var cols=containerWidth/columnWidth;var excess=columnWidth-containerWidth%columnWidth;var mathMethod=excess&&excess<1?'round':'floor';cols=Math[mathMethod](cols);this.cols=Math.max(cols,1)};proto.getContainerWidth=function(){var isFitWidth=this._getOption('fitWidth');var container=isFitWidth?this.element.parentNode:this.element;var size=getSize(container);this.containerWidth=size&&size.innerWidth};proto._getItemLayoutPosition=function(item){item.getSize();var remainder=item.size.outerWidth%this.columnWidth;var mathMethod=remainder&&remainder<1?'round':'ceil';var colSpan=Math[mathMethod](item.size.outerWidth/this.columnWidth);colSpan=Math.min(colSpan,this.cols);var colPosMethod=this.options.horizontalOrder?'_getHorizontalColPosition':'_getTopColPosition';var colPosition=this[colPosMethod](colSpan,item);var position={x:this.columnWidth*colPosition.col,y:colPosition.y};var setHeight=colPosition.y+item.size.outerHeight;var setMax=colSpan+colPosition.col;for(var i=colPosition.col;i<setMax;i++){this.colYs[i]=setHeight} 195return position};proto._getTopColPosition=function(colSpan){var colGroup=this._getTopColGroup(colSpan);var minimumY=Math.min.apply(Math,colGroup);return{col:colGroup.indexOf(minimumY),y:minimumY,}};proto._getTopColGroup=function(colSpan){if(colSpan<2){return this.colYs} 196var colGroup=[];var groupCount=this.cols+1-colSpan;for(var i=0;i<groupCount;i++){colGroup[i]=this._getColGroupY(i,colSpan)} 197return colGroup};proto._getColGroupY=function(col,colSpan){if(colSpan<2){return this.colYs[col]} 198var groupColYs=this.colYs.slice(col,col+colSpan);return Math.max.apply(Math,groupColYs)};proto._getHorizontalColPosition=function(colSpan,item){var col=this.horizontalColIndex%this.cols;var isOver=colSpan>1&&col+colSpan>this.cols;col=isOver?0:col;var hasSize=item.size.outerWidth&&item.size.outerHeight;this.horizontalColIndex=hasSize?col+colSpan:this.horizontalColIndex;return{col:col,y:this._getColGroupY(col,colSpan),}};proto._manageStamp=function(stamp){var stampSize=getSize(stamp);var offset=this._getElementOffset(stamp);var isOriginLeft=this._getOption('originLeft');var firstX=isOriginLeft?offset.left:offset.right;var lastX=firstX+stampSize.outerWidth;var firstCol=Math.floor(firstX/this.columnWidth);firstCol=Math.max(0,firstCol);var lastCol=Math.floor(lastX/this.columnWidth);lastCol-=lastX%this.columnWidth?0:1;lastCol=Math.min(this.cols-1,lastCol);var isOriginTop=this._getOption('originTop');var stampMaxY=(isOriginTop?offset.top:offset.bottom)+stampSize.outerHeight;for(var i=firstCol;i<=lastCol;i++){this.colYs[i]=Math.max(stampMaxY,this.colYs[i])}};proto._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var size={height:this.maxY};if(this._getOption('fitWidth')){size.width=this._getContainerFitWidth()} 199return size};proto._getContainerFitWidth=function(){var unusedCols=0;var i=this.cols;while(--i){if(this.colYs[i]!==0){break} 200unusedCols++} 201return(this.cols-unusedCols)*this.columnWidth-this.gutter};proto.needsResizeLayout=function(){var previousWidth=this.containerWidth;this.getContainerWidth();return previousWidth!=this.containerWidth};return Masonry}))}),
vendor: 9,112 bytes, lines 201-227
201"../redferntheme/node_modules/outlayer/item.js": 202/*!*****************************************************!*\ 203 !*** ../redferntheme/node_modules/outlayer/item.js ***! 204 \*****************************************************/ 205/*! no static exports found */ 206(function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(window,factory){if(!0){!(__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(/*! ev-emitter/ev-emitter */"../redferntheme/node_modules/ev-emitter/ev-emitter.js"),__webpack_require__(/*! get-size/get-size */"../redferntheme/node_modules/get-size/get-size.js")],__WEBPACK_AMD_DEFINE_FACTORY__=(factory),__WEBPACK_AMD_DEFINE_RESULT__=(typeof __WEBPACK_AMD_DEFINE_FACTORY__==='function'?(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__)):__WEBPACK_AMD_DEFINE_FACTORY__),__WEBPACK_AMD_DEFINE_RESULT__!==undefined&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}else{}}(window,function factory(EvEmitter,getSize){'use strict';function isEmptyObj(obj){for(var prop in obj){return!1} 207prop=null;return!0} 208var docElemStyle=document.documentElement.style;var transitionProperty=typeof docElemStyle.transition=='string'?'transition':'WebkitTransition';var transformProperty=typeof docElemStyle.transform=='string'?'transform':'WebkitTransform';var transitionEndEvent={WebkitTransition:'webkitTransitionEnd',transition:'transitionend'}[transitionProperty];var vendorProperties={transform:transformProperty,transition:transitionProperty,transitionDuration:transitionProperty+'Duration',transitionProperty:transitionProperty+'Property',transitionDelay:transitionProperty+'Delay'};function Item(element,layout){if(!element){return} 209this.element=element;this.layout=layout;this.position={x:0,y:0};this._create()} 210var proto=Item.prototype=Object.create(EvEmitter.prototype);proto.constructor=Item;proto._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}};this.css({position:'absolute'})};proto.handleEvent=function(event){var method='on'+event.type;if(this[method]){this[method](event)}};proto.getSize=function(){this.size=getSize(this.element)};proto.css=function(style){var elemStyle=this.element.style;for(var prop in style){var supportedProp=vendorProperties[prop]||prop;elemStyle[supportedProp]=style[prop]}};proto.getPosition=function(){var style=getComputedStyle(this.element);var isOriginLeft=this.layout._getOption('originLeft');var isOriginTop=this.layout._getOption('originTop');var xValue=style[isOriginLeft?'left':'right'];var yValue=style[isOriginTop?'top':'bottom'];var x=parseFloat(xValue);var y=parseFloat(yValue);var layoutSize=this.layout.size;if(xValue.indexOf('%')!=-1){x=(x/100)*layoutSize.width} 211if(yValue.indexOf('%')!=-1){y=(y/100)*layoutSize.height} 212x=isNaN(x)?0:x;y=isNaN(y)?0:y;x-=isOriginLeft?layoutSize.paddingLeft:layoutSize.paddingRight;y-=isOriginTop?layoutSize.paddingTop:layoutSize.paddingBottom;this.position.x=x;this.position.y=y};proto.layoutPosition=function(){var layoutSize=this.layout.size;var style={};var isOriginLeft=this.layout._getOption('originLeft');var isOriginTop=this.layout._getOption('originTop');var xPadding=isOriginLeft?'paddingLeft':'paddingRight';var xProperty=isOriginLeft?'left':'right';var xResetProperty=isOriginLeft?'right':'left';var x=this.position.x+layoutSize[xPadding];style[xProperty]=this.getXValue(x);style[xResetProperty]='';var yPadding=isOriginTop?'paddingTop':'paddingBottom';var yProperty=isOriginTop?'top':'bottom';var yResetProperty=isOriginTop?'bottom':'top';var y=this.position.y+layoutSize[yPadding];style[yProperty]=this.getYValue(y);style[yResetProperty]='';this.css(style);this.emitEvent('layout',[this])};proto.getXValue=function(x){var isHorizontal=this.layout._getOption('horizontal');return this.layout.options.percentPosition&&!isHorizontal?((x/this.layout.size.width)*100)+'%':x+'px'};proto.getYValue=function(y){var isHorizontal=this.layout._getOption('horizontal');return this.layout.options.percentPosition&&isHorizontal?((y/this.layout.size.height)*100)+'%':y+'px'};proto._transitionTo=function(x,y){this.getPosition();var curX=this.position.x;var curY=this.position.y;var didNotMove=x==this.position.x&&y==this.position.y;this.setPosition(x,y);if(didNotMove&&!this.isTransitioning){this.layoutPosition();return} 213var transX=x-curX;var transY=y-curY;var transitionStyle={};transitionStyle.transform=this.getTranslate(transX,transY);this.transition({to:transitionStyle,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})};proto.getTranslate=function(x,y){var isOriginLeft=this.layout._getOption('originLeft');var isOriginTop=this.layout._getOption('originTop');x=isOriginLeft?x:-x;y=isOriginTop?y:-y;return'translate3d('+x+'px, '+y+'px, 0)'};proto.goTo=function(x,y){this.setPosition(x,y);this.layoutPosition()};proto.moveTo=proto._transitionTo;proto.setPosition=function(x,y){this.position.x=parseFloat(x);this.position.y=parseFloat(y)};proto._nonTransition=function(args){this.css(args.to);if(args.isCleaning){this._removeStyles(args.to)} 214for(var prop in args.onTransitionEnd){args.onTransitionEnd[prop].call(this)}};proto.transition=function(args){if(!parseFloat(this.layout.options.transitionDuration)){this._nonTransition(args);return} 215var _transition=this._transn;for(var prop in args.onTransitionEnd){_transition.onEnd[prop]=args.onTransitionEnd[prop]} 216for(prop in args.to){_transition.ingProperties[prop]=!0;if(args.isCleaning){_transition.clean[prop]=!0}} 217if(args.from){this.css(args.from);var h=this.element.offsetHeight;h=null} 218this.enableTransition(args.to);this.css(args.to);this.isTransitioning=!0};function toDashedAll(str){return str.replace(/([A-Z])/g,function($1){return'-'+$1.toLowerCase()})} 219var transitionProps='opacity,'+toDashedAll(transformProperty);proto.enableTransition=function(){if(this.isTransitioning){return} 220var duration=this.layout.options.transitionDuration;duration=typeof duration=='number'?duration+'ms':duration;this.css({transitionProperty:transitionProps,transitionDuration:duration,transitionDelay:this.staggerDelay||0});this.element.addEventListener(transitionEndEvent,this,!1)};proto.onwebkitTransitionEnd=function(event){this.ontransitionend(event)};proto.onotransitionend=function(event){this.ontransitionend(event)};var dashedVendorProperties={'-webkit-transform':'transform'};proto.ontransitionend=function(event){if(event.target!==this.element){return} 221var _transition=this._transn;var propertyName=dashedVendorProperties[event.propertyName]||event.propertyName;delete _transition.ingProperties[propertyName];if(isEmptyObj(_transition.ingProperties)){this.disableTransition()} 222if(propertyName in _transition.clean){this.element.style[event.propertyName]='';delete _transition.clean[propertyName]} 223if(propertyName in _transition.onEnd){var onTransitionEnd=_transition.onEnd[propertyName];onTransitionEnd.call(this);delete _transition.onEnd[propertyName]} 224this.emitEvent('transitionEnd',[this])};proto.disableTransition=function(){this.removeTransitionStyles();this.element.removeEventListener(transitionEndEvent,this,!1);this.isTransitioning=!1};proto._removeStyles=function(style){var cleanStyle={};for(var prop in style){cleanStyle[prop]=''} 225this.css(cleanStyle)};var cleanTransitionStyle={transitionProperty:'',transitionDuration:'',transitionDelay:''};proto.removeTransitionStyles=function(){this.css(cleanTransitionStyle)};proto.stagger=function(delay){delay=isNaN(delay)?0:delay;this.staggerDelay=delay+'ms'};proto.removeElem=function(){this.element.parentNode.removeChild(this.element);this.css({display:''});this.emitEvent('remove',[this])};proto.remove=function(){if(!transitionProperty||!parseFloat(this.layout.options.transitionDuration)){this.removeElem();return} 226this.once('transitionEnd',function(){this.removeElem()});this.hide()};proto.reveal=function(){delete this.isHidden;this.css({display:''});var options=this.layout.options;var onTransitionEnd={};var transitionEndProperty=this.getHideRevealTransitionEndProperty('visibleStyle');onTransitionEnd[transitionEndProperty]=this.onRevealTransitionEnd;this.transition({from:options.hiddenStyle,to:options.visibleStyle,isCleaning:!0,onTransitionEnd:onTransitionEnd})};proto.onRevealTransitionEnd=function(){if(!this.isHidden){this.emitEvent('reveal')}};proto.getHideRevealTransitionEndProperty=function(styleProperty){var optionStyle=this.layout.options[styleProperty];if(optionStyle.opacity){return'opacity'} 227for(var prop in optionStyle){return prop}};proto.hide=function(){this.isHidden=!0;this.css({display:''});var options=this.layout.options;var onTransitionEnd={};var transitionEndProperty=this.getHideRevealTransitionEndProperty('hiddenStyle');onTransitionEnd[transitionEndProperty]=this.onHideTransitionEnd;this.transition({from:options.visibleStyle,to:options.hiddenStyle,isCleaning:!0,onTransitionEnd:onTransitionEnd})};proto.onHideTransitionEnd=function(){if(this.isHidden){this.css({display:'none'});this.emitEvent('hide')}};proto.destroy=function(){this.css({position:'',left:'',right:'',top:'',bottom:'',transition:'',transform:''})};return Item}))}),
vendor: 11,934 bytes, lines 227-269
227"../redferntheme/node_modules/outlayer/outlayer.js": 228/*!*********************************************************!*\ 229 !*** ../redferntheme/node_modules/outlayer/outlayer.js ***! 230 \*********************************************************/ 231/*! no static exports found */ 232(function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;/*! 233 * Outlayer v2.1.1 234 * the brains and guts of a layout library 235 * MIT license 236 */ 237(function(window,factory){'use strict';if(!0){!(__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(/*! ev-emitter/ev-emitter */"../redferntheme/node_modules/ev-emitter/ev-emitter.js"),__webpack_require__(/*! get-size/get-size */"../redferntheme/node_modules/get-size/get-size.js"),__webpack_require__(/*! fizzy-ui-utils/utils */"../redferntheme/node_modules/fizzy-ui-utils/utils.js"),__webpack_require__(/*! ./item */"../redferntheme/node_modules/outlayer/item.js")],__WEBPACK_AMD_DEFINE_RESULT__=(function(EvEmitter,getSize,utils,Item){return factory(window,EvEmitter,getSize,utils,Item)}).apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==undefined&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}else{}}(window,function factory(window,EvEmitter,getSize,utils,Item){'use strict';var console=window.console;var jQuery=window.jQuery;var noop=function(){};var GUID=0;var instances={};function Outlayer(element,options){var queryElement=utils.getQueryElement(element);if(!queryElement){if(console){console.error('Bad element for '+this.constructor.namespace+': '+(queryElement||element))} 238return} 239this.element=queryElement;if(jQuery){this.$element=jQuery(this.element)} 240this.options=utils.extend({},this.constructor.defaults);this.option(options);var id=++GUID;this.element.outlayerGUID=id;instances[id]=this;this._create();var isInitLayout=this._getOption('initLayout');if(isInitLayout){this.layout()}} 241Outlayer.namespace='outlayer';Outlayer.Item=Item;Outlayer.defaults={containerStyle:{position:'relative'},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:'0.4s',hiddenStyle:{opacity:0,transform:'scale(0.001)'},visibleStyle:{opacity:1,transform:'scale(1)'}};var proto=Outlayer.prototype;utils.extend(proto,EvEmitter.prototype);proto.option=function(opts){utils.extend(this.options,opts)};proto._getOption=function(option){var oldOption=this.constructor.compatOptions[option];return oldOption&&this.options[oldOption]!==undefined?this.options[oldOption]:this.options[option]};Outlayer.compatOptions={initLayout:'isInitLayout',horizontal:'isHorizontal',layoutInstant:'isLayoutInstant',originLeft:'isOriginLeft',originTop:'isOriginTop',resize:'isResizeBound',resizeContainer:'isResizingContainer'};proto._create=function(){this.reloadItems();this.stamps=[];this.stamp(this.options.stamp);utils.extend(this.element.style,this.options.containerStyle);var canBindResize=this._getOption('resize');if(canBindResize){this.bindResize()}};proto.reloadItems=function(){this.items=this._itemize(this.element.children)};proto._itemize=function(elems){var itemElems=this._filterFindItemElements(elems);var Item=this.constructor.Item;var items=[];for(var i=0;i<itemElems.length;i++){var elem=itemElems[i];var item=new Item(elem,this);items.push(item)} 242return items};proto._filterFindItemElements=function(elems){return utils.filterFindElements(elems,this.options.itemSelector)};proto.getItemElements=function(){return this.items.map(function(item){return item.element})};proto.layout=function(){this._resetLayout();this._manageStamps();var layoutInstant=this._getOption('layoutInstant');var isInstant=layoutInstant!==undefined?layoutInstant:!this._isLayoutInited;this.layoutItems(this.items,isInstant);this._isLayoutInited=!0};proto._init=proto.layout;proto._resetLayout=function(){this.getSize()};proto.getSize=function(){this.size=getSize(this.element)};proto._getMeasurement=function(measurement,size){var option=this.options[measurement];var elem;if(!option){this[measurement]=0}else{if(typeof option=='string'){elem=this.element.querySelector(option)}else if(option instanceof HTMLElement){elem=option} 243this[measurement]=elem?getSize(elem)[size]:option}};proto.layoutItems=function(items,isInstant){items=this._getItemsForLayout(items);this._layoutItems(items,isInstant);this._postLayout()};proto._getItemsForLayout=function(items){return items.filter(function(item){return!item.isIgnored})};proto._layoutItems=function(items,isInstant){this._emitCompleteOnItems('layout',items);if(!items||!items.length){return} 244var queue=[];items.forEach(function(item){var position=this._getItemLayoutPosition(item);position.item=item;position.isInstant=isInstant||item.isLayoutInstant;queue.push(position)},this);this._processLayoutQueue(queue)};proto._getItemLayoutPosition=function(){return{x:0,y:0}};proto._processLayoutQueue=function(queue){this.updateStagger();queue.forEach(function(obj,i){this._positionItem(obj.item,obj.x,obj.y,obj.isInstant,i)},this)};proto.updateStagger=function(){var stagger=this.options.stagger;if(stagger===null||stagger===undefined){this.stagger=0;return} 245this.stagger=getMilliseconds(stagger);return this.stagger};proto._positionItem=function(item,x,y,isInstant,i){if(isInstant){item.goTo(x,y)}else{item.stagger(i*this.stagger);item.moveTo(x,y)}};proto._postLayout=function(){this.resizeContainer()};proto.resizeContainer=function(){var isResizingContainer=this._getOption('resizeContainer');if(!isResizingContainer){return} 246var size=this._getContainerSize();if(size){this._setContainerMeasure(size.width,!0);this._setContainerMeasure(size.height,!1)}};proto._getContainerSize=noop;proto._setContainerMeasure=function(measure,isWidth){if(measure===undefined){return} 247var elemSize=this.size;if(elemSize.isBorderBox){measure+=isWidth?elemSize.paddingLeft+elemSize.paddingRight+elemSize.borderLeftWidth+elemSize.borderRightWidth:elemSize.paddingBottom+elemSize.paddingTop+elemSize.borderTopWidth+elemSize.borderBottomWidth} 248measure=Math.max(measure,0);this.element.style[isWidth?'width':'height']=measure+'px'};proto._emitCompleteOnItems=function(eventName,items){var _this=this;function onComplete(){_this.dispatchEvent(eventName+'Complete',null,[items])} 249var count=items.length;if(!items||!count){onComplete();return} 250var doneCount=0;function tick(){doneCount++;if(doneCount==count){onComplete()}} 251items.forEach(function(item){item.once(eventName,tick)})};proto.dispatchEvent=function(type,event,args){var emitArgs=event?[event].concat(args):args;this.emitEvent(type,emitArgs);if(jQuery){this.$element=this.$element||jQuery(this.element);if(event){var $event=jQuery.Event(event);$event.type=type;this.$element.trigger($event,args)}else{this.$element.trigger(type,args)}}};proto.ignore=function(elem){var item=this.getItem(elem);if(item){item.isIgnored=!0}};proto.unignore=function(elem){var item=this.getItem(elem);if(item){delete item.isIgnored}};proto.stamp=function(elems){elems=this._find(elems);if(!elems){return} 252this.stamps=this.stamps.concat(elems);elems.forEach(this.ignore,this)};proto.unstamp=function(elems){elems=this._find(elems);if(!elems){return} 253elems.forEach(function(elem){utils.removeFrom(this.stamps,elem);this.unignore(elem)},this)};proto._find=function(elems){if(!elems){return} 254if(typeof elems=='string'){elems=this.element.querySelectorAll(elems)} 255elems=utils.makeArray(elems);return elems};proto._manageStamps=function(){if(!this.stamps||!this.stamps.length){return} 256this._getBoundingRect();this.stamps.forEach(this._manageStamp,this)};proto._getBoundingRect=function(){var boundingRect=this.element.getBoundingClientRect();var size=this.size;this._boundingRect={left:boundingRect.left+size.paddingLeft+size.borderLeftWidth,top:boundingRect.top+size.paddingTop+size.borderTopWidth,right:boundingRect.right-(size.paddingRight+size.borderRightWidth),bottom:boundingRect.bottom-(size.paddingBottom+size.borderBottomWidth)}};proto._manageStamp=noop;proto._getElementOffset=function(elem){var boundingRect=elem.getBoundingClientRect();var thisRect=this._boundingRect;var size=getSize(elem);var offset={left:boundingRect.left-thisRect.left-size.marginLeft,top:boundingRect.top-thisRect.top-size.marginTop,right:thisRect.right-boundingRect.right-size.marginRight,bottom:thisRect.bottom-boundingRect.bottom-size.marginBottom};return offset};proto.handleEvent=utils.handleEvent;proto.bindResize=function(){window.addEventListener('resize',this);this.isResizeBound=!0};proto.unbindResize=function(){window.removeEventListener('resize',this);this.isResizeBound=!1};proto.onresize=function(){this.resize()};utils.debounceMethod(Outlayer,'onresize',100);proto.resize=function(){if(!this.isResizeBound||!this.needsResizeLayout()){return} 257this.layout()};proto.needsResizeLayout=function(){var size=getSize(this.element);var hasSizes=this.size&&size;return hasSizes&&size.innerWidth!==this.size.innerWidth};proto.addItems=function(elems){var items=this._itemize(elems);if(items.length){this.items=this.items.concat(items)} 258return items};proto.appended=function(elems){var items=this.addItems(elems);if(!items.length){return} 259this.layoutItems(items,!0);this.reveal(items)};proto.prepended=function(elems){var items=this._itemize(elems);if(!items.length){return} 260var previousItems=this.items.slice(0);this.items=items.concat(previousItems);this._resetLayout();this._manageStamps();this.layoutItems(items,!0);this.reveal(items);this.layoutItems(previousItems)};proto.reveal=function(items){this._emitCompleteOnItems('reveal',items);if(!items||!items.length){return} 261var stagger=this.updateStagger();items.forEach(function(item,i){item.stagger(i*stagger);item.reveal()})};proto.hide=function(items){this._emitCompleteOnItems('hide',items);if(!items||!items.length){return} 262var stagger=this.updateStagger();items.forEach(function(item,i){item.stagger(i*stagger);item.hide()})};proto.revealItemElements=function(elems){var items=this.getItems(elems);this.reveal(items)};proto.hideItemElements=function(elems){var items=this.getItems(elems);this.hide(items)};proto.getItem=function(elem){for(var i=0;i<this.items.length;i++){var item=this.items[i];if(item.element==elem){return item}}};proto.getItems=function(elems){elems=utils.makeArray(elems);var items=[];elems.forEach(function(elem){var item=this.getItem(elem);if(item){items.push(item)}},this);return items};proto.remove=function(elems){var removeItems=this.getItems(elems);this._emitCompleteOnItems('remove',removeItems);if(!removeItems||!removeItems.length){return} 263removeItems.forEach(function(item){item.remove();utils.removeFrom(this.items,item)},this)};proto.destroy=function(){var style=this.element.style;style.height='';style.position='';style.width='';this.items.forEach(function(item){item.destroy()});this.unbindResize();var id=this.element.outlayerGUID;delete instances[id];delete this.element.outlayerGUID;if(jQuery){jQuery.removeData(this.element,this.constructor.namespace)}};Outlayer.data=function(elem){elem=utils.getQueryElement(elem);var id=elem&&elem.outlayerGUID;return id&&instances[id]};Outlayer.create=function(namespace,options){var Layout=subclass(Outlayer);Layout.defaults=utils.extend({},Outlayer.defaults);utils.extend(Layout.defaults,options);Layout.compatOptions=utils.extend({},Outlayer.compatOptions);Layout.namespace=namespace;Layout.data=Outlayer.data;Layout.Item=subclass(Item);utils.htmlInit(Layout,namespace);if(jQuery&&jQuery.bridget){jQuery.bridget(namespace,Layout)} 264return Layout};function subclass(Parent){function SubClass(){Parent.apply(this,arguments)} 265SubClass.prototype=Object.create(Parent.prototype);SubClass.prototype.constructor=SubClass;return SubClass} 266var msUnits={ms:1,s:1000};function getMilliseconds(time){if(typeof time=='number'){return time} 267var matches=time.match(/(^\d*\.?\d*)(\w*)/);var num=matches&&matches[1];var unit=matches&&matches[2];if(!num.length){return 0} 268num=parseFloat(num);var mult=msUnits[unit]||1;return num*mult} 269Outlayer.Item=Item;return Outlayer}))}),
vendor: 53,662 bytes, lines 269-476
269"../redferntheme/node_modules/owl.carousel/dist/owl.carousel.js": 270/*!**********************************************************************!*\ 271 !*** ../redferntheme/node_modules/owl.carousel/dist/owl.carousel.js ***! 272 \**********************************************************************/ 273/*! no static exports found */ 274(function(module,exports){/** 275 * Owl carousel 276 * @version 2.1.6 277 * @author Bartosz Wojciechowski 278 * @author David Deutsch 279 * @license The MIT License (MIT) 280 * @todo Lazy Load Icon 281 * @todo prevent animationend bubling 282 * @todo itemsScaleUp 283 * @todo Test Zepto 284 * @todo stagePadding calculate wrong active classes 285 */ 286;(function($,window,document,undefined){function Owl(element,options){this.settings=null;this.options=$.extend({},Owl.Defaults,options);this.$element=$(element);this._handlers={};this._plugins={};this._supress={};this._current=null;this._speed=null;this._coordinates=[];this._breakpoint=null;this._width=null;this._items=[];this._clones=[];this._mergers=[];this._widths=[];this._invalidated={};this._pipe=[];this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null};this._states={current:{},tags:{'initializing':['busy'],'animating':['busy'],'dragging':['interacting']}};$.each(['onResize','onThrottledResize'],$.proxy(function(i,handler){this._handlers[handler]=$.proxy(this[handler],this)},this));$.each(Owl.Plugins,$.proxy(function(key,plugin){this._plugins[key.charAt(0).toLowerCase()+key.slice(1)]=new plugin(this)},this));$.each(Owl.Workers,$.proxy(function(priority,worker){this._pipe.push({'filter':worker.filter,'run':$.proxy(worker.run,this)})},this));this.setup();this.initialize()} 287Owl.Defaults={items:3,loop:!1,center:!1,rewind:!1,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:window,fallbackEasing:'swing',info:!1,nestedItemSelector:!1,itemElement:'div',stageElement:'div',refreshClass:'owl-refresh',loadedClass:'owl-loaded',loadingClass:'owl-loading',rtlClass:'owl-rtl',responsiveClass:'owl-responsive',dragClass:'owl-drag',itemClass:'owl-item',stageClass:'owl-stage',stageOuterClass:'owl-stage-outer',grabClass:'owl-grab'};Owl.Width={Default:'default',Inner:'inner',Outer:'outer'};Owl.Type={Event:'event',State:'state'};Owl.Plugins={};Owl.Workers=[{filter:['width','settings'],run:function(){this._width=this.$element.width()}},{filter:['width','items','settings'],run:function(cache){cache.current=this._items&&this._items[this.relative(this._current)]}},{filter:['items','settings'],run:function(){this.$stage.children('.cloned').remove()}},{filter:['width','items','settings'],run:function(cache){var margin=this.settings.margin||'',grid=!this.settings.autoWidth,rtl=this.settings.rtl,css={'width':'auto','margin-left':rtl?margin:'','margin-right':rtl?'':margin};!grid&&this.$stage.children().css(css);cache.css=css}},{filter:['width','items','settings'],run:function(cache){var width=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,merge=null,iterator=this._items.length,grid=!this.settings.autoWidth,widths=[];cache.items={merge:!1,width:width};while(iterator--){merge=this._mergers[iterator];merge=this.settings.mergeFit&&Math.min(merge,this.settings.items)||merge;cache.items.merge=merge>1||cache.items.merge;widths[iterator]=!grid?this._items[iterator].width():width*merge} 288this._widths=widths}},{filter:['items','settings'],run:function(){var clones=[],items=this._items,settings=this.settings,view=Math.max(settings.items*2,4),size=Math.ceil(items.length/2)*2,repeat=settings.loop&&items.length?settings.rewind?view:Math.max(view,size):0,append='',prepend='';repeat/=2;while(repeat--){clones.push(this.normalize(clones.length/2,!0));append=append+items[clones[clones.length-1]][0].outerHTML;clones.push(this.normalize(items.length-1-(clones.length-1)/2,!0));prepend=items[clones[clones.length-1]][0].outerHTML+prepend} 289this._clones=clones;$(append).addClass('cloned').appendTo(this.$stage);$(prepend).addClass('cloned').prependTo(this.$stage)}},{filter:['width','items','settings'],run:function(){var rtl=this.settings.rtl?1:-1,size=this._clones.length+this._items.length,iterator=-1,previous=0,current=0,coordinates=[];while(++iterator<size){previous=coordinates[iterator-1]||0;current=this._widths[this.relative(iterator)]+this.settings.margin;coordinates.push(previous+current*rtl)} 290this._coordinates=coordinates}},{filter:['width','items','settings'],run:function(){var padding=this.settings.stagePadding,coordinates=this._coordinates,css={'width':Math.ceil(Math.abs(coordinates[coordinates.length-1]))+padding*2,'padding-left':padding||'','padding-right':padding||''};this.$stage.css(css)}},{filter:['width','items','settings'],run:function(cache){var iterator=this._coordinates.length,grid=!this.settings.autoWidth,items=this.$stage.children();if(grid&&cache.items.merge){while(iterator--){cache.css.width=this._widths[this.relative(iterator)];items.eq(iterator).css(cache.css)}}else if(grid){cache.css.width=cache.items.width;items.css(cache.css)}}},{filter:['items'],run:function(){this._coordinates.length<1&&this.$stage.removeAttr('style')}},{filter:['width','items','settings'],run:function(cache){cache.current=cache.current?this.$stage.children().index(cache.current):0;cache.current=Math.max(this.minimum(),Math.min(this.maximum(),cache.current));this.reset(cache.current)}},{filter:['position'],run:function(){this.animate(this.coordinates(this._current))}},{filter:['width','position','items','settings'],run:function(){var rtl=this.settings.rtl?1:-1,padding=this.settings.stagePadding*2,begin=this.coordinates(this.current())+padding,end=begin+this.width()*rtl,inner,outer,matches=[],i,n;for(i=0,n=this._coordinates.length;i<n;i++){inner=this._coordinates[i-1]||0;outer=Math.abs(this._coordinates[i])+padding*rtl;if((this.op(inner,'<=',begin)&&(this.op(inner,'>',end)))||(this.op(outer,'<',begin)&&this.op(outer,'>',end))){matches.push(i)}} 291this.$stage.children('.active').removeClass('active');this.$stage.children(':eq('+matches.join('), :eq(')+')').addClass('active');if(this.settings.center){this.$stage.children('.center').removeClass('center');this.$stage.children().eq(this.current()).addClass('center')}}}];Owl.prototype.initialize=function(){this.enter('initializing');this.trigger('initialize');this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl);if(this.settings.autoWidth&&!this.is('pre-loading')){var imgs,nestedSelector,width;imgs=this.$element.find('img');nestedSelector=this.settings.nestedItemSelector?'.'+this.settings.nestedItemSelector:undefined;width=this.$element.children(nestedSelector).width();if(imgs.length&&width<=0){this.preloadAutoWidthImages(imgs)}} 292this.$element.addClass(this.options.loadingClass);this.$stage=$('<'+this.settings.stageElement+' class="'+this.settings.stageClass+'"/>').wrap('<div class="'+this.settings.stageOuterClass+'"/>');this.$element.append(this.$stage.parent());this.replace(this.$element.children().not(this.$stage.parent()));if(this.$element.is(':visible')){this.refresh()}else{this.invalidate('width')} 293this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass);this.registerEventHandlers();this.leave('initializing');this.trigger('initialized')};Owl.prototype.setup=function(){var viewport=this.viewport(),overwrites=this.options.responsive,match=-1,settings=null;if(!overwrites){settings=$.extend({},this.options)}else{$.each(overwrites,function(breakpoint){if(breakpoint<=viewport&&breakpoint>match){match=Number(breakpoint)}});settings=$.extend({},this.options,overwrites[match]);if(typeof settings.stagePadding==='function'){settings.stagePadding=settings.stagePadding()} 294delete settings.responsive;if(settings.responsiveClass){this.$element.attr('class',this.$element.attr('class').replace(new RegExp('('+this.options.responsiveClass+'-)\\S+\\s','g'),'$1'+match))}} 295this.trigger('change',{property:{name:'settings',value:settings}});this._breakpoint=match;this.settings=settings;this.invalidate('settings');this.trigger('changed',{property:{name:'settings',value:this.settings}})};Owl.prototype.optionsLogic=function(){if(this.settings.autoWidth){this.settings.stagePadding=!1;this.settings.merge=!1}};Owl.prototype.prepare=function(item){var event=this.trigger('prepare',{content:item});if(!event.data){event.data=$('<'+this.settings.itemElement+'/>').addClass(this.options.itemClass).append(item)} 296this.trigger('prepared',{content:event.data});return event.data};Owl.prototype.update=function(){var i=0,n=this._pipe.length,filter=$.proxy(function(p){return this[p]},this._invalidated),cache={};while(i<n){if(this._invalidated.all||$.grep(this._pipe[i].filter,filter).length>0){this._pipe[i].run(cache)} 297i++} 298this._invalidated={};!this.is('valid')&&this.enter('valid')};Owl.prototype.width=function(dimension){dimension=dimension||Owl.Width.Default;switch(dimension){case Owl.Width.Inner:case Owl.Width.Outer:return this._width;default:return this._width-this.settings.stagePadding*2+this.settings.margin}};Owl.prototype.refresh=function(){this.enter('refreshing');this.trigger('refresh');this.setup();this.optionsLogic();this.$element.addClass(this.options.refreshClass);this.update();this.$element.removeClass(this.options.refreshClass);this.leave('refreshing');this.trigger('refreshed')};Owl.prototype.onThrottledResize=function(){window.clearTimeout(this.resizeTimer);this.resizeTimer=window.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)};Owl.prototype.onResize=function(){if(!this._items.length){return!1} 299if(this._width===this.$element.width()){return!1} 300if(!this.$element.is(':visible')){return!1} 301this.enter('resizing');if(this.trigger('resize').isDefaultPrevented()){this.leave('resizing');return!1} 302this.invalidate('width');this.refresh();this.leave('resizing');this.trigger('resized')};Owl.prototype.registerEventHandlers=function(){if($.support.transition){this.$stage.on($.support.transition.end+'.owl.core',$.proxy(this.onTransitionEnd,this))} 303if(this.settings.responsive!==!1){this.on(window,'resize',this._handlers.onThrottledResize)} 304if(this.settings.mouseDrag){this.$element.addClass(this.options.dragClass);this.$stage.on('mousedown.owl.core',$.proxy(this.onDragStart,this));this.$stage.on('dragstart.owl.core selectstart.owl.core',function(){return!1})} 305if(this.settings.touchDrag){this.$stage.on('touchstart.owl.core',$.proxy(this.onDragStart,this));this.$stage.on('touchcancel.owl.core',$.proxy(this.onDragEnd,this))}};Owl.prototype.onDragStart=function(event){var stage=null;if(event.which===3){return} 306if($.support.transform){stage=this.$stage.css('transform').replace(/.*\(|\)| /g,'').split(',');stage={x:stage[stage.length===16?12:4],y:stage[stage.length===16?13:5]}}else{stage=this.$stage.position();stage={x:this.settings.rtl?stage.left+this.$stage.width()-this.width()+this.settings.margin:stage.left,y:stage.top}} 307if(this.is('animating')){$.support.transform?this.animate(stage.x):this.$stage.stop() 308this.invalidate('position')} 309this.$element.toggleClass(this.options.grabClass,event.type==='mousedown');this.speed(0);this._drag.time=new Date().getTime();this._drag.target=$(event.target);this._drag.stage.start=stage;this._drag.stage.current=stage;this._drag.pointer=this.pointer(event);$(document).on('mouseup.owl.core touchend.owl.core',$.proxy(this.onDragEnd,this));$(document).one('mousemove.owl.core touchmove.owl.core',$.proxy(function(event){var delta=this.difference(this._drag.pointer,this.pointer(event));$(document).on('mousemove.owl.core touchmove.owl.core',$.proxy(this.onDragMove,this));if(Math.abs(delta.x)<Math.abs(delta.y)&&this.is('valid')){return} 310event.preventDefault();this.enter('dragging');this.trigger('drag')},this))};Owl.prototype.onDragMove=function(event){var minimum=null,maximum=null,pull=null,delta=this.difference(this._drag.pointer,this.pointer(event)),stage=this.difference(this._drag.stage.start,delta);if(!this.is('dragging')){return} 311event.preventDefault();if(this.settings.loop){minimum=this.coordinates(this.minimum());maximum=this.coordinates(this.maximum()+1)-minimum;stage.x=(((stage.x-minimum)%maximum+maximum)%maximum)+minimum}else{minimum=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum());maximum=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum());pull=this.settings.pullDrag?-1*delta.x/5:0;stage.x=Math.max(Math.min(stage.x,minimum+pull),maximum+pull)} 312this._drag.stage.current=stage;this.animate(stage.x)};Owl.prototype.onDragEnd=function(event){var delta=this.difference(this._drag.pointer,this.pointer(event)),stage=this._drag.stage.current,direction=delta.x>0^this.settings.rtl?'left':'right';$(document).off('.owl.core');this.$element.removeClass(this.options.grabClass);if(delta.x!==0&&this.is('dragging')||!this.is('valid')){this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed);this.current(this.closest(stage.x,delta.x!==0?direction:this._drag.direction));this.invalidate('position');this.update();this._drag.direction=direction;if(Math.abs(delta.x)>3||new Date().getTime()-this._drag.time>300){this._drag.target.one('click.owl.core',function(){return!1})}} 313if(!this.is('dragging')){return} 314this.leave('dragging');this.trigger('dragged')};Owl.prototype.closest=function(coordinate,direction){var position=-1,pull=30,width=this.width(),coordinates=this.coordinates();if(!this.settings.freeDrag){$.each(coordinates,$.proxy(function(index,value){if(direction==='left'&&coordinate>value-pull&&coordinate<value+pull){position=index}else if(direction==='right'&&coordinate>value-width-pull&&coordinate<value-width+pull){position=index+1}else if(this.op(coordinate,'<',value)&&this.op(coordinate,'>',coordinates[index+1]||value-width)){position=direction==='left'?index+1:index} 315return position===-1},this))} 316if(!this.settings.loop){if(this.op(coordinate,'>',coordinates[this.minimum()])){position=coordinate=this.minimum()}else if(this.op(coordinate,'<',coordinates[this.maximum()])){position=coordinate=this.maximum()}} 317return position};Owl.prototype.animate=function(coordinate){var animate=this.speed()>0;this.is('animating')&&this.onTransitionEnd();if(animate){this.enter('animating');this.trigger('translate')} 318if($.support.transform3d&&$.support.transition){this.$stage.css({transform:'translate3d('+coordinate+'px,0px,0px)',transition:(this.speed()/1000)+'s'})}else if(animate){this.$stage.animate({left:coordinate+'px'},this.speed(),this.settings.fallbackEasing,$.proxy(this.onTransitionEnd,this))}else{this.$stage.css({left:coordinate+'px'})}};Owl.prototype.is=function(state){return this._states.current[state]&&this._states.current[state]>0};Owl.prototype.current=function(position){if(position===undefined){return this._current} 319if(this._items.length===0){return undefined} 320position=this.normalize(position);if(this._current!==position){var event=this.trigger('change',{property:{name:'position',value:position}});if(event.data!==undefined){position=this.normalize(event.data)} 321this._current=position;this.invalidate('position');this.trigger('changed',{property:{name:'position',value:this._current}})} 322return this._current};Owl.prototype.invalidate=function(part){if($.type(part)==='string'){this._invalidated[part]=!0;this.is('valid')&&this.leave('valid')} 323return $.map(this._invalidated,function(v,i){return i})};Owl.prototype.reset=function(position){position=this.normalize(position);if(position===undefined){return} 324this._speed=0;this._current=position;this.suppress(['translate','translated']);this.animate(this.coordinates(position));this.release(['translate','translated'])};Owl.prototype.normalize=function(position,relative){var n=this._items.length,m=relative?0:this._clones.length;if(!this.isNumeric(position)||n<1){position=undefined}else if(position<0||position>=n+m){position=((position-m/2)%n+n)%n+m/2} 325return position};Owl.prototype.relative=function(position){position-=this._clones.length/2;return this.normalize(position,!0)};Owl.prototype.maximum=function(relative){var settings=this.settings,maximum=this._coordinates.length,iterator,reciprocalItemsWidth,elementWidth;if(settings.loop){maximum=this._clones.length/2+this._items.length-1}else if(settings.autoWidth||settings.merge){iterator=this._items.length;reciprocalItemsWidth=this._items[--iterator].width();elementWidth=this.$element.width();while(iterator--){reciprocalItemsWidth+=this._items[iterator].width()+this.settings.margin;if(reciprocalItemsWidth>elementWidth){break}} 326maximum=iterator+1}else if(settings.center){maximum=this._items.length-1}else{maximum=this._items.length-settings.items} 327if(relative){maximum-=this._clones.length/2} 328return Math.max(maximum,0)};Owl.prototype.minimum=function(relative){return relative?0:this._clones.length/2};Owl.prototype.items=function(position){if(position===undefined){return this._items.slice()} 329position=this.normalize(position,!0);return this._items[position]};Owl.prototype.mergers=function(position){if(position===undefined){return this._mergers.slice()} 330position=this.normalize(position,!0);return this._mergers[position]};Owl.prototype.clones=function(position){var odd=this._clones.length/2,even=odd+this._items.length,map=function(index){return index%2===0?even+index/2:odd-(index+1)/2};if(position===undefined){return $.map(this._clones,function(v,i){return map(i)})} 331return $.map(this._clones,function(v,i){return v===position?map(i):null})};Owl.prototype.speed=function(speed){if(speed!==undefined){this._speed=speed} 332return this._speed};Owl.prototype.coordinates=function(position){var multiplier=1,newPosition=position-1,coordinate;if(position===undefined){return $.map(this._coordinates,$.proxy(function(coordinate,index){return this.coordinates(index)},this))} 333if(this.settings.center){if(this.settings.rtl){multiplier=-1;newPosition=position+1} 334coordinate=this._coordinates[position];coordinate+=(this.width()-coordinate+(this._coordinates[newPosition]||0))/2*multiplier}else{coordinate=this._coordinates[newPosition]||0} 335coordinate=Math.ceil(coordinate);return coordinate};Owl.prototype.duration=function(from,to,factor){if(factor===0){return 0} 336return Math.min(Math.max(Math.abs(to-from),1),6)*Math.abs((factor||this.settings.smartSpeed))};Owl.prototype.to=function(position,speed){var current=this.current(),revert=null,distance=position-this.relative(current),direction=(distance>0)-(distance<0),items=this._items.length,minimum=this.minimum(),maximum=this.maximum();if(this.settings.loop){if(!this.settings.rewind&&Math.abs(distance)>items/2){distance+=direction*-1*items} 337position=current+distance;revert=((position-minimum)%items+items)%items+minimum;if(revert!==position&&revert-distance<=maximum&&revert-distance>0){current=revert-distance;position=revert;this.reset(current)}}else if(this.settings.rewind){maximum+=1;position=(position%maximum+maximum)%maximum}else{position=Math.max(minimum,Math.min(maximum,position))} 338this.speed(this.duration(current,position,speed));this.current(position);if(this.$element.is(':visible')){this.update()}};Owl.prototype.next=function(speed){speed=speed||!1;this.to(this.relative(this.current())+1,speed)};Owl.prototype.prev=function(speed){speed=speed||!1;this.to(this.relative(this.current())-1,speed)};Owl.prototype.onTransitionEnd=function(event){if(event!==undefined){event.stopPropagation();if((event.target||event.srcElement||event.originalTarget)!==this.$stage.get(0)){return!1}} 339this.leave('animating');this.trigger('translated')};Owl.prototype.viewport=function(){var width;if(this.options.responsiveBaseElement!==window){width=$(this.options.responsiveBaseElement).width()}else if(window.innerWidth){width=window.innerWidth}else if(document.documentElement&&document.documentElement.clientWidth){width=document.documentElement.clientWidth}else{throw 'Can not detect viewport width.'} 340return width};Owl.prototype.replace=function(content){this.$stage.empty();this._items=[];if(content){content=(content instanceof jQuery)?content:$(content)} 341if(this.settings.nestedItemSelector){content=content.find('.'+this.settings.nestedItemSelector)} 342content.filter(function(){return this.nodeType===1}).each($.proxy(function(index,item){item=this.prepare(item);this.$stage.append(item);this._items.push(item);this._mergers.push(item.find('[data-merge]').addBack('[data-merge]').attr('data-merge')*1||1)},this));this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0);this.invalidate('items')};Owl.prototype.add=function(content,position){var current=this.relative(this._current);position=position===undefined?this._items.length:this.normalize(position,!0);content=content instanceof jQuery?content:$(content);this.trigger('add',{content:content,position:position});content=this.prepare(content);if(this._items.length===0||position===this._items.length){this._items.length===0&&this.$stage.append(content);this._items.length!==0&&this._items[position-1].after(content);this._items.push(content);this._mergers.push(content.find('[data-merge]').addBack('[data-merge]').attr('data-merge')*1||1)}else{this._items[position].before(content);this._items.splice(position,0,content);this._mergers.splice(position,0,content.find('[data-merge]').addBack('[data-merge]').attr('data-merge')*1||1)} 343this._items[current]&&this.reset(this._items[current].index());this.invalidate('items');this.trigger('added',{content:content,position:position})};Owl.prototype.remove=function(position){position=this.normalize(position,!0);if(position===undefined){return} 344this.trigger('remove',{content:this._items[position],position:position});this._items[position].remove();this._items.splice(position,1);this._mergers.splice(position,1);this.invalidate('items');this.trigger('removed',{content:null,position:position})};Owl.prototype.preloadAutoWidthImages=function(images){images.each($.proxy(function(i,element){this.enter('pre-loading');element=$(element);$(new Image()).one('load',$.proxy(function(e){element.attr('src',e.target.src);element.css('opacity',1);this.leave('pre-loading');!this.is('pre-loading')&&!this.is('initializing')&&this.refresh()},this)).attr('src',element.attr('src')||element.attr('data-src')||element.attr('data-src-retina'))},this))};Owl.prototype.destroy=function(){this.$element.off('.owl.core');this.$stage.off('.owl.core');$(document).off('.owl.core');if(this.settings.responsive!==!1){window.clearTimeout(this.resizeTimer);this.off(window,'resize',this._handlers.onThrottledResize)} 345for(var i in this._plugins){this._plugins[i].destroy()} 346this.$stage.children('.cloned').remove();this.$stage.unwrap();this.$stage.children().contents().unwrap();this.$stage.children().unwrap();this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr('class',this.$element.attr('class').replace(new RegExp(this.options.responsiveClass+'-\\S+\\s','g'),'')).removeData('owl.carousel')};Owl.prototype.op=function(a,o,b){var rtl=this.settings.rtl;switch(o){case '<':return rtl?a>b:a<b;case '>':return rtl?a<b:a>b;case '>=':return rtl?a<=b:a>=b;case '<=':return rtl?a>=b:a<=b;default:break}};Owl.prototype.on=function(element,event,listener,capture){if(element.addEventListener){element.addEventListener(event,listener,capture)}else if(element.attachEvent){element.attachEvent('on'+event,listener)}};Owl.prototype.off=function(element,event,listener,capture){if(element.removeEventListener){element.removeEventListener(event,listener,capture)}else if(element.detachEvent){element.detachEvent('on'+event,listener)}};Owl.prototype.trigger=function(name,data,namespace,state,enter){var status={item:{count:this._items.length,index:this.current()}},handler=$.camelCase($.grep(['on',name,namespace],function(v){return v}).join('-').toLowerCase()),event=$.Event([name,'owl',namespace||'carousel'].join('.').toLowerCase(),$.extend({relatedTarget:this},status,data));if(!this._supress[name]){$.each(this._plugins,function(name,plugin){if(plugin.onTrigger){plugin.onTrigger(event)}});this.register({type:Owl.Type.Event,name:name});this.$element.trigger(event);if(this.settings&&typeof this.settings[handler]==='function'){this.settings[handler].call(this,event)}} 347return event};Owl.prototype.enter=function(name){$.each([name].concat(this._states.tags[name]||[]),$.proxy(function(i,name){if(this._states.current[name]===undefined){this._states.current[name]=0} 348this._states.current[name]++},this))};Owl.prototype.leave=function(name){$.each([name].concat(this._states.tags[name]||[]),$.proxy(function(i,name){this._states.current[name]--},this))};Owl.prototype.register=function(object){if(object.type===Owl.Type.Event){if(!$.event.special[object.name]){$.event.special[object.name]={}} 349if(!$.event.special[object.name].owl){var _default=$.event.special[object.name]._default;$.event.special[object.name]._default=function(e){if(_default&&_default.apply&&(!e.namespace||e.namespace.indexOf('owl')===-1)){return _default.apply(this,arguments)} 350return e.namespace&&e.namespace.indexOf('owl')>-1};$.event.special[object.name].owl=!0}}else if(object.type===Owl.Type.State){if(!this._states.tags[object.name]){this._states.tags[object.name]=object.tags}else{this._states.tags[object.name]=this._states.tags[object.name].concat(object.tags)} 351this._states.tags[object.name]=$.grep(this._states.tags[object.name],$.proxy(function(tag,i){return $.inArray(tag,this._states.tags[object.name])===i},this))}};Owl.prototype.suppress=function(events){$.each(events,$.proxy(function(index,event){this._supress[event]=!0},this))};Owl.prototype.release=function(events){$.each(events,$.proxy(function(index,event){delete this._supress[event]},this))};Owl.prototype.pointer=function(event){var result={x:null,y:null};event=event.originalEvent||event||window.event;event=event.touches&&event.touches.length?event.touches[0]:event.changedTouches&&event.changedTouches.length?event.changedTouches[0]:event;if(event.pageX){result.x=event.pageX;result.y=event.pageY}else{result.x=event.clientX;result.y=event.clientY} 352return result};Owl.prototype.isNumeric=function(number){return!isNaN(parseFloat(number))};Owl.prototype.difference=function(first,second){return{x:first.x-second.x,y:first.y-second.y}};$.fn.owlCarousel=function(option){var args=Array.prototype.slice.call(arguments,1);return this.each(function(){var $this=$(this),data=$this.data('owl.carousel');if(!data){data=new Owl(this,typeof option=='object'&&option);$this.data('owl.carousel',data);$.each(['next','prev','to','destroy','refresh','replace','add','remove'],function(i,event){data.register({type:Owl.Type.Event,name:event});data.$element.on(event+'.owl.carousel.core',$.proxy(function(e){if(e.namespace&&e.relatedTarget!==this){this.suppress([event]);data[event].apply(this,[].slice.call(arguments,1));this.release([event])}},data))})} 353if(typeof option=='string'&&option.charAt(0)!=='_'){data[option].apply(data,args)}})};$.fn.owlCarousel.Constructor=Owl})(window.Zepto||window.jQuery,window,document); 354/** 355 * AutoRefresh Plugin 356 * @version 2.1.0 357 * @author Artus Kolanowski 358 * @author David Deutsch 359 * @license The MIT License (MIT) 360 */ 361;(function($,window,document,undefined){var AutoRefresh=function(carousel){this._core=carousel;this._interval=null;this._visible=null;this._handlers={'initialized.owl.carousel':$.proxy(function(e){if(e.namespace&&this._core.settings.autoRefresh){this.watch()}},this)};this._core.options=$.extend({},AutoRefresh.Defaults,this._core.options);this._core.$element.on(this._handlers)};AutoRefresh.Defaults={autoRefresh:!0,autoRefreshInterval:500};AutoRefresh.prototype.watch=function(){if(this._interval){return} 362this._visible=this._core.$element.is(':visible');this._interval=window.setInterval($.proxy(this.refresh,this),this._core.settings.autoRefreshInterval)};AutoRefresh.prototype.refresh=function(){if(this._core.$element.is(':visible')===this._visible){return} 363this._visible=!this._visible;this._core.$element.toggleClass('owl-hidden',!this._visible);this._visible&&(this._core.invalidate('width')&&this._core.refresh())};AutoRefresh.prototype.destroy=function(){var handler,property;window.clearInterval(this._interval);for(handler in this._handlers){this._core.$element.off(handler,this._handlers[handler])} 364for(property in Object.getOwnPropertyNames(this)){typeof this[property]!='function'&&(this[property]=null)}};$.fn.owlCarousel.Constructor.Plugins.AutoRefresh=AutoRefresh})(window.Zepto||window.jQuery,window,document); 365/** 366 * Lazy Plugin 367 * @version 2.1.0 368 * @author Bartosz Wojciechowski 369 * @author David Deutsch 370 * @license The MIT License (MIT) 371 */ 372;(function($,window,document,undefined){var Lazy=function(carousel){this._core=carousel;this._loaded=[];this._handlers={'initialized.owl.carousel change.owl.carousel resized.owl.carousel':$.proxy(function(e){if(!e.namespace){return} 373if(!this._core.settings||!this._core.settings.lazyLoad){return} 374if((e.property&&e.property.name=='position')||e.type=='initialized'){var settings=this._core.settings,n=(settings.center&&Math.ceil(settings.items/2)||settings.items),i=((settings.center&&n*-1)||0),position=(e.property&&e.property.value!==undefined?e.property.value:this._core.current())+i,clones=this._core.clones().length,load=$.proxy(function(i,v){this.load(v)},this);while(i++<n){this.load(clones/2+this._core.relative(position));clones&&$.each(this._core.clones(this._core.relative(position)),load);position++}}},this)};this._core.options=$.extend({},Lazy.Defaults,this._core.options);this._core.$element.on(this._handlers)};Lazy.Defaults={lazyLoad:!1};Lazy.prototype.load=function(position){var $item=this._core.$stage.children().eq(position),$elements=$item&&$item.find('.owl-lazy');if(!$elements||$.inArray($item.get(0),this._loaded)>-1){return} 375$elements.each($.proxy(function(index,element){var $element=$(element),image,url=(window.devicePixelRatio>1&&$element.attr('data-src-retina'))||$element.attr('data-src');this._core.trigger('load',{element:$element,url:url},'lazy');if($element.is('img')){$element.one('load.owl.lazy',$.proxy(function(){$element.css('opacity',1);this._core.trigger('loaded',{element:$element,url:url},'lazy')},this)).attr('src',url)}else{image=new Image();image.onload=$.proxy(function(){$element.css({'background-image':'url('+url+')','opacity':'1'});this._core.trigger('loaded',{element:$element,url:url},'lazy')},this);image.src=url}},this));this._loaded.push($item.get(0))};Lazy.prototype.destroy=function(){var handler,property;for(handler in this.handlers){this._core.$element.off(handler,this.handlers[handler])} 376for(property in Object.getOwnPropertyNames(this)){typeof this[property]!='function'&&(this[property]=null)}};$.fn.owlCarousel.Constructor.Plugins.Lazy=Lazy})(window.Zepto||window.jQuery,window,document); 377/** 378 * AutoHeight Plugin 379 * @version 2.1.0 380 * @author Bartosz Wojciechowski 381 * @author David Deutsch 382 * @license The MIT License (MIT) 383 */ 384;(function($,window,document,undefined){var AutoHeight=function(carousel){this._core=carousel;this._handlers={'initialized.owl.carousel refreshed.owl.carousel':$.proxy(function(e){if(e.namespace&&this._core.settings.autoHeight){this.update()}},this),'changed.owl.carousel':$.proxy(function(e){if(e.namespace&&this._core.settings.autoHeight&&e.property.name=='position'){this.update()}},this),'loaded.owl.lazy':$.proxy(function(e){if(e.namespace&&this._core.settings.autoHeight&&e.element.closest('.'+this._core.settings.itemClass).index()===this._core.current()){this.update()}},this)};this._core.options=$.extend({},AutoHeight.Defaults,this._core.options);this._core.$element.on(this._handlers)};AutoHeight.Defaults={autoHeight:!1,autoHeightClass:'owl-height'};AutoHeight.prototype.update=function(){var start=this._core._current,end=start+this._core.settings.items,visible=this._core.$stage.children().toArray().slice(start,end),heights=[],maxheight=0;$.each(visible,function(index,item){heights.push($(item).height())});maxheight=Math.max.apply(null,heights);this._core.$stage.parent().height(maxheight).addClass(this._core.settings.autoHeightClass)};AutoHeight.prototype.destroy=function(){var handler,property;for(handler in this._handlers){this._core.$element.off(handler,this._handlers[handler])} 385for(property in Object.getOwnPropertyNames(this)){typeof this[property]!='function'&&(this[property]=null)}};$.fn.owlCarousel.Constructor.Plugins.AutoHeight=AutoHeight})(window.Zepto||window.jQuery,window,document); 386/** 387 * Video Plugin 388 * @version 2.1.0 389 * @author Bartosz Wojciechowski 390 * @author David Deutsch 391 * @license The MIT License (MIT) 392 */ 393;(function($,window,document,undefined){var Video=function(carousel){this._core=carousel;this._videos={};this._playing=null;this._handlers={'initialized.owl.carousel':$.proxy(function(e){if(e.namespace){this._core.register({type:'state',name:'playing',tags:['interacting']})}},this),'resize.owl.carousel':$.proxy(function(e){if(e.namespace&&this._core.settings.video&&this.isInFullScreen()){e.preventDefault()}},this),'refreshed.owl.carousel':$.proxy(function(e){if(e.namespace&&this._core.is('resizing')){this._core.$stage.find('.cloned .owl-video-frame').remove()}},this),'changed.owl.carousel':$.proxy(function(e){if(e.namespace&&e.property.name==='position'&&this._playing){this.stop()}},this),'prepared.owl.carousel':$.proxy(function(e){if(!e.namespace){return} 394var $element=$(e.content).find('.owl-video');if($element.length){$element.css('display','none');this.fetch($element,$(e.content))}},this)};this._core.options=$.extend({},Video.Defaults,this._core.options);this._core.$element.on(this._handlers);this._core.$element.on('click.owl.video','.owl-video-play-icon',$.proxy(function(e){this.play(e)},this))};Video.Defaults={video:!1,videoHeight:!1,videoWidth:!1};Video.prototype.fetch=function(target,item){var type=(function(){if(target.attr('data-vimeo-id')){return'vimeo'}else if(target.attr('data-vzaar-id')){return'vzaar'}else{return'youtube'}})(),id=target.attr('data-vimeo-id')||target.attr('data-youtube-id')||target.attr('data-vzaar-id'),width=target.attr('data-width')||this._core.settings.videoWidth,height=target.attr('data-height')||this._core.settings.videoHeight,url=target.attr('href');if(url){id=url.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/);if(id[3].indexOf('youtu')>-1){type='youtube'}else if(id[3].indexOf('vimeo')>-1){type='vimeo'}else if(id[3].indexOf('vzaar')>-1){type='vzaar'}else{throw new Error('Video URL not supported.')} 395id=id[6]}else{throw new Error('Missing video URL.')} 396this._videos[url]={type:type,id:id,width:width,height:height};item.attr('data-video',url);this.thumbnail(target,this._videos[url])};Video.prototype.thumbnail=function(target,video){var tnLink,icon,path,dimensions=video.width&&video.height?'style="width:'+video.width+'px;height:'+video.height+'px;"':'',customTn=target.find('img'),srcType='src',lazyClass='',settings=this._core.settings,create=function(path){icon='<div class="owl-video-play-icon"></div>';if(settings.lazyLoad){tnLink='<div class="owl-video-tn '+lazyClass+'" '+srcType+'="'+path+'"></div>'}else{tnLink='<div class="owl-video-tn" style="opacity:1;background-image:url('+path+')"></div>'} 397target.after(tnLink);target.after(icon)};target.wrap('<div class="owl-video-wrapper"'+dimensions+'></div>');if(this._core.settings.lazyLoad){srcType='data-src';lazyClass='owl-lazy'} 398if(customTn.length){create(customTn.attr(srcType));customTn.remove();return!1} 399if(video.type==='youtube'){path="//img.youtube.com/vi/"+video.id+"/hqdefault.jpg";create(path)}else if(video.type==='vimeo'){$.ajax({type:'GET',url:'//vimeo.com/api/v2/video/'+video.id+'.json',jsonp:'callback',dataType:'jsonp',success:function(data){path=data[0].thumbnail_large;create(path)}})}else if(video.type==='vzaar'){$.ajax({type:'GET',url:'//vzaar.com/api/videos/'+video.id+'.json',jsonp:'callback',dataType:'jsonp',success:function(data){path=data.framegrab_url;create(path)}})}};Video.prototype.stop=function(){this._core.trigger('stop',null,'video');this._playing.find('.owl-video-frame').remove();this._playing.removeClass('owl-video-playing');this._playing=null;this._core.leave('playing');this._core.trigger('stopped',null,'video')};Video.prototype.play=function(event){var target=$(event.target),item=target.closest('.'+this._core.settings.itemClass),video=this._videos[item.attr('data-video')],width=video.width||'100%',height=video.height||this._core.$stage.height(),html;if(this._playing){return} 400this._core.enter('playing');this._core.trigger('play',null,'video');item=this._core.items(this._core.relative(item.index()));this._core.reset(item.index());if(video.type==='youtube'){html='<iframe width="'+width+'" height="'+height+'" src="//www.youtube.com/embed/'+video.id+'?autoplay=1&v='+video.id+'" frameborder="0" allowfullscreen></iframe>'}else if(video.type==='vimeo'){html='<iframe src="//player.vimeo.com/video/'+video.id+'?autoplay=1" width="'+width+'" height="'+height+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>'}else if(video.type==='vzaar'){html='<iframe frameborder="0"'+'height="'+height+'"'+'width="'+width+'" allowfullscreen mozallowfullscreen webkitAllowFullScreen '+'src="//view.vzaar.com/'+video.id+'/player?autoplay=true"></iframe>'} 401$('<div class="owl-video-frame">'+html+'</div>').insertAfter(item.find('.owl-video'));this._playing=item.addClass('owl-video-playing')};Video.prototype.isInFullScreen=function(){var element=document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement;return element&&$(element).parent().hasClass('owl-video-frame')};Video.prototype.destroy=function(){var handler,property;this._core.$element.off('click.owl.video');for(handler in this._handlers){this._core.$element.off(handler,this._handlers[handler])} 402for(property in Object.getOwnPropertyNames(this)){typeof this[property]!='function'&&(this[property]=null)}};$.fn.owlCarousel.Constructor.Plugins.Video=Video})(window.Zepto||window.jQuery,window,document); 403/** 404 * Animate Plugin 405 * @version 2.1.0 406 * @author Bartosz Wojciechowski 407 * @author David Deutsch 408 * @license The MIT License (MIT) 409 */ 410;(function($,window,document,undefined){var Animate=function(scope){this.core=scope;this.core.options=$.extend({},Animate.Defaults,this.core.options);this.swapping=!0;this.previous=undefined;this.next=undefined;this.handlers={'change.owl.carousel':$.proxy(function(e){if(e.namespace&&e.property.name=='position'){this.previous=this.core.current();this.next=e.property.value}},this),'drag.owl.carousel dragged.owl.carousel translated.owl.carousel':$.proxy(function(e){if(e.namespace){this.swapping=e.type=='translated'}},this),'translate.owl.carousel':$.proxy(function(e){if(e.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)){this.swap()}},this)};this.core.$element.on(this.handlers)};Animate.Defaults={animateOut:!1,animateIn:!1};Animate.prototype.swap=function(){if(this.core.settings.items!==1){return} 411if(!$.support.animation||!$.support.transition){return} 412this.core.speed(0);var left,clear=$.proxy(this.clear,this),previous=this.core.$stage.children().eq(this.previous),next=this.core.$stage.children().eq(this.next),incoming=this.core.settings.animateIn,outgoing=this.core.settings.animateOut;if(this.core.current()===this.previous){return} 413if(outgoing){left=this.core.coordinates(this.previous)-this.core.coordinates(this.next);previous.one($.support.animation.end,clear).css({'left':left+'px'}).addClass('animated owl-animated-out').addClass(outgoing)} 414if(incoming){next.one($.support.animation.end,clear).addClass('animated owl-animated-in').addClass(incoming)}};Animate.prototype.clear=function(e){$(e.target).css({'left':''}).removeClass('animated owl-animated-out owl-animated-in').removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut);this.core.onTransitionEnd()};Animate.prototype.destroy=function(){var handler,property;for(handler in this.handlers){this.core.$element.off(handler,this.handlers[handler])} 415for(property in Object.getOwnPropertyNames(this)){typeof this[property]!='function'&&(this[property]=null)}};$.fn.owlCarousel.Constructor.Plugins.Animate=Animate})(window.Zepto||window.jQuery,window,document); 416/** 417 * Autoplay Plugin 418 * @version 2.1.0 419 * @author Bartosz Wojciechowski 420 * @author Artus Kolanowski 421 * @author David Deutsch 422 * @license The MIT License (MIT) 423 */ 424;(function($,window,document,undefined){var Autoplay=function(carousel){this._core=carousel;this._timeout=null;this._paused=!1;this._handlers={'changed.owl.carousel':$.proxy(function(e){if(e.namespace&&e.property.name==='settings'){if(this._core.settings.autoplay){this.play()}else{this.stop()}}else if(e.namespace&&e.property.name==='position'){if(this._core.settings.autoplay){this._setAutoPlayInterval()}}},this),'initialized.owl.carousel':$.proxy(function(e){if(e.namespace&&this._core.settings.autoplay){this.play()}},this),'play.owl.autoplay':$.proxy(function(e,t,s){if(e.namespace){this.play(t,s)}},this),'stop.owl.autoplay':$.proxy(function(e){if(e.namespace){this.stop()}},this),'mouseover.owl.autoplay':$.proxy(function(){if(this._core.settings.autoplayHoverPause&&this._core.is('rotating')){this.pause()}},this),'mouseleave.owl.autoplay':$.proxy(function(){if(this._core.settings.autoplayHoverPause&&this._core.is('rotating')){this.play()}},this),'touchstart.owl.core':$.proxy(function(){if(this._core.settings.autoplayHoverPause&&this._core.is('rotating')){this.pause()}},this),'touchend.owl.core':$.proxy(function(){if(this._core.settings.autoplayHoverPause){this.play()}},this)};this._core.$element.on(this._handlers);this._core.options=$.extend({},Autoplay.Defaults,this._core.options)};Autoplay.Defaults={autoplay:!1,autoplayTimeout:5000,autoplayHoverPause:!1,autoplaySpeed:!1};Autoplay.prototype.play=function(timeout,speed){this._paused=!1;if(this._core.is('rotating')){return} 425this._core.enter('rotating');this._setAutoPlayInterval()};Autoplay.prototype._getNextTimeout=function(timeout,speed){if(this._timeout){window.clearTimeout(this._timeout)} 426return window.setTimeout($.proxy(function(){if(this._paused||this._core.is('busy')||this._core.is('interacting')||document.hidden){return} 427this._core.next(speed||this._core.settings.autoplaySpeed)},this),timeout||this._core.settings.autoplayTimeout)};Autoplay.prototype._setAutoPlayInterval=function(){this._timeout=this._getNextTimeout()};Autoplay.prototype.stop=function(){if(!this._core.is('rotating')){return} 428window.clearTimeout(this._timeout);this._core.leave('rotating')};Autoplay.prototype.pause=function(){if(!this._core.is('rotating')){return} 429this._paused=!0};Autoplay.prototype.destroy=function(){var handler,property;this.stop();for(handler in this._handlers){this._core.$element.off(handler,this._handlers[handler])} 430for(property in Object.getOwnPropertyNames(this)){typeof this[property]!='function'&&(this[property]=null)}};$.fn.owlCarousel.Constructor.Plugins.autoplay=Autoplay})(window.Zepto||window.jQuery,window,document); 431/** 432 * Navigation Plugin 433 * @version 2.1.0 434 * @author Artus Kolanowski 435 * @author David Deutsch 436 * @license The MIT License (MIT) 437 */ 438;(function($,window,document,undefined){'use strict';var Navigation=function(carousel){this._core=carousel;this._initialized=!1;this._pages=[];this._controls={};this._templates=[];this.$element=this._core.$element;this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to};this._handlers={'prepared.owl.carousel':$.proxy(function(e){if(e.namespace&&this._core.settings.dotsData){this._templates.push('<div class="'+this._core.settings.dotClass+'">'+$(e.content).find('[data-dot]').addBack('[data-dot]').attr('data-dot')+'</div>')}},this),'added.owl.carousel':$.proxy(function(e){if(e.namespace&&this._core.settings.dotsData){this._templates.splice(e.position,0,this._templates.pop())}},this),'remove.owl.carousel':$.proxy(function(e){if(e.namespace&&this._core.settings.dotsData){this._templates.splice(e.position,1)}},this),'changed.owl.carousel':$.proxy(function(e){if(e.namespace&&e.property.name=='position'){this.draw()}},this),'initialized.owl.carousel':$.proxy(function(e){if(e.namespace&&!this._initialized){this._core.trigger('initialize',null,'navigation');this.initialize();this.update();this.draw();this._initialized=!0;this._core.trigger('initialized',null,'navigation')}},this),'refreshed.owl.carousel':$.proxy(function(e){if(e.namespace&&this._initialized){this._core.trigger('refresh',null,'navigation');this.update();this.draw();this._core.trigger('refreshed',null,'navigation')}},this)};this._core.options=$.extend({},Navigation.Defaults,this._core.options);this.$element.on(this._handlers)};Navigation.Defaults={nav:!1,navText:['prev','next'],navSpeed:!1,navElement:'div',navContainer:!1,navContainerClass:'owl-nav',navClass:['owl-prev','owl-next'],slideBy:1,dotClass:'owl-dot',dotsClass:'owl-dots',dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1};Navigation.prototype.initialize=function(){var override,settings=this._core.settings;this._controls.$relative=(settings.navContainer?$(settings.navContainer):$('<div>').addClass(settings.navContainerClass).appendTo(this.$element)).addClass('disabled');this._controls.$previous=$('<'+settings.navElement+'>').addClass(settings.navClass[0]).html(settings.navText[0]).prependTo(this._controls.$relative).on('click',$.proxy(function(e){this.prev(settings.navSpeed)},this));this._controls.$next=$('<'+settings.navElement+'>').addClass(settings.navClass[1]).html(settings.navText[1]).appendTo(this._controls.$relative).on('click',$.proxy(function(e){this.next(settings.navSpeed)},this));if(!settings.dotsData){this._templates=[$('<div>').addClass(settings.dotClass).append($('<span>')).prop('outerHTML')]} 439this._controls.$absolute=(settings.dotsContainer?$(settings.dotsContainer):$('<div>').addClass(settings.dotsClass).appendTo(this.$element)).addClass('disabled');this._controls.$absolute.on('click','div',$.proxy(function(e){var index=$(e.target).parent().is(this._controls.$absolute)?$(e.target).index():$(e.target).parent().index();e.preventDefault();this.to(index,settings.dotsSpeed)},this));for(override in this._overrides){this._core[override]=$.proxy(this[override],this)}};Navigation.prototype.destroy=function(){var handler,control,property,override;for(handler in this._handlers){this.$element.off(handler,this._handlers[handler])} 440for(control in this._controls){this._controls[control].remove()} 441for(override in this.overides){this._core[override]=this._overrides[override]} 442for(property in Object.getOwnPropertyNames(this)){typeof this[property]!='function'&&(this[property]=null)}};Navigation.prototype.update=function(){var i,j,k,lower=this._core.clones().length/2,upper=lower+this._core.items().length,maximum=this._core.maximum(!0),settings=this._core.settings,size=settings.center||settings.autoWidth||settings.dotsData?1:settings.dotsEach||settings.items;if(settings.slideBy!=='page'){settings.slideBy=Math.min(settings.slideBy,settings.items)} 443if(settings.dots||settings.slideBy=='page'){this._pages=[];for(i=lower,j=0,k=0;i<upper;i++){if(j>=size||j===0){this._pages.push({start:Math.min(maximum,i-lower),end:i-lower+size-1});if(Math.min(maximum,i-lower)===maximum){break} 444j=0,++k} 445j+=this._core.mergers(this._core.relative(i))}}};Navigation.prototype.draw=function(){var difference,settings=this._core.settings,disabled=this._core.items().length<=settings.items,index=this._core.relative(this._core.current()),loop=settings.loop||settings.rewind;this._controls.$relative.toggleClass('disabled',!settings.nav||disabled);if(settings.nav){this._controls.$previous.toggleClass('disabled',!loop&&index<=this._core.minimum(!0));this._controls.$next.toggleClass('disabled',!loop&&index>=this._core.maximum(!0))} 446this._controls.$absolute.toggleClass('disabled',!settings.dots||disabled);if(settings.dots){difference=this._pages.length-this._controls.$absolute.children().length;if(settings.dotsData&&difference!==0){this._controls.$absolute.html(this._templates.join(''))}else if(difference>0){this._controls.$absolute.append(new Array(difference+1).join(this._templates[0]))}else if(difference<0){this._controls.$absolute.children().slice(difference).remove()} 447this._controls.$absolute.find('.active').removeClass('active');this._controls.$absolute.children().eq($.inArray(this.current(),this._pages)).addClass('active')}};Navigation.prototype.onTrigger=function(event){var settings=this._core.settings;event.page={index:$.inArray(this.current(),this._pages),count:this._pages.length,size:settings&&(settings.center||settings.autoWidth||settings.dotsData?1:settings.dotsEach||settings.items)}};Navigation.prototype.current=function(){var current=this._core.relative(this._core.current());return $.grep(this._pages,$.proxy(function(page,index){return page.start<=current&&page.end>=current},this)).pop()};Navigation.prototype.getPosition=function(successor){var position,length,settings=this._core.settings;if(settings.slideBy=='page'){position=$.inArray(this.current(),this._pages);length=this._pages.length;successor?++position:--position;position=this._pages[((position%length)+length)%length].start}else{position=this._core.relative(this._core.current());length=this._core.items().length;successor?position+=settings.slideBy:position-=settings.slideBy} 448return position};Navigation.prototype.next=function(speed){$.proxy(this._overrides.to,this._core)(this.getPosition(!0),speed)};Navigation.prototype.prev=function(speed){$.proxy(this._overrides.to,this._core)(this.getPosition(!1),speed)};Navigation.prototype.to=function(position,speed,standard){var length;if(!standard&&this._pages.length){length=this._pages.length;$.proxy(this._overrides.to,this._core)(this._pages[((position%length)+length)%length].start,speed)}else{$.proxy(this._overrides.to,this._core)(position,speed)}};$.fn.owlCarousel.Constructor.Plugins.Navigation=Navigation})(window.Zepto||window.jQuery,window,document); 449/** 450 * Hash Plugin 451 * @version 2.1.0 452 * @author Artus Kolanowski 453 * @author David Deutsch 454 * @license The MIT License (MIT) 455 */ 456;(function($,window,document,undefined){'use strict';var Hash=function(carousel){this._core=carousel;this._hashes={};this.$element=this._core.$element;this._handlers={'initialized.owl.carousel':$.proxy(function(e){if(e.namespace&&this._core.settings.startPosition==='URLHash'){$(window).trigger('hashchange.owl.navigation')}},this),'prepared.owl.carousel':$.proxy(function(e){if(e.namespace){var hash=$(e.content).find('[data-hash]').addBack('[data-hash]').attr('data-hash');if(!hash){return} 457this._hashes[hash]=e.content}},this),'changed.owl.carousel':$.proxy(function(e){if(e.namespace&&e.property.name==='position'){var current=this._core.items(this._core.relative(this._core.current())),hash=$.map(this._hashes,function(item,hash){return item===current?hash:null}).join();if(!hash||window.location.hash.slice(1)===hash){return} 458window.location.hash=hash}},this)};this._core.options=$.extend({},Hash.Defaults,this._core.options);this.$element.on(this._handlers);$(window).on('hashchange.owl.navigation',$.proxy(function(e){var hash=window.location.hash.substring(1),items=this._core.$stage.children(),position=this._hashes[hash]&&items.index(this._hashes[hash]);if(position===undefined||position===this._core.current()){return} 459this._core.to(this._core.relative(position),!1,!0)},this))};Hash.Defaults={URLhashListener:!1};Hash.prototype.destroy=function(){var handler,property;$(window).off('hashchange.owl.navigation');for(handler in this._handlers){this._core.$element.off(handler,this._handlers[handler])} 460for(property in Object.getOwnPropertyNames(this)){typeof this[property]!='function'&&(this[property]=null)}};$.fn.owlCarousel.Constructor.Plugins.Hash=Hash})(window.Zepto||window.jQuery,window,document); 461/** 462 * Support Plugin 463 * 464 * @version 2.1.0 465 * @author Vivid Planet Software GmbH 466 * @author Artus Kolanowski 467 * @author David Deutsch 468 * @license The MIT License (MIT) 469 */ 470;(function($,window,document,undefined){var style=$('<support>').get(0).style,prefixes='Webkit Moz O ms'.split(' '),events={transition:{end:{WebkitTransition:'webkitTransitionEnd',MozTransition:'transitionend',OTransition:'oTransitionEnd',transition:'transitionend'}},animation:{end:{WebkitAnimation:'webkitAnimationEnd',MozAnimation:'animationend',OAnimation:'oAnimationEnd',animation:'animationend'}}},tests={csstransforms:function(){return!!test('transform')},csstransforms3d:function(){return!!test('perspective')},csstransitions:function(){return!!test('transition')},cssanimations:function(){return!!test('animation')}};function test(property,prefixed){var result=!1,upper=property.charAt(0).toUpperCase()+property.slice(1);$.each((property+' '+prefixes.join(upper+' ')+upper).split(' '),function(i,property){if(style[property]!==undefined){result=prefixed?property:!0;return!1}});return result} 471function prefixed(property){return test(property,!0)} 472if(tests.csstransitions()){$.support.transition=new String(prefixed('transition')) 473$.support.transition.end=events.transition.end[$.support.transition]} 474if(tests.cssanimations()){$.support.animation=new String(prefixed('animation')) 475$.support.animation.end=events.animation.end[$.support.animation]} 476if(tests.csstransforms()){$.support.transform=new String(prefixed('transform'));$.support.transform3d=tests.csstransforms3d()}})(window.Zepto||window.jQuery,window,document)}),
476"../redferntheme/resources/js/carousel.js": 477/*!************************************************!*\ 478 !*** ../redferntheme/resources/js/carousel.js ***! 479 \************************************************/ 480/*! no static exports found */ 481(function(module,exports,__webpack_require__){__webpack_require__(/*! owl.carousel */"../redferntheme/node_modules/owl.carousel/dist/owl.carousel.js");(function($){var RFCarousel=function RFCarousel(elem,options){this.elem=elem;this.$elem=$(elem);this.options=options;this.metadata=this.$elem.data()};RFCarousel.prototype={sizes:{lg:1200,md:992,sm:768,xs:0},defaults:{slideBy:1,margin:0,loop:!1,center:!1,stagePadding:0,nav:!1,dots:!1,autoplay:!1,autoplayTimeout:5000,afterVc:!1,responsive:{0:{items:1},768:{items:2},992:{items:3},1200:{items:4}}},init:function init(){this.config=$.extend({},this.defaults,this.options,this.metadata);this.initializeItems(this.config.items);if(this.config.afterVc){$(document).on('vc-full-width-row',this.setupCarousel.bind(this))}else{this.setupCarousel()}},initializeItems:function initializeItems(items){var size_items=[];$.each(items,function(size,num_items){var size_val=this.sizes[size];size_items.push(parseInt(num_items));this.config.responsive[size_val].items=parseInt(num_items)}.bind(this));var unique_items=size_items.filter(function(elem,pos,arr){return arr.indexOf(elem)==pos});if(unique_items.length==1){delete this.config.responsive;this.config.items=unique_items[0]}},setupCarousel:function setupCarousel(){this.$elem.owlCarousel(this.config)}};$.fn.rfCarousel=function(options){return this.each(function(){new RFCarousel(this,options).init()})};window.RFCarousel=RFCarousel;$(function(){$('.RFCarousel').rfCarousel()})})(jQuery)}),
481"../redferntheme/resources/js/components/cart-panel.js": 482/*!*************************************************************!*\ 483 !*** ../redferntheme/resources/js/components/cart-panel.js ***! 484 \*************************************************************/ 485/*! no static exports found */ 486(function(module,exports){(function($){var CartPanel=function CartPanel(elem,options){this.elem=elem;this.$elem=$(elem);this.options=options;this.metadata=this.$elem.data()};CartPanel.prototype={defaults:{},init:function init(){this.config=$.extend({},this.defaults,this.options,this.metadata);this.$overlay=$('.shop-overlay');this.addEventListeners()},addEventListeners:function addEventListeners(){$(document).on('click','.cart-link',this.toggle.bind(this));$(document).on('click','.shop-overlay, .shop-panel-close',this.hide.bind(this));$(document).on('click','.remove-product',this.removeProduct.bind(this))},toggle:function toggle(e){e.preventDefault();this.$overlay.toggleClass('show');$('#page').toggleClass('cart-show')},show:function show(e){e.preventDefault();this.$overlay.addClass('show');$('#page').addClass('cart-show')},hide:function hide(e){e.preventDefault();this.$overlay.removeClass('show');$('#page').removeClass('cart-show')},addedToCart:function addedToCart(e){this.show(e)},removeProduct:function removeProduct(e){e.preventDefault();var cart_item_key=$(e.target).attr('data-cart-item');var data={action:'rftheme_remove_from_cart',cart_item:cart_item_key};$.post(rftheme.ajaxurl,data,function(response){var cartTotal=response.amount;$('.shop-panel__total .amount').replaceWith(cartTotal);$('.cart-count').text(response.quantity);$('.cart-product-'+cart_item_key).remove()})}};$.fn.CartPanel=function(options){return this.each(function(){new CartPanel(this,options).init()})};$(function(){new CartPanel(document.querySelector('.shop-panel')).init()})})(jQuery)}),
486"../redferntheme/resources/js/components/components.js": 487/*!*************************************************************!*\ 488 !*** ../redferntheme/resources/js/components/components.js ***! 489 \*************************************************************/ 490/*! no static exports found */ 491(function(module,exports,__webpack_require__){__webpack_require__(/*! ./cart-panel */"../redferntheme/resources/js/components/cart-panel.js")}),
491"../redferntheme/resources/js/grid.js": 492/*!********************************************!*\ 493 !*** ../redferntheme/resources/js/grid.js ***! 494 \********************************************/ 495/*! no static exports found */ 496(function(module,exports,__webpack_require__){var Isotope=__webpack_require__(/*! isotope-layout */"../redferntheme/node_modules/isotope-layout/js/isotope.js");var imagesLoaded=__webpack_require__(/*! imagesloaded */"../redferntheme/node_modules/imagesloaded/imagesloaded.js");(function($){var RFGrid=function RFGrid(elem,options){this.elem=elem;this.$elem=$(elem);this.options=options;this.metadata=this.$elem.data()};RFGrid.prototype={defaults:{layout:'fitRows'},init:function init(){this.config=$.extend({},this.defaults,this.options,this.metadata);this.legacyCheck();this.$elem.find('[data-filter]').on('click',this.filterGrid.bind(this));this.$currentFilter=this.$elem.find('[data-filter="*"]');this.setupGrid()},legacyCheck:function legacyCheck(){var child=this.$elem.children('.RFPostGrid__sizer').first();this.$items=child.length?this.$elem:this.$elem.find('.RFPostsGrid__items')},setupGrid:function setupGrid(){var _this=this;imagesLoaded(this.elem,function(){var gridSettings=$.extend({},{itemSelector:'.RFPostsGrid__item',percentPosition:!0},_this.layoutSettings());_this.iso=new Isotope(_this.$items[0],gridSettings)})},layoutSettings:function layoutSettings(){var data={layoutMode:this.config.layout};if(this.config.layout=='masonry'){data.masonry={columnWidth:'.RFPostsGrid__sizer'}} 497return data},filterGrid:function filterGrid(e){e.preventDefault();if(this.$currentFilter)this.$currentFilter.removeClass('active');$(e.target).addClass('active');this.iso.arrange({filter:$(e.target).data('filter')});this.$currentFilter=$(e.target)}};$.fn.rfGrid=function(){return this.each(function(){new RFGrid($(this)[0]).init()})};$(function(){$('.RFPostsGrid').rfGrid()})})(jQuery)}),
497"../redferntheme/resources/js/main.js": 498/*!********************************************!*\ 499 !*** ../redferntheme/resources/js/main.js ***! 500 \********************************************/ 501/*! no static exports found */ 502(function(module,exports,__webpack_require__){__webpack_require__(/*! ./menu */"../redferntheme/resources/js/menu.js");__webpack_require__(/*! ./carousel */"../redferntheme/resources/js/carousel.js");__webpack_require__(/*! ./grid */"../redferntheme/resources/js/grid.js");__webpack_require__(/*! ./sticky-header */"../redferntheme/resources/js/sticky-header.js");__webpack_require__(/*! ./components/components */"../redferntheme/resources/js/components/components.js");__webpack_require__(/*! ./map */"../redferntheme/resources/js/map.js")}),
502"../redferntheme/resources/js/map.js": 503/*!*******************************************!*\ 504 !*** ../redferntheme/resources/js/map.js ***! 505 \*******************************************/ 506/*! no static exports found */ 507(function(module,exports){function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}} 508function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1;descriptor.configurable=!0;if("value" in descriptor)descriptor.writable=!0;Object.defineProperty(target,descriptor.key,descriptor)}} 509function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);return Constructor}(function($){var RFMap=function(){function RFMap(elem,options){_classCallCheck(this,RFMap);this.elem=elem;this.$elem=$(elem);this.config=$.extend({},this.defaults(),options,this.$elem.data());this.$markers=this.$elem.find('.marker');this.markers=[]} 510_createClass(RFMap,[{key:"defaults",value:function defaults(){return{zoom:16,center:new google.maps.LatLng(0,0),mapTypeId:google.maps.MapTypeId.ROADMAP,scrollwheel:!1,draggable:!1,styles:[{"featureType":"administrative","elementType":"all","stylers":[{"visibility":"on"},{"saturation":-100},{"lightness":20}]},{"featureType":"road","elementType":"all","stylers":[{"visibility":"on"},{"saturation":-100},{"lightness":40}]},{"featureType":"water","elementType":"all","stylers":[{"visibility":"on"},{"saturation":-10},{"lightness":30}]},{"featureType":"landscape.man_made","elementType":"all","stylers":[{"visibility":"simplified"},{"saturation":-60},{"lightness":10}]},{"featureType":"landscape.natural","elementType":"all","stylers":[{"visibility":"simplified"},{"saturation":-60},{"lightness":60}]},{"featureType":"poi","elementType":"all","stylers":[{"visibility":"off"},{"saturation":-100},{"lightness":60}]},{"featureType":"transit","elementType":"all","stylers":[{"visibility":"off"},{"saturation":-100},{"lightness":60}]}]}}},{key:"setupMap",value:function setupMap(){this.map=new google.maps.Map(this.elem,this.mapConfig());this.setupMarkers();this.centerMap()}},{key:"mapConfig",value:function mapConfig(){this.setControlPositions();return this.config}},{key:"setControlPositions",value:function setControlPositions(){var keys=['zoomControlOptions','streetViewControlOptions'];for(var i=0;i<keys.length;i++){var key=keys[i];if(typeof this.config[key]!=='undefined'){var position=this.config[key].position;this.config[key].position=google.maps.ControlPosition[position.toUpperCase()]}}}},{key:"setupMarkers",value:function setupMarkers(){this.markers=[];var self=this;this.$markers.each(function(e){self.addMarker($(this))})}},{key:"addMarker",value:function addMarker($marker){var latlng=new google.maps.LatLng($marker.attr('data-lat'),$marker.attr('data-lng'));var image=$marker.attr('data-image')||'';var marker=new google.maps.Marker({position:latlng,map:this.map,icon:image});this.markers.push(marker);if($marker.html()){var infowindow=new google.maps.InfoWindow({content:$marker.html()});google.maps.event.addListener(marker,'click',function(){infowindow.open(this.map,marker)})}}},{key:"centerMap",value:function centerMap(){var bounds=new google.maps.LatLngBounds();$.each(this.markers,function(i,marker){var latlng=new google.maps.LatLng(marker.position.lat(),marker.position.lng());bounds.extend(latlng)});if(this.markers.length==1){this.map.setCenter(bounds.getCenter());this.map.setZoom(this.config.zoom)}else{this.map.fitBounds(bounds)}}}]);return RFMap}();$.fn.rfMap=function(options){return this.each(function(){if(!$(this).hasClass('map-loaded')){new RFMap(this,options).setupMap();$(this).addClass('map-loaded')}})};$(function(){if(typeof google!=='undefined'){$('.rf-map, .acf-map').rfMap()}else{console.warn('Google has not been defined, please make sure there is an API key.')}})})(jQuery)}),
510"../redferntheme/resources/js/menu.js": 511/*!********************************************!*\ 512 !*** ../redferntheme/resources/js/menu.js ***! 513 \********************************************/ 514/*! no static exports found */ 515(function(module,exports){(function($){var RFMenu=function RFMenu(elem,options){this.elem=elem;this.$elem=$(elem);this.options=options;this.metadata=this.$elem.data()};RFMenu.prototype={init:function init(){this.config=$.extend({},this.defaults,this.options,this.metadata);this.addEventListeners();return this},addEventListeners:function addEventListeners(){$('#menu-toggle').on('click',this.toggle.bind(this));this.$elem.on('click','.menu-expand',this.toggleSubmenu);$(window).resize(this.onResize.bind(this))},toggle:function toggle(){this.$elem.toggleClass('open');$('#menu-toggle').toggleClass('open');$('#page').toggleClass('menu-open')},toggleSubmenu:function toggleSubmenu(){$(this).parent().toggleClass('open');$(this).next().slideToggle()},onResize:function onResize(){this.$elem.removeClass('open');this.$elem.find('.sub-menu').css('display','');$('#menu-toggle').removeClass('open');$('#page').removeClass('menu-open')}};$.fn.rFMenu=function(options){return this.each(function(){new RFMenu(this,options).init()})};$(function(){$('#site-navigation').rFMenu()})})(jQuery)}),
515"../redferntheme/resources/js/sticky-header.js": 516/*!*****************************************************!*\ 517 !*** ../redferntheme/resources/js/sticky-header.js ***! 518 \*****************************************************/ 519/*! no static exports found */ 520(function(module,exports){(function($){$(function(){var mainHeader=$('.site-header'),secondaryNavigation=$('.cd-secondary-nav'),belowNavHeroContent=$('.sub-nav-hero'),headerHeight=mainHeader.height();var scrolling=!1,previousTop=0,currentTop=0,scrollDelta=10,scrollOffset=150;mainHeader.on('click','.nav-trigger',function(event){event.preventDefault();mainHeader.toggleClass('nav-open')});$(window).on('scroll',function(){if(!scrolling){scrolling=!0;!window.requestAnimationFrame?setTimeout(autoHideHeader,250):requestAnimationFrame(autoHideHeader)}});$(window).on('resize',function(){headerHeight=mainHeader.height()});function autoHideHeader(){var currentTop=$(window).scrollTop();belowNavHeroContent.length>0?checkStickyNavigation(currentTop):checkSimpleNavigation(currentTop);previousTop=currentTop;scrolling=!1} 521function checkSimpleNavigation(currentTop){if(previousTop-currentTop>scrollDelta){mainHeader.removeClass('is-hidden')}else if(currentTop-previousTop>scrollDelta&¤tTop>scrollOffset){mainHeader.addClass('is-hidden')}} 522function checkStickyNavigation(currentTop){var secondaryNavOffsetTop=belowNavHeroContent.offset().top-secondaryNavigation.height()-mainHeader.height();if(previousTop>=currentTop){if(currentTop<secondaryNavOffsetTop){mainHeader.removeClass('is-hidden');secondaryNavigation.removeClass('fixed slide-up');belowNavHeroContent.removeClass('secondary-nav-fixed')}else if(previousTop-currentTop>scrollDelta){mainHeader.removeClass('is-hidden');secondaryNavigation.removeClass('slide-up').addClass('fixed');belowNavHeroContent.addClass('secondary-nav-fixed')}}else{if(currentTop>secondaryNavOffsetTop+scrollOffset){mainHeader.addClass('is-hidden');secondaryNavigation.addClass('fixed slide-up');belowNavHeroContent.addClass('secondary-nav-fixed')}else if(currentTop>secondaryNavOffsetTop){mainHeader.removeClass('is-hidden');secondaryNavigation.addClass('fixed').removeClass('slide-up');belowNavHeroContent.addClass('secondary-nav-fixed')}}}})})(jQuery)}),
vendor: 47,389 bytes, lines 522-1324
522"./node_modules/bootstrap-sass/assets/javascripts/bootstrap.js": 523/*!*********************************************************************!*\ 524 !*** ./node_modules/bootstrap-sass/assets/javascripts/bootstrap.js ***! 525 \*********************************************************************/ 526/*! no static exports found */ 527(function(module,exports){ 528/*! 529 * Bootstrap v3.3.7 (http://getbootstrap.com) 530 * Copyright 2011-2016 Twitter, Inc. 531 * Licensed under the MIT license 532 */ 533if(typeof jQuery==='undefined'){throw new Error('Bootstrap\'s JavaScript requires jQuery')}+function($){'use strict';var version=$.fn.jquery.split(' ')[0].split('.') 534if((version[0]<2&&version[1]<9)||(version[0]==1&&version[1]==9&&version[2]<1)||(version[0]>3)){throw new Error('Bootstrap\'s JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4')}}(jQuery);+function($){'use strict';function transitionEnd(){var el=document.createElement('bootstrap') 535var transEndEventNames={WebkitTransition:'webkitTransitionEnd',MozTransition:'transitionend',OTransition:'oTransitionEnd otransitionend',transition:'transitionend'} 536for(var name in transEndEventNames){if(el.style[name]!==undefined){return{end:transEndEventNames[name]}}} 537return!1} 538$.fn.emulateTransitionEnd=function(duration){var called=!1 539var $el=this 540$(this).one('bsTransitionEnd',function(){called=!0}) 541var callback=function(){if(!called)$($el).trigger($.support.transition.end)} 542setTimeout(callback,duration) 543return this} 544$(function(){$.support.transition=transitionEnd() 545if(!$.support.transition)return 546$.event.special.bsTransitionEnd={bindType:$.support.transition.end,delegateType:$.support.transition.end,handle:function(e){if($(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}}})}(jQuery);+function($){'use strict';var dismiss='[data-dismiss="alert"]' 547var Alert=function(el){$(el).on('click',dismiss,this.close)} 548Alert.VERSION='3.3.7' 549Alert.TRANSITION_DURATION=150 550Alert.prototype.close=function(e){var $this=$(this) 551var selector=$this.attr('data-target') 552if(!selector){selector=$this.attr('href') 553selector=selector&&selector.replace(/.*(?=#[^\s]*$)/,'')} 554var $parent=$(selector==='#'?[]:selector) 555if(e)e.preventDefault() 556if(!$parent.length){$parent=$this.closest('.alert')} 557$parent.trigger(e=$.Event('close.bs.alert')) 558if(e.isDefaultPrevented())return 559$parent.removeClass('in') 560function removeElement(){$parent.detach().trigger('closed.bs.alert').remove()} 561$.support.transition&&$parent.hasClass('fade')?$parent.one('bsTransitionEnd',removeElement).emulateTransitionEnd(Alert.TRANSITION_DURATION):removeElement()} 562function Plugin(option){return this.each(function(){var $this=$(this) 563var data=$this.data('bs.alert') 564if(!data)$this.data('bs.alert',(data=new Alert(this))) 565if(typeof option=='string')data[option].call($this)})} 566var old=$.fn.alert 567$.fn.alert=Plugin 568$.fn.alert.Constructor=Alert 569$.fn.alert.noConflict=function(){$.fn.alert=old 570return this} 571$(document).on('click.bs.alert.data-api',dismiss,Alert.prototype.close)}(jQuery);+function($){'use strict';var Button=function(element,options){this.$element=$(element) 572this.options=$.extend({},Button.DEFAULTS,options) 573this.isLoading=!1} 574Button.VERSION='3.3.7' 575Button.DEFAULTS={loadingText:'loading...'} 576Button.prototype.setState=function(state){var d='disabled' 577var $el=this.$element 578var val=$el.is('input')?'val':'html' 579var data=$el.data() 580state+='Text' 581if(data.resetText==null)$el.data('resetText',$el[val]()) 582setTimeout($.proxy(function(){$el[val](data[state]==null?this.options[state]:data[state]) 583if(state=='loadingText'){this.isLoading=!0 584$el.addClass(d).attr(d,d).prop(d,!0)}else if(this.isLoading){this.isLoading=!1 585$el.removeClass(d).removeAttr(d).prop(d,!1)}},this),0)} 586Button.prototype.toggle=function(){var changed=!0 587var $parent=this.$element.closest('[data-toggle="buttons"]') 588if($parent.length){var $input=this.$element.find('input') 589if($input.prop('type')=='radio'){if($input.prop('checked'))changed=!1 590$parent.find('.active').removeClass('active') 591this.$element.addClass('active')}else if($input.prop('type')=='checkbox'){if(($input.prop('checked'))!==this.$element.hasClass('active'))changed=!1 592this.$element.toggleClass('active')} 593$input.prop('checked',this.$element.hasClass('active')) 594if(changed)$input.trigger('change')}else{this.$element.attr('aria-pressed',!this.$element.hasClass('active')) 595this.$element.toggleClass('active')}} 596function Plugin(option){return this.each(function(){var $this=$(this) 597var data=$this.data('bs.button') 598var options=typeof option=='object'&&option 599if(!data)$this.data('bs.button',(data=new Button(this,options))) 600if(option=='toggle')data.toggle() 601else if(option)data.setState(option)})} 602var old=$.fn.button 603$.fn.button=Plugin 604$.fn.button.Constructor=Button 605$.fn.button.noConflict=function(){$.fn.button=old 606return this} 607$(document).on('click.bs.button.data-api','[data-toggle^="button"]',function(e){var $btn=$(e.target).closest('.btn') 608Plugin.call($btn,'toggle') 609if(!($(e.target).is('input[type="radio"], input[type="checkbox"]'))){e.preventDefault() 610if($btn.is('input,button'))$btn.trigger('focus') 611else $btn.find('input:visible,button:visible').first().trigger('focus')}}).on('focus.bs.button.data-api blur.bs.button.data-api','[data-toggle^="button"]',function(e){$(e.target).closest('.btn').toggleClass('focus',/^focus(in)?$/.test(e.type))})}(jQuery);+function($){'use strict';var Carousel=function(element,options){this.$element=$(element) 612this.$indicators=this.$element.find('.carousel-indicators') 613this.options=options 614this.paused=null 615this.sliding=null 616this.interval=null 617this.$active=null 618this.$items=null 619this.options.keyboard&&this.$element.on('keydown.bs.carousel',$.proxy(this.keydown,this)) 620this.options.pause=='hover'&&!('ontouchstart' in document.documentElement)&&this.$element.on('mouseenter.bs.carousel',$.proxy(this.pause,this)).on('mouseleave.bs.carousel',$.proxy(this.cycle,this))} 621Carousel.VERSION='3.3.7' 622Carousel.TRANSITION_DURATION=600 623Carousel.DEFAULTS={interval:5000,pause:'hover',wrap:!0,keyboard:!0} 624Carousel.prototype.keydown=function(e){if(/input|textarea/i.test(e.target.tagName))return 625switch(e.which){case 37:this.prev();break 626case 39:this.next();break 627default:return} 628e.preventDefault()} 629Carousel.prototype.cycle=function(e){e||(this.paused=!1) 630this.interval&&clearInterval(this.interval) 631this.options.interval&&!this.paused&&(this.interval=setInterval($.proxy(this.next,this),this.options.interval)) 632return this} 633Carousel.prototype.getItemIndex=function(item){this.$items=item.parent().children('.item') 634return this.$items.index(item||this.$active)} 635Carousel.prototype.getItemForDirection=function(direction,active){var activeIndex=this.getItemIndex(active) 636var willWrap=(direction=='prev'&&activeIndex===0)||(direction=='next'&&activeIndex==(this.$items.length-1)) 637if(willWrap&&!this.options.wrap)return active 638var delta=direction=='prev'?-1:1 639var itemIndex=(activeIndex+delta)%this.$items.length 640return this.$items.eq(itemIndex)} 641Carousel.prototype.to=function(pos){var that=this 642var activeIndex=this.getItemIndex(this.$active=this.$element.find('.item.active')) 643if(pos>(this.$items.length-1)||pos<0)return 644if(this.sliding)return this.$element.one('slid.bs.carousel',function(){that.to(pos)}) 645if(activeIndex==pos)return this.pause().cycle() 646return this.slide(pos>activeIndex?'next':'prev',this.$items.eq(pos))} 647Carousel.prototype.pause=function(e){e||(this.paused=!0) 648if(this.$element.find('.next, .prev').length&&$.support.transition){this.$element.trigger($.support.transition.end) 649this.cycle(!0)} 650this.interval=clearInterval(this.interval) 651return this} 652Carousel.prototype.next=function(){if(this.sliding)return 653return this.slide('next')} 654Carousel.prototype.prev=function(){if(this.sliding)return 655return this.slide('prev')} 656Carousel.prototype.slide=function(type,next){var $active=this.$element.find('.item.active') 657var $next=next||this.getItemForDirection(type,$active) 658var isCycling=this.interval 659var direction=type=='next'?'left':'right' 660var that=this 661if($next.hasClass('active'))return(this.sliding=!1) 662var relatedTarget=$next[0] 663var slideEvent=$.Event('slide.bs.carousel',{relatedTarget:relatedTarget,direction:direction}) 664this.$element.trigger(slideEvent) 665if(slideEvent.isDefaultPrevented())return 666this.sliding=!0 667isCycling&&this.pause() 668if(this.$indicators.length){this.$indicators.find('.active').removeClass('active') 669var $nextIndicator=$(this.$indicators.children()[this.getItemIndex($next)]) 670$nextIndicator&&$nextIndicator.addClass('active')} 671var slidEvent=$.Event('slid.bs.carousel',{relatedTarget:relatedTarget,direction:direction}) 672if($.support.transition&&this.$element.hasClass('slide')){$next.addClass(type) 673$next[0].offsetWidth 674$active.addClass(direction) 675$next.addClass(direction) 676$active.one('bsTransitionEnd',function(){$next.removeClass([type,direction].join(' ')).addClass('active') 677$active.removeClass(['active',direction].join(' ')) 678that.sliding=!1 679setTimeout(function(){that.$element.trigger(slidEvent)},0)}).emulateTransitionEnd(Carousel.TRANSITION_DURATION)}else{$active.removeClass('active') 680$next.addClass('active') 681this.sliding=!1 682this.$element.trigger(slidEvent)} 683isCycling&&this.cycle() 684return this} 685function Plugin(option){return this.each(function(){var $this=$(this) 686var data=$this.data('bs.carousel') 687var options=$.extend({},Carousel.DEFAULTS,$this.data(),typeof option=='object'&&option) 688var action=typeof option=='string'?option:options.slide 689if(!data)$this.data('bs.carousel',(data=new Carousel(this,options))) 690if(typeof option=='number')data.to(option) 691else if(action)data[action]() 692else if(options.interval)data.pause().cycle()})} 693var old=$.fn.carousel 694$.fn.carousel=Plugin 695$.fn.carousel.Constructor=Carousel 696$.fn.carousel.noConflict=function(){$.fn.carousel=old 697return this} 698var clickHandler=function(e){var href 699var $this=$(this) 700var $target=$($this.attr('data-target')||(href=$this.attr('href'))&&href.replace(/.*(?=#[^\s]+$)/,'')) 701if(!$target.hasClass('carousel'))return 702var options=$.extend({},$target.data(),$this.data()) 703var slideIndex=$this.attr('data-slide-to') 704if(slideIndex)options.interval=!1 705Plugin.call($target,options) 706if(slideIndex){$target.data('bs.carousel').to(slideIndex)} 707e.preventDefault()} 708$(document).on('click.bs.carousel.data-api','[data-slide]',clickHandler).on('click.bs.carousel.data-api','[data-slide-to]',clickHandler) 709$(window).on('load',function(){$('[data-ride="carousel"]').each(function(){var $carousel=$(this) 710Plugin.call($carousel,$carousel.data())})})}(jQuery);+function($){'use strict';var Collapse=function(element,options){this.$element=$(element) 711this.options=$.extend({},Collapse.DEFAULTS,options) 712this.$trigger=$('[data-toggle="collapse"][href="#'+element.id+'"],'+'[data-toggle="collapse"][data-target="#'+element.id+'"]') 713this.transitioning=null 714if(this.options.parent){this.$parent=this.getParent()}else{this.addAriaAndCollapsedClass(this.$element,this.$trigger)} 715if(this.options.toggle)this.toggle()} 716Collapse.VERSION='3.3.7' 717Collapse.TRANSITION_DURATION=350 718Collapse.DEFAULTS={toggle:!0} 719Collapse.prototype.dimension=function(){var hasWidth=this.$element.hasClass('width') 720return hasWidth?'width':'height'} 721Collapse.prototype.show=function(){if(this.transitioning||this.$element.hasClass('in'))return 722var activesData 723var actives=this.$parent&&this.$parent.children('.panel').children('.in, .collapsing') 724if(actives&&actives.length){activesData=actives.data('bs.collapse') 725if(activesData&&activesData.transitioning)return} 726var startEvent=$.Event('show.bs.collapse') 727this.$element.trigger(startEvent) 728if(startEvent.isDefaultPrevented())return 729if(actives&&actives.length){Plugin.call(actives,'hide') 730activesData||actives.data('bs.collapse',null)} 731var dimension=this.dimension() 732this.$element.removeClass('collapse').addClass('collapsing')[dimension](0).attr('aria-expanded',!0) 733this.$trigger.removeClass('collapsed').attr('aria-expanded',!0) 734this.transitioning=1 735var complete=function(){this.$element.removeClass('collapsing').addClass('collapse in')[dimension]('') 736this.transitioning=0 737this.$element.trigger('shown.bs.collapse')} 738if(!$.support.transition)return complete.call(this) 739var scrollSize=$.camelCase(['scroll',dimension].join('-')) 740this.$element.one('bsTransitionEnd',$.proxy(complete,this)).emulateTransitionEnd(Collapse.TRANSITION_DURATION)[dimension](this.$element[0][scrollSize])} 741Collapse.prototype.hide=function(){if(this.transitioning||!this.$element.hasClass('in'))return 742var startEvent=$.Event('hide.bs.collapse') 743this.$element.trigger(startEvent) 744if(startEvent.isDefaultPrevented())return 745var dimension=this.dimension() 746this.$element[dimension](this.$element[dimension]())[0].offsetHeight 747this.$element.addClass('collapsing').removeClass('collapse in').attr('aria-expanded',!1) 748this.$trigger.addClass('collapsed').attr('aria-expanded',!1) 749this.transitioning=1 750var complete=function(){this.transitioning=0 751this.$element.removeClass('collapsing').addClass('collapse').trigger('hidden.bs.collapse')} 752if(!$.support.transition)return complete.call(this) 753this.$element[dimension](0).one('bsTransitionEnd',$.proxy(complete,this)).emulateTransitionEnd(Collapse.TRANSITION_DURATION)} 754Collapse.prototype.toggle=function(){this[this.$element.hasClass('in')?'hide':'show']()} 755Collapse.prototype.getParent=function(){return $(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each($.proxy(function(i,element){var $element=$(element) 756this.addAriaAndCollapsedClass(getTargetFromTrigger($element),$element)},this)).end()} 757Collapse.prototype.addAriaAndCollapsedClass=function($element,$trigger){var isOpen=$element.hasClass('in') 758$element.attr('aria-expanded',isOpen) 759$trigger.toggleClass('collapsed',!isOpen).attr('aria-expanded',isOpen)} 760function getTargetFromTrigger($trigger){var href 761var target=$trigger.attr('data-target')||(href=$trigger.attr('href'))&&href.replace(/.*(?=#[^\s]+$)/,'') 762return $(target)} 763function Plugin(option){return this.each(function(){var $this=$(this) 764var data=$this.data('bs.collapse') 765var options=$.extend({},Collapse.DEFAULTS,$this.data(),typeof option=='object'&&option) 766if(!data&&options.toggle&&/show|hide/.test(option))options.toggle=!1 767if(!data)$this.data('bs.collapse',(data=new Collapse(this,options))) 768if(typeof option=='string')data[option]()})} 769var old=$.fn.collapse 770$.fn.collapse=Plugin 771$.fn.collapse.Constructor=Collapse 772$.fn.collapse.noConflict=function(){$.fn.collapse=old 773return this} 774$(document).on('click.bs.collapse.data-api','[data-toggle="collapse"]',function(e){var $this=$(this) 775if(!$this.attr('data-target'))e.preventDefault() 776var $target=getTargetFromTrigger($this) 777var data=$target.data('bs.collapse') 778var option=data?'toggle':$this.data() 779Plugin.call($target,option)})}(jQuery);+function($){'use strict';var backdrop='.dropdown-backdrop' 780var toggle='[data-toggle="dropdown"]' 781var Dropdown=function(element){$(element).on('click.bs.dropdown',this.toggle)} 782Dropdown.VERSION='3.3.7' 783function getParent($this){var selector=$this.attr('data-target') 784if(!selector){selector=$this.attr('href') 785selector=selector&&/#[A-Za-z]/.test(selector)&&selector.replace(/.*(?=#[^\s]*$)/,'')} 786var $parent=selector&&$(selector) 787return $parent&&$parent.length?$parent:$this.parent()} 788function clearMenus(e){if(e&&e.which===3)return 789$(backdrop).remove() 790$(toggle).each(function(){var $this=$(this) 791var $parent=getParent($this) 792var relatedTarget={relatedTarget:this} 793if(!$parent.hasClass('open'))return 794if(e&&e.type=='click'&&/input|textarea/i.test(e.target.tagName)&&$.contains($parent[0],e.target))return 795$parent.trigger(e=$.Event('hide.bs.dropdown',relatedTarget)) 796if(e.isDefaultPrevented())return 797$this.attr('aria-expanded','false') 798$parent.removeClass('open').trigger($.Event('hidden.bs.dropdown',relatedTarget))})} 799Dropdown.prototype.toggle=function(e){var $this=$(this) 800if($this.is('.disabled, :disabled'))return 801var $parent=getParent($this) 802var isActive=$parent.hasClass('open') 803clearMenus() 804if(!isActive){if('ontouchstart' in document.documentElement&&!$parent.closest('.navbar-nav').length){$(document.createElement('div')).addClass('dropdown-backdrop').insertAfter($(this)).on('click',clearMenus)} 805var relatedTarget={relatedTarget:this} 806$parent.trigger(e=$.Event('show.bs.dropdown',relatedTarget)) 807if(e.isDefaultPrevented())return 808$this.trigger('focus').attr('aria-expanded','true') 809$parent.toggleClass('open').trigger($.Event('shown.bs.dropdown',relatedTarget))} 810return!1} 811Dropdown.prototype.keydown=function(e){if(!/(38|40|27|32)/.test(e.which)||/input|textarea/i.test(e.target.tagName))return 812var $this=$(this) 813e.preventDefault() 814e.stopPropagation() 815if($this.is('.disabled, :disabled'))return 816var $parent=getParent($this) 817var isActive=$parent.hasClass('open') 818if(!isActive&&e.which!=27||isActive&&e.which==27){if(e.which==27)$parent.find(toggle).trigger('focus') 819return $this.trigger('click')} 820var desc=' li:not(.disabled):visible a' 821var $items=$parent.find('.dropdown-menu'+desc) 822if(!$items.length)return 823var index=$items.index(e.target) 824if(e.which==38&&index>0)index-- 825if(e.which==40&&index<$items.length-1)index++ 826if(!~index)index=0 827$items.eq(index).trigger('focus')} 828function Plugin(option){return this.each(function(){var $this=$(this) 829var data=$this.data('bs.dropdown') 830if(!data)$this.data('bs.dropdown',(data=new Dropdown(this))) 831if(typeof option=='string')data[option].call($this)})} 832var old=$.fn.dropdown 833$.fn.dropdown=Plugin 834$.fn.dropdown.Constructor=Dropdown 835$.fn.dropdown.noConflict=function(){$.fn.dropdown=old 836return this} 837$(document).on('click.bs.dropdown.data-api',clearMenus).on('click.bs.dropdown.data-api','.dropdown form',function(e){e.stopPropagation()}).on('click.bs.dropdown.data-api',toggle,Dropdown.prototype.toggle).on('keydown.bs.dropdown.data-api',toggle,Dropdown.prototype.keydown).on('keydown.bs.dropdown.data-api','.dropdown-menu',Dropdown.prototype.keydown)}(jQuery);+function($){'use strict';var Modal=function(element,options){this.options=options 838this.$body=$(document.body) 839this.$element=$(element) 840this.$dialog=this.$element.find('.modal-dialog') 841this.$backdrop=null 842this.isShown=null 843this.originalBodyPad=null 844this.scrollbarWidth=0 845this.ignoreBackdropClick=!1 846if(this.options.remote){this.$element.find('.modal-content').load(this.options.remote,$.proxy(function(){this.$element.trigger('loaded.bs.modal')},this))}} 847Modal.VERSION='3.3.7' 848Modal.TRANSITION_DURATION=300 849Modal.BACKDROP_TRANSITION_DURATION=150 850Modal.DEFAULTS={backdrop:!0,keyboard:!0,show:!0} 851Modal.prototype.toggle=function(_relatedTarget){return this.isShown?this.hide():this.show(_relatedTarget)} 852Modal.prototype.show=function(_relatedTarget){var that=this 853var e=$.Event('show.bs.modal',{relatedTarget:_relatedTarget}) 854this.$element.trigger(e) 855if(this.isShown||e.isDefaultPrevented())return 856this.isShown=!0 857this.checkScrollbar() 858this.setScrollbar() 859this.$body.addClass('modal-open') 860this.escape() 861this.resize() 862this.$element.on('click.dismiss.bs.modal','[data-dismiss="modal"]',$.proxy(this.hide,this)) 863this.$dialog.on('mousedown.dismiss.bs.modal',function(){that.$element.one('mouseup.dismiss.bs.modal',function(e){if($(e.target).is(that.$element))that.ignoreBackdropClick=!0})}) 864this.backdrop(function(){var transition=$.support.transition&&that.$element.hasClass('fade') 865if(!that.$element.parent().length){that.$element.appendTo(that.$body)} 866that.$element.show().scrollTop(0) 867that.adjustDialog() 868if(transition){that.$element[0].offsetWidth} 869that.$element.addClass('in') 870that.enforceFocus() 871var e=$.Event('shown.bs.modal',{relatedTarget:_relatedTarget}) 872transition?that.$dialog.one('bsTransitionEnd',function(){that.$element.trigger('focus').trigger(e)}).emulateTransitionEnd(Modal.TRANSITION_DURATION):that.$element.trigger('focus').trigger(e)})} 873Modal.prototype.hide=function(e){if(e)e.preventDefault() 874e=$.Event('hide.bs.modal') 875this.$element.trigger(e) 876if(!this.isShown||e.isDefaultPrevented())return 877this.isShown=!1 878this.escape() 879this.resize() 880$(document).off('focusin.bs.modal') 881this.$element.removeClass('in').off('click.dismiss.bs.modal').off('mouseup.dismiss.bs.modal') 882this.$dialog.off('mousedown.dismiss.bs.modal') 883$.support.transition&&this.$element.hasClass('fade')?this.$element.one('bsTransitionEnd',$.proxy(this.hideModal,this)).emulateTransitionEnd(Modal.TRANSITION_DURATION):this.hideModal()} 884Modal.prototype.enforceFocus=function(){$(document).off('focusin.bs.modal').on('focusin.bs.modal',$.proxy(function(e){if(document!==e.target&&this.$element[0]!==e.target&&!this.$element.has(e.target).length){this.$element.trigger('focus')}},this))} 885Modal.prototype.escape=function(){if(this.isShown&&this.options.keyboard){this.$element.on('keydown.dismiss.bs.modal',$.proxy(function(e){e.which==27&&this.hide()},this))}else if(!this.isShown){this.$element.off('keydown.dismiss.bs.modal')}} 886Modal.prototype.resize=function(){if(this.isShown){$(window).on('resize.bs.modal',$.proxy(this.handleUpdate,this))}else{$(window).off('resize.bs.modal')}} 887Modal.prototype.hideModal=function(){var that=this 888this.$element.hide() 889this.backdrop(function(){that.$body.removeClass('modal-open') 890that.resetAdjustments() 891that.resetScrollbar() 892that.$element.trigger('hidden.bs.modal')})} 893Modal.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove() 894this.$backdrop=null} 895Modal.prototype.backdrop=function(callback){var that=this 896var animate=this.$element.hasClass('fade')?'fade':'' 897if(this.isShown&&this.options.backdrop){var doAnimate=$.support.transition&&animate 898this.$backdrop=$(document.createElement('div')).addClass('modal-backdrop '+animate).appendTo(this.$body) 899this.$element.on('click.dismiss.bs.modal',$.proxy(function(e){if(this.ignoreBackdropClick){this.ignoreBackdropClick=!1 900return} 901if(e.target!==e.currentTarget)return 902this.options.backdrop=='static'?this.$element[0].focus():this.hide()},this)) 903if(doAnimate)this.$backdrop[0].offsetWidth 904this.$backdrop.addClass('in') 905if(!callback)return 906doAnimate?this.$backdrop.one('bsTransitionEnd',callback).emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION):callback()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass('in') 907var callbackRemove=function(){that.removeBackdrop() 908callback&&callback()} 909$.support.transition&&this.$element.hasClass('fade')?this.$backdrop.one('bsTransitionEnd',callbackRemove).emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION):callbackRemove()}else if(callback){callback()}} 910Modal.prototype.handleUpdate=function(){this.adjustDialog()} 911Modal.prototype.adjustDialog=function(){var modalIsOverflowing=this.$element[0].scrollHeight>document.documentElement.clientHeight 912this.$element.css({paddingLeft:!this.bodyIsOverflowing&&modalIsOverflowing?this.scrollbarWidth:'',paddingRight:this.bodyIsOverflowing&&!modalIsOverflowing?this.scrollbarWidth:''})} 913Modal.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:'',paddingRight:''})} 914Modal.prototype.checkScrollbar=function(){var fullWindowWidth=window.innerWidth 915if(!fullWindowWidth){var documentElementRect=document.documentElement.getBoundingClientRect() 916fullWindowWidth=documentElementRect.right-Math.abs(documentElementRect.left)} 917this.bodyIsOverflowing=document.body.clientWidth<fullWindowWidth 918this.scrollbarWidth=this.measureScrollbar()} 919Modal.prototype.setScrollbar=function(){var bodyPad=parseInt((this.$body.css('padding-right')||0),10) 920this.originalBodyPad=document.body.style.paddingRight||'' 921if(this.bodyIsOverflowing)this.$body.css('padding-right',bodyPad+this.scrollbarWidth)} 922Modal.prototype.resetScrollbar=function(){this.$body.css('padding-right',this.originalBodyPad)} 923Modal.prototype.measureScrollbar=function(){var scrollDiv=document.createElement('div') 924scrollDiv.className='modal-scrollbar-measure' 925this.$body.append(scrollDiv) 926var scrollbarWidth=scrollDiv.offsetWidth-scrollDiv.clientWidth 927this.$body[0].removeChild(scrollDiv) 928return scrollbarWidth} 929function Plugin(option,_relatedTarget){return this.each(function(){var $this=$(this) 930var data=$this.data('bs.modal') 931var options=$.extend({},Modal.DEFAULTS,$this.data(),typeof option=='object'&&option) 932if(!data)$this.data('bs.modal',(data=new Modal(this,options))) 933if(typeof option=='string')data[option](_relatedTarget) 934else if(options.show)data.show(_relatedTarget)})} 935var old=$.fn.modal 936$.fn.modal=Plugin 937$.fn.modal.Constructor=Modal 938$.fn.modal.noConflict=function(){$.fn.modal=old 939return this} 940$(document).on('click.bs.modal.data-api','[data-toggle="modal"]',function(e){var $this=$(this) 941var href=$this.attr('href') 942var $target=$($this.attr('data-target')||(href&&href.replace(/.*(?=#[^\s]+$)/,''))) 943var option=$target.data('bs.modal')?'toggle':$.extend({remote:!/#/.test(href)&&href},$target.data(),$this.data()) 944if($this.is('a'))e.preventDefault() 945$target.one('show.bs.modal',function(showEvent){if(showEvent.isDefaultPrevented())return 946$target.one('hidden.bs.modal',function(){$this.is(':visible')&&$this.trigger('focus')})}) 947Plugin.call($target,option,this)})}(jQuery);+function($){'use strict';var Tooltip=function(element,options){this.type=null 948this.options=null 949this.enabled=null 950this.timeout=null 951this.hoverState=null 952this.$element=null 953this.inState=null 954this.init('tooltip',element,options)} 955Tooltip.VERSION='3.3.7' 956Tooltip.TRANSITION_DURATION=150 957Tooltip.DEFAULTS={animation:!0,placement:'top',selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:'hover focus',title:'',delay:0,html:!1,container:!1,viewport:{selector:'body',padding:0}} 958Tooltip.prototype.init=function(type,element,options){this.enabled=!0 959this.type=type 960this.$element=$(element) 961this.options=this.getOptions(options) 962this.$viewport=this.options.viewport&&$($.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):(this.options.viewport.selector||this.options.viewport)) 963this.inState={click:!1,hover:!1,focus:!1} 964if(this.$element[0]instanceof document.constructor&&!this.options.selector){throw new Error('`selector` option must be specified when initializing '+this.type+' on the window.document object!')} 965var triggers=this.options.trigger.split(' ') 966for(var i=triggers.length;i--;){var trigger=triggers[i] 967if(trigger=='click'){this.$element.on('click.'+this.type,this.options.selector,$.proxy(this.toggle,this))}else if(trigger!='manual'){var eventIn=trigger=='hover'?'mouseenter':'focusin' 968var eventOut=trigger=='hover'?'mouseleave':'focusout' 969this.$element.on(eventIn+'.'+this.type,this.options.selector,$.proxy(this.enter,this)) 970this.$element.on(eventOut+'.'+this.type,this.options.selector,$.proxy(this.leave,this))}} 971this.options.selector?(this._options=$.extend({},this.options,{trigger:'manual',selector:''})):this.fixTitle()} 972Tooltip.prototype.getDefaults=function(){return Tooltip.DEFAULTS} 973Tooltip.prototype.getOptions=function(options){options=$.extend({},this.getDefaults(),this.$element.data(),options) 974if(options.delay&&typeof options.delay=='number'){options.delay={show:options.delay,hide:options.delay}} 975return options} 976Tooltip.prototype.getDelegateOptions=function(){var options={} 977var defaults=this.getDefaults() 978this._options&&$.each(this._options,function(key,value){if(defaults[key]!=value)options[key]=value}) 979return options} 980Tooltip.prototype.enter=function(obj){var self=obj instanceof this.constructor?obj:$(obj.currentTarget).data('bs.'+this.type) 981if(!self){self=new this.constructor(obj.currentTarget,this.getDelegateOptions()) 982$(obj.currentTarget).data('bs.'+this.type,self)} 983if(obj instanceof $.Event){self.inState[obj.type=='focusin'?'focus':'hover']=!0} 984if(self.tip().hasClass('in')||self.hoverState=='in'){self.hoverState='in' 985return} 986clearTimeout(self.timeout) 987self.hoverState='in' 988if(!self.options.delay||!self.options.delay.show)return self.show() 989self.timeout=setTimeout(function(){if(self.hoverState=='in')self.show()},self.options.delay.show)} 990Tooltip.prototype.isInStateTrue=function(){for(var key in this.inState){if(this.inState[key])return!0} 991return!1} 992Tooltip.prototype.leave=function(obj){var self=obj instanceof this.constructor?obj:$(obj.currentTarget).data('bs.'+this.type) 993if(!self){self=new this.constructor(obj.currentTarget,this.getDelegateOptions()) 994$(obj.currentTarget).data('bs.'+this.type,self)} 995if(obj instanceof $.Event){self.inState[obj.type=='focusout'?'focus':'hover']=!1} 996if(self.isInStateTrue())return 997clearTimeout(self.timeout) 998self.hoverState='out' 999if(!self.options.delay||!self.options.delay.hide)return self.hide() 1000self.timeout=setTimeout(function(){if(self.hoverState=='out')self.hide()},self.options.delay.hide)} 1001Tooltip.prototype.show=function(){var e=$.Event('show.bs.'+this.type) 1002if(this.hasContent()&&this.enabled){this.$element.trigger(e) 1003var inDom=$.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]) 1004if(e.isDefaultPrevented()||!inDom)return 1005var that=this 1006var $tip=this.tip() 1007var tipId=this.getUID(this.type) 1008this.setContent() 1009$tip.attr('id',tipId) 1010this.$element.attr('aria-describedby',tipId) 1011if(this.options.animation)$tip.addClass('fade') 1012var placement=typeof this.options.placement=='function'?this.options.placement.call(this,$tip[0],this.$element[0]):this.options.placement 1013var autoToken=/\s?auto?\s?/i 1014var autoPlace=autoToken.test(placement) 1015if(autoPlace)placement=placement.replace(autoToken,'')||'top' 1016$tip.detach().css({top:0,left:0,display:'block'}).addClass(placement).data('bs.'+this.type,this) 1017this.options.container?$tip.appendTo(this.options.container):$tip.insertAfter(this.$element) 1018this.$element.trigger('inserted.bs.'+this.type) 1019var pos=this.getPosition() 1020var actualWidth=$tip[0].offsetWidth 1021var actualHeight=$tip[0].offsetHeight 1022if(autoPlace){var orgPlacement=placement 1023var viewportDim=this.getPosition(this.$viewport) 1024placement=placement=='bottom'&&pos.bottom+actualHeight>viewportDim.bottom?'top':placement=='top'&&pos.top-actualHeight<viewportDim.top?'bottom':placement=='right'&&pos.right+actualWidth>viewportDim.width?'left':placement=='left'&&pos.left-actualWidth<viewportDim.left?'right':placement 1025$tip.removeClass(orgPlacement).addClass(placement)} 1026var calculatedOffset=this.getCalculatedOffset(placement,pos,actualWidth,actualHeight) 1027this.applyPlacement(calculatedOffset,placement) 1028var complete=function(){var prevHoverState=that.hoverState 1029that.$element.trigger('shown.bs.'+that.type) 1030that.hoverState=null 1031if(prevHoverState=='out')that.leave(that)} 1032$.support.transition&&this.$tip.hasClass('fade')?$tip.one('bsTransitionEnd',complete).emulateTransitionEnd(Tooltip.TRANSITION_DURATION):complete()}} 1033Tooltip.prototype.applyPlacement=function(offset,placement){var $tip=this.tip() 1034var width=$tip[0].offsetWidth 1035var height=$tip[0].offsetHeight 1036var marginTop=parseInt($tip.css('margin-top'),10) 1037var marginLeft=parseInt($tip.css('margin-left'),10) 1038if(isNaN(marginTop))marginTop=0 1039if(isNaN(marginLeft))marginLeft=0 1040offset.top+=marginTop 1041offset.left+=marginLeft 1042$.offset.setOffset($tip[0],$.extend({using:function(props){$tip.css({top:Math.round(props.top),left:Math.round(props.left)})}},offset),0) 1043$tip.addClass('in') 1044var actualWidth=$tip[0].offsetWidth 1045var actualHeight=$tip[0].offsetHeight 1046if(placement=='top'&&actualHeight!=height){offset.top=offset.top+height-actualHeight} 1047var delta=this.getViewportAdjustedDelta(placement,offset,actualWidth,actualHeight) 1048if(delta.left)offset.left+=delta.left 1049else offset.top+=delta.top 1050var isVertical=/top|bottom/.test(placement) 1051var arrowDelta=isVertical?delta.left*2-width+actualWidth:delta.top*2-height+actualHeight 1052var arrowOffsetPosition=isVertical?'offsetWidth':'offsetHeight' 1053$tip.offset(offset) 1054this.replaceArrow(arrowDelta,$tip[0][arrowOffsetPosition],isVertical)} 1055Tooltip.prototype.replaceArrow=function(delta,dimension,isVertical){this.arrow().css(isVertical?'left':'top',50*(1-delta/dimension)+'%').css(isVertical?'top':'left','')} 1056Tooltip.prototype.setContent=function(){var $tip=this.tip() 1057var title=this.getTitle() 1058$tip.find('.tooltip-inner')[this.options.html?'html':'text'](title) 1059$tip.removeClass('fade in top bottom left right')} 1060Tooltip.prototype.hide=function(callback){var that=this 1061var $tip=$(this.$tip) 1062var e=$.Event('hide.bs.'+this.type) 1063function complete(){if(that.hoverState!='in')$tip.detach() 1064if(that.$element){that.$element.removeAttr('aria-describedby').trigger('hidden.bs.'+that.type)} 1065callback&&callback()} 1066this.$element.trigger(e) 1067if(e.isDefaultPrevented())return 1068$tip.removeClass('in') 1069$.support.transition&&$tip.hasClass('fade')?$tip.one('bsTransitionEnd',complete).emulateTransitionEnd(Tooltip.TRANSITION_DURATION):complete() 1070this.hoverState=null 1071return this} 1072Tooltip.prototype.fixTitle=function(){var $e=this.$element 1073if($e.attr('title')||typeof $e.attr('data-original-title')!='string'){$e.attr('data-original-title',$e.attr('title')||'').attr('title','')}} 1074Tooltip.prototype.hasContent=function(){return this.getTitle()} 1075Tooltip.prototype.getPosition=function($element){$element=$element||this.$element 1076var el=$element[0] 1077var isBody=el.tagName=='BODY' 1078var elRect=el.getBoundingClientRect() 1079if(elRect.width==null){elRect=$.extend({},elRect,{width:elRect.right-elRect.left,height:elRect.bottom-elRect.top})} 1080var isSvg=window.SVGElement&&el instanceof window.SVGElement 1081var elOffset=isBody?{top:0,left:0}:(isSvg?null:$element.offset()) 1082var scroll={scroll:isBody?document.documentElement.scrollTop||document.body.scrollTop:$element.scrollTop()} 1083var outerDims=isBody?{width:$(window).width(),height:$(window).height()}:null 1084return $.extend({},elRect,scroll,outerDims,elOffset)} 1085Tooltip.prototype.getCalculatedOffset=function(placement,pos,actualWidth,actualHeight){return placement=='bottom'?{top:pos.top+pos.height,left:pos.left+pos.width/2-actualWidth/2}:placement=='top'?{top:pos.top-actualHeight,left:pos.left+pos.width/2-actualWidth/2}:placement=='left'?{top:pos.top+pos.height/2-actualHeight/2,left:pos.left-actualWidth}:{top:pos.top+pos.height/2-actualHeight/2,left:pos.left+pos.width}} 1086Tooltip.prototype.getViewportAdjustedDelta=function(placement,pos,actualWidth,actualHeight){var delta={top:0,left:0} 1087if(!this.$viewport)return delta 1088var viewportPadding=this.options.viewport&&this.options.viewport.padding||0 1089var viewportDimensions=this.getPosition(this.$viewport) 1090if(/right|left/.test(placement)){var topEdgeOffset=pos.top-viewportPadding-viewportDimensions.scroll 1091var bottomEdgeOffset=pos.top+viewportPadding-viewportDimensions.scroll+actualHeight 1092if(topEdgeOffset<viewportDimensions.top){delta.top=viewportDimensions.top-topEdgeOffset}else if(bottomEdgeOffset>viewportDimensions.top+viewportDimensions.height){delta.top=viewportDimensions.top+viewportDimensions.height-bottomEdgeOffset}}else{var leftEdgeOffset=pos.left-viewportPadding 1093var rightEdgeOffset=pos.left+viewportPadding+actualWidth 1094if(leftEdgeOffset<viewportDimensions.left){delta.left=viewportDimensions.left-leftEdgeOffset}else if(rightEdgeOffset>viewportDimensions.right){delta.left=viewportDimensions.left+viewportDimensions.width-rightEdgeOffset}} 1095return delta} 1096Tooltip.prototype.getTitle=function(){var title 1097var $e=this.$element 1098var o=this.options 1099title=$e.attr('data-original-title')||(typeof o.title=='function'?o.title.call($e[0]):o.title) 1100return title} 1101Tooltip.prototype.getUID=function(prefix){do prefix+=~~(Math.random()*1000000) 1102while(document.getElementById(prefix)) 1103return prefix} 1104Tooltip.prototype.tip=function(){if(!this.$tip){this.$tip=$(this.options.template) 1105if(this.$tip.length!=1){throw new Error(this.type+' `template` option must consist of exactly 1 top-level element!')}} 1106return this.$tip} 1107Tooltip.prototype.arrow=function(){return(this.$arrow=this.$arrow||this.tip().find('.tooltip-arrow'))} 1108Tooltip.prototype.enable=function(){this.enabled=!0} 1109Tooltip.prototype.disable=function(){this.enabled=!1} 1110Tooltip.prototype.toggleEnabled=function(){this.enabled=!this.enabled} 1111Tooltip.prototype.toggle=function(e){var self=this 1112if(e){self=$(e.currentTarget).data('bs.'+this.type) 1113if(!self){self=new this.constructor(e.currentTarget,this.getDelegateOptions()) 1114$(e.currentTarget).data('bs.'+this.type,self)}} 1115if(e){self.inState.click=!self.inState.click 1116if(self.isInStateTrue())self.enter(self) 1117else self.leave(self)}else{self.tip().hasClass('in')?self.leave(self):self.enter(self)}} 1118Tooltip.prototype.destroy=function(){var that=this 1119clearTimeout(this.timeout) 1120this.hide(function(){that.$element.off('.'+that.type).removeData('bs.'+that.type) 1121if(that.$tip){that.$tip.detach()} 1122that.$tip=null 1123that.$arrow=null 1124that.$viewport=null 1125that.$element=null})} 1126function Plugin(option){return this.each(function(){var $this=$(this) 1127var data=$this.data('bs.tooltip') 1128var options=typeof option=='object'&&option 1129if(!data&&/destroy|hide/.test(option))return 1130if(!data)$this.data('bs.tooltip',(data=new Tooltip(this,options))) 1131if(typeof option=='string')data[option]()})} 1132var old=$.fn.tooltip 1133$.fn.tooltip=Plugin 1134$.fn.tooltip.Constructor=Tooltip 1135$.fn.tooltip.noConflict=function(){$.fn.tooltip=old 1136return this}}(jQuery);+function($){'use strict';var Popover=function(element,options){this.init('popover',element,options)} 1137if(!$.fn.tooltip)throw new Error('Popover requires tooltip.js') 1138Popover.VERSION='3.3.7' 1139Popover.DEFAULTS=$.extend({},$.fn.tooltip.Constructor.DEFAULTS,{placement:'right',trigger:'click',content:'',template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}) 1140Popover.prototype=$.extend({},$.fn.tooltip.Constructor.prototype) 1141Popover.prototype.constructor=Popover 1142Popover.prototype.getDefaults=function(){return Popover.DEFAULTS} 1143Popover.prototype.setContent=function(){var $tip=this.tip() 1144var title=this.getTitle() 1145var content=this.getContent() 1146$tip.find('.popover-title')[this.options.html?'html':'text'](title) 1147$tip.find('.popover-content').children().detach().end()[this.options.html?(typeof content=='string'?'html':'append'):'text'](content) 1148$tip.removeClass('fade top bottom left right in') 1149if(!$tip.find('.popover-title').html())$tip.find('.popover-title').hide()} 1150Popover.prototype.hasContent=function(){return this.getTitle()||this.getContent()} 1151Popover.prototype.getContent=function(){var $e=this.$element 1152var o=this.options 1153return $e.attr('data-content')||(typeof o.content=='function'?o.content.call($e[0]):o.content)} 1154Popover.prototype.arrow=function(){return(this.$arrow=this.$arrow||this.tip().find('.arrow'))} 1155function Plugin(option){return this.each(function(){var $this=$(this) 1156var data=$this.data('bs.popover') 1157var options=typeof option=='object'&&option 1158if(!data&&/destroy|hide/.test(option))return 1159if(!data)$this.data('bs.popover',(data=new Popover(this,options))) 1160if(typeof option=='string')data[option]()})} 1161var old=$.fn.popover 1162$.fn.popover=Plugin 1163$.fn.popover.Constructor=Popover 1164$.fn.popover.noConflict=function(){$.fn.popover=old 1165return this}}(jQuery);+function($){'use strict';function ScrollSpy(element,options){this.$body=$(document.body) 1166this.$scrollElement=$(element).is(document.body)?$(window):$(element) 1167this.options=$.extend({},ScrollSpy.DEFAULTS,options) 1168this.selector=(this.options.target||'')+' .nav li > a' 1169this.offsets=[] 1170this.targets=[] 1171this.activeTarget=null 1172this.scrollHeight=0 1173this.$scrollElement.on('scroll.bs.scrollspy',$.proxy(this.process,this)) 1174this.refresh() 1175this.process()} 1176ScrollSpy.VERSION='3.3.7' 1177ScrollSpy.DEFAULTS={offset:10} 1178ScrollSpy.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)} 1179ScrollSpy.prototype.refresh=function(){var that=this 1180var offsetMethod='offset' 1181var offsetBase=0 1182this.offsets=[] 1183this.targets=[] 1184this.scrollHeight=this.getScrollHeight() 1185if(!$.isWindow(this.$scrollElement[0])){offsetMethod='position' 1186offsetBase=this.$scrollElement.scrollTop()} 1187this.$body.find(this.selector).map(function(){var $el=$(this) 1188var href=$el.data('target')||$el.attr('href') 1189var $href=/^#./.test(href)&&$(href) 1190return($href&&$href.length&&$href.is(':visible')&&[[$href[offsetMethod]().top+offsetBase,href]])||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){that.offsets.push(this[0]) 1191that.targets.push(this[1])})} 1192ScrollSpy.prototype.process=function(){var scrollTop=this.$scrollElement.scrollTop()+this.options.offset 1193var scrollHeight=this.getScrollHeight() 1194var maxScroll=this.options.offset+scrollHeight-this.$scrollElement.height() 1195var offsets=this.offsets 1196var targets=this.targets 1197var activeTarget=this.activeTarget 1198var i 1199if(this.scrollHeight!=scrollHeight){this.refresh()} 1200if(scrollTop>=maxScroll){return activeTarget!=(i=targets[targets.length-1])&&this.activate(i)} 1201if(activeTarget&&scrollTop<offsets[0]){this.activeTarget=null 1202return this.clear()} 1203for(i=offsets.length;i--;){activeTarget!=targets[i]&&scrollTop>=offsets[i]&&(offsets[i+1]===undefined||scrollTop<offsets[i+1])&&this.activate(targets[i])}} 1204ScrollSpy.prototype.activate=function(target){this.activeTarget=target 1205this.clear() 1206var selector=this.selector+'[data-target="'+target+'"],'+this.selector+'[href="'+target+'"]' 1207var active=$(selector).parents('li').addClass('active') 1208if(active.parent('.dropdown-menu').length){active=active.closest('li.dropdown').addClass('active')} 1209active.trigger('activate.bs.scrollspy')} 1210ScrollSpy.prototype.clear=function(){$(this.selector).parentsUntil(this.options.target,'.active').removeClass('active')} 1211function Plugin(option){return this.each(function(){var $this=$(this) 1212var data=$this.data('bs.scrollspy') 1213var options=typeof option=='object'&&option 1214if(!data)$this.data('bs.scrollspy',(data=new ScrollSpy(this,options))) 1215if(typeof option=='string')data[option]()})} 1216var old=$.fn.scrollspy 1217$.fn.scrollspy=Plugin 1218$.fn.scrollspy.Constructor=ScrollSpy 1219$.fn.scrollspy.noConflict=function(){$.fn.scrollspy=old 1220return this} 1221$(window).on('load.bs.scrollspy.data-api',function(){$('[data-spy="scroll"]').each(function(){var $spy=$(this) 1222Plugin.call($spy,$spy.data())})})}(jQuery);+function($){'use strict';var Tab=function(element){this.element=$(element)} 1223Tab.VERSION='3.3.7' 1224Tab.TRANSITION_DURATION=150 1225Tab.prototype.show=function(){var $this=this.element 1226var $ul=$this.closest('ul:not(.dropdown-menu)') 1227var selector=$this.data('target') 1228if(!selector){selector=$this.attr('href') 1229selector=selector&&selector.replace(/.*(?=#[^\s]*$)/,'')} 1230if($this.parent('li').hasClass('active'))return 1231var $previous=$ul.find('.active:last a') 1232var hideEvent=$.Event('hide.bs.tab',{relatedTarget:$this[0]}) 1233var showEvent=$.Event('show.bs.tab',{relatedTarget:$previous[0]}) 1234$previous.trigger(hideEvent) 1235$this.trigger(showEvent) 1236if(showEvent.isDefaultPrevented()||hideEvent.isDefaultPrevented())return 1237var $target=$(selector) 1238this.activate($this.closest('li'),$ul) 1239this.activate($target,$target.parent(),function(){$previous.trigger({type:'hidden.bs.tab',relatedTarget:$this[0]}) 1240$this.trigger({type:'shown.bs.tab',relatedTarget:$previous[0]})})} 1241Tab.prototype.activate=function(element,container,callback){var $active=container.find('> .active') 1242var transition=callback&&$.support.transition&&($active.length&&$active.hasClass('fade')||!!container.find('> .fade').length) 1243function next(){$active.removeClass('active').find('> .dropdown-menu > .active').removeClass('active').end().find('[data-toggle="tab"]').attr('aria-expanded',!1) 1244element.addClass('active').find('[data-toggle="tab"]').attr('aria-expanded',!0) 1245if(transition){element[0].offsetWidth 1246element.addClass('in')}else{element.removeClass('fade')} 1247if(element.parent('.dropdown-menu').length){element.closest('li.dropdown').addClass('active').end().find('[data-toggle="tab"]').attr('aria-expanded',!0)} 1248callback&&callback()} 1249$active.length&&transition?$active.one('bsTransitionEnd',next).emulateTransitionEnd(Tab.TRANSITION_DURATION):next() 1250$active.removeClass('in')} 1251function Plugin(option){return this.each(function(){var $this=$(this) 1252var data=$this.data('bs.tab') 1253if(!data)$this.data('bs.tab',(data=new Tab(this))) 1254if(typeof option=='string')data[option]()})} 1255var old=$.fn.tab 1256$.fn.tab=Plugin 1257$.fn.tab.Constructor=Tab 1258$.fn.tab.noConflict=function(){$.fn.tab=old 1259return this} 1260var clickHandler=function(e){e.preventDefault() 1261Plugin.call($(this),'show')} 1262$(document).on('click.bs.tab.data-api','[data-toggle="tab"]',clickHandler).on('click.bs.tab.data-api','[data-toggle="pill"]',clickHandler)}(jQuery);+function($){'use strict';var Affix=function(element,options){this.options=$.extend({},Affix.DEFAULTS,options) 1263this.$target=$(this.options.target).on('scroll.bs.affix.data-api',$.proxy(this.checkPosition,this)).on('click.bs.affix.data-api',$.proxy(this.checkPositionWithEventLoop,this)) 1264this.$element=$(element) 1265this.affixed=null 1266this.unpin=null 1267this.pinnedOffset=null 1268this.checkPosition()} 1269Affix.VERSION='3.3.7' 1270Affix.RESET='affix affix-top affix-bottom' 1271Affix.DEFAULTS={offset:0,target:window} 1272Affix.prototype.getState=function(scrollHeight,height,offsetTop,offsetBottom){var scrollTop=this.$target.scrollTop() 1273var position=this.$element.offset() 1274var targetHeight=this.$target.height() 1275if(offsetTop!=null&&this.affixed=='top')return scrollTop<offsetTop?'top':!1 1276if(this.affixed=='bottom'){if(offsetTop!=null)return(scrollTop+this.unpin<=position.top)?!1:'bottom' 1277return(scrollTop+targetHeight<=scrollHeight-offsetBottom)?!1:'bottom'} 1278var initializing=this.affixed==null 1279var colliderTop=initializing?scrollTop:position.top 1280var colliderHeight=initializing?targetHeight:height 1281if(offsetTop!=null&&scrollTop<=offsetTop)return'top' 1282if(offsetBottom!=null&&(colliderTop+colliderHeight>=scrollHeight-offsetBottom))return'bottom' 1283return!1} 1284Affix.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset 1285this.$element.removeClass(Affix.RESET).addClass('affix') 1286var scrollTop=this.$target.scrollTop() 1287var position=this.$element.offset() 1288return(this.pinnedOffset=position.top-scrollTop)} 1289Affix.prototype.checkPositionWithEventLoop=function(){setTimeout($.proxy(this.checkPosition,this),1)} 1290Affix.prototype.checkPosition=function(){if(!this.$element.is(':visible'))return 1291var height=this.$element.height() 1292var offset=this.options.offset 1293var offsetTop=offset.top 1294var offsetBottom=offset.bottom 1295var scrollHeight=Math.max($(document).height(),$(document.body).height()) 1296if(typeof offset!='object')offsetBottom=offsetTop=offset 1297if(typeof offsetTop=='function')offsetTop=offset.top(this.$element) 1298if(typeof offsetBottom=='function')offsetBottom=offset.bottom(this.$element) 1299var affix=this.getState(scrollHeight,height,offsetTop,offsetBottom) 1300if(this.affixed!=affix){if(this.unpin!=null)this.$element.css('top','') 1301var affixType='affix'+(affix?'-'+affix:'') 1302var e=$.Event(affixType+'.bs.affix') 1303this.$element.trigger(e) 1304if(e.isDefaultPrevented())return 1305this.affixed=affix 1306this.unpin=affix=='bottom'?this.getPinnedOffset():null 1307this.$element.removeClass(Affix.RESET).addClass(affixType).trigger(affixType.replace('affix','affixed')+'.bs.affix')} 1308if(affix=='bottom'){this.$element.offset({top:scrollHeight-height-offsetBottom})}} 1309function Plugin(option){return this.each(function(){var $this=$(this) 1310var data=$this.data('bs.affix') 1311var options=typeof option=='object'&&option 1312if(!data)$this.data('bs.affix',(data=new Affix(this,options))) 1313if(typeof option=='string')data[option]()})} 1314var old=$.fn.affix 1315$.fn.affix=Plugin 1316$.fn.affix.Constructor=Affix 1317$.fn.affix.noConflict=function(){$.fn.affix=old 1318return this} 1319$(window).on('load',function(){$('[data-spy="affix"]').each(function(){var $spy=$(this) 1320var data=$spy.data() 1321data.offset=data.offset||{} 1322if(data.offsetBottom!=null)data.offset.bottom=data.offsetBottom 1323if(data.offsetTop!=null)data.offset.top=data.offsetTop 1324Plugin.call($spy,data)})})}(jQuery)}),
1324"./resources/js/main.js": 1325/*!******************************!*\ 1326 !*** ./resources/js/main.js ***! 1327 \******************************/ 1328/*! no static exports found */ 1329(function(module,exports,__webpack_require__){__webpack_require__(/*! ../../../redferntheme/resources/js/main */"../redferntheme/resources/js/main.js");__webpack_require__(/*! bootstrap-sass */"./node_modules/bootstrap-sass/assets/javascripts/bootstrap.js")}),
1329"./resources/sass/login.scss": 1330/*!***********************************!*\ 1331 !*** ./resources/sass/login.scss ***! 1332 \***********************************/ 1333/*! no static exports found */ 1334(function(module,exports){}),
1334"./resources/sass/style.scss": 1335/*!***********************************!*\ 1336 !*** ./resources/sass/style.scss ***! 1337 \***********************************/ 1338/*! no static exports found */ 1339(function(module,exports){})
1339,0: 1340/*!********************************************************************************************!*\ 1341 !*** multi ./resources/js/main.js ./resources/sass/style.scss ./resources/sass/login.scss ***! 1342 \********************************************************************************************/ 1343/*! no static exports found */ 1344(function(module,exports,__webpack_require__){__webpack_require__(/*! /Applications/MAMP/htdocs/LOCALWEBPROOFS/ecg/wp-content/themes/ecg/resources/js/main.js */"./resources/js/main.js");__webpack_require__(/*! /Applications/MAMP/htdocs/LOCALWEBPROOFS/ecg/wp-content/themes/ecg/resources/sass/style.scss */"./resources/sass/style.scss");module.exports=__webpack_require__(/*! /Applications/MAMP/htdocs/LOCALWEBPROOFS/ecg/wp-content/themes/ecg/resources/sass/login.scss */"./resources/sass/login.scss")})}) 1345;
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.