2 lines
133 KiB
JavaScript
2 lines
133 KiB
JavaScript
!function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=14)}([,,,function(t,e){t.exports=jQuery},,function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,i=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(n&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}();var o=n&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),i))}};function r(t){return t&&"[object Function]"==={}.toString.call(t)}function s(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function a(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function l(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=s(t),n=e.overflow,i=e.overflowX,o=e.overflowY;return/(auto|scroll|overlay)/.test(n+o+i)?t:l(a(t))}function c(t){return t&&t.referenceNode?t.referenceNode:t}var u=n&&!(!window.MSInputMethodContext||!document.documentMode),f=n&&/MSIE 10/.test(navigator.userAgent);function d(t){return 11===t?u:10===t?f:u||f}function p(t){if(!t)return document.documentElement;for(var e=d(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===s(n,"position")?p(n):n:t?t.ownerDocument.documentElement:document.documentElement}function h(t){return null!==t.parentNode?h(t.parentNode):t}function m(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,o=n?e:t,r=document.createRange();r.setStart(i,0),r.setEnd(o,0);var s,a,l=r.commonAncestorContainer;if(t!==l&&e!==l||i.contains(o))return"BODY"===(a=(s=l).nodeName)||"HTML"!==a&&p(s.firstElementChild)!==s?p(l):l;var c=h(t);return c.host?m(c.host,e):m(t,h(e).host)}function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",i=t.nodeName;if("BODY"===i||"HTML"===i){var o=t.ownerDocument.documentElement,r=t.ownerDocument.scrollingElement||o;return r[n]}return t[n]}function v(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=g(e,"top"),o=g(e,"left"),r=n?-1:1;return t.top+=i*r,t.bottom+=i*r,t.left+=o*r,t.right+=o*r,t}function y(t,e){var n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"])+parseFloat(t["border"+i+"Width"])}function b(t,e,n,i){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],d(10)?parseInt(n["offset"+t])+parseInt(i["margin"+("Height"===t?"Top":"Left")])+parseInt(i["margin"+("Height"===t?"Bottom":"Right")]):0)}function _(t){var e=t.body,n=t.documentElement,i=d(10)&&getComputedStyle(n);return{height:b("Height",e,n,i),width:b("Width",e,n,i)}}var w=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},S=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),x=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},E=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};function C(t){return E({},t,{right:t.left+t.width,bottom:t.top+t.height})}function T(t){var e={};try{if(d(10)){e=t.getBoundingClientRect();var n=g(t,"top"),i=g(t,"left");e.top+=n,e.left+=i,e.bottom+=n,e.right+=i}else e=t.getBoundingClientRect()}catch(t){}var o={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},r="HTML"===t.nodeName?_(t.ownerDocument):{},a=r.width||t.clientWidth||o.width,l=r.height||t.clientHeight||o.height,c=t.offsetWidth-a,u=t.offsetHeight-l;if(c||u){var f=s(t);c-=y(f,"x"),u-=y(f,"y"),o.width-=c,o.height-=u}return C(o)}function A(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=d(10),o="HTML"===e.nodeName,r=T(t),a=T(e),c=l(t),u=s(e),f=parseFloat(u.borderTopWidth),p=parseFloat(u.borderLeftWidth);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var h=C({top:r.top-a.top-f,left:r.left-a.left-p,width:r.width,height:r.height});if(h.marginTop=0,h.marginLeft=0,!i&&o){var m=parseFloat(u.marginTop),g=parseFloat(u.marginLeft);h.top-=f-m,h.bottom-=f-m,h.left-=p-g,h.right-=p-g,h.marginTop=m,h.marginLeft=g}return(i&&!n?e.contains(c):e===c&&"BODY"!==c.nodeName)&&(h=v(h,e)),h}function I(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,i=A(t,n),o=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),s=e?0:g(n),a=e?0:g(n,"left"),l={top:s-i.top+i.marginTop,left:a-i.left+i.marginLeft,width:o,height:r};return C(l)}function O(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===s(t,"position"))return!0;var n=a(t);return!!n&&O(n)}function k(t){if(!t||!t.parentElement||d())return document.documentElement;for(var e=t.parentElement;e&&"none"===s(e,"transform");)e=e.parentElement;return e||document.documentElement}function D(t,e,n,i){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={top:0,left:0},s=o?k(t):m(t,c(e));if("viewport"===i)r=I(s,o);else{var u=void 0;"scrollParent"===i?"BODY"===(u=l(a(e))).nodeName&&(u=t.ownerDocument.documentElement):u="window"===i?t.ownerDocument.documentElement:i;var f=A(u,s,o);if("HTML"!==u.nodeName||O(s))r=f;else{var d=_(t.ownerDocument),p=d.height,h=d.width;r.top+=f.top-f.marginTop,r.bottom=p+f.top,r.left+=f.left-f.marginLeft,r.right=h+f.left}}var g="number"==typeof(n=n||0);return r.left+=g?n:n.left||0,r.top+=g?n:n.top||0,r.right-=g?n:n.right||0,r.bottom-=g?n:n.bottom||0,r}function N(t){return t.width*t.height}function P(t,e,n,i,o){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var s=D(n,i,r,o),a={top:{width:s.width,height:e.top-s.top},right:{width:s.right-e.right,height:s.height},bottom:{width:s.width,height:s.bottom-e.bottom},left:{width:e.left-s.left,height:s.height}},l=Object.keys(a).map((function(t){return E({key:t},a[t],{area:N(a[t])})})).sort((function(t,e){return e.area-t.area})),c=l.filter((function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,f=t.split("-")[1];return u+(f?"-"+f:"")}function B(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=i?k(e):m(e,c(n));return A(n,o,i)}function j(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),i=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+i,height:t.offsetHeight+n}}function L(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function M(t,e,n){n=n.split("-")[0];var i=j(t),o={width:i.width,height:i.height},r=-1!==["right","left"].indexOf(n),s=r?"top":"left",a=r?"left":"top",l=r?"height":"width",c=r?"width":"height";return o[s]=e[s]+e[l]/2-i[l]/2,o[a]=n===a?e[a]-i[c]:e[L(a)],o}function F(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function W(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex((function(t){return t[e]===n}));var i=F(t,(function(t){return t[e]===n}));return t.indexOf(i)}(t,"name",n))).forEach((function(t){t.function;var n=t.function||t.fn;t.enabled&&r(n)&&(e.offsets.popper=C(e.offsets.popper),e.offsets.reference=C(e.offsets.reference),e=n(e,t))})),e}function H(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=B(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=P(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=M(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=W(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function R(t,e){return t.some((function(t){var n=t.name;return t.enabled&&n===e}))}function $(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<e.length;i++){var o=e[i],r=o?""+o+n:t;if(void 0!==document.body.style[r])return r}return null}function U(){return this.state.isDestroyed=!0,R(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[$("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function q(t){var e=t.ownerDocument;return e?e.defaultView:window}function V(t,e,n,i){n.updateBound=i,q(t).addEventListener("resize",n.updateBound,{passive:!0});var o=l(t);return function t(e,n,i,o){var r="BODY"===e.nodeName,s=r?e.ownerDocument.defaultView:e;s.addEventListener(n,i,{passive:!0}),r||t(l(s.parentNode),n,i,o),o.push(s)}(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function K(){this.state.eventsEnabled||(this.state=V(this.reference,this.options,this.state,this.scheduleUpdate))}function Q(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,q(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.updateBound)})),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function z(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function Y(t,e){Object.keys(e).forEach((function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&z(e[n])&&(i="px"),t.style[n]=e[n]+i}))}var G=n&&/Firefox/i.test(navigator.userAgent);function Z(t,e,n){var i=F(t,(function(t){return t.name===e})),o=!!i&&t.some((function(t){return t.name===n&&t.enabled&&t.order<i.order}));if(!o);return o}var J=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],X=J.slice(3);function tt(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=X.indexOf(t),i=X.slice(n+1).concat(X.slice(0,n));return e?i.reverse():i}var et="flip",nt="clockwise",it="counterclockwise";function ot(t,e,n,i){var o=[0,0],r=-1!==["right","left"].indexOf(i),s=t.split(/(\+|\-)/).map((function(t){return t.trim()})),a=s.indexOf(F(s,(function(t){return-1!==t.search(/,|\s/)})));s[a]&&s[a].indexOf(",");var l=/\s*,\s*|\s+/,c=-1!==a?[s.slice(0,a).concat([s[a].split(l)[0]]),[s[a].split(l)[1]].concat(s.slice(a+1))]:[s];return(c=c.map((function(t,i){var o=(1===i?!r:r)?"height":"width",s=!1;return t.reduce((function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,s=!0,t):s?(t[t.length-1]+=e,s=!1,t):t.concat(e)}),[]).map((function(t){return function(t,e,n,i){var o=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+o[1],s=o[2];if(!r)return t;if(0===s.indexOf("%")){var a=void 0;switch(s){case"%p":a=n;break;case"%":case"%r":default:a=i}return C(a)[e]/100*r}if("vh"===s||"vw"===s){return("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*r}return r}(t,o,e,n)}))}))).forEach((function(t,e){t.forEach((function(n,i){z(n)&&(o[e]+=n*("-"===t[i-1]?-1:1))}))})),o}var rt={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],i=e.split("-")[1];if(i){var o=t.offsets,r=o.reference,s=o.popper,a=-1!==["bottom","top"].indexOf(n),l=a?"left":"top",c=a?"width":"height",u={start:x({},l,r[l]),end:x({},l,r[l]+r[c]-s[c])};t.offsets.popper=E({},s,u[i])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n=e.offset,i=t.placement,o=t.offsets,r=o.popper,s=o.reference,a=i.split("-")[0],l=void 0;return l=z(+n)?[+n,0]:ot(n,r,s,a),"left"===a?(r.top+=l[0],r.left-=l[1]):"right"===a?(r.top+=l[0],r.left+=l[1]):"top"===a?(r.left+=l[0],r.top-=l[1]):"bottom"===a&&(r.left+=l[0],r.top+=l[1]),t.popper=r,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||p(t.instance.popper);t.instance.reference===n&&(n=p(n));var i=$("transform"),o=t.instance.popper.style,r=o.top,s=o.left,a=o[i];o.top="",o.left="",o[i]="";var l=D(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);o.top=r,o.left=s,o[i]=a,e.boundaries=l;var c=e.priority,u=t.offsets.popper,f={primary:function(t){var n=u[t];return u[t]<l[t]&&!e.escapeWithReference&&(n=Math.max(u[t],l[t])),x({},t,n)},secondary:function(t){var n="right"===t?"left":"top",i=u[n];return u[t]>l[t]&&!e.escapeWithReference&&(i=Math.min(u[n],l[t]-("right"===t?u.width:u.height))),x({},n,i)}};return c.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";u=E({},u,f[e](t))})),t.offsets.popper=u,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,i=e.reference,o=t.placement.split("-")[0],r=Math.floor,s=-1!==["top","bottom"].indexOf(o),a=s?"right":"bottom",l=s?"left":"top",c=s?"width":"height";return n[a]<r(i[l])&&(t.offsets.popper[l]=r(i[l])-n[c]),n[l]>r(i[a])&&(t.offsets.popper[l]=r(i[a])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!Z(t.instance.modifiers,"arrow","keepTogether"))return t;var i=e.element;if("string"==typeof i){if(!(i=t.instance.popper.querySelector(i)))return t}else if(!t.instance.popper.contains(i))return t;var o=t.placement.split("-")[0],r=t.offsets,a=r.popper,l=r.reference,c=-1!==["left","right"].indexOf(o),u=c?"height":"width",f=c?"Top":"Left",d=f.toLowerCase(),p=c?"left":"top",h=c?"bottom":"right",m=j(i)[u];l[h]-m<a[d]&&(t.offsets.popper[d]-=a[d]-(l[h]-m)),l[d]+m>a[h]&&(t.offsets.popper[d]+=l[d]+m-a[h]),t.offsets.popper=C(t.offsets.popper);var g=l[d]+l[u]/2-m/2,v=s(t.instance.popper),y=parseFloat(v["margin"+f]),b=parseFloat(v["border"+f+"Width"]),_=g-t.offsets.popper[d]-y-b;return _=Math.max(Math.min(a[u]-m,_),0),t.arrowElement=i,t.offsets.arrow=(x(n={},d,Math.round(_)),x(n,p,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(R(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=D(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),i=t.placement.split("-")[0],o=L(i),r=t.placement.split("-")[1]||"",s=[];switch(e.behavior){case et:s=[i,o];break;case nt:s=tt(i);break;case it:s=tt(i,!0);break;default:s=e.behavior}return s.forEach((function(a,l){if(i!==a||s.length===l+1)return t;i=t.placement.split("-")[0],o=L(i);var c=t.offsets.popper,u=t.offsets.reference,f=Math.floor,d="left"===i&&f(c.right)>f(u.left)||"right"===i&&f(c.left)<f(u.right)||"top"===i&&f(c.bottom)>f(u.top)||"bottom"===i&&f(c.top)<f(u.bottom),p=f(c.left)<f(n.left),h=f(c.right)>f(n.right),m=f(c.top)<f(n.top),g=f(c.bottom)>f(n.bottom),v="left"===i&&p||"right"===i&&h||"top"===i&&m||"bottom"===i&&g,y=-1!==["top","bottom"].indexOf(i),b=!!e.flipVariations&&(y&&"start"===r&&p||y&&"end"===r&&h||!y&&"start"===r&&m||!y&&"end"===r&&g),_=!!e.flipVariationsByContent&&(y&&"start"===r&&h||y&&"end"===r&&p||!y&&"start"===r&&g||!y&&"end"===r&&m),w=b||_;(d||v||w)&&(t.flipped=!0,(d||v)&&(i=s[l+1]),w&&(r=function(t){return"end"===t?"start":"start"===t?"end":t}(r)),t.placement=i+(r?"-"+r:""),t.offsets.popper=E({},t.offsets.popper,M(t.instance.popper,t.offsets.reference,t.placement)),t=W(t.instance.modifiers,t,"flip"))})),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],i=t.offsets,o=i.popper,r=i.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return o[s?"left":"top"]=r[n]-(a?o[s?"width":"height"]:0),t.placement=L(e),t.offsets.popper=C(o),t}},hide:{order:800,enabled:!0,fn:function(t){if(!Z(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=F(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var n=e.x,i=e.y,o=t.offsets.popper,r=F(t.instance.modifiers,(function(t){return"applyStyle"===t.name})).gpuAcceleration,s=void 0!==r?r:e.gpuAcceleration,a=p(t.instance.popper),l=T(a),c={position:o.position},u=function(t,e){var n=t.offsets,i=n.popper,o=n.reference,r=Math.round,s=Math.floor,a=function(t){return t},l=r(o.width),c=r(i.width),u=-1!==["left","right"].indexOf(t.placement),f=-1!==t.placement.indexOf("-"),d=e?u||f||l%2==c%2?r:s:a,p=e?r:a;return{left:d(l%2==1&&c%2==1&&!f&&e?i.left-1:i.left),top:p(i.top),bottom:p(i.bottom),right:d(i.right)}}(t,window.devicePixelRatio<2||!G),f="bottom"===n?"top":"bottom",d="right"===i?"left":"right",h=$("transform"),m=void 0,g=void 0;if(g="bottom"===f?"HTML"===a.nodeName?-a.clientHeight+u.bottom:-l.height+u.bottom:u.top,m="right"===d?"HTML"===a.nodeName?-a.clientWidth+u.right:-l.width+u.right:u.left,s&&h)c[h]="translate3d("+m+"px, "+g+"px, 0)",c[f]=0,c[d]=0,c.willChange="transform";else{var v="bottom"===f?-1:1,y="right"===d?-1:1;c[f]=g*v,c[d]=m*y,c.willChange=f+", "+d}var b={"x-placement":t.placement};return t.attributes=E({},b,t.attributes),t.styles=E({},c,t.styles),t.arrowStyles=E({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return Y(t.instance.popper,t.styles),e=t.instance.popper,n=t.attributes,Object.keys(n).forEach((function(t){!1!==n[t]?e.setAttribute(t,n[t]):e.removeAttribute(t)})),t.arrowElement&&Object.keys(t.arrowStyles).length&&Y(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,i,o){var r=B(o,e,t,n.positionFixed),s=P(n.placement,r,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",s),Y(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},st=function(){function t(e,n){var i=this,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};w(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=o(this.update.bind(this)),this.options=E({},t.Defaults,s),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(E({},t.Defaults.modifiers,s.modifiers)).forEach((function(e){i.options.modifiers[e]=E({},t.Defaults.modifiers[e]||{},s.modifiers?s.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return E({name:t},i.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&r(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)})),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return S(t,[{key:"update",value:function(){return H.call(this)}},{key:"destroy",value:function(){return U.call(this)}},{key:"enableEventListeners",value:function(){return K.call(this)}},{key:"disableEventListeners",value:function(){return Q.call(this)}}]),t}();st.Utils=("undefined"!=typeof window?window:t).PopperUtils,st.placements=J,st.Defaults=rt,e.default=st}).call(this,n(17))},,,,,,,,,function(t,e,n){"use strict";n(15),n(16),n(18),n(19),n(20),n(21),n(22),n(23),n(24),n(25),n(26),n(27);var i=l(n(28)),o=l(n(29)),r=l(n(30)),s=l(n(31)),a=l(n(32));function l(t){return t&&t.__esModule?t:{default:t}}for(var c in a.default.prototype)prestashop[c]=a.default.prototype[c];$(document).ready((function(){var t=new i.default,e=new o.default($("[class*=js-modal-]")),n=new r.default($(".js-dropdown")),a=new s.default($('[class*="u-carousel"]'));t.init(),e.init(),n.init(),a.init(),$((function(){$('[data-toggle="tooltip"]').tooltip()}))}))},function(t,e,n){"use strict";function i(t,e){var n=e.children().detach();e.empty().append(t.children().detach()),t.append(n)}function o(){prestashop.responsive.mobile?($("*[class*='desktop_for_']").each((function(t,e){var n=$(("."+e.className.match(/desktop_for_(\S+)/i)).replace("desktop_for_","mobile_for_"));n.length&&i($(e),n)})),$("*[id^='_desktop_']").each((function(t,e){var n=$("#"+e.id.replace("_desktop_","_mobile_"));n.length&&i($(e),n)}))):($("*[class*='mobile_for_']").each((function(t,e){var n=$(("."+e.className.match(/mobile_for_(\S+)/i)).replace("mobile_for_","desktop_for_"));n.length&&0===n[0].children.length&&i($(e),n)})),$("*[id^='_mobile_']").each((function(t,e){var n=$("#"+e.id.replace("_mobile_","_desktop_"));n.length&&0===n[0].children.length&&i($(e),n)}))),prestashop.emit("responsive update",{mobile:prestashop.responsive.mobile})}function r(){prestashop.responsive.tablet?$("*[class*='tablet_up_']").each((function(t,e){var n=$(("."+e.className.match(/tablet_up_(\S+)/i)).replace("tablet_up_","tablet_down_"));n.length&&i($(e),n)})):$("*[class*='tablet_down_']").each((function(t,e){var n=$(("."+e.className.match(/tablet_down_(\S+)/i)).replace("tablet_down_","tablet_up_"));n.length&&0===n[0].children.length&&i($(e),n)})),prestashop.emit("responsive update",{tablet:prestashop.responsive.tablet})}prestashop.responsive=prestashop.responsive||{},prestashop.responsive.current_width=window.innerWidth,prestashop.responsive.min_width=768,prestashop.responsive.mobile=prestashop.responsive.current_width<prestashop.responsive.min_width,prestashop.responsive.min_tablet_width=1780,prestashop.responsive.tablet=prestashop.responsive.current_width<prestashop.responsive.min_tablet_width,r(),o(),$(window).on("resize",(function(){var t=prestashop.responsive.current_width,e=prestashop.responsive.min_tablet_width,n=prestashop.responsive.min_width,i=window.innerWidth,s=t>=e&&i<e||t<e&&i>=e,a=t>=n&&i<n||t<n&&i>=n;prestashop.responsive.current_width=i,prestashop.responsive.tablet=prestashop.responsive.current_width<prestashop.responsive.min_tablet_width,prestashop.responsive.mobile=prestashop.responsive.current_width<prestashop.responsive.min_width,s&&r(),a&&o()}))},function(t,e,n){"use strict";var i,o,r,s,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};s=function(t,e,n){function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function o(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){r(t,e,n[e])}))}return t}e=e&&e.hasOwnProperty("default")?e.default:e,n=n&&n.hasOwnProperty("default")?n.default:n;var l=function(t){function e(e){var i=this,o=!1;return t(this).one(n.TRANSITION_END,(function(){o=!0})),setTimeout((function(){o||n.triggerTransitionEnd(i)}),e),this}var n={TRANSITION_END:"bsTransitionEnd",getUID:function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");e&&"#"!==e||(e=t.getAttribute("href")||"");try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement:function(e){if(!e)return 0;var n=t(e).css("transition-duration");return parseFloat(n)?(n=n.split(",")[0],1e3*parseFloat(n)):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(e){t(e).trigger("transitionend")},supportsTransitionEnd:function(){return Boolean("transitionend")},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,i){for(var o in i)if(Object.prototype.hasOwnProperty.call(i,o)){var r=i[o],s=e[o],a=s&&n.isElement(s)?"element":(l=s,{}.toString.call(l).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(r).test(a))throw new Error(t.toUpperCase()+': Option "'+o+'" provided type "'+a+'" but expected type "'+r+'".')}var l}};return t.fn.emulateTransitionEnd=e,t.event.special[n.TRANSITION_END]={bindType:"transitionend",delegateType:"transitionend",handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}},n}(e),c=function(t){var e=t.fn.alert,n={CLOSE:"close.bs.alert",CLOSED:"closed.bs.alert",CLICK_DATA_API:"click.bs.alert.data-api"},i="alert",r="fade",s="show",a=function(){function e(t){this._element=t}var a=e.prototype;return a.close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},a.dispose=function(){t.removeData(this._element,"bs.alert"),this._element=null},a._getRootElement=function(e){var n=l.getSelectorFromElement(e),o=!1;return n&&(o=document.querySelector(n)),o||(o=t(e).closest("."+i)[0]),o},a._triggerCloseEvent=function(e){var i=t.Event(n.CLOSE);return t(e).trigger(i),i},a._removeElement=function(e){var n=this;if(t(e).removeClass(s),t(e).hasClass(r)){var i=l.getTransitionDurationFromElement(e);t(e).one(l.TRANSITION_END,(function(t){return n._destroyElement(e,t)})).emulateTransitionEnd(i)}else this._destroyElement(e)},a._destroyElement=function(e){t(e).detach().trigger(n.CLOSED).remove()},e._jQueryInterface=function(n){return this.each((function(){var i=t(this),o=i.data("bs.alert");o||(o=new e(this),i.data("bs.alert",o)),"close"===n&&o[n](this)}))},e._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},o(e,null,[{key:"VERSION",get:function(){return"4.1.3"}}]),e}();return t(document).on(n.CLICK_DATA_API,'[data-dismiss="alert"]',a._handleDismiss(new a)),t.fn.alert=a._jQueryInterface,t.fn.alert.Constructor=a,t.fn.alert.noConflict=function(){return t.fn.alert=e,a._jQueryInterface},a}(e),u=function(t){var e="button",n=t.fn[e],i="active",r="btn",s="focus",a='[data-toggle^="button"]',l='[data-toggle="buttons"]',c="input",u=".active",f=".btn",d={CLICK_DATA_API:"click.bs.button.data-api",FOCUS_BLUR_DATA_API:"focus.bs.button.data-api blur.bs.button.data-api"},p=function(){function e(t){this._element=t}var n=e.prototype;return n.toggle=function(){var e=!0,n=!0,o=t(this._element).closest(l)[0];if(o){var r=this._element.querySelector(c);if(r){if("radio"===r.type)if(r.checked&&this._element.classList.contains(i))e=!1;else{var s=o.querySelector(u);s&&t(s).removeClass(i)}if(e){if(r.hasAttribute("disabled")||o.hasAttribute("disabled")||r.classList.contains("disabled")||o.classList.contains("disabled"))return;r.checked=!this._element.classList.contains(i),t(r).trigger("change")}r.focus(),n=!1}}n&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(i)),e&&t(this._element).toggleClass(i)},n.dispose=function(){t.removeData(this._element,"bs.button"),this._element=null},e._jQueryInterface=function(n){return this.each((function(){var i=t(this).data("bs.button");i||(i=new e(this),t(this).data("bs.button",i)),"toggle"===n&&i[n]()}))},o(e,null,[{key:"VERSION",get:function(){return"4.1.3"}}]),e}();return t(document).on(d.CLICK_DATA_API,a,(function(e){e.preventDefault();var n=e.target;t(n).hasClass(r)||(n=t(n).closest(f)),p._jQueryInterface.call(t(n),"toggle")})).on(d.FOCUS_BLUR_DATA_API,a,(function(e){var n=t(e.target).closest(f)[0];t(n).toggleClass(s,/^focus(in)?$/.test(e.type))})),t.fn[e]=p._jQueryInterface,t.fn[e].Constructor=p,t.fn[e].noConflict=function(){return t.fn[e]=n,p._jQueryInterface},p}(e),f=function(t){var e="carousel",n="bs.carousel",i="."+n,r=t.fn[e],c={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},u={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},f="next",d="prev",p="left",h="right",m={SLIDE:"slide"+i,SLID:"slid"+i,KEYDOWN:"keydown"+i,MOUSEENTER:"mouseenter"+i,MOUSELEAVE:"mouseleave"+i,TOUCHEND:"touchend"+i,LOAD_DATA_API:"load.bs.carousel.data-api",CLICK_DATA_API:"click.bs.carousel.data-api"},g="carousel",v="active",y="slide",b="carousel-item-right",_="carousel-item-left",w="carousel-item-next",S="carousel-item-prev",x=".active",E=".active.carousel-item",C=".carousel-item",T=".carousel-item-next, .carousel-item-prev",A=".carousel-indicators",I="[data-slide], [data-slide-to]",O='[data-ride="carousel"]',k=function(){function r(e,n){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this._config=this._getConfig(n),this._element=t(e)[0],this._indicatorsElement=this._element.querySelector(A),this._addEventListeners()}var I=r.prototype;return I.next=function(){this._isSliding||this._slide(f)},I.nextWhenVisible=function(){!document.hidden&&t(this._element).is(":visible")&&"hidden"!==t(this._element).css("visibility")&&this.next()},I.prev=function(){this._isSliding||this._slide(d)},I.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(T)&&(l.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},I.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},I.to=function(e){var n=this;this._activeElement=this._element.querySelector(E);var i=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)t(this._element).one(m.SLID,(function(){return n.to(e)}));else{if(i===e)return this.pause(),void this.cycle();var o=e>i?f:d;this._slide(o,this._items[e])}},I.dispose=function(){t(this._element).off(i),t.removeData(this._element,n),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},I._getConfig=function(t){return t=s({},c,t),l.typeCheckConfig(e,t,u),t},I._addEventListeners=function(){var e=this;this._config.keyboard&&t(this._element).on(m.KEYDOWN,(function(t){return e._keydown(t)})),"hover"===this._config.pause&&(t(this._element).on(m.MOUSEENTER,(function(t){return e.pause(t)})).on(m.MOUSELEAVE,(function(t){return e.cycle(t)})),"ontouchstart"in document.documentElement&&t(this._element).on(m.TOUCHEND,(function(){e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout((function(t){return e.cycle(t)}),500+e._config.interval)})))},I._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}},I._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(C)):[],this._items.indexOf(t)},I._getItemByDirection=function(t,e){var n=t===f,i=t===d,o=this._getItemIndex(e),r=this._items.length-1;if((i&&0===o||n&&o===r)&&!this._config.wrap)return e;var s=(o+(t===d?-1:1))%this._items.length;return-1===s?this._items[this._items.length-1]:this._items[s]},I._triggerSlideEvent=function(e,n){var i=this._getItemIndex(e),o=this._getItemIndex(this._element.querySelector(E)),r=t.Event(m.SLIDE,{relatedTarget:e,direction:n,from:o,to:i});return t(this._element).trigger(r),r},I._setActiveIndicatorElement=function(e){if(this._indicatorsElement){var n=[].slice.call(this._indicatorsElement.querySelectorAll(x));t(n).removeClass(v);var i=this._indicatorsElement.children[this._getItemIndex(e)];i&&t(i).addClass(v)}},I._slide=function(e,n){var i,o,r,s=this,a=this._element.querySelector(E),c=this._getItemIndex(a),u=n||a&&this._getItemByDirection(e,a),d=this._getItemIndex(u),g=Boolean(this._interval);if(e===f?(i=_,o=w,r=p):(i=b,o=S,r=h),u&&t(u).hasClass(v))this._isSliding=!1;else if(!this._triggerSlideEvent(u,r).isDefaultPrevented()&&a&&u){this._isSliding=!0,g&&this.pause(),this._setActiveIndicatorElement(u);var x=t.Event(m.SLID,{relatedTarget:u,direction:r,from:c,to:d});if(t(this._element).hasClass(y)){t(u).addClass(o),l.reflow(u),t(a).addClass(i),t(u).addClass(i);var C=l.getTransitionDurationFromElement(a);t(a).one(l.TRANSITION_END,(function(){t(u).removeClass(i+" "+o).addClass(v),t(a).removeClass(v+" "+o+" "+i),s._isSliding=!1,setTimeout((function(){return t(s._element).trigger(x)}),0)})).emulateTransitionEnd(C)}else t(a).removeClass(v),t(u).addClass(v),this._isSliding=!1,t(this._element).trigger(x);g&&this.cycle()}},r._jQueryInterface=function(e){return this.each((function(){var i=t(this).data(n),o=s({},c,t(this).data());"object"===(void 0===e?"undefined":a(e))&&(o=s({},o,e));var l="string"==typeof e?e:o.slide;if(i||(i=new r(this,o),t(this).data(n,i)),"number"==typeof e)i.to(e);else if("string"==typeof l){if(void 0===i[l])throw new TypeError('No method named "'+l+'"');i[l]()}else o.interval&&(i.pause(),i.cycle())}))},r._dataApiClickHandler=function(e){var i=l.getSelectorFromElement(this);if(i){var o=t(i)[0];if(o&&t(o).hasClass(g)){var a=s({},t(o).data(),t(this).data()),c=this.getAttribute("data-slide-to");c&&(a.interval=!1),r._jQueryInterface.call(t(o),a),c&&t(o).data(n).to(c),e.preventDefault()}}},o(r,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return c}}]),r}();return t(document).on(m.CLICK_DATA_API,I,k._dataApiClickHandler),t(window).on(m.LOAD_DATA_API,(function(){for(var e=[].slice.call(document.querySelectorAll(O)),n=0,i=e.length;n<i;n++){var o=t(e[n]);k._jQueryInterface.call(o,o.data())}})),t.fn[e]=k._jQueryInterface,t.fn[e].Constructor=k,t.fn[e].noConflict=function(){return t.fn[e]=r,k._jQueryInterface},k}(e),d=function(t){var e="collapse",n="bs.collapse",i=t.fn[e],r={toggle:!0,parent:""},c={toggle:"boolean",parent:"(string|element)"},u={SHOW:"show.bs.collapse",SHOWN:"shown.bs.collapse",HIDE:"hide.bs.collapse",HIDDEN:"hidden.bs.collapse",CLICK_DATA_API:"click.bs.collapse.data-api"},f="show",d="collapse",p="collapsing",h="collapsed",m="width",g="height",v=".show, .collapsing",y='[data-toggle="collapse"]',b=function(){function i(e,n){this._isTransitioning=!1,this._element=e,this._config=this._getConfig(n),this._triggerArray=t.makeArray(document.querySelectorAll('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'));for(var i=[].slice.call(document.querySelectorAll(y)),o=0,r=i.length;o<r;o++){var s=i[o],a=l.getSelectorFromElement(s),c=[].slice.call(document.querySelectorAll(a)).filter((function(t){return t===e}));null!==a&&c.length>0&&(this._selector=a,this._triggerArray.push(s))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var b=i.prototype;return b.toggle=function(){t(this._element).hasClass(f)?this.hide():this.show()},b.show=function(){var e,o,r=this;if(!(this._isTransitioning||t(this._element).hasClass(f)||(this._parent&&0===(e=[].slice.call(this._parent.querySelectorAll(v)).filter((function(t){return t.getAttribute("data-parent")===r._config.parent}))).length&&(e=null),e&&(o=t(e).not(this._selector).data(n))&&o._isTransitioning))){var s=t.Event(u.SHOW);if(t(this._element).trigger(s),!s.isDefaultPrevented()){e&&(i._jQueryInterface.call(t(e).not(this._selector),"hide"),o||t(e).data(n,null));var a=this._getDimension();t(this._element).removeClass(d).addClass(p),this._element.style[a]=0,this._triggerArray.length&&t(this._triggerArray).removeClass(h).attr("aria-expanded",!0),this.setTransitioning(!0);var c="scroll"+(a[0].toUpperCase()+a.slice(1)),m=l.getTransitionDurationFromElement(this._element);t(this._element).one(l.TRANSITION_END,(function(){t(r._element).removeClass(p).addClass(d).addClass(f),r._element.style[a]="",r.setTransitioning(!1),t(r._element).trigger(u.SHOWN)})).emulateTransitionEnd(m),this._element.style[a]=this._element[c]+"px"}}},b.hide=function(){var e=this;if(!this._isTransitioning&&t(this._element).hasClass(f)){var n=t.Event(u.HIDE);if(t(this._element).trigger(n),!n.isDefaultPrevented()){var i=this._getDimension();this._element.style[i]=this._element.getBoundingClientRect()[i]+"px",l.reflow(this._element),t(this._element).addClass(p).removeClass(d).removeClass(f);var o=this._triggerArray.length;if(o>0)for(var r=0;r<o;r++){var s=this._triggerArray[r],a=l.getSelectorFromElement(s);null!==a&&(t([].slice.call(document.querySelectorAll(a))).hasClass(f)||t(s).addClass(h).attr("aria-expanded",!1))}this.setTransitioning(!0),this._element.style[i]="";var c=l.getTransitionDurationFromElement(this._element);t(this._element).one(l.TRANSITION_END,(function(){e.setTransitioning(!1),t(e._element).removeClass(p).addClass(d).trigger(u.HIDDEN)})).emulateTransitionEnd(c)}}},b.setTransitioning=function(t){this._isTransitioning=t},b.dispose=function(){t.removeData(this._element,n),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},b._getConfig=function(t){return(t=s({},r,t)).toggle=Boolean(t.toggle),l.typeCheckConfig(e,t,c),t},b._getDimension=function(){return t(this._element).hasClass(m)?m:g},b._getParent=function(){var e=this,n=null;l.isElement(this._config.parent)?(n=this._config.parent,void 0!==this._config.parent.jquery&&(n=this._config.parent[0])):n=document.querySelector(this._config.parent);var o='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',r=[].slice.call(n.querySelectorAll(o));return t(r).each((function(t,n){e._addAriaAndCollapsedClass(i._getTargetFromElement(n),[n])})),n},b._addAriaAndCollapsedClass=function(e,n){if(e){var i=t(e).hasClass(f);n.length&&t(n).toggleClass(h,!i).attr("aria-expanded",i)}},i._getTargetFromElement=function(t){var e=l.getSelectorFromElement(t);return e?document.querySelector(e):null},i._jQueryInterface=function(e){return this.each((function(){var o=t(this),l=o.data(n),c=s({},r,o.data(),"object"===(void 0===e?"undefined":a(e))&&e?e:{});if(!l&&c.toggle&&/show|hide/.test(e)&&(c.toggle=!1),l||(l=new i(this,c),o.data(n,l)),"string"==typeof e){if(void 0===l[e])throw new TypeError('No method named "'+e+'"');l[e]()}}))},o(i,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return r}}]),i}();return t(document).on(u.CLICK_DATA_API,y,(function(e){"A"===e.currentTarget.tagName&&e.preventDefault();var i=t(this),o=l.getSelectorFromElement(this),r=[].slice.call(document.querySelectorAll(o));t(r).each((function(){var e=t(this),o=e.data(n)?"toggle":i.data();b._jQueryInterface.call(e,o)}))})),t.fn[e]=b._jQueryInterface,t.fn[e].Constructor=b,t.fn[e].noConflict=function(){return t.fn[e]=i,b._jQueryInterface},b}(e),p=function(t){var e="dropdown",i="bs.dropdown",r="."+i,c=t.fn[e],u=new RegExp("38|40|27"),f={HIDE:"hide"+r,HIDDEN:"hidden"+r,SHOW:"show"+r,SHOWN:"shown"+r,CLICK:"click"+r,CLICK_DATA_API:"click.bs.dropdown.data-api",KEYDOWN_DATA_API:"keydown.bs.dropdown.data-api",KEYUP_DATA_API:"keyup.bs.dropdown.data-api"},d="disabled",p="show",h="dropup",m="dropright",g="dropleft",v="dropdown-menu-right",y="position-static",b='[data-toggle="dropdown"]',_=".dropdown form",w=".dropdown-menu",S=".navbar-nav",x=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",E="top-start",C="top-end",T="bottom-start",A="bottom-end",I="right-start",O="left-start",k={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic"},D={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string"},N=function(){function c(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var _=c.prototype;return _.toggle=function(){if(!this._element.disabled&&!t(this._element).hasClass(d)){var e=c._getParentFromElement(this._element),i=t(this._menu).hasClass(p);if(c._clearMenus(),!i){var o={relatedTarget:this._element},r=t.Event(f.SHOW,o);if(t(e).trigger(r),!r.isDefaultPrevented()){if(!this._inNavbar){if(void 0===n)throw new TypeError("Bootstrap dropdown require Popper.js (https://popper.js.org)");var s=this._element;"parent"===this._config.reference?s=e:l.isElement(this._config.reference)&&(s=this._config.reference,void 0!==this._config.reference.jquery&&(s=this._config.reference[0])),"scrollParent"!==this._config.boundary&&t(e).addClass(y),this._popper=new n(s,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===t(e).closest(S).length&&t(document.body).children().on("mouseover",null,t.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),t(this._menu).toggleClass(p),t(e).toggleClass(p).trigger(t.Event(f.SHOWN,o))}}}},_.dispose=function(){t.removeData(this._element,i),t(this._element).off(r),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},_.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},_._addEventListeners=function(){var e=this;t(this._element).on(f.CLICK,(function(t){t.preventDefault(),t.stopPropagation(),e.toggle()}))},_._getConfig=function(n){return n=s({},this.constructor.Default,t(this._element).data(),n),l.typeCheckConfig(e,n,this.constructor.DefaultType),n},_._getMenuElement=function(){if(!this._menu){var t=c._getParentFromElement(this._element);t&&(this._menu=t.querySelector(w))}return this._menu},_._getPlacement=function(){var e=t(this._element.parentNode),n=T;return e.hasClass(h)?(n=E,t(this._menu).hasClass(v)&&(n=C)):e.hasClass(m)?n=I:e.hasClass(g)?n=O:t(this._menu).hasClass(v)&&(n=A),n},_._detectNavbar=function(){return t(this._element).closest(".navbar").length>0},_._getPopperConfig=function(){var t=this,e={};"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=s({},e.offsets,t._config.offset(e.offsets)||{}),e}:e.offset=this._config.offset;var n={placement:this._getPlacement(),modifiers:{offset:e,flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(n.modifiers.applyStyle={enabled:!1}),n},c._jQueryInterface=function(e){return this.each((function(){var n=t(this).data(i),o="object"===(void 0===e?"undefined":a(e))?e:null;if(n||(n=new c(this,o),t(this).data(i,n)),"string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},c._clearMenus=function(e){if(!e||3!==e.which&&("keyup"!==e.type||9===e.which))for(var n=[].slice.call(document.querySelectorAll(b)),o=0,r=n.length;o<r;o++){var s=c._getParentFromElement(n[o]),a=t(n[o]).data(i),l={relatedTarget:n[o]};if(e&&"click"===e.type&&(l.clickEvent=e),a){var u=a._menu;if(t(s).hasClass(p)&&!(e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&9===e.which)&&t.contains(s,e.target))){var d=t.Event(f.HIDE,l);t(s).trigger(d),d.isDefaultPrevented()||("ontouchstart"in document.documentElement&&t(document.body).children().off("mouseover",null,t.noop),n[o].setAttribute("aria-expanded","false"),t(u).removeClass(p),t(s).removeClass(p).trigger(t.Event(f.HIDDEN,l)))}}}},c._getParentFromElement=function(t){var e,n=l.getSelectorFromElement(t);return n&&(e=document.querySelector(n)),e||t.parentNode},c._dataApiKeydownHandler=function(e){if((/input|textarea/i.test(e.target.tagName)?!(32===e.which||27!==e.which&&(40!==e.which&&38!==e.which||t(e.target).closest(w).length)):u.test(e.which))&&(e.preventDefault(),e.stopPropagation(),!this.disabled&&!t(this).hasClass(d))){var n=c._getParentFromElement(this),i=t(n).hasClass(p);if((i||27===e.which&&32===e.which)&&(!i||27!==e.which&&32!==e.which)){var o=[].slice.call(n.querySelectorAll(x));if(0!==o.length){var r=o.indexOf(e.target);38===e.which&&r>0&&r--,40===e.which&&r<o.length-1&&r++,r<0&&(r=0),o[r].focus()}}else{if(27===e.which){var s=n.querySelector(b);t(s).trigger("focus")}t(this).trigger("click")}}},o(c,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return k}},{key:"DefaultType",get:function(){return D}}]),c}();return t(document).on(f.KEYDOWN_DATA_API,b,N._dataApiKeydownHandler).on(f.KEYDOWN_DATA_API,w,N._dataApiKeydownHandler).on(f.CLICK_DATA_API+" "+f.KEYUP_DATA_API,N._clearMenus).on(f.CLICK_DATA_API,b,(function(e){e.preventDefault(),e.stopPropagation(),N._jQueryInterface.call(t(this),"toggle")})).on(f.CLICK_DATA_API,_,(function(t){t.stopPropagation()})),t.fn[e]=N._jQueryInterface,t.fn[e].Constructor=N,t.fn[e].noConflict=function(){return t.fn[e]=c,N._jQueryInterface},N}(e),h=function(t){var e="modal",n=".bs.modal",i=t.fn.modal,r={backdrop:!0,keyboard:!0,focus:!0,show:!0},c={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},u={HIDE:"hide.bs.modal",HIDDEN:"hidden.bs.modal",SHOW:"show.bs.modal",SHOWN:"shown.bs.modal",FOCUSIN:"focusin.bs.modal",RESIZE:"resize.bs.modal",CLICK_DISMISS:"click.dismiss.bs.modal",KEYDOWN_DISMISS:"keydown.dismiss.bs.modal",MOUSEUP_DISMISS:"mouseup.dismiss.bs.modal",MOUSEDOWN_DISMISS:"mousedown.dismiss.bs.modal",CLICK_DATA_API:"click.bs.modal.data-api"},f="modal-scrollbar-measure",d="modal-backdrop",p="modal-open",h="fade",m="show",g=".modal-dialog",v='[data-toggle="modal"]',y='[data-dismiss="modal"]',b=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",_=".sticky-top",w=function(){function i(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(g),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._scrollbarWidth=0}var v=i.prototype;return v.toggle=function(t){return this._isShown?this.hide():this.show(t)},v.show=function(e){var n=this;if(!this._isTransitioning&&!this._isShown){t(this._element).hasClass(h)&&(this._isTransitioning=!0);var i=t.Event(u.SHOW,{relatedTarget:e});t(this._element).trigger(i),this._isShown||i.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),t(document.body).addClass(p),this._setEscapeEvent(),this._setResizeEvent(),t(this._element).on(u.CLICK_DISMISS,y,(function(t){return n.hide(t)})),t(this._dialog).on(u.MOUSEDOWN_DISMISS,(function(){t(n._element).one(u.MOUSEUP_DISMISS,(function(e){t(e.target).is(n._element)&&(n._ignoreBackdropClick=!0)}))})),this._showBackdrop((function(){return n._showElement(e)})))}},v.hide=function(e){var n=this;if(e&&e.preventDefault(),!this._isTransitioning&&this._isShown){var i=t.Event(u.HIDE);if(t(this._element).trigger(i),this._isShown&&!i.isDefaultPrevented()){this._isShown=!1;var o=t(this._element).hasClass(h);if(o&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),t(document).off(u.FOCUSIN),t(this._element).removeClass(m),t(this._element).off(u.CLICK_DISMISS),t(this._dialog).off(u.MOUSEDOWN_DISMISS),o){var r=l.getTransitionDurationFromElement(this._element);t(this._element).one(l.TRANSITION_END,(function(t){return n._hideModal(t)})).emulateTransitionEnd(r)}else this._hideModal()}}},v.dispose=function(){t.removeData(this._element,"bs.modal"),t(window,document,this._element,this._backdrop).off(n),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._scrollbarWidth=null},v.handleUpdate=function(){this._adjustDialog()},v._getConfig=function(t){return t=s({},r,t),l.typeCheckConfig(e,t,c),t},v._showElement=function(e){var n=this,i=t(this._element).hasClass(h);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.scrollTop=0,i&&l.reflow(this._element),t(this._element).addClass(m),this._config.focus&&this._enforceFocus();var o=t.Event(u.SHOWN,{relatedTarget:e}),r=function(){n._config.focus&&n._element.focus(),n._isTransitioning=!1,t(n._element).trigger(o)};if(i){var s=l.getTransitionDurationFromElement(this._element);t(this._dialog).one(l.TRANSITION_END,r).emulateTransitionEnd(s)}else r()},v._enforceFocus=function(){var e=this;t(document).off(u.FOCUSIN).on(u.FOCUSIN,(function(n){document!==n.target&&e._element!==n.target&&0===t(e._element).has(n.target).length&&e._element.focus()}))},v._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?t(this._element).on(u.KEYDOWN_DISMISS,(function(t){27===t.which&&(t.preventDefault(),e.hide())})):this._isShown||t(this._element).off(u.KEYDOWN_DISMISS)},v._setResizeEvent=function(){var e=this;this._isShown?t(window).on(u.RESIZE,(function(t){return e.handleUpdate(t)})):t(window).off(u.RESIZE)},v._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1,this._showBackdrop((function(){t(document.body).removeClass(p),e._resetAdjustments(),e._resetScrollbar(),t(e._element).trigger(u.HIDDEN)}))},v._removeBackdrop=function(){this._backdrop&&(t(this._backdrop).remove(),this._backdrop=null)},v._showBackdrop=function(e){var n=this,i=t(this._element).hasClass(h)?h:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=d,i&&this._backdrop.classList.add(i),t(this._backdrop).appendTo(document.body),t(this._element).on(u.CLICK_DISMISS,(function(t){n._ignoreBackdropClick?n._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===n._config.backdrop?n._element.focus():n.hide())})),i&&l.reflow(this._backdrop),t(this._backdrop).addClass(m),!e)return;if(!i)return void e();var o=l.getTransitionDurationFromElement(this._backdrop);t(this._backdrop).one(l.TRANSITION_END,e).emulateTransitionEnd(o)}else if(!this._isShown&&this._backdrop){t(this._backdrop).removeClass(m);var r=function(){n._removeBackdrop(),e&&e()};if(t(this._element).hasClass(h)){var s=l.getTransitionDurationFromElement(this._backdrop);t(this._backdrop).one(l.TRANSITION_END,r).emulateTransitionEnd(s)}else r()}else e&&e()},v._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},v._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},v._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=t.left+t.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},v._setScrollbar=function(){var e=this;if(this._isBodyOverflowing){var n=[].slice.call(document.querySelectorAll(b)),i=[].slice.call(document.querySelectorAll(_));t(n).each((function(n,i){var o=i.style.paddingRight,r=t(i).css("padding-right");t(i).data("padding-right",o).css("padding-right",parseFloat(r)+e._scrollbarWidth+"px")})),t(i).each((function(n,i){var o=i.style.marginRight,r=t(i).css("margin-right");t(i).data("margin-right",o).css("margin-right",parseFloat(r)-e._scrollbarWidth+"px")}));var o=document.body.style.paddingRight,r=t(document.body).css("padding-right");t(document.body).data("padding-right",o).css("padding-right",parseFloat(r)+this._scrollbarWidth+"px")}},v._resetScrollbar=function(){var e=[].slice.call(document.querySelectorAll(b));t(e).each((function(e,n){var i=t(n).data("padding-right");t(n).removeData("padding-right"),n.style.paddingRight=i||""}));var n=[].slice.call(document.querySelectorAll(""+_));t(n).each((function(e,n){var i=t(n).data("margin-right");void 0!==i&&t(n).css("margin-right",i).removeData("margin-right")}));var i=t(document.body).data("padding-right");t(document.body).removeData("padding-right"),document.body.style.paddingRight=i||""},v._getScrollbarWidth=function(){var t=document.createElement("div");t.className=f,document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},i._jQueryInterface=function(e,n){return this.each((function(){var o=t(this).data("bs.modal"),l=s({},r,t(this).data(),"object"===(void 0===e?"undefined":a(e))&&e?e:{});if(o||(o=new i(this,l),t(this).data("bs.modal",o)),"string"==typeof e){if(void 0===o[e])throw new TypeError('No method named "'+e+'"');o[e](n)}else l.show&&o.show(n)}))},o(i,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return r}}]),i}();return t(document).on(u.CLICK_DATA_API,v,(function(e){var n,i=this,o=l.getSelectorFromElement(this);o&&(n=document.querySelector(o));var r=t(n).data("bs.modal")?"toggle":s({},t(n).data(),t(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||e.preventDefault();var a=t(n).one(u.SHOW,(function(e){e.isDefaultPrevented()||a.one(u.HIDDEN,(function(){t(i).is(":visible")&&i.focus()}))}));w._jQueryInterface.call(t(n),r,this)})),t.fn.modal=w._jQueryInterface,t.fn.modal.Constructor=w,t.fn.modal.noConflict=function(){return t.fn.modal=i,w._jQueryInterface},w}(e),m=function(t){var e="tooltip",i=".bs.tooltip",r=t.fn[e],c=new RegExp("(^|\\s)bs-tooltip\\S+","g"),u={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)"},f={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},d={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent"},p="show",h="out",m={HIDE:"hide"+i,HIDDEN:"hidden"+i,SHOW:"show"+i,SHOWN:"shown"+i,INSERTED:"inserted"+i,CLICK:"click"+i,FOCUSIN:"focusin"+i,FOCUSOUT:"focusout"+i,MOUSEENTER:"mouseenter"+i,MOUSELEAVE:"mouseleave"+i},g="fade",v="show",y=".tooltip-inner",b=".arrow",_="hover",w="focus",S="click",x="manual",E=function(){function r(t,e){if(void 0===n)throw new TypeError("Bootstrap tooltips require Popper.js (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var E=r.prototype;return E.enable=function(){this._isEnabled=!0},E.disable=function(){this._isEnabled=!1},E.toggleEnabled=function(){this._isEnabled=!this._isEnabled},E.toggle=function(e){if(this._isEnabled)if(e){var n=this.constructor.DATA_KEY,i=t(e.currentTarget).data(n);i||(i=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(n,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(t(this.getTipElement()).hasClass(v))return void this._leave(null,this);this._enter(null,this)}},E.dispose=function(){clearTimeout(this._timeout),t.removeData(this.element,this.constructor.DATA_KEY),t(this.element).off(this.constructor.EVENT_KEY),t(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&t(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,null!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},E.show=function(){var e=this;if("none"===t(this.element).css("display"))throw new Error("Please use show on visible elements");var i=t.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){t(this.element).trigger(i);var o=t.contains(this.element.ownerDocument.documentElement,this.element);if(i.isDefaultPrevented()||!o)return;var r=this.getTipElement(),s=l.getUID(this.constructor.NAME);r.setAttribute("id",s),this.element.setAttribute("aria-describedby",s),this.setContent(),this.config.animation&&t(r).addClass(g);var a="function"==typeof this.config.placement?this.config.placement.call(this,r,this.element):this.config.placement,c=this._getAttachment(a);this.addAttachmentClass(c);var u=!1===this.config.container?document.body:t(document).find(this.config.container);t(r).data(this.constructor.DATA_KEY,this),t.contains(this.element.ownerDocument.documentElement,this.tip)||t(r).appendTo(u),t(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new n(this.element,r,{placement:c,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:b},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){e._handlePopperPlacementChange(t)}}),t(r).addClass(v),"ontouchstart"in document.documentElement&&t(document.body).children().on("mouseover",null,t.noop);var f=function(){e.config.animation&&e._fixTransition();var n=e._hoverState;e._hoverState=null,t(e.element).trigger(e.constructor.Event.SHOWN),n===h&&e._leave(null,e)};if(t(this.tip).hasClass(g)){var d=l.getTransitionDurationFromElement(this.tip);t(this.tip).one(l.TRANSITION_END,f).emulateTransitionEnd(d)}else f()}},E.hide=function(e){var n=this,i=this.getTipElement(),o=t.Event(this.constructor.Event.HIDE),r=function(){n._hoverState!==p&&i.parentNode&&i.parentNode.removeChild(i),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),t(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),e&&e()};if(t(this.element).trigger(o),!o.isDefaultPrevented()){if(t(i).removeClass(v),"ontouchstart"in document.documentElement&&t(document.body).children().off("mouseover",null,t.noop),this._activeTrigger[S]=!1,this._activeTrigger[w]=!1,this._activeTrigger[_]=!1,t(this.tip).hasClass(g)){var s=l.getTransitionDurationFromElement(i);t(i).one(l.TRANSITION_END,r).emulateTransitionEnd(s)}else r();this._hoverState=""}},E.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},E.isWithContent=function(){return Boolean(this.getTitle())},E.addAttachmentClass=function(e){t(this.getTipElement()).addClass("bs-tooltip-"+e)},E.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},E.setContent=function(){var e=this.getTipElement();this.setElementContent(t(e.querySelectorAll(y)),this.getTitle()),t(e).removeClass(g+" "+v)},E.setElementContent=function(e,n){var i=this.config.html;"object"===(void 0===n?"undefined":a(n))&&(n.nodeType||n.jquery)?i?t(n).parent().is(e)||e.empty().append(n):e.text(t(n).text()):e[i?"html":"text"](n)},E.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},E._getAttachment=function(t){return f[t.toUpperCase()]},E._setListeners=function(){var e=this;this.config.trigger.split(" ").forEach((function(n){if("click"===n)t(e.element).on(e.constructor.Event.CLICK,e.config.selector,(function(t){return e.toggle(t)}));else if(n!==x){var i=n===_?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,o=n===_?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;t(e.element).on(i,e.config.selector,(function(t){return e._enter(t)})).on(o,e.config.selector,(function(t){return e._leave(t)}))}t(e.element).closest(".modal").on("hide.bs.modal",(function(){return e.hide()}))})),this.config.selector?this.config=s({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},E._fixTitle=function(){var t=a(this.element.getAttribute("data-original-title"));(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},E._enter=function(e,n){var i=this.constructor.DATA_KEY;(n=n||t(e.currentTarget).data(i))||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(i,n)),e&&(n._activeTrigger["focusin"===e.type?w:_]=!0),t(n.getTipElement()).hasClass(v)||n._hoverState===p?n._hoverState=p:(clearTimeout(n._timeout),n._hoverState=p,n.config.delay&&n.config.delay.show?n._timeout=setTimeout((function(){n._hoverState===p&&n.show()}),n.config.delay.show):n.show())},E._leave=function(e,n){var i=this.constructor.DATA_KEY;(n=n||t(e.currentTarget).data(i))||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(i,n)),e&&(n._activeTrigger["focusout"===e.type?w:_]=!1),n._isWithActiveTrigger()||(clearTimeout(n._timeout),n._hoverState=h,n.config.delay&&n.config.delay.hide?n._timeout=setTimeout((function(){n._hoverState===h&&n.hide()}),n.config.delay.hide):n.hide())},E._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},E._getConfig=function(n){return"number"==typeof(n=s({},this.constructor.Default,t(this.element).data(),"object"===(void 0===n?"undefined":a(n))&&n?n:{})).delay&&(n.delay={show:n.delay,hide:n.delay}),"number"==typeof n.title&&(n.title=n.title.toString()),"number"==typeof n.content&&(n.content=n.content.toString()),l.typeCheckConfig(e,n,this.constructor.DefaultType),n},E._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},E._cleanTipClass=function(){var e=t(this.getTipElement()),n=e.attr("class").match(c);null!==n&&n.length&&e.removeClass(n.join(""))},E._handlePopperPlacementChange=function(t){var e=t.instance;this.tip=e.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},E._fixTransition=function(){var e=this.getTipElement(),n=this.config.animation;null===e.getAttribute("x-placement")&&(t(e).removeClass(g),this.config.animation=!1,this.hide(),this.show(),this.config.animation=n)},r._jQueryInterface=function(e){return this.each((function(){var n=t(this).data("bs.tooltip"),i="object"===(void 0===e?"undefined":a(e))&&e;if((n||!/dispose|hide/.test(e))&&(n||(n=new r(this,i),t(this).data("bs.tooltip",n)),"string"==typeof e)){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},o(r,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return d}},{key:"NAME",get:function(){return e}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return m}},{key:"EVENT_KEY",get:function(){return i}},{key:"DefaultType",get:function(){return u}}]),r}();return t.fn[e]=E._jQueryInterface,t.fn[e].Constructor=E,t.fn[e].noConflict=function(){return t.fn[e]=r,E._jQueryInterface},E}(e),g=function(t){var e="popover",n=".bs.popover",i=t.fn[e],r=new RegExp("(^|\\s)bs-popover\\S+","g"),l=s({},m.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),c=s({},m.DefaultType,{content:"(string|element|function)"}),u="fade",f="show",d=".popover-header",p=".popover-body",h={HIDE:"hide"+n,HIDDEN:"hidden"+n,SHOW:"show"+n,SHOWN:"shown"+n,INSERTED:"inserted"+n,CLICK:"click"+n,FOCUSIN:"focusin"+n,FOCUSOUT:"focusout"+n,MOUSEENTER:"mouseenter"+n,MOUSELEAVE:"mouseleave"+n},g=function(i){var s,m;function g(){return i.apply(this,arguments)||this}m=i,(s=g).prototype=Object.create(m.prototype),s.prototype.constructor=s,s.__proto__=m;var v=g.prototype;return v.isWithContent=function(){return this.getTitle()||this._getContent()},v.addAttachmentClass=function(e){t(this.getTipElement()).addClass("bs-popover-"+e)},v.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},v.setContent=function(){var e=t(this.getTipElement());this.setElementContent(e.find(d),this.getTitle());var n=this._getContent();"function"==typeof n&&(n=n.call(this.element)),this.setElementContent(e.find(p),n),e.removeClass(u+" "+f)},v._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},v._cleanTipClass=function(){var e=t(this.getTipElement()),n=e.attr("class").match(r);null!==n&&n.length>0&&e.removeClass(n.join(""))},g._jQueryInterface=function(e){return this.each((function(){var n=t(this).data("bs.popover"),i="object"===(void 0===e?"undefined":a(e))?e:null;if((n||!/destroy|hide/.test(e))&&(n||(n=new g(this,i),t(this).data("bs.popover",n)),"string"==typeof e)){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},o(g,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return l}},{key:"NAME",get:function(){return e}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return h}},{key:"EVENT_KEY",get:function(){return n}},{key:"DefaultType",get:function(){return c}}]),g}(m);return t.fn[e]=g._jQueryInterface,t.fn[e].Constructor=g,t.fn[e].noConflict=function(){return t.fn[e]=i,g._jQueryInterface},g}(e),v=function(t){var e="scrollspy",n=t.fn[e],i={offset:10,method:"auto",target:""},r={offset:"number",method:"string",target:"(string|element)"},c={ACTIVATE:"activate.bs.scrollspy",SCROLL:"scroll.bs.scrollspy",LOAD_DATA_API:"load.bs.scrollspy.data-api"},u="dropdown-item",f="active",d='[data-spy="scroll"]',p=".active",h=".nav, .list-group",m=".nav-link",g=".nav-item",v=".list-group-item",y=".dropdown",b=".dropdown-item",_=".dropdown-toggle",w="offset",S="position",x=function(){function n(e,n){var i=this;this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(n),this._selector=this._config.target+" "+m+","+this._config.target+" "+v+","+this._config.target+" "+b,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,t(this._scrollElement).on(c.SCROLL,(function(t){return i._process(t)})),this.refresh(),this._process()}var d=n.prototype;return d.refresh=function(){var e=this,n=this._scrollElement===this._scrollElement.window?w:S,i="auto"===this._config.method?n:this._config.method,o=i===S?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map((function(e){var n,r=l.getSelectorFromElement(e);if(r&&(n=document.querySelector(r)),n){var s=n.getBoundingClientRect();if(s.width||s.height)return[t(n)[i]().top+o,r]}return null})).filter((function(t){return t})).sort((function(t,e){return t[0]-e[0]})).forEach((function(t){e._offsets.push(t[0]),e._targets.push(t[1])}))},d.dispose=function(){t.removeData(this._element,"bs.scrollspy"),t(this._scrollElement).off(".bs.scrollspy"),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},d._getConfig=function(n){if("string"!=typeof(n=s({},i,"object"===(void 0===n?"undefined":a(n))&&n?n:{})).target){var o=t(n.target).attr("id");o||(o=l.getUID(e),t(n.target).attr("id",o)),n.target="#"+o}return l.typeCheckConfig(e,n,r),n},d._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},d._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},d._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},d._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;)this._activeTarget!==this._targets[o]&&t>=this._offsets[o]&&(void 0===this._offsets[o+1]||t<this._offsets[o+1])&&this._activate(this._targets[o])}},d._activate=function(e){this._activeTarget=e,this._clear();var n=this._selector.split(",");n=n.map((function(t){return t+'[data-target="'+e+'"],'+t+'[href="'+e+'"]'}));var i=t([].slice.call(document.querySelectorAll(n.join(","))));i.hasClass(u)?(i.closest(y).find(_).addClass(f),i.addClass(f)):(i.addClass(f),i.parents(h).prev(m+", "+v).addClass(f),i.parents(h).prev(g).children(m).addClass(f)),t(this._scrollElement).trigger(c.ACTIVATE,{relatedTarget:e})},d._clear=function(){var e=[].slice.call(document.querySelectorAll(this._selector));t(e).filter(p).removeClass(f)},n._jQueryInterface=function(e){return this.each((function(){var i=t(this).data("bs.scrollspy"),o="object"===(void 0===e?"undefined":a(e))&&e;if(i||(i=new n(this,o),t(this).data("bs.scrollspy",i)),"string"==typeof e){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e]()}}))},o(n,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return i}}]),n}();return t(window).on(c.LOAD_DATA_API,(function(){for(var e=[].slice.call(document.querySelectorAll(d)),n=e.length;n--;){var i=t(e[n]);x._jQueryInterface.call(i,i.data())}})),t.fn[e]=x._jQueryInterface,t.fn[e].Constructor=x,t.fn[e].noConflict=function(){return t.fn[e]=n,x._jQueryInterface},x}(e),y=function(t){var e=t.fn.tab,n={HIDE:"hide.bs.tab",HIDDEN:"hidden.bs.tab",SHOW:"show.bs.tab",SHOWN:"shown.bs.tab",CLICK_DATA_API:"click.bs.tab.data-api"},i="dropdown-menu",r="active",s="disabled",a="fade",c="show",u=".dropdown",f=".nav, .list-group",d=".active",p="> li > .active",h='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',m=".dropdown-toggle",g="> .dropdown-menu .active",v=function(){function e(t){this._element=t}var h=e.prototype;return h.show=function(){var e=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&t(this._element).hasClass(r)||t(this._element).hasClass(s))){var i,o,a=t(this._element).closest(f)[0],c=l.getSelectorFromElement(this._element);if(a){var u="UL"===a.nodeName?p:d;o=(o=t.makeArray(t(a).find(u)))[o.length-1]}var h=t.Event(n.HIDE,{relatedTarget:this._element}),m=t.Event(n.SHOW,{relatedTarget:o});if(o&&t(o).trigger(h),t(this._element).trigger(m),!m.isDefaultPrevented()&&!h.isDefaultPrevented()){c&&(i=document.querySelector(c)),this._activate(this._element,a);var g=function(){var i=t.Event(n.HIDDEN,{relatedTarget:e._element}),r=t.Event(n.SHOWN,{relatedTarget:o});t(o).trigger(i),t(e._element).trigger(r)};i?this._activate(i,i.parentNode,g):g()}}},h.dispose=function(){t.removeData(this._element,"bs.tab"),this._element=null},h._activate=function(e,n,i){var o=this,r=("UL"===n.nodeName?t(n).find(p):t(n).children(d))[0],s=i&&r&&t(r).hasClass(a),c=function(){return o._transitionComplete(e,r,i)};if(r&&s){var u=l.getTransitionDurationFromElement(r);t(r).one(l.TRANSITION_END,c).emulateTransitionEnd(u)}else c()},h._transitionComplete=function(e,n,o){if(n){t(n).removeClass(c+" "+r);var s=t(n.parentNode).find(g)[0];s&&t(s).removeClass(r),"tab"===n.getAttribute("role")&&n.setAttribute("aria-selected",!1)}if(t(e).addClass(r),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),l.reflow(e),t(e).addClass(c),e.parentNode&&t(e.parentNode).hasClass(i)){var a=t(e).closest(u)[0];if(a){var f=[].slice.call(a.querySelectorAll(m));t(f).addClass(r)}e.setAttribute("aria-expanded",!0)}o&&o()},e._jQueryInterface=function(n){return this.each((function(){var i=t(this),o=i.data("bs.tab");if(o||(o=new e(this),i.data("bs.tab",o)),"string"==typeof n){if(void 0===o[n])throw new TypeError('No method named "'+n+'"');o[n]()}}))},o(e,null,[{key:"VERSION",get:function(){return"4.1.3"}}]),e}();return t(document).on(n.CLICK_DATA_API,h,(function(e){e.preventDefault(),v._jQueryInterface.call(t(this),"show")})),t.fn.tab=v._jQueryInterface,t.fn.tab.Constructor=v,t.fn.tab.noConflict=function(){return t.fn.tab=e,v._jQueryInterface},v}(e);!function(t){if(void 0===t)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1===e[0]&&9===e[1]&&e[2]<1||e[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(e),t.Util=l,t.Alert=c,t.Button=u,t.Carousel=f,t.Collapse=d,t.Dropdown=p,t.Modal=h,t.Popover=g,t.Scrollspy=v,t.Tab=y,t.Tooltip=m,Object.defineProperty(t,"__esModule",{value:!0})},"object"===a(e)&&void 0!==t?s(e,n(3),n(5)):(o=[e,n(3),n(5)],void 0===(r="function"==typeof(i=s)?i.apply(e,o):i)||(t.exports=r))},function(t,e,n){"use strict";var i,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":o(window))&&(i=window)}t.exports=i},function(t,e,n){"use strict";var i,o,r,s,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};s=function(){return function t(e,n,i){function o(s,a){if(!n[s]){if(!e[s]){if(r)return r(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[s]={exports:{}};e[s][0].call(c.exports,(function(t){var n=e[s][1][t];return o(n||t)}),c,c.exports,t,e,n,i)}return n[s].exports}for(var r=!1,s=0;s<i.length;s++)o(i[s]);return o}({1:[function(t,e,n){e.exports=function(t){var e,n,i,o=-1;if(t.lines.length>1&&"flex-start"===t.style.alignContent)for(e=0;i=t.lines[++o];)i.crossStart=e,e+=i.cross;else if(t.lines.length>1&&"flex-end"===t.style.alignContent)for(e=t.flexStyle.crossSpace;i=t.lines[++o];)i.crossStart=e,e+=i.cross;else if(t.lines.length>1&&"center"===t.style.alignContent)for(e=t.flexStyle.crossSpace/2;i=t.lines[++o];)i.crossStart=e,e+=i.cross;else if(t.lines.length>1&&"space-between"===t.style.alignContent)for(n=t.flexStyle.crossSpace/(t.lines.length-1),e=0;i=t.lines[++o];)i.crossStart=e,e+=i.cross+n;else if(t.lines.length>1&&"space-around"===t.style.alignContent)for(e=(n=2*t.flexStyle.crossSpace/(2*t.lines.length))/2;i=t.lines[++o];)i.crossStart=e,e+=i.cross+n;else for(n=t.flexStyle.crossSpace/t.lines.length,e=t.flexStyle.crossInnerBefore;i=t.lines[++o];)i.crossStart=e,i.cross+=n,e+=i.cross}},{}],2:[function(t,e,n){e.exports=function(t){for(var e,n=-1;line=t.lines[++n];)for(e=-1;child=line.children[++e];){var i=child.style.alignSelf;"auto"===i&&(i=t.style.alignItems),"flex-start"===i?child.flexStyle.crossStart=line.crossStart:"flex-end"===i?child.flexStyle.crossStart=line.crossStart+line.cross-child.flexStyle.crossOuter:"center"===i?child.flexStyle.crossStart=line.crossStart+(line.cross-child.flexStyle.crossOuter)/2:(child.flexStyle.crossStart=line.crossStart,child.flexStyle.crossOuter=line.cross,child.flexStyle.cross=child.flexStyle.crossOuter-child.flexStyle.crossBefore-child.flexStyle.crossAfter)}}},{}],3:[function(t,e,n){e.exports=function(t,e){var n="row"===e||"row-reverse"===e,i=t.mainAxis;i?n&&"inline"===i||!n&&"block"===i||(t.flexStyle={main:t.flexStyle.cross,cross:t.flexStyle.main,mainOffset:t.flexStyle.crossOffset,crossOffset:t.flexStyle.mainOffset,mainBefore:t.flexStyle.crossBefore,mainAfter:t.flexStyle.crossAfter,crossBefore:t.flexStyle.mainBefore,crossAfter:t.flexStyle.mainAfter,mainInnerBefore:t.flexStyle.crossInnerBefore,mainInnerAfter:t.flexStyle.crossInnerAfter,crossInnerBefore:t.flexStyle.mainInnerBefore,crossInnerAfter:t.flexStyle.mainInnerAfter,mainBorderBefore:t.flexStyle.crossBorderBefore,mainBorderAfter:t.flexStyle.crossBorderAfter,crossBorderBefore:t.flexStyle.mainBorderBefore,crossBorderAfter:t.flexStyle.mainBorderAfter}):(t.flexStyle=n?{main:t.style.width,cross:t.style.height,mainOffset:t.style.offsetWidth,crossOffset:t.style.offsetHeight,mainBefore:t.style.marginLeft,mainAfter:t.style.marginRight,crossBefore:t.style.marginTop,crossAfter:t.style.marginBottom,mainInnerBefore:t.style.paddingLeft,mainInnerAfter:t.style.paddingRight,crossInnerBefore:t.style.paddingTop,crossInnerAfter:t.style.paddingBottom,mainBorderBefore:t.style.borderLeftWidth,mainBorderAfter:t.style.borderRightWidth,crossBorderBefore:t.style.borderTopWidth,crossBorderAfter:t.style.borderBottomWidth}:{main:t.style.height,cross:t.style.width,mainOffset:t.style.offsetHeight,crossOffset:t.style.offsetWidth,mainBefore:t.style.marginTop,mainAfter:t.style.marginBottom,crossBefore:t.style.marginLeft,crossAfter:t.style.marginRight,mainInnerBefore:t.style.paddingTop,mainInnerAfter:t.style.paddingBottom,crossInnerBefore:t.style.paddingLeft,crossInnerAfter:t.style.paddingRight,mainBorderBefore:t.style.borderTopWidth,mainBorderAfter:t.style.borderBottomWidth,crossBorderBefore:t.style.borderLeftWidth,crossBorderAfter:t.style.borderRightWidth},"content-box"===t.style.boxSizing&&("number"==typeof t.flexStyle.main&&(t.flexStyle.main+=t.flexStyle.mainInnerBefore+t.flexStyle.mainInnerAfter+t.flexStyle.mainBorderBefore+t.flexStyle.mainBorderAfter),"number"==typeof t.flexStyle.cross&&(t.flexStyle.cross+=t.flexStyle.crossInnerBefore+t.flexStyle.crossInnerAfter+t.flexStyle.crossBorderBefore+t.flexStyle.crossBorderAfter))),t.mainAxis=n?"inline":"block",t.crossAxis=n?"block":"inline","number"==typeof t.style.flexBasis&&(t.flexStyle.main=t.style.flexBasis+t.flexStyle.mainInnerBefore+t.flexStyle.mainInnerAfter+t.flexStyle.mainBorderBefore+t.flexStyle.mainBorderAfter),t.flexStyle.mainOuter=t.flexStyle.main,t.flexStyle.crossOuter=t.flexStyle.cross,"auto"===t.flexStyle.mainOuter&&(t.flexStyle.mainOuter=t.flexStyle.mainOffset),"auto"===t.flexStyle.crossOuter&&(t.flexStyle.crossOuter=t.flexStyle.crossOffset),"number"==typeof t.flexStyle.mainBefore&&(t.flexStyle.mainOuter+=t.flexStyle.mainBefore),"number"==typeof t.flexStyle.mainAfter&&(t.flexStyle.mainOuter+=t.flexStyle.mainAfter),"number"==typeof t.flexStyle.crossBefore&&(t.flexStyle.crossOuter+=t.flexStyle.crossBefore),"number"==typeof t.flexStyle.crossAfter&&(t.flexStyle.crossOuter+=t.flexStyle.crossAfter)}},{}],4:[function(t,e,n){var i=t("../reduce");e.exports=function(t){if(t.mainSpace>0){var e=i(t.children,(function(t,e){return t+parseFloat(e.style.flexGrow)}),0);e>0&&(t.main=i(t.children,(function(n,i){return"auto"===i.flexStyle.main?i.flexStyle.main=i.flexStyle.mainOffset+parseFloat(i.style.flexGrow)/e*t.mainSpace:i.flexStyle.main+=parseFloat(i.style.flexGrow)/e*t.mainSpace,i.flexStyle.mainOuter=i.flexStyle.main+i.flexStyle.mainBefore+i.flexStyle.mainAfter,n+i.flexStyle.mainOuter}),0),t.mainSpace=0)}}},{"../reduce":12}],5:[function(t,e,n){var i=t("../reduce");e.exports=function(t){if(t.mainSpace<0){var e=i(t.children,(function(t,e){return t+parseFloat(e.style.flexShrink)}),0);e>0&&(t.main=i(t.children,(function(n,i){return i.flexStyle.main+=parseFloat(i.style.flexShrink)/e*t.mainSpace,i.flexStyle.mainOuter=i.flexStyle.main+i.flexStyle.mainBefore+i.flexStyle.mainAfter,n+i.flexStyle.mainOuter}),0),t.mainSpace=0)}}},{"../reduce":12}],6:[function(t,e,n){var i=t("../reduce");e.exports=function(t){var e;t.lines=[e={main:0,cross:0,children:[]}];for(var n,o=-1;n=t.children[++o];)"nowrap"===t.style.flexWrap||0===e.children.length||"auto"===t.flexStyle.main||t.flexStyle.main-t.flexStyle.mainInnerBefore-t.flexStyle.mainInnerAfter-t.flexStyle.mainBorderBefore-t.flexStyle.mainBorderAfter>=e.main+n.flexStyle.mainOuter?(e.main+=n.flexStyle.mainOuter,e.cross=Math.max(e.cross,n.flexStyle.crossOuter)):t.lines.push(e={main:n.flexStyle.mainOuter,cross:n.flexStyle.crossOuter,children:[]}),e.children.push(n);t.flexStyle.mainLines=i(t.lines,(function(t,e){return Math.max(t,e.main)}),0),t.flexStyle.crossLines=i(t.lines,(function(t,e){return t+e.cross}),0),"auto"===t.flexStyle.main&&(t.flexStyle.main=Math.max(t.flexStyle.mainOffset,t.flexStyle.mainLines+t.flexStyle.mainInnerBefore+t.flexStyle.mainInnerAfter+t.flexStyle.mainBorderBefore+t.flexStyle.mainBorderAfter)),"auto"===t.flexStyle.cross&&(t.flexStyle.cross=Math.max(t.flexStyle.crossOffset,t.flexStyle.crossLines+t.flexStyle.crossInnerBefore+t.flexStyle.crossInnerAfter+t.flexStyle.crossBorderBefore+t.flexStyle.crossBorderAfter)),t.flexStyle.crossSpace=t.flexStyle.cross-t.flexStyle.crossInnerBefore-t.flexStyle.crossInnerAfter-t.flexStyle.crossBorderBefore-t.flexStyle.crossBorderAfter-t.flexStyle.crossLines,t.flexStyle.mainOuter=t.flexStyle.main+t.flexStyle.mainBefore+t.flexStyle.mainAfter,t.flexStyle.crossOuter=t.flexStyle.cross+t.flexStyle.crossBefore+t.flexStyle.crossAfter}},{"../reduce":12}],7:[function(t,e,n){e.exports=function(e){for(var n,i=-1;n=e.children[++i];)t("./flex-direction")(n,e.style.flexDirection);t("./flex-direction")(e,e.style.flexDirection),t("./order")(e),t("./flexbox-lines")(e),t("./align-content")(e),i=-1;for(var o;o=e.lines[++i];)o.mainSpace=e.flexStyle.main-e.flexStyle.mainInnerBefore-e.flexStyle.mainInnerAfter-e.flexStyle.mainBorderBefore-e.flexStyle.mainBorderAfter-o.main,t("./flex-grow")(o),t("./flex-shrink")(o),t("./margin-main")(o),t("./margin-cross")(o),t("./justify-content")(o,e.style.justifyContent,e);t("./align-items")(e)}},{"./align-content":1,"./align-items":2,"./flex-direction":3,"./flex-grow":4,"./flex-shrink":5,"./flexbox-lines":6,"./justify-content":8,"./margin-cross":9,"./margin-main":10,"./order":11}],8:[function(t,e,n){e.exports=function(t,e,n){var i,o,r,s=n.flexStyle.mainInnerBefore,a=-1;if("flex-end"===e)for(i=t.mainSpace,i+=s;r=t.children[++a];)r.flexStyle.mainStart=i,i+=r.flexStyle.mainOuter;else if("center"===e)for(i=t.mainSpace/2,i+=s;r=t.children[++a];)r.flexStyle.mainStart=i,i+=r.flexStyle.mainOuter;else if("space-between"===e)for(o=t.mainSpace/(t.children.length-1),i=0,i+=s;r=t.children[++a];)r.flexStyle.mainStart=i,i+=r.flexStyle.mainOuter+o;else if("space-around"===e)for(i=(o=2*t.mainSpace/(2*t.children.length))/2,i+=s;r=t.children[++a];)r.flexStyle.mainStart=i,i+=r.flexStyle.mainOuter+o;else for(i=0,i+=s;r=t.children[++a];)r.flexStyle.mainStart=i,i+=r.flexStyle.mainOuter}},{}],9:[function(t,e,n){e.exports=function(t){for(var e,n=-1;e=t.children[++n];){var i=0;"auto"===e.flexStyle.crossBefore&&++i,"auto"===e.flexStyle.crossAfter&&++i;var o=t.cross-e.flexStyle.crossOuter;"auto"===e.flexStyle.crossBefore&&(e.flexStyle.crossBefore=o/i),"auto"===e.flexStyle.crossAfter&&(e.flexStyle.crossAfter=o/i),"auto"===e.flexStyle.cross?e.flexStyle.crossOuter=e.flexStyle.crossOffset+e.flexStyle.crossBefore+e.flexStyle.crossAfter:e.flexStyle.crossOuter=e.flexStyle.cross+e.flexStyle.crossBefore+e.flexStyle.crossAfter}}},{}],10:[function(t,e,n){e.exports=function(t){for(var e,n=0,i=-1;e=t.children[++i];)"auto"===e.flexStyle.mainBefore&&++n,"auto"===e.flexStyle.mainAfter&&++n;if(n>0){for(i=-1;e=t.children[++i];)"auto"===e.flexStyle.mainBefore&&(e.flexStyle.mainBefore=t.mainSpace/n),"auto"===e.flexStyle.mainAfter&&(e.flexStyle.mainAfter=t.mainSpace/n),"auto"===e.flexStyle.main?e.flexStyle.mainOuter=e.flexStyle.mainOffset+e.flexStyle.mainBefore+e.flexStyle.mainAfter:e.flexStyle.mainOuter=e.flexStyle.main+e.flexStyle.mainBefore+e.flexStyle.mainAfter;t.mainSpace=0}}},{}],11:[function(t,e,n){var i=/^(column|row)-reverse$/;e.exports=function(t){t.children.sort((function(t,e){return t.style.order-e.style.order||t.index-e.index})),i.test(t.style.flexDirection)&&t.children.reverse()}},{}],12:[function(t,e,n){e.exports=function(t,e,n){for(var i=t.length,o=-1;++o<i;)o in t&&(n=e(n,t[o],o));return n}},{}],13:[function(t,e,n){var i=t("./read"),o=t("./write"),r=t("./readAll"),s=t("./writeAll");e.exports=function(t){s(r(t))},e.exports.read=i,e.exports.write=o,e.exports.readAll=r,e.exports.writeAll=s},{"./read":15,"./readAll":16,"./write":17,"./writeAll":18}],14:[function(t,e,n){function i(t,e){r.style.cssText="border:none!important;clip:rect(0 0 0 0)!important;display:block!important;font-size:1em!important;height:0!important;margin:0!important;padding:0!important;position:relative!important;width:"+t+"!important",e.parentNode.insertBefore(r,e.nextSibling);var n=r.offsetWidth;return e.parentNode.removeChild(r),n}e.exports=function(t,e,n){var r=t[e],l=String(r).match(o);if(!l){var c=e.match(a);return c?"none"===t["border"+c[1]+"Style"]?0:s[r]||0:r}var u=l[1],f=l[2];return"px"===f?1*u:"cm"===f?.3937*u*96:"in"===f?96*u:"mm"===f?.3937*u*96/10:"pc"===f?12*u*96/72:"pt"===f?96*u/72:"rem"===f?16*u:i(r,n)};var o=/^([-+]?\d*\.?\d+)(%|[a-z]+)$/,r=document.createElement("div"),s={medium:4,none:0,thick:6,thin:2},a=/^border(Bottom|Left|Right|Top)Width$/},{}],15:[function(t,e,n){function i(t,e){for(var n;n=r.exec(e);){var i=n[1].toLowerCase().replace(/-[a-z]/g,(function(t){return t.slice(1).toUpperCase()}));t[i]=n[2]}}function o(t,e){for(var n in t)n in e&&!s.test(n)&&(t[n]=e[n])}e.exports=function(t){var e={alignContent:"stretch",alignItems:"stretch",alignSelf:"auto",borderBottomStyle:"none",borderBottomWidth:0,borderLeftStyle:"none",borderLeftWidth:0,borderRightStyle:"none",borderRightWidth:0,borderTopStyle:"none",borderTopWidth:0,boxSizing:"content-box",display:"inline",flexBasis:"auto",flexDirection:"row",flexGrow:0,flexShrink:1,flexWrap:"nowrap",justifyContent:"flex-start",height:"auto",marginTop:0,marginRight:0,marginLeft:0,marginBottom:0,paddingTop:0,paddingRight:0,paddingLeft:0,paddingBottom:0,maxHeight:"none",maxWidth:"none",minHeight:0,minWidth:0,order:0,position:"static",width:"auto"};if(t instanceof Element){var n=t.hasAttribute("data-style"),r=n?t.getAttribute("data-style"):t.getAttribute("style")||"";n||t.setAttribute("data-style",r),o(e,window.getComputedStyle&&getComputedStyle(t)||{});var s=t.currentStyle||{};for(var l in function(t,e){for(var n in t)if(n in e)t[n]=e[n];else{var i=n.replace(/[A-Z]/g,"-$&").toLowerCase();i in e&&(t[n]=e[i])}"-js-display"in e&&(t.display=e["-js-display"])}(e,s),i(e,r),e)e[l]=a(e,l,t);var c=t.getBoundingClientRect();e.offsetHeight=c.height||t.offsetHeight,e.offsetWidth=c.width||t.offsetWidth}return{element:t,style:e}};var r=/([^\s:;]+)\s*:\s*([^;]+?)\s*(;|$)/g,s=/^(alignSelf|height|width)$/,a=t("./getComputedLength")},{"./getComputedLength":14}],16:[function(t,e,n){function i(t){var e=t instanceof Element,n=e&&t.getAttribute("data-style"),i=e&&t.currentStyle&&t.currentStyle["-js-display"];return r.test(n)||s.test(i)}e.exports=function(t){var e=[];return function t(e,n){for(var r,s=i(e),a=[],l=-1;r=e.childNodes[++l];){var c=3===r.nodeType&&!/^\s*$/.test(r.nodeValue);if(s&&c){var u=r;(r=e.insertBefore(document.createElement("flex-item"),u)).appendChild(u)}if(r instanceof Element){var f=t(r,n);if(s){var d=r.style;d.display="inline-block",d.position="absolute",f.style=o(r).style,a.push(f)}}}var p={element:e,children:a};return s&&(p.style=o(e).style,n.push(p)),p}(t,e),e};var o=t("../read"),r=/(^|;)\s*display\s*:\s*(inline-)?flex\s*(;|$)/i,s=/^(inline-)?flex$/i},{"../read":15}],17:[function(t,e,n){function i(t){return"string"==typeof t?t:Math.max(t,0)+"px"}e.exports=function(t){o(t);var e=t.element.style,n="inline"===t.mainAxis?["main","cross"]:["cross","main"];e.boxSizing="content-box",e.display="block",e.position="relative",e.width=i(t.flexStyle[n[0]]-t.flexStyle[n[0]+"InnerBefore"]-t.flexStyle[n[0]+"InnerAfter"]-t.flexStyle[n[0]+"BorderBefore"]-t.flexStyle[n[0]+"BorderAfter"]),e.height=i(t.flexStyle[n[1]]-t.flexStyle[n[1]+"InnerBefore"]-t.flexStyle[n[1]+"InnerAfter"]-t.flexStyle[n[1]+"BorderBefore"]-t.flexStyle[n[1]+"BorderAfter"]);for(var r,s=-1;r=t.children[++s];){var a=r.element.style,l="inline"===r.mainAxis?["main","cross"]:["cross","main"];a.boxSizing="content-box",a.display="block",a.position="absolute","auto"!==r.flexStyle[l[0]]&&(a.width=i(r.flexStyle[l[0]]-r.flexStyle[l[0]+"InnerBefore"]-r.flexStyle[l[0]+"InnerAfter"]-r.flexStyle[l[0]+"BorderBefore"]-r.flexStyle[l[0]+"BorderAfter"])),"auto"!==r.flexStyle[l[1]]&&(a.height=i(r.flexStyle[l[1]]-r.flexStyle[l[1]+"InnerBefore"]-r.flexStyle[l[1]+"InnerAfter"]-r.flexStyle[l[1]+"BorderBefore"]-r.flexStyle[l[1]+"BorderAfter"])),a.top=i(r.flexStyle[l[1]+"Start"]),a.left=i(r.flexStyle[l[0]+"Start"]),a.marginTop=i(r.flexStyle[l[1]+"Before"]),a.marginRight=i(r.flexStyle[l[0]+"After"]),a.marginBottom=i(r.flexStyle[l[1]+"After"]),a.marginLeft=i(r.flexStyle[l[0]+"Before"])}};var o=t("../flexbox")},{"../flexbox":7}],18:[function(t,e,n){e.exports=function(t){for(var e,n=-1;e=t[++n];)i(e)};var i=t("../write")},{"../write":17}]},{},[13])(13)},"object"==a(e)&&void 0!==t?t.exports=s():(o=[],void 0===(r="function"==typeof(i=s)?i.apply(e,o):i)||(t.exports=r))},function(t,e,n){"use strict";var i,o,r;"function"==typeof Symbol&&Symbol.iterator;o=[n(3)],void 0===(r="function"==typeof(i=function(t){var e=0;t.fn.TouchSpin=function(n){var i={min:0,max:100,initval:"",replacementval:"",step:1,decimals:0,stepinterval:100,forcestepdivisibility:"round",stepintervaldelay:500,verticalbuttons:!1,verticalup:"+",verticaldown:"-",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:"-",buttonup_txt:"+",callback_before_calculation:function(t){return t},callback_after_calculation:function(t){return t}},o={min:"min",max:"max",initval:"init-val",replacementval:"replacement-val",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 r,s,a,l,c,u,f,d,p,h,m,g,v,y,b,_=t(this),w=_.data(),S=0,x=!1;function E(){""===r.prefix&&(s=c.prefix.detach()),""===r.postfix&&(a=c.postfix.detach())}function C(){var t,e,n;""!==(t=r.callback_before_calculation(_.val()))?r.decimals>0&&"."===t||(e=parseFloat(t),isNaN(e)&&(e=""!==r.replacementval?r.replacementval:0),n=e,e.toString()!==t&&(n=e),null!==r.min&&e<r.min&&(n=r.min),null!==r.max&&e>r.max&&(n=r.max),n=function(t){switch(r.forcestepdivisibility){case"round":return(Math.round(t/r.step)*r.step).toFixed(r.decimals);case"floor":return(Math.floor(t/r.step)*r.step).toFixed(r.decimals);case"ceil":return(Math.ceil(t/r.step)*r.step).toFixed(r.decimals);default:return t}}(n),Number(t).toString()!==n.toString()&&(_.val(n),_.trigger("change"))):""!==r.replacementval&&(_.val(r.replacementval),_.trigger("change"))}function T(){if(r.booster){var t=Math.pow(2,Math.floor(S/r.boostat))*r.step;return r.maxboostedstep&&t>r.maxboostedstep&&(t=r.maxboostedstep,u=Math.round(u/t)*t),Math.max(r.step,t)}return r.step}function A(){C(),u=parseFloat(r.callback_before_calculation(c.input.val())),isNaN(u)&&(u=0);var t=u,e=T();u+=e,null!==r.max&&u>r.max&&(u=r.max,_.trigger("touchspin.on.max"),D()),c.input.val(r.callback_after_calculation(Number(u).toFixed(r.decimals))),t!==u&&_.trigger("change")}function I(){C(),u=parseFloat(r.callback_before_calculation(c.input.val())),isNaN(u)&&(u=0);var t=u,e=T();u-=e,null!==r.min&&u<r.min&&(u=r.min,_.trigger("touchspin.on.min"),D()),c.input.val(r.callback_after_calculation(Number(u).toFixed(r.decimals))),t!==u&&_.trigger("change")}function O(){D(),S=0,x="down",_.trigger("touchspin.on.startspin"),_.trigger("touchspin.on.startdownspin"),p=setTimeout((function(){f=setInterval((function(){S++,I()}),r.stepinterval)}),r.stepintervaldelay)}function k(){D(),S=0,x="up",_.trigger("touchspin.on.startspin"),_.trigger("touchspin.on.startupspin"),h=setTimeout((function(){d=setInterval((function(){S++,A()}),r.stepinterval)}),r.stepintervaldelay)}function D(){switch(clearTimeout(p),clearTimeout(h),clearInterval(f),clearInterval(d),x){case"up":_.trigger("touchspin.on.stopupspin"),_.trigger("touchspin.on.stopspin");break;case"down":_.trigger("touchspin.on.stopdownspin"),_.trigger("touchspin.on.stopspin")}S=0,x=!1}_.data("alreadyinitialized")||(_.data("alreadyinitialized",!0),e+=1,_.data("spinnerid",e),_.is("input")&&(""!==(r=t.extend({},i,w,(b={},t.each(o,(function(t,e){var n="bts-"+e;_.is("[data-"+n+"]")&&(b[t]=_.data(n))})),b),n)).initval&&""===_.val()&&_.val(r.initval),C(),v=_.val(),y=_.parent(),""!==v&&(v=r.callback_after_calculation(Number(v).toFixed(r.decimals))),_.data("initvalue",v).val(v),_.addClass("form-control"),y.hasClass("input-group")?function(e){e.addClass("bootstrap-touchspin");var n,i,o=_.prev(),s=_.next(),a='<span class="input-group-addon input-group-prepend bootstrap-touchspin-prefix input-group-prepend bootstrap-touchspin-injected"><span class="input-group-text">'+r.prefix+"</span></span>",c='<span class="input-group-addon input-group-append bootstrap-touchspin-postfix input-group-append bootstrap-touchspin-injected"><span class="input-group-text">'+r.postfix+"</span></span>";o.hasClass("input-group-btn")||o.hasClass("input-group-prepend")?(n='<button class="'+r.buttondown_class+' bootstrap-touchspin-down bootstrap-touchspin-injected" type="button">'+r.buttondown_txt+"</button>",o.append(n)):(n='<span class="input-group-btn input-group-prepend bootstrap-touchspin-injected"><button class="'+r.buttondown_class+' bootstrap-touchspin-down" type="button">'+r.buttondown_txt+"</button></span>",t(n).insertBefore(_)),s.hasClass("input-group-btn")||s.hasClass("input-group-append")?(i='<button class="'+r.buttonup_class+' bootstrap-touchspin-up bootstrap-touchspin-injected" type="button">'+r.buttonup_txt+"</button>",s.prepend(i)):(i='<span class="input-group-btn input-group-append bootstrap-touchspin-injected"><button class="'+r.buttonup_class+' bootstrap-touchspin-up" type="button">'+r.buttonup_txt+"</button></span>",t(i).insertAfter(_)),t(a).insertBefore(_),t(c).insertAfter(_),l=e}(y):(g="",_.hasClass("input-sm")&&(g="input-group-sm"),_.hasClass("input-lg")&&(g="input-group-lg"),m=r.verticalbuttons?'<div class="input-group '+g+' bootstrap-touchspin bootstrap-touchspin-injected"><span class="input-group-addon input-group-prepend bootstrap-touchspin-prefix"><span class="input-group-text">'+r.prefix+'</span></span><span class="input-group-addon bootstrap-touchspin-postfix input-group-append"><span class="input-group-text">'+r.postfix+'</span></span><span class="input-group-btn-vertical"><a href="https://wyczarujprezent.pl/koszyk" class="'+r.buttondown_class+" bootstrap-touchspin-up "+r.verticalupclass+'" type="button">'+r.verticalup+'</a><a href="https://wyczarujprezent.pl/koszyk" class="'+r.buttonup_class+" bootstrap-touchspin-down "+r.verticaldownclass+'" type="button">'+r.verticaldown+"</a></span></div>":'<div class="input-group bootstrap-touchspin bootstrap-touchspin-injected"><span class="input-group-btn input-group-prepend"><button class="'+r.buttondown_class+' bootstrap-touchspin-down" type="button">'+r.buttondown_txt+'</button></span><span class="input-group-addon bootstrap-touchspin-prefix input-group-prepend"><span class="input-group-text">'+r.prefix+'</span></span><span class="input-group-addon bootstrap-touchspin-postfix input-group-append"><span class="input-group-text">'+r.postfix+'</span></span><span class="input-group-btn input-group-append"><button class="'+r.buttonup_class+' bootstrap-touchspin-up" type="button">'+r.buttonup_txt+"</button></span></div>",l=t(m).insertBefore(_),t(".bootstrap-touchspin-prefix",l).after(_),_.hasClass("input-sm")?l.addClass("input-group-sm"):_.hasClass("input-lg")&&l.addClass("input-group-lg")),c={down:t(".bootstrap-touchspin-down",l),up:t(".bootstrap-touchspin-up",l),input:t("input",l),prefix:t(".bootstrap-touchspin-prefix",l).addClass(r.prefix_extraclass),postfix:t(".bootstrap-touchspin-postfix",l).addClass(r.postfix_extraclass)},E(),_.on("keydown.touchspin",(function(t){var e=t.keyCode||t.which;38===e?("up"!==x&&(A(),k()),t.preventDefault()):40===e&&("down"!==x&&(I(),O()),t.preventDefault())})),_.on("keyup.touchspin",(function(t){var e=t.keyCode||t.which;38===e?D():40===e&&D()})),_.on("blur.touchspin",(function(){C(),_.val(r.callback_after_calculation(_.val()))})),c.down.on("keydown",(function(t){var e=t.keyCode||t.which;32!==e&&13!==e||("down"!==x&&(I(),O()),t.preventDefault())})),c.down.on("keyup.touchspin",(function(t){var e=t.keyCode||t.which;32!==e&&13!==e||D()})),c.up.on("keydown.touchspin",(function(t){var e=t.keyCode||t.which;32!==e&&13!==e||("up"!==x&&(A(),k()),t.preventDefault())})),c.up.on("keyup.touchspin",(function(t){var e=t.keyCode||t.which;32!==e&&13!==e||D()})),c.down.on("mousedown.touchspin",(function(t){c.down.off("touchstart.touchspin"),_.is(":disabled")||(I(),O(),t.preventDefault(),t.stopPropagation())})),c.down.on("touchstart.touchspin",(function(t){c.down.off("mousedown.touchspin"),_.is(":disabled")||(I(),O(),t.preventDefault(),t.stopPropagation())})),c.up.on("mousedown.touchspin",(function(t){c.up.off("touchstart.touchspin"),_.is(":disabled")||(A(),k(),t.preventDefault(),t.stopPropagation())})),c.up.on("touchstart.touchspin",(function(t){c.up.off("mousedown.touchspin"),_.is(":disabled")||(A(),k(),t.preventDefault(),t.stopPropagation())})),c.up.on("mouseup.touchspin mouseout.touchspin touchleave.touchspin touchend.touchspin touchcancel.touchspin",(function(t){x&&(t.stopPropagation(),D())})),c.down.on("mouseup.touchspin mouseout.touchspin touchleave.touchspin touchend.touchspin touchcancel.touchspin",(function(t){x&&(t.stopPropagation(),D())})),c.down.on("mousemove.touchspin touchmove.touchspin",(function(t){x&&(t.stopPropagation(),t.preventDefault())})),c.up.on("mousemove.touchspin touchmove.touchspin",(function(t){x&&(t.stopPropagation(),t.preventDefault())})),_.on("mousewheel.touchspin DOMMouseScroll.touchspin",(function(t){if(r.mousewheel&&_.is(":focus")){var e=t.originalEvent.wheelDelta||-t.originalEvent.deltaY||-t.originalEvent.detail;t.stopPropagation(),t.preventDefault(),e<0?I():A()}})),_.on("touchspin.destroy",(function(){var e;e=_.parent(),D(),_.off(".touchspin"),e.hasClass("bootstrap-touchspin-injected")?(_.siblings().remove(),_.unwrap()):(t(".bootstrap-touchspin-injected",e).remove(),e.removeClass("bootstrap-touchspin")),_.data("alreadyinitialized",!1)})),_.on("touchspin.uponce",(function(){D(),A()})),_.on("touchspin.downonce",(function(){D(),I()})),_.on("touchspin.startupspin",(function(){k()})),_.on("touchspin.startdownspin",(function(){O()})),_.on("touchspin.stopspin",(function(){D()})),_.on("touchspin.updatesettings",(function(e,n){!function(e){(function(e){r=t.extend({},r,e),e.postfix&&(0===_.parent().find(".bootstrap-touchspin-postfix").length&&a.insertAfter(_),_.parent().find(".bootstrap-touchspin-postfix .input-group-text").text(e.postfix)),e.prefix&&(0===_.parent().find(".bootstrap-touchspin-prefix").length&&s.insertBefore(_),_.parent().find(".bootstrap-touchspin-prefix .input-group-text").text(e.prefix)),E()})(e),C();var n=c.input.val();""!==n&&(n=Number(r.callback_before_calculation(c.input.val())),c.input.val(r.callback_after_calculation(Number(n).toFixed(r.decimals))))}(n)}))))}))}})?i.apply(e,o):i)||(t.exports=r)},function(t,e,n){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(t,e,n,o){var r=function(){return this.init.apply(this,arguments)};r.prototype={defaults:{onstatechange:function(){},ondragend:function(){},onbarclicked:function(){},isRange:!1,showLabels:!0,showScale:!0,step:1,format:"%s",theme:"theme-green",width:300,disable:!1,snap:!1},template:'<div class="slider-container">\t\t\t<div class="back-bar"> <div class="selected-bar"></div> <div class="pointer low"></div><div class="pointer-label low">123456</div> <div class="pointer high"></div><div class="pointer-label high">456789</div> <div class="clickable-dummy"></div> </div> <div class="scale"></div>\t\t</div>',init:function(e,n){this.options=t.extend({},this.defaults,n),this.inputNode=t(e),this.options.value=this.inputNode.val()||(this.options.isRange?this.options.from+","+this.options.from:this.options.from),this.domNode=t(this.template),this.domNode.addClass(this.options.theme),this.inputNode.after(this.domNode),this.domNode.on("change",this.onChange),this.pointers=t(".pointer",this.domNode),this.lowPointer=this.pointers.first(),this.highPointer=this.pointers.last(),this.labels=t(".pointer-label",this.domNode),this.lowLabel=this.labels.first(),this.highLabel=this.labels.last(),this.scale=t(".scale",this.domNode),this.bar=t(".selected-bar",this.domNode),this.clickableBar=this.domNode.find(".clickable-dummy"),this.interval=this.options.to-this.options.from,this.render()},render:function(){return 0!==this.inputNode.width()||this.options.width?(this.options.width=this.options.width||this.inputNode.width(),this.domNode.width(this.options.width),this.inputNode.hide(),this.isSingle()&&(this.lowPointer.hide(),this.lowLabel.hide()),this.options.showLabels||this.labels.hide(),this.attachEvents(),this.options.showScale&&this.renderScale(),void this.setValue(this.options.value)):void 0},isSingle:function(){return"number"==typeof this.options.value||-1===this.options.value.indexOf(",")&&!this.options.isRange},attachEvents:function(){this.clickableBar.click(t.proxy(this.barClicked,this)),this.pointers.on("mousedown touchstart",t.proxy(this.onDragStart,this)),this.pointers.bind("dragstart",(function(t){t.preventDefault()}))},onDragStart:function(e){if(!(this.options.disable||"mousedown"===e.type&&1!==e.which)){e.stopPropagation(),e.preventDefault();var i=t(e.target);this.pointers.removeClass("last-active"),i.addClass("focused last-active"),this[(i.hasClass("low")?"low":"high")+"Label"].addClass("focused"),t(n).on("mousemove.slider touchmove.slider",t.proxy(this.onDrag,this,i)),t(n).on("mouseup.slider touchend.slider touchcancel.slider",t.proxy(this.onDragEnd,this))}},onDrag:function(t,e){e.stopPropagation(),e.preventDefault(),e.originalEvent.touches&&e.originalEvent.touches.length?e=e.originalEvent.touches[0]:e.originalEvent.changedTouches&&e.originalEvent.changedTouches.length&&(e=e.originalEvent.changedTouches[0]);var n=e.clientX-this.domNode.offset().left;this.domNode.trigger("change",[this,t,n])},onDragEnd:function(e){this.pointers.removeClass("focused").trigger("rangeslideend"),this.labels.removeClass("focused"),t(n).off(".slider"),this.options.ondragend.call(this,this.options.value)},barClicked:function(t){if(!this.options.disable){var e=t.pageX-this.clickableBar.offset().left;if(this.isSingle())this.setPosition(this.pointers.last(),e,!0,!0);else{var n,i=Math.abs(parseFloat(this.pointers.first().css("left"),10)),o=this.pointers.first().width()/2,r=Math.abs(parseFloat(this.pointers.last().css("left"),10)),s=this.pointers.first().width()/2,a=Math.abs(i-e+o),l=Math.abs(r-e+s);n=a==l?i>e?this.pointers.first():this.pointers.last():l>a?this.pointers.first():this.pointers.last(),this.setPosition(n,e,!0,!0),this.options.onbarclicked.call(this,this.options.value)}}},onChange:function(t,e,n,i){var o,r;o=0,r=e.domNode.width(),e.isSingle()||(o=n.hasClass("high")?parseFloat(e.lowPointer.css("left"))+e.lowPointer.width()/2:0,r=n.hasClass("low")?parseFloat(e.highPointer.css("left"))+e.highPointer.width()/2:e.domNode.width());var s=Math.min(Math.max(i,o),r);e.setPosition(n,s,!0)},setPosition:function(t,e,n,i){var o,r=parseFloat(this.lowPointer.css("left")),s=parseFloat(this.highPointer.css("left"))||0,a=this.highPointer.width()/2;if(n||(e=this.prcToPx(e)),this.options.snap){var l=this.correctPositionForSnap(e);if(-1===l)return;e=l}t[0]===this.highPointer[0]?s=Math.round(e-a):r=Math.round(e-a),t[i?"animate":"css"]({left:Math.round(e-a)}),this.isSingle()?o=0:o=r+a;var c=Math.round(s+a-o);this.bar[i?"animate":"css"]({width:Math.abs(c),left:c>0?o:o+c}),this.showPointerValue(t,e,i),this.isReadonly()},correctPositionForSnap:function(t){var e=this.positionToValue(t)-this.options.from,n=this.options.width/(this.interval/this.options.step),i=e/this.options.step*n;return i+n/2>=t&&t>=i-n/2?i:-1},setValue:function(t){var e=t.toString().split(",");e[0]=Math.min(Math.max(e[0],this.options.from),this.options.to)+"",e.length>1&&(e[1]=Math.min(Math.max(e[1],this.options.from),this.options.to)+""),this.options.value=t;var n=this.valuesToPrc(2===e.length?e:[0,e[0]]);this.isSingle()?this.setPosition(this.highPointer,n[1]):(this.setPosition(this.lowPointer,n[0]),this.setPosition(this.highPointer,n[1]))},renderScale:function(){for(var e=this.options.scale||[this.options.from,this.options.to],n=Math.round(100/(e.length-1)*10)/10,i="",o=0;o<e.length;o++)i+='<span style="left: '+o*n+'%">'+("|"!=e[o]?"<ins>"+e[o]+"</ins>":"")+"</span>";this.scale.html(i),t("ins",this.scale).each((function(){t(this).css({marginLeft:-t(this).outerWidth()/2})}))},getBarWidth:function(){var t=this.options.value.split(",");return t.length>1?parseFloat(t[1])-parseFloat(t[0]):parseFloat(t[0])},showPointerValue:function(e,n,i){var o,r=t(".pointer-label",this.domNode)[e.hasClass("low")?"first":"last"](),s=this.positionToValue(n);if(t.isFunction(this.options.format)){var a=this.isSingle()?void 0:e.hasClass("low")?"low":"high";o=this.options.format(s,a)}else o=this.options.format.replace("%s",s);var l=r.html(o).width(),c=n-l/2;c=Math.min(Math.max(c,0),this.options.width-l),r[i?"animate":"css"]({left:c}),this.setInputValue(e,s)},valuesToPrc:function(t){return[100*(parseFloat(t[0])-parseFloat(this.options.from))/this.interval,100*(parseFloat(t[1])-parseFloat(this.options.from))/this.interval]},prcToPx:function(t){return this.domNode.width()*t/100},isDecimal:function(){return-1!==(this.options.value+this.options.from+this.options.to).indexOf(".")},positionToValue:function(t){var e=t/this.domNode.width()*this.interval;if(e=parseFloat(e,10)+parseFloat(this.options.from,10),this.isDecimal()){var n=Math.round(Math.round(e/this.options.step)*this.options.step*100)/100;if(0!==n)for(-1===(n=""+n).indexOf(".")&&(n+=".");n.length-n.indexOf(".")<3;)n+="0";else n="0.00";return n}return Math.round(e/this.options.step)*this.options.step},setInputValue:function(t,e){if(this.isSingle())this.options.value=e.toString();else{var n=this.options.value.split(",");t.hasClass("low")?this.options.value=e+","+n[1]:this.options.value=n[0]+","+e}this.inputNode.val()!==this.options.value&&(this.inputNode.val(this.options.value).trigger("change"),this.options.onstatechange.call(this,this.options.value))},getValue:function(){return this.options.value},getOptions:function(){return this.options},getRange:function(){return this.options.from+","+this.options.to},isReadonly:function(){this.domNode.toggleClass("slider-readonly",this.options.disable)},disable:function(){this.options.disable=!0,this.isReadonly()},enable:function(){this.options.disable=!1,this.isReadonly()},toggleDisable:function(){this.options.disable=!this.options.disable,this.isReadonly()},updateRange:function(t,e){var n=t.toString().split(",");this.interval=parseInt(n[1])-parseInt(n[0]),e?this.setValue(e):this.setValue(this.getValue())}};var s="jRange";t.fn[s]=function(n){var o,a=arguments;return this.each((function(){var l=t(this),c=t.data(this,"plugin_"+s),u="object"==(void 0===n?"undefined":i(n))&&n;c||(l.data("plugin_"+s,c=new r(this,u)),t(e).resize((function(){c.setValue(c.getValue())}))),"string"==typeof n&&(o=c[n].apply(c,Array.prototype.slice.call(a,1)))})),o||this}}(jQuery,window,document)},function(t,e,n){"use strict";!function(t,e,n){var i=function(i,o){var r,s=0,a=0,l="",c=0,u=!1,f=!1,d=!1,p=!1,h=!1,m=!1,g=0,v=0,y=0,b=0,_=0,w=0,S=0,x=t(),E=0,C=0,T=t('<div style="margin-top:0;margin-bottom:0; padding:0"></div>'),A=t(),I={top:0,bottom:0,custom:[]},O={scrollHide:!1,lazyHeight:0,topMargin:"auto",keepInWrapper:!1,wrapperSelector:"",zIndex:99,syncPosition:!1,namespaceClass:"stuckElement",fixedClass:"isStuck",disableOn:function(){return!0}},k=function(){T.remove(),x.removeClass(O.fixedClass).css({maxWidth:"",marginTop:"",marginLeft:"",marginRight:"",position:"",top:"",left:"",right:"",bottom:"",width:""}),u=!1,f=!1,d=!1,O.syncPosition&&B()},D=function(t){x.before(T.css("height",v));var e=T.offsetParent();if(t){x.css({position:"absolute"});var n=A.offset().top+A.outerHeight()-e.offset().top-y-parseInt(A.css("paddingBottom"))}x.css({position:"absolute",marginTop:E,bottom:"",left:T.position().left,top:t?n:x.offset().top-e.offset().top-E})},N=function(){u=!0,x.before(T.css("height",v)),x.addClass(O.fixedClass);var t=-C;x.css({marginTop:E,position:"fixed",top:t+"px",left:"",right:"",bottom:""})},P=function(){r=T.offset().left,x.offset().left,x.offset({left:r})},B=function(){T.css({"margin-left":x.css("margin-left"),"margin-right":x.css("margin-left")}),x.css({"margin-left":T.css("margin-left"),"margin-right":T.css("margin-right")})},j=function(i){if(O.disableOn()){if(p&&(p=!1),!O.keepInWrapper||A.is(":visible")){if(a=t(i.target).scrollTop(),l=a>=s?"down":"up",c=Math.abs(s-a),b=t(e).outerHeight(),_=a+b,s=a,w=x.offset().top,g=parseInt(x.outerHeight()+E)+parseInt(x.css("marginBottom")),u||d||f||(v=parseInt(x.outerHeight(!0)),I.top=f||d?parseInt(T.offset().top):parseInt(x.offset().top),r=parseInt(x.offset().left)+5),y=parseInt(x.outerHeight())+parseInt(x.css("margin-bottom"))+E,O.keepInWrapper?I.bottom=A.offset().top+A.outerHeight()-parseInt(A.css("paddingBottom")):I.bottom=t(n).outerHeight(),S=x.offset().top+y,g>b)m=!0,h&&(C=0,d&&D(),h=!1),d&&"up"===l&&a<=w-E&&(N(),u=!0,f=!1,d=!1),!u&&!f&&(!O.keepInWrapper||O.keepInWrapper&&_<=I.bottom)&&_>=S-E&&(!function(){x.before(T.css("height",v)),x.addClass(O.fixedClass);var t=-C;x.css({marginTop:E,position:"fixed",top:"",left:"",right:"",bottom:t})}(),f=!0,u=!0,d=!1),(!d&&u&&f&&"up"===l||!d&&u&&!f&&"down"===l&&S>=_)&&(D(),u=!1,f=!1,d=!0),_>=I.bottom&&O.keepInWrapper&&(!f&&!d||parseInt(S-E)!==parseInt(I.bottom))&&(D(!0),u=!1,f=!0,d=!0);else if(h=!0,m&&(d&&D(),m=!1),C=O.scrollHide?g+O.lazyHeight:O.lazyHeight,(!u&&!f&&a>=I.top-E+C||f&&d&&a<=w-E+C)&&(N(),u=!0,f=!1,d=!1),O.keepInWrapper&&parseInt(S-E)!==parseInt(I.bottom)&&a>=I.bottom-y+C&&(D(!0),u=!1,f=!0,d=!0),u){var o=parseInt(x.css("top"));if("up"===l&&0!==o){var B=c>-o?0:o+c;x.css("top",B+"px")}else if("down"===l&&o>-C){B=c>C+o?-C:o-c;x.css("top",B+"px")}}(u||d||f)&&a<=I.top-E&&k(),(u||d||f)&&T.width()!==x.outerWidth()&&x.outerWidth(T.outerWidth()),(O.syncPosition&&u||d)&&P()}}else p||(k(),p=!0)},L=function(t){d&&(D(),f=!1),j(t)};(function(i,o){(x=t(i)).addClass(O.namespaceClass),o&&t.extend(!0,O,o),E=null!==O.topMargin?"auto"===O.topMargin?parseInt(x.css("marginTop")):isNaN(O.topMargin)&&O.topMargin.search("px")>0?parseInt(O.topMargin.replace("px","")):isNaN(parseInt(O.topMargin))?0:parseInt(O.topMargin):0,O.lazyHeight&&(E+=O.lazyHeight),O.keepInWrapper?(""!==O.wrapperSelector&&(A=x.closest(O.wrapperSelector)),A.length||(A=x.parent())):A=t("body"),O.zIndex&&x.css("z-index",O.zIndex),P&&B(),t(e).on("scroll.stickUp",j),t(e).on("resize.stickUp",L),j({target:n})}).call(this,i,o)};t.fn.stickUp=function(t){return this.each((function(){new i(this,t)}))}}(jQuery,window,document)},function(t,e,n){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(t){function e(e,n){var i,o,r=this;r.btnClass=".material-scrolltop",r.revealClass="reveal",r.btnElement=t(r.btnClass),r.initial={revealElement:"body",revealPosition:"top",padding:0,duration:600,easing:"swing",onScrollEnd:!1},r.options=t.extend({},r.initial,n),r.revealElement=t(r.options.revealElement),i="bottom"!==r.options.revealPosition?r.revealElement.offset().top:r.revealElement.offset().top+r.revealElement.height(),o=e.offsetTop+r.options.padding,t(document).scroll((function(){i<t(document).scrollTop()?r.btnElement.addClass(r.revealClass):r.btnElement.removeClass(r.revealClass)})),r.btnElement.click((function(){var e=!0;return t("html, body").animate({scrollTop:o},r.options.duration,r.options.easing,(function(){if(e){e=!1;var t=r.options.onScrollEnd;"function"==typeof t&&t()}})),!1}))}t.fn.materialScrollTop=function(){var t=this,n=arguments[0],o=(t.length,0);return"object"!=(void 0===n?"undefined":i(n))&&void 0!==n||(t[o].materialScrollTop=new e(t[o],n)),t}}(jQuery)},function(t,e,n){"use strict";$(document).ready((function(){1===$("body#checkout").length&&($(".js-terms a").on("click",(function(t){t.preventDefault();var e=$(t.target).attr("href");e&&(e+="?content_only=1",$.get(e,(function(t){$("#modal").find(".js-modal-content").html($(t).find(".page-cms").contents())})).fail((function(t){prestashop.emit("handleError",{eventType:"clickTerms",resp:t})}))),$("#modal").modal("show")})),$(".js-gift-checkbox").on("click",(function(t){$("#gift").collapse("toggle")}))),prestashop.on("updatedDeliveryForm",(function(t){if(void 0!==t.deliveryOption&&0!==t.deliveryOption.length){var e=$("input[id^='delivery_option_']:checked");e.closest(".delivery-options").find(".delivery-option-item").removeClass("current"),e.parents(".delivery-option-item").addClass("current"),$(".carrier-extra-content").hide(),t.deliveryOption.next(".carrier-extra-content").slideDown()}}))}))},function(t,e,n){"use strict";$(document).ready((function(){$(".js-file-input").on("change",(function(t){var e,n=void 0;(e=$(t.currentTarget)[0])&&(n=e.files[0])&&$(e).prev().find(".js-file-name").text(n.name)}))})),$(document).ready((function(){$("body#order-detail")&&$("#order-return-form table thead input[type=checkbox]").on("click",(function(){var t=$(this).prop("checked");$("#order-return-form table tbody input[type=checkbox]").each((function(e,n){$(n).prop("checked",t)}))}))}))},function(t,e,n){"use strict";var i,o=n(3),r=(i=o)&&i.__esModule?i:{default:i};function s(t,e){t&&"undefined"!=t&&((0,r.default)("#grid-list-buttons a").removeClass("active"),(0,r.default)("#"+t).addClass("active"),e?(0,r.default)("#products-wrapper").fadeTo("fast",0,(function(){(0,r.default)(this).attr("class",t)})).fadeTo("fast",1):(0,r.default)("#products-wrapper").attr("class",t),localStorage.productViewType=t)}function a(){var t=(0,r.default)("#price-slider"),e=(0,r.default)("#search_filters_wrapper");e.hasClass("is-default-filter")?(localStorage.productPriceMin=t.data("slidermin"),localStorage.productPriceMax=t.data("slidermax"),e.removeClass("is-default-filter")):!e.hasClass("is-default-filter")&&t.hasClass("active")?t.attr("value",localStorage.productPriceRange):(localStorage.productPriceMin=t.data("slidermin"),localStorage.productPriceMax=t.data("slidermax")),setTimeout((function(){t.jRange({from:localStorage.productPriceMin,to:localStorage.productPriceMax,step:1,theme:"theme-pink",format:t.data("format"),width:e.find(".facet:visible").length?e.find(".facet:first").outerWidth()-8:200,showLabels:!0,showScale:!1,isRange:!1,onstatechange:function(e){(0,r.default)("#price-slider-label span").html(t.attr("value").replace(","," - "))},ondragend:function(t){l(t)},onbarclicked:function(t){l(t)}})}),500),(0,r.default)(window).resize((function(){(0,r.default)("#price-slider + .slider-container:visible").width((0,r.default)("#search_filters_wrapper .facet:first").outerWidth()-8)}))}function l(t){localStorage.productPriceRange=t;var e=(0,r.default)("#price-slider-link").attr("data-currency"),n=t.replace(",","-"),i=(0,r.default)("#price-slider-link").attr("href").replace(e,"%temp"),o=i.match(/%temp(\S+)/i)[0],s=i.replace(o,e+"-"+n);(0,r.default)("#price-slider-link").attr("href",s),setTimeout((function(){(0,r.default)("#price-slider-link").click()}),1e3)}(0,r.default)(document).ready((function(){s(localStorage.productViewType,!1),(0,r.default)("#grid-list-buttons a").on("click",(function(t){t.preventDefault(),s((0,r.default)(this).attr("id"),!0)}));var t=function(t){if(void 0!==t.target.dataset.searchUrl)return t.target.dataset.searchUrl;if(void 0===(0,r.default)(t.target).parent()[0].dataset.searchUrl)throw new Error("Can not parse search URL");return(0,r.default)(t.target).parent()[0].dataset.searchUrl};(0,r.default)("body").on("change","#search_filters input[data-search-url]",(function(e){(0,r.default)("#products-wrapper").fadeTo("fast",0),prestashop.emit("updateFacets",t(e))})),(0,r.default)("body").on("click",".js-search-filters-clear-all",(function(e){(0,r.default)("#products-wrapper").fadeTo("fast",0),prestashop.emit("updateFacets",t(e))})),(0,r.default)("body").on("click",".js-search-link",(function(t){t.preventDefault(),(0,r.default)("#products-wrapper").fadeTo("fast",0),prestashop.emit("updateFacets",(0,r.default)(t.target).closest("a").get(0).href)})),(0,r.default)("body").on("change","#search_filters select",(function(t){(0,r.default)("#products-wrapper").fadeTo("fast",0);var e=(0,r.default)(t.target).closest("form");prestashop.emit("updateFacets","?"+e.serialize())})),prestashop.on("updateProductList",(function(t){!function(t){(0,r.default)("#search_filters").replaceWith(t.rendered_facets),(0,r.default)("#js-active-search-filters").replaceWith(t.rendered_active_filters),(0,r.default)("#js-product-list-top").replaceWith(t.rendered_products_top),(0,r.default)("#js-product-list").replaceWith(t.rendered_products),(0,r.default)("#js-product-list-bottom").replaceWith(t.rendered_products_bottom),t.rendered_products_header&&(0,r.default)("#js-product-list-header").replaceWith(t.rendered_products_header);(0,r.default)("#products-wrapper").fadeTo("fast",1),s(localStorage.productViewType,!1),(0,r.default)("#grid-list-buttons a").on("click",(function(t){t.preventDefault(),s((0,r.default)(this).attr("id"),!0)})),(0,r.default)("#price-slider").length&&a()}(t)})),(0,r.default)("#price-slider").length&&a()}))},function(t,e,n){"use strict";var i,o=n(3),r=(i=o)&&i.__esModule?i:{default:i};prestashop.cart=prestashop.cart||{},prestashop.cart.active_inputs=null;var s='input[name="product-quantity-spin"]',a=!1,l=!1,c="";function u(){r.default.each((0,r.default)(s),(function(t,e){(0,r.default)(e).TouchSpin({verticalbuttons:!0,verticalup:"",verticaldown:"",verticalupclass:"linearicons-plus",verticaldownclass:"linearicons-minus",buttondown_class:"btn btn-link",buttonup_class:"btn btn-link",min:parseInt((0,r.default)(e).attr("min"),10),max:1e6})})),f.switchErrorStat()}(0,r.default)(document).ready((function(){var t=[];prestashop.on("updateCart",(function(){(0,r.default)(".quickview").modal("hide")})),prestashop.on("updatedCart",(function(){u()})),u();var e=(0,r.default)("body");function n(t){var e=t.split("-"),n=void 0,i=void 0,o="";for(n=0;n<e.length;n++)i=e[n],0!==n&&(i=i.substring(0,1).toUpperCase()+i.substring(1)),o+=i;return o}var i=function(){for(;t.length>0;)t.pop().abort()},o=function(e){e.preventDefault();var o=(0,r.default)(e.currentTarget),s=e.currentTarget.dataset,a=function(t,e){if(!function(t){return"on.startupspin"===t||"on.startdownspin"===t}(e))return{url:t.attr("href"),type:n(t.data("link-action"))};var i=function(t){var e=t.parents(".bootstrap-touchspin").find(".js-cart-line-product-quantity");return e.is(":focus")?null:e}(t);if(i){return function(t){return"on.startupspin"===t}(e)?{url:i.data("up-url"),type:"increaseProductQuantity"}:{url:i.data("down-url"),type:"decreaseProductQuantity"}}}(o,e.namespace);void 0!==a&&(i(),r.default.ajax({url:a.url,method:"POST",data:{ajax:"1",action:"update"},dataType:"json",beforeSend:function(e){t.push(e)}}).then((function(t){var e;f.checkUpdateOpertation(t),(e=o,(0,r.default)(e.parents(".bootstrap-touchspin").find("input"))).val(t.quantity),prestashop.emit("updateCart",{reason:s})})).fail((function(t){prestashop.emit("handleError",{eventType:"updateProductInCart",resp:t,cartAction:a.type})})))};function a(e){var n,o,s=(0,r.default)(e.currentTarget),a=s.data("update-url"),l=s.attr("value"),c=s.val();c!=parseInt(c)||c<0||isNaN(c)?s.val(l):function(e,n,o){i(),r.default.ajax({url:e,method:"POST",data:n,dataType:"json",beforeSend:function(e){t.push(e)}}).then((function(t){var e;f.checkUpdateOpertation(t),o.val(t.quantity),e=o&&o.dataset?o.dataset:t,prestashop.emit("updateCart",{reason:e})})).fail((function(t){prestashop.emit("handleError",{eventType:"updateProductQuantityInCart",resp:t})}))}(a,(n=c-l,{ajax:"1",qty:Math.abs(n),action:"update",op:(o=n,o>0?"up":"down")}),s)}e.on("click",'[data-link-action="delete-from-cart"], [data-link-action="remove-voucher"]',o),e.on("touchspin.on.startdownspin",s,o),e.on("touchspin.on.startupspin",s,o),e.on("focusout keyup",".js-cart-line-product-quantity",(function(t){if("keyup"===t.type)return 13===t.keyCode&&a(t),!1;a(t)})),e.on("click",".js-discount .code",(function(t){t.stopPropagation();var e=(0,r.default)(t.currentTarget);return(0,r.default)("[name=discount_name]").val(e.text()),!1}))}));var f={switchErrorStat:function(){var t=(0,r.default)(".checkout a");if(((0,r.default)("#notifications article.alert-danger").length||""!==c&&!a)&&t.addClass("disabled"),""!==c){var e=' <article class="alert alert-danger" role="alert" data-alert="danger"><ul><li>'+c+"</li></ul></article>";(0,r.default)("#notifications .container").html(e),c="",l=!1,a&&t.removeClass("disabled")}else!a&&l&&(a=!1,l=!1,(0,r.default)("#notifications .container").html(""),t.removeClass("disabled"))},checkUpdateOpertation:function(t){a=t.hasOwnProperty("hasError");var e=t.errors||"";c=e instanceof Array?e.join(" "):e,l=!0}}},function(t,e,n){"use strict";$(document).ready((function(){var t=$("body"),e=[],n=function(){for(;e.length>0;)e.pop().abort()};t.on("click",'a[data-link-action="add-to-cart"]',(function(t){t.preventDefault();var i=$(t.currentTarget),o=i.attr("href"),r=o.split("?")[1],s=o.split("?")[0];i.addClass("active"),n(),$.ajax({url:s,method:"POST",data:r+"&qty=1&action=update",dataType:"json",beforeSend:function(t){e.push(t)}}).then((function(e){e.hasError?prestashop.emit("handleCartError",{eventType:"addProductToCart",response:e.errors}):prestashop.emit("updateCart",{reason:{idProduct:e.id_product,idProductAttribute:e.id_product_attribute,linkAction:t.currentTarget.dataset.linkAction}}),i.removeClass("active")})).fail((function(t){prestashop.emit("handleError",{eventType:"updateShoppingCart",resp:t}),i.removeClass("active")}))})),n(),$(document).on("click",'a[data-link-action="remove-from-cart"], a[data-link-action="remove-voucher"]',(function(t){var n=$(t.currentTarget).attr("href"),i=t.currentTarget.dataset;$.ajax({url:n,method:"POST",data:"&ajax=1&action=update",dataType:"json",beforeSend:function(t){e.push(t)}}).then((function(t){prestashop.emit("updateCart",{reason:i})})).fail((function(t){prestashop.emit("handleError",{eventType:"updateShoppingCart",resp:t})}))}))}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();var o=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return i(t,[{key:"init",value:function(){this.togglePasswordVisibility(),this.selectReloadPage()}},{key:"togglePasswordVisibility",value:function(){$('[data-action="show-password"]').on("click",(function(){var t=$(this).closest(".input-group").children("input.js-visible-password");"password"===t.attr("type")?(t.attr("type","text"),$(this).html('<i class="fa fa-eye-slash" aria-hidden="true"></i>')):(t.attr("type","password"),$(this).html('<i class="fa fa-eye" aria-hidden="true"></i>'))}))}},{key:"selectReloadPage",value:function(){$("select.js-link").each((function(t,e){$(e).on("change",(function(){window.location=$(this).val()}))}))}}]),t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();var o=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.el=e}return i(t,[{key:"init",value:function(){this.el.click((function(){var t=$(this),e=$("."+t.attr("class").match(/js-modal-(\S+)/i)[1]),n=null!==t.attr("class").match(/position-(\S+)/i)?t.attr("class").match(/position-(\S+)/i)[1]:"",i=null!==t.attr("class").match(/size-(\S+)/i)?t.attr("class").match(/size-(\S+)/i)[1]:"",o=null!==t.attr("class").match(/destroy-up-(\S+)/i)&&t.attr("class").match(/destroy-up-(\S+)/i)[1];e.addClass("modal fade "+n).wrapInner('<div class="modal-dialog '+i+'"><div class="modal-content"></button><div class="modal-body">').modal("show").on("hidden.bs.modal",(function(){e.removeAttr("style aria-hidden").removeClass("modal fade "+n).find(".modal-body").children().unwrap('<div class="modal-body">').unwrap('<div class="modal-content">').unwrap('<div class="modal-dialog">'),e.find(".modal-dialog .modal-body .close").remove()})),$(window).resize((function(){o&&window.innerWidth>o&&e.modal("hide")}))}))}}]),t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();var o=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.el=e}return i(t,[{key:"init",value:function(){this.el.find(".js-dropdown-toggle").attr("data-toggle","dropdown"),this.el.on({"show.bs.dropdown":function(t,e){e?$("#"+e).find(".dropdown-menu").first().stop(!0,!0).fadeIn("fast"):$(t.target).find(".dropdown-menu").first().stop(!0,!0).fadeIn("fast")},"hide.bs.dropdown":function(t,e){if($(this).find(".dropdown-menu:hover").length&&!$(t.clickEvent.target).hasClass("dropdown-close"))return!1;e?$("#"+e).find(".dropdown-menu").first().stop(!0,!0).fadeOut("fast"):$(t.target).find(".dropdown-menu").first().stop(!0,!0).fadeOut("fast")}})}}]),t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();var o=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.el=e}return i(t,[{key:"addNavigation",value:function(t){$(t).hasClass("uc-nav")&&$(t).find(".swiper-container").append('<div class="swiper-button-prev"></div><div class="swiper-button-next"></div>')}},{key:"addPagination",value:function(t){$(t).hasClass("uc-pag")&&($(t).find(".products-section-title").length?$(t).find(".products-section-title").append('<div class="swiper-pagination"></div>'):$(t).find(".swiper-container").append('<div class="swiper-pagination"></div>'))}},{key:"checkCondition",value:function(){if("vertical"===this.params.direction){$(this.slides).css("min-height",0);var t=$(this.slides).map((function(){return $(this).height()})).get(),e=Math.max.apply(null,t);$(this.$wrapperEl).css("height",e*this.params.slidesPerView),$(this.slides).css("min-height",e)}this.update(),this.params.pagination.el.length&&(this.params.slidesPerGroup=$(this.$el).find(".swiper-slide-visible").length,this.update()),this.isBeginning&&this.isEnd?(this.allowTouchMove=!1,this.$el.addClass("hidden-controls")):(this.allowTouchMove=!0,this.$el.removeClass("hidden-controls"))}},{key:"buildStructure",value:function(t){this.el.direction="horizontal",this.el.slidesPerView="auto",$(t).find("."+$(t).attr("class").match(/uc-el-(\S+)/i)[1]).addClass("swiper-slide").wrapAll('<div class="swiper-container"><div class="swiper-wrapper">'),-1!=$(t).attr("class").indexOf("u-carousel-vertical-")&&(this.el.direction="vertical",this.el.slidesPerView=$(t).attr("class").match(/u-carousel-vertical-(\d+)/i)[1])}},{key:"init",value:function(){var t=this;this.el.each((function(){t.buildStructure(this),t.addNavigation(this),t.addPagination(this);new Swiper($(this).find(".swiper-container"),{direction:t.el.direction,slidesPerView:t.el.slidesPerView,watchSlidesProgress:!0,watchSlidesVisibility:!0,navigation:{nextEl:$(this).find(".swiper-button-next"),prevEl:$(this).find(".swiper-button-prev")},pagination:{el:$(this).find(".swiper-pagination"),clickable:!0},on:{init:function(){t.checkCondition.call(this)},resize:function(){t.checkCondition.call(this)}}})}))}}]),t}();e.default=o},function(t,e,n){"use strict";var i,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r="object"===("undefined"==typeof Reflect?"undefined":o(Reflect))?Reflect:null,s=r&&"function"==typeof r.apply?r.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};i=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var a=Number.isNaN||function(t){return t!=t};function l(){l.init.call(this)}t.exports=l,l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var c=10;function u(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+(void 0===t?"undefined":o(t)))}function f(t){return void 0===t._maxListeners?l.defaultMaxListeners:t._maxListeners}function d(t,e,n,i){var o,r,s;if(u(n),void 0===(r=t._events)?(r=t._events=Object.create(null),t._eventsCount=0):(void 0!==r.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),r=t._events),s=r[e]),void 0===s)s=r[e]=n,++t._eventsCount;else if("function"==typeof s?s=r[e]=i?[n,s]:[s,n]:i?s.unshift(n):s.push(n),(o=f(t))>0&&s.length>o&&!s.warned){s.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=t,a.type=e,a.count=s.length,console&&console.warn}return t}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(t,e,n){var i={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},o=p.bind(i);return o.listener=n,i.wrapFn=o,o}function m(t,e,n){var i=t._events;if(void 0===i)return[];var o=i[e];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(o):v(o,o.length)}function g(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function v(t,e){for(var n=new Array(e),i=0;i<e;++i)n[i]=t[i];return n}Object.defineProperty(l,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(t){if("number"!=typeof t||t<0||a(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");c=t}}),l.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},l.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||a(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},l.prototype.getMaxListeners=function(){return f(this)},l.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var i="error"===t,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var r;if(e.length>0&&(r=e[0]),r instanceof Error)throw r;var a=new Error("Unhandled error."+(r?" ("+r.message+")":""));throw a.context=r,a}var l=o[t];if(void 0===l)return!1;if("function"==typeof l)s(l,this,e);else{var c=l.length,u=v(l,c);for(n=0;n<c;++n)s(u[n],this,e)}return!0},l.prototype.addListener=function(t,e){return d(this,t,e,!1)},l.prototype.on=l.prototype.addListener,l.prototype.prependListener=function(t,e){return d(this,t,e,!0)},l.prototype.once=function(t,e){return u(e),this.on(t,h(this,t,e)),this},l.prototype.prependOnceListener=function(t,e){return u(e),this.prependListener(t,h(this,t,e)),this},l.prototype.removeListener=function(t,e){var n,i,o,r,s;if(u(e),void 0===(i=this._events))return this;if(void 0===(n=i[t]))return this;if(n===e||n.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(o=-1,r=n.length-1;r>=0;r--)if(n[r]===e||n[r].listener===e){s=n[r].listener,o=r;break}if(o<0)return this;0===o?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,o),1===n.length&&(i[t]=n[0]),void 0!==i.removeListener&&this.emit("removeListener",t,s||e)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(t){var e,n,i;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var o,r=Object.keys(n);for(i=0;i<r.length;++i)"removeListener"!==(o=r[i])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(i=e.length-1;i>=0;i--)this.removeListener(t,e[i]);return this},l.prototype.listeners=function(t){return m(this,t,!0)},l.prototype.rawListeners=function(t){return m(this,t,!1)},l.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):g.call(t,e)},l.prototype.listenerCount=g,l.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}}]);
|