theme-elegance/assets/js/theme.js

439 lines
118 KiB
JavaScript

(function(i,b){"use strict";function en(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var Et={exports:{}};Et.exports,function(l){function n(t){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},n(t)}(function(t){n(l)==="object"&&l.exports?l.exports=function(w,s){return s===void 0&&(typeof window<"u"?s=i:s=i(w)),t(s),s}:t(jQuery)})(function(t){var w=0;t.fn.TouchSpin=function(s){var k={min:0,max:100,initval:"",replacementval:"",firstclickvalueifempty:null,step:1,decimals:0,stepinterval:100,forcestepdivisibility:"round",stepintervaldelay:500,verticalbuttons:!1,verticalup:"&plus;",verticaldown:"&minus;",verticalupclass:"",verticaldownclass:"",prefix:"",postfix:"",prefix_extraclass:"",postfix_extraclass:"",booster:!0,boostat:10,maxboostedstep:!1,mousewheel:!0,buttondown_class:"btn btn-primary",buttonup_class:"btn btn-primary",buttondown_txt:"&minus;",buttonup_txt:"&plus;",callback_before_calculation:function(p){return p},callback_after_calculation:function(p){return p}},C={min:"min",max:"max",initval:"init-val",replacementval:"replacement-val",firstclickvalueifempty:"first-click-value-if-empty",step:"step",decimals:"decimals",stepinterval:"step-interval",verticalbuttons:"vertical-buttons",verticalupclass:"vertical-up-class",verticaldownclass:"vertical-down-class",forcestepdivisibility:"force-step-divisibility",stepintervaldelay:"step-interval-delay",prefix:"prefix",postfix:"postfix",prefix_extraclass:"prefix-extra-class",postfix_extraclass:"postfix-extra-class",booster:"booster",boostat:"boostat",maxboostedstep:"max-boosted-step",mousewheel:"mouse-wheel",buttondown_class:"button-down-class",buttonup_class:"button-up-class",buttondown_txt:"button-down-txt",buttonup_txt:"button-up-txt"};return this.each(function(){var o,p=t(this),Q=p.data(),_,u,S,d,V,O,A,c,N,G,ie=0,ce=!1;Le();function Le(){if(!p.data("alreadyinitialized")){if(p.data("alreadyinitialized",!0),w+=1,p.data("spinnerid",w),!p.is("input")){console.log("Must be an input.");return}f(),Ue(),y(),Ae(),a(),z(),r(),F(),m(),x()}}function Ue(){o.initval!==""&&p.val()===""&&p.val(o.initval)}function be(g){qe(g),y();var q=d.input.val();q!==""&&(q=parseFloat(o.callback_before_calculation(d.input.val())),d.input.val(o.callback_after_calculation(parseFloat(q).toFixed(o.decimals))))}function f(){if(o=t.extend({},k,Q,Me(),s),parseFloat(o.step)!==1){var g;g=o.max%o.step,g!==0&&(o.max=parseFloat(o.max)-g),g=o.min%o.step,g!==0&&(o.min=parseFloat(o.min)+(parseFloat(o.step)-g))}}function Me(){var g={};return t.each(C,function(q,ee){var pe="bts-"+ee;p.is("[data-"+pe+"]")&&(g[q]=p.data(pe))}),t.each(["min","max","step"],function(q,ee){p.is("["+ee+"]")&&(g[ee]!==void 0&&console.warn('Both the "data-bts-'+ee+'" data attribute and the "'+ee+'" individual attribute were specified, the individual attribute will take precedence on: ',p),g[ee]=p.attr(ee))}),g}function ze(){var g=p.parent();Z(),p.off(".touchspin"),g.hasClass("bootstrap-touchspin-injected")?(p.siblings().remove(),p.unwrap()):(t(".bootstrap-touchspin-injected",g).remove(),g.removeClass("bootstrap-touchspin")),p.data("alreadyinitialized",!1)}function qe(g){if(o=t.extend({},o,g),g.postfix){var q=p.parent().find(".bootstrap-touchspin-postfix");q.length===0&&u.insertAfter(p),p.parent().find(".bootstrap-touchspin-postfix .input-group-text").text(g.postfix)}if(g.prefix){var ee=p.parent().find(".bootstrap-touchspin-prefix");ee.length===0&&_.insertBefore(p),p.parent().find(".bootstrap-touchspin-prefix .input-group-text").text(g.prefix)}r()}function Ae(){var g=p.val(),q=p.parent();g!==""&&(g=o.callback_before_calculation(g),g=o.callback_after_calculation(parseFloat(g).toFixed(o.decimals))),p.data("initvalue",g).val(g),p.addClass("form-control"),V=`
<span class="input-group-addon bootstrap-touchspin-vertical-button-wrapper">
<span class="input-group-btn-vertical">
<button tabindex="-1" class="`.concat(o.buttondown_class," bootstrap-touchspin-up ").concat(o.verticalupclass,'" type="button">').concat(o.verticalup,`</button>
<button tabindex="-1" class="`).concat(o.buttonup_class," bootstrap-touchspin-down ").concat(o.verticaldownclass,'" type="button">').concat(o.verticaldown,`</button>
</span>
</span>
`),q.hasClass("input-group")?ft(q):e()}function ft(g){g.addClass("bootstrap-touchspin");var q=p.prev(),ee=p.next(),pe,Y,Pe=`
<span class="input-group-addon input-group-prepend bootstrap-touchspin-prefix input-group-prepend bootstrap-touchspin-injected">
<span class="input-group-text">`.concat(o.prefix,`</span>
</span>
`),Ne=`
<span class="input-group-addon input-group-append bootstrap-touchspin-postfix input-group-append bootstrap-touchspin-injected">
<span class="input-group-text">`.concat(o.postfix,`</span>
</span>
`);o.verticalbuttons?t(V).insertAfter(p):(q.hasClass("input-group-btn")||q.hasClass("input-group-prepend")?(pe=`
<button tabindex="-1" class="`.concat(o.buttondown_class,' bootstrap-touchspin-down bootstrap-touchspin-injected" type="button">').concat(o.buttondown_txt,`</button>
`),q.append(pe)):(pe=`
<span class="input-group-btn input-group-prepend bootstrap-touchspin-injected">
<button tabindex="-1" class="`.concat(o.buttondown_class,' bootstrap-touchspin-down" type="button">').concat(o.buttondown_txt,`</button>
</span>
`),t(pe).insertBefore(p)),ee.hasClass("input-group-btn")||ee.hasClass("input-group-append")?(Y=`
<button tabindex="-1" class="`.concat(o.buttonup_class,' bootstrap-touchspin-up bootstrap-touchspin-injected" type="button">').concat(o.buttonup_txt,`</button>
`),ee.prepend(Y)):(Y=`
<span class="input-group-btn input-group-append bootstrap-touchspin-injected">
<button tabindex="-1" class="`.concat(o.buttonup_class,' bootstrap-touchspin-up" type="button">').concat(o.buttonup_txt,`</button>
</span>
`),t(Y).insertAfter(p))),t(Pe).insertBefore(p),t(Ne).insertAfter(p),S=g}function e(){var g,q="";p.hasClass("input-sm")||p.hasClass("form-control-sm")?q="input-group-sm":(p.hasClass("input-lg")||p.hasClass("form-control-lg"))&&(q="input-group-lg"),o.verticalbuttons?g=`
<div class="input-group `.concat(q,` bootstrap-touchspin bootstrap-touchspin-injected">
<span class="input-group-addon input-group-prepend bootstrap-touchspin-prefix">
<span class="input-group-text">`).concat(o.prefix,`</span>
</span>
<span class="input-group-addon bootstrap-touchspin-postfix input-group-append">
<span class="input-group-text">`).concat(o.postfix,`</span>
</span>
`).concat(V,`
</div>
`):g=`
<div class="input-group bootstrap-touchspin bootstrap-touchspin-injected">
<span class="input-group-btn input-group-prepend">
<button tabindex="-1" class="`.concat(o.buttondown_class,' bootstrap-touchspin-down" type="button">').concat(o.buttondown_txt,`</button>
</span>
<span class="input-group-addon bootstrap-touchspin-prefix input-group-prepend">
<span class="input-group-text">`).concat(o.prefix,`</span>
</span>
<span class="input-group-addon bootstrap-touchspin-postfix input-group-append">
<span class="input-group-text">`).concat(o.postfix,`</span>
</span>
<span class="input-group-btn input-group-append">
<button tabindex="-1" class="`).concat(o.buttonup_class,' bootstrap-touchspin-up" type="button">').concat(o.buttonup_txt,`</button>
</span>
</div>`),S=t(g).insertBefore(p),t(".bootstrap-touchspin-prefix",S).after(p),p.hasClass("input-sm")||p.hasClass("form-control-sm")?S.addClass("input-group-sm"):(p.hasClass("input-lg")||p.hasClass("form-control-lg"))&&S.addClass("input-group-lg")}function a(){d={down:t(".bootstrap-touchspin-down",S),up:t(".bootstrap-touchspin-up",S),input:t("input",S),prefix:t(".bootstrap-touchspin-prefix",S).addClass(o.prefix_extraclass),postfix:t(".bootstrap-touchspin-postfix",S).addClass(o.postfix_extraclass)}}function r(){o.prefix===""&&(_=d.prefix.detach()),o.postfix===""&&(u=d.postfix.detach())}function m(){p.on("keydown.touchspin",function(g){var q=g.keyCode||g.which;q===38?(ce!=="up"&&(D(),re()),g.preventDefault()):q===40?(ce!=="down"&&(U(),W()),g.preventDefault()):(q===9||q===13)&&y()}),p.on("keyup.touchspin",function(g){var q=g.keyCode||g.which;(q===38||q===40)&&Z()}),t(document).on("mousedown touchstart",function(g){t(g.target).is(p)||y()}),p.on("blur.touchspin",function(){y()}),d.down.on("keydown",function(g){var q=g.keyCode||g.which;(q===32||q===13)&&(ce!=="down"&&(U(),W()),g.preventDefault())}),d.down.on("keyup.touchspin",function(g){var q=g.keyCode||g.which;(q===32||q===13)&&Z()}),d.up.on("keydown.touchspin",function(g){var q=g.keyCode||g.which;(q===32||q===13)&&(ce!=="up"&&(D(),re()),g.preventDefault())}),d.up.on("keyup.touchspin",function(g){var q=g.keyCode||g.which;(q===32||q===13)&&Z()}),d.down.on("mousedown.touchspin",function(g){d.down.off("touchstart.touchspin"),!p.is(":disabled,[readonly]")&&(U(),W(),g.preventDefault(),g.stopPropagation())}),d.down.on("touchstart.touchspin",function(g){d.down.off("mousedown.touchspin"),!p.is(":disabled,[readonly]")&&(U(),W(),g.preventDefault(),g.stopPropagation())}),d.up.on("mousedown.touchspin",function(g){d.up.off("touchstart.touchspin"),!p.is(":disabled,[readonly]")&&(D(),re(),g.preventDefault(),g.stopPropagation())}),d.up.on("touchstart.touchspin",function(g){d.up.off("mousedown.touchspin"),!p.is(":disabled,[readonly]")&&(D(),re(),g.preventDefault(),g.stopPropagation())}),d.up.on("mouseup.touchspin mouseout.touchspin touchleave.touchspin touchend.touchspin touchcancel.touchspin",function(g){ce&&(g.stopPropagation(),Z())}),d.down.on("mouseup.touchspin mouseout.touchspin touchleave.touchspin touchend.touchspin touchcancel.touchspin",function(g){ce&&(g.stopPropagation(),Z())}),d.down.on("mousemove.touchspin touchmove.touchspin",function(g){ce&&(g.stopPropagation(),g.preventDefault())}),d.up.on("mousemove.touchspin touchmove.touchspin",function(g){ce&&(g.stopPropagation(),g.preventDefault())}),p.on("mousewheel.touchspin DOMMouseScroll.touchspin",function(g){if(!(!o.mousewheel||!p.is(":focus"))){var q=g.originalEvent.wheelDelta||-g.originalEvent.deltaY||-g.originalEvent.detail;g.stopPropagation(),g.preventDefault(),q<0?U():D()}})}function x(){p.on("touchspin.destroy",function(){ze()}),p.on("touchspin.uponce",function(){Z(),D()}),p.on("touchspin.downonce",function(){Z(),U()}),p.on("touchspin.startupspin",function(){re()}),p.on("touchspin.startdownspin",function(){W()}),p.on("touchspin.stopspin",function(){Z()}),p.on("touchspin.updatesettings",function(g,q){be(q)})}function F(){if(typeof MutationObserver<"u"){var g=new MutationObserver(function(q){q.forEach(function(ee){ee.type==="attributes"&&(ee.attributeName==="disabled"||ee.attributeName==="readonly")&&z()})});g.observe(p[0],{attributes:!0})}}function T(g){switch(o.forcestepdivisibility){case"round":return(Math.round(g/o.step)*o.step).toFixed(o.decimals);case"floor":return(Math.floor(g/o.step)*o.step).toFixed(o.decimals);case"ceil":return(Math.ceil(g/o.step)*o.step).toFixed(o.decimals);default:return g.toFixed(o.decimals)}}function y(){var g,q,ee;if(g=o.callback_before_calculation(p.val()),g===""){o.replacementval!==""&&(p.val(o.replacementval),p.trigger("change"));return}o.decimals>0&&g==="."||(q=parseFloat(g),isNaN(q)&&(o.replacementval!==""?q=o.replacementval:q=0),ee=q,q.toString()!==g&&(ee=q),ee=T(q),o.min!==null&&q<o.min&&(ee=o.min),o.max!==null&&q>o.max&&(ee=o.max),parseFloat(q).toString()!==parseFloat(ee).toString()&&p.val(ee),p.val(o.callback_after_calculation(parseFloat(ee).toFixed(o.decimals))))}function E(){if(o.booster){var g=Math.pow(2,Math.floor(ie/o.boostat))*o.step;return o.maxboostedstep&&g>o.maxboostedstep&&(g=o.maxboostedstep,O=Math.round(O/g)*g),Math.max(o.step,g)}else return o.step}function I(){return typeof o.firstclickvalueifempty=="number"?o.firstclickvalueifempty:(o.min+o.max)/2}function z(){var g=p.is(":disabled,[readonly]");d.up.prop("disabled",g),d.down.prop("disabled",g),g&&Z()}function D(){if(!p.is(":disabled,[readonly]")){y(),O=parseFloat(o.callback_before_calculation(d.input.val()));var g=O,q;isNaN(O)?O=I():(q=E(),O=O+q),o.max!==null&&O>=o.max&&(O=o.max,p.trigger("touchspin.on.max"),Z()),d.input.val(o.callback_after_calculation(parseFloat(O).toFixed(o.decimals))),g!==O&&p.trigger("change")}}function U(){if(!p.is(":disabled,[readonly]")){y(),O=parseFloat(o.callback_before_calculation(d.input.val()));var g=O,q;isNaN(O)?O=I():(q=E(),O=O-q),o.min!==null&&O<=o.min&&(O=o.min,p.trigger("touchspin.on.min"),Z()),d.input.val(o.callback_after_calculation(parseFloat(O).toFixed(o.decimals))),g!==O&&p.trigger("change")}}function W(){p.is(":disabled,[readonly]")||(Z(),ie=0,ce="down",p.trigger("touchspin.on.startspin"),p.trigger("touchspin.on.startdownspin"),N=setTimeout(function(){A=setInterval(function(){ie++,U()},o.stepinterval)},o.stepintervaldelay))}function re(){p.is(":disabled,[readonly]")||(Z(),ie=0,ce="up",p.trigger("touchspin.on.startspin"),p.trigger("touchspin.on.startupspin"),G=setTimeout(function(){c=setInterval(function(){ie++,D()},o.stepinterval)},o.stepintervaldelay))}function Z(){switch(clearTimeout(N),clearTimeout(G),clearInterval(A),clearInterval(c),ce){case"up":p.trigger("touchspin.on.stopupspin"),p.trigger("touchspin.on.stopspin");break;case"down":p.trigger("touchspin.on.stopdownspin"),p.trigger("touchspin.on.stopspin");break}ie=0,ce=!1}})}})}(Et),Et.exports;var tn={exports:{}};/*!
* @fileOverview TouchSwipe - jQuery Plugin
* @version 1.6.18
*
* @author Matt Bryson http://www.github.com/mattbryson
* @see https://github.com/mattbryson/TouchSwipe-Jquery-Plugin
* @see http://labs.rampinteractive.co.uk/touchSwipe/
* @see http://plugins.jquery.com/project/touchSwipe
* @license
* Copyright (c) 2010-2015 Matt Bryson
* Dual licensed under the MIT or GPL Version 2 licenses.
*
*/(function(l){(function(n){n(l.exports?i:jQuery)})(function(n){function t(e){return!e||e.allowPageScroll!==void 0||e.swipe===void 0&&e.swipeStatus===void 0||(e.allowPageScroll=u),e.click!==void 0&&e.tap===void 0&&(e.tap=e.click),e||(e={}),e=n.extend({},n.fn.swipe.defaults,e),this.each(function(){var a=n(this),r=a.data(Ae);r||(r=new w(this,e),a.data(Ae,r))})}function w(e,v){function r(h){if(!(Be()||n(h.target).closest(v.excludedElements,R).length>0)){var L=h.originalEvent?h.originalEvent:h;if(!L.pointerType||L.pointerType!="mouse"||v.fallbackToMouseEvents!=0){var j,J=L.touches,ve=J?J[0]:L;return X=Le,J?oe=J.length:v.preventDefaultEvents!==!1&&h.preventDefault(),le=0,ge=null,de=null,Se=null,ue=0,Ve=0,Ye=0,xe=1,Te=0,Ze=At(),te(),Qe(0,ve),!J||oe===v.fingers||v.fingers===ie||q()?(De=nt(),oe==2&&(Qe(1,J[1]),Ve=Ye=pt(B[0].start,B[1].start)),(v.swipeStatus||v.pinchStatus)&&(j=I(L,X))):j=!1,j===!1?(X=f,I(L,X),j):(v.hold&&(rt=setTimeout(n.proxy(function(){R.trigger("hold",[L.target]),v.hold&&(j=v.hold.call(R,L,L.target))},this),v.longTapThreshold)),tt(!0),null)}}}function m(h){var L=h.originalEvent?h.originalEvent:h;if(X!==be&&X!==f&&!me()){var j,J=L.touches,ve=J?J[0]:L,we=vt(ve);if(Ge=nt(),J&&(oe=J.length),v.hold&&clearTimeout(rt),X=Ue,oe==2&&(Ve==0?(Qe(1,J[1]),Ve=Ye=pt(B[0].start,B[1].start)):(vt(J[1]),Ye=pt(B[0].end,B[1].end),Se=kt(B[0].end,B[1].end)),xe=ht(Ve,Ye),Te=Math.abs(Ve-Ye)),oe===v.fingers||v.fingers===ie||!J||q()){if(ge=wt(we.start,we.end),de=wt(we.last,we.end),Z(h,de),le=_t(we.start,we.end),ue=dt(),je(ge,le),j=I(L,X),!v.triggerOnTouchEnd||v.triggerOnTouchLeave){var Ke=!0;if(v.triggerOnTouchLeave){var Xe=Ct(this);Ke=at(we.end,Xe)}!v.triggerOnTouchEnd&&Ke?X=E(Ue):v.triggerOnTouchLeave&&!Ke&&(X=E(be)),X!=f&&X!=be||I(L,X)}}else X=f,I(L,X);j===!1&&(X=f,I(L,X))}}function x(h){var L=h.originalEvent?h.originalEvent:h,j=L.touches;if(j){if(j.length&&!me())return We(L),!0;if(j.length&&me())return!0}return me()&&(oe=gt),Ge=nt(),ue=dt(),U()||!D()?(X=f,I(L,X)):v.triggerOnTouchEnd||v.triggerOnTouchEnd===!1&&X===Ue?(v.preventDefaultEvents!==!1&&h.cancelable!==!1&&h.preventDefault(),X=be,I(L,X)):!v.triggerOnTouchEnd&&Oe()?(X=be,z(L,X,O)):X===Ue&&(X=f,I(L,X)),tt(!1),null}function F(){oe=0,Ge=0,De=0,Ve=0,Ye=0,xe=1,te(),tt(!1)}function T(h){var L=h.originalEvent?h.originalEvent:h;v.triggerOnTouchLeave&&(X=E(be),I(L,X))}function y(){R.off(ye,r),R.off(ne,F),R.off(Ee,m),R.off(K,x),ot&&R.off(ot,T),tt(!1)}function E(h){var L=h,j=re(),J=D(),ve=U();return!j||ve?L=f:!J||h!=Ue||v.triggerOnTouchEnd&&!v.triggerOnTouchLeave?!J&&h==be&&v.triggerOnTouchLeave&&(L=f):L=be,L}function I(h,L){var j,J=h.touches;return(Pe()||Y())&&(j=z(h,L,d)),(ee()||q())&&j!==!1&&(j=z(h,L,V)),_e()&&j!==!1?j=z(h,L,A):Ce()&&j!==!1?j=z(h,L,c):he()&&j!==!1&&(j=z(h,L,O)),L===f&&F(),L===be&&(J&&J.length||F()),j}function z(h,L,j){var J;if(j==d){if(R.trigger("swipeStatus",[L,ge||null,le||0,ue||0,oe,B,de]),v.swipeStatus&&(J=v.swipeStatus.call(R,h,L,ge||null,le||0,ue||0,oe,B,de),J===!1))return!1;if(L==be&&pe()){if(clearTimeout(Re),clearTimeout(rt),R.trigger("swipe",[ge,le,ue,oe,B,de]),v.swipe&&(J=v.swipe.call(R,h,ge,le,ue,oe,B,de),J===!1))return!1;switch(ge){case k:R.trigger("swipeLeft",[ge,le,ue,oe,B,de]),v.swipeLeft&&(J=v.swipeLeft.call(R,h,ge,le,ue,oe,B,de));break;case C:R.trigger("swipeRight",[ge,le,ue,oe,B,de]),v.swipeRight&&(J=v.swipeRight.call(R,h,ge,le,ue,oe,B,de));break;case o:R.trigger("swipeUp",[ge,le,ue,oe,B,de]),v.swipeUp&&(J=v.swipeUp.call(R,h,ge,le,ue,oe,B,de));break;case p:R.trigger("swipeDown",[ge,le,ue,oe,B,de]),v.swipeDown&&(J=v.swipeDown.call(R,h,ge,le,ue,oe,B,de))}}}if(j==V){if(R.trigger("pinchStatus",[L,Se||null,Te||0,ue||0,oe,xe,B]),v.pinchStatus&&(J=v.pinchStatus.call(R,h,L,Se||null,Te||0,ue||0,oe,xe,B),J===!1))return!1;if(L==be&&g())switch(Se){case Q:R.trigger("pinchIn",[Se||null,Te||0,ue||0,oe,xe,B]),v.pinchIn&&(J=v.pinchIn.call(R,h,Se||null,Te||0,ue||0,oe,xe,B));break;case _:R.trigger("pinchOut",[Se||null,Te||0,ue||0,oe,xe,B]),v.pinchOut&&(J=v.pinchOut.call(R,h,Se||null,Te||0,ue||0,oe,xe,B))}}return j==O?L!==f&&L!==be||(clearTimeout(Re),clearTimeout(rt),ke()&&!P()?(Je=nt(),Re=setTimeout(n.proxy(function(){Je=null,R.trigger("tap",[h.target]),v.tap&&(J=v.tap.call(R,h,h.target))},this),v.doubleTapThreshold)):(Je=null,R.trigger("tap",[h.target]),v.tap&&(J=v.tap.call(R,h,h.target)))):j==A?L!==f&&L!==be||(clearTimeout(Re),clearTimeout(rt),Je=null,R.trigger("doubletap",[h.target]),v.doubleTap&&(J=v.doubleTap.call(R,h,h.target))):j==c&&(L!==f&&L!==be||(clearTimeout(Re),Je=null,R.trigger("longtap",[h.target]),v.longTap&&(J=v.longTap.call(R,h,h.target)))),J}function D(){var h=!0;return v.threshold!==null&&(h=le>=v.threshold),h}function U(){var h=!1;return v.cancelThreshold!==null&&ge!==null&&(h=Tt(ge)-le>=v.cancelThreshold),h}function W(){return v.pinchThreshold!==null?Te>=v.pinchThreshold:!0}function re(){return v.maxTimeThreshold?!(ue>=v.maxTimeThreshold):!0}function Z(h,L){if(v.preventDefaultEvents!==!1)if(v.allowPageScroll===u)h.preventDefault();else{var j=v.allowPageScroll===S;switch(L){case k:(v.swipeLeft&&j||!j&&v.allowPageScroll!=N)&&h.preventDefault();break;case C:(v.swipeRight&&j||!j&&v.allowPageScroll!=N)&&h.preventDefault();break;case o:(v.swipeUp&&j||!j&&v.allowPageScroll!=G)&&h.preventDefault();break;case p:(v.swipeDown&&j||!j&&v.allowPageScroll!=G)&&h.preventDefault();break}}}function g(){var h=Ne(),L=et(),j=W();return h&&L&&j}function q(){return!!(v.pinchStatus||v.pinchIn||v.pinchOut)}function ee(){return!(!g()||!q())}function pe(){var h=re(),L=D(),j=Ne(),J=et(),ve=U(),we=!ve&&J&&j&&L&&h;return we}function Y(){return!!(v.swipe||v.swipeStatus||v.swipeLeft||v.swipeRight||v.swipeUp||v.swipeDown)}function Pe(){return!(!pe()||!Y())}function Ne(){return oe===v.fingers||v.fingers===ie||!Me}function et(){return B[0].end.x!==0}function Oe(){return!!v.tap}function ke(){return!!v.doubleTap}function M(){return!!v.longTap}function H(){if(Je==null)return!1;var h=nt();return ke()&&h-Je<=v.doubleTapThreshold}function P(){return H()}function se(){return(oe===1||!Me)&&(isNaN(le)||le<v.threshold)}function ae(){return ue>v.longTapThreshold&&ce>le}function he(){return!(!se()||!Oe())}function _e(){return!(!H()||!ke())}function Ce(){return!(!ae()||!M())}function We(h){it=nt(),gt=h.touches.length+1}function te(){it=0,gt=0}function me(){var h=!1;if(it){var L=nt()-it;L<=v.fingerReleaseThreshold&&(h=!0)}return h}function Be(){return R.data(Ae+"_intouch")===!0}function tt(h){R&&(h===!0?(R.on(Ee,m),R.on(K,x),ot&&R.on(ot,T)):(R.off(Ee,m,!1),R.off(K,x,!1),ot&&R.off(ot,T,!1)),R.data(Ae+"_intouch",h===!0))}function Qe(h,L){var j={start:{x:0,y:0},last:{x:0,y:0},end:{x:0,y:0}};return j.start.x=j.last.x=j.end.x=L.pageX||L.clientX,j.start.y=j.last.y=j.end.y=L.pageY||L.clientY,B[h]=j,j}function vt(h){var L=h.identifier!==void 0?h.identifier:0,j=bt(L);return j===null&&(j=Qe(L,h)),j.last.x=j.end.x,j.last.y=j.end.y,j.end.x=h.pageX||h.clientX,j.end.y=h.pageY||h.clientY,j}function bt(h){return B[h]||null}function je(h,L){h!=u&&(L=Math.max(L,Tt(h)),Ze[h].distance=L)}function Tt(h){return Ze[h]?Ze[h].distance:void 0}function At(){var h={};return h[k]=st(k),h[C]=st(C),h[o]=st(o),h[p]=st(p),h}function st(h){return{direction:h,distance:0}}function dt(){return Ge-De}function pt(h,L){var j=Math.abs(h.x-L.x),J=Math.abs(h.y-L.y);return Math.round(Math.sqrt(j*j+J*J))}function ht(h,L){var j=L/h*1;return j.toFixed(2)}function kt(){return 1>xe?_:Q}function _t(h,L){return Math.round(Math.sqrt(Math.pow(L.x-h.x,2)+Math.pow(L.y-h.y,2)))}function Pt(h,L){var j=h.x-L.x,J=L.y-h.y,ve=Math.atan2(J,j),we=Math.round(180*ve/Math.PI);return 0>we&&(we=360-Math.abs(we)),we}function wt(h,L){if(yt(h,L))return u;var j=Pt(h,L);return 45>=j&&j>=0||360>=j&&j>=315?k:j>=135&&225>=j?C:j>45&&135>j?p:o}function nt(){var h=new Date;return h.getTime()}function Ct(h){h=n(h);var L=h.offset(),j={left:L.left,right:L.left+h.outerWidth(),top:L.top,bottom:L.top+h.outerHeight()};return j}function at(h,L){return h.x>L.left&&h.x<L.right&&h.y>L.top&&h.y<L.bottom}function yt(h,L){return h.x==L.x&&h.y==L.y}var v=n.extend({},v),He=Me||qe||!v.fallbackToMouseEvents,ye=He?qe?ze?"MSPointerDown":"pointerdown":"touchstart":"mousedown",Ee=He?qe?ze?"MSPointerMove":"pointermove":"touchmove":"mousemove",K=He?qe?ze?"MSPointerUp":"pointerup":"touchend":"mouseup",ot=He?qe?"mouseleave":null:"mouseleave",ne=qe?ze?"MSPointerCancel":"pointercancel":"touchcancel",le=0,ge=null,de=null,ue=0,Ve=0,Ye=0,xe=1,Te=0,Se=0,Ze=null,R=n(e),X="start",oe=0,B={},De=0,Ge=0,it=0,gt=0,Je=0,Re=null,rt=null;try{R.on(ye,r),R.on(ne,F)}catch{n.error("events not supported "+ye+","+ne+" on jQuery.swipe")}this.enable=function(){return this.disable(),R.on(ye,r),R.on(ne,F),R},this.disable=function(){return y(),R},this.destroy=function(){y(),R.data(Ae,null),R=null},this.option=function(h,L){if(typeof h=="object")v=n.extend(v,h);else if(v[h]!==void 0){if(L===void 0)return v[h];v[h]=L}else{if(!h)return v;n.error("Option "+h+" does not exist on jQuery.swipe.options")}return null}}var s="1.6.18",k="left",C="right",o="up",p="down",Q="in",_="out",u="none",S="auto",d="swipe",V="pinch",O="tap",A="doubletap",c="longtap",N="horizontal",G="vertical",ie="all",ce=10,Le="start",Ue="move",be="end",f="cancel",Me="ontouchstart"in window,ze=window.navigator.msPointerEnabled&&!window.PointerEvent&&!Me,qe=(window.PointerEvent||window.navigator.msPointerEnabled)&&!Me,Ae="TouchSwipe",ft={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:".noSwipe",preventDefaultEvents:!0};n.fn.swipe=function(e){var a=n(this),r=a.data(Ae);if(r&&typeof e=="string"){if(r[e])return r[e].apply(r,Array.prototype.slice.call(arguments,1));n.error("Method "+e+" does not exist on jQuery.swipe")}else if(r&&typeof e=="object")r.option.apply(r,arguments);else if(!(r||typeof e!="object"&&e))return t.apply(this,arguments);return a},n.fn.swipe.version=s,n.fn.swipe.defaults=ft,n.fn.swipe.phases={PHASE_START:Le,PHASE_MOVE:Ue,PHASE_END:be,PHASE_CANCEL:f},n.fn.swipe.directions={LEFT:k,RIGHT:C,UP:o,DOWN:p,IN:Q,OUT:_},n.fn.swipe.pageScroll={NONE:u,HORIZONTAL:N,VERTICAL:G,AUTO:S},n.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,FOUR:4,FIVE:5,ALL:ie}})})(tn);/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
*/const nn={template:"#password-feedback",hint:".js-hint-password",container:".password-strength-feedback",strengthText:".password-strength-text",requirementScore:".password-requirements-score",requirementLength:".password-requirements-length",requirementScoreIcon:".password-requirements-score i",requirementLengthIcon:".password-requirements-length i",progressBar:".progress-bar",inputColumn:".js-input-column"};b.themeSelectors={product:{tabs:".tabs .nav-link",activeNavClass:"js-product-nav-active",activeTabClass:"js-product-tab-active",activeTabs:".tabs .nav-link.active, .js-product-nav-active",imagesModal:".js-product-images-modal",thumb:".js-thumb",thumbContainer:".thumb-container, .js-thumb-container",arrows:".js-arrows",selected:".selected, .js-thumb-selected",modalProductCover:".js-modal-product-cover",cover:".js-qv-product-cover",customizationModal:".js-customization-modal"},listing:{searchFilterToggler:"#search_filter_toggler, .js-search-toggler",searchFiltersWrapper:"#search_filters_wrapper",searchFilterControls:"#search_filter_controls",searchFilters:"#search_filters",activeSearchFilters:"#js-active-search-filters",listTop:"#js-product-list-top",product:".js-product",list:"#js-product-list",listBottom:"#js-product-list-bottom",listHeader:"#js-product-list-header",searchFiltersClearAll:".js-search-filters-clear-all",searchLink:".js-search-link"},order:{returnForm:"#order-return-form, .js-order-return-form"},arrowDown:".arrow-down, .js-arrow-down",arrowUp:".arrow-up, .js-arrow-up",clear:".clear",fileInput:".js-file-input",contentWrapper:"#content-wrapper, .js-content-wrapper",footer:"#footer, .js-footer",modalContent:".js-modal-content",modal:"#modal, .js-checkout-modal",touchspin:".js-touchspin",checkout:{termsLink:".js-terms a",giftCheckbox:".js-gift-checkbox",imagesLink:".card-block .cart-summary-products p a, .js-show-details",carrierExtraContent:".carrier-extra-content, .js-carrier-extra-content",btn:".checkout a"},cart:{productLineQty:".js-cart-line-product-quantity",quickview:".quickview",touchspin:".bootstrap-touchspin",promoCode:"#promo-code",displayPromo:".display-promo",promoCodeButton:".promo-code-button",discountCode:".js-discount .code",discountName:"[name=discount_name]",actions:'[data-link-action="delete-from-cart"], [data-link-action="remove-voucher"]'},notifications:{dangerAlert:"#notifications article.alert-danger",container:"#notifications .notifications-container"},passwordPolicy:nn},i(document).ready(()=>{b.emit("themeSelectorsInit")});/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
*/b.responsive=b.responsive||{},b.responsive.current_width=window.innerWidth,b.responsive.min_width=768,b.responsive.mobile=b.responsive.current_width<b.responsive.min_width;function jt(l,n){const t=n.children().detach();n.empty().append(l.children().detach()),l.append(t)}function It(){b.responsive.mobile?i("*[id^='_desktop_']").each((l,n)=>{const t=i(`#${n.id.replace("_desktop_","_mobile_")}`);t.length&&jt(i(n),t)}):i("*[id^='_mobile_']").each((l,n)=>{const t=i(`#${n.id.replace("_mobile_","_desktop_")}`);t.length&&jt(i(n),t)}),b.emit("responsive update",{mobile:b.responsive.mobile})}i(window).on("resize",()=>{const l=b.responsive.current_width,n=b.responsive.min_width,t=window.innerWidth,w=l>=n&&t<n||l<n&&t>=n;b.responsive.current_width=t,b.responsive.mobile=b.responsive.current_width<b.responsive.min_width,w&&It()}),i(document).ready(()=>{b.responsive.mobile&&It()});/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
*/function rn(){i(b.themeSelectors.checkout.termsLink).on("click",l=>{l.preventDefault();let n=i(l.target).attr("href");n&&(n+="?content_only=1",i.get(n,t=>{i(b.themeSelectors.modal).find(b.themeSelectors.modalContent).html(i(t).find(".page-cms").contents())}).fail(t=>{b.emit("handleError",{eventType:"clickTerms",resp:t})})),i(b.themeSelectors.modal).modal("show")}),i(b.themeSelectors.checkout.giftCheckbox).on("click",()=>{i("#gift").slideToggle()})}function on(){i(b.themeSelectors.checkout.imagesLink).on("click",function(){const l=i(this).find("i.material-icons");l.text()==="expand_more"?l.text("expand_less"):l.text("expand_more")})}i(document).ready(()=>{i("body#checkout").length===1&&(rn(),on()),b.on("updatedDeliveryForm",l=>{typeof l.deliveryOption>"u"||l.deliveryOption.length===0||(i(b.themeSelectors.checkout.carrierExtraContent).hide(),l.deliveryOption.next(b.themeSelectors.checkout.carrierExtraContent).slideDown())})});/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
*/function sn(){i(`${b.themeSelectors.order.returnForm} table thead input[type=checkbox]`).on("click",function(){const l=i(this).prop("checked");i(`${b.themeSelectors.order.returnForm} table tbody input[type=checkbox]`).each((n,t)=>{i(t).prop("checked",l)})})}function an(){i("body#order-detail")&&sn()}i(document).ready(an);var ln={exports:{}};/*! VelocityJS.org (1.5.2). (C) 2014 Julian Shapiro. MIT @license: en.wikipedia.org/wiki/MIT_License */(function(l){/*! VelocityJS.org jQuery Shim (1.0.1). (C) 2014 The jQuery Foundation. MIT @license: en.wikipedia.org/wiki/MIT_License. */(function(n){if(n.jQuery)return;var t=function(_,u){return new t.fn.init(_,u)};t.isWindow=function(_){return _&&_===_.window},t.type=function(_){return _?typeof _=="object"||typeof _=="function"?k[o.call(_)]||"object":typeof _:_+""},t.isArray=Array.isArray||function(_){return t.type(_)==="array"};function w(_){var u=_.length,S=t.type(_);return S==="function"||t.isWindow(_)?!1:_.nodeType===1&&u?!0:S==="array"||u===0||typeof u=="number"&&u>0&&u-1 in _}t.isPlainObject=function(_){var u;if(!_||t.type(_)!=="object"||_.nodeType||t.isWindow(_))return!1;try{if(_.constructor&&!C.call(_,"constructor")&&!C.call(_.constructor.prototype,"isPrototypeOf"))return!1}catch{return!1}for(u in _);return u===void 0||C.call(_,u)},t.each=function(_,u,S){var d,V=0,O=_.length,A=w(_);if(S){if(A)for(;V<O&&(d=u.apply(_[V],S),d!==!1);V++);else for(V in _)if(_.hasOwnProperty(V)&&(d=u.apply(_[V],S),d===!1))break}else if(A)for(;V<O&&(d=u.call(_[V],V,_[V]),d!==!1);V++);else for(V in _)if(_.hasOwnProperty(V)&&(d=u.call(_[V],V,_[V]),d===!1))break;return _},t.data=function(_,u,S){if(S===void 0){var d=_[t.expando],V=d&&s[d];if(u===void 0)return V;if(V&&u in V)return V[u]}else if(u!==void 0){var O=_[t.expando]||(_[t.expando]=++t.uuid);return s[O]=s[O]||{},s[O][u]=S,S}},t.removeData=function(_,u){var S=_[t.expando],d=S&&s[S];d&&(u?t.each(u,function(V,O){delete d[O]}):delete s[S])},t.extend=function(){var _,u,S,d,V,O,A=arguments[0]||{},c=1,N=arguments.length,G=!1;for(typeof A=="boolean"&&(G=A,A=arguments[c]||{},c++),typeof A!="object"&&t.type(A)!=="function"&&(A={}),c===N&&(A=this,c--);c<N;c++)if(V=arguments[c])for(d in V)V.hasOwnProperty(d)&&(_=A[d],S=V[d],A!==S&&(G&&S&&(t.isPlainObject(S)||(u=t.isArray(S)))?(u?(u=!1,O=_&&t.isArray(_)?_:[]):O=_&&t.isPlainObject(_)?_:{},A[d]=t.extend(G,O,S)):S!==void 0&&(A[d]=S)));return A},t.queue=function(_,u,S){function d(O,A){var c=A||[];return O&&(w(Object(O))?function(N,G){for(var ie=+G.length,ce=0,Le=N.length;ce<ie;)N[Le++]=G[ce++];if(ie!==ie)for(;G[ce]!==void 0;)N[Le++]=G[ce++];return N.length=Le,N}(c,typeof O=="string"?[O]:O):[].push.call(c,O)),c}if(_){u=(u||"fx")+"queue";var V=t.data(_,u);return S?(!V||t.isArray(S)?V=t.data(_,u,d(S)):V.push(S),V):V||[]}},t.dequeue=function(_,u){t.each(_.nodeType?[_]:_,function(S,d){u=u||"fx";var V=t.queue(d,u),O=V.shift();O==="inprogress"&&(O=V.shift()),O&&(u==="fx"&&V.unshift("inprogress"),O.call(d,function(){t.dequeue(d,u)}))})},t.fn=t.prototype={init:function(_){if(_.nodeType)return this[0]=_,this;throw new Error("Not a DOM node.")},offset:function(){var _=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:_.top+(n.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:_.left+(n.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){function _(O){for(var A=O.offsetParent;A&&A.nodeName.toLowerCase()!=="html"&&A.style&&A.style.position.toLowerCase()==="static";)A=A.offsetParent;return A||document}var u=this[0],S=_(u),d=this.offset(),V=/^(?:body|html)$/i.test(S.nodeName)?{top:0,left:0}:t(S).offset();return d.top-=parseFloat(u.style.marginTop)||0,d.left-=parseFloat(u.style.marginLeft)||0,S.style&&(V.top+=parseFloat(S.style.borderTopWidth)||0,V.left+=parseFloat(S.style.borderLeftWidth)||0),{top:d.top-V.top,left:d.left-V.left}}};var s={};t.expando="velocity"+new Date().getTime(),t.uuid=0;for(var k={},C=k.hasOwnProperty,o=k.toString,p="Boolean Number String Function Array Date RegExp Object Error".split(" "),Q=0;Q<p.length;Q++)k["[object "+p[Q]+"]"]=p[Q].toLowerCase();t.fn.init.prototype=t.fn,n.Velocity={Utilities:t}})(window),function(n){l.exports=n()}(function(){return function(n,t,w,s){var k=function(){if(w.documentMode)return w.documentMode;for(var e=7;e>4;e--){var a=w.createElement("div");if(a.innerHTML="<!--[if IE "+e+"]><span></span><![endif]-->",a.getElementsByTagName("span").length)return a=null,e}return s}(),C=function(){var e=0;return t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||function(a){var r=new Date().getTime(),m;return m=Math.max(0,16-(r-e)),e=r+m,setTimeout(function(){a(r+m)},m)}}(),o=function(){var e=t.performance||{};if(typeof e.now!="function"){var a=e.timing&&e.timing.navigationStart?e.timing.navigationStart:new Date().getTime();e.now=function(){return new Date().getTime()-a}}return e}();function p(e){for(var a=-1,r=e?e.length:0,m=[];++a<r;){var x=e[a];x&&m.push(x)}return m}var Q=function(){var e=Array.prototype.slice;try{return e.call(w.documentElement),e}catch{return function(r,m){var x=this.length;if(typeof r!="number"&&(r=0),typeof m!="number"&&(m=x),this.slice)return e.call(this,r,m);var F,T=[],y=r>=0?r:Math.max(0,x+r),E=m<0?x+m:Math.min(m,x),I=E-y;if(I>0)if(T=new Array(I),this.charAt)for(F=0;F<I;F++)T[F]=this.charAt(y+F);else for(F=0;F<I;F++)T[F]=this[y+F];return T}}}(),_=function(){return Array.prototype.includes?function(e,a){return e.includes(a)}:Array.prototype.indexOf?function(e,a){return e.indexOf(a)>=0}:function(e,a){for(var r=0;r<e.length;r++)if(e[r]===a)return!0;return!1}};function u(e){return S.isWrapped(e)?e=Q.call(e):S.isNode(e)&&(e=[e]),e}var S={isNumber:function(e){return typeof e=="number"},isString:function(e){return typeof e=="string"},isArray:Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"},isFunction:function(e){return Object.prototype.toString.call(e)==="[object Function]"},isNode:function(e){return e&&e.nodeType},isWrapped:function(e){return e&&e!==t&&S.isNumber(e.length)&&!S.isString(e)&&!S.isFunction(e)&&!S.isNode(e)&&(e.length===0||S.isNode(e[0]))},isSVG:function(e){return t.SVGElement&&e instanceof t.SVGElement},isEmptyObject:function(e){for(var a in e)if(e.hasOwnProperty(a))return!1;return!0}},d,V=!1;if(n.fn&&n.fn.jquery?(d=n,V=!0):d=t.Velocity.Utilities,k<=8&&!V)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(k<=7){jQuery.fn.velocity=jQuery.fn.animate;return}var O=400,A="swing",c={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(t.navigator.userAgent),isAndroid:/Android/i.test(t.navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(t.navigator.userAgent),isChrome:t.chrome,isFirefox:/Firefox/i.test(t.navigator.userAgent),prefixElement:w.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[],delayedElements:{count:0}},CSS:{},Utilities:d,Redirects:{},Easings:{},Promise:t.Promise,defaults:{queue:"",duration:O,easing:A,begin:s,complete:s,progress:s,display:s,visibility:s,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0,promiseRejectEmpty:!0},init:function(e){d.data(e,"velocity",{isSVG:S.isSVG(e),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:5,patch:2},debug:!1,timestamp:!0,pauseAll:function(e){var a=new Date().getTime();d.each(c.State.calls,function(r,m){if(m){if(e!==s&&(m[2].queue!==e||m[2].queue===!1))return!0;m[5]={resume:!1}}}),d.each(c.State.delayedElements,function(r,m){m&&G(m,a)})},resumeAll:function(e){new Date().getTime(),d.each(c.State.calls,function(a,r){if(r){if(e!==s&&(r[2].queue!==e||r[2].queue===!1))return!0;r[5]&&(r[5].resume=!0)}}),d.each(c.State.delayedElements,function(a,r){r&&ie(r)})}};t.pageYOffset!==s?(c.State.scrollAnchor=t,c.State.scrollPropertyLeft="pageXOffset",c.State.scrollPropertyTop="pageYOffset"):(c.State.scrollAnchor=w.documentElement||w.body.parentNode||w.body,c.State.scrollPropertyLeft="scrollLeft",c.State.scrollPropertyTop="scrollTop");function N(e){var a=d.data(e,"velocity");return a===null?s:a}function G(e,a){var r=N(e);r&&r.delayTimer&&!r.delayPaused&&(r.delayRemaining=r.delay-a+r.delayBegin,r.delayPaused=!0,clearTimeout(r.delayTimer.setTimeout))}function ie(e,a){var r=N(e);r&&r.delayTimer&&r.delayPaused&&(r.delayPaused=!1,r.delayTimer.setTimeout=setTimeout(r.delayTimer.next,r.delayRemaining))}function ce(e){return function(a){return Math.round(a*e)*(1/e)}}function Le(e,a,r,m){var x=4,F=.001,T=1e-7,y=10,E=11,I=1/(E-1),z="Float32Array"in t;if(arguments.length!==4)return!1;for(var D=0;D<4;++D)if(typeof arguments[D]!="number"||isNaN(arguments[D])||!isFinite(arguments[D]))return!1;e=Math.min(e,1),r=Math.min(r,1),e=Math.max(e,0),r=Math.max(r,0);var U=z?new Float32Array(E):new Array(E);function W(M,H){return 1-3*H+3*M}function re(M,H){return 3*H-6*M}function Z(M){return 3*M}function g(M,H,P){return((W(H,P)*M+re(H,P))*M+Z(H))*M}function q(M,H,P){return 3*W(H,P)*M*M+2*re(H,P)*M+Z(H)}function ee(M,H){for(var P=0;P<x;++P){var se=q(H,e,r);if(se===0)return H;var ae=g(H,e,r)-M;H-=ae/se}return H}function pe(){for(var M=0;M<E;++M)U[M]=g(M*I,e,r)}function Y(M,H,P){var se,ae,he=0;do ae=H+(P-H)/2,se=g(ae,e,r)-M,se>0?P=ae:H=ae;while(Math.abs(se)>T&&++he<y);return ae}function Pe(M){for(var H=0,P=1,se=E-1;P!==se&&U[P]<=M;++P)H+=I;--P;var ae=(M-U[P])/(U[P+1]-U[P]),he=H+ae*I,_e=q(he,e,r);return _e>=F?ee(M,he):_e===0?he:Y(M,H,H+I)}var Ne=!1;function et(){Ne=!0,(e!==a||r!==m)&&pe()}var Oe=function(M){return Ne||et(),e===a&&r===m?M:M===0?0:M===1?1:g(Pe(M),a,m)};Oe.getControlPoints=function(){return[{x:e,y:a},{x:r,y:m}]};var ke="generateBezier("+[e,a,r,m]+")";return Oe.toString=function(){return ke},Oe}var Ue=function(){function e(m){return-m.tension*m.x-m.friction*m.v}function a(m,x,F){var T={x:m.x+F.dx*x,v:m.v+F.dv*x,tension:m.tension,friction:m.friction};return{dx:T.v,dv:e(T)}}function r(m,x){var F={dx:m.v,dv:e(m)},T=a(m,x*.5,F),y=a(m,x*.5,T),E=a(m,x,y),I=1/6*(F.dx+2*(T.dx+y.dx)+E.dx),z=1/6*(F.dv+2*(T.dv+y.dv)+E.dv);return m.x=m.x+I*x,m.v=m.v+z*x,m}return function m(x,F,T){var y={x:-1,v:0,tension:null,friction:null},E=[0],I=0,z=1/1e4,D=16/1e3,U,W,re;for(x=parseFloat(x)||500,F=parseFloat(F)||20,T=T||null,y.tension=x,y.friction=F,U=T!==null,U?(I=m(x,F),W=I/T*D):W=D;re=r(re||y,W),E.push(1+re.x),I+=16,Math.abs(re.x)>z&&Math.abs(re.v)>z;);return U?function(Z){return E[Z*(E.length-1)|0]}:I}}();c.Easings={linear:function(e){return e},swing:function(e){return .5-Math.cos(e*Math.PI)/2},spring:function(e){return 1-Math.cos(e*4.5*Math.PI)*Math.exp(-e*6)}},d.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],function(e,a){c.Easings[a[0]]=Le.apply(null,a[1])});function be(e,a){var r=e;return S.isString(e)?c.Easings[e]||(r=!1):S.isArray(e)&&e.length===1?r=ce.apply(null,e):S.isArray(e)&&e.length===2?r=Ue.apply(null,e.concat([a])):S.isArray(e)&&e.length===4?r=Le.apply(null,e):r=!1,r===!1&&(c.Easings[c.defaults.easing]?r=c.defaults.easing:r=A),r}var f=c.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/ig},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"],units:["%","em","ex","ch","rem","vw","vh","vmin","vmax","cm","mm","Q","in","pc","pt","px","deg","grad","rad","turn","s","ms"],colorNames:{aliceblue:"240,248,255",antiquewhite:"250,235,215",aquamarine:"127,255,212",aqua:"0,255,255",azure:"240,255,255",beige:"245,245,220",bisque:"255,228,196",black:"0,0,0",blanchedalmond:"255,235,205",blueviolet:"138,43,226",blue:"0,0,255",brown:"165,42,42",burlywood:"222,184,135",cadetblue:"95,158,160",chartreuse:"127,255,0",chocolate:"210,105,30",coral:"255,127,80",cornflowerblue:"100,149,237",cornsilk:"255,248,220",crimson:"220,20,60",cyan:"0,255,255",darkblue:"0,0,139",darkcyan:"0,139,139",darkgoldenrod:"184,134,11",darkgray:"169,169,169",darkgrey:"169,169,169",darkgreen:"0,100,0",darkkhaki:"189,183,107",darkmagenta:"139,0,139",darkolivegreen:"85,107,47",darkorange:"255,140,0",darkorchid:"153,50,204",darkred:"139,0,0",darksalmon:"233,150,122",darkseagreen:"143,188,143",darkslateblue:"72,61,139",darkslategray:"47,79,79",darkturquoise:"0,206,209",darkviolet:"148,0,211",deeppink:"255,20,147",deepskyblue:"0,191,255",dimgray:"105,105,105",dimgrey:"105,105,105",dodgerblue:"30,144,255",firebrick:"178,34,34",floralwhite:"255,250,240",forestgreen:"34,139,34",fuchsia:"255,0,255",gainsboro:"220,220,220",ghostwhite:"248,248,255",gold:"255,215,0",goldenrod:"218,165,32",gray:"128,128,128",grey:"128,128,128",greenyellow:"173,255,47",green:"0,128,0",honeydew:"240,255,240",hotpink:"255,105,180",indianred:"205,92,92",indigo:"75,0,130",ivory:"255,255,240",khaki:"240,230,140",lavenderblush:"255,240,245",lavender:"230,230,250",lawngreen:"124,252,0",lemonchiffon:"255,250,205",lightblue:"173,216,230",lightcoral:"240,128,128",lightcyan:"224,255,255",lightgoldenrodyellow:"250,250,210",lightgray:"211,211,211",lightgrey:"211,211,211",lightgreen:"144,238,144",lightpink:"255,182,193",lightsalmon:"255,160,122",lightseagreen:"32,178,170",lightskyblue:"135,206,250",lightslategray:"119,136,153",lightsteelblue:"176,196,222",lightyellow:"255,255,224",limegreen:"50,205,50",lime:"0,255,0",linen:"250,240,230",magenta:"255,0,255",maroon:"128,0,0",mediumaquamarine:"102,205,170",mediumblue:"0,0,205",mediumorchid:"186,85,211",mediumpurple:"147,112,219",mediumseagreen:"60,179,113",mediumslateblue:"123,104,238",mediumspringgreen:"0,250,154",mediumturquoise:"72,209,204",mediumvioletred:"199,21,133",midnightblue:"25,25,112",mintcream:"245,255,250",mistyrose:"255,228,225",moccasin:"255,228,181",navajowhite:"255,222,173",navy:"0,0,128",oldlace:"253,245,230",olivedrab:"107,142,35",olive:"128,128,0",orangered:"255,69,0",orange:"255,165,0",orchid:"218,112,214",palegoldenrod:"238,232,170",palegreen:"152,251,152",paleturquoise:"175,238,238",palevioletred:"219,112,147",papayawhip:"255,239,213",peachpuff:"255,218,185",peru:"205,133,63",pink:"255,192,203",plum:"221,160,221",powderblue:"176,224,230",purple:"128,0,128",red:"255,0,0",rosybrown:"188,143,143",royalblue:"65,105,225",saddlebrown:"139,69,19",salmon:"250,128,114",sandybrown:"244,164,96",seagreen:"46,139,87",seashell:"255,245,238",sienna:"160,82,45",silver:"192,192,192",skyblue:"135,206,235",slateblue:"106,90,205",slategray:"112,128,144",snow:"255,250,250",springgreen:"0,255,127",steelblue:"70,130,180",tan:"210,180,140",teal:"0,128,128",thistle:"216,191,216",tomato:"255,99,71",turquoise:"64,224,208",violet:"238,130,238",wheat:"245,222,179",whitesmoke:"245,245,245",white:"255,255,255",yellowgreen:"154,205,50",yellow:"255,255,0"}},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){for(var e=0;e<f.Lists.colors.length;e++){var a=f.Lists.colors[e]==="color"?"0 0 0 1":"255 255 255 1";f.Hooks.templates[f.Lists.colors[e]]=["Red Green Blue Alpha",a]}var r,m,x;if(k){for(r in f.Hooks.templates)if(f.Hooks.templates.hasOwnProperty(r)){m=f.Hooks.templates[r],x=m[0].split(" ");var F=m[1].match(f.RegEx.valueSplit);x[0]==="Color"&&(x.push(x.shift()),F.push(F.shift()),f.Hooks.templates[r]=[x.join(" "),F.join(" ")])}}for(r in f.Hooks.templates)if(f.Hooks.templates.hasOwnProperty(r)){m=f.Hooks.templates[r],x=m[0].split(" ");for(var T in x)if(x.hasOwnProperty(T)){var y=r+x[T],E=T;f.Hooks.registered[y]=[r,E]}}},getRoot:function(e){var a=f.Hooks.registered[e];return a?a[0]:e},getUnit:function(e,a){var r=(e.substr(a||0,5).match(/^[a-z%]+/)||[])[0]||"";return r&&_(f.Lists.units)?r:""},fixColors:function(e){return e.replace(/(rgba?\(\s*)?(\b[a-z]+\b)/g,function(a,r,m){return f.Lists.colorNames.hasOwnProperty(m)?(r||"rgba(")+f.Lists.colorNames[m]+(r?"":",1)"):r+m})},cleanRootPropertyValue:function(e,a){return f.RegEx.valueUnwrap.test(a)&&(a=a.match(f.RegEx.valueUnwrap)[1]),f.Values.isCSSNullValue(a)&&(a=f.Hooks.templates[e][1]),a},extractValue:function(e,a){var r=f.Hooks.registered[e];if(r){var m=r[0],x=r[1];return a=f.Hooks.cleanRootPropertyValue(m,a),a.toString().match(f.RegEx.valueSplit)[x]}else return a},injectValue:function(e,a,r){var m=f.Hooks.registered[e];if(m){var x=m[0],F=m[1],T,y;return r=f.Hooks.cleanRootPropertyValue(x,r),T=r.toString().match(f.RegEx.valueSplit),T[F]=a,y=T.join(" "),y}else return r}},Normalizations:{registered:{clip:function(e,a,r){switch(e){case"name":return"clip";case"extract":var m;return f.RegEx.wrappedValueAlreadyExtracted.test(r)?m=r:(m=r.toString().match(f.RegEx.valueUnwrap),m=m?m[1].replace(/,(\s+)?/g," "):r),m;case"inject":return"rect("+r+")"}},blur:function(e,a,r){switch(e){case"name":return c.State.isFirefox?"filter":"-webkit-filter";case"extract":var m=parseFloat(r);if(!(m||m===0)){var x=r.toString().match(/blur\(([0-9]+[A-z]+)\)/i);x?m=x[1]:m=0}return m;case"inject":return parseFloat(r)?"blur("+r+")":"none"}},opacity:function(e,a,r){if(k<=8)switch(e){case"name":return"filter";case"extract":var m=r.toString().match(/alpha\(opacity=(.*)\)/i);return m?r=m[1]/100:r=1,r;case"inject":return a.style.zoom=1,parseFloat(r)>=1?"":"alpha(opacity="+parseInt(parseFloat(r)*100,10)+")"}else switch(e){case"name":return"opacity";case"extract":return r;case"inject":return r}}},register:function(){(!k||k>9)&&!c.State.isGingerbread&&(f.Lists.transformsBase=f.Lists.transformsBase.concat(f.Lists.transforms3D));for(var e=0;e<f.Lists.transformsBase.length;e++)(function(){var x=f.Lists.transformsBase[e];f.Normalizations.registered[x]=function(F,T,y){switch(F){case"name":return"transform";case"extract":return N(T)===s||N(T).transformCache[x]===s?/^scale/i.test(x)?1:0:N(T).transformCache[x].replace(/[()]/g,"");case"inject":var E=!1;switch(x.substr(0,x.length-1)){case"translate":E=!/(%|px|em|rem|vw|vh|\d)$/i.test(y);break;case"scal":case"scale":c.State.isAndroid&&N(T).transformCache[x]===s&&y<1&&(y=1),E=!/(\d)$/i.test(y);break;case"skew":E=!/(deg|\d)$/i.test(y);break;case"rotate":E=!/(deg|\d)$/i.test(y);break}return E||(N(T).transformCache[x]="("+y+")"),N(T).transformCache[x]}}})();for(var a=0;a<f.Lists.colors.length;a++)(function(){var x=f.Lists.colors[a];f.Normalizations.registered[x]=function(F,T,y){switch(F){case"name":return x;case"extract":var E;if(f.RegEx.wrappedValueAlreadyExtracted.test(y))E=y;else{var I,z={black:"rgb(0, 0, 0)",blue:"rgb(0, 0, 255)",gray:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",red:"rgb(255, 0, 0)",white:"rgb(255, 255, 255)"};/^[A-z]+$/i.test(y)?z[y]!==s?I=z[y]:I=z.black:f.RegEx.isHex.test(y)?I="rgb("+f.Values.hexToRgb(y).join(" ")+")":/^rgba?\(/i.test(y)||(I=z.black),E=(I||y).toString().match(f.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")}return(!k||k>8)&&E.split(" ").length===3&&(E+=" 1"),E;case"inject":return/^rgb/.test(y)?y:(k<=8?y.split(" ").length===4&&(y=y.split(/\s+/).slice(0,3).join(" ")):y.split(" ").length===3&&(y+=" 1"),(k<=8?"rgb":"rgba")+"("+y.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")")}}})();function r(x,F,T){var y=f.getPropertyValue(F,"boxSizing").toString().toLowerCase()==="border-box";if(y===(T||!1)){var E,I,z=0,D=x==="width"?["Left","Right"]:["Top","Bottom"],U=["padding"+D[0],"padding"+D[1],"border"+D[0]+"Width","border"+D[1]+"Width"];for(E=0;E<U.length;E++)I=parseFloat(f.getPropertyValue(F,U[E])),isNaN(I)||(z+=I);return T?-z:z}return 0}function m(x,F){return function(T,y,E){switch(T){case"name":return x;case"extract":return parseFloat(E)+r(x,y,F);case"inject":return parseFloat(E)-r(x,y,F)+"px"}}}f.Normalizations.registered.innerWidth=m("width",!0),f.Normalizations.registered.innerHeight=m("height",!0),f.Normalizations.registered.outerWidth=m("width"),f.Normalizations.registered.outerHeight=m("height")}},Names:{camelCase:function(e){return e.replace(/-(\w)/g,function(a,r){return r.toUpperCase()})},SVGAttribute:function(e){var a="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(k||c.State.isAndroid&&!c.State.isChrome)&&(a+="|transform"),new RegExp("^("+a+")$","i").test(e)},prefixCheck:function(e){if(c.State.prefixMatches[e])return[c.State.prefixMatches[e],!0];for(var a=["","Webkit","Moz","ms","O"],r=0,m=a.length;r<m;r++){var x;if(r===0?x=e:x=a[r]+e.replace(/^\w/,function(F){return F.toUpperCase()}),S.isString(c.State.prefixElement.style[x]))return c.State.prefixMatches[e]=x,[x,!0]}return[e,!1]}},Values:{hexToRgb:function(e){var a=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,m;return e=e.replace(a,function(x,F,T,y){return F+F+T+T+y+y}),m=r.exec(e),m?[parseInt(m[1],16),parseInt(m[2],16),parseInt(m[3],16)]:[0,0,0]},isCSSNullValue:function(e){return!e||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(e)},getUnitType:function(e){return/^(rotate|skew)/i.test(e)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(e)?"":"px"},getDisplayType:function(e){var a=e&&e.tagName.toString().toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(a)?"inline":/^(li)$/i.test(a)?"list-item":/^(tr)$/i.test(a)?"table-row":/^(table)$/i.test(a)?"table":/^(tbody)$/i.test(a)?"table-row-group":"block"},addClass:function(e,a){if(e)if(e.classList)e.classList.add(a);else if(S.isString(e.className))e.className+=(e.className.length?" ":"")+a;else{var r=e.getAttribute(k<=7?"className":"class")||"";e.setAttribute("class",r+(r?" ":"")+a)}},removeClass:function(e,a){if(e)if(e.classList)e.classList.remove(a);else if(S.isString(e.className))e.className=e.className.toString().replace(new RegExp("(^|\\s)"+a.split(" ").join("|")+"(\\s|$)","gi")," ");else{var r=e.getAttribute(k<=7?"className":"class")||"";e.setAttribute("class",r.replace(new RegExp("(^|s)"+a.split(" ").join("|")+"(s|$)","gi")," "))}}},getPropertyValue:function(e,a,r,m){function x(D,U){var W=0;if(k<=8)W=d.css(D,U);else{var re=!1;/^(width|height)$/.test(U)&&f.getPropertyValue(D,"display")===0&&(re=!0,f.setPropertyValue(D,"display",f.Values.getDisplayType(D)));var Z=function(){re&&f.setPropertyValue(D,"display","none")};if(!m){if(U==="height"&&f.getPropertyValue(D,"boxSizing").toString().toLowerCase()!=="border-box"){var g=D.offsetHeight-(parseFloat(f.getPropertyValue(D,"borderTopWidth"))||0)-(parseFloat(f.getPropertyValue(D,"borderBottomWidth"))||0)-(parseFloat(f.getPropertyValue(D,"paddingTop"))||0)-(parseFloat(f.getPropertyValue(D,"paddingBottom"))||0);return Z(),g}else if(U==="width"&&f.getPropertyValue(D,"boxSizing").toString().toLowerCase()!=="border-box"){var q=D.offsetWidth-(parseFloat(f.getPropertyValue(D,"borderLeftWidth"))||0)-(parseFloat(f.getPropertyValue(D,"borderRightWidth"))||0)-(parseFloat(f.getPropertyValue(D,"paddingLeft"))||0)-(parseFloat(f.getPropertyValue(D,"paddingRight"))||0);return Z(),q}}var ee;N(D)===s?ee=t.getComputedStyle(D,null):N(D).computedStyle?ee=N(D).computedStyle:ee=N(D).computedStyle=t.getComputedStyle(D,null),U==="borderColor"&&(U="borderTopColor"),k===9&&U==="filter"?W=ee.getPropertyValue(U):W=ee[U],(W===""||W===null)&&(W=D.style[U]),Z()}if(W==="auto"&&/^(top|right|bottom|left)$/i.test(U)){var pe=x(D,"position");(pe==="fixed"||pe==="absolute"&&/top|left/i.test(U))&&(W=d(D).position()[U]+"px")}return W}var F;if(f.Hooks.registered[a]){var T=a,y=f.Hooks.getRoot(T);r===s&&(r=f.getPropertyValue(e,f.Names.prefixCheck(y)[0])),f.Normalizations.registered[y]&&(r=f.Normalizations.registered[y]("extract",e,r)),F=f.Hooks.extractValue(T,r)}else if(f.Normalizations.registered[a]){var E,I;E=f.Normalizations.registered[a]("name",e),E!=="transform"&&(I=x(e,f.Names.prefixCheck(E)[0]),f.Values.isCSSNullValue(I)&&f.Hooks.templates[a]&&(I=f.Hooks.templates[a][1])),F=f.Normalizations.registered[a]("extract",e,I)}if(!/^[\d-]/.test(F)){var z=N(e);if(z&&z.isSVG&&f.Names.SVGAttribute(a))if(/^(height|width)$/i.test(a))try{F=e.getBBox()[a]}catch{F=0}else F=e.getAttribute(a);else F=x(e,f.Names.prefixCheck(a)[0])}return f.Values.isCSSNullValue(F)&&(F=0),c.debug>=2&&console.log("Get "+a+": "+F),F},setPropertyValue:function(e,a,r,m,x){var F=a;if(a==="scroll")x.container?x.container["scroll"+x.direction]=r:x.direction==="Left"?t.scrollTo(r,x.alternateValue):t.scrollTo(x.alternateValue,r);else if(f.Normalizations.registered[a]&&f.Normalizations.registered[a]("name",e)==="transform")f.Normalizations.registered[a]("inject",e,r),F="transform",r=N(e).transformCache[a];else{if(f.Hooks.registered[a]){var T=a,y=f.Hooks.getRoot(a);m=m||f.getPropertyValue(e,y),r=f.Hooks.injectValue(T,r,m),a=y}if(f.Normalizations.registered[a]&&(r=f.Normalizations.registered[a]("inject",e,r),a=f.Normalizations.registered[a]("name",e)),F=f.Names.prefixCheck(a)[0],k<=8)try{e.style[F]=r}catch{c.debug&&console.log("Browser does not support ["+r+"] for ["+F+"]")}else{var E=N(e);E&&E.isSVG&&f.Names.SVGAttribute(a)?e.setAttribute(a,r):e.style[F]=r}c.debug>=2&&console.log("Set "+a+" ("+F+"): "+r)}return[F,r]},flushTransformCache:function(e){var a="",r=N(e);if((k||c.State.isAndroid&&!c.State.isChrome)&&r&&r.isSVG){var m=function(y){return parseFloat(f.getPropertyValue(e,y))},x={translate:[m("translateX"),m("translateY")],skewX:[m("skewX")],skewY:[m("skewY")],scale:m("scale")!==1?[m("scale"),m("scale")]:[m("scaleX"),m("scaleY")],rotate:[m("rotateZ"),0,0]};d.each(N(e).transformCache,function(y){/^translate/i.test(y)?y="translate":/^scale/i.test(y)?y="scale":/^rotate/i.test(y)&&(y="rotate"),x[y]&&(a+=y+"("+x[y].join(" ")+") ",delete x[y])})}else{var F,T;d.each(N(e).transformCache,function(y){if(F=N(e).transformCache[y],y==="transformPerspective")return T=F,!0;k===9&&y==="rotateZ"&&(y="rotate"),a+=y+F+" "}),T&&(a="perspective"+T+" "+a)}f.setPropertyValue(e,"transform",a)}};f.Hooks.register(),f.Normalizations.register(),c.hook=function(e,a,r){var m;return e=u(e),d.each(e,function(x,F){if(N(F)===s&&c.init(F),r===s)m===s&&(m=f.getPropertyValue(F,a));else{var T=f.setPropertyValue(F,a,r);T[0]==="transform"&&c.CSS.flushTransformCache(F),m=T}}),m};var Me=function(){var e;function a(){return m?I.promise||null:x}var r=arguments[0]&&(arguments[0].p||d.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||S.isString(arguments[0].properties)),m,x,F,T,y,E;S.isWrapped(this)?(m=!1,F=0,T=this,x=this):(m=!0,F=1,T=r?arguments[0].elements||arguments[0].e:arguments[0]);var I={promise:null,resolver:null,rejecter:null};if(m&&c.Promise&&(I.promise=new c.Promise(function(M,H){I.resolver=M,I.rejecter=H})),r?(y=arguments[0].properties||arguments[0].p,E=arguments[0].options||arguments[0].o):(y=arguments[F],E=arguments[F+1]),T=u(T),!T){I.promise&&(!y||!E||E.promiseRejectEmpty!==!1?I.rejecter():I.resolver());return}var z=T.length,D=0;if(!/^(stop|finish|finishAll|pause|resume)$/i.test(y)&&!d.isPlainObject(E)){var U=F+1;E={};for(var W=U;W<arguments.length;W++)!S.isArray(arguments[W])&&(/^(fast|normal|slow)$/i.test(arguments[W])||/^\d/.test(arguments[W]))?E.duration=arguments[W]:S.isString(arguments[W])||S.isArray(arguments[W])?E.easing=arguments[W]:S.isFunction(arguments[W])&&(E.complete=arguments[W])}var re;switch(y){case"scroll":re="scroll";break;case"reverse":re="reverse";break;case"pause":var Z=new Date().getTime();return d.each(T,function(M,H){G(H,Z)}),d.each(c.State.calls,function(M,H){var P=!1;H&&d.each(H[1],function(se,ae){var he=E===s?"":E;if(he!==!0&&H[2].queue!==he&&!(E===s&&H[2].queue===!1))return!0;if(d.each(T,function(_e,Ce){if(Ce===ae)return H[5]={resume:!1},P=!0,!1}),P)return!1})}),a();case"resume":return d.each(T,function(M,H){ie(H)}),d.each(c.State.calls,function(M,H){var P=!1;H&&d.each(H[1],function(se,ae){var he=E===s?"":E;if(he!==!0&&H[2].queue!==he&&!(E===s&&H[2].queue===!1)||!H[5])return!0;if(d.each(T,function(_e,Ce){if(Ce===ae)return H[5].resume=!0,P=!0,!1}),P)return!1})}),a();case"finish":case"finishAll":case"stop":d.each(T,function(M,H){N(H)&&N(H).delayTimer&&(clearTimeout(N(H).delayTimer.setTimeout),N(H).delayTimer.next&&N(H).delayTimer.next(),delete N(H).delayTimer),y==="finishAll"&&(E===!0||S.isString(E))&&(d.each(d.queue(H,S.isString(E)?E:""),function(P,se){S.isFunction(se)&&se()}),d.queue(H,S.isString(E)?E:"",[]))});var g=[];return d.each(c.State.calls,function(M,H){H&&d.each(H[1],function(P,se){var ae=E===s?"":E;if(ae!==!0&&H[2].queue!==ae&&!(E===s&&H[2].queue===!1))return!0;d.each(T,function(he,_e){if(_e===se)if((E===!0||S.isString(E))&&(d.each(d.queue(_e,S.isString(E)?E:""),function(We,te){S.isFunction(te)&&te(null,!0)}),d.queue(_e,S.isString(E)?E:"",[])),y==="stop"){var Ce=N(_e);Ce&&Ce.tweensContainer&&(ae===!0||ae==="")&&d.each(Ce.tweensContainer,function(We,te){te.endValue=te.currentValue}),g.push(M)}else(y==="finish"||y==="finishAll")&&(H[2].duration=1)})})}),y==="stop"&&(d.each(g,function(M,H){ft(H,!0)}),I.promise&&I.resolver(T)),a();default:if(d.isPlainObject(y)&&!S.isEmptyObject(y))re="start";else if(S.isString(y)&&c.Redirects[y]){e=d.extend({},E);var q=e.duration,ee=e.delay||0;return e.backwards===!0&&(T=d.extend(!0,[],T).reverse()),d.each(T,function(M,H){parseFloat(e.stagger)?e.delay=ee+parseFloat(e.stagger)*M:S.isFunction(e.stagger)&&(e.delay=ee+e.stagger.call(H,M,z)),e.drag&&(e.duration=parseFloat(q)||(/^(callout|transition)/.test(y)?1e3:O),e.duration=Math.max(e.duration*(e.backwards?1-M/z:(M+1)/z),e.duration*.75,200)),c.Redirects[y].call(H,H,e||{},M,z,T,I.promise?I:s)}),a()}else{var pe="Velocity: First argument ("+y+") was not a property map, a known action, or a registered redirect. Aborting.";return I.promise?I.rejecter(new Error(pe)):t.console&&console.log(pe),a()}}var Y={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},Pe=[];function Ne(M,H){var P=d.extend({},c.defaults,E),se={},ae;switch(N(M)===s&&c.init(M),parseFloat(P.delay)&&P.queue!==!1&&d.queue(M,P.queue,function(We,te){if(te===!0)return!0;c.velocityQueueEntryFlag=!0;var me=c.State.delayedElements.count++;c.State.delayedElements[me]=M;var Be=function(tt){return function(){c.State.delayedElements[tt]=!1,We()}}(me);N(M).delayBegin=new Date().getTime(),N(M).delay=parseFloat(P.delay),N(M).delayTimer={setTimeout:setTimeout(We,parseFloat(P.delay)),next:Be}}),P.duration.toString().toLowerCase()){case"fast":P.duration=200;break;case"normal":P.duration=O;break;case"slow":P.duration=600;break;default:P.duration=parseFloat(P.duration)||1}c.mock!==!1&&(c.mock===!0?P.duration=P.delay=1:(P.duration*=parseFloat(c.mock)||1,P.delay*=parseFloat(c.mock)||1)),P.easing=be(P.easing,P.duration),P.begin&&!S.isFunction(P.begin)&&(P.begin=null),P.progress&&!S.isFunction(P.progress)&&(P.progress=null),P.complete&&!S.isFunction(P.complete)&&(P.complete=null),P.display!==s&&P.display!==null&&(P.display=P.display.toString().toLowerCase(),P.display==="auto"&&(P.display=c.CSS.Values.getDisplayType(M))),P.visibility!==s&&P.visibility!==null&&(P.visibility=P.visibility.toString().toLowerCase()),P.mobileHA=P.mobileHA&&c.State.isMobile&&!c.State.isGingerbread;function he(We){var te,me;if(P.begin&&D===0)try{P.begin.call(T,T)}catch(v){setTimeout(function(){throw v},1)}if(re==="scroll"){var Be=/^x$/i.test(P.axis)?"Left":"Top",tt=parseFloat(P.offset)||0,Qe,vt,bt;P.container?S.isWrapped(P.container)||S.isNode(P.container)?(P.container=P.container[0]||P.container,Qe=P.container["scroll"+Be],bt=Qe+d(M).position()[Be.toLowerCase()]+tt):P.container=null:(Qe=c.State.scrollAnchor[c.State["scrollProperty"+Be]],vt=c.State.scrollAnchor[c.State["scrollProperty"+(Be==="Left"?"Top":"Left")]],bt=d(M).offset()[Be.toLowerCase()]+tt),se={scroll:{rootPropertyValue:!1,startValue:Qe,currentValue:Qe,endValue:bt,unitType:"",easing:P.easing,scrollData:{container:P.container,direction:Be,alternateValue:vt}},element:M},c.debug&&console.log("tweensContainer (scroll): ",se.scroll,M)}else if(re==="reverse"){if(te=N(M),!te)return;if(te.tweensContainer){te.opts.display==="none"&&(te.opts.display="auto"),te.opts.visibility==="hidden"&&(te.opts.visibility="visible"),te.opts.loop=!1,te.opts.begin=null,te.opts.complete=null,E.easing||delete P.easing,E.duration||delete P.duration,P=d.extend({},te.opts,P),me=d.extend(!0,{},te?te.tweensContainer:null);for(var je in me)if(me.hasOwnProperty(je)&&je!=="element"){var Tt=me[je].startValue;me[je].startValue=me[je].currentValue=me[je].endValue,me[je].endValue=Tt,S.isEmptyObject(E)||(me[je].easing=P.easing),c.debug&&console.log("reverse tweensContainer ("+je+"): "+JSON.stringify(me[je]),M)}se=me}else{d.dequeue(M,P.queue);return}}else if(re==="start"){te=N(M),te&&te.tweensContainer&&te.isAnimating===!0&&(me=te.tweensContainer);var At=function(v,He){var ye,Ee,K;return S.isFunction(v)&&(v=v.call(M,H,z)),S.isArray(v)?(ye=v[0],!S.isArray(v[1])&&/^[\d-]/.test(v[1])||S.isFunction(v[1])||f.RegEx.isHex.test(v[1])?K=v[1]:S.isString(v[1])&&!f.RegEx.isHex.test(v[1])&&c.Easings[v[1]]||S.isArray(v[1])?(Ee=He?v[1]:be(v[1],P.duration),K=v[2]):K=v[1]||v[2]):ye=v,He||(Ee=Ee||P.easing),S.isFunction(ye)&&(ye=ye.call(M,H,z)),S.isFunction(K)&&(K=K.call(M,H,z)),[ye||0,Ee,K]},st=function(v,He){var ye=f.Hooks.getRoot(v),Ee=!1,K=He[0],ot=He[1],ne=He[2],le;if((!te||!te.isSVG)&&ye!=="tween"&&f.Names.prefixCheck(ye)[1]===!1&&f.Normalizations.registered[ye]===s){c.debug&&console.log("Skipping ["+ye+"] due to a lack of browser support.");return}(P.display!==s&&P.display!==null&&P.display!=="none"||P.visibility!==s&&P.visibility!=="hidden")&&/opacity|filter/.test(v)&&!ne&&K!==0&&(ne=0),P._cacheValues&&me&&me[v]?(ne===s&&(ne=me[v].endValue+me[v].unitType),Ee=te.rootPropertyValueCache[ye]):f.Hooks.registered[v]?ne===s?(Ee=f.getPropertyValue(M,ye),ne=f.getPropertyValue(M,v,Ee)):Ee=f.Hooks.templates[ye][1]:ne===s&&(ne=f.getPropertyValue(M,v));var ge,de,ue,Ve=!1,Ye=function(ve,we){var Ke,Xe;return Xe=(we||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(Fe){return Ke=Fe,""}),Ke||(Ke=f.Values.getUnitType(ve)),[Xe,Ke]};if(ne!==K&&S.isString(ne)&&S.isString(K)){le="";var xe=0,Te=0,Se=[],Ze=[],R=0,X=0,oe=0;for(ne=f.Hooks.fixColors(ne),K=f.Hooks.fixColors(K);xe<ne.length&&Te<K.length;){var B=ne[xe],De=K[Te];if(/[\d\.-]/.test(B)&&/[\d\.-]/.test(De)){for(var Ge=B,it=De,gt=".",Je=".";++xe<ne.length;){if(B=ne[xe],B===gt)gt="..";else if(!/\d/.test(B))break;Ge+=B}for(;++Te<K.length;){if(De=K[Te],De===Je)Je="..";else if(!/\d/.test(De))break;it+=De}var Re=f.Hooks.getUnit(ne,xe),rt=f.Hooks.getUnit(K,Te);if(xe+=Re.length,Te+=rt.length,Re===rt)Ge===it?le+=Ge+Re:(le+="{"+Se.length+(X?"!":"")+"}"+Re,Se.push(parseFloat(Ge)),Ze.push(parseFloat(it)));else{var h=parseFloat(Ge),L=parseFloat(it);le+=(R<5?"calc":"")+"("+(h?"{"+Se.length+(X?"!":"")+"}":"0")+Re+" + "+(L?"{"+(Se.length+(h?1:0))+(X?"!":"")+"}":"0")+rt+")",h&&(Se.push(h),Ze.push(0)),L&&(Se.push(0),Ze.push(L))}}else if(B===De)le+=B,xe++,Te++,R===0&&B==="c"||R===1&&B==="a"||R===2&&B==="l"||R===3&&B==="c"||R>=4&&B==="("?R++:(R&&R<5||R>=4&&B===")"&&--R<5)&&(R=0),X===0&&B==="r"||X===1&&B==="g"||X===2&&B==="b"||X===3&&B==="a"||X>=3&&B==="("?(X===3&&B==="a"&&(oe=1),X++):oe&&B===","?++oe>3&&(X=oe=0):(oe&&X<(oe?5:4)||X>=(oe?4:3)&&B===")"&&--X<(oe?5:4))&&(X=oe=0);else{R=0;break}}(xe!==ne.length||Te!==K.length)&&(c.debug&&console.error('Trying to pattern match mis-matched strings ["'+K+'", "'+ne+'"]'),le=s),le&&(Se.length?(c.debug&&console.log('Pattern found "'+le+'" -> ',Se,Ze,"["+ne+","+K+"]"),ne=Se,K=Ze,de=ue=""):le=s)}le||(ge=Ye(v,ne),ne=ge[0],ue=ge[1],ge=Ye(v,K),K=ge[0].replace(/^([+-\/*])=/,function(ve,we){return Ve=we,""}),de=ge[1],ne=parseFloat(ne)||0,K=parseFloat(K)||0,de==="%"&&(/^(fontSize|lineHeight)$/.test(v)?(K=K/100,de="em"):/^scale/.test(v)?(K=K/100,de=""):/(Red|Green|Blue)$/i.test(v)&&(K=K/100*255,de="")));var j=function(){var ve={myParent:M.parentNode||w.body,position:f.getPropertyValue(M,"position"),fontSize:f.getPropertyValue(M,"fontSize")},we=ve.position===Y.lastPosition&&ve.myParent===Y.lastParent,Ke=ve.fontSize===Y.lastFontSize;Y.lastParent=ve.myParent,Y.lastPosition=ve.position,Y.lastFontSize=ve.fontSize;var Xe=100,Fe={};if(!Ke||!we){var Ie=te&&te.isSVG?w.createElementNS("http://www.w3.org/2000/svg","rect"):w.createElement("div");c.init(Ie),ve.myParent.appendChild(Ie),d.each(["overflow","overflowX","overflowY"],function(Tn,Nt){c.CSS.setPropertyValue(Ie,Nt,"hidden")}),c.CSS.setPropertyValue(Ie,"position",ve.position),c.CSS.setPropertyValue(Ie,"fontSize",ve.fontSize),c.CSS.setPropertyValue(Ie,"boxSizing","content-box"),d.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(Tn,Nt){c.CSS.setPropertyValue(Ie,Nt,Xe+"%")}),c.CSS.setPropertyValue(Ie,"paddingLeft",Xe+"em"),Fe.percentToPxWidth=Y.lastPercentToPxWidth=(parseFloat(f.getPropertyValue(Ie,"width",null,!0))||1)/Xe,Fe.percentToPxHeight=Y.lastPercentToPxHeight=(parseFloat(f.getPropertyValue(Ie,"height",null,!0))||1)/Xe,Fe.emToPx=Y.lastEmToPx=(parseFloat(f.getPropertyValue(Ie,"paddingLeft"))||1)/Xe,ve.myParent.removeChild(Ie)}else Fe.emToPx=Y.lastEmToPx,Fe.percentToPxWidth=Y.lastPercentToPxWidth,Fe.percentToPxHeight=Y.lastPercentToPxHeight;return Y.remToPx===null&&(Y.remToPx=parseFloat(f.getPropertyValue(w.body,"fontSize"))||16),Y.vwToPx===null&&(Y.vwToPx=parseFloat(t.innerWidth)/100,Y.vhToPx=parseFloat(t.innerHeight)/100),Fe.remToPx=Y.remToPx,Fe.vwToPx=Y.vwToPx,Fe.vhToPx=Y.vhToPx,c.debug>=1&&console.log("Unit ratios: "+JSON.stringify(Fe),M),Fe};if(/[\/*]/.test(Ve))de=ue;else if(ue!==de&&ne!==0)if(K===0)de=ue;else{ae=ae||j();var J=/margin|padding|left|right|width|text|word|letter/i.test(v)||/X$/.test(v)||v==="x"?"x":"y";switch(ue){case"%":ne*=J==="x"?ae.percentToPxWidth:ae.percentToPxHeight;break;case"px":break;default:ne*=ae[ue+"ToPx"]}switch(de){case"%":ne*=1/(J==="x"?ae.percentToPxWidth:ae.percentToPxHeight);break;case"px":break;default:ne*=1/ae[de+"ToPx"]}}switch(Ve){case"+":K=ne+K;break;case"-":K=ne-K;break;case"*":K=ne*K;break;case"/":K=ne/K;break}se[v]={rootPropertyValue:Ee,startValue:ne,currentValue:ne,endValue:K,unitType:de,easing:ot},le&&(se[v].pattern=le),c.debug&&console.log("tweensContainer ("+v+"): "+JSON.stringify(se[v]),M)};for(var dt in y)if(y.hasOwnProperty(dt)){var pt=f.Names.camelCase(dt),ht=At(y[dt]);if(_(f.Lists.colors)){var kt=ht[0],_t=ht[1],Pt=ht[2];if(f.RegEx.isHex.test(kt)){for(var wt=["Red","Green","Blue"],nt=f.Values.hexToRgb(kt),Ct=Pt?f.Values.hexToRgb(Pt):s,at=0;at<wt.length;at++){var yt=[nt[at]];_t&&yt.push(_t),Ct!==s&&yt.push(Ct[at]),st(pt+wt[at],yt)}continue}}st(pt,ht)}se.element=M}se.element&&(f.Values.addClass(M,"velocity-animating"),Pe.push(se),te=N(M),te&&(P.queue===""&&(te.tweensContainer=se,te.opts=P),te.isAnimating=!0),D===z-1?(c.State.calls.push([Pe,T,P,null,I.resolver,null,0]),c.State.isTicking===!1&&(c.State.isTicking=!0,Ae())):D++)}if(P.queue===!1)if(P.delay){var _e=c.State.delayedElements.count++;c.State.delayedElements[_e]=M;var Ce=function(We){return function(){c.State.delayedElements[We]=!1,he()}}(_e);N(M).delayBegin=new Date().getTime(),N(M).delay=parseFloat(P.delay),N(M).delayTimer={setTimeout:setTimeout(he,parseFloat(P.delay)),next:Ce}}else he();else d.queue(M,P.queue,function(We,te){if(te===!0)return I.promise&&I.resolver(T),!0;c.velocityQueueEntryFlag=!0,he()});(P.queue===""||P.queue==="fx")&&d.queue(M)[0]!=="inprogress"&&d.dequeue(M)}d.each(T,function(M,H){S.isNode(H)&&Ne(H,M)}),e=d.extend({},c.defaults,E),e.loop=parseInt(e.loop,10);var et=e.loop*2-1;if(e.loop)for(var Oe=0;Oe<et;Oe++){var ke={delay:e.delay,progress:e.progress};Oe===et-1&&(ke.display=e.display,ke.visibility=e.visibility,ke.complete=e.complete),Me(T,"reverse",ke)}return a()};c=d.extend(Me,c),c.animate=Me;var ze=t.requestAnimationFrame||C;if(!c.State.isMobile&&w.hidden!==s){var qe=function(){w.hidden?(ze=function(e){return setTimeout(function(){e(!0)},16)},Ae()):ze=t.requestAnimationFrame||C};qe(),w.addEventListener("visibilitychange",qe)}function Ae(e){if(e){var a=c.timestamp&&e!==!0?e:o.now(),r=c.State.calls.length;r>1e4&&(c.State.calls=p(c.State.calls),r=c.State.calls.length);for(var m=0;m<r;m++)if(c.State.calls[m]){var x=c.State.calls[m],F=x[0],T=x[2],y=x[3],E=!y,I=null,z=x[5],D=x[6];if(y||(y=c.State.calls[m][3]=a-16),z)if(z.resume===!0)y=x[3]=Math.round(a-D-16),x[5]=null;else continue;D=x[6]=a-y;for(var U=Math.min(D/T.duration,1),W=0,re=F.length;W<re;W++){var Z=F[W],g=Z.element;if(N(g)){var q=!1;if(T.display!==s&&T.display!==null&&T.display!=="none"){if(T.display==="flex"){var ee=["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"];d.each(ee,function(P,se){f.setPropertyValue(g,"display",se)})}f.setPropertyValue(g,"display",T.display)}T.visibility!==s&&T.visibility!=="hidden"&&f.setPropertyValue(g,"visibility",T.visibility);for(var pe in Z)if(Z.hasOwnProperty(pe)&&pe!=="element"){var Y=Z[pe],Pe,Ne=S.isString(Y.easing)?c.Easings[Y.easing]:Y.easing;if(S.isString(Y.pattern)){var et=U===1?function(P,se,ae){var he=Y.endValue[se];return ae?Math.round(he):he}:function(P,se,ae){var he=Y.startValue[se],_e=Y.endValue[se]-he,Ce=he+_e*Ne(U,T,_e);return ae?Math.round(Ce):Ce};Pe=Y.pattern.replace(/{(\d+)(!)?}/g,et)}else if(U===1)Pe=Y.endValue;else{var Oe=Y.endValue-Y.startValue;Pe=Y.startValue+Oe*Ne(U,T,Oe)}if(!E&&Pe===Y.currentValue)continue;if(Y.currentValue=Pe,pe==="tween")I=Pe;else{var ke;if(f.Hooks.registered[pe]){ke=f.Hooks.getRoot(pe);var M=N(g).rootPropertyValueCache[ke];M&&(Y.rootPropertyValue=M)}var H=f.setPropertyValue(g,pe,Y.currentValue+(k<9&&parseFloat(Pe)===0?"":Y.unitType),Y.rootPropertyValue,Y.scrollData);f.Hooks.registered[pe]&&(f.Normalizations.registered[ke]?N(g).rootPropertyValueCache[ke]=f.Normalizations.registered[ke]("extract",null,H[1]):N(g).rootPropertyValueCache[ke]=H[1]),H[0]==="transform"&&(q=!0)}}T.mobileHA&&N(g).transformCache.translate3d===s&&(N(g).transformCache.translate3d="(0px, 0px, 0px)",q=!0),q&&f.flushTransformCache(g)}}T.display!==s&&T.display!=="none"&&(c.State.calls[m][2].display=!1),T.visibility!==s&&T.visibility!=="hidden"&&(c.State.calls[m][2].visibility=!1),T.progress&&T.progress.call(x[1],x[1],U,Math.max(0,y+T.duration-a),y,I),U===1&&ft(m)}}c.State.isTicking&&ze(Ae)}function ft(e,a){if(!c.State.calls[e])return!1;for(var r=c.State.calls[e][0],m=c.State.calls[e][1],x=c.State.calls[e][2],F=c.State.calls[e][4],T=!1,y=0,E=r.length;y<E;y++){var I=r[y].element;!a&&!x.loop&&(x.display==="none"&&f.setPropertyValue(I,"display",x.display),x.visibility==="hidden"&&f.setPropertyValue(I,"visibility",x.visibility));var z=N(I);if(x.loop!==!0&&(d.queue(I)[1]===s||!/\.velocityQueueEntryFlag/i.test(d.queue(I)[1]))&&z){z.isAnimating=!1,z.rootPropertyValueCache={};var D=!1;d.each(f.Lists.transforms3D,function(re,Z){var g=/^scale/.test(Z)?1:0,q=z.transformCache[Z];z.transformCache[Z]!==s&&new RegExp("^\\("+g+"[^.]").test(q)&&(D=!0,delete z.transformCache[Z])}),x.mobileHA&&(D=!0,delete z.transformCache.translate3d),D&&f.flushTransformCache(I),f.Values.removeClass(I,"velocity-animating")}if(!a&&x.complete&&!x.loop&&y===E-1)try{x.complete.call(m,m)}catch(re){setTimeout(function(){throw re},1)}F&&x.loop!==!0&&F(m),z&&x.loop===!0&&!a&&(d.each(z.tweensContainer,function(re,Z){if(/^rotate/.test(re)&&(parseFloat(Z.startValue)-parseFloat(Z.endValue))%360===0){var g=Z.startValue;Z.startValue=Z.endValue,Z.endValue=g}/^backgroundPosition/.test(re)&&parseFloat(Z.endValue)===100&&Z.unitType==="%"&&(Z.endValue=0,Z.startValue=100)}),c(I,"reverse",{loop:!0,delay:x.delay})),x.queue!==!1&&d.dequeue(I,x.queue)}c.State.calls[e]=!1;for(var U=0,W=c.State.calls.length;U<W;U++)if(c.State.calls[U]!==!1){T=!0;break}T===!1&&(c.State.isTicking=!1,delete c.State.calls,c.State.calls=[])}return n.Velocity=c,n!==t&&(n.fn.velocity=Me,n.fn.velocity.defaults=c.defaults),d.each(["Down","Up"],function(e,a){c.Redirects["slide"+a]=function(r,m,x,F,T,y){var E=d.extend({},m),I=E.begin,z=E.complete,D={},U={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""};E.display===s&&(E.display=a==="Down"?c.CSS.Values.getDisplayType(r)==="inline"?"inline-block":"block":"none"),E.begin=function(){x===0&&I&&I.call(T,T);for(var W in U)if(U.hasOwnProperty(W)){D[W]=r.style[W];var re=f.getPropertyValue(r,W);U[W]=a==="Down"?[re,0]:[0,re]}D.overflow=r.style.overflow,r.style.overflow="hidden"},E.complete=function(){for(var W in D)D.hasOwnProperty(W)&&(r.style[W]=D[W]);x===F-1&&(z&&z.call(T,T),y&&y.resolver(T))},c(r,U,E)}}),d.each(["In","Out"],function(e,a){c.Redirects["fade"+a]=function(r,m,x,F,T,y){var E=d.extend({},m),I=E.complete,z={opacity:a==="In"?1:0};x!==0&&(E.begin=null),x!==F-1?E.complete=null:E.complete=function(){I&&I.call(T,T),y&&y.resolver(T)},E.display===s&&(E.display=a==="In"?"auto":"none"),c(this,z,E)}}),c}(window.jQuery||window.Zepto||window,window,window?window.document:void 0)})})(ln);/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
*/function Lt(l,n){if(n===void 0)return;const t=i(l).siblings('source[type="image/webp"]'),w=i(l).siblings('source[type="image/avif"]');n.webp!==void 0&&t.length&&t.attr("srcset",n.webp),n.avif!==void 0&&w.length&&w.attr("srcset",n.avif)}/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
*/class qt{init(){i(".js-product-miniature").each((n,t)=>{if(i(t).find(".color").length>5){let w=0;i(t).find(".color").each((s,k)=>{s>4&&(i(k).hide(),w+=1)}),i(t).find(".js-count").append(`+${w}`)}})}}/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
*/i(document).ready(()=>{const l=s=>{const C=i(".js-qv-product-images"),o=i(".js-qv-product-images li img").height()+20,p=C.position().top;C.velocity({translateY:s==="up"?p+o:p-o},()=>{C.position().top>=0?i(".arrow-up").css("opacity",".2"):C.position().top+C.height()<=i(".js-qv-mask").height()&&i(".arrow-down").css("opacity",".2")})},n=s=>{const C=i(b.themeSelectors.product.arrows),o=s.find(".js-qv-product-images");i(b.themeSelectors.product.thumb).on("click",p=>{i(b.themeSelectors.product.thumb).hasClass("selected")&&i(b.themeSelectors.product.thumb).removeClass("selected"),i(p.currentTarget).addClass("selected"),i(b.themeSelectors.product.cover).attr("src",i(p.target).data("image-large-src")),i(b.themeSelectors.product.cover).attr("alt",i(p.target).attr("alt")),i(b.themeSelectors.product.cover).attr("title",i(p.target).attr("title")),Lt(i(b.themeSelectors.product.cover),i(p.target).data("image-large-sources"))}),o.find("li").length<=4?C.hide():C.on("click",p=>{i(p.target).hasClass("arrow-up")&&i(".js-qv-product-images").position().top<0?(l("up"),i(b.themeSelectors.arrowDown).css("opacity","1")):i(p.target).hasClass("arrow-down")&&o.position().top+o.height()>i(".js-qv-mask").height()&&(l("down"),i(b.themeSelectors.arrowUp).css("opacity","1"))}),s.find(b.selectors.quantityWanted).TouchSpin({verticalbuttons:!0,verticalupclass:"material-icons touchspin-up",verticaldownclass:"material-icons touchspin-down",buttondown_class:"btn btn-touchspin js-touchspin",buttonup_class:"btn btn-touchspin js-touchspin",min:1,max:1e6}),i(b.themeSelectors.touchspin).off("touchstart.touchspin")};b.on("clickQuickView",s=>{const k={action:"quickview",id_product:s.dataset.idProduct,id_product_attribute:s.dataset.idProductAttribute};i.post(b.urls.pages.product,k,null,"json").then(C=>{i("body").append(C.quickview_html);const o=i(`#quickview-modal-${C.product.id}-${C.product.id_product_attribute}`);o.modal("show"),n(o),o.on("hidden.bs.modal",()=>{o.remove()})}).fail(C=>{b.emit("handleError",{eventType:"clickQuickView",resp:C})})}),i("body").on("click",b.themeSelectors.listing.searchFilterToggler,()=>{i(b.themeSelectors.listing.searchFiltersWrapper).removeClass("hidden-sm-down"),i(b.themeSelectors.contentWrapper).addClass("hidden-sm-down"),i(b.themeSelectors.footer).addClass("hidden-sm-down")}),i(`${b.themeSelectors.listing.searchFilterControls} ${b.themeSelectors.clear}`).on("click",()=>{i(b.themeSelectors.listing.searchFiltersWrapper).addClass("hidden-sm-down"),i(b.themeSelectors.contentWrapper).removeClass("hidden-sm-down"),i(b.themeSelectors.footer).removeClass("hidden-sm-down")}),i(`${b.themeSelectors.listing.searchFilterControls} .ok`).on("click",()=>{i(b.themeSelectors.listing.searchFiltersWrapper).addClass("hidden-sm-down"),i(b.themeSelectors.contentWrapper).removeClass("hidden-sm-down"),i(b.themeSelectors.footer).removeClass("hidden-sm-down")});const t=function(s){if(s.target.dataset.searchUrl!==void 0)return s.target.dataset.searchUrl;if(i(s.target).parent()[0].dataset.searchUrl===void 0)throw new Error("Can not parse search URL");return i(s.target).parent()[0].dataset.searchUrl};function w(s){i(b.themeSelectors.listing.searchFilters).replaceWith(s.rendered_facets),i(b.themeSelectors.listing.activeSearchFilters).replaceWith(s.rendered_active_filters),i(b.themeSelectors.listing.listTop).replaceWith(s.rendered_products_top);const k=i(s.rendered_products),C=i(b.themeSelectors.listing.product);C.length>0?C.removeClass().addClass(C.first().attr("class")):C.removeClass().addClass(k.first().attr("class")),i(b.themeSelectors.listing.list).replaceWith(k),i(b.themeSelectors.listing.listBottom).replaceWith(s.rendered_products_bottom),s.rendered_products_header&&i(b.themeSelectors.listing.listHeader).replaceWith(s.rendered_products_header),new qt().init()}i("body").on("change",`${b.themeSelectors.listing.searchFilters} input[data-search-url]`,s=>{b.emit("updateFacets",t(s))}),i("body").on("click",b.themeSelectors.listing.searchFiltersClearAll,s=>{b.emit("updateFacets",t(s))}),i("body").on("click",b.themeSelectors.listing.searchLink,s=>{s.preventDefault(),b.emit("updateFacets",i(s.target).closest("a").get(0).href)}),window.addEventListener("popstate",s=>{s.state&&s.state.current_url&&(window.location.href=s.state.current_url)}),i("body").on("change",`${b.themeSelectors.listing.searchFilters} select`,s=>{const k=i(s.target).closest("form");b.emit("updateFacets",`?${k.serialize()}`)}),b.on("updateProductList",s=>{w(s),window.scrollTo(0,0)})});/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
*/class Ht{init(){const t=i(".js-modal-arrows"),w=i(".js-modal-product-images");i("body").on("click",".js-modal-thumb",s=>{i(".js-modal-thumb").hasClass("selected")&&i(".js-modal-thumb").removeClass("selected"),i(s.currentTarget).addClass("selected"),i(prestashop.themeSelectors.product.modalProductCover).attr("src",i(s.target).data("image-large-src")),i(prestashop.themeSelectors.product.modalProductCover).attr("title",i(s.target).attr("title")),i(prestashop.themeSelectors.product.modalProductCover).attr("alt",i(s.target).attr("alt"))}).on("click","aside#thumbnails",s=>{s.target.id==="thumbnails"&&i("#product-modal").modal("hide")}),i(".js-modal-product-images li").length<=5?t.css("opacity",".2"):t.on("click",s=>{i(s.target).hasClass("arrow-up")&&w.position().top<0?(this.move("up"),i(".js-modal-arrow-down").css("opacity","1")):i(s.target).hasClass("arrow-down")&&w.position().top+w.height()>i(".js-modal-mask").height()&&(this.move("down"),i(".js-modal-arrow-up").css("opacity","1"))})}move(n){const w=i(".js-modal-product-images"),s=i(".js-modal-product-images li img").height()+10,k=w.position().top;w.velocity({translateY:n==="up"?k+s:k-s},()=>{w.position().top>=0?i(".js-modal-arrow-up").css("opacity",".2"):w.position().top+w.height()<=i(".js-modal-mask").height()&&i(".js-modal-arrow-down").css("opacity",".2")})}}/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
*/i(document).ready(()=>{function l(){const k=i(b.themeSelectors.product.cover),C=i(b.themeSelectors.product.modalProductCover);let o=i(b.themeSelectors.product.selected);const p=(Q,_)=>{const u=_.find(b.themeSelectors.product.thumb);Q.removeClass("selected"),u.addClass("selected"),C.prop("src",u.data("image-large-src")),k.prop("src",u.data("image-medium-src")),k.attr("title",u.attr("title")),C.attr("title",u.attr("title")),k.attr("alt",u.attr("alt")),C.attr("alt",u.attr("alt")),Lt(k,u.data("image-medium-sources")),Lt(C,u.data("image-large-sources"))};i(b.themeSelectors.product.thumb).on("click",Q=>{o=i(b.themeSelectors.product.selected),p(o,i(Q.target).closest(b.themeSelectors.product.thumbContainer))}),k.swipe({swipe:(Q,_)=>{o=i(b.themeSelectors.product.selected);const u=o.closest(b.themeSelectors.product.thumbContainer);_==="right"?u.prev().length>0?p(o,u.prev()):u.next().length>0&&p(o,u.next()):_==="left"&&(u.next().length>0?p(o,u.next()):u.prev().length>0&&p(o,u.prev()))},allowPageScroll:"vertical"})}function n(){i("#main .js-qv-product-images li").length>2?(i("#main .js-qv-mask").addClass("scroll"),i(".scroll-box-arrows").addClass("scroll"),i("#main .js-qv-mask").scrollbox({direction:"h",distance:113,autoPlay:!1}),i(".scroll-box-arrows .left").click(()=>{i("#main .js-qv-mask").trigger("backward")}),i(".scroll-box-arrows .right").click(()=>{i("#main .js-qv-mask").trigger("forward")})):(i("#main .js-qv-mask").removeClass("scroll"),i(".scroll-box-arrows").removeClass("scroll"))}function t(){i(b.themeSelectors.fileInput).on("change",k=>{const C=i(k.currentTarget)[0],o=C?C.files[0]:null;C&&o&&i(C).prev().text(o.name)})}function w(){const k=i(b.selectors.quantityWanted);k.TouchSpin({verticalbuttons:!0,verticalupclass:"material-icons touchspin-up",verticaldownclass:"material-icons touchspin-down",buttondown_class:"btn btn-touchspin js-touchspin",buttonup_class:"btn btn-touchspin js-touchspin",min:parseInt(k.attr("min"),10),max:1e6}),i(b.themeSelectors.touchspin).off("touchstart.touchspin"),k.on("focusout",()=>{(k.val()===""||k.val()<k.attr("min"))&&(k.val(k.attr("min")),k.trigger("change"))}),i("body").on("change keyup",b.selectors.quantityWanted,C=>{k.val()!==""&&(i(C.currentTarget).trigger("touchspin.stopspin"),b.emit("updateProduct",{eventType:"updatedProductQuantity",event:C}))})}function s(){const k=i(b.themeSelectors.product.tabs);k.on("show.bs.tab",C=>{const o=i(C.target);o.addClass(b.themeSelectors.product.activeNavClass),i(o.attr("href")).addClass(b.themeSelectors.product.activeTabClass)}),k.on("hide.bs.tab",C=>{const o=i(C.target);o.removeClass(b.themeSelectors.product.activeNavClass),i(o.attr("href")).removeClass(b.themeSelectors.product.activeTabClass)})}w(),t(),l(),n(),s(),b.on("updatedProduct",k=>{if(t(),l(),k&&k.product_minimal_quantity){const o=parseInt(k.product_minimal_quantity,10),p=b.selectors.quantityWanted;i(p).trigger("touchspin.updatesettings",{min:o})}n(),i(i(b.themeSelectors.product.activeTabs).attr("href")).addClass("active").removeClass("fade"),i(b.themeSelectors.product.imagesModal).replaceWith(k.product_images_modal),new Ht().init()})});/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
*/function cn(l,n=300){let t;return(...w)=>{clearTimeout(t),t=setTimeout(()=>{l.apply(this,w)},n)}}b.cart=b.cart||{},b.cart.active_inputs=null;const Vt='input[name="product-quantity-spin"]';let mt=!1,lt=!1,ct="";const Ot={switchErrorStat:()=>{const l=i(b.themeSelectors.checkout.btn);if((i(b.themeSelectors.notifications.dangerAlert).length||ct!==""&&!mt)&&l.addClass("disabled"),ct!==""){const n=`
<article class="alert alert-danger" role="alert" data-alert="danger">
<ul>
<li>${ct}</li>
</ul>
</article>
`;i(b.themeSelectors.notifications.container).html(n),ct="",lt=!1,mt&&l.removeClass("disabled")}else!mt&&lt&&(mt=!1,lt=!1,i(b.themeSelectors.notifications.container).html(""),l.removeClass("disabled"))},checkUpdateOperation:l=>{const{hasError:n,errors:t}=l;mt=n??!1;const w=t??"";w instanceof Array?ct=w.join(" "):ct=w,lt=!0}};function Dt(){i.each(i(Vt),(l,n)=>{i(n).TouchSpin({verticalbuttons:!0,verticalupclass:"material-icons touchspin-up",verticaldownclass:"material-icons touchspin-down",buttondown_class:"btn btn-touchspin js-touchspin js-increase-product-quantity",buttonup_class:"btn btn-touchspin js-touchspin js-decrease-product-quantity",min:parseInt(i(n).attr("min"),10),max:1e6})}),i(b.themeSelectors.touchspin).off("touchstart.touchspin"),Ot.switchErrorStat()}const Rt=l=>window.shouldPreventModal?(l.preventDefault(),!1):!0;i(document).ready(()=>{const l=b.themeSelectors.cart.productLineQty,n=[];b.on("updateCart",()=>{i(b.themeSelectors.cart.quickview).modal("hide")}),b.on("updatedCart",()=>{window.shouldPreventModal=!1,i(b.themeSelectors.product.customizationModal).on("show.bs.modal",A=>{Rt(A)}),Dt()}),Dt();const t=i("body");function w(A){return A==="on.startupspin"||A==="on.startdownspin"}function s(A){return A==="on.startupspin"}function k(A){const c=A.parents(b.themeSelectors.cart.touchspin).find(l);return c.is(":focus")?null:c}function C(A){const c=A.split("-");let N,G,ie="";for(N=0;N<c.length;N+=1)G=c[N],N!==0&&(G=G.substring(0,1).toUpperCase()+G.substring(1)),ie+=G;return ie}function o(A,c){if(!w(c))return{url:A.attr("href"),type:C(A.data("link-action"))};const N=k(A);if(!N)return!1;let G={};return s(c)?G={url:N.data("up-url"),type:"increaseProductQuantity"}:G={url:N.data("down-url"),type:"decreaseProductQuantity"},G}const p=()=>{let A;for(;n.length>0;)A=n.pop(),A.abort()},Q=A=>i(A.parents(b.themeSelectors.cart.touchspin).find("input"));i(b.themeSelectors.product.customizationModal).on("show.bs.modal",A=>{Rt(A)});const _=A=>{p(),window.shouldPreventModal=!0,A.preventDefault();const c=i(A.currentTarget),{dataset:N}=A.currentTarget,G=o(c,A.namespace),ie={ajax:"1",action:"update"};G&&i.ajax({url:G.url,method:"POST",data:ie,dataType:"json",beforeSend(ce){n.push(ce)}}).then(ce=>{const Le=Q(c);Ot.checkUpdateOperation(ce),Le.val(ce.quantity),b.emit("updateCart",{reason:N,resp:ce})}).fail(ce=>{b.emit("handleError",{eventType:"updateProductInCart",resp:ce,cartAction:G.type})})};t.on("click",b.themeSelectors.cart.actions,_);function u(A,c,N){return p(),window.shouldPreventModal=!0,i.ajax({url:A,method:"POST",data:c,dataType:"json",beforeSend(G){n.push(G)}}).then(G=>{Ot.checkUpdateOperation(G),N.val(G.quantity);const ie=N&&N.dataset?N.dataset:G;b.emit("updateCart",{reason:ie,resp:G})}).fail(G=>{b.emit("handleError",{eventType:"updateProductQuantityInCart",resp:G})})}function S(A){return A>0?"up":"down"}function d(A){return{ajax:"1",qty:Math.abs(A),action:"update",op:S(A)}}function V(A){const c=i(A.currentTarget),N=c.data("update-url"),G=c.attr("value"),ie=c.val();if(ie!=parseInt(ie,10)||ie<0||isNaN(ie)){window.shouldPreventModal=!1,c.val(G);return}const ce=ie-G;ce!==0&&(ie==="0"?c.closest(".product-line-actions").find('[data-link-action="delete-from-cart"]').click():(c.attr("value",ie),u(N,d(ce),c)))}t.on("touchspin.on.stopspin",Vt,cn(V)),t.on("focusout keyup",l,A=>A.type==="keyup"?(A.keyCode===13&&(lt=!0,V(A)),!1):(lt||V(A),!1));const O=400;t.on("hidden.bs.collapse",b.themeSelectors.cart.promoCode,()=>{i(b.themeSelectors.cart.displayPromo).show(O)}),t.on("click",b.themeSelectors.cart.promoCodeButton,A=>{A.preventDefault(),i(b.themeSelectors.cart.promoCode).collapse("toggle")}),t.on("click",b.themeSelectors.cart.displayPromo,A=>{i(A.currentTarget).hide(O)}),t.on("click",b.themeSelectors.cart.discountCode,A=>{A.stopPropagation();const c=i(A.currentTarget);return i(b.themeSelectors.cart.discountName).val(c.text()),i(b.themeSelectors.cart.promoCode).collapse("show"),i(b.themeSelectors.cart.displayPromo).hide(O),!1})});var Ft={exports:{}},ut=typeof Reflect=="object"?Reflect:null,Ut=ut&&typeof ut.apply=="function"?ut.apply:function(n,t,w){return Function.prototype.apply.call(n,t,w)},xt;ut&&typeof ut.ownKeys=="function"?xt=ut.ownKeys:Object.getOwnPropertySymbols?xt=function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:xt=function(n){return Object.getOwnPropertyNames(n)};function un(l){console&&console.warn&&console.warn(l)}var zt=Number.isNaN||function(n){return n!==n};function fe(){fe.init.call(this)}Ft.exports=fe,Ft.exports.once=hn,fe.EventEmitter=fe,fe.prototype._events=void 0,fe.prototype._eventsCount=0,fe.prototype._maxListeners=void 0;var Wt=10;function St(l){if(typeof l!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof l)}Object.defineProperty(fe,"defaultMaxListeners",{enumerable:!0,get:function(){return Wt},set:function(l){if(typeof l!="number"||l<0||zt(l))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+l+".");Wt=l}}),fe.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},fe.prototype.setMaxListeners=function(n){if(typeof n!="number"||n<0||zt(n))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+n+".");return this._maxListeners=n,this};function Bt(l){return l._maxListeners===void 0?fe.defaultMaxListeners:l._maxListeners}fe.prototype.getMaxListeners=function(){return Bt(this)},fe.prototype.emit=function(n){for(var t=[],w=1;w<arguments.length;w++)t.push(arguments[w]);var s=n==="error",k=this._events;if(k!==void 0)s=s&&k.error===void 0;else if(!s)return!1;if(s){var C;if(t.length>0&&(C=t[0]),C instanceof Error)throw C;var o=new Error("Unhandled error."+(C?" ("+C.message+")":""));throw o.context=C,o}var p=k[n];if(p===void 0)return!1;if(typeof p=="function")Ut(p,this,t);else for(var Q=p.length,_=Jt(p,Q),w=0;w<Q;++w)Ut(_[w],this,t);return!0};function Qt(l,n,t,w){var s,k,C;if(St(t),k=l._events,k===void 0?(k=l._events=Object.create(null),l._eventsCount=0):(k.newListener!==void 0&&(l.emit("newListener",n,t.listener?t.listener:t),k=l._events),C=k[n]),C===void 0)C=k[n]=t,++l._eventsCount;else if(typeof C=="function"?C=k[n]=w?[t,C]:[C,t]:w?C.unshift(t):C.push(t),s=Bt(l),s>0&&C.length>s&&!C.warned){C.warned=!0;var o=new Error("Possible EventEmitter memory leak detected. "+C.length+" "+String(n)+" listeners added. Use emitter.setMaxListeners() to increase limit");o.name="MaxListenersExceededWarning",o.emitter=l,o.type=n,o.count=C.length,un(o)}return l}fe.prototype.addListener=function(n,t){return Qt(this,n,t,!1)},fe.prototype.on=fe.prototype.addListener,fe.prototype.prependListener=function(n,t){return Qt(this,n,t,!0)};function fn(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Yt(l,n,t){var w={fired:!1,wrapFn:void 0,target:l,type:n,listener:t},s=fn.bind(w);return s.listener=t,w.wrapFn=s,s}fe.prototype.once=function(n,t){return St(t),this.on(n,Yt(this,n,t)),this},fe.prototype.prependOnceListener=function(n,t){return St(t),this.prependListener(n,Yt(this,n,t)),this},fe.prototype.removeListener=function(n,t){var w,s,k,C,o;if(St(t),s=this._events,s===void 0)return this;if(w=s[n],w===void 0)return this;if(w===t||w.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete s[n],s.removeListener&&this.emit("removeListener",n,w.listener||t));else if(typeof w!="function"){for(k=-1,C=w.length-1;C>=0;C--)if(w[C]===t||w[C].listener===t){o=w[C].listener,k=C;break}if(k<0)return this;k===0?w.shift():dn(w,k),w.length===1&&(s[n]=w[0]),s.removeListener!==void 0&&this.emit("removeListener",n,o||t)}return this},fe.prototype.off=fe.prototype.removeListener,fe.prototype.removeAllListeners=function(n){var t,w,s;if(w=this._events,w===void 0)return this;if(w.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):w[n]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete w[n]),this;if(arguments.length===0){var k=Object.keys(w),C;for(s=0;s<k.length;++s)C=k[s],C!=="removeListener"&&this.removeAllListeners(C);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(t=w[n],typeof t=="function")this.removeListener(n,t);else if(t!==void 0)for(s=t.length-1;s>=0;s--)this.removeListener(n,t[s]);return this};function Zt(l,n,t){var w=l._events;if(w===void 0)return[];var s=w[n];return s===void 0?[]:typeof s=="function"?t?[s.listener||s]:[s]:t?pn(s):Jt(s,s.length)}fe.prototype.listeners=function(n){return Zt(this,n,!0)},fe.prototype.rawListeners=function(n){return Zt(this,n,!1)},fe.listenerCount=function(l,n){return typeof l.listenerCount=="function"?l.listenerCount(n):Gt.call(l,n)},fe.prototype.listenerCount=Gt;function Gt(l){var n=this._events;if(n!==void 0){var t=n[l];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}fe.prototype.eventNames=function(){return this._eventsCount>0?xt(this._events):[]};function Jt(l,n){for(var t=new Array(n),w=0;w<n;++w)t[w]=l[w];return t}function dn(l,n){for(;n+1<l.length;n++)l[n]=l[n+1];l.pop()}function pn(l){for(var n=new Array(l.length),t=0;t<n.length;++t)n[t]=l[t].listener||l[t];return n}function hn(l,n){return new Promise(function(t,w){function s(C){l.removeListener(n,k),w(C)}function k(){typeof l.removeListener=="function"&&l.removeListener("error",s),t([].slice.call(arguments))}Kt(l,n,k,{once:!0}),n!=="error"&&gn(l,s,{once:!0})})}function gn(l,n,t){typeof l.on=="function"&&Kt(l,"error",n,t)}function Kt(l,n,t,w){if(typeof l.on=="function")w.once?l.once(n,t):l.on(n,t);else if(typeof l.addEventListener=="function")l.addEventListener(n,function s(k){w.once&&l.removeEventListener(n,s),t(k)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof l)}var mn=Ft.exports;const Xt=en(mn);/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
*/class $t{constructor(n){this.el=n}init(){this.el.on("show.bs.dropdown",(n,t)=>{t?i(`#${t}`).find(".dropdown-menu").first().stop(!0,!0).slideDown():i(n.target).find(".dropdown-menu").first().stop(!0,!0).slideDown()}),this.el.on("hide.bs.dropdown",(n,t)=>{t?i(`#${t}`).find(".dropdown-menu").first().stop(!0,!0).slideUp():i(n.target).find(".dropdown-menu").first().stop(!0,!0).slideUp()}),this.el.find("select.link").each((n,t)=>{i(t).on("change",function(){window.location=i(this).val()})})}}/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
*/class vn{init(){this.parentFocus(),this.togglePasswordVisibility()}parentFocus(){i(".js-child-focus").on("focus",function(){i(this).closest(".js-parent-focus").addClass("focus")}),i(".js-child-focus").on("focusout",function(){i(this).closest(".js-parent-focus").removeClass("focus")})}togglePasswordVisibility(){i('button[data-action="show-password"]').on("click",function(){const n=i(this).closest(".input-group").children("input.js-visible-password");n.attr("type")==="password"?(n.attr("type","text"),i(this).text(i(this).data("textHide"))):(n.attr("type","password"),i(this).text(i(this).data("textShow")))})}}var Mt={};(function(l){(function(){var n={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function t(o){return s(C(o),arguments)}function w(o,p){return t.apply(null,[o].concat(p||[]))}function s(o,p){var Q=1,_=o.length,u,S="",d,V,O,A,c,N,G,ie;for(d=0;d<_;d++)if(typeof o[d]=="string")S+=o[d];else if(typeof o[d]=="object"){if(O=o[d],O.keys)for(u=p[Q],V=0;V<O.keys.length;V++){if(u==null)throw new Error(t('[sprintf] Cannot access property "%s" of undefined value "%s"',O.keys[V],O.keys[V-1]));u=u[O.keys[V]]}else O.param_no?u=p[O.param_no]:u=p[Q++];if(n.not_type.test(O.type)&&n.not_primitive.test(O.type)&&u instanceof Function&&(u=u()),n.numeric_arg.test(O.type)&&typeof u!="number"&&isNaN(u))throw new TypeError(t("[sprintf] expecting number but found %T",u));switch(n.number.test(O.type)&&(G=u>=0),O.type){case"b":u=parseInt(u,10).toString(2);break;case"c":u=String.fromCharCode(parseInt(u,10));break;case"d":case"i":u=parseInt(u,10);break;case"j":u=JSON.stringify(u,null,O.width?parseInt(O.width):0);break;case"e":u=O.precision?parseFloat(u).toExponential(O.precision):parseFloat(u).toExponential();break;case"f":u=O.precision?parseFloat(u).toFixed(O.precision):parseFloat(u);break;case"g":u=O.precision?String(Number(u.toPrecision(O.precision))):parseFloat(u);break;case"o":u=(parseInt(u,10)>>>0).toString(8);break;case"s":u=String(u),u=O.precision?u.substring(0,O.precision):u;break;case"t":u=String(!!u),u=O.precision?u.substring(0,O.precision):u;break;case"T":u=Object.prototype.toString.call(u).slice(8,-1).toLowerCase(),u=O.precision?u.substring(0,O.precision):u;break;case"u":u=parseInt(u,10)>>>0;break;case"v":u=u.valueOf(),u=O.precision?u.substring(0,O.precision):u;break;case"x":u=(parseInt(u,10)>>>0).toString(16);break;case"X":u=(parseInt(u,10)>>>0).toString(16).toUpperCase();break}n.json.test(O.type)?S+=u:(n.number.test(O.type)&&(!G||O.sign)?(ie=G?"+":"-",u=u.toString().replace(n.sign,"")):ie="",c=O.pad_char?O.pad_char==="0"?"0":O.pad_char.charAt(1):" ",N=O.width-(ie+u).length,A=O.width&&N>0?c.repeat(N):"",S+=O.align?ie+u+A:c==="0"?ie+A+u:A+ie+u)}return S}var k=Object.create(null);function C(o){if(k[o])return k[o];for(var p=o,Q,_=[],u=0;p;){if((Q=n.text.exec(p))!==null)_.push(Q[0]);else if((Q=n.modulo.exec(p))!==null)_.push("%");else if((Q=n.placeholder.exec(p))!==null){if(Q[2]){u|=1;var S=[],d=Q[2],V=[];if((V=n.key.exec(d))!==null)for(S.push(V[1]);(d=d.substring(V[0].length))!=="";)if((V=n.key_access.exec(d))!==null)S.push(V[1]);else if((V=n.index_access.exec(d))!==null)S.push(V[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");Q[2]=S}else u|=2;if(u===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");_.push({placeholder:Q[0],param_no:Q[1],keys:Q[2],sign:Q[3],pad_char:Q[4],align:Q[5],width:Q[6],precision:Q[7],type:Q[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");p=p.substring(Q[0].length)}return k[o]=_}l.sprintf=t,l.vsprintf=w,typeof window<"u"&&(window.sprintf=t,window.vsprintf=w)})()})(Mt);/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
*/const{passwordPolicy:$e}=prestashop.themeSelectors,bn="The password policy elements are undefined.",wn=l=>{switch(l){case 0:return{color:"bg-danger"};case 1:return{color:"bg-danger"};case 2:return{color:"bg-warning"};case 3:return{color:"bg-success"};case 4:return{color:"bg-success"};default:throw new Error("Invalid password strength indicator.")}},yn=async(l,n,t)=>{const{prestashop:w}=window,s=l.value,k=n.querySelector($e.requirementScoreIcon),C=await w.checkPasswordScore(s),o=wn(C.score),p=s.length,Q=[];$(l).popover("dispose"),n.style.display=s===""?"none":"block",C.feedback.warning!==""&&C.feedback.warning in t&&Q.push(t[C.feedback.warning]),C.feedback.suggestions.forEach(V=>{V in t&&Q.push(t[V])}),$(l).popover({html:!0,placement:"top",content:Q.join("<br/>")}).popover("show");const _=p>=parseInt(l.dataset.minlength,10)&&p<=parseInt(l.dataset.maxlength,10),u=parseInt(l.dataset.minscore,10)<=C.score;n.querySelector($e.requirementLengthIcon).classList.toggle("text-success",_),k.classList.toggle("text-success",u),l.classList.remove("border-success","border-danger"),l.classList.add(u&&_?"border-success":"border-danger"),l.classList.add("form-control","border");const S=C.score*20+20,d=n.querySelector($e.progressBar);d&&(d.style.width=`${S}%`,d.classList.remove("bg-success","bg-danger","bg-warning"),d.classList.add(o.color))},xn=l=>{document.querySelectorAll(l).forEach(t=>{const w=t==null?void 0:t.querySelector($e.inputColumn),s=t==null?void 0:t.querySelector("input"),k=document.createElement("div"),C=document.querySelector($e.template);let o;if(C&&t&&w&&s&&(k.innerHTML=C.innerHTML,w.append(k),o=t.querySelector($e.container),o)){const p=document.querySelector($e.hint);if(p){const Q=JSON.parse(p.innerHTML),_=o.querySelector($e.requirementLength),u=o.querySelector($e.requirementScore),S=_==null?void 0:_.querySelector("span"),d=u==null?void 0:u.querySelector("span");S&&_&&_.dataset.translation&&(S.innerText=Mt.sprintf(_.dataset.translation,s.dataset.minlength,s.dataset.maxlength)),d&&u&&u.dataset.translation&&(d.innerText=Mt.sprintf(u.dataset.translation,Q[s.dataset.minscore])),s.addEventListener("keyup",()=>yn(s,o,Q)),s.addEventListener("blur",()=>{$(s).popover("dispose")})}}return t?{element:t}:{error:new Error(bn)}})};/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
*/class Sn extends $t{init(){let n;const t=this;this.el.find("li").on("mouseenter mouseleave",w=>{if(this.el.parent().hasClass("mobile"))return;const s=i(w.currentTarget).attr("class");n!==s&&(n=Array.prototype.slice.call(w.currentTarget.classList).map(C=>typeof C=="string"?`.${C}`:!1).join(""),n&&i(w.target).data("depth")===0&&i(`${n} .js-sub-menu`).css({top:i(`${n}`).height()+i(`${n}`).position().top}))}),i("#menu-icon").on("click",()=>{i("#mobile_top_menu_wrapper").toggle(),t.toggleMobileMenu()}),this.el.on("click",w=>{this.el.parent().hasClass("mobile")||w.stopPropagation()}),b.on("responsive update",()=>{i(".js-sub-menu").removeAttr("style"),t.toggleMobileMenu()}),super.init()}toggleMobileMenu(){i("#header").toggleClass("is-open"),i("#mobile_top_menu_wrapper").is(":visible")?i("#notifications, #wrapper, #footer").hide():i("#notifications, #wrapper, #footer").show()}}/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
*/b.blockcart=b.blockcart||{},b.blockcart.showModal=l=>{function n(){return i("#blockcart-modal")}let t=n();t.length&&t.remove(),i("body").append(l),t=n(),t.modal("show").on("hidden.bs.modal",w=>{b.emit("updateProduct",{reason:w.currentTarget.dataset,event:w})})};/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
*/for(const l in Xt.prototype)b[l]=Xt.prototype[l];i(document).ready(()=>{const l=i(".js-dropdown"),n=new vn,t=i('.js-top-menu ul[data-depth="0"]'),w=new $t(l),s=new Sn(t),k=new qt,C=new Ht;w.init(),n.init(),s.init(),k.init(),C.init(),xn(".field-password-policy"),i('.carousel[data-touch="true"]').swipe({swipe(o,p){p==="left"&&i(this).carousel("next"),p==="right"&&i(this).carousel("prev")},allowPageScroll:"vertical"})})})(jQuery,prestashop);