// source --> http://www.magiaenigma.com/wp-content/themes/customizr/assets/front/js/tc-scripts.min.js var CZRParams=CZRParams||{_disabled:[],DisabledFeatures:{},centerAllImg:1,FancyBoxAutoscale:1,FancyBoxState:1,HasComments:"",LoadBootstrap:1,LoadModernizr:1,SliderDelay:5e3,SliderHover:1,SliderName:"demo",centerSliderImg:1,SmoothScroll:{Enabled:1,Options:{}},anchorSmoothScroll:"linear",anchorSmoothScrollExclude:{simple:["[class*=edd]",".carousel-control",'[data-toggle="modal"]','[data-toggle="dropdown"]','[data-toggle="tooltip"]','[data-toggle="popover"]','[data-toggle="collapse"]','[data-toggle="tab"]',"[class*=upme]","[class*=um-]"],deep:{classes:[],ids:[]}},stickyCustomOffset:{_initial:0,_scrolling:0,options:{_static:!0,_element:""}},stickyHeader:1,dropdowntoViewport:1,timerOnScrollAllBrowsers:1,extLinksStyle:1,extLinksTargetExt:1,extLinksSkipSelectors:{classes:["btn","button"],ids:[]},dropcapEnabled:1,dropcapWhere:{post:0,page:1},dropcapMinWords:50,dropcapSkipSelectors:{tags:["IMG","IFRAME","H1","H2","H3","H4","H5","H6","BLOCKQUOTE","UL","OL"],classes:["btn"],ids:[]},imgSmartLoadEnabled:0,imgSmartLoadOpts:{parentSelectors:[".article-container",".__before_main_wrapper",".widget-front"],opts:{excludeImg:[".tc-holder-img"]}},goldenRatio:1.618,gridGoldenRatioLimit:350,isSecondMenuEnabled:0,secondMenuRespSet:"in-sn-before"};window.addEventListener=window.addEventListener||function(t,e){window.attachEvent("on"+t,e)},Date.now||(Date.now=function(){return(new Date).getTime()}),Object.create||(Object.create=function(t,e){if(void 0!==e)throw"The multiple-argument version of Object.create is not provided by this browser and cannot be shimmed.";function n(){}return n.prototype=t,new n}),Array.prototype.filter||(Array.prototype.filter=function(t){"use strict";if(void 0===this||null===this)throw new TypeError;var e=Object(this),n=e.length>>>0;if("function"!=typeof t)throw new TypeError;for(var i=[],r=arguments.length>=2?arguments[1]:void 0,o=0;o>>0;if("function"!=typeof t)throw new TypeError(t+" is not a function");for(arguments.length>1&&(n=e),i=new Array(a),r=0;r0?n:null}catch(t){return null}},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(n){t(n).trigger(e.end)},supportsTransitionEnd:function(){return Boolean(e)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,n){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var o=n[r],a=e[r],s=a&&i.isElement(a)?"element":(l=a,{}.toString.call(l).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(o).test(s))throw new Error(t.toUpperCase()+': Option "'+r+'" provided type "'+s+'" but expected type "'+o+'".')}var l}};return e=("undefined"==typeof window||!window.QUnit)&&{end:"transitionend"},t.fn.emulateTransitionEnd=n,i.supportsTransitionEnd()&&(t.event.special[i.TRANSITION_END]={bindType:e.end,delegateType:e.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}}),i}(e=e&&e.hasOwnProperty("default")?e.default:e),a=function(t){var e="czrCollapse",n="czr.czrCollapse",a="."+n,s=t.fn[e],l={toggle:!0,parent:""},c={toggle:"boolean",parent:"(string|element)"},d={SHOW:"show"+a,SHOWN:"shown"+a,HIDE:"hide"+a,HIDDEN:"hidden"+a,CLICK_DATA_API:"click"+a+".data-api"},u="show",h="czr-collapse",p="czr-collapsing",f="czr-collapsed",m="width",g="height",_={ACTIVES:".show, .czr-collapsing",DATA_TOGGLE:'[data-toggle="czr-collapse"]'},y=function(){function a(e,n){this._isTransitioning=!1,this._element=e,this._config=this._getConfig(n),this._triggerArray=t.makeArray(t('[data-toggle="czr-collapse"][href="#'+e.id+'"],[data-toggle="czr-collapse"][data-target="#'+e.id+'"]'));for(var i=t(_.DATA_TOGGLE),r=0;r0&&(this._selector=s,this._triggerArray.push(a))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var s=a.prototype;return s.toggle=function(){t(this._element).hasClass(u)?this.hide():this.show()},s.show=function(){var e=this;if(!this._isTransitioning&&!t(this._element).hasClass(u)){var i,r;if(this._parent&&0===(i=t.makeArray(t(this._parent).find(_.ACTIVES).filter('[data-parent="'+this._config.parent+'"]'))).length&&(i=null),!(i&&(r=t(i).not(this._selector).data(n))&&r._isTransitioning)){var s=t.Event(d.SHOW);if(t(this._element).trigger(s),!s.isDefaultPrevented()){i&&(a._jQueryInterface.call(t(i).not(this._selector),"hide"),r||t(i).data(n,null));var l=this._getDimension();t(this._element).removeClass(h).addClass(p),this._element.style[l]=0,this._triggerArray.length>0&&t(this._triggerArray).removeClass(f).attr("aria-expanded",!0),this.setTransitioning(!0);var c=function(){t(e._element).removeClass(p).addClass(h).addClass(u),e._element.style[l]="",e.setTransitioning(!1),t(e._element).trigger(d.SHOWN)};if(o.supportsTransitionEnd()){var m="scroll"+(l[0].toUpperCase()+l.slice(1));t(this._element).one(o.TRANSITION_END,c).emulateTransitionEnd(600),this._element.style[l]=this._element[m]+"px"}else c()}}}},s.hide=function(){var e=this;if(!this._isTransitioning&&t(this._element).hasClass(u)){var n=t.Event(d.HIDE);if(t(this._element).trigger(n),!n.isDefaultPrevented()){var i=this._getDimension();if(this._element.style[i]=this._element.getBoundingClientRect()[i]+"px",o.reflow(this._element),t(this._element).addClass(p).removeClass(h).removeClass(u),this._triggerArray.length>0)for(var r=0;r0&&t(n).toggleClass(f,!i).attr("aria-expanded",i)}},a._getTargetFromElement=function(e){var n=o.getSelectorFromElement(e);return n?t(n)[0]:null},a._jQueryInterface=function(e){return this.each(function(){var i=t(this),o=i.data(n),s=r({},l,i.data(),"object"==typeof e&&e);if(!o&&s.toggle&&/show|hide/.test(e)&&(s.toggle=!1),o||(o=new a(this,s),i.data(n,o)),"string"==typeof e){if(void 0===o[e])throw new TypeError('No method named "'+e+'"');o[e]()}})},i(a,null,[{key:"VERSION",get:function(){return"1.0.1"}},{key:"Default",get:function(){return l}}]),a}();return t(document).on(d.CLICK_DATA_API,_.DATA_TOGGLE,function(e){"A"===e.currentTarget.tagName&&e.preventDefault();var i=t(this),r=o.getSelectorFromElement(this);t(r).each(function(){var e=t(this),r=e.data(n)?"toggle":i.data();y._jQueryInterface.call(e,r)})}),t.fn[e]=y._jQueryInterface,t.fn[e].Constructor=y,t.fn[e].noConflict=function(){return t.fn[e]=s,y._jQueryInterface},y}(e),s=function(t){var e="czr.czrTab",n="."+e,r=t.fn.czrTab,a={HIDE:"hide"+n,HIDDEN:"hidden"+n,SHOW:"show"+n,SHOWN:"shown"+n,CLICK_DATA_API:"click"+n+".data-api"},s="dropdown-menu",l="active",c="disabled",d="fade",u="show",h=".dropdown",p=".nav, .list-group",f=".active",m="> li > .active",g='[data-toggle="czr-tab"], [data-toggle="czr-pill"], [data-toggle="czr-list"]',_=".dropdown-toggle",y="> .dropdown-menu .active",v=function(){function n(t){this._element=t}var r=n.prototype;return r.show=function(){var e=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&t(this._element).hasClass(l)||t(this._element).hasClass(c))){var n,i,r=t(this._element).closest(p)[0],s=o.getSelectorFromElement(this._element);if(r){var d="UL"===r.nodeName?m:f;i=(i=t.makeArray(t(r).find(d)))[i.length-1]}var u=t.Event(a.HIDE,{relatedTarget:this._element}),h=t.Event(a.SHOW,{relatedTarget:i});if(i&&t(i).trigger(u),t(this._element).trigger(h),!h.isDefaultPrevented()&&!u.isDefaultPrevented()){s&&(n=t(s)[0]),this._activate(this._element,r);var g=function(){var n=t.Event(a.HIDDEN,{relatedTarget:e._element}),r=t.Event(a.SHOWN,{relatedTarget:i});t(i).trigger(n),t(e._element).trigger(r)};n?this._activate(n,n.parentNode,g):g()}}},r.dispose=function(){t.removeData(this._element,e),this._element=null},r._activate=function(e,n,i){var r=this,a=("UL"===n.nodeName?t(n).find(m):t(n).children(f))[0],s=i&&o.supportsTransitionEnd()&&a&&t(a).hasClass(d),l=function(){return r._transitionComplete(e,a,i)};a&&s?t(a).one(o.TRANSITION_END,l).emulateTransitionEnd(150):l()},r._transitionComplete=function(e,n,i){if(n){t(n).removeClass(u+" "+l);var r=t(n.parentNode).find(y)[0];r&&t(r).removeClass(l),"tab"===n.getAttribute("role")&&n.setAttribute("aria-selected",!1)}if(t(e).addClass(l),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),o.reflow(e),t(e).addClass(u),e.parentNode&&t(e.parentNode).hasClass(s)){var a=t(e).closest(h)[0];a&&t(a).find(_).addClass(l),e.setAttribute("aria-expanded",!0)}i&&i()},n._jQueryInterface=function(i){return this.each(function(){var r=t(this),o=r.data(e);if(o||(o=new n(this),r.data(e,o)),"string"==typeof i){if(void 0===o[i])throw new TypeError('No method named "'+i+'"');o[i]()}})},i(n,null,[{key:"VERSION",get:function(){return"1.0.1"}}]),n}();return t(document).on(a.CLICK_DATA_API,g,function(e){e.preventDefault(),v._jQueryInterface.call(t(this),"show")}),t.fn.czrTab=v._jQueryInterface,t.fn.czrTab.Constructor=v,t.fn.czrTab.noConflict=function(){return t.fn.czrTab=r,v._jQueryInterface},v}(e);!function(t){if(void 0===t)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1===e[0]&&9===e[1]&&e[2]<1||e[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(e),t.czrUtil=o,t.czrCollapse=a,t.czrTab=s,Object.defineProperty(t,"__esModule",{value:!0})}),function(){function t(t){return function(e,n,i,r){n=v(n,r,4);var o=!C(e)&&y.keys(e),a=(o||e).length,s=t>0?0:a-1;return arguments.length<3&&(i=e[o?o[s]:s],s+=t),function(e,n,i,r,o,a){for(;o>=0&&a>o;o+=t){var s=r?r[o]:o;i=n(i,e[s],s,e)}return i}(e,n,i,o,s,a)}}function e(t){return function(e,n,i){n=w(n,i);for(var r=z(e),o=t>0?0:r-1;o>=0&&r>o;o+=t)if(n(e[o],o,e))return o;return-1}}function n(t,e,n){return function(i,r,o){var a=0,s=z(i);if("number"==typeof o)t>0?a=o>=0?o:Math.max(o+s,a):s=o>=0?Math.min(o+1,s):o+s+1;else if(n&&o&&s)return o=n(i,r),i[o]===r?o:-1;if(r!=r)return o=e(d.call(i,a,s),y.isNaN),o>=0?o+a:-1;for(o=t>0?a:s-1;o>=0&&s>o;o+=t)if(i[o]===r)return o;return-1}}function i(t,e){var n=O.length,i=t.constructor,r=y.isFunction(i)&&i.prototype||s,o="constructor";for(y.has(t,o)&&!y.contains(e,o)&&e.push(o);n--;)o=O[n],o in t&&t[o]!==r[o]&&!y.contains(e,o)&&e.push(o)}var r=this,o=r._,a=Array.prototype,s=Object.prototype,l=Function.prototype,c=a.push,d=a.slice,u=s.toString,h=s.hasOwnProperty,p=Array.isArray,f=Object.keys,m=l.bind,g=Object.create,_=function(){},y=function(t){return t instanceof y?t:this instanceof y?void(this._wrapped=t):new y(t)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=y),exports._=y):r._=y,y.VERSION="1.8.3";var v=function(t,e,n){if(void 0===e)return t;switch(null==n?3:n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)};case 4:return function(n,i,r,o){return t.call(e,n,i,r,o)}}return function(){return t.apply(e,arguments)}},w=function(t,e,n){return null==t?y.identity:y.isFunction(t)?v(t,e,n):y.isObject(t)?y.matcher(t):y.property(t)};y.iteratee=function(t,e){return w(t,e,1/0)};var b=function(t,e){return function(n){var i=arguments.length;if(2>i||null==n)return n;for(var r=1;i>r;r++)for(var o=arguments[r],a=t(o),s=a.length,l=0;s>l;l++){var c=a[l];e&&void 0!==n[c]||(n[c]=o[c])}return n}},S=function(t){if(!y.isObject(t))return{};if(g)return g(t);_.prototype=t;var e=new _;return _.prototype=null,e},x=function(t){return function(e){return null==e?void 0:e[t]}},k=Math.pow(2,53)-1,z=x("length"),C=function(t){var e=z(t);return"number"==typeof e&&e>=0&&k>=e};y.each=y.forEach=function(t,e,n){e=v(e,n);var i,r;if(C(t))for(i=0,r=t.length;r>i;i++)e(t[i],i,t);else{var o=y.keys(t);for(i=0,r=o.length;r>i;i++)e(t[o[i]],o[i],t)}return t},y.map=y.collect=function(t,e,n){e=w(e,n);for(var i=!C(t)&&y.keys(t),r=(i||t).length,o=Array(r),a=0;r>a;a++){var s=i?i[a]:a;o[a]=e(t[s],s,t)}return o},y.reduce=y.foldl=y.inject=t(1),y.reduceRight=y.foldr=t(-1),y.find=y.detect=function(t,e,n){var i;return void 0!==(i=C(t)?y.findIndex(t,e,n):y.findKey(t,e,n))&&-1!==i?t[i]:void 0},y.filter=y.select=function(t,e,n){var i=[];return e=w(e,n),y.each(t,function(t,n,r){e(t,n,r)&&i.push(t)}),i},y.reject=function(t,e,n){return y.filter(t,y.negate(w(e)),n)},y.every=y.all=function(t,e,n){e=w(e,n);for(var i=!C(t)&&y.keys(t),r=(i||t).length,o=0;r>o;o++){var a=i?i[o]:o;if(!e(t[a],a,t))return!1}return!0},y.some=y.any=function(t,e,n){e=w(e,n);for(var i=!C(t)&&y.keys(t),r=(i||t).length,o=0;r>o;o++){var a=i?i[o]:o;if(e(t[a],a,t))return!0}return!1},y.contains=y.includes=y.include=function(t,e,n,i){return C(t)||(t=y.values(t)),("number"!=typeof n||i)&&(n=0),y.indexOf(t,e,n)>=0},y.invoke=function(t,e){var n=d.call(arguments,2),i=y.isFunction(e);return y.map(t,function(t){var r=i?e:t[e];return null==r?r:r.apply(t,n)})},y.pluck=function(t,e){return y.map(t,y.property(e))},y.where=function(t,e){return y.filter(t,y.matcher(e))},y.findWhere=function(t,e){return y.find(t,y.matcher(e))},y.max=function(t,e,n){var i,r,o=-1/0,a=-1/0;if(null==e&&null!=t)for(var s=0,l=(t=C(t)?t:y.values(t)).length;l>s;s++)i=t[s],i>o&&(o=i);else e=w(e,n),y.each(t,function(t,n,i){((r=e(t,n,i))>a||r===-1/0&&o===-1/0)&&(o=t,a=r)});return o},y.min=function(t,e,n){var i,r,o=1/0,a=1/0;if(null==e&&null!=t)for(var s=0,l=(t=C(t)?t:y.values(t)).length;l>s;s++)i=t[s],o>i&&(o=i);else e=w(e,n),y.each(t,function(t,n,i){r=e(t,n,i),(a>r||1/0===r&&1/0===o)&&(o=t,a=r)});return o},y.shuffle=function(t){for(var e,n=C(t)?t:y.values(t),i=n.length,r=Array(i),o=0;i>o;o++)e=y.random(0,o),e!==o&&(r[o]=r[e]),r[e]=n[o];return r},y.sample=function(t,e,n){return null==e||n?(C(t)||(t=y.values(t)),t[y.random(t.length-1)]):y.shuffle(t).slice(0,Math.max(0,e))},y.sortBy=function(t,e,n){return e=w(e,n),y.pluck(y.map(t,function(t,n,i){return{value:t,index:n,criteria:e(t,n,i)}}).sort(function(t,e){var n=t.criteria,i=e.criteria;if(n!==i){if(n>i||void 0===n)return 1;if(i>n||void 0===i)return-1}return t.index-e.index}),"value")};var E=function(t){return function(e,n,i){var r={};return n=w(n,i),y.each(e,function(i,o){var a=n(i,o,e);t(r,i,a)}),r}};y.groupBy=E(function(t,e,n){y.has(t,n)?t[n].push(e):t[n]=[e]}),y.indexBy=E(function(t,e,n){t[n]=e}),y.countBy=E(function(t,e,n){y.has(t,n)?t[n]++:t[n]=1}),y.toArray=function(t){return t?y.isArray(t)?d.call(t):C(t)?y.map(t,y.identity):y.values(t):[]},y.size=function(t){return null==t?0:C(t)?t.length:y.keys(t).length},y.partition=function(t,e,n){e=w(e,n);var i=[],r=[];return y.each(t,function(t,n,o){(e(t,n,o)?i:r).push(t)}),[i,r]},y.first=y.head=y.take=function(t,e,n){return null==t?void 0:null==e||n?t[0]:y.initial(t,t.length-e)},y.initial=function(t,e,n){return d.call(t,0,Math.max(0,t.length-(null==e||n?1:e)))},y.last=function(t,e,n){return null==t?void 0:null==e||n?t[t.length-1]:y.rest(t,Math.max(0,t.length-e))},y.rest=y.tail=y.drop=function(t,e,n){return d.call(t,null==e||n?1:e)},y.compact=function(t){return y.filter(t,y.identity)};var A=function(t,e,n,i){for(var r=[],o=0,a=i||0,s=z(t);s>a;a++){var l=t[a];if(C(l)&&(y.isArray(l)||y.isArguments(l))){e||(l=A(l,e,n));var c=0,d=l.length;for(r.length+=d;d>c;)r[o++]=l[c++]}else n||(r[o++]=l)}return r};y.flatten=function(t,e){return A(t,e,!1)},y.without=function(t){return y.difference(t,d.call(arguments,1))},y.uniq=y.unique=function(t,e,n,i){y.isBoolean(e)||(i=n,n=e,e=!1),null!=n&&(n=w(n,i));for(var r=[],o=[],a=0,s=z(t);s>a;a++){var l=t[a],c=n?n(l,a,t):l;e?(a&&o===c||r.push(l),o=c):n?y.contains(o,c)||(o.push(c),r.push(l)):y.contains(r,l)||r.push(l)}return r},y.union=function(){return y.uniq(A(arguments,!0,!0))},y.intersection=function(t){for(var e=[],n=arguments.length,i=0,r=z(t);r>i;i++){var o=t[i];if(!y.contains(e,o)){for(var a=1;n>a&&y.contains(arguments[a],o);a++);a===n&&e.push(o)}}return e},y.difference=function(t){var e=A(arguments,!0,!0,1);return y.filter(t,function(t){return!y.contains(e,t)})},y.zip=function(){return y.unzip(arguments)},y.unzip=function(t){for(var e=t&&y.max(t,z).length||0,n=Array(e),i=0;e>i;i++)n[i]=y.pluck(t,i);return n},y.object=function(t,e){for(var n={},i=0,r=z(t);r>i;i++)e?n[t[i]]=e[i]:n[t[i][0]]=t[i][1];return n},y.findIndex=e(1),y.findLastIndex=e(-1),y.sortedIndex=function(t,e,n,i){for(var r=(n=w(n,i,1))(e),o=0,a=z(t);a>o;){var s=Math.floor((o+a)/2);n(t[s])o;o++,t+=n)r[o]=t;return r};var T=function(t,e,n,i,r){if(!(i instanceof e))return t.apply(n,r);var o=S(t.prototype),a=t.apply(o,r);return y.isObject(a)?a:o};y.bind=function(t,e){if(m&&t.bind===m)return m.apply(t,d.call(arguments,1));if(!y.isFunction(t))throw new TypeError("Bind must be called on a function");var n=d.call(arguments,2),i=function(){return T(t,i,e,this,n.concat(d.call(arguments)))};return i},y.partial=function(t){var e=d.call(arguments,1),n=function(){for(var i=0,r=e.length,o=Array(r),a=0;r>a;a++)o[a]=e[a]===y?arguments[i++]:e[a];for(;i=i)throw new Error("bindAll must be passed function names");for(e=1;i>e;e++)n=arguments[e],t[n]=y.bind(t[n],t);return t},y.memoize=function(t,e){var n=function(i){var r=n.cache,o=""+(e?e.apply(this,arguments):i);return y.has(r,o)||(r[o]=t.apply(this,arguments)),r[o]};return n.cache={},n},y.delay=function(t,e){var n=d.call(arguments,2);return setTimeout(function(){return t.apply(null,n)},e)},y.defer=y.partial(y.delay,y,1),y.throttle=function(t,e,n){var i,r,o,a=null,s=0;n||(n={});var l=function(){s=!1===n.leading?0:y.now(),a=null,o=t.apply(i,r),a||(i=r=null)};return function(){var c=y.now();s||!1!==n.leading||(s=c);var d=e-(c-s);return i=this,r=arguments,0>=d||d>e?(a&&(clearTimeout(a),a=null),s=c,o=t.apply(i,r),a||(i=r=null)):a||!1===n.trailing||(a=setTimeout(l,d)),o}},y.debounce=function(t,e,n){var i,r,o,a,s,l=function(){var c=y.now()-a;e>c&&c>=0?i=setTimeout(l,e-c):(i=null,n||(s=t.apply(o,r),i||(o=r=null)))};return function(){o=this,r=arguments,a=y.now();var c=n&&!i;return i||(i=setTimeout(l,e)),c&&(s=t.apply(o,r),o=r=null),s}},y.wrap=function(t,e){return y.partial(e,t)},y.negate=function(t){return function(){return!t.apply(this,arguments)}},y.compose=function(){var t=arguments,e=t.length-1;return function(){for(var n=e,i=t[e].apply(this,arguments);n--;)i=t[n].call(this,i);return i}},y.after=function(t,e){return function(){return--t<1?e.apply(this,arguments):void 0}},y.before=function(t,e){var n;return function(){return--t>0&&(n=e.apply(this,arguments)),1>=t&&(e=null),n}},y.once=y.partial(y.before,2);var P=!{toString:null}.propertyIsEnumerable("toString"),O=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];y.keys=function(t){if(!y.isObject(t))return[];if(f)return f(t);var e=[];for(var n in t)y.has(t,n)&&e.push(n);return P&&i(t,e),e},y.allKeys=function(t){if(!y.isObject(t))return[];var e=[];for(var n in t)e.push(n);return P&&i(t,e),e},y.values=function(t){for(var e=y.keys(t),n=e.length,i=Array(n),r=0;n>r;r++)i[r]=t[e[r]];return i},y.mapObject=function(t,e,n){e=w(e,n);for(var i,r=y.keys(t),o=r.length,a={},s=0;o>s;s++)i=r[s],a[i]=e(t[i],i,t);return a},y.pairs=function(t){for(var e=y.keys(t),n=e.length,i=Array(n),r=0;n>r;r++)i[r]=[e[r],t[e[r]]];return i},y.invert=function(t){for(var e={},n=y.keys(t),i=0,r=n.length;r>i;i++)e[t[n[i]]]=n[i];return e},y.functions=y.methods=function(t){var e=[];for(var n in t)y.isFunction(t[n])&&e.push(n);return e.sort()},y.extend=b(y.allKeys),y.extendOwn=y.assign=b(y.keys),y.findKey=function(t,e,n){e=w(e,n);for(var i,r=y.keys(t),o=0,a=r.length;a>o;o++)if(i=r[o],e(t[i],i,t))return i},y.pick=function(t,e,n){var i,r,o={},a=t;if(null==a)return o;y.isFunction(e)?(r=y.allKeys(a),i=v(e,n)):(r=A(arguments,!1,!1,1),i=function(t,e,n){return e in n},a=Object(a));for(var s=0,l=r.length;l>s;s++){var c=r[s],d=a[c];i(d,c,a)&&(o[c]=d)}return o},y.omit=function(t,e,n){if(y.isFunction(e))e=y.negate(e);else{var i=y.map(A(arguments,!1,!1,1),String);e=function(t,e){return!y.contains(i,e)}}return y.pick(t,e,n)},y.defaults=b(y.allKeys,!0),y.create=function(t,e){var n=S(t);return e&&y.extendOwn(n,e),n},y.clone=function(t){return y.isObject(t)?y.isArray(t)?t.slice():y.extend({},t):t},y.tap=function(t,e){return e(t),t},y.isMatch=function(t,e){var n=y.keys(e),i=n.length;if(null==t)return!i;for(var r=Object(t),o=0;i>o;o++){var a=n[o];if(e[a]!==r[a]||!(a in r))return!1}return!0};var D=function(t,e,n,i){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return t===e;t instanceof y&&(t=t._wrapped),e instanceof y&&(e=e._wrapped);var r=u.call(t);if(r!==u.call(e))return!1;switch(r){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e}var o="[object Array]"===r;if(!o){if("object"!=typeof t||"object"!=typeof e)return!1;var a=t.constructor,s=e.constructor;if(a!==s&&!(y.isFunction(a)&&a instanceof a&&y.isFunction(s)&&s instanceof s)&&"constructor"in t&&"constructor"in e)return!1}n=n||[],i=i||[];for(var l=n.length;l--;)if(n[l]===t)return i[l]===e;if(n.push(t),i.push(e),o){if((l=t.length)!==e.length)return!1;for(;l--;)if(!D(t[l],e[l],n,i))return!1}else{var c,d=y.keys(t);if(l=d.length,y.keys(e).length!==l)return!1;for(;l--;)if(c=d[l],!y.has(e,c)||!D(t[c],e[c],n,i))return!1}return n.pop(),i.pop(),!0};y.isEqual=function(t,e){return D(t,e)},y.isEmpty=function(t){return null==t||(C(t)&&(y.isArray(t)||y.isString(t)||y.isArguments(t))?0===t.length:0===y.keys(t).length)},y.isElement=function(t){return!(!t||1!==t.nodeType)},y.isArray=p||function(t){return"[object Array]"===u.call(t)},y.isObject=function(t){var e=typeof t;return"function"===e||"object"===e&&!!t},y.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(t){y["is"+t]=function(e){return u.call(e)==="[object "+t+"]"}}),y.isArguments(arguments)||(y.isArguments=function(t){return y.has(t,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(y.isFunction=function(t){return"function"==typeof t||!1}),y.isFinite=function(t){return isFinite(t)&&!isNaN(parseFloat(t))},y.isNaN=function(t){return y.isNumber(t)&&t!==+t},y.isBoolean=function(t){return!0===t||!1===t||"[object Boolean]"===u.call(t)},y.isNull=function(t){return null===t},y.isUndefined=function(t){return void 0===t},y.has=function(t,e){return null!=t&&h.call(t,e)},y.noConflict=function(){return r._=o,this},y.identity=function(t){return t},y.constant=function(t){return function(){return t}},y.noop=function(){},y.property=x,y.propertyOf=function(t){return null==t?function(){}:function(e){return t[e]}},y.matcher=y.matches=function(t){return t=y.extendOwn({},t),function(e){return y.isMatch(e,t)}},y.times=function(t,e,n){var i=Array(Math.max(0,t));e=v(e,n,1);for(var r=0;t>r;r++)i[r]=e(r);return i},y.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},y.now=Date.now||function(){return(new Date).getTime()};var L={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},M=y.invert(L),N=function(t){var e=function(e){return t[e]},n="(?:"+y.keys(t).join("|")+")",i=RegExp(n),r=RegExp(n,"g");return function(t){return t=null==t?"":""+t,i.test(t)?t.replace(r,e):t}};y.escape=N(L),y.unescape=N(M),y.result=function(t,e,n){var i=null==t?void 0:t[e];return void 0===i&&(i=n),y.isFunction(i)?i.call(t):i};var I=0;y.uniqueId=function(t){var e=++I+"";return t?t+e:e},y.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var j=/(.)^/,F={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},R=/\\|'|\r|\n|\u2028|\u2029/g,$=function(t){return"\\"+F[t]};y.template=function(t,e,n){!e&&n&&(e=n),e=y.defaults({},e,y.templateSettings);var i=RegExp([(e.escape||j).source,(e.interpolate||j).source,(e.evaluate||j).source].join("|")+"|$","g"),r=0,o="__p+='";t.replace(i,function(e,n,i,a,s){return o+=t.slice(r,s).replace(R,$),r=s+e.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":i?o+="'+\n((__t=("+i+"))==null?'':__t)+\n'":a&&(o+="';\n"+a+"\n__p+='"),e}),o+="';\n",e.variable||(o="with(obj||{}){\n"+o+"}\n"),o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{var a=new Function(e.variable||"obj","_",o)}catch(t){throw t.source=o,t}var s=function(t){return a.call(this,t,y)},l=e.variable||"obj";return s.source="function("+l+"){\n"+o+"}",s},y.chain=function(t){var e=y(t);return e._chain=!0,e};var H=function(t,e){return t._chain?y(e).chain():e};y.mixin=function(t){y.each(y.functions(t),function(e){var n=y[e]=t[e];y.prototype[e]=function(){var t=[this._wrapped];return c.apply(t,arguments),H(this,n.apply(y,t))}})},y.mixin(y),y.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var e=a[t];y.prototype[t]=function(){var n=this._wrapped;return e.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0],H(this,n)}}),y.each(["concat","join","slice"],function(t){var e=a[t];y.prototype[t]=function(){return H(this,e.apply(this._wrapped,arguments))}}),y.prototype.value=function(){return this._wrapped},y.prototype.valueOf=y.prototype.toJSON=y.prototype.value,y.prototype.toString=function(){return""+this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return y})}.call(this),function(t){["Width","Height"].map(function(e){var n=e.toLowerCase();t.fn["original"+e]="natural"+e in new Image?function(){return this[0]["natural"+e]}:function(){var e=function(e,n){var i=t(e).attr(n);return void 0!==typeof i&&i}(this,n);if(e)return e;var i,r=this[0];return"img"===r.tagName.toLowerCase()&&((i=new Image).src=r.src,e=i[n]),e}})}(jQuery),function(t){var e="addDropCap",n={wrapper:".entry-content",minwords:50,skipSelectors:{tags:["IMG","IFRAME","H1","H2","H3","H4","H5","H6","BLOCKQUOTE"],classes:[],ids:[]}};function i(i,r){this.element=i,this.options=t.extend({},n,r),this._defaults=n,this._name=e,this.init()}i.prototype.init=function(){var t=this._get_dropcap_el();t&&this.options.minwords<=this._countWords(t.text())&&this._may_be_add_dc(t)},i.prototype._get_dropcap_el=function(e){var n=e||t(this.options.wrapper).find(this.element).first(),i=this._get_real_text(n.text());return!this._is_authorized(n)&&n.next().length?this._get_dropcap_el(n.next()):this._is_authorized(n)&&i?n:n.next().length?this._get_dropcap_el(n.next()):void 0},i.prototype._get_real_text=function(t){return t.replace(/ /g,"").replace(/ /g,""),this._removeSpecChars(t)},i.prototype._is_authorized=function(t){if("function"!=typeof _)return!0;if(t[0]&&t[0].tagName&&this._is_tag_allowed(t)&&this._are_children_tag_allowed(t)&&this._is_selector_allowed(t,["ids","classes"]))return!0},i.prototype._may_be_add_dc=function(t){var e="",n=t.text().replace(/ /g," ").split(" ");if(_.isArray(n)&&(n.length&&(e=n[0]),(e=this._removeSpecChars(e)).charAt(0))){var i=e.charAt(0),r=e.substr(1),o="",a="";o=[i=['',i,""].join(""),r].join(""),a=t.html().replace(e,o),t.html(a)}},i.prototype._is_selector_allowed=function(t,e){if("object"!=typeof this.options.skipSelectors)return!0;var n=this;return 0===e.filter(function(e){return!1===n._is_sel_type_allowed(t,e)}).length},i.prototype._is_sel_type_allowed=function(e,n){if(!this.options.skipSelectors[n]||!t.isArray(this.options.skipSelectors[n]))return!0;var i="ids"==n?"id":"class";if("object"!=typeof this.options.skipSelectors||!this.options.skipSelectors[n]||!t.isArray(this.options.skipSelectors[n]))return!0;var r=e.attr(i)?e.attr(i).split(" "):[],o=this.options.skipSelectors[n],a=r.filter(function(e){return-1!=t.inArray(e,o)}),s="ids"==n?"#":".",l=o.filter(function(t){return 0!==e.find(s+t).length});return 0===t.merge(a,l).length},i.prototype._is_tag_allowed=function(t){return"object"!=typeof this.options.skipSelectors||!_.isArray(this.options.skipSelectors.tags)||-1==_.indexOf(_.map(this.options.skipSelectors.tags,function(t){return t.toUpperCase()}),t[0].tagName)},i.prototype._are_children_tag_allowed=function(t){if("object"!=typeof this.options.skipSelectors||!_.isArray(this.options.skipSelectors.tags))return!0;if(0===t.children().length)return!0;return 0===this.options.skipSelectors.tags.filter(function(e){return 0!==t.find(e).length}).length},i.prototype._countWords=function(t){return"string"!=typeof t?0:(t=t.replace(" "," ")).split(" ").length},i.prototype._removeSpecChars=function(t,e){return e=e||"","string"==typeof t?t.replace(/[^\w-?!\u00bf-\u00ff]/g,e):""},i.prototype._stripHtmlTags=function(t){return!(!t||"string"!=typeof t)&&t.replace(/(<([^>]+)>)/gi,"")},t.fn[e]=function(n){return this.each(function(){t.data(this,"plugin_"+e)||t.data(this,"plugin_"+e,new i(this,n))})}}(jQuery),function(t,e){var n="imgSmartLoad",i={load_all_images_on_first_scroll:!1,attribute:["data-src","data-srcset","data-sizes"],excludeImg:[],threshold:200,fadeIn_options:{duration:400},delaySmartLoadEvent:0},r="tc-smart-load-skip";function o(e,o){this.element=e,this.options=t.extend({},i,o),_.isArray(this.options.excludeImg)?this.options.excludeImg.push("."+r):this.options.excludeImg=["."+r],this._defaults=i,this._name=n,this.init()}o.prototype.init=function(){var n=this,i=t("img["+this.options.attribute[0]+"]:not("+this.options.excludeImg.join()+")",this.element);this.increment=1,this.timer=0,i.addClass(r).bind("load_img",{},function(){n._load_img(this)}),t(e).scroll(function(t){n._better_scroll_event_handler(i,t)}),t(e).resize(_.debounce(function(t){n._maybe_trigger_load(i,t)},100)),this._maybe_trigger_load(i)},o.prototype._better_scroll_event_handler=function(t,n){var i=this;this.doingAnimation||(this.doingAnimation=!0,e.requestAnimationFrame(function(){i._maybe_trigger_load(t,n),i.doingAnimation=!1}))},o.prototype._maybe_trigger_load=function(e,n){var i=this;e.filter(function(t,e){return i._is_visible(e,n)}).map(function(e,n){t(n).trigger("load_img")})},o.prototype._is_visible=function(n,i){var r=t(n),o=t(e).scrollTop(),a=o+t(e).height(),s=r.offset().top,l=s+r.height(),c=this.options.threshold;return!(!i||"scroll"!=i.type||!this.options.load_all_images_on_first_scroll)||l>=o-c&&s<=a+c},o.prototype._load_img=function(e){var n=t(e),i=n.attr(this.options.attribute[0]),r=n.attr(this.options.attribute[1]),o=n.attr(this.options.attribute[2]),a=this;n.parent().addClass("smart-loading"),n.unbind("load_img").hide().removeAttr(this.options.attribute.join(" ")).attr("sizes",o).attr("srcset",r).attr("src",i).load(function(){if(n.hasClass("tc-smart-loaded")||n.fadeIn(a.options.fadeIn_options).addClass("tc-smart-loaded"),void 0!==n.attr("data-tcjp-recalc-dims")&&!1!==n.attr("data-tcjp-recalc-dims")){var t=n.originalWidth(),e=n.originalHeight();if(2!=_.size(_.filter([t,e],function(t){return _.isNumber(parseInt(t,10))&&t>1})))return;n.removeAttr("data-tcjp-recalc-dims scale"),n.attr("width",t),n.attr("height",e)}n.trigger("smartload"),n.data("czr-smart-loaded",!0)}),n[0].complete&&n.load(),n.parent().removeClass("smart-loading")},t.fn[n]=function(e){return this.each(function(){t.data(this,"plugin_"+n)||t.data(this,"plugin_"+n,new o(this,e))})}}(jQuery,window),function(t){var e={addIcon:!0,iconClassName:"tc-external",newTab:!0,skipSelectors:{classes:[],ids:[]},skipChildTags:["IMG"]};function n(n,i){this.$_el=t(n),this.options=t.extend({},e,i),this._href=t.trim(this.$_el.attr("href")),this.init()}n.prototype.init=function(){var t=this.$_el.next("."+this.options.iconClassName);this._is_eligible()?(this.options.addIcon&&0===t.length&&this.$_el.after(''),this.options.newTab&&"_blank"!=this.$_el.attr("target")&&this.$_el.attr("target","_blank")):t.length&&t.remove()},n.prototype._is_eligible=function(){var e=this;if(this._is_external(this._href)&&this._is_first_child_tag_allowed()&&2==["ids","classes"].filter(function(t){return e._is_selector_allowed(t)}).length){var n=!0;return t.each(this.$_el.parents(),function(){if("underline"==t(this).css("textDecoration"))return n=!1,!1}),n}},n.prototype._is_selector_allowed=function(e){if(czrapp&&czrapp.userXP&&czrapp.userXP.isSelectorAllowed)return czrapp.userXP.isSelectorAllowed(this.$_el,this.options.skipSelectors,e);var n="ids"==e?"id":"class",i=this.options.skipSelectors[e];if("object"!=typeof this.options.skipSelectors||!this.options.skipSelectors[e]||!t.isArray(this.options.skipSelectors[e])||0===this.options.skipSelectors[e].length)return!0;if(this.$_el.parents(i.map(function(t){return"id"==n?"#"+t:"."+t}).join(",")).length>0)return!1;if(!this.$_el.attr(n))return!0;return 0===this.$_el.attr(n).split(" ").filter(function(e){return-1!=t.inArray(e,i)}).length},n.prototype._is_first_child_tag_allowed=function(){if(0===this.$_el.children().length)return!0;var e=this.$_el.children().first()[0].tagName,n=this.options.skipChildTags;return!t.isArray(n)||(n=n.map(function(t){return t.toUpperCase()}),-1==t.inArray(e,n))},n.prototype._is_external=function(e){var n=location.host.split(".").slice(-2).join("."),i=new RegExp(n);if(""!==(e=t.trim(e))&&"#"!=e&&this._isValidURL(e))return!i.test(e)},n.prototype._isValidURL=function(t){return/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/.test(t)},t.fn.extLinks=function(e){return this.each(function(){t.data(this,"plugin_extLinks")||t.data(this,"plugin_extLinks",new n(this,e))})}}(jQuery),function(t,e){var n="centerImages",i={enableCentering:!0,onresize:!0,onInit:!0,oncustom:[],$containerToListen:null,imgSel:"img",defaultCSSVal:{width:"auto",height:"auto"},leftAdjust:0,zeroLeftAdjust:0,topAdjust:0,zeroTopAdjust:-2,enableGoldenRatio:!1,goldenRatioLimitHeightTo:350,goldenRatioVal:1.618,skipGoldenRatioClasses:["no-gold-ratio"],disableGRUnder:767,useImgAttr:!1,setOpacityWhenCentered:!1,addCenteredClassWithDelay:0,opacity:1};function r(e,r){this.container=e,this.options=t.extend({},i,r),this._defaults=i,this._name=n,this._customEvt=t.isArray(this.options.oncustom)?this.options.oncustom:this.options.oncustom.split(" "),this.init()}r.prototype.init=function(){var n=this,i=function(i){i=i||"init",n._maybe_apply_golden_r();var r=t(n.options.imgSel,n.container);n.options.enableGoldenRatio&&t(e).bind("resize",{},_.debounce(function(t){n._maybe_apply_golden_r(t)},200)),1<=r.length&&n.options.enableCentering&&n._parse_imgs(r,i)};n.options.onInit&&i(),t.isArray(n._customEvt)&&n._customEvt.map(function(e){(n.options.$containerToListen instanceof t&&1this.options.goldenRatioLimitHeightTo?this.options.goldenRatioLimitHeightTo:e,t(this.container).css({"line-height":e+"px",height:e+"px"}).trigger("golden-ratio-applied")}else t(this.container).attr("style","")},r.prototype._is_window_width_allowed=function(){return t(e).width()>this.options.disableGRUnder-15},r.prototype._parse_imgs=function(n,i){var r=this;if(n.each(function(n,o){var a=t(o);r._pre_img_cent(a,i),r.options.onresize&&!a.data("resize-react-bound")&&(a.data("resize-react-bound",!0),t(e).resize(_.debounce(function(){r._pre_img_cent(a,"resize")},100)))}),t(r.container).attr("data-img-centered-in-container")){var o=parseInt(t(r.container).attr("data-img-centered-in-container"),10)+1;t(r.container).attr("data-img-centered-in-container",o)}else t(r.container).attr("data-img-centered-in-container",1)},r.prototype._pre_img_cent=function(e){var n=this._get_current_state(e),i=this,r=n.current,o=n.prop[r],a=n.prop["h"==r?"v":"h"],s="h"==r?this.options.zeroTopAdjust||0:this.options.zeroLeftAdjust||0,l=function(t){if(t.css(o.dim.name,o.dim.val).css(a.dim.name,i.options.defaultCSSVal[a.dim.name]||"auto").css(o.dir.name,o.dir.val).css(a.dir.name,s),0!==i.options.addCenteredClassWithDelay&&_.isNumber(i.options.addCenteredClassWithDelay)?_.delay(function(){t.addClass(o._class).removeClass(a._class)},i.options.addCenteredClassWithDelay):t.addClass(o._class).removeClass(a._class),t.attr("data-img-centered")){var e=parseInt(t.attr("data-img-centered"),10)+1;t.attr("data-img-centered",e)}else t.attr("data-img-centered",1);return t};this.options.setOpacityWhenCentered?t.when(l(e)).done(function(t){t.css("opacity",i.options.opacity)}):_.delay(function(){l(e)},0)},r.prototype._get_current_state=function(e){var n=e.closest(this.container).outerWidth(),i=t(this.container).outerHeight(),r=this._get_img_dim(e,"x"),o=this._get_img_dim(e,"y"),a=o*i!=0?Math.round(r/o*i):n,s=r*n!=0?Math.round(o/r*n):i,l="h";0!=n*r&&(l=i/n>=o/r?"h":"v");return{current:l,prop:{h:{dim:{name:"height",val:i},dir:{name:"left",val:(n-a)/2+(this.options.leftAdjust||0)},_class:"h-centered"},v:{dim:{name:"width",val:n},dir:{name:"top",val:(i-s)/2+(this.options.topAdjust||0)},_class:"v-centered"}}}},r.prototype._get_img_dim=function(t,e){if(!this.options.useImgAttr)return"x"==e?t.outerWidth():t.outerHeight();if(t.is(":visible"))return"x"==e?t.outerWidth():t.outerHeight();if("x"==e){var n=t.originalWidth();return void 0===typeof n?0:n}if("y"==e){var i=t.originalHeight();return void 0===typeof i?0:i}},r.prototype._is_selector_allowed=function(){if(!t(this.container).attr("class"))return!0;if(!this.options.skipGoldenRatioClasses||!t.isArray(this.options.skipGoldenRatioClasses))return!0;var e=t(this.container).attr("class").split(" "),n=this.options.skipGoldenRatioClasses;return 0===e.filter(function(e){return-1!=t.inArray(e,n)}).length},t.fn[n]=function(e){return this.each(function(){t.data(this,"plugin_"+n)||t.data(this,"plugin_"+n,new r(this,e))})}}(jQuery,window),function(t,e,n){var i="czrParallax",r={parallaxRatio:.5,parallaxDirection:1,parallaxOverflowHidden:!0,oncustom:[],backgroundClass:"image",matchMedia:"only screen and (max-width: 768px)"};function o(e,n){this.element=t(e),this.element_wrapper=this.element.closest(".parallax-wrapper"),this.options=t.extend({},r,n,this.parseElementDataOptions()),this._defaults=r,this._name=i,this.init()}o.prototype.parseElementDataOptions=function(){return this.element.data()},o.prototype.init=function(){this.$_document=t(document),this.$_window=czrapp?czrapp.$_window:t(e),this.doingAnimation=!1,this.initWaypoints(),this.stageParallaxElements(),this._bind_evt()},o.prototype._bind_evt=function(){n.bindAll(this,"maybeParallaxMe","parallaxMe")},o.prototype.stageParallaxElements=function(){if(this.element.css({position:this.element.hasClass(this.options.backgroundClass)?"absolute":"relative","will-change":"transform"}),this.options.parallaxOverflowHidden){var t=this.element_wrapper;t.length&&t.css("overflow","hidden")}},o.prototype.initWaypoints=function(){var t=this;this.way_start=new Waypoint({element:t.element_wrapper.length?t.element_wrapper:t.element,handler:function(){t.maybeParallaxMe(),t.element.hasClass("parallaxing")?(t.element.removeClass("parallaxing"),t.$_window.off("scroll",t.maybeParallaxMe),t.doingAnimation=!1,t.element.css("top",0)):(t.$_window.on("scroll",t.maybeParallaxMe),t.element.addClass("parallaxing"))}}),this.way_stop=new Waypoint({element:t.element_wrapper.length?t.element_wrapper:t.element,handler:function(){t.maybeParallaxMe(),t.element.hasClass("parallaxing")?(t.element.removeClass("parallaxing"),t.$_window.off("scroll",t.maybeParallaxMe),t.doingAnimation=!1):(t.$_window.on("scroll",t.maybeParallaxMe),t.element.addClass("parallaxing"))},offset:function(){return-this.adapter.outerHeight()}})},o.prototype.maybeParallaxMe=function(){var t=this;if(n.isFunction(e.matchMedia)&&matchMedia(t.options.matchMedia).matches)return this.setTopPosition();this.doingAnimation||(this.doingAnimation=!0,e.requestAnimationFrame(function(){t.parallaxMe(),t.doingAnimation=!1}))},o.prototype.setTopPosition=function(t){t=t||0,this.element.css({transform:"translate3d(0px, "+t+"px, .01px)","-webkit-transform":"translate3d(0px, "+t+"px, .01px)"})},o.prototype.parallaxMe=function(){var t=this.options.parallaxRatio,e=this.options.parallaxDirection,n=t*e*(this.$_document.scrollTop()-this.way_start.triggerPoint);this.setTopPosition(e*n<0?0:n)},t.fn[i]=function(e){return this.each(function(){t.data(this,"plugin_"+i)||t.data(this,"plugin_"+i,new o(this,e))})}}(jQuery,window,_),function(t,e,n,i){var r={filter_opacity:.8,svg_opacity:.8,animation_duration:400};t.fn.animateSvg=function(n){return n=t.extend({},r,n),this.each(function(){t.data(this,"plugin_animateSvg")||t.data(this,"plugin_animateSvg",function(n){var r=t(this).attr("id");i.isUndefined(r)||i.isEmpty(r)||"function"!=typeof Vivus?e.czrapp&&czrapp.consoleLog("An svg icon could not be animated with Vivus."):(t("[id="+r+"]").length>1&&e.czrapp&&czrapp.consoleLog("Svg icons must have a unique css #id to be animated. Multiple id found for : "+r),t.when(t("#"+r).siblings(".filter-placeholder").length?t("#"+r).css("opacity",n.svg_opacity).siblings(".filter-placeholder").css("opacity",n.filter_opacity):t("#"+r).css("opacity",n.svg_opacity)).done(function(){new Vivus(r,{type:"delayed",duration:n.animation_duration})}))}.call(this,n))})}}(jQuery,window,document,_),function(){for(var t=0,e=["ms","moz","webkit","o"],n=0;n=1?o.height()/(i*r.parentCompressorFactor):n.width()/(10*i),parseFloat(r.maxFontSize)),parseFloat(r.minFontSize)),e=Math.max(e*r.fontRatio,parseFloat(r.minFontSize)),n.css("font-size",e),n.css("line-height",1.45*e+"px")};a(),t(window).on("resize.czrFittext orientationchange.czrFittext",a)})}}(jQuery),function(){var t,e,n={frameRate:150,animationTime:400,stepSize:120,pulseAlgorithm:!0,pulseScale:4,pulseNormalize:1,accelerationDelta:20,accelerationMax:1,keyboardSupport:!0,arrowScroll:50,touchpadSupport:!0,fixedBackground:!0,excluded:""},i=n,r=!1,o=!1,a={x:0,y:0},s=!1,l=document.documentElement,c=[],d=/^Mac/.test(navigator.platform),u={left:37,up:38,right:39,down:40,spacebar:32,pageup:33,pagedown:34,end:35,home:36};i=n;function h(){if(!s&&document.body){s=!0;var n=document.body,a=document.documentElement,c=window.innerHeight,d=n.scrollHeight;if(l=document.compatMode.indexOf("CSS")>=0?a:n,t=n,i.keyboardSupport&&P("keydown",v),top!=self)o=!0;else if(d>c&&(n.offsetHeight<=c||a.offsetHeight<=c)){var u=document.createElement("div");u.style.cssText="position:absolute; z-index:-10000; top:0; left:0; right:0; height:"+l.scrollHeight+"px",document.body.appendChild(u);var h,p=function(){h||(h=setTimeout(function(){r||(u.style.height="0",u.style.height=l.scrollHeight+"px",h=null)},500))};setTimeout(p,10);if((e=new j(p)).observe(n,{attributes:!0,childList:!0,characterData:!1}),l.offsetHeight<=c){var f=document.createElement("div");f.style.clear="both",n.appendChild(f)}}i.fixedBackground||r||(n.style.backgroundAttachment="scroll",a.style.backgroundAttachment="scroll")}}var p=[],f=!1,m=Date.now();function g(t,e,n){o=n,r=(r=e)>0?1:-1,o=o>0?1:-1,(a.x!==r||a.y!==o)&&(a.x=r,a.y=o,p=[],m=0);var r,o;if(1!=i.accelerationMax){var s=Date.now()-m;if(s1&&(l=Math.min(l,i.accelerationMax),e*=l,n*=l)}m=Date.now()}if(p.push({x:e,y:n,lastX:e<0?.99:-.99,lastY:n<0?.99:-.99,start:Date.now()}),!f){var c=t===document.body,d=function(r){for(var o=Date.now(),a=0,s=0,l=0;l=i.animationTime,g=m?1:h/i.animationTime;i.pulseAlgorithm&&(g=$(g));var _=u.x*g-u.lastX>>0,y=u.y*g-u.lastY>>0;a+=_,s+=y,u.lastX+=_,u.lastY+=y,m&&(p.splice(l,1),l--)}c?window.scrollBy(a,s):(a&&(t.scrollLeft+=a),s&&(t.scrollTop+=s)),e||n||(p=[]),p.length?I(d,t,1e3/i.frameRate+1):f=!1};I(d,t,0),f=!0}}function y(e){s||h();var n=e.target,r=C(n);if(!r||e.defaultPrevented||e.ctrlKey)return!0;if(D(t,"embed")||D(n,"embed")&&/\.pdf/i.test(n.src)||D(t,"object"))return!0;var o=-e.wheelDeltaX||e.deltaX||0,a=-e.wheelDeltaY||e.deltaY||0;if(d&&(e.wheelDeltaX&&M(e.wheelDeltaX,120)&&(o=e.wheelDeltaX/Math.abs(e.wheelDeltaX)*-120),e.wheelDeltaY&&M(e.wheelDeltaY,120)&&(a=e.wheelDeltaY/Math.abs(e.wheelDeltaY)*-120)),o||a||(a=-e.wheelDelta||0),1===e.deltaMode&&(o*=40,a*=40),!i.touchpadSupport&&function(t){if(!t)return;c.length||(c=[t,t,t]);return t=Math.abs(t),c.push(t),c.shift(),clearTimeout(L),L=setTimeout(function(){window.localStorage&&(localStorage.SS_deltaBuffer=c.join(","))},1e3),!N(120)&&!N(100)}(a))return!0;Math.abs(o)>1.2&&(o*=i.stepSize/120),Math.abs(a)>1.2&&(a*=i.stepSize/120),g(r,o,a),e.preventDefault(),k()}function v(e){var n=e.target,r=e.ctrlKey||e.altKey||e.metaKey||e.shiftKey&&e.keyCode!==u.spacebar;document.contains(t)||(t=document.activeElement);var o=/^(button|submit|radio|checkbox|file|color|image)$/i;if(/^(textarea|select|embed|object)$/i.test(n.nodeName)||D(n,"input")&&!o.test(n.type)||D(t,"video")||function(t){var e=t.target,n=!1;if(-1!=document.URL.indexOf("www.youtube.com/watch"))do{if(n=e.classList&&e.classList.contains("html5-video-controls"))break}while(e=e.parentNode);return n}(e)||n.isContentEditable||e.defaultPrevented||r)return!0;if((D(n,"button")||D(n,"input")&&o.test(n.type))&&e.keyCode===u.spacebar)return!0;var a=0,s=0,l=C(t),c=l.clientHeight;switch(l==document.body&&(c=window.innerHeight),e.keyCode){case u.up:s=-i.arrowScroll;break;case u.down:s=i.arrowScroll;break;case u.spacebar:s=-(e.shiftKey?1:-1)*c*.9;break;case u.pageup:s=.9*-c;break;case u.pagedown:s=.9*c;break;case u.home:s=-l.scrollTop;break;case u.end:var d=l.scrollHeight-l.scrollTop-c;s=d>0?d+10:0;break;case u.left:a=-i.arrowScroll;break;case u.right:a=i.arrowScroll;break;default:return!0}g(l,a,s),e.preventDefault(),k()}function w(e){t=e.target}var b,S=function(){var t=0;return function(e){return e.uniqueID||(e.uniqueID=t++)}}(),x={};function k(){clearTimeout(b),b=setInterval(function(){x={}},1e3)}function z(t,e){for(var n=t.length;n--;)x[S(t[n])]=e;return e}function C(t){var e=[],n=document.body,i=l.scrollHeight;do{var r=x[S(t)];if(r)return z(e,r);if(e.push(t),i===t.scrollHeight){var a=A(l)&&A(n)||T(l);if(o&&E(l)||!o&&a)return z(e,F())}else if(E(t)&&T(t))return z(e,t)}while(t=t.parentElement)}function E(t){return t.clientHeight+10=1?1:t<=0?0:(1==i.pulseNormalize&&(i.pulseNormalize/=R(1)),R(t))}var H;"onwheel"in document.createElement("div")?H="wheel":"onmousewheel"in document.createElement("div")&&(H="mousewheel");function W(t){return H&&(P(H,y),P("mousedown",w),t?h():P("load",h)),!!H}(smoothScroll=function(t){smoothScroll._setCustomOptions(t),W()&&czrapp.$_body.addClass("tc-smoothscroll")})._cleanUp=function(){e&&e.disconnect(),O(H,y),O("mousedown",w),O("keydown",v),czrapp.$_body.removeClass("tc-smoothscroll")},smoothScroll._maybeFire=function(){W(!0)&&czrapp.$_body.addClass("tc-smoothscroll")},smoothScroll._setCustomOptions=function(t){i=t?_.extend(i,t):i}}();var smoothScroll,tcOutline;!function(t){tcOutline=function(){var e=t.createElement("STYLE"),n="addEventListener"in t,i=function(e,i){n?t.addEventListener(e,i):t.attachEvent("on"+e,i)},r=function(t){e.styleSheet?e.styleSheet.cssText=t:e.innerHTML=t};t.getElementsByTagName("HEAD")[0].appendChild(e),i("mousedown",function(){r("input[type=file]:focus,input[type=radio]:focus,input[type=checkbox]:focus,select:focus,span:focus,a:focus,button{outline:none!important;-webkit-box-shadow:none!important;box-shadow:none!important;}input[type=file]::-moz-focus-inner,input[type=radio]::-moz-focus-inner,input[type=checkbox]::-moz-focus-inner,select::-moz-focus-inner,a::-moz-focus-inner{border:0;}")}),i("keydown",function(){r("")})}}(document),function(){"use strict";var t=0,e={};function n(i){if(!i)throw new Error("No options passed to Waypoint constructor");if(!i.element)throw new Error("No element option passed to Waypoint constructor");if(!i.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+t,this.options=n.Adapter.extend({},n.defaults,i),this.element=this.options.element,this.adapter=new n.Adapter(this.element),this.callback=i.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=n.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=n.Context.findOrCreateByElement(this.options.context),n.offsetAliases[this.options.offset]&&(this.options.offset=n.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),e[this.key]=this,t+=1}n.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},n.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},n.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete e[this.key]},n.prototype.disable=function(){return this.enabled=!1,this},n.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},n.prototype.next=function(){return this.group.next(this)},n.prototype.previous=function(){return this.group.previous(this)},n.invokeAll=function(t){var n=[];for(var i in e)n.push(e[i]);for(var r=0,o=n.length;ri.oldScroll?i.forward:i.backward;for(var o in this.waypoints[n]){var a=this.waypoints[n][o],s=i.oldScroll=a.triggerPoint;(s&&l||!s&&!l)&&(a.queueTrigger(r),t[a.group.id]=a.group)}}for(var c in t)t[c].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},o.prototype.innerHeight=function(){return this.element==this.element.window?i.viewportHeight():this.adapter.innerHeight()},o.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},o.prototype.innerWidth=function(){return this.element==this.element.window?i.viewportWidth():this.adapter.innerWidth()},o.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var n in this.waypoints[e])t.push(this.waypoints[e][n]);for(var i=0,r=t.length;i-1&&(p=Math.ceil(a.contextDimension*p/100))),l=a.contextScroll-a.contextOffset,h.triggerPoint=m+l-p,c=f=a.oldScroll,u=!c&&!d,!g&&(c&&d)?(h.queueTrigger(a.backward),r[h.group.id]=h.group):!g&&u?(h.queueTrigger(a.forward),r[h.group.id]=h.group):g&&a.oldScroll>=h.triggerPoint&&(h.queueTrigger(a.forward),r[h.group.id]=h.group)}}return i.requestAnimationFrame(function(){for(var t in r)r[t].flushTriggers()}),this},o.findOrCreateByElement=function(t){return o.findByElement(t)||new o(t)},o.refreshAll=function(){for(var t in n)n[t].refresh()},o.findByElement=function(t){return n[t.waypointContextKey]},window.onload=function(){r&&r(),o.refreshAll()},i.requestAnimationFrame=function(e){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t).call(window,e)},i.Context=o}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}var n={vertical:{},horizontal:{}},i=window.Waypoint;function r(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),n[this.axis][this.name]=this}r.prototype.add=function(t){this.waypoints.push(t)},r.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},r.prototype.flushTriggers=function(){for(var n in this.triggerQueues){var i=this.triggerQueues[n],r="up"===n||"left"===n;i.sort(r?e:t);for(var o=0,a=i.length;o-1&&this.waypoints.splice(e,1)},r.prototype.first=function(){return this.waypoints[0]},r.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},r.findOrCreate=function(t){return n[t.axis][t.name]||new r(t)},i.Group=r}(),function(){"use strict";var t=window.jQuery,e=window.Waypoint;function n(e){this.$element=t(e)}t.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(t,e){n.prototype[e]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[e].apply(this.$element,t)}}),t.each(["extend","inArray","isEmptyObject"],function(e,i){n[i]=t[i]}),e.adapters.push({name:"jquery",Adapter:n}),e.Adapter=n}(),function(){"use strict";var t=window.Waypoint;function e(e){return function(){var n=[],i=arguments[0];return e.isFunction(arguments[0])&&((i=e.extend({},arguments[1])).handler=arguments[0]),this.each(function(){var r=e.extend({},i,{element:this});"string"==typeof r.context&&(r.context=e(this).closest(r.context)[0]),n.push(new t(r))}),n}}window.jQuery&&(window.jQuery.fn.waypoint=e(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=e(window.Zepto))}(),function(t,e){function n(n){if(void 0===n)throw new Error('Pathformer [constructor]: "element" parameter is required');if(n.constructor===String&&(n=e.getElementById(n),!n))throw new Error('Pathformer [constructor]: "element" parameter is not related to an existing ID');if(!(n.constructor instanceof t.SVGElement||/^svg$/i.test(n.nodeName)))throw new Error('Pathformer [constructor]: "element" parameter must be a string or a SVGelement');this.el=n,this.scan(n)}function i(t,e,n){this.isReady=!1,this.setElement(t,e),this.setOptions(e),this.setCallback(n),this.isReady&&this.init()}n.prototype.TYPES=["line","ellipse","circle","polygon","polyline","rect"],n.prototype.ATTR_WATCH=["cx","cy","points","r","rx","ry","x","x1","x2","y","y1","y2"],n.prototype.scan=function(t){for(var e,n,i,r,o=t.querySelectorAll(this.TYPES.join(",")),a=0;a=this.duration)throw new Error("Vivus [constructor]: delay must be shorter than duration")},i.prototype.setCallback=function(t){if(t&&t.constructor!==Function)throw new Error('Vivus [constructor]: "callback" parameter must be a function');this.callback=t||function(){}},i.prototype.mapping=function(){var e,n,i,r,o,s,l,c;for(c=s=l=0,n=this.el.querySelectorAll("path"),e=0;e1?n.length-1:1),e=0;e=this.frameLength?(this.stop(),this.currentFrame=this.frameLength,this.trace(),this.selfDestroy&&this.destroy(),this.callback(this)):(this.trace(),this.handle=r(function(){t.drawer()}))},i.prototype.trace=function(){var t,e,n,i;for(i=this.animTimingFunction(this.currentFrame/this.frameLength)*this.frameLength,t=0;t=a+o*(e=e||0)&&a+o>=n},i.prototype.docElem=t.document.documentElement,i.prototype.getViewportH=function(){var e=this.docElem.clientHeight,n=t.innerHeight;return n>e?n:e},i.prototype.scrollY=function(){return t.pageYOffset||this.docElem.scrollTop},r=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||t.msRequestAnimationFrame||function(e){return t.setTimeout(e,1e3/60)},o=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.mozCancelAnimationFrame||t.oCancelAnimationFrame||t.msCancelAnimationFrame||function(e){return t.clearTimeout(e)},a=function(t,e){var n=parseInt(t,10);return n>=0?n:e},"function"==typeof define&&define.amd?define([],function(){return i}):"object"==typeof exports?module.exports=i:t.Vivus=i}(window,document);var czrapp=czrapp||{};!function(t,e){e._printLog=function(n){var i=function(){t("#bulklog").prepend("

"+e._prettyfy({consoleArguments:[n],prettyfy:!1})+"

")};1!=t("#bulk-log").length?t.Deferred(function(){var e=this;t.when(t("#footer").before(t("
",{id:"bulklog"}))).done(function(){t("#bulklog").css({position:"fixed","z-index":"99999","font-size":"0.8em",color:"#000",padding:"5%",width:"90%",height:"20%",overflow:"hidden",bottom:"0",left:"0",background:"yellow"}),e.resolve()})}).promise().done(i):i()},e._truncate=function(t,e){return e=e||150,_.isString(t)?t.length>e?t.substr(0,e-1):t:""};var n=function(t){t=_.extend({bgCol:"#5ed1f5",textCol:"#000",consoleArguments:[]},t);var e=Array.from(t.consoleArguments);return e=_.isEmpty(_.filter(e,function(t){return!_.isString(t)}))?e.join(" "):JSON.stringify(e.join(" ")),["%c "+(n=e,_.isString(n)?n.length>300?n.substr(0,299)+"...":n:""),["background:"+t.bgCol,"color:"+t.textCol,"display: block;"].join(";")];var n};e.consoleLog=function(){e.localized.isDevMode&&(_.isUndefined(console)&&"function"!=typeof window.console.log||(console.log.apply(console,n({consoleArguments:arguments})),console.log("Unstyled console message : ",arguments)))},e.errorLog=function(){_.isUndefined(console)&&"function"!=typeof window.console.log||console.log.apply(console,n({bgCol:"#ffd5a0",textCol:"#000",consoleArguments:arguments}))},e.errare=function(t,i){_.isUndefined(console)&&"function"!=typeof window.console.log||(e.localized.isDevMode?_.isUndefined(i)?console.log.apply(console,n({bgCol:"#ffd5a0",textCol:"#000",consoleArguments:["<"+t+">"]})):(console.log.apply(console,n({bgCol:"#ffd5a0",textCol:"#000",consoleArguments:["<"+t+">"]})),console.log(i),console.log.apply(console,n({bgCol:"#ffd5a0",textCol:"#000",consoleArguments:[""]}))):console.log.apply(console,n({bgCol:"#ffd5a0",textCol:"#000",consoleArguments:[t]})))},e.doAjax=function(n){var i=(n=n||(_.isObject(n)?n:{})).ajaxUrl||e.localized.ajaxUrl,r=e.localized.frontNonce,o=t.Deferred(),a=_.extend({action:"",withNonce:!1},n);return"https:"==document.location.protocol&&(i=i.replace("http://","https://")),_.isEmpty(a.action)||!_.isString(a.action)?(e.errorLog("czrapp.doAjax : unproper action provided"),o.resolve().promise()):(a[r.id]=r.handle,!_.isObject(r)||_.isUndefined(r.id)||_.isUndefined(r.handle)?(e.errorLog("czrapp.doAjax : unproper nonce"),o.resolve().promise()):(t.post(i,a).done(function(t){"0"!==t&&"-1"!==t&&!1!==t.success||(e.errare("czrapp.doAjax : done ajax error for action : "+a.action,t),o.reject(t)),o.resolve(t)}).fail(function(t){e.errare("czrapp.doAjax : failed ajax error for : "+a.action,t),o.reject(t)}),o.promise()))}}(jQuery,czrapp),function(t,e){e.isKeydownButNotEnterEvent=function(t){return"keydown"===t.type&&13!==t.which},e.setupDOMListeners=function(n,i,r){!_.isUndefined(r)&&_.isObject(r)?_.isArray(n)?_.isObject(i)?(i=_.extend({model:{},dom_el:{}},i)).dom_el instanceof jQuery&&1==i.dom_el.length?_.map(n,function(n){_.isString(n.selector)&&!_.isEmpty(n.selector)&&_.isString(n.selector)&&!_.isEmpty(n.selector)?i.dom_el.on(n.trigger,n.selector,function(o,a){if(o.stopPropagation(),!e.isKeydownButNotEnterEvent(o)){o.preventDefault();var s=t.extend(!0,{},i);if(_.has(s,"model")&&_.has(s.model,"id")&&(_.has(r,"get")?s.model=r():s.model=r.getModel(s.model.id)),t.extend(s,{event:n,dom_event:o}),t.extend(s,a),_.has(s,"event")&&_.has(s.event,"actions"))try{e.executeEventActionChain(s,r)}catch(t){e.errorLog("In setupDOMListeners : problem when trying to fire actions : "+s.event.actions),e.errorLog("Error : "+t)}else e.errorLog("executeEventActionChain : missing obj.event or obj.event.actions")}}):e.errorLog("setupDOMListeners : selector must be a string not empty. Aborting setup of action(s) : "+n.actions.join(","))}):e.errorLog("setupDomListeners : dom element should be an existing dom element",i):e.errorLog("setupDomListeners : args should be an object",n):e.errorLog("setupDomListeners : event_map should be an array",i):e.errorLog("setupDomListeners : instance should be an object",i)},e.executeEventActionChain=function(t,n){if("function"==typeof t.event.actions)return t.event.actions.call(n,t);_.isArray(t.event.actions)||(t.event.actions=[t.event.actions]);var i=!1;_.map(t.event.actions,function(r){if(!i){if("function"!=typeof n[r])throw new Error("executeEventActionChain : the action : "+r+" has not been found when firing event : "+t.event.selector);var o=!(!_.has(t,"dom_el")||-1==t.dom_el.length)&&t.dom_el;if(o){o.trigger("before_"+r,_.omit(t,"event"));!1===n[r].call(n,t)&&(i=!0),o.trigger("after_"+r,_.omit(t,"event"))}else e.errorLog("missing dom element")}})}}(jQuery,czrapp);(czrapp=czrapp||{}).methods={},function(t){var e,n,i=Array.prototype.slice;e=function(){},n=function(n,i,r){var o;return o=i&&i.hasOwnProperty("constructor")?i.constructor:function(){return n.apply(this,arguments)},t.extend(o,n),e.prototype=n.prototype,o.prototype=new e,i&&t.extend(o.prototype,i),r&&t.extend(o,r),o.prototype.constructor=o,o.__super__=n.prototype,o},czrapp.Class=function(e,n,i){var r,o=arguments;return e&&n&&czrapp.Class.applicator===e&&(o=n,t.extend(this,i||{})),r=this,this.instance&&(r=function(){return r.instance.apply(r,arguments)},t.extend(r,this)),r.initialize.apply(r,o),r},czrapp.Class.extend=function(t,e){var i=n(this,t,e);return i.extend=this.extend,i},czrapp.Class.applicator={},czrapp.Class.prototype.initialize=function(){},czrapp.Class.prototype.extended=function(t){for(var e=this;void 0!==e.constructor;){if(e.constructor===t)return!0;if(void 0===e.constructor.__super__)return!1;e=e.constructor.__super__}return!1},czrapp.Events={trigger:function(t){return this.topics&&this.topics[t]&&this.topics[t].fireWith(this,i.call(arguments,1)),this},bind:function(e){return this.topics=this.topics||{},this.topics[e]=this.topics[e]||t.Callbacks(),this.topics[e].add.apply(this.topics[e],i.call(arguments,1)),this},unbind:function(t){return this.topics&&this.topics[t]&&this.topics[t].remove.apply(this.topics[t],i.call(arguments,1)),this}},czrapp.Value=czrapp.Class.extend({initialize:function(e,n){this._value=e,this.callbacks=t.Callbacks(),this._dirty=!1,t.extend(this,n||{}),this.set=t.proxy(this.set,this)},instance:function(){return arguments.length?this.set.apply(this,arguments):this.get()},get:function(){return this._value},set:function(e,n){var i=this._value,r=t.Deferred(),o=this,a=[];e=this._setter.apply(this,arguments),e=this.validate(e);var s=_.extend({silent:!1},_.isObject(n)?n:{});return null===e||_.isEqual(i,e)?r.resolveWith(o,[e,i,n]).promise():(this._value=e,this._dirty=!0,!0===s.silent?r.resolveWith(o,[e,i,n]).promise():this._deferreds?(_.each(o._deferreds,function(t){a.push(t.apply(null,[e,i,n]))}),t.when.apply(null,a).fail(function(){czrapp.errorLog("A deferred callback failed in api.Value::set()")}).then(function(){o.callbacks.fireWith(o,[e,i,n]),r.resolveWith(o,[e,i,n])}),r.promise(o)):(this.callbacks.fireWith(this,[e,i,n]),r.resolveWith(o,[e,i,n]).promise(o)))},silent_set:function(t,e){var n=this._value;return t=this._setter.apply(this,arguments),null===(t=this.validate(t))||_.isEqual(n,t)?this:(this._value=t,this._dirty=_.isUndefined(e)||!_.isBoolean(e)?this._dirty:e,this.callbacks.fireWith(this,[t,n,{silent:!0}]),this)},_setter:function(t){return t},setter:function(t){var e=this.get();return this._setter=t,this._value=null,this.set(e),this},resetSetter:function(){return this._setter=this.constructor.prototype._setter,this.set(this.get()),this},validate:function(t){return t},bind:function(){var e=this,n=!1,i=[];return t.each(arguments,function(t,e){n||(n=_.isObject(e)&&e.deferred),_.isFunction(e)&&i.push(e)}),n?(e._deferreds=e._deferreds||[],_.each(i,function(t){_.contains(t,e._deferreds)||e._deferreds.push(t)})):e.callbacks.add.apply(e.callbacks,arguments),this},unbind:function(){return this.callbacks.remove.apply(this.callbacks,arguments),this}}),czrapp.Values=czrapp.Class.extend({defaultConstructor:czrapp.Value,initialize:function(e){t.extend(this,e||{}),this._value={},this._deferreds={}},instance:function(t){return 1===arguments.length?this.value(t):this.when.apply(this,arguments)},value:function(t){return this._value[t]},has:function(t){return void 0!==this._value[t]},add:function(t,e){return this.has(t)?this.value(t):(this._value[t]=e,e.parent=this,e.extended(czrapp.Value)&&e.bind(this._change),this.trigger("add",e),this._deferreds[t]&&this._deferreds[t].resolve(),this._value[t])},create:function(t){return this.add(t,new this.defaultConstructor(czrapp.Class.applicator,i.call(arguments,1)))},each:function(e,n){n=void 0===n?this:n,t.each(this._value,function(t,i){e.call(n,i,t)})},remove:function(t){var e;this.has(t)&&(e=this.value(t),this.trigger("remove",e),e.extended(czrapp.Value)&&e.unbind(this._change),delete e.parent),delete this._value[t],delete this._deferreds[t]},when:function(){var e=this,n=i.call(arguments),r=t.Deferred();return t.isFunction(n[n.length-1])&&r.done(n.pop()),t.when.apply(t,t.map(n,function(n){if(!e.has(n))return e._deferreds[n]||t.Deferred()})).done(function(){var i=t.map(n,function(t){return e(t)});i.length===n.length?r.resolveWith(e,i):e.when.apply(e,n).done(function(){r.resolveWith(e,i)})}),r.promise()},_change:function(){this.parent.trigger("change",this)}}),t.extend(czrapp.Values.prototype,czrapp.Events)}(jQuery);czrapp=czrapp||{};!function(t,e){var n={cacheProp:function(){t.extend(e,{$_window:t(window),$_html:t("html"),$_body:t("body"),$_wpadminbar:t("#wpadminbar"),$_header:t(".tc-header"),localized:void 0!==CZRParams&&CZRParams?CZRParams:{_disabled:[]},is_responsive:this.isResponsive(),current_device:this.getDevice(),isRTL:"rtl"==t("html").attr("dir")})},isResponsive:function(){return this.matchMedia(991)},getDevice:function(){var t="desktop",e=this;return _.map({desktop:991,tablet:767,smartphone:575},function(n,i){e.matchMedia(n)&&(t=i)}),t},matchMedia:function(n){if(window.matchMedia)return window.matchMedia("(max-width: "+n+"px)").matches;return(e.$_window||t(window)).width()<=n-15},emit:function(t,n){t=_.isArray(t)?t:[t];var i=this;_.map(t,function(t){"function"==typeof i[t]&&(n=void 0===n?[]:n,i[t].apply(i,n),e.trigger(t,_.object(_.keys(n),n)))})},triggerSimpleLoad:function(e){0!==e.length&&e.map(function(e,n){t(n).load(function(){t(n).trigger("simple_load")}),t(n)[0]&&t(n)[0].complete&&t(n).load()})},isUserLogged:function(){return e.$_body.hasClass("logged-in")||0!==e.$_wpadminbar.length},isSelectorAllowed:function(e,n,i){var r="ids"==i?"id":"class",o=n[i];if("object"!=typeof n||!n[i]||!t.isArray(n[i])||0===n[i].length)return!0;if(e.parents(o.map(function(t){return"id"==r?"#"+t:"."+t}).join(",")).length>0)return!1;if(!e.attr(r))return!0;return 0===e.attr(r).split(" ").filter(function(e){return-1!=t.inArray(e,o)}).length},_isMobile:function(){return _.isFunction(window.matchMedia)&&matchMedia("only screen and (max-width: 768px)").matches||this._isCustomizing()&&"desktop"!=this.previewDevice()},_isCustomizing:function(){return e.$_body.hasClass("is-customizing")||"undefined"!=typeof wp&&void 0!==wp.customize},_has_iframe:function(t){var e=[];return _.each(t,function(t,n){t.length>0&&t.find("IFRAME").length>0&&e.push(n)}),e},isInWindow:function(e,n){if(e instanceof t&&(!n||_.isNumber(n))){var i=t(window).scrollTop(),r=i+t(window).height(),o=e.offset().top,a=o+e.height(),s=n||0;return a>=i-s&&o<=r+s}},fireMeWhenStoppedScrolling:function(n){if(n=_.extend({delay:3e3,func:"",instance:{},args:[]},n),_.isFunction(n.func)){var i=function(){t.Deferred(function(){var t=this;_.delay(function(){t.resolve()},n.delay)}).done(function(){e.userXP.isScrolling()?i():n.func.apply(n.instance,n.args)})};i()}},scriptLoadingStatus:{}};e.methods.Base=e.methods.Base||{},t.extend(e.methods.Base,n)}(jQuery,czrapp);czrapp=czrapp||{};!function(t,e){var n={addBrowserClassToBody:function(){t.browser.chrome?e.$_body.addClass("chrome"):t.browser.webkit&&e.$_body.addClass("safari"),t.browser.mozilla?e.$_body.addClass("mozilla"):(t.browser.msie||"8.0"===t.browser.version||"9.0"===t.browser.version||"10.0"===t.browser.version||"11.0"===t.browser.version)&&e.$_body.addClass("ie").addClass("ie"+t.browser.version.replace(/[.0]/g,"")),e.$_body.hasClass("ie")&&e.$_body.addClass(t.browser.version)}};e.methods.BrowserDetect=e.methods.BrowserDetect||{},t.extend(e.methods.BrowserDetect,n)}(jQuery,czrapp);czrapp=czrapp||{};!function(t,e,n){var i={centerImagesWithDelay:function(t){var e=this;setTimeout(function(){e.emit("centerImages")},t||50)},centerInfinity:function(){e.$_body.on("post-load",function(n,i){"success"==i.type&&i.collection&&i.container&&function(n,i){var r=t(i);"object"!=typeof n||1>r.length||_.each(n,function(n){var i=t(n+" .js-centering",r).centerImages({enableCentering:1,enableGoldenRatio:!1,disableGRUnder:0,zeroTopAdjust:0,setOpacityWhenCentered:!1,oncustom:["simple_load","smartload"]}).find('img:not([src^="data"])');e.methods.Base.triggerSimpleLoad(i)})}(i.collection,"#"+i.container)})},imgSmartLoad:function(){var n=1==e.localized.imgSmartLoadEnabled,i=e.localized.imgSmartLoadOpts.parentSelectors.join();if(n&&t(i).imgSmartLoad(_.size(e.localized.imgSmartLoadOpts.opts)>0?e.localized.imgSmartLoadOpts.opts:{}),1==e.localized.centerAllImg){var r,o=this;r=n?t(_.filter(t(i).find("img"),function(n){return t(n).is(e.localized.imgSmartLoadOpts.opts.excludeImg.join())})):t(i).find("img");var a=t(_.filter(r,function(e){return t(e).hasClass("tc-holder-img")}));setTimeout(function(){o.triggerSimpleLoad(a)},800),o.triggerSimpleLoad(r)}},centerImages:function(){var n=t(".widget-front .tc-thumbnail, .js-centering.entry-media__holder, .js-centering.entry-media__wrapper");n.each(function(){t(this).append('').find(".czr-css-loader").fadeIn("slow")}),n.centerImages({onInit:!0,enableCentering:1,oncustom:["smartload","refresh-height","simple_load"],enableGoldenRatio:!1,zeroTopAdjust:0,setOpacityWhenCentered:!1,addCenteredClassWithDelay:50,opacity:1}),_.delay(function(){n.find(".czr-css-loader").fadeOut({duration:500,done:function(){t(this).remove()}})},300);var i=function(t){1!==(t=_.extend({el:{},delay:0},_.isObject(t)?t:{})).el.length||t.el.hasClass("h-centered")||t.el.hasClass("v-centered")||_.delay(function(){t.el.addClass("opacity-forced")},t.delay)};e.localized.imgSmartLoadEnabled?n.on("smartload","img",function(e){1==t(e.target).length&&i({el:t(e.target),delay:200})}):n.find("img").each(function(){i({el:t(this),delay:100})}),_.delay(function(){n.find("img").each(function(){i({el:t(this),delay:0})})},1e3);var r=t(".fpc-widget-front .fp-thumb-wrapper");if(1n.length)){var r=function(){},o=function(){if(e.$_window.unbind("scroll",r),"function"==typeof t.fn.magnificPopup)n.magnificPopup(i);else{if(e.base.scriptLoadingStatus.czrMagnificPopup&&"pending"==e.base.scriptLoadingStatus.czrMagnificPopup.state())return void e.base.scriptLoadingStatus.czrMagnificPopup.done(function(){n.magnificPopup(i)});e.base.scriptLoadingStatus.czrMagnificPopup=e.base.scriptLoadingStatus.czrMagnificPopup||t.Deferred(),t("head").find("#czr-magnific-popup").length<1&&t("head").append(t("",{rel:"stylesheet",id:"czr-magnific-popup",type:"text/css",href:e.localized.assetsPath+"css/magnific-popup.min.css"})),t.ajax({url:e.localized.assetsPath+"js/libs/jquery-magnific-popup.min.js",cache:!0,dataType:"script"}).done(function(){"function"==typeof t.fn.magnificPopup&&(e.base.scriptLoadingStatus.czrMagnificPopup.resolve(),n.magnificPopup(i))}).fail(function(){e.errorLog("Magnific popup instantiation failed for candidate : "+n.attr("class"))})}};e.base.isInWindow(n)?o():(r=_.throttle(function(){e.base.isInWindow(n)&&o()},100),e.$_window.on("scroll",r))}},lightBox:function(){var n=this,i='';this.czrMagnificPopup(t('[class*="grid-container__"]'),{delegate:"a.expand-img",type:"image"}),t(".czr-gallery").each(function(){n.czrMagnificPopup(t(this),{delegate:'[data-lb-type="grouped-gallery"]',type:"image",gallery:{enabled:!0,arrowMarkup:i}})}),this.czrMagnificPopup(t("#content"),{delegate:'[data-lb-type="grouped-post"]',type:"image",gallery:{enabled:!0,arrowMarkup:i}}),e.$_body.on("click",'[class*="grid-container__"] .expand-img-gallery',function(e){e.preventDefault();var r=t(this).closest(".czr-carousel");if(!(r.length<1)){var o=function(){r.data("mfp")||(n.czrMagnificPopup(r,{delegate:".carousel-cell img",type:"image",gallery:{enabled:!0,arrowMarkup:i}}),r.data("mfp",!0)),r.data("mfp")&&r.find(".is-selected img").trigger("click")};0
',e.$_window.scroll(_.throttle(function(){t(n.slidersSelectorMap.galleries).each(function(){e.base.isInWindow(t(this))&&t(this).trigger("czr-is-in-window",{el:t(this)})})},50))},czrFlickity:function(n,i){if(!(1>n.length)){var r=function(){},o=function(){if(e.$_window.unbind("scroll",r),"function"==typeof t.fn.flickity)n.data("flickity")||n.flickity(i);else{if(e.base.scriptLoadingStatus.flickity&&"pending"==e.base.scriptLoadingStatus.flickity.state())return void e.base.scriptLoadingStatus.flickity.done(function(){n.flickity(i)});e.base.scriptLoadingStatus.flickity=e.base.scriptLoadingStatus.flickity||t.Deferred(),t("head").find("#czr-flickity").length<1&&t("head").append(t("",{rel:"stylesheet",id:"czr-flickity",type:"text/css",href:e.localized.assetsPath+"css/flickity.min.css"})),t.ajax({url:e.localized.assetsPath+"js/libs/flickity-pkgd.min.js",cache:!0,dataType:"script"}).done(function(){if("function"==typeof t.fn.flickity){e.base.scriptLoadingStatus.flickity.resolve();var r=Flickity.prototype.activate;Flickity.prototype.activate=function(){this.isActive||(r.apply(this,arguments),this.dispatchEvent("czr-flickity-ready",null,this))},n.data("flickity")||n.flickity(i)}}).fail(function(){e.errorLog("Flickity instantiation failed for slider candidate : "+n.attr("class"))})}};e.base.isInWindow(n)?o():(r=_.throttle(function(){e.base.isInWindow(n)&&o()},100),e.$_window.on("scroll",r))}},scheduleGalleryCarousels:function(n){var i=this;(!_.isUndefined(n)&&0r.length)){var a=0n.length)){if(!n.data("czr-gallery-setup")){if(e.localized.imgSmartLoadsForSliders&&this._smartLoadFlickityImg({sliderEl:n,cellSelector:i,scheduleLoading:!1}),_.isUndefined(n.data("flickity"))){var r=1==n.find(i).length,o=!r&&n.data("has-dots");this.czrFlickity(n,{prevNextButtons:!1,wrapAround:!0,imagesLoaded:!0,setGallerySize:!1,cellSelector:i,accessibility:!1,dragThreshold:10,lazyLoad:!1,freeScroll:!1,pageDots:o,draggable:!r}),n.find(i).each(function(){t(this).centerImages({enableCentering:1==e.localized.centerSliderImg,onInit:!e.localized.imgSmartLoadsForSliders,oncustom:["smartload"]})})}n.data("czr-gallery-setup",!0)}}else e.errorLog("_fireGalleryCarousel : the passed element is not printed in the DOM")},fireRelatedPostsCarousel:function(){this.czrFlickity(t(this.slidersSelectorMap.relatedPosts),{prevNextButtons:!1,pageDots:!1,imagesLoaded:!0,cellSelector:"article",groupCells:!0,cellAlign:"left",dragThreshold:10,accessibility:!1,contain:!0})},fireMainSlider:function(){var n=t(this.slidersSelectorMap.mainSlider),i=".carousel-cell";if(!(1>n.find(i).first().length)){if(n.find(i).each(function(){var n=00){var r=1==n.find(i).length,o=n.data("slider-delay"),a=!r&&n.data("has-dots");o=!!(_.isNumber(o)&&o>0)&&o,this.czrFlickity(n,{prevNextButtons:!1,pageDots:a,draggable:!r,wrapAround:!0,imagesLoaded:!0,setGallerySize:!1,cellSelector:i,dragThreshold:10,autoPlay:o,accessibility:!1})}return this}},_smartLoadFlickityImg:function(n){var i=this;_.isObject(n)?(n=_.extend({sliderEl:{},cellSelector:".carousel-cell",scheduleLoading:!0},n)).sliderEl instanceof t&&!(1>n.sliderEl.length)&&(n.sliderEl.on("czr-flickity-ready.flickity",function(){n.sliderEl.find(n.cellSelector).each(function(){t(this).data("czr_smartLoaded")||t(this).find("img").removeClass("tc-smart-load-skip"),t(this).hasClass("is-selected")&&!t(this).data("czr_smartLoaded")&&t(this).imgSmartLoad().data("czr_smartLoaded",!0).addClass("czr-smartloaded-on-init")}),n.scheduleLoading?i._scheduleLoadingScenarios(n):n.sliderEl.find(n.cellSelector).each(function(){i._smartLoadCellImg({el:t(this),ev:"czr-smartloaded-on-init"})})}),n.sliderEl.on("smartload",n.cellSelector,function(){i._maybeRemoveLoader.call(t(this))})):e.errorLog("_smartLoadFlickityImg params should be an object")},_scheduleLoadingScenarios:function(n){var i=this;n.sliderEl.data("czr_smartload_scheduled",t.Deferred().done(function(){n.sliderEl.addClass("czr-smartload-scheduled")}));var r=function(){return 1<=n.sliderEl.length&&!_.isUndefined(n.sliderEl.data("czr_smartload_scheduled"))};n.sliderEl.data("czr_schedule_select",t.Deferred(function(){var t=this;n.sliderEl.parent().one("click staticClick.flickity pointerDown.flickity dragMove.flickity",function(){t.resolve()}),_.delay(function(){"pending"==t.state()&&n.sliderEl.one("select.flickity",function(){t.resolve()})},2e3)}).done(function(){r()&&"resolved"!=n.sliderEl.data("czr_smartload_scheduled").state()&&(n.sliderEl.find(n.cellSelector).each(function(){i._smartLoadCellImg({el:t(this),ev:"czr-smartloaded-on-select"})}),n.sliderEl.data("czr_smartload_scheduled").resolve())})),n.sliderEl.data("czr_schedule_scroll_resize",t.Deferred(function(){var t=this;_.delay(function(){e.$_window.one("scroll resize",function(){t.resolve()})},5e3)}).done(function(){r()&&"resolved"!=n.sliderEl.data("czr_smartload_scheduled").state()&&(n.sliderEl.find(n.cellSelector).each(function(){i._smartLoadCellImg({el:t(this),ev:"czr-smartloaded-on-scroll"})}),n.sliderEl.data("czr_smartload_scheduled").resolve())})),n.sliderEl.data("czr_schedule_autoload",t.Deferred(function(){var t=this;_.delay(function(){t.resolve()},1e4)}).done(function(){r()&&"resolved"!=n.sliderEl.data("czr_smartload_scheduled").state()&&(n.sliderEl.find(n.cellSelector).each(function(){i._smartLoadCellImg({el:t(this),ev:"czr-auto-smartloaded"})}),n.sliderEl.data("czr_smartload_scheduled").resolve())}))},_smartLoadCellImg:function(e){var n=(e=_.extend({el:{},ev:"czr-smartloaded",delay:0},e||{})).ev,i=this,r=e.el;r instanceof t&&!(1>r.find("img[data-src], img[data-smartload]").length)&&(r.data("czr_smartLoaded")||(1>r.find(".czr-css-loader").length&&r.append(i._css_loader).find(".czr-css-loader").fadeIn("slow"),_.delay(function(){r.imgSmartLoad().data("czr_smartLoaded",!0).addClass(n)},e.delay),r.data("czr_loader_timer",t.Deferred(function(){var t=this;return _.delay(function(){t.resolve()},2e3),this.promise()})),r.data("czr_loader_timer").done(function(){i._maybeRemoveLoader.call(r)})))},_maybeRemoveLoader:function(){t(this)instanceof t&&t(this).find(".czr-css-loader").fadeOut({duration:"fast",done:function(){t(this).remove()}})},_parallax:function(){var e=t(this),n=_.object(_.chain(["parallaxRatio","parallaxDirection","parallaxOverflowHidden","backgroundClass","matchMedia"]).map(function(t){var n=e.data(t);return n?[t,n]:""}).compact().value());e.children(".flickity-viewport").czrParallax(n)},_slider_arrows:function(e,n){e.preventDefault();var i=t(this),r=i.data("controls");i.length&&(r||(r=i.closest(".czr-carousel").find(".flickity-enabled").data("flickity"),i.data("controls",r)),r&&("previous"==n?r.previous():"next"==n&&r.next()))},_slider_arrows_enable_toggler:function(){var e=t(this),n=e.data("flickity");if(n&&!n.options.wrapAround){var i=e.closest(".czr-carousel"),r=i.find(".czr-carousel-prev"),o=i.find(".czr-carousel-next");r.removeClass("disabled"),o.removeClass("disabled"),0===n.selectedIndex&&r.addClass("disabled"),n.slides.length-1==n.selectedIndex&&o.addClass("disabled")}},_move_background_link_inside:function(){var e=t(this).closest(".entry-media__wrapper").children(".bg-link");e.length>0&&t(this).find(".flickity-viewport").prepend(e)}};e.methods.Slider={},t.extend(e.methods.Slider,n)}(jQuery,czrapp);czrapp=czrapp||{};!function(t,e){var n={setupUIListeners:function(){var n=this;if(this.windowWidth=new e.Value(e.$_window.width()),this.isScrolling=new e.Value(!1),this.isResizing=new e.Value(!1),this.scrollPosition=new e.Value(e.$_window.scrollTop()),this.scrollDirection=new e.Value("down"),n.previewDevice=new e.Value("desktop"),n._isCustomizing()){var i=function(){wp.customize.preview.bind("previewed-device",function(t){n.previewDevice(t)})};wp.customize.preview?i():wp.customize.bind("preview-ready",function(){i()})}var r=function(e,i,r){(r=r||{}).emulate?n.isResizing(!0):n.isResizing(n._isMobile?Math.abs(i-e)>2:Math.abs(i-e)>0),clearTimeout(t.data(this,"resizeTimer")),t.data(this,"resizeTimer",setTimeout(function(){n.isResizing(!1)},50))};n.windowWidth.bind(r),e.$_window.on("czr-resize",function(){r(null,null,{emulate:!0})}),n.isResizing.bind(function(t){e.$_body.toggleClass("is-resizing",t)}),this.isScrolling.bind(function(t){e.$_body.toggleClass("is-scrolling",t),t||(e.trigger("scrolling-finished"),e.$_body.trigger("scrolling-finished"))}),this.scrollPosition.bind(function(t,i){e.$_body.toggleClass("is-scrolled",t>100),t<=50&&e.trigger("page-scrolled-top",{}),n.scrollDirection(t>=i?"down":"up")}),e.$_window.resize(_.throttle(function(){n.windowWidth(e.$_window.width())},10)),e.$_window.scroll(_.throttle(function(){n.isScrolling(!0),n.scrollPosition(e.$_window.scrollTop()),clearTimeout(t.data(this,"scrollTimer")),t.data(this,"scrollTimer",setTimeout(function(){n.isScrolling(!1)},100))},10))}};e.methods.UserXP=e.methods.UserXP||{},t.extend(e.methods.UserXP,n)}(jQuery,czrapp);czrapp=czrapp||{};!function(t,e){var n={stickifyHeader:function(){if(!(e.$_header.length<1)){var n=this;this.stickyCandidatesMap={mobile:{mediaRule:"only screen and (max-width: 991px)",selector:"mobile-sticky"},desktop:{mediaRule:"only screen and (min-width: 992px)",selector:"desktop-sticky"}},this.navbarsWrapperSelector=".tc-header",this.$_navbars_wrapper=t(this.navbarsWrapperSelector),this.$_topbar=1==this.$_navbars_wrapper.length&&this.$_navbars_wrapper.find(".topbar-navbar__wrapper"),this.$_primary_navbar=1==this.$_navbars_wrapper.length&&this.$_navbars_wrapper.find(".primary-navbar__wrapper"),this.mobileMenuOpenedEvent="show.czr.czrCollapse",this.mobileMenuStickySelector=".mobile-sticky .mobile-nav__nav",this.stickyMenuWrapper=!1,this.stickyMenuDown=new e.Value("_not_set_"),this.stickyHeaderThreshold=50,this.currentStickySelector=new e.Value(""),this.hasStickyCandidate=new e.Value(!1),this.stickyHeaderAnimating=new e.Value(!1),this.animationPromise=t.Deferred(function(){return this.resolve()}),this.userStickyOpt=new e.Value(n._setUserStickyOpt()),this.isFixedPositionned=new e.Value(!1),this.stickyStage=new e.Value("_not_set_"),this.shrinkBrand=new e.Value(!1),this.currentStickySelector.bind(function(t){var i=function(){e.$_header.css({height:""}),n.isFixedPositionned(!1),n.stickyMenuDown(!1),n.stickyMenuWrapper=!1,n.hasStickyCandidate(!1)};if(_.isEmpty(t))i();else if(n.hasStickyCandidate(1==e.$_header.find(t).length),n.hasStickyCandidate()){n.stickyMenuWrapper=e.$_header.find(t);var r=n.stickyMenuWrapper.find(".navbar-brand-sitelogo img");1==r.length?(r.bind("header-logo-loaded",function(){e.$_header.css({height:e.$_header[0].getBoundingClientRect().height})}),r[0].complete?r.trigger("header-logo-loaded"):r.load(function(){r.trigger("header-logo-loaded")})):e.$_header.css({height:e.$_header[0].getBoundingClientRect().height})}else i()}),this.isFixedPositionned.bind(function(t){e.$_header.toggleClass("fixed-header-on",t).toggleClass("is-sticky",t),n._pushPrimaryNavBarDown(t),n.shrinkBrand(t)}),this.shrinkBrand.bind(function(t){e.$_header.toggleClass("can-shrink-brand",t),t||_.delay(function(){n.scrollPosition()n.topStickPoint()+r&&t=n.topStickPoint()+2*r)if("stick_always"==n.userStickyOpt()){n.stickyHeaderAnimating()||("down_after"==n.stickyStage()||"up"==n.stickyStage())&&!0===n.stickyMenuDown()||n.stickyMenuDown(!1,{fast:!0}).done(function(){n.stickyMenuDown(!0,{forceFixed:!0}).done(function(){}),n.stickyStage("down_after")})}else n.stickyMenuDown(!1),n.stickyStage("down_after");else"up"==n.scrollDirection()&&(n.stickyStage("up"),n.stickyMenuDown(!0).done(function(){}),n.isFixedPositionned()&&n.isFixedPositionned(t>n.topStickPoint()))}}};this.scrollPosition.bind(function(t,e){i(t,e),n.shrinkBrand(n.isFixedPositionned())});var r=function(){"up"==n.scrollDirection()&&n._mayBeresetTopPosition()};e.bind("scrolling-finished",r),e.bind("scrolling-finished",function(){_.delay(function(){i()},400)}),e.bind("topbar-collapsed",r),n.stickyMenuDown.validate=function(t){return!!n.hasStickyCandidate()&&(n._isMobileMenuExpanded()?this._value:n.scrollPosition()0){var r=(void 0!==window.innerHeight?window.innerHeight:e.$_window.height())-n.closest(".mobile-nav__container").offset().top+e.$_window.scrollTop();i.css("max-height",r+"px")}}),n._setStickySelector(),this.topStickPoint=new e.Value(n._getTopStickPoint()),!n._isMobile()&&n.hasStickyCandidate()&&n._adjustDesktopTopNavPaddingTop()}},_animate:function(n){var i=t.Deferred(),r=this,o=n.menu_wrapper.length?n.menu_wrapper:e.$_header.find(r.currentStickySelector());if(this.animationPromise=i,!o.length)return i.resolve().promise();r.isFixedPositionned(!!r.isFixedPositionned()||("up"==r.scrollDirection()||n.forceFixed));var a=function(){var t,e=o[0].getBoundingClientRect().height;return n.fast&&o.addClass("fast"),t="up"==n.direction?"translate(0px, -"+e+"px)":"translate(0px, -0px)",r.stickyHeaderAnimating(!0),r.stickyHeaderAnimationDirection=n.direction,o.toggleClass("sticky-visible","down"==n.direction),o.css({"-webkit-transform":t,"-moz-transform":t,"-ms-transform":t,"-o-transform":t,transform:t}),_.delay(function(){r.stickyHeaderAnimating(!1),n.fast&&o.removeClass("fast"),i.resolve()},n.fast?100:350),i};return _.delay(function(){var n=_.isString(o.attr("data-menu-id"))?o.attr("data-menu-id"):"";e.userXP.isResponsive()&&1==t(".mobile-navbar__wrapper").length&&r._isMobileMenuExpanded()?r._toggleMobileMenu().done(function(){a().done(function(){r._mayBeresetTopPosition()})}):a(),e.userXP.mobileMenu&&e.userXP.mobileMenu.has(n)&&e.userXP.mobileMenu(n)("collapsed").done(function(){a()})},10),i.promise()},_isMobileMenuExpanded:function(){var e=t(".mobile-navbar__wrapper");return 1==t(".mobile-navbar__wrapper").length&&(1==e.find(".ham-toggler-menu").length&&"true"==e.find(".ham-toggler-menu").attr("aria-expanded"))},_toggleMobileMenu:function(){return t.Deferred(function(){var e=t(".mobile-navbar__wrapper"),n=this;1==e.length?(e.find(".ham-toggler-menu").trigger("click"),_.delay(function(){n.resolve()},350)):n.resolve()}).promise()},_setStickySelector:function(){var t=this,e=!1;_.each(t.stickyCandidatesMap,function(n){_.isFunction(window.matchMedia)&&matchMedia(n.mediaRule).matches&&"no_stick"!=t.userStickyOpt()&&(e="."+n.selector)}),t.currentStickySelector(e)},_setUserStickyOpt:function(t){return _.isUndefined(t)&&_.each(this.stickyCandidatesMap,function(e,n){_.isFunction(window.matchMedia)&&matchMedia(e.mediaRule).matches&&(t=n)}),t=t||"desktop",e.localized.menuStickyUserSettings&&e.localized.menuStickyUserSettings[t]?e.localized.menuStickyUserSettings[t]:"no_stick"},_getTopStickPoint:function(){if(this.$_navbars_wrapper.length<1)return 0;return 1!=this.$_topbar.length||this.$_topbar.is(t(this.currentStickySelector()))?this.$_navbars_wrapper.offset().top:this.$_navbars_wrapper.offset().top+this.$_topbar[0].getBoundingClientRect().height},_adjustDesktopTopNavPaddingTop:function(){},_mayBeresetTopPosition:function(){var e=this,n=e.stickyMenuWrapper;"up"==e.scrollDirection()&&n.length&&(e.scrollPosition()>=e.stickyHeaderThreshold||(e._isMobile()||e._adjustDesktopTopNavPaddingTop(),e.stickyMenuDown(!0,{force:!0,fast:!0}).done(function(){e.stickyHeaderAnimating(!0),t.Deferred(function(){var t=this;_.delay(function(){"up"==e.scrollDirection()&&e.scrollPosition()<10&&n.css({"-webkit-transform":"","-moz-transform":"","-ms-transform":"","-o-transform":"",transform:""}),e.stickyHeaderAnimating(!1),e.isFixedPositionned(!1),t.resolve()},10)}).promise().done(function(){})})))},_pushPrimaryNavBarDown:function(e){e=e||this.isFixedPositionned(),1==this.$_primary_navbar.length&&1==this.$_topbar.length&&this.$_topbar.is(t(this.currentStickySelector()))&&this.$_primary_navbar.css({"padding-top":e?this.$_topbar[0].getBoundingClientRect().height+"px":""})},_refreshOrResizeReact:function(){var n=this;n.userStickyOpt(n._setUserStickyOpt()),n._setStickySelector(),n.topStickPoint(n._getTopStickPoint()),n._pushPrimaryNavBarDown(),n._isMobileMenuExpanded()&&n._toggleMobileMenu(),n.hasStickyCandidate()?n.stickyMenuDown(n.scrollPosition()n.topStickPoint()))}):n.stickyMenuDown(!1).done(function(){t("#header").css("padding-top","")}),n._isMobile()?(t(".full-width.topbar-enabled #header").css("padding-top",""),n._mayBeresetTopPosition()):n._adjustDesktopTopNavPaddingTop()}};e.methods.UserXP=e.methods.UserXP||{},t.extend(e.methods.UserXP,n)}(jQuery,czrapp);czrapp=czrapp||{};!function(t,e){var n={mayBePrintFrontNote:function(){if((!e.localized||!_.isUndefined(e.localized.frontNotifications))&&!_.isEmpty(e.localized.frontNotifications)&&_.isObject(e.localized.frontNotifications)){var t=this;e.frontNotificationVisible=new e.Value(!1),e.frontNotificationRendered=!1,_.each(e.localized.frontNotifications,function(t){_.isUndefined(e.frontNotification)&&_.isObject(t)&&(t=_.extend({enabled:!1,content:"",dismissAction:"",ajaxUrl:e.localized.ajaxUrl},t)).enabled&&(e.frontNotification=new e.Value(t))}),e.frontNotificationVisible.bind(function(e){return t._toggleNotification(e)},{deferred:!0}),e.frontNotificationVisible(!0)}},_toggleNotification:function(n){var i=this,r=t.Deferred();if(e.frontNotificationRendered&&e.frontNotificationVisible())return r.resolve().promise();return n?_.delay(function(){(function(){var n=t.Deferred(),r=t("#footer","#tc-page-wrap");return!_.isUndefined(e.frontNotification)&&_.isFunction(e.frontNotification)&&_.isObject(e.frontNotification())?(t.Deferred(function(){var n=this,i=e.frontNotification().content,o=['
','
','',"
","
"].join("");1!=r.length||_.isEmpty(i)?n.resolve():(t.when(r.append(o)).done(function(){t(this).find(".note-content").prepend(i),e.$_body.find(".czr-btt.czr-btta").fadeOut("slow"),e.frontNotificationRendered=!0}),_.delay(function(){t("#bottom-front-notification","#footer").css({bottom:0}),n.resolve()},500))}).done(function(){e.setupDOMListeners([{trigger:"click keydown",selector:".close-note",actions:function(){e.frontNotificationVisible(!1).done(function(){e.doAjax({action:e.frontNotification().dismissAction,withNonce:!0,ajaxUrl:e.frontNotification().ajaxUrl})})}}],{dom_el:r},i),n.resolve()}),n.promise()):n.resolve().promise()})().always(function(){r.resolve()})},3e3):t.Deferred(function(){var n=this,i=t("#bottom-front-notification","#footer");1==i.length?(i.css({bottom:"-100%"}),_.delay(function(){i.remove(),e.$_body.find(".czr-btt.czr-btta").fadeIn("slow"),e.frontNotificationRendered=!1,n.resolve()},450)):n.resolve()}).done(function(){e.frontNotificationVisible(!1),r.resolve()}),_.delay(function(){e.frontNotificationVisible(!1)},45e3),r.promise()}};e.methods.UserXP=e.methods.UserXP||{},t.extend(e.methods.UserXP,n)}(jQuery,czrapp);czrapp=czrapp||{};!function(t,e){var n={outline:function(){"function"==typeof tcOutline&&tcOutline()},variousHoverActions:function(){e.$_body.hasClass("czr-is-mobile")||(t(".grid-container__alternate, .grid-container__square-mini, .grid-container__plain").on("mouseenter mouseleave",".entry-media__holder, article.full-image .tc-content",n),t(".grid-container__masonry, .grid-container__classic").on("mouseenter mouseleave",".grid__item",n),e.$_body.on("mouseenter mouseleave",".gallery-item, .widget-front, .fpc-widget-front",function(e){i(t(this),"hover",e)}),e.$_body.on("mouseenter mouseleave",".widget li",function(e){i(t(this),"on",e)}));function n(e){i(t(this).closest("article"),"hover",e)}function i(t,e,n){"mouseenter"==n.type?t.addClass(e):"mouseleave"==n.type&&t.removeClass(e)}},formFocusAction:function(){var n=['input[type="url"]','input[type="email"]','input[type="text"]','input[type="password"]',"textarea"],i=".czr-form .czr-focus",r=_.map(n,function(t){return i+" "+t}).join(),o=t(n.join());if(!(o.length<=0)){o.each(function(){var e=t(this);!e.attr("placeholder")&&e.closest("#buddypress").length<1&&t(this).addClass("czr-focusable").parent().addClass("czr-focus")});e.$_body.on("in-focus-load.czr-focus focusin focusout",r,function(e){var n=t(this),r=n.closest(i);setTimeout(function(){n.val()||e&&("focusin"==e.type||"focus"==e.type)?r.addClass("in-focus"):r.removeClass("in-focus")},50)}),t(r).trigger("in-focus-load.czr-focus"),e.$_body.on("click",".czr-focus .icn-close",function(e){e.preventDefault(),e.stopPropagation();var n=t(this).closest("form").find(".czr-search-field");n.length&&(n.val()?n.val("").focus():n.blur())})}},onEscapeKeyPressed:function(){var n="keydown",i="click",r="click",o="czr-search-field",a="czr-overlay-opened",s="tc-sn-visible",l=".czr-overlay",c="#tc-sn",d=".czr-overlay-toggle_btn",u='[data-toggle="sidenav"]';e.$_body.on(n,function(n){if(27==n.which){if(t(n.target).hasClass(o))return void t(n.target).val("").blur();if(t(l).length&&e.$_body.hasClass(a))return void t(l).find(d).trigger(i);if(t(c).length&&e.$_body.hasClass(s))return void t(c).find(u).trigger(r)}})},variousHeaderActions:function(){var n=this;e.$_body.on("shown.czr.czrDropdown",".nav__woocart",function(){var i=t(this),r=function(){var t=i.find(".product_list_widget");t.length&&!t.hasClass("mCustomScrollbar")&&t.mCustomScrollbar({theme:e.$_body.hasClass("header-skin-light")?"minimal-dark":"minimal"})};"function"==typeof t.fn.mCustomScrollbar?r():n.maybeLoadCustomScrollAssets().done(function(){r()})})},headerSearchToLife:function(){var n=this,i=".czr-overlay .overlay-content",r=".mobile-utils__wrapper",o=".search-toggle_btn.czr-dropdown";e.$_body.on("click",".search-toggle_btn.czr-overlay-toggle_btn",function(t){t.preventDefault(),e.$_body.toggleClass("full-search-opened czr-overlay-opened")}),e.$_body.on("transitionend webkitTransitionEnd otransitionend oTransitionEnd MSTransitionEnd",i,function(n){t(i).get()[0]==n.target&&(e.$_body.hasClass("full-search-opened")?t(this).find(".czr-search-field").focus():t(this).find(".czr-search-field").blur())}),n.headerSearchExpanded=new e.Value(!1),n.headerSearchExpanded.bind(function(e){return t.Deferred(function(){var n=this;t(o,r).toggleClass("show",e).attr("aria-expanded",e),e&&t(".ham-toggler-menu:not(.czr-collapsed)").trigger("click.czr.czrCollapse"),t(".nav__search .czr-dropdown-menu",r).attr("aria-expanded",e).stop()[e?"slideDown":"slideUp"]({duration:250,complete:function(){e&&t(".czr-search-field",t(this)).focus(),n.resolve()}})}).promise()},{deferred:!0}),e.setupDOMListeners([{trigger:"click",selector:o,actions:function(){e.userXP.headerSearchExpanded(!e.userXP.headerSearchExpanded())}}],{dom_el:t(r)},e.userXP),e.userXP.windowWidth.bind(function(){n.headerSearchExpanded(!1)}),e.$_body.on("show.czr.czrCollapse",".mobile-nav__nav",function(){n.headerSearchExpanded(!1)}),e.userXP.stickyHeaderAnimating&&e.userXP.stickyHeaderAnimating.bind(function(){n.headerSearchExpanded(!1)})},maybeLoadCustomScrollAssets:function(){var n=t.Deferred();return"function"==typeof t.fn.mCustomScrollbar?n.resolve().promise():(t("head").append(t("",{rel:"stylesheet",id:"czr-custom-scroll-bar",type:"text/css",href:e.localized.assetsPath+"css/jquery.mCustomScrollbar.min.css"})),t.ajax({url:e.localized.assetsPath+"js/libs/jquery-mCustomScrollbar.min.js",cache:!0,dataType:"script"}).done(function(){if("function"!=typeof t.fn.mCustomScrollbar)return n.rejected();n.resolve()}).fail(function(){e.errorLog("mCustomScrollbar instantiation failed")}),n.promise())},smoothScroll:function(){(t("body").hasClass("czr-infinite-scroll-on")||e.localized.SmoothScroll&&e.localized.SmoothScroll.Enabled&&!e.base.matchMedia(1024))&&smoothScroll(e.localized.SmoothScroll.Options)},magnificPopup:function(){},attachmentsFadeEffect:function(){t(".attachment-image-figure img").delay(500).addClass("opacity-forced")},pluginsCompatibility:function(){var e=t(".the_champ_vertical_sharing, .the_champ_vertical_counter",".article-container");e.length&&e.detach().prependTo(".article-container")},featuredPagesAlignment:function(){var n=t(".featured-page .widget-front"),i=n.length,r=!1,o="";if(!(i<2)){var a=new Array(i),s=new Array(i);if(t.each(n,function(e,n){a[e]=t(n).find("[class^=fp-]"),s[e]=a[e].length}),s=Math.max.apply(Math,s)){for(var l=new Array(s),c=new Array(s),d=0;d0&&(d.css("paddingTop",""),u=d.offset().top),l[e][r]=u,o.length0&&(p=+c[e]-l[e][r])&&f.css("paddingTop",parseFloat(f.css("paddingTop"))+p)}}}(),r=!1})}}},bttArrow:function(){var n=!1,i=t(".czr-btta");if(0!==i.length){var r=function(){n||(n=!0,window.requestAnimationFrame(function(){i.toggleClass("show",e.$_window.scrollTop()>e.$_window.height()),n=!1}))};e.$_window.on("scroll",_.throttle(r,20)),r()}},backToTop:function(){var n=t("html, body"),i=function(t){return(t.which>0||"mousedown"===t.type||"mousewheel"===t.type)&&n.stop().off("scroll mousedown DOMMouseScroll mousewheel keyup",i)};e.$_body.on("click touchstart touchend czr-btt",".czr-btt",function(t){t.preventDefault(),t.stopPropagation(),n.on("scroll mousedown DOMMouseScroll mousewheel keyup",i),n.animate({scrollTop:0},1e3,function(){n.stop().off("scroll mousedown DOMMouseScroll mousewheel keyup",i)})})},anchorSmoothScroll:function(){var n=e.localized.anchorSmoothScrollExclude&&_.isArray(e.localized.anchorSmoothScrollExclude.simple)?e.localized.anchorSmoothScrollExclude.simple.join(","):"",i=this,r=t('a[data-anchor-scroll="true"][href^="#"]').not(n);e.localized.isAnchorScrollEnabled&&(r=r.add('#content a[href^="#"]').not(n));var o,a=_.isObject(e.localized.anchorSmoothScrollExclude.deep)?e.localized.anchorSmoothScrollExclude.deep:null;a&&(o=_.toArray(r).filter(function(e){return 2==["ids","classes"].filter(function(n){return i.isSelectorAllowed(t(e),a,n)}).length})),t(o).click(function(){var n=t(this).attr("href");if(t(n).length)return"#"!=n&&t("html, body").animate({scrollTop:t(n).offset().top},700,e.localized.isAnchorScrollEnabled?"easeOutExpo":"linear"),!1})}};e.methods.UserXP=e.methods.UserXP||{},t.extend(e.methods.UserXP,n)}(jQuery,czrapp);czrapp=czrapp||{};!function(t,e){var n={initOnDomReady:function(){this.$_push=t("#czr-push-footer"),this._class="sticky-footer-enabled",this.$_page=t("#tc-page-wrap"),this.doingAnimation=!1,setTimeout(function(){e.$_body.trigger("refresh-sticky-footer")},50)},stickyFooterEventListener:function(){var t=this;e.$_window.on("resize",function(){t.stickyFooterEventHandler("resize")}),e.$_window.on("golden-ratio-applied",function(){t.stickyFooterEventHandler("refresh")}),e.$_body.on("refresh-sticky-footer",function(){t.stickyFooterEventHandler("refresh")})},stickyFooterEventHandler:function(t){var e=this;if(this._is_sticky_footer_enabled())switch(t){case"resize":e.doingAnimation||(e.doingAnimation=!0,window.requestAnimationFrame(function(){e._apply_sticky_footer(),e.doingAnimation=!1}));break;case"refresh":this._apply_sticky_footer()}},_apply_sticky_footer:function(){var t=this._get_full_height(),n=e.$_window.height()-t,i=!1;n>0?(this.$_push.css("height",n).addClass(this._class),i="sticky-footer-on"):this.$_push.hasClass(this._class)&&(this.$_push.removeClass(this._class),i="sticky-footer-off"),i&&e.$_body.trigger(i)},_is_sticky_footer_enabled:function(){return e.$_body.hasClass("czr-sticky-footer")},_get_full_height:function(){return this.$_page.outerHeight(!0)+this.$_page.offset().top-("block"==this.$_push.css("display")?this.$_push.outerHeight():0)}};e.methods.StickyFooter={},t.extend(e.methods.StickyFooter,n)}(jQuery,czrapp);czrapp=czrapp||{};!function(t,e){var n={initOnDomReady:function(){this._sidenav_selector="#tc-sn",this._is_sn_on()&&(this._doingWindowAnimation=!1,this._sidenav_inner_class="tc-sn-inner",this._sidenav_menu_class="nav__menu-wrapper",this._toggle_event="click",this._toggler_selector='[data-toggle="sidenav"]',this._active_class="show",this._browser_can_translate3d=!e.$_html.hasClass("no-csstransforms3d"),this.transitionEnd="transitionend webkitTransitionEnd otransitionend oTransitionEnd MSTransitionEnd",this.sideNavEventListener(),this._set_offset_height())},sideNavEventListener:function(){var t=this;e.$_body.on(this._toggle_event,'[data-toggle="sidenav"]',function(e){e.preventDefault(),t.sideNavEventHandler(e,"toggle")}),e.$_body.on(this.transitionEnd,"#tc-sn",function(e){t.sideNavEventHandler(e,"transitionend")}),e.$_body.on("sn-close sn-open",function(e){t.sideNavEventHandler(e,e.type)}),e.$_window.on("resize",function(e){t.sideNavEventHandler(e,"resize")}),e.$_window.scroll(function(e){t.sideNavEventHandler(e,"scroll")})},maybeLoadScript:function(){var n=t.Deferred();return"function"==typeof t.fn.mCustomScrollbar?n.resolve().promise():e.base.scriptLoadingStatus.mCustomScrollbar&&"pending"==e.base.scriptLoadingStatus.mCustomScrollbar.state()?(e.base.scriptLoadingStatus.mCustomScrollbar.done(function(){n.resolve()}),n.promise()):(e.base.scriptLoadingStatus.mCustomScrollbar=e.base.scriptLoadingStatus.mCustomScrollbar||t.Deferred(),t("head").find("#czr-custom-scroll-bar").length<1&&t("head").append(t("",{rel:"stylesheet",id:"czr-custom-scroll-bar",type:"text/css",href:e.localized.assetsPath+"css/jquery.mCustomScrollbar.min.css"})),t.ajax({url:e.localized.assetsPath+"js/libs/jquery-mCustomScrollbar.min.js",cache:!0,dataType:"script"}).done(function(){if("function"!=typeof t.fn.mCustomScrollbar)return n.rejected();e.base.scriptLoadingStatus.mCustomScrollbar.resolve(),n.resolve()}).fail(function(){e.errorLog("mCustomScrollbar instantiation failed")}),n.promise())},sideNavEventHandler:function(e,n){var i=this,r=function(){switch(n){case"toggle":i._is_translating()||i._toggle_callback(e);break;case"transitionend":i._is_translating()&&e.target==t(i._sidenav_selector).get()[0]&&i._transition_end_callback();break;case"sn-open":i._end_visibility_toggle();break;case"sn-close":i._end_visibility_toggle(),i._set_offset_height();break;case"scroll":case"resize":setTimeout(function(){i._doingWindowAnimation||(i._doingWindowAnimation=!0,window.requestAnimationFrame(function(){i._set_offset_height(),i._doingWindowAnimation=!1}))},200)}};"function"==typeof t.fn.mCustomScrollbar?(t("."+i._sidenav_menu_class,i._sidenav_selector).data("mCustomScrollbar")||i._init_scrollbar(),r()):00},_get_initial_offset:function(){var t=e.$_wpadminbar.length>0?e.$_wpadminbar.height():0;return t=t&&e.$_window.scrollTop()&&"absolute"==e.$_wpadminbar.css("position")?0:t},_set_offset_height:function(){var n=this._get_initial_offset(),i=t("."+this._sidenav_menu_class,this._sidenav_selector),r=t(this._sidenav_selector);if(i.length&&r.length){var o=(void 0===window.innerHeight?window.innerHeight:e.$_window.height())-i.offset().top+e.$_window.scrollTop();i.css("height",o+"px"),r.css("top",n)}},_is_translating:function(){return e.$_body.hasClass("animating")}};e.methods.SideNav={},t.extend(e.methods.SideNav,n)}(jQuery,czrapp);czrapp=czrapp||{};!function(t,e){var n={initOnCzrReady:function(){this.DATA_KEY="czr.czrDropdown",this.EVENT_KEY="."+this.DATA_KEY,this.Event={PLACE_ME:"placeme"+this.EVENT_KEY,PLACE_ALL:"placeall"+this.EVENT_KEY,SHOWN:"shown"+this.EVENT_KEY,SHOW:"show"+this.EVENT_KEY,HIDDEN:"hidden"+this.EVENT_KEY,HIDE:"hide"+this.EVENT_KEY,CLICK:"click"+this.EVENT_KEY},this.ClassName={DROPDOWN:"czr-dropdown-menu",SHOW:"show",PARENTS:"menu-item-has-children",MCUSTOMSB:"mCustomScrollbar",ALLOW_POINTER_ON_SCROLL:"allow-pointer-events-on-scroll"},this.Selector={DATA_TOGGLE:'[data-toggle="czr-dropdown"]',DATA_SHOWN_TOGGLE_LINK:"."+this.ClassName.SHOW+'> a[data-toggle="czr-dropdown"]',HOVER_PARENT:".czr-open-on-hover .menu-item-has-children, .nav__woocart",CLICK_PARENT:".czr-open-on-click .menu-item-has-children",PARENTS:".tc-header .menu-item-has-children",SNAKE_PARENTS:".regular-nav .menu-item-has-children",VERTICAL_NAV_ONCLICK:".czr-open-on-click .vertical-nav"}},dropdownMenuOnHover:function(){var n=this.Selector.HOVER_PARENT,i=this;e.$_body.on("mouseenter",n,r),e.$_body.on("mouseleave",n,o);function r(){var n=t(this);_.debounce(function(){if("static"==n.find("."+i.ClassName.DROPDOWN).css("position"))return!1;if(!n.hasClass(i.ClassName.SHOW)){e.$_body.addClass(i.ClassName.ALLOW_POINTER_ON_SCROLL),n.trigger(i.Event.SHOW).addClass(i.ClassName.SHOW).trigger(i.Event.SHOWN);var t=n.children(i.Selector.DATA_TOGGLE);t.length&&t[0].setAttribute("aria-expanded","true")}},30)()}function o(){var n=t(this);_.debounce(function(){if(n.find("ul li:hover").length<1&&!n.closest("ul").find("li:hover").is(n)){e.$_body.removeClass(i.ClassName.ALLOW_POINTER_ON_SCROLL),n.trigger(i.Event.HIDE).removeClass(i.ClassName.SHOW).trigger(i.Event.HIDDEN);var t=n.children(i.Selector.DATA_TOGGLE);t.length&&t[0].setAttribute("aria-expanded","false")}},30)()}},dropdownOpenGoToLinkOnClick:function(){var n=this;e.$_body.on(this.Event.CLICK,this.Selector.DATA_SHOWN_TOGGLE_LINK,function(e){var i=t(this);if("static"==i.find("."+n.ClassName.DROPDOWN).css("position"))return!1;e.preventDefault();var r=i.attr("href");if(!r||"#"==r)return!0;window.location=r})},dropdownPlacement:function(){var n=this,i=!1;e.$_window.on("resize",function(){i||(i=!0,window.requestAnimationFrame(function(){t(n.Selector.SNAKE_PARENTS+"."+n.ClassName.SHOW).trigger(n.Event.PLACE_ME),i=!1}))}),e.$_body.on(this.Event.PLACE_ALL,function(){t(n.Selector.SNAKE_PARENTS).trigger(n.Event.PLACE_ME)}).on(this.Event.SHOWN+" "+this.Event.PLACE_ME,this.Selector.SNAKE_PARENTS,function(i){i.stopPropagation(),function(i,r){if(!r||!r.namespace||n.DATA_KEY!==r.namespace)return;var o=i.children("."+n.ClassName.DROPDOWN);if(!o.length)return;i.css("overflow","hidden"),o.css({zIndex:"-100",display:"block"}),function(i,r){var o=e.isRTL?{_DEFAULT:"left",_OPPOSITE:"right"}:{_DEFAULT:"right",_OPPOSITE:"left"},a={OPEN_PREFIX:"open-",DD_SUBMENU:"czr-dropdown-submenu",CARET_TITLE_FLIP:"flex-row-reverse",CARET:"caret__dropdown-toggler"},s=function(e,i,r){t.each(e,function(){var e=t(this),s=e.find(n.Selector.DATA_TOGGLE).first(),l=e.find("."+a.CARET).first();1==l.length&&(l.removeClass(a.OPEN_PREFIX+r).addClass(a.OPEN_PREFIX+i),1==s.length&&s.toggleClass(a.CARET_TITLE_FLIP,i==o._OPPOSITE))})},l=function(t){var e=t==o._OPPOSITE?o._DEFAULT:o._OPPOSITE;i.removeClass(a.OPEN_PREFIX+e).addClass(a.OPEN_PREFIX+t),r.hasClass(a.DD_SUBMENU)&&(s(r,t,e),s(i.children("."+a.DD_SUBMENU),t,e))};i.parent().closest("."+n.ClassName.DROPDOWN).hasClass(a.OPEN_PREFIX+o._OPPOSITE)?l(o._OPPOSITE):l(o._DEFAULT);i.offset().left+i.width()>e.$_window.width()?l("left"):i.offset().left<0&&l("right")}(o,i),o.css({zIndex:"",display:""}),i.css("overflow","")}(t(this),i)})},dropdownOnClickVerticalNav:function(){var n=this;e.$_body.on("click",n.Selector.VERTICAL_NAV_ONCLICK+' a[href="#"]',function(e){e.preventDefault(),e.stopPropagation(),t(this).closest(".nav__link-wrapper").children(n.Selector.DATA_TOGGLE).trigger(n.Event.CLICK)}).on(n.Event.SHOW+" "+n.Event.HIDE,n.Selector.VERTICAL_NAV_ONCLICK,function(e){t(e.target).children("."+n.ClassName.DROPDOWN).stop()["show"==e.type?"slideDown":"slideUp"]({duration:300,complete:function(){if("show"==e.type){var i=t(this).closest("."+n.ClassName.MCUSTOMSB);i.length>0&&i.mCustomScrollbar("scrollTo",t(this))}}})})}};e.methods.Dropdowns={},t.extend(e.methods.Dropdowns,n);var i=function(){function t(t,e){for(var n=0;n-1)&&!(n&&("click"===n.type&&/input|textarea/i.test(n.target.tagName)||"keyup"===n.type&&9===n.which)&&t.contains(a,n.target))){var l=t.Event(c.HIDE,s);t(a).trigger(l),l.isDefaultPrevented()||("ontouchstart"in document.documentElement&&t("body").children().off("mouseover",null,t.noop),r[o].setAttribute("aria-expanded","false"),t(a).removeClass(u).trigger(t.Event(c.HIDDEN,s)))}}},e._getParentFromElement=function(e){var n=void 0,i=t(e).closest(y);return i.length&&(n=i[0]),n||e.parentNode},e._dataApiKeydownHandler=function(n){if(!(!l.test(n.which)||/button/i.test(n.target.tagName)&&32===n.which||/input|textarea/i.test(n.target.tagName)||(n.preventDefault(),n.stopPropagation(),this.disabled||t(this).hasClass(d)))){var i=e._getParentFromElement(this),r=t(i).hasClass(u);if((r||27===n.which&&32===n.which)&&(!r||27===n.which&&32===n.which)){var o=t(i).find(g).get();if(o.length){var a=o.indexOf(n.target);38===n.which&&a>0&&a--,40===n.which&&a "))}else t.status.push("Method "+i+" was not found and could not be fired on DOM ready.")})),this.isReady.resolve()}}),t.Base=t.Root.extend(t.methods.Base),t.ready=e.Deferred(),t.bind("czrapp-ready",function(){t.ready.resolve()});var i=function(i,r,o){n.isObject(i)&&(n.each(i,function(e,i){if(!t[i]&&n.isObject(e)){e=n.extend({ctor:{},ready:[],options:{}},e);var r=n.extend({id:i,dom_ready:e.ready||[]},e.options);try{t[i]=new e.ctor(r)}catch(e){t.errorLog("Error when loading "+i+" | "+e)}}}),e(function(){n.each(i,function(e,i){t[i]&&t[i].isReady&&"resolved"==t[i].isReady.state()||n.isObject(t[i])&&n.isFunction(t[i].ready)&&t[i].ready()}),t.status=t.status||"OK",n.isArray(t.status)&&n.each(t.status,function(e){t.errorLog(e)}),t.trigger(o?"czrapp-ready":"czrapp-updated")}))};t.appMap=new t.Value({}),t.appMap.bind(i),t.customMap=new t.Value({}),t.customMap.bind(i)}(czrapp=czrapp||{},jQuery,_);!function(t){t.localized=CZRParams||{};var e={base:{ctor:t.Base,ready:["cacheProp"]},browserDetect:{ctor:t.Base.extend(t.methods.BrowserDetect),ready:["addBrowserClassToBody"]},jqPlugins:{ctor:t.Base.extend(t.methods.JQPlugins),ready:["centerImagesWithDelay","centerInfinity","imgSmartLoad","lightBox","parallax"]},slider:{ctor:t.Base.extend(t.methods.Slider),ready:["initOnCzrReady"]},dropdowns:{ctor:t.Base.extend(t.methods.Dropdowns),ready:["initOnCzrReady","dropdownMenuOnHover","dropdownOpenGoToLinkOnClick","dropdownPlacement","dropdownOnClickVerticalNav"]},userXP:{ctor:t.Base.extend(t.methods.UserXP),ready:["setupUIListeners","stickifyHeader","outline","variousHoverActions","formFocusAction","variousHeaderActions","headerSearchToLife","smoothScroll","attachmentsFadeEffect","onEscapeKeyPressed","featuredPagesAlignment","bttArrow","backToTop","anchorSmoothScroll","mayBePrintFrontNote"]},stickyFooter:{ctor:t.Base.extend(t.methods.StickyFooter),ready:["initOnDomReady","stickyFooterEventListener"]},sideNav:{ctor:t.Base.extend(t.methods.SideNav),ready:["initOnDomReady"]}};t.appMap(e,!0)}(czrapp=czrapp||{}); // source --> http://www.magiaenigma.com/wp-content/plugins/super-socializer/js/front/social_login/general.js function theChampPopup(e){window.open(e,"_blank","height=520,width=770,left=315,top=80,resizable,scrollbars,toolbar=0,personalbar=0,menubar=no,location=no,directories=no,status")}function theChampStrReplace(e,t,n){for(var r=0;r

'+heateorSsSDKBlockedMsg+"

",a.setAttribute("id","the_champ_sharing_more_providers"),a.setAttribute("style","height:auto;");var b=document.createElement("div");b.setAttribute("id","heateor_ss_browser_popup_bg"),jQuery("body").append(a).append(b),document.getElementById("heateor_ss_browser_popup_bg").onclick=document.getElementById("heateor_ss_browser_msg_close").onclick=function(){a.parentNode.removeChild(a),b.parentNode.removeChild(b)}} "undefined"!=typeof heateorSsSDKBlockedMsg&&jQuery(function(){"shown"!=localStorage.getItem("heateorSsBrowserMsg")&&(jQuery("").attr("src","//apps.facebook.com/favicon.ico").error(function(){heateorSsBrowserMsg()}).css("display","none").appendTo(document.body),localStorage.setItem("heateorSsBrowserMsg","shown"))}); function heateorSsLJLoginPopup(){var a=document.createElement("div");a.innerHTML='
LiveJournal Login
'+theChampLJLoginUsernameString+'
',a.setAttribute("id","the_champ_sharing_more_providers"),a.setAttribute("style","height:auto;");var b=document.createElement("div");b.setAttribute("id","heateor_ss_lj_popup_bg"),jQuery("body").append(a).append(b),document.getElementById("heateor_ss_lj_popup_bg").onclick=document.getElementById("heateor_ss_lj_popup_close").onclick=function(){a.parentNode.removeChild(a),b.parentNode.removeChild(b)}}function theChampGetCookie(e){for(var t=e+"=",a=document.cookie.split(";"),h=0;h http://www.magiaenigma.com/wp-content/plugins/super-socializer/js/front/facebook/sdk.js function theChampInitiateFB(){FB.init({appId:theChampFBKey,channelUrl:"//"+theChampSiteUrl+"/channel.html",status:!0,cookie:!0,xfbml:!0,version:"v2.11"})}window.fbAsyncInit=function(){theChampInitiateFB(),theChampFbIosLogin&&theChampAuthUserFB(),"function"==typeof theChampDisplayLoginIcon&&theChampDisplayLoginIcon(document,["theChampFacebookButton","theChampFacebookLogin"]),("undefined"!=typeof theChampCommentNotification&&1==theChampCommentNotification||"undefined"!=typeof theChampHeateorFcmRecentComments&&1==theChampHeateorFcmRecentComments)&&FB.Event.subscribe("comment.create",function(e){void 0!==e.commentID&&e.commentID&&("undefined"!=typeof theChampCommentNotification&&1==theChampCommentNotification&&jQuery.ajax({type:"POST",dataType:"json",url:theChampSiteUrl+"/index.php",data:{action:"the_champ_moderate_fb_comments",data:e},success:function(e,t,n){}}),"undefined"!=typeof theChampHeateorFcmRecentComments&&1==theChampHeateorFcmRecentComments&&jQuery.ajax({type:"POST",dataType:"json",url:theChampSiteUrl+"/index.php",data:{action:"heateor_fcm_save_fb_comment",data:e},success:function(e,t,n){}}))}),"undefined"!=typeof theChampFbLikeMycred&&theChampFbLikeMycred&&(FB.Event.subscribe("edge.create",function(e){heateorSsmiMycredPoints("Facebook_like_recommend","",e||"")}),FB.Event.subscribe("edge.remove",function(e){heateorSsmiMycredPoints("Facebook_like_recommend","",e||"","Minus point(s) for undoing Facebook like-recommend")})),"undefined"!=typeof theChampSsga&&theChampSsga&&(FB.Event.subscribe("edge.create",function(e){heateorSsgaSocialPluginsTracking("Facebook","Like",e||"")}),FB.Event.subscribe("edge.remove",function(e){heateorSsgaSocialPluginsTracking("Facebook","Unlike",e||"")}))},function(e){var t,n="facebook-jssdk",o=e.getElementsByTagName("script")[0];e.getElementById(n)||((t=e.createElement("script")).id=n,t.async=!0,t.src="//connect.facebook.net/"+theChampFBLang+"/sdk.js",o.parentNode.insertBefore(t,o))}(document); // source --> http://www.magiaenigma.com/wp-content/plugins/super-socializer/js/front/facebook/commenting.js function theChampRenderFBCommenting(){var e=typeof theChampCommentingId!='undefined'?document.getElementById(theChampCommentingId):'';if(e){var t=[],n=[],a=[];t.wordpress='
'+e.innerHTML,theChampFBCommentingContent=("undefined"!=typeof theChampFacebookCommentsNotifierOptinText?'
":"")+("undefined"!=typeof theChampFacebookCommentsOptinText?'
":"")+'
",n.googleplus=" ",a.googleplus="//apis.google.com/js/plusone.js",t.disqus='
'+(""!=theChampDisqusShortname?theChampDisqusShortname:'
Specify a Disqus shortname in Super Socializer > Social Commenting section in admin panel
')+"
",n.disqus="var disqus_shortname = '"+theChampDisqusShortname+"';(function(d) {var dsq = d.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(dsq); })(document);";var o='

'+theChampScLabel+"

    ";theChampScEnabledTabs=theChampScEnabledTabs.split(",");for(var i=0;i"}for(o+="
",i=0;i
'+t[theChampScEnabledTabs[i]]+"
";o+="",e.innerHTML=o;var h=document.getElementById("reply-title");for(h&&h.remove(),i=0;i0&&jQuery("input.heateor_ss_social_login_optin").prop("checked",!0),jQuery("input.heateor_ss_social_login_optin").click(function(){if(jQuery(this).is(":checked")){if(null==theChampGetCookie("heateorSsSLOptin")){var e=new Date;e.setTime(e.getTime()+31536e6),document.cookie="heateorSsSLOptin=1; expires="+e.toUTCString()+"; path=/"}}else document.cookie="heateorSsSLOptin=; expires=Fri, 02 Jan 1970 00:00:00 UTC; path=/"}),"undefined"!=typeof theChampFacebookCommentsOptinText&&(null!=heateorFcmGetCookie("heateorFcmOptin")&&jQuery("input.heateor_ss_fb_comments_optin").prop("checked",!0),jQuery("input.heateor_ss_fb_comments_optin").click(function(){if(jQuery(this).is(":checked")){if(heateorFcmOptin=1,null==heateorFcmGetCookie("heateorFcmOptin")){var e=new Date;e.setTime(e.getTime()+31536e6),document.cookie="heateorFcmOptin=1; expires="+e.toUTCString()+"; path=/"}}else heateorFcmOptin=0,document.cookie="heateorFcmOptin=; expires=Fri, 02 Jan 1970 00:00:00 UTC; path=/"})),"undefined"!=typeof theChampFacebookCommentsNotifierOptinText&&(null!=heateorFcnGetCookie("heateorFcnOptin")&&jQuery("input.heateor_ss_fb_comments_notifier_optin").prop("checked",!0),jQuery("input.heateor_ss_fb_comments_notifier_optin").click(function(){if(jQuery(this).is(":checked")){if(heateorFcnOptin=1,null==heateorFcnGetCookie("heateorFcnOptin")){var e=new Date;e.setTime(e.getTime()+31536e6),document.cookie="heateorFcnOptin=1; expires="+e.toUTCString()+"; path=/"}}else heateorFcnOptin=0,document.cookie="heateorFcnOptin=; expires=Fri, 02 Jan 1970 00:00:00 UTC; path=/"}))}}theChampLoadEvent(function(){theChampRenderFBCommenting()}); // source --> http://www.magiaenigma.com/wp-content/plugins/super-socializer/js/front/sharing/sharing.js /** * Show more sharing services popup */ function theChampMoreSharingPopup(elem, postUrl, postTitle, twitterTitle){ var shareContainer = elem.parentElement.parentElement.parentElement; postUrl = encodeURIComponent(postUrl); concate = ''; var theChampMoreSharingServices = { facebook: { title: "Facebook", locale: "en-US", redirect_url: "http://www.facebook.com/sharer.php?u=" + postUrl + "&t=" + postTitle + "&v=3", }, twitter: { title: "Twitter", locale: "en-US", redirect_url: "http://twitter.com/intent/tweet?text=" + (twitterTitle ? twitterTitle : postTitle) + " " + postUrl, }, google: { title: "Google plus", locale: "en-US", redirect_url: "https://plus.google.com/share?url=" + postUrl, }, linkedin: { title: "Linkedin", locale: "en-US", redirect_url: "http://www.linkedin.com/shareArticle?mini=true&url=" + postUrl + "&title=" + postTitle, }, pinterest: { title: "Pinterest", locale: "en-US", redirect_url: "https://pinterest.com/pin/create/button/?url=" + postUrl + "&media=${media_link}&description=" + postTitle, bookmarklet_url: "javascript:void((function(){var e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','//assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)})());" }, CopyLink: { title: "Copy Link", locale: "en-US", redirect_url: "", bookmarklet_url: "" }, Diaspora: { title: "Diaspora", locale: "en-US", redirect_url: "https://joindiaspora.com/bookmarklet?url=" + postUrl + "&title=" + postTitle + "&v=1" }, Douban: { title: "Douban", locale: "en-US", redirect_url: "https://www.douban.com/share/service?name="+postTitle+"&href="+postUrl+"&image=&updated=&bm=&url="+postUrl+"&title="+postTitle+"&sel=" }, Draugiem: { title: "Draugiem", locale: "en-US", redirect_url: "https://www.draugiem.lv/say/ext/add.php?link="+postUrl+"&title="+postTitle }, Facebook_Messenger: { title: "Facebook Messenger", locale: "en-US", redirect_url: "https://www.facebook.com/dialog/send?app_id=595489497242932&display=popup&link="+postUrl+"&redirect_uri="+postUrl }, Google_Classroom: { title: "Google Classroom", locale: "en-US", redirect_url: "https://classroom.google.com/u/0/share?url="+postUrl }, Kik: { title: "Kik", locale: "en-US", redirect_url: "https://www.kik.com/send/article/?app_name=Share&text=&title="+postTitle+"&url="+postUrl }, Papaly: { title: "Papaly", locale: "en-US", redirect_url: "https://papaly.com/api/share.html?url="+postUrl+"&title="+postTitle }, Polyvore: { title: "Polyvore", locale: "en-US", bookmarklet_url: "javascript:(function(){function e(a){var c=window;if(c.PolyvoreClipper){c.PolyvoreClipper.run()}else{var b=a.createElement(\'script\');c._polyvoreMode=\'prod\';c._polyvoreHost=\'www.polyvore.com\';b.src=\'http://akwww.polyvorecdn.com/rsrc/clipper.js?\'+Math.floor((new Date()).getTime()/86400000);a.body.appendChild(b)}}try{e(document)}catch(g){}for(var f=0;f
    '; for(var i in theChampMoreSharingServices){ var tempTitle = theChampCapitaliseFirstLetter(theChampMoreSharingServices[i].title.replace(/[_. ]/g, "")); theChampMoreSharingServicesHtml += '
  • ' + theChampMoreSharingServices[i].title + '
  • '; } theChampMoreSharingServicesHtml += concate; var mainDiv = document.createElement('div'); mainDiv.innerHTML = theChampMoreSharingServicesHtml; mainDiv.setAttribute('id', 'the_champ_sharing_more_providers'); var bgDiv = document.createElement('div'); bgDiv.setAttribute('id', 'the_champ_popup_bg'); jQuery('body').append(mainDiv).append(bgDiv); document.getElementById('the_champ_popup_bg').onclick = document.getElementById('the_champ_sharing_popup_close').onclick = function(){ mainDiv.parentNode.removeChild(mainDiv); bgDiv.parentNode.removeChild(bgDiv); } } if(typeof theChampHorizontalSharingCountEnable == 'undefined'){ var theChampHorizontalSharingCountEnable = 0; } if(typeof theChampVerticalSharingCountEnable == 'undefined'){ var theChampVerticalSharingCountEnable = 0; } if(theChampHorizontalSharingCountEnable || theChampVerticalSharingCountEnable){ // get sharing counts on window load theChampLoadEvent( function(){ // sharing counts theChampCallAjax(function(){ theChampGetSharingCounts(); }); } ); } /** * Search sharing services */ function theChampFilterSharing(val) { jQuery('ul.mini li a').each(function(){ if (jQuery(this).text().toLowerCase().indexOf(val.toLowerCase()) != -1) { jQuery(this).parent().css('display', 'block'); } else { jQuery(this).parent().css('display', 'none'); } }); }; var heateorSsFacebookTargetUrls = []; /** * Get sharing counts */ function theChampGetSharingCounts(){ var targetUrls = []; jQuery('.the_champ_sharing_container').each(function(){ if(typeof jQuery(this).attr('super-socializer-no-counts') == 'undefined'){ var currentTargetUrl = jQuery(this).attr('super-socializer-data-href'); if(currentTargetUrl != null && jQuery.inArray(currentTargetUrl, heateorSsUrlCountFetched) == -1){ targetUrls.push(currentTargetUrl); heateorSsUrlCountFetched.push(currentTargetUrl); } } }); if(targetUrls.length == 0){ return; } jQuery.ajax({ type: 'GET', dataType: 'json', url: theChampSharingAjaxUrl, data: { action: 'the_champ_sharing_count', urls: targetUrls, }, success: function(data, textStatus, XMLHttpRequest){ if(data.status == 1){ if(data.facebook){ heateorSsFacebookTargetUrls = data.facebook_urls; } for(var i in data.message){ var sharingContainers = jQuery("div[super-socializer-data-href='"+i+"']"); jQuery(sharingContainers).each(function(){ var totalCount = 0; for(var j in data.message[i]){ var sharingCount = parseInt(data.message[i][j]) || 0; var targetElement = jQuery(this).find('.the_champ_'+j+'_count'); if(jQuery(targetElement).attr('ss_st_count')){ sharingCount = parseInt(sharingCount) + parseInt(jQuery(targetElement).attr('ss_st_count')); } totalCount += parseInt(sharingCount); if(sharingCount < 1){ continue; } jQuery(targetElement).html(theChampCalculateApproxCount(sharingCount)).css({'visibility': 'visible', 'display': 'block'}); if ( ( typeof theChampReduceHorizontalSvgWidth != 'undefined' && jQuery(this).hasClass('the_champ_horizontal_sharing') ) || ( typeof theChampReduceVerticalSvgWidth != 'undefined' && jQuery(this).hasClass('the_champ_vertical_sharing') ) ) { jQuery(targetElement).parents('li').find('.theChampSharingSvg').css('float', 'left'); } if ( ( typeof theChampReduceHorizontalSvgHeight != 'undefined' && jQuery(this).hasClass('the_champ_horizontal_sharing') ) || ( typeof theChampReduceVerticalSvgHeight != 'undefined' && jQuery(this).hasClass('the_champ_vertical_sharing') ) ) { jQuery(targetElement).parents('li').find('.theChampSharingSvg').css('marginTop', '0'); } } var totalCountContainer = jQuery(this).find('.theChampTCBackground'); jQuery(totalCountContainer).each(function(){ var containerHeight = jQuery(this).css('height'); jQuery(this).html('
    ' + theChampCalculateApproxCount(totalCount) + '
    ' + (totalCount == 0 || totalCount > 1 ? heateorSsSharesText : heateorSsShareText) + '
    ').css('visibility', 'visible'); }); }); } if(heateorSsFacebookTargetUrls.length != 0){ theChampFetchFacebookShares(heateorSsFacebookTargetUrls); } } } }); } function theChampFetchFacebookShares(targetUrls){ var loopCounter = 0; for(var i in targetUrls){ for(var j in targetUrls[i]){ loopCounter++; theChampFBShareJSONCall(targetUrls[i][j], loopCounter, targetUrls[0].length*targetUrls.length, targetUrls[0][j]); } } } function theChampFBShareJSONCall(targetUrl, loopCounter, targetUrlsLength, dataHref) { jQuery.getJSON('//graph.facebook.com/?id=' + targetUrl, function(data){ if(data.share && data.share.share_count >= 0){ var sharingContainers = jQuery("div[super-socializer-data-href='"+dataHref+"']"); jQuery(sharingContainers).each(function(){ var targetElement = jQuery(this).find('.the_champ_facebook_count'); var facebookBackground = jQuery(this).find('i.theChampFacebookBackground'); var sharingCount = parseInt(data.share.share_count); if(jQuery(targetElement).attr('ss_st_count') !== undefined){ sharingCount += parseInt(jQuery(targetElement).attr('ss_st_count')); } if(sharingCount > 0){ if(typeof jQuery(facebookBackground).attr('heateor-ss-fb-shares') == 'undefined'){ jQuery(targetElement).html(theChampCalculateApproxCount(sharingCount)).css({'visibility': 'visible', 'display': 'block'}); jQuery(facebookBackground).attr('heateor-ss-fb-shares', sharingCount); }else if(typeof jQuery(facebookBackground).attr('heateor-ss-fb-shares') != 'undefined'){ var tempShareCount = parseInt(jQuery(facebookBackground).attr('heateor-ss-fb-shares')); jQuery(facebookBackground).attr('heateor-ss-fb-shares', sharingCount + tempShareCount); jQuery(targetElement).html(theChampCalculateApproxCount(sharingCount + tempShareCount)); } if ( ( typeof theChampReduceHorizontalSvgWidth != 'undefined' && jQuery(this).hasClass('the_champ_horizontal_sharing') ) || ( typeof theChampReduceVerticalSvgWidth != 'undefined' && jQuery(this).hasClass('the_champ_vertical_sharing') ) ) { jQuery(targetElement).parents('li').find('.theChampSharingSvg').css('float', 'left'); } if ( ( typeof theChampReduceHorizontalSvgHeight != 'undefined' && jQuery(this).hasClass('the_champ_horizontal_sharing') ) || ( typeof theChampReduceVerticalSvgHeight != 'undefined' && jQuery(this).hasClass('the_champ_vertical_sharing') ) ) { jQuery(targetElement).parents('li').find('.theChampSharingSvg').css('marginTop', '0'); } var totalCountContainer = jQuery(this).find('.theChampTCBackground'); jQuery(totalCountContainer).each(function(){ var totalShareCountElem = jQuery(this).find('.theChampTotalShareCount'); var totalShareCount = jQuery(totalShareCountElem).text(); var newTotalCount = theChampCalculateActualCount(totalShareCount) + sharingCount; jQuery(totalShareCountElem).text(theChampCalculateApproxCount(newTotalCount)); jQuery(this).find('.theChampTotalShareText').text(newTotalCount == 0 || newTotalCount > 1 ? heateorSsSharesText : heateorSsShareText); }); } }); } if(loopCounter == targetUrlsLength){ setTimeout(function(){ var facebookShares = {}; for(var i in heateorSsFacebookTargetUrls[0]){ var sharingContainers = jQuery("div[super-socializer-data-href='"+heateorSsFacebookTargetUrls[0][i]+"']"); jQuery(sharingContainers).each(function(){ var facebookCountElement = jQuery(this).find('.the_champ_facebook_count'); var facebookCountElementBg = jQuery(this).find('i.theChampFacebookBackground'); var shareCountString = typeof jQuery(facebookCountElementBg).attr('heateor-ss-fb-shares') != 'undefined' ? jQuery(facebookCountElementBg).attr('heateor-ss-fb-shares').trim() : ''; if(shareCountString != ''){ var shareCount = parseInt(theChampCalculateActualCount(shareCountString)); if(jQuery(facebookCountElement).attr('ss_st_count') !== undefined){ var startingCount = parseInt(jQuery(facebookCountElement).attr('ss_st_count').trim()); shareCount = Math.abs(shareCount - startingCount); } facebookShares[heateorSsFacebookTargetUrls[0][i]] = shareCount; return; } }); } if(!jQuery.isEmptyObject(facebookShares)){ theChampSaveFacebookShares(facebookShares); } }, 1000); } }); } function theChampSaveFacebookShares(facebookShares){ jQuery.ajax({ type: 'GET', dataType: 'json', url: theChampSharingAjaxUrl, data: { action: 'the_champ_save_facebook_shares', share_counts: facebookShares, }, success: function(data, textStatus, XMLHttpRequest){} }); } function theChampCalculateApproxCount(sharingCount){ // round to one decimal if(sharingCount > 999 && sharingCount < 10000){ sharingCount = (Math.round(sharingCount/100))/10 + 'K'; }else if(sharingCount > 9999 && sharingCount < 100000){ sharingCount = (Math.round(sharingCount/100))/10 + 'K'; }else if(sharingCount > 99999 && sharingCount < 1000000){ sharingCount = (Math.round(sharingCount/100))/10 + 'K'; }else if(sharingCount > 999999){ sharingCount = (Math.round(sharingCount/100000))/10 + 'M'; } return sharingCount; } function theChampCalculateActualCount(sharingCount){ if(sharingCount.indexOf('K') > 0){ sharingCount = sharingCount.replace('K', '') * 1000; }else if(sharingCount.indexOf('M') > 0){ sharingCount = sharingCount.replace('M', '') * 1000000; } return parseInt(sharingCount); } function theChampCapitaliseFirstLetter(e) { return e.charAt(0).toUpperCase() + e.slice(1) } jQuery(function(){ var classes = ['the_champ_vertical_sharing', 'the_champ_vertical_counter']; for(var i = 0; i < classes.length; i++){ if(jQuery('.' + classes[i]).length){ jQuery('.' + classes[i]).each(function(){ var verticalSharingHtml = jQuery(this).html(); if(jQuery(this).attr('style').indexOf('right') >= 0){ var removeClass = 'theChampPushIn', margin = 'Right', alignment = 'right', addClass = 'theChampPullOut'; }else{ var removeClass = 'theChampPullOut', margin = 'Left', alignment = 'left', addClass = 'theChampPushIn'; } jQuery(this).html(verticalSharingHtml + '
    '); }); } } if(theChampMobileStickySharingEnabled == 1){ // insert div before jQuery(document.body).append(""); } var heateorSsClipboard = new Clipboard('.theChampCopyLinkBackground, .theChampCopyLinkShare, .theChampCopyLinkSvg', { text: function(trigger) { if(jQuery(trigger).hasClass('theChampCopyLinkShare')){ var element = trigger.parentElement.parentElement.parentElement.parentElement; var url = jQuery(element).attr("data-href") || ""; }else if(jQuery(trigger).hasClass('theChampCopyLinkSvg')){ var element = trigger.parentElement.parentElement.parentElement.parentElement; var url = jQuery(element).attr("super-socializer-data-href") || ""; if(jQuery(element).hasClass('the_champ_horizontal_sharing') && typeof heateorSsHorSharingShortUrl != undefined){ var url = heateorSsHorSharingShortUrl; }else if(jQuery(element).hasClass('the_champ_vertical_sharing') && typeof heateorSsVerticalSharingShortUrl != undefined){ var url = heateorSsVerticalSharingShortUrl; } if(!url){ var element = trigger.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement; var url = jQuery(element).attr("data-href") || ""; } } return url; } }); heateorSsClipboard.on('success', function(e) { alert(heateorSsCopyLinkMessage); }); }); function theChampHideSharing(elem, removeClass, addClass, margin, alignment){ var animation = {}, counter = jQuery(elem).parent().hasClass('the_champ_vertical_counter'), offset = parseInt(jQuery(elem).parent().css('width')) + 10 - (counter ? 16 : 0); var ssOffset = jQuery(elem).parent().attr('ss-offset'); if(ssOffset){ var savedOffset = parseInt(ssOffset); }else{ var savedOffset = (counter ? theChampCounterOffset : theChampSharingOffset); } if(jQuery(elem).attr('title') == 'Hide'){ animation[alignment] = "-=" + (offset + savedOffset); jQuery(elem).parent().animate(animation, 400, function(){ jQuery(elem).removeClass(removeClass).addClass(addClass).attr('title', 'Share'); if(counter){ var cssFloat = alignment == 'left' ? 'right' : 'left'; jQuery(elem).css('float', cssFloat); }else{ jQuery(elem).css('margin' + margin, offset + 'px') } }); }else{ animation[alignment] = "+=" + (offset + savedOffset); jQuery(elem).parent().animate(animation, 400, function(){ jQuery(elem).removeClass(addClass).addClass(removeClass).attr('title', 'Hide'); if(counter){ jQuery(elem).css('float', alignment); }else{ jQuery(elem).css('margin' + margin, '0px'); } }); } } /*! * clipboard.js v1.7.1 * https://zenorocha.github.io/clipboard.js * * Licensed MIT © Zeno Rocha */ !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.Clipboard=t()}}(function(){var t,e,n;return function t(e,n,o){function i(a,c){if(!n[a]){if(!e[a]){var l="function"==typeof require&&require;if(!c&&l)return l(a,!0);if(r)return r(a,!0);var s=new Error("Cannot find module '"+a+"'");throw s.code="MODULE_NOT_FOUND",s}var u=n[a]={exports:{}};e[a][0].call(u.exports,function(t){var n=e[a][1][t];return i(n||t)},u,u.exports,t,e,n,o)}return n[a].exports}for(var r="function"==typeof require&&require,a=0;a0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function t(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function t(){var e=this,n="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[n?"right":"left"]="-9999px";var o=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=o+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,i.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function t(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function t(){this.selectedText=(0,i.default)(this.target),this.copyText()}},{key:"copyText",value:function t(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function t(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function t(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function t(){this.removeFake()}},{key:"action",set:function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function t(){return this._action}},{key:"target",set:function t(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":r(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function t(){return this._target}}]),t}();t.exports=c})},{select:5}],8:[function(e,n,o){!function(i,r){if("function"==typeof t&&t.amd)t(["module","./clipboard-action","tiny-emitter","good-listener"],r);else if(void 0!==o)r(n,e("./clipboard-action"),e("tiny-emitter"),e("good-listener"));else{var a={exports:{}};r(a,i.clipboardAction,i.tinyEmitter,i.goodListener),i.clipboard=a.exports}}(this,function(t,e,n,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function l(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}var s=i(e),u=i(n),f=i(o),d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===d(e.container)?e.container:document.body}},{key:"listenClick",value:function t(e){var n=this;this.listener=(0,f.default)(e,"click",function(t){return n.onClick(t)})}},{key:"onClick",value:function t(e){var n=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new s.default({action:this.action(n),target:this.target(n),text:this.text(n),container:this.container,trigger:n,emitter:this})}},{key:"defaultAction",value:function t(e){return l("action",e)}},{key:"defaultTarget",value:function t(e){var n=l("target",e);if(n)return document.querySelector(n)}},{key:"defaultText",value:function t(e){return l("text",e)}},{key:"destroy",value:function t(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],n="string"==typeof e?[e]:e,o=!!document.queryCommandSupported;return n.forEach(function(t){o=o&&!!document.queryCommandSupported(t)}),o}}]),e}(u.default);t.exports=p})},{"./clipboard-action":7,"good-listener":4,"tiny-emitter":6}]},{},[8])(8)});