1!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(e,t,n){"use strict";(function(e){var n;function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)} 2/*! 3 * jQuery JavaScript Library v2.2.4 4 * http://jquery.com/ 5 * 6 * Includes Sizzle.js 7 * http://sizzlejs.com/ 8 * 9 * Copyright jQuery Foundation and other contributors 10 * Released under the MIT license 11 * http://jquery.org/license 12 * 13 * Date: 2016-05-20T17:23Z 14 */ 15/*! 16 * jQuery JavaScript Library v2.2.4 17 * http://jquery.com/ 18 * 19 * Includes Sizzle.js 20 * http://sizzlejs.com/ 21 * 22 * Copyright jQuery Foundation and other contributors 23 * Released under the MIT license 24 * http://jquery.org/license 25 * 26 * Date: 2016-05-20T17:23Z 27 */ 28!function(t,n){"object"===r(e)&&"object"===r(e.exports)?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:void 0,function(i,o){var a=[],s=i.document,u=a.slice,l=a.concat,c=a.push,d=a.indexOf,f={},p=f.toString,h=f.hasOwnProperty,v={},m=function e(t,n){return new e.fn.init(t,n)},g=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,y=/^-ms-/,b=/-([\da-z])/gi,x=function(e,t){return t.toUpperCase()};function w(e){var t=!!e&&"length"in e&&e.length,n=m.type(e);return"function"!==n&&!m.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}m.fn=m.prototype={jquery:"2.2.4",constructor:m,selector:"",length:0,toArray:function(){return u.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:u.call(this)},pushStack:function(e){var t=m.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return m.each(this,e)},map:function(e){return this.pushStack(m.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:a.sort,splice:a.splice},m.extend=m.fn.extend=function(){var e,t,n,i,o,a,s=arguments[0]||{},u=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[u]||{},u++),"object"===r(s)||m.isFunction(s)||(s={}),u===l&&(s=this,u--);u<l;u++)if(null!=(e=arguments[u]))for(t in e)n=s[t],s!==(i=e[t])&&(c&&i&&(m.isPlainObject(i)||(o=m.isArray(i)))?(o?(o=!1,a=n&&m.isArray(n)?n:[]):a=n&&m.isPlainObject(n)?n:{},s[t]=m.extend(c,a,i)):void 0!==i&&(s[t]=i));return s},m.extend({expando:"jQuery"+("2.2.4"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===m.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=e&&e.toString();return!m.isArray(e)&&t-parseFloat(t)+1>=0},isPlainObject:function(e){var t;if("object"!==m.type(e)||e.nodeType||m.isWindow(e))return!1;if(e.constructor&&!h.call(e,"constructor")&&!h.call(e.constructor.prototype||{},"isPrototypeOf"))return!1;for(t in e);return void 0===t||h.call(e,t)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"===r(e)||"function"==typeof e?f[p.call(e)]||"object":r(e)},globalEval:function(e){var t,n=eval;(e=m.trim(e))&&(1===e.indexOf("use strict")?((t=s.createElement("script")).text=e,s.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(y,"ms-").replace(b,x)}
vendor: 20,553 bytes, lines 28-39
28,nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,r=0;if(w(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(g,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(w(Object(e))?m.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:d.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(w(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return l.apply([],a)},guid:1,proxy:function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),m.isFunction(e))return r=u.call(arguments,2),i=function(){return e.apply(t||this,r.concat(u.call(arguments)))},i.guid=e.guid=e.guid||m.guid++,i},now:Date.now,support:v}),"function"==typeof Symbol&&(m.fn[Symbol.iterator]=a[Symbol.iterator]),m.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()});var T= 29/*! 30 * Sizzle CSS Selector Engine v2.2.1 31 * http://sizzlejs.com/ 32 * 33 * Copyright jQuery Foundation and other contributors 34 * Released under the MIT license 35 * http://jquery.org/license 36 * 37 * Date: 2015-10-17 38 */ 39function(e){var t,n,r,i,o,a,s,u,l,c,d,f,p,h,v,m,g,y,b,x="sizzle"+1*new Date,w=e.document,T=0,C=0,k=oe(),S=oe(),j=oe(),_=function(e,t){return e===t&&(d=!0),0},E=1<<31,N={}.hasOwnProperty,A=[],D=A.pop,L=A.push,q=A.push,P=A.slice,O=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},H="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",F="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",W="\\["+M+"*("+F+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+F+"))|)"+M+"*\\]",R=":("+F+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",I=new RegExp(M+"+","g"),$=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),B=new RegExp("^"+M+"*,"+M+"*"),z=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),X=new RegExp("="+M+"*([^\\]'\"]*?)"+M+"*\\]","g"),U=new RegExp(R),V=new RegExp("^"+F+"$"),G={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+R),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+H+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Z=/[+~]/,ee=/'|\\/g,te=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),ne=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},re=function(){f()};try{q.apply(A=P.call(w.childNodes),w.childNodes),A[w.childNodes.length].nodeType}catch(e){q={apply:A.length?function(e,t){L.apply(e,P.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function ie(e,t,r,i){var o,s,l,c,d,h,g,y,T=t&&t.ownerDocument,C=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==C&&9!==C&&11!==C)return r;if(!i&&((t?t.ownerDocument||t:w)!==p&&f(t),t=t||p,v)){if(11!==C&&(h=K.exec(e)))if(o=h[1]){if(9===C){if(!(l=t.getElementById(o)))return r;if(l.id===o)return r.push(l),r}else if(T&&(l=T.getElementById(o))&&b(t,l)&&l.id===o)return r.push(l),r}else{if(h[2])return q.apply(r,t.getElementsByTagName(e)),r;if((o=h[3])&&n.getElementsByClassName&&t.getElementsByClassName)return q.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!j[e+" "]&&(!m||!m.test(e))){if(1!==C)T=t,y=e;else if("object"!==t.nodeName.toLowerCase()){for((c=t.getAttribute("id"))?c=c.replace(ee,"\\$&"):t.setAttribute("id",c=x),s=(g=a(e)).length,d=V.test(c)?"#"+c:"[id='"+c+"']";s--;)g[s]=d+" "+ve(g[s]);y=g.join(","),T=Z.test(e)&&pe(t.parentNode)||t}if(y)try{return q.apply(r,T.querySelectorAll(y)),r}catch(e){}finally{c===x&&t.removeAttribute("id")}}}return u(e.replace($,"$1"),t,r,i)}function oe(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function ae(e){return e[x]=!0,e}function se(e){var t=p.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ue(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function le(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||E)-(~e.sourceIndex||E);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function ce(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function de(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function fe(e){return ae(function(t){return t=+t,ae(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function pe(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=ie.support={},o=ie.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},f=ie.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:w;return a!==p&&9===a.nodeType&&a.documentElement?(h=(p=a).documentElement,v=!o(p),(i=p.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",re,!1):i.attachEvent&&i.attachEvent("onunload",re)),n.attributes=se(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=se(function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=J.test(p.getElementsByClassName),n.getById=se(function(e){return h.appendChild(e).id=x,!p.getElementsByName||!p.getElementsByName(x).length}),n.getById?(r.find.ID=function(e,t){if(void 0!==t.getElementById&&v){var n=t.getElementById(e);return n?[n]:[]}},r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}}):(delete r.find.ID,r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&v)return t.getElementsByClassName(e)},g=[],m=[],(n.qsa=J.test(p.querySelectorAll))&&(se(function(e){h.appendChild(e).innerHTML="<a id='"+x+"'></a><select id='"+x+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+M+"*(?:value|"+H+")"),e.querySelectorAll("[id~="+x+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||m.push(".#.+[+~]")}),se(function(e){var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+M+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(n.matchesSelector=J.test(y=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&se(function(e){n.disconnectedMatch=y.call(e,"div"),y.call(e,"[s!='']:x"),g.push("!=",R)}),m=m.length&&new RegExp(m.join("|")),g=g.length&&new RegExp(g.join("|")),t=J.test(h.compareDocumentPosition),b=t||J.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},_=t?function(e,t){if(e===t)return d=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===p||e.ownerDocument===w&&b(w,e)?-1:t===p||t.ownerDocument===w&&b(w,t)?1:c?O(c,e)-O(c,t):0:4&r?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===p?-1:t===p?1:i?-1:o?1:c?O(c,e)-O(c,t):0;if(i===o)return le(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?le(a[r],s[r]):a[r]===w?-1:s[r]===w?1:0},p):p},ie.matches=function(e,t){return ie(e,null,null,t)},ie.matchesSelector=function(e,t){if((e.ownerDocument||e)!==p&&f(e),t=t.replace(X,"='$1']"),n.matchesSelector&&v&&!j[t+" "]&&(!g||!g.test(t))&&(!m||!m.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return ie(t,p,null,[e]).length>0},ie.contains=function(e,t){return(e.ownerDocument||e)!==p&&f(e),b(e,t)},ie.attr=function(e,t){(e.ownerDocument||e)!==p&&f(e);var i=r.attrHandle[t.toLowerCase()],o=i&&N.call(r.attrHandle,t.toLowerCase())?i(e,t,!v):void 0;return void 0!==o?o:n.attributes||!v?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},ie.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ie.uniqueSort=function(e){var t,r=[],i=0,o=0;if(d=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(_),d){for(;t=e[o++];)t===e[o]&&(i=r.push(o));for(;i--;)e.splice(r[i],1)}return c=null,e},i=ie.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},(r=ie.selectors={cacheLength:50,createPseudo:ae,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ie.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ie.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&U.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=k[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&k(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=ie.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(I," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,d,f,p,h,v=o!==a?"nextSibling":"previousSibling",m=t.parentNode,g=s&&t.nodeName.toLowerCase(),y=!u&&!s,b=!1;if(m){if(o){for(;v;){for(f=t;f=f[v];)if(s?f.nodeName.toLowerCase()===g:1===f.nodeType)return!1;h=v="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&y){for(b=(p=(l=(c=(d=(f=m)[x]||(f[x]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]||[])[0]===T&&l[1])&&l[2],f=p&&m.childNodes[p];f=++p&&f&&f[v]||(b=p=0)||h.pop();)if(1===f.nodeType&&++b&&f===t){c[e]=[T,p,b];break}}else if(y&&(b=p=(l=(c=(d=(f=t)[x]||(f[x]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]||[])[0]===T&&l[1]),!1===b)for(;(f=++p&&f&&f[v]||(b=p=0)||h.pop())&&((s?f.nodeName.toLowerCase()!==g:1!==f.nodeType)||!++b||(y&&((c=(d=f[x]||(f[x]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]=[T,b]),f!==t)););return(b-=i)===r||b%r==0&&b/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||ie.error("unsupported pseudo: "+e);return i[x]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ae(function(e,n){for(var r,o=i(e,t),a=o.length;a--;)e[r=O(e,o[a])]=!(n[r]=o[a])}):function(e){return i(e,0,n)}):i}},pseudos:{not:ae(function(e){var t=[],n=[],r=s(e.replace($,"$1"));return r[x]?ae(function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}}),has:ae(function(e){return function(t){return ie(e,t).length>0}}),contains:ae(function(e){return e=e.replace(te,ne),function(t){return(t.textContent||t.innerText||i(t)).indexOf(e)>-1}}),lang:ae(function(e){return V.test(e||"")||ie.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=v?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Q.test(e.nodeName)},input:function(e){return Y.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:fe(function(){return[0]}),last:fe(function(e,t){return[t-1]}),eq:fe(function(e,t,n){return[n<0?n+t:n]}),even:fe(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:fe(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:fe(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:fe(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=ce(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=de(t);function he(){}function ve(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function me(e,t,n){var r=t.dir,i=n&&"parentNode"===r,o=C++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||i)return e(t,n,o)}:function(t,n,a){var s,u,l,c=[T,o];if(a){for(;t=t[r];)if((1===t.nodeType||i)&&e(t,n,a))return!0}else for(;t=t[r];)if(1===t.nodeType||i){if((s=(u=(l=t[x]||(t[x]={}))[t.uniqueID]||(l[t.uniqueID]={}))[r])&&s[0]===T&&s[1]===o)return c[2]=s[2];if(u[r]=c,c[2]=e(t,n,a))return!0}}}function ge(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function ye(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function be(e,t,n,r,i,o){return r&&!r[x]&&(r=be(r)),i&&!i[x]&&(i=be(i,o)),ae(function(o,a,s,u){var l,c,d,f=[],p=[],h=a.length,v=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)ie(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),m=!e||!o&&t?v:ye(v,f,e,s,u),g=n?i||(o?e:h||r)?[]:a:m;if(n&&n(m,g,s,u),r)for(l=ye(g,p),r(l,[],s,u),c=l.length;c--;)(d=l[c])&&(g[p[c]]=!(m[p[c]]=d));if(o){if(i||e){if(i){for(l=[],c=g.length;c--;)(d=g[c])&&l.push(m[c]=d);i(null,g=[],l,u)}for(c=g.length;c--;)(d=g[c])&&(l=i?O(o,d):f[c])>-1&&(o[l]=!(a[l]=d))}}else g=ye(g===a?g.splice(h,g.length):g),i?i(null,a,g,u):q.apply(a,g)})}function xe(e){for(var t,n,i,o=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],u=a?1:0,c=me(function(e){return e===t},s,!0),d=me(function(e){return O(t,e)>-1},s,!0),f=[function(e,n,r){var i=!a&&(r||n!==l)||((t=n).nodeType?c(e,n,r):d(e,n,r));return t=null,i}];u<o;u++)if(n=r.relative[e[u].type])f=[me(ge(f),n)];else{if((n=r.filter[e[u].type].apply(null,e[u].matches))[x]){for(i=++u;i<o&&!r.relative[e[i].type];i++);return be(u>1&&ge(f),u>1&&ve(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace($,"$1"),n,u<i&&xe(e.slice(u,i)),i<o&&xe(e=e.slice(i)),i<o&&ve(e))}f.push(n)}return ge(f)}return he.prototype=r.filters=r.pseudos,r.setFilters=new he,a=ie.tokenize=function(e,t){var n,i,o,a,s,u,l,c=S[e+" "];if(c)return t?0:c.slice(0);for(s=e,u=[],l=r.preFilter;s;){for(a in n&&!(i=B.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),n=!1,(i=z.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace($," ")}),s=s.slice(n.length)),r.filter)!(i=G[a].exec(s))||l[a]&&!(i=l[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?ie.error(e):S(e,u).slice(0)},s=ie.compile=function(e,t){var n,i=[],o=[],s=j[e+" "];if(!s){for(t||(t=a(e)),n=t.length;n--;)(s=xe(t[n]))[x]?i.push(s):o.push(s);(s=j(e,function(e,t){var n=t.length>0,i=e.length>0,o=function(o,a,s,u,c){var d,h,m,g=0,y="0",b=o&&[],x=[],w=l,C=o||i&&r.find.TAG("*",c),k=T+=null==w?1:Math.random()||.1,S=C.length;for(c&&(l=a===p||a||c);y!==S&&null!=(d=C[y]);y++){if(i&&d){for(h=0,a||d.ownerDocument===p||(f(d),s=!v);m=e[h++];)if(m(d,a||p,s)){u.push(d);break}c&&(T=k)}n&&((d=!m&&d)&&g--,o&&b.push(d))}if(g+=y,n&&y!==g){for(h=0;m=t[h++];)m(b,x,a,s);if(o){if(g>0)for(;y--;)b[y]||x[y]||(x[y]=D.call(u));x=ye(x)}q.apply(u,x),c&&!o&&x.length>0&&g+t.length>1&&ie.uniqueSort(u)}return c&&(T=k,l=w),b};return n?ae(o):o}(o,i))).selector=e}return s},u=ie.select=function(e,t,i,o){var u,l,c,d,f,p="function"==typeof e&&e,h=!o&&a(e=p.selector||e);if(i=i||[],1===h.length){if((l=h[0]=h[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&n.getById&&9===t.nodeType&&v&&r.relative[l[1].type]){if(!(t=(r.find.ID(c.matches[0].replace(te,ne),t)||[])[0]))return i;p&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(u=G.needsContext.test(e)?0:l.length;u--&&(c=l[u],!r.relative[d=c.type]);)if((f=r.find[d])&&(o=f(c.matches[0].replace(te,ne),Z.test(l[0].type)&&pe(t.parentNode)||t))){if(l.splice(u,1),!(e=o.length&&ve(l)))return q.apply(i,o),i;break}}return(p||s(e,h))(o,t,!v,i,!t||Z.test(e)&&pe(t.parentNode)||t),i},n.sortStable=x.split("").sort(_).join("")===x,n.detectDuplicates=!!d,f(),n.sortDetached=se(function(e){return 1&e.compareDocumentPosition(p.createElement("div"))}),se(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ue("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&se(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ue("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),se(function(e){return null==e.getAttribute("disabled")})||ue(H,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),ie}(i);m.find=T,m.expr=T.selectors,m.expr[":"]=m.expr.pseudos,m.uniqueSort=m.unique=T.uniqueSort,m.text=T.getText,m.isXMLDoc=T.isXML,m.contains=T.contains;var C=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&m(e).is(n))break;r.push(e)}return r},k=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},S=m.expr.match.needsContext,j=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,_=/^.[^:#\[\.,]*$/;function E(e,t,n){if(m.isFunction(t))return m.grep(e,function(e,r){return!!t.call(e,r,e)!==n});
39if(t.nodeType)return m.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(_.test(t))return m.filter(t,e,n);t=m.filter(t,e)}return m.grep(e,function(e){return d.call(t,e)>-1!==n})}m.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?m.find.matchesSelector(r,e)?[r]:[]:m.find.matches(e,m.grep(t,function(e){return 1===e.nodeType}))},m.fn.extend({find:function(e){var t,n=this.length,r=[],i=this;if("string"!=typeof e)return this.pushStack(m(e).filter(function(){for(t=0;t<n;t++)if(m.contains(i[t],this))return!0}));for(t=0;t<n;t++)m.find(e,i[t],r);return(r=this.pushStack(n>1?m.unique(r):r)).selector=this.selector?this.selector+" "+e:e,r},filter:function(e){return this.pushStack(E(this,e||[],!1))},not:function(e){return this.pushStack(E(this,e||[],!0))},is:function(e){return!!E(this,"string"==typeof e&&S.test(e)?m(e):e||[],!1).length}});var N,A=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(m.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||N,"string"==typeof e){if(!(r="
39<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:A.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof m?t[0]:t,m.merge(this,m.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:s,!0)),j.test(r[1])&&m.isPlainObject(t))for(r in t)m.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=s.getElementById(r[2]))&&i.parentNode&&(this.length=1,this[0]=i),this.context=s,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):m.isFunction(e)?void 0!==n.ready?n.ready(e):e(m):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),m.makeArray(e,this))}).prototype=m.fn,N=m(s);var D=/^(?:parents|prev(?:Until|All))/,L={children:!0,contents:!0,next:!0,prev:!0};function q(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}m.fn.extend({has:function(e){var t=m(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(m.contains(this,t[e]))return!0})},closest:function(e,t){for(var n,r=0,i=this.length,o=[],a=S.test(e)||"string"!=typeof e?m(e,t||this.context):0;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&m.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?m.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?d.call(m(e),this[0]):d.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(m.uniqueSort(m.merge(this.get(),m(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),m.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return C(e,"parentNode")},parentsUntil:function(e,t,n){return C(e,"parentNode",n)},next:function(e){return q(e,"nextSibling")},prev:function(e){return q(e,"previousSibling")},nextAll:function(e){return C(e,"nextSibling")},prevAll:function(e){return C(e,"previousSibling")},nextUntil:function(e,t,n){return C(e,"nextSibling",n)},prevUntil:function(e,t,n){return C(e,"previousSibling",n)},siblings:function(e){return k((e.parentNode||{}).firstChild,e)},children:function(e){return k(e.firstChild)},contents:function(e){return e.contentDocument||m.merge([],e.childNodes)}},function(e,t){m.fn[e]=function(n,r){var i=m.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=m.filter(r,i)),this.length>1&&(L[e]||m.uniqueSort(i),D.test(e)&&i.reverse()),this.pushStack(i)}});var P,O=/\S+/g;function H(){s.removeEventListener("DOMContentLoaded",H),i.removeEventListener("load",H),m.ready()}m.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return m.each(e.match(O)||[],function(e,n){t[n]=!0}),t}(e):m.extend({},e);var t,n,r,i,o=[],a=[],s=-1,u=function(){for(i=e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},l={add:function(){return o&&(n&&!t&&(s=o.length-1,a.push(n)),function t(n){m.each(n,function(n,r){m.isFunction(r)?e.unique&&l.has(r)||o.push(r):r&&r.length&&"string"!==m.type(r)&&t(r)})}(arguments),n&&!t&&u()),this},remove:function(){return m.each(arguments,function(e,t){for(var n;(n=m.inArray(t,o,n))>-1;)o.splice(n,1),n<=s&&s--}),this},has:function(e){return e?m.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||u()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},m.extend({Deferred:function(e){var t=[["resolve","done",m.Callbacks("once memory"),"resolved"],["reject","fail",m.Callbacks("once memory"),"rejected"],["notify","progress",m.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return m.Deferred(function(n){m.each(t,function(t,o){var a=m.isFunction(e[t])&&e[t];i[o[1]](function(){var e=a&&a.apply(this,arguments);e&&m.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this===r?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?m.extend(e,r):r}},i={};return r.pipe=r.then,m.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t,n,r,i=0,o=u.call(arguments),a=o.length,s=1!==a||e&&m.isFunction(e.promise)?a:0,l=1===s?e:m.Deferred(),c=function(e,n,r){return function(i){n[e]=this,r[e]=arguments.length>1?u.call(arguments):i,r===t?l.notifyWith(n,r):--s||l.resolveWith(n,r)}};if(a>1)for(t=new Array(a),n=new Array(a),r=new Array(a);i<a;i++)o[i]&&m.isFunction(o[i].promise)?o[i].promise().progress(c(i,n,t)).done(c(i,r,o)).fail(l.reject):--s;return s||l.resolveWith(r,o),l.promise()}}),m.fn.ready=function(e){return m.ready.promise().done(e),this},m.extend({isReady:!1,readyWait:1,holdReady:function(e){e?m.readyWait++:m.ready(!0)},ready:function(e){(!0===e?--m.readyWait:m.isReady)||(m.isReady=!0,!0!==e&&--m.readyWait>0||(P.resolveWith(s,[m]),m.fn.triggerHandler&&(m(s).triggerHandler("ready"),m(s).off("ready"))))}}),m.ready.promise=function(e){return P||(P=m.Deferred(),"complete"===s.readyState||"loading"!==s.readyState&&!s.documentElement.doScroll?i.setTimeout(m.ready):(s.addEventListener("DOMContentLoaded",H),i.addEventListener("load",H))),P.promise(e)},m.ready.promise();var M=function e(t,n,r,i,o,a,s){var u=0,l=t.length,c=null==r;if("object"===m.type(r))for(u in o=!0,r)e(t,n,u,r[u],!0,a,s);else if(void 0!==i&&(o=!0,m.isFunction(i)||(s=!0),c&&(s?(n.call(t,i),n=null):(c=n,n=function(e,t,n){return c.call(m(e),n)})),n))for(;u<l;u++)n(t[u],r,s?i:i.call(t[u],u,n(t[u],r)));
39return o?t:c?n.call(t):l?n(t[0],r):a},F=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function W(){this.expando=m.expando+W.uid++}W.uid=1,W.prototype={register:function(e,t){var n=t||{};return e.nodeType?e[this.expando]=n:Object.defineProperty(e,this.expando,{value:n,writable:!0,configurable:!0}),e[this.expando]},cache:function(e){if(!F(e))return{};var t=e[this.expando];return t||(t={},F(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[t]=n;else for(r in t)i[r]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][t]},access:function(e,t,n){var r;return void 0===t||t&&"string"==typeof t&&void 0===n?void 0!==(r=this.get(e,t))?r:this.get(e,m.camelCase(t)):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r,i,o=e[this.expando];if(void 0!==o){if(void 0===t)this.register(e);else{m.isArray(t)?r=t.concat(t.map(m.camelCase)):(i=m.camelCase(t),r=t in o?[t,i]:(r=i)in o?[r]:r.match(O)||[]),n=r.length;for(;n--;)delete o[r[n]]}(void 0===t||m.isEmptyObject(o))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!m.isEmptyObject(t)}};var R=new W,I=new W,$=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,B=/[A-Z]/g;function z(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(B,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:$.test(n)?m.parseJSON(n):n)}catch(e){}I.set(e,t,n)}else n=void 0;return n}m.extend({hasData:function(e){return I.hasData(e)||R.hasData(e)},data:function(e,t,n){return I.access(e,t,n)},removeData:function(e,t){I.remove(e,t)},_data:function(e,t,n){return R.access(e,t,n)},_removeData:function(e,t){R.remove(e,t)}}),m.fn.extend({data:function(e,t){var n,i,o,a=this[0],s=a&&a.attributes;if(void 0===e){if(this.length&&(o=I.get(a),1===a.nodeType&&!R.get(a,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(i=s[n].name).indexOf("data-")&&(i=m.camelCase(i.slice(5)),z(a,i,o[i]));R.set(a,"hasDataAttrs",!0)}return o}return"object"===r(e)?this.each(function(){I.set(this,e)}):M(this,function(t){var n,r;if(a&&void 0===t)return void 0!==(n=I.get(a,e)||I.get(a,e.replace(B,"-$&").toLowerCase()))?n:(r=m.camelCase(e),void 0!==(n=I.get(a,r))?n:void 0!==(n=z(a,r,void 0))?n:void 0);r=m.camelCase(e),this.each(function(){var n=I.get(this,r);I.set(this,r,t),e.indexOf("-")>-1&&void 0!==n&&I.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){I.remove(this,e)})}}),m.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=R.get(e,t),n&&(!r||m.isArray(n)?r=R.access(e,t,m.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=m.queue(e,t),r=n.length,i=n.shift(),o=m._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){m.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return R.get(e,n)||R.access(e,n,{empty:m.Callbacks("once memory").add(function(){R.remove(e,[t+"queue",n])})})}}),m.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?m.queue(this[0],e):void 0===t?this:this.each(function(){var n=m.queue(this,e,t);m._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&m.dequeue(this,e)})},dequeue:function(e){return this.each(function(){m.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=m.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=R.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var X=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,U=new RegExp("^(?:([+-])=|)("+X+")([a-z%]*)$","i"),V=["Top","Right","Bottom","Left"],G=function(e,t){return e=t||e,"none"===m.css(e,"display")||!m.contains(e.ownerDocument,e)};function Y(e,t,n,r){var i,o=1,a=20,s=r?function(){return r.cur()}:function(){return m.css(e,t,"")},u=s(),l=n&&n[3]||(m.cssNumber[t]?"":"px"),c=(m.cssNumber[t]||"px"!==l&&+u)&&U.exec(m.css(e,t));if(c&&c[3]!==l){l=l||c[3],n=n||[],c=+u||1;do{c/=o=o||".5",m.style(e,t,c+l)}while(o!==(o=s()/u)&&1!==o&&--a)}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var Q=/^(?:checkbox|radio)$/i,J=/<([\w:-]+)/,K=/^$|\/(?:java|ecma)script/i,Z={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ee(e,t){var n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&m.nodeName(e,t)?m.merge([e],n):n}function te(e,t){for(var n=0,r=e.length;n<r;n++)R.set(e[n],"globalEval",!t||R.get(t[n],"globalEval"))}
vendor: 4,408 bytes, line 39
39Z.optgroup=Z.option,Z.tbody=Z.tfoot=Z.colgroup=Z.caption=Z.thead,Z.th=Z.td;var ne=/<|&#?\w+;/;function re(e,t,n,r,i){for(var o,a,s,u,l,c,d=t.createDocumentFragment(),f=[],p=0,h=e.length;p<h;p++)if((o=e[p])||0===o)if("object"===m.type(o))m.merge(f,o.nodeType?[o]:o);else if(ne.test(o)){for(a=a||d.appendChild(t.createElement("div")),s=(J.exec(o)||["",""])[1].toLowerCase(),u=Z[s]||Z._default,a.innerHTML=u[1]+m.htmlPrefilter(o)+u[2],c=u[0];c--;)a=a.lastChild;m.merge(f,a.childNodes),(a=d.firstChild).textContent=""}else f.push(t.createTextNode(o));for(d.textContent="",p=0;o=f[p++];)if(r&&m.inArray(o,r)>-1)i&&i.push(o);else if(l=m.contains(o.ownerDocument,o),a=ee(d.appendChild(o),"script"),l&&te(a),n)for(c=0;o=a[c++];)K.test(o.type||"")&&n.push(o);return d}!function(){var e=s.createDocumentFragment().appendChild(s.createElement("div")),t=s.createElement("input");t.setAttribute("type","radio"),t.setAttribute("checked","checked"),t.setAttribute("name","t"),e.appendChild(t),v.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var ie=/^key/,oe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ae=/^([^.]*)(?:\.(.+)|)/;function se(){return!0}function ue(){return!1}function le(){try{return s.activeElement}catch(e){}}function ce(e,t,n,i,o,a){var s,u;if("object"===r(t)){for(u in"string"!=typeof n&&(i=i||n,n=void 0),t)ce(e,u,n,i,t[u],a);return e}if(null==i&&null==o?(o=n,i=n=void 0):null==o&&("string"==typeof n?(o=i,i=void 0):(o=i,i=n,n=void 0)),!1===o)o=ue;else if(!o)return e;return 1===a&&(s=o,(o=function(e){return m().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=m.guid++)),e.each(function(){m.event.add(this,t,o,i,n)})}m.event={global:{},add:function(e,t,n,r,i){var o,a,s,u,l,c,d,f,p,h,v,g=R.get(e);if(g)for(n.handler&&(n=(o=n).handler,i=o.selector),n.guid||(n.guid=m.guid++),(u=g.events)||(u=g.events={}),(a=g.handle)||(a=g.handle=function(t){return void 0!==m&&m.event.triggered!==t.type?m.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(O)||[""]).length;l--;)p=v=(s=ae.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),p&&(d=m.event.special[p]||{},p=(i?d.delegateType:d.bindType)||p,d=m.event.special[p]||{},c=m.extend({type:p,origType:v,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&m.expr.match.needsContext.test(i),namespace:h.join(".")},o),(f=u[p])||((f=u[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(p,a)),d.add&&(d.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?f.splice(f.delegateCount++,0,c):f.push(c),m.event.global[p]=!0)},remove:function(e,t,n,r,i){var o,a,s,u,l,c,d,f,p,h,v,g=R.hasData(e)&&R.get(e);if(g&&(u=g.events)){for(l=(t=(t||"").match(O)||[""]).length;l--;)if(p=v=(s=ae.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),p){for(d=m.event.special[p]||{},f=u[p=(r?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=f.length;o--;)c=f[o],!i&&v!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(f.splice(o,1),c.selector&&f.delegateCount--,d.remove&&d.remove.call(e,c));a&&!f.length&&(d.teardown&&!1!==d.teardown.call(e,h,g.handle)||m.removeEvent(e,p,g.handle),delete u[p])}else for(p in u)m.event.remove(e,p+t[l],n,r,!0);m.isEmptyObject(u)&&R.remove(e,"handle events")}},dispatch:function(e){e=m.event.fix(e);var t,n,r,i,o,a,s=u.call(arguments),l=(R.get(this,"events")||{})[e.type]||[],c=m.event.special[e.type]||{};if(s[0]=e,e.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,e)){for(a=m.event.handlers.call(this,e,l),t=0;(i=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(o.namespace)||(e.handleObj=o,e.data=o.data,void 0!==(r=((m.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(e.result=r)&&(e.preventDefault(),e.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,a=[],s=t.delegateCount,u=e.target;if(s&&u.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&(!0!==u.disabled||"click"!==e.type)){for(r=[],n=0;n<s;n++)void 0===r[i=(o=t[n]).selector+" "]&&(r[i]=o.needsContext?m(i,this).index(u)>
vendor: 2,786 bytes, line 39
39-1:m.find(i,this,null,[u]).length),r[i]&&r.push(o);r.length&&a.push({elem:u,handlers:r})}return s<t.length&&a.push({elem:this,handlers:t.slice(s)}),a},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,i,o=t.button;return null==e.pageX&&null!=t.clientX&&(r=(n=e.target.ownerDocument||s).documentElement,i=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),e.which||void 0===o||(e.which=1&o?1:2&o?3:4&o?2:0),e}},fix:function(e){if(e[m.expando])return e;var t,n,r,i=e.type,o=e,a=this.fixHooks[i];for(a||(this.fixHooks[i]=a=oe.test(i)?this.mouseHooks:ie.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,e=new m.Event(o),t=r.length;t--;)e[n=r[t]]=o[n];return e.target||(e.target=s),3===e.target.nodeType&&(e.target=e.target.parentNode),a.filter?a.filter(e,o):e},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==le()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===le()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&m.nodeName(this,"input"))return this.click(),!1},_default:function(e){return m.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},m.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},m.Event=function(e,t){if(!(this instanceof m.Event))return new m.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?se:ue):this.type=e,t&&m.extend(this,t),this.timeStamp=e&&e.timeStamp||m.now(),this[m.expando]=!0},m.Event.prototype={constructor:m.Event,isDefaultPrevented:ue,isPropagationStopped:ue,isImmediatePropagationStopped:ue,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=se,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=se,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=se,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}}
vendor: 5,208 bytes, line 39
39,m.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){m.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,i=e.handleObj;return r&&(r===this||m.contains(this,r))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}}),m.fn.extend({on:function(e,t,n,r){return ce(this,e,t,n,r)},one:function(e,t,n,r){return ce(this,e,t,n,r,1)},off:function(e,t,n){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,m(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"===r(e)){for(o in e)this.off(o,t,e[o]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=ue),this.each(function(){m.event.remove(this,e,n,t)})}});var de=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,fe=/<script|<style|<link/i,pe=/checked\s*(?:[^=]|=\s*.checked.)/i,he=/^true\/(.*)/,ve=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function me(e,t){return m.nodeName(e,"table")&&m.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function ge(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function ye(e){var t=he.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function be(e,t){var n,r,i,o,a,s,u,l;if(1===t.nodeType){if(R.hasData(e)&&(o=R.access(e),a=R.set(t,o),l=o.events))for(i in delete a.handle,a.events={},l)for(n=0,r=l[i].length;n<r;n++)m.event.add(t,i,l[i][n]);I.hasData(e)&&(s=I.access(e),u=m.extend({},s),I.set(t,u))}}function xe(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Q.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function we(e,t,n,r){t=l.apply([],t);var i,o,a,s,u,c,d=0,f=e.length,p=f-1,h=t[0],g=m.isFunction(h);if(g||f>1&&"string"==typeof h&&!v.checkClone&&pe.test(h))return e.each(function(i){var o=e.eq(i);g&&(t[0]=h.call(this,i,o.html())),we(o,t,n,r)});if(f&&(o=(i=re(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(s=(a=m.map(ee(i,"script"),ge)).length;d<f;d++)u=i,d!==p&&(u=m.clone(u,!0,!0),s&&m.merge(a,ee(u,"script"))),n.call(e[d],u,d);if(s)for(c=a[a.length-1].ownerDocument,m.map(a,ye),d=0;d<s;d++)u=a[d],K.test(u.type||"")&&!R.access(u,"globalEval")&&m.contains(c,u)&&(u.src?m._evalUrl&&m._evalUrl(u.src):m.globalEval(u.textContent.replace(ve,"")))}return e}function Te(e,t,n){for(var r,i=t?m.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||m.cleanData(ee(r)),r.parentNode&&(n&&m.contains(r.ownerDocument,r)&&te(ee(r,"script")),r.parentNode.removeChild(r));return e}m.extend({htmlPrefilter:function(e){return e.replace(de,"<$1></$2>")},clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),u=m.contains(e.ownerDocument,e);if(!(v.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||m.isXMLDoc(e)))for(a=ee(s),r=0,i=(o=ee(e)).length;r<i;r++)xe(o[r],a[r]);if(t)if(n)for(o=o||ee(e),a=a||ee(s),r=0,i=o.length;r<i;r++)be(o[r],a[r]);else be(e,s);return(a=ee(s,"script")).length>0&&te(a,!u&&ee(e,"script")),s},cleanData:function(e){for(var t,n,r,i=m.event.special,o=0;void 0!==(n=e[o]);o++)if(F(n)){if(t=n[R.expando]){if(t.events)for(r in t.events)i[r]?m.event.remove(n,r):m.removeEvent(n,r,t.handle);n[R.expando]=void 0}n[I.expando]&&(n[I.expando]=void 0)}}}),m.fn.extend({domManip:we,detach:function(e){return Te(this,e,!0)},remove:function(e){return Te(this,e)},text:function(e){return M(this,function(e){return void 0===e?m.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return we(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||me(this,e).appendChild(e)})},prepend:function(){return we(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=me(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return we(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return we(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(m.cleanData(ee(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return m.clone(this,e,t)})},html:function(e){return M(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!fe.test(e)&&!Z[(J.exec(e)||["",""])[1].toLowerCase()]){e=m.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(m.cleanData(ee(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return we(this,arguments,function(t){var n=this.parentNode;m.inArray(this,e)<0&&(m.cleanData(ee(this)),n&&n.replaceChild(t,this))},e)}}),m.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){m.fn[e]=function(e){for(var n,r=[],i=m(e),o=i.length-1,a=0;a<=o;
vendor: 4,918 bytes, line 39
39a++)n=a===o?this:this.clone(!0),m(i[a])[t](n),c.apply(r,n.get());return this.pushStack(r)}});var Ce,ke={HTML:"block",BODY:"block"};function Se(e,t){var n=m(t.createElement(e)).appendTo(t.body),r=m.css(n[0],"display");return n.detach(),r}function je(e){var t=s,n=ke[e];return n||("none"!==(n=Se(e,t))&&n||((t=(Ce=(Ce||m("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentDocument).write(),t.close(),n=Se(e,t),Ce.detach()),ke[e]=n),n}var _e=/^margin/,Ee=new RegExp("^("+X+")(?!px)[a-z%]+$","i"),Ne=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=i),t.getComputedStyle(e)},Ae=function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];for(o in i=n.apply(e,r||[]),t)e.style[o]=a[o];return i},De=s.documentElement;function Le(e,t,n){var r,i,o,a,s=e.style;return""!==(a=(n=n||Ne(e))?n.getPropertyValue(t)||n[t]:void 0)&&void 0!==a||m.contains(e.ownerDocument,e)||(a=m.style(e,t)),n&&!v.pixelMarginRight()&&Ee.test(a)&&_e.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o),void 0!==a?a+"":a}function qe(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){var e,t,n,r,o=s.createElement("div"),a=s.createElement("div");function u(){a.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",a.innerHTML="",De.appendChild(o);var s=i.getComputedStyle(a);e="1%"!==s.top,r="2px"===s.marginLeft,t="4px"===s.width,a.style.marginRight="50%",n="4px"===s.marginRight,De.removeChild(o)}a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===a.style.backgroundClip,o.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",o.appendChild(a),m.extend(v,{pixelPosition:function(){return u(),e},boxSizingReliable:function(){return null==t&&u(),t},pixelMarginRight:function(){return null==t&&u(),n},reliableMarginLeft:function(){return null==t&&u(),r},reliableMarginRight:function(){var e,t=a.appendChild(s.createElement("div"));return t.style.cssText=a.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",a.style.width="1px",De.appendChild(o),e=!parseFloat(i.getComputedStyle(t).marginRight),De.removeChild(o),a.removeChild(t),e}}))}();var Pe=/^(none|table(?!-c[ea]).+)/,Oe={position:"absolute",visibility:"hidden",display:"block"},He={letterSpacing:"0",fontWeight:"400"},Me=["Webkit","O","Moz","ms"],Fe=s.createElement("div").style;function We(e){if(e in Fe)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=Me.length;n--;)if((e=Me[n]+t)in Fe)return e}function Re(e,t,n){var r=U.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Ie(e,t,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=m.css(e,n+V[o],!0,i)),r?("content"===n&&(a-=m.css(e,"padding"+V[o],!0,i)),"margin"!==n&&(a-=m.css(e,"border"+V[o]+"Width",!0,i))):(a+=m.css(e,"padding"+V[o],!0,i),"padding"!==n&&(a+=m.css(e,"border"+V[o]+"Width",!0,i)));return a}function $e(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=Ne(e),a="border-box"===m.css(e,"boxSizing",!1,o);if(i<=0||null==i){if(((i=Le(e,t,o))<0||null==i)&&(i=e.style[t]),Ee.test(i))return i;r=a&&(v.boxSizingReliable()||i===e.style[t]),i=parseFloat(i)||0}return i+Ie(e,t,n||(a?"border":"content"),r,o)+"px"}function Be(e,t){for(var n,r,i,o=[],a=0,s=e.length;a<s;a++)(r=e[a]).style&&(o[a]=R.get(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&G(r)&&(o[a]=R.access(r,"olddisplay",je(r.nodeName)))):(i=G(r),"none"===n&&i||R.set(r,"olddisplay",i?n:m.css(r,"display"))));for(a=0;a<s;a++)(r=e[a]).style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}function ze(e,t,n,r,i){return new ze.prototype.init(e,t,n,r,i)}m.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Le(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,a,s,u=m.camelCase(t),l=e.style;if(t=m.cssProps[u]||(m.cssProps[u]=We(u)||u),s=m.cssHooks[t]||m.cssHooks[u],void 0===n)return s&&"get"in s&&void 0!==(o=s.get(e,!1,i))?o:l[t];"string"===(a=r(n))&&(o=U.exec(n))&&o[1]&&(n=Y(e,t,o),a="number"),null!=n&&n==n&&("number"===a&&(n+=o&&o[3]||(m.cssNumber[u]?"":"px")),v.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,i)
vendor: 4,484 bytes, line 39
39)||(l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=m.camelCase(t);return t=m.cssProps[s]||(m.cssProps[s]=We(s)||s),(a=m.cssHooks[t]||m.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Le(e,t,r)),"normal"===i&&t in He&&(i=He[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),m.each(["height","width"],function(e,t){m.cssHooks[t]={get:function(e,n,r){if(n)return Pe.test(m.css(e,"display"))&&0===e.offsetWidth?Ae(e,Oe,function(){return $e(e,t,r)}):$e(e,t,r)},set:function(e,n,r){var i,o=r&&Ne(e),a=r&&Ie(e,t,r,"border-box"===m.css(e,"boxSizing",!1,o),o);return a&&(i=U.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=m.css(e,t)),Re(0,n,a)}}}),m.cssHooks.marginLeft=qe(v.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Le(e,"marginLeft"))||e.getBoundingClientRect().left-Ae(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),m.cssHooks.marginRight=qe(v.reliableMarginRight,function(e,t){if(t)return Ae(e,{display:"inline-block"},Le,[e,"marginRight"])}),m.each({margin:"",padding:"",border:"Width"},function(e,t){m.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+V[r]+t]=o[r]||o[r-2]||o[0];return i}},_e.test(e)||(m.cssHooks[e+t].set=Re)}),m.fn.extend({css:function(e,t){return M(this,function(e,t,n){var r,i,o={},a=0;if(m.isArray(t)){for(r=Ne(e),i=t.length;a<i;a++)o[t[a]]=m.css(e,t[a],!1,r);return o}return void 0!==n?m.style(e,t,n):m.css(e,t)},e,t,arguments.length>1)},show:function(){return Be(this,!0)},hide:function(){return Be(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){G(this)?m(this).show():m(this).hide()})}}),m.Tween=ze,ze.prototype={constructor:ze,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||m.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(m.cssNumber[n]?"":"px")},cur:function(){var e=ze.propHooks[this.prop];return e&&e.get?e.get(this):ze.propHooks._default.get(this)},run:function(e){var t,n=ze.propHooks[this.prop];return this.options.duration?this.pos=t=m.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ze.propHooks._default.set(this),this}},ze.prototype.init.prototype=ze.prototype,ze.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=m.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){m.fx.step[e.prop]?m.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[m.cssProps[e.prop]]&&!m.cssHooks[e.prop]?e.elem[e.prop]=e.now:m.style(e.elem,e.prop,e.now+e.unit)}}},ze.propHooks.scrollTop=ze.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},m.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},m.fx=ze.prototype.init,m.fx.step={};var Xe,Ue,Ve=/^(?:toggle|show|hide)$/,Ge=/queueHooks$/;function Ye(){return i.setTimeout(function(){Xe=void 0}),Xe=m.now()}function Qe(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=V[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function Je(e,t,n){for(var r,i=(Ke.tweeners[t]||[]).concat(Ke.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function Ke(e,t,n){var r,i,o=0,a=Ke.prefilters.length,s=m.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var t=Xe||Ye(),n=Math.max(0,l.startTime+l.duration-t),r=1-(n/l.duration||0),o=0,a=l.tweens.length;o<a;o++)l.tweens[o].run(r);return s.notifyWith(e,[l,r,n]),r<1&&a?n:(s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:m.extend({},t),opts:m.extend(!0,{specialEasing:{},easing:m.easing._default},n),originalProperties:t,originalOptions:n,startTime:Xe||Ye(),duration:n.duration,tweens:[],createTween:function(t,n){var r=m.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return t?(s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l,t])):s.rejectWith(e,[l,t]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=m.camelCase(n)],o=e[n],m.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=m.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[
vendor: 9,866 bytes, line 39
39n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);o<a;o++)if(r=Ke.prefilters[o].call(l,e,c,l.opts))return m.isFunction(r.stop)&&(m._queueHooks(l.elem,l.opts.queue).stop=m.proxy(r.stop,r)),r;return m.map(c,Je,l),m.isFunction(l.opts.start)&&l.opts.start.call(e,l),m.fx.timer(m.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}m.Animation=m.extend(Ke,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return Y(n.elem,e,U.exec(t),n),n}]},tweener:function(e,t){m.isFunction(e)?(t=e,e=["*"]):e=e.match(O);for(var n,r=0,i=e.length;r<i;r++)n=e[r],Ke.tweeners[n]=Ke.tweeners[n]||[],Ke.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c=this,d={},f=e.style,p=e.nodeType&&G(e),h=R.get(e,"fxshow");for(r in n.queue||(null==(s=m._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,u=s.empty.fire,s.empty.fire=function(){s.unqueued||u()}),s.unqueued++,c.always(function(){c.always(function(){s.unqueued--,m.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],"inline"===("none"===(l=m.css(e,"display"))?R.get(e,"olddisplay")||je(e.nodeName):l)&&"none"===m.css(e,"float")&&(f.display="inline-block")),n.overflow&&(f.overflow="hidden",c.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]})),t)if(i=t[r],Ve.exec(i)){if(delete t[r],o=o||"toggle"===i,i===(p?"hide":"show")){if("show"!==i||!h||void 0===h[r])continue;p=!0}d[r]=h&&h[r]||m.style(e,r)}else l=void 0;if(m.isEmptyObject(d))"inline"===("none"===l?je(e.nodeName):l)&&(f.display=l);else for(r in h?"hidden"in h&&(p=h.hidden):h=R.access(e,"fxshow",{}),o&&(h.hidden=!p),p?m(e).show():c.done(function(){m(e).hide()}),c.done(function(){var t;for(t in R.remove(e,"fxshow"),d)m.style(e,t,d[t])}),d)a=Je(p?h[r]:0,r,c),r in h||(h[r]=a.start,p&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}],prefilter:function(e,t){t?Ke.prefilters.unshift(e):Ke.prefilters.push(e)}}),m.speed=function(e,t,n){var i=e&&"object"===r(e)?m.extend({},e):{complete:n||!n&&t||m.isFunction(e)&&e,duration:e,easing:n&&t||t&&!m.isFunction(t)&&t};return i.duration=m.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in m.fx.speeds?m.fx.speeds[i.duration]:m.fx.speeds._default,null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){m.isFunction(i.old)&&i.old.call(this),i.queue&&m.dequeue(this,i.queue)},i},m.fn.extend({fadeTo:function(e,t,n,r){return this.filter(G).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=m.isEmptyObject(e),o=m.speed(t,n,r),a=function(){var t=Ke(this,m.extend({},e),o);(i||R.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=m.timers,a=R.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&Ge.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||m.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=R.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=m.timers,a=r?r.length:0;for(n.finish=!0,m.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),m.each(["toggle","show","hide"],function(e,t){var n=m.fn[t];m.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(Qe(t,!0),e,r,i)}}),m.each({slideDown:Qe("show"),slideUp:Qe("hide"),slideToggle:Qe("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){m.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),m.timers=[],m.fx.tick=function(){var e,t=0,n=m.timers;for(Xe=m.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||m.fx.stop(),Xe=void 0},m.fx.timer=function(e){m.timers.push(e),e()?m.fx.start():m.timers.pop()},m.fx.interval=13,m.fx.start=function(){Ue||(Ue=i.setInterval(m.fx.tick,m.fx.interval))},m.fx.stop=function(){i.clearInterval(Ue),Ue=null},m.fx.speeds={slow:600,fast:200,_default:400},m.fn.delay=function(e,t){return e=m.fx&&m.fx.speeds[e]||e,t=t||"fx",this.queue(t,function(t,n){var r=i.setTimeout(t,e);n.stop=function(){i.clearTimeout(r)}})},function(){var e=s.createElement("input"),t=s.createElement("select"),n=t.appendChild(s.createElement("option"));e.type="checkbox",v.checkOn=""!==e.value,v.optSelected=n.selected,t.disabled=!0,v.optDisabled=!n.disabled,(e=s.createElement("input")).value="t",e.type="radio",v.radioValue="t"===e.value}();var Ze,et=m.expr.attrHandle;m.fn.extend({attr:function(e,t){return M(this,m.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){m.removeAttr(this,e)})}}),m.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?m.prop(e,t,n):(1===o&&m.isXMLDoc(e)||(t=t.toLowerCase(),i=m.attrHooks[t]||(m.expr.match.bool.test(t)?Ze:void 0)),void 0!==n?null===n?void m.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=m.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!v.radioValue&&"radio"===t&&m.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(O);if(o&&1===e.nodeType)for(;n=o[i++];)r=m.propFix[n]||n,m.expr.match.bool.test(n)&&(e[r]=!1),e.removeAttribute(n)}}),Ze={set:function(e,t,n){return!1===t?m.removeAttr(e,n):e.setAttribute(n,n),n}},m.each(m.expr.match.bool.source.match(/\w+/g),function(e,t){var n=et[t]||m.find.attr;et[t]=function(e,t,r){var i,o;return r||(o=et[t],et[t]=i,i=null!=n(e,t,r)?t.toLowerCase():null,et[t]=o),i}});var tt=/^(?:input|select|textarea|button)$/i,nt=/^(?:a|area)$/i;m.fn.extend({prop:function(e,t){return M(this,m.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[m.propFix[e]||e]})}}),m.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&m.isXMLDoc(e)||(t=m.propFix[t]||t,i=m.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=m.find.attr(e,"tabindex");return t?parseInt(t,10):tt.test(e.nodeName)||nt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(m.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),m.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){m.propFix[this.toLowerCase()]=this});var rt=/[\t\r\n\f]/g;function it(e){return e.getAttribute&&e.getAttribute("class")||""}m.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,u=0;if(m.isFunction(e))return this.each(function(t){m(this).addClass(e.call(this,t,it(this)))});if("string"==typeof e&&e)for(t=e.match(O)||[];n=this[u++];)if(i=it(n),r=1===n.nodeType&&(" "+i+" ").replace(rt," ")){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=m.trim(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,u=0;if(m.isFunction(e))return this.each(function(t){m(this).removeClass(e.call(this,t,it(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(O)||[];n=this[u++];)if(i=it(n),r=1===n.nodeType&&(" "+i+" ").replace(rt," ")){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(s=m.trim(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=r(e);return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):m.isFunction(e)?this.each(function(n){m(this).toggleClass(e.call(this,n,it(this),t),t)}):this.each(function(){var t,r,i,o;if("string"===n)for(r=0,i=m(this),o=e.match(O)||[];t=o[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||((t=it(this))&&R.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":R.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+it(n)+" ").replace(rt," ").indexOf(t)>-1)return!0;return!1}});var ot=/\r/g,at=/[\x20\t\r\n\f]+/g;m.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=m.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,m(this).val()):e)?i="":"number"==typeof i?i+="":m.isArray(i)&&(i=m.map(i,function(e){return null==e?"":e+""})),(t=m.valHooks[this.type]||m.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))})):i?(t=m.valHooks[i.type]||m.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(ot,""):null==n?"":n:void 0}}),m.extend({valHooks:{option:{get:function(e){var t=m.find.attr(e,"value");return null!=t?t:m.trim(m.text(e)).replace(at," ")}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||i<0,a=o?null:[],s=o?i+1:r.length,u=i<0?s:o?i:0;u<s;u++)if(((n=r[u]).selected||u===i)&&(v.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!m.nodeName(n.parentNode,"optgroup"))){if(t=m(n).val(),o)return t;a.push(t)}return a}
vendor: 4,560 bytes, line 39
39,set:function(e,t){for(var n,r,i=e.options,o=m.makeArray(t),a=i.length;a--;)((r=i[a]).selected=m.inArray(m.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),m.each(["radio","checkbox"],function(){m.valHooks[this]={set:function(e,t){if(m.isArray(t))return e.checked=m.inArray(m(e).val(),t)>-1}},v.checkOn||(m.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var st=/^(?:focusinfocus|focusoutblur)$/;m.extend(m.event,{trigger:function(e,t,n,o){var a,u,l,c,d,f,p,v=[n||s],g=h.call(e,"type")?e.type:e,y=h.call(e,"namespace")?e.namespace.split("."):[];if(u=l=n=n||s,3!==n.nodeType&&8!==n.nodeType&&!st.test(g+m.event.triggered)&&(g.indexOf(".")>-1&&(g=(y=g.split(".")).shift(),y.sort()),d=g.indexOf(":")<0&&"on"+g,(e=e[m.expando]?e:new m.Event(g,"object"===r(e)&&e)).isTrigger=o?2:3,e.namespace=y.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:m.makeArray(t,[e]),p=m.event.special[g]||{},o||!p.trigger||!1!==p.trigger.apply(n,t))){if(!o&&!p.noBubble&&!m.isWindow(n)){for(c=p.delegateType||g,st.test(c+g)||(u=u.parentNode);u;u=u.parentNode)v.push(u),l=u;l===(n.ownerDocument||s)&&v.push(l.defaultView||l.parentWindow||i)}for(a=0;(u=v[a++])&&!e.isPropagationStopped();)e.type=a>1?c:p.bindType||g,(f=(R.get(u,"events")||{})[e.type]&&R.get(u,"handle"))&&f.apply(u,t),(f=d&&u[d])&&f.apply&&F(u)&&(e.result=f.apply(u,t),!1===e.result&&e.preventDefault());return e.type=g,o||e.isDefaultPrevented()||p._default&&!1!==p._default.apply(v.pop(),t)||!F(n)||d&&m.isFunction(n[g])&&!m.isWindow(n)&&((l=n[d])&&(n[d]=null),m.event.triggered=g,n[g](),m.event.triggered=void 0,l&&(n[d]=l)),e.result}},simulate:function(e,t,n){var r=m.extend(new m.Event,n,{type:e,isSimulated:!0});m.event.trigger(r,null,t)}}),m.fn.extend({trigger:function(e,t){return this.each(function(){m.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return m.event.trigger(e,t,n,!0)}}),m.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){m.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),m.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),v.focusin="onfocusin"in i,v.focusin||m.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){m.event.simulate(t,e.target,m.event.fix(e))};m.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=R.access(r,t);i||r.addEventListener(e,n,!0),R.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=R.access(r,t)-1;i?R.access(r,t,i):(r.removeEventListener(e,n,!0),R.remove(r,t))}}});var ut=i.location,lt=m.now(),ct=/\?/;m.parseJSON=function(e){return JSON.parse(e+"")},m.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new i.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||m.error("Invalid XML: "+e),t};var dt=/#.*$/,ft=/([?&])_=[^&]*/,pt=/^(.*?):[ \t]*([^\r\n]*)$/gm,ht=/^(?:GET|HEAD)$/,vt=/^\/\//,mt={},gt={},yt="*/".concat("*"),bt=s.createElement("a");function xt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(O)||[];if(m.isFunction(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function wt(e,t,n,r){var i={},o=e===gt;function a(s){var u;return i[s]=!0,m.each(e[s]||[],function(e,s){var l=s(t,n,r);return"string"!=typeof l||o||i[l]?o?!(u=l):void 0:(t.dataTypes.unshift(l),a(l),!1)}),u}return a(t.dataTypes[0])||!i["*"]&&a("*")}function Tt(e,t){var n,r,i=m.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&m.extend(!0,e,r),e}bt.href=ut.href,m.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ut.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ut.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":yt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":m.parseJSON,"text xml":m.parseXML}
vendor: 8,478 bytes, line 39
39,flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Tt(Tt(e,m.ajaxSettings),t):Tt(m.ajaxSettings,e)},ajaxPrefilter:xt(mt),ajaxTransport:xt(gt),ajax:function(e,t){"object"===r(e)&&(t=e,e=void 0),t=t||{};var n,o,a,u,l,c,d,f,p=m.ajaxSetup({},t),h=p.context||p,v=p.context&&(h.nodeType||h.jquery)?m(h):m.event,g=m.Deferred(),y=m.Callbacks("once memory"),b=p.statusCode||{},x={},w={},T=0,C="canceled",k={readyState:0,getResponseHeader:function(e){var t;if(2===T){if(!u)for(u={};t=pt.exec(a);)u[t[1].toLowerCase()]=t[2];t=u[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===T?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return T||(e=w[n]=w[n]||e,x[e]=t),this},overrideMimeType:function(e){return T||(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(T<2)for(t in e)b[t]=[b[t],e[t]];else k.always(e[k.status]);return this},abort:function(e){var t=e||C;return n&&n.abort(t),S(0,t),this}};if(g.promise(k).complete=y.add,k.success=k.done,k.error=k.fail,p.url=((e||p.url||ut.href)+"").replace(dt,"").replace(vt,ut.protocol+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=m.trim(p.dataType||"*").toLowerCase().match(O)||[""],null==p.crossDomain){c=s.createElement("a");try{c.href=p.url,c.href=c.href,p.crossDomain=bt.protocol+"//"+bt.host!=c.protocol+"//"+c.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=m.param(p.data,p.traditional)),wt(mt,p,t,k),2===T)return k;for(f in(d=m.event&&p.global)&&0==m.active++&&m.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!ht.test(p.type),o=p.url,p.hasContent||(p.data&&(o=p.url+=(ct.test(o)?"&":"?")+p.data,delete p.data),!1===p.cache&&(p.url=ft.test(o)?o.replace(ft,"$1_="+lt++):o+(ct.test(o)?"&":"?")+"_="+lt++)),p.ifModified&&(m.lastModified[o]&&k.setRequestHeader("If-Modified-Since",m.lastModified[o]),m.etag[o]&&k.setRequestHeader("If-None-Match",m.etag[o])),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&k.setRequestHeader("Content-Type",p.contentType),k.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+yt+"; q=0.01":""):p.accepts["*"]),p.headers)k.setRequestHeader(f,p.headers[f]);if(p.beforeSend&&(!1===p.beforeSend.call(h,k,p)||2===T))return k.abort();for(f in C="abort",{success:1,error:1,complete:1})k[f](p[f]);if(n=wt(gt,p,t,k)){if(k.readyState=1,d&&v.trigger("ajaxSend",[k,p]),2===T)return k;p.async&&p.timeout>0&&(l=i.setTimeout(function(){k.abort("timeout")},p.timeout));try{T=1,n.send(x,S)}catch(e){if(!(T<2))throw e;S(-1,e)}}else S(-1,"No Transport");function S(e,t,r,s){var u,c,f,x,w,C=t;2!==T&&(T=2,l&&i.clearTimeout(l),n=void 0,a=s||"",k.readyState=e>0?4:0,u=e>=200&&e<300||304===e,r&&(x=function(e,t,n){for(var r,i,o,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(p,k,r)),x=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(p,x,k,u),u?(p.ifModified&&((w=k.getResponseHeader("Last-Modified"))&&(m.lastModified[o]=w),(w=k.getResponseHeader("etag"))&&(m.etag[o]=w)),204===e||"HEAD"===p.type?C="nocontent":304===e?C="notmodified":(C=x.state,c=x.data,u=!(f=x.error))):(f=C,!e&&C||(C="error",e<0&&(e=0))),k.status=e,k.statusText=(t||C)+"",u?g.resolveWith(h,[c,C,k]):g.rejectWith(h,[k,C,f]),k.statusCode(b),b=void 0,d&&v.trigger(u?"ajaxSuccess":"ajaxError",[k,p,u?c:f]),y.fireWith(h,[k,C]),d&&(v.trigger("ajaxComplete",[k,p]),--m.active||m.event.trigger("ajaxStop")))}return k},getJSON:function(e,t,n){return m.get(e,t,n,"json")},getScript:function(e,t){return m.get(e,void 0,t,"script")}}),m.each(["get","post"],function(e,t){m[t]=function(e,n,r,i){return m.isFunction(n)&&(i=i||r,r=n,n=void 0),m.ajax(m.extend({url:e,type:t,dataType:i,data:n,success:r},m.isPlainObject(e)&&e))}}),m._evalUrl=function(e){return m.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},m.fn.extend({wrapAll:function(e){var t;return m.isFunction(e)?this.each(function(t){m(this).wrapAll(e.call(this,t))}):(this[0]&&(t=m(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return m.isFunction(e)?this.each(function(t){m(this).wrapInner(e.call(this,t))}):this.each(function(){var t=m(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=m.isFunction(e);return this.each(function(n){m(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){m.nodeName(this,"body")||m(this).replaceWith(this.childNodes)}).end()}}),m.expr.filters.hidden=function(e){return!m.expr.filters.visible(e)},m.expr.filters.visible=function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0};var Ct=/%20/g,kt=/\[\]$/,St=/\r?\n/g,jt=/^(?:submit|button|image|reset|file)$/i,_t=/^(?:input|select|textarea|keygen)/i;function Et(e,t,n,i){var o;if(m.isArray(t))m.each(t,function(t,o){n||kt.test(e)?i(e,o):Et(e+"["+("object"===r(o)&&null!=o?t:"")+"]",o,n,i)});else if(n||"object"!==m.type(t))i(e,t);else for(o in t)Et(e+"["+o+"]",t[o],n,i)}m.param=function(e,t){var n,r=[],i=function(e,t){t=m.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=m.ajaxSettings&&m.ajaxSettings.traditional),m.isArray(e)||e.jquery&&!m.isPlainObject(e))m.each(e,function(){i(this.name,this.value)});else for(n in e)Et(n,e[n],t,i);return r.join("&").replace(Ct,"+")},m.fn.extend({serialize:function(){return m.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=m.prop(this,"elements");return e?m.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!m(this).is(":disabled")&&_t.test(this.nodeName)&&!jt.test(e)&&(this.checked||!Q.test(e))}).map(function(e,t){var n=m(this).val();return null==n?null:m.isArray(n)?m.map(n,function(e){return{name:t.name,value:e.replace(St,"\r\n")}}):{name:t.name,value:n.replace(St,"\r\n")}}).get()}}),m.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(e){}};var Nt={0:200,1223:204},At=m.ajaxSettings.xhr();v.cors=!!At&&"withCredentials"in At,v.ajax=At=!!At,m.ajaxTransport(function(e){var t,n;if(v.cors||At&&!e.crossDomain)return{send:function(r,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)s.setRequestHeader(a,r[a]);t=function(e){return function(){t&&(t=n=s.onload=s.onerror=s.onabort=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Nt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),n=s.onerror=t("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&i.setTimeout(function(){t&&n()})},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),m.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return m.globalEval(e),e}}}),m.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),m.ajaxTransport("script",function(e){var t,n;if(e.crossDomain)return{send:function(r,i){t=m("<script>
39").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),s.head.appendChild(t[0])},abort:function(){n&&n()}}});var Dt=[],Lt=/(=)\?(?=&|$)|\?\?/;m.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Dt.pop()||m.expando+"_"+lt++;return this[e]=!0,e}}),m.ajaxPrefilter("json jsonp",function(e,t,n){var r,o,a,s=!1!==e.jsonp&&(Lt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Lt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Lt,"$1"+r):!1!==e.jsonp&&(e.url+=(ct.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return a||m.error(r+" was not called"),a[0]},e.dataTypes[0]="json",o=i[r],i[r]=function(){a=arguments},n.always(function(){void 0===o?m(i).removeProp(r):i[r]=o,e[r]&&(e.jsonpCallback=t.jsonpCallback,Dt.push(r)),a&&m.isFunction(o)&&o(a[0]),a=o=void 0}),"script"}),m.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||s;var r=j.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=re([e],t,i),i&&i.length&&m(i).remove(),m.merge([],r.childNodes))};var qt=m.fn.load;function Pt(e){return m.isWindow(e)?e:9===e.nodeType&&e.defaultView}m.fn.load=function(e,t,n){if("string"!=typeof e&&qt)return qt.apply(this,arguments);var i,o,a,s=this,u=e.indexOf(" ");return u>-1&&(i=m.trim(e.slice(u)),e=e.slice(0,u)),m.isFunction(t)?(n=t,t=void 0):t&&"object"===r(t)&&(o="POST"),s.length>0&&m.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done(function(e){a=arguments,s.html(i?m("<div>").append(m.parseHTML(e)).find(i):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,a||[e.responseText,t,e])})}),this},m.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){m.fn[t]=function(e){return this.on(t,e)}}),m.expr.filters.animated=function(e){return m.grep(m.timers,function(t){return e===t.elem}).length},m.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=m.css(e,"position"),c=m(e),d={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=m.css(e,"top"),u=m.css(e,"left"),("absolute"===l||"fixed"===l)&&(o+u).indexOf("auto")>-1?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m.isFunction(t)&&(t=t.call(e,n,m.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+i),"using"in t?t.using.call(e,d):c.css(d)}},m.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){m.offset.setOffset(this,e,t)});var t,n,r=this[0],i={top:0,left:0},o=r&&r.ownerDocument;return o?(t=o.documentElement,m.contains(t,r)?(i=r.getBoundingClientRect(),n=Pt(o),{top:i.top+n.pageYOffset-t.clientTop,left:i.left+n.pageXOffset-t.clientLeft}):i):void 0},position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===m.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),m.nodeName(e[0],"html")||(r=e.offset()),r.top+=m.css(e[0],"borderTopWidth",!0),r.left+=m.css(e[0],"borderLeftWidth",!0)),{top:t.top-r.top-m.css(n,"marginTop",!0),left:t.left-r.left-m.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===m.css(e,"position");)e=e.offsetParent;return e||De})}}),m.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;m.fn[e]=function(r){return M(this,function(e,r,i){var o=Pt(e);if(void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i},e,r,arguments.length)}}),m.each(["top","left"],function(e,t){m.cssHooks[t]=qe(v.pixelPosition,function(e,n){if(n)return n=Le(e,t),Ee.test(n)?m(e).position()[t]+"px":n})}),m.each({Height:"height",Width:"width"},function(e,t){m.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){m.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===i?"margin":"border");return M(this,function(t,n,r){var i;return m.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===r?m.css(t,n,a):m.style(t,n,r,a)},t,o?r:void 0,o,null)}})}),m.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},size:function(){return this.length}}),m.fn.andSelf=m.fn.addBack,void 0===(n=function(){return m}
39.apply(t,[]))||(e.exports=n);var Ot=i.jQuery,Ht=i.$;return m.noConflict=function(e){return i.$===m&&(i.$=Ht),e&&i.jQuery===m&&(i.jQuery=Ot),m},o||(i.jQuery=i.$=m),m})}).call(this,n(5)(e))},function(e,t){e.exports=prestashop},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.psShowHide= 40/** 41 * 2007-2019 PrestaShop and Contributors 42 * 43 * NOTICE OF LICENSE 44 * 45 * This source file is subject to the Open Software License (OSL 3.0) 46 * that is bundled with this package in the file LICENSE.txt. 47 * It is also available through the world-wide-web at this URL: 48 * https://opensource.org/licenses/OSL-3.0 49 * If you did not receive a copy of the license and are unable to 50 * obtain it through the world-wide-web, please send an email 51 * to [email protected] so we can send you a copy immediately. 52 * 53 * DISCLAIMER 54 * 55 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer 56 * versions in the future. If you wish to customize PrestaShop for your 57 * needs please refer to https://www.prestashop.com for more information. 58 * 59 * @author PrestaShop SA <[email protected]> 60 * @copyright 2007-2019 PrestaShop SA and Contributors 61 * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) 62 * International Registered Trademark & Property of PrestaShop SA 63 */ 64function(){(0,r.default)(".ps-shown-by-js").show(),(0,r.default)(".ps-hidden-by-js").hide()},t.psGetRequestParameter=i,t.refreshCheckoutPage=function(){if(null!==i("updatedTransaction"))window.location.reload();else{var e=i();e.updatedTransaction=1;var t=[];for(var n in e){var r=e[n];t.push(n+"="+r)}window.location.href=window.location.pathname+"?"+t.join("&")}};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0));function i(e){var t={};return window.location.href.replace(location.hash,"").replace(/[?&]+([^=&]+)=?([^&]*)?/gi,function(e,n,r){t[n]=void 0!==r?r:""}),void 0!==e?t[e]?t[e]:null:t}},function(e,t,n){e.exports=n(4)},function(e,t,n){"use strict";var r=s(n(0));n(6),n(7),n(11),n(12),n(13),n(14);var i=s(n(1)),o=s(n(15)),a=n(2);function s(e){return e&&e.__esModule?e:{default:e}}for(var u in window.$=r.default,window.jQuery=r.default,o.default.prototype)i.default[u]=o.default.prototype[u];(0,r.default)(document).ready(function(){(0,a.psShowHide)()})},function(e,t,n){"use strict";e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";var r=a(n(0)),i=a(n(1)),o=n(2);function a(e){return e&&e.__esModule?e:{default:e}} 65/** 66 * 2007-2019 PrestaShop and Contributors 67 * 68 * NOTICE OF LICENSE 69 * 70 * This source file is subject to the Open Software License (OSL 3.0) 71 * that is bundled with this package in the file LICENSE.txt. 72 * It is also available through the world-wide-web at this URL: 73 * https://opensource.org/licenses/OSL-3.0 74 * If you did not receive a copy of the license and are unable to 75 * obtain it through the world-wide-web, please send an email 76 * to [email protected] so we can send you a copy immediately. 77 * 78 * DISCLAIMER 79 * 80 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer 81 * versions in the future. If you wish to customize PrestaShop for your 82 * needs please refer to https://www.prestashop.com for more information. 83 * 84 * @author PrestaShop SA <[email protected]> 85 * @copyright 2007-2019 PrestaShop SA and Contributors 86 * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) 87 * International Registered Trademark & Property of PrestaShop SA 88 */(0,r.default)(document).ready(function(){i.default.on("updateCart",function(e){i.default.cart=e.reason.cart;var t=(0,r.default)(".js-cart").data("refresh-url");if(t){var n={};e&&e.reason&&(n={id_product_attribute:e.reason.idProductAttribute,id_product:e.reason.idProduct}),r.default.post(t,n).then(function(e){(0,r.default)(".cart-detailed-totals").replaceWith(e.cart_detailed_totals),(0,r.default)(".cart
88-summary-items-subtotal").replaceWith(e.cart_summary_items_subtotal),(0,r.default)(".cart-summary-subtotals-container").replaceWith(e.cart_summary_subtotals_container),(0,r.default)(".cart-summary-totals").replaceWith(e.cart_summary_totals),(0,r.default)(".cart-detailed-actions").replaceWith(e.cart_detailed_actions),(0,r.default)(".cart-voucher").replaceWith(e.cart_voucher),(0,r.default)(".cart-overview").replaceWith(e.cart_detailed),(0,r.default)("#product_customization_id").val(0),(0,r.default)(".js-cart-line-product-quantity").each(function(e,t){var n=(0,r.default)(t);n.attr("value",n.val())}),(0,r.default)(".js-cart-payment-step-refresh").length&&(0,o.refreshCheckoutPage)(),i.default.emit("updatedCart",{eventType:"updateCart",resp:e})}).fail(function(e){i.default.emit("handleError",{eventType:"updateCart",resp:e})})}});var e=(0,r.default)("body");e.on("click",'[data-button-action="add-to-cart"]',function(e){if(e.preventDefault(),(0,r.default)("#quantity_wanted").val()>(0,r.default)("[data-stock]").data("stock")&&0===(0,r.default)("[data-allow-oosp]").data("allow-oosp").length)(0,r.default)('[data-button-action="add-to-cart"]').attr("disabled","disabled");else{var t=(0,r.default)(e.target).closest("form"),n=t.serialize()+"&add=1&action=update",o=t.attr("action"),a=function(e){e.parents(".product-add-to-cart").first().find(".product-minimal-quantity").addClass("error"),e.parent().find("label").addClass("error")},s=t.find("input[min]");if(!function(e){var t=!0;return e.each(function(e,n){var i=(0,r.default)(n),o=parseInt(i.attr("min"),10);o&&i.val()<o&&(a(i),t=!1)}),t}(s))return void a(s);r.default.post(o,n,null,"json").then(function(e){i.default.emit("updateCart",{reason:{idProduct:e.id_product,idProductAttribute:e.id_product_attribute,idCustomization:e.id_customization,linkAction:"add-to-cart",cart:e.cart},resp:e})}).fail(function(e){i.default.emit("handleError",{eventType:"addProductToCart",resp:e})})}}),e.on("submit",'[data-link-action="add-voucher"]',function(e){e.preventDefault();var t=(0,r.default)(e.currentTarget),n=t.attr("action");0===t.find("[name=action]").length&&t.append((0,r.default)("<input>",{type:"hidden",name:"ajax",value:1})),0===t.find("[name=action]").length&&t.append((0,r.default)("<input>",{type:"hidden",name:"action",value:"update"})),r.default.post(n,t.serialize(),null,"json").then(function(t){t.hasError?(0,r.default)(".js-error").show().find(".js-error-text").text(t.errors[0]):i.default.emit("updateCart",{reason:e.target.dataset,resp:t})}).fail(function(e){i.default.emit("handleError",{eventType:"updateCart",resp:e})})})})},function(e,t,n){"use strict";var r=u(n(0)),i=u(n(1)),o=u(n(8)),a=u(n(9)),s=u(n(10));function u(e){return e&&e.__esModule?e:{default:e}} 89/** 90 * 2007-2019 PrestaShop and Contributors 91 * 92 * NOTICE OF LICENSE 93 * 94 * This source file is subject to the Open Software License (OSL 3.0) 95 * that is bundled with this package in the file LICENSE.txt. 96 * It is also available through the world-wide-web at this URL: 97 * https://opensource.org/licenses/OSL-3.0 98 * If you did not receive a copy of the license and are unable to 99 * obtain it through the world-wide-web, please send an email 100 * to [email protected] so we can send you a copy immediately. 101 * 102 * DISCLAIMER 103 * 104 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer 105 * versions in the future. If you wish to customize PrestaShop for your 106 * needs please refer to https://www.prestashop.com for more information. 107 * 108 * @author PrestaShop SA <[email protected]> 109 * @copyright 2007-2019 PrestaShop SA and Contributors 110 * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) 111 * International Registered Trademark & Property of PrestaShop SA 112 */function l(){(0,o.default)(),(0,a.default)(),(0,s.default)(),function(){(0,r.default)(".checkout-step").off("click");(0,r.default)(".js-current-step").prevAll().on("click",function(e){var t=(0,r.default)(e.target).closest(".checkout-step");if(!t.hasClass("-unreachable")){(0,r.default)(".js-current-step, .-current").removeClass("js-current-step -current"),t.toggleClass("-current"),t.toggleClass("js-current-step");var n=t.nextAll();n.addClass("-unreachable").removeClass("-complete"),(0,r.default)(".step-title",n).addClass("not-allowed")}i.default.emit("changedCheckoutStep",{event:e})})}()}(0,r.default)(document).ready(function(){1===(0,r.default)("#checkout").length&&l()})},function(e,t,n){"use strict";
112Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){(0,r.default)(".js-edit-addresses").on("click",function(e){e.stopPropagation(),(0,r.default)("#checkout-addresses-step").trigger("click"),i.default.emit("editAddress")}),(0,r.default)("#delivery-addresses input[type=radio], #invoice-addresses input[type=radio]").on("click",function(){(0,r.default)(".address-item").removeClass("selected"),(0,r.default)(".address-item:has(input[type=radio]:checked)").addClass("selected");var e=(0,r.default)(".js-address-error").prop("id").split("-").pop(),t=(0,r.default)("#not-valid-addresses").val(),n=this.name.split("_").pop(),i=(0,r.default)(".js-address-error[name=alert-"+n+"]");l(!1,e,n),""!==t&&null===s&&t.split(",").indexOf(this.value)>=0?(i.show(),l(!0,this.value,n),(0,r.default)(".js-address-error").prop("id","id-failure-address-"+this.value)):i.hide();var o=(0,r.default)(".js-address-error:visible");c(o.length<=0)})};var r=a(n(0)),i=a(n(1)),o=n(2);function a(e){return e&&e.__esModule?e:{default:e}} 113/** 114 * 2007-2019 PrestaShop and Contributors 115 * 116 * NOTICE OF LICENSE 117 * 118 * This source file is subject to the Open Software License (OSL 3.0) 119 * that is bundled with this package in the file LICENSE.txt. 120 * It is also available through the world-wide-web at this URL: 121 * https://opensource.org/licenses/OSL-3.0 122 * If you did not receive a copy of the license and are unable to 123 * obtain it through the world-wide-web, please send an email 124 * to [email protected] so we can send you a copy immediately. 125 * 126 * DISCLAIMER 127 * 128 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer 129 * versions in the future. If you wish to customize PrestaShop for your 130 * needs please refer to https://www.prestashop.com for more information. 131 * 132 * @author PrestaShop SA <[email protected]> 133 * @copyright 2007-2019 PrestaShop SA and Contributors 134 * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) 135 * International Registered Trademark & Property of PrestaShop SA 136 */var s=(0,o.psGetRequestParameter)("editAddress"),u=(0,o.psGetRequestParameter)("use_same_address");(0,r.default)(window).on("load",function(){var e=(0,r.default)(".js-address-error:visible");if(0===parseInt(u)&&(0,r.default)("#invoice-addresses input[type=radio]:checked").trigger("click"),(null!==s||(0,r.default)(".js-address-form:visible").length>1)&&e.hide(),e.length>0){var t=(0,r.default)(".js-address-error").prop("id").split("-").pop();e.each(function(){l(!0,t,(0,r.default)(this).attr("name").split("-").pop())})}e=(0,r.default)(".js-address-error:visible"),c(e.length<=0)});var l=function(e,t,n){var i="#7a7a7a";e&&((0,r.default)("#"+n+"-addresses a.edit-address").prop("style","color: #7a7a7a !important"),i="#2fb5d2"),(0,r.default)("#id-address-"+n+"-address-"+t+" a.edit-address").prop("style","color: "+i+" !important")},c=function(e){(0,r.default)("button[name=confirm-addresses]").prop("disabled",!e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default= 137/** 138 * 2007-2019 PrestaShop and Contributors 139 * 140 * NOTICE OF LICENSE 141 * 142 * This source file is subject to the Open Software License (OSL 3.0) 143 * that is bundled with this package in the file LICENSE.txt. 144 * It is also available through the world-wide-web at this URL: 145 * https://opensource.org/licenses/OSL-3.0 146 * If you did not receive a copy of the license and are unable to 147 * obtain it through the world-wide-web, please send an email 148 * to [email protected] so we can send you a copy immediately. 149 * 150 * DISCLAIMER 151 * 152 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer 153 * versions in the future. If you wish to customize PrestaShop for your 154 * needs please refer to https://www.prestashop.com for more information. 155 * 156 * @author PrestaShop SA <[email protected]> 157 * @copyright 2007-2019 PrestaShop SA and Contributors 158 * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) 159 * International Registered Trademark & Property of PrestaShop SA 160 */ 161function(){var e=(0,r.default)("body");e.on("change","#js-delivery input",function(e){var t=(0,r.default)("#js-delivery"),n=t.serialize(),a=(0,r.default)(e.currentTarget).parents("div.delivery-option");r.default.post(t.data("url-update"),n).then(function(e){(0,r.default)("#js-checkout-summary").replaceWith(e.preview),(0,r.default)(".js-cart-payment-step-refresh").length&&(0,o.refreshCheckoutPage)(),i.default.emit("updatedDeliveryForm",{dataForm:t.serializeArray(),deliveryOption:a,resp:e})}).fail(function(e){i.default.trigger("handleError",{eventType:"updateDeliveryOptions",resp:e})})}),e.on("click",".js-edit-delivery",function(e){e.stopPropagation(),(0,r.default)("#checkout-delivery-step").trigger("click"),i.default.emit("editDelivery")})};var r=a(n(0)),i=a(n(1)),o=n(2);
161function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=new o;return e.init(),e};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0));function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.confirmationSelector="#payment-confirmation",this.paymentSelector="#payment-section",this.conditionsSelector="#conditions-to-approve",this.conditionAlertSelector=".js-alert-payment-conditions",this.additionalInformatonSelector=".js-additional-information",this.optionsForm=".js-payment-option-form"}return function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(e,[{key:"init",value:function(){(0,r.default)(this.paymentSelector+' input[type="checkbox"][disabled]').attr("disabled",!1);var e=(0,r.default)("body");e.on("change",this.conditionsSelector+' input[type="checkbox"]',r.default.proxy(this.toggleOrderButton,this)),e.on("change",'input[name="payment-option"]',r.default.proxy(this.toggleOrderButton,this)),e.on("click",this.confirmationSelector+" button",r.default.proxy(this.confirm,this)),this.collapseOptions()}},{key:"collapseOptions",value:function(){(0,r.default)(this.additionalInformatonSelector+", "+this.optionsForm).hide()}},{key:"getSelectedOption",value:function(){return(0,r.default)('input[name="payment-option"]:checked').attr("id")}},{key:"hideConfirmation",value:function(){(0,r.default)(this.confirmationSelector).hide()}},{key:"showConfirmation",value:function(){(0,r.default)(this.confirmationSelector).show()}},{key:"toggleOrderButton",value:function(){var e=!0;(0,r.default)(this.conditionsSelector+' input[type="checkbox"]').each(function(t,n){n.checked||(e=!1)}),this.collapseOptions();var t=this.getSelectedOption();if(t||(e=!1),(0,r.default)("#"+t+"-additional-information").show(),(0,r.default)("#pay-with-"+t+"-form").show(),(0,r.default)(".js-payment-binary").hide(),(0,r.default)("#"+t).hasClass("binary")){var n=this.getPaymentOptionSelector(t);this.hideConfirmation(),(0,r.default)(n).show(),e?(0,r.default)(n).removeClass("disabled"):(0,r.default)(n).addClass("disabled")}else this.showConfirmation(),(0,r.default)(this.confirmationSelector+" button").attr("disabled",!e),e?(0,r.default)(this.conditionAlertSelector).hide():(0,r.default)(this.conditionAlertSelector).show()}},{key:"getPaymentOptionSelector",value:function(e){var t=(0,r.default)("#".concat(e)).data("module-name");return".js-payment-".concat(t)}},{key:"confirm",value:function(){var e=this.getSelectedOption();e&&((0,r.default)(this.confirmationSelector+" button").prop("disabled",!0),(0,r.default)("#pay-with-"+e+"-form form").submit())}}]),e}()},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{default:e}} 162/** 163 * 2007-2019 PrestaShop and Contributors 164 * 165 * NOTICE OF LICENSE 166 * 167 * This source file is subject to the Open Software License (OSL 3.0) 168 * that is bundled with this package in the file LICENSE.txt. 169 * It is also available through the world-wide-web at this URL: 170 * https://opensource.org/licenses/OSL-3.0 171 * If you did not receive a copy of the license and are unable to 172 * obtain it through the world-wide-web, please send an email 173 * to [email protected] so we can send you a copy immediately. 174 * 175 * DISCLAIMER 176 * 177 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer 178 * versions in the future. If you wish to customize PrestaShop for your 179 * needs please refer to https://www.prestashop.com for more information. 180 * 181 * @author PrestaShop SA <[email protected]> 182 * @copyright 2007-2019 PrestaShop SA and Contributors 183 * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) 184 * International Registered Trademark & Property of PrestaShop SA 185 */(n(0));var i=!1;function o(e){i=!1,prestashop.emit("updateProductList",e),window.history.pushState(e,document.title,e.current_url)}function a(){i=!1}(0,r.default)(document).ready(function(){prestashop.on("updateFacets",function(e){!function(e){if(i);else{var t=[e,e.indexOf("?")>=0?"&":"?","from-xhr"].join("");r.default.get(t,null,null,"json").then(o).fail(a)}}(e)})})},function(e,t,n){"use strict";var r=o(n(0)),i=o(n(1));
185function o(e){return e&&e.__esModule?e:{default:e}} 186/** 187 * 2007-2019 PrestaShop and Contributors 188 * 189 * NOTICE OF LICENSE 190 * 191 * This source file is subject to the Open Software License (OSL 3.0) 192 * that is bundled with this package in the file LICENSE.txt. 193 * It is also available through the world-wide-web at this URL: 194 * https://opensource.org/licenses/OSL-3.0 195 * If you did not receive a copy of the license and are unable to 196 * obtain it through the world-wide-web, please send an email 197 * to [email protected] so we can send you a copy immediately. 198 * 199 * DISCLAIMER 200 * 201 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer 202 * versions in the future. If you wish to customize PrestaShop for your 203 * needs please refer to https://www.prestashop.com for more information. 204 * 205 * @author PrestaShop SA <[email protected]> 206 * @copyright 2007-2019 PrestaShop SA and Contributors 207 * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) 208 * International Registered Trademark & Property of PrestaShop SA 209 */(0,r.default)(document).ready(function(){(0,r.default)("body").on("click",".quick-view",function(e){i.default.emit("clickQuickView",{dataset:(0,r.default)(e.target).closest(".js-product-miniature").data()}),e.preventDefault()})})},function(e,t,n){"use strict";var r=a(n(0)),i=a(n(1)),o=n(2);function a(e){return e&&e.__esModule?e:{default:e}} 210/** 211 * 2007-2019 PrestaShop and Contributors 212 * 213 * NOTICE OF LICENSE 214 * 215 * This source file is subject to the Open Software License (OSL 3.0) 216 * that is bundled with this package in the file LICENSE.txt. 217 * It is also available through the world-wide-web at this URL: 218 * https://opensource.org/licenses/OSL-3.0 219 * If you did not receive a copy of the license and are unable to 220 * obtain it through the world-wide-web, please send an email 221 * to [email protected] so we can send you a copy immediately. 222 * 223 * DISCLAIMER 224 * 225 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer 226 * versions in the future. If you wish to customize PrestaShop for your 227 * needs please refer to https://www.prestashop.com for more information. 228 * 229 * @author PrestaShop SA <[email protected]> 230 * @copyright 2007-2019 PrestaShop SA and Contributors 231 * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) 232 * International Registered Trademark & Property of PrestaShop SA 233 */var s=null,u=null;function l(e,t,n){var a=(0,r.default)(".product-actions"),l=a.find("#quantity_wanted"),f=a.find("form:first").serialize(),p=(0,o.psGetRequestParameter)("preview");if(p=null!==p?"&preview="+p:"",null!==n){if(!e||"keyup"!==e.type||l.val()!==l.data("old-value")){l.data("old-value",l.val()),u&&clearTimeout(u);var h=30;"updatedProductQuantity"===t&&(h=750),u=setTimeout(function(){""!==f&&(s=r.default.ajax({url:n+(-1===n.indexOf("?")?"?":"&")+f+p,method:"POST",data:{ajax:1,action:"refresh",quantity_wanted:"updatedProductCombination"===t?l.attr("min"):l.val()},dataType:"json",beforeSend:function(){null!==s&&s.abort()},error:function(e,t,n){"abort"!==t&&0===(0,r.default)("section#main > .ajax-error").length&&d((0,r.default)("#product-availability"),"An error occurred while processing your request")},success:function(e,n,o){var a=(0,r.default)("<div>").append(e.product_cover_thumbnails);(0,r.default)(".images-container").html()!==a.find(".images-container").html()&&(0,r.default)(".images-container").replaceWith(e.product_cover_thumbnails),(0,r.default)(".product-prices").replaceWith(e.product_prices),(0,r.default)(".product-customization").replaceWith(e.product_customization),(0,r.default)(".product-variants").replaceWith(e.product_variants),(0,r.default)(".product-discounts").replaceWith(e.product_discounts),(0,r.default)(".product-additional-info").replaceWith(e.product_additional_info),(0,r.default)("#product-details").replaceWith(e.product_details),(0,r.default)(".product-flags").replaceWith(e.product_flags),function(e){var t=null;(0,r.default)(e.product_add_to_cart).each(function(e,n){if((0,r.default)(n).hasClass("product-add-to-cart"))return t=(0,r.default)(n),!1}),null===t&&d((0,r.default)("#product-availability"),"An error occurred while processing your request");var n=(0,r.default)(".product-add-to-cart");c({$addToCartSnippet:t,$targetParent:n,targetSelector:".add"}),c({$addToCartSnippet:t,$targetParent:n,targetSelector:"#product-availability"}),c({$addToCartSnippet:t,$targetParent:n,targetSelector:".product-minimal-quantity"})}(e);var s=parseInt(e.product_minimal_quantity,10);isNaN(s)||"updatedProductQuantity"===t||(l.attr("min",s),l.val(s)),i.default.emit("updatedProduct",e)},complete:function(e,t){s=null,u=null}}))}.bind(s,u),h)}}else d((0,r.default)("#product-availability"),"An error occurred while processing your request")}function c(e){var t=(0,r.default)(e.$targetParent.find(e.targetSelector));if(!(t.length<=0)){var n=e.$addToCartSnippet.find(e.targetSelector);n.length>0?t.replaceWith(n[0].outerHTML):t.html("")}}function d(e,t){var n=(0,r.default)('<div class="alert alert-danger ajax-error" role="alert">'.concat(t,"</div>"));e.replaceWith(n)}(0,r.default)(document).ready(function(){(0,r.default)("body").on("change touchspin.on.startspin",".product-variants *[name]",function(e){i.default.emit("updateProduct",{eventType:"updatedProductCombination",event:e,resp:{},reason:{productUrl:i.default.urls.pages.product||""}})}),(0,r.default)("body").on("click",".product-refresh",function(e,t){e.preventDefault();var n="updatedProductCombination";void 0!==t&&t.eventType&&(n=t.eventType),i.default.emit("updateProduct",{eventType:n,event:e,resp:{},reason:{productUrl:i.default.urls.pages.product||""}})}),i.default.on("updateProduct",function(e){var t=e.eventType,n=e.event;(function(){var e=r.default.Deferred(),t=(0,r.default)(".product-actions"),n=(0,r.default)("#quantity_wanted");if(null!==i.default&&null!==i.default.urls&&null!==i.default.urls.pages&&""!==i.default.urls.pages.product&&null!==i.default.urls.pages.product)return e.resolve(i.default.urls.pages.product),e.promise();var o={};return(0,r.default)(t.find("form:first").serializeArray()).each(function(e,t){o[t.name]=t.value}),r.default.ajax({url:t.find("form:first").attr("action"),method:"POST",data:Object.assign({ajax:1,action:"productrefresh",quantity_wanted:n.val()},o),dataType:"json",success:function(t){var n=t.productUrl;i.default.page.canonical=n,e.resolve(n)},error:function(t,n,r){e.reject({jqXHR:t,textStatus:n,errorThrown:r})}}),e.promise()})().done(function(e){return l(n,t,e)}).fail(function(){0===(0,r.default)("section#main > .ajax-error").length&&d((0,r.default)("#product-availability"),"An error occurred while processing your request")})}),i.default.on("updatedProduct",function(e){if(e.product_url&&e.id_product_attribute&&!(0,r.default)(".modal.quickview").length){var t=document.title;e.product_title&&(t=e.product_title,(0,r.default)(document).attr("title",t)),window.history.replaceState({id_product_attribute:e.id_product_attribute},t,e.product_url)}}),i.default.on("updateCart",function(e){e&&e.reason&&"add-to-cart"===e.reason.linkAction&&(0,r.default)("#quantity_wanted").val(1)})})},function(e,t,n){"use strict";var r=o(n(0)),i=o(n(1));
233function o(e){return e&&e.__esModule?e:{default:e}}(0,r.default)(document).ready(function(){!function(e){(0,r.default)("body").on("change",e.country,function(){var t={id_country:(0,r.default)(e.country).val(),id_address:(0,r.default)(e.address+" form").data("id-address")},n=(0,r.default)(e.address+" form").data("refresh-url"),o=e.address+" input";r.default.post(n,t).then(function(t){var n=[];(0,r.default)(o).each(function(){n[(0,r.default)(this).prop("name")]=(0,r.default)(this).val()}),(0,r.default)(e.address).replaceWith(t.address_form),(0,r.default)(o).each(function(){(0,r.default)(this).val(n[(0,r.default)(this).prop("name")])}),i.default.emit("updatedAddressForm",{target:(0,r.default)(e.address),resp:t})}).fail(function(e){i.default.emit("handleError",{eventType:"updateAddressForm",resp:e})})})}({country:".js-country",address:".js-address-form"})})},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function o(e){return"function"==typeof e}function a(e){return"object"===r(e)&&null!==e}function s(e){return void 0===e}e.exports=i,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._maxListeners=void 0,i.defaultMaxListeners=10,i.prototype.setMaxListeners=function(e){if(!function(e){return"number"==typeof e}(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},i.prototype.emit=function(e){var t,n,r,i,u,l;if(this._events||(this._events={}),"error"===e&&(!this._events.error||a(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}if(s(n=this._events[e]))return!1;if(o(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:i=Array.prototype.slice.call(arguments,1),n.apply(this,i)}else if(a(n))for(i=Array.prototype.slice.call(arguments,1),r=(l=n.slice()).length,u=0;u<r;u++)l[u].apply(this,i);return!0},i.prototype.addListener=function(e,t){var n;if(!o(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,o(t.listener)?t.listener:t),this._events[e]?a(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,a(this._events[e])&&!this._events[e].warned&&(n=s(this._maxListeners)?i.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},i.prototype.on=i.prototype.addListener,i.prototype.once=function(e,t){if(!o(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},i.prototype.removeListener=function(e,t){var n,r,i,s;if(!o(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(i=(n=this._events[e]).length,r=-1,n===t||o(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(a(n)){for(s=i;s-->0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},i.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(o(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},i.prototype.listeners=function(e){return this._events&&this._events[e]?o(this._events[e])?[this._events[e]]:this._events[e].slice():[]},i.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(o(t))return 1;if(t)return t.length}return 0},i.listenerCount=function(e,t){return e.listenerCount(t)}}]);/******/ (function(modules) { // webpackBootstrap 234/******/ // The module cache 235/******/ var installedModules = {}; 236/******/ 237/******/ // The require function 238/******/ function __webpack_require__(moduleId) { 239/******/ 240/******/ // Check if module is in cache 241/******/ if(installedModules[moduleId]) { 242/******/ return installedModules[moduleId].exports; 243/******/ } 244/******/ // Create a new module (and put it into the cache) 245/******/ var module = installedModules[moduleId] = { 246/******/ i: moduleId, 247/******/ l: false, 248/******/ exports: {} 249/******/ }; 250/******/ 251/******/ // Execute the module function 252/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); 253/******/ 254/******/ // Flag the module as loaded
vendor: 2,822 bytes, lines 255-320
255/******/ module.l = true; 256/******/ 257/******/ // Return the exports of the module 258/******/ return module.exports; 259/******/ } 260/******/ 261/******/ 262/******/ // expose the modules object (__webpack_modules__) 263/******/ __webpack_require__.m = modules; 264/******/ 265/******/ // expose the module cache 266/******/ __webpack_require__.c = installedModules; 267/******/ 268/******/ // define getter function for harmony exports 269/******/ __webpack_require__.d = function(exports, name, getter) { 270/******/ if(!__webpack_require__.o(exports, name)) { 271/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); 272/******/ } 273/******/ }; 274/******/ 275/******/ // define __esModule on exports 276/******/ __webpack_require__.r = function(exports) { 277/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { 278/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); 279/******/ } 280/******/ Object.defineProperty(exports, '__esModule', { value: true }); 281/******/ }; 282/******/ 283/******/ // create a fake namespace object 284/******/ // mode & 1: value is a module id, require it 285/******/ // mode & 2: merge all properties of value into the ns 286/******/ // mode & 4: return value when already ns object 287/******/ // mode & 8|1: behave like require 288/******/ __webpack_require__.t = function(value, mode) { 289/******/ if(mode & 1) value = __webpack_require__(value); 290/******/ if(mode & 8) return value; 291/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; 292/******/ var ns = Object.create(null); 293/******/ __webpack_require__.r(ns); 294/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); 295/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); 296/******/ return ns; 297/******/ }; 298/******/ 299/******/ // getDefaultExport function for compatibility with non-harmony modules 300/******/ __webpack_require__.n = function(module) { 301/******/ var getter = module && module.__esModule ? 302/******/ function getDefault() { return module['default']; } : 303/******/ function getModuleExports() { return module; }; 304/******/ __webpack_require__.d(getter, 'a', getter); 305/******/ return getter; 306/******/ }; 307/******/ 308/******/ // Object.prototype.hasOwnProperty.call 309/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; 310/******/ 311/******/ // __webpack_public_path__ 312/******/ __webpack_require__.p = ""; 313/******/ 314/******/ 315/******/ // Load entry module and return exports 316/******/ return __webpack_require__(__webpack_require__.s = 0); 317/******/ }) 318/************************************************************************/ 319/******/ ({ 320
321/***/ "./css/theme.scss": 322/*!************************!*\ 323 !*** ./css/theme.scss ***! 324 \************************/ 325/*! no static exports found */ 326/***/ (function(module, exports) { 327 328// removed by extract-text-webpack-plugin 329 330/***/ }), 331
332/***/ "./js/aone/_aonebrandlogo.js": 333/*!***********************************!*\ 334 !*** ./js/aone/_aonebrandlogo.js ***! 335 \***********************************/ 336/*! no static exports found */ 337/***/ (function(module, exports) { 338 339function setBrandLogoSlider(obj, scroll, rtl) { 340 $(obj).not('.slick-initialized').slick({ 341 slidesToShow: 6, 342 slidesToScroll: 1, 343 adaptiveHeight: false, 344 infinite: true, 345 speed: 700, 346 autoplay: scroll, 347 dots: false, 348 arrows: true, 349 draggable: false, 350 rtl: rtl, 351 responsive: [{ 352 breakpoint: 1220, 353 settings: { 354 slidesToShow: 5 355 } 356 }, { 357 breakpoint: 992, 358 settings: { 359 slidesToShow: 4 360 } 361 }, { 362 breakpoint: 768, 363 settings: { 364 slidesToShow: 3 365 } 366 }, { 367 breakpoint: 576, 368 settings: { 369 slidesToShow: 2 370 } 371 }] 372 }); 373 $(obj).on('beforeChange', function (event, slick, currentSlide, nextSlide) { 374 $(obj).find('.slick-active img.js-lazy').trigger("appear"); 375 }); 376} 377 378$(window).load(function () { 379 var rtl = false; 380 if (prestashop.language.is_rtl == '1') { 381 rtl = true; 382 } 383 $('.js-brand-logo-slider').each(function () { 384 var scroll = $(this).data('autoscroll'); 385 setBrandLogoSlider($(this), scroll, rtl); 386 }); 387}); 388 389/***/ }), 390
391/***/ "./js/aone/_aonecolorsfonts.js": 392/*!*************************************!*\ 393 !*** ./js/aone/_aonecolorsfonts.js ***! 394 \*************************************/ 395/*! no static exports found */ 396/***/ (function(module, exports) { 397 398function ajaxLoadPreviewContent(preview_controller) { 399 $.ajax({ 400 type: 'POST', 401 url: preview_controller, 402 data: { 403 ajax: true 404 }, 405 success: function (data) { 406 $('.js-previewContainer').append(data); 407 colorsLivePreviewConfig(); 408 }, 409 error: function (err) { 410 console.log(err); 411 } 412 }); 413 414 var colorsLivePreviewConfig = function () { 415 var live_preview = $('#js-colorsLivePreview'), 416 color_picker = live_preview.find('.js-colorPicker'), 417 reset_button = live_preview.find('.js-previewReset'), 418 preview_boxed = live_preview.find('.js-previewBoxed'), 419 preview_wide = live_preview.find('.js-previewWide'), 420 special_style = live_preview.find('.js-specialStyle'); 421 422 color_picker.each(function () { 423 $(this).colpick({ 424 layout: 'hex', 425 color: $(this).data('color'), 426 onSubmit: function (hsb, hex, rgb, el) { 427 $(el).css('background-color', '#' + hex); 428 429 var styles = $(el).parent('.js-color').children('.style'); 430 $.each(styles, function () { 431 var selector = $(this).children('.selector'); 432 var property = $(this).children('.property'); 433 var preview = $(this).children('.preview'); 434 preview.html('<style>' + selector.text() + '{' + property.text() + '#' + hex + '}</style>'); 435 }); 436 } 437 }); 438 }); 439 440 reset_button.click(function (e) { 441 e.preventDefault(); 442 live_preview.find('.js-color .preview').html(''); 443 color_picker.each(function () { 444 $(this).css('background-color', $(this).data('color')); 445 }); 446 return false; 447 }); 448 449 preview_boxed.click(function (e) { 450 e.preventDefault(); 451 $('body').addClass('boxed-layout'); 452 preview_wide.removeClass('active'); 453 $(this).addClass('active'); 454 $('.js-boxedWide .style .preview').html('<style>' + $('.js-boxedBackgroundCSS').text() + '</style>'); 455 456 return false; 457 }); 458 preview_wide.click(function (e) { 459 e.preventDefault(); 460 $('body').removeClass('boxed-layout'); 461 preview_boxed.removeClass('active'); 462 $(this).addClass('active'); 463 $('.js-boxedWide .style .preview').html(''); 464 465 return false; 466 }); 467 468 if ($('body').hasClass('remove-border-radius')) { 469 special_style.find('input[name="disable_border_radius"]').attr('checked', 'checked'); 470 } 471 if ($('body').hasClass('remove-box-shadow')) { 472 special_style.find('input[name="disable_box_shadow"]').attr('checked', 'checked'); 473 } 474 if ($('#wrapper').hasClass('background-for-title')) { 475 special_style.find('input[name="background_block_title"]').attr('checked', 'checked'); 476 } 477 special_style.find('input[name="disable_border_radius"]').change(function () { 478 $('body').toggleClass('remove-border-radius'); 479 }); 480 special_style.find('input[name="disable_box_shadow"]').change(function () { 481 $('body').toggleClass('remove-box-shadow'); 482 }); 483 special_style.find('input[name="background_block_title"]').change(function () { 484 $('#wrapper').toggleClass('background-for-title background-for-tab-title background-for-column-title'); 485 }); 486 }; 487} 488function livePreviewColorPicker() { 489 if ($('.js-previewToggle').length) { 490 $('.js-previewToggle').click(function () { 491 $(this).parent().toggleClass('open'); 492 }); 493 494 ajaxLoadPreviewContent($('.js-previewToggle').data('preview-controller')); 495 } 496} 497 498$(window).load(function () { 499 setTimeout(function () { 500 livePreviewColorPicker(); 501 }, 2400); 502}); 503 504/***/ }), 505
506/***/ "./js/aone/_aonecolumnblocks.js": 507/*!**************************************!*\ 508 !*** ./js/aone/_aonecolumnblocks.js ***! 509 \**************************************/ 510/*! no static exports found */ 511/***/ (function(module, exports) { 512 513function setColumnBlockSlider(obj, opt) { 514 $(obj).not('.slick-initialized').slick({ 515 slidesToShow: opt.slidesToShow, 516 slidesToScroll: opt.slidesToShow, 517 infinite: true, 518 draggable: opt.draggable, 519 speed: opt.speed, 520 autoplay: opt.autoplay, 521 dots: opt.dots, 522 arrows: opt.arrows, 523 rtl: opt.rtl 524 }); 525 526 $(obj).on('beforeChange', function (event, slick, currentSlide, nextSlide) { 527 $(obj).find('.slick-active img.js-lazy').trigger('appear'); 528 }); 529} 530 531$(window).load(function () { 532 $('.js-column-block-slider').each(function () { 533 setColumnBlockSlider($(this), $(this).data('slickoptions')); 534 }); 535}); 536 537/***/ }), 538
539/***/ "./js/aone/_aonefeaturedcategories.js": 540/*!********************************************!*\ 541 !*** ./js/aone/_aonefeaturedcategories.js ***! 542 \********************************************/ 543/*! no static exports found */ 544/***/ (function(module, exports) { 545 546function setFeaturedCategoriesSlider(obj, sts, rtl) { 547 $(obj).not('.slick-initialized').slick({ 548 slidesToShow: sts, 549 slidesToScroll: sts, 550 adaptiveHeight: true, 551 infinite: true, 552 draggable: false, 553 speed: 1000, 554 autoplay: false, 555 dots: false, 556 arrows: true, 557 rtl: rtl, 558 responsive: [{ 559 breakpoint: 992, 560 settings: { 561 slidesToShow: Math.min(2, sts - 1), 562 slidesToScroll: Math.min(2, sts - 1) 563 } 564 }, { 565 breakpoint: 576, 566 settings: { 567 slidesToShow: Math.min(1, sts), 568 slidesToScroll: Math.min(1, sts) 569 } 570 }] 571 }); 572 $(obj).on('beforeChange', function (event, slick, currentSlide, nextSlide) { 573 $(obj).find('.slick-active img.js-lazy').trigger("appear"); 574 }); 575} 576 577$(window).load(function () { 578 var rtl = false; 579 if (prestashop.language.is_rtl == '1') { 580 rtl = true; 581 } 582 $('.js-featured-categories-slider').each(function () { 583 var sts = $(this).data('slidestoshow'); 584 585 setFeaturedCategoriesSlider($(this), sts, rtl); 586 }); 587}); 588 589/***/ }), 590
591/***/ "./js/aone/_aonehomeblocks.js": 592/*!************************************!*\ 593 !*** ./js/aone/_aonehomeblocks.js ***! 594 \************************************/ 595/*! no static exports found */ 596/***/ (function(module, exports) { 597 598function updateSlickInTabs() { 599 $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) { 600 let anchor = $(e.target).attr('href'); 601 $('.js-home-block-slider', anchor).slick('setPosition'); 602 $('img.js-lazy', anchor).trigger('appear'); 603 }); 604} 605 606function setHomeBlockSlider(obj, opt) { 607 608 $(obj).not('.slick-initialized').slick({ 609 slidesToShow: opt.slidesToShow, 610 slidesToScroll: opt.slidesToShow, 611 adaptiveHeight: false, 612 infinite: true, 613 draggable: opt.draggable, 614 speed: opt.speed, 615 autoplay: opt.autoplay, 616 dots: opt.dots, 617 arrows: opt.arrows, 618 rtl: opt.rtl, 619 responsive: [{ 620 breakpoint: 1220, 621 settings: { 622 slidesToShow: opt.slidesToShow_1220, 623 slidesToScroll: opt.slidesToShow_1220 624 } 625 }, { 626 breakpoint: 992, 627 settings: { 628 slidesToShow: opt.slidesToShow_992, 629 slidesToScroll: opt.slidesToShow_992 630 } 631 }, { 632 breakpoint: 768, 633 settings: { 634 slidesToShow: opt.slidesToShow_768, 635 slidesToScroll: opt.slidesToShow_768 636 } 637 }] 638 }); 639 640 $(obj).on('beforeChange', function (event, slick, currentSlide, nextSlide) { 641 $(obj).find('.slick-active img.js-lazy').trigger('appear'); 642 }); 643} 644 645$(window).load(function () { 646 $('.js-home-block-slider').each(function () { 647 setHomeBlockSlider($(this), $(this).data('slickoptions')); 648 }); 649 650 updateSlickInTabs(); 651}); 652 653/***/ }), 654
655/***/ "./js/aone/_aonemegamenu.js": 656/*!**********************************!*\ 657 !*** ./js/aone/_aonemegamenu.js ***! 658 \**********************************/ 659/*! no static exports found */ 660/***/ (function(module, exports) { 661 662function updateDropdownPosition() { 663 var $amegamenu = $('#amegamenu'); 664 if ($amegamenu.length) { 665 var updatePosition = function () { 666 if ($amegamenu.hasClass('amegamenu_rtl')) { 667 updateDropdownPositionRTL($amegamenu); 668 } else { 669 updateDropdownPositionLTR($amegamenu); 670 } 671 }; 672 673 updatePosition(); 674 $(window).resize(updatePosition); 675 } 676} 677 678function updateDropdownPositionLTR(mm) { 679 var m_left = mm.offset().left, 680 m_right = mm.offset().left + mm.outerWidth(); 681 682 $('.adropdown', mm).each(function () { 683 let t = $(this), 684 p = t.parent('.amenu-item'), 685 i = 0 - (t.outerWidth() - p.outerWidth()) / 2, 686 t_right = t.offset().left + t.outerWidth(), 687 p_left = p.offset().left, 688 margin = parseInt(t.css('margin-left')); 689 690 if (t_right - margin + i > m_right) { 691 t.css('margin-left', m_right - p_left - t.outerWidth() + 'px'); 692 } else if (t.offset().left - margin + i < m_left) { 693 t.css('margin-left', m_left - p_left + 'px'); 694 } else { 695 t.css('margin-left', i + 'px'); 696 } 697 }); 698} 699function updateDropdownPositionRTL(mm) { 700 var m_left = mm.offset().left, 701 m_right = mm.offset().left + mm.outerWidth(); 702 703 $('.adropdown', mm).each(function () { 704 let t = $(this), 705 p = t.parent(), 706 i = 0 - (t.outerWidth() - p.outerWidth()) / 2, 707 t_right = t.offset().left + t.outerWidth(), 708 p_right = p.offset().left + p.outerWidth(), 709 margin = parseInt(t.css('margin-right')); 710 711 if (t.offset().left + margin - i < m_left) { 712 t.css('margin-right', 0 - (t.outerWidth() - p_right + m_left) + 'px'); 713 } else if (t_right + margin - i > m_right) { 714 t.css('margin-right', 0 - (m_right - p_right) + 'px'); 715 } else { 716 t.css('margin-right', i + 'px'); 717 } 718 }); 719} 720 721function mobileToggleEvent() { 722 $('#mobile-amegamenu .amenu-item.plex > .amenu-link').on('click', function () { 723 if (!$(this).hasClass('expanded')) { 724 $('#mobile-amegamenu .expanded').removeClass('expanded').next('.adropdown').slideUp(); 725 } 726 $(this).next('.adropdown').stop().slideToggle(); 727 $(this).toggleClass('expanded'); 728 729 return false; 730 }); 731} 732 733function enableHoverMenuOnTablet() { 734 $('html').on('touchstart', function (e) { 735 $('#amegamenu .amenu-item').removeClass('hover'); 736 }); 737 $('#amegamenu').on('touchstart', function (e) { 738 e.stopPropagation(); 739 }); 740 $('#amegamenu .amenu-item.plex > .amenu-link').on('touchstart', function (e) { 741 'use strict'; //satisfy code inspectors 742 743 var li = $(this).parent('li'); 744 if (li.hasClass('hover')) { 745 return true; 746 } else { 747 $('#amegamenu .amenu-item').removeClass('hover'); 748 li.addClass('hover'); 749 e.preventDefault(); 750 return false; 751 } 752 }); 753} 754 755function ajaxLoadDrodownContent() { 756 var $ajaxmenu = $('.js-ajax-mega-menu'); 757 if ($ajaxmenu.length) { 758 $.ajax({ 759 type: 'POST', 760 url: $ajaxmenu.data('ajax-dropdown-controller'), 761 data: { 762 ajax: true 763 }, 764 dataType: 'json', 765 success: function (data) { 766 updateDrodownContent(data); 767 }, 768 error: function (err) { 769 console.log(err); 770 } 771 }); 772 773 var updateDrodownContent = function (dropdown) { 774 $('.js-dropdown-content', $ajaxmenu).each(function () { 775 let item = $(this).data('menu-id'); 776 $(this).replaceWith(dropdown[item]); 777 }); 778 }; 779 } 780} 781 782$(window).load(function () { 783 setTimeout(function () { 784 ajaxLoadDrodownContent(); 785 updateDropdownPosition(); 786 }, 600); 787 mobileToggleEvent(); 788 enableHoverMenuOnTablet(); 789}); 790 791/***/ }), 792
793/***/ "./js/aone/_aonepopupnewsletter.js": 794/*!*****************************************!*\ 795 !*** ./js/aone/_aonepopupnewsletter.js ***! 796 \*****************************************/ 797/*! no static exports found */ 798/***/ (function(module, exports) { 799 800function setCookie(cname, cvalue, exdays, path) { 801 var d = new Date(); 802 var expires = ''; 803 if (exdays) { 804 d.setTime(d.getTime() + exdays * 24 * 60 * 60 * 1000); 805 expires = ';expires=' + d.toUTCString(); 806 } 807 808 document.cookie = cname + '=' + cvalue + expires + ';path=' + path; 809} 810 811function getCookie(cname) { 812 var name = cname + '='; 813 var ca = document.cookie.split(';'); 814 for (var i = 0; i < ca.length; i++) { 815 var c = ca[i]; 816 while (c.charAt(0) == ' ') { 817 c = c.substring(1); 818 } 819 if (c.indexOf(name) == 0) { 820 return c.substring(name.length, c.length); 821 } 822 } 823 return ''; 824} 825 826function ajaxNewsletterSubscribe(subscribeForm) { 827 var subscribeURL = $('.js-popup-newsletter-form').data('ajax-submit-url'); 828 829 if (subscribeURL && subscribeForm.length) { 830 subscribeForm.submit(function (event) { 831 event.preventDefault(); 832 var $form = $(this); 833 834 $.ajax({ 835 type: 'POST', 836 url: subscribeURL, 837 data: $form.serialize() + '&submitNewsletter=1&ajax=1', 838 dataType: 'json', 839 success: function (data) { 840 let msg_html = '<p class="alert alert-success">' + data.msg + '</p>'; 841 if (data.nw_error) { 842 msg_html = '<p class="alert alert-danger">' + data.msg + '</p>'; 843 } 844 $form.find('.newsletter-message').fadeOut(400, function () { 845 $(this).html(msg_html).fadeIn(); 846 }); 847 }, 848 error: function (XMLHttpRequest) { 849 alert("Response Text:\n" + XMLHttpRequest.responseText); 850 } 851 }); 852 853 return false; 854 }); 855 } 856} 857 858function aoneNewsletterLoad() { 859 var jsAOneNewsletter = $('.js-aone-popupnewsletter'); 860 if (jsAOneNewsletter.length) { 861 var save_time = jsAOneNewsletter.data('save-time'); 862 863 if (getCookie('aonehidepopupnewsletter' + save_time) === '') { 864 $.ajax({ 865 type: 'POST', 866 url: jsAOneNewsletter.data('modal-newsletter-controller'), 867 data: { 868 ajax: true 869 }, 870 success: function (result) { 871 jsAOneNewsletter.replaceWith(result); 872 modalNewsletterConfig(); 873 }, 874 error: function (err) { 875 console.log(err); 876 } 877 }); 878 879 var modalNewsletterConfig = function () { 880 let displayed = false, 881 popNewsletterModal = $('#aone-popup-newsletter-modal'), 882 cookie_expire = popNewsletterModal.data('hidepopup-time'); 883 884 $(window).on('scroll', function () { 885 if (!displayed && $(this).scrollTop() > 600) { 886 displayed = true; 887 popNewsletterModal.modal('show'); 888 } 889 }); 890 891 popNewsletterModal.on('hidden.bs.modal', function () { 892 let path = prestashop.urls.base_url.substring(prestashop.urls.shop_domain_url.length); 893 setCookie('aonehidepopupnewsletter' + save_time, '1', parseInt(cookie_expire), path); 894 }); 895 896 $('.js-newsletter-nothanks').click(function () { 897 popNewsletterModal.modal('hide'); 898 return false; 899 }); 900 901 ajaxNewsletterSubscribe($('.js-popupemailsubscription .js-subscription-form')); 902 }; 903 } 904 } 905} 906 907$(window).load(function () { 908 setTimeout(function () { 909 aoneNewsletterLoad(); 910 }, 1500); 911 ajaxNewsletterSubscribe($('.js-emailsubscription .js-subscription-form')); 912}); 913 914/***/ }), 915
916/***/ "./js/aone/_aoneproductadditional.js": 917/*!*******************************************!*\ 918 !*** ./js/aone/_aoneproductadditional.js ***! 919 \*******************************************/ 920/*! no static exports found */ 921/***/ (function(module, exports) { 922 923function extraFieldPopupModal() { 924 var $eModal = $('#extraModal'); 925 $('button[data-extrafield="popup"]').on('click', function () { 926 let width = $(this).data('width'), 927 content = $(this).data('content'); 928 929 $eModal.find('.modal-dialog').css('max-width', width + 'px'); 930 $eModal.find('.js-modal-extra-content').html(content); 931 $eModal.modal('show'); 932 }); 933 934 $eModal.on('hidden.bs.modal', function () { 935 $eModal.find('.js-modal-extra-content').html(''); 936 }); 937} 938 939function switchCombination() { 940 $('body').on('click', '.js-switch-cbnt', function (e) { 941 if (!$(this).hasClass('active')) { 942 //$(this).parent().children().removeClass('active'); 943 //$(this).addClass('active'); 944 let groups = $(this).data('groups'); 945 for (g in groups) { 946 $('.product-variants [data-product-attribute="' + g + '"]').val(groups[g]).trigger('change'); 947 } 948 } 949 }); 950} 951 952function productSwatchesEvent() { 953 $('body').on('click', '.js-swatch-item', function (e) { 954 if (!$(this).hasClass('selected')) { 955 $('.product-variants [data-product-attribute="' + $(this).parent().attr('data-id-group') + '"]').val($(this).attr('data-id-attribute')).change(); 956 } 957 //$(this).parent().children().removeClass('selected'); 958 //$(this).addClass('selected'); 959 }); 960} 961 962function countdownSpecificPrices() { 963 if (typeof varGetFinalDateController !== 'undefined') { 964 setTimeout(function () { 965 $('.js-product-countdown').runCountdown({ 966 specificPricesTo: $('.js-product-countdown').attr('data-specific-prices-to'), 967 getFinalDateController: varGetFinalDateController 968 }); 969 }, 300); 970 971 prestashop.on('updatedProduct', function (event) { 972 $('.js-product-countdown').updateCountdown({ 973 newSpecificPricesTo: $('.js-new-specific-prices-to').attr('data-new-specific-prices-to'), 974 currentSpecificPricesTo: $('.js-product-countdown').attr('data-specific-prices-to'), 975 getFinalDateController: varGetFinalDateController 976 }); 977 }); 978 } 979} 980 981$(window).load(function () { 982 extraFieldPopupModal(); 983 switchCombination(); 984 countdownSpecificPrices(); 985 productSwatchesEvent(); 986}); 987 988/***/ }), 989
990/***/ "./js/aone/_aoneslideshow.js": 991/*!***********************************!*\ 992 !*** ./js/aone/_aoneslideshow.js ***! 993 \***********************************/ 994/*! no static exports found */ 995/***/ (function(module, exports) { 996 997$(document).ready(function () { 998 var sliderObject = $('#aoneSlider'), 999 settings = sliderObject.data('settings'); 1000 1001 if (sliderObject.length) { 1002 sliderObject.nivoSlider({ 1003 effect: settings.effect, 1004 slices: Number(settings.slices), 1005 boxCols: Number(settings.boxCols), 1006 boxRows: Number(settings.boxRows), 1007 animSpeed: Number(settings.animSpeed), 1008 pauseTime: Number(settings.pauseTime), 1009 startSlide: Number(settings.startSlide), 1010 directionNav: settings.directionNav, 1011 controlNav: settings.controlNav, 1012 controlNavThumbs: settings.controlNavThumbs, 1013 pauseOnHover: settings.pauseOnHover, 1014 manualAdvance: settings.manualAdvance, 1015 randomStart: settings.randomStart, 1016 afterLoad: function () { 1017 $('#js-nivoSliderOverlay').fadeOut(100, function () { 1018 sliderObject.fadeIn(400); 1019 }); 1020 } 1021 }); 1022 } 1023}); 1024 1025/***/ }), 1026
1027/***/ "./js/aone/_aonethememanager.js": 1028/*!**************************************!*\ 1029 !*** ./js/aone/_aonethememanager.js ***! 1030 \**************************************/ 1031/*! no static exports found */ 1032/***/ (function(module, exports) { 1033 1034function stickyHeader() { 1035 var header_width = $('#header .main-header > .container').width(), 1036 $stickyMenu = $('.desktop-header-version [data-sticky-menu]'), 1037 $mobileStickyMenu = $('.mobile-header-version [data-mobile-sticky]'); 1038 if (typeof varStickyMenu !== 'undefined' && varStickyMenu && $stickyMenu.length) { 1039 $stickyMenu.sticky({ 1040 wrapperClassName: 'desktop-sticky-wrapper' 1041 }); 1042 1043 $('[data-sticky-cart]').html($('[data-sticky-cart-source]').html()); 1044 } 1045 if (typeof varMobileStickyMenu !== 'undefined' && varMobileStickyMenu && $mobileStickyMenu.length) { 1046 $mobileStickyMenu.sticky({ 1047 wrapperClassName: 'mobile-sticky-wrapper' 1048 }); 1049 } 1050} 1051 1052function scrollToTopButton() { 1053 var $sttb = $('[data-scroll-to-top]'); 1054 $(window).scroll(function () { 1055 if ($(this).scrollTop() > 100) { 1056 $sttb.fadeIn(); 1057 } else { 1058 $sttb.fadeOut(); 1059 } 1060 }); 1061 1062 $sttb.find('a').smoothScroll({ 1063 speed: 500, 1064 scrollTarget: '#page' 1065 }); 1066} 1067 1068function loadPageWithProcessBar() { 1069 if (typeof varPageProgressBar !== 'undefined' && varPageProgressBar) { 1070 Pace.start(); 1071 } 1072} 1073 1074function ajaxLoadSidebarCategoryTree() { 1075 let $sbct = $('.js-sidebar-category-tree'); 1076 if ($sbct.length) { 1077 $.ajax({ 1078 type: 'POST', 1079 url: $sbct.data('categorytree-controller'), 1080 data: { 1081 ajax: true 1082 }, 1083 success: function (data) { 1084 $sbct.html(data); 1085 sidebarCategoryTreeConfig(); 1086 }, 1087 error: function (err) { 1088 console.log(err); 1089 } 1090 }); 1091 1092 var sidebarCategoryTreeConfig = function () { 1093 let $subcats = $('.js-sidebar-categories'); 1094 if ($subcats.length) { 1095 $subcats.find('.js-collapse-trigger').click(function (e) { 1096 if (!$(this).hasClass('opened')) { 1097 let $p = $(this).closest('.js-sidebar-categories, .js-sub-categories'); 1098 $p.find('.js-sub-categories.expanded').slideUp().removeClass('expanded'); 1099 $p.find('.js-collapse-trigger.opened').removeClass('opened').find('.add, .remove').toggle(); 1100 } 1101 $(this).parent().find(' > .js-sub-categories').stop().slideToggle().toggleClass('expanded'); 1102 $(this).toggleClass('opened').find('.add, .remove').toggle(); 1103 }); 1104 } 1105 1106 let currentCatID = $('.js-category-page').data('current-category-id'); 1107 if (currentCatID !== 'undefined' && currentCatID !== '') { 1108 let $currentSBCatObj = $('.js-sidebar-categories [data-category-id=' + currentCatID + ']'); 1109 1110 $currentSBCatObj.addClass('current'); 1111 $currentSBCatObj.parents('li').each(function () { 1112 $(this).children('.js-sub-categories').addClass('expanded').show(); 1113 $(this).find(' > .js-collapse-trigger').addClass('opened'); 1114 $(this).find(' > .js-collapse-trigger .add').hide(); 1115 $(this).find(' > .js-collapse-trigger .remove').show(); 1116 }); 1117 } 1118 }; 1119 } 1120} 1121 1122function loadSidebarNavigation() { 1123 setTimeout(function () { 1124 ajaxLoadSidebarCategoryTree(); 1125 }, 1200); 1126 $('#js-header-phone-sidebar').removeClass('js-hidden').html($('.js-header-phone-source').html()); 1127 $('#js-account-sidebar').removeClass('js-hidden').html($('.js-account-source').html()); 1128 $('#js-language-sidebar').removeClass('js-hidden').html($('.js-language-source').html()).find('.l-name').remove(); 1129 if (typeof varSidebarCart !== 'undefined' && !varSidebarCart) { 1130 $('#js-left-currency-sidebar').removeClass('js-hidden').html($('.js-currency-source').html()); 1131 } 1132 1133 $('[data-close-st-menu]').on('click', function (e) { 1134 $('html').removeClass('st-menu-open st-effect-left st-effect-right'); 1135 }); 1136 $('[data-left-nav-trigger]').on('click', function (e) { 1137 $('html').addClass('st-effect-left st-menu-open'); 1138 return false;
1139 }); 1140} 1141 1142function loadSidebarCart() { 1143 if (prestashop.page.page_name !== 'checkout' && prestashop.page.page_name !== 'cart') { 1144 if (typeof varSidebarCart !== 'undefined' && varSidebarCart) { 1145 $('#js-cart-sidebar').removeClass('js-hidden').html($('[data-shopping-cart-source]').html()); 1146 $('[data-shopping-cart-source]').addClass('js-hidden'); 1147 $.each($('#js-cart-sidebar input[name="product-sidebar-quantity-spin"]'), function (index, spinner) { 1148 $(spinner).makeTouchSpin(); 1149 1150 $(spinner).on('change', function () { 1151 $(spinner).trigger('focusout'); 1152 }); 1153 }); 1154 1155 $('#js-currency-sidebar').removeClass('js-hidden').html($('.js-currency-source').html()).find('.c-sign').remove(); 1156 1157 $('[data-sidebar-cart-trigger]').on('click', function (e) { 1158 $('html').addClass('st-effect-right st-menu-open'); 1159 return false; 1160 }); 1161 } 1162 } 1163} 1164 1165function handleCookieMessage() { 1166 var $cookieMsg = $('.js-cookieMessage'); 1167 if ($cookieMsg.length) { 1168 setTimeout(function () { 1169 $cookieMsg.cookieBar({ 1170 closeButton: '.js-cookieCloseButton', 1171 path: prestashop.urls.base_url.substring(prestashop.urls.shop_domain_url.length) 1172 }); 1173 }, 2000); 1174 } 1175} 1176 1177function lazyItemMobileSliderScroll() { 1178 $('.js-items-mobile-slider').each(function () { 1179 $(this).on('scroll', function () { 1180 if ($(this).scrollLeft()) { 1181 $('img.js-lazy', $(this)).trigger('appear'); 1182 } 1183 }); 1184 }); 1185} 1186 1187loadPageWithProcessBar(); 1188 1189$(window).load(function () { 1190 handleCookieMessage(); 1191 $('img.js-lazy').lazyload({ 1192 failure_limit: 9999, 1193 load: function (el, s) { 1194 $(this).removeClass('js-lazy'); 1195 } 1196 }); 1197 stickyHeader(); 1198 scrollToTopButton(); 1199 loadSidebarNavigation(); 1200 loadSidebarCart(); 1201 lazyItemMobileSliderScroll(); 1202}); 1203 1204/***/ }), 1205
1206/***/ "./js/aone/_update-styles.js": 1207/*!***********************************!*\ 1208 !*** ./js/aone/_update-styles.js ***! 1209 \***********************************/ 1210/*! no static exports found */ 1211/***/ (function(module, exports) { 1212 1213function addTooltip() { 1214 $('body:not(.touch-screen) [data-toggle="tooltip"]').tooltip({ 1215 position: { my: "center bottom-8", at: "center top" }, 1216 hide: false, 1217 show: false 1218 }); 1219} 1220 1221function updateCustomerDropdownMenu() { 1222 var $otherLinks = $('.js-otherCustomerDropdownLinks'); 1223 if ($otherLinks.length) { 1224 $('.js-displayCustomerAccount > a').each(function () { 1225 $(this).removeAttr('id').removeAttr('class').addClass('dropdown-item'); 1226 var $span = $(this).find('span'), 1227 $i = $span.find('i'); 1228 $span.removeAttr('class'); 1229 $(this).remove('i'); 1230 $(this).append($i); 1231 1232 var $newThis = $(this).wrap('<li></li>').parent(); 1233 $newThis.insertBefore($otherLinks); 1234 }); 1235 } 1236} 1237 1238function expandPSCategoryTree() { 1239 var currentCatID = $('.js-category-page').data('current-category-id'); 1240 1241 if (currentCatID !== 'undefined' && currentCatID !== '') { 1242 var $currentCatObj = $('.js-category-tree [data-category-id=' + currentCatID + ']'); 1243 1244 $currentCatObj.addClass('current'); 1245 $currentCatObj.parents('li').each(function () { 1246 $(this).children('[data-toggle="collapse"]').attr('aria-expanded', 'true'); 1247 $(this).children('.category-sub-menu.collapse').addClass('show'); 1248 }); 1249 } 1250} 1251 1252function categoryDescriptionExpand() { 1253 var $catDesc = $('.js-expand-description'); 1254 if ($catDesc.length) { 1255 let maxHeight = $('.descSmall', $catDesc).height(), 1256 realHeight = $('.descFull', $catDesc).height(); 1257 if (realHeight > maxHeight) { 1258 $catDesc.addClass('descCollapsed'); 1259 $('.descSmall', $catDesc).css('max-height', 'none').height(maxHeight); 1260 1261 $('.descToggle.expand a', $catDesc).click(function () { 1262 $catDesc.removeClass('descCollapsed').addClass('descExpanded'); 1263 $('.descSmall', $catDesc).height(realHeight + 30); 1264 return false; 1265 }); 1266 $('.descToggle.collapse a', $catDesc).click(function () { 1267 $catDesc.addClass('descCollapsed').removeClass('descExpanded'); 1268 $('.descSmall', $catDesc).height(maxHeight); 1269 return false; 1270 }); 1271 } 1272 } 1273} 1274 1275function mobileMenuControl() { 1276 $('#mobile-menu-icon').on('click', function () { 1277 $('#dropdown-mobile-menu').stop().slideToggle(); 1278 $('html').toggleClass('js-overflow-hidden'); 1279 }); 1280} 1281 1282function typoImageSlider() { 1283 $('.js-typoImageSlider').makeFlexScrollBox(); 1284} 1285 1286$(window).load(function () { 1287 addTooltip(); 1288 updateCustomerDropdownMenu(); 1289 expandPSCategoryTree(); 1290 categoryDescriptionExpand(); 1291 typoImageSlider(); 1292}); 1293 1294/***/ }), 1295
1296/***/ "./js/aone/aone-module.js": 1297/*!********************************!*\ 1298 !*** ./js/aone/aone-module.js ***! 1299 \********************************/ 1300/*! no exports provided */ 1301/***/ (function(module, __webpack_exports__, __webpack_require__) { 1302 1303"use strict"; 1304__webpack_require__.r(__webpack_exports__); 1305/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jquery */ "jquery"); 1306/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__); 1307/* harmony import */ var _aonebrandlogo_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./_aonebrandlogo.js */ "./js/aone/_aonebrandlogo.js"); 1308/* harmony import */ var _aonebrandlogo_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_aonebrandlogo_js__WEBPACK_IMPORTED_MODULE_1__); 1309/* harmony import */ var _aonecolorsfonts_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./_aonecolorsfonts.js */ "./js/aone/_aonecolorsfonts.js"); 1310/* harmony import */ var _aonecolorsfonts_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_aonecolorsfonts_js__WEBPACK_IMPORTED_MODULE_2__); 1311/* harmony import */ var _aonecolumnblocks_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./_aonecolumnblocks.js */ "./js/aone/_aonecolumnblocks.js"); 1312/* harmony import */ var _aonecolumnblocks_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_aonecolumnblocks_js__WEBPACK_IMPORTED_MODULE_3__); 1313/* harmony import */ var _aonefeaturedcategories_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./_aonefeaturedcategories.js */ "./js/aone/_aonefeaturedcategories.js"); 1314/* harmony import */ var _aonefeaturedcategories_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_aonefeaturedcategories_js__WEBPACK_IMPORTED_MODULE_4__); 1315/* harmony import */ var _aonehomeblocks_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./_aonehomeblocks.js */ "./js/aone/_aonehomeblocks.js"); 1316/* harmony import */ var _aonehomeblocks_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_aonehomeblocks_js__WEBPACK_IMPORTED_MODULE_5__); 1317/* harmony import */ var _aonemegamenu_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./_aonemegamenu.js */ "./js/aone/_aonemegamenu.js"); 1318/* harmony import */ var _aonemegamenu_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_aonemegamenu_js__WEBPACK_IMPORTED_MODULE_6__); 1319/* harmony import */ var _aonepopupnewsletter_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./_aonepopupnewsletter.js */ "./js/aone/_aonepopupnewsletter.js"); 1320/* harmony import */ var _aonepopupnewsletter_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_aonepopupnewsletter_js__WEBPACK_IMPORTED_MODULE_7__); 1321/* harmony import */ var _aoneproductadditional_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./_aoneproductadditional.js */ "./js/aone/_aoneproductadditional.js"); 1322/* harmony import */ var _aoneproductadditional_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_aoneproductadditional_js__WEBPACK_IMPORTED_MODULE_8__); 1323/* harmony import */ var _aoneslideshow_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./_aoneslideshow.js */ "./js/aone/_aoneslideshow.js"); 1324/* harmony import */ var _aoneslideshow_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_aoneslideshow_js__WEBPACK_IMPORTED_MODULE_9__); 1325/* harmony import */ var _aonethememanager_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./_aonethememanager.js */ "./js/aone/_aonethememanager.js"); 1326/* harmony import */ var _aonethememanager_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_aonethememanager_js__WEBPACK_IMPORTED_MODULE_10__); 1327/* harmony import */ var _update_styles_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./_update-styles.js */ "./js/aone/_update-styles.js"); 1328/* harmony import */ var _update_styles_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_update_styles_js__WEBPACK_IMPORTED_MODULE_11__); 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340//import './_aonecategoryslider.js'; 1341 1342 1343 1344/***/ }), 1345
1346/***/ "./js/aone/shared-functions.js": 1347/*!*************************************!*\ 1348 !*** ./js/aone/shared-functions.js ***! 1349 \*************************************/ 1350/*! no static exports found */ 1351/***/ (function(module, exports) { 1352 1353(function ($) { 1354 $.fn.makeProductScrollBox = function () { 1355 if (this.length && !this.hasClass('js-enabled-scrollbox')) { 1356 var $scrollbox = this.find('.product-list'), 1357 $items = $scrollbox.find('.product-miniature'), 1358 $arrows = this.find('.scroll-box-arrows'), 1359 list_element = '.product-list-wrapper', 1360 list_item_element = '.product-miniature', 1361 auto_play = $scrollbox.data('autoscroll') || false; 1362 1363 if ($scrollbox.width() + 20 < $items.length * $items.outerWidth()) { 1364 this.addClass('js-enabled-scrollbox'); 1365 1366 $scrollbox.scrollbox({ 1367 direction: 'h', 1368 distance: 'auto', 1369 autoPlay: auto_play, 1370 infiniteLoop: false, 1371 onMouseOverPause: auto_play, 1372 listElement: list_element, 1373 listItemElement: list_item_element 1374 }); 1375 $arrows.addClass('scroll'); 1376 $arrows.find('.left').click(function () { 1377 $scrollbox.trigger('backward'); 1378 }); 1379 $arrows.find('.right').click(function () { 1380 $scrollbox.trigger('forward'); 1381 }); 1382 if ('ontouchstart' in document.documentElement) { 1383 $scrollbox.on('swipeleft', function () { 1384 $scrollbox.trigger('forward'); 1385 }); 1386 $scrollbox.on('swiperight', function () { 1387 $scrollbox.trigger('backward'); 1388 }); 1389 } 1390 } 1391 } 1392 }; 1393 1394 $.fn.makeFlexScrollBox = function (options) { 1395 var settings = $.extend({ 1396 list: 'ul', 1397 items: 'li', 1398 arrows: '.scroll-box-arrows', 1399 autoPlay: false, 1400 onMouseOverPause: false, 1401 forceMakeScroll: false 1402 }, options); 1403 1404 var $scrollbox = this, 1405 $items = $scrollbox.find(settings.items), 1406 $arrows = $scrollbox.next(settings.arrows); 1407 1408 if ($scrollbox.width() + 20 < $items.length * $items.outerWidth() || settings.forceMakeScroll) { 1409 $scrollbox.scrollbox({ 1410 direction: 'h', 1411 distance: 'auto', 1412 autoPlay: settings.autoPlay, 1413 onMouseOverPause: settings.onMouseOverPause, 1414 infiniteLoop: false, 1415 listElement: settings.list, 1416 listItemElement: settings.items 1417 }); 1418 $arrows.addClass('scroll'); 1419 $arrows.find('.left').click(function () { 1420 $scrollbox.trigger('backward'); 1421 }); 1422 $arrows.find('.right').click(function () { 1423 $scrollbox.trigger('forward'); 1424 }); 1425 if ('ontouchstart' in document.documentElement) { 1426 $scrollbox.on('swipeleft', function () { 1427 $scrollbox.trigger('forward'); 1428 }); 1429 $scrollbox.on('swiperight', function () { 1430 $scrollbox.trigger('backward'); 1431 }); 1432 } 1433 } 1434 }; 1435 1436 $.fn.runCountdown = function (options) { 1437 var settings = $.extend({ 1438 specificPricesTo: false, 1439 getFinalDateController: false 1440 }, options); 1441 var $countdown_wrapper = this; 1442 1443 if (settings.specificPricesTo && settings.getFinalDateController) { 1444 $.ajax({ 1445 type: 'POST', 1446 url: settings.getFinalDateController, 1447 data: { 1448 'ajax': true, 1449 'specific-prices-to': settings.specificPricesTo 1450 }, 1451 success: function (result) { 1452 $countdown_wrapper.html(result); 1453 setTimeout(function () { 1454 $countdown_wrapper.slideDown(); 1455 }, 500); 1456 1457 let $new_cd = $countdown_wrapper.find('[data-final-date]'); 1458 $new_cd.countdown($new_cd.data('final-date')).on('update.countdown', function (event) { 1459 if (event.offset.totalDays <= 0) { 1460 $new_cd.html(event.strftime($new_cd.data('short-format'))); 1461 } else { 1462 $new_cd.html(event.strftime($new_cd.data('format'))); 1463 } 1464 }).on('finish.countdown', function () { 1465 $new_cd.parent().addClass('expired').html($new_cd.data('expired')); 1466 }); 1467 }, 1468 error: function (err) { 1469 console.log(err); 1470 } 1471 }); 1472 } 1473 }; 1474 $.fn.updateCountdown = function (options) { 1475 var settings = $.extend({ 1476 newSpecificPricesTo: '', 1477 currentSpecificPricesTo: '', 1478 getFinalDateController: false 1479 }, options); 1480 var $product_countdown = this; 1481 $product_countdown.attr('data-specific-prices-to', settings.newSpecificPricesTo); 1482 1483 if (settings.newSpecificPricesTo != '' && settings.getFinalDateController) { 1484 if (settings.currentSpecificPricesTo != settings.newSpecificPricesTo) { 1485 if (settings.currentSpecificPricesTo != '') { 1486 $product_countdown.addClass('updating-timer'); 1487 } 1488 $.ajax({ 1489 type: 'POST', 1490 url: settings.getFinalDateController, 1491 data: { 1492 'ajax': true, 1493 'specific-prices-to': settings.newSpecificPricesTo 1494 }, 1495 success: function (result) { 1496 $product_countdown.html(result); 1497 setTimeout(function () { 1498 if (settings.currentSpecificPricesTo != '') { 1499 $product_countdown.removeClass('updating-timer'); 1500 } else { 1501 $product_countdown.slideDown(); 1502 } 1503 }, 500); 1504 1505 let $new_cd = $product_countdown.find('[data-final-date]'); 1506 $new_cd.countdown($new_cd.data('final-date')).on('update.countdown', function (event) { 1507 if (event.offset.totalDays <= 0) { 1508 $new_cd.html(event.strftime($new_cd.data('short-format'))); 1509 } else { 1510 $new_cd.html(event.strftime($new_cd.data('format'))); 1511 } 1512 }).on('finish.countdown', function () { 1513 $new_cd.parent().addClass('expired').html($new_cd.data('expired')); 1514 }); 1515 }, 1516 error: function (err) { 1517 console.log(err); 1518 } 1519 }); 1520 } 1521 } else { 1522 $product_countdown.slideUp().html(''); 1523 } 1524 }; 1525 1526 $.fn.makeTouchSpin = function () { 1527 this.TouchSpin({
1528 verticalbuttons: false, 1529 verticalupclass: 'material-icons touchspin-up', 1530 verticaldownclass: 'material-icons touchspin-down', 1531 buttondown_class: 'btn btn-touchspin js-touchspin', 1532 buttonup_class: 'btn btn-touchspin js-touchspin', 1533 buttondown_txt: '<i class="material-icons">remove</i>', 1534 buttonup_txt: '<i class="material-icons">add</i>', 1535 min: parseInt(this.attr('min'), 10), 1536 max: 1000000 1537 }); 1538 }; 1539})(jQuery); 1540 1541/***/ }), 1542
1543/***/ "./js/cart.js": 1544/*!********************!*\ 1545 !*** ./js/cart.js ***! 1546 \********************/ 1547/*! no exports provided */ 1548/***/ (function(module, __webpack_exports__, __webpack_require__) { 1549 1550"use strict"; 1551__webpack_require__.r(__webpack_exports__); 1552/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jquery */ "jquery"); 1553/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__); 1554/* harmony import */ var prestashop__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prestashop */ "prestashop"); 1555/* harmony import */ var prestashop__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prestashop__WEBPACK_IMPORTED_MODULE_1__); 1556 1557 1558 1559prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.cart = prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.cart || {}; 1560 1561prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.cart.active_inputs = null; 1562 1563let spinnerSelector = 'input[name="product-quantity-spin"]'; 1564let hasError = false; 1565let isUpdateOperation = false; 1566let errorMsg = ''; 1567 1568/** 1569 * Attach Bootstrap TouchSpin event handlers 1570 */ 1571function createSpin() { 1572 jquery__WEBPACK_IMPORTED_MODULE_0___default.a.each(jquery__WEBPACK_IMPORTED_MODULE_0___default()(spinnerSelector), function (index, spinner) { 1573 jquery__WEBPACK_IMPORTED_MODULE_0___default()(spinner).makeTouchSpin(); 1574 }); 1575 1576 CheckUpdateQuantityOperations.switchErrorStat(); 1577} 1578 1579jquery__WEBPACK_IMPORTED_MODULE_0___default()(document).ready(function () { 1580 const productLineInCartSelector = '.js-cart-line-product-quantity'; 1581 const promises = []; 1582 let disablefocusout = false; 1583 1584 prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.on('updateCart', function () { 1585 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.quickview').modal('hide'); 1586 }); 1587 1588 prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.on('updatedCart', function () { 1589 createSpin(); 1590 }); 1591 1592 createSpin(); 1593 1594 const $body = jquery__WEBPACK_IMPORTED_MODULE_0___default()('body'); 1595 1596 function isTouchSpin(namespace) { 1597 return namespace === 'on.startupspin' || namespace === 'on.startdownspin'; 1598 } 1599 1600 function shouldIncreaseProductQuantity(namespace) { 1601 return namespace === 'on.startupspin'; 1602 } 1603 1604 function findCartLineProductQuantityInput($target) { 1605 var $input = $target.parents('.bootstrap-touchspin').find(productLineInCartSelector); 1606 1607 if ($input.is(':focus')) { 1608 return null; 1609 } 1610 1611 return $input; 1612 } 1613 1614 function camelize(subject) { 1615 let actionTypeParts = subject.split('-'); 1616 let i; 1617 let part; 1618 let camelizedSubject = ''; 1619 1620 for (i = 0; i < actionTypeParts.length; i++) { 1621 part = actionTypeParts[i]; 1622 1623 if (0 !== i) { 1624 part = part.substring(0, 1).toUpperCase() + part.substring(1); 1625 } 1626 1627 camelizedSubject = camelizedSubject + part; 1628 } 1629 1630 return camelizedSubject; 1631 } 1632 1633 function parseCartAction($target, namespace) { 1634 if (!isTouchSpin(namespace)) { 1635 return { 1636 url: $target.attr('href'), 1637 type: camelize($target.data('link-action')) 1638 }; 1639 } 1640 1641 let $input = findCartLineProductQuantityInput($target); 1642 if (!$input) { 1643 return; 1644 } 1645 1646 let cartAction = {}; 1647 if (shouldIncreaseProductQuantity(namespace)) { 1648 cartAction = { 1649 url: $input.data('up-url'), 1650 type: 'increaseProductQuantity' 1651 }; 1652 } else { 1653 cartAction = { 1654 url: $input.data('down-url'), 1655 type: 'decreaseProductQuantity' 1656 }; 1657 } 1658 1659 return cartAction; 1660 } 1661 1662 let abortPreviousRequests = function () { 1663 var promise; 1664 while (promises.length > 0) { 1665 promise = promises.pop(); 1666 promise.abort(); 1667 } 1668 }; 1669 1670 var getTouchSpinInput = function ($button) { 1671 return jquery__WEBPACK_IMPORTED_MODULE_0___default()($button.parents('.bootstrap-touchspin').find('input')); 1672 }; 1673 1674 var handleCartAction = function (event) { 1675 event.preventDefault(); 1676 1677 let $target = jquery__WEBPACK_IMPORTED_MODULE_0___default()(event.currentTarget); 1678 let dataset = event.currentTarget.dataset; 1679 1680 let cartAction = parseCartAction($target, event.namespace); 1681 let requestData = { 1682 ajax: '1', 1683 action: 'update' 1684 }; 1685 1686 if (typeof cartAction === 'undefined') { 1687 return; 1688 } 1689 1690 abortPreviousRequests(); 1691 1692 if (cartAction.type == 'removeVoucher') { 1693 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.js-cart-update-voucher').fadeIn(); 1694 } else { 1695 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.js-cart-update-quantity').fadeIn(); 1696 } 1697 1698 jquery__WEBPACK_IMPORTED_MODULE_0___default.a.ajax({ 1699 url: cartAction.url, 1700 method: 'POST', 1701 data: requestData, 1702 dataType: 'json', 1703 beforeSend: function (jqXHR) { 1704 promises.push(jqXHR); 1705 } 1706 }).then(function (resp) { 1707 CheckUpdateQuantityOperations.checkUpdateOpertation(resp); 1708 var $quantityInput = getTouchSpinInput($target); 1709 $quantityInput.val(resp.quantity); 1710 1711 if (resp.hasError) { 1712 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.js-cart-update-voucher, .js-cart-update-quantity').fadeOut(); 1713 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.js-modal-message-text').text(resp.errors[0]); 1714 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.js-modal-message').modal('show'); 1715 } else { 1716 // Refresh cart preview 1717 prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.emit('updateCart', { 1718 reason: dataset 1719 }); 1720 } 1721 }).fail(function (resp) { 1722 prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.emit('handleError', { 1723 eventType: 'updateProductInCart', 1724 resp: resp, 1725 cartAction: cartAction.type 1726 }); 1727 }); 1728 }; 1729 1730 $body.on('click', '[data-link-action="delete-from-cart"], [data-link-action="remove-voucher"]', handleCartAction); 1731 1732 $body.on('touchspin.on.startdownspin', spinnerSelector, handleCartAction); 1733 $body.on('touchspin.on.startupspin', spinnerSelector, handleCartAction); 1734
1735 function sendUpdateQuantityInCartRequest(updateQuantityInCartUrl, requestData, $target) { 1736 abortPreviousRequests(); 1737 1738 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.js-cart-update-quantity').fadeIn(); 1739 return jquery__WEBPACK_IMPORTED_MODULE_0___default.a.ajax({ 1740 url: updateQuantityInCartUrl, 1741 method: 'POST', 1742 data: requestData, 1743 dataType: 'json', 1744 beforeSend: function (jqXHR) { 1745 promises.push(jqXHR); 1746 } 1747 }).then(function (resp) { 1748 CheckUpdateQuantityOperations.checkUpdateOpertation(resp); 1749 $target.val(resp.quantity); 1750 1751 if (resp.hasError) { 1752 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.js-cart-update-voucher, .js-cart-update-quantity').fadeOut(); 1753 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.js-modal-message-text').text(resp.errors[0]); 1754 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.js-modal-message').modal('show'); 1755 } else { 1756 var dataset; 1757 if ($target && $target.dataset) { 1758 dataset = $target.dataset; 1759 } else { 1760 dataset = resp; 1761 } 1762 // Refresh cart preview 1763 prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.emit('updateCart', { 1764 reason: dataset 1765 }); 1766 } 1767 }).fail(function (resp) { 1768 prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.emit('handleError', { eventType: 'updateProductQuantityInCart', resp: resp }); 1769 }); 1770 } 1771 1772 function getRequestData(quantity) { 1773 return { 1774 ajax: '1', 1775 qty: Math.abs(quantity), 1776 action: 'update', 1777 op: getQuantityChangeType(quantity) 1778 }; 1779 } 1780 1781 function getQuantityChangeType($quantity) { 1782 return $quantity > 0 ? 'up' : 'down'; 1783 } 1784 1785 function updateProductQuantityInCart(event) { 1786 const $target = jquery__WEBPACK_IMPORTED_MODULE_0___default()(event.currentTarget); 1787 const updateQuantityInCartUrl = $target.data('update-url'); 1788 const baseValue = $target.attr('value'); 1789 1790 // There should be a valid product quantity in cart 1791 const targetValue = $target.val(); 1792 if (targetValue != parseInt(targetValue) || targetValue < 0 || isNaN(targetValue)) { 1793 $target.val(baseValue); 1794 1795 return; 1796 } 1797 1798 // There should be a new product quantity in cart 1799 const qty = targetValue - baseValue; 1800 if (qty == 0) { 1801 return; 1802 } 1803 1804 $target.attr('value', targetValue); 1805 1806 sendUpdateQuantityInCartRequest(updateQuantityInCartUrl, getRequestData(qty), $target); 1807 } 1808 1809 $body.on('focusout', productLineInCartSelector, function (event) { 1810 if (!disablefocusout) { 1811 updateProductQuantityInCart(event); 1812 } else { 1813 disablefocusout = false; 1814 } 1815 }); 1816 1817 $body.on('keyup', productLineInCartSelector, function (event) { 1818 if (event.keyCode == 13) { 1819 disablefocusout = true; 1820 updateProductQuantityInCart(event); 1821 } 1822 }); 1823 1824 $body.on('click', '.js-discount .code', function (event) { 1825 event.stopPropagation(); 1826 1827 const $code = jquery__WEBPACK_IMPORTED_MODULE_0___default()(event.currentTarget); 1828 const $discountInput = jquery__WEBPACK_IMPORTED_MODULE_0___default()('[name=discount_name]'); 1829 1830 $discountInput.val($code.text()); 1831 1832 return false; 1833 }); 1834 1835 // overwrite add-voucher 1836 var hanleAddVoucher = function (event) { 1837 event.preventDefault(); 1838 1839 var $addVoucherForm = jquery__WEBPACK_IMPORTED_MODULE_0___default()(event.currentTarget); 1840 var getCartViewUrl = $addVoucherForm.attr('action'); 1841 1842 if (0 === $addVoucherForm.find('[name=action]').length) { 1843 $addVoucherForm.append(jquery__WEBPACK_IMPORTED_MODULE_0___default()('<input>', { 'type': 'hidden', 'name': 'ajax', "value": 1 })); 1844 } 1845 if (0 === $addVoucherForm.find('[name=action]').length) { 1846 $addVoucherForm.append(jquery__WEBPACK_IMPORTED_MODULE_0___default()('<input>', { 'type': 'hidden', 'name': 'action', "value": "update" })); 1847 } 1848 1849 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.js-cart-update-voucher').fadeIn(); 1850 jquery__WEBPACK_IMPORTED_MODULE_0___default.a.ajax({ 1851 url: getCartViewUrl, 1852 method: 'POST', 1853 data: $addVoucherForm.serialize(), 1854 dataType: 'json' 1855 }).then(function (resp) { 1856 if (resp.hasError) { 1857 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.js-cart-update-voucher, .js-cart-update-quantity').fadeOut(); 1858 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.js-error').show().find('.js-error-text').text(resp.errors[0]); 1859 } else { 1860 // Refresh cart preview 1861 prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.emit('updateCart', { reason: event.target.dataset, resp: resp }); 1862 } 1863 }).fail(function (resp) { 1864 prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.emit('handleError', { eventType: 'updateCart', resp: resp }); 1865 }); 1866 }; 1867 1868 if (typeof varCustomActionAddVoucher !== 'undefined' && varCustomActionAddVoucher) { 1869 jquery__WEBPACK_IMPORTED_MODULE_0___default()('body').off('submit', '[data-link-action="add-voucher"]'); 1870 jquery__WEBPACK_IMPORTED_MODULE_0___default()('body').on('submit', '[data-link-action="add-voucher"]', hanleAddVoucher); 1871 } 1872}); 1873 1874const CheckUpdateQuantityOperations = { 1875 'switchErrorStat': function () { 1876 const $checkoutBtn = jquery__WEBPACK_IMPORTED_MODULE_0___default()('.checkout a'); 1877 if (jquery__WEBPACK_IMPORTED_MODULE_0___default()("#notifications article.alert-danger").length || '' !== errorMsg && !hasError) { 1878 $checkoutBtn.addClass('disabled'); 1879 } 1880 1881 if ('' !== errorMsg) { 1882 let strError = ' <article class="alert alert-danger" role="alert" data-alert="danger"><ul><li>' + errorMsg + '</li></ul></article>'; 1883 jquery__WEBPACK_IMPORTED_MODULE_0___default()('#notifications .container').html(strError); 1884 errorMsg = ''; 1885 isUpdateOperation = false;
1886 if (hasError) { 1887 $checkoutBtn.removeClass('disabled'); 1888 } 1889 } else if (!hasError && isUpdateOperation) { 1890 hasError = false; 1891 isUpdateOperation = false; 1892 jquery__WEBPACK_IMPORTED_MODULE_0___default()('#notifications .container').html(''); 1893 $checkoutBtn.removeClass('disabled'); 1894 } 1895 }, 1896 'checkUpdateOpertation': function (resp) { 1897 hasError = resp.hasOwnProperty('hasError'); 1898 let errors = resp.errors || ""; 1899 1900 if (errors instanceof Array) { 1901 errorMsg = errors.join(" "); 1902 } else { 1903 errorMsg = errors; 1904 } 1905 isUpdateOperation = true; 1906 } 1907}; 1908 1909/***/ }), 1910
1911/***/ "./js/checkout.js": 1912/*!************************!*\ 1913 !*** ./js/checkout.js ***! 1914 \************************/ 1915/*! no exports provided */ 1916/***/ (function(module, __webpack_exports__, __webpack_require__) { 1917 1918"use strict"; 1919__webpack_require__.r(__webpack_exports__); 1920/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jquery */ "jquery"); 1921/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__); 1922/* harmony import */ var prestashop__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prestashop */ "prestashop"); 1923/* harmony import */ var prestashop__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prestashop__WEBPACK_IMPORTED_MODULE_1__); 1924 1925 1926 1927function setUpCheckout() { 1928 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.js-terms a').on('click', function (event) { 1929 event.preventDefault(); 1930 var url = jquery__WEBPACK_IMPORTED_MODULE_0___default()(event.target).attr('href'); 1931 if (url) { 1932 // TODO: Handle request if no pretty URL 1933 url += '?content_only=1'; 1934 jquery__WEBPACK_IMPORTED_MODULE_0___default.a.get(url, function (content) { 1935 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.js-modal-content').html(jquery__WEBPACK_IMPORTED_MODULE_0___default()(content).find('.page-cms').contents()); 1936 jquery__WEBPACK_IMPORTED_MODULE_0___default()('#modal').modal('show'); 1937 }).fail(function (resp) { 1938 prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.emit('handleError', { eventType: 'clickTerms', resp: resp }); 1939 }); 1940 } 1941 }); 1942 1943 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.js-gift-checkbox').on('click', function () { 1944 jquery__WEBPACK_IMPORTED_MODULE_0___default()('#gift').collapse('toggle'); 1945 }); 1946} 1947 1948function initPersonalForm() { 1949 let guest_form = jquery__WEBPACK_IMPORTED_MODULE_0___default()('#checkout-guest-form'), 1950 login_form = jquery__WEBPACK_IMPORTED_MODULE_0___default()('#checkout-login-form'); 1951 1952 if (guest_form.length && (guest_form.find('input[name="email"]').val() != '' || guest_form.has('.help-block').length)) { 1953 login_form.hide(); 1954 guest_form.show(); 1955 } 1956 1957 jquery__WEBPACK_IMPORTED_MODULE_0___default()('body').on('click', '.js-switch-personal-form', function (event) { 1958 let form_object = jquery__WEBPACK_IMPORTED_MODULE_0___default()(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).attr('href')); 1959 jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).closest('.personal-form').fadeOut(400, function () { 1960 form_object.fadeIn(); 1961 }); 1962 1963 return false; 1964 }); 1965} 1966 1967function scrollToCurrentStep() { 1968 if (jquery__WEBPACK_IMPORTED_MODULE_0___default()('body').hasClass('a-mobile-device')) { 1969 jquery__WEBPACK_IMPORTED_MODULE_0___default()('html').animate({ 1970 scrollTop: jquery__WEBPACK_IMPORTED_MODULE_0___default()('.js-current-step').offset().top - 55 1971 }, 'slow'); 1972 } 1973} 1974 1975jquery__WEBPACK_IMPORTED_MODULE_0___default()(document).ready(function () { 1976 if (jquery__WEBPACK_IMPORTED_MODULE_0___default()('body#checkout').length === 1) { 1977 setUpCheckout(); 1978 initPersonalForm(); 1979 scrollToCurrentStep(); 1980 } 1981 1982 prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.on('updatedDeliveryForm', function (params) { 1983 if (typeof params.deliveryOption === 'undefined' || 0 === params.deliveryOption.length) { 1984 return; 1985 } 1986 // Hide all carrier extra content ... 1987 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.carrier-extra-content').hide(); 1988 // and show the one related to the selected carrier 1989 console.log(params.deliveryOption); 1990 params.deliveryOption.next('.carrier-extra-content').slideDown(); 1991 }); 1992}); 1993 1994/***/ }), 1995
1996/***/ "./js/components/block-cart.js": 1997/*!*************************************!*\ 1998 !*** ./js/components/block-cart.js ***! 1999 \*************************************/ 2000/*! no exports provided */ 2001/***/ (function(module, __webpack_exports__, __webpack_require__) { 2002 2003"use strict"; 2004__webpack_require__.r(__webpack_exports__); 2005/* harmony import */ var prestashop__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prestashop */ "prestashop"); 2006/* harmony import */ var prestashop__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prestashop__WEBPACK_IMPORTED_MODULE_0__); 2007/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! jquery */ "jquery"); 2008/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_1__); 2009 2010 2011 2012prestashop__WEBPACK_IMPORTED_MODULE_0___default.a.blockcart = prestashop__WEBPACK_IMPORTED_MODULE_0___default.a.blockcart || {}; 2013 2014prestashop__WEBPACK_IMPORTED_MODULE_0___default.a.blockcart.showModal = function (html) { 2015 function getBlockCartModal() { 2016 return jquery__WEBPACK_IMPORTED_MODULE_1___default()('#blockcart-modal'); 2017 } 2018 2019 let $blockCartModal = getBlockCartModal(); 2020 if ($blockCartModal.length) { 2021 $blockCartModal.remove(); 2022 } 2023 2024 jquery__WEBPACK_IMPORTED_MODULE_1___default()('body').append(html); 2025 2026 $blockCartModal = getBlockCartModal(); 2027 $blockCartModal.modal('show'); 2028 2029 $blockCartModal.on('hidden.bs.modal', function (event) { 2030 if (prestashop__WEBPACK_IMPORTED_MODULE_0___default.a.page.page_name == 'product') { 2031 prestashop__WEBPACK_IMPORTED_MODULE_0___default.a.emit('updateProduct', {}); 2032 } 2033 }); 2034}; 2035 2036/***/ }), 2037
2038/***/ "./js/components/drop-down.js": 2039/*!************************************!*\ 2040 !*** ./js/components/drop-down.js ***! 2041 \************************************/ 2042/*! no static exports found */ 2043/***/ (function(module, exports) { 2044 2045function makeJSDropdown() { 2046 var $dropDownEl = $('.js-dropdown'); 2047 2048 $dropDownEl.on('show.bs.dropdown', function (e, el) { 2049 $(e.target).find('.dropdown-menu').first().stop(true, true).slideDown(); 2050 }); 2051 2052 $dropDownEl.on('hide.bs.dropdown', function (e, el) { 2053 $(e.target).find('.dropdown-menu').first().stop(true, true).slideUp(); 2054 }); 2055 2056 $dropDownEl.find('select.link').each(function (idx, el) { 2057 $(el).on('change', function (event) { 2058 window.location = $(this).val(); 2059 }); 2060 }); 2061} 2062 2063$(document).ready(function () { 2064 if (prestashop.language.is_rtl == '1') { 2065 $('.dropdown-menu').addClass('dropdown-menu-right'); 2066 } 2067 makeJSDropdown(); 2068}); 2069 2070/***/ }), 2071
2072/***/ "./js/components/form.js": 2073/*!*******************************!*\ 2074 !*** ./js/components/form.js ***! 2075 \*******************************/ 2076/*! no static exports found */ 2077/***/ (function(module, exports) { 2078 2079function parentFocus() { 2080 $('.js-child-focus').focus(function () { 2081 $(this).closest('.js-parent-focus').addClass('focus'); 2082 }); 2083 $('.js-child-focus').focusout(function () { 2084 $(this).closest('.js-parent-focus').removeClass('focus'); 2085 }); 2086} 2087 2088function togglePasswordVisibility() { 2089 $('button[data-action="show-password"]').on('click', function () { 2090 var elm = $(this).closest('.input-group').children('input.js-visible-password'); 2091 if (elm.attr('type') === 'password') { 2092 elm.attr('type', 'text'); 2093 $(this).text($(this).data('textHide')); 2094 } else { 2095 elm.attr('type', 'password'); 2096 $(this).text($(this).data('textShow')); 2097 } 2098 }); 2099} 2100 2101function makeJSForm() { 2102 togglePasswordVisibility(); 2103} 2104 2105$(document).ready(function () { 2106 makeJSForm(); 2107}); 2108 2109/***/ }), 2110
2111/***/ "./js/components/ps-modules.js": 2112/*!*************************************!*\ 2113 !*** ./js/components/ps-modules.js ***! 2114 \*************************************/ 2115/*! no exports provided */ 2116/***/ (function(module, __webpack_exports__, __webpack_require__) { 2117 2118"use strict"; 2119__webpack_require__.r(__webpack_exports__); 2120/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jquery */ "jquery"); 2121/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__); 2122 2123 2124jquery__WEBPACK_IMPORTED_MODULE_0___default()(document).ready(function () { 2125 var rtl = false; 2126 if (prestashop.language.is_rtl == '1') { 2127 rtl = true; 2128 } 2129 productBottomSlider(rtl); 2130 productMobileBottomSliderScroll(); 2131}); 2132 2133function productMobileBottomSliderScroll() { 2134 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.js-product-page-mobile-slider').each(function () { 2135 jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).on('scroll', function () { 2136 if (jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).scrollLeft()) { 2137 jquery__WEBPACK_IMPORTED_MODULE_0___default()('img.js-lazy', jquery__WEBPACK_IMPORTED_MODULE_0___default()(this)).trigger('appear'); 2138 } 2139 }); 2140 }); 2141} 2142 2143function productBottomSlider(rtl) { 2144 var obj = '.js-crossselling-slider, .js-viewedproduct-slider, .js-accessories-slider, .js-category-products-slider, .js-featuredproducts-slider'; 2145 jquery__WEBPACK_IMPORTED_MODULE_0___default()(obj).slick({ 2146 slidesToShow: 5, 2147 slidesToScroll: 5, 2148 adaptiveHeight: true, 2149 infinite: true, 2150 speed: 1000, 2151 autoplay: false, 2152 dots: false, 2153 arrows: true, 2154 draggable: false, 2155 rtl: rtl, 2156 responsive: [{ 2157 breakpoint: 1220, 2158 settings: { 2159 slidesToShow: 4, 2160 slidesToScroll: 4 2161 } 2162 }, { 2163 breakpoint: 992, 2164 settings: { 2165 slidesToShow: 3, 2166 slidesToScroll: 3 2167 } 2168 }, { 2169 breakpoint: 768, 2170 settings: { 2171 slidesToShow: 2, 2172 slidesToScroll: 2 2173 } 2174 }] 2175 }); 2176 jquery__WEBPACK_IMPORTED_MODULE_0___default()(obj).on('beforeChange', function (event, slick, currentSlide, nextSlide) { 2177 jquery__WEBPACK_IMPORTED_MODULE_0___default()(obj).find('.slick-active img.js-lazy').trigger('appear'); 2178 }); 2179} 2180 2181/***/ }), 2182
2183/***/ "./js/customer.js": 2184/*!************************!*\ 2185 !*** ./js/customer.js ***! 2186 \************************/ 2187/*! no exports provided */ 2188/***/ (function(module, __webpack_exports__, __webpack_require__) { 2189 2190"use strict"; 2191__webpack_require__.r(__webpack_exports__); 2192/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jquery */ "jquery"); 2193/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__); 2194 2195 2196function initRmaItemSelector() { 2197 jquery__WEBPACK_IMPORTED_MODULE_0___default()('#order-return-form table thead input[type=checkbox]').on('click', function () { 2198 var checked = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).prop('checked'); 2199 jquery__WEBPACK_IMPORTED_MODULE_0___default()('#order-return-form table tbody input[type=checkbox]').each(function (_, checkbox) { 2200 jquery__WEBPACK_IMPORTED_MODULE_0___default()(checkbox).prop('checked', checked); 2201 }); 2202 }); 2203} 2204 2205function setupCustomerScripts() { 2206 if (jquery__WEBPACK_IMPORTED_MODULE_0___default()('body#order-detail')) { 2207 initRmaItemSelector(); 2208 } 2209} 2210 2211jquery__WEBPACK_IMPORTED_MODULE_0___default()(document).ready(setupCustomerScripts); 2212 2213/***/ }), 2214
2215/***/ "./js/lib/bootstrap-filestyle.min.js": 2216/*!*******************************************!*\ 2217 !*** ./js/lib/bootstrap-filestyle.min.js ***! 2218 \*******************************************/ 2219/*! no static exports found */ 2220/***/ (function(module, exports) { 2221 2222(function ($) { 2223 var nextId = 0;var Filestyle = function (element, options) { 2224 this.options = options;this.$elementFilestyle = [];this.$element = $(element); 2225 };Filestyle.prototype = { clear: function () { 2226 this.$element.val("");this.$elementFilestyle.find(":text").val("");this.$elementFilestyle.find(".badge").remove(); 2227 }, destroy: function () { 2228 this.$element.removeAttr("style").removeData("filestyle");this.$elementFilestyle.remove(); 2229 }, disabled: function (value) { 2230 if (value === true) { 2231 if (!this.options.disabled) { 2232 this.$element.attr("disabled", "true");this.$elementFilestyle.find("label").attr("disabled", "true");this.options.disabled = true; 2233 } 2234 } else { 2235 if (value === false) { 2236 if (this.options.disabled) { 2237 this.$element.removeAttr("disabled");this.$elementFilestyle.find("label").removeAttr("disabled");this.options.disabled = false; 2238 } 2239 } else { 2240 return this.options.disabled; 2241 } 2242 } 2243 }, buttonBefore: function (value) { 2244 if (value === true) { 2245 if (!this.options.buttonBefore) { 2246 this.options.buttonBefore = true;if (this.options.input) { 2247 this.$elementFilestyle.remove();this.constructor();this.pushNameFiles(); 2248 } 2249 } 2250 } else { 2251 if (value === false) { 2252 if (this.options.buttonBefore) { 2253 this.options.buttonBefore = false;if (this.options.input) { 2254 this.$elementFilestyle.remove();this.constructor();this.pushNameFiles(); 2255 } 2256 } 2257 } else { 2258 return this.options.buttonBefore; 2259 } 2260 } 2261 }, icon: function (value) { 2262 if (value === true) { 2263 if (!this.options.icon) { 2264 this.options.icon = true;this.$elementFilestyle.find("label").prepend(this.htmlIcon()); 2265 } 2266 } else { 2267 if (value === false) { 2268 if (this.options.icon) { 2269 this.options.icon = false;this.$elementFilestyle.find(".icon-span-filestyle").remove(); 2270 } 2271 } else { 2272 return this.options.icon; 2273 } 2274 } 2275 }, input: function (value) { 2276 if (value === true) { 2277 if (!this.options.input) { 2278 this.options.input = true;if (this.options.buttonBefore) { 2279 this.$elementFilestyle.append(this.htmlInput()); 2280 } else { 2281 this.$elementFilestyle.prepend(this.htmlInput()); 2282 }this.$elementFilestyle.find(".badge").remove();this.pushNameFiles();this.$elementFilestyle.find(".group-span-filestyle").addClass("input-group-btn"); 2283 } 2284 } else { 2285 if (value === false) { 2286 if (this.options.input) { 2287 this.options.input = false;this.$elementFilestyle.find(":text").remove();var files = this.pushNameFiles();if (files.length > 0 && this.options.badge) { 2288 this.$elementFilestyle.find("label").append(' <span class="badge">' + files.length + "</span>"); 2289 }this.$elementFilestyle.find(".group-span-filestyle").removeClass("input-group-btn"); 2290 } 2291 } else { 2292 return this.options.input; 2293 } 2294 } 2295 }, size: function (value) { 2296 if (value !== undefined) { 2297 var btn = this.$elementFilestyle.find("label"), 2298 input = this.$elementFilestyle.find("input");btn.removeClass("btn-lg btn-sm");input.removeClass("input-lg input-sm");if (value != "nr") { 2299 btn.addClass("btn-" + value);input.addClass("input-" + value); 2300 } 2301 } else { 2302 return this.options.size; 2303 } 2304 }, placeholder: function (value) { 2305 if (value !== undefined) { 2306 this.options.placeholder = value;this.$elementFilestyle.find("input").attr("placeholder", value); 2307 } else { 2308 return this.options.placeholder; 2309 } 2310 }, buttonText: function (value) { 2311 if (value !== undefined) { 2312 this.options.buttonText = value;this.$elementFilestyle.find("label .buttonText").html(this.options.buttonText); 2313 } else { 2314 return this.options.buttonText; 2315 } 2316 }, buttonName: function (value) { 2317 if (value !== undefined) { 2318 this.options.buttonName = value;this.$elementFilestyle.find("label").attr({ "class": "btn " + this.options.buttonName }); 2319 } else { 2320 return this.options.buttonName; 2321 } 2322 }, iconName: function (value) { 2323 if (value !== undefined) {
2324 this.$elementFilestyle.find(".icon-span-filestyle").attr({ "class": "icon-span-filestyle " + this.options.iconName }); 2325 } else { 2326 return this.options.iconName; 2327 } 2328 }, htmlIcon: function () { 2329 if (this.options.icon) { 2330 return '<span class="icon-span-filestyle ' + this.options.iconName + '"></span> '; 2331 } else { 2332 return ""; 2333 } 2334 }, htmlInput: function () { 2335 if (this.options.input) { 2336 return '<input type="text" class="form-control ' + (this.options.size == "nr" ? "" : "input-" + this.options.size) + '" placeholder="' + this.options.placeholder + '" disabled> '; 2337 } else { 2338 return ""; 2339 } 2340 }, pushNameFiles: function () { 2341 var content = "", 2342 files = [];if (this.$element[0].files === undefined) { 2343 files[0] = { name: this.$element[0] && this.$element[0].value }; 2344 } else { 2345 files = this.$element[0].files; 2346 }for (var i = 0; i < files.length; i++) { 2347 content += files[i].name.split("\\").pop() + ", "; 2348 }if (content !== "") { 2349 this.$elementFilestyle.find(":text").val(content.replace(/\, $/g, "")); 2350 } else { 2351 this.$elementFilestyle.find(":text").val(""); 2352 }return files; 2353 }, constructor: function () { 2354 var _self = this, 2355 html = "", 2356 id = _self.$element.attr("id"), 2357 files = [], 2358 btn = "", 2359 $label;if (id === "" || !id) { 2360 id = "filestyle-" + nextId;_self.$element.attr({ id: id });nextId++; 2361 }btn = '<span class="group-span-filestyle ' + (_self.options.input ? "input-group-btn" : "") + '"><label for="' + id + '" class="btn ' + _self.options.buttonName + " " + (_self.options.size == "nr" ? "" : "btn-" + _self.options.size) + '" ' + (_self.options.disabled ? 'disabled="true"' : "") + ">" + _self.htmlIcon() + '<span class="buttonText">' + _self.options.buttonText + "</span></label></span>";html = _self.options.buttonBefore ? btn + _self.htmlInput() : _self.htmlInput() + btn;_self.$elementFilestyle = $('<div class="bootstrap-filestyle input-group">' + html + "</div>");_self.$elementFilestyle.find(".group-span-filestyle").attr("tabindex", "0").keypress(function (e) { 2362 if (e.keyCode === 13 || e.charCode === 32) { 2363 _self.$elementFilestyle.find("label").click();return false; 2364 } 2365 });_self.$element.css({ position: "absolute", clip: "rect(0px 0px 0px 0px)" }).attr("tabindex", "-1").after(_self.$elementFilestyle);if (_self.options.disabled) { 2366 _self.$element.attr("disabled", "true"); 2367 }_self.$element.change(function () { 2368 var files = _self.pushNameFiles();if (_self.options.input == false && _self.options.badge) { 2369 if (_self.$elementFilestyle.find(".badge").length == 0) { 2370 _self.$elementFilestyle.find("label").append(' <span class="badge">' + files.length + "</span>"); 2371 } else { 2372 if (files.length == 0) { 2373 _self.$elementFilestyle.find(".badge").remove(); 2374 } else { 2375 _self.$elementFilestyle.find(".badge").html(files.length); 2376 } 2377 } 2378 } else { 2379 _self.$elementFilestyle.find(".badge").remove(); 2380 } 2381 });
2381if (window.navigator.userAgent.search(/firefox/i) > -1) { 2382 _self.$elementFilestyle.find("label").click(function () { 2383 _self.$element.click();return false; 2384 }); 2385 } 2386 } };var old = $.fn.filestyle;$.fn.filestyle = function (option, value) { 2387 var get = "", 2388 element = this.each(function () { 2389 if ($(this).attr("type") === "file") { 2390 var $this = $(this), 2391 data = $this.data("filestyle"), 2392 options = $.extend({}, $.fn.filestyle.defaults, option, typeof option === "object" && option);if (!data) { 2393 $this.data("filestyle", data = new Filestyle(this, options));data.constructor(); 2394 }if (typeof option === "string") { 2395 get = data[option](value); 2396 } 2397 } 2398 });if (typeof get !== undefined) { 2399 return get; 2400 } else { 2401 return element; 2402 } 2403 };$.fn.filestyle.defaults = { buttonText: "Choose file", iconName: "glyphicon glyphicon-folder-open", buttonName: "btn-default", size: "nr", input: true, badge: true, icon: true, buttonBefore: false, disabled: false, placeholder: "" };$.fn.filestyle.noConflict = function () { 2404 $.fn.filestyle = old;return this; 2405 };$(function () { 2406 $(".filestyle").each(function () { 2407 var $this = $(this), 2408 options = { input: $this.attr("data-input") === "false" ? false : true, icon: $this.attr("data-icon") === "false" ? false : true, buttonBefore: $this.attr("data-buttonBefore") === "true" ? true : false, disabled: $this.attr("data-disabled") === "true" ? true : false, size: $this.attr("data-size"), buttonText: $this.attr("data-buttonText"), buttonName: $this.attr("data-buttonName"), iconName: $this.attr("data-iconName"), badge: $this.attr("data-badge") === "false" ? false : true, placeholder: $this.attr("data-placeholder") };$this.filestyle(options); 2409 }); 2410 }); 2411})(window.jQuery); 2412 2413/***/ }), 2414
2415/***/ "./js/lib/colpick.js": 2416/*!***************************!*\ 2417 !*** ./js/lib/colpick.js ***! 2418 \***************************/ 2419/*! no static exports found */ 2420/***/ (function(module, exports) { 2421 2422/* 2423colpick Color Picker 2424Copyright 2013 Jose Vargas. Licensed under GPL license. Based on Stefan Petre's Color Picker www.eyecon.ro, dual licensed under the MIT and GPL licenses 2425 2426For usage and examples: colpick.com/plugin 2427 */ 2428 2429(function ($) { 2430 var colpick = function () { 2431 var tpl = '<div class="colpick"><div class="colpick_color"><div class="colpick_color_overlay1"><div class="colpick_color_overlay2"><div class="colpick_selector_outer"><div class="colpick_selector_inner"></div></div></div></div></div><div class="colpick_hue"><div class="colpick_hue_arrs"><div class="colpick_hue_larr"></div><div class="colpick_hue_rarr"></div></div></div><div class="colpick_new_color"></div><div class="colpick_current_color"></div><div class="colpick_hex_field"><div class="colpick_field_letter">#</div><input type="text" maxlength="6" size="6" /></div><div class="colpick_rgb_r colpick_field"><div class="colpick_field_letter">R</div><input type="text" maxlength="3" size="3" /><div class="colpick_field_arrs"><div class="colpick_field_uarr"></div><div class="colpick_field_darr"></div></div></div><div class="colpick_rgb_g colpick_field"><div class="colpick_field_letter">G</div><input type="text" maxlength="3" size="3" /><div class="colpick_field_arrs"><div class="colpick_field_uarr"></div><div class="colpick_field_darr"></div></div></div><div class="colpick_rgb_b colpick_field"><div class="colpick_field_letter">B</div><input type="text" maxlength="3" size="3" /><div class="colpick_field_arrs"><div class="colpick_field_uarr"></div><div class="colpick_field_darr"></div></div></div><div class="colpick_hsb_h colpick_field"><div class="colpick_field_letter">H</div><input type="text" maxlength="3" size="3" /><div class="colpick_field_arrs"><div class="colpick_field_uarr"></div><div class="colpick_field_darr"></div></div></div><div class="colpick_hsb_s colpick_field"><div class="colpick_field_letter">S</div><input type="text" maxlength="3" size="3" /><div class="colpick_field_arrs"><div class="colpick_field_uarr"></div><div class="colpick_field_darr"></div></div></div><div class="colpick_hsb_b colpick_field"><div class="colpick_field_letter">B</div><input type="text" maxlength="3" size="3" /><div class="colpick_field_arrs"><div class="colpick_field_uarr"></div><div class="colpick_field_darr"></div></div></div><div class="colpick_submit"></div></div>', 2432 defaults = { 2433 showEvent: 'click', 2434 onShow: function () {}, 2435 onBeforeShow: function () {}, 2436 onHide: function () {}, 2437 onChange: function () {}, 2438 onSubmit: function () {}, 2439 colorScheme: 'light', 2440 color: '3289c7', 2441 livePreview: true, 2442 flat: false, 2443 layout: 'full', 2444 submit: 1, 2445 submitText: 'OK', 2446 height: 156 2447 }, 2448 2449 //Fill the inputs of the plugin 2450 fillRGBFields = function (hsb, cal) { 2451 var rgb = hsbToRgb(hsb); 2452 $(cal).data('colpick').fields.eq(1).val(rgb.r).end().eq(2).val(rgb.g).end().eq(3).val(rgb.b).end(); 2453 }, 2454 fillHSBFields = function (hsb, cal) { 2455 $(cal).data('colpick').fields.eq(4).val(Math.round(hsb.h)).end().eq(5).val(Math.round(hsb.s)).end().eq(6).val(Math.round(hsb.b)).end(); 2456 }, 2457 fillHexFields = function (hsb, cal) { 2458 $(cal).data('colpick').fields.eq(0).val(hsbToHex(hsb)); 2459 }, 2460 2461 //Set the round selector position 2462 setSelector = function (hsb, cal) { 2463 $(cal).data('colpick').selector.css('backgroundColor', '#' + hsbToHex({ h: hsb.h, s: 100, b: 100 })); 2464 $(cal).data('colpick').selectorIndic.css({ 2465 left: parseInt($(cal).data('colpick').height * hsb.s / 100, 10), 2466 top: parseInt($(cal).data('colpick').height * (100 - hsb.b) / 100, 10) 2467 }); 2468 }, 2469 2470 //Set the hue selector position 2471 setHue = function (hsb, cal) { 2472 $(cal).data('colpick').hue.css('top', parseInt($(cal).data('colpick').height - $(cal).data('colpick').height * hsb.h / 360, 10)); 2473 }, 2474 2475 //Set current and new colors 2476 setCurrentColor = function (hsb, cal) { 2477 $(cal).data('colpick').currentColor.css('backgroundColor', '#' + hsbToHex(hsb)); 2478 }, 2479 setNewColor = function (hsb, cal) { 2480 $(cal).data('colpick').newColor.css('backgroundColor', '#' + hsbToHex(hsb)); 2481 }, 2482 2483 //Called when the new color is changed 2484 change = function (ev) { 2485 var cal = $(this).parent().parent(), 2486 col; 2487 if (this.parentNode.className.indexOf('_hex') > 0) { 2488 cal.data('colpick').color = col = hexToHsb(fixHex(this.value)); 2489 fillRGBFields(col, cal.get(0)); 2490 fillHSBFields(col, cal.get(0)); 2491 } else if (this.parentNode.className.indexOf('_hsb') > 0) { 2492 cal.data('colpick').color = col = fixHSB({ 2493 h: parseInt(cal.data('colpick').fields.eq(4).val(), 10), 2494 s: parseInt(cal.data('colpick').fields.eq(5).val(), 10), 2495 b: parseInt(cal.data('colpick').fields.eq(6).val(), 10) 2496 }); 2497 fillRGBFields(col, cal.get(0)); 2498 fillHexFields(col, cal.get(0)); 2499 } else { 2500 cal.data('colpick').color = col = rgbToHsb(fixRGB({ 2501 r: parseInt(cal.data('colpick').fields.eq(1).val(), 10), 2502 g: parseInt(cal.data('colpick').fields.eq(2).val(), 10), 2503 b: parseInt(cal.data('colpick').fields.eq(3).val(), 10) 2504 })); 2505 fillHexFields(col, cal.get(0)); 2506 fillHSBFields(col, cal.get(0)); 2507 } 2508 setSelector(col, cal.get(0)); 2509 setHue(col, cal.get(0));
2510 setNewColor(col, cal.get(0)); 2511 cal.data('colpick').onChange.apply(cal.parent(), [col, hsbToHex(col), hsbToRgb(col), cal.data('colpick').el, 0]); 2512 }, 2513 2514 //Change style on blur and on focus of inputs 2515 blur = function (ev) { 2516 $(this).parent().removeClass('colpick_focus'); 2517 }, 2518 focus = function () { 2519 $(this).parent().parent().data('colpick').fields.parent().removeClass('colpick_focus'); 2520 $(this).parent().addClass('colpick_focus'); 2521 }, 2522 2523 //Increment/decrement arrows functions 2524 downIncrement = function (ev) { 2525 ev.preventDefault ? ev.preventDefault() : ev.returnValue = false; 2526 var field = $(this).parent().find('input').focus(); 2527 var current = { 2528 el: $(this).parent().addClass('colpick_slider'), 2529 max: this.parentNode.className.indexOf('_hsb_h') > 0 ? 360 : this.parentNode.className.indexOf('_hsb') > 0 ? 100 : 255, 2530 y: ev.pageY, 2531 field: field, 2532 val: parseInt(field.val(), 10), 2533 preview: $(this).parent().parent().data('colpick').livePreview 2534 }; 2535 $(document).mouseup(current, upIncrement); 2536 $(document).mousemove(current, moveIncrement); 2537 }, 2538 moveIncrement = function (ev) { 2539 ev.data.field.val(Math.max(0, Math.min(ev.data.max, parseInt(ev.data.val - ev.pageY + ev.data.y, 10)))); 2540 if (ev.data.preview) { 2541 change.apply(ev.data.field.get(0), [true]); 2542 } 2543 return false; 2544 }, 2545 upIncrement = function (ev) { 2546 change.apply(ev.data.field.get(0), [true]); 2547 ev.data.el.removeClass('colpick_slider').find('input').focus(); 2548 $(document).off('mouseup', upIncrement); 2549 $(document).off('mousemove', moveIncrement); 2550 return false; 2551 }, 2552 2553 //Hue slider functions 2554 downHue = function (ev) { 2555 ev.preventDefault ? ev.preventDefault() : ev.returnValue = false; 2556 var current = { 2557 cal: $(this).parent(), 2558 y: $(this).offset().top 2559 }; 2560 $(document).on('mouseup touchend', current, upHue); 2561 $(document).on('mousemove touchmove', current, moveHue); 2562 2563 var pageY = ev.type == 'touchstart' ? ev.originalEvent.changedTouches[0].pageY : ev.pageY; 2564 change.apply(current.cal.data('colpick').fields.eq(4).val(parseInt(360 * (current.cal.data('colpick').height - (pageY - current.y)) / current.cal.data('colpick').height, 10)).get(0), [current.cal.data('colpick').livePreview]); 2565 return false; 2566 }, 2567 moveHue = function (ev) { 2568 var pageY = ev.type == 'touchmove' ? ev.originalEvent.changedTouches[0].pageY : ev.pageY; 2569 change.apply(ev.data.cal.data('colpick').fields.eq(4).val(parseInt(360 * (ev.data.cal.data('colpick').height - Math.max(0, Math.min(ev.data.cal.data('colpick').height, pageY - ev.data.y))) / ev.data.cal.data('colpick').height, 10)).get(0), [ev.data.preview]); 2570 return false; 2571 }, 2572 upHue = function (ev) { 2573 fillRGBFields(ev.data.cal.data('colpick').color, ev.data.cal.get(0)); 2574 fillHexFields(ev.data.cal.data('colpick').color, ev.data.cal.get(0)); 2575 $(document).off('mouseup touchend', upHue); 2576 $(document).off('mousemove touchmove', moveHue); 2577 return false; 2578 }, 2579 2580 //Color selector functions 2581 downSelector = function (ev) { 2582 ev.preventDefault ? ev.preventDefault() : ev.returnValue = false; 2583 var current = { 2584 cal: $(this).parent(), 2585 pos: $(this).offset() 2586 }; 2587 current.preview = current.cal.data('colpick').livePreview; 2588 2589 $(document).on('mouseup touchend', current, upSelector); 2590 $(document).on('mousemove touchmove', current, moveSelector); 2591 2592 var pageX = ev.pageX, 2593 pageY = ev.pageY; 2594 if (ev.type == 'touchstart') { 2595 pageX = ev.originalEvent.changedTouches[0].pageX, pageY = ev.originalEvent.changedTouches[0].pageY; 2596 } 2597 2598 change.apply(current.cal.data('colpick').fields.eq(6).val(parseInt(100 * (current.cal.data('colpick').height - (pageY - current.pos.top)) / current.cal.data('colpick').height, 10)).end().eq(5).val(parseInt(100 * (pageX - current.pos.left) / current.cal.data('colpick').height, 10)).get(0), [current.preview]); 2599 return false; 2600 }, 2601 moveSelector = function (ev) { 2602 var pageX = ev.pageX, 2603 pageY = ev.pageY; 2604 if (ev.type == 'touchmove') { 2605 pageX = ev.originalEvent.changedTouches[0].pageX, pageY = ev.originalEvent.changedTouches[0].pageY; 2606 } 2607 2608 change.apply(ev.data.cal.data('colpick').fields.eq(6).val(parseInt(100 * (ev.data.cal.data('colpick').height - Math.max(0, Math.min(ev.data.cal.data('colpick').height, pageY - ev.data.pos.top))) / ev.data.cal.data('colpick').height, 10)).end().eq(5).val(parseInt(100 * Math.max(0, Math.min(ev.data.cal.data('colpick').height, pageX
2608- ev.data.pos.left)) / ev.data.cal.data('colpick').height, 10)).get(0), [ev.data.preview]); 2609 return false; 2610 }, 2611 upSelector = function (ev) { 2612 fillRGBFields(ev.data.cal.data('colpick').color, ev.data.cal.get(0)); 2613 fillHexFields(ev.data.cal.data('colpick').color, ev.data.cal.get(0)); 2614 $(document).off('mouseup touchend', upSelector); 2615 $(document).off('mousemove touchmove', moveSelector); 2616 return false; 2617 }, 2618 2619 //Submit button 2620 clickSubmit = function (ev) { 2621 var cal = $(this).parent(); 2622 var col = cal.data('colpick').color; 2623 cal.data('colpick').origColor = col; 2624 setCurrentColor(col, cal.get(0)); 2625 cal.data('colpick').onSubmit(col, hsbToHex(col), hsbToRgb(col), cal.data('colpick').el); 2626 }, 2627 2628 //Show/hide the color picker 2629 show = function (ev) { 2630 // Prevent the trigger of any direct parent 2631 ev.stopPropagation(); 2632 var cal = $('#' + $(this).data('colpickid')); 2633 cal.data('colpick').onBeforeShow.apply(this, [cal.get(0)]); 2634 var pos = $(this).offset(); 2635 var top = pos.top - $(window).scrollTop(); 2636 var left = pos.left - 3; 2637 var viewPort = getViewport(); 2638 var calW = cal.width(); 2639 if (left + calW > viewPort.l + viewPort.w) { 2640 left -= calW; 2641 } 2642 cal.css({ left: left + 'px', top: top + 'px' }); 2643 if (cal.data('colpick').onShow.apply(this, [cal.get(0)]) != false) { 2644 cal.show(); 2645 } 2646 //Hide when user clicks outside
2647 $('html').mousedown({ cal: cal }, hide); 2648 cal.mousedown(function (ev) { 2649 ev.stopPropagation(); 2650 }); 2651 }, 2652 hide = function (ev) { 2653 if (ev.data.cal.data('colpick').onHide.apply(this, [ev.data.cal.get(0)]) != false) { 2654 ev.data.cal.hide(); 2655 } 2656 $('html').off('mousedown', hide); 2657 }, 2658 getViewport = function () { 2659 var m = document.compatMode == 'CSS1Compat'; 2660 return { 2661 l: window.pageXOffset || (m ? document.documentElement.scrollLeft : document.body.scrollLeft), 2662 w: window.innerWidth || (m ? document.documentElement.clientWidth : document.body.clientWidth) 2663 }; 2664 }, 2665 2666 //Fix the values if the user enters a negative or high value 2667 fixHSB = function (hsb) { 2668 return { 2669 h: Math.min(360, Math.max(0, hsb.h)), 2670 s: Math.min(100, Math.max(0, hsb.s)), 2671 b: Math.min(100, Math.max(0, hsb.b)) 2672 }; 2673 }, 2674 fixRGB = function (rgb) { 2675 return { 2676 r: Math.min(255, Math.max(0, rgb.r)), 2677 g: Math.min(255, Math.max(0, rgb.g)), 2678 b: Math.min(255, Math.max(0, rgb.b)) 2679 }; 2680 }, 2681 fixHex = function (hex) { 2682 var len = 6 - hex.length; 2683 if (len > 0) { 2684 var o = []; 2685 for (var i = 0; i < len; i++) { 2686 o.push('0'); 2687 } 2688 o.push(hex); 2689 hex = o.join(''); 2690 } 2691 return hex; 2692 }, 2693 restoreOriginal = function () { 2694 var cal = $(this).parent(); 2695 var col = cal.data('colpick').origColor; 2696 cal.data('colpick').color = col; 2697 fillRGBFields(col, cal.get(0)); 2698 fillHexFields(col, cal.get(0)); 2699 fillHSBFields(col, cal.get(0)); 2700 setSelector(col, cal.get(0)); 2701 setHue(col, cal.get(0)); 2702 setNewColor(col, cal.get(0)); 2703 }; 2704 return { 2705 init: function (opt) { 2706 opt = $.extend({}, defaults, opt || {}); 2707 //Set color 2708 if (typeof opt.color == 'string') { 2709 opt.color = hexToHsb(opt.color); 2710 } else if (opt.color.r != undefined && opt.color.g != undefined && opt.color.b != undefined) { 2711 opt.color = rgbToHsb(opt.color); 2712 } else if (opt.color.h != undefined && opt.color.s != undefined && opt.color.b != undefined) { 2713 opt.color = fixHSB(opt.color); 2714 } else { 2715 return this; 2716 } 2717 2718 //For each selected DOM element 2719 return this.each(function () { 2720 //If the element does not have an ID 2721 if (!$(this).data('colpickid')) { 2722 var options = $.extend({}, opt); 2723 options.origColor = opt.color; 2724 //Generate and assign a random ID 2725 var id = 'collorpicker_' + parseInt(Math.random() * 1000); 2726 $(this).attr('data-colpickid', id); 2727 //Set the tpl's ID and get the HTML 2728 var cal = $(tpl).attr('id', id); 2729 //Add class according to layout 2730 cal.addClass('colpick_' + options.layout + (options.submit ? '' : ' colpick_' + options.layout + '_ns')); 2731 //Add class if the color scheme is not default 2732 if (options.colorScheme != 'light') { 2733 cal.addClass('colpick_' + options.colorScheme); 2734 } 2735 //Setup submit button 2736 cal.find('div.colpick_submit').html(options.submitText).click(clickSubmit); 2737 //Setup input fields 2738 options.fields = cal.find('input').change(change).blur(blur).focus(focus); 2739 cal.find('div.colpick_field_arrs').mousedown(downIncrement).end().find('div.colpick_current_color').click(restoreOriginal); 2740 //Setup hue selector 2741 options.selector = cal.find('div.colpick_color').on('mousedown touchstart', downSelector); 2742 options.selectorIndic = options.selector.find('div.colpick_selector_outer'); 2743 //Store parts of the plugin 2744 options.el = this; 2745 options.hue = cal.find('div.colpick_hue_arrs'); 2746 var huebar = options.hue.parent(); 2747 //Paint the hue bar 2748 var UA = navigator.userAgent.toLowerCase(); 2749 var isIE = navigator.appName === 'Microsoft Internet Explorer'; 2750 var IEver = isIE ? parseFloat(UA.match(/msie ([0-9]{1,}[\.0-9]{0,})/)[1]) : 0; 2751 var ngIE = isIE && IEver < 10; 2752 var stops = ['#ff0000', '#ff0080', '#ff00ff', '#8000ff', '#0000ff', '#0080ff', '#00ffff', '#00ff80', '#00ff00', '#80ff00', '#ffff00', '#ff8000', '#ff0000']; 2753 if (ngIE) { 2754 var i, div; 2755 for (i = 0; i <= 11; i++) { 2756 div = $('<div></div>
2756').attr('style', 'height:8.333333%; filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=' + stops[i] + ', endColorstr=' + stops[i + 1] + '); -ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=' + stops[i] + ', endColorstr=' + stops[i + 1] + ')";'); 2757 huebar.append(div); 2758 } 2759 } else { 2760 var stopList = stops.join(','); 2761 huebar.attr('style', 'background:-webkit-linear-gradient(top,' + stopList + '); background: -o-linear-gradient(top,' + stopList + '); background: -ms-linear-gradient(top,' + stopList + '); background:-moz-linear-gradient(top,' + stopList + '); -webkit-linear-gradient(top,' + stopList + '); background:linear-gradient(to bottom,' + stopList + '); '); 2762 } 2763 cal.find('div.colpick_hue').on('mousedown touchstart', downHue); 2764 options.newColor = cal.find('div.colpick_new_color'); 2765 options.currentColor = cal.find('div.colpick_current_color'); 2766 //Store options and fill with default color 2767 cal.data('colpick', options); 2768 fillRGBFields(options.color, cal.get(0)); 2769 fillHSBFields(options.color, cal.get(0)); 2770 fillHexFields(options.color, cal.get(0)); 2771 setHue(options.color, cal.get(0)); 2772 setSelector(options.color, cal.get(0)); 2773 setCurrentColor(options.color, cal.get(0)); 2774 setNewColor(options.color, cal.get(0)); 2775 //Append to body if flat=false, else show in place 2776 if (options.flat) { 2777 cal.appendTo(this).show(); 2778 cal.css({ 2779 position: 'relative', 2780 display: 'block' 2781 }); 2782 } else { 2783 cal.appendTo(document.body); 2784 $(this).on(options.showEvent, show); 2785 cal.css({ 2786 position: 'fixed' 2787 }); 2788 } 2789 } 2790 }); 2791 }, 2792 //Shows the picker 2793 showPicker: function () { 2794 return this.each(function () { 2795 if ($(this).data('colpickid')) { 2796 show.apply(this); 2797 } 2798 }); 2799 }, 2800 //Hides the picker 2801 hidePicker: function () { 2802 return this.each(function () { 2803 if ($(this).data('colpickid')) { 2804 $('#' + $(this).data('colpickid')).hide(); 2805 } 2806 }); 2807 }, 2808 //Sets a color as new and current (default) 2809 setColor: function (col, setCurrent) { 2810 setCurrent = typeof setCurrent === "undefined" ? 1 : setCurrent; 2811 if (typeof col == 'string') { 2812 col = hexToHsb(col); 2813 } else if (col.r != undefined && col.g != undefined && col.b != undefined) { 2814 col = rgbToHsb(col); 2815 } else if (col.h != undefined && col.s != undefined && col.b != undefined) { 2816 col = fixHSB(col); 2817 } else { 2818 return this; 2819 } 2820 return this.each(function () { 2821 if ($(this).data('colpickid')) { 2822 var cal = $('#' + $(this).data('colpickid')); 2823 cal.data('colpick').color = col; 2824 cal.data('colpick').origColor = col; 2825 fillRGBFields(col, cal.get(0)); 2826 fillHSBFields(col, cal.get(0)); 2827 fillHexFields(col, cal.get(0)); 2828 setHue(col, cal.get(0)); 2829 setSelector(col, cal.get(0)); 2830 2831 setNewColor(col, cal.get(0)); 2832 cal.data('colpick').onChange.apply(cal.parent(), [col, hsbToHex(col), hsbToRgb(col), cal.data('colpick').el, 1]); 2833 if (setCurrent) { 2834 setCurrentColor(col, cal.get(0)); 2835 } 2836 } 2837 }); 2838 } 2839 }; 2840 }(); 2841 //Color space convertions 2842 var hexToRgb = function (hex) { 2843 var hex = parseInt(hex.indexOf('#') > -1 ? hex.substring(1) : hex, 16); 2844 return { r: hex >> 16, g: (hex & 0x00FF00) >> 8, b: hex & 0x0000FF }; 2845 }; 2846 var hexToHsb = function (hex) { 2847 return rgbToHsb(hexToRgb(hex)); 2848 }; 2849 var rgbToHsb = function (rgb) { 2850 var hsb = { h: 0, s: 0, b: 0 }; 2851 var min = Math.min(rgb.r, rgb.g, rgb.b); 2852 var max = Math.max(rgb.r, rgb.g, rgb.b); 2853 var delta = max - min; 2854 hsb.b = max; 2855 hsb.s = max != 0 ? 255 * delta / max : 0; 2856 if (hsb.s != 0) { 2857 if (rgb.r == max) hsb.h = (rgb.g - rgb.b) / delta;else if (rgb.g == max) hsb.h = 2 + (rgb.b - rgb.r) / delta;else hsb.h = 4 + (rgb.r - rgb.g) / delta; 2858 } else hsb.h = -1; 2859 hsb.h *= 60; 2860 if (hsb.h < 0) hsb.h += 360; 2861 hsb.s *= 100 / 255; 2862 hsb.b *= 100 / 255; 2863 return hsb; 2864 }; 2865 var hsbToRgb = function (hsb) { 2866 var rgb = {};
2867 var h = hsb.h; 2868 var s = hsb.s * 255 / 100; 2869 var v = hsb.b * 255 / 100; 2870 if (s == 0) { 2871 rgb.r = rgb.g = rgb.b = v; 2872 } else { 2873 var t1 = v; 2874 var t2 = (255 - s) * v / 255; 2875 var t3 = (t1 - t2) * (h % 60) / 60; 2876 if (h == 360) h = 0; 2877 if (h < 60) { 2878 rgb.r = t1;rgb.b = t2;rgb.g = t2 + t3; 2879 } else if (h < 120) { 2880 rgb.g = t1;rgb.b = t2;rgb.r = t1 - t3; 2881 } else if (h < 180) { 2882 rgb.g = t1;rgb.r = t2;rgb.b = t2 + t3; 2883 } else if (h < 240) { 2884 rgb.b = t1;rgb.r = t2;rgb.g = t1 - t3; 2885 } else if (h < 300) { 2886 rgb.b = t1;rgb.g = t2;rgb.r = t2 + t3; 2887 } else if (h < 360) { 2888 rgb.r = t1;rgb.g = t2;rgb.b = t1 - t3; 2889 } else { 2890 rgb.r = 0;rgb.g = 0;rgb.b = 0; 2891 } 2892 } 2893 return { r: Math.round(rgb.r), g: Math.round(rgb.g), b: Math.round(rgb.b) }; 2894 }; 2895 var rgbToHex = function (rgb) { 2896 var hex = [rgb.r.toString(16), rgb.g.toString(16), rgb.b.toString(16)]; 2897 $.each(hex, function (nr, val) { 2898 if (val.length == 1) { 2899 hex[nr] = '0' + val; 2900 } 2901 }); 2902 return hex.join(''); 2903 }; 2904 var hsbToHex = function (hsb) { 2905 return rgbToHex(hsbToRgb(hsb)); 2906 }; 2907 $.fn.extend({ 2908 colpick: colpick.init, 2909 colpickHide: colpick.hidePicker, 2910 colpickShow: colpick.showPicker, 2911 colpickSetColor: colpick.setColor 2912 }); 2913 $.extend({ 2914 colpick: { 2915 rgbToHex: rgbToHex, 2916 rgbToHsb: rgbToHsb, 2917 hsbToHex: hsbToHex, 2918 hsbToRgb: hsbToRgb, 2919 hexToHsb: hexToHsb, 2920 hexToRgb: hexToRgb 2921 } 2922 }); 2923})(jQuery); 2924 2925/***/ }), 2926
2927/***/ "./js/lib/jquery.cookieBar.js": 2928/*!************************************!*\ 2929 !*** ./js/lib/jquery.cookieBar.js ***! 2930 \************************************/ 2931/*! no static exports found */ 2932/***/ (function(module, exports) { 2933 2934/*! 2935 * jQuery Cookiebar Plugin 2936 * https://github.com/carlwoodhouse/jquery.cookieBar 2937 * 2938 * Copyright 2012-17, Carl Woodhouse. the cookie function is inspired by https://github.com/carhartl/jquery-cookie 2939 * Disclaimer: if you still get fined for not complying with the eu cookielaw, it's not our fault. 2940 * Licence: MIT 2941 */ 2942 2943(function ($) { 2944 $.cookie = function (key, value, options) { 2945 if (arguments.length > 1 && (!/Object/.test(Object.prototype.toString.call(value)) || value === null || value === undefined)) { 2946 options = $.extend({}, options); 2947 2948 if (value === null || value === undefined) { 2949 options.expires = -1; 2950 } 2951 2952 if (typeof options.expires === 'number') { 2953 var days = options.expires, 2954 t = options.expires = new Date(); 2955 t.setDate(t.getDate() + days); 2956 } 2957 2958 value = String(value); 2959 2960 return document.cookie = [encodeURIComponent(key), '=', options.raw ? value : encodeURIComponent(value), options.expires ? '; expires=' + options.expires.toUTCString() : '', // max-age is not supported by IE 2961 options.path ? '; path=' + options.path : '', options.domain ? '; domain=' + options.domain : '', options.secure ? '; secure' : ''].join(''); 2962 } 2963 options = value || {}; 2964 var decode = options.raw ? function (s) { 2965 return s; 2966 } : decodeURIComponent; 2967 2968 var pairs = document.cookie.split('; '); 2969 for (var i = 0, pair; pair = pairs[i] && pairs[i].split('='); i++) { 2970 // IE 2971 if (decode(pair[0]) === key) return decode(pair[1] || ''); 2972 } 2973 return null; 2974 }; 2975 2976 $.fn.cookieBar = function (options) { 2977 var settings = $.extend({ 2978 'closeButton': 'none', 2979 'hideOnClose': true, 2980 'secure': false, 2981 'path': '/', 2982 'domain': '' 2983 }, options); 2984 2985 return this.each(function () { 2986 var cookiebar = $(this); 2987 2988 // just in case they didnt hide it by default. 2989 cookiebar.hide(); 2990 2991 // if close button not defined. define it! 2992 if (settings.closeButton == 'none') { 2993 cookiebar.append('<a class="cookiebar-close">Continue</a>'); 2994 $.extend(settings, { 'closeButton': '.cookiebar-close' }); 2995 } 2996 2997 if ($.cookie('cookiebar') != 'hide') { 2998 cookiebar.show(); 2999 } 3000 3001 cookiebar.find(settings.closeButton).click(function () { 3002 if (settings.hideOnClose) { 3003 cookiebar.hide(); 3004 } 3005 $.cookie('cookiebar', 'hide', { path: settings.path, secure: settings.secure, domain: settings.domain, expires: 30 }); 3006 cookiebar.trigger('cookieBar-close'); 3007 return false; 3008 }); 3009 }); 3010 }; 3011 3012 // self injection init 3013 $.cookieBar = function (options) { 3014 $('body').prepend('<div class="ui-widget"><div style="display: none;" class="cookie-message ui-widget-header blue"><p>By using this website you allow us to place cookies on your computer. They are harmless and never personally identify you.</p></div></div>'); 3015 $('.cookie-message').cookieBar(options); 3016 }; 3017})(jQuery); 3018 3019/***/ }), 3020
3021/***/ "./js/lib/jquery.countdown.min.js": 3022/*!****************************************!*\ 3023 !*** ./js/lib/jquery.countdown.min.js ***! 3024 \****************************************/ 3025/*! no static exports found */ 3026/***/ (function(module, exports, __webpack_require__) { 3027 3028var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! 3029 * The Final Countdown for jQuery v2.2.0 (http://hilios.github.io/jQuery.countdown/) 3030 * Copyright (c) 2016 Edson Hilios 3031 * 3032 * Permission is hereby granted, free of charge, to any person obtaining a copy of 3033 * this software and associated documentation files (the "Software"), to deal in 3034 * the Software without restriction, including without limitation the rights to 3035 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 3036 * the Software, and to permit persons to whom the Software is furnished to do so, 3037 * subject to the following conditions: 3038 * 3039 * The above copyright notice and this permission notice shall be included in all 3040 * copies or substantial portions of the Software. 3041 * 3042 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 3043 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 3044 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 3045 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 3046 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 3047 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 3048 */ 3049!function (a) { 3050 "use strict"; 3051 true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! jquery */ "jquery")], __WEBPACK_AMD_DEFINE_FACTORY__ = (a), 3052 __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? 3053 (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), 3054 __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined; 3055}(function (a) { 3056 "use strict"; 3057 function b(a) { 3058 if (a instanceof Date) return a;if (String(a).match(g)) return String(a).match(/^[0-9]*$/) && (a = Number(a)), String(a).match(/\-/) && (a = String(a).replace(/\-/g, "/")), new Date(a);throw new Error("Couldn't cast `" + a + "` to a date object."); 3059 }function c(a) { 3060 var b = a.toString().replace(/([.?*+^$[\]\\(){}|-])/g, "\\$1");return new RegExp(b); 3061 }function d(a) { 3062 return function (b) { 3063 var d = b.match(/%(-|!)?[A-Z]{1}(:[^;]+;)?/gi);if (d) for (var f = 0, g = d.length; f < g; ++f) { 3064 var h = d[f].match(/%(-|!)?([a-zA-Z]{1})(:[^;]+;)?/), 3065 j = c(h[0]), 3066 k = h[1] || "", 3067 l = h[3] || "", 3068 m = null;h = h[2], i.hasOwnProperty(h) && (m = i[h], m = Number(a[m])), null !== m && ("!" === k && (m = e(l, m)), "" === k && m < 10 && (m = "0" + m.toString()), b = b.replace(j, m.toString())); 3069 }return b = b.replace(/%%/, "%"); 3070 }; 3071 }function e(a, b) { 3072 var c = "s", 3073 d = "";return a && (a = a.replace(/(:|;|\s)/gi, "").split(/\,/), 1 === a.length ? c = a[0] : (d = a[0], c = a[1])), Math.abs(b) > 1 ? c : d; 3074 }var f = [], 3075 g = [], 3076 h = { precision: 100, elapse: !1, defer: !1 };g.push(/^[0-9]*$/.source), g.push(/([0-9]{1,2}\/){2}[0-9]{4}( [0-9]{1,2}(:[0-9]{2}){2})?/.source), g.push(/[0-9]{4}([\/\-][0-9]{1,2}){2}( [0-9]{1,2}(:[0-9]{2}){2})?/.source), g = new RegExp(g.join("|"));var i = { Y: "years", m: "months", n: "daysToMonth", d: "daysToWeek", w: "weeks", W: "weeksToMonth", H: "hours", M: "minutes", S: "seconds", D: "totalDays", I: "totalHours", N: "totalMinutes", T: "totalSeconds" }, 3077 j = function (b, c, d) { 3078 this.el = b, this.$el = a(b), this.interval = null, this.offset = {}, this.options = a.extend({}, h), this.instanceNumber = f.length, f.push(this), this.$el.data("countdown-instance", this.instanceNumber), d && ("function" == typeof d ? (this.$el.on("update.countdown", d), this.$el.on("stoped.countdown", d), this.$el.on("finish.countdown", d)) : this.options = a.extend({}, h, d)), this.setFinalDate(c), this.options.defer === !1 && this.start(); 3079 };a.extend(j.prototype, { start: function () { 3080 null !== this.interval && clearInterval(this.interval);var a = this;this.update(), this.interval = setInterval(function () { 3081 a.update.call(a); 3082 }, this.options.precision); 3083 }, stop: function () { 3084 clearInterval(this.interval), this.interval = null, this.dispatchEvent("stoped"); 3085 }, toggle: function () { 3086 this.interval ? this.stop() : this.start(); 3087 }, pause: function () { 3088 this.stop(); 3089 }, resume: function () { 3090 this.start(); 3091 }, remove: function () { 3092 this.stop.call(this), f[this.instanceNumber] = null, delete this.$el.data().countdownInstance; 3093 }, setFinalDate: function (a) { 3094 this.finalDate = b(a); 3095 }, update: function () { 3096 if (0 === this.$el.closest("html").length) return void this.remove();var b, 3097 c = void 0 !== a._data(this.el, "events"), 3098 d = new Date();
vendor: 1,898 bytes, lines 3098-3112
3098b = this.finalDate.getTime() - d.getTime(), b = Math.ceil(b / 1e3), b = !this.options.elapse && b < 0 ? 0 : Math.abs(b), this.totalSecsLeft !== b && c && (this.totalSecsLeft = b, this.elapsed = d >= this.finalDate, this.offset = { seconds: this.totalSecsLeft % 60, minutes: Math.floor(this.totalSecsLeft / 60) % 60, hours: Math.floor(this.totalSecsLeft / 60 / 60) % 24, days: Math.floor(this.totalSecsLeft / 60 / 60 / 24) % 7, daysToWeek: Math.floor(this.totalSecsLeft / 60 / 60 / 24) % 7, daysToMonth: Math.floor(this.totalSecsLeft / 60 / 60 / 24 % 30.4368), weeks: Math.floor(this.totalSecsLeft / 60 / 60 / 24 / 7), weeksToMonth: Math.floor(this.totalSecsLeft / 60 / 60 / 24 / 7) % 4, months: Math.floor(this.totalSecsLeft / 60 / 60 / 24 / 30.4368), years: Math.abs(this.finalDate.getFullYear() - d.getFullYear()), totalDays: Math.floor(this.totalSecsLeft / 60 / 60 / 24), totalHours: Math.floor(this.totalSecsLeft / 60 / 60), totalMinutes: Math.floor(this.totalSecsLeft / 60), totalSeconds: this.totalSecsLeft }, this.options.elapse || 0 !== this.totalSecsLeft ? this.dispatchEvent("update") : (this.stop(), this.dispatchEvent("finish"))); 3099 }, dispatchEvent: function (b) { 3100 var c = a.Event(b + ".countdown");c.finalDate = this.finalDate, c.elapsed = this.elapsed, c.offset = a.extend({}, this.offset), c.strftime = d(this.offset), this.$el.trigger(c); 3101 } }), a.fn.countdown = function () { 3102 var b = Array.prototype.slice.call(arguments, 0);return this.each(function () { 3103 var c = a(this).data("countdown-instance");if (void 0 !== c) { 3104 var d = f[c], 3105 e = b[0];j.prototype.hasOwnProperty(e) ? d[e].apply(d, b.slice(1)) : null === String(e).match(/^[$A-Z_][0-9A-Z_$]*$/i) ? (d.setFinalDate.call(d, e), d.start()) : a.error("Method %s does not exist on jQuery.countdown".replace(/\%s/gi, e)); 3106 } else new j(this, b[0], b[1]); 3107 }); 3108 }; 3109}); 3110 3111/***/ }), 3112
3113/***/ "./js/lib/jquery.elevateZoom.min.js": 3114/*!******************************************!*\ 3115 !*** ./js/lib/jquery.elevateZoom.min.js ***! 3116 \******************************************/ 3117/*! no static exports found */ 3118/***/ (function(module, exports) { 3119 3120/* jQuery elevateZoom 3.0.8 - Demo's and documentation: - www.elevateweb.co.uk/image-zoom - Copyright (c) 2013 Andrew Eades - www.elevateweb.co.uk - Dual licensed under the LGPL licenses. - http://en.wikipedia.org/wiki/MIT_License - http://en.wikipedia.org/wiki/GNU_General_Public_License */ 3121"function" !== typeof Object.create && (Object.create = function (d) { 3122 function h() {}h.prototype = d;return new h(); 3123}); 3124(function (d, h, l, m) { 3125 var k = { init: function (b, a) { 3126 var c = this;c.elem = a;c.$elem = d(a);c.imageSrc = c.$elem.data("zoom-image") ? c.$elem.data("zoom-image") : c.$elem.attr("src");c.options = d.extend({}, d.fn.elevateZoom.options, b);c.options.tint && (c.options.lensColour = "none", c.options.lensOpacity = "1");"inner" == c.options.zoomType && (c.options.showLens = !1);c.$elem.parent().removeAttr("title").removeAttr("alt");c.zoomImage = c.imageSrc;c.refresh(1);d("#" + c.options.gallery + " a").click(function (a) { 3127 c.options.galleryActiveClass && (d("#" + c.options.gallery + " a").removeClass(c.options.galleryActiveClass), d(this).addClass(c.options.galleryActiveClass));a.preventDefault();d(this).data("zoom-image") ? c.zoomImagePre = d(this).data("zoom-image") : c.zoomImagePre = d(this).data("image");c.swaptheimage(d(this).data("image"), c.zoomImagePre);return !1; 3128 }); 3129 }, refresh: function (b) { 3130 var a = this;setTimeout(function () { 3131 a.fetch(a.imageSrc); 3132 }, b || a.options.refresh); 3133 }, fetch: function (b) { 3134 var a = this, 3135 c = new Image();c.onload = function () { 3136 a.largeWidth = c.width;a.largeHeight = c.height;a.startZoom();a.currentImage = a.imageSrc;a.options.onZoomedImageLoaded(a.$elem); 3137 };c.src = b; 3138 }, startZoom: function () { 3139 var b = this;b.nzWidth = b.$elem.width();b.nzHeight = b.$elem.height();b.isWindowActive = !1;b.isLensActive = !1;b.isTintActive = !1;b.overWindow = !1;b.options.imageCrossfade && (b.zoomWrap = b.$elem.wrap('<div style="height:' + b.nzHeight + "px;width:" + b.nzWidth + 'px;" class="zoomWrapper" />'), b.$elem.css("position", "absolute"));b.zoomLock = 1;b.scrollingLock = !1;b.changeBgSize = !1;b.currentZoomLevel = b.options.zoomLevel; 3140 b.nzOffset = b.$elem.offset();b.widthRatio = b.largeWidth / b.currentZoomLevel / b.nzWidth;b.heightRatio = b.largeHeight / b.currentZoomLevel / b.nzHeight;"window" == b.options.zoomType && (b.zoomWindowStyle = "overflow: hidden;background-position: 0px 0px;text-align:center;background-color: " + String(b.options.zoomWindowBgColour) + ";width: " + String(b.options.zoomWindowWidth) + "px;height: " + String(b.options.zoomWindowHeight) + "px;float: left;background-size: " + b.largeWidth / b.currentZoomLevel + "px " + b.largeHeight / b.currentZoomLevel + "px;display: none;z-index:100;border: " + String(b.options.borderSize) + "px solid " + b.options.borderColour + ";background-repeat: no-repeat;position: absolute;");if ("inner" == b.options.zoomType) { 3141 var a = b.$elem.css("border-left-width");b.zoomWindowStyle = "overflow: hidden;margin-left: " + String(a) + ";margin-top: " + String(a) + ";background-position: 0px 0px;width: " + String(b.nzWidth) + "px;height: " + String(b.nzHeight) + "px;float: left;display: none;cursor:" + b.options.cursor + ";px solid " + b.options.borderColour + ";background-repeat: no-repeat;position: absolute;"; 3142 }"window" == b.options.zoomType && (lensHeight = b.nzHeight < b.options.zoomWindowWidth / b.widthRatio ? b.nzHeight : String(b.options.zoomWindowHeight / b.heightRatio), lensWidth = b.largeWidth < b.options.zoomWindowWidth ? b.nzWidth : b.options.zoomWindowWidth / b.widthRatio, b.lensStyle = "background-position: 0px 0px;width: " + String(b.options.zoomWindowWidth / b.widthRatio) + "px;height: " + String(b.options.zoomWindowHeight / b.heightRatio) + "px;float: right;display: none;overflow: hidden;z-index: 999;-webkit-transform: translateZ(0);opacity:" + b.options.lensOpacity + ";filter: alpha(opacity = " + 100 * b.options.lensOpacity + "); zoom:1;
3142width:" + lensWidth + "px;height:" + lensHeight + "px;background-color:" + b.options.lensColour + ";cursor:" + b.options.cursor + ";border: " + b.options.lensBorderSize + "px solid " + b.options.lensBorderColour + ";background-repeat: no-repeat;position: absolute;");b.tintStyle = "display: block;position: absolute;background-color: " + b.options.tintColour + ";filter:alpha(opacity=0);opacity: 0;width: " + b.nzWidth + "px;height: " + b.nzHeight + "px;"; 3143 b.lensRound = "";"lens" == b.options.zoomType && (b.lensStyle = "background-position: 0px 0px;float: left;display: none;border: " + String(b.options.borderSize) + "px solid " + b.options.borderColour + ";width:" + String(b.options.lensSize) + "px;height:" + String(b.options.lensSize) + "px;background-repeat: no-repeat;position: absolute;");"round" == b.options.lensShape && (b.lensRound = "border-top-left-radius: " + String(b.options.lensSize / 2 + b.options.borderSize) + "px;border-top-right-radius: " + String(b.options.lensSize / 2 + b.options.borderSize) + "px;border-bottom-left-radius: " + String(b.options.lensSize / 2 + b.options.borderSize) + "px;border-bottom-right-radius: " + String(b.options.lensSize / 2 + b.options.borderSize) + "px;");b.zoomContainer = d('<div class="zoomContainer" style="-webkit-transform: translateZ(0);position:absolute;left:' + b.nzOffset.left + "px;top:" + b.nzOffset.top + "px;height:" + b.nzHeight + "px;width:" + b.nzWidth + 'px;"></div>');d("body").append(b.zoomContainer);b.options.containLensZoom && "lens" == b.options.zoomType && b.zoomContainer.css("overflow", "hidden");"inner" != b.options.zoomType && (b.zoomLens = d("<div class='zoomLens' style='" + b.lensStyle + b.lensRound + "'> </div>").appendTo(b.zoomContainer).click(function () { 3144 b.$elem.trigger("click"); 3145 }), b.options.tint && (b.tintContainer = d("<div/>").addClass("tintContainer"), b.zoomTint = d("<div class='zoomTint' style='" + b.tintStyle + "'></div>"), b.zoomLens.wrap(b.tintContainer), b.zoomTintcss = b.zoomLens.after(b.zoomTint), b.zoomTintImage = d('<img style="position: absolute; left: 0px; top: 0px; max-width: none; width: ' + b.nzWidth + "px; height: " + b.nzHeight + 'px;" src="' + b.imageSrc + '">').appendTo(b.zoomLens).click(function () { 3146 b.$elem.trigger("click"); 3147 })));isNaN(b.options.zoomWindowPosition) ? b.zoomWindow = d("<div style='z-index:999;left:" + b.windowOffsetLeft + "px;top:" + b.windowOffsetTop + "px;" + b.zoomWindowStyle + "' class='zoomWindow'> </div>").appendTo("body").click(function () { 3148 b.$elem.trigger("click"); 3149 }) : b.zoomWindow = d("<div style='z-index:999;left:" + b.windowOffsetLeft + "px;top:" + b.windowOffsetTop + "px;" + b.zoomWindowStyle + "' class='zoomWindow'> </div>").appendTo(b.zoomContainer).click(function () { 3150 b.$elem.trigger("click"); 3151 });b.zoomWindowContainer = d("<div/>").addClass("zoomWindowContainer").css("width", b.options.zoomWindowWidth);b.zoomWindow.wrap(b.zoomWindowContainer);"lens" == b.options.zoomType && b.zoomLens.css({ backgroundImage: "url('" + b.imageSrc + "')" });"window" == b.options.zoomType && b.zoomWindow.css({ backgroundImage: "url('" + b.imageSrc + "')" });"inner" == b.options.zoomType && b.zoomWindow.css({ backgroundImage: "url('" + b.imageSrc + "')" });b.$elem.bind("touchmove", function (a) { 3152 a.preventDefault();b.setPosition(a.originalEvent.touches[0] || a.originalEvent.changedTouches[0]); 3153 });b.zoomContainer.bind("touchmove", function (a) { 3154 "inner" == b.options.zoomType && b.showHideWindow("show");a.preventDefault();b.setPosition(a.originalEvent.touches[0] || a.originalEvent.changedTouches[0]); 3155 });b.zoomContainer.bind("touchend", function (a) { 3156 b.showHideWindow("hide");b.options.showLens && b.showHideLens("hide");b.options.tint && "inner" != b.options.zoomType && b.showHideTint("hide"); 3157 }); 3158 b.$elem.bind("touchend", function (a) { 3159 b.showHideWindow("hide");b.options.showLens && b.showHideLens("hide");b.options.tint && "inner" != b.options.zoomType && b.showHideTint("hide"); 3160 });b.options.showLens && (b.zoomLens.bind("touchmove", function (a) { 3161 a.preventDefault();b.setPosition(a.originalEvent.touches[0] || a.originalEvent.changedTouches[0]); 3162 }), b.zoomLens.bind("touchend", function (a) { 3163 b.showHideWindow("hide");b.options.showLens && b.showHideLens("hide");b.options.tint && "inner" != b.options.zoomType && b.showHideTint("hide"); 3164 })); 3165 b.$elem.bind("mousemove", function (a) { 3166 !1 == b.overWindow && b.setElements("show");if (b.lastX !== a.clientX || b.lastY !== a.clientY) b.setPosition(a), b.currentLoc = a;b.lastX = a.clientX;b.lastY = a.clientY; 3167 });b.zoomContainer.bind("mousemove", function (a) { 3168 !1 == b.overWindow && b.setElements("show");if (b.lastX !== a.clientX || b.lastY !== a.clientY) b.setPosition(a), b.currentLoc = a;b.lastX = a.clientX;b.lastY = a.clientY; 3169 });"inner" != b.options.zoomType && b.zoomLens.bind("mousemove", function (a) { 3170 if (b.lastX !== a.clientX || b.lastY !== a.clientY) b.setPosition(a), b.currentLoc = a;b.lastX = a.clientX;b.lastY = a.clientY; 3171 });b.options.tint && "inner" != b.options.zoomType && b.zoomTint.bind("mousemove", function (a) { 3172 if (b.lastX !== a.clientX || b.lastY !== a.clientY) b.setPosition(a), b.currentLoc = a;b.lastX = a.clientX;b.lastY = a.clientY; 3173 });"inner" == b.options.zoomType && b.zoomWindow.bind("mousemove", function (a) { 3174 if (b.lastX !== a.clientX || b.lastY !== a.clientY) b.setPosition(a), b.currentLoc = a;b.lastX = a.clientX;b.lastY = a.clientY; 3175 });b.zoomContainer.add(b.$elem).mouseenter(function () { 3176 !1 == b.overWindow && b.setElements("show"); 3177 }).mouseleave(function () { 3178 b.scrollLock || b.setElements("hide"); 3179 });"inner" != b.options.zoomType && b.zoomWindow.mouseenter(function () { 3180 b.overWindow = !0;b.setElements("hide"); 3181 }).mouseleave(function () { 3182 b.overWindow = !1; 3183 });b.minZoomLevel = b.options.minZoomLevel ? b.options.minZoomLevel : 2 * b.options.scrollZoomIncrement;b.options.scrollZoom && b.zoomContainer.add(b.$elem).bind("mousewheel DOMMouseScroll MozMousePixelScroll", function (a) { 3184 b.scrollLock = !0;clearTimeout(d.data(this, "timer"));d.data(this, "timer", setTimeout(function () { 3185 b.scrollLock = !1; 3186 }, 250));var e = a.originalEvent.wheelDelta || -1 * a.originalEvent.detail;a.stopImmediatePropagation();a.stopPropagation();a.preventDefault();0 < e / 120 ? b.currentZoomLevel >= b.minZoomLevel && b.changeZoomLevel(b.currentZoomLevel - b.options.scrollZoomIncrement) : b.options.maxZoomLevel ? b.currentZoomLevel <= b.options.maxZoomLevel && b.changeZoomLevel(parseFloat(b.currentZoomLevel) + b.options.scrollZoomIncrement) : b.changeZoomLevel(parseFloat(b.currentZoomLevel) + b.options.scrollZoomIncrement); 3187 return !1; 3188 }); 3189 }, setElements: function (b) { 3190 if (!this.options.zoomEnabled) return !1;"show" == b && this.isWindowSet && ("inner" == this.options.zoomType && this.showHideWindow("show"), "window" == this.options.zoomType && this.showHideWindow("show"), this.options.showLens && this.showHideLens("show"), this.options.tint && "inner" != this.options.zoomType && this.showHideTint("show"));"hide" == b && ("window" == this.options.zoomType && this.showHideWindow("hide"), this.options.tint || this.showHideWindow("hide"), this.options.showLens && this.showHideLens("hide"), this.options.tint && this.showHideTint("hide")); 3191 }, setPosition: function (b) { 3192 if (!this.options.zoomEnabled) return !1;this.nzHeight = this.$elem.height();this.nzWidth = this.$elem.width();this.nzOffset = this.$elem.offset();this.options.tint && "inner" != this.options.zoomType && (this.zoomTint.css({ top: 0 }), this.zoomTint.css({ left: 0 }));this.options.responsive && !this.options.scrollZoom && this.options.showLens && (lensHeight = this.nzHeight < this.options.zoomWindowWidth / this.widthRatio ? this.nzHeight :
3192String(this.options.zoomWindowHeight / this.heightRatio), lensWidth = this.largeWidth < this.options.zoomWindowWidth ? this.nzWidth : this.options.zoomWindowWidth / this.widthRatio, this.widthRatio = this.largeWidth / this.nzWidth, this.heightRatio = this.largeHeight / this.nzHeight, "lens" != this.options.zoomType && (lensHeight = this.nzHeight < this.options.zoomWindowWidth / this.widthRatio ? this.nzHeight : String(this.options.zoomWindowHeight / this.heightRatio), lensWidth = this.options.zoomWindowWidth < this.options.zoomWindowWidth ? this.nzWidth : this.options.zoomWindowWidth / this.widthRatio, this.zoomLens.css("width", lensWidth), this.zoomLens.css("height", lensHeight), this.options.tint && (this.zoomTintImage.css("width", this.nzWidth), this.zoomTintImage.css("height", this.nzHeight))), "lens" == this.options.zoomType && this.zoomLens.css({ width: String(this.options.lensSize) + "px", height: String(this.options.lensSize) + "px" }));this.zoomContainer.css({ top: this.nzOffset.top });this.zoomContainer.css({ left: this.nzOffset.left });this.mouseLeft = parseInt(b.pageX - this.nzOffset.left);this.mouseTop = parseInt(b.pageY - this.nzOffset.top);"window" == this.options.zoomType && (this.Etoppos = this.mouseTop < this.zoomLens.height() / 2, this.Eboppos = this.mouseTop > this.nzHeight - this.zoomLens.height() / 2 - 2 * this.options.lensBorderSize, this.Eloppos = this.mouseLeft < 0 + this.zoomLens.width() / 2, this.Eroppos = this.mouseLeft > this.nzWidth - this.zoomLens.width() / 2 - 2 * this.options.lensBorderSize);"inner" == this.options.zoomType && (this.Etoppos = this.mouseTop < this.nzHeight / 2 / this.heightRatio, this.Eboppos = this.mouseTop > this.nzHeight - this.nzHeight / 2 / this.heightRatio, this.Eloppos = this.mouseLeft < 0 + this.nzWidth / 2 / this.widthRatio, this.Eroppos = this.mouseLeft > this.nzWidth - this.nzWidth / 2 / this.widthRatio - 2 * this.options.lensBorderSize);0 >= this.mouseLeft || 0 > this.mouseTop || this.mouseLeft > this.nzWidth || this.mouseTop > this.nzHeight ? this.setElements("hide") : (this.options.showLens && (this.lensLeftPos = String(this.mouseLeft - this.zoomLens.width() / 2), this.lensTopPos = String(this.mouseTop - this.zoomLens.height() / 2)), this.Etoppos && (this.lensTopPos = 0), this.Eloppos && (this.tintpos = this.lensLeftPos = this.windowLeftPos = 0), "window" == this.options.zoomType && (this.Eboppos && (this.lensTopPos = Math.max(this.nzHeight - this.zoomLens.height() - 2 * this.options.lensBorderSize, 0)), this.Eroppos && (this.lensLeftPos = this.nzWidth - this.zoomLens.width() - 2 * this.options.lensBorderSize)), "inner" == this.options.zoomType && (this.Eboppos && (this.lensTopPos = Math.max(this.nzHeight - 2 * this.options.lensBorderSize, 0)), this.Eroppos && (this.lensLeftPos = this.nzWidth - this.nzWidth - 2 * this.options.lensBorderSize)), "lens" == this.options.zoomType && (this.windowLeftPos = String(-1 * ((b.pageX - this.nzOffset.left) * this.widthRatio - this.zoomLens.width() / 2)), this.windowTopPos = String(-1 * ((b.pageY - this.nzOffset.top) * this.heightRatio - this.zoomLens.height() / 2)), this.zoomLens.css({ backgroundPosition: this.windowLeftPos + "px " + this.windowTopPos + "px" }), this.changeBgSize && (this.nzHeight > this.nzWidth ? ("lens" == this.options.zoomType && this.zoomLens.css({ "background-size": this.largeWidth / this.newvalueheight + "px " + this.largeHeight / this.newvalueheight + "px" }), this.zoomWindow.css({ "background-size": this.largeWidth / this.newvalueheight + "px " + this.largeHeight / this.newvalueheight + "px" })) : ("lens" == this.options.zoomType && this.zoomLens.css({ "background-size": this.largeWidth / this.newvaluewidth + "px " + this.largeHeight / this.newvaluewidth + "px" }), this.zoomWindow.css({ "background-size": this.largeWidth / this.newvaluewidth + "px " + this.largeHeight / this.newvaluewidth + "px" })), this.changeBgSize = !1), this.setWindowPostition(b)), this.options.tint && "inner" != this.options.zoomType && this.setTintPosition(b), "window" == this.options.zoomType && this.setWindowPostition(b), "inner" == this.options.zoomType && this.setWindowPostition(b), this.options.showLens && (this.fullwidth && "lens" != this.options.zoomType && (this.lensLeftPos = 0), this.zoomLens.css({ left: this.lensLeftPos + "px", top: this.lensTopPos + "px" }))); 3193 }, showHideWindow: function (b) { 3194 "show" != b || this.isWindowActive || (this.options.zoomWindowFadeIn ? this.zoomWindow.stop(!0, !0, !1).fadeIn(this.options.zoomWindowFadeIn) : this.zoomWindow.show(), this.isWindowActive = !0);"hide" == b && this.isWindowActive && (this.options.zoomWindowFadeOut ? this.zoomWindow.stop(!0, !0).fadeOut(this.options.zoomWindowFadeOut) : this.zoomWindow.hide(), this.isWindowActive = !1); 3195 }, showHideLens: function (b) { 3196 "show" != b || this.isLensActive || (this.options.lensFadeIn ? this.zoomLens.stop(!0, !0, !1).fadeIn(this.options.lensFadeIn) : this.zoomLens.show(), this.isLensActive = !0);"hide" == b && this.isLensActive && (this.options.lensFadeOut ? this.zoomLens.stop(!0, !0).fadeOut(this.options.lensFadeOut) : this.zoomLens.hide(), this.isLensActive = !1); 3197 }, showHideTint: function (b) { 3198 "show" != b || this.isTintActive || (this.options.zoomTintFadeIn ? this.zoomTint.css({ opacity: this.options.tintOpacity }).animate().stop(!0, !0).fadeIn("slow") : (this.zoomTint.css({ opacity: this.options.tintOpacity }).animate(), this.zoomTint.show()), this.isTintActive = !0);"hide" == b && this.isTintActive && (this.options.zoomTintFadeOut ? this.zoomTint.stop(!0, !0).fadeOut(this.options.zoomTintFadeOut) : this.zoomTint.hide(), this.isTintActive = !1); 3199 }, setLensPostition: function (b) {}, 3200 setWindowPostition: function (b) { 3201 var a = this;if (isNaN(a.options.zoomWindowPosition)) a.externalContainer = d("#" + a.options.zoomWindowPosition), a.externalContainerWidth = a.externalContainer.width(), a.externalContainerHeight = a.externalContainer.height(), a.externalContainerOffset = a.externalContainer.offset(), a.windowOffsetTop = a.externalContainerOffset.top, a.windowOffsetLeft = a.externalContainerOffset.left;else switch (a.options.zoomWindowPosition) {case 1: 3202 a.windowOffsetTop = a.options.zoomWindowOffety;a.windowOffsetLeft = +a.nzWidth;break;case 2: 3203 a.options.zoomWindowHeight > a.nzHeight && (a.windowOffsetTop = -1 * (a.options.zoomWindowHeight / 2 - a.nzHeight / 2), a.windowOffsetLeft = a.nzWidth);break;case 3: 3204 a.windowOffsetTop = a.nzHeight - a.zoomWindow.height() - 2 * a.options.borderSize;a.windowOffsetLeft = a.nzWidth;break;case 4: 3205 a.windowOffsetTop = a.nzHeight;a.windowOffsetLeft = a.nzWidth;break;case 5: 3206 a.windowOffsetTop = a.nzHeight;a.windowOffsetLeft = a.nzWidth - a.zoomWindow.width() - 2 * a.options.borderSize;break;case 6: 3207 a.options.zoomWindowHeight > a.nzHeight && (a.windowOffsetTop = a.nzHeight, a.windowOffsetLeft = -1 * (a.options.zoomWindowWidth / 2 - a.nzWidth / 2 + 2 * a.options.borderSize));break;case 7: 3208 a.windowOffsetTop = a.nzHeight;a.windowOffsetLeft = 0;break;case 8: 3209 a.windowOffsetTop = a.nzHeight;a.windowOffsetLeft = -1 * (a.zoomWindow.width() + 2 * a.options.borderSize);break;case 9: 3210 a.windowOffsetTop = a.nzHeight - a.zoomWindow.height() - 2 * a.options.borderSize;a.windowOffsetLeft = -1 * (a.zoomWindow.width() + 2 * a.options.borderSize);break;case 10: 3211 a.options.zoomWindowHeight > a.nzHeight && (a.windowOffsetTop = -1 * (a.options.zoomWindowHeight / 2 - a.nzHeight / 2), a.windowOffsetLeft = -1 * (a.zoomWindow.width() + 2 * a.options.borderSize));break;case 11: 3212 a.windowOffsetTop = a.options.zoomWindowOffety;a.windowOffsetLeft = -1 * (a.zoomWindow.width() + 2 * a.options.borderSize);break;case 12: 3213 a.windowOffsetTop = -1 * (a.zoomWindow.height() + 2 * a.options.borderSize);a.windowOffsetLeft = -1 * (a.zoomWindow.width() + 2 * a.options.borderSize);break;case 13: 3214 a.windowOffsetTop = -1 * (a.zoomWindow.height() + 2 * a.options.borderSize);a.windowOffsetLeft = 0;break;case 14: 3215 a.options.zoomWindowHeight > a.nzHeight && (a.windowOffsetTop = -1 * (a.zoomWindow.height() + 2 * a.options.borderSize), a.windowOffsetLeft = -1 * (a.options.zoomWindowWidth / 2 - a.nzWidth / 2 + 2 * a.options.borderSize));break;case 15: 3216 a.windowOffsetTop = -1 * (a.zoomWindow.height() + 2 * a.options.borderSize);a.windowOffsetLeft = a.nzWidth - a.zoomWindow.width() - 2 * a.options.borderSize;break;case 16: 3217 a.windowOffsetTop = -1 * (a.zoomWindow.height() + 2 * a.options.borderSize);a.windowOffsetLeft = a.nzWidth;break;default: 3218 a.windowOffsetTop = a.options.zoomWindowOffety, a.windowOffsetLeft = a.nzWidth;}a.isWindowSet = !0;a.windowOffsetTop += a.options.zoomWindowOffety;a.windowOffsetLeft += a.options.zoomWindowOffetx;a.zoomWindow.css({ top: a.windowOffsetTop });a.zoomWindow.css({ left: a.windowOffsetLeft });"inner" == a.options.zoomType && (a.zoomWindow.css({ top: 0 }), a.zoomWindow.css({ left: 0 }));a.windowLeftPos = String(-1 * ((b.pageX - a.nzOffset.left) * a.widthRatio - a.zoomWindow.width() / 2));a.windowTopPos = String(-1 * ((b.pageY - a.nzOffset.top) * a.heightRatio - a.zoomWindow.height() / 2));a.Etoppos && (a.windowTopPos = 0);a.Eloppos && (a.windowLeftPos = 0);a.Eboppos && (a.windowTopPos = -1 * (a.largeHeight / a.currentZoomLevel - a.zoomWindow.height()));a.Eroppos && (a.windowLeftPos = -1 * (a.largeWidth / a.currentZoomLevel - a.zoomWindow.width()));a.fullheight && (a.windowTopPos = 0);a.fullwidth && (a.windowLeftPos = 0);if ("window" == a.options.zoomType || "inner" == a.options.zoomType) 1 == a.zoomLock && (1 >= a.widthRatio && (a.windowLeftPos = 0), 1 >= a.heightRatio && (a.windowTopPos = 0)), a.largeHeight < a.options.zoomWindowHeight && (a.windowTopPos = 0), a.largeWidth < a.options.zoomWindowWidth && (a.windowLeftPos = 0), a.options.easing ? (a.xp || (a.xp = 0), a.yp || (a.yp = 0), a.loop || (a.loop = setInterval(function () {
3219 a.xp += (a.windowLeftPos - a.xp) / a.options.easingAmount;a.yp += (a.windowTopPos - a.yp) / a.options.easingAmount;a.scrollingLock ? (clearInterval(a.loop), a.xp = a.windowLeftPos, a.yp = a.windowTopPos, a.xp = -1 * ((b.pageX - a.nzOffset.left) * a.widthRatio - a.zoomWindow.width() / 2), a.yp = -1 * ((b.pageY - a.nzOffset.top) * a.heightRatio - a.zoomWindow.height() / 2), a.changeBgSize && (a.nzHeight > a.nzWidth ? ("lens" == a.options.zoomType && a.zoomLens.css({ "background-size": a.largeWidth / a.newvalueheight + "px " + a.largeHeight / a.newvalueheight + "px" }), a.zoomWindow.css({ "background-size": a.largeWidth / a.newvalueheight + "px " + a.largeHeight / a.newvalueheight + "px" })) : ("lens" != a.options.zoomType && a.zoomLens.css({ "background-size": a.largeWidth / a.newvaluewidth + "px " + a.largeHeight / a.newvalueheight + "px" }), a.zoomWindow.css({ "background-size": a.largeWidth / a.newvaluewidth + "px " + a.largeHeight / a.newvaluewidth + "px" })), a.changeBgSize = !1), a.zoomWindow.css({ backgroundPosition: a.windowLeftPos + "px " + a.windowTopPos + "px" }), a.scrollingLock = !1, a.loop = !1) : (a.changeBgSize && (a.nzHeight > a.nzWidth ? ("lens" == a.options.zoomType && a.zoomLens.css({ "background-size": a.largeWidth / a.newvalueheight + "px " + a.largeHeight / a.newvalueheight + "px" }), a.zoomWindow.css({ "background-size": a.largeWidth / a.newvalueheight + "px " + a.largeHeight / a.newvalueheight + "px" })) : ("lens" != a.options.zoomType && a.zoomLens.css({ "background-size": a.largeWidth / a.newvaluewidth + "px " + a.largeHeight / a.newvaluewidth + "px" }), a.zoomWindow.css({ "background-size": a.largeWidth / a.newvaluewidth + "px " + a.largeHeight / a.newvaluewidth + "px" })), a.changeBgSize = !1), a.zoomWindow.css({ backgroundPosition: a.xp + "px " + a.yp + "px" })); 3220 }, 16))) : (a.changeBgSize && (a.nzHeight > a.nzWidth ? ("lens" == a.options.zoomType && a.zoomLens.css({ "background-size": a.largeWidth / a.newvalueheight + "px " + a.largeHeight / a.newvalueheight + "px" }), a.zoomWindow.css({ "background-size": a.largeWidth / a.newvalueheight + "px " + a.largeHeight / a.newvalueheight + "px" })) : ("lens" == a.options.zoomType && a.zoomLens.css({ "background-size": a.largeWidth / a.newvaluewidth + "px " + a.largeHeight / a.newvaluewidth + "px" }), a.largeHeight / a.newvaluewidth < a.options.zoomWindowHeight ? a.zoomWindow.css({ "background-size": a.largeWidth / a.newvaluewidth + "px " + a.largeHeight / a.newvaluewidth + "px" }) : a.zoomWindow.css({ "background-size": a.largeWidth / a.newvalueheight + "px " + a.largeHeight / a.newvalueheight + "px" })), a.changeBgSize = !1), a.zoomWindow.css({ backgroundPosition: a.windowLeftPos + "px " + a.windowTopPos + "px" })); 3221 }, setTintPosition: function (b) { 3222 this.nzOffset = this.$elem.offset();this.tintpos = String(-1 * (b.pageX - this.nzOffset.left - this.zoomLens.width() / 2));this.tintposy = String(-1 * (b.pageY - this.nzOffset.top - this.zoomLens.height() / 2));this.Etoppos && (this.tintposy = 0);this.Eloppos && (this.tintpos = 0);this.Eboppos && (this.tintposy = -1 * (this.nzHeight - this.zoomLens.height() - 2 * this.options.lensBorderSize));this.Eroppos && (this.tintpos = -1 * (this.nzWidth - this.zoomLens.width() - 2 * this.options.lensBorderSize)); 3223 this.options.tint && (this.fullheight && (this.tintposy = 0), this.fullwidth && (this.tintpos = 0), this.zoomTintImage.css({ left: this.tintpos + "px" }), this.zoomTintImage.css({ top: this.tintposy + "px" })); 3224 }, swaptheimage: function (b, a) { 3225 var c = this, 3226 e = new Image();c.options.loadingIcon && (c.spinner = d("<div style=\"background: url('" + c.options.loadingIcon + "') no-repeat center;height:" + c.nzHeight + "px;width:" + c.nzWidth + 'px;z-index: 2000;position: absolute; background-position: center center;"></div>'), c.$elem.after(c.spinner)); 3227 c.options.onImageSwap(c.$elem);e.onload = function () { 3228 c.largeWidth = e.width;c.largeHeight = e.height;c.zoomImage = a;c.zoomWindow.css({ "background-size": c.largeWidth + "px " + c.largeHeight + "px" });c.zoomWindow.css({ "background-size": c.largeWidth + "px " + c.largeHeight + "px" });c.swapAction(b, a); 3229 };e.src = a; 3230 }, swapAction: function (b, a) { 3231 var c = this, 3232 e = new Image();e.onload = function () { 3233 c.nzHeight = e.height;c.nzWidth = e.width;c.options.onImageSwapComplete(c.$elem);c.doneCallback(); 3234 };e.src = b;c.currentZoomLevel = c.options.zoomLevel;c.options.maxZoomLevel = !1;"lens" == c.options.zoomType && c.zoomLens.css({ backgroundImage: "url('" + a + "')" });"window" == c.options.zoomType && c.zoomWindow.css({ backgroundImage: "url('" + a + "')" });"inner" == c.options.zoomType && c.zoomWindow.css({ backgroundImage: "url('" + a + "')" });c.currentImage = a;if (c.options.imageCrossfade) { 3235 var f = c.$elem, 3236 g = f.clone();c.$elem.attr("src", b);c.$elem.after(g);g.stop(!0).fadeOut(c.options.imageCrossfade, function () { 3237 d(this).remove(); 3238 });c.$elem.width("auto").removeAttr("width");c.$elem.height("auto").removeAttr("height"); 3239 f.fadeIn(c.options.imageCrossfade);c.options.tint && "inner" != c.options.zoomType && (f = c.zoomTintImage, g = f.clone(), c.zoomTintImage.attr("src", a), c.zoomTintImage.after(g), g.stop(!0).fadeOut(c.options.imageCrossfade, function () { 3240 d(this).remove(); 3241 }), f.fadeIn(c.options.imageCrossfade), c.zoomTint.css({ height: c.$elem.height() }), c.zoomTint.css({ width: c.$elem.width() }));c.zoomContainer.css("height", c.$elem.height());c.zoomContainer.css("width", c.$elem.width());"inner" != c.options.zoomType || c.options.constrainType || (c.zoomWrap.parent().css("height", c.$elem.height()), c.zoomWrap.parent().css("width", c.$elem.width()), c.zoomWindow.css("height", c.$elem.height()), c.zoomWindow.css("width", c.$elem.width())); 3242 } else c.$elem.attr("src", b), c.options.tint && (c.zoomTintImage.attr("src", a), c.zoomTintImage.attr("height", c.$elem.height()), c.zoomTintImage.css({ height: c.$elem.height() }), c.zoomTint.css({ height: c.$elem.height() })), c.zoomContainer.css("height", c.$elem.height()), c.zoomContainer.css("width", c.$elem.width());c.options.imageCrossfade && (c.zoomWrap.css("height", c.$elem.height()), c.zoomWrap.css("width", c.$elem.width()));c.options.constrainType && ("height" == c.options.constrainType && (c.zoomContainer.css("height", c.options.constrainSize), c.zoomContainer.css("width", "auto"), c.options.imageCrossfade ? (c.zoomWrap.css("height", c.options.constrainSize), c.zoomWrap.css("width", "auto"), c.constwidth = c.zoomWrap.width()) : (c.$elem.css("height", c.options.constrainSize), c.$elem.css("width", "auto"), c.constwidth = c.$elem.width()), "inner" == c.options.zoomType && (c.zoomWrap.parent().css("height", c.options.constrainSize), c.zoomWrap.parent().css("width", c.constwidth), c.zoomWindow.css("height", c.options.constrainSize), c.zoomWindow.css("width", c.constwidth)), c.options.tint && (c.tintContainer.css("height", c.options.constrainSize), c.tintContainer.css("width", c.constwidth), c.zoomTint.css("height", c.options.constrainSize), c.zoomTint.css("width", c.constwidth), c.zoomTintImage.css("height", c.options.constrainSize), c.zoomTintImage.css("width", c.constwidth))), "width" == c.options.constrainType && (c.zoomContainer.css("height", "auto"), c.zoomContainer.css("width", c.options.constrainSize), c.options.imageCrossfade ? (c.zoomWrap.css("height", "auto"), c.zoomWrap.css("width", c.options.constrainSize), c.constheight = c.zoomWrap.height()) : (c.$elem.css("height", "auto"), c.$elem.css("width", c.options.constrainSize), c.constheight = c.$elem.height()), "inner" == c.options.zoomType && (c.zoomWrap.parent().css("height", c.constheight), c.zoomWrap.parent().css("width", c.options.constrainSize), c.zoomWindow.css("height", c.constheight), c.zoomWindow.css("width", c.options.constrainSize)), c.options.tint && (c.tintContainer.css("height", c.constheight), c.tintContainer.css("width", c.options.constrainSize), c.zoomTint.css("height", c.constheight), c.zoomTint.css("width", c.options.constrainSize), c.zoomTintImage.css("height", c.constheight), c.zoomTintImage.css("width", c.options.constrainSize)))); 3243 }, doneCallback: function () { 3244 this.options.loadingIcon && this.spinner.hide();this.nzOffset = this.$elem.offset();this.nzWidth = this.$elem.width(); 3245 this.nzHeight = this.$elem.height();this.currentZoomLevel = this.options.zoomLevel;this.widthRatio = this.largeWidth / this.nzWidth;this.heightRatio = this.largeHeight / this.nzHeight;"window" == this.options.zoomType && (lensHeight = this.nzHeight < this.options.zoomWindowWidth / this.widthRatio ? this.nzHeight :
3245String(this.options.zoomWindowHeight / this.heightRatio), lensWidth = this.options.zoomWindowWidth < this.options.zoomWindowWidth ? this.nzWidth : this.options.zoomWindowWidth / this.widthRatio, this.zoomLens && (this.zoomLens.css("width", lensWidth), this.zoomLens.css("height", lensHeight))); 3246 }, getCurrentImage: function () { 3247 return this.zoomImage; 3248 }, getGalleryList: function () { 3249 var b = this;b.gallerylist = [];b.options.gallery ? d("#" + b.options.gallery + " a").each(function () { 3250 var a = "";d(this).data("zoom-image") ? a = d(this).data("zoom-image") : d(this).data("image") && (a = d(this).data("image"));a == b.zoomImage ? b.gallerylist.unshift({ href: "" + a + "", title: d(this).find("img").attr("title") }) : b.gallerylist.push({ href: "" + a + "", title: d(this).find("img").attr("title") }); 3251 }) : b.gallerylist.push({ href: "" + b.zoomImage + "", title: d(this).find("img").attr("title") });return b.gallerylist; 3252 }, changeZoomLevel: function (b) { 3253 this.scrollingLock = !0;this.newvalue = parseFloat(b).toFixed(2);newvalue = parseFloat(b).toFixed(2);maxheightnewvalue = this.largeHeight / (this.options.zoomWindowHeight / this.nzHeight * this.nzHeight);maxwidthtnewvalue = this.largeWidth / (this.options.zoomWindowWidth / this.nzWidth * this.nzWidth);
3253"inner" != this.options.zoomType && (maxheightnewvalue <= newvalue ? (this.heightRatio = this.largeHeight / maxheightnewvalue / this.nzHeight, this.newvalueheight = maxheightnewvalue, this.fullheight = !0) : (this.heightRatio = this.largeHeight / newvalue / this.nzHeight, this.newvalueheight = newvalue, this.fullheight = !1), maxwidthtnewvalue <= newvalue ? (this.widthRatio = this.largeWidth / maxwidthtnewvalue / this.nzWidth, this.newvaluewidth = maxwidthtnewvalue, this.fullwidth = !0) : (this.widthRatio = this.largeWidth / newvalue / this.nzWidth, this.newvaluewidth = newvalue, this.fullwidth = !1), "lens" == this.options.zoomType && (maxheightnewvalue <= newvalue ? (this.fullwidth = !0, this.newvaluewidth = maxheightnewvalue) : (this.widthRatio = this.largeWidth / newvalue / this.nzWidth, this.newvaluewidth = newvalue, this.fullwidth = !1)));"inner" == this.options.zoomType && (maxheightnewvalue = parseFloat(this.largeHeight / this.nzHeight).toFixed(2), maxwidthtnewvalue = parseFloat(this.largeWidth / this.nzWidth).toFixed(2), newvalue > maxheightnewvalue && (newvalue = maxheightnewvalue), newvalue > maxwidthtnewvalue && (newvalue = maxwidthtnewvalue), maxheightnewvalue <= newvalue ? (this.heightRatio = this.largeHeight / newvalue / this.nzHeight, this.newvalueheight = newvalue > maxheightnewvalue ? maxheightnewvalue : newvalue, this.fullheight = !0) : (this.heightRatio = this.largeHeight / newvalue / this.nzHeight, this.newvalueheight = newvalue > maxheightnewvalue ? maxheightnewvalue : newvalue, this.fullheight = !1), maxwidthtnewvalue <= newvalue ? (this.widthRatio = this.largeWidth / newvalue / this.nzWidth, this.newvaluewidth = newvalue > maxwidthtnewvalue ? maxwidthtnewvalue : newvalue, this.fullwidth = !0) : (this.widthRatio = this.largeWidth / newvalue / this.nzWidth, this.newvaluewidth = newvalue, this.fullwidth = !1));scrcontinue = !1;"inner" == this.options.zoomType && (this.nzWidth > this.nzHeight && (this.newvaluewidth <= maxwidthtnewvalue ? scrcontinue = !0 : (scrcontinue = !1, this.fullwidth = this.fullheight = !0)), this.nzHeight > this.nzWidth && (this.newvaluewidth <= maxwidthtnewvalue ? scrcontinue = !0 : (scrcontinue = !1, this.fullwidth = this.fullheight = !0)));"inner" != this.options.zoomType && (scrcontinue = !0);scrcontinue && (this.zoomLock = 0, this.changeZoom = !0, this.options.zoomWindowHeight / this.heightRatio <= this.nzHeight && (this.currentZoomLevel = this.newvalueheight, "lens" != this.options.zoomType && "inner" != this.options.zoomType && (this.changeBgSize = !0, this.zoomLens.css({ height: String(this.options.zoomWindowHeight / this.heightRatio) + "px" })), "lens" == this.options.zoomType || "inner" == this.options.zoomType) && (this.changeBgSize = !0), this.options.zoomWindowWidth / this.widthRatio <= this.nzWidth && ("inner" != this.options.zoomType && this.newvaluewidth > this.newvalueheight && (this.currentZoomLevel = this.newvaluewidth), "lens" != this.options.zoomType && "inner" != this.options.zoomType && (this.changeBgSize = !0, this.zoomLens.css({ width: String(this.options.zoomWindowWidth / this.widthRatio) + "px" })), "lens" == this.options.zoomType || "inner" == this.options.zoomType) && (this.changeBgSize = !0), "inner" == this.options.zoomType && (this.changeBgSize = !0, this.nzWidth > this.nzHeight && (this.currentZoomLevel = this.newvaluewidth), this.nzHeight > this.nzWidth && (this.currentZoomLevel = this.newvaluewidth)));this.setPosition(this.currentLoc); 3254 }, closeAll: function () { 3255 self.zoomWindow && self.zoomWindow.hide(); 3256 self.zoomLens && self.zoomLens.hide();self.zoomTint && self.zoomTint.hide(); 3257 }, changeState: function (b) { 3258 "enable" == b && (this.options.zoomEnabled = !0);"disable" == b && (this.options.zoomEnabled = !1); 3259 } };d.fn.elevateZoom = function (b) { 3260 return this.each(function () { 3261 var a = Object.create(k);a.init(b, this);d.data(this, "elevateZoom", a); 3262 }); 3263 };d.fn.elevateZoom.options = { zoomActivation: "hover", zoomEnabled: !0, preloading: 1, zoomLevel: 1, scrollZoom: !1, scrollZoomIncrement: 0.1, minZoomLevel: !1, maxZoomLevel: !1, easing: !1, easingAmou
3263nt: 12, lensSize: 200, 3264 zoomWindowWidth: 400, zoomWindowHeight: 400, zoomWindowOffetx: 0, zoomWindowOffety: 0, zoomWindowPosition: 1, zoomWindowBgColour: "#fff", lensFadeIn: !1, lensFadeOut: !1, debug: !1, zoomWindowFadeIn: !1, zoomWindowFadeOut: !1, zoomWindowAlwaysShow: !1, zoomTintFadeIn: !1, zoomTintFadeOut: !1, borderSize: 4, showLens: !0, borderColour: "#888", lensBorderSize: 1, lensBorderColour: "#000", lensShape: "square", zoomType: "window", containLensZoom: !1, lensColour: "white", lensOpacity: 0.4, lenszoom: !1, tint: !1, tintColour: "#333", tintOpacity: 0.4, gallery: !1, 3265 galleryActiveClass: "zoomGalleryActive", imageCrossfade: !1, constrainType: !1, constrainSize: !1, loadingIcon: !1, cursor: "default", responsive: !0, onComplete: d.noop, onZoomedImageLoaded: function () {}, onImageSwap: d.noop, onImageSwapComplete: d.noop }; 3266})(jQuery, window, document); 3267 3268/***/ }), 3269
3270/***/ "./js/lib/jquery.lazyload.js": 3271/*!***********************************!*\ 3272 !*** ./js/lib/jquery.lazyload.js ***! 3273 \***********************************/ 3274/*! no static exports found */ 3275/***/ (function(module, exports) { 3276 3277/*! 3278 * Lazy Load - jQuery plugin for lazy loading images 3279 * 3280 * Copyright (c) 2007-2015 Mika Tuupola 3281 * 3282 * Licensed under the MIT license: 3283 * http://www.opensource.org/licenses/mit-license.php 3284 * 3285 * Project home: 3286 * http://www.appelsiini.net/projects/lazyload 3287 * 3288 * Version: 1.9.7 3289 * 3290 */ 3291 3292(function ($, window, document, undefined) { 3293 var $window = $(window); 3294 3295 $.fn.lazyload = function (options) { 3296 var elements = this; 3297 var $container; 3298 var settings = { 3299 threshold: 0, 3300 failure_limit: 0, 3301 event: "scroll.lazyload", 3302 effect: "show", 3303 container: window, 3304 data_attribute: "original", 3305 data_srcset: "srcset", 3306 skip_invisible: false, 3307 appear: null, 3308 load: null, 3309 placeholder: "data:image/gif;base64,R0lGODdhAQABAPAAAMPDwwAAACwAAAAAAQABAAACAkQBADs=" 3310 }; 3311 3312 function update() { 3313 var counter = 0; 3314 3315 elements.each(function () { 3316 var $this = $(this); 3317 if (settings.skip_invisible && !$this.is(":visible")) { 3318 console.log('skip'); 3319 return; 3320 } 3321 if ($.abovethetop(this, settings) || $.leftofbegin(this, settings)) { 3322 /* Nothing. */ 3323 } else if (!$.belowthefold(this, settings) && !$.rightoffold(this, settings)) { 3324 $this.trigger("appear"); 3325 /* if we found an image we'll load, reset the counter */ 3326 counter = 0; 3327 } else { 3328 if (++counter > settings.failure_limit) { 3329 return false; 3330 } 3331 } 3332 }); 3333 } 3334 3335 if (options) { 3336 /* Maintain BC for a couple of versions. */ 3337 if (undefined !== options.failurelimit) { 3338 options.failure_limit = options.failurelimit; 3339 delete options.failurelimit; 3340 } 3341 if (undefined !== options.effectspeed) { 3342 options.effect_speed = options.effectspeed; 3343 delete options.effectspeed; 3344 } 3345 3346 $.extend(settings, options); 3347 } 3348 3349 /* Cache container as jQuery as object. */ 3350 $container = settings.container === undefined || settings.container === window ? $window : $(settings.container); 3351 3352 /* Fire one scroll event per scroll. Not one scroll event per image. */ 3353 var current_scroll = $(window).scrollTop(); 3354 if (0 === settings.event.indexOf("scroll")) { 3355 $container.off(settings.event).on(settings.event, function () { 3356 if ($(this).scrollTop() > current_scroll + 100 || $(this).scrollTop() < current_scroll - 100) { 3357 current_scroll = $(this).scrollTop(); 3358 return update(); 3359 } else { 3360 return; 3361 } 3362 }); 3363 } 3364 3365 this.each(function () { 3366 var self = this; 3367 var $self = $(self); 3368 3369 self.loaded = false; 3370 3371 /* If no src attribute given use data:uri. */ 3372 if ($self.attr("src") === undefined || $self.attr("src") === false) { 3373 if ($self.is("img")) { 3374 $self.attr("src", settings.placeholder); 3375 } 3376 } 3377 3378 /* When appear is triggered load original image. */ 3379 $self.one("appear", function () { 3380 if (!this.loaded) { 3381 if (settings.appear) { 3382 var elements_left = elements.length; 3383 settings.appear.call(self, elements_left, settings); 3384 } 3385 $("<img />").one("load", function () { 3386 var original = $self.attr("data-" + settings.data_attribute); 3387 var srcset = $self.attr("data-" + settings.data_srcset); 3388 3389 if (original != $self.attr("src")) { 3390 //$self.hide(); 3391 if ($self.is("img")) { 3392 $self.attr("src", original); 3393 if (srcset != null) { 3394 $self.attr("srcset", srcset); 3395 } 3396 } 3397 //if ($self.is("video")) { 3398 // $self.attr("poster", original); 3399 //} else { 3400 //$self.css("background-image", "url('" + original + "')"); 3401 //} 3402 //$self[settings.effect](settings.effect_speed); 3403 } 3404 3405 self.loaded = true; 3406 3407 /* Remove image from array so it is not looped next time. */ 3408 var temp = $.grep(elements, function (element) { 3409 return !element.loaded; 3410 }); 3411 elements = $(temp); 3412 3413 // appear the same images 3414 var same = $.grep(elements, function (element) { 3415 if ($(element).attr("data-" + settings.data_attribute) == $self.attr("data-" + settings.data_attribute)) return true;else return false;
3416 }); 3417 $(same).each(function () { 3418 $(this).trigger("appear"); 3419 }); 3420 3421 if (settings.load) { 3422 var elements_left = elements.length; 3423 settings.load.call(self, elements_left, settings); 3424 } 3425 }).attr({ 3426 "src": $self.attr("data-" + settings.data_attribute), 3427 "srcset": $self.attr("data-" + settings.data_srcset) || "" 3428 }); 3429 } 3430 }); 3431 3432 /* When wanted event is triggered load original image */ 3433 /* by triggering appear. */ 3434 if (0 !== settings.event.indexOf("scroll")) { 3435 $self.off(settings.event).on(settings.event, function () { 3436 if (!self.loaded) { 3437 $self.trigger("appear"); 3438 } 3439 }); 3440 } 3441 }); 3442 3443 /* Check if something appears when window is resized. */ 3444 $window.off("resize.lazyload").bind("resize.lazyload", function () { 3445 update(); 3446 }); 3447 3448 /* With IOS5 force loading images when navigating with back button. */ 3449 /* Non optimal workaround. */ 3450 if (/(?:iphone|ipod|ipad).*os 5/gi.test(navigator.appVersion)) { 3451 $window.on("pageshow", function (event) { 3452 if (event.originalEvent && event.originalEvent.persisted) { 3453 elements.each(function () { 3454 $(this).trigger("appear"); 3455 }); 3456 } 3457 }); 3458 } 3459 3460 /* Force initial check if images should appear. */ 3461 $(function () { 3462 update(); 3463 }); 3464 3465 return this; 3466 }; 3467 3468 /* Convenience methods in jQuery namespace. */ 3469 /* Use as $.belowthefold(element, {threshold : 100, container : window}) */ 3470 3471 $.belowthefold = function (element, settings) { 3472 var fold; 3473 3474 if (settings.container === undefined || settings.container === window) { 3475 fold = (window.innerHeight ? window.innerHeight : $window.height()) + $window.scrollTop(); 3476 } else { 3477 fold = $(settings.container).offset().top + $(settings.container).height(); 3478 } 3479 3480 return fold <= $(element).offset().top - settings.threshold; 3481 }; 3482 3483 $.rightoffold = function (element, settings) { 3484 var fold; 3485 3486 if (settings.container === undefined || settings.container === window) { 3487 fold = $window.width() + $window.scrollLeft(); 3488 } else { 3489 fold = $(settings.container).offset().left + $(settings.container).width(); 3490 } 3491 3492 return fold <= $(element).offset().left - settings.threshold; 3493 }; 3494 3495 $.abovethetop = function (element, settings) { 3496 var fold; 3497 3498 if (settings.container === undefined || settings.container === window) { 3499 fold = $window.scrollTop(); 3500 } else { 3501 fold = $(settings.container).offset().top; 3502 } 3503 3504 return fold >= $(element).offset().top + settings.threshold + $(element).height(); 3505 }; 3506 3507 $.leftofbegin = function (element, settings) { 3508 var fold; 3509 3510 if (settings.container === undefined || settings.container === window) { 3511 fold = $window.scrollLeft(); 3512 } else { 3513 fold = $(settings.container).offset().left; 3514 } 3515 3516 return fold >= $(element).offset().left + settings.threshold + $(element).width(); 3517 }; 3518 3519 $.inviewport = function (element, settings) { 3520 return !$.rightoffold(element, settings) && !$.leftofbegin(element, settings) && !$.belowthefold(element, settings) && !$.abovethetop(element, settings); 3521 }; 3522 3523 /* Custom selectors for your convenience. */ 3524 /* Use as $("img:below-the-fold").something() or */ 3525 /* $("img").filter(":below-the-fold").something() which is faster */ 3526 3527 $.extend($.expr[":"], { 3528 "below-the-fold": function (a) { 3529 return $.belowthefold(a, { threshold: 0 }); 3530 }, 3531 "above-the-top": function (a) { 3532 return !$.belowthefold(a, { threshold: 0 }); 3533 }, 3534 "right-of-screen": function (a) { 3535 return $.rightoffold(a, { threshold: 0 }); 3536 }, 3537 "left-of-screen": function (a) { 3538 return !$.rightoffold(a, { threshold: 0 }); 3539 }, 3540 "in-viewport": function (a) { 3541 return $.inviewport(a, { threshold: 0 }); 3542 }, 3543 /* Maintain BC for couple of versions. */ 3544 "above-the-fold": function (a) { 3545 return !$.belowthefold(a, { threshold: 0 }); 3546 }, 3547 "right-of-fold": function (a) { 3548 return $.rightoffold(a, { threshold: 0 }); 3549 }, 3550 "left-of-fold": function (a) { 3551 return !$.rightoffold(a, { threshold: 0 }); 3552 } 3553 }); 3554})(jQuery, window, document); 3555 3556/***/ }), 3557
3558/***/ "./js/lib/jquery.magnific-popup.min.js": 3559/*!*********************************************!*\ 3560 !*** ./js/lib/jquery.magnific-popup.min.js ***! 3561 \*********************************************/ 3562/*! no static exports found */ 3563/***/ (function(module, exports, __webpack_require__) { 3564 3565var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! Magnific Popup - v1.1.0 - 2016-02-20 3566* http://dimsemenov.com/plugins/magnific-popup/ 3567* Copyright (c) 2016 Dmitry Semenov; */ 3568!function (a) { 3569 true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! jquery */ "jquery")], __WEBPACK_AMD_DEFINE_FACTORY__ = (a), 3570 __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? 3571 (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), 3572 __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined; 3573}(function (a) { 3574 var b, 3575 c, 3576 d, 3577 e, 3578 f, 3579 g, 3580 h = "Close", 3581 i = "BeforeClose", 3582 j = "AfterClose", 3583 k = "BeforeAppend", 3584 l = "MarkupParse", 3585 m = "Open", 3586 n = "Change", 3587 o = "mfp", 3588 p = "." + o, 3589 q = "mfp-ready", 3590 r = "mfp-removing", 3591 s = "mfp-prevent-close", 3592 t = function () {}, 3593 u = !!window.jQuery, 3594 v = a(window), 3595 w = function (a, c) { 3596 b.ev.on(o + a + p, c); 3597 }, 3598 x = function (b, c, d, e) { 3599 var f = document.createElement("div");return f.className = "mfp-" + b, d && (f.innerHTML = d), e ? c && c.appendChild(f) : (f = a(f), c && f.appendTo(c)), f; 3600 }, 3601 y = function (c, d) { 3602 b.ev.triggerHandler(o + c, d), b.st.callbacks && (c = c.charAt(0).toLowerCase() + c.slice(1), b.st.callbacks[c] && b.st.callbacks[c].apply(b, a.isArray(d) ? d : [d])); 3603 }, 3604 z = function (c) { 3605 return c === g && b.currTemplate.closeBtn || (b.currTemplate.closeBtn = a(b.st.closeMarkup.replace("%title%", b.st.tClose)), g = c), b.currTemplate.closeBtn; 3606 }, 3607 A = function () { 3608 a.magnificPopup.instance || (b = new t(), b.init(), a.magnificPopup.instance = b); 3609 }, 3610 B = function () { 3611 var a = document.createElement("p").style, 3612 b = ["ms", "O", "Moz", "Webkit"];if (void 0 !== a.transition) return !0;for (; b.length;) if (b.pop() + "Transition" in a) return !0;return !1; 3613 };t.prototype = { constructor: t, init: function () { 3614 var c = navigator.appVersion;b.isLowIE = b.isIE8 = document.all && !document.addEventListener, b.isAndroid = /android/gi.test(c), b.isIOS = /iphone|ipad|ipod/gi.test(c), b.supportsTransition = B(), b.probablyMobile = b.isAndroid || b.isIOS || /(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent), d = a(document), b.popupsCache = {}; 3615 }, open: function (c) { 3616 var e;if (c.isObj === !1) { 3617 b.items = c.items.toArray(), b.index = 0;var g, 3618 h = c.items;for (e = 0; e < h.length; e++) if (g = h[e], g.parsed && (g = g.el[0]), g === c.el[0]) { 3619 b.index = e;break; 3620 } 3621 } else b.items = a.isArray(c.items) ? c.items : [c.items], b.index = c.index || 0;if (b.isOpen) return void b.updateItemHTML();b.types = [], f = "", c.mainEl && c.mainEl.length ? b.ev = c.mainEl.eq(0) : b.ev = d, c.key ? (b.popupsCache[c.key] || (b.popupsCache[c.key] = {}), b.currTemplate = b.popupsCache[c.key]) : b.currTemplate = {}, b.st = a.extend(!0, {}, a.magnificPopup.defaults, c), b.fixedContentPos = "auto" === b.st.fixedContentPos ? !b.probablyMobile : b.st.fixedContentPos, b.st.modal && (b.st.closeOnContentClick = !1, b.st.closeOnBgClick = !1, b.st.showCloseBtn = !1, b.st.enableEscapeKey = !1), b.bgOverlay || (b.bgOverlay = x("bg").on("click" + p, function () { 3622 b.close(); 3623 }), b.wrap = x("wrap").attr("tabindex", -1).on("click" + p, function (a) { 3624 b._checkIfClose(a.target) && b.close(); 3625 }), b.container = x("container", b.wrap)), b.contentContainer = x("content"), b.st.preloader && (b.preloader = x("preloader", b.container, b.st.tLoading));var i = a.magnificPopup.modules;for (e = 0; e < i.length; e++) { 3626 var j = i[e];j = j.charAt(0).toUpperCase() + j.slice(1), b["init" + j].call(b); 3627 }y("BeforeOpen"), b.st.showCloseBtn && (b.st.closeBtnInside ? (w(l, function (a, b, c, d) { 3628 c.close_replaceWith = z(d.type); 3629 }), f += " mfp-close-btn-in") : b.wrap.append(z())), b.st.alignTop && (f += " mfp-align-top"), b.fixedContentPos ? b.wrap.css({ overflow: b.st.overflowY, overflowX: "hidden", overflowY: b.st.overflowY }) : b.wrap.css({ top: v.scrollTop(), position: "absolute" }), (b.st.fixedBgPos === !1 || "auto" === b.st.fixedBgPos && !b.fixedContentPos) && b.bgOverlay.css({ height: d.height(), position: "absolute" }), b.st.enableEscapeKey && d.on("keyup" + p, function (a) { 3630 27 === a.keyCode && b.close(); 3631 }), v.on("resize" + p, function () { 3632 b.updateSize(); 3633 }), b.st.closeOnContentClick || (f += " mfp-auto-cursor"), f && b.wrap.addClass(f);var k = b.wH = v.height(), 3634 n = {};if (b.fixedContentPos && b._hasScrollBar(k)) { 3635 var o = b._getScrollbarSize();o && (n.marginRight = o); 3636 }b.fixedContentPos && (b.isIE7 ? a("body, html").css("overflow", "hidden") : n.overflow = "hidden");var r = b.st.mainClass;return b.isIE7 && (r += " mfp-ie7"), r && b._addClassToMFP(r), b.updateItemHTML(), y("BuildControls"), a("html").css(n), b.bgOverlay.add(b.
3636wrap).prependTo(b.st.prependTo || a(document.body)), b._lastFocusedEl = document.activeElement, setTimeout(function () { 3637 b.content ? (b._addClassToMFP(q), b._setFocus()) : b.bgOverlay.addClass(q), d.on("focusin" + p, b._onFocusIn); 3638 }, 16), b.isOpen = !0, b.updateSize(k), y(m), c; 3639 }, close: function () { 3640 b.isOpen && (y(i), b.isOpen = !1, b.st.removalDelay && !b.isLowIE && b.supportsTransition ? (b._addClassToMFP(r), setTimeout(function () { 3641 b._close(); 3642 }, b.st.removalDelay)) : b._close()); 3643 }, _close: function () { 3644 y(h);var c = r + " " + q + " ";if (b.bgOverlay.detach(), b.wrap.detach(), b.container.empty(), b.st.mainClass && (c += b.st.mainClass + " "), b._removeClassFromMFP(c), b.fixedContentPos) { 3645 var e = { marginRight: "" };b.isIE7 ? a("body, html").css("overflow", "") : e.overflow = "", a("html").css(e); 3646 }d.off("keyup" + p + " focusin" + p), b.ev.off(p), b.wrap.attr("class", "mfp-wrap").removeAttr("style"), b.bgOverlay.attr("class", "mfp-bg"), b.container.attr("class", "mfp-container"), !b.st.showCloseBtn || b.st.closeBtnInside && b.currTemplate[b.currItem.type] !== !0 || b.currTemplate.closeBtn && b.currTemplate.closeBtn.detach(), b.st.autoFocusLast && b._lastFocusedEl && a(b._lastFocusedEl).focus(), b.currItem = null, b.content = null, b.currTemplate = null, b.prevHeight = 0, y(j); 3647 }, updateSize: function (a) { 3648 if (b.isIOS) { 3649 var c = document.documentElement.clientWidth / window.innerWidth, 3650 d = window.innerHeight * c;b.wrap.css("height", d), b.wH = d; 3651 } else b.wH = a || v.height();b.fixedContentPos || b.wrap.css("height", b.wH), y("Resize"); 3652 }, updateItemHTML: function () { 3653 var c = b.items[b.index];b.contentContainer.detach(), b.content && b.content.detach(), c.parsed || (c = b.parseEl(b.index));var d = c.type;if (y("BeforeChange", [b.currItem ? b.currItem.type : "", d]), b.currItem = c, !b.currTemplate[d]) { 3654 var f = b.st[d] ? b.st[d].markup : !1;y("FirstMarkupParse", f), f ? b.currTemplate[d] = a(f) : b.currTemplate[d] = !0; 3655 }e && e !== c.type && b.container.removeClass("mfp-" + e + "-holder");var g = b["get" + d.charAt(0).toUpperCase() + d.slice(1)](c, b.currTemplate[d]);b.appendContent(g, d), c.preloaded = !0, y(n, c), e = c.type, b.container.prepend(b.contentContainer), y("AfterChange"); 3656 }, appendContent: function (a, c) { 3657 b.content = a, a ? b.st.showCloseBtn && b.st.closeBtnInside && b.currTemplate[c] === !0 ? b.content.find(".mfp-close").length || b.content.append(z()) : b.content = a : b.content = "", y(k), b.container.addClass("mfp-" + c + "-holder"), b.contentContainer.append(b.content); 3658 }, parseEl: function (c) { 3659 var d, 3660 e = b.items[c];if (e.tagName ? e = { el: a(e) } : (d = e.type, e = { data: e, src: e.src }), e.el) { 3661 for (var f = b.types, g = 0; g < f.length; g++) if (e.el.hasClass("mfp-" + f[g])) { 3662 d = f[g];break; 3663 }e.src = e.el.attr("data-mfp-src"), e.src || (e.src = e.el.attr("href")); 3664 }return e.type = d || b.st.type || "inline", e.index = c, e.parsed = !0, b.items[c] = e, y("ElementParse", e), b.items[c]; 3665 }, addGroup: function (a, c) { 3666 var d = function (d) { 3667 d.mfpEl = this, b._openClick(d, a, c); 3668 };c || (c = {});var e = "click.magnificPopup";c.mainEl = a, c.items ? (c.isObj = !0, a.off(e).on(e, d)) : (c.isObj = !1, c.delegate ? a.off(e).on(e, c.delegate, d) : (c.items = a, a.off(e).on(e, d))); 3669 }, _openClick: function (c, d, e) { 3670 var f = void 0 !== e.midClick ? e.midClick : a.magnificPopup.defaults.midClick;if (f || !(2 === c.which || c.ctrlKey || c.metaKey || c.altKey || c.shiftKey)) { 3671 var g = void 0 !== e.disableOn ? e.disableOn : a.magnificPopup.defaults.disableOn;if (g) if (a.isFunction(g)) { 3672 if (!g.call(b)) return !0; 3673 } else if (v.width() < g) return !0;c.type && (c.preventDefault(), b.isOpen && c.stopPropagation()), e.el = a(c.mfpEl), e.delegate && (e.items = d.find(e.delegate)), b.open(e); 3674 } 3675 }, updateStatus: function (a, d) { 3676 if (b.preloader) { 3677 c !== a && b.container.removeClass("mfp-s-" + c), d || "loading" !== a || (d = b.st.tLoading);var e = { status: a, text: d };y("UpdateStatus", e), a = e.status, d = e.text, b.preloader.html(d), b.preloader.find("a").on("click", function (a) { 3678 a.stopImmediatePropagation(); 3679 }), b.container.addClass("mfp-s-" + a), c = a; 3680 } 3681 }, _checkIfClose: function (c) { 3682 if (!a(c).hasClass(s)) { 3683 var d = b.st.closeOnContentClick, 3684 e = b.st.closeOnBgClick;if (d && e) return !0;if (!b.content || a(c).hasClass("mfp-close") || b.preloader && c === b.preloader[0]) return !0;if (c === b.content[0] || a.contains(b.content[0], c)) { 3685 if (d) return !0; 3686 } else if (e && a.contains(document, c)) return !0;return !1; 3687 } 3688 }, _addClassToMFP: function (a) { 3689 b.bgOverlay.addClass(a), b.wrap.addClass(a); 3690 }, _removeClassFromMFP: function (a) { 3691 this.bgOverlay.removeClass(a), b.wrap.removeClass(a); 3692 }, _hasScrollBar: function (a) { 3693 return (b.isIE7 ? d.height() : document.body.scrollHeight) > (a || v.height()); 3694 }, _setFocus: function () { 3695 (b.st.focus ? b.content.find(b.st.focus).eq(0) : b.wrap).focus(); 3696 }, _onFocusIn: function (c) { 3697 return c.target === b.wrap[0] || a.contains(b.wrap[0], c.target) ? void 0 : (b._setFocus(), !1); 3698 }, _parseMarkup: function (b, c, d) { 3699 var e;d.data && (c = a.extend(d.data, c)), y(l, [b, c, d]), a.each(c, function (c, d) { 3700 if (void 0 === d || d === !1) return !0;if (e = c.split("_"), e.length > 1) { 3701 var f = b.find(p + "-" + e[0]);if (f.length > 0) { 3702 var g = e[1];"replaceWith" === g ? f[0] !== d[0] && f.replaceWith(d) : "img" === g ? f.is("img") ? f.attr("src", d) : f.replaceWith(a("<img>").attr("src", d).attr("class", f.attr("class"))) : f.attr(e[1], d); 3703 } 3704 } else b.find(p + "-" + c).html(d); 3705 }); 3706 }, _getScrollbarSize: function () { 3707 if (void 0 === b.scrollbarSize) { 3708 var a = document.createElement("div");a.style.cssText = "width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;", document.body.appendChild(a), b.scrollbarSize = a.offsetWidth - a.clientWidth, document.body.removeChild(a); 3709 }return b.scrollbarSize; 3710 } }, a.magnificPopup = { instance: null, proto: t.prototype, modules: [], open: function (b, c) { 3711 return A(), b = b ? a.extend(!0, {}, b) : {}, b.isObj = !0, b.index = c || 0, this.instance.open(b); 3712 }, close: function () { 3713 return a.magnificPopup.instance && a.magnificPopup.instance.close(); 3714 }, registerModule: function (b, c) { 3715 c.options && (a.magnificPopup.defaults[b] = c.options), a.extend(this.proto, c.proto), this.modules.push(b); 3716 }, defaults: { disableOn: 0, key: null, midClick: !1, mainClass: "", preloader: !0, focus: "", closeOnContentClick: !1, closeOnBgClick: !0, closeBtnInside: !0, showCloseBtn: !0, enableEscapeKey: !0, modal: !1, alignTop: !1, removalDelay: 0, prependTo: null, fixedContentPos: "auto", fixedBgPos: "auto", overflowY: "auto", closeMarkup: '<button title="%title%" type="button" class="mfp-close">×</button>', tClose: "Close (Esc)", tLoading: "Loading...", autoFocusLast: !0 } }, a.fn.magnificPopup = function (c) { 3717 A();var d = a(this);if ("string" == typeof c) { 3718 if ("open" === c) { 3719 var e, 3720 f = u ? d.data("magnificPopup") : d[0].magnificPopup, 3721 g = parseInt(arguments[1], 10) || 0;f.items ? e = f.items[g] : (e = d, f.delegate && (e = e.find(f.delegate)), e = e.eq(g)), b._openClick({ mfpEl: e }, d, f); 3722 } else b.isOpen && b[c].apply(b, Array.prototype.slice.call(arguments, 1)); 3723 } else c = a.extend(!0, {}, c), u ? d.data("magnificPopup", c) : d[0].magnificPopup = c, b.addGroup(d, c);return d; 3724 };var C, 3725 D, 3726 E, 3727 F = "inline", 3728 G = function () { 3729 E && (D.after(E.addClass(C)).detach(), E = null); 3730 };a.magnificPopup.registerModule(F, { options: { hiddenClass: "hide", markup: "", tNotFound: "Content not found" }, proto: { initInline: function () { 3731 b.types.push(F), w(h + "." + F, function () { 3732 G(); 3733 }); 3734 }, getInline: function (c, d) { 3735 if (G(), c.src) { 3736 var e = b.st.inline, 3737 f = a(c.src);if (f.length) { 3738 var g = f[0].parentNode;g && g.tagName && (D || (C = e.hiddenClass, D = x(C), C = "mfp-" + C), E = f.after(D).detach().removeClass(C)), b.updateStatus("ready"); 3739 } else b.updateStatus("error", e.tNotFound), f = a("<div>");return c.inlineElement = f, f; 3740 }return b.updateStatus("ready"), b._parseMarkup(d, {}, c), d; 3741 } } });var H, 3742 I = "ajax", 3743 J = function () { 3744 H && a(document.body).removeClass(H); 3745 }, 3746 K = function () {
3747 J(), b.req && b.req.abort(); 3748 };a.magnificPopup.registerModule(I, { options: { settings: null, cursor: "mfp-ajax-cur", tError: '<a href="%url%">The content</a> could not be loaded.' }, proto: { initAjax: function () { 3749 b.types.push(I), H = b.st.ajax.cursor, w(h + "." + I, K), w("BeforeChange." + I, K); 3750 }, getAjax: function (c) { 3751 H && a(document.body).addClass(H), b.updateStatus("loading");var d = a.extend({ url: c.src, success: function (d, e, f) { 3752 var g = { data: d, xhr: f };y("ParseAjax", g), b.appendContent(a(g.data), I), c.finished = !0, J(), b._setFocus(), setTimeout(function () { 3753 b.wrap.addClass(q); 3754 }, 16), b.updateStatus("ready"), y("AjaxContentAdded"); 3755 }, error: function () { 3756 J(), c.finished = c.loadError = !0, b.updateStatus("error", b.st.ajax.tError.replace("%url%", c.src)); 3757 } }, b.st.ajax.settings);return b.req = a.ajax(d), ""; 3758 } } });var L, 3759 M = function (c) { 3760 if (c.data && void 0 !== c.data.title) return c.data.title;var d = b.st.image.titleSrc;if (d) { 3761 if (a.isFunction(d)) return d.call(b, c);if (c.el) return c.el.attr(d) || ""; 3762 }return ""; 3763 };a.magnificPopup.registerModule("image", { options: { markup: '<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>', cursor: "mfp-zoom-out-cur", titleSrc: "title", verticalFit: !0, tError: '<a href="%url%">The image</a> could not be loaded.' }, proto: { initImage: function () { 3764 var c = b.st.image, 3765 d = ".image";b.types.push("image"), w(m + d, function () { 3766 "image" === b.currItem.type && c.cursor && a(document.body).addClass(c.cursor); 3767 }), w(h + d, function () { 3768 c.cursor && a(document.body).removeClass(c.cursor), v.off("resize" + p); 3769 }), w("Resize" + d, b.resizeImage), b.isLowIE && w("AfterChange", b.resizeImage); 3770 }, resizeImage: function () { 3771 var a = b.currItem;if (a && a.img && b.st.image.verticalFit) { 3772 var c = 0;b.isLowIE && (c = parseInt(a.img.css("padding-top"), 10) + parseInt(a.img.css("padding-bottom"), 10)), a.img.css("max-height", b.wH - c); 3773 } 3774 }, _onImageHasSize: function (a) { 3775 a.img && (a.hasSize = !0, L && clearInterval(L), a.isCheckingImgSize = !1, y("ImageHasSize", a), a.imgHidden && (b.content && b.content.removeClass("mfp-loading"), a.imgHidden = !1)); 3776 }, findImageSize: function (a) { 3777 var c = 0, 3778 d = a.img[0], 3779 e = function (f) { 3780 L && clearInterval(L), L = setInterval(function () { 3781 return d.naturalWidth > 0 ? void b._onImageHasSize(a) : (c > 200 && clearInterval(L), c++, void (3 === c ? e(10) : 40 === c ? e(50) : 100 === c && e(500))); 3782 }, f); 3783 };e(1); 3784 }, getImage: function (c, d) { 3785 var e = 0, 3786 f = function () { 3787 c && (c.img[0].complete ? (c.img.off(".mfploader"), c === b.currItem && (b._onImageHasSize(c), b.updateStatus("ready")), c.hasSize = !0, c.loaded = !0, y("ImageLoadComplete")) : (e++, 200 > e ? setTimeout(f, 100) : g())); 3788 }, 3789 g = function () { 3790 c && (c.img.off(".mfploader"), c === b.currItem && (b._onImageHasSize(c), b.updateStatus("error", h.tError.replace("%url%", c.src))), c.hasSize = !0, c.loaded = !0, c.loadError = !0); 3791 }, 3792 h = b.st.image, 3793 i = d.find(".mfp-img");if (i.length) { 3794 var j = document.createElement("img");j.className = "mfp-img", c.el && c.el.find("img").length && (j.alt = c.el.find("img").attr("alt")), c.img = a(j).on("load.mfploader", f).on("error.mfploader", g), j.src = c.src, i.is("img") && (c.img = c.img.clone()), j = c.img[0], j.naturalWidth > 0 ? c.hasSize = !0 : j.width || (c.hasSize = !1); 3795 }return b._parseMarkup(d, { title: M(c), img_replaceWith: c.img }, c), b.resizeImage(), c.hasSize ? (L && clearInterval(L), c.loadError ? (d.addClass("mfp-loading"), b.updateStatus("error", h.tError.replace("%url%", c.src))) : (d.removeClass("mfp-loading"), b.updateStatus("ready")), d) : (b.updateStatus("loading"), c.loading = !0, c.hasSize || (c.imgHidden = !0, d.addClass("mfp-loading"), b.findImageSize(c)), d); 3796 } } });var N, 3797 O = function () { 3798 return void 0 === N && (N = void 0 !== document.createElement("p").style.MozTransform), N; 3799 };a.magnificPopup.registerModule("zoom", { options: { enabled: !1, easing: "ease-in-out", duration: 300, opener: function (a) { 3800 return a.is("img") ? a : a.find("img"); 3801 } }, proto: { initZoom: function () { 3802 var a, 3803 c = b.st.zoom, 3804 d = ".zoom";if (c.enabled && b.supportsTransition) { 3805 var e, 3806 f, 3807 g = c.duration, 3808 j = function (a) { 3809 var b = a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"), 3810 d = "all " + c.duration / 1e3 + "s " + c.easing, 3811 e = { position: "fixed", zIndex: 9999, left: 0, top: 0, "-webkit-backface-visibility": "hidden" }, 3812 f = "transition";return e["-webkit-" + f] = e["-moz-" + f] = e["-o-" + f] = e[f] = d, b.css(e), b; 3813 }, 3814 k = function () { 3815 b.content.css("visibility", "visible"); 3816 };w("BuildControls" + d, function () { 3817 if (b._allowZoom()) { 3818 if (clearTimeout(e), b.content.css("visibility", "hidden"), a = b._getItemToZoom(), !a) return void k();f = j(a), f.css(b._getOffset()), b.wrap.append(f), e = setTimeout(function () { 3819 f.css(b._getOffset(!0)), e = setTimeout(function () { 3820 k(), setTimeout(function () { 3821 f.remove(), a = f = null, y("ZoomAnimationEnded"); 3822 }, 16); 3823 }, g); 3824 }, 16); 3825 } 3826 }), w(i + d, function () { 3827 if (b._allowZoom()) { 3828 if (clearTimeout(e), b.st.removalDelay = g, !a) { 3829 if (a = b._getItemToZoom(), !a) return;f = j(a); 3830 }f.css(b._getOffset(!0)), b.wrap.append(f), b.content.css("visibility", "hidden"), setTimeout(function () { 3831 f.css(b._getOffset()); 3832 }, 16); 3833 } 3834 }), w(h + d, function () { 3835 b._allowZoom() && (k(), f && f.remove(), a = null); 3836 }); 3837 } 3838 }, _allowZoom: function () { 3839 return "image" === b.currItem.type; 3840 }, _getItemToZoom: function () { 3841 return b.currItem.hasSize ? b.currItem.img : !1; 3842 }, _getOffset: function (c) { 3843 var d;d = c ? b.currItem.img : b.st.zoom.opener(b.currItem.el || b.currItem);var e = d.offset(), 3844 f = parseInt(d.css("padding-top"), 10), 3845 g = parseInt(d.css("padding-bottom"), 10);e.top -= a(window).scrollTop() - f;
3845var h = { width: d.width(), height: (u ? d.innerHeight() : d[0].offsetHeight) - g - f };return O() ? h["-moz-transform"] = h.transform = "translate(" + e.left + "px," + e.top + "px)" : (h.left = e.left, h.top = e.top), h; 3846 } } });var P = "iframe", 3847 Q = "//about:blank", 3848 R = function (a) { 3849 if (b.currTemplate[P]) { 3850 var c = b.currTemplate[P].find("iframe");c.length && (a || (c[0].src = Q), b.isIE8 && c.css("display", a ? "block" : "none")); 3851 } 3852 };a.magnificPopup.registerModule(P, { options: { markup: '<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>', srcAction: "iframe_src", patterns: { youtube: { index: "youtube.com", id: "v=", src: "//www.youtube.com/embed/%id%?autoplay=1" }, vimeo: { index: "vimeo.com/", id: "/", src: "//player.vimeo.com/video/%id%?autoplay=1" }, gmaps: { index: "//maps.google.", src: "%id%&output=embed" } } }, proto: { initIframe: function () { 3853 b.types.push(P), w("BeforeChange", function (a, b, c) { 3854 b !== c && (b === P ? R() : c === P && R(!0)); 3855 }), w(h + "." + P, function () { 3856 R(); 3857 }); 3858 }, getIframe: function (c, d) { 3859 var e = c.src, 3860 f = b.st.iframe;a.each(f.patterns, function () { 3861 return e.indexOf(this.index) > -1 ? (this.id && (e = "string" == typeof this.id ? e.substr(e.lastIndexOf(this.id) + this.id.length, e.length) : this.id.call(this, e)), e = this.src.replace("%id%", e), !1) : void 0; 3862 });var g = {};return f.srcAction && (g[f.srcAction] = e), b._parseMarkup(d, g, c), b.updateStatus("ready"), d; 3863 } } });var S = function (a) { 3864 var c = b.items.length;return a > c - 1 ? a - c : 0 > a ? c + a : a; 3865 }, 3866 T = function (a, b, c) { 3867 return a.replace(/%curr%/gi, b + 1).replace(/%total%/gi, c); 3868 };a.magnificPopup.registerModule("gallery", { options: { enabled: !1, arrowMarkup: '<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>', preload: [0, 2], navigateByImgClick: !0, arrows: !0, tPrev: "Previous (Left arrow key)", tNext: "Next (Right arrow key)", tCounter: "%curr% of %total%" }, proto: { initGallery: function () { 3869 var c = b.st.gallery, 3870 e = ".mfp-gallery";return b.direction = !0, c && c.enabled ? (f += " mfp-gallery", w(m + e, function () { 3871 c.navigateByImgClick && b.wrap.on("click" + e, ".mfp-img", function () { 3872 return b.items.length > 1 ? (b.next(), !1) : void 0; 3873 }), d.on("keydown" + e, function (a) { 3874 37 === a.keyCode ? b.prev() : 39 === a.keyCode && b.next(); 3875 }); 3876 }), w("UpdateStatus" + e, function (a, c) { 3877 c.text && (c.text = T(c.text, b.currItem.index, b.items.length)); 3878 }), w(l + e, function (a, d, e, f) { 3879 var g = b.items.length;e.counter = g > 1 ? T(c.tCounter, f.index, g) : ""; 3880 }), w("BuildControls" + e, function () { 3881 if (b.items.length > 1 && c.arrows && !b.arrowLeft) { 3882 var d = c.arrowMarkup, 3883 e = b.arrowLeft = a(d.replace(/%title%/gi, c.tPrev).replace(/%dir%/gi, "left")).addClass(s), 3884 f = b.arrowRight = a(d.replace(/%title%/gi, c.tNext).replace(/%dir%/gi, "right")).addClass(s);e.click(function () { 3885 b.prev(); 3886 }), f.click(function () { 3887 b.next(); 3888 }), b.container.append(e.add(f)); 3889 } 3890 }), w(n + e, function () { 3891 b._preloadTimeout && clearTimeout(b._preloadTimeout), b._preloadTimeout = setTimeout(function () { 3892 b.preloadNearbyImages(), b._preloadTimeout = null; 3893 }, 16); 3894 }), void w(h + e, function () { 3895 d.off(e), b.wrap.off("click" + e), b.arrowRight = b.arrowLeft = null; 3896 })) : !1; 3897 }, next: function () { 3898 b.direction = !0, b.index = S(b.index + 1), b.updateItemHTML(); 3899 }, prev: function () { 3900 b.direction = !1, b.index = S(b.index - 1), b.updateItemHTML(); 3901 }, goTo: function (a) { 3902 b.direction = a >= b.index, b.index = a, b.updateItemHTML(); 3903 }, preloadNearbyImages: function () { 3904 var a, 3905 c = b.st.gallery.preload, 3906 d = Math.min(c[0], b.items.length), 3907 e = Math.min(c[1], b.items.length);for (a = 1; a <= (b.direction ? e : d); a++) b._preloadItem(b.index + a);for (a = 1; a <= (b.direction ? d : e); a++) b._preloadItem(b.index - a); 3908 }, _preloadItem: function (c) { 3909 if (c = S(c), !b.items[c].preloaded) { 3910 var d = b.items[c];d.parsed || (d = b.parseEl(c)), y("LazyLoad", d), "image" === d.t
3910ype && (d.img = a('<img class="mfp-img" />').on("load.mfploader", function () { 3911 d.hasSize = !0; 3912 }).on("error.mfploader", function () { 3913 d.hasSize = !0, d.loadError = !0, y("LazyLoadError", d); 3914 }).attr("src", d.src)), d.preloaded = !0; 3915 } 3916 } } });var U = "retina";a.magnificPopup.registerModule(U, { options: { replaceSrc: function (a) { 3917 return a.src.replace(/\.\w+$/, function (a) { 3918 return "@2x" + a; 3919 }); 3920 }, ratio: 1 }, proto: { initRetina: function () { 3921 if (window.devicePixelRatio > 1) { 3922 var a = b.st.retina, 3923 c = a.ratio;c = isNaN(c) ? c() : c, c > 1 && (w("ImageHasSize." + U, function (a, b) { 3924 b.img.css({ "max-width": b.img[0].naturalWidth / c, width: "100%" }); 3925 }), w("ElementParse." + U, function (b, d) { 3926 d.src = a.replaceSrc(d, c); 3927 })); 3928 } 3929 } } }), A(); 3930}); 3931 3932/***/ }), 3933
3934/***/ "./js/lib/jquery.mobile-events.min.js": 3935/*!********************************************!*\ 3936 !*** ./js/lib/jquery.mobile-events.min.js ***! 3937 \********************************************/ 3938/*! no static exports found */ 3939/***/ (function(module, exports, __webpack_require__) { 3940 3941"use strict"; 3942/*! 3943 * jQuery Mobile Events 3944 * by Ben Major 3945 * 3946 * Copyright 2011-2017, Ben Major 3947 * Licensed under the MIT License: 3948 * 3949 * Permission is hereby granted, free of charge, to any person obtaining a copy 3950 * of this software and associated documentation files (the "Software"), to deal 3951 * in the Software without restriction, including without limitation the rights 3952 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 3953 * copies of the Software, and to permit persons to whom the Software is 3954 * furnished to do so, subject to the following conditions: 3955 * 3956 * The above copyright notice and this permission notice shall be included in 3957 * all copies or substantial portions of the Software. 3958 * 3959 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 3960 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 3961 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 3962 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 3963 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 3964 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 3965 * THE SOFTWARE. 3966 * 3967 */ 3968 3969 3970(function (a) { 3971 function b() { 3972 var x = j();x !== k && (k = x, g.trigger('orientationchange')); 3973 }function c(x, y, z, A) { 3974 var B = z.type;z.type = y, a.event.dispatch.call(x, z, A), z.type = B; 3975 }a.attrFn = a.attrFn || {};var d = 'ontouchstart' in window, 3976 f = { tap_pixel_range: 5, swipe_h_threshold: 50, swipe_v_threshold: 50, taphold_threshold: 750, doubletap_int: 500, touch_capable: d, orientation_support: 'orientation' in window && 'onorientationchange' in window, startevent: d ? 'touchstart' : 'mousedown', endevent: d ? 'touchend' : 'mouseup', moveevent: d ? 'touchmove' : 'mousemove', tapevent: d ? 'tap' : 'click', scrollevent: d ? 'touchmove' : 'scroll', hold_timer: null, tap_timer: null };a.isTouchCapable = function () { 3977 return f.touch_capable; 3978 }, a.getStartEvent = function () { 3979 return f.startevent; 3980 }, a.getEndEvent = function () { 3981 return f.endevent; 3982 }, a.getMoveEvent = function () { 3983 return f.moveevent; 3984 }, a.getTapEvent = function () { 3985 return f.tapevent; 3986 }, a.getScrollEvent = function () { 3987 return f.scrollevent; 3988 }, a.each(['tapstart', 'tapend', 'tapmove', 'tap', 'tap2', 'tap3', 'tap4', 'singletap', 'doubletap', 'taphold', 'swipe', 'swipeup', 'swiperight', 'swipedown', 'swipeleft', 'swipeend', 'scrollstart', 'scrollend', 'orientationchange'], function (x, y) { 3989 a.fn[y] = function (z) { 3990 return z ? this.on(y, z) : this.trigger(y); 3991 }, a.attrFn[y] = !0; 3992 }), a.event.special.tapstart = { setup: function () { 3993 var x = this, 3994 y = a(x);y.on(f.startevent, function z(A) { 3995 if (y.data('callee', z), A.which && 1 !== A.which) return !1;var B = A.originalEvent, 3996 C = { position: { x: f.touch_capable ? B.touches[0].screenX : A.screenX, y: f.touch_capable ? B.touches[0].screenY : A.screenY }, offset: { x: f.touch_capable ? Math.round(B.changedTouches[0].pageX - (y.offset() ? y.offset().left : 0)) : Math.round(A.pageX - (y.offset() ? y.offset().left : 0)), y: f.touch_capable ? Math.round(B.changedTouches[0].pageY - (y.offset() ? y.offset().top : 0)) : Math.round(A.pageY - (y.offset() ? y.offset().top : 0)) }, time: Date.now(), target: A.target };return c(x, 'tapstart', A, C), !0; 3997 }); 3998 }, remove: function () { 3999 a(this).off(f.startevent, a(this).data.callee); 4000 } }, a.event.special.tapmove = { setup: function () { 4001 var x = this, 4002 y = a(x);y.on(f.moveevent, function z(A) { 4003 y.data('callee', z);var B = A.originalEvent, 4004 C = { position: { x: f.touch_capable ? B.touches[0].screenX : A.screenX, y: f.touch_capable ? B.touches[0].screenY : A.screenY }, offset: { x: f.touch_capable ? Math.round(B.changedTouches[0].pageX - (y.offset() ? y.offset().left : 0)) : Math.round(A.pageX - (y.offset() ? y.offset().left : 0)), y: f.touch_capable ? Math.round(B.changedTouches[0].pageY - (y.offset() ? y.offset().top : 0)) : Math.round(A.pageY - (y.offset() ? y.offset().top : 0)) }, time: Date.now(), target: A.target };return c(x, 'tapmove', A, C), !0; 4005 }); 4006 }, remove: function () { 4007 a(this).off(f.moveevent, a(this).data.callee); 4008 } }, a.event.special.tapend = { setup: function () { 4009 var x = this, 4010 y = a(x);y.on(f.endevent, function z(A) { 4011 y.data('callee', z);var B = A.originalEvent, 4012 C = { position: { x: f.touch_capable ? B.changedTouches[0].screenX : A.screenX, y: f.touch_capable ? B.changedTouches[0].screenY : A.screenY }, offset: { x: f.touch_capable ? Math.round(B.changedTouches[0].pageX - (y.offset() ? y.offset().left : 0)) : Math.round(A.pageX - (y.offset() ? y.offset().left : 0)), y: f.touch_capable ? Math.round(B.changedTouches[0].pageY - (y.offset() ? y.offset().top : 0)) : Math.round(A.pageY - (y.offset() ? y.offset().top : 0)) }, time: Date.now(), target: A.target };return c(x, 'tapend', A, C), !0; 4013 }); 4014 }, remove: function () { 4015 a(this).off(f.endevent, a(this).data.callee); 4016 } }, a.event.special.taphold = { setup: function () { 4017 var z, 4018 x = this, 4019 y = a(x), 4020 A = { x: 0, y: 0 }, 4021 B = 0, 4022 C = 0;y.on(f.startevent, function D(E) { 4023 if (E.which && 1 !== E.which) return !1;y.data('tapheld', !1), z = E.target;var F = E.originalEvent, 4024 G = Date.now(), 4025 H = { x: f.touch_capable ? F.touches[0].screenX : E.screenX, y: f.touch_capable ? F.touches[0].screenY : E.screenY }, 4026 I = { x: f.touch_capable ? F.touches[0].pageX - F.touches[0].target.offsetLeft : E.offsetX, y: f.touch_capable ? F.touches[0].pageY - F.touches[0].target.offsetTop : E.offsetY };A.x = E.originalEvent.targetTouches ? E.originalEvent.targetTouches[0].pageX : E.pageX, A.y = E.originalEvent.targetTouches ? E.originalEvent.targetTouches[0].pageY : E.pageY, B = A.x, C = A.y;var J = y.parent().data('threshold') ? y.parent().data('threshold') : y.data('threshold'), 4027 K = 'undefined' != typeof J && !1 !== J && parseInt(J) ? parseInt(J) : f.taphold_threshold;return f.hold_timer = window.setTimeout(function () { 4028 var L = A.x - B, 4029 M = A.y - C;if (E.target == z && (A.x == B && A.y == C || L >
4029= -f.tap_pixel_range && L <= f.tap_pixel_range && M >= -f.tap_pixel_range && M <= f.tap_pixel_range)) { 4030 y.data('tapheld', !0);var N = Date.now(), 4031 O = { x: f.touch_capable ? F.touches[0].screenX : E.screenX, y: f.touch_capable ? F.touches[0].screenY : E.screenY }, 4032 P = { x: f.touch_capable ? Math.round(F.changedTouches[0].pageX - (y.offset() ? y.offset().left : 0)) : Math.round(E.pageX - (y.offset() ? y.offset().left : 0)), y: f.touch_capable ? Math.round(F.changedTouches[0].pageY - (y.offset() ? y.offset().top : 0)) : Math.round(E.pageY - (y.offset() ? y.offset().top : 0)) }, 4033 R = { startTime: G, endTime: N, startPosition: H, startOffset: I, endPosition: O, endOffset: P, duration: N - G, target: E.target };y.data('callee1', D), c(x, 'taphold', E, R); 4034 } 4035 }, K), !0; 4036 }).on(f.endevent, function D() { 4037 y.data('callee2', D), y.data('tapheld', !1), window.clearTimeout(f.hold_timer); 4038 }).on(f.moveevent, function D(E) { 4039 y.data('callee3', D), B = E.originalEvent.targetTouches ? E.originalEvent.targetTouches[0].pageX : E.pageX, C = E.originalEvent.targetTouches ? E.originalEvent.targetTouches[0].pageY : E.pageY; 4040 }); 4041 }, remove: function () { 4042 a(this).off(f.startevent, a(this).data.callee1).off(f.endevent, a(this).data.callee2).off(f.moveevent, a(this).data.callee3); 4043 } }, a.event.special.doubletap = { setup: function () { 4044 var z, 4045 A, 4046 C, 4047 D, 4048 x = this, 4049 y = a(x), 4050 B = null, 4051 E = !1;y.on(f.startevent, function F(G) { 4052 return G.which && 1 !== G.which ? !1 : (y.data('doubletapped', !1), z = G.target, y.data('callee1', F), C = G.originalEvent, B || (B = { position: { x: f.touch_capable ? C.touches[0].screenX : G.screenX, y: f.touch_capable ? C.touches[0].screenY : G.screenY }, offset: { x: f.touch_capable ? Math.round(C.changedTouches[0].pageX - (y.offset() ? y.offset().left : 0)) : Math.round(G.pageX - (y.offset() ? y.offset().left : 0)), y: f.touch_capable ? Math.round(C.changedTouches[0].pageY - (y.offset() ? y.offset().top : 0)) : Math.round(G.pageY - (y.offset() ? y.offset().top : 0)) }, time: Date.now(), target: G.target, element: G.originalEvent.srcElement, index: a(G.target).index() }), !0); 4053 }).on(f.endevent, function F(G) { 4054 var H = Date.now(), 4055 I = y.data('lastTouch') || H + 1, 4056 J = H - I;if (window.clearTimeout(A), y.data('callee2', F), J < f.doubletap_int && a(G.target).index() == B.index && 100 < J) { 4057 y.data('doubletapped', !0), window.clearTimeout(f.tap_timer);var K = { position: { x: f.touch_capable ? G.originalEvent.changedTouches[0].screenX : G.screenX, y: f.touch_capable ? G.originalEvent.changedTouches[0].screenY : G.screenY }, offset: { x: f.touch_capable ? Math.round(C.changedTouches[0].pageX - (y.offset() ? y.offset().left : 0)) : Math.round(G.pageX - (y.offset() ? y.offset().left : 0)), y: f.touch_capable ? Math.round(C.changedTouches[0].pageY - (y.offset() ? y.offset().top : 0)) : Math.round(G.pageY - (y.offset() ? y.offset().top : 0)) }, time: Date.now(), target: G.target, element: G.originalEvent.srcElement, index: a(G.target).index() }, 4058 L = { firstTap: B, secondTap: K, interval: K.time - B.time };E || (c(x, 'doubletap', G, L), B = null), E = !0, D = window.setTimeout(function () { 4059 E = !1; 4060 }, f.doubletap_int); 4061 } else y.data('lastTouch', H), A = window.setTimeout(function () { 4062 B = null, window.clearTimeout(A); 4063 }, f.doubletap_int, [G]);y.data('lastTouch', H); 4064 }); 4065 }, remove: function () { 4066 a(this).off(f.startevent, a(this).data.callee1).off(f.endevent, a(this).data.callee2); 4067 } }, a.event.special.singletap = { setup: function () { 4068 var x = this, 4069 y = a(x), 4070 z = null, 4071 A = null, 4072 B = { x: 0, y: 0 };y.on(f.startevent, function C(D) { 4073 return D.which && 1 !== D.which ? !1 : (A = Date.now(), z = D.target, y.data('callee1', C), B.x = D.originalEvent.targetTouches ? D.originalEvent.targetTouches[0].pageX : D.pageX, B.y = D.originalEvent.targetTouches ? D.originalEvent.targetTouches[0].pageY : D.pageY, !0); 4074 }).on(f.endevent, function C(D) {
4075 if (y.data('callee2', C), D.target == z) { 4076 var E = D.originalEvent.changedTouches ? D.originalEvent.changedTouches[0].pageX : D.pageX, 4077 F = D.originalEvent.changedTouches ? D.originalEvent.changedTouches[0].pageY : D.pageY;f.tap_timer = window.setTimeout(function () { 4078 var G = B.x - E, 4079 H = B.y - F;if (!y.data('doubletapped') && !y.data('tapheld') && (B.x == E && B.y == F || G >= -f.tap_pixel_range && G <= f.tap_pixel_range && H >= -f.tap_pixel_range && H <= f.tap_pixel_range)) { 4080 var I = D.originalEvent, 4081 J = { position: { x: f.touch_capable ? I.changedTouches[0].screenX : D.screenX, y: f.touch_capable ? I.changedTouches[0].screenY : D.screenY }, offset: { x: f.touch_capable ? Math.round(I.changedTouches[0].pageX - (y.offset() ? y.offset().left : 0)) : Math.round(D.pageX - (y.offset() ? y.offset().left : 0)), y: f.touch_capable ? Math.round(I.changedTouches[0].pageY - (y.offset() ? y.offset().top : 0)) : Math.round(D.pageY - (y.offset() ? y.offset().top : 0)) }, time: Date.now(), target: D.target };J.time - A < f.taphold_threshold && c(x, 'singletap', D, J); 4082 } 4083 }, f.doubletap_int); 4084 } 4085 }); 4086 }, remove: function () { 4087 a(this).off(f.startevent, a(this).data.callee1).off(f.endevent, a(this).data.callee2); 4088 } }, a.event.special.tap = { setup: function () { 4089 var B, 4090 D, 4091 x = this, 4092 y = a(x), 4093 z = !1, 4094 A = null, 4095 C = { x: 0, y: 0 };y.on(f.startevent, function E(F) { 4096 return y.data('callee1', E), F.which && 1 !== F.which ? !1 : (z = !0, C.x = F.originalEvent.targetTouches ? F.originalEvent.targetTouches[0].pageX : F.pageX, C.y = F.originalEvent.targetTouches ? F.originalEvent.targetTouches[0].pageY : F.pageY, B = Date.now(), A = F.target, D = F.originalEvent.targetTouches ? F.originalEvent.targetTouches : [F], !0); 4097 }).on(f.endevent, function E(F) { 4098 y.data('callee2', E);var G = F.originalEvent.targetTouches ? F.originalEvent.changedTouches[0].pageX : F.pageX, 4099 H = F.originalEvent.targetTouches ? F.originalEvent.changedTouches[0].pageY : F.pageY, 4100 I = C.x - G, 4101 J = C.y - H;if (A == F.target && z && Date.now() - B < f.taphold_threshold && (C.x == G && C.y == H || I >= -f.tap_pixel_range && I <= f.tap_pixel_range && J >= -f.tap_pixel_range && J <= f.tap_pixel_range)) { 4102 for (var O, L = F.originalEvent, M = [], N = 0; N < D.length; N++) O = { position: { x: f.touch_capable ? L.changedTouches[N].screenX : F.screenX, y: f.touch_capable ? L.changedTouches[N].screenY : F.screenY }, offset: { x: f.touch_capable ? Math.round(L.changedTouches[N].pageX - (y.offset() ? y.offset().left : 0)) : Math.round(F.pageX - (y.offset() ? y.offset().left : 0)), y: f.touch_capable ? Math.round(L.changedTouches[N].pageY - (y.offset() ? y.offset().top : 0)) : Math.round(F.pageY - (y.offset() ? y.offset().top : 0)) }, time: Date.now(), target: F.target }, M.push(O);c(x, 'tap', F, M); 4103 } 4104 }); 4105 }, remove: function () { 4106 a(this).off(f.startevent, a(this).data.callee1).off(f.endevent, a(this).data.callee2); 4107 } }, a.event.special.swipe = { setup: function () { 4108 function x(H) { 4109 B = a(H.currentTarget), B.data('callee1', x), E.x = H.originalEvent.targetTouches ? H.originalEvent.targetTouches[0].pageX : H.pageX, E.y = H.originalEvent.targetTouches ? H.originalEvent.targetTouches[0].pageY : H.pageY, F.x = E.x, F.y = E.y, C = !0;var I = H.originalEvent;G = { position: { x: f.touch_capable ? I.touches[0].screenX : H.screenX, y: f.touch_capable ? I.touches[0].screenY : H.screenY }, offset: { x: f.touch_capable ? Math.round(I.changedTouches[0].pageX - (B.offset() ? B.offset().left : 0)) : Math.round(H.pageX - (B.offset() ? B.offset().left : 0)), y: f.touch_capable ? Math.round(I.changedTouches[0].pageY - (B.offset() ? B.offset().top : 0)) : Math.round(H.pageY - (B.offset() ? B.offset().top : 0)) }, time: Date.now(), target: H.target }; 4110 }function y(H) { 4111 B = a(H.currentTarget), B.data('callee2', y), F.x = H.originalEvent.targetTouches ? H.originalEvent.targetTouches[0].pageX : H.pageX, F.y = H.originalEvent.targetTouches ? H.originalEvent.targetTouches[0].pageY : H.pageY;var I, 4112 J = B.parent().data('xthreshold') ? B.parent().data('xthreshold') : B.data('xthreshold'), 4113 K = B.parent().data('ythreshold') ? B.parent().data('ythreshold') : B.data('ythreshold'), 4114 L = 'undefined' != typeof J && !1 !== J && parseInt(J) ? parseInt(J) : f.swipe_h_threshold, 4115 M = 'undefined' != typeof K && !1 !== K && parseInt(K) ? parseInt(K) : f.swipe_v_threshold;if (E.y > F.y && E.y - F.y > M && (I = 'swipeup'), E.x < F.x && F.x - E.x > L && (I = 'swiperight'), E.y < F.y && F.y - E.y > M && (I = 'swipedown'), E.x > F.x && E.x - F.x > L && (I = 'swipeleft'), void 0 != I && C) { 4116 E.x = 0, E.y = 0, F.x = 0, F.y = 0, C = !1;var N = H.originalEvent, 4117 O = { position: { x: f.touch_capable ? N.touches[0].screenX : H.screenX, y: f.touch_capable ? N.touches[0].screenY : H.screenY }, offset: { x: f.touch_capable ? Math.round(N.changedTouches[0].pageX - (B.offset() ? B.offset().left : 0)) : Math.round(H.pageX - (B.offset() ? B.offset().left : 0)), y: f.touch_capable ? Math.round(N.changedTouches[0].pageY - (B.offset() ? B.offset().top : 0)) : Math.round(H.pageY - (B.offset() ? B.offset().top : 0)) }, time: Date.now(), target: H.target }, 4118 P = Math.abs(G.position.x - O.position.x), 4119 Q = Math.abs(G.position.y - O.position.y), 4120 R = { startEvnt: G, endEvnt: O, direction: I.replace('swipe', ''), xAmount: P, yAmount: Q, duration: O.time - G.time };D = !0, B.trigger('swipe', R).trigger(I, R); 4121 } 4122 }function z(H) { 4123 B = a(H.currentTarget);var I = '';if (B.data('callee3', z), D) { 4124 var J = B.data('xthreshold'), 4125 K = B.data('ythreshold'), 4126 L = 'undefined' != typeof J && !1 !== J && parseInt(J) ? parseInt(J) : f.swipe_h_threshold, 4127 M = 'undefined' != typeof K && !1 !== K && parseInt(K) ? parseInt(K) : f.swipe_v_threshold, 4128 N = H.originalEvent, 4129 O = { position: { x: f.touch_capable ? N.changedTouches[0].screenX : H.screenX, y: f.touch_capable ? N.changedTouches[0].screenY : H.screenY }, offset: { x: f.touch_capable ? Math.round(N.changedTouches[0].pageX - (B.offset() ? B.offset().left : 0)) : Math.round(H.pageX - (B.offset() ? B.offset().left : 0)), y: f.touch_capable ? Math.round(N.changedTouches[0].pageY - (B.offset() ? B.offset().top : 0)) : Math.round(H.pageY - (B.offset() ? B.offset().top : 0)) }, time: Date.now(), target: H.target };G.position.y > O.position.y && G.position.y - O.position.y > M && (I = 'swipeup'), G.position.x < O.position.x && O.position.x - G.position.x > L && (I = 'swiperight'), G.position.y < O.position.y && O.position.y - G.position.y > M && (I = 'swipedown'), G.position.x > O.position.x && G.position.x - O.position.x > L && (I = 'swipeleft');var P = Math.abs(G.position.x - O.position.x), 4130 Q = Math.abs(G.position.y - O.position.y), 4131 R = { startEvnt: G, endEvnt: O, direction: I.replace('swipe', ''), xAmount: P, yAmount: Q, duration: O.time - G.time };B.trigger('swipeend', R); 4132 }C = !1, D = !1; 4133 }var G, 4134 A = this, 4135 B = a(A), 4136 C = !1, 4137 D = !1, 4138 E = { x: 0, y: 0 }, 4139 F = { x: 0, y: 0 };B.on(f.startevent, x), B.on(f.moveevent, y), B.on(f.endevent, z); 4140 }, remove: function () { 4141 a(this).off(f.startevent, a(this).data.callee1).off(f.moveevent, a(this).data.callee2).off(f.endevent, a(this).data.callee3); 4142 } }, a.event.special.scrollstart = { setup: function () { 4143 function x(C, D) { 4144 A = D, c(y, A ? 'scrollstart' : 'scrollend', C); 4145 }var A, 4146 B, 4147 y = this, 4148 z = a(y);z.on(f.scrollevent, function C(D) { 4149 z.data('callee', C), A || x(D, !0), clearTimeout(B), B = setTimeout(function () { 4150 x(D, !1); 4151 }, 50); 4152 }); 4153 }, remove: function () { 4154 a(this).off(f.scrollevent, a(this).data.callee); 4155 } };var h, 4156 j, 4157 k, 4158 l, 4159 m, 4160 g = a(window), 4161 n = { 0: !0, 180: !0 };if (f.orientation_support) { 4162 var o = window.innerWidth || g.width(), 4163 p = window.innerHeight || g.height();l = o > p && o - p > 50, m = n[window.orientation], (l && m || !l && !m) && (n = { 90: !0, '-90': !0 }); 4164 }a.event.special.orientationchange = h = { setup: function () { 4165 return !f.orientation_support && (k = j(), g.on('throttledresize', b), !0); 4166 }, teardown: function () { 4167 return !f.orientation_support && (g.off('throttledresize', b), !0); 4168 }, add: function (x) { 4169 var y = x.handler;x.handler = function (z) { 4170 return z.orientation = j(), y.apply(this, arguments); 4171 }; 4172 } }, a.event.special.orientationchange.orientation = j = function () { 4173 var x = !0, 4174 y = document.documentElement;return x = f.orientation_support ? n[window.orientation] : y && 1.1 > y.clientWidth / y.clientHeight, x ? 'portrait' : 'landscape'; 4175 }, a.event.special.throttledresize = { setup: function () { 4176 a(this).on('resize', s); 4177 }, teardown: function () { 4178 a(this).off('resize', s); 4179 } };var u, 4180 v, 4181 w, 4182 r = 250, 4183 s = function () { 4184 v = Date.now(), w = v - t, w >= r ? (t = v, a(this).trigger('throttledresize')) : (u && window.clearTimeout(u), u = window.setTimeout(b, r - w)); 4185 }, 4186 t = 0;a.each({ scrollend: 'scrollstart', swipeup: 'swipe', swiperight: 'swipe', swipedown: 'swipe', swipeleft: 'swipe', swipeend: 'swipe', tap2: 'tap' }, function (x, y) { 4187 a.event.special[x] = { setup: function () { 4188 a(this).on(y, a.noop); 4189 } }; 4190 }); 4191})(jQuery); 4192 4193/***/ }), 4194
vendor: 10,984 bytes, lines 4195-4447
4195/***/ "./js/lib/jquery.nivo.slider.js": 4196/*!**************************************!*\ 4197 !*** ./js/lib/jquery.nivo.slider.js ***! 4198 \**************************************/ 4199/*! no static exports found */ 4200/***/ (function(module, exports) { 4201 4202/* 4203 * jQuery Nivo Slider v3.2 4204 * http://nivo.dev7studios.com 4205 * 4206 * Copyright 2012, Dev7studios 4207 * Free to use and abuse under the MIT license. 4208 * http://www.opensource.org/licenses/mit-license.php 4209 */ 4210 4211(function ($) { 4212 var NivoSlider = function (element, options) { 4213 // Defaults are below 4214 var settings = $.extend({}, $.fn.nivoSlider.defaults, options); 4215 4216 // Useful variables. Play carefully. 4217 var vars = { 4218 currentSlide: 0, 4219 currentImage: '', 4220 totalSlides: 0, 4221 running: false, 4222 paused: false, 4223 stop: false, 4224 controlNavEl: false 4225 }; 4226 4227 // Get this slider 4228 var slider = $(element); 4229 slider.data('nivo:vars', vars).addClass('nivoSlider'); 4230 //slider.height(slider.height()); 4231 4232 // Find our slider children 4233 var kids = slider.children(); 4234 kids.each(function () { 4235 var child = $(this); 4236 var link = ''; 4237 if (!child.is('img')) { 4238 if (child.is('a')) { 4239 child.addClass('nivo-imageLink'); 4240 link = child; 4241 } 4242 child = child.find('img:first'); 4243 } 4244 // Get img width & height 4245 var childWidth = childWidth === 0 ? child.attr('width') : child.width(), 4246 childHeight = childHeight === 0 ? child.attr('height') : child.height(); 4247 4248 if (link !== '') { 4249 link.css('display', 'none'); 4250 } 4251 child.css('display', 'none'); 4252 vars.totalSlides++; 4253 }); 4254 4255 // If randomStart 4256 if (settings.randomStart) { 4257 settings.startSlide = Math.floor(Math.random() * vars.totalSlides); 4258 } 4259 4260 // Set startSlide 4261 if (settings.startSlide > 0) { 4262 if (settings.startSlide >= vars.totalSlides) { 4263 settings.startSlide = vars.totalSlides - 1; 4264 } 4265 vars.currentSlide = settings.startSlide; 4266 } 4267 4268 // Get initial image 4269 if ($(kids[vars.currentSlide]).is('img')) { 4270 vars.currentImage = $(kids[vars.currentSlide]); 4271 } else { 4272 vars.currentImage = $(kids[vars.currentSlide]).find('img:first'); 4273 } 4274 4275 // Show initial link 4276 if ($(kids[vars.currentSlide]).is('a')) { 4277 $(kids[vars.currentSlide]).css('display', 'block'); 4278 } 4279 4280 // Set first background 4281 var sliderImg = $('<img/>').addClass('nivo-main-image'); 4282 sliderImg.attr('src', vars.currentImage.attr('data-src')).attr('width', vars.currentImage.attr('width')).attr('height', vars.currentImage.attr('height')).attr('alt', vars.currentImage.attr('alt')); 4283 slider.append(sliderImg); 4284 4285 // Detect Window Resize 4286 $(window).resize(function () { 4287 slider.children('img').width(slider.width()); 4288 sliderImg.attr('src', vars.currentImage.attr('data-src')); 4289 sliderImg.stop().height('auto'); 4290 $('.nivo-slice').remove(); 4291 $('.nivo-box').remove(); 4292 }); 4293 4294 //Create caption 4295 slider.append($('<div class="nivo-caption"></div>')); 4296 4297 // Process caption function 4298 var processCaption = function (settings) { 4299 var nivoCaption = $('.nivo-caption', slider); 4300 if (vars.currentImage.attr('data-title') != '' && vars.currentImage.attr('data-title') != undefined) { 4301 var title = vars.currentImage.attr('data-title'); 4302 if (title.substr(0, 1) == '#') title = $(title).html(); 4303 4304 if (nivoCaption.css('display') == 'block') { 4305 nivoCaption.stop().fadeOut(settings.animSpeed, function () { 4306 setTimeout(function () { 4307 nivoCaption.html(title); 4308 nivoCaption.stop().fadeIn(settings.animSpeed); 4309 }, settings.animSpeed); 4310 }); 4311 } else { 4312 setTimeout(function () { 4313 nivoCaption.html(title); 4314 nivoCaption.stop().fadeIn(settings.animSpeed); 4315 }, settings.animSpeed); 4316 } 4317 } else { 4318 nivoCaption.stop().fadeOut(settings.animSpeed); 4319 } 4320 }; 4321 4322 //Process initial caption 4323 processCaption(settings); 4324 4325 // In the words of Super Mario "let's a go!" 4326 var timer = 0; 4327 if (!settings.manualAdvance && kids.length > 1) { 4328 timer = setInterval(function () { 4329 nivoRun(slider, kids, settings, false); 4330 }, settings.pauseTime); 4331 } 4332 4333 // Add Direction nav 4334 if (settings.directionNav) { 4335 slider.append('<div class="nivo-directionNav"><a class="nivo-prevNav"><i class="fa fa-arrow-circle-left" aria-hidden="true"></i></a><a class="nivo-nextNav"><i class="fa fa-arrow-circle-right" aria-hidden="true"></i></a></div>'); 4336 4337 $(slider).on('click', 'a.nivo-prevNav', function () { 4338 if (vars.running) { 4339 return false; 4340 } 4341 clearInterval(timer); 4342 timer = ''; 4343 vars.currentSlide -= 2; 4344 nivoRun(slider, kids, settings, 'prev'); 4345 }); 4346 4347 $(slider).on('click', 'a.nivo-nextNav', function () { 4348 if (vars.running) { 4349 return false; 4350 } 4351 clearInterval(timer); 4352 timer = ''; 4353 nivoRun(slider, kids, settings, 'next'); 4354 }); 4355 } 4356 4357 // Add Control nav 4358 if (settings.controlNav) { 4359 vars.controlNavEl = $('<div class="nivo-controlNav"></div>'); 4360 slider.append(vars.controlNavEl); 4361 for (var i = 0; i < kids.length; i++) { 4362 if (settings.controlNavThumbs) { 4363 vars.controlNavEl.addClass('nivo-thumbs-enabled'); 4364 var child = kids.eq(i); 4365 if (!child.is('img')) { 4366 child = child.find('img:first'); 4367 } 4368 if (child.attr('data-thumb')) vars.controlNavEl.append('<a class="nivo-control" rel="' + i + '"><img src="' + child.attr('data-thumb') + '" alt="" /></a>'); 4369 } else { 4370 vars.controlNavEl.append('<a class="nivo-control" rel="' + i + '">' + (i + 1) + '</a>'); 4371 } 4372 } 4373 4374 //Set initial active link 4375 $('a:eq(' + vars.currentSlide + ')', vars.controlNavEl).addClass('active'); 4376 4377 $('a', vars.controlNavEl).bind('click', function () { 4378 if (vars.running) return false; 4379 if ($(this).hasClass('active')) return false; 4380 clearInterval(timer); 4381 timer = ''; 4382 sliderImg.attr('src', vars.currentImage.attr('data-src')); 4383 vars.currentSlide = $(this).attr('rel') - 1; 4384 nivoRun(slider, kids, settings, 'control'); 4385 }); 4386 } 4387 4388 //For pauseOnHover setting 4389 if (settings.pauseOnHover) { 4390 slider.hover(function () { 4391 vars.paused = true; 4392 clearInterval(timer); 4393 timer = ''; 4394 }, function () { 4395 vars.paused = false; 4396 // Restart the timer 4397 if (timer === '' && !settings.manualAdvance) { 4398 timer = setInterval(function () { 4399 nivoRun(slider, kids, settings, false); 4400 }, settings.pauseTime); 4401 } 4402 }); 4403 } 4404 4405 // Event when Animation finishes 4406 slider.bind('nivo:animFinished', function () { 4407 sliderImg.attr('src', vars.currentImage.attr('data-src')); 4408 vars.running = false; 4409 // Hide child links 4410 $(kids).each(function () { 4411 if ($(this).is('a')) { 4412 $(this).css('display', 'none'); 4413 } 4414 }); 4415 // Show current link 4416 if ($(kids[vars.currentSlide]).is('a')) { 4417 $(kids[vars.currentSlide]).css('display', 'block'); 4418 } 4419 // Restart the timer 4420 if (timer === '' && !vars.paused && !settings.manualAdvance) { 4421 timer = setInterval(function () { 4422 nivoRun(slider, kids, settings, false); 4423 }, settings.pauseTime); 4424 } 4425 // Trigger the afterChange callback 4426 settings.afterChange.call(this); 4427 }); 4428 4429 // Add slices for slice animations 4430 var createSlices = function (slider, settings, vars) { 4431 if ($(vars.currentImage).parent().is('a')) $(vars.currentImage).parent().css('display', 'block'); 4432 $('img[src="' + vars.currentImage.attr('data-src') + '"]', slider).not('.nivo-main-image,.nivo-control img').width(slider.width()).css('visibility', 'hidden').show(); 4433 var sliceHeight = $('img[src="' + vars.currentImage.attr('data-src') + '"]', slider).not('.nivo-main-image,.nivo-control img').parent().is('a') ? $('img[src="' + vars.currentImage.attr('data-src') + '"]', slider).not('.nivo-main-image,.nivo-control img').parent().height() : $('img[src="' + vars.currentImage.attr('data-src') + '"]', slider).not('.nivo-main-image,.nivo-control img').height(); 4434 4435 for (var i = 0; i < settings.slices; i++) { 4436 var sliceWidth = Math.round(slider.width() / settings.slices); 4437 4438 if (i === settings.slices - 1) { 4439 slider.append($('<div class="nivo-slice" name="' + i + '"><img src="' + vars.currentImage.attr('data-src') + '" style="position:absolute; width:' + slider.width() + 'px; height:auto; display:block !important; top:0; left:-' + (sliceWidth + i * sliceWidth - sliceWidth) + 'px;" width="' + vars.currentImage.attr('width') + '" height="' + vars.currentImage.attr('height') + '" /></div>').css({ 4440 left: sliceWidth * i + 'px', 4441 width: slider.width() - sliceWidth * i + 'px', 4442 height: sliceHeight + 'px', 4443 opacity: '0', 4444 overflow: 'hidden' 4445 })); 4446 } else { 4447 slider.append($('<div class="nivo-slice" name="' + i + '"><img src="' + vars.currentImage.attr('data-src') + '" style="position:absolute; width:' + slider.width() + 'px; height:auto; display:block !important; top:0; left:-' + (sliceWidth + i * sliceWidth - sliceWidth) + 'px;" width="' + vars.currentImage.attr('width') + '" height="' + vars.currentImage.attr('height') + '" /></div>').css({
4448 left: sliceWidth * i + 'px', 4449 width: sliceWidth + 'px', 4450 height: sliceHeight + 'px', 4451 opacity: '0', 4452 overflow: 'hidden' 4453 })); 4454 } 4455 } 4456 4457 $('.nivo-slice', slider).height(sliceHeight); 4458 sliderImg.stop().animate({ 4459 height: $(vars.currentImage).height() 4460 }, settings.animSpeed); 4461 }; 4462 4463 // Add boxes for box animations 4464 var createBoxes = function (slider, settings, vars) { 4465 if ($(vars.currentImage).parent().is('a')) $(vars.currentImage).parent().css('display', 'block'); 4466 $('img[src="' + vars.currentImage.attr('data-src') + '"]', slider).not('.nivo-main-image,.nivo-control img').width(slider.width()).css('visibility', 'hidden').show(); 4467 var boxWidth = Math.round(slider.width() / settings.boxCols), 4468 boxHeight = Math.round($('img[src="' + vars.currentImage.attr('data-src') + '"]', slider).not('.nivo-main-image,.nivo-control img').height() / settings.boxRows); 4469 4470 for (var rows = 0; rows < settings.boxRows; rows++) { 4471 for (var cols = 0; cols < settings.boxCols; cols++) { 4472 if (cols === settings.boxCols - 1) { 4473 slider.append($('<div class="nivo-box" name="' + cols + '" rel="' + rows + '"><img src="' + vars.currentImage.attr('data-src') + '" style="position:absolute; width:' + slider.width() + 'px; height:auto; display:block; top:-' + boxHeight * rows + 'px; left:-' + boxWidth * cols + 'px;" width="' + vars.currentImage.attr('width') + '" height="' + vars.currentImage.attr('height') + '" /></div>').css({ 4474 opacity: 0, 4475 left: boxWidth * cols + 'px', 4476 top: boxHeight * rows + 'px', 4477 width: slider.width() - boxWidth * cols + 'px' 4478 4479 })); 4480 $('.nivo-box[name="' + cols + '"]', slider).height($('.nivo-box[name="' + cols + '"] img', slider).height() + 'px'); 4481 } else { 4482 slider.append($('<div class="nivo-box" name="' + cols + '" rel="' + rows + '"><img src="' + vars.currentImage.attr('data-src') + '" style="position:absolute; width:' + slider.width() + 'px; height:auto; display:block; top:-' + boxHeight * rows + 'px; left:-' + boxWidth * cols + 'px;" width="' + vars.currentImage.attr('width') + '" height="' + vars.currentImage.attr('height') + '" /></div>').css({ 4483 opacity: 0, 4484 left: boxWidth * cols + 'px', 4485 top: boxHeight * rows + 'px', 4486 width: boxWidth + 'px' 4487 })); 4488 $('.nivo-box[name="' + cols + '"]', slider).height($('.nivo-box[name="' + cols + '"] img', slider).height() + 'px'); 4489 } 4490 } 4491 } 4492 4493 sliderImg.stop().animate({ 4494 height: $(vars.currentImage).height() 4495 }, settings.animSpeed); 4496 }; 4497 4498 // Private run method 4499 var nivoRun = function (slider, kids, settings, nudge) { 4500 // Get our vars 4501 var vars = slider.data('nivo:vars'); 4502 4503 // Trigger the lastSlide callback 4504 if (vars && vars.currentSlide === vars.totalSlides - 1) { 4505 settings.lastSlide.call(this); 4506 } 4507 4508 // Stop 4509 if ((!vars || vars.stop) && !nudge) { 4510 return false; 4511 } 4512 4513 // Trigger the beforeChange callback 4514 settings.beforeChange.call(this); 4515 4516 // Set current background before change 4517 if (!nudge) { 4518 sliderImg.attr('src', vars.currentImage.attr('data-src')); 4519 } else { 4520 if (nudge === 'prev') { 4521 sliderImg.attr('src', vars.currentImage.attr('data-src')); 4522 } 4523 if (nudge === 'next') { 4524 sliderImg.attr('src', vars.currentImage.attr('data-src')); 4525 } 4526 } 4527 4528 vars.currentSlide++; 4529 // Trigger the slideshowEnd callback 4530 if (vars.currentSlide === vars.totalSlides) { 4531 vars.currentSlide = 0; 4532 settings.slideshowEnd.call(this); 4533 }
vendor: 2,491 bytes, lines 4534-4594
4534 if (vars.currentSlide < 0) { 4535 vars.currentSlide = vars.totalSlides - 1; 4536 } 4537 // Set vars.currentImage 4538 if ($(kids[vars.currentSlide]).is('img')) { 4539 vars.currentImage = $(kids[vars.currentSlide]); 4540 } else { 4541 vars.currentImage = $(kids[vars.currentSlide]).find('img:first'); 4542 } 4543 4544 // Set active links 4545 if (settings.controlNav) { 4546 $('a', vars.controlNavEl).removeClass('active'); 4547 $('a:eq(' + vars.currentSlide + ')', vars.controlNavEl).addClass('active'); 4548 } 4549 4550 // Process caption 4551 processCaption(settings); 4552 4553 // Remove any slices from last transition 4554 $('.nivo-slice', slider).remove(); 4555 4556 // Remove any boxes from last transition 4557 $('.nivo-box', slider).remove(); 4558 4559 var currentEffect = settings.effect, 4560 anims = ''; 4561 4562 // Generate random effect 4563 if (settings.effect === 'random') { 4564 anims = new Array('sliceDownRight', 'sliceDownLeft', 'sliceUpRight', 'sliceUpLeft', 'sliceUpDown', 'sliceUpDownLeft', 'fold', 'fade', 'boxRandom', 'boxRain', 'boxRainReverse', 'boxRainGrow', 'boxRainGrowReverse'); 4565 currentEffect = anims[Math.floor(Math.random() * (anims.length + 1))]; 4566 if (currentEffect === undefined) { 4567 currentEffect = 'fade'; 4568 } 4569 } 4570 4571 // Run random effect from specified set (eg: effect:'fold,fade') 4572 if (settings.effect.indexOf(',') !== -1) { 4573 anims = settings.effect.split(','); 4574 currentEffect = anims[Math.floor(Math.random() * anims.length)]; 4575 if (currentEffect === undefined) { 4576 currentEffect = 'fade'; 4577 } 4578 } 4579 4580 // Custom transition as defined by "data-transition" attribute 4581 if (vars.currentImage.attr('data-transition')) { 4582 currentEffect = vars.currentImage.attr('data-transition'); 4583 } 4584 4585 // Run effects 4586 vars.running = true; 4587 var timeBuff = 0, 4588 i = 0, 4589 slices = '', 4590 firstSlice = '', 4591 totalBoxes = '', 4592 boxes = ''; 4593 4594 if (currentEffect === 'sliceDown' || currentEffect === 'sliceDownRight' || currentEffect === 'sliceDownLeft') {
4595 createSlices(slider, settings, vars); 4596 timeBuff = 0; 4597 i = 0; 4598 slices = $('.nivo-slice', slider); 4599 if (currentEffect === 'sliceDownLeft') { 4600 slices = $('.nivo-slice', slider)._reverse(); 4601 } 4602 4603 slices.each(function () { 4604 var slice = $(this); 4605 slice.css({ 'top': '0px' }); 4606 if (i === settings.slices - 1) { 4607 setTimeout(function () { 4608 slice.animate({ opacity: '1.0' }, settings.animSpeed, '', function () { 4609 slider.trigger('nivo:animFinished'); 4610 }); 4611 }, 100 + timeBuff); 4612 } else { 4613 setTimeout(function () { 4614 slice.animate({ opacity: '1.0' }, settings.animSpeed); 4615 }, 100 + timeBuff); 4616 } 4617 timeBuff += 50; 4618 i++; 4619 }); 4620 } else if (currentEffect === 'sliceUp' || currentEffect === 'sliceUpRight' || currentEffect === 'sliceUpLeft') {
4621 createSlices(slider, settings, vars); 4622 timeBuff = 0; 4623 i = 0; 4624 slices = $('.nivo-slice', slider); 4625 if (currentEffect === 'sliceUpLeft') { 4626 slices = $('.nivo-slice', slider)._reverse(); 4627 } 4628 4629 slices.each(function () { 4630 var slice = $(this); 4631 slice.css({ 'bottom': '0px' }); 4632 if (i === settings.slices - 1) { 4633 setTimeout(function () { 4634 slice.animate({ opacity: '1.0' }, settings.animSpeed, '', function () { 4635 slider.trigger('nivo:animFinished'); 4636 }); 4637 }, 100 + timeBuff); 4638 } else { 4639 setTimeout(function () { 4640 slice.animate({ opacity: '1.0' }, settings.animSpeed); 4641 }, 100 + timeBuff); 4642 } 4643 timeBuff += 50; 4644 i++; 4645 }); 4646 } else if (currentEffect === 'sliceUpDown' || currentEffect === 'sliceUpDownRight' || currentEffect === 'sliceUpDownLeft') {
vendor: 1,366 bytes, lines 4647-4680
4647 createSlices(slider, settings, vars); 4648 timeBuff = 0; 4649 i = 0; 4650 var v = 0; 4651 slices = $('.nivo-slice', slider); 4652 if (currentEffect === 'sliceUpDownLeft') { 4653 slices = $('.nivo-slice', slider)._reverse(); 4654 } 4655 4656 slices.each(function () { 4657 var slice = $(this); 4658 if (i === 0) { 4659 slice.css('top', '0px'); 4660 i++; 4661 } else { 4662 slice.css('bottom', '0px'); 4663 i = 0; 4664 } 4665 4666 if (v === settings.slices - 1) { 4667 setTimeout(function () { 4668 slice.animate({ opacity: '1.0' }, settings.animSpeed, '', function () { 4669 slider.trigger('nivo:animFinished'); 4670 }); 4671 }, 100 + timeBuff); 4672 } else { 4673 setTimeout(function () { 4674 slice.animate({ opacity: '1.0' }, settings.animSpeed); 4675 }, 100 + timeBuff); 4676 } 4677 timeBuff += 50; 4678 v++; 4679 }); 4680 } else if (currentEffect === 'fold') {
4681 createSlices(slider, settings, vars); 4682 timeBuff = 0; 4683 i = 0; 4684 4685 $('.nivo-slice', slider).each(function () { 4686 var slice = $(this); 4687 var origWidth = slice.width(); 4688 slice.css({ top: '0px', width: '0px' }); 4689 if (i === settings.slices - 1) { 4690 setTimeout(function () { 4691 slice.animate({ width: origWidth, opacity: '1.0' }, settings.animSpeed, '', function () { 4692 slider.trigger('nivo:animFinished'); 4693 }); 4694 }, 100 + timeBuff); 4695 } else { 4696 setTimeout(function () { 4697 slice.animate({ width: origWidth, opacity: '1.0' }, settings.animSpeed); 4698 }, 100 + timeBuff); 4699 } 4700 timeBuff += 50; 4701 i++; 4702 }); 4703 } else if (currentEffect === 'fade') {
vendor: 7,916 bytes, lines 4704-4907
4704 createSlices(slider, settings, vars); 4705 4706 firstSlice = $('.nivo-slice:first', slider); 4707 firstSlice.css({ 4708 'width': slider.width() + 'px' 4709 }); 4710 4711 firstSlice.animate({ opacity: '1.0' }, settings.animSpeed * 2, '', function () { 4712 slider.trigger('nivo:animFinished'); 4713 }); 4714 } else if (currentEffect === 'slideInRight') { 4715 createSlices(slider, settings, vars); 4716 4717 firstSlice = $('.nivo-slice:first', slider); 4718 firstSlice.css({ 4719 'width': '0px', 4720 'opacity': '1' 4721 }); 4722 4723 firstSlice.animate({ width: slider.width() + 'px' }, settings.animSpeed * 2, '', function () { 4724 slider.trigger('nivo:animFinished'); 4725 }); 4726 } else if (currentEffect === 'slideInLeft') { 4727 createSlices(slider, settings, vars); 4728 4729 firstSlice = $('.nivo-slice:first', slider); 4730 firstSlice.css({ 4731 'width': '0px', 4732 'opacity': '1', 4733 'left': '', 4734 'right': '0px' 4735 }); 4736 4737 firstSlice.animate({ width: slider.width() + 'px' }, settings.animSpeed * 2, '', function () { 4738 // Reset positioning 4739 firstSlice.css({ 4740 'left': '0px', 4741 'right': '' 4742 }); 4743 slider.trigger('nivo:animFinished'); 4744 }); 4745 } else if (currentEffect === 'boxRandom') { 4746 createBoxes(slider, settings, vars); 4747 4748 totalBoxes = settings.boxCols * settings.boxRows; 4749 i = 0; 4750 timeBuff = 0; 4751 4752 boxes = shuffle($('.nivo-box', slider)); 4753 boxes.each(function () { 4754 var box = $(this); 4755 if (i === totalBoxes - 1) { 4756 setTimeout(function () { 4757 box.animate({ opacity: '1' }, settings.animSpeed, '', function () { 4758 slider.trigger('nivo:animFinished'); 4759 }); 4760 }, 100 + timeBuff); 4761 } else { 4762 setTimeout(function () { 4763 box.animate({ opacity: '1' }, settings.animSpeed); 4764 }, 100 + timeBuff); 4765 } 4766 timeBuff += 20; 4767 i++; 4768 }); 4769 } else if (currentEffect === 'boxRain' || currentEffect === 'boxRainReverse' || currentEffect === 'boxRainGrow' || currentEffect === 'boxRainGrowReverse') { 4770 createBoxes(slider, settings, vars); 4771 4772 totalBoxes = settings.boxCols * settings.boxRows; 4773 i = 0; 4774 timeBuff = 0; 4775 4776 // Split boxes into 2D array 4777 var rowIndex = 0; 4778 var colIndex = 0; 4779 var box2Darr = []; 4780 box2Darr[rowIndex] = []; 4781 boxes = $('.nivo-box', slider); 4782 if (currentEffect === 'boxRainReverse' || currentEffect === 'boxRainGrowReverse') { 4783 boxes = $('.nivo-box', slider)._reverse(); 4784 } 4785 boxes.each(function () { 4786 box2Darr[rowIndex][colIndex] = $(this); 4787 colIndex++; 4788 if (colIndex === settings.boxCols) { 4789 rowIndex++; 4790 colIndex = 0; 4791 box2Darr[rowIndex] = []; 4792 } 4793 }); 4794 4795 // Run animation 4796 for (var cols = 0; cols < settings.boxCols * 2; cols++) { 4797 var prevCol = cols; 4798 for (var rows = 0; rows < settings.boxRows; rows++) { 4799 if (prevCol >= 0 && prevCol < settings.boxCols) { 4800 /* Due to some weird JS bug with loop vars 4801 being used in setTimeout, this is wrapped 4802 with an anonymous function call */ 4803 (function (row, col, time, i, totalBoxes) { 4804 var box = $(box2Darr[row][col]); 4805 var w = box.width(); 4806 var h = box.height(); 4807 if (currentEffect === 'boxRainGrow' || currentEffect === 'boxRainGrowReverse') { 4808 box.width(0).height(0); 4809 } 4810 if (i === totalBoxes - 1) { 4811 setTimeout(function () { 4812 box.animate({ opacity: '1', width: w, height: h }, settings.animSpeed / 1.3, '', function () { 4813 slider.trigger('nivo:animFinished'); 4814 }); 4815 }, 100 + time); 4816 } else { 4817 setTimeout(function () { 4818 box.animate({ opacity: '1', width: w, height: h }, settings.animSpeed / 1.3); 4819 }, 100 + time); 4820 } 4821 })(rows, prevCol, timeBuff, i, totalBoxes); 4822 i++; 4823 } 4824 prevCol--; 4825 } 4826 timeBuff += 100; 4827 } 4828 } 4829 }; 4830 4831 // Shuffle an array 4832 var shuffle = function (arr) { 4833 for (var j, x, i = arr.length; i; j = parseInt(Math.random() * i, 10), x = arr[--i], arr[i] = arr[j], arr[j] = x); 4834 return arr; 4835 }; 4836 4837 // For debugging 4838 var trace = function (msg) { 4839 if (this.console && typeof console.log !== 'undefined') { 4840 console.log(msg); 4841 } 4842 }; 4843 4844 // Start / Stop 4845 this.stop = function () { 4846 if (!$(element).data('nivo:vars').stop) { 4847 $(element).data('nivo:vars').stop = true; 4848 trace('Stop Slider'); 4849 } 4850 }; 4851 4852 this.start = function () { 4853 if ($(element).data('nivo:vars').stop) { 4854 $(element).data('nivo:vars').stop = false; 4855 trace('Start Slider'); 4856 } 4857 }; 4858 4859 // Trigger the afterLoad callback 4860 settings.afterLoad.call(this); 4861 4862 return this; 4863 }; 4864 4865 $.fn.nivoSlider = function (options) { 4866 return this.each(function (key, value) { 4867 var element = $(this); 4868 // Return early if this element already has a plugin instance 4869 if (element.data('nivoslider')) { 4870 return element.data('nivoslider'); 4871 } 4872 // Pass options to plugin constructor 4873 var nivoslider = new NivoSlider(this, options); 4874 // Store plugin object in this element's data 4875 element.data('nivoslider', nivoslider); 4876 }); 4877 }; 4878 4879 //Default settings 4880 $.fn.nivoSlider.defaults = { 4881 effect: 'random', 4882 slices: 15, 4883 boxCols: 8, 4884 boxRows: 4, 4885 animSpeed: 500, 4886 pauseTime: 3000, 4887 startSlide: 0, 4888 directionNav: true, 4889 controlNav: true, 4890 controlNavThumbs: false, 4891 pauseOnHover: true, 4892 manualAdvance: false, 4893 prevText: 'Prev', 4894 nextText: 'Next', 4895 randomStart: false, 4896 beforeChange: function () {}, 4897 afterChange: function () {}, 4898 slideshowEnd: function () {}, 4899 lastSlide: function () {}, 4900 afterLoad: function () {} 4901 }; 4902 4903 $.fn._reverse = [].reverse; 4904})(jQuery); 4905 4906/***/ }), 4907
4908/***/ "./js/lib/jquery.scrollbox.min.js": 4909/*!****************************************!*\ 4910 !*** ./js/lib/jquery.scrollbox.min.js ***! 4911 \****************************************/ 4912/*! no static exports found */ 4913/***/ (function(module, exports) { 4914 4915(function ($) { 4916 $.fn.scrollbox = function (config) { 4917 var defConfig = { linear: false, startDelay: 2, delay: 3, step: 5, speed: 32, switchItems: 1, direction: "vertical", distance: "auto", autoPlay: true, onMouseOverPause: true, paused: false, queue: null, listElement: "ul", listItemElement: "li", infiniteLoop: true, switchAmount: 0, afterForward: null, afterBackward: null, triggerStackable: false };config = $.extend(defConfig, config);config.scrollOffset = config.direction === "vertical" ? "scrollTop" : "scrollLeft";if (config.queue) { 4918 config.queue = $("#" + config.queue); 4919 }return this.each(function () { 4920 var container = $(this), 4921 containerUL, 4922 scrollingId = null, 4923 nextScrollId = null, 4924 paused = false, 4925 releaseStack, 4926 backward, 4927 forward, 4928 resetClock, 4929 scrollForward, 4930 scrollBackward, 4931 forwardHover, 4932 pauseHover, 4933 switchCount = 0, 4934 stackedTriggerIndex = 0;if (config.onMouseOverPause) { 4935 container.bind("mouseover", function () { 4936 paused = true; 4937 });container.bind("mouseout", function () { 4938 paused = false; 4939 }); 4940 }containerUL = container.children(config.listElement + ":first-child");if (config.infiniteLoop === false && config.switchAmount === 0) { 4941 config.switchAmount = containerUL.children().length; 4942 }scrollForward = function () { 4943 if (paused) { 4944 return; 4945 }var curLi, i, newScrollOffset, scrollDistance, theStep;curLi = containerUL.children(config.listItemElement + ":first-child");scrollDistance = config.distance !== "auto" ? config.distance : config.direction === "vertical" ? curLi.outerHeight(true) : curLi.outerWidth(true);if (!config.linear) { 4946 theStep = Math.max(3, parseInt((scrollDistance - container[0][config.scrollOffset]) * .3, 10));newScrollOffset = Math.min(container[0][config.scrollOffset] + theStep, scrollDistance); 4947 } else { 4948 newScrollOffset = Math.min(container[0][config.scrollOffset] + config.step, scrollDistance); 4949 }container[0][config.scrollOffset] = newScrollOffset;if (newScrollOffset >= scrollDistance) { 4950 for (i = 0; i < config.switchItems; i++) { 4951 if (config.queue && config.queue.find(config.listItemElement).length > 0) { 4952 containerUL.append(config.queue.find(config.listItemElement)[0]);containerUL.children(config.listItemElement + ":first-child").remove(); 4953 } else { 4954 containerUL.append(containerUL.children(config.listItemElement + ":first-child")); 4955 }++switchCount; 4956 }container[0][config.scrollOffset] = 0;clearInterval(scrollingId);scrollingId = null;if ($.isFunction(config.afterForward)) { 4957 config.afterForward.call(container, { switchCount: switchCount, currentFirstChild: containerUL.children(config.listItemElement + ":first-child") }); 4958 }if (config.triggerStackable && stackedTriggerIndex !== 0) { 4959 releaseStack();return; 4960 }if (config.infiniteLoop === false && switchCount >= config.switchAmount) { 4961 return; 4962 }if (config.autoPlay) { 4963 nextScrollId = setTimeout(forward, config.delay * 1e3); 4964 } 4965 } 4966 };scrollBackward = function () { 4967 if (paused) { 4968 return; 4969 }var curLi, i, newScrollOffset, scrollDistance, theStep;if (container[0][config.scrollOffset] === 0) { 4970 for (i = 0; i < config.switchItems; i++) { 4971 containerUL.children(config.listItemElement + ":last-child").insertBefore(containerUL.children(config.listItemElement + ":first-child")); 4972 }curLi = containerUL.children(config.listItemElement + ":first-child");scrollDistance = config.distance !== "auto" ? config.distance : config.direction === "vertical" ? curLi.height() : curLi.width();container[0][config.scrollOffset] = scrollDistance; 4973 }if (!config.linear) { 4974 theStep = Math.max(3, parseInt(container[0][config.scrollOffset] * .3, 10));newScrollOffset = Math.max(container[0][config.scrollOffset] - theStep, 0); 4975 } else { 4976 newScrollOffset = Math.max(container[0][config.scrollOffset] - config.step, 0); 4977 }container[0][config.scrollOffset] = newScrollOffset;if (newScrollOffset === 0) { 4978 --switchCount;clearInterval(scrollingId);scrollingId = null;if ($.isFunction(config.afterBackward)) { 4979 config.afterBackward.call(container, { switchCount: switchCount, currentFirstChild: containerUL.children(config.listItemElement + ":first-child") }); 4980 }if (config.triggerStackable && stackedTriggerIndex !== 0) { 4981 releaseStack();return; 4982 }if (config.autoPlay) { 4983 nextScrollId = setTimeout(forward, config.delay * 1e3); 4984 } 4985 } 4986 };releaseStack = function () { 4987 if (stackedTriggerIndex === 0) { 4988 return; 4989 }if (stackedTriggerIndex > 0) { 4990 stackedTriggerIndex--;nextScrollId = setTimeout(forward, 0); 4991 } else { 4992 stackedTriggerIndex++;nextScrollId = setTimeout(backward, 0); 4993 } 4994 };forward = function () { 4995 clearInterval(scrollingId);scrollingId = setInterval(scrollForward, config.speed); 4996 };backward = function () { 4997 clearInterval(scrollingId);scrollingId = setInterval(scrollBackward, config.speed); 4998 };forwardHover = function () { 4999 config.autoPlay = true;paused = false;clearInterval(scrollingId);scrollingId = setInterval(scrollForward, config.speed); 5000 };pauseHover = function () { 5001 paused = true; 5002 };resetClock = function (delay) { 5003 config.delay = delay || config.delay;clearTimeout(nextScrollId);if (config.autoPlay) { 5004 nextScrollId = setTimeout(forward, config.delay * 1e3); 5005 } 5006 };if (config.autoPlay) { 5007 nextScrollId = setTimeout(forward, config.startDelay * 1e3); 5008 }container.bind("resetClock", function (delay) { 5009 resetClock(delay); 5010 });container.bind("forward", function () { 5011 if (config.triggerStackable) { 5012 if (scrollingId !== null) { 5013 stackedTriggerIndex++; 5014 } else { 5015 forward(); 5016 } 5017 } else { 5018 clearTimeout(nextScrollId);forward(); 5019 } 5020 });container.bind("backward", function () { 5021 if (config.triggerStackable) { 5022 if (scrollingId !== null) { 5023 stackedTriggerIndex--; 5024 } else { 5025 backward(); 5026 } 5027 } else { 5028 clearTimeout(nextScrollId);backward(); 5029 } 5030 });container.bind("pauseHover", function () { 5031 pauseHover(); 5032 });container.bind("forwardHover", function () { 5033 forwardHover(); 5034 });container.bind("speedUp", function (event, speed) { 5035 if (speed === "undefined") { 5036 speed = Math.max(1, parseInt(config.speed / 2, 10)); 5037 }config.speed = speed; 5038 });container.bind("speedDown", function (event, speed) { 5039 if (speed === "undefined") { 5040 speed = config.speed * 2; 5041 }config.speed = speed; 5042 });container.bind("updateConfig", function (event, options) { 5043 config = $.extend(config, options); 5044 }); 5045 }); 5046 }; 5047})(jQuery); 5048 5049/***/ }), 5050
5051/***/ "./js/lib/jquery.smooth-scroll.min.js": 5052/*!********************************************!*\ 5053 !*** ./js/lib/jquery.smooth-scroll.min.js ***! 5054 \********************************************/ 5055/*! no static exports found */ 5056/***/ (function(module, exports, __webpack_require__) { 5057 5058var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! 5059 * jQuery Smooth Scroll - v2.1.2 - 2017-01-19 5060 * https://github.com/kswedberg/jquery-smooth-scroll 5061 * Copyright (c) 2017 Karl Swedberg 5062 * Licensed MIT 5063 */ 5064 5065!function (a) { 5066 true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! jquery */ "jquery")], __WEBPACK_AMD_DEFINE_FACTORY__ = (a), 5067 __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? 5068 (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), 5069 __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined; 5070}(function (a) { 5071 var b = "2.1.2", 5072 c = {}, 5073 d = { exclude: [], excludeWithin: [], offset: 0, direction: "top", delegateSelector: null, scrollElement: null, scrollTarget: null, beforeScroll: function () {}, afterScroll: function () {}, easing: "swing", speed: 400, autoCoefficient: 2, preventDefault: !0 }, 5074 e = function (b) { 5075 var c = [], 5076 d = !1, 5077 e = b.dir && "left" === b.dir ? "scrollLeft" : "scrollTop";return this.each(function () { 5078 var b = a(this);if (this !== document && this !== window) return !document.scrollingElement || this !== document.documentElement && this !== document.body ? void (b[e]() > 0 ? c.push(this) : (b[e](1), d = b[e]() > 0, d && c.push(this), b[e](0))) : (c.push(document.scrollingElement), !1); 5079 }), c.length || this.each(function () { 5080 this === document.documentElement && "smooth" === a(this).css("scrollBehavior") && (c = [this]), c.length || "BODY"
5080!== this.nodeName || (c = [this]); 5081 }), "first" === b.el && c.length > 1 && (c = [c[0]]), c; 5082 }, 5083 f = /^([\-\+]=)(\d+)/;a.fn.extend({ scrollable: function (a) { 5084 var b = e.call(this, { dir: a });return this.pushStack(b); 5085 }, firstScrollable: function (a) { 5086 var b = e.call(this, { el: "first", dir: a });return this.pushStack(b); 5087 }, smoothScroll: function (b, c) { 5088 if (b = b || {}, "options" === b) return c ? this.each(function () { 5089 var b = a(this), 5090 d = a.extend(b.data("ssOpts") || {}, c);a(this).data("ssOpts", d); 5091 }) : this.first().data("ssOpts");var d = a.extend({}, a.fn.smoothScroll.defaults, b), 5092 e = function (b) { 5093 var c = function (a) { 5094 return a.replace(/(:|\.|\/)/g, "\\$1"); 5095 }, 5096 e = this, 5097 f = a(this), 5098 g = a.extend({}, d, f.data("ssOpts") || {}), 5099 h = d.exclude, 5100 i = g.excludeWithin, 5101 j = 0, 5102 k = 0, 5103 l = !0, 5104 m = {}, 5105 n = a.smoothScroll.filterPath(location.pathname), 5106 o = a.smoothScroll.filterPath(e.pathname), 5107 p = location.hostname === e.hostname || !e.hostname, 5108 q = g.scrollTarget || o === n, 5109 r = c(e.hash);if (r && !a(r).length && (l = !1), g.scrollTarget || p && q && r) { 5110 for (; l && j < h.length;) f.is(c(h[j++])) && (l = !1);for (; l && k < i.length;) f.closest(i[k++]).length && (l = !1); 5111 } else l = !1;l && (g.preventDefault && b.preventDefault(), a.extend(m, g, { scrollTarget: g.scrollTarget || r, link: e }), a.smoothScroll(m)); 5112 };return null !== b.delegateSelector ? this.off("click.smoothscroll", b.delegateSelector).on("click.smoothscroll", b.delegateSelector, e) : this.off("click.smoothscroll").on("click.smoothscroll", e), this; 5113 } });var g = function (a) { 5114 var b = { relative: "" }, 5115 c = "string" == typeof a && f.exec(a);return "number" == typeof a ? b.px = a : c && (b.relative = c[1], b.px = parseFloat(c[2]) || 0), b; 5116 };a.smoothScroll = function (b, d) { 5117 if ("options" === b && "object" == typeof d) return a.extend(c, d);var e, 5118 f, 5119 h, 5120 i, 5121 j = g(b), 5122 k = {}, 5123 l = 0, 5124 m = "offset", 5125 n = "scrollTop", 5126 o = {}, 5127 p = {};j.px ? e = a.extend({ link: null }, a.fn.smoothScroll.defaults, c) : (e = a.extend({ link: null }, a.fn.smoothScroll.defaults, b || {}, c), e.scrollElement && (m = "position", "static" === e.scrollElement.css("position") && e.scrollElement.css("position", "relative")), d && (j = g(d))), n = "left" === e.direction ? "scrollLeft" : n, e.scrollElement ? (f = e.scrollElement, j.px || /^(?:HTML|BODY)$/.test(f[0].nodeName) || (l = f[n]())) : f = a("html, body").firstScrollable(e.direction), e.beforeScroll.call(f, e), k = j.px ? j : { relative: "", px: a(e.scrollTarget)[m]() && a(e.scrollTarget)[m]()[e.direction] || 0 }, o[n] = k.relative + (k.px + l + e.offset), h = e.speed, "auto" === h && (i = Math.abs(o[n] - f[n]()), h = i / e.autoCoefficient), p = { duration: h, easing: e.easing, complete: function () { 5128 e.afterScroll.call(e.link, e); 5129 } }, e.step && (p.step = e.step), f.length ? f.stop().animate(o, p) : e.afterScroll.call(e.link, e); 5130 }, a.smoothScroll.version = b, a.smoothScroll.filterPath = function (a) { 5131 return a = a || "", a.replace(/^\//, "").replace(/(?:index|default).[a-zA-Z]{3,4}$/, "").replace(/\/$/, ""); 5132 }, a.fn.smoothScroll.defaults = d; 5133}); 5134 5135/***/ }), 5136
5137/***/ "./js/lib/jquery.sticky.js": 5138/*!*********************************!*\ 5139 !*** ./js/lib/jquery.sticky.js ***! 5140 \*********************************/ 5141/*! no static exports found */ 5142/***/ (function(module, exports, __webpack_require__) { 5143 5144var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Sticky Plugin v1.0.4 for jQuery 5145// ============= 5146// Author: Anthony Garand 5147// Improvements by German M. Bravo (Kronuz) and Ruud Kamphuis (ruudk) 5148// Improvements by Leonardo C. Daronco (daronco) 5149// Created: 02/14/2011 5150// Date: 07/20/2015 5151// Website: http://stickyjs.com/ 5152// Description: Makes an element on the page stick on the screen as you scroll 5153// It will only set the 'top' and 'position' of your element, you 5154// might need to adjust the width in some cases. 5155 5156(function (factory) { 5157 if (true) { 5158 // AMD. Register as an anonymous module. 5159 !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! jquery */ "jquery")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), 5160 __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? 5161 (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), 5162 __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); 5163 } else {} 5164})(function ($) { 5165 var slice = Array.prototype.slice; // save ref to original slice() 5166 var splice = Array.prototype.splice; // save ref to original slice() 5167 5168 var defaults = { 5169 topSpacing: 0, 5170 bottomSpacing: 0, 5171 className: 'is-sticky', 5172 wrapperClassName: 'sticky-wrapper', 5173 center: false, 5174 getWidthFrom: '', 5175 widthFromWrapper: true, // works only when .getWidthFrom is empty 5176 responsiveWidth: false, 5177 zIndex: 'auto' 5178 }, 5179 $window = $(window), 5180 $document = $(document), 5181 sticked = [], 5182 windowHeight = $window.height(), 5183 scroller = function () { 5184 var scrollTop = $window.scrollTop(), 5185 documentHeight = $document.height(), 5186 dwh = documentHeight - windowHeight, 5187 extra = scrollTop > dwh ? dwh - scrollTop : 0; 5188 5189 for (var i = 0, l = sticked.length; i < l; i++) { 5190 var s = sticked[i], 5191 elementTop = s.stickyWrapper.offset().top, 5192 etse = elementTop - s.topSpacing - extra; 5193 5194 //update height in case of dynamic content 5195 s.stickyWrapper.css('height', s.stickyElement.outerHeight()); 5196 5197 if (scrollTop <= etse) { 5198 if (s.currentTop !== null) { 5199 s.stickyElement.css({ 5200 'width': '', 5201 'position': '', 5202 'top': '' 5203 }); 5204 5205 //webapic 5206 $('.search-widget').removeClass('sticky'); 5207 5208 s.stickyElement.parent().removeClass(s.className); 5209 s.stickyElement.trigger('sticky-end', [s]); 5210 s.currentTop = null; 5211 } 5212 } else { 5213 var newTop = documentHeight - s.stickyElement.outerHeight() - s.topSpacing - s.bottomSpacing - scrollTop - extra; 5214 if (newTop < 0) { 5215 newTop = newTop + s.topSpacing; 5216 } else { 5217 newTop = s.topSpacing; 5218 } 5219 if (s.currentTop !== newTop) { 5220 var newWidth; 5221 if (s.getWidthFrom) { 5222 newWidth = $(s.getWidthFrom).width() || null; 5223 } else if (s.widthFromWrapper) { 5224 newWidth = s.stickyWrapper.width(); 5225 } 5226 if (newWidth == null) { 5227 newWidth = s.stickyElement.width(); 5228 } 5229 s.stickyElement.css('width', newWidth).css('position', 'fixed').css('top', newTop); 5230 5231 s.stickyElement.parent().addClass(s.className); 5232 5233 if (s.currentTop === null) { 5234 s.stickyElement.trigger('sticky-start', [s]); 5235 } else { 5236 // sticky is started but it have to be repositioned 5237 s.stickyElement.trigger('sticky-update', [s]); 5238 } 5239 5240 if (s.currentTop === s.topSpacing && s.currentTop > newTop || s.currentTop === null && newTop < s.topSpacing) { 5241 // just reached bottom || just started to stick but bottom is already reached 5242 s.stickyElement.trigger('sticky-bottom-reached', [s]); 5243 } else if (s.currentTop !== null && newTop === s.topSpacing && s.currentTop < newTop) { 5244 // sticky is started && sticked at topSpacing && overflowing from top just finished 5245 s.stickyElement.trigger('sticky-bottom-unreached', [s]); 5246 } 5247 5248 s.currentTop = newTop; 5249 } 5250 5251 // Check if sticky has reached end of container and stop sticking 5252 var stickyWrapperContainer = s.stickyWrapper.parent(); 5253 var unstick = s.stickyElement.offset().top + s.stickyElement.outerHeight() >= stickyWrapperContainer.offset().top + stickyWrapperContainer.outerHeight() && s.stickyElement.offset().top <= s.topSpacing; 5254 5255 if (unstick) { 5256 s.stickyElement.css('position', 'absolute').css('top', '').css('bottom', 0); 5257 } else { 5258 s.stickyElement.css('position', 'fixed').css('top', newTop).css('bottom', ''); 5259 } 5260 } 5261 } 5262 }, 5263 resizer = function () { 5264 windowHeight = $window.height(); 5265 5266 for (var i = 0, l = sticked.length; i < l; i++) { 5267 var s = sticked[i]; 5268 var newWidth = null; 5269 if (s.getWidthFrom) { 5270 if (s.responsiveWidth) { 5271 newWidth = $(s.getWidthFrom).width(); 5272 } 5273 } else if (s.widthFromWrapper) { 5274 newWidth = s.stickyWrapper.width(); 5275 } 5276 if (newWidth != null) { 5277 s.stickyElement.css('width', newWidth); 5278 } 5279 } 5280 }, 5281 methods = { 5282 init: function (options) { 5283 return this.each(function () { 5284 var o = $.extend({}, defaults, options); 5285 var stickyElement = $(this); 5286 5287 var stickyId = stickyElement.attr('id'); 5288 var wrapperId = stickyId ? stickyId + '-' + defaults.wrapperClassName : defaults.wrapperClassName;
5289 var wrapper = $('<div></div>').attr('id', wrapperId).addClass(o.wrapperClassName); 5290 5291 stickyElement.wrapAll(function () { 5292 if ($(this).parent("#" + wrapperId).length == 0) { 5293 return wrapper; 5294 } 5295 }); 5296 5297 var stickyWrapper = stickyElement.parent(); 5298 5299 if (o.center) { 5300 stickyWrapper.css({ width: stickyElement.outerWidth(), marginLeft: "auto", marginRight: "auto" }); 5301 } 5302 5303 if (stickyElement.css("float") === "right") { 5304 stickyElement.css({ "float": "none" }).parent().css({ "float": "right" }); 5305 } 5306 5307 o.stickyElement = stickyElement; 5308 o.stickyWrapper = stickyWrapper; 5309 o.currentTop = null; 5310 5311 sticked.push(o); 5312 5313 methods.setWrapperHeight(this); 5314 methods.setupChangeListeners(this); 5315 }); 5316 }, 5317 5318 setWrapperHeight: function (stickyElement) { 5319 var element = $(stickyElement); 5320 var stickyWrapper = element.parent(); 5321 if (stickyWrapper) { 5322 stickyWrapper.css('height', element.outerHeight()); 5323 } 5324 }, 5325 5326 setupChangeListeners: function (stickyElement) { 5327 if (window.MutationObserver) { 5328 var mutationObserver = new window.MutationObserver(function (mutations) { 5329 if (mutations[0].addedNodes.length || mutations[0].removedNodes.length) { 5330 methods.setWrapperHeight(stickyElement); 5331 } 5332 }); 5333 mutationObserver.observe(stickyElement, { subtree: true, childList: true }); 5334 } else { 5335 if (window.addEventListener) { 5336 stickyElement.addEventListener('DOMNodeInserted', function () { 5337 methods.setWrapperHeight(stickyElement); 5338 }, false); 5339 stickyElement.addEventListener('DOMNodeRemoved', function () { 5340 methods.setWrapperHeight(stickyElement); 5341 }, false); 5342 } else if (window.attachEvent) { 5343 stickyElement.attachEvent('onDOMNodeInserted', function () { 5344 methods.setWrapperHeight(stickyElement); 5345 }); 5346 stickyElement.attachEvent('onDOMNodeRemoved', function () { 5347 methods.setWrapperHeight(stickyElement); 5348 }); 5349 } 5350 } 5351 }, 5352 update: scroller, 5353 unstick: function (options) { 5354 return this.each(function () { 5355 var that = this; 5356 var unstickyElement = $(that); 5357 5358 var removeIdx = -1; 5359 var i = sticked.length; 5360 while (i-- > 0) { 5361 if (sticked[i].stickyElement.get(0) === that) { 5362 splice.call(sticked, i, 1); 5363 removeIdx = i; 5364 } 5365 } 5366 if (removeIdx !== -1) { 5367 unstickyElement.unwrap(); 5368 unstickyElement.css({ 5369 'width': '', 5370 'position': '', 5371 'top': '', 5372 'float': '' 5373 }); 5374 } 5375 }); 5376 } 5377 }; 5378 5379 // should be more efficient than using $window.scroll(scroller) and $window.resize(resizer): 5380 if (window.addEventListener) { 5381 window.addEventListener('scroll', scroller, false); 5382 window.addEventListener('resize', resizer, false); 5383 } else if (window.attachEvent) { 5384 window.attachEvent('onscroll', scroller); 5385 window.attachEvent('onresize', resizer); 5386 } 5387 5388 $.fn.sticky = function (method) { 5389 if (methods[method]) { 5390 return methods[method].apply(this, slice.call(arguments, 1)); 5391 } else if (typeof method === 'object' || !method) { 5392 return methods.init.apply(this, arguments); 5393 } else { 5394 $.error('Method ' + method + ' does not exist on jQuery.sticky'); 5395 } 5396 }; 5397 5398 $.fn.unstick = function (method) { 5399 if (methods[method]) { 5400 return methods[method].apply(this, slice.call(arguments, 1)); 5401 } else if (typeof method === 'object' || !method) { 5402 return methods.unstick.apply(this, arguments); 5403 } else { 5404 $.error('Method ' + method + ' does not exist on jQuery.sticky'); 5405 } 5406 }; 5407 $(function () { 5408 setTimeout(scroller, 0); 5409 }); 5410}); 5411 5412/***/ }), 5413
vendor: 23,962 bytes, lines 5414-6296
5414/***/ "./js/lib/pace.js": 5415/*!************************!*\ 5416 !*** ./js/lib/pace.js ***! 5417 \************************/ 5418/*! no static exports found */ 5419/***/ (function(module, exports) { 5420 5421(function () { 5422 var AjaxMonitor, 5423 Bar, 5424 DocumentMonitor, 5425 ElementMonitor, 5426 ElementTracker, 5427 EventLagMonitor, 5428 Evented, 5429 Events, 5430 NoTargetError, 5431 Pace, 5432 RequestIntercept, 5433 SOURCE_KEYS, 5434 Scaler, 5435 SocketRequestTracker, 5436 XHRRequestTracker, 5437 animation, 5438 avgAmplitude, 5439 bar, 5440 cancelAnimation, 5441 cancelAnimationFrame, 5442 defaultOptions, 5443 extend, 5444 extendNative, 5445 getFromDOM, 5446 getIntercept, 5447 handlePushState, 5448 ignoreStack, 5449 init, 5450 now, 5451 options, 5452 requestAnimationFrame, 5453 result, 5454 runAnimation, 5455 scalers, 5456 shouldIgnoreURL, 5457 shouldTrack, 5458 source, 5459 sources, 5460 uniScaler, 5461 _WebSocket, 5462 _XDomainRequest, 5463 _XMLHttpRequest, 5464 _i, 5465 _intercept, 5466 _len, 5467 _pushState, 5468 _ref, 5469 _ref1, 5470 _replaceState, 5471 __slice = [].slice, 5472 __hasProp = {}.hasOwnProperty, 5473 __extends = function (child, parent) { 5474 for (var key in parent) { 5475 if (__hasProp.call(parent, key)) child[key] = parent[key]; 5476 }function ctor() { 5477 this.constructor = child; 5478 }ctor.prototype = parent.prototype;child.prototype = new ctor();child.__super__ = parent.prototype;return child; 5479 }, 5480 __indexOf = [].indexOf || function (item) { 5481 for (var i = 0, l = this.length; i < l; i++) { 5482 if (i in this && this[i] === item) return i; 5483 }return -1; 5484 }; 5485 5486 defaultOptions = { 5487 catchupTime: 100, 5488 initialRate: .03, 5489 minTime: 250, 5490 ghostTime: 100, 5491 maxProgressPerFrame: 20, 5492 easeFactor: 1.25, 5493 startOnPageLoad: false, 5494 restartOnPushState: false, 5495 restartOnRequestAfter: false, 5496 target: 'body', 5497 elements: { 5498 checkInterval: 100, 5499 selectors: ['body'] 5500 }, 5501 eventLag: { 5502 minSamples: 10, 5503 sampleCount: 3, 5504 lagThreshold: 3 5505 }, 5506 ajax: false 5507 }; 5508 5509 now = function () { 5510 var _ref; 5511 return (_ref = typeof performance !== "undefined" && performance !== null ? typeof performance.now === "function" ? performance.now() : void 0 : void 0) != null ? _ref : +new Date(); 5512 }; 5513 5514 requestAnimationFrame = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame; 5515 5516 cancelAnimationFrame = window.cancelAnimationFrame || window.mozCancelAnimationFrame; 5517 5518 if (requestAnimationFrame == null) { 5519 requestAnimationFrame = function (fn) { 5520 return setTimeout(fn, 50); 5521 }; 5522 cancelAnimationFrame = function (id) { 5523 return clearTimeout(id); 5524 }; 5525 } 5526 5527 runAnimation = function (fn) { 5528 var last, tick; 5529 last = now(); 5530 tick = function () { 5531 var diff; 5532 diff = now() - last; 5533 if (diff >= 33) { 5534 last = now(); 5535 return fn(diff, function () { 5536 return requestAnimationFrame(tick); 5537 }); 5538 } else { 5539 return setTimeout(tick, 33 - diff); 5540 } 5541 }; 5542 return tick(); 5543 }; 5544 5545 result = function () { 5546 var args, key, obj; 5547 obj = arguments[0], key = arguments[1], args = 3 <= arguments.length ? __slice.call(arguments, 2) : []; 5548 if (typeof obj[key] === 'function') { 5549 return obj[key].apply(obj, args); 5550 } else { 5551 return obj[key]; 5552 } 5553 }; 5554 5555 extend = function () { 5556 var key, out, source, sources, val, _i, _len; 5557 out = arguments[0], sources = 2 <= arguments.length ? __slice.call(arguments, 1) : []; 5558 for (_i = 0, _len = sources.length; _i < _len; _i++) { 5559 source = sources[_i]; 5560 if (source) { 5561 for (key in source) { 5562 if (!__hasProp.call(source, key)) continue; 5563 val = source[key]; 5564 if (out[key] != null && typeof out[key] === 'object' && val != null && typeof val === 'object') { 5565 extend(out[key], val); 5566 } else { 5567 out[key] = val; 5568 } 5569 } 5570 } 5571 } 5572 return out; 5573 }; 5574 5575 avgAmplitude = function (arr) { 5576 var count, sum, v, _i, _len; 5577 sum = count = 0; 5578 for (_i = 0, _len = arr.length; _i < _len; _i++) { 5579 v = arr[_i]; 5580 sum += Math.abs(v); 5581 count++; 5582 } 5583 return sum / count; 5584 }; 5585 5586 getFromDOM = function (key, json) { 5587 var data, e, el; 5588 if (key == null) { 5589 key = 'options'; 5590 } 5591 if (json == null) { 5592 json = true; 5593 } 5594 el = document.querySelector("[data-pace-" + key + "]"); 5595 if (!el) { 5596 return; 5597 } 5598 data = el.getAttribute("data-pace-" + key); 5599 if (!json) { 5600 return data; 5601 } 5602 try { 5603 return JSON.parse(data); 5604 } catch (_error) { 5605 e = _error; 5606 return typeof console !== "undefined" && console !== null ? console.error("Error parsing inline pace options", e) : void 0; 5607 } 5608 }; 5609 5610 Evented = function () { 5611 function Evented() {} 5612 5613 Evented.prototype.on = function (event, handler, ctx, once) { 5614 var _base; 5615 if (once == null) { 5616 once = false; 5617 } 5618 if (this.bindings == null) { 5619 this.bindings = {}; 5620 } 5621 if ((_base = this.bindings)[event] == null) { 5622 _base[event] = []; 5623 } 5624 return this.bindings[event].push({ 5625 handler: handler, 5626 ctx: ctx, 5627 once: once 5628 }); 5629 }; 5630 5631 Evented.prototype.once = function (event, handler, ctx) { 5632 return this.on(event, handler, ctx, true); 5633 }; 5634 5635 Evented.prototype.off = function (event, handler) { 5636 var i, _ref, _results; 5637 if (((_ref = this.bindings) != null ? _ref[event] : void 0) == null) { 5638 return; 5639 } 5640 if (handler == null) { 5641 return delete this.bindings[event]; 5642 } else { 5643 i = 0; 5644 _results = []; 5645 while (i < this.bindings[event].length) { 5646 if (this.bindings[event][i].handler === handler) { 5647 _results.push(this.bindings[event].splice(i, 1)); 5648 } else { 5649 _results.push(i++); 5650 } 5651 } 5652 return _results; 5653 } 5654 }; 5655 5656 Evented.prototype.trigger = function () { 5657 var args, ctx, event, handler, i, once, _ref, _ref1, _results; 5658 event = arguments[0], args = 2 <= arguments.length ? __slice.call(arguments, 1) : []; 5659 if ((_ref = this.bindings) != null ? _ref[event] : void 0) { 5660 i = 0; 5661 _results = []; 5662 while (i < this.bindings[event].length) { 5663 _ref1 = this.bindings[event][i], handler = _ref1.handler, ctx = _ref1.ctx, once = _ref1.once; 5664 handler.apply(ctx != null ? ctx : this, args); 5665 if (once) { 5666 _results.push(this.bindings[event].splice(i, 1)); 5667 } else { 5668 _results.push(i++); 5669 } 5670 } 5671 return _results; 5672 } 5673 }; 5674 5675 return Evented; 5676 }(); 5677 5678 Pace = window.Pace || {}; 5679 5680 window.Pace = Pace; 5681 5682 extend(Pace, Evented.prototype); 5683 5684 options = Pace.options = extend({}, defaultOptions, window.paceOptions, getFromDOM()); 5685 5686 _ref = ['ajax', 'document', 'eventLag', 'elements']; 5687 for (_i = 0, _len = _ref.length; _i < _len; _i++) { 5688 source = _ref[_i]; 5689 if (options[source] === true) { 5690 options[source] = defaultOptions[source]; 5691 } 5692 } 5693 5694 NoTargetError = function (_super) { 5695 __extends(NoTargetError, _super); 5696 5697 function NoTargetError() { 5698 _ref1 = NoTargetError.__super__.constructor.apply(this, arguments); 5699 return _ref1; 5700 } 5701 5702 return NoTargetError; 5703 }(Error); 5704 5705 Bar = function () { 5706 function Bar() { 5707 this.progress = 0; 5708 } 5709 5710 Bar.prototype.getElement = function () { 5711 var targetElement; 5712 if (this.el == null) { 5713 targetElement = document.querySelector(options.target); 5714 if (!targetElement) { 5715 throw new NoTargetError(); 5716 } 5717 this.el = document.createElement('div'); 5718 this.el.className = "pace pace-active"; 5719 document.body.className = document.body.className.replace(/pace-done/g, ''); 5720 document.body.className += ' pace-running'; 5721 this.el.innerHTML = '<div class="pace-progress">\n <div class="pace-progress-inner"></div>\n</div>\n<div class="pace-activity"></div>'; 5722 if (targetElement.firstChild != null) { 5723 targetElement.insertBefore(this.el, targetElement.firstChild); 5724 } else { 5725 targetElement.appendChild(this.el); 5726 } 5727 } 5728 return this.el; 5729 }; 5730 5731 Bar.prototype.finish = function () { 5732 var el; 5733 el = this.getElement(); 5734 el.className = el.className.replace('pace-active', ''); 5735 el.className += ' pace-inactive'; 5736 document.body.className = document.body.className.replace('pace-running', ''); 5737 return document.body.className += ' pace-done'; 5738 }; 5739 5740 Bar.prototype.update = function (prog) { 5741 this.progress = prog; 5742 return this.render(); 5743 }; 5744 5745 Bar.prototype.destroy = function () { 5746 try { 5747 this.getElement().parentNode.removeChild(this.getElement()); 5748 } catch (_error) { 5749 NoTargetError = _error; 5750 } 5751 return this.el = void 0; 5752 }; 5753 5754 Bar.prototype.render = function () { 5755 var el, key, progressStr, transform, _j, _len1, _ref2; 5756 if (document.querySelector(options.target) == null) { 5757 return false; 5758 } 5759 el = this.getElement(); 5760 transform = "translate3d(" + this.progress + "%, 0, 0)"; 5761 _ref2 = ['webkitTransform', 'msTransform', 'transform']; 5762 for (_j = 0, _len1 = _ref2.length; _j < _len1; _j++) { 5763 key = _ref2[_j]; 5764 el.children[0].style[key] = transform; 5765 } 5766 if (!this.lastRenderedProgress || this.lastRenderedProgress | 0 !== this.progress | 0) { 5767 el.children[0].setAttribute('data-progress-text', "" + (this.progress | 0) + "%"); 5768 if (this.progress >= 100) { 5769 progressStr = '99'; 5770 } else { 5771 progressStr = this.progress < 10 ? "0" : ""; 5772 progressStr += this.progress | 0; 5773 } 5774 el.children[0].setAttribute('data-progress', "" + progressStr); 5775 } 5776 return this.lastRenderedProgress = this.progress; 5777 }; 5778 5779 Bar.prototype.done = function () { 5780 return this.progress >= 100; 5781 }; 5782 5783 return Bar; 5784 }(); 5785 5786 Events = function () { 5787 function Events() { 5788 this.bindings = {}; 5789 } 5790 5791 Events.prototype.trigger = function (name, val) { 5792 var binding, _j, _len1, _ref2, _results; 5793 if (this.bindings[name] != null) { 5794 _ref2 = this.bindings[name]; 5795 _results = []; 5796 for (_j = 0, _len1 = _ref2.length; _j < _len1; _j++) { 5797 binding = _ref2[_j]; 5798 _results.push(binding.call(this, val)); 5799 } 5800 return _results; 5801 } 5802 }; 5803 5804 Events.prototype.on = function (name, fn) { 5805 var _base; 5806 if ((_base = this.bindings)[name] == null) { 5807 _base[name] = []; 5808 } 5809 return this.bindings[name].push(fn); 5810 }; 5811 5812 return Events; 5813 }(); 5814 5815 _XMLHttpRequest = window.XMLHttpRequest; 5816 5817 _XDomainRequest = window.XDomainRequest; 5818 5819 _WebSocket = window.WebSocket; 5820 5821 extendNative = function (to, from) { 5822 var e, key, _results; 5823 _results = []; 5824 for (key in from.prototype) { 5825 try { 5826 if (to[key] == null && typeof from[key] !== 'function') { 5827 if (typeof Object.defineProperty === 'function') { 5828 _results.push(Object.defineProperty(to, key, { 5829 get: function () { 5830 return from.prototype[key]; 5831 }, 5832 configurable: true, 5833 enumerable: true 5834 })); 5835 } else { 5836 _results.push(to[key] = from.prototype[key]); 5837 } 5838 } else { 5839 _results.push(void 0); 5840 } 5841 } catch (_error) { 5842 e = _error; 5843 } 5844 } 5845 return _results; 5846 }; 5847 5848 ignoreStack = []; 5849 5850 Pace.ignore = function () { 5851 var args, fn, ret; 5852 fn = arguments[0], args = 2 <= arguments.length ? __slice.call(arguments, 1) : []; 5853 ignoreStack.unshift('ignore'); 5854 ret = fn.apply(null, args); 5855 ignoreStack.shift(); 5856 return ret; 5857 }; 5858 5859 Pace.track = function () { 5860 var args, fn, ret; 5861 fn = arguments[0], args = 2 <= arguments.length ? __slice.call(arguments, 1) : []; 5862 ignoreStack.unshift('track'); 5863 ret = fn.apply(null, args); 5864 ignoreStack.shift(); 5865 return ret; 5866 }; 5867 5868 shouldTrack = function (method) { 5869 var _ref2; 5870 if (method == null) { 5871 method = 'GET'; 5872 } 5873 if (ignoreStack[0] === 'track') { 5874 return 'force'; 5875 } 5876 if (!ignoreStack.length && options.ajax) { 5877 if (method === 'socket' && options.ajax.trackWebSockets) { 5878 return true; 5879 } else if (_ref2 = method.toUpperCase(), __indexOf.call(options.ajax.trackMethods, _ref2) >= 0) { 5880 return true; 5881 } 5882 } 5883 return false; 5884 }; 5885 5886 RequestIntercept = function (_super) { 5887 __extends(RequestIntercept, _super); 5888 5889 function RequestIntercept() { 5890 var monitorXHR, 5891 _this = this; 5892 RequestIntercept.__super__.constructor.apply(this, arguments); 5893 monitorXHR = function (req) { 5894 var _open; 5895 _open = req.open; 5896 return req.open = function (type, url, async) { 5897 if (shouldTrack(type)) { 5898 _this.trigger('request', { 5899 type: type, 5900 url: url, 5901 request: req 5902 }); 5903 } 5904 return _open.apply(req, arguments); 5905 }; 5906 }; 5907 window.XMLHttpRequest = function (flags) { 5908 var req; 5909 req = new _XMLHttpRequest(flags); 5910 monitorXHR(req); 5911 return req; 5912 }; 5913 try { 5914 extendNative(window.XMLHttpRequest, _XMLHttpRequest); 5915 } catch (_error) {} 5916 if (_XDomainRequest != null) { 5917 window.XDomainRequest = function () { 5918 var req; 5919 req = new _XDomainRequest(); 5920 monitorXHR(req); 5921 return req; 5922 }; 5923 try { 5924 extendNative(window.XDomainRequest, _XDomainRequest); 5925 } catch (_error) {} 5926 } 5927 if (_WebSocket != null && options.ajax.trackWebSockets) { 5928 window.WebSocket = function (url, protocols) { 5929 var req; 5930 if (protocols != null) { 5931 req = new _WebSocket(url, protocols); 5932 } else { 5933 req = new _WebSocket(url); 5934 } 5935 if (shouldTrack('socket')) { 5936 _this.trigger('request', { 5937 type: 'socket', 5938 url: url, 5939 protocols: protocols, 5940 request: req 5941 }); 5942 } 5943 return req; 5944 }; 5945 try { 5946 extendNative(window.WebSocket, _WebSocket); 5947 } catch (_error) {} 5948 } 5949 } 5950 5951 return RequestIntercept; 5952 }(Events); 5953 5954 _intercept = null; 5955 5956 getIntercept = function () { 5957 if (_intercept == null) { 5958 _intercept = new RequestIntercept(); 5959 } 5960 return _intercept; 5961 }; 5962 5963 shouldIgnoreURL = function (url) { 5964 var pattern, _j, _len1, _ref2; 5965 _ref2 = options.ajax.ignoreURLs; 5966 for (_j = 0, _len1 = _ref2.length; _j < _len1; _j++) { 5967 pattern = _ref2[_j]; 5968 if (typeof pattern === 'string') { 5969 if (url.indexOf(pattern) !== -1) { 5970 return true; 5971 } 5972 } else { 5973 if (pattern.test(url)) { 5974 return true; 5975 } 5976 } 5977 } 5978 return false; 5979 }; 5980 5981 getIntercept().on('request', function (_arg) { 5982 var after, args, request, type, url; 5983 type = _arg.type, request = _arg.request, url = _arg.url; 5984 if (shouldIgnoreURL(url)) { 5985 return; 5986 } 5987 if (!Pace.running && (options.restartOnRequestAfter !== false || shouldTrack(type) === 'force')) { 5988 args = arguments; 5989 after = options.restartOnRequestAfter || 0; 5990 if (typeof after === 'boolean') { 5991 after = 0; 5992 } 5993 return setTimeout(function () { 5994 var stillActive, _j, _len1, _ref2, _ref3, _results; 5995 if (type === 'socket') { 5996 stillActive = request.readyState < 2; 5997 } else { 5998 stillActive = 0 < (_ref2 = request.readyState) && _ref2 < 4; 5999 } 6000 if (stillActive) { 6001 Pace.restart(); 6002 _ref3 = Pace.sources; 6003 _results = []; 6004 for (_j = 0, _len1 = _ref3.length; _j < _len1; _j++) { 6005 source = _ref3[_j]; 6006 if (source instanceof AjaxMonitor) { 6007 source.watch.apply(source, args); 6008 break; 6009 } else { 6010 _results.push(void 0); 6011 } 6012 } 6013 return _results; 6014 } 6015 }, after); 6016 } 6017 }); 6018 6019 AjaxMonitor = function () { 6020 function AjaxMonitor() { 6021 var _this = this; 6022 this.elements = []; 6023 getIntercept().on('request', function () { 6024 return _this.watch.apply(_this, arguments); 6025 }); 6026 } 6027 6028 AjaxMonitor.prototype.watch = function (_arg) { 6029 var request, tracker, type, url; 6030 type = _arg.type, request = _arg.request, url = _arg.url; 6031 if (shouldIgnoreURL(url)) { 6032 return; 6033 } 6034 if (type === 'socket') { 6035 tracker = new SocketRequestTracker(request); 6036 } else { 6037 tracker = new XHRRequestTracker(request); 6038 } 6039 return this.elements.push(tracker); 6040 }; 6041 6042 return AjaxMonitor; 6043 }(); 6044 6045 XHRRequestTracker = function () { 6046 function XHRRequestTracker(request) { 6047 var event, 6048 size, 6049 _j, 6050 _len1, 6051 _onreadystatechange, 6052 _ref2, 6053 _this = this; 6054 this.progress = 0; 6055 if (window.ProgressEvent != null) { 6056 size = null; 6057 request.addEventListener('progress', function (evt) { 6058 if (evt.lengthComputable) { 6059 return _this.progress = 100 * evt.loaded / evt.total; 6060 } else { 6061 return _this.progress = _this.progress + (100 - _this.progress) / 2; 6062 } 6063 }, false); 6064 _ref2 = ['load', 'abort', 'timeout', 'error']; 6065 for (_j = 0, _len1 = _ref2.length; _j < _len1; _j++) { 6066 event = _ref2[_j]; 6067 request.addEventListener(event, function () { 6068 return _this.progress = 100; 6069 }, false); 6070 } 6071 } else { 6072 _onreadystatechange = request.onreadystatechange; 6073 request.onreadystatechange = function () { 6074 var _ref3; 6075 if ((_ref3 = request.readyState) === 0 || _ref3 === 4) { 6076 _this.progress = 100; 6077 } else if (request.readyState === 3) { 6078 _this.progress = 50; 6079 } 6080 return typeof _onreadystatechange === "function" ? _onreadystatechange.apply(null, arguments) : void 0; 6081 }; 6082 } 6083 } 6084 6085 return XHRRequestTracker; 6086 }(); 6087 6088 SocketRequestTracker = function () { 6089 function SocketRequestTracker(request) { 6090 var event, 6091 _j, 6092 _len1, 6093 _ref2, 6094 _this = this; 6095 this.progress = 0; 6096 _ref2 = ['error', 'open']; 6097 for (_j = 0, _len1 = _ref2.length; _j < _len1; _j++) { 6098 event = _ref2[_j]; 6099 request.addEventListener(event, function () { 6100 return _this.progress = 100; 6101 }, false); 6102 } 6103 } 6104 6105 return SocketRequestTracker; 6106 }(); 6107 6108 ElementMonitor = function () { 6109 function ElementMonitor(options) { 6110 var selector, _j, _len1, _ref2; 6111 if (options == null) { 6112 options = {}; 6113 } 6114 this.elements = []; 6115 if (options.selectors == null) { 6116 options.selectors = []; 6117 } 6118 _ref2 = options.selectors; 6119 for (_j = 0, _len1 = _ref2.length; _j < _len1; _j++) { 6120 selector = _ref2[_j]; 6121 this.elements.push(new ElementTracker(selector)); 6122 } 6123 } 6124 6125 return ElementMonitor; 6126 }(); 6127 6128 ElementTracker = function () { 6129 function ElementTracker(selector) { 6130 this.selector = selector; 6131 this.progress = 0; 6132 this.check(); 6133 } 6134 6135 ElementTracker.prototype.check = function () { 6136 var _this = this; 6137 if (document.querySelector(this.selector)) { 6138 return this.done(); 6139 } else { 6140 return setTimeout(function () { 6141 return _this.check(); 6142 }, options.elements.checkInterval); 6143 } 6144 }; 6145 6146 ElementTracker.prototype.done = function () { 6147 return this.progress = 100; 6148 }; 6149 6150 return ElementTracker; 6151 }(); 6152 6153 DocumentMonitor = function () { 6154 DocumentMonitor.prototype.states = { 6155 loading: 0, 6156 interactive: 50, 6157 complete: 100 6158 }; 6159 6160 function DocumentMonitor() { 6161 var _onreadystatechange, 6162 _ref2, 6163 _this = this; 6164 this.progress = (_ref2 = this.states[document.readyState]) != null ? _ref2 : 100; 6165 _onreadystatechange = document.onreadystatechange; 6166 document.onreadystatechange = function () { 6167 if (_this.states[document.readyState] != null) { 6168 _this.progress = _this.states[document.readyState]; 6169 } 6170 return typeof _onreadystatechange === "function" ? _onreadystatechange.apply(null, arguments) : void 0; 6171 }; 6172 } 6173 6174 return DocumentMonitor; 6175 }(); 6176 6177 EventLagMonitor = function () { 6178 function EventLagMonitor() { 6179 var avg, 6180 interval, 6181 last, 6182 points, 6183 samples, 6184 _this = this; 6185 this.progress = 0; 6186 avg = 0; 6187 samples = []; 6188 points = 0; 6189 last = now(); 6190 interval = setInterval(function () { 6191 var diff; 6192 diff = now() - last - 50; 6193 last = now(); 6194 samples.push(diff); 6195 if (samples.length > options.eventLag.sampleCount) { 6196 samples.shift(); 6197 } 6198 avg = avgAmplitude(samples); 6199 if (++points >= options.eventLag.minSamples && avg < options.eventLag.lagThreshold) { 6200 _this.progress = 100; 6201 return clearInterval(interval); 6202 } else { 6203 return _this.progress = 100 * (3 / (avg + 3)); 6204 } 6205 }, 50); 6206 } 6207 6208 return EventLagMonitor; 6209 }(); 6210 6211 Scaler = function () { 6212 function Scaler(source) { 6213 this.source = source; 6214 this.last = this.sinceLastUpdate = 0; 6215 this.rate = options.initialRate; 6216 this.catchup = 0; 6217 this.progress = this.lastProgress = 0; 6218 if (this.source != null) { 6219 this.progress = result(this.source, 'progress'); 6220 } 6221 } 6222 6223 Scaler.prototype.tick = function (frameTime, val) { 6224 var scaling; 6225 if (val == null) { 6226 val = result(this.source, 'progress'); 6227 } 6228 if (val >= 100) { 6229 this.done = true; 6230 } 6231 if (val === this.last) { 6232 this.sinceLastUpdate += frameTime; 6233 } else { 6234 if (this.sinceLastUpdate) { 6235 this.rate = (val - this.last) / this.sinceLastUpdate; 6236 } 6237 this.catchup = (val - this.progress) / options.catchupTime; 6238 this.sinceLastUpdate = 0; 6239 this.last = val; 6240 } 6241 if (val > this.progress) { 6242 this.progress += this.catchup * frameTime; 6243 } 6244 scaling = 1 - Math.pow(this.progress / 100, options.easeFactor); 6245 this.progress += scaling * this.rate * frameTime; 6246 this.progress = Math.min(this.lastProgress + options.maxProgressPerFrame, this.progress); 6247 this.progress = Math.max(0, this.progress); 6248 this.progress = Math.min(100, this.progress); 6249 this.lastProgress = this.progress; 6250 return this.progress; 6251 }; 6252 6253 return Scaler; 6254 }(); 6255 6256 sources = null; 6257 6258 scalers = null; 6259 6260 bar = null; 6261 6262 uniScaler = null; 6263 6264 animation = null; 6265 6266 cancelAnimation = null; 6267 6268 Pace.running = false; 6269 6270 handlePushState = function () { 6271 if (options.restartOnPushState) { 6272 return Pace.restart(); 6273 } 6274 }; 6275 6276 if (window.history.pushState != null) { 6277 _pushState = window.history.pushState; 6278 window.history.pushState = function () { 6279 handlePushState(); 6280 return _pushState.apply(window.history, arguments); 6281 }; 6282 } 6283 6284 if (window.history.replaceState != null) { 6285 _replaceState = window.history.replaceState; 6286 window.history.replaceState = function () { 6287 handlePushState(); 6288 return _replaceState.apply(window.history, arguments); 6289 }; 6290 } 6291 6292 SOURCE_KEYS = { 6293 ajax: AjaxMonitor, 6294 elements: ElementMonitor, 6295 document: DocumentMonitor, 6296 eventLag: EventLagMonitor
vendor: 2,961 bytes, lines 6297-6399
6297 }; 6298 6299 (init = function () { 6300 var type, _j, _k, _len1, _len2, _ref2, _ref3, _ref4; 6301 Pace.sources = sources = []; 6302 _ref2 = ['ajax', 'elements', 'document', 'eventLag']; 6303 for (_j = 0, _len1 = _ref2.length; _j < _len1; _j++) { 6304 type = _ref2[_j]; 6305 if (options[type] !== false) { 6306 sources.push(new SOURCE_KEYS[type](options[type])); 6307 } 6308 } 6309 _ref4 = (_ref3 = options.extraSources) != null ? _ref3 : []; 6310 for (_k = 0, _len2 = _ref4.length; _k < _len2; _k++) { 6311 source = _ref4[_k]; 6312 sources.push(new source(options)); 6313 } 6314 Pace.bar = bar = new Bar(); 6315 scalers = []; 6316 return uniScaler = new Scaler(); 6317 })(); 6318 6319 Pace.stop = function () { 6320 Pace.trigger('stop'); 6321 Pace.running = false; 6322 bar.destroy(); 6323 cancelAnimation = true; 6324 if (animation != null) { 6325 if (typeof cancelAnimationFrame === "function") { 6326 cancelAnimationFrame(animation); 6327 } 6328 animation = null; 6329 } 6330 return init(); 6331 }; 6332 6333 Pace.restart = function () { 6334 Pace.trigger('restart'); 6335 Pace.stop(); 6336 return Pace.start(); 6337 }; 6338 6339 Pace.go = function () { 6340 var start; 6341 Pace.running = true; 6342 bar.render(); 6343 start = now(); 6344 cancelAnimation = false; 6345 return animation = runAnimation(function (frameTime, enqueueNextFrame) { 6346 var avg, count, done, element, elements, i, j, remaining, scaler, scalerList, sum, _j, _k, _len1, _len2, _ref2; 6347 remaining = 100 - bar.progress; 6348 count = sum = 0; 6349 done = true; 6350 for (i = _j = 0, _len1 = sources.length; _j < _len1; i = ++_j) { 6351 source = sources[i]; 6352 scalerList = scalers[i] != null ? scalers[i] : scalers[i] = []; 6353 elements = (_ref2 = source.elements) != null ? _ref2 : [source]; 6354 for (j = _k = 0, _len2 = elements.length; _k < _len2; j = ++_k) { 6355 element = elements[j]; 6356 scaler = scalerList[j] != null ? scalerList[j] : scalerList[j] = new Scaler(element); 6357 done &= scaler.done; 6358 if (scaler.done) { 6359 continue; 6360 } 6361 count++; 6362 sum += scaler.tick(frameTime); 6363 } 6364 } 6365 avg = sum / count; 6366 bar.update(uniScaler.tick(frameTime, avg)); 6367 if (bar.done() || done || cancelAnimation) { 6368 bar.update(100); 6369 Pace.trigger('done'); 6370 return setTimeout(function () { 6371 bar.finish(); 6372 Pace.running = false; 6373 return Pace.trigger('hide'); 6374 }, Math.max(options.ghostTime, Math.max(options.minTime - (now() - start), 0))); 6375 } else { 6376 return enqueueNextFrame(); 6377 } 6378 }); 6379 }; 6380 6381 Pace.start = function (_options) { 6382 extend(options, _options); 6383 Pace.running = true; 6384 try { 6385 bar.render(); 6386 } catch (_error) { 6387 NoTargetError = _error; 6388 } 6389 if (!document.querySelector('.pace')) { 6390 return setTimeout(Pace.start, 50); 6391 } else { 6392 Pace.trigger('start'); 6393 return Pace.go(); 6394 } 6395 }; 6396})(jQuery); 6397 6398/***/ }), 6399
6400/***/ "./js/lib/slick.js": 6401/*!*************************!*\ 6402 !*** ./js/lib/slick.js ***! 6403 \*************************/ 6404/*! no static exports found */ 6405/***/ (function(module, exports, __webpack_require__) { 6406 6407var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/* 6408 _ _ _ _ 6409 ___| (_) ___| | __ (_)___ 6410/ __| | |/ __| |/ / | / __| 6411\__ \ | | (__| < _ | \__ \ 6412|___/_|_|\___|_|\_(_)/ |___/ 6413 |__/ 6414 6415 Version: 1.6.0 6416 Author: Ken Wheeler 6417 Website: http://kenwheeler.github.io 6418 Docs: http://kenwheeler.github.io/slick 6419 Repo: http://github.com/kenwheeler/slick 6420 Issues: http://github.com/kenwheeler/slick/issues 6421 6422 */ 6423/* global window, document, define, jQuery, setInterval, clearInterval */ 6424(function (factory) { 6425 'use strict'; 6426 6427 if (true) { 6428 !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! jquery */ "jquery")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), 6429 __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? 6430 (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), 6431 __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); 6432 } else {} 6433})(function ($) { 6434 'use strict'; 6435 6436 var Slick = window.Slick || {}; 6437 6438 Slick = function () { 6439 6440 var instanceUid = 0; 6441 6442 function Slick(element, settings) { 6443 6444 var _ = this, 6445 dataSettings; 6446 6447 _.defaults = { 6448 accessibility: true, 6449 adaptiveHeight: false, 6450 appendArrows: $(element), 6451 appendDots: $(element), 6452 arrows: true, 6453 asNavFor: null, 6454 prevArrow: '<button type="button" data-role="none" class="slick-prev" tabindex="0" role="button">Previous</button>', 6455 nextArrow: '<button type="button" data-role="none" class="slick-next" tabindex="0" role="button">Next</button>', 6456 autoplay: false, 6457 autoplaySpeed: 3000, 6458 centerMode: false, 6459 centerPadding: '50px', 6460 cssEase: 'ease', 6461 customPaging: function (slider, i) { 6462 return $('<button type="button" data-role="none" role="button" tabindex="0" />').text(i + 1); 6463 }, 6464 dots: false, 6465 dotsClass: 'slick-dots', 6466 draggable: true, 6467 easing: 'linear', 6468 edgeFriction: 0.35, 6469 fade: false, 6470 focusOnSelect: false, 6471 infinite: true, 6472 initialSlide: 0, 6473 lazyLoad: 'ondemand', 6474 mobileFirst: false, 6475 pauseOnHover: true, 6476 pauseOnFocus: true, 6477 pauseOnDotsHover: false, 6478 respondTo: 'window', 6479 responsive: null, 6480 rows: 1, 6481 rtl: false, 6482 slide: '', 6483 slidesPerRow: 1, 6484 slidesToShow: 1, 6485 slidesToScroll: 1, 6486 speed: 500, 6487 swipe: true, 6488 swipeToSlide: false, 6489 touchMove: true, 6490 touchThreshold: 5, 6491 useCSS: true, 6492 useTransform: true, 6493 variableWidth: false, 6494 vertical: false, 6495 verticalSwiping: false, 6496 waitForAnimate: true, 6497 zIndex: 1000 6498 }; 6499 6500 _.initials = { 6501 animating: false, 6502 dragging: false, 6503 autoPlayTimer: null, 6504 currentDirection: 0, 6505 currentLeft: null, 6506 currentSlide: 0, 6507 direction: 1, 6508 $dots: null, 6509 listWidth: null, 6510 listHeight: null, 6511 loadIndex: 0, 6512 $nextArrow: null, 6513 $prevArrow: null, 6514 slideCount: null, 6515 slideWidth: null, 6516 $slideTrack: null, 6517 $slides: null, 6518 sliding: false, 6519 slideOffset: 0, 6520 swipeLeft: null, 6521 $list: null, 6522 touchObject: {}, 6523 transformsEnabled: false,
vendor: 25,248 bytes, lines 6524-7318
6524 unslicked: false 6525 }; 6526 6527 $.extend(_, _.initials); 6528 6529 _.activeBreakpoint = null; 6530 _.animType = null; 6531 _.animProp = null; 6532 _.breakpoints = []; 6533 _.breakpointSettings = []; 6534 _.cssTransitions = false; 6535 _.focussed = false; 6536 _.interrupted = false; 6537 _.hidden = 'hidden'; 6538 _.paused = true; 6539 _.positionProp = null; 6540 _.respondTo = null; 6541 _.rowCount = 1; 6542 _.shouldClick = true; 6543 _.$slider = $(element); 6544 _.$slidesCache = null; 6545 _.transformType = null; 6546 _.transitionType = null; 6547 _.visibilityChange = 'visibilitychange'; 6548 _.windowWidth = 0; 6549 _.windowTimer = null; 6550 6551 dataSettings = $(element).data('slick') || {}; 6552 6553 _.options = $.extend({}, _.defaults, settings, dataSettings); 6554 6555 _.currentSlide = _.options.initialSlide; 6556 6557 _.originalSettings = _.options; 6558 6559 if (typeof document.mozHidden !== 'undefined') { 6560 _.hidden = 'mozHidden'; 6561 _.visibilityChange = 'mozvisibilitychange'; 6562 } else if (typeof document.webkitHidden !== 'undefined') { 6563 _.hidden = 'webkitHidden'; 6564 _.visibilityChange = 'webkitvisibilitychange'; 6565 } 6566 6567 _.autoPlay = $.proxy(_.autoPlay, _); 6568 _.autoPlayClear = $.proxy(_.autoPlayClear, _); 6569 _.autoPlayIterator = $.proxy(_.autoPlayIterator, _); 6570 _.changeSlide = $.proxy(_.changeSlide, _); 6571 _.clickHandler = $.proxy(_.clickHandler, _); 6572 _.selectHandler = $.proxy(_.selectHandler, _); 6573 _.setPosition = $.proxy(_.setPosition, _); 6574 _.swipeHandler = $.proxy(_.swipeHandler, _); 6575 _.dragHandler = $.proxy(_.dragHandler, _); 6576 _.keyHandler = $.proxy(_.keyHandler, _); 6577 6578 _.instanceUid = instanceUid++; 6579 6580 // A simple way to check for HTML strings 6581 // Strict HTML recognition (must start with <) 6582 // Extracted from jQuery v1.11 source 6583 _.htmlExpr = /^(?:\s*(<[\w\W]+>)[^>]*)$/; 6584 6585 _.registerBreakpoints(); 6586 _.init(true); 6587 } 6588 6589 return Slick; 6590 }(); 6591 6592 Slick.prototype.activateADA = function () { 6593 var _ = this; 6594 6595 _.$slideTrack.find('.slick-active').attr({ 6596 'aria-hidden': 'false' 6597 }).find('a, input, button, select').attr({ 6598 'tabindex': '0' 6599 }); 6600 }; 6601 6602 Slick.prototype.addSlide = Slick.prototype.slickAdd = function (markup, index, addBefore) { 6603 6604 var _ = this; 6605 6606 if (typeof index === 'boolean') { 6607 addBefore = index; 6608 index = null; 6609 } else if (index < 0 || index >= _.slideCount) { 6610 return false; 6611 } 6612 6613 _.unload(); 6614 6615 if (typeof index === 'number') { 6616 if (index === 0 && _.$slides.length === 0) { 6617 $(markup).appendTo(_.$slideTrack); 6618 } else if (addBefore) { 6619 $(markup).insertBefore(_.$slides.eq(index)); 6620 } else { 6621 $(markup).insertAfter(_.$slides.eq(index)); 6622 } 6623 } else { 6624 if (addBefore === true) { 6625 $(markup).prependTo(_.$slideTrack); 6626 } else { 6627 $(markup).appendTo(_.$slideTrack); 6628 } 6629 } 6630 6631 _.$slides = _.$slideTrack.children(this.options.slide); 6632 6633 _.$slideTrack.children(this.options.slide).detach(); 6634 6635 _.$slideTrack.append(_.$slides); 6636 6637 _.$slides.each(function (index, element) { 6638 $(element).attr('data-slick-index', index); 6639 }); 6640 6641 _.$slidesCache = _.$slides; 6642 6643 _.reinit(); 6644 }; 6645 6646 Slick.prototype.animateHeight = function () { 6647 var _ = this; 6648 if (_.options.slidesToShow === 1 && _.options.adaptiveHeight === true && _.options.vertical === false) { 6649 var targetHeight = _.$slides.eq(_.currentSlide).outerHeight(true); 6650 _.$list.animate({ 6651 height: targetHeight 6652 }, _.options.speed); 6653 } 6654 }; 6655 6656 Slick.prototype.animateSlide = function (targetLeft, callback) { 6657 6658 var animProps = {}, 6659 _ = this; 6660 6661 _.animateHeight(); 6662 6663 if (_.options.rtl === true && _.options.vertical === false) { 6664 targetLeft = -targetLeft; 6665 } 6666 if (_.transformsEnabled === false) { 6667 if (_.options.vertical === false) { 6668 _.$slideTrack.animate({ 6669 left: targetLeft 6670 }, _.options.speed, _.options.easing, callback); 6671 } else { 6672 _.$slideTrack.animate({ 6673 top: targetLeft 6674 }, _.options.speed, _.options.easing, callback); 6675 } 6676 } else { 6677 6678 if (_.cssTransitions === false) { 6679 if (_.options.rtl === true) { 6680 _.currentLeft = -_.currentLeft; 6681 } 6682 $({ 6683 animStart: _.currentLeft 6684 }).animate({ 6685 animStart: targetLeft 6686 }, { 6687 duration: _.options.speed, 6688 easing: _.options.easing, 6689 step: function (now) { 6690 now = Math.ceil(now); 6691 if (_.options.vertical === false) { 6692 animProps[_.animType] = 'translate(' + now + 'px, 0px)'; 6693 _.$slideTrack.css(animProps); 6694 } else { 6695 animProps[_.animType] = 'translate(0px,' + now + 'px)'; 6696 _.$slideTrack.css(animProps); 6697 } 6698 }, 6699 complete: function () { 6700 if (callback) { 6701 callback.call(); 6702 } 6703 } 6704 }); 6705 } else { 6706 6707 _.applyTransition(); 6708 targetLeft = Math.ceil(targetLeft); 6709 6710 if (_.options.vertical === false) { 6711 animProps[_.animType] = 'translate3d(' + targetLeft + 'px, 0px, 0px)'; 6712 } else { 6713 animProps[_.animType] = 'translate3d(0px,' + targetLeft + 'px, 0px)'; 6714 } 6715 _.$slideTrack.css(animProps); 6716 6717 if (callback) { 6718 setTimeout(function () { 6719 6720 _.disableTransition(); 6721 6722 callback.call(); 6723 }, _.options.speed); 6724 } 6725 } 6726 } 6727 }; 6728 6729 Slick.prototype.getNavTarget = function () { 6730 6731 var _ = this, 6732 asNavFor = _.options.asNavFor; 6733 6734 if (asNavFor && asNavFor !== null) { 6735 asNavFor = $(asNavFor).not(_.$slider); 6736 } 6737 6738 return asNavFor; 6739 }; 6740 6741 Slick.prototype.asNavFor = function (index) { 6742 6743 var _ = this, 6744 asNavFor = _.getNavTarget(); 6745 6746 if (asNavFor !== null && typeof asNavFor === 'object') { 6747 asNavFor.each(function () { 6748 var target = $(this).slick('getSlick'); 6749 if (!target.unslicked) { 6750 target.slideHandler(index, true); 6751 } 6752 }); 6753 } 6754 }; 6755 6756 Slick.prototype.applyTransition = function (slide) { 6757 6758 var _ = this, 6759 transition = {}; 6760 6761 if (_.options.fade === false) { 6762 transition[_.transitionType] = _.transformType + ' ' + _.options.speed + 'ms ' + _.options.cssEase; 6763 } else { 6764 transition[_.transitionType] = 'opacity ' + _.options.speed + 'ms ' + _.options.cssEase; 6765 } 6766 6767 if (_.options.fade === false) { 6768 _.$slideTrack.css(transition); 6769 } else { 6770 _.$slides.eq(slide).css(transition); 6771 } 6772 }; 6773 6774 Slick.prototype.autoPlay = function () { 6775 6776 var _ = this; 6777 6778 _.autoPlayClear(); 6779 6780 if (_.slideCount > _.options.slidesToShow) { 6781 _.autoPlayTimer = setInterval(_.autoPlayIterator, _.options.autoplaySpeed); 6782 } 6783 }; 6784 6785 Slick.prototype.autoPlayClear = function () { 6786 6787 var _ = this; 6788 6789 if (_.autoPlayTimer) { 6790 clearInterval(_.autoPlayTimer); 6791 } 6792 }; 6793 6794 Slick.prototype.autoPlayIterator = function () { 6795 6796 var _ = this, 6797 slideTo = _.currentSlide + _.options.slidesToScroll; 6798 6799 if (!_.paused && !_.interrupted && !_.focussed) { 6800 6801 if (_.options.infinite === false) { 6802 6803 if (_.direction === 1 && _.currentSlide + 1 === _.slideCount - 1) { 6804 _.direction = 0; 6805 } else if (_.direction === 0) { 6806 6807 slideTo = _.currentSlide - _.options.slidesToScroll; 6808 6809 if (_.currentSlide - 1 === 0) { 6810 _.direction = 1; 6811 } 6812 } 6813 } 6814 6815 _.slideHandler(slideTo); 6816 } 6817 }; 6818 6819 Slick.prototype.buildArrows = function () { 6820 6821 var _ = this; 6822 6823 if (_.options.arrows === true) { 6824 6825 _.$prevArrow = $(_.options.prevArrow).addClass('slick-arrow'); 6826 _.$nextArrow = $(_.options.nextArrow).addClass('slick-arrow'); 6827 6828 if (_.slideCount > _.options.slidesToShow) { 6829 6830 _.$prevArrow.removeClass('slick-hidden').removeAttr('aria-hidden tabindex'); 6831 _.$nextArrow.removeClass('slick-hidden').removeAttr('aria-hidden tabindex'); 6832 6833 if (_.htmlExpr.test(_.options.prevArrow)) { 6834 _.$prevArrow.prependTo(_.options.appendArrows); 6835 } 6836 6837 if (_.htmlExpr.test(_.options.nextArrow)) { 6838 _.$nextArrow.appendTo(_.options.appendArrows); 6839 } 6840 6841 if (_.options.infinite !== true) { 6842 _.$prevArrow.addClass('slick-disabled').attr('aria-disabled', 'true'); 6843 } 6844 } else { 6845 6846 _.$prevArrow.add(_.$nextArrow).addClass('slick-hidden').attr({ 6847 'aria-disabled': 'true', 6848 'tabindex': '-1' 6849 }); 6850 } 6851 } 6852 }; 6853 6854 Slick.prototype.buildDots = function () { 6855 6856 var _ = this, 6857 i, 6858 dot; 6859 6860 if (_.options.dots === true && _.slideCount > _.options.slidesToShow) { 6861 6862 _.$slider.addClass('slick-dotted'); 6863 6864 dot = $('<ul />').addClass(_.options.dotsClass); 6865 6866 for (i = 0; i <= _.getDotCount(); i += 1) { 6867 dot.append($('<li />').append(_.options.customPaging.call(this, _, i))); 6868 } 6869 6870 _.$dots = dot.appendTo(_.options.appendDots); 6871 6872 _.$dots.find('li').first().addClass('slick-active').attr('aria-hidden', 'false'); 6873 } 6874 }; 6875 6876 Slick.prototype.buildOut = function () { 6877 6878 var _ = this; 6879 6880 _.$slides = _.$slider.children(_.options.slide + ':not(.slick-cloned)').addClass('slick-slide'); 6881 6882 _.slideCount = _.$slides.length; 6883 6884 _.$slides.each(function (index, element) { 6885 $(element).attr('data-slick-index', index).data('originalStyling', $(element).attr('style') || ''); 6886 }); 6887 6888 _.$slider.addClass('slick-slider'); 6889 6890 _.$slideTrack = _.slideCount === 0 ? $('<div class="slick-track"/>').appendTo(_.$slider) : _.$slides.wrapAll('<div class="slick-track"/>').parent(); 6891 6892 _.$list = _.$slideTrack.wrap('<div class="slick-list"/>').parent(); 6893 _.$slideTrack.css('opacity', 0); 6894 6895 if (_.options.centerMode === true || _.options.swipeToSlide === true) { 6896 _.options.slidesToScroll = 1; 6897 } 6898 6899 $('img[data-lazy]', _.$slider).not('[src]').addClass('slick-loading'); 6900 6901 _.setupInfinite(); 6902 6903 _.buildArrows(); 6904 6905 _.buildDots(); 6906 6907 _.updateDots(); 6908 6909 _.setSlideClasses(typeof _.currentSlide === 'number' ? _.currentSlide : 0); 6910 6911 if (_.options.draggable === true) { 6912 _.$list.addClass('draggable'); 6913 } 6914 }; 6915 6916 Slick.prototype.buildRows = function () { 6917 6918 var _ = this, 6919 a, 6920 b, 6921 c, 6922 newSlides, 6923 numOfSlides, 6924 originalSlides, 6925 slidesPerSection; 6926 6927 newSlides = document.createDocumentFragment(); 6928 originalSlides = _.$slider.children(); 6929 6930 if (_.options.rows > 1) { 6931 6932 slidesPerSection = _.options.slidesPerRow * _.options.rows; 6933 numOfSlides = Math.ceil(originalSlides.length / slidesPerSection); 6934 6935 for (a = 0; a < numOfSlides; a++) { 6936 var slide = document.createElement('div'); 6937 for (b = 0; b < _.options.rows; b++) { 6938 var row = document.createElement('div'); 6939 for (c = 0; c < _.options.slidesPerRow; c++) { 6940 var target = a * slidesPerSection + (b * _.options.slidesPerRow + c); 6941 if (originalSlides.get(target)) { 6942 row.appendChild(originalSlides.get(target)); 6943 } 6944 } 6945 slide.appendChild(row); 6946 } 6947 newSlides.appendChild(slide); 6948 } 6949 6950 _.$slider.empty().append(newSlides); 6951 _.$slider.children().children().children().css({ 6952 'width': 100 / _.options.slidesPerRow + '%', 6953 'display': 'inline-block' 6954 }); 6955 } 6956 }; 6957 6958 Slick.prototype.checkResponsive = function (initial, forceUpdate) { 6959 6960 var _ = this, 6961 breakpoint, 6962 targetBreakpoint, 6963 respondToWidth, 6964 triggerBreakpoint = false; 6965 var sliderWidth = _.$slider.width(); 6966 var windowWidth = window.innerWidth || $(window).width(); 6967 6968 if (_.respondTo === 'window') { 6969 respondToWidth = windowWidth; 6970 } else if (_.respondTo === 'slider') { 6971 respondToWidth = sliderWidth; 6972 } else if (_.respondTo === 'min') { 6973 respondToWidth = Math.min(windowWidth, sliderWidth); 6974 } 6975 6976 if (_.options.responsive && _.options.responsive.length && _.options.responsive !== null) { 6977 6978 targetBreakpoint = null; 6979 6980 for (breakpoint in _.breakpoints) { 6981 if (_.breakpoints.hasOwnProperty(breakpoint)) { 6982 if (_.originalSettings.mobileFirst === false) { 6983 if (respondToWidth < _.breakpoints[breakpoint]) { 6984 targetBreakpoint = _.breakpoints[breakpoint]; 6985 } 6986 } else { 6987 if (respondToWidth > _.breakpoints[breakpoint]) { 6988 targetBreakpoint = _.breakpoints[breakpoint]; 6989 } 6990 } 6991 } 6992 } 6993 6994 if (targetBreakpoint !== null) { 6995 if (_.activeBreakpoint !== null) { 6996 if (targetBreakpoint !== _.activeBreakpoint || forceUpdate) { 6997 _.activeBreakpoint = targetBreakpoint; 6998 if (_.breakpointSettings[targetBreakpoint] === 'unslick') { 6999 _.unslick(targetBreakpoint); 7000 } else { 7001 _.options = $.extend({}, _.originalSettings, _.breakpointSettings[targetBreakpoint]); 7002 if (initial === true) { 7003 _.currentSlide = _.options.initialSlide; 7004 } 7005 _.refresh(initial); 7006 } 7007 triggerBreakpoint = targetBreakpoint; 7008 } 7009 } else { 7010 _.activeBreakpoint = targetBreakpoint; 7011 if (_.breakpointSettings[targetBreakpoint] === 'unslick') { 7012 _.unslick(targetBreakpoint); 7013 } else { 7014 _.options = $.extend({}, _.originalSettings, _.breakpointSettings[targetBreakpoint]); 7015 if (initial === true) { 7016 _.currentSlide = _.options.initialSlide; 7017 } 7018 _.refresh(initial); 7019 } 7020 triggerBreakpoint = targetBreakpoint; 7021 } 7022 } else { 7023 if (_.activeBreakpoint !== null) { 7024 _.activeBreakpoint = null; 7025 _.options = _.originalSettings; 7026 if (initial === true) { 7027 _.currentSlide = _.options.initialSlide; 7028 } 7029 _.refresh(initial); 7030 triggerBreakpoint = targetBreakpoint; 7031 } 7032 } 7033 7034 // only trigger breakpoints during an actual break. not on initialize. 7035 if (!initial && triggerBreakpoint !== false) { 7036 _.$slider.trigger('breakpoint', [_, triggerBreakpoint]); 7037 } 7038 } 7039 }; 7040 7041 Slick.prototype.changeSlide = function (event, dontAnimate) { 7042 7043 var _ = this, 7044 $target = $(event.currentTarget), 7045 indexOffset, 7046 slideOffset, 7047 unevenOffset; 7048 7049 // If target is a link, prevent default action. 7050 if ($target.is('a')) { 7051 event.preventDefault(); 7052 } 7053 7054 // If target is not the <li> element (ie: a child), find the <li>. 7055 if (!$target.is('li')) { 7056 $target = $target.closest('li'); 7057 } 7058 7059 unevenOffset = _.slideCount % _.options.slidesToScroll !== 0; 7060 indexOffset = unevenOffset ? 0 : (_.slideCount - _.currentSlide) % _.options.slidesToScroll; 7061 7062 switch (event.data.message) { 7063 7064 case 'previous': 7065 slideOffset = indexOffset === 0 ? _.options.slidesToScroll : _.options.slidesToShow - indexOffset; 7066 if (_.slideCount > _.options.slidesToShow) { 7067 _.slideHandler(_.currentSlide - slideOffset, false, dontAnimate); 7068 } 7069 break; 7070 7071 case 'next': 7072 slideOffset = indexOffset === 0 ? _.options.slidesToScroll : indexOffset; 7073 if (_.slideCount > _.options.slidesToShow) { 7074 _.slideHandler(_.currentSlide + slideOffset, false, dontAnimate); 7075 } 7076 break; 7077 7078 case 'index': 7079 var index = event.data.index === 0 ? 0 : event.data.index || $target.index() * _.options.slidesToScroll; 7080 7081 _.slideHandler(_.checkNavigable(index), false, dontAnimate); 7082 $target.children().trigger('focus'); 7083 break; 7084 7085 default: 7086 return; 7087 } 7088 }; 7089 7090 Slick.prototype.checkNavigable = function (index) { 7091 7092 var _ = this, 7093 navigables, 7094 prevNavigable; 7095 7096 navigables = _.getNavigableIndexes(); 7097 prevNavigable = 0; 7098 if (index > navigables[navigables.length - 1]) { 7099 index = navigables[navigables.length - 1]; 7100 } else { 7101 for (var n in navigables) { 7102 if (index < navigables[n]) { 7103 index = prevNavigable; 7104 break; 7105 } 7106 prevNavigable = navigables[n]; 7107 } 7108 } 7109 7110 return index; 7111 }; 7112 7113 Slick.prototype.cleanUpEvents = function () { 7114 7115 var _ = this; 7116 7117 if (_.options.dots && _.$dots !== null) { 7118 7119 $('li', _.$dots).off('click.slick', _.changeSlide).off('mouseenter.slick', $.proxy(_.interrupt, _, true)).off('mouseleave.slick', $.proxy(_.interrupt, _, false)); 7120 } 7121 7122 _.$slider.off('focus.slick blur.slick'); 7123 7124 if (_.options.arrows === true && _.slideCount > _.options.slidesToShow) { 7125 _.$prevArrow && _.$prevArrow.off('click.slick', _.changeSlide); 7126 _.$nextArrow && _.$nextArrow.off('click.slick', _.changeSlide); 7127 } 7128 7129 _.$list.off('touchstart.slick mousedown.slick', _.swipeHandler); 7130 _.$list.off('touchmove.slick mousemove.slick', _.swipeHandler); 7131 _.$list.off('touchend.slick mouseup.slick', _.swipeHandler); 7132 _.$list.off('touchcancel.slick mouseleave.slick', _.swipeHandler); 7133 7134 _.$list.off('click.slick', _.clickHandler); 7135 7136 $(document).off(_.visibilityChange, _.visibility); 7137 7138 _.cleanUpSlideEvents(); 7139 7140 if (_.options.accessibility === true) { 7141 _.$list.off('keydown.slick', _.keyHandler); 7142 } 7143 7144 if (_.options.focusOnSelect === true) { 7145 $(_.$slideTrack).children().off('click.slick', _.selectHandler); 7146 } 7147 7148 $(window).off('orientationchange.slick.slick-' + _.instanceUid, _.orientationChange); 7149 7150 $(window).off('resize.slick.slick-' + _.instanceUid, _.resize); 7151 7152 $('[draggable!=true]', _.$slideTrack).off('dragstart', _.preventDefault); 7153 7154 $(window).off('load.slick.slick-' + _.instanceUid, _.setPosition); 7155 $(document).off('ready.slick.slick-' + _.instanceUid, _.setPosition); 7156 }; 7157 7158 Slick.prototype.cleanUpSlideEvents = function () { 7159 7160 var _ = this; 7161 7162 _.$list.off('mouseenter.slick', $.proxy(_.interrupt, _, true)); 7163 _.$list.off('mouseleave.slick', $.proxy(_.interrupt, _, false)); 7164 }; 7165 7166 Slick.prototype.cleanUpRows = function () { 7167 7168 var _ = this, 7169 originalSlides; 7170 7171 if (_.options.rows > 1) { 7172 originalSlides = _.$slides.children().children(); 7173 originalSlides.removeAttr('style'); 7174 _.$slider.empty().append(originalSlides); 7175 } 7176 }; 7177 7178 Slick.prototype.clickHandler = function (event) { 7179 7180 var _ = this; 7181 7182 if (_.shouldClick === false) { 7183 event.stopImmediatePropagation(); 7184 event.stopPropagation(); 7185 event.preventDefault(); 7186 } 7187 }; 7188 7189 Slick.prototype.destroy = function (refresh) { 7190 7191 var _ = this; 7192 7193 _.autoPlayClear(); 7194 7195 _.touchObject = {}; 7196 7197 _.cleanUpEvents(); 7198 7199 $('.slick-cloned', _.$slider).detach(); 7200 7201 if (_.$dots) { 7202 _.$dots.remove(); 7203 } 7204 7205 if (_.$prevArrow && _.$prevArrow.length) { 7206 7207 _.$prevArrow.removeClass('slick-disabled slick-arrow slick-hidden').removeAttr('aria-hidden aria-disabled tabindex').css('display', ''); 7208 7209 if (_.htmlExpr.test(_.options.prevArrow)) { 7210 _.$prevArrow.remove(); 7211 } 7212 } 7213 7214 if (_.$nextArrow && _.$nextArrow.length) { 7215 7216 _.$nextArrow.removeClass('slick-disabled slick-arrow slick-hidden').removeAttr('aria-hidden aria-disabled tabindex').css('display', ''); 7217 7218 if (_.htmlExpr.test(_.options.nextArrow)) { 7219 _.$nextArrow.remove(); 7220 } 7221 } 7222 7223 if (_.$slides) { 7224 7225 _.$slides.removeClass('slick-slide slick-active slick-center slick-visible slick-current').removeAttr('aria-hidden').removeAttr('data-slick-index').each(function () { 7226 $(this).attr('style', $(this).data('originalStyling')); 7227 }); 7228 7229 _.$slideTrack.children(this.options.slide).detach(); 7230 7231 _.$slideTrack.detach(); 7232 7233 _.$list.detach(); 7234 7235 _.$slider.append(_.$slides); 7236 } 7237 7238 _.cleanUpRows(); 7239 7240 _.$slider.removeClass('slick-slider'); 7241 _.$slider.removeClass('slick-initialized'); 7242 _.$slider.removeClass('slick-dotted'); 7243 7244 _.unslicked = true; 7245 7246 if (!refresh) { 7247 _.$slider.trigger('destroy', [_]); 7248 } 7249 }; 7250 7251 Slick.prototype.disableTransition = function (slide) { 7252 7253 var _ = this, 7254 transition = {}; 7255 7256 transition[_.transitionType] = ''; 7257 7258 if (_.options.fade === false) { 7259 _.$slideTrack.css(transition); 7260 } else { 7261 _.$slides.eq(slide).css(transition); 7262 } 7263 }; 7264 7265 Slick.prototype.fadeSlide = function (slideIndex, callback) { 7266 7267 var _ = this; 7268 7269 if (_.cssTransitions === false) { 7270 7271 _.$slides.eq(slideIndex).css({ 7272 zIndex: _.options.zIndex 7273 }); 7274 7275 _.$slides.eq(slideIndex).animate({ 7276 opacity: 1 7277 }, _.options.speed, _.options.easing, callback); 7278 } else { 7279 7280 _.applyTransition(slideIndex); 7281 7282 _.$slides.eq(slideIndex).css({ 7283 opacity: 1, 7284 zIndex: _.options.zIndex 7285 }); 7286 7287 if (callback) { 7288 setTimeout(function () { 7289 7290 _.disableTransition(slideIndex); 7291 7292 callback.call(); 7293 }, _.options.speed); 7294 } 7295 } 7296 }; 7297 7298 Slick.prototype.fadeSlideOut = function (slideIndex) { 7299 7300 var _ = this; 7301 7302 if (_.cssTransitions === false) { 7303 7304 _.$slides.eq(slideIndex).animate({ 7305 opacity: 0, 7306 zIndex: _.options.zIndex - 2 7307 }, _.options.speed, _.options.easing); 7308 } else { 7309 7310 _.applyTransition(slideIndex); 7311 7312 _.$slides.eq(slideIndex).css({ 7313 opacity: 0, 7314 zIndex: _.options.zIndex - 2 7315 }); 7316 } 7317 }; 7318
7319 Slick.prototype.filterSlides = Slick.prototype.slickFilter = function (filter) { 7320 7321 var _ = this; 7322 7323 if (filter !== null) { 7324 7325 _.$slidesCache = _.$slides; 7326 7327 _.unload(); 7328 7329 _.$slideTrack.children(this.options.slide).detach(); 7330 7331 _.$slidesCache.filter(filter).appendTo(_.$slideTrack); 7332 7333 _.reinit(); 7334 } 7335 }; 7336 7337 Slick.prototype.focusHandler = function () { 7338 7339 var _ = this; 7340 7341 _.$slider.off('focus.slick blur.slick').on('focus.slick blur.slick', '*:not(.slick-arrow)', function (event) { 7342 7343 event.stopImmediatePropagation(); 7344 var $sf = $(this); 7345 7346 setTimeout(function () { 7347 7348 if (_.options.pauseOnFocus) { 7349 _.focussed = $sf.is(':focus'); 7350 _.autoPlay(); 7351 } 7352 }, 0); 7353 }); 7354 }; 7355 7356 Slick.prototype.getCurrent = Slick.prototype.slickCurrentSlide = function () { 7357 7358 var _ = this; 7359 return _.currentSlide; 7360 }; 7361 7362 Slick.prototype.getDotCount = function () { 7363 7364 var _ = this; 7365 7366 var breakPoint = 0; 7367 var counter = 0; 7368 var pagerQty = 0; 7369 7370 if (_.options.infinite === true) { 7371 while (breakPoint < _.slideCount) { 7372 ++pagerQty; 7373 breakPoint = counter + _.options.slidesToScroll; 7374 counter += _.options.slidesToScroll <= _.options.slidesToShow ? _.options.slidesToScroll : _.options.slidesToShow; 7375 } 7376 } else if (_.options.centerMode === true) { 7377 pagerQty = _.slideCount; 7378 } else if (!_.options.asNavFor) { 7379 pagerQty = 1 + Math.ceil((_.slideCount - _.options.slidesToShow) / _.options.slidesToScroll); 7380 } else { 7381 while (breakPoint < _.slideCount) { 7382 ++pagerQty; 7383 breakPoint = counter + _.options.slidesToScroll; 7384 counter += _.options.slidesToScroll <= _.options.slidesToShow ? _.options.slidesToScroll : _.options.slidesToShow; 7385 } 7386 } 7387 7388 return pagerQty - 1; 7389 }; 7390 7391 Slick.prototype.getLeft = function (slideIndex) { 7392 7393 var _ = this, 7394 targetLeft, 7395 verticalHeight, 7396 verticalOffset = 0, 7397 targetSlide; 7398 7399 _.slideOffset = 0; 7400 verticalHeight = _.$slides.first().outerHeight(true); 7401 7402 if (_.options.infinite === true) { 7403 if (_.slideCount > _.options.slidesToShow) { 7404 _.slideOffset = _.slideWidth * _.options.slidesToShow * -1; 7405 verticalOffset = verticalHeight * _.options.slidesToShow * -1; 7406 } 7407 if (_.slideCount % _.options.slidesToScroll !== 0) { 7408 if (slideIndex + _.options.slidesToScroll > _.slideCount && _.slideCount > _.options.slidesToShow) { 7409 if (slideIndex > _.slideCount) { 7410 _.slideOffset = (_.options.slidesToShow - (sl
7410ideIndex - _.slideCount)) * _.slideWidth * -1; 7411 verticalOffset = (_.options.slidesToShow - (slideIndex - _.slideCount)) * verticalHeight * -1; 7412 } else { 7413 _.slideOffset = _.slideCount % _.options.slidesToScroll * _.slideWidth * -1; 7414 verticalOffset = _.slideCount % _.options.slidesToScroll * verticalHeight * -1; 7415 } 7416 } 7417 } 7418 } else { 7419 if (slideIndex + _.options.slidesToShow > _.slideCount) { 7420 _.slideOffset = (slideIndex + _.options.slidesToShow - _.slideCount) * _.slideWidth; 7421 verticalOffset = (slideIndex + _.options.slidesToShow - _.slideCount) * verticalHeight; 7422 } 7423 } 7424 7425 if (_.slideCount <= _.options.slidesToShow) { 7426 _.slideOffset = 0; 7427 verticalOffset = 0; 7428 } 7429 7430 if (_.options.centerMode === true && _.options.infinite === true) { 7431 _.slideOffset += _.slideWidth * Math.floor(_.options.slidesToShow / 2) - _.slideWidth; 7432 } else if (_.options.centerMode === true) { 7433 _.slideOffset = 0; 7434 _.slideOffset += _.slideWidth * Math.floor(_.options.slidesToShow / 2); 7435 } 7436 7437 if (_.options.vertical === false) { 7438 targetLeft = slideIndex * _.slideWidth * -1 + _.slideOffset; 7439 } else { 7440 targetLeft = slideIndex * verticalHeight * -1 + verticalOffset; 7441 } 7442 7443 if (_.options.variableWidth === true) { 7444
vendor: 4,449 bytes, lines 7445-7589
7445 if (_.slideCount <= _.options.slidesToShow || _.options.infinite === false) { 7446 targetSlide = _.$slideTrack.children('.slick-slide').eq(slideIndex); 7447 } else { 7448 targetSlide = _.$slideTrack.children('.slick-slide').eq(slideIndex + _.options.slidesToShow); 7449 } 7450 7451 if (_.options.rtl === true) { 7452 if (targetSlide[0]) { 7453 targetLeft = (_.$slideTrack.width() - targetSlide[0].offsetLeft - targetSlide.width()) * -1; 7454 } else { 7455 targetLeft = 0; 7456 } 7457 } else { 7458 targetLeft = targetSlide[0] ? targetSlide[0].offsetLeft * -1 : 0; 7459 } 7460 7461 if (_.options.centerMode === true) { 7462 if (_.slideCount <= _.options.slidesToShow || _.options.infinite === false) { 7463 targetSlide = _.$slideTrack.children('.slick-slide').eq(slideIndex); 7464 } else { 7465 targetSlide = _.$slideTrack.children('.slick-slide').eq(slideIndex + _.options.slidesToShow + 1); 7466 } 7467 7468 if (_.options.rtl === true) { 7469 if (targetSlide[0]) { 7470 targetLeft = (_.$slideTrack.width() - targetSlide[0].offsetLeft - targetSlide.width()) * -1; 7471 } else { 7472 targetLeft = 0; 7473 } 7474 } else { 7475 targetLeft = targetSlide[0] ? targetSlide[0].offsetLeft * -1 : 0; 7476 } 7477 7478 targetLeft += (_.$list.width() - targetSlide.outerWidth()) / 2; 7479 } 7480 } 7481 7482 return targetLeft; 7483 }; 7484 7485 Slick.prototype.getOption = Slick.prototype.slickGetOption = function (option) { 7486 7487 var _ = this; 7488 7489 return _.options[option]; 7490 }; 7491 7492 Slick.prototype.getNavigableIndexes = function () { 7493 7494 var _ = this, 7495 breakPoint = 0, 7496 counter = 0, 7497 indexes = [], 7498 max; 7499 7500 if (_.options.infinite === false) { 7501 max = _.slideCount; 7502 } else { 7503 breakPoint = _.options.slidesToScroll * -1; 7504 counter = _.options.slidesToScroll * -1; 7505 max = _.slideCount * 2; 7506 } 7507 7508 while (breakPoint < max) { 7509 indexes.push(breakPoint); 7510 breakPoint = counter + _.options.slidesToScroll; 7511 counter += _.options.slidesToScroll <= _.options.slidesToShow ? _.options.slidesToScroll : _.options.slidesToShow; 7512 } 7513 7514 return indexes; 7515 }; 7516 7517 Slick.prototype.getSlick = function () { 7518 7519 return this; 7520 }; 7521 7522 Slick.prototype.getSlideCount = function () { 7523 7524 var _ = this, 7525 slidesTraversed, 7526 swipedSlide, 7527 centerOffset; 7528 7529 centerOffset = _.options.centerMode === true ? _.slideWidth * Math.floor(_.options.slidesToShow / 2) : 0; 7530 7531 if (_.options.swipeToSlide === true) { 7532 _.$slideTrack.find('.slick-slide').each(function (index, slide) { 7533 if (slide.offsetLeft - centerOffset + $(slide).outerWidth() / 2 > _.swipeLeft * -1) { 7534 swipedSlide = slide; 7535 return false; 7536 } 7537 }); 7538 7539 slidesTraversed = Math.abs($(swipedSlide).attr('data-slick-index') - _.currentSlide) || 1; 7540 7541 return slidesTraversed; 7542 } else { 7543 return _.options.slidesToScroll; 7544 } 7545 }; 7546 7547 Slick.prototype.goTo = Slick.prototype.slickGoTo = function (slide, dontAnimate) { 7548 7549 var _ = this; 7550 7551 _.changeSlide({ 7552 data: { 7553 message: 'index', 7554 index: parseInt(slide) 7555 } 7556 }, dontAnimate); 7557 }; 7558 7559 Slick.prototype.init = function (creation) { 7560 7561 var _ = this; 7562 7563 if (!$(_.$slider).hasClass('slick-initialized')) { 7564 7565 $(_.$slider).addClass('slick-initialized'); 7566 7567 _.buildRows(); 7568 _.buildOut(); 7569 _.setProps(); 7570 _.startLoad(); 7571 _.loadSlider(); 7572 _.initializeEvents(); 7573 _.updateArrows(); 7574 _.updateDots(); 7575 _.checkResponsive(true); 7576 _.focusHandler(); 7577 } 7578 7579 if (creation) { 7580 _.$slider.trigger('init', [_]); 7581 } 7582 7583 if (_.options.accessibility === true) { 7584 _.initADA(); 7585 } 7586 7587 if (_.options.autoplay) { 7588 7589 _.paused = false;
7590 _.autoPlay(); 7591 } 7592 }; 7593 7594 Slick.prototype.initADA = function () { 7595 var _ = this; 7596 _.$slides.add(_.$slideTrack.find('.slick-cloned')).attr({ 7597 'aria-hidden': 'true', 7598 'tabindex': '-1' 7599 }).find('a, input, button, select').attr({ 7600 'tabindex': '-1' 7601 }); 7602 7603 _.$slideTrack.attr('role', 'listbox'); 7604 7605 _.$slides.not(_.$slideTrack.find('.slick-cloned')).each(function (i) { 7606 $(this).attr({ 7607 'role': 'option' 7608 }); 7609 }); 7610 7611 if (_.$dots !== null) { 7612 _.$dots.find('li').each(function (i) { 7613 $(this).attr({ 7614 'id': 'slick-slide' + _.instanceUid + i + '' 7615 }); 7616 }).end().find('button').attr('role', 'button').end().closest('div').attr('role', 'toolbar'); 7617 } 7618 _.activateADA(); 7619 }; 7620 7621 Slick.prototype.initArrowEvents = function () { 7622 7623 var _ = this; 7624 7625 if (_.options.arrows === true && _.slideCount > _.options.slidesToShow) { 7626 _.$prevArrow.off('click.slick').on('click.slick', { 7627 message: 'previous' 7628 }, _.changeSlide); 7629 _.$nextArrow.off('click.slick').on('click.slick', { 7630 message: 'next' 7631 }, _.changeSlide); 7632 } 7633 }; 7634 7635 Slick.prototype.initDotEvents = function () { 7636 7637 var _ = this; 7638 7639 if (_.options.dots === true && _.slideCount > _.options.slidesToShow) { 7640 $('li', _.$dots).on('click.slick', { 7641 message: 'index' 7642 }, _.changeSlide); 7643 } 7644 7645 if (_.options.dots === true && _.options.pauseOnDotsHover === true) { 7646 7647 $('li', _.$dots).on('mouseenter.slick', $.proxy(_.interrupt, _, true)).on('mouseleave.slick', $.proxy(_.interrupt, _, false)); 7648 } 7649 }; 7650 7651 Slick.prototype.initSlideEvents = function () { 7652 7653 var _ = this; 7654 7655 if (_.options.pauseOnHover) { 7656 7657 _.$list.on('mouseenter.slick', $.proxy(_.interrupt, _, true)); 7658 _.$list.on('mouseleave.slick', $.proxy(_.interrupt, _, false)); 7659 } 7660 }; 7661 7662 Slick.prototype.initializeEvents = function () { 7663 7664 var _ = this; 7665 7666 _.initArrowEvents(); 7667 7668 _.initDotEvents(); 7669 _.initSlideEvents(); 7670 7671 _.$list.on('touchstart.slick mousedown.slick', { 7672 action: 'start' 7673 }, _.swipeHandler); 7674 _.$list.on('touchmove.slick mousemove.slick', { 7675 action: 'move' 7676 }, _.swipeHandler); 7677 _.$list.on('touchend.slick mouseup.slick', { 7678 action: 'end' 7679 }, _.swipeHandler);
vendor: 28,858 bytes, lines 7680-8613
7680 _.$list.on('touchcancel.slick mouseleave.slick', { 7681 action: 'end' 7682 }, _.swipeHandler); 7683 7684 _.$list.on('click.slick', _.clickHandler); 7685 7686 $(document).on(_.visibilityChange, $.proxy(_.visibility, _)); 7687 7688 if (_.options.accessibility === true) { 7689 _.$list.on('keydown.slick', _.keyHandler); 7690 } 7691 7692 if (_.options.focusOnSelect === true) { 7693 $(_.$slideTrack).children().on('click.slick', _.selectHandler); 7694 } 7695 7696 $(window).on('orientationchange.slick.slick-' + _.instanceUid, $.proxy(_.orientationChange, _)); 7697 7698 $(window).on('resize.slick.slick-' + _.instanceUid, $.proxy(_.resize, _)); 7699 7700 $('[draggable!=true]', _.$slideTrack).on('dragstart', _.preventDefault); 7701 7702 $(window).on('load.slick.slick-' + _.instanceUid, _.setPosition); 7703 $(document).on('ready.slick.slick-' + _.instanceUid, _.setPosition); 7704 }; 7705 7706 Slick.prototype.initUI = function () { 7707 7708 var _ = this; 7709 7710 if (_.options.arrows === true && _.slideCount > _.options.slidesToShow) { 7711 7712 _.$prevArrow.show(); 7713 _.$nextArrow.show(); 7714 } 7715 7716 if (_.options.dots === true && _.slideCount > _.options.slidesToShow) { 7717 7718 _.$dots.show(); 7719 } 7720 }; 7721 7722 Slick.prototype.keyHandler = function (event) { 7723 7724 var _ = this; 7725 //Dont slide if the cursor is inside the form fields and arrow keys are pressed 7726 if (!event.target.tagName.match('TEXTAREA|INPUT|SELECT')) { 7727 if (event.keyCode === 37 && _.options.accessibility === true) { 7728 _.changeSlide({ 7729 data: { 7730 message: _.options.rtl === true ? 'next' : 'previous' 7731 } 7732 }); 7733 } else if (event.keyCode === 39 && _.options.accessibility === true) { 7734 _.changeSlide({ 7735 data: { 7736 message: _.options.rtl === true ? 'previous' : 'next' 7737 } 7738 }); 7739 } 7740 } 7741 }; 7742 7743 Slick.prototype.lazyLoad = function () { 7744 7745 var _ = this, 7746 loadRange, 7747 cloneRange, 7748 rangeStart, 7749 rangeEnd; 7750 7751 function loadImages(imagesScope) { 7752 7753 $('img[data-lazy]', imagesScope).each(function () { 7754 7755 var image = $(this), 7756 imageSource = $(this).attr('data-lazy'), 7757 imageToLoad = document.createElement('img'); 7758 7759 imageToLoad.onload = function () { 7760 7761 /*image 7762 .animate({ opacity: 0 }, 100, function() { 7763 image 7764 .attr('src', imageSource) 7765 .animate({ opacity: 1 }, 200, function() { 7766 image 7767 .removeAttr('data-lazy') 7768 .removeClass('slick-loading'); 7769 }); 7770 _.$slider.trigger('lazyLoaded', [_, image, imageSource]); 7771 });*/ 7772 image.attr('src', imageSource).removeAttr('data-lazy').removeClass('slick-loading'); 7773 _.$slider.trigger('lazyLoaded', [_, image, imageSource]); 7774 }; 7775 7776 imageToLoad.onerror = function () { 7777 7778 image.removeAttr('data-lazy').removeClass('slick-loading').addClass('slick-lazyload-error'); 7779 7780 _.$slider.trigger('lazyLoadError', [_, image, imageSource]); 7781 }; 7782 7783 imageToLoad.src = imageSource; 7784 }); 7785 } 7786 7787 if (_.options.centerMode === true) { 7788 if (_.options.infinite === true) { 7789 rangeStart = _.currentSlide + (_.options.slidesToShow / 2 + 1); 7790 rangeEnd = rangeStart + _.options.slidesToShow + 2; 7791 } else { 7792 rangeStart = Math.max(0, _.currentSlide - (_.options.slidesToShow / 2 + 1)); 7793 rangeEnd = 2 + (_.options.slidesToShow / 2 + 1) + _.currentSlide; 7794 } 7795 } else { 7796 rangeStart = _.options.infinite ? _.options.slidesToShow + _.currentSlide : _.currentSlide; 7797 rangeEnd = Math.ceil(rangeStart + _.options.slidesToShow); 7798 if (_.options.fade === true) { 7799 if (rangeStart > 0) rangeStart--; 7800 if (rangeEnd <= _.slideCount) rangeEnd++; 7801 } 7802 } 7803 7804 loadRange = _.$slider.find('.slick-slide').slice(rangeStart, rangeEnd); 7805 loadImages(loadRange); 7806 7807 if (_.slideCount <= _.options.slidesToShow) { 7808 cloneRange = _.$slider.find('.slick-slide'); 7809 loadImages(cloneRange); 7810 } else if (_.currentSlide >= _.slideCount - _.options.slidesToShow) { 7811 cloneRange = _.$slider.find('.slick-cloned').slice(0, _.options.slidesToShow); 7812 loadImages(cloneRange); 7813 } else if (_.currentSlide === 0) { 7814 cloneRange = _.$slider.find('.slick-cloned').slice(_.options.slidesToShow * -1); 7815 loadImages(cloneRange); 7816 } 7817 }; 7818 7819 Slick.prototype.loadSlider = function () { 7820 7821 var _ = this; 7822 7823 _.setPosition(); 7824 7825 _.$slideTrack.css({ 7826 opacity: 1 7827 }); 7828 7829 _.$slider.removeClass('slick-loading'); 7830 7831 _.initUI(); 7832 7833 if (_.options.lazyLoad === 'progressive') { 7834 _.progressiveLazyLoad(); 7835 } 7836 }; 7837 7838 Slick.prototype.next = Slick.prototype.slickNext = function () { 7839 7840 var _ = this; 7841 7842 _.changeSlide({ 7843 data: { 7844 message: 'next' 7845 } 7846 }); 7847 }; 7848 7849 Slick.prototype.orientationChange = function () { 7850 7851 var _ = this; 7852 7853 _.checkResponsive(); 7854 _.setPosition(); 7855 }; 7856 7857 Slick.prototype.pause = Slick.prototype.slickPause = function () { 7858 7859 var _ = this; 7860 7861 _.autoPlayClear(); 7862 _.paused = true; 7863 }; 7864 7865 Slick.prototype.play = Slick.prototype.slickPlay = function () { 7866 7867 var _ = this; 7868 7869 _.autoPlay(); 7870 _.options.autoplay = true; 7871 _.paused = false; 7872 _.focussed = false; 7873 _.interrupted = false; 7874 }; 7875 7876 Slick.prototype.postSlide = function (index) { 7877 7878 var _ = this; 7879 7880 if (!_.unslicked) { 7881 7882 _.$slider.trigger('afterChange', [_, index]); 7883 7884 _.animating = false; 7885 7886 _.setPosition(); 7887 7888 _.swipeLeft = null; 7889 7890 if (_.options.autoplay) { 7891 _.autoPlay(); 7892 } 7893 7894 if (_.options.accessibility === true) { 7895 _.initADA(); 7896 } 7897 } 7898 }; 7899 7900 Slick.prototype.prev = Slick.prototype.slickPrev = function () { 7901 7902 var _ = this; 7903 7904 _.changeSlide({ 7905 data: { 7906 message: 'previous' 7907 } 7908 }); 7909 }; 7910 7911 Slick.prototype.preventDefault = function (event) { 7912 7913 event.preventDefault(); 7914 }; 7915 7916 Slick.prototype.progressiveLazyLoad = function (tryCount) { 7917 7918 tryCount = tryCount || 1; 7919 7920 var _ = this, 7921 $imgsToLoad = $('img[data-lazy]', _.$slider), 7922 image, 7923 imageSource, 7924 imageToLoad; 7925 7926 if ($imgsToLoad.length) { 7927 7928 image = $imgsToLoad.first(); 7929 imageSource = image.attr('data-lazy'); 7930 imageToLoad = document.createElement('img'); 7931 7932 imageToLoad.onload = function () { 7933 7934 image.attr('src', imageSource).removeAttr('data-lazy').removeClass('slick-loading'); 7935 7936 if (_.options.adaptiveHeight === true) { 7937 _.setPosition(); 7938 } 7939 7940 _.$slider.trigger('lazyLoaded', [_, image, imageSource]); 7941 _.progressiveLazyLoad(); 7942 }; 7943 7944 imageToLoad.onerror = function () { 7945 7946 if (tryCount < 3) { 7947 7948 /** 7949 * try to load the image 3 times, 7950 * leave a slight delay so we don't get 7951 * servers blocking the request. 7952 */ 7953 setTimeout(function () { 7954 _.progressiveLazyLoad(tryCount + 1); 7955 }, 500); 7956 } else { 7957 7958 image.removeAttr('data-lazy').removeClass('slick-loading').addClass('slick-lazyload-error'); 7959 7960 _.$slider.trigger('lazyLoadError', [_, image, imageSource]); 7961 7962 _.progressiveLazyLoad(); 7963 } 7964 }; 7965 7966 imageToLoad.src = imageSource; 7967 } else { 7968 7969 _.$slider.trigger('allImagesLoaded', [_]); 7970 } 7971 }; 7972 7973 Slick.prototype.refresh = function (initializing) { 7974 7975 var _ = this, 7976 currentSlide, 7977 lastVisibleIndex; 7978 7979 lastVisibleIndex = _.slideCount - _.options.slidesToShow; 7980 7981 // in non-infinite sliders, we don't want to go past the 7982 // last visible index. 7983 if (!_.options.infinite && _.currentSlide > lastVisibleIndex) { 7984 _.currentSlide = lastVisibleIndex; 7985 } 7986 7987 // if less slides than to show, go to start. 7988 if (_.slideCount <= _.options.slidesToShow) { 7989 _.currentSlide = 0; 7990 } 7991 7992 currentSlide = _.currentSlide; 7993 7994 _.destroy(true); 7995 7996 $.extend(_, _.initials, { currentSlide: currentSlide }); 7997 7998 _.init(); 7999 8000 if (!initializing) { 8001 8002 _.changeSlide({ 8003 data: { 8004 message: 'index', 8005 index: currentSlide 8006 } 8007 }, false); 8008 } 8009 }; 8010 8011 Slick.prototype.registerBreakpoints = function () { 8012 8013 var _ = this, 8014 breakpoint, 8015 currentBreakpoint, 8016 l, 8017 responsiveSettings = _.options.responsive || null; 8018 8019 if ($.type(responsiveSettings) === 'array' && responsiveSettings.length) { 8020 8021 _.respondTo = _.options.respondTo || 'window'; 8022 8023 for (breakpoint in responsiveSettings) { 8024 8025 l = _.breakpoints.length - 1; 8026 currentBreakpoint = responsiveSettings[breakpoint].breakpoint; 8027 8028 if (responsiveSettings.hasOwnProperty(breakpoint)) { 8029 8030 // loop through the breakpoints and cut out any existing 8031 // ones with the same breakpoint number, we don't want dupes. 8032 while (l >= 0) { 8033 if (_.breakpoints[l] && _.breakpoints[l] === currentBreakpoint) { 8034 _.breakpoints.splice(l, 1); 8035 } 8036 l--; 8037 } 8038 8039 _.breakpoints.push(currentBreakpoint); 8040 _.breakpointSettings[currentBreakpoint] = responsiveSettings[breakpoint].settings; 8041 } 8042 } 8043 8044 _.breakpoints.sort(function (a, b) { 8045 return _.options.mobileFirst ? a - b : b - a; 8046 }); 8047 } 8048 }; 8049 8050 Slick.prototype.reinit = function () { 8051 8052 var _ = this; 8053 8054 _.$slides = _.$slideTrack.children(_.options.slide).addClass('slick-slide'); 8055 8056 _.slideCount = _.$slides.length; 8057 8058 if (_.currentSlide >= _.slideCount && _.currentSlide !== 0) { 8059 _.currentSlide = _.currentSlide - _.options.slidesToScroll; 8060 } 8061 8062 if (_.slideCount <= _.options.slidesToShow) { 8063 _.currentSlide = 0; 8064 } 8065 8066 _.registerBreakpoints(); 8067 8068 _.setProps(); 8069 _.setupInfinite(); 8070 _.buildArrows(); 8071 _.updateArrows(); 8072 _.initArrowEvents(); 8073 _.buildDots(); 8074 _.updateDots(); 8075 _.initDotEvents(); 8076 _.cleanUpSlideEvents(); 8077 _.initSlideEvents(); 8078 8079 _.checkResponsive(false, true); 8080 8081 if (_.options.focusOnSelect === true) { 8082 $(_.$slideTrack).children().on('click.slick', _.selectHandler); 8083 } 8084 8085 _.setSlideClasses(typeof _.currentSlide === 'number' ? _.currentSlide : 0); 8086 8087 _.setPosition(); 8088 _.focusHandler(); 8089 8090 _.paused = !_.options.autoplay; 8091 _.autoPlay(); 8092 8093 _.$slider.trigger('reInit', [_]); 8094 }; 8095 8096 Slick.prototype.resize = function () { 8097 8098 var _ = this; 8099 8100 if ($(window).width() !== _.windowWidth) { 8101 clearTimeout(_.windowDelay); 8102 _.windowDelay = window.setTimeout(function () { 8103 _.windowWidth = $(window).width(); 8104 _.checkResponsive(); 8105 if (!_.unslicked) { 8106 _.setPosition(); 8107 } 8108 }, 50); 8109 } 8110 }; 8111 8112 Slick.prototype.removeSlide = Slick.prototype.slickRemove = function (index, removeBefore, removeAll) { 8113 8114 var _ = this; 8115 8116 if (typeof index === 'boolean') { 8117 removeBefore = index; 8118 index = removeBefore === true ? 0 : _.slideCount - 1; 8119 } else { 8120 index = removeBefore === true ? --index : index; 8121 } 8122 8123 if (_.slideCount < 1 || index < 0 || index > _.slideCount - 1) { 8124 return false; 8125 } 8126 8127 _.unload(); 8128 8129 if (removeAll === true) { 8130 _.$slideTrack.children().remove(); 8131 } else { 8132 _.$slideTrack.children(this.options.slide).eq(index).remove(); 8133 } 8134 8135 _.$slides = _.$slideTrack.children(this.options.slide); 8136 8137 _.$slideTrack.children(this.options.slide).detach(); 8138 8139 _.$slideTrack.append(_.$slides); 8140 8141 _.$slidesCache = _.$slides; 8142 8143 _.reinit(); 8144 }; 8145 8146 Slick.prototype.setCSS = function (position) { 8147 8148 var _ = this, 8149 positionProps = {}, 8150 x, 8151 y; 8152 8153 if (_.options.rtl === true) { 8154 position = -position; 8155 } 8156 x = _.positionProp == 'left' ? Math.ceil(position) + 'px' : '0px'; 8157 y = _.positionProp == 'top' ? Math.ceil(position) + 'px' : '0px'; 8158 8159 positionProps[_.positionProp] = position; 8160 8161 if (_.transformsEnabled === false) { 8162 _.$slideTrack.css(positionProps); 8163 } else { 8164 positionProps = {}; 8165 if (_.cssTransitions === false) { 8166 positionProps[_.animType] = 'translate(' + x + ', ' + y + ')'; 8167 _.$slideTrack.css(positionProps); 8168 } else { 8169 positionProps[_.animType] = 'translate3d(' + x + ', ' + y + ', 0px)'; 8170 _.$slideTrack.css(positionProps); 8171 } 8172 } 8173 }; 8174 8175 Slick.prototype.setDimensions = function () { 8176 8177 var _ = this; 8178 8179 if (_.options.vertical === false) { 8180 if (_.options.centerMode === true) { 8181 _.$list.css({ 8182 padding: '0px ' + _.options.centerPadding 8183 }); 8184 } 8185 } else { 8186 _.$list.height(_.$slides.first().outerHeight(true) * _.options.slidesToShow); 8187 if (_.options.centerMode === true) { 8188 _.$list.css({ 8189 padding: _.options.centerPadding + ' 0px' 8190 }); 8191 } 8192 } 8193 8194 _.listWidth = _.$list.width(); 8195 _.listHeight = _.$list.height(); 8196 8197 if (_.options.vertical === false && _.options.variableWidth === false) { 8198 _.slideWidth = _.listWidth / _.options.slidesToShow; 8199 _.$slideTrack.width(Math.ceil(_.slideWidth * _.$slideTrack.children('.slick-slide').length)); 8200 } else if (_.options.variableWidth === true) { 8201 _.$slideTrack.width(5000 * _.slideCount); 8202 } else { 8203 _.slideWidth = Math.ceil(_.listWidth); 8204 _.$slideTrack.height(Math.ceil(_.$slides.first().outerHeight(true) * _.$slideTrack.children('.slick-slide').length)); 8205 } 8206 8207 var offset = _.$slides.first().outerWidth(true) - _.$slides.first().width(); 8208 if (_.options.variableWidth === false) _.$slideTrack.children('.slick-slide').width(_.slideWidth - offset); 8209 }; 8210 8211 Slick.prototype.setFade = function () { 8212 8213 var _ = this, 8214 targetLeft; 8215 8216 _.$slides.each(function (index, element) { 8217 targetLeft = _.slideWidth * index * -1; 8218 if (_.options.rtl === true) { 8219 $(element).css({ 8220 position: 'relative', 8221 right: targetLeft, 8222 top: 0, 8223 zIndex: _.options.zIndex - 2, 8224 opacity: 0 8225 }); 8226 } else { 8227 $(element).css({ 8228 position: 'relative', 8229 left: targetLeft, 8230 top: 0, 8231 zIndex: _.options.zIndex - 2, 8232 opacity: 0 8233 }); 8234 } 8235 }); 8236 8237 _.$slides.eq(_.currentSlide).css({ 8238 zIndex: _.options.zIndex - 1, 8239 opacity: 1 8240 }); 8241 }; 8242 8243 Slick.prototype.setHeight = function () { 8244 8245 var _ = this; 8246 8247 if (_.options.slidesToShow === 1 && _.options.adaptiveHeight === true && _.options.vertical === false) { 8248 var targetHeight = _.$slides.eq(_.currentSlide).outerHeight(true); 8249 _.$list.css('height', targetHeight); 8250 } 8251 }; 8252 8253 Slick.prototype.setOption = Slick.prototype.slickSetOption = function () { 8254 8255 /** 8256 * accepts arguments in format of: 8257 * 8258 * - for changing a single option's value: 8259 * .slick("setOption", option, value, refresh ) 8260 * 8261 * - for changing a set of responsive options: 8262 * .slick("setOption", 'responsive', [{}, ...], refresh ) 8263 * 8264 * - for updating multiple values at once (not responsive) 8265 * .slick("setOption", { 'option': value, ... }, refresh ) 8266 */ 8267 8268 var _ = this, 8269 l, 8270 item, 8271 option, 8272 value, 8273 refresh = false, 8274 type; 8275 8276 if ($.type(arguments[0]) === 'object') { 8277 8278 option = arguments[0]; 8279 refresh = arguments[1]; 8280 type = 'multiple'; 8281 } else if ($.type(arguments[0]) === 'string') { 8282 8283 option = arguments[0]; 8284 value = arguments[1]; 8285 refresh = arguments[2]; 8286 8287 if (arguments[0] === 'responsive' && $.type(arguments[1]) === 'array') { 8288 8289 type = 'responsive'; 8290 } else if (typeof arguments[1] !== 'undefined') { 8291 8292 type = 'single'; 8293 } 8294 } 8295 8296 if (type === 'single') { 8297 8298 _.options[option] = value; 8299 } else if (type === 'multiple') { 8300 8301 $.each(option, function (opt, val) { 8302 8303 _.options[opt] = val; 8304 }); 8305 } else if (type === 'responsive') { 8306 8307 for (item in value) { 8308 8309 if ($.type(_.options.responsive) !== 'array') { 8310 8311 _.options.responsive = [value[item]]; 8312 } else { 8313 8314 l = _.options.responsive.length - 1; 8315 8316 // loop through the responsive object and splice out duplicates. 8317 while (l >= 0) { 8318 8319 if (_.options.responsive[l].breakpoint === value[item].breakpoint) { 8320 8321 _.options.responsive.splice(l, 1); 8322 } 8323 8324 l--; 8325 } 8326 8327 _.options.responsive.push(value[item]); 8328 } 8329 } 8330 } 8331 8332 if (refresh) { 8333 8334 _.unload(); 8335 _.reinit(); 8336 } 8337 }; 8338 8339 Slick.prototype.setPosition = function () { 8340 8341 var _ = this; 8342 8343 _.setDimensions(); 8344 8345 _.setHeight(); 8346 8347 if (_.options.fade === false) { 8348 _.setCSS(_.getLeft(_.currentSlide)); 8349 } else { 8350 _.setFade(); 8351 } 8352 8353 _.$slider.trigger('setPosition', [_]); 8354 }; 8355 8356 Slick.prototype.setProps = function () { 8357 8358 var _ = this, 8359 bodyStyle = document.body.style; 8360 8361 _.positionProp = _.options.vertical === true ? 'top' : 'left'; 8362 8363 if (_.positionProp === 'top') { 8364 _.$slider.addClass('slick-vertical'); 8365 } else { 8366 _.$slider.removeClass('slick-vertical'); 8367 } 8368 8369 if (bodyStyle.WebkitTransition !== undefined || bodyStyle.MozTransition !== undefined || bodyStyle.msTransition !== undefined) { 8370 if (_.options.useCSS === true) { 8371 _.cssTransitions = true; 8372 } 8373 } 8374 8375 if (_.options.fade) { 8376 if (typeof _.options.zIndex === 'number') { 8377 if (_.options.zIndex < 3) { 8378 _.options.zIndex = 3; 8379 } 8380 } else { 8381 _.options.zIndex = _.defaults.zIndex; 8382 } 8383 } 8384 8385 if (bodyStyle.OTransform !== undefined) { 8386 _.animType = 'OTransform'; 8387 _.transformType = '-o-transform'; 8388 _.transitionType = 'OTransition'; 8389 if (bodyStyle.perspectiveProperty === undefined && bodyStyle.webkitPerspective === undefined) _.animType = false; 8390 } 8391 if (bodyStyle.MozTransform !== undefined) { 8392 _.animType = 'MozTransform'; 8393 _.transformType = '-moz-transform'; 8394 _.transitionType = 'MozTransition'; 8395 if (bodyStyle.perspectiveProperty === undefined && bodyStyle.MozPerspective === undefined) _.animType = false; 8396 } 8397 if (bodyStyle.webkitTransform !== undefined) { 8398 _.animType = 'webkitTransform'; 8399 _.transformType = '-webkit-transform'; 8400 _.transitionType = 'webkitTransition'; 8401 if (bodyStyle.perspectiveProperty === undefined && bodyStyle.webkitPerspective === undefined) _.animType = false; 8402 } 8403 if (bodyStyle.msTransform !== undefined) { 8404 _.animType = 'msTransform'; 8405 _.transformType = '-ms-transform'; 8406 _.transitionType = 'msTransition'; 8407 if (bodyStyle.msTransform === undefined) _.animType = false; 8408 } 8409 if (bodyStyle.transform !== undefined && _.animType !== false) { 8410 _.animType = 'transform'; 8411 _.transformType = 'transform'; 8412 _.transitionType = 'transition'; 8413 } 8414 _.transformsEnabled = _.options.useTransform && _.animType !== null && _.animType !== false; 8415 }; 8416 8417 Slick.prototype.setSlideClasses = function (index) { 8418 8419 var _ = this, 8420 centerOffset, 8421 allSlides, 8422 indexOffset, 8423 remainder; 8424 8425 allSlides = _.$slider.find('.slick-slide').removeClass('slick-active slick-center slick-current').attr('aria-hidden', 'true'); 8426 8427 _.$slides.eq(index).addClass('slick-current'); 8428 8429 if (_.options.centerMode === true) { 8430 8431 centerOffset = Math.floor(_.options.slidesToShow / 2); 8432 8433 if (_.options.infinite === true) { 8434 8435 if (index >= centerOffset && index <= _.slideCount - 1 - centerOffset) { 8436 8437 _.$slides.slice(index - centerOffset, index + centerOffset + 1).addClass('slick-active').attr('aria-hidden', 'false'); 8438 } else { 8439 8440 indexOffset = _.options.slidesToShow + index; 8441 allSlides.slice(indexOffset - centerOffset + 1, indexOffset + centerOffset + 2).addClass('slick-active').attr('aria-hidden', 'false'); 8442 } 8443 8444 if (index === 0) { 8445 8446 allSlides.eq(allSlides.length - 1 - _.options.slidesToShow).addClass('slick-center'); 8447 } else if (index === _.slideCount - 1) { 8448 8449 allSlides.eq(_.options.slidesToShow).addClass('slick-center'); 8450 } 8451 } 8452 8453 _.$slides.eq(index).addClass('slick-center'); 8454 } else { 8455 8456 if (index >= 0 && index <= _.slideCount - _.options.slidesToShow) { 8457 8458 _.$slides.slice(index, index + _.options.slidesToShow).addClass('slick-active').attr('aria-hidden', 'false'); 8459 } else if (allSlides.length <= _.options.slidesToShow) { 8460 8461 allSlides.addClass('slick-active').attr('aria-hidden', 'false'); 8462 } else { 8463 8464 remainder = _.slideCount % _.options.slidesToShow; 8465 indexOffset = _.options.infinite === true ? _.options.slidesToShow + index : index; 8466 8467 if (_.options.slidesToShow == _.options.slidesToScroll && _.slideCount - index < _.options.slidesToShow) { 8468 8469 allSlides.slice(indexOffset - (_.options.slidesToShow - remainder), indexOffset + remainder).addClass('slick-active').attr('aria-hidden', 'false'); 8470 } else { 8471 8472 allSlides.slice(indexOffset, indexOffset + _.options.slidesToShow).addClass('slick-active').attr('aria-hidden', 'false'); 8473 } 8474 } 8475 } 8476 8477 if (_.options.lazyLoad === 'ondemand') { 8478 _.lazyLoad(); 8479 } 8480 }; 8481 8482 Slick.prototype.setupInfinite = function () { 8483 8484 var _ = this, 8485 i, 8486 slideIndex, 8487 infiniteCount; 8488 8489 if (_.options.fade === true) { 8490 _.options.centerMode = false; 8491 } 8492 8493 if (_.options.infinite === true && _.options.fade === false) { 8494 8495 slideIndex = null; 8496 8497 if (_.slideCount > _.options.slidesToShow) { 8498 8499 if (_.options.centerMode === true) { 8500 infiniteCount = _.options.slidesToShow + 1; 8501 } else { 8502 infiniteCount = _.options.slidesToShow; 8503 } 8504 8505 for (i = _.slideCount; i > _.slideCount - infiniteCount; i -= 1) { 8506 slideIndex = i - 1; 8507 $(_.$slides[slideIndex]).clone(true).attr('id', '').attr('data-slick-index', slideIndex - _.slideCount).prependTo(_.$slideTrack).addClass('slick-cloned'); 8508 } 8509 for (i = 0; i < infiniteCount; i += 1) { 8510 slideIndex = i; 8511 $(_.$slides[slideIndex]).clone(true).attr('id', '').attr('data-slick-index', slideIndex + _.slideCount).appendTo(_.$slideTrack).addClass('slick-cloned'); 8512 } 8513 _.$slideTrack.find('.slick-cloned').find('[id]').each(function () { 8514 $(this).attr('id', ''); 8515 }); 8516 } 8517 } 8518 }; 8519 8520 Slick.prototype.interrupt = function (toggle) { 8521 8522 var _ = this; 8523 8524 if (!toggle) { 8525 _.autoPlay(); 8526 } 8527 _.interrupted = toggle; 8528 }; 8529 8530 Slick.prototype.selectHandler = function (event) { 8531 8532 var _ = this; 8533 8534 var targetElement = $(event.target).is('.slick-slide') ? $(event.target) : $(event.target).parents('.slick-slide'); 8535 8536 var index = parseInt(targetElement.attr('data-slick-index')); 8537 8538 if (!index) index = 0; 8539 8540 if (_.slideCount <= _.options.slidesToShow) { 8541 8542 _.setSlideClasses(index); 8543 _.asNavFor(index); 8544 return; 8545 } 8546 8547 _.slideHandler(index); 8548 }; 8549 8550 Slick.prototype.slideHandler = function (index, sync, dontAnimate) { 8551 8552 var targetSlide, 8553 animSlide, 8554 oldSlide, 8555 slideLeft, 8556 targetLeft = null, 8557 _ = this, 8558 navTarget; 8559 8560 sync = sync || false; 8561 8562 if (_.animating === true && _.options.waitForAnimate === true) { 8563 return; 8564 } 8565 8566 if (_.options.fade === true && _.currentSlide === index) { 8567 return; 8568 } 8569 8570 if (_.slideCount <= _.options.slidesToShow) { 8571 return; 8572 } 8573 8574 if (sync === false) { 8575 _.asNavFor(index); 8576 } 8577 8578 targetSlide = index; 8579 targetLeft = _.getLeft(targetSlide); 8580 slideLeft = _.getLeft(_.currentSlide); 8581 8582 _.currentLeft = _.swipeLeft === null ? slideLeft : _.swipeLeft; 8583 8584 if (_.options.infinite === false && _.options.centerMode === false && (index < 0 || index > _.getDotCount() * _.options.slidesToScroll)) { 8585 if (_.options.fade === false) { 8586 targetSlide = _.currentSlide; 8587 if (dontAnimate !== true) { 8588 _.animateSlide(slideLeft, function () { 8589 _.postSlide(targetSlide); 8590 }); 8591 } else { 8592 _.postSlide(targetSlide); 8593 } 8594 } 8595 return; 8596 } else if (_.options.infinite === false && _.options.centerMode === true && (index < 0 || index > _.slideCount - _.options.slidesToScroll)) { 8597 if (_.options.fade === false) { 8598 targetSlide = _.currentSlide; 8599 if (dontAnimate !== true) { 8600 _.animateSlide(slideLeft, function () { 8601 _.postSlide(targetSlide); 8602 }); 8603 } else { 8604 _.postSlide(targetSlide); 8605 } 8606 } 8607 return; 8608 } 8609 8610 if (_.options.autoplay) { 8611 clearInterval(_.autoPlayTimer); 8612 } 8613
8614 if (targetSlide < 0) { 8615 if (_.slideCount % _.options.slidesToScroll !== 0) { 8616 animSlide = _.slideCount - _.slideCount % _.options.slidesToScroll; 8617 } else { 8618 animSlide = _.slideCount + targetSlide; 8619 } 8620 } else if (targetSlide >= _.slideCount) { 8621 if (_.slideCount % _.options.slidesToScroll !== 0) { 8622 animSlide = 0; 8623 } else { 8624 animSlide = targetSlide - _.slideCount; 8625 } 8626 } else { 8627 animSlide = targetSlide; 8628 } 8629 8630 _.animating = true; 8631 8632 //_.$slider.trigger('beforeChange', [_, _.currentSlide, animSlide]); 8633 8634 oldSlide = _.currentSlide; 8635 _.currentSlide = animSlide; 8636 8637 _.setSlideClasses(_.currentSlide); 8638 8639 if (_.options.asNavFor) { 8640 8641 navTarget = _.getNavTarget(); 8642 navTarget = navTarget.slick('getSlick'); 8643 8644 if (navTarget.slideCount <= navTarget.options.slidesToShow) { 8645 navTarget.setSlideClasses(_.currentSlide); 8646 } 8647 } 8648 8649 _.$slider.trigger('beforeChange', [_, _.currentSlide, animSlide]); 8650 8651 _.updateDots(); 8652 _.updateArrows(); 8653 8654 if (_.options.fade === true) { 8655 if (dontAnimate !== true) { 8656 8657 _.fadeSlideOut(oldSlide); 8658 8659 _.fadeSlide(animSlide, function () { 8660 _.postSlide(animSlide); 8661 }); 8662 } else { 8663 _.postSlide(animSlide); 8664 } 8665 _.animateHeight(); 8666 return; 8667 } 8668 8669 if (dontAnimate !== true) { 8670 _.animateSlide(targetLeft, function () { 8671 _.postSlide(animSlide); 8672 }); 8673 } else { 8674 _.postSlide(animSlide); 8675 } 8676 }; 8677 8678 Slick.prototype.startLoad = function () { 8679 8680 var _ = this; 8681 8682 if (_.options.arrows === true && _.slideCount > _.options.slidesToShow) { 8683 8684 _.$prevArrow.hide(); 8685 _.$nextArrow.hide(); 8686 } 8687 8688 if (_.options.dots === true && _.slideCount > _.options.slidesToShow) { 8689 8690 _.$dots.hide(); 8691 } 8692 8693 _.$slider.addClass('slick-loading'); 8694 }; 8695 8696 Slick.prototype.swipeDirection = function () { 8697 8698 var xDist, 8699 yDist, 8700 r, 8701 swipeAngle, 8702 _ = this; 8703 8704 xDist = _.touchObject.startX - _.touchObject.curX; 8705 yDist = _.touchObject.startY - _.touchObject.curY; 8706 r = Math.atan2(yDist, xDist); 8707 8708 swipeAngle = Math.round(r * 180 / Math.PI); 8709 if (swipeAngle < 0) { 8710 swipeAngle = 360 - Math.abs(swipeAngle); 8711 } 8712 8713 if (swipeAngle <= 45 && swipeAngle >= 0) { 8714 return _.options.rtl === false ? 'left' : 'right'; 8715 } 8716 if (swipeAngle <= 360 && swipeAngle >= 315) { 8717 return _.options.rtl === false ? 'left' : 'right'; 8718 } 8719 if (swipeAngle >= 135 && swipeAngle <= 225) { 8720 return _.options.rtl === false ? 'right' : 'left'; 8721 } 8722 if (_.options.verticalSwiping === true) { 8723 if (swipeAngle >= 35 && swipeAngle <= 135) { 8724 return 'down'; 8725 } else { 8726 return 'up'; 8727 } 8728 } 8729 8730 return 'vertical'; 8731 }; 8732 8733 Slick.prototype.swipeEnd = function (event) { 8734 8735 var _ = this, 8736 slideCount, 8737 direction; 8738 8739 _.dragging = false; 8740 _.interrupted = false; 8741 _.shouldClick = _.touchObject.swipeLength > 10 ? false : true; 8742 8743 if (_.touchObject.curX === undefined) { 8744 return false; 8745 } 8746 8747 if (_.touchObject.edgeHit === true) { 8748 _.$slider.trigger('edge', [_, _.swipeDirection()]); 8749 } 8750 8751 if (_.touchObject.swipeLength >= _.touchObject.minSwipe) { 8752 8753 direction = _.swipeDirection(); 8754 8755 switch (direction) { 8756 8757 case 'left': 8758 case 'down': 8759 8760 slideCount = _.options.swipeToSlide ? _.checkNavigable(_.currentSlide + _.getSlideCount()) : _.currentSlide + _.getSlideCount(); 8761 8762 _.currentDirection = 0; 8763 8764 break; 8765 8766 case 'right': 8767 case 'up': 8768 8769 slideCount = _.options.swipeToSlide ? _.checkNavigable(_.currentSlide - _.getSlideCount()) : _.currentSlide - _.getSlideCount(); 8770 8771 _.currentDirection = 1; 8772 8773 break; 8774 8775 default: 8776 8777 } 8778 8779 if (direction != 'vertical') { 8780 8781 _.slideHandler(slideCount); 8782 _.touchObject = {}; 8783 _.$slider.trigger('swipe', [_, direction]); 8784 } 8785 } else { 8786 8787 if (_.touchObject.startX !== _.touchObject.curX) { 8788 8789 _.slideHandler(_.currentSlide); 8790 _.touchObject = {}; 8791 } 8792 } 8793 }; 8794 8795 Slick.prototype.swipeHandler = function (event) { 8796 8797 var _ = this; 8798 8799 if (_.options.swipe === false || 'ontouchend' in document && _.options.swipe === false) { 8800 return; 8801 } else if (_.options.draggable === false && event.type.indexOf('mouse') !== -1) { 8802 return; 8803 } 8804 8805 _.touchObject.fingerCount = event.originalEvent && event.originalEvent.touches !== undefined ? event.originalEvent.touches.length : 1; 8806 8807 _.touchObject.minSwipe = _.listWidth / _.options.touchThreshold; 8808 8809 if (_.options.verticalSwiping === true) { 8810 _.touchObject.minSwipe = _.listHeight / _.options.touchThreshold; 8811 } 8812 8813 switch (event.data.action) { 8814 8815 case 'start': 8816 _.swipeStart(event); 8817 break; 8818 8819 case 'move': 8820 _.swipeMove(event); 8821 break; 8822 8823 case 'end': 8824 _.swipeEnd(event); 8825 break; 8826 8827 } 8828 }; 8829 8830 Slick.prototype.swipeMove = function (event) { 8831 8832 var _ = this, 8833 edgeWasHit = false, 8834 curLeft, 8835 swipeDirection, 8836 swipeLength, 8837 positionOffset, 8838 touches; 8839 8840 touches = event.originalEvent !== undefined ? event.originalEvent.touches : null; 8841 8842 if (!_.dragging || touches && touches.length !== 1) { 8843 return false;
vendor: 6,216 bytes, lines 8844-9042
8844 } 8845 8846 curLeft = _.getLeft(_.currentSlide); 8847 8848 _.touchObject.curX = touches !== undefined ? touches[0].pageX : event.clientX; 8849 _.touchObject.curY = touches !== undefined ? touches[0].pageY : event.clientY; 8850 8851 _.touchObject.swipeLength = Math.round(Math.sqrt(Math.pow(_.touchObject.curX - _.touchObject.startX, 2))); 8852 8853 if (_.options.verticalSwiping === true) { 8854 _.touchObject.swipeLength = Math.round(Math.sqrt(Math.pow(_.touchObject.curY - _.touchObject.startY, 2))); 8855 } 8856 8857 swipeDirection = _.swipeDirection(); 8858 8859 if (swipeDirection === 'vertical') { 8860 return; 8861 } 8862 8863 if (event.originalEvent !== undefined && _.touchObject.swipeLength > 4) { 8864 event.preventDefault(); 8865 } 8866 8867 positionOffset = (_.options.rtl === false ? 1 : -1) * (_.touchObject.curX > _.touchObject.startX ? 1 : -1); 8868 if (_.options.verticalSwiping === true) { 8869 positionOffset = _.touchObject.curY > _.touchObject.startY ? 1 : -1; 8870 } 8871 8872 swipeLength = _.touchObject.swipeLength; 8873 8874 _.touchObject.edgeHit = false; 8875 8876 if (_.options.infinite === false) { 8877 if (_.currentSlide === 0 && swipeDirection === 'right' || _.currentSlide >= _.getDotCount() && swipeDirection === 'left') { 8878 swipeLength = _.touchObject.swipeLength * _.options.edgeFriction; 8879 _.touchObject.edgeHit = true; 8880 } 8881 } 8882 8883 if (_.options.vertical === false) { 8884 _.swipeLeft = curLeft + swipeLength * positionOffset; 8885 } else { 8886 _.swipeLeft = curLeft + swipeLength * (_.$list.height() / _.listWidth) * positionOffset; 8887 } 8888 if (_.options.verticalSwiping === true) { 8889 _.swipeLeft = curLeft + swipeLength * positionOffset; 8890 } 8891 8892 if (_.options.fade === true || _.options.touchMove === false) { 8893 return false; 8894 } 8895 8896 if (_.animating === true) { 8897 _.swipeLeft = null; 8898 return false; 8899 } 8900 8901 _.setCSS(_.swipeLeft); 8902 }; 8903 8904 Slick.prototype.swipeStart = function (event) { 8905 8906 var _ = this, 8907 touches; 8908 8909 _.interrupted = true; 8910 8911 if (_.touchObject.fingerCount !== 1 || _.slideCount <= _.options.slidesToShow) { 8912 _.touchObject = {}; 8913 return false; 8914 } 8915 8916 if (event.originalEvent !== undefined && event.originalEvent.touches !== undefined) { 8917 touches = event.originalEvent.touches[0]; 8918 } 8919 8920 _.touchObject.startX = _.touchObject.curX = touches !== undefined ? touches.pageX : event.clientX; 8921 _.touchObject.startY = _.touchObject.curY = touches !== undefined ? touches.pageY : event.clientY; 8922 8923 _.dragging = true; 8924 }; 8925 8926 Slick.prototype.unfilterSlides = Slick.prototype.slickUnfilter = function () { 8927 8928 var _ = this; 8929 8930 if (_.$slidesCache !== null) { 8931 8932 _.unload(); 8933 8934 _.$slideTrack.children(this.options.slide).detach(); 8935 8936 _.$slidesCache.appendTo(_.$slideTrack); 8937 8938 _.reinit(); 8939 } 8940 }; 8941 8942 Slick.prototype.unload = function () { 8943 8944 var _ = this; 8945 8946 $('.slick-cloned', _.$slider).remove(); 8947 8948 if (_.$dots) { 8949 _.$dots.remove(); 8950 } 8951 8952 if (_.$prevArrow && _.htmlExpr.test(_.options.prevArrow)) { 8953 _.$prevArrow.remove(); 8954 } 8955 8956 if (_.$nextArrow && _.htmlExpr.test(_.options.nextArrow)) { 8957 _.$nextArrow.remove(); 8958 } 8959 8960 _.$slides.removeClass('slick-slide slick-active slick-visible slick-current').attr('aria-hidden', 'true').css('width', ''); 8961 }; 8962 8963 Slick.prototype.unslick = function (fromBreakpoint) { 8964 8965 var _ = this; 8966 _.$slider.trigger('unslick', [_, fromBreakpoint]); 8967 _.destroy(); 8968 }; 8969 8970 Slick.prototype.updateArrows = function () { 8971 8972 var _ = this, 8973 centerOffset; 8974 8975 centerOffset = Math.floor(_.options.slidesToShow / 2); 8976 8977 if (_.options.arrows === true && _.slideCount > _.options.slidesToShow && !_.options.infinite) { 8978 8979 _.$prevArrow.removeClass('slick-disabled').attr('aria-disabled', 'false'); 8980 _.$nextArrow.removeClass('slick-disabled').attr('aria-disabled', 'false'); 8981 8982 if (_.currentSlide === 0) { 8983 8984 _.$prevArrow.addClass('slick-disabled').attr('aria-disabled', 'true'); 8985 _.$nextArrow.removeClass('slick-disabled').attr('aria-disabled', 'false'); 8986 } else if (_.currentSlide >= _.slideCount - _.options.slidesToShow && _.options.centerMode === false) { 8987 8988 _.$nextArrow.addClass('slick-disabled').attr('aria-disabled', 'true'); 8989 _.$prevArrow.removeClass('slick-disabled').attr('aria-disabled', 'false'); 8990 } else if (_.currentSlide >= _.slideCount - 1 && _.options.centerMode === true) { 8991 8992 _.$nextArrow.addClass('slick-disabled').attr('aria-disabled', 'true'); 8993 _.$prevArrow.removeClass('slick-disabled').attr('aria-disabled', 'false'); 8994 } 8995 } 8996 }; 8997 8998 Slick.prototype.updateDots = function () { 8999 9000 var _ = this; 9001 9002 if (_.$dots !== null) { 9003 9004 _.$dots.find('li').removeClass('slick-active').attr('aria-hidden', 'true'); 9005 9006 _.$dots.find('li').eq(Math.floor(_.currentSlide / _.options.slidesToScroll)).addClass('slick-active').attr('aria-hidden', 'false'); 9007 } 9008 }; 9009 9010 Slick.prototype.visibility = function () { 9011 9012 var _ = this; 9013 9014 if (_.options.autoplay) { 9015 9016 if (document[_.hidden]) { 9017 9018 _.interrupted = true; 9019 } else { 9020 9021 _.interrupted = false; 9022 } 9023 } 9024 }; 9025 9026 $.fn.slick = function () { 9027 var _ = this, 9028 opt = arguments[0], 9029 args = Array.prototype.slice.call(arguments, 1), 9030 l = _.length, 9031 i, 9032 ret; 9033 for (i = 0; i < l; i++) { 9034 if (typeof opt == 'object' || typeof opt == 'undefined') _[i].slick = new Slick(_[i], opt);else ret = _[i].slick[opt].apply(_[i].slick, args); 9035 if (typeof ret != 'undefined') return ret; 9036 } 9037 return _; 9038 }; 9039}); 9040 9041/***/ }), 9042
9043/***/ "./js/listing.js": 9044/*!***********************!*\ 9045 !*** ./js/listing.js ***! 9046 \***********************/ 9047/*! no exports provided */ 9048/***/ (function(module, __webpack_exports__, __webpack_require__) { 9049 9050"use strict"; 9051__webpack_require__.r(__webpack_exports__); 9052/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jquery */ "jquery"); 9053/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__); 9054/* harmony import */ var prestashop__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prestashop */ "prestashop"); 9055/* harmony import */ var prestashop__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prestashop__WEBPACK_IMPORTED_MODULE_1__); 9056/* harmony import */ var velocity_animate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! velocity-animate */ "./node_modules/velocity-animate/velocity.js"); 9057/* harmony import */ var velocity_animate__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(velocity_animate__WEBPACK_IMPORTED_MODULE_2__); 9058 9059 9060 9061 9062/* Ajax Add to cart */ 9063function ajaxAddToCart() { 9064 if (prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.configuration.is_catalog === false) { 9065 var psAjaxCart = false, 9066 waitting_html = '<div class="js-waitting-addtocart page-loading-overlay add-to-cart-loading"><div class="page-loading-backdrop"><span class="uil-spin-css"><span><span></span></span><span><span></span></span><span><span></span></span><span><span></span></span><span><span></span></span><span><span></span></span><span><span></span></span><span><span></span></span></span></div></div>'; 9067 if (typeof varPSAjaxCart !== 'undefined' && varPSAjaxCart) { 9068 psAjaxCart = varPSAjaxCart; 9069 } 9070 9071 jquery__WEBPACK_IMPORTED_MODULE_0___default()('body').on('click', '.js-ajax-add-to-cart', function (event) { 9072 9073 if (!jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).hasClass('bt-devis-listing-click')) { 9074 9075 var postdata = { 9076 ajax: 1, 9077 action: 'btn-add-cartdevis', 9078 devis: 0 9079 }; 9080 jquery__WEBPACK_IMPORTED_MODULE_0___default.a.ajax({ 9081 type: 'POST', 9082 url: link_controller, 9083 data: postdata, 9084 success: function (r) {} 9085 }); 9086 } 9087 9088 event.preventDefault(); 9089 9090 var $btn = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this); 9091 if (!$btn.find('.js-waitting-addtocart').length) { 9092 jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).append(waitting_html); 9093 } 9094 $btn.removeClass('added').addClass('disabled'); 9095 9096 let actionURL = prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.urls.pages.cart, 9097 query = 'id_product=' + $btn.data('id-product') + '&add=1&action=update&token=' + prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.static_token, 9098 qty_val = 1, 9099 qty = $btn.closest('.js-product-miniature').find('.js-add-to-cart-quantity'); 9100 if (qty.length && parseInt(qty.val()) > 1) { 9101 qty_val = parseInt(qty.val()); 9102 } 9103 query = query + '&qty=' + qty_val; 9104 9105 jquery__WEBPACK_IMPORTED_MODULE_0___default.a.post(actionURL, query, null, 'json').then(function (resp) { 9106 prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.emit('updateCart', { 9107 reason: { 9108 idProduct: resp.id_product, 9109 idProductAttribute: resp.id_product_attribute, 9110 linkAction: 'add-to-cart', 9111 devis: 0 9112 } 9113 }); 9114 9115 if (resp.success) { 9116 $btn.addClass('added'); 9117 if (!psAjaxCart) { 9118 window.location.href = prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.urls.pages.cart + '?action=show'; 9119 } 9120 } 9121 if (resp.hasError) { 9122 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.js-modal-message-text').text(resp.errors[0]); 9123 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.js-modal-message').modal('show'); 9124 } 9125 }).fail(function (resp) { 9126 prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.emit('handleError', { eventType: 'addProductToCart', resp: resp }); 9127 }); 9128 9129 return false;
9130 }); 9131 } 9132} 9133 9134function createListingSpin() { 9135 jquery__WEBPACK_IMPORTED_MODULE_0___default.a.each(jquery__WEBPACK_IMPORTED_MODULE_0___default()('input.js-add-to-cart-quantity'), function (index, spinner) { 9136 jquery__WEBPACK_IMPORTED_MODULE_0___default()(spinner).makeTouchSpin(); 9137 }); 9138} 9139 9140/* Quickview */ 9141function quickviewFunction() { 9142 var waitting_html = '<div class="js-waitting-quickview page-loading-overlay quickview-loading"><div class="page-loading-backdrop"><span class="uil-spin-css"><span><span></span></span><span><span></span></span><span><span></span></span><span><span></span></span><span><span></span></span><span><span></span></span><span><span></span></span><span><span></span></span></span></div></div>'; 9143 9144 jquery__WEBPACK_IMPORTED_MODULE_0___default()('body').on('click', '[data-link-action="quickview"]', function (event) { 9145 if (!jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).find('.js-waitting-quickview').length) { 9146 jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).append(waitting_html); 9147 } 9148 jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).addClass('disabled'); 9149 }); 9150 9151 prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.on('clickQuickView', function (elm) { 9152 let data = { 9153 'action': 'quickview', 9154 'id_product': elm.dataset.idProduct, 9155 'id_product_attribute': elm.dataset.idProductAttribute 9156 }; 9157 jquery__WEBPACK_IMPORTED_MODULE_0___default.a.post(prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.urls.pages.product, data, null, 'json').then(function (resp) { 9158 jquery__WEBPACK_IMPORTED_MODULE_0___default()('body').append(resp.quickview_html); 9159 let productModal = jquery__WEBPACK_IMPORTED_MODULE_0___default()('#quickview-modal-' + resp.product.id + '-' + resp.product.id_product_attribute); 9160 productModal.modal('show'); 9161 productConfig(productModal); 9162 productModal.on('hidden.bs.modal', function () { 9163 productModal.remove(); 9164 }); 9165 9166 jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-link-action="quickview"]').removeClass('disabled'); 9167 }).fail(function (resp) { 9168 prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.emit('handleError', { eventType: 'clickQuickView', resp: resp }); 9169 }); 9170 }); 9171 9172 var productConfig = function (qv) { 9173 let $mask = qv.find('.js-product-thumbs-scrollbox'), 9174 $thumbnails = qv.find('.js-thumb'), 9175 $cover = qv.find('.js-qv-product-cover'), 9176 $quantity = qv.find('#quantity_wanted'), 9177 $src = qv.find('.js-product-attributes-source'), 9178 $dest = qv.find('.js-product-attributes-destination'), 9179 $src2 = qv.find('.js-product-availability-source'), 9180 $dest2 = qv.find('.js-product-availability-destination'); 9181 9182 if (typeof varGetFinalDateController !== 'undefined') { 9183 setTimeout(function () { 9184 qv.find('.js-product-countdown').runCountdown({ 9185 specificPricesTo: qv.find('.js-product-countdown').attr('data-specific-prices-to'), 9186 getFinalDateController: varGetFinalDateController 9187 }); 9188 }, 300); 9189 } 9190 9191 $dest.empty(); 9192 if ($src.length) { 9193 $dest.html($src.html()); //$src.remove(); 9194 } 9195 9196 $dest2.empty(); 9197 if ($src2.length) { 9198 $dest2.html($src2.html()); //$src2.remove(); 9199 } 9200 9201 $thumbnails.on('click', function (event) { 9202 $thumbnails.removeClass('selected'); 9203 jquery__WEBPACK_IMPORTED_MODULE_0___default()(event.currentTarget).addClass('selected'); 9204 $cover.attr('src', jquery__WEBPACK_IMPORTED_MODULE_0___default()(event.currentTarget).data('image')); 9205 }); 9206 9207 setTimeout(function () { 9208 $mask.makeFlexScrollBox(); 9209 }, 500); 9210 9211 $quantity.makeTouchSpin(); 9212 }; 9213} 9214 9215/* Product Countdown */ 9216function countdownSpecificPricesMiniature() { 9217 if (typeof varGetFinalDateMiniatureController !== 'undefined') { 9218 var $ts = {}; 9219 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.js-product-countdown-miniature').each(function () { 9220 $ts[jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('id-product')] = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('specific-prices-to'); 9221 }); 9222 9223 if (!jquery__WEBPACK_IMPORTED_MODULE_0___default.a.isEmptyObject($ts)) { 9224 jquery__WEBPACK_IMPORTED_MODULE_0___default.a.ajax({ 9225 type: 'POST', 9226 url: varGetFinalDateMiniatureController, 9227 data: { 9228 'ajax': true,
9229 'specific-prices-to': JSON.stringify($ts) 9230 }, 9231 dataType: 'json', 9232 success: function (results) { 9233 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.js-product-countdown-miniature').each(function () { 9234 let wrapper = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this); 9235 9236 if (wrapper.data('id-product') in results) { 9237 wrapper.html(results[wrapper.data('id-product')]); 9238 setTimeout(function () { 9239 wrapper.slideDown(); 9240 }, 500); 9241 9242 let $new_cd = wrapper.find('[data-final-date]'); 9243 $new_cd.countdown($new_cd.data('final-date')).on('update.countdown', function (event) { 9244 if (event.offset.totalDays <= 0) { 9245 $new_cd.html(event.strftime($new_cd.data('short-format'))); 9246 } else { 9247 $new_cd.html(event.strftime($new_cd.data('format'))); 9248 } 9249 }).on('finish.countdown', function () { 9250 $new_cd.parent().addClass('expired').html($new_cd.data('expired')); 9251 }); 9252 } 9253 }); 9254 }, 9255 error: function (err) { 9256 console.log(err); 9257 } 9258 }); 9259 } 9260 } 9261} 9262 9263/* Search filters - Facets */ 9264function searchFiterFacets() { 9265 var dataGrid = jquery__WEBPACK_IMPORTED_MODULE_0___default()('#js-product-list').data('grid-columns'), 9266 storage = window.localStorage || window.sessionStorage; 9267 9268 const parseSearchUrl = function (event) { 9269 if (event.target.dataset.searchUrl !== undefined) { 9270 return event.target.dataset.searchUrl; 9271 } 9272 9273 if (jquery__WEBPACK_IMPORTED_MODULE_0___default()(event.target).parent()[0].dataset.searchUrl === undefined) { 9274 throw new Error('Can not parse search URL'); 9275 } 9276 9277 return jquery__WEBPACK_IMPORTED_MODULE_0___default()(event.target).parent()[0].dataset.searchUrl; 9278 }; 9279 9280 jquery__WEBPACK_IMPORTED_MODULE_0___default()('body').on('change', '#search_filters input[data-search-url]', function (event) { 9281 prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.emit('updateFacets', parseSearchUrl(event)); 9282 }); 9283 9284 jquery__WEBPACK_IMPORTED_MODULE_0___default()('body').on('click', '.js-search-filters-clear-all', function (event) { 9285 prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.emit('updateFacets', parseSearchUrl(event)); 9286 }); 9287 9288 jquery__WEBPACK_IMPORTED_MODULE_0___default()('body').on('click', '.js-search-link', function (event) { 9289 event.preventDefault(); 9290 prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.emit('updateFacets', jquery__WEBPACK_IMPORTED_MODULE_0___default()(event.target).closest('a').get(0).href); 9291 }); 9292 9293 jquery__WEBPACK_IMPORTED_MODULE_0___default()('body').on('change', '#search_filters select', function (event) { 9294 const form = jquery__WEBPACK_IMPORTED_MODULE_0___default()(event.target).closest('form'); 9295 prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.emit('updateFacets', '?' + form.serialize()); 9296 }); 9297 9298 prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.on('updateFacets', function (data) { 9299 togglePendingIcon('in'); 9300 }); 9301 prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.on('updateProductList', function (data) { 9302 updateProductListDOM(data); 9303 9304 jquery__WEBPACK_IMPORTED_MODULE_0___default()('#js-product-list').find('.js-product-list-view').removeClass('columns-2 columns-3 columns-4 columns-5').addClass(dataGrid); 9305 9306 if (storage && storage.productListView) { 9307 jquery__WEBPACK_IMPORTED_MODULE_0___default()('#product_display_control a[data-view="' + storage.productListView + '"]').trigger('click'); 9308 } 9309 createListingSpin(); 9310 9311 setTimeout(function () { 9312 togglePendingIcon('out'); 9313 countdownSpecificPricesMiniature(); 9314 productCommentMiniature(); 9315 }, 200); 9316 9317 if (jquery__WEBPACK_IMPORTED_MODULE_0___default()('#js-filter-scroll-here').length) { 9318 jquery__WEBPACK_IMPORTED_MODULE_0___default.a.smoothScroll({ 9319 scrollTarget: '#js-filter-scroll-here', 9320 offset: -145 9321 }); 9322 } 9323 }); 9324} 9325function togglePendingIcon(fade) { 9326 if (fade == 'in') { 9327 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.js-pending-query').fadeIn(); 9328 } else { 9329 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.js-pending-query').fadeOut(); 9330 } 9331} 9332 9333function updateProductListDOM(data) { 9334 jquery__WEBPACK_IMPORTED_MODULE_0___default()('#search_filters').replaceWith(data.rendered_facets); 9335 jquery__WEBPACK_IMPORTED_MODULE_0___default()('#js-active-search-filters').replaceWith(data.rendered_active_filters); 9336 jquery__WEBPACK_IMPORTED_MODULE_0___default()('#js-product-list-top').replaceWith(data.rendered_products_top); 9337 jquery__WEBPACK_IMPORTED_MODULE_0___default()('#js-product-list').replaceWith(data.rendered_products); 9338 jquery__WEBPACK_IMPORTED_MODULE_0___default()('#js-product-list-bottom').replaceWith(data.rendered_products_bottom); 9339 //if (data.rendered_products_header) { 9340 // $('#js-product-list-header').replaceWith(data.rendered_products_header); 9341 //} 9342} 9343 9344/* Grid - List - Table */ 9345function productDisplayControl() { 9346 var displayControl = '#product_display_control a', 9347 storage = window.localStorage || window.sessionStorage; 9348 9349 jquery__WEBPACK_IMPORTED_MODULE_0___default()('body').on('click', displayControl, function (event) { 9350 event.preventDefault(); 9351 9352 let view = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('view'); 9353 jquery__WEBPACK_IMPORTED_MODULE_0___default()(displayControl).removeClass('selected'); 9354 jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).addClass('selected'); 9355 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.js-product-list-view').removeClass('grid list table-view').addClass(view); 9356 9357 try { 9358 storage.setItem('productListView', view); 9359 } catch (error) { 9360 console.log('Can not cache the product list view'); 9361 } 9362 }); 9363 9364 if (storage.productListView) { 9365 jquery__WEBPACK_IMPORTED_MODULE_0___default()(displayControl + '[data-view="' + storage.productListView + '"]').trigger('click'); 9366 } else { 9367 jquery__WEBPACK_IMPORTED_MODULE_0___default()(displayControl + '.selected').trigger('click'); 9368 } 9369} 9370
9371/* Mobile search filter toggle */ 9372function mobileSearchFilterToggle() { 9373 jquery__WEBPACK_IMPORTED_MODULE_0___default()('body').on('click', '#search_filter_toggler', function () { 9374 jquery__WEBPACK_IMPORTED_MODULE_0___default()('#_mobile_search_filters').stop().slideToggle(); 9375 }); 9376 jquery__WEBPACK_IMPORTED_MODULE_0___default()('#search_filter_controls .ok').on('click', function () { 9377 jquery__WEBPACK_IMPORTED_MODULE_0___default()('#_mobile_search_filters').stop().slideUp(); 9378 }); 9379} 9380 9381/* Javascript for productcomments module */ 9382function productCommentMiniature() { 9383 if (typeof varProductCommentGradeController !== 'undefined') { 9384 var $ids = []; 9385 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.js-product-comment').each(function () { 9386 $ids.push(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('id-product')); 9387 }); 9388 9389 if ($ids.length) { 9390 jquery__WEBPACK_IMPORTED_MODULE_0___default.a.ajax({ 9391 type: 'POST', 9392 url: varProductCommentGradeController, 9393 data: { 9394 'ajax': true, 9395 'idProducts': JSON.stringify($ids) 9396 }, 9397 success: function (jsonResponse) { 9398 var jsonData = false; 9399 try { 9400 jsonData = JSON.parse(jsonResponse); 9401 } catch (e) {} 9402 9403 if (jsonData) { 9404 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.js-product-comment').each(function () { 9405 let wrapper = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this), 9406 id_product = wrapper.data('id-product'); 9407 if (id_product in jsonData) { 9408 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.grade-stars', wrapper).rating({ grade: jsonData[id_product].average_grade, starWidth: 16 }); 9409 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.comments-nb', wrapper).html('(' + jsonData[id_product].comments_nb + ')'); 9410 wrapper.slideDown(); 9411 } 9412 }); 9413 } 9414 }, 9415 error: function (err) { 9416 console.log(err); 9417 } 9418 }); 9419 } 9420 } 9421} 9422 9423jquery__WEBPACK_IMPORTED_MODULE_0___default()(document).ready(function () { 9424 productDisplayControl(); 9425}); 9426jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).load(function () { 9427 quickviewFunction(); 9428 ajaxAddToCart(); 9429 countdownSpecificPricesMiniature(); 9430 mobileSearchFilterToggle(); 9431 createListingSpin(); 9432 searchFiterFacets(); 9433 setTimeout(function () { 9434 productCommentMiniature(); 9435 }, 300); 9436}); 9437 9438/***/ }), 9439
9440/***/ "./js/product.js": 9441/*!***********************!*\ 9442 !*** ./js/product.js ***! 9443 \***********************/ 9444/*! no exports provided */ 9445/***/ (function(module, __webpack_exports__, __webpack_require__) { 9446 9447"use strict"; 9448__webpack_require__.r(__webpack_exports__); 9449/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jquery */ "jquery"); 9450/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__); 9451/* harmony import */ var prestashop__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prestashop */ "prestashop"); 9452/* harmony import */ var prestashop__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prestashop__WEBPACK_IMPORTED_MODULE_1__); 9453 9454 9455 9456jquery__WEBPACK_IMPORTED_MODULE_0___default()(document).ready(function () { 9457 createProductSpin(); 9458 createInputFile(); 9459 zoomImage(); 9460 lightboxImage(); 9461 coverImage(); 9462 imageScrollBox(); 9463 mobileImageScrollBox(); 9464 moveProductAttributes(); 9465 addAccordionActiveClass(); 9466 9467 jquery__WEBPACK_IMPORTED_MODULE_0___default()('body').on('change', '.product-variants *[name]', function () { 9468 togglePendingRefreshIcon('in'); 9469 }); 9470 9471 prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.on('updatedProduct', function (event) { 9472 createInputFile(); 9473 zoomImage(); 9474 coverImage(); 9475 imageScrollBox(); 9476 mobileImageScrollBox(); 9477 moveProductAttributes(); 9478 9479 if (event && event.product_minimal_quantity) { 9480 const minimalProductQuantity = parseInt(event.product_minimal_quantity, 10); 9481 const quantityInputSelector = '#quantity_wanted'; 9482 let quantityInput = jquery__WEBPACK_IMPORTED_MODULE_0___default()(quantityInputSelector); 9483 9484 quantityInput.trigger('touchspin.updatesettings', { min: minimalProductQuantity }); 9485 } 9486 9487 jquery__WEBPACK_IMPORTED_MODULE_0___default()('#js_mfp_gallery').replaceWith(event.product_images_modal); 9488 lightboxImage(); 9489 togglePendingRefreshIcon('out'); 9490 9491 if (jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-button-action="add-to-cart"]').is(':disabled')) { 9492 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.product-add-to-cart').addClass('add-to-cart-disabled'); 9493 } else { 9494 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.product-add-to-cart').removeClass('add-to-cart-disabled'); 9495 } 9496 }); 9497 9498 if (typeof varCustomActionAddToCart !== 'undefined' && varCustomActionAddToCart) { 9499 jquery__WEBPACK_IMPORTED_MODULE_0___default()('body').off('click', '[data-button-action="add-to-cart"]'); 9500 jquery__WEBPACK_IMPORTED_MODULE_0___default()('body').on('click', '[data-button-action="add-to-cart"]', function (event) { 9501 event.preventDefault(); 9502 var $btn = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this); 9503 var psAjaxCart = false; 9504 if (typeof varPSAjaxCart !== 'undefined' && varPSAjaxCart) { 9505 psAjaxCart = varPSAjaxCart; 9506 } 9507 9508 if (jquery__WEBPACK_IMPORTED_MODULE_0___default()('#quantity_wanted').val() > jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-stock]').data('stock') && jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-allow-oosp]').data('allow-oosp').length === 0) { 9509 $btn.attr('disabled', 'disabled'); 9510 } else { 9511 var _ret = function () { 9512 let $form = jquery__WEBPACK_IMPORTED_MODULE_0___default()(event.target).closest('form'); 9513 //let query = $form.serialize() + '&add=1&action=update'; 9514 if (jquery__WEBPACK_IMPORTED_MODULE_0___default()('input#quantity_wanted').val() == 0) { 9515 jquery__WEBPACK_IMPORTED_MODULE_0___default()('input#quantity_wanted').val(1); 9516 } 9517 let query = $form.serialize() + '&add=1&action=update&qty=' + jquery__WEBPACK_IMPORTED_MODULE_0___default()('input#quantity_wanted').val(); 9518 let actionURL = $form.attr('action'); 9519 9520 let isQuantityInputValid = function ($input) { 9521 var validInput = true; 9522 9523 $input.each(function (index, input) { 9524 let $input = jquery__WEBPACK_IMPORTED_MODULE_0___default()(input); 9525 let minimalValue = parseInt($input.attr('min'), 10); 9526 if (minimalValue && $input.val() < minimalValue) { 9527 onInvalidQuantity($input); 9528 validInput = false;
9529 } 9530 }); 9531 9532 return validInput; 9533 }; 9534 9535 let onInvalidQuantity = function ($input) { 9536 $input.parents('.product-add-to-cart').first().find('.product-minimal-quantity').addClass('error'); 9537 $input.parent().find('label').addClass('error'); 9538 }; 9539 9540 let $quantityInput = $form.find('input[min]'); 9541 if (!isQuantityInputValid($quantityInput)) { 9542 onInvalidQuantity($quantityInput); 9543 9544 return { 9545 v: undefined 9546 }; 9547 } 9548 9549 $btn.removeClass('added').addClass('disabled'); 9550 9551 jquery__WEBPACK_IMPORTED_MODULE_0___default.a.post(actionURL, query, null, 'json').then(function (resp) { 9552 prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.emit('updateCart', { 9553 reason: { 9554 idProduct: resp.id_product, 9555 idProductAttribute: resp.id_product_attribute, 9556 idCustomization: resp.id_customization, 9557 linkAction: 'add-to-cart', 9558 cart: resp.cart 9559 }, 9560 resp: resp 9561 }); 9562 9563 if (resp.success) { 9564 $btn.addClass('added'); 9565 if (!psAjaxCart) { 9566 window.location.href = prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.urls.pages.cart + '?action=show'; 9567 } 9568 } 9569 if (resp.hasError) { 9570 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.js-modal-message-text').text(resp.errors[0]); 9571 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.js-modal-message').modal('show'); 9572 } 9573 }).fail(function (resp) { 9574 prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.emit('handleError', { eventType: 'addProductToCart', resp: resp }); 9575 }); 9576 }(); 9577 9578 if (typeof _ret === 'object') return _ret.v; 9579 } 9580 }); 9581 } 9582}); 9583 9584var productResizeTimer; 9585jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).resize(function () { 9586 clearTimeout(productResizeTimer); 9587 productResizeTimer = setTimeout(function () { 9588 zoomImage(); 9589 }, 250); 9590}); 9591 9592function togglePendingRefreshIcon(fade_status) { 9593 if (typeof varProductPendingRefreshIcon !== 'undefined' && varProductPendingRefreshIcon) { 9594 if (fade_status == 'in') { 9595 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.js-product-refresh-pending-query').fadeIn(); 9596 } else { 9597 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.js-product-refresh-pending-query').fadeOut(); 9598 } 9599 } 9600} 9601 9602function zoomImage() { 9603 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.zoomWrapper .js-main-zoom').css('position', 'static').unwrap(); 9604 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.zoomContainer').remove(); 9605 9606 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.js-enable-zoom-image .js-main-zoom').elevateZoom({ 9607 zoomType: 'inner', 9608 gallery: 'js-zoom-gallery', 9609 galleryActiveClass: 'selected', 9610 imageCrossfade: true, 9611 cursor: 'crosshair', 9612 easing: true, 9613 easingDuration: 500, 9614 zoomWindowFadeIn: 500, 9615 zoomWindowFadeOut: 300 9616 }); 9617} 9618 9619function lightboxImage() { 9620 var $gallery = jquery__WEBPACK_IMPORTED_MODULE_0___default()('#js_mfp_gallery'); 9621 if ($gallery.length) { 9622 var zClose = $gallery.data('text-close'), 9623 zPrev = $gallery.data('text-prev'), 9624 zNext = $gallery.data('text-next'); 9625 9626 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.js_mfp_gallery_item').magnificPopup({ 9627 type: 'image', 9628 tClose: zClose, 9629 tLoading: '<div class="uil-spin-css"><div><div></div></div><div><div></div></div><div><div></div></div><div><div></div></div><div><div></div></div><div><div></div></div><div><div></div></div><div><div></div></div></div>', 9630 removalDelay: 500, 9631 mainClass: 'mfp-fade', 9632 closeOnBgClick: true, 9633 gallery: { 9634 enabled: true, 9635 tPrev: zPrev, 9636 tNext: zNext, 9637 tCounter: '%curr% / %total%' 9638 }, 9639 image: { 9640 verticalFit: false 9641 } 9642 }); 9643 9644 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.js-mfp-button').bind('click', function () { 9645 var imageId = jquery__WEBPACK_IMPORTED_MODULE_0___default()('#js-zoom-gallery .js-thumb.selected').data('id-image'); 9646 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.js_mfp_gallery_item').filter('[data-id-image="' + imageId + '"]').trigger('click'); 9647 }); 9648 } 9649} 9650 9651function coverImage() { 9652 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.js-cover-image .js-thumb').on('click', function (event) { 9653 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.js-thumb.selected').removeClass('selected'); 9654 jquery__WEBPACK_IMPORTED_MODULE_0___default()(event.currentTarget).addClass('selected'); 9655 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.js-qv-product-cover').prop('src', jquery__WEBPACK_IMPORTED_MODULE_0___default()(event.currentTarget).data('image')); 9656 }); 9657} 9658 9659function imageScrollBox() { 9660 9661 jquery__WEBPACK_IMPORTED_MODULE_0___default()('#wp-images').scrollbox({ 9662 linear: true, 9663 delay: 0, 9664 speed: 0,
9665 autoPlay: false, 9666 onMouseOverPause: false 9667 }); 9668 jquery__WEBPACK_IMPORTED_MODULE_0___default()('#wp-images-backward').click(function () { 9669 jquery__WEBPACK_IMPORTED_MODULE_0___default()('#wp-images').trigger('backward'); 9670 }); 9671 jquery__WEBPACK_IMPORTED_MODULE_0___default()('#wp-images-forward').click(function () { 9672 jquery__WEBPACK_IMPORTED_MODULE_0___default()('#wp-images').trigger('forward'); 9673 }); 9674 //$('.js-product-thumbs-scrollbox').makeFlexScrollBox(); 9675} 9676function mobileImageScrollBox() { 9677 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.js-mobile-images-scrollbox').makeFlexScrollBox(); 9678} 9679 9680/*function showHideScrollBoxArrows() { 9681 var thumbsWidth = 0; 9682 $('.js-qv-product-images .js-thumb-container').each(function() { 9683 thumbsWidth = thumbsWidth + $(this).outerWidth(); 9684 }); 9685 9686 if (($('.js-qv-product-images').width() + 5) < thumbsWidth) { 9687 $('.scroll-box-arrows').addClass('scroll'); 9688 } else { 9689 $('.scroll-box-arrows').removeClass('scroll'); 9690 } 9691}*/ 9692 9693function createInputFile() { 9694 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.js-file-input').on('change', function (event) { 9695 let target, file; 9696 9697 if ((target = jquery__WEBPACK_IMPORTED_MODULE_0___default()(event.currentTarget)[0]) && (file = target.files[0])) { 9698 jquery__WEBPACK_IMPORTED_MODULE_0___default()(target).prev().text(file.name); 9699 } 9700 }); 9701} 9702 9703function createProductSpin() { 9704 const $quantityInput = jquery__WEBPACK_IMPORTED_MODULE_0___default()('#quantity_wanted'); 9705 $quantityInput.makeTouchSpin(); 9706 9707 jquery__WEBPACK_IMPORTED_MODULE_0___default()('body').on('change keyup', '#quantity_wanted', function (e) { 9708 jquery__WEBPACK_IMPORTED_MODULE_0___default()(e.currentTarget).trigger('touchspin.stopspin'); 9709 prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.emit('updateProduct', { 9710 eventType: 'updatedProductQuantity', 9711 event: e 9712 }); 9713 }); 9714} 9715 9716function moveProductAttributes() { 9717 let $src = jquery__WEBPACK_IMPORTED_MODULE_0___default()('.js-product-attributes-source'), 9718 $dest = jquery__WEBPACK_IMPORTED_MODULE_0___default()('.js-product-attributes-destination'), 9719 $src2 = jquery__WEBPACK_IMPORTED_MODULE_0___default()('.js-product-availability-source'), 9720 $dest2 = jquery__WEBPACK_IMPORTED_MODULE_0___default()('.js-product-availability-destination'); 9721 $dest.empty(); 9722 if ($src.length) { 9723 $dest.html($src.html()); //$src.remove(); 9724 } 9725 $dest2.empty(); 9726 if ($src2.length) { 9727 $dest2.html($src2.html()); //$src2.remove(); 9728 } 9729 9730 console.log($src); 9731} 9732 9733function addAccordionActiveClass() { 9734 jquery__WEBPACK_IMPORTED_MODULE_0___default()('.js-product-accordions [data-toggle="collapse"]').click(function () { 9735 jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).closest('.panel').toggleClass('active'); 9736 }); 9737} 9738 9739/***/ }), 9740
9741/***/ "./js/responsive.js": 9742/*!**************************!*\ 9743 !*** ./js/responsive.js ***! 9744 \**************************/ 9745/*! no exports provided */ 9746/***/ (function(module, __webpack_exports__, __webpack_require__) { 9747 9748"use strict"; 9749__webpack_require__.r(__webpack_exports__); 9750/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jquery */ "jquery"); 9751/* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__); 9752/* harmony import */ var prestashop__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prestashop */ "prestashop"); 9753/* harmony import */ var prestashop__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prestashop__WEBPACK_IMPORTED_MODULE_1__); 9754 9755 9756 9757prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.responsive = prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.responsive || {}; 9758prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.responsive.min_width = 768; 9759prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.responsive.tablet_min_width = 992; 9760prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.responsive.scrollbar_width = scrollC
9760ompensate(); 9761prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.responsive.current_width = window.innerWidth; 9762 9763jquery__WEBPACK_IMPORTED_MODULE_0___default()(document).ready(function () { 9764 prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.responsive.mobile = prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.responsive.current_width < prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.responsive.min_width; 9765 prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.responsive.tablet = prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.responsive.current_width < prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.responsive.tablet_min_width; 9766 9767 if (prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.responsive.mobile) { 9768 toggleMobileStyles(prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.responsive.mobile); 9769 toggleBlockOnMobile(prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.responsive.mobile); 9770 } 9771 if (prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.responsive.tablet) { 9772 toggleTabletStyles(prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.responsive.tablet); 9773 toggleLinkListOnMobile(prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.responsive.tablet); 9774 } 9775}); 9776 9777function scrollCompensate() { 9778 var inner = document.createElement('p'); 9779 inner.style.width = "100%"; 9780 inner.style.height = "200px"; 9781 9782 var outer = document.createElement('div'); 9783 outer.style.position = "absolute"; 9784 outer.style.top = "0px"; 9785 outer.style.left = "0px"; 9786 outer.style.visibility = "hidden"; 9787 outer.style.width = "200px"; 9788 outer.style.height = "150px"; 9789 outer.style.overflow = "hidden"; 9790 outer.appendChild(inner); 9791 9792 document.body.appendChild(outer); 9793 var w1 = inner.offsetWidth; 9794 outer.style.overflow = 'scroll'; 9795 var w2 = inner.offsetWidth; 9796 if (w1 == w2) w2 = outer.clientWidth; 9797 9798 document.body.removeChild(outer); 9799 9800 return w1 - w2; 9801} 9802 9803function swapChildren(obj1, obj2) { 9804 var temp = obj2.children().detach(); 9805 obj2.empty().append(obj1.children().detach()); 9806 obj1.append(temp); 9807} 9808 9809function toggleMobileStyles(is_mobile) { 9810 if (is_mobile) { 9811 jquery__WEBPACK_IMPORTED_MODULE_0___default()("*[id^='_desktop_']").each(function (idx, el) { 9812 var target = jquery__WEBPACK_IMPORTED_MODULE_0___default()('#' + el.id.replace('_desktop_', '_mobile_')); 9813 if (target.length) { 9814 swapChildren(jquery__WEBPACK_IMPORTED_MODULE_0___default()(el), target); 9815 } 9816 }); 9817 } else { 9818 jquery__WEBPACK_IMPORTED_MODULE_0___default()("*[id^='_mobile_']").each(function (idx, el) { 9819 var target = jquery__WEBPACK_IMPORTED_MODULE_0___default()('#' + el.id.replace('_mobile_', '_desktop_')); 9820 if (target.length) { 9821 swapChildren(jquery__WEBPACK_IMPORTED_MODULE_0___default()(el), target); 9822 } 9823 }); 9824 } 9825 prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.emit('responsive update', { 9826 mobile: is_mobile 9827 }); 9828} 9829 9830function toggleTabletStyles(is_tablet) { 9831 if (is_tablet) { 9832 jquery__WEBPACK_IMPORTED_MODULE_0___default()("*[id^='_desktop_']").each(function (idx, el) { 9833 var target = jquery__WEBPACK_IMPORTED_MODULE_0___default()('#' + el.id.replace('_desktop_', '_tablet_')); 9834 if (target.length) { 9835 swapChildren(jquery__WEBPACK_IMPORTED_MODULE_0___default()(el), target); 9836 } 9837 }); 9838 } else { 9839 jquery__WEBPACK_IMPORTED_MODULE_0___default()("*[id^='_tablet_']").each(function (idx, el) { 9840 var target = jquery__WEBPACK_IMPORTED_MODULE_0___default()('#' + el.id.replace('_tablet_', '_desktop_')); 9841 if (target.length) { 9842 swapChildren(jquery__WEBPACK_IMPORTED_MODULE_0___default()(el), target); 9843 } 9844 }); 9845 } 9846} 9847 9848function toggleLinkListOnMobile(is_tablet) { 9849 var $objs = jquery__WEBPACK_IMPORTED_MODULE_0___default()('.js-toggle-linklist-mobile'), 9850 $title = $objs.find('h3, h4, .h4'); 9851 9852 if (is_tablet) { 9853 $title.each(function (idx, el) { 9854 var $content = jquery__WEBPACK_IMPORTED_MODULE_0___default()(el).next(); 9855 if ($content.length) { 9856 jquery__WEBPACK_IMPORTED_MODULE_0___default()(el).addClass('toggle-linklist-title'); 9857 $content.hide(); 9858 jquery__WEBPACK_IMPORTED_MODULE_0___default()(el).click(function () { 9859 $content.stop().slideToggle(); 9860 }); 9861 } 9862 }); 9863 } else { 9864 $title.each(function (idx, el) { 9865 var $content = jquery__WEBPACK_IMPORTED_MODULE_0___default()(el).next(); 9866 if ($content.length) { 9867 jquery__WEBPACK_IMPORTED_MODULE_0___default()(el).unbind('click'); 9868 jquery__WEBPACK_IMPORTED_MODULE_0___default()(el).removeClass('toggle-linklist-title'); 9869 $content.show(); 9870 } 9871 }); 9872 } 9873} 9874 9875function toggleBlockOnMobile(is_mobile) { 9876 var $objs = jquery__WEBPACK_IMPORTED_MODULE_0___default()('.js-toggle-block-mobile'); 9877 9878 if (is_mobile) { 9879 $objs.each(function (idx, el) { 9880 var $content = jquery__WEBPACK_IMPORTED_MODULE_0___default()(el).next(); 9881 if ($content.length) { 9882 jquery__WEBPACK_IMPORTED_MODULE_0___default()(el).addClass('toggle-block-title is-hide'); 9883 $content.hide(); 9884 jquery__WEBPACK_IMPORTED_MODULE_0___default()(el).click(function () { 9885 $content.stop().slideToggle(); 9886 jquery__WEBPACK_IMPORTED_MODULE_0___default()(el).toggleClass('is-hide'); 9887 }); 9888 } 9889 }); 9890 } else { 9891 $objs.each(function (idx, el) { 9892 var $content = jquery__WEBPACK_IMPORTED_MODULE_0___default()(el).next(); 9893 if ($content.length) { 9894 jquery__WEBPACK_IMPORTED_MODULE_0___default()(el).unbind('click'); 9895 jquery__WEBPACK_IMPORTED_MODULE_0___default()(el).removeClass('toggle-block-title is-hide'); 9896 $content.show(); 9897 } 9898 }); 9899 } 9900} 9901 9902jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).on('resize', function () { 9903 var _cw = prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.responsive.current_width; 9904 var _mw = prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.responsive.min_width; 9905 var _tmw = prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.responsive.tablet_min_width; 9906 var _w = window.innerWidth; 9907 9908 var _toggle = _cw >= _mw && _w < _mw || _cw < _mw && _w >= _mw; 9909 var _tablet_toggle = _cw >= _tmw && _w < _tmw || _cw < _tmw && _w >= _tmw; 9910 9911 prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.responsive.current_width = _w; 9912 9913 prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.responsive.mobile = prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.responsive.current_width < prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.responsive.min_width; 9914 prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.responsive.tablet = prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.responsive.current_width < prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.responsive.tablet_min_width; 9915 9916 if (_toggle) { 9917 toggleMobileStyles(prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.responsive.mobile); 9918 toggleBlockOnMobile(prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.responsive.mobile); 9919 } 9920 if (_tablet_toggle) { 9921 toggleTabletStyles(prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.responsive.tablet); 9922 toggleLinkListOnMobile(prestashop__WEBPACK_IMPORTED_MODULE_1___default.a.responsive.tablet); 9923 } 9924}); 9925 9926/***/ }), 9927
9928/***/ "./js/theme.js": 9929/*!*********************!*\ 9930 !*** ./js/theme.js ***! 9931 \*********************/ 9932/*! no exports provided */ 9933/***/ (function(module, __webpack_exports__, __webpack_require__) { 9934 9935"use strict"; 9936__webpack_require__.r(__webpack_exports__); 9937/* harmony import */ var expose_loader_Tether_tether__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! expose-loader?Tether!tether */ "./node_modules/expose-loader/index.js?Tether!./node_modules/tether/dist/js/tether.js-exposed"); 9938/* harmony import */ var expose_loader_Tether_tether__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(expose_loader_Tether_tether__WEBPACK_IMPORTED_MODULE_0__); 9939/* harmony import */ var bootstrap_dist_js_bootstrap_min__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! bootstrap/dist/js/bootstrap.min */ "./node_modules/bootstrap/dist/js/bootstrap.min.js"); 9940/* harmony import */ var bootstrap_dist_js_bootstrap_min__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(bootstrap_dist_js_bootstrap_min__WEBPACK_IMPORTED_MODULE_1__); 9941/* harmony import */ var flexibility__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! flexibility */ "./node_modules/flexibility/flexibility.js"); 9942/* harmony import */ var flexibility__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(flexibility__WEBPACK_IMPORTED_MODULE_2__); 9943/* harmony import */ var bootstrap_touchspin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! bootstrap-touchspin */ "./node_modules/bootstrap-touchspin/dist/jquery.bootstrap-touchspin.js"); 9944/* harmony import */ var bootstrap_touchspin__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(bootstrap_touchspin__WEBPACK_IMPORTED_MODULE_3__); 9945/* harmony import */ var jquery_uniform__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! jquery.uniform */ "./node_modules/jquery.uniform/dist/js/jquery.uniform.standalone.js"); 9946/* harmony import */ var jquery_uniform__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(jquery_uniform__WEBPACK_IMPORTED_MODULE_4__); 9947/* harmony import */ var _aone_shared_functions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./aone/shared-functions */ "./js/aone/shared-functions.js"); 9948/* harmony import */ var _aone_shared_functions__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_aone_shared_functions__WEBPACK_IMPORTED_MODULE_5__); 9949/* harmony import */ var _responsive__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./responsive */ "./js/responsive.js"); 9950/* harmony import */ var _checkout__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./checkout */ "./js/checkout.js"); 9951/* harmony import */ var _customer__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./customer */ "./js/customer.js"); 9952/* harmony import */ var _listing__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./listing */ "./js/listing.js"); 9953/* harmony import */ var _product__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./product */ "./js/product.js"); 9954/* harmony import */ var _cart__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./cart */ "./js/cart.js"); 9955/* harmony import */ var prestashop__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! prestashop */ "prestashop"); 9956/* harmony import */ var prestashop__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(prestashop__WEBPACK_IMPORTED_MODULE_12__); 9957/* harmony import */ var events__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! events */ "./node_modules/events/events.js"); 9958/* harmony import */ var events__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(events__WEBPACK_IMPORTED_MODULE_13__); 9959/* harmony import */ var _lib_bootstrap_filestyle_min__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./lib/bootstrap-filestyle.min */ "./js/lib/bootstrap-filestyle.min.js"); 9960/* harmony import */ var _lib_bootstrap_filestyle_min__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_lib_bootstrap_filestyle_min__WEBPACK_IMPORTED_MODULE_14__); 9961/* harmony import */ var _lib_jquery_scrollbox_min__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./lib/jquery.scrollbox.min */ "./js/lib/jquery.scrollbox.min.js"); 9962/* harmony import */ var _lib_jquery_scrollbox_min__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_lib_jquery_scrollbox_min__WEBPACK_IMPORTED_MODULE_15__); 9963/* harmony import */ var _lib_slick__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./lib/slick */ "./js/lib/slick.js"); 9964/* harmony import */ var _lib_slick__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_lib_slick__WEBPACK_IMPORTED_MODULE_16__); 9965/* harmony import */ var _lib_jquery_smooth_scroll_min__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./lib/jquery.smooth-scroll.min */ "./js/lib/jquery.smooth-scroll.min.js"); 9966/* harmony import */ var _lib_jquery_smooth_scroll_min__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_lib_jquery_smooth_scroll_min__WEBPACK_IMPORTED_MODULE_17__); 9967/* harmony import */ var _lib_pace__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./lib/pace */ "./js/lib/pace.js"); 9968/* harmony import */ var _lib_pace__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_lib_pace__WEBPACK_IMPORTED_MODULE_18__); 9969/* harmony import */ var _lib_jquery_sticky__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./lib/jquery.sticky */ "./js/lib/jquery.sticky.js"); 9970/* harmony import */ var _lib_jquery_sticky__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(_lib_jquery_sticky__WEBPACK_IMPORTED_MODULE_19__); 9971/* harmony import */ var _lib_jquery_nivo_slider__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./lib/jquery.nivo.slider */ "./js/lib/jquery.nivo.slider.js"); 9972/* harmony import */ var _lib_jquery_nivo_slider__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(_lib_jquery_nivo_slider__WEBPACK_IMPORTED_MODULE_20__); 9973/* harmony import */ var _lib_colpick__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./lib/colpick */ "./js/lib/colpick.js"); 9974/* harmony import */ var _lib_colpick__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(_lib_colpick__WEBPACK_IMPORTED_MODULE_21__); 9975/* harmony import */ var _lib_jquery_elevateZoom_min__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./lib/jquery.elevateZoom.min */ "./js/lib/jquery.elevateZoom.min.js"); 9976/* harmony import */ var _lib_jquery_elevateZoom_min__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(_lib_jquery_elevateZoom_min__WEBPACK_IMPORTED_MODULE_22__); 9977/* harmony import */ var _lib_jquery_magnific_popup_min__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./lib/jquery.magnific-popup.min */ "./js/lib/jquery.magnific-popup.min.js"); 9978/* harmony import */ var _lib_jquery_magnific_popup_min__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(_lib_jquery_magnific_popup_min__WEBPACK_IMPORTED_MODULE_23__); 9979/* harmony import */ var _lib_jquery_cookieBar__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./lib/jquery.cookieBar */ "./js/lib/jquery.cookieBar.js"); 9980/* harmony import */ var _lib_jquery_cookieBar__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(_lib_jquery_cookieBar__WEBPACK_IMPORTED_MODULE_24__); 9981/* harmony import */ var _lib_jquery_lazyload__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./lib/jquery.lazyload */ "./js/lib/jquery.lazyload.js"); 9982/* harmony import */ var _lib_jquery_lazyload__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(_lib_jquery_lazyload__WEBPACK_IMPORTED_MODULE_25__); 9983/* harmony import */ var _lib_jquery_mobile_events_min__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./lib/jquery.mobile-events.min */ "./js/lib/jquery.mobile-events.min.js"); 9984/* harmony import */ var _lib_jquery_mobile_events_min__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(_lib_jquery_mobile_events_min__WEBPACK_IMPORTED_MODULE_26__); 9985/* harmony import */ var _lib_jquery_countdown_min__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./lib/jquery.countdown.min */ "./js/lib/jquery.countdown.min.js"); 9986/* harmony import */ var _lib_jquery_countdown_min__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/__webpack_require__.n(_lib_jquery_countdown_min__WEBPACK_IMPORTED_MODULE_27__); 9987/* harmony import */ var _components_block_cart__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./components/block-cart */ "./js/components/block-cart.js"); 9988/* harmony import */ var _components_ps_modules__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./components/ps-modules */ "./js/components/ps-modules.js"); 9989/* harmony import */ var _components_drop_down__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./components/drop-down */ "./js/components/drop-down.js"); 9990/* harmony import */ var _components_drop_down__WEBPACK_IMPORTED_MODULE_30___default = /*#__PURE__*/__webpack_require__.n(_components_drop_down__WEBPACK_IMPORTED_MODULE_30__); 9991/* harmony import */ var _components_form__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./components/form */ "./js/components/form.js"); 9992/* harmony import */ var _components_form__WEBPACK_IMPORTED_MODULE_31___default = /*#__PURE__*/__webpack_require__.n(_components_form__WEBPACK_IMPORTED_MODULE_31__); 9993/* harmony import */ var _aone_aone_module__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./aone/aone-module */ "./js/aone/aone-module.js"); 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009//import DropDown from './components/drop-down'; 10010//import Form from './components/form'; 10011//import ProductMinitature from './components/product-miniature'; 10012//import ProductSelect from './components/product-select';
10013//import TopMenu from './components/top-menu'; 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032//import './lib/SmoothScroll'; 10033 10034 10035 10036 10037 10038 10039 10040 10041// "inherit" EventEmitter 10042for (var i in events__WEBPACK_IMPORTED_MODULE_13___default.a.prototype) { 10043 prestashop__WEBPACK_IMPORTED_MODULE_12___default.a[i] = events__WEBPACK_IMPORTED_MODULE_13___default.a.prototype[i]; 10044} 10045 10046//$(document).ready(function() { 10047//let dropDownEl = $('.js-dropdown'); 10048//const form = new Form(); 10049//let dropDown = new DropDown(dropDownEl); 10050//let productSelect = new ProductSelect(); 10051//let topMenuEl = $('.js-top-menu ul[data-depth="0"]'); 10052//let topMenu = new TopMenu(topMenuEl); 10053//let productMinitature = new ProductMinitature(); 10054 10055//dropDown.init(); 10056//form.init(); 10057//productSelect.init(); 10058//}); 10059 10060/***/ }), 10061 10062/***/ "./node_modules/babel-loader/lib/index.js!./node_modules/tether/dist/js/tether.js": 10063/*!*******************************************************************************!*\ 10064 !*** ./node_modules/babel-loader/lib!./node_modules/tether/dist/js/tether.js ***! 10065 \*******************************************************************************/ 10066/*! no static exports found */ 10067/***/ (function(module, exports, __webpack_require__) { 10068 10069var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! tether 1.4.7 */ 10070 10071(function (root, factory) { 10072 if (true) { 10073 !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), 10074 __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? 10075 (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), 10076 __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); 10077 } else {} 10078})(this, function () { 10079 10080 'use strict'; 10081 10082 var _createClass = function () { 10083 function defineProperties(target, props) { 10084 for (var i = 0; i < props.length; i++) { 10085 var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if ('value' in descriptor) descriptor.writable = true;Object.defineProperty(target, descriptor.key, descriptor); 10086 } 10087 }return function (Constructor, protoProps, staticProps) { 10088 if (protoProps) defineProperties(Constructor.prototype, protoProps);if (staticProps) defineProperties(Constructor, staticProps);return Constructor; 10089 }; 10090 }(); 10091 10092 function _classCallCheck(instance, Constructor) { 10093 if (!(instance instanceof Constructor)) { 10094 throw new TypeError('Cannot call a class as a function'); 10095 } 10096 } 10097 10098 var TetherBase = undefined; 10099 if (typeof TetherBase === 'undefined') { 10100 TetherBase = { modules: [] }; 10101 } 10102 10103 var zeroElement = null; 10104 10105 // Same as native getBoundingClientRect, except it takes into account parent <frame> offsets 10106 // if the element lies within a nested document (<frame> or <iframe>-like). 10107 function getActualBoundingClientRect(node) { 10108 var boundingRect = node.getBoundingClientRect(); 10109 10110 // The original object returned by getBoundingClientRect is immutable, so we clone it 10111 // We can't use extend because the properties are not considered part of the object by hasOwnProperty in IE9 10112 var rect = {}; 10113 for (var k in boundingRect) { 10114 rect[k] = boundingRect[k]; 10115 } 10116 10117 try { 10118 if (node.ownerDocument !== document) { 10119 var _frameElement = node.ownerDocument.defaultView.frameElement; 10120 if (_frameElement) { 10121 var frameRect = getActualBoundingClientRect(_frameElement); 10122 rect.top += frameRect.top; 10123 rect.bottom += frameRect.top; 10124 rect.left += frameRect.left; 10125 rect.right += frameRect.left; 10126 } 10127 } 10128 } catch (err) { 10129 // Ignore "Access is denied" in IE11/Edge 10130 } 10131 10132 return rect; 10133 } 10134 10135 function getScrollParents(el) { 10136 // In firefox if the el is inside an iframe with display: none; window.getComputedStyle() will return null; 10137 // https://bugzilla.mozilla.org/show_bug.cgi?id=548397 10138 var computedStyle = getComputedStyle(el) || {}; 10139 var position = computedStyle.position; 10140 var parents = []; 10141 10142 if (position === 'fixed') { 10143 return [el]; 10144 } 10145 10146 var parent = el; 10147 while ((parent = parent.parentNode) && parent && parent.nodeType === 1) { 10148 var style = undefined;
10149 try { 10150 style = getComputedStyle(parent); 10151 } catch (err) {} 10152 10153 if (typeof style === 'undefined' || style === null) { 10154 parents.push(parent); 10155 return parents; 10156 } 10157 10158 var _style = style; 10159 var overflow = _style.overflow; 10160 var overflowX = _style.overflowX; 10161 var overflowY = _style.overflowY; 10162 10163 if (/(auto|scroll|overlay)/.test(overflow + overflowY + overflowX)) { 10164 if (position !== 'absolute' || ['relative', 'absolute', 'fixed'].indexOf(style.position) >= 0) { 10165 parents.push(parent); 10166 } 10167 } 10168 } 10169 10170 parents.push(el.ownerDocument.body); 10171 10172 // If the node is within a frame, account for the parent window scroll 10173 if (el.ownerDocument !== document) { 10174 parents.push(el.ownerDocument.defaultView); 10175 } 10176 10177 return parents; 10178 } 10179 10180 var uniqueId = function () { 10181 var id = 0; 10182 return function () { 10183 return ++id; 10184 }; 10185 }(); 10186 10187 var zeroPosCache = {}; 10188 var getOrigin = function getOrigin() { 10189 // getBoundingClientRect is unfortunately too accurate. It introduces a pixel or two of 10190 // jitter as the user scrolls that messes with our ability to detect if tw
10190o positions 10191 // are equivilant or not. We place an element at the top left of the page that will 10192 // get the same jitter, so we can cancel the two out. 10193 var node = zeroElement; 10194 if (!node || !document.body.contains(node)) { 10195 node = document.createElement('div'); 10196 node.setAttribute('data-tether-id', uniqueId()); 10197 extend(node.style, { 10198 top: 0, 10199 left: 0, 10200 position: 'absolute' 10201 }); 10202 10203 document.body.appendChild(node); 10204 10205 zeroElement = node; 10206 } 10207 10208 var id = node.getAttribute('data-tether-id'); 10209 if (typeof zeroPosCache[id] === 'undefined') { 10210 zeroPosCache[id] = getActualBoundingClientRect(node); 10211 10212 // Clear the cache when this position call is done 10213 defer(function () { 10214 delete zeroPosCache[id]; 10215 }); 10216 } 10217 10218 return zeroPosCache[id]; 10219 }; 10220 10221 function removeUtilElements() { 10222 if (zeroElement) { 10223 document.body.removeChild(zeroElement); 10224 } 10225 zeroElement = null; 10226 }; 10227 10228 function getBounds(el) { 10229 var doc = undefined; 10230 if (el === document) { 10231 doc = document; 10232 el = document.documentElement; 10233 } else { 10234 doc = el.ownerDocument; 10235 } 10236 10237 var docEl = doc.documentElement; 10238 10239 var box = getActualBoundingClientRect(el); 10240 10241 var origin = getOrigin(); 10242 10243 box.top -= origin.top; 10244 box.left -= origin.left; 10245 10246 if (typeof box.width === 'undefined') { 10247 box.width = document.body.scrollWidth - box.left - box.right; 10248 } 10249 if (typeof box.height === 'undefined') { 10250 box.height = document.body.scrollHeight - box.top - box.bottom; 10251 } 10252 10253 box.top = box.top - docEl.clientTop; 10254 box.left = box.left - docEl.clientLeft; 10255 box.right = doc.body.clientWidth - box.width - box.left; 10256 box.bottom = doc.body.clientHeight - box.height - box.top; 10257 10258 return box; 10259 } 10260 10261 function getOffsetParent(el) { 10262 return el.offsetParent || document.documentElement; 10263 } 10264 10265 var _scrollBarSize = null; 10266 function getScrollBarSize() { 10267 if (_scrollBarSize) { 10268 return _scrollBarSize; 10269 } 10270 var inner = document.createElement('div'); 10271 inner.style.width = '100%'; 10272 inner.style.height = '200px'; 10273 10274 var outer = document.createElement('div'); 10275 extend(outer.style, { 10276 position: 'absolute', 10277 top: 0, 10278 left: 0, 10279 pointerEvents: 'none', 10280 visibility: 'hidden', 10281 width: '200px', 10282 height: '150px', 10283 overflow: 'hidden' 10284 }); 10285 10286 outer.appendChild(inner); 10287 10288 document.body.appendChild(outer); 10289 10290 var widthContained = inner.offsetWidth; 10291 outer.style.overflow = 'scroll'; 10292 var widthScroll = inner.offsetWidth; 10293 10294 if (widthContained === widthScroll) { 10295 widthScroll = outer.clientWidth; 10296 } 10297 10298 document.body.removeChild(outer); 10299 10300 var width = widthContained - widthScroll; 10301 10302 _scrollBarSize = { width: width, height: width }; 10303 return _scrollBarSize; 10304 } 10305 10306 function extend() { 10307 var out = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; 10308 10309 var args = []; 10310 10311 Array.prototype.push.apply(args, arguments); 10312 10313 args.slice(1).forEach(function (obj) { 10314 if (obj) { 10315 for (var key in obj) { 10316 if ({}.hasOwnProperty.call(obj, key)) { 10317 out[key] = obj[key]; 10318 } 10319 } 10320 } 10321 }); 10322 10323 return out; 10324 } 10325 10326 function removeClass(el, name) { 10327 if (typeof el.classList !== 'undefined') { 10328 name.split(' ').forEach(function (cls) { 10329 if (cls.trim()) { 10330 el.classList.remove(cls); 10331 } 10332 }); 10333 } else { 10334 var regex = new RegExp('(^| )' + name.split(' ').join('|') + '( |$)', 'gi'); 10335 var className = getClassName(el).replace(regex, ' '); 10336 setClassName(el, className); 10337 } 10338 } 10339 10340 function addClass(el, name) { 10341 if (typeof el.classList !== 'undefined') { 10342 name.split(' ').forEach(function (cls) { 10343 if (cls.trim()) { 10344 el.classList.add(cls); 10345 } 10346 }); 10347 } else { 10348 removeClass(el, name); 10349 var cls = getClassName(el) + (' ' + name); 10350 setClassName(el, cls); 10351 } 10352 } 10353 10354 function hasClass(el, name) { 10355 if (typeof el.classList !== 'undefined') { 10356 return el.classList.contains(name); 10357 } 10358 var className = getClassName(el); 10359 return new RegExp('(^| )' + name + '( |$)', 'gi').test(className); 10360 } 10361 10362 function getClassName(el) { 10363 // Can't use just SVGAnimatedString here since nodes within a Frame in IE have 10364 // completely separately SVGAnimatedString base classes 10365 if (el.className instanceof el.ownerDocument.defaultView.SVGAnimatedString) { 10366 return el.className.baseVal; 10367 } 10368 return el.className; 10369 } 10370 10371 function setClassName(el, className) { 10372 el.setAttribute('class', className); 10373 } 10374 10375 function updateClasses(el, add, all) { 10376 // Of the set of 'all' classes, we need the 'add' classes, and only the 10377 // 'add' classes to be set. 10378 all.forEach(function (cls) { 10379 if (add.indexOf(cls) === -1 && hasClass(el, cls)) { 10380 removeClass(el, cls); 10381 } 10382 }); 10383
10384 add.forEach(function (cls) { 10385 if (!hasClass(el, cls)) { 10386 addClass(el, cls); 10387 } 10388 }); 10389 } 10390 10391 var deferred = []; 10392 10393 var defer = function defer(fn) { 10394 deferred.push(fn); 10395 }; 10396 10397 var flush = function flush() { 10398 var fn = undefined; 10399 while (fn = deferred.pop()) { 10400 fn(); 10401 } 10402 }; 10403 10404 var Evented = function () { 10405 function Evented() { 10406 _classCallCheck(this, Evented); 10407 } 10408 10409 _createClass(Evented, [{ 10410 key: 'on', 10411 value: function on(event, handler, ctx) { 10412 var once = arguments.length <= 3 || arguments[3] === undefined ? false : arguments[3]; 10413 10414 if (typeof this.bindings === 'undefined') { 10415 this.bindings = {}; 10416 } 10417 if (typeof this.bindings[event] === 'undefined') { 10418 this.bindings[event] = []; 10419 } 10420 this.bindings[event].push({ handler: handler, ctx: ctx, once: once }); 10421 } 10422 }, { 10423 key: 'once', 10424 value: function once(event, handler, ctx) { 10425 this.on(event, handler, ctx, true); 10426 } 10427 }, { 10428 key: 'off', 10429 value: function off(event, handler) { 10430 if (typeof this.bindings === 'undefined' || typeof this.bindings[event] === 'undefined') { 10431 return; 10432 } 10433 10434 if (typeof handler === 'undefined') { 10435 delete this.bindings[event]; 10436 } else { 10437 var i = 0; 10438 while (i < this.bindings[event].length) { 10439 if (this.bindings[event][i].handler === handler) { 10440 this.bindings[event].splice(i, 1); 10441 } else { 10442 ++i; 10443 } 10444 } 10445 } 10446 } 10447 }, { 10448 key: 'trigger', 10449 value: function trigger(event) { 10450 if (typeof this.bindings !== 'undefined' && this.bindings[event]) { 10451 var i = 0; 10452 10453 for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { 10454 args[_key - 1] = arguments[_key]; 10455 } 10456 10457 while (i < this.bindings[event].length) { 10458 var _bindings$event$i = this.bindings[event][i]; 10459 var handler = _bindings$event$i.handler; 10460 var ctx = _bindings$event$i.ctx; 10461 var once = _bindings$event$i.once; 10462 10463 var context = ctx; 10464 if (typeof context === 'undefined') { 10465 context = this; 10466 } 10467 10468 handler.apply(context, args); 10469 10470 if (once) { 10471 this.bindings[event].splice(i, 1); 10472 } else { 10473 ++i; 10474 } 10475 } 10476 } 10477 } 10478 }]); 10479 10480 return Evented; 10481 }(); 10482 10483 TetherBase.Utils = { 10484 getActualBoundingClientRect: getActualBoundingClientRect, 10485 getScrollParents: getScrollParents, 10486 getBounds: getBounds, 10487 getOffsetParent: getOffsetParent, 10488 extend: extend, 10489 addClass: addClass, 10490 removeClass: removeClass, 10491 hasClass: hasClass, 10492 updateClasses: updateClasses, 10493 defer: defer, 10494 flush: flush, 10495 uniqueId: uniqueId, 10496 Evented: Evented, 10497 getScrollBarSize: getScrollBarSize, 10498 removeUtilElements: removeUtilElements 10499 }; 10500 /* globals TetherBase, performance */ 10501 10502 'use strict'; 10503 10504 var _slicedToArray = function () { 10505 function sliceIterator(arr, i) { 10506 var _arr = [];var _n = true;var _d = false;var _e = undefined;try { 10507 for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { 10508 _arr.push(_s.value);if (i && _arr.length === i) break; 10509 } 10510 } catch (err) { 10511 _d = true;_e = err; 10512 } finally { 10513 try { 10514 if (!_n && _i['return']) _i['return'](); 10515 } finally { 10516 if (_d) throw _e; 10517 } 10518 }return _arr; 10519 }return function (arr, i) { 10520 if (Array.isArray(arr)) { 10521 return arr; 10522 } else if (Symbol.iterator in Object(arr)) { 10523 return sliceIterator(arr, i); 10524 } else { 10525 throw new TypeError('Invalid attempt to destructure non-iterable instance'); 10526 } 10527 }; 10528 }(); 10529 10530 var _createClass = function () { 10531 function defineProperties(target, props) { 10532 for (var i = 0; i < props.length; i++) { 10533 var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if ('value' in descriptor) descriptor.writable = true;Object.defineProperty(target, descriptor.key, descriptor); 10534 } 10535 }return function (Constructor, protoProps, staticProps) { 10536 if (protoProps) defineProperties(Constructor.prototype, protoProps);if (staticProps) defineProperties(Constructor, staticProps);return Constructor; 10537 }; 10538 }(); 10539 10540 var _get = function get(_x6, _x7, _x8) { 10541 var _again = true;_function: while (_again) { 10542 var object = _x6, 10543 property = _x7, 10544 receiver = _x8;_again = false;if (object === null) object = Function.prototype;var desc = Object.getOwnPropertyDescriptor(object, property);if (desc === undefined) { 10545 var parent = Object.getPrototypeOf(object);if (parent === null) { 10546 return undefined; 10547 } else { 10548 _x6 = parent;_x7 = property;_x8 = receiver;_again = true;desc = parent = undefined;continue _function; 10549 } 10550 } else if ('value' in desc) { 10551 return desc.value; 10552 } else { 10553 var getter = desc.get;if (getter === undefined) { 10554 return undefined; 10555 }return getter.call(receiver); 10556 } 10557 } 10558 }; 10559 10560 function _classCallCheck(instance, Constructor) { 10561 if (!(instance instanceof Constructor)) { 10562 throw new TypeError('Cannot call a class as a function'); 10563 } 10564 } 10565 10566 function _inherits(subClass, superClass) { 10567 if (typeof superClass !== 'function' && superClass !== null) { 10568 throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); 10569 }subClass.prototype = Object.create(superClass && superClass.prototype, { c
10569onstructor: { value: subClass, enumerable: false, writable: true, configurable: true } });if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; 10570 } 10571 10572 if (typeof TetherBase === 'undefined') { 10573 throw new Error('You must include the utils.js file before tether.js'); 10574 } 10575 10576 var _TetherBase$Utils = TetherBase.Utils; 10577 var getScrollParents = _TetherBase$Utils.getScrollParents; 10578 var getBounds = _TetherBase$Utils.getBounds; 10579 var getOffsetParent = _TetherBase$Utils.getOffsetParent; 10580 var extend = _TetherBase$Utils.extend; 10581 var addClass = _TetherBase$Utils.addClass; 10582 var removeClass = _TetherBase$Utils.removeClass; 10583 var updateClasses = _TetherBase$Utils.updateClasses; 10584 var defer = _TetherBase$Utils.defer; 10585 var flush = _TetherBase$Utils.flush; 10586 var getScrollBarSize = _TetherBase$Utils.getScrollBarSize; 10587 var removeUtilElements = _TetherBase$Utils.removeUtilElements; 10588 10589 function within(a, b) { 10590 var diff = arguments.length <= 2 || arguments[2] === undefined ? 1 : arguments[2]; 10591 10592 return a + diff >= b && b >= a - diff; 10593 } 10594 10595 var transformKey = function () { 10596 if (typeof document === 'undefined') { 10597 return ''; 10598 } 10599 var el = document.createElement('div'); 10600 10601 var transforms = ['transform', 'WebkitTransform', 'OTransform', 'MozTransform', 'msTransform']; 10602 for (var i = 0; i < transforms.length; ++i) { 10603 var key = transforms[i]; 10604 if (el.style[key] !== undefined) { 10605 return key; 10606 } 10607 } 10608 }(); 10609 10610 var tethers = []; 10611 10612 var position = function position() { 10613 tethers.forEach(function (tether) { 10614 tether.position(false); 10615 }); 10616 flush(); 10617 }; 10618 10619 function now() { 10620 if (typeof performance === 'object' && typeof performance.now === 'function') { 10621 return performance.now(); 10622 } 10623 return +new Date(); 10624 } 10625 10626 (function () { 10627 var lastCall = null; 10628 var lastDuration = null; 10629 var pendingTimeout = null; 10630 10631 var tick = function tick() { 10632 if (typeof lastDuration !== 'undefined' && lastDuration > 16) { 10633 // We voluntarily throttle ourselves if we can't manage 60fps 10634 lastDuration = Math.min(lastDuration - 16, 250); 10635 10636 // Just in case this is the last event, remember to position just once more 10637 pendingTimeout = setTimeout(tick, 250); 10638 return; 10639 } 10640 10641 if (typeof lastCall !== 'undefined' && now() - lastCall < 10) { 10642 // Some browsers call events a little too frequently, refuse to run more than is reasonable 10643 return; 10644 } 10645 10646 if (pendingTimeout != null) { 10647 clearTimeout(pendingTimeout); 10648 pendingTimeout = null; 10649 } 10650 10651 lastCall = now(); 10652 position(); 10653 lastDuration = now() - lastCall; 10654 }; 10655 10656 if (typeof window !== 'undefined' && typeof window.addEventListener !== 'undefined') { 10657 ['resize', 'scroll', 'touchmove'].forEach(function (event) { 10658 window.addEventListener(event, tick); 10659 }); 10660 } 10661 })(); 10662 10663 var MIRROR_LR = { 10664 center: 'center', 10665 left: 'right', 10666 right: 'left' 10667 }; 10668 10669 var MIRROR_TB = { 10670 middle: 'middle', 10671 top: 'bottom', 10672 bottom: 'top' 10673 }; 10674 10675 var OFFSET_MAP = { 10676 top: 0, 10677 left: 0, 10678 middle: '50%', 10679 center: '50%', 10680 bottom: '100%', 10681 right: '100%' 10682 }; 10683 10684 var autoToFixedAttachment = function autoToFixedAttachment(attachment, relativeToAttachment) { 10685 var left = attachment.left; 10686 var top = attachment.top; 10687 10688 if (left === 'auto') { 10689 left = MIRROR_LR[relativeToAttachment.left]; 10690 } 10691 10692 if (top === 'auto') { 10693 top = MIRROR_TB[relativeToAttachment.top]; 10694 } 10695 10696 return { left: left, top: top }; 10697 }; 10698 10699 var attachmentToOffset = function attachmentToOffset(attachment) { 10700 var left = attachment.left; 10701 var top = attachment.top; 10702 10703 if (typeof OFFSET_MAP[attachment.left] !== 'undefined') { 10704 left = OFFSET_MAP[attachment.left]; 10705 } 10706 10707 if (typeof OFFSET_MAP[attachment.top] !== 'undefined') { 10708 top = OFFSET_MAP[attachment.top]; 10709 } 10710 10711 return { left: left, top: top }; 10712 }; 10713 10714 function addOffset() { 10715 var out = { top: 0, left: 0 }; 10716 10717 for (var _len = arguments.length, offsets = Array(_len), _key = 0; _key < _len; _key++) { 10718 offsets[_key] = arguments[_key]; 10719 } 10720
10721 offsets.forEach(function (_ref) { 10722 var top = _ref.top; 10723 var left = _ref.left; 10724 10725 if (typeof top === 'string') { 10726 top = parseFloat(top, 10); 10727 } 10728 if (typeof left === 'string') { 10729 left = parseFloat(left, 10); 10730 } 10731 10732 out.top += top; 10733 out.left += left; 10734 }); 10735 10736 return out; 10737 } 10738 10739 function offsetToPx(offset, size) { 10740 if (typeof offset.left === 'string' && offset.left.indexOf('%') !== -1) { 10741 offset.left = parseFloat(offset.left, 10) / 100 * size.width; 10742 } 10743 if (typeof offset.top === 'string' && offset.top.indexOf('%') !== -1) { 10744 offset.top = parseFloat(offset.top, 10) / 100 * size.height; 10745 } 10746 10747 return offset; 10748 } 10749 10750 var parseOffset = function parseOffset(value) { 10751 var _value$split = value.split(' '); 10752 10753 var _value$split2 = _slicedToArray(_value$split, 2); 10754 10755 var top = _value$split2[0]; 10756 var left = _value$split2[1]; 10757 10758 return { top: top, left: left }; 10759 }; 10760 var parseAttachment = parseOffset; 10761 10762 var TetherClass = function (_Evented) { 10763 _inherits(TetherClass, _Evented); 10764 10765 function TetherClass(options) { 10766 var _this = this; 10767 10768 _classCallCheck(this, TetherClass); 10769 10770 _get(Object.getPrototypeOf(TetherClass.prototype), 'constructor', this).call(this); 10771 this.position = this.position.bind(this); 10772 10773 tethers.push(this); 10774 10775 this.history = []; 10776 10777 this.setOptions(options, false); 10778 10779 TetherBase.modules.forEach(function (module) { 10780 if (typeof module.initialize !== 'undefined') { 10781 module.initialize.call(_this); 10782 } 10783 }); 10784 10785 this.position(); 10786 } 10787 10788 _createClass(TetherClass, [{ 10789 key: 'getClass', 10790 value: function getClass() { 10791 var key = arguments.length <= 0 || arguments[0] === undefined ? '' : arguments[0]; 10792 var classes = this.options.classes; 10793 10794 if (typeof classes !== 'undefined' && classes[key]) { 10795 return this.options.classes[key]; 10796 } else if (this.options.classPrefix) { 10797 return this.options.classPrefix + '-' + key; 10798 } else { 10799 return key; 10800 } 10801 } 10802 }, { 10803 key: 'setOptions', 10804 value: function setOptions(options) { 10805 var _this2 = this; 10806 10807 var pos = arguments.length <= 1 || arguments[1] === undefined ? true : arguments[1]; 10808 10809 var defaults = { 10810 offset: '0 0', 10811 targetOffset: '0 0', 10812 targetAttachment: 'auto auto', 10813 classPrefix: 'tether' 10814 }; 10815 10816 this.options = extend(defaults, options); 10817 10818 var _options = this.options; 10819 var element = _options.element; 10820 var target = _options.target; 10821 var targetModifier = _options.targetModifier; 10822 10823 this.element = element; 10824 this.target = target; 10825 this.targetModifier = targetModifier; 10826 10827 if (this.target === 'viewport') { 10828 this.target = document.body; 10829 this.targetModifier = 'visible'; 10830 } else if (this.target === 'scroll-handle') { 10831 this.target = document.body; 10832 this.targetModifier = 'scroll-handle'; 10833 } 10834 10835 ['element', 'target'].forEach(function (key) { 10836 if (typeof _this2[key] === 'undefined') { 10837 throw new Error('Tether Error: Both element and target must be defined'); 10838 } 10839 10840 if (typeof _this2[key].jquery !== 'undefined') { 10841 _this2[key] = _this2[key][0]; 10842 } else if (typeof _this2[key] === 'string') { 10843 _this2[key] = document.querySelector(_this2[key]); 10844 } 10845 }); 10846 10847 addClass(this.element, this.getClass('element')); 10848 if (!(this.options.addTargetClasses === false)) { 10849 addClass(this.target, this.getClass('target')); 10850 } 10851 10852 if (!this.options.attachment) { 10853 throw new Error('Tether Error: You must provide an attachment'); 10854 } 10855 10856 this.targetAttachment = parseAttachment(this.options.targetAttachment); 10857 this.attachment = parseAttachment(this.options.attachment); 10858 this.offset = parseOffset(this.options.offset); 10859 this.targetOffset = parseOffset(this.options.targetOffset); 10860 10861 if (typeof this.scrollParents !== 'undefined') { 10862 this.disable(); 10863 } 10864 10865 if (this.targetModifier === 'scroll-handle') { 10866 this.scrollParents = [this.target]; 10867 } else { 10868 this.scrollParents = getScrollParents(this.target); 10869 } 10870 10871 if (!(this.options.enabled === false)) { 10872 this.enable(pos); 10873 } 10874 } 10875 }, {
10876 key: 'getTargetBounds', 10877 value: function getTargetBounds() { 10878 if (typeof this.targetModifier !== 'undefined') { 10879 if (this.targetModifier === 'visible') { 10880 if (this.target === document.body) { 10881 return { top: pageYOffset, left: pageXOffset, height: innerHeight, width: innerWidth }; 10882 } else { 10883 var bounds = getBounds(this.target); 10884 10885 var out = { 10886 height: bounds.height, 10887 width: bounds.width, 10888 top: bounds.top, 10889 left: bounds.left 10890 }; 10891 10892 out.height = Math.min(out.height, bounds.height - (pageYOffset - bounds.top)); 10893 out.height = Math.min(out.height, bounds.height - (bounds.top + bounds.height - (pageYOffset + innerHeight))); 10894 out.height = Math.min(innerHeight, out.height); 10895 out.height -= 2; 10896 10897 out.width = Math.min(out.width, bounds.width - (pageXOffset - bounds.left)); 10898 out.width = Math.min(out.width, bounds.width - (bounds.left + bounds.width - (pageXOffset + innerWidth))); 10899 out.width = Math.min(innerWidth, out.width); 10900 out.width -= 2; 10901 10902 if (out.top < pageYOffset) { 10903 out.top = pageYOffset; 10904 } 10905 if (out.left < pageXOffset) { 10906 out.left = pageXOffset; 10907 } 10908 10909 return out; 10910 } 10911 } else if (this.targetModifier === 'scroll-handle') { 10912 var bounds = undefined; 10913 var target = this.target; 10914 if (target === document.body) { 10915 target = document.documentElement; 10916 10917 bounds = { 10918 left: pageXOffset, 10919 top: pageYOffset, 10920 height: innerHeight, 10921 width: innerWidth 10922 }; 10923 } else { 10924 bounds = getBounds(target); 10925 } 10926 10927 var style = getComputedStyle(target); 10928 10929 var hasBottomScroll = target.scrollWidth > target.clientWidth || [style.overflow, style.overflowX].indexOf('scroll') >= 0 || this.target !== document.body; 10930 10931 var scrollBottom = 0; 10932 if (hasBottomScroll) { 10933 scrollBottom = 15; 10934 } 10935 10936 var height = bounds.height - parseFloat(style.borderTopWidth) - parseFloat(style.borderBottomWidth) - scrollBottom; 10937 10938 var out = { 10939 width: 15, 10940 height: height * 0.975 * (height / target.scrollHeight), 10941 left: bounds.left + bounds.width - parseFloat(style.borderLeftWidth) - 15 10942 }; 10943 10944 var fitAdj = 0; 10945 if (height < 408 && this.target === document.body) { 10946 fitAdj = -0.00011 * Math.pow(height, 2) - 0.00727 * height + 22.58; 10947 } 10948 10949 if (this.target !== document.body) { 10950 out.height = Math.max(out.height, 24); 10951 } 10952 10953 var scrollPercentage = this.target.scrollTop / (target.scrollHeight - height); 10954 out.top = scrollPercentage * (height - out.height - fitAdj) + bounds.top + parseFloat(style.borderTopWidth); 10955 10956 if (this.target === document.body) { 10957 out.height = Math.max(out.height, 24); 10958 } 10959 10960 return out; 10961 } 10962 } else { 10963 return getBounds(this.target); 10964 } 10965 } 10966 }, { 10967 key: 'clearCache', 10968 value: function clearCache() { 10969 this._cache = {}; 10970 } 10971 }, { 10972 key: 'cache', 10973 value: function cache(k, getter) { 10974 // More than one module will often need the same DOM info, so 10975 // we keep a cache which is cleared on each position call 10976 if (typeof this._cache === 'undefined') { 10977 this._cache = {}; 10978 } 10979 10980 if (typeof this._cache[k] === 'undefined') { 10981 this._cache[k] = getter.call(this); 10982 } 10983 10984 return this._cache[k]; 10985 } 10986 }, { 10987 key: 'enable', 10988 value: function enable() { 10989 var _this3 = this; 10990 10991 var pos = arguments.length <= 0 || arguments[0] === undefined ? true : arguments[0]; 10992 10993 if (!(this.options.addTargetClasses === false)) { 10994 addClass(this.target, this.getClass('enabled')); 10995 } 10996 addClass(this.element, this.getClass('enabled')); 10997 this.enabled = true; 10998
10999 this.scrollParents.forEach(function (parent) { 11000 if (parent !== _this3.target.ownerDocument) { 11001 parent.addEventListener('scroll', _this3.position); 11002 } 11003 }); 11004 11005 if (pos) { 11006 this.position(); 11007 } 11008 } 11009 }, { 11010 key: 'disable', 11011 value: function disable() { 11012 var _this4 = this; 11013 11014 removeClass(this.target, this.getClass('enabled')); 11015 removeClass(this.element, this.getClass('enabled')); 11016 this.enabled = false; 11017 11018 if (typeof this.scrollParents !== 'undefined') { 11019 this.scrollParents.forEach(function (parent) { 11020 parent.removeEventListener('scroll', _this4.position); 11021 }); 11022 } 11023 } 11024 }, { 11025 key: 'destroy', 11026 value: function destroy() { 11027 var _this5 = this; 11028 11029 this.disable(); 11030 11031 tethers.forEach(function (tether, i) { 11032 if (tether === _this5) { 11033 tethers.splice(i, 1); 11034 } 11035 }); 11036 11037 // Remove any elements we were using for convenience from the DOM 11038 if (tethers.length === 0) { 11039 removeUtilElements(); 11040 } 11041 } 11042 }, { 11043 key: 'updateAttachClasses', 11044 value: function updateAttachClasses(elementAttach, targetAttach) { 11045 var _this6 = this; 11046 11047 elementAttach = elementAttach || this.attachment; 11048 targetAttach = targetAttach || this.targetAttachment; 11049 var sides = ['left', 'top', 'bottom', 'right', 'middle', 'center']; 11050 11051 if (typeof this._addAttachClasses !== 'undefined' && this._addAttachClasses.length) { 11052 // updateAttachClasses can be called more than once in a position call, so 11053 // we need to clean up after ourselves such that when the last defer gets 11054 // ran it doesn't add any extra classes from previous calls. 11055 this._addAttachClasses.splice(0, this._addAttachClasses.length); 11056 } 11057 11058 if (typeof this._addAttachClasses === 'undefined') { 11059 this._addAttachClasses = []; 11060 } 11061 var add = this._addAttachClasses; 11062 11063 if (elementAttach.top) { 11064 add.push(this.getClass('element-attached') + '-' + elementAttach.top); 11065 } 11066 if (elementAttach.left) { 11067 add.push(this.getClass('element-attached') + '-' + elementAttach.left); 11068 } 11069 if (targetAttach.top) { 11070 add.push(this.getClass('target-attached') + '-' + targetAttach.top); 11071 } 11072 if (targetAttach.left) { 11073 add.push(this.getClass('target-attached') + '-' + targetAttach.left); 11074 } 11075 11076 var all = []; 11077 sides.forEach(function (side) { 11078 all.push(_this6.getClass('element-attached') + '-' + side); 11079 all.push(_this6.getClass('target-attached') + '-' + side); 11080 }); 11081 11082 defer(function () { 11083 if (!(typeof _this6._addAttachClasses !== 'undefined')) { 11084 return; 11085 } 11086 11087 updateClasses(_this6.element, _this6._addAttachClasses, all); 11088 if (!(_this6.options.addTargetClasses === false)) { 11089 updateClasses(_this6.target, _this6._addAttachClasses, all); 11090 } 11091 11092 delete _this6._addAttachClasses; 11093 }); 11094 } 11095 }, { 11096 key: 'position', 11097 value: function position() { 11098 var _this7 = this; 11099 11100 var flushChanges = arguments.length <= 0 || arguments[0] === undefined ? true : arguments[0]; 11101 11102 // flushChanges commits the changes immediately, leave true unless you are positioning multiple 11103 // tethers (in which case call Tether.Utils.flush yourself when you're done) 11104 11105 if (!this.enabled) { 11106 return; 11107 } 11108 11109 this.clearCache(); 11110 11111 // Turn 'auto' attachments into the appropriate corner or edge 11112 var targetAttachment = autoToFixedAttachment(this.targetAttachment, this.attachment); 11113 11114 this.updateAttachClasses(this.attachment, targetAttachment); 11115 11116 var elementPos = this.cache('element-bounds', function () { 11117 return getBounds(_this7.element); 11118 }); 11119 11120 var width = elementPos.width; 11121 var height = elementPos.height; 11122 11123 if (width === 0 && height === 0 && typeof this.lastSize !== 'undefined') { 11124 var _lastSize = this.lastSize; 11125 11126 // We cache the height and width to make it possible to position elements that are 11127 // getting hidden. 11128 width = _lastSize.width; 11129 height = _lastSize.height; 11130 } else { 11131 this.lastSize = { width: width, height: height }; 11132 } 11133 11134 var targetPos = this.cache('target-bounds', function () { 11135 return _this7.getTargetBounds(); 11136 }); 11137 var targetSize = targetPos; 11138 11139 // Get an actual px offset from the attachment 11140 var offset = offsetToPx(attachmentToOffset(this.attachment), { width: width, height: height }); 11141 var targetOffset = offsetToPx(attachmentToOffset(targetAttachment), targetSize); 11142 11143 var manualOffset = offsetToPx(this.offset, { width: width, height: height }); 11144 var manualTargetOffset = offsetToPx(this.targetOffset, targetSize); 11145 11146 // Add the manually provided offset 11147 offset = addOffset(offset, manualOffset); 11148 targetOffset = addOffset(targetOffset, manualTargetOffset); 11149 11150 // It's now our goal to make (element position + offset) == (target position + target offset) 11151 var left = targetPos.left + targetOffset.left - offset.left; 11152 var top = targetPos.top + targetOffset.top - offset.top; 11153 11154 for (var i = 0; i < TetherBase.modules.length; ++i) { 11155 var _module2 = TetherBase.modules[i]; 11156 var ret = _module2.position.call(this, { 11157 left: left, 11158 top: top, 11159 targetAttachment: targetAttachment, 11160 targetPos: targetPos, 11161 elementPos: elementPos, 11162 offset: offset, 11163 targetOffset: targetOffset, 11164 manualOffset: manualOffset, 11165 manualTargetOffset: manualTargetOffset, 11166 scrollbarSize: scrollbarSize, 11167 attachment: this.attachment 11168 }); 11169 11170 if (ret === false) { 11171 return false;
11172 } else if (typeof ret === 'undefined' || typeof ret !== 'object') { 11173 continue; 11174 } else { 11175 top = ret.top; 11176 left = ret.left; 11177 } 11178 } 11179 11180 // We describe the position three different ways to give the optimizer 11181 // a chance to decide the best possible way to position the element 11182 // with the fewest repaints. 11183 var next = { 11184 // It's position relative to the page (absolute positioning when 11185 // the element is a child of the body) 11186 page: { 11187 top: top, 11188 left: left 11189 }, 11190 11191 // It's position relative to the viewport (fixed positioning) 11192 viewport: { 11193 top: top - pageYOffset, 11194 bottom: pageYOffset - top - height + innerHeight, 11195 left: left - pageXOffset, 11196 right: pageXOffset - left - width + innerWidth 11197 } 11198 }; 11199 11200 var doc = this.target.ownerDocument; 11201 var win = doc.defaultView; 11202 11203 var scrollbarSize = undefined; 11204 if (win.innerHeight > doc.documentElement.clientHeight) { 11205 scrollbarSize = this.cache('scrollbar-size', getScrollBarSize); 11206 next.viewport.bottom -= scrollbarSize.height; 11207 } 11208 11209 if (win.innerWidth > doc.documentElement.clientWidth) { 11210 scrollbarSize = this.cache('scrollbar-size', getScrollBarSize); 11211 next.viewport.right -= scrollbarSize.width; 11212 } 11213 11214 if (['', 'static'].indexOf(doc.body.style.position) === -1 || ['', 'static'].indexOf(doc.body.parentElement.style.position) === -1) { 11215 // Absolute positioning in the body will be relative to the page, not the 'initial containing block' 11216 next.page.bottom = doc.body.scrollHeight - top - height; 11217 next.page.right = doc.body.scrollWidth - left - width; 11218 } 11219 11220 if (typeof this.options.optimizations !== 'undefined' && this.options.optimizations.moveElement !== false && !(typeof this.targetModifier !== 'undefined')) { 11221 (function () { 11222 var offsetParent = _this7.cache('target-offsetparent', function () { 11223 return getOffsetParent(_this7.target); 11224 }); 11225 var offsetPosition = _this7.cache('target-offsetparent-bounds', function () { 11226 return getBounds(offsetParent); 11227 }); 11228 var offsetParentStyle = getComputedStyle(offsetParent); 11229 var offsetParentSize = offsetPosition; 11230 11231 var offsetBorder = {}; 11232 ['Top', 'Left', 'Bottom', 'Right'].forEach(function (side) { 11233 offsetBorder[side.toLowerCase()] = parseFloat(offsetParentStyle['border' + side + 'Width']); 11234 }); 11235 11236 offsetPosition.right = doc.body.scrollWidth - offsetPosition.left - offsetParentSize.width + offsetBorder.right; 11237 offsetPosition.bottom = doc.body.scrollHeight - offsetPosition.top - offsetParentSize.height + offsetBorder.bottom; 11238 11239 if (next.page.top >= offsetPosition.top + offsetBorder.top && next.page.bottom >= offsetPosition.bottom) { 11240 if (next.page.left >= offsetPosition.left + offsetBorder.left && next.page.right >= offsetPosition.right) { 11241 // We're within the visible part of the target's scroll parent 11242 var scrollTop = offsetParent.scrollTop; 11243 var scrollLeft = offsetParent.scrollLeft; 11244 11245 // It's position relative to the target's offset parent (absolute positioning when 11246 // the element is moved to be a child of the target's offset parent). 11247 next.offset = { 11248 top: next.page.top - offsetPosition.top + scrollTop - offsetBorder.top, 11249 left: next.page.left - offsetPosition.left + scrollLeft - offsetBorder.left 11250 }; 11251 } 11252 } 11253 })(); 11254 } 11255 11256 // We could also travel up the DOM and try each containing context, rather than only 11257 // looking at the body, but we're gonna get diminishing returns. 11258 11259 this.move(next); 11260 11261 this.history.unshift(next); 11262 11263 if (this.history.length > 3) { 11264 this.history.pop(); 11265 } 11266 11267 if (flushChanges) { 11268 flush(); 11269 } 11270 11271 return true; 11272 } 11273 11274 // THE ISSUE 11275 }, {
11276 key: 'move', 11277 value: function move(pos) { 11278 var _this8 = this; 11279 11280 if (!(typeof this.element.parentNode !== 'undefined')) { 11281 return; 11282 } 11283 11284 var same = {}; 11285 11286 for (var type in pos) { 11287 same[type] = {}; 11288 11289 for (var key in pos[type]) { 11290 var found = false; 11291 11292 for (var i = 0; i < this.history.length; ++i) { 11293 var point = this.history[i]; 11294 if (typeof point[type] !== 'undefined' && !within(point[type][key], pos[type][key])) { 11295 found = true; 11296 break; 11297 } 11298 } 11299 11300 if (!found) { 11301 same[type][key] = true; 11302 } 11303 } 11304 } 11305 11306 var css = { top: '', left: '', right: '', bottom: '' }; 11307 11308 var transcribe = function transcribe(_same, _pos) { 11309 var hasOptimizations = typeof _this8.options.optimizations !== 'undefined'; 11310 var gpu = hasOptimizations ? _this8.options.optimizations.gpu : null; 11311 if (gpu !== false) { 11312 var yPos = undefined, 11313 xPos = undefined;
11314 if (_same.top) { 11315 css.top = 0; 11316 yPos = _pos.top; 11317 } else { 11318 css.bottom = 0; 11319 yPos = -_pos.bottom; 11320 } 11321 11322 if (_same.left) { 11323 css.left = 0; 11324 xPos = _pos.left; 11325 } else { 11326 css.right = 0; 11327 xPos = -_pos.right; 11328 } 11329 11330 if (typeof window.devicePixelRatio === 'number' && devicePixelRatio % 1 === 0) { 11331 xPos = Math.round(xPos * devicePixelRatio) / devicePixelRatio; 11332 yPos = Math.round(yPos * devicePixelRatio) / devicePixelRatio; 11333 } 11334 11335 css[transformKey] = 'translateX(' + xPos + 'px) translateY(' + yPos + 'px)'; 11336 11337 if (transformKey !== 'msTransform') { 11338 // The Z transform will keep this in the GPU (faster, and prevents artifacts), 11339 // but IE9 doesn't support 3d transforms and will choke. 11340 css[transformKey] += " translateZ(0)"; 11341 } 11342 } else {
11343 if (_same.top) { 11344 css.top = _pos.top + 'px'; 11345 } else { 11346 css.bottom = _pos.bottom + 'px'; 11347 } 11348 11349 if (_same.left) { 11350 css.left = _pos.left + 'px'; 11351 } else { 11352 css.right = _pos.right + 'px'; 11353 } 11354 } 11355 }; 11356 11357 var moved = false; 11358 if ((same.page.top || same.page.bottom) && (same.page.left || same.page.right)) { 11359 css.position = 'absolute'; 11360 transcribe(same.page, pos.page); 11361 } else if ((same.viewport.top || same.viewport.bottom) && (same.viewport.left || same.viewport.right)) { 11362 css.position = 'fixed'; 11363 transcribe(same.viewport, pos.viewport); 11364 } else if (typeof same.offset !== 'undefined' && same.offset.top && same.offset.left) { 11365 (function () { 11366 css.position = 'absolute'; 11367 var offsetParent = _this8.cache('target-offsetparent', function () { 11368 return getOffsetParent(_this8.target); 11369 }); 11370 11371 if (getOffsetParent(_this8.element) !== offsetParent) { 11372 defer(function () { 11373 _this8.element.parentNode.removeChild(_this8.element); 11374 offsetParent.appendChild(_this8.element); 11375 }); 11376 } 11377 11378 transcribe(same.offset, pos.offset); 11379 moved = true; 11380 })(); 11381 } else { 11382 css.position = 'absolute'; 11383 transcribe({ top: true, left: true }, pos.page); 11384 } 11385 11386 if (!moved) { 11387 if (this.options.bodyElement) { 11388 if (this.element.parentNode !== this.options.bodyElement) { 11389 this.options.bodyElement.appendChild(this.element); 11390 } 11391 } else { 11392 var isFullscreenElement = function isFullscreenElement(e) { 11393 var d = e.ownerDocument; 11394 var fe = d.fullscreenElement || d.webkitFullscreenElement || d.mozFullScreenElement || d.msFullscreenElement; 11395 return fe === e; 11396 }; 11397 11398 var offsetParentIsBody = true; 11399 11400 var currentNode = this.element.parentNode; 11401 while (currentNode && currentNode.nodeType === 1 && currentNode.tagName !== 'BODY' && !isFullscreenElement(currentNode)) { 11402 if (getComputedStyle(currentNode).position !== 'static') { 11403 offsetParentIsBody = false; 11404 break; 11405 } 11406 11407 currentNode = currentNode.parentNode; 11408 } 11409 11410 if (!offsetParentIsBody) { 11411 this.element.parentNode.removeChild(this.element); 11412 this.element.ownerDocument.body.appendChild(this.element); 11413 } 11414 } 11415 } 11416 11417 // Any css change will trigger a repaint, so let's avoid one if nothing changed 11418 var writeCSS = {}; 11419 var write = false; 11420 for (var key in css) { 11421 var val = css[key]; 11422 var elVal = this.element.style[key]; 11423 11424 if (elVal !== val) { 11425 write = true; 11426 writeCSS[key] = val; 11427 } 11428 } 11429 11430 if (write) { 11431 defer(function () { 11432 extend(_this8.element.style, writeCSS); 11433 _this8.trigger('repositioned'); 11434 }); 11435 } 11436 } 11437 }]); 11438 11439 return TetherClass; 11440 }(Evented); 11441 11442 TetherClass.modules = []; 11443 11444 TetherBase.position = position; 11445 11446 var Tether = extend(TetherClass, TetherBase); 11447 /* globals TetherBase */ 11448 11449 'use strict'; 11450 11451 var _slicedToArray = function () { 11452 function sliceIterator(arr, i) { 11453 var _arr = [];var _n = true;var _d = false;var _e = undefined;try { 11454 for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { 11455 _arr.push(_s.value);if (i && _arr.length === i) break; 11456 } 11457 } catch (err) { 11458 _d = true;_e = err; 11459 } finally { 11460 try { 11461 if (!_n && _i['return']) _i['return'](); 11462 } finally { 11463 if (_d) throw _e; 11464 } 11465 }return _arr; 11466 }return function (arr, i) { 11467 if (Array.isArray(arr)) { 11468 return arr; 11469 } else if (Symbol.iterator in Object(arr)) { 11470 return sliceIterator(arr, i); 11471 } else {
11472 throw new TypeError('Invalid attempt to destructure non-iterable instance'); 11473 } 11474 }; 11475 }(); 11476 11477 var _TetherBase$Utils = TetherBase.Utils; 11478 var getBounds = _TetherBase$Utils.getBounds; 11479 var extend = _TetherBase$Utils.extend; 11480 var updateClasses = _TetherBase$Utils.updateClasses; 11481 var defer = _TetherBase$Utils.defer; 11482 11483 var BOUNDS_FORMAT = ['left', 'top', 'right', 'bottom']; 11484 11485 function getBoundingRect(tether, to) { 11486 if (to === 'scrollParent') { 11487 to = tether.scrollParents[0]; 11488 } else if (to === 'window') { 11489 to = [pageXOffset, pageYOffset, innerWidth + pageXOffset, innerHeight + pageYOffset]; 11490 } 11491 11492 if (to === document) { 11493 to = to.documentElement; 11494 } 11495 11496 if (typeof to.nodeType !== 'undefined') { 11497 (function () { 11498 var node = to; 11499 var size = getBounds(to); 11500 var pos = size; 11501 var style = getComputedStyle(to); 11502 11503 to = [pos.left, pos.top, size.width + pos.left, size.height + pos.top]; 11504 11505 // Account any parent Frames scroll offset 11506 if (node.ownerDocument !== document) { 11507 var win = node.ownerDocument.defaultView; 11508 to[0] += win.pageXOffset; 11509 to[1] += win.pageYOffset; 11510 to[2] += win.pageXOffset; 11511 to[3] += win.pageYOffset; 11512 } 11513 11514 BOUNDS_FORMAT.forEach(function (side, i) { 11515 side = side[0].toUpperCase() + side.substr(1); 11516 if (side === 'Top' || side === 'Left') { 11517 to[i] += parseFloat(style['border' + side + 'Width']); 11518 } else { 11519 to[i] -= parseFloat(style['border' + side + 'Width']); 11520 } 11521 }); 11522 })(); 11523 } 11524 11525 return to; 11526 } 11527 11528 TetherBase.modules.push({ 11529 position: function position(_ref) { 11530 var _this = this; 11531 11532 var top = _ref.top; 11533 var left = _ref.left; 11534 var targetAttachment = _ref.targetAttachment; 11535 11536 if (!this.options.constraints) { 11537 return true; 11538 } 11539 11540 var _cache = this.cache('element-bounds', function () { 11541 return getBounds(_this.element); 11542 }); 11543 11544 var height = _cache.height; 11545 var width = _cache.width; 11546 11547 if (width === 0 && height === 0 && typeof this.lastSize !== 'undefined') { 11548 var _lastSize = this.lastSize; 11549 11550 // Handle the item getting hidden as a result of our positioning without glitching 11551 // the classes in and out 11552 width = _lastSize.width; 11553 height = _lastSize.height; 11554 } 11555 11556 var targetSize = this.cache('target-bounds', function () { 11557 return _this.getTargetBounds(); 11558 }); 11559 11560 var targetHeight = targetSize.height; 11561 var targetWidth = targetSize.width; 11562 11563 var allClasses = [this.getClass('pinned'), this.getClass('out-of-bounds')]; 11564 11565 this.options.constraints.forEach(function (constraint) { 11566 var outOfBoundsClass = constraint.outOfBoundsClass; 11567 var pinnedClass = constraint.pinnedClass; 11568 11569 if (outOfBoundsClass) { 11570 allClasses.push(outOfBoundsClass); 11571 } 11572 if (pinnedClass) { 11573 allClasses.push(pinnedClass); 11574 } 11575 }); 11576 11577 allClasses.forEach(function (cls) { 11578 ['left', 'top', 'right', 'bottom'].forEach(function (side) { 11579 allClasses.push(cls + '-' + side); 11580 }); 11581 }); 11582 11583 var addClasses = []; 11584 11585 var tAttachment = extend({}, targetAttachment); 11586 var eAttachment = extend({}, this.attachment); 11587 11588 this.options.constraints.forEach(function (constraint) { 11589 var to = constraint.to; 11590 var attachment = constraint.attachment; 11591 var pin = constraint.pin; 11592 11593 if (typeof attachment === 'undefined') { 11594 attachment = ''; 11595 } 11596 11597 var changeAttachX = undefined, 11598 changeAttachY = undefined; 11599 if (attachment.indexOf(' ') >= 0) { 11600 var _attachment$split = attachment.split(' '); 11601 11602 var _attachment$split2 = _slicedToArray(_attachment$split, 2); 11603 11604 changeAttachY = _attachment$split2[0]; 11605 changeAttachX = _attachment$split2[1]; 11606 } else { 11607 changeAttachX = changeAttachY = attachment; 11608 } 11609
vendor: 7,085 bytes, lines 11610-11834
11610 var bounds = getBoundingRect(_this, to); 11611 11612 if (changeAttachY === 'target' || changeAttachY === 'both') { 11613 if (top < bounds[1] && tAttachment.top === 'top') { 11614 top += targetHeight; 11615 tAttachment.top = 'bottom'; 11616 } 11617 11618 if (top + height > bounds[3] && tAttachment.top === 'bottom') { 11619 top -= targetHeight; 11620 tAttachment.top = 'top'; 11621 } 11622 } 11623 11624 if (changeAttachY === 'together') { 11625 if (tAttachment.top === 'top') { 11626 if (eAttachment.top === 'bottom' && top < bounds[1]) { 11627 top += targetHeight; 11628 tAttachment.top = 'bottom'; 11629 11630 top += height; 11631 eAttachment.top = 'top'; 11632 } else if (eAttachment.top === 'top' && top + height > bounds[3] && top - (height - targetHeight) >= bounds[1]) { 11633 top -= height - targetHeight; 11634 tAttachment.top = 'bottom'; 11635 11636 eAttachment.top = 'bottom'; 11637 } 11638 } 11639 11640 if (tAttachment.top === 'bottom') { 11641 if (eAttachment.top === 'top' && top + height > bounds[3]) { 11642 top -= targetHeight; 11643 tAttachment.top = 'top'; 11644 11645 top -= height; 11646 eAttachment.top = 'bottom'; 11647 } else if (eAttachment.top === 'bottom' && top < bounds[1] && top + (height * 2 - targetHeight) <= bounds[3]) { 11648 top += height - targetHeight; 11649 tAttachment.top = 'top'; 11650 11651 eAttachment.top = 'top'; 11652 } 11653 } 11654 11655 if (tAttachment.top === 'middle') { 11656 if (top + height > bounds[3] && eAttachment.top === 'top') { 11657 top -= height; 11658 eAttachment.top = 'bottom'; 11659 } else if (top < bounds[1] && eAttachment.top === 'bottom') { 11660 top += height; 11661 eAttachment.top = 'top'; 11662 } 11663 } 11664 } 11665 11666 if (changeAttachX === 'target' || changeAttachX === 'both') { 11667 if (left < bounds[0] && tAttachment.left === 'left') { 11668 left += targetWidth; 11669 tAttachment.left = 'right'; 11670 } 11671 11672 if (left + width > bounds[2] && tAttachment.left === 'right') { 11673 left -= targetWidth; 11674 tAttachment.left = 'left'; 11675 } 11676 } 11677 11678 if (changeAttachX === 'together') { 11679 if (left < bounds[0] && tAttachment.left === 'left') { 11680 if (eAttachment.left === 'right') { 11681 left += targetWidth; 11682 tAttachment.left = 'right'; 11683 11684 left += width; 11685 eAttachment.left = 'left'; 11686 } else if (eAttachment.left === 'left') { 11687 left += targetWidth; 11688 tAttachment.left = 'right'; 11689 11690 left -= width; 11691 eAttachment.left = 'right'; 11692 } 11693 } else if (left + width > bounds[2] && tAttachment.left === 'right') { 11694 if (eAttachment.left === 'left') { 11695 left -= targetWidth; 11696 tAttachment.left = 'left'; 11697 11698 left -= width; 11699 eAttachment.left = 'right'; 11700 } else if (eAttachment.left === 'right') { 11701 left -= targetWidth; 11702 tAttachment.left = 'left'; 11703 11704 left += width; 11705 eAttachment.left = 'left'; 11706 } 11707 } else if (tAttachment.left === 'center') { 11708 if (left + width > bounds[2] && eAttachment.left === 'left') { 11709 left -= width; 11710 eAttachment.left = 'right'; 11711 } else if (left < bounds[0] && eAttachment.left === 'right') { 11712 left += width; 11713 eAttachment.left = 'left'; 11714 } 11715 } 11716 } 11717 11718 if (changeAttachY === 'element' || changeAttachY === 'both') { 11719 if (top < bounds[1] && eAttachment.top === 'bottom') { 11720 top += height; 11721 eAttachment.top = 'top'; 11722 } 11723 11724 if (top + height > bounds[3] && eAttachment.top === 'top') { 11725 top -= height; 11726 eAttachment.top = 'bottom'; 11727 } 11728 } 11729 11730 if (changeAttachX === 'element' || changeAttachX === 'both') { 11731 if (left < bounds[0]) { 11732 if (eAttachment.left === 'right') { 11733 left += width; 11734 eAttachment.left = 'left'; 11735 } else if (eAttachment.left === 'center') { 11736 left += width / 2; 11737 eAttachment.left = 'left'; 11738 } 11739 } 11740 11741 if (left + width > bounds[2]) { 11742 if (eAttachment.left === 'left') { 11743 left -= width; 11744 eAttachment.left = 'right'; 11745 } else if (eAttachment.left === 'center') { 11746 left -= width / 2; 11747 eAttachment.left = 'right'; 11748 } 11749 } 11750 } 11751 11752 if (typeof pin === 'string') { 11753 pin = pin.split(',').map(function (p) { 11754 return p.trim(); 11755 }); 11756 } else if (pin === true) { 11757 pin = ['top', 'left', 'right', 'bottom']; 11758 } 11759 11760 pin = pin || []; 11761 11762 var pinned = []; 11763 var oob = []; 11764 11765 if (top < bounds[1]) { 11766 if (pin.indexOf('top') >= 0) { 11767 top = bounds[1]; 11768 pinned.push('top'); 11769 } else { 11770 oob.push('top'); 11771 } 11772 } 11773 11774 if (top + height > bounds[3]) { 11775 if (pin.indexOf('bottom') >= 0) { 11776 top = bounds[3] - height; 11777 pinned.push('bottom'); 11778 } else { 11779 oob.push('bottom'); 11780 } 11781 } 11782 11783 if (left < bounds[0]) { 11784 if (pin.indexOf('left') >= 0) { 11785 left = bounds[0]; 11786 pinned.push('left'); 11787 } else { 11788 oob.push('left'); 11789 } 11790 } 11791 11792 if (left + width > bounds[2]) { 11793 if (pin.indexOf('right') >= 0) { 11794 left = bounds[2] - width; 11795 pinned.push('right'); 11796 } else { 11797 oob.push('right'); 11798 } 11799 } 11800 11801 if (pinned.length) { 11802 (function () { 11803 var pinnedClass = undefined; 11804 if (typeof _this.options.pinnedClass !== 'undefined') { 11805 pinnedClass = _this.options.pinnedClass; 11806 } else { 11807 pinnedClass = _this.getClass('pinned'); 11808 } 11809 11810 addClasses.push(pinnedClass); 11811 pinned.forEach(function (side) { 11812 addClasses.push(pinnedClass + '-' + side); 11813 }); 11814 })(); 11815 } 11816 11817 if (oob.length) { 11818 (function () { 11819 var oobClass = undefined; 11820 if (typeof _this.options.outOfBoundsClass !== 'undefined') { 11821 oobClass = _this.options.outOfBoundsClass; 11822 } else { 11823 oobClass = _this.getClass('out-of-bounds'); 11824 } 11825 11826 addClasses.push(oobClass); 11827 oob.forEach(function (side) { 11828 addClasses.push(oobClass + '-' + side); 11829 }); 11830 })(); 11831 } 11832 11833 if (pinned.indexOf('left') >= 0 || pinned.indexOf('right') >= 0) { 11834 eAttachment.left = tAttachment.left = false;
11835 } 11836 if (pinned.indexOf('top') >= 0 || pinned.indexOf('bottom') >= 0) { 11837 eAttachment.top = tAttachment.top = false; 11838 } 11839 11840 if (tAttachment.top !== targetAttachment.top || tAttachment.left !== targetAttachment.left || eAttachment.top !== _this.attachment.top || eAttachment.left !== _this.attachment.left) { 11841 _this.updateAttachClasses(eAttachment, tAttachment); 11842 _this.trigger('update', { 11843 attachment: eAttachment, 11844 targetAttachment: tAttachment 11845 }); 11846 } 11847 }); 11848 11849 defer(function () { 11850 if (!(_this.options.addTargetClasses === false)) { 11851 updateClasses(_this.target, addClasses, allClasses); 11852 } 11853 updateClasses(_this.element, addClasses, allClasses); 11854 }); 11855 11856 return { top: top, left: left }; 11857 } 11858 }); 11859 /* globals TetherBase */ 11860 11861 'use strict'; 11862 11863 var _TetherBase$Utils = TetherBase.Utils; 11864 var getBounds = _TetherBase$Utils.getBounds; 11865 var updateClasses = _TetherBase$Utils.updateClasses; 11866 var defer = _TetherBase$Utils.defer; 11867 11868 TetherBase.modules.push({ 11869 position: function position(_ref) { 11870 var _this = this; 11871 11872 var top = _ref.top; 11873 var left = _ref.left; 11874 11875 var _cache = this.cache('element-bounds', function () { 11876 return getBounds(_this.element); 11877 }); 11878 11879 var height = _cache.height; 11880 var width = _cache.width; 11881 11882 var targetPos = this.getTargetBounds(); 11883 11884 var bottom = top + height; 11885 var right = left + width; 11886 11887 var abutted = []; 11888 if (top <= targetPos.bottom && bottom >= targetPos.top) { 11889 ['left', 'right'].forEach(function (side) { 11890 var targetPosSide = targetPos[side]; 11891 if (targetPosSide === left || targetPosSide === right) { 11892 abutted.push(side); 11893 } 11894 }); 11895 } 11896 11897 if (left <= targetPos.right && right >= targetPos.left) { 11898 ['top', 'bottom'].forEach(function (side) { 11899 var targetPosSide = targetPos[side]; 11900 if (targetPosSide === top || targetPosSide === bottom) { 11901 abutted.push(side); 11902 } 11903 }); 11904 } 11905 11906 var allClasses = []; 11907 var addClasses = []; 11908 11909 var sides = ['left', 'top', 'right', 'bottom']; 11910 allClasses.push(this.getClass('abutted')); 11911 sides.forEach(function (side) { 11912 allClasses.push(_this.getClass('abutted') + '-' + side); 11913 }); 11914 11915 if (abutted.length) { 11916 addClasses.push(this.getClass('abutted')); 11917 } 11918 11919 abutted.forEach(function (side) { 11920 addClasses.push(_this.getClass('abutted') + '-' + side); 11921 }); 11922 11923 defer(function () { 11924 if (!(_this.options.addTargetClasses === false)) { 11925 updateClasses(_this.target, addClasses, allClasses); 11926 } 11927 updateClasses(_this.element, addClasses, allClasses); 11928 }); 11929 11930 return true; 11931 } 11932 }); 11933 /* globals TetherBase */ 11934 11935 'use strict'; 11936 11937 var _slicedToArray = function () { 11938 function sliceIterator(arr, i) { 11939 var _arr = [];var _n = true;var _d = false;var _e = undefined;try { 11940 for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { 11941 _arr.push(_s.value);if (i && _arr.length === i) break; 11942 } 11943 } catch (err) { 11944 _d = true;_e = err; 11945 } finally { 11946 try { 11947 if (!_n && _i['return']) _i['return'](); 11948 } finally { 11949 if (_d) throw _e; 11950 } 11951 }return _arr; 11952 }return function (arr, i) { 11953 if (Array.isArray(arr)) { 11954 return arr; 11955 } else if (Symbol.iterator in Object(arr)) { 11956 return sliceIterator(arr, i); 11957 } else { 11958 throw new TypeError('Invalid attempt to destructure non-iterable instance'); 11959 } 11960 }; 11961 }(); 11962 11963 TetherBase.modules.push({ 11964 position: function position(_ref) { 11965 var top = _ref.top; 11966 var left = _ref.left; 11967 11968 if (!this.options.shift) { 11969 return; 11970 } 11971 11972 var shift = this.options.shift; 11973 if (typeof this.options.shift === 'function') { 11974 shift = this.options.shift.call(this, { top: top, left: left }); 11975 } 11976 11977 var shiftTop = undefined, 11978 shiftLeft = undefined; 11979 if (typeof shift === 'string') { 11980 shift = shift.split(' '); 11981 shift[1] = shift[1] || shift[0]; 11982 11983 var _shift = shift; 11984 11985 var _shift2 = _slicedToArray(_shift, 2); 11986 11987 shiftTop = _shift2[0]; 11988 shiftLeft = _shift2[1]; 11989 11990 shiftTop = parseFloat(shiftTop, 10); 11991 shiftLeft = parseFloat(shiftLeft, 10); 11992 } else { 11993 shiftTop = shift.top; 11994 shiftLeft = shift.left; 11995 } 11996 11997 top += shiftTop; 11998 left += shiftLeft; 11999 12000 return { top: top, left: left }; 12001 } 12002 }); 12003 return Tether; 12004}); 12005 12006/***/ }), 12007
vendor: 20,066 bytes, lines 12008-12692
12008/***/ "./node_modules/bootstrap-touchspin/dist/jquery.bootstrap-touchspin.js": 12009/*!*****************************************************************************!*\ 12010 !*** ./node_modules/bootstrap-touchspin/dist/jquery.bootstrap-touchspin.js ***! 12011 \*****************************************************************************/ 12012/*! no static exports found */ 12013/***/ (function(module, exports) { 12014 12015/* 12016 * Bootstrap TouchSpin - v3.1.1 12017 * A mobile and touch friendly input spinner component for Bootstrap 3. 12018 * http://www.virtuosoft.eu/code/bootstrap-touchspin/ 12019 * 12020 * Made by István Ujj-Mészáros 12021 * Under Apache License v2.0 License 12022 */ 12023(function ($) { 12024 'use strict'; 12025 12026 var _currentSpinnerId = 0; 12027 12028 function _scopedEventName(name, id) { 12029 return name + '.touchspin_' + id; 12030 } 12031 12032 function _scopeEventNames(names, id) { 12033 return $.map(names, function (name) { 12034 return _scopedEventName(name, id); 12035 }); 12036 } 12037 12038 $.fn.TouchSpin = function (options) { 12039 12040 if (options === 'destroy') { 12041 this.each(function () { 12042 var originalinput = $(this), 12043 originalinput_data = originalinput.data(); 12044 $(document).off(_scopeEventNames(['mouseup', 'touchend', 'touchcancel', 'mousemove', 'touchmove', 'scroll', 'scrollstart'], originalinput_data.spinnerid).join(' ')); 12045 }); 12046 return; 12047 } 12048 12049 var defaults = { 12050 min: 0, 12051 max: 100, 12052 initval: '', 12053 replacementval: '', 12054 step: 1, 12055 decimals: 0, 12056 stepinterval: 100, 12057 forcestepdivisibility: 'round', // none | floor | round | ceil 12058 stepintervaldelay: 500, 12059 verticalbuttons: false, 12060 verticalupclass: 'glyphicon glyphicon-chevron-up', 12061 verticaldownclass: 'glyphicon glyphicon-chevron-down', 12062 prefix: '', 12063 postfix: '', 12064 prefix_extraclass: '', 12065 postfix_extraclass: '', 12066 booster: true, 12067 boostat: 10, 12068 maxboostedstep: false, 12069 mousewheel: true, 12070 buttondown_class: 'btn btn-default', 12071 buttonup_class: 'btn btn-default', 12072 buttondown_txt: '-', 12073 buttonup_txt: '+' 12074 }; 12075 12076 var attributeMap = { 12077 min: 'min', 12078 max: 'max', 12079 initval: 'init-val', 12080 replacementval: 'replacement-val', 12081 step: 'step', 12082 decimals: 'decimals', 12083 stepinterval: 'step-interval', 12084 verticalbuttons: 'vertical-buttons', 12085 verticalupclass: 'vertical-up-class', 12086 verticaldownclass: 'vertical-down-class', 12087 forcestepdivisibility: 'force-step-divisibility', 12088 stepintervaldelay: 'step-interval-delay', 12089 prefix: 'prefix', 12090 postfix: 'postfix', 12091 prefix_extraclass: 'prefix-extra-class', 12092 postfix_extraclass: 'postfix-extra-class', 12093 booster: 'booster', 12094 boostat: 'boostat', 12095 maxboostedstep: 'max-boosted-step', 12096 mousewheel: 'mouse-wheel', 12097 buttondown_class: 'button-down-class', 12098 buttonup_class: 'button-up-class', 12099 buttondown_txt: 'button-down-txt', 12100 buttonup_txt: 'button-up-txt' 12101 }; 12102 12103 return this.each(function () { 12104 12105 var settings, 12106 originalinput = $(this), 12107 originalinput_data = originalinput.data(), 12108 container, 12109 elements, 12110 value, 12111 downSpinTimer, 12112 upSpinTimer, 12113 downDelayTimeout, 12114 upDelayTimeout, 12115 spincount = 0, 12116 spinning = false; 12117 12118 init(); 12119 12120 function init() { 12121 if (originalinput.data('alreadyinitialized')) { 12122 return; 12123 } 12124 12125 originalinput.data('alreadyinitialized', true); 12126 _currentSpinnerId += 1; 12127 originalinput.data('spinnerid', _currentSpinnerId); 12128 12129 if (!originalinput.is('input')) { 12130 console.log('Must be an input.'); 12131 return; 12132 } 12133 12134 _initSettings(); 12135 _setInitval(); 12136 _checkValue(); 12137 _buildHtml(); 12138 _initElements(); 12139 _hideEmptyPrefixPostfix(); 12140 _bindEvents(); 12141 _bindEventsInterface(); 12142 elements.input.css('display', 'block'); 12143 } 12144 12145 function _setInitval() { 12146 if (settings.initval !== '' && originalinput.val() === '') { 12147 originalinput.val(settings.initval); 12148 } 12149 } 12150 12151 function changeSettings(newsettings) { 12152 _updateSettings(newsettings); 12153 _checkValue(); 12154 12155 var value = elements.input.val(); 12156 12157 if (value !== '') { 12158 value = Number(elements.input.val()); 12159 elements.input.val(value.toFixed(settings.decimals)); 12160 } 12161 } 12162 12163 function _initSettings() { 12164 settings = $.extend({}, defaults, originalinput_data, _parseAttributes(), options); 12165 } 12166 12167 function _parseAttributes() { 12168 var data = {}; 12169 $.each(attributeMap, function (key, value) { 12170 var attrName = 'bts-' + value + ''; 12171 if (originalinput.is('[data-' + attrName + ']')) { 12172 data[key] = originalinput.data(attrName); 12173 } 12174 }); 12175 return data; 12176 } 12177 12178 function _updateSettings(newsettings) { 12179 settings = $.extend({}, settings, newsettings); 12180 } 12181 12182 function _buildHtml() { 12183 var initval = originalinput.val(), 12184 parentelement = originalinput.parent(); 12185 12186 if (initval !== '') { 12187 initval = Number(initval).toFixed(settings.decimals); 12188 } 12189 12190 originalinput.data('initvalue', initval).val(initval); 12191 originalinput.addClass('form-control'); 12192 12193 if (parentelement.hasClass('input-group')) { 12194 _advanceInputGroup(parentelement); 12195 } else { 12196 _buildInputGroup(); 12197 } 12198 } 12199 12200 function _advanceInputGroup(parentelement) { 12201 parentelement.addClass('bootstrap-touchspin'); 12202 12203 var prev = originalinput.prev(), 12204 next = originalinput.next(); 12205 12206 var downhtml, 12207 uphtml, 12208 prefixhtml = '<span class="input-group-addon bootstrap-touchspin-prefix">' + settings.prefix + '</span>', 12209 postfixhtml = '<span class="input-group-addon bootstrap-touchspin-postfix">' + settings.postfix + '</span>'; 12210 12211 if (prev.hasClass('input-group-btn')) { 12212 downhtml = '<button class="' + settings.buttondown_class + ' bootstrap-touchspin-down" type="button">' + settings.buttondown_txt + '</button>'; 12213 prev.append(downhtml); 12214 } else { 12215 downhtml = '<span class="input-group-btn"><button class="' + settings.buttondown_class + ' bootstrap-touchspin-down" type="button">' + settings.buttondown_txt + '</button></span>'; 12216 $(downhtml).insertBefore(originalinput); 12217 } 12218 12219 if (next.hasClass('input-group-btn')) { 12220 uphtml = '<button class="' + settings.buttonup_class + ' bootstrap-touchspin-up" type="button">' + settings.buttonup_txt + '</button>'; 12221 next.prepend(uphtml); 12222 } else { 12223 uphtml = '<span class="input-group-btn"><button class="' + settings.buttonup_class + ' bootstrap-touchspin-up" type="button">' + settings.buttonup_txt + '</button></span>'; 12224 $(uphtml).insertAfter(originalinput); 12225 } 12226 12227 $(prefixhtml).insertBefore(originalinput); 12228 $(postfixhtml).insertAfter(originalinput); 12229 12230 container = parentelement; 12231 } 12232 12233 function _buildInputGroup() { 12234 var html; 12235 12236 if (settings.verticalbuttons) { 12237 html = '<div class="input-group bootstrap-touchspin"><span class="input-group-addon bootstrap-touchspin-prefix">' + settings.prefix + '</span><span class="input-group-addon bootstrap-touchspin-postfix">' + settings.postfix + '</span><span class="input-group-btn-vertical"><button class="' + settings.buttondown_class + ' bootstrap-touchspin-up" type="button"><i class="' + settings.verticalupclass + '"></i></button><button class="' + settings.buttonup_class + ' bootstrap-touchspin-down" type="button"><i class="' + settings.verticaldownclass + '"></i></button></span></div>'; 12238 } else { 12239 html = '<div class="input-group bootstrap-touchspin"><span class="input-group-btn"><button class="' + settings.buttondown_class + ' bootstrap-touchspin-down" type="button">' + settings.buttondown_txt + '</button></span><span class="input-group-addon bootstrap-touchspin-prefix">' + settings.prefix + '</span><span class="input-group-addon bootstrap-touchspin-postfix">' + settings.postfix + '</span><span class="input-group-btn"><button class="' + settings.buttonup_class + ' bootstrap-touchspin-up" type="button">' + settings.buttonup_txt + '</button></span></div>'; 12240 } 12241 12242 container = $(html).insertBefore(originalinput); 12243 12244 $('.bootstrap-touchspin-prefix', container).after(originalinput); 12245 12246 if (originalinput.hasClass('input-sm')) { 12247 container.addClass('input-group-sm'); 12248 } else if (originalinput.hasClass('input-lg')) { 12249 container.addClass('input-group-lg'); 12250 } 12251 } 12252 12253 function _initElements() { 12254 elements = { 12255 down: $('.bootstrap-touchspin-down', container), 12256 up: $('.bootstrap-touchspin-up', container), 12257 input: $('input', container), 12258 prefix: $('.bootstrap-touchspin-prefix', container).addClass(settings.prefix_extraclass), 12259 postfix: $('.bootstrap-touchspin-postfix', container).addClass(settings.postfix_extraclass) 12260 }; 12261 } 12262 12263 function _hideEmptyPrefixPostfix() { 12264 if (settings.prefix === '') { 12265 elements.prefix.hide(); 12266 } 12267 12268 if (settings.postfix === '') { 12269 elements.postfix.hide(); 12270 } 12271 } 12272 12273 function _bindEvents() { 12274 originalinput.on('keydown', function (ev) { 12275 var code = ev.keyCode || ev.which; 12276 12277 if (code === 38) { 12278 if (spinning !== 'up') { 12279 upOnce(); 12280 startUpSpin(); 12281 } 12282 ev.preventDefault(); 12283 } else if (code === 40) { 12284 if (spinning !== 'down') { 12285 downOnce(); 12286 startDownSpin(); 12287 } 12288 ev.preventDefault(); 12289 } 12290 }); 12291 12292 originalinput.on('keyup', function (ev) { 12293 var code = ev.keyCode || ev.which; 12294 12295 if (code === 38) { 12296 stopSpin(); 12297 } else if (code === 40) { 12298 stopSpin(); 12299 } 12300 }); 12301 12302 originalinput.on('blur', function () { 12303 _checkValue(); 12304 }); 12305 12306 elements.down.on('keydown', function (ev) { 12307 var code = ev.keyCode || ev.which; 12308 12309 if (code === 32 || code === 13) { 12310 if (spinning !== 'down') { 12311 downOnce(); 12312 startDownSpin(); 12313 } 12314 ev.preventDefault(); 12315 } 12316 }); 12317 12318 elements.down.on('keyup', function (ev) { 12319 var code = ev.keyCode || ev.which; 12320 12321 if (code === 32 || code === 13) { 12322 stopSpin(); 12323 } 12324 }); 12325 12326 elements.up.on('keydown', function (ev) { 12327 var code = ev.keyCode || ev.which; 12328 12329 if (code === 32 || code === 13) { 12330 if (spinning !== 'up') { 12331 upOnce(); 12332 startUpSpin(); 12333 } 12334 ev.preventDefault(); 12335 } 12336 }); 12337 12338 elements.up.on('keyup', function (ev) { 12339 var code = ev.keyCode || ev.which; 12340 12341 if (code === 32 || code === 13) { 12342 stopSpin(); 12343 } 12344 }); 12345 12346 elements.down.on('mousedown.touchspin', function (ev) { 12347 elements.down.off('touchstart.touchspin'); // android 4 workaround 12348 12349 if (originalinput.is(':disabled')) { 12350 return; 12351 } 12352 12353 downOnce(); 12354 startDownSpin(); 12355 12356 ev.preventDefault(); 12357 ev.stopPropagation(); 12358 }); 12359 12360 elements.down.on('touchstart.touchspin', function (ev) { 12361 elements.down.off('mousedown.touchspin'); // android 4 workaround 12362 12363 if (originalinput.is(':disabled')) { 12364 return; 12365 } 12366 12367 downOnce(); 12368 startDownSpin(); 12369 12370 ev.preventDefault(); 12371 ev.stopPropagation(); 12372 }); 12373 12374 elements.up.on('mousedown.touchspin', function (ev) { 12375 elements.up.off('touchstart.touchspin'); // android 4 workaround 12376 12377 if (originalinput.is(':disabled')) { 12378 return; 12379 } 12380 12381 upOnce(); 12382 startUpSpin(); 12383 12384 ev.preventDefault(); 12385 ev.stopPropagation(); 12386 }); 12387 12388 elements.up.on('touchstart.touchspin', function (ev) { 12389 elements.up.off('mousedown.touchspin'); // android 4 workaround 12390 12391 if (originalinput.is(':disabled')) { 12392 return; 12393 } 12394 12395 upOnce(); 12396 startUpSpin(); 12397 12398 ev.preventDefault(); 12399 ev.stopPropagation(); 12400 }); 12401 12402 elements.up.on('mouseout touchleave touchend touchcancel', function (ev) { 12403 if (!spinning) { 12404 return; 12405 } 12406 12407 ev.stopPropagation(); 12408 stopSpin(); 12409 }); 12410 12411 elements.down.on('mouseout touchleave touchend touchcancel', function (ev) { 12412 if (!spinning) { 12413 return; 12414 } 12415 12416 ev.stopPropagation(); 12417 stopSpin(); 12418 }); 12419 12420 elements.down.on('mousemove touchmove', function (ev) { 12421 if (!spinning) { 12422 return; 12423 } 12424 12425 ev.stopPropagation(); 12426 ev.preventDefault(); 12427 }); 12428 12429 elements.up.on('mousemove touchmove', function (ev) { 12430 if (!spinning) { 12431 return; 12432 } 12433 12434 ev.stopPropagation(); 12435 ev.preventDefault(); 12436 }); 12437 12438 $(document).on(_scopeEventNames(['mouseup', 'touchend', 'touchcancel'], _currentSpinnerId).join(' '), function (ev) { 12439 if (!spinning) { 12440 return; 12441 } 12442 12443 ev.preventDefault(); 12444 stopSpin(); 12445 }); 12446 12447 $(document).on(_scopeEventNames(['mousemove', 'touchmove', 'scroll', 'scrollstart'], _currentSpinnerId).join(' '), function (ev) { 12448 if (!spinning) { 12449 return; 12450 } 12451 12452 ev.preventDefault(); 12453 stopSpin(); 12454 }); 12455 12456 originalinput.on('mousewheel DOMMouseScroll', function (ev) { 12457 if (!settings.mousewheel || !originalinput.is(':focus')) { 12458 return; 12459 } 12460 12461 var delta = ev.originalEvent.wheelDelta || -ev.originalEvent.deltaY || -ev.originalEvent.detail; 12462 12463 ev.stopPropagation(); 12464 ev.preventDefault(); 12465 12466 if (delta < 0) { 12467 downOnce(); 12468 } else { 12469 upOnce(); 12470 } 12471 }); 12472 } 12473 12474 function _bindEventsInterface() { 12475 originalinput.on('touchspin.uponce', function () { 12476 stopSpin(); 12477 upOnce(); 12478 }); 12479 12480 originalinput.on('touchspin.downonce', function () { 12481 stopSpin(); 12482 downOnce(); 12483 }); 12484 12485 originalinput.on('touchspin.startupspin', function () { 12486 startUpSpin(); 12487 }); 12488 12489 originalinput.on('touchspin.startdownspin', function () { 12490 startDownSpin(); 12491 }); 12492 12493 originalinput.on('touchspin.stopspin', function () { 12494 stopSpin(); 12495 }); 12496 12497 originalinput.on('touchspin.updatesettings', function (e, newsettings) { 12498 changeSettings(newsettings); 12499 }); 12500 } 12501 12502 function _forcestepdivisibility(value) { 12503 switch (settings.forcestepdivisibility) { 12504 case 'round': 12505 return (Math.round(value / settings.step) * settings.step).toFixed(settings.decimals); 12506 case 'floor': 12507 return (Math.floor(value / settings.step) * settings.step).toFixed(settings.decimals); 12508 case 'ceil': 12509 return (Math.ceil(value / settings.step) * settings.step).toFixed(settings.decimals); 12510 default: 12511 return value; 12512 } 12513 } 12514 12515 function _checkValue() { 12516 var val, parsedval, returnval; 12517 12518 val = originalinput.val(); 12519 12520 if (val === '') { 12521 if (settings.replacementval !== '') { 12522 originalinput.val(settings.replacementval); 12523 originalinput.trigger('change'); 12524 } 12525 return; 12526 } 12527 12528 if (settings.decimals > 0 && val === '.') { 12529 return; 12530 } 12531 12532 parsedval = parseFloat(val); 12533 12534 if (isNaN(parsedval)) { 12535 if (settings.replacementval !== '') { 12536 parsedval = settings.replacementval; 12537 } else { 12538 parsedval = 0; 12539 } 12540 } 12541 12542 returnval = parsedval; 12543 12544 if (parsedval.toString() !== val) { 12545 returnval = parsedval; 12546 } 12547 12548 if (parsedval < settings.min) { 12549 returnval = settings.min; 12550 } 12551 12552 if (parsedval > settings.max) { 12553 returnval = settings.max; 12554 } 12555 12556 returnval = _forcestepdivisibility(returnval); 12557 12558 if (Number(val).toString() !== returnval.toString()) { 12559 originalinput.val(returnval); 12560 originalinput.trigger('change'); 12561 } 12562 } 12563 12564 function _getBoostedStep() { 12565 if (!settings.booster) { 12566 return settings.step; 12567 } else { 12568 var boosted = Math.pow(2, Math.floor(spincount / settings.boostat)) * settings.step; 12569 12570 if (settings.maxboostedstep) { 12571 if (boosted > settings.maxboostedstep) { 12572 boosted = settings.maxboostedstep; 12573 value = Math.round(value / boosted) * boosted; 12574 } 12575 } 12576 12577 return Math.max(settings.step, boosted); 12578 } 12579 } 12580 12581 function upOnce() { 12582 _checkValue(); 12583 12584 value = parseFloat(elements.input.val()); 12585 if (isNaN(value)) { 12586 value = 0; 12587 } 12588 12589 var initvalue = value, 12590 boostedstep = _getBoostedStep(); 12591 12592 value = value + boostedstep; 12593 12594 if (value > settings.max) { 12595 value = settings.max; 12596 originalinput.trigger('touchspin.on.max'); 12597 stopSpin(); 12598 } 12599 12600 elements.input.val(Number(value).toFixed(settings.decimals)); 12601 12602 if (initvalue !== value) { 12603 originalinput.trigger('change'); 12604 } 12605 } 12606 12607 function downOnce() { 12608 _checkValue(); 12609 12610 value = parseFloat(elements.input.val()); 12611 if (isNaN(value)) { 12612 value = 0; 12613 } 12614 12615 var initvalue = value, 12616 boostedstep = _getBoostedStep(); 12617 12618 value = value - boostedstep; 12619 12620 if (value < settings.min) { 12621 value = settings.min; 12622 originalinput.trigger('touchspin.on.min'); 12623 stopSpin(); 12624 } 12625 12626 elements.input.val(value.toFixed(settings.decimals)); 12627 12628 if (initvalue !== value) { 12629 originalinput.trigger('change'); 12630 } 12631 } 12632 12633 function startDownSpin() { 12634 stopSpin(); 12635 12636 spincount = 0; 12637 spinning = 'down'; 12638 12639 originalinput.trigger('touchspin.on.startspin'); 12640 originalinput.trigger('touchspin.on.startdownspin'); 12641 12642 downDelayTimeout = setTimeout(function () { 12643 downSpinTimer = setInterval(function () { 12644 spincount++; 12645 downOnce(); 12646 }, settings.stepinterval); 12647 }, settings.stepintervaldelay); 12648 } 12649 12650 function startUpSpin() { 12651 stopSpin(); 12652 12653 spincount = 0; 12654 spinning = 'up'; 12655 12656 originalinput.trigger('touchspin.on.startspin'); 12657 originalinput.trigger('touchspin.on.startupspin'); 12658 12659 upDelayTimeout = setTimeout(function () { 12660 upSpinTimer = setInterval(function () { 12661 spincount++; 12662 upOnce(); 12663 }, settings.stepinterval); 12664 }, settings.stepintervaldelay); 12665 } 12666 12667 function stopSpin() { 12668 clearTimeout(downDelayTimeout); 12669 clearTimeout(upDelayTimeout); 12670 clearInterval(downSpinTimer); 12671 clearInterval(upSpinTimer); 12672 12673 switch (spinning) { 12674 case 'up': 12675 originalinput.trigger('touchspin.on.stopupspin'); 12676 originalinput.trigger('touchspin.on.stopspin'); 12677 break; 12678 case 'down': 12679 originalinput.trigger('touchspin.on.stopdownspin'); 12680 originalinput.trigger('touchspin.on.stopspin'); 12681 break; 12682 } 12683 12684 spincount = 0; 12685 spinning = false; 12686 } 12687 }); 12688 }; 12689})(jQuery); 12690 12691/***/ }), 12692
vendor: 75,698 bytes, lines 12693-13825
12693/***/ "./node_modules/bootstrap/dist/js/bootstrap.min.js": 12694/*!*********************************************************!*\ 12695 !*** ./node_modules/bootstrap/dist/js/bootstrap.min.js ***! 12696 \*********************************************************/ 12697/*! no static exports found */ 12698/***/ (function(module, exports, __webpack_require__) { 12699 12700/*! 12701 * Bootstrap v4.4.1 (https://getbootstrap.com/) 12702 * Copyright 2011-2019 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) 12703 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 12704 */ 12705!function (t, e) { 12706 true ? e(exports, __webpack_require__(/*! jquery */ "jquery"), __webpack_require__(/*! popper.js */ "./node_modules/popper.js/dist/esm/popper.js")) : undefined; 12707}(this, function (t, g, u) { 12708 "use strict"; 12709 function i(t, e) { 12710 for (var n = 0; n < e.length; n++) { 12711 var i = e[n];i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(t, i.key, i); 12712 } 12713 }function s(t, e, n) { 12714 return e && i(t.prototype, e), n && i(t, n), t; 12715 }function e(e, t) { 12716 var n = Object.keys(e);if (Object.getOwnPropertySymbols) { 12717 var i = Object.getOwnPropertySymbols(e);t && (i = i.filter(function (t) { 12718 return Object.getOwnPropertyDescriptor(e, t).enumerable; 12719 })), n.push.apply(n, i); 12720 }return n; 12721 }function l(o) { 12722 for (var t = 1; t < arguments.length; t++) { 12723 var r = null != arguments[t] ? arguments[t] : {};t % 2 ? e(Object(r), !0).forEach(function (t) { 12724 var e, n, i;e = o, i = r[n = t], n in e ? Object.defineProperty(e, n, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = i; 12725 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(r)) : e(Object(r)).forEach(function (t) { 12726 Object.defineProperty(o, t, Object.getOwnPropertyDescriptor(r, t)); 12727 }); 12728 }return o; 12729 }g = g && g.hasOwnProperty("default") ? g.default : g, u = u && u.hasOwnProperty("default") ? u.default : u;var n = "transitionend";function o(t) { 12730 var e = this, 12731 n = !1;return g(this).one(_.TRANSITION_END, function () { 12732 n = !0; 12733 }), setTimeout(function () { 12734 n || _.triggerTransitionEnd(e); 12735 }, t), this; 12736 }var _ = { TRANSITION_END: "bsTransitionEnd", getUID: function (t) { 12737 for (; t += ~~(1e6 * Math.random()), document.getElementById(t););return t; 12738 }, getSelectorFromElement: function (t) { 12739 var e = t.getAttribute("data-target");if (!e || "#" === e) { 12740 var n = t.getAttribute("href");e = n && "#" !== n ? n.trim() : ""; 12741 }try { 12742 return document.querySelector(e) ? e : null; 12743 } catch (t) { 12744 return null; 12745 } 12746 }, getTransitionDurationFromElement: function (t) { 12747 if (!t) return 0;var e = g(t).css("transition-duration"), 12748 n = g(t).css("transition-delay"), 12749 i = parseFloat(e), 12750 o = parseFloat(n);return i || o ? (e = e.split(",")[0], n = n.split(",")[0], 1e3 * (parseFloat(e) + parseFloat(n))) : 0; 12751 }, reflow: function (t) { 12752 return t.offsetHeight; 12753 }, triggerTransitionEnd: function (t) { 12754 g(t).trigger(n); 12755 }, supportsTransitionEnd: function () { 12756 return Boolean(n); 12757 }, isElement: function (t) { 12758 return (t[0] || t).nodeType; 12759 }, typeCheckConfig: function (t, e, n) { 12760 for (var i in n) if (Object.prototype.hasOwnProperty.call(n, i)) { 12761 var o = n[i], 12762 r = e[i], 12763 s = r && _.isElement(r) ? "element" : (a = r, {}.toString.call(a).match(/\s([a-z]+)/i)[1].toLowerCase());if (!new RegExp(o).test(s)) throw new Error(t.toUpperCase() + ': Option "' + i + '" provided type "' + s + '" but expected type "' + o + '".'); 12764 }var a; 12765 }, findShadowRoot: function (t) { 12766 if (!document.documentElement.attachShadow) return null;if ("function" != typeof t.getRootNode) return t instanceof ShadowRoot ? t : t.parentNode ? _.findShadowRoot(t.parentNode) : null;var e = t.getRootNode();return e instanceof ShadowRoot ? e : null; 12767 }, jQueryDetection: function () { 12768 if ("undefined" == typeof g) throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t = g.fn.jquery.split(" ")[0].split(".");if (t[0] < 2 && t[1] < 9 || 1 === t[0] && 9 === t[1] && t[2] < 1 || 4 <= t[0]) throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0"); 12769 } };_.jQueryDetection(), g.fn.emulateTransitionEnd = o, g.event.special[_.TRANSITION_END] = { bindType: n, delegateType: n, handle: function (t) { 12770 if (g(t.target).is(this)) return t.handleObj.handler.apply(this, arguments); 12771 } };var r = "alert", 12772 a = "bs.alert", 12773 c = "." + a, 12774 h = g.fn[r], 12775 f = { CLOSE: "close" + c, CLOSED: "closed" + c, CLICK_DATA_API: "click" + c + ".data-api" }, 12776 d = "alert", 12777 m = "fade", 12778 p = "show", 12779 v = function () { 12780 function i(t) { 12781 this._element = t; 12782 }var t = i.prototype;return t.close = function (t) { 12783 var e = this._element;t && (e = this._getRootElement(t)), this._triggerCloseEvent(e).isDefaultPrevented() || this._removeElement(e); 12784 }, t.dispose = function () { 12785 g.removeData(this._element, a), this._element = null; 12786 }, t._getRootElement = function (t) { 12787 var e = _.getSelectorFromElement(t), 12788 n = !1;return e && (n = document.querySelector(e)), n = n || g(t).closest("." + d)[0]; 12789 }, t._triggerCloseEvent = function (t) { 12790 var e = g.Event(f.CLOSE);return g(t).trigger(e), e; 12791 }, t._removeElement = function (e) { 12792 var n = this;if (g(e).removeClass(p), g(e).hasClass(m)) { 12793 var t = _.getTransitionDurationFromElement(e);g(e).one(_.TRANSITION_END, function (t) { 12794 return n._destroyElement(e, t); 12795 }).emulateTransitionEnd(t); 12796 } else this._destroyElement(e); 12797 }, t._destroyElement = function (t) { 12798 g(t).detach().trigger(f.CLOSED).remove(); 12799 }, i._jQueryInterface = function (n) { 12800 return this.each(function () { 12801 var t = g(this), 12802 e = t.data(a);e || (e = new i(this), t.data(a, e)), "close" === n && e[n](this); 12803 }); 12804 }, i._handleDismiss = function (e) { 12805 return function (t) { 12806 t && t.preventDefault(), e.close(this); 12807 }; 12808 }, s(i, null, [{ key: "VERSION", get: function () { 12809 return "4.4.1"; 12810 } }]), i; 12811 }();g(document).on(f.CLICK_DATA_API, '[data-dismiss="alert"]', v._handleDismiss(new v())), g.fn[r] = v._jQueryInterface, g.fn[r].Constructor = v, g.fn[r].noConflict = function () { 12812 return g.fn[r] = h, v._jQueryInterface; 12813 };var y = "button", 12814 E = "bs.button", 12815 C = "." + E, 12816 T = ".data-api", 12817 b = g.fn[y], 12818 S = "active", 12819 D = "btn", 12820 I = "focus", 12821 w = '[data-toggle^="button"]', 12822 A = '[data-toggle="buttons"]', 12823 N = '[data-toggle="button"]', 12824 O = '[data-toggle="buttons"] .btn', 12825 k = 'input:not([type="hidden"])', 12826 P = ".active", 12827 L = ".btn", 12828 j = { CLICK_DATA_API: "click" + C + T, FOCUS_BLUR_DATA_API: "focus" + C + T + " blur" + C + T, LOAD_DATA_API: "load" + C + T }, 12829 H = function () { 12830 function n(t) { 12831 this._element = t; 12832 }var t = n.prototype;return t.toggle = function () { 12833 var t = !0, 12834 e = !0, 12835 n = g(this._element).closest(A)[0];if (n) { 12836 var i = this._element.querySelector(k);if (i) { 12837 if ("radio" === i.type) { 12838 if (i.checked && this._element.classList.contains(S)) t = !1;else { 12839 var o = n.querySelector(P);o && g(o).removeClass(S); 12840 } 12841 } else "checkbox" === i.type ? "LABEL" === this._element.tagName && i.checked === this._element.classList.contains(S) && (t = !1) : t = !1;t && (i.checked = !this._element.classList.contains(S), g(i).trigger("change")), i.focus(), e = !1; 12842 } 12843 }this._element.hasAttribute("disabled") || this._element.classList.contains("disabled") || (e && this._element.setAttribute("aria-pressed", !this._element.classList.contains(S)), t && g(this._element).toggleClass(S)); 12844 }, t.dispose = function () { 12845 g.removeData(this._element, E), this._element = null; 12846 }, n._jQueryInterface = function (e) { 12847 return this.each(function () { 12848 var t = g(this).data(E);t || (t = new n(this), g(this).data(E, t)), "toggle" === e && t[e](); 12849 }); 12850 }, s(n, null, [{ key: "VERSION", get: function () { 12851 return "4.4.1"; 12852 } }]), n; 12853 }();g(document).on(j.CLICK_DATA_API, w, function (t) { 12854 var e = t.target;if (g(e).hasClass(D) || (e = g(e).closest(L)[0]), !e || e.hasAttribute("disabled") || e.classList.contains("disabled")) t.preventDefault();else { 12855 var n = e.querySelector(k);if (n && (n.hasAttribute("disabled") || n.classList.contains("disabled"))) return void t.preventDefault();H._jQueryInterface.call(g(e), "toggle"); 12856 } 12857 }).on(j.FOCUS_BLUR_DATA_API, w, function (t) { 12858 var e = g(t.target).closest(L)[0];g(e).toggleClass(I, /^focus(in)?$/.test(t.type)); 12859 }), g(window).on(j.LOAD_DATA_API, function () { 12860 for (var t = [].slice.call(document.querySelectorAll(O)), e = 0, n = t.length; e < n; e++) { 12861 var i = t[e], 12862 o = i.querySelector(k);o.checked || o.hasAttribute("checked") ? i.classList.add(S) : i.classList.remove(S); 12863 }for (var r = 0, s = (t = [].slice.call(document.querySelectorAll(N))).length; r < s; r++) { 12864 var a = t[r];"true" === a.getAttribute("aria-pressed") ? a.classList.add(S) : a.classList.remove(S); 12865 } 12866 }), g.fn[y] = H._jQueryInterface, g.fn[y].Constructor = H, g.fn[y].noConflict = function () { 12867 return g.fn[y] = b, H._jQueryInterface; 12868 };var R = "carousel", 12869 x = "bs.carousel", 12870 F = "." + x, 12871 U = ".data-api", 12872 W = g.fn[R], 12873 q = { interval: 5e3, keyboard: !0, slide: !1, pause: "hover", wrap: !0, touch: !0 }, 12874 M = { interval: "(number|boolean)", keyboard: "boolean", slide: "(boolean|string)", pause: "(string|boolean)", wrap: "boolean", touch: "boolean" }, 12875 K = "next", 12876 Q = "prev", 12877 B = "left", 12878 V = "right", 12879 Y = { SLIDE: "slide" + F, SLID: "slid" + F, KEYDOWN: "keydown" + F, MOUSEENTER: "mouseenter" + F, MOUSELEAVE: "mouseleave" + F, TOUCHSTART: "touchstart" + F, TOUCHMOVE: "touchmove" + F, TOUCHEND: "touchend" + F, POINTERDOWN: "pointerdown" + F, POINTERUP: "pointerup" + F, DRAG_START: "dragstart" + F, LOAD_DATA_API: "load" + F + U, CLICK_DATA_API: "click" + F + U }, 12880 z = "carousel", 12881 X = "active", 12882 $ = "slide", 12883 G = "carousel-item-right", 12884 J = "carousel-item-left", 12885 Z = "carousel-item-next", 12886 tt = "carousel-item-prev", 12887 et = "pointer-event", 12888 nt = ".active", 12889 it = ".active.carousel-item", 12890 ot = ".carousel-item", 12891 rt = ".carousel-item img", 12892 st = ".carousel-item-next, .carousel-item-prev", 12893 at = ".carousel-indicators", 12894 lt = "[data-slide], [data-slide-to]", 12895 ct = '[data-ride="carousel"]', 12896 ht = { TOUCH: "touch", PEN: "pen" }, 12897 ut = function () { 12898 function r(t, e) { 12899 this._items = null, this._interval = null, this._activeElement = null, this._isPaused = !1, this._isSliding = !1, this.touchTimeout = null, this.touchStartX = 0, this.touchDeltaX = 0, this._config = this._getConfig(e), this._element = t, this._indicatorsElement = this._element.querySelector(at), this._touchSupported = "ontouchstart" in document.documentElement || 0 < navigator.maxTouchPoints, this._pointerEvent = Boolean(window.PointerEvent || window.MSPointerEvent), this._addEventListeners(); 12900 }var t = r.prototype;return t.next = function () { 12901 this._isSliding || this._slide(K); 12902 }, t.nextWhenVisible = function () { 12903 !document.hidden && g(this._element).is(":visible") && "hidden" !== g(this._element).css("visibility") && this.next(); 12904 }, t.prev = function () { 12905 this._isSliding || this._slide(Q); 12906 }, t.pause = function (t) { 12907 t || (this._isPaused = !0), this._element.querySelector(st) && (_.triggerTransitionEnd(this._element), this.cycle(!0)), clearInterval(this._interval), this._interval = null; 12908 }, t.cycle = function (t) { 12909 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)); 12910 }, t.to = function (t) { 12911 var e = this;this._activeElement = this._element.querySelector(it);var n = this._getItemIndex(this._activeElement);if (!(t > this._items.length - 1 || t < 0)) if (this._isSliding) g(this._element).one(Y.SLID, function () { 12912 return e.to(t); 12913 });else { 12914 if (n === t) return this.pause(), void this.cycle();var i = n < t ? K : Q;this._slide(i, this._items[t]); 12915 } 12916 }, t.dispose = function () { 12917 g(this._element).off(F), g.removeData(this._element, x), this._items = null, this._config = null, this._element = null, this._interval = null, this._isPaused = null, this._isSliding = null, this._activeElement = null, this._indicatorsElement = null; 12918 }, t._getConfig = function (t) { 12919 return t = l({}, q, {}, t), _.typeCheckConfig(R, t, M), t; 12920 }, t._handleSwipe = function () { 12921 var t = Math.abs(this.touchDeltaX);if (!(t <= 40)) { 12922 var e = t / this.touchDeltaX;(this.touchDeltaX = 0) < e && this.prev(), e < 0 && this.next(); 12923 } 12924 }, t._addEventListeners = function () { 12925 var e = this;this._config.keyboard && g(this._element).on(Y.KEYDOWN, function (t) { 12926 return e._keydown(t); 12927 }), "hover" === this._config.pause && g(this._element).on(Y.MOUSEENTER, function (t) { 12928 return e.pause(t); 12929 }).on(Y.MOUSELEAVE, function (t) { 12930 return e.cycle(t); 12931 }), this._config.touch && this._addTouchEventListeners(); 12932 }, t._addTouchEventListeners = function () { 12933 var e = this;if (this._touchSupported) { 12934 var n = function (t) { 12935 e._pointerEvent && ht[t.originalEvent.pointerType.toUpperCase()] ? e.touchStartX = t.originalEvent.clientX : e._pointerEvent || (e.touchStartX = t.originalEvent.touches[0].clientX); 12936 }, 12937 i = function (t) { 12938 e._pointerEvent && ht[t.originalEvent.pointerType.toUpperCase()] && (e.touchDeltaX = t.originalEvent.clientX - e.touchStartX), e._handleSwipe(), "hover" === e._config.pause && (e.pause(), e.touchTimeout && clearTimeout(e.touchTimeout), e.touchTimeout = setTimeout(function (t) { 12939 return e.cycle(t); 12940 }, 500 + e._config.interval)); 12941 };g(this._element.querySelectorAll(rt)).on(Y.DRAG_START, function (t) { 12942 return t.preventDefault(); 12943 }), this._pointerEvent ? (g(this._element).on(Y.POINTERDOWN, function (t) { 12944 return n(t); 12945 }), g(this._element).on(Y.POINTERUP, function (t) { 12946 return i(t); 12947 }), this._element.classList.add(et)) : (g(this._element).on(Y.TOUCHSTART, function (t) { 12948 return n(t); 12949 }), g(this._element).on(Y.TOUCHMOVE, function (t) { 12950 return function (t) { 12951 t.originalEvent.touches && 1 < t.originalEvent.touches.length ? e.touchDeltaX = 0 : e.touchDeltaX = t.originalEvent.touches[0].clientX - e.touchStartX; 12952 }(t); 12953 }), g(this._element).on(Y.TOUCHEND, function (t) { 12954 return i(t); 12955 })); 12956 } 12957 }, t._keydown = function (t) { 12958 if (!/input|textarea/i.test(t.target.tagName)) switch (t.which) {case 37: 12959 t.preventDefault(), this.prev();break;case 39: 12960 t.preventDefault(), this.next();} 12961 }, t._getItemIndex = function (t) { 12962 return this._items = t && t.parentNode ? [].slice.call(t.parentNode.querySelectorAll(ot)) : [], this._items.indexOf(t); 12963 }, t._getItemByDirection = function (t, e) { 12964 var n = t === K, 12965 i = t === Q, 12966 o = this._getItemIndex(e), 12967 r = this._items.length - 1;if ((i && 0 === o || n && o === r) && !this._config.wrap) return e;var s = (o + (t === Q ? -1 : 1)) % this._items.length;return -1 == s ? this._items[this._items.length - 1] : this._items[s]; 12968 }, t._triggerSlideEvent = function (t, e) { 12969 var n = this._getItemIndex(t), 12970 i = this._getItemIndex(this._element.querySelector(it)), 12971 o = g.Event(Y.SLIDE, { relatedTarget: t, direction: e, from: i, to: n });return g(this._element).trigger(o), o; 12972 }, t._setActiveIndicatorElement = function (t) { 12973 if (this._indicatorsElement) { 12974 var e = [].slice.call(this._indicatorsElement.querySelectorAll(nt));g(e).removeClass(X);var n = this._indicatorsElement.children[this._getItemIndex(t)];n && g(n).addClass(X); 12975 } 12976 }, t._slide = function (t, e) { 12977 var n, 12978 i, 12979 o, 12980 r = this, 12981 s = this._element.querySelector(it), 12982 a = this._getItemIndex(s), 12983 l = e || s && this._getItemByDirection(t, s), 12984 c = this._getItemIndex(l), 12985 h = Boolean(this._interval);if (o = t === K ? (n = J, i = Z, B) : (n = G, i = tt, V), l && g(l).hasClass(X)) this._isSliding = !1;else if (!this._triggerSlideEvent(l, o).isDefaultPrevented() && s && l) { 12986 this._isSliding = !0, h && this.pause(), this._setActiveIndicatorElement(l);var u = g.Event(Y.SLID, { relatedTarget: l, direction: o, from: a, to: c });if (g(this._element).hasClass($)) { 12987 g(l).addClass(i), _.reflow(l), g(s).addClass(n), g(l).addClass(n);var f = parseInt(l.getAttribute("data-interval"), 10);f ? (this._config.defaultInterval = this._config.defaultInterval || this._config.interval, this._config.interval = f) : this._config.interval = this._config.defaultInterval || this._config.interval;var d = _.getTransitionDurationFromElement(s);g(s).one(_.TRANSITION_END, function () { 12988 g(l).removeClass(n + " " + i).addClass(X), g(s).removeClass(X + " " + i + " " + n), r._isSliding = !1, setTimeout(function () { 12989 return g(r._element).trigger(u); 12990 }, 0); 12991 }).emulateTransitionEnd(d); 12992 } else g(s).removeClass(X), g(l).addClass(X), this._isSliding = !1, g(this._element).trigger(u);h && this.cycle(); 12993 } 12994 }, r._jQueryInterface = function (i) { 12995 return this.each(function () { 12996 var t = g(this).data(x), 12997 e = l({}, q, {}, g(this).data());"object" == typeof i && (e = l({}, e, {}, i));var n = "string" == typeof i ? i : e.slide;if (t || (t = new r(this, e), g(this).data(x, t)), "number" == typeof i) t.to(i);else if ("string" == typeof n) { 12998 if ("undefined" == typeof t[n]) throw new TypeError('No method named "' + n + '"');t[n](); 12999 } else e.interval && e.ride && (t.pause(), t.cycle()); 13000 }); 13001 }, r._dataApiClickHandler = function (t) { 13002 var e = _.getSelectorFromElement(this);if (e) { 13003 var n = g(e)[0];if (n && g(n).hasClass(z)) { 13004 var i = l({}, g(n).data(), {}, g(this).data()), 13005 o = this.getAttribute("data-slide-to");o && (i.interval = !1), r._jQueryInterface.call(g(n), i), o && g(n).data(x).to(o), t.preventDefault(); 13006 } 13007 } 13008 }, s(r, null, [{ key: "VERSION", get: function () { 13009 return "4.4.1"; 13010 } }, { key: "Default", get: function () { 13011 return q; 13012 } }]), r; 13013 }();g(document).on(Y.CLICK_DATA_API, lt, ut._dataApiClickHandler), g(window).on(Y.LOAD_DATA_API, function () { 13014 for (var t = [].slice.call(document.querySelectorAll(ct)), e = 0, n = t.length; e < n; e++) { 13015 var i = g(t[e]);ut._jQueryInterface.call(i, i.data()); 13016 } 13017 }), g.fn[R] = ut._jQueryInterface, g.fn[R].Constructor = ut, g.fn[R].noConflict = function () { 13018 return g.fn[R] = W, ut._jQueryInterface; 13019 };var ft = "collapse", 13020 dt = "bs.collapse", 13021 gt = "." + dt, 13022 _t = g.fn[ft], 13023 mt = { toggle: !0, parent: "" }, 13024 pt = { toggle: "boolean", parent: "(string|element)" }, 13025 vt = { SHOW: "show" + gt, SHOWN: "shown" + gt, HIDE: "hide" + gt, HIDDEN: "hidden" + gt, CLICK_DATA_API: "click" + gt + ".data-api" }, 13026 yt = "show", 13027 Et = "collapse", 13028 Ct = "collapsing", 13029 Tt = "collapsed", 13030 bt = "width", 13031 St = "height", 13032 Dt = ".show, .collapsing", 13033 It = '[data-toggle="collapse"]', 13034 wt = function () { 13035 function a(e, t) { 13036 this._isTransitioning = !1, this._element = e, this._config = this._getConfig(t), this._triggerArray = [].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#' + e.id + '"],[data-toggle="collapse"][data-target="#' + e.id + '"]'));for (var n = [].slice.call(document.querySelectorAll(It)), i = 0, o = n.length; i < o; i++) { 13037 var r = n[i], 13038 s = _.getSelectorFromElement(r), 13039 a = [].slice.call(document.querySelectorAll(s)).filter(function (t) { 13040 return t === e; 13041 });null !== s && 0 < a.length && (this._selector = s, this._triggerArray.push(r)); 13042 }this._parent = this._config.parent ? this._getParent() : null, this._config.parent || this._addAriaAndCollapsedClass(this._element, this._triggerArray), this._config.toggle && this.toggle(); 13043 }var t = a.prototype;return t.toggle = function () { 13044 g(this._element).hasClass(yt) ? this.hide() : this.show(); 13045 }, t.show = function () { 13046 var t, 13047 e, 13048 n = this;if (!this._isTransitioning && !g(this._element).hasClass(yt) && (this._parent && 0 === (t = [].slice.call(this._parent.querySelectorAll(Dt)).filter(function (t) { 13049 return "string" == typeof n._config.parent ? t.getAttribute("data-parent") === n._config.parent : t.classList.contains(Et); 13050 })).length && (t = null), !(t && (e = g(t).not(this._selector).data(dt)) && e._isTransitioning))) { 13051 var i = g.Event(vt.SHOW);if (g(this._element).trigger(i), !i.isDefaultPrevented()) { 13052 t && (a._jQueryInterface.call(g(t).not(this._selector), "hide"), e || g(t).data(dt, null));var o = this._getDimension();g(this._element).removeClass(Et).addClass(Ct), this._element.style[o] = 0, this._triggerArray.length && g(this._triggerArray).removeClass(Tt).attr("aria-expanded", !0), this.setTransitioning(!0);var r = "scroll" + (o[0].toUpperCase() + o.slice(1)), 13053 s = _.getTransitionDurationFromElement(this._element);g(this._element).one(_.TRANSITION_END, function () { 13054 g(n._element).removeClass(Ct).addClass(Et).addClass(yt), n._element.style[o] = "", n.setTransitioning(!1), g(n._element).trigger(vt.SHOWN); 13055 }).emulateTransitionEnd(s), this._element.style[o] = this._element[r] + "px"; 13056 } 13057 } 13058 }, t.hide = function () { 13059 var t = this;if (!this._isTransitioning && g(this._element).hasClass(yt)) { 13060 var e = g.Event(vt.HIDE);if (g(this._element).trigger(e), !e.isDefaultPrevented()) { 13061 var n = this._getDimension();this._element.style[n] = this._element.getBoundingClientRect()[n] + "px", _.reflow(this._element), g(this._element).addClass(Ct).removeClass(Et).removeClass(yt);var i = this._triggerArray.length;if (0 < i) for (var o = 0; o < i; o++) { 13062 var r = this._triggerArray[o], 13063 s = _.getSelectorFromElement(r);if (null !== s) g([].slice.call(document.querySelectorAll(s))).hasClass(yt) || g(r).addClass(Tt).attr("aria-expanded", !1); 13064 }this.setTransitioning(!0);this._element.style[n] = "";var a = _.getTransitionDurationFromElement(this._element);g(this._element).one(_.TRANSITION_END, function () { 13065 t.setTransitioning(!1), g(t._element).removeClass(Ct).addClass(Et).trigger(vt.HIDDEN); 13066 }).emulateTransitionEnd(a); 13067 } 13068 } 13069 }, t.setTransitioning = function (t) { 13070 this._isTransitioning = t; 13071 }, t.dispose = function () { 13072 g.removeData(this._element, dt), this._config = null, this._parent = null, this._element = null, this._triggerArray = null, this._isTransitioning = null; 13073 }, t._getConfig = function (t) { 13074 return (t = l({}, mt, {}, t)).toggle = Boolean(t.toggle), _.typeCheckConfig(ft, t, pt), t; 13075 }, t._getDimension = function () { 13076 return g(this._element).hasClass(bt) ? bt : St; 13077 }, t._getParent = function () { 13078 var t, 13079 n = this;_.isElement(this._config.parent) ? (t = this._config.parent, "undefined" != typeof this._config.parent.jquery && (t = this._config.parent[0])) : t = document.querySelector(this._config.parent);var e = '[data-toggle="collapse"][data-parent="' + this._config.parent + '"]', 13080 i = [].slice.call(t.querySelectorAll(e));return g(i).each(function (t, e) { 13081 n._addAriaAndCollapsedClass(a._getTargetFromElement(e), [e]); 13082 }), t; 13083 }, t._addAriaAndCollapsedClass = function (t, e) { 13084 var n = g(t).hasClass(yt);e.length && g(e).toggleClass(Tt, !n).attr("aria-expanded", n); 13085 }, a._getTargetFromElement = function (t) { 13086 var e = _.getSelectorFromElement(t);return e ? document.querySelector(e) : null; 13087 }, a._jQueryInterface = function (i) { 13088 return this.each(function () { 13089 var t = g(this), 13090 e = t.data(dt), 13091 n = l({}, mt, {}, t.data(), {}, "object" == typeof i && i ? i : {});if (!e && n.toggle && /show|hide/.test(i) && (n.toggle = !1), e || (e = new a(this, n), t.data(dt, e)), "string" == typeof i) { 13092 if ("undefined" == typeof e[i]) throw new TypeError('No method named "' + i + '"');e[i](); 13093 } 13094 }); 13095 }, s(a, null, [{ key: "VERSION", get: function () { 13096 return "4.4.1"; 13097 } }, { key: "Default", get: function () { 13098 return mt; 13099 } }]), a; 13100 }();g(document).on(vt.CLICK_DATA_API, It, function (t) { 13101 "A" === t.currentTarget.tagName && t.preventDefault();var n = g(this), 13102 e = _.getSelectorFromElement(this), 13103 i = [].slice.call(document.querySelectorAll(e));g(i).each(function () { 13104 var t = g(this), 13105 e = t.data(dt) ? "toggle" : n.data();wt._jQueryInterface.call(t, e); 13106 }); 13107 }), g.fn[ft] = wt._jQueryInterface, g.fn[ft].Constructor = wt, g.fn[ft].noConflict = function () { 13108 return g.fn[ft] = _t, wt._jQueryInterface; 13109 };var At = "dropdown", 13110 Nt = "bs.dropdown", 13111 Ot = "." + Nt, 13112 kt = ".data-api", 13113 Pt = g.fn[At], 13114 Lt = new RegExp("38|40|27"), 13115 jt = { HIDE: "hide" + Ot, HIDDEN: "hidden" + Ot, SHOW: "show" + Ot, SHOWN: "shown" + Ot, CLICK: "click" + Ot, CLICK_DATA_API: "click" + Ot + kt, KEYDOWN_DATA_API: "keydown" + Ot + kt, KEYUP_DATA_API: "keyup" + Ot + kt }, 13116 Ht = "disabled", 13117 Rt = "show", 13118 xt = "dropup", 13119 Ft = "dropright", 13120 Ut = "dropleft", 13121 Wt = "dropdown-menu-right", 13122 qt = "position-static", 13123 Mt = '[data-toggle="dropdown"]', 13124 Kt = ".dropdown form", 13125 Qt = ".dropdown-menu", 13126 Bt = ".navbar-nav", 13127 Vt = ".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)", 13128 Yt = "top-start", 13129 zt = "top-end", 13130 Xt = "bottom-start", 13131 $t = "bottom-end", 13132 Gt = "right-start", 13133 Jt = "left-start", 13134 Zt = { offset: 0, flip: !0, boundary: "scrollParent", reference: "toggle", display: "dynamic", popperConfig: null }, 13135 te = { offset: "(number|string|function)", flip: "boolean", boundary: "(string|element)", reference: "(string|element)", display: "string", popperConfig: "(null|object)" }, 13136 ee = function () { 13137 function c(t, e) { 13138 this._element = t, this._popper = null, this._config = this._getConfig(e), this._menu = this._getMenuElement(), this._inNavbar = this._detectNavbar(), this._addEventListeners(); 13139 }var t = c.prototype;return t.toggle = function () { 13140 if (!this._element.disabled && !g(this._element).hasClass(Ht)) { 13141 var t = g(this._menu).hasClass(Rt);c._clearMenus(), t || this.show(!0); 13142 } 13143 }, t.show = function (t) { 13144 if (void 0 === t && (t = !1), !(this._element.disabled || g(this._element).hasClass(Ht) || g(this._menu).hasClass(Rt))) { 13145 var e = { relatedTarget: this._element }, 13146 n = g.Event(jt.SHOW, e), 13147 i = c._getParentFromElement(this._element);if (g(i).trigger(n), !n.isDefaultPrevented()) { 13148 if (!this._inNavbar && t) { 13149 if ("undefined" == typeof u) throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");var o = this._element;"parent" === this._config.reference ? o = i : _.isElement(this._config.reference) && (o = this._config.reference, "undefined" != typeof this._config.reference.jquery && (o = this._config.reference[0])), "scrollParent" !== this._config.boundary && g(i).addClass(qt), this._popper = new u(o, this._menu, this._getPopperConfig()); 13150 }"ontouchstart" in document.documentElement && 0 === g(i).closest(Bt).length && g(document.body).children().on("mouseover", null, g.noop), this._element.focus(), this._element.setAttribute("aria-expanded", !0), g(this._menu).toggleClass(Rt), g(i).toggleClass(Rt).trigger(g.Event(jt.SHOWN, e)); 13151 } 13152 } 13153 }, t.hide = function () { 13154 if (!this._element.disabled && !g(this._element).hasClass(Ht) && g(this._menu).hasClass(Rt)) { 13155 var t = { relatedTarget: this._element }, 13156 e = g.Event(jt.HIDE, t), 13157 n = c._getParentFromElement(this._element);g(n).trigger(e), e.isDefaultPrevented() || (this._popper && this._popper.destroy(), g(this._menu).toggleClass(Rt), g(n).toggleClass(Rt).trigger(g.Event(jt.HIDDEN, t))); 13158 } 13159 }, t.dispose = function () { 13160 g.removeData(this._element, Nt), g(this._element).off(Ot), this._element = null, (this._menu = null) !== this._popper && (this._popper.destroy(), this._popper = null); 13161 }, t.update = function () { 13162 this._inNavbar = this._detectNavbar(), null !== this._popper && this._popper.scheduleUpdate(); 13163 }, t._addEventListeners = function () { 13164 var e = this;g(this._element).on(jt.CLICK, function (t) { 13165 t.preventDefault(), t.stopPropagation(), e.toggle(); 13166 }); 13167 }, t._getConfig = function (t) { 13168 return t = l({}, this.constructor.Default, {}, g(this._element).data(), {}, t), _.typeCheckConfig(At, t, this.constructor.DefaultType), t; 13169 }, t._getMenuElement = function () { 13170 if (!this._menu) { 13171 var t = c._getParentFromElement(this._element);t && (this._menu = t.querySelector(Qt)); 13172 }return this._menu; 13173 }, t._getPlacement = function () { 13174 var t = g(this._element.parentNode), 13175 e = Xt;return t.hasClass(xt) ? (e = Yt, g(this._menu).hasClass(Wt) && (e = zt)) : t.hasClass(Ft) ? e = Gt : t.hasClass(Ut) ? e = Jt : g(this._menu).hasClass(Wt) && (e = $t), e; 13176 }, t._detectNavbar = function () { 13177 return 0 < g(this._element).closest(".navbar").length; 13178 }, t._getOffset = function () { 13179 var e = this, 13180 t = {};return "function" == typeof this._config.offset ? t.fn = function (t) { 13181 return t.offsets = l({}, t.offsets, {}, e._config.offset(t.offsets, e._element) || {}), t; 13182 } : t.offset = this._config.offset, t; 13183 }, t._getPopperConfig = function () { 13184 var t = { placement: this._getPlacement(), modifiers: { offset: this._getOffset(), flip: { enabled: this._config.flip }, preventOverflow: { boundariesElement: this._config.boundary } } };return "static" === this._config.display && (t.modifiers.applyStyle = { enabled: !1 }), l({}, t, {}, this._config.popperConfig); 13185 }, c._jQueryInterface = function (e) { 13186 return this.each(function () { 13187 var t = g(this).data(Nt);if (t || (t = new c(this, "object" == typeof e ? e : null), g(this).data(Nt, t)), "string" == typeof e) { 13188 if ("undefined" == typeof t[e]) throw new TypeError('No method named "' + e + '"');t[e](); 13189 } 13190 }); 13191 }, c._clearMenus = function (t) { 13192 if (!t || 3 !== t.which && ("keyup" !== t.type || 9 === t.which)) for (var e = [].slice.call(document.querySelectorAll(Mt)), n = 0, i = e.length; n < i; n++) { 13193 var o = c._getParentFromElement(e[n]), 13194 r = g(e[n]).data(Nt), 13195 s = { relatedTarget: e[n] };if (t && "click" === t.type && (s.clickEvent = t), r) { 13196 var a = r._menu;if (g(o).hasClass(Rt) && !(t && ("click" === t.type && /input|textarea/i.test(t.target.tagName) || "keyup" === t.type && 9 === t.which) && g.contains(o, t.target))) { 13197 var l = g.Event(jt.HIDE, s);g(o).trigger(l), l.isDefaultPrevented() || ("ontouchstart" in document.documentElement && g(document.body).children().off("mouseover", null, g.noop), e[n].setAttribute("aria-expanded", "false"), r._popper && r._popper.destroy(), g(a).removeClass(Rt), g(o).removeClass(Rt).trigger(g.Event(jt.HIDDEN, s))); 13198 } 13199 } 13200 } 13201 }, c._getParentFromElement = function (t) { 13202 var e, 13203 n = _.getSelectorFromElement(t);return n && (e = document.querySelector(n)), e || t.parentNode; 13204 }, c._dataApiKeydownHandler = function (t) { 13205 if ((/input|textarea/i.test(t.target.tagName) ? !(32 === t.which || 27 !== t.which && (40 !== t.which && 38 !== t.which || g(t.target).closest(Qt).length)) : Lt.test(t.which)) && (t.preventDefault(), t.stopPropagation(), !this.disabled && !g(this).hasClass(Ht))) { 13206 var e = c._getParentFromElement(this), 13207 n = g(e).hasClass(Rt);if (n || 27 !== t.which) if (n && (!n || 27 !== t.which && 32 !== t.which)) { 13208 var i = [].slice.call(e.querySelectorAll(Vt)).filter(function (t) { 13209 return g(t).is(":visible"); 13210 });if (0 !== i.length) { 13211 var o = i.indexOf(t.target);38 === t.which && 0 < o && o--, 40 === t.which && o < i.length - 1 && o++, o < 0 && (o = 0), i[o].focus(); 13212 } 13213 } else { 13214 if (27 === t.which) { 13215 var r = e.querySelector(Mt);g(r).trigger("focus"); 13216 }g(this).trigger("click"); 13217 } 13218 } 13219 }, s(c, null, [{ key: "VERSION", get: function () { 13220 return "4.4.1"; 13221 } }, { key: "Default", get: function () { 13222 return Zt; 13223 } }, { key: "DefaultType", get: function () { 13224 return te; 13225 } }]), c; 13226 }();g(document).on(jt.KEYDOWN_DATA_API, Mt, ee._dataApiKeydownHandler).on(jt.KEYDOWN_DATA_API, Qt, ee._dataApiKeydownHandler).on(jt.CLICK_DATA_API + " " + jt.KEYUP_DATA_API, ee._clearMenus).on(jt.CLICK_DATA_API, Mt, function (t) { 13227 t.preventDefault(), t.stopPropagation(), ee._jQueryInterface.call(g(this), "toggle"); 13228 }).on(jt.CLICK_DATA_API, Kt, function (t) { 13229 t.stopPropagation(); 13230 }), g.fn[At] = ee._jQueryInterface, g.fn[At].Constructor = ee, g.fn[At].noConflict = function () { 13231 return g.fn[At] = Pt, ee._jQueryInterface; 13232 };var ne = "modal", 13233 ie = "bs.modal", 13234 oe = "." + ie, 13235 re = g.fn[ne], 13236 se = { backdrop: !0, keyboard: !0, focus: !0, show: !0 }, 13237 ae = { backdrop: "(boolean|string)", keyboard: "boolean", focus: "boolean", show: "boolean" }, 13238 le = { HIDE: "hide" + oe, HIDE_PREVENTED: "hidePrevented" + oe, HIDDEN: "hidden" + oe, SHOW: "show" + oe, SHOWN: "shown" + oe, FOCUSIN: "focusin" + oe, RESIZE: "resize" + oe, CLICK_DISMISS: "click.dismiss" + oe, KEYDOWN_DISMISS: "keydown.dismiss" + oe, MOUSEUP_DISMISS: "mouseup.dismiss" + oe, MOUSEDOWN_DISMISS: "mousedown.dismiss" + oe, CLICK_DATA_API: "click" + oe + ".data-api" }, 13239 ce = "modal-dialog-scrollable", 13240 he = "modal-scrollbar-measure", 13241 ue = "modal-backdrop", 13242 fe = "modal-open", 13243 de = "fade", 13244 ge = "show", 13245 _e = "modal-static", 13246 me = ".modal-dialog", 13247 pe = ".modal-body", 13248 ve = '[data-toggle="modal"]', 13249 ye = '[data-dismiss="modal"]', 13250 Ee = ".fixed-top, .fixed-bottom, .is-fixed, .sticky-top", 13251 Ce = ".sticky-top", 13252 Te = function () { 13253 function o(t, e) { 13254 this._config = this._getConfig(e), this._element = t, this._dialog = t.querySelector(me), this._backdrop = null, this._isShown = !1, this._isBodyOverflowing = !1, this._ignoreBackdropClick = !1, this._isTransitioning = !1, this._scrollbarWidth = 0; 13255 }var t = o.prototype;return t.toggle = function (t) { 13256 return this._isShown ? this.hide() : this.show(t); 13257 }, t.show = function (t) { 13258 var e = this;if (!this._isShown && !this._isTransitioning) { 13259 g(this._element).hasClass(de) && (this._isTransitioning = !0);var n = g.Event(le.SHOW, { relatedTarget: t });g(this._element).trigger(n), this._isShown || n.isDefaultPrevented() || (this._isShown = !0, this._checkScrollbar(), this._setScrollbar(), this._adjustDialog(), this._setEscapeEvent(), this._setResizeEvent(), g(this._element).on(le.CLICK_DISMISS, ye, function (t) { 13260 return e.hide(t); 13261 }), g(this._dialog).on(le.MOUSEDOWN_DISMISS, function () { 13262 g(e._element).one(le.MOUSEUP_DISMISS, function (t) { 13263 g(t.target).is(e._element) && (e._ignoreBackdropClick = !0); 13264 }); 13265 }), this._showBackdrop(function () { 13266 return e._showElement(t); 13267 })); 13268 } 13269 }, t.hide = function (t) { 13270 var e = this;if (t && t.preventDefault(), this._isShown && !this._isTransitioning) { 13271 var n = g.Event(le.HIDE);if (g(this._element).trigger(n), this._isShown && !n.isDefaultPrevented()) { 13272 this._isShown = !1;var i = g(this._element).hasClass(de);if (i && (this._isTransitioning = !0), this._setEscapeEvent(), this._setResizeEvent(), g(document).off(le.FOCUSIN), g(this._element).removeClass(ge), g(this._element).off(le.CLICK_DISMISS), g(this._dialog).off(le.MOUSEDOWN_DISMISS), i) { 13273 var o = _.getTransitionDurationFromElement(this._element);g(this._element).one(_.TRANSITION_END, function (t) { 13274 return e._hideModal(t); 13275 }).emulateTransitionEnd(o); 13276 } else this._hideModal(); 13277 } 13278 } 13279 }, t.dispose = function () { 13280 [window, this._element, this._dialog].forEach(function (t) { 13281 return g(t).off(oe); 13282 }), g(document).off(le.FOCUSIN), g.removeData(this._element, ie), this._config = null, this._element = null, this._dialog = null, this._backdrop = null, this._isShown = null, this._isBodyOverflowing = null, this._ignoreBackdropClick = null, this._isTransitioning = null, this._scrollbarWidth = null; 13283 }, t.handleUpdate = function () { 13284 this._adjustDialog(); 13285 }, t._getConfig = function (t) { 13286 return t = l({}, se, {}, t), _.typeCheckConfig(ne, t, ae), t; 13287 }, t._triggerBackdropTransition = function () { 13288 var t = this;if ("static" === this._config.backdrop) { 13289 var e = g.Event(le.HIDE_PREVENTED);if (g(this._element).trigger(e), e.defaultPrevented) return;this._element.classList.add(_e);var n = _.getTransitionDurationFromElement(this._element);g(this._element).one(_.TRANSITION_END, function () { 13290 t._element.classList.remove(_e); 13291 }).emulateTransitionEnd(n), this._element.focus(); 13292 } else this.hide(); 13293 }, t._showElement = function (t) { 13294 var e = this, 13295 n = g(this._element).hasClass(de), 13296 i = this._dialog ? this._dialog.querySelector(pe) : null;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.setAttribute("aria-modal", !0), g(this._dialog).hasClass(ce) && i ? i.scrollTop = 0 : this._element.scrollTop = 0, n && _.reflow(this._element), g(this._element).addClass(ge), this._config.focus && this._enforceFocus();function o() { 13297 e._config.focus && e._element.focus(), e._isTransitioning = !1, g(e._element).trigger(r); 13298 }var r = g.Event(le.SHOWN, { relatedTarget: t });if (n) { 13299 var s = _.getTransitionDurationFromElement(this._dialog);g(this._dialog).one(_.TRANSITION_END, o).emulateTransitionEnd(s); 13300 } else o(); 13301 }, t._enforceFocus = function () { 13302 var e = this;g(document).off(le.FOCUSIN).on(le.FOCUSIN, function (t) { 13303 document !== t.target && e._element !== t.target && 0 === g(e._element).has(t.target).length && e._element.focus(); 13304 }); 13305 }, t._setEscapeEvent = function () { 13306 var e = this;this._isShown && this._config.keyboard ? g(this._element).on(le.KEYDOWN_DISMISS, function (t) { 13307 27 === t.which && e._triggerBackdropTransition(); 13308 }) : this._isShown || g(this._element).off(le.KEYDOWN_DISMISS); 13309 }, t._setResizeEvent = function () { 13310 var e = this;this._isShown ? g(window).on(le.RESIZE, function (t) { 13311 return e.handleUpdate(t); 13312 }) : g(window).off(le.RESIZE); 13313 }, t._hideModal = function () { 13314 var t = this;this._element.style.display = "none", this._element.setAttribute("aria-hidden", !0), this._element.removeAttribute("aria-modal"), this._isTransitioning = !1, this._showBackdrop(function () { 13315 g(document.body).removeClass(fe), t._resetAdjustments(), t._resetScrollbar(), g(t._element).trigger(le.HIDDEN); 13316 }); 13317 }, t._removeBackdrop = function () { 13318 this._backdrop && (g(this._backdrop).remove(), this._backdrop = null); 13319 }, t._showBackdrop = function (t) { 13320 var e = this, 13321 n = g(this._element).hasClass(de) ? de : "";if (this._isShown && this._config.backdrop) { 13322 if (this._backdrop = document.createElement("div"), this._backdrop.className = ue, n && this._backdrop.classList.add(n), g(this._backdrop).appendTo(document.body), g(this._element).on(le.CLICK_DISMISS, function (t) { 13323 e._ignoreBackdropClick ? e._ignoreBackdropClick = !1 : t.target === t.currentTarget && e._triggerBackdropTransition(); 13324 }), n && _.reflow(this._backdrop), g(this._backdrop).addClass(ge), !t) return;if (!n) return void t();var i = _.getTransitionDurationFromElement(this._backdrop);g(this._backdrop).one(_.TRANSITION_END, t).emulateTransitionEnd(i); 13325 } else if (!this._isShown && this._backdrop) { 13326 g(this._backdrop).removeClass(ge);var o = function () { 13327 e._removeBackdrop(), t && t(); 13328 };if (g(this._element).hasClass(de)) { 13329 var r = _.getTransitionDurationFromElement(this._backdrop);g(this._backdrop).one(_.TRANSITION_END, o).emulateTransitionEnd(r); 13330 } else o(); 13331 } else t && t(); 13332 }, t._adjustDialog = function () { 13333 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"); 13334 }, t._resetAdjustments = function () { 13335 this._element.style.paddingLeft = "", this._element.style.paddingRight = ""; 13336 }, t._checkScrollbar = function () { 13337 var t = document.body.getBoundingClientRect();this._isBodyOverflowing = t.left + t.right < window.innerWidth, this._scrollbarWidth = this._getScrollbarWidth(); 13338 }, t._setScrollbar = function () { 13339 var o = this;if (this._isBodyOverflowing) { 13340 var t = [].slice.call(document.querySelectorAll(Ee)), 13341 e = [].slice.call(document.querySelectorAll(Ce));g(t).each(function (t, e) { 13342 var n = e.style.paddingRight, 13343 i = g(e).css("padding-right");g(e).data("padding-right", n).css("padding-right", parseFloat(i) + o._scrollbarWidth + "px"); 13344 }), g(e).each(function (t, e) { 13345 var n = e.style.marginRight, 13346 i = g(e).css("margin-right");g(e).data("margin-right", n).css("margin-right", parseFloat(i) - o._scrollbarWidth + "px"); 13347 });var n = document.body.style.paddingRight, 13348 i = g(document.body).css("padding-right");g(document.body).data("padding-right", n).css("padding-right", parseFloat(i) + this._scrollbarWidth + "px"); 13349 }g(document.body).addClass(fe); 13350 }, t._resetScrollbar = function () { 13351 var t = [].slice.call(document.querySelectorAll(Ee));g(t).each(function (t, e) { 13352 var n = g(e).data("padding-right");g(e).removeData("padding-right"), e.style.paddingRight = n || ""; 13353 });var e = [].slice.call(document.querySelectorAll("" + Ce));g(e).each(function (t, e) { 13354 var n = g(e).data("margin-right");"undefined" != typeof n && g(e).css("margin-right", n).removeData("margin-right"); 13355 });var n = g(document.body).data("padding-right");g(document.body).removeData("padding-right"), document.body.style.paddingRight = n || ""; 13356 }, t._getScrollbarWidth = function () { 13357 var t = document.createElement("div");t.className = he, document.body.appendChild(t);var e = t.getBoundingClientRect().width - t.clientWidth;return document.body.removeChild(t), e; 13358 }, o._jQueryInterface = function (n, i) { 13359 return this.each(function () { 13360 var t = g(this).data(ie), 13361 e = l({}, se, {}, g(this).data(), {}, "object" == typeof n && n ? n : {});if (t || (t = new o(this, e), g(this).data(ie, t)), "string" == typeof n) { 13362 if ("undefined" == typeof t[n]) throw new TypeError('No method named "' + n + '"');t[n](i); 13363 } else e.show && t.show(i); 13364 }); 13365 }, s(o, null, [{ key: "VERSION", get: function () { 13366 return "4.4.1"; 13367 } }, { key: "Default", get: function () { 13368 return se; 13369 } }]), o; 13370 }();g(document).on(le.CLICK_DATA_API, ve, function (t) { 13371 var e, 13372 n = this, 13373 i = _.getSelectorFromElement(this);i && (e = document.querySelector(i));var o = g(e).data(ie) ? "toggle" : l({}, g(e).data(), {}, g(this).data());"A" !== this.tagName && "AREA" !== this.tagName || t.preventDefault();var r = g(e).one(le.SHOW, function (t) { 13374 t.isDefaultPrevented() || r.one(le.HIDDEN, function () { 13375 g(n).is(":visible") && n.focus(); 13376 }); 13377 });Te._jQueryInterface.call(g(e), o, this); 13378 }), g.fn[ne] = Te._jQueryInterface, g.fn[ne].Constructor = Te, g.fn[ne].noConflict = function () { 13379 return g.fn[ne] = re, Te._jQueryInterface; 13380 };var be = ["background", "cite", "href", "itemtype", "longdesc", "poster", "src", "xlink:href"], 13381 Se = { "*": ["class", "dir", "id", "lang", "role", /^aria-[\w-]*$/i], a: ["target", "href", "title", "rel"], area: [], b: [], br: [], col: [], code: [], div: [], em: [], hr: [], h1: [], h2: [], h3: [], h4: [], h5: [], h6: [], i: [], img: ["src", "alt", "title", "width", "height"], li: [], ol: [], p: [], pre: [], s: [], small: [], span: [], sub: [], sup: [], strong: [], u: [], ul: [] }, 13382 De = /^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi, 13383 Ie = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function we(t, r, e) { 13384 if (0 === t.length) return t;if (e && "function" == typeof e) return e(t);for (var n = new window.DOMParser().parseFromString(t, "text/html"), s = Object.keys(r), a = [].slice.call(n.body.querySelectorAll("*")), i = function (t) { 13385 var e = a[t], 13386 n = e.nodeName.toLowerCase();if (-1 === s.indexOf(e.nodeName.toLowerCase())) return e.parentNode.removeChild(e), "continue";var i = [].slice.call(e.attributes), 13387 o = [].concat(r["*"] || [], r[n] || []);i.forEach(function (t) { 13388 !function (t, e) { 13389 var n = t.nodeName.toLowerCase();if (-1 !== e.indexOf(n)) return -1 === be.indexOf(n) || Boolean(t.nodeValue.match(De) || t.nodeValue.match(Ie));for (var i = e.filter(function (t) { 13390 return t instanceof RegExp; 13391 }), o = 0, r = i.length; o < r; o++) if (n.match(i[o])) return !0;return !1; 13392 }(t, o) && e.removeAttribute(t.nodeName); 13393 }); 13394 }, o = 0, l = a.length; o < l; o++) i(o);return n.body.innerHTML; 13395 }var Ae = "tooltip", 13396 Ne = "bs.tooltip", 13397 Oe = "." + Ne, 13398 ke = g.fn[Ae], 13399 Pe = "bs-tooltip", 13400 Le = new RegExp("(^|\\s)" + Pe + "\\S+", "g"), 13401 je = ["sanitize", "whiteList", "sanitizeFn"], 13402 He = { animation: "boolean", template: "string", title: "(string|element|function)", trigger: "string", delay: "(number|object)", html: "boolean", selector: "(string|boolean)", placement: "(string|function)", offset: "(number|string|function)", container: "(string|element|boolean)", fallbackPlacement: "(string|array)", boundary: "(string|element)", sanitize: "boolean", sanitizeFn: "(null|function)", whiteList: "object", popperConfig: "(null|object)" }, 13403 Re = { AUTO: "auto", TOP: "top", RIGHT: "right", BOTTOM: "bottom", LEFT: "left" }, 13404 xe = { 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", sanitize: !0, sanitizeFn: null, whiteList: Se, popperConfig: null }, 13405 Fe = "show", 13406 Ue = "out", 13407 We = { HIDE: "hide" + Oe, HIDDEN: "hidden" + Oe, SHOW: "show" + Oe, SHOWN: "shown" + Oe, INSERTED: "inserted" + Oe, CLICK: "click" + Oe, FOCUSIN: "focusin" + Oe, FOCUSOUT: "focusout" + Oe, MOUSEENTER: "mouseenter" + Oe, MOUSELEAVE: "mouseleave" + Oe }, 13408 qe = "fade", 13409 Me = "show", 13410 Ke = ".tooltip-inner", 13411 Qe = ".arrow", 13412 Be = "hover", 13413 Ve = "focus", 13414 Ye = "click", 13415 ze = "manual", 13416 Xe = function () { 13417 function i(t, e) { 13418 if ("undefined" == typeof u) throw new TypeError("Bootstrap's 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(); 13419 }var t = i.prototype;return t.enable = function () { 13420 this._isEnabled = !0; 13421 }, t.disable = function () { 13422 this._isEnabled = !1; 13423 }, t.toggleEnabled = function () { 13424 this._isEnabled = !this._isEnabled; 13425 }, t.toggle = function (t) { 13426 if (this._isEnabled) if (t) { 13427 var e = this.constructor.DATA_KEY, 13428 n = g(t.currentTarget).data(e);n || (n = new this.constructor(t.currentTarget, this._getDelegateConfig()), g(t.currentTarget).data(e, n)), n._activeTrigger.click = !n._activeTrigger.click, n._isWithActiveTrigger() ? n._enter(null, n) : n._leave(null, n); 13429 } else { 13430 if (g(this.getTipElement()).hasClass(Me)) return void this._leave(null, this);this._enter(null, this); 13431 } 13432 }, t.dispose = function () { 13433 clearTimeout(this._timeout), g.removeData(this.element, this.constructor.DATA_KEY), g(this.element).off(this.constructor.EVENT_KEY), g(this.element).closest(".modal").off("hide.bs.modal", this._hideModalHandler), this.tip && g(this.tip).remove(), this._isEnabled = null, this._timeout = null, this._hoverState = null, this._activeTrigger = null, this._popper && this._popper.destroy(), this._popper = null, this.element = null, this.config = null, this.tip = null; 13434 }, t.show = function () { 13435 var e = this;if ("none" === g(this.element).css("display")) throw new Error("Please use show on visible elements");var t = g.Event(this.constructor.Event.SHOW);if (this.isWithContent() && this._isEnabled) { 13436 g(this.element).trigger(t);var n = _.findShadowRoot(this.element), 13437 i = g.contains(null !== n ? n : this.element.ownerDocument.documentElement, this.element);if (t.isDefaultPrevented() || !i) return;var o = this.getTipElement(), 13438 r = _.getUID(this.constructor.NAME);o.setAttribute("id", r), this.element.setAttribute("aria-describedby", r), this.setContent(), this.config.animation && g(o).addClass(qe);var s = "function" == typeof this.config.placement ? this.config.placement.call(this, o, this.element) : this.config.placement, 13439 a = this._getAttachment(s);this.addAttachmentClass(a);var l = this._getContainer();g(o).data(this.constructor.DATA_KEY, this), g.contains(this.element.ownerDocument.documentElement, this.tip) || g(o).appendTo(l), g(this.element).trigger(this.constructor.Event.INSERTED), this._popper = new u(this.element, o, this._getPopperConfig(a)), g(o).addClass(Me), "ontouchstart" in document.documentElement && g(document.body).children().on("mouseover", null, g.noop);var c = function () { 13440 e.config.animation && e._fixTransition();var t = e._hoverState;e._hoverState = null, g(e.element).trigger(e.constructor.Event.SHOWN), t === Ue && e._leave(null, e); 13441 };if (g(this.tip).hasClass(qe)) { 13442 var h = _.getTransitionDurationFromElement(this.tip);g(this.tip).one(_.TRANSITION_END, c).emulateTransitionEnd(h); 13443 } else c(); 13444 } 13445 }, t.hide = function (t) { 13446 function e() { 13447 n._hoverState !== Fe && i.parentNode && i.parentNode.removeChild(i), n._cleanTipClass(), n.element.removeAttribute("aria-describedby"), g(n.element).trigger(n.constructor.Event.HIDDEN), null !== n._popper && n._popper.destroy(), t && t(); 13448 }var n = this, 13449 i = this.getTipElement(), 13450 o = g.Event(this.constructor.Event.HIDE);if (g(this.element).trigger(o), !o.isDefaultPrevented()) { 13451 if (g(i).removeClass(Me), "ontouchstart" in document.documentElement && g(document.body).children().off("mouseover", null, g.noop), this._activeTrigger[Ye] = !1, this._activeTrigger[Ve] = !1, this._activeTrigger[Be] = !1, g(this.tip).hasClass(qe)) { 13452 var r = _.getTransitionDurationFromElement(i);g(i).one(_.TRANSITION_END, e).emulateTransitionEnd(r); 13453 } else e();this._hoverState = ""; 13454 } 13455 }, t.update = function () { 13456 null !== this._popper && this._popper.scheduleUpdate(); 13457 }, t.isWithContent = function () { 13458 return Boolean(this.getTitle()); 13459 }, t.addAttachmentClass = function (t) { 13460 g(this.getTipElement()).addClass(Pe + "-" + t); 13461 }, t.getTipElement = function () { 13462 return this.tip = this.tip || g(this.config.template)[0], this.tip; 13463 }, t.setContent = function () { 13464 var t = this.getTipElement();this.setElementContent(g(t.querySelectorAll(Ke)), this.getTitle()), g(t).removeClass(qe + " " + Me); 13465 }, t.setElementContent = function (t, e) { 13466 "object" != typeof e || !e.nodeType && !e.jquery ? this.config.html ? (this.config.sanitize && (e = we(e, this.config.whiteList, this.config.sanitizeFn)), t.html(e)) : t.text(e) : this.config.html ? g(e).parent().is(t) || t.empty().append(e) : t.text(g(e).text()); 13467 }, t.getTitle = function () { 13468 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); 13469 }, t._getPopperConfig = function (t) { 13470 var e = this;return l({}, { placement: t, modifiers: { offset: this._getOffset(), flip: { behavior: this.config.fallbackPlacement }, arrow: { element: Qe }, preventOverflow: { boundariesElement: this.config.boundary } }, onCreate: function (t) { 13471 t.originalPlacement !== t.placement && e._handlePopperPlacementChange(t); 13472 }, onUpdate: function (t) { 13473 return e._handlePopperPlacementChange(t); 13474 } }, {}, this.config.popperConfig); 13475 }, t._getOffset = function () { 13476 var e = this, 13477 t = {};return "function" == typeof this.config.offset ? t.fn = function (t) { 13478 return t.offsets = l({}, t.offsets, {}, e.config.offset(t.offsets, e.element) || {}), t; 13479 } : t.offset = this.config.offset, t; 13480 }, t._getContainer = function () { 13481 return !1 === this.config.container ? document.body : _.isElement(this.config.container) ? g(this.config.container) : g(document).find(this.config.container); 13482 }, t._getAttachment = function (t) { 13483 return Re[t.toUpperCase()]; 13484 }, t._setListeners = function () { 13485 var i = this;this.config.trigger.split(" ").forEach(function (t) { 13486 if ("click" === t) g(i.element).on(i.constructor.Event.CLICK, i.config.selector, function (t) { 13487 return i.toggle(t); 13488 });else if (t !== ze) { 13489 var e = t === Be ? i.constructor.Event.MOUSEENTER : i.constructor.Event.FOCUSIN, 13490 n = t === Be ? i.constructor.Event.MOUSELEAVE : i.constructor.Event.FOCUSOUT;g(i.element).on(e, i.config.selector, function (t) { 13491 return i._enter(t); 13492 }).on(n, i.config.selector, function (t) { 13493 return i._leave(t); 13494 }); 13495 } 13496 }), this._hideModalHandler = function () { 13497 i.element && i.hide(); 13498 }, g(this.element).closest(".modal").on("hide.bs.modal", this._hideModalHandler), this.config.selector ? this.config = l({}, this.config, { trigger: "manual", selector: "" }) : this._fixTitle(); 13499 }, t._fixTitle = function () { 13500 var t = typeof 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", "")); 13501 }, t._enter = function (t, e) { 13502 var n = this.constructor.DATA_KEY;(e = e || g(t.currentTarget).data(n)) || (e = new this.constructor(t.currentTarget, this._getDelegateConfig()), g(t.currentTarget).data(n, e)), t && (e._activeTrigger["focusin" === t.type ? Ve : Be] = !0), g(e.getTipElement()).hasClass(Me) || e._hoverState === Fe ? e._hoverState = Fe : (clearTimeout(e._timeout), e._hoverState = Fe, e.config.delay && e.config.delay.show ? e._timeout = setTimeout(function () { 13503 e._hoverState === Fe && e.show(); 13504 }, e.config.delay.show) : e.show()); 13505 }, t._leave = function (t, e) { 13506 var n = this.constructor.DATA_KEY;(e = e || g(t.currentTarget).data(n)) || (e = new this.constructor(t.currentTarget, this._getDelegateConfig()), g(t.currentTarget).data(n, e)), t && (e._activeTrigger["focusout" === t.type ? Ve : Be] = !1), e._isWithActiveTrigger() || (clearTimeout(e._timeout), e._hoverState = Ue, e.config.delay && e.config.delay.hide ? e._timeout = setTimeout(function () { 13507 e._hoverState === Ue && e.hide(); 13508 }, e.config.delay.hide) : e.hide()); 13509 }, t._isWithActiveTrigger = function () { 13510 for (var t in this._activeTrigger) if (this._activeTrigger[t]) return !0;return !1; 13511 }, t._getConfig = function (t) { 13512 var e = g(this.element).data();return Object.keys(e).forEach(function (t) { 13513 -1 !== je.indexOf(t) && delete e[t]; 13514 }), "number" == typeof (t = l({}, this.constructor.Default, {}, e, {}, "object" == typeof t && t ? t : {})).delay && (t.delay = { show: t.delay, hide: t.delay }), "number" == typeof t.title && (t.title = t.title.toString()), "number" == typeof t.content && (t.content = t.content.toString()), _.typeCheckConfig(Ae, t, this.constructor.DefaultType), t.sanitize && (t.template = we(t.template, t.whiteList, t.sanitizeFn)), t; 13515 }, t._getDelegateConfig = function () { 13516 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; 13517 }, t._cleanTipClass = function () { 13518 var t = g(this.getTipElement()), 13519 e = t.attr("class").match(Le);null !== e && e.length && t.removeClass(e.join("")); 13520 }, t._handlePopperPlacementChange = function (t) { 13521 var e = t.instance;this.tip = e.popper, this._cleanTipClass(), this.addAttachmentClass(this._getAttachment(t.placement)); 13522 }, t._fixTransition = function () { 13523 var t = this.getTipElement(), 13524 e = this.config.animation;null === t.getAttribute("x-placement") && (g(t).removeClass(qe), this.config.animation = !1, this.hide(), this.show(), this.config.animation = e); 13525 }, i._jQueryInterface = function (n) { 13526 return this.each(function () { 13527 var t = g(this).data(Ne), 13528 e = "object" == typeof n && n;if ((t || !/dispose|hide/.test(n)) && (t || (t = new i(this, e), g(this).data(Ne, t)), "string" == typeof n)) { 13529 if ("undefined" == typeof t[n]) throw new TypeError('No method named "' + n + '"');t[n](); 13530 } 13531 }); 13532 }, s(i, null, [{ key: "VERSION", get: function () { 13533 return "4.4.1"; 13534 } }, { key: "Default", get: function () { 13535 return xe; 13536 } }, { key: "NAME", get: function () { 13537 return Ae; 13538 } }, { key: "DATA_KEY", get: function () { 13539 return Ne; 13540 } }, { key: "Event", get: function () { 13541 return We; 13542 } }, { key: "EVENT_KEY", get: function () { 13543 return Oe; 13544 } }, { key: "DefaultType", get: function () { 13545 return He; 13546 } }]), i; 13547 }();g.fn[Ae] = Xe._jQueryInterface, g.fn[Ae].Constructor = Xe, g.fn[Ae].noConflict = function () { 13548 return g.fn[Ae] = ke, Xe._jQueryInterface; 13549 };var $e = "popover", 13550 Ge = "bs.popover", 13551 Je = "." + Ge, 13552 Ze = g.fn[$e], 13553 tn = "bs-popover", 13554 en = new RegExp("(^|\\s)" + tn + "\\S+", "g"), 13555 nn = l({}, Xe.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>' }), 13556 on = l({}, Xe.DefaultType, { content: "(string|element|function)" }), 13557 rn = "fade", 13558 sn = "show", 13559 an = ".popover-header", 13560 ln = ".popover-body", 13561 cn = { HIDE: "hide" + Je, HIDDEN: "hidden" + Je, SHOW: "show" + Je, SHOWN: "shown" + Je, INSERTED: "inserted" + Je, CLICK: "click" + Je, FOCUSIN: "focusin" + Je, FOCUSOUT: "focusout" + Je, MOUSEENTER: "mouseenter" + Je, MOUSELEAVE: "mouseleave" + Je }, 13562 hn = function (t) { 13563 function i() { 13564 return t.apply(this, arguments) || this; 13565 }!function (t, e) { 13566 t.prototype = Object.create(e.prototype), (t.prototype.constructor = t).__proto__ = e; 13567 }(i, t);var e = i.prototype;return e.isWithContent = function () { 13568 return this.getTitle() || this._getContent(); 13569 }, e.addAttachmentClass = function (t) { 13570 g(this.getTipElement()).addClass(tn + "-" + t); 13571 }, e.getTipElement = function () { 13572 return this.tip = this.tip || g(this.config.template)[0], this.tip; 13573 }, e.setContent = function () { 13574 var t = g(this.getTipElement());this.setElementContent(t.find(an), this.getTitle());var e = this._getContent();"function" == typeof e && (e = e.call(this.element)), this.setElementContent(t.find(ln), e), t.removeClass(rn + " " + sn); 13575 }, e._getContent = function () { 13576 return this.element.getAttribute("data-content") || this.config.content; 13577 }, e._cleanTipClass = function () { 13578 var t = g(this.getTipElement()), 13579 e = t.attr("class").match(en);null !== e && 0 < e.length && t.removeClass(e.join("")); 13580 }, i._jQueryInterface = function (n) { 13581 return this.each(function () { 13582 var t = g(this).data(Ge), 13583 e = "object" == typeof n ? n : null;if ((t || !/dispose|hide/.test(n)) && (t || (t = new i(this, e), g(this).data(Ge, t)), "string" == typeof n)) { 13584 if ("undefined" == typeof t[n]) throw new TypeError('No method named "' + n + '"');t[n](); 13585 } 13586 }); 13587 }, s(i, null, [{ key: "VERSION", get: function () { 13588 return "4.4.1"; 13589 } }, { key: "Default", get: function () { 13590 return nn; 13591 } }, { key: "NAME", get: function () { 13592 return $e; 13593 } }, { key: "DATA_KEY", get: function () { 13594 return Ge; 13595 } }, { key: "Event", get: function () { 13596 return cn; 13597 } }, { key: "EVENT_KEY", get: function () { 13598 return Je; 13599 } }, { key: "DefaultType", get: function () { 13600 return on; 13601 } }]), i; 13602 }(Xe);g.fn[$e] = hn._jQueryInterface, g.fn[$e].Constructor = hn, g.fn[$e].noConflict = function () { 13603 return g.fn[$e] = Ze, hn._jQueryInterface; 13604 };var un = "scrollspy", 13605 fn = "bs.scrollspy", 13606 dn = "." + fn, 13607 gn = g.fn[un], 13608 _n = { offset: 10, method: "auto", target: "" }, 13609 mn = { offset: "number", method: "string", target: "(string|element)" }, 13610 pn = { ACTIVATE: "activate" + dn, SCROLL: "scroll" + dn, LOAD_DATA_API: "load" + dn + ".data-api" }, 13611 vn = "dropdown-item", 13612 yn = "active", 13613 En = '[data-spy="scroll"]', 13614 Cn = ".nav, .list-group", 13615 Tn = ".nav-link", 13616 bn = ".nav-item", 13617 Sn = ".list-group-item", 13618 Dn = ".dropdown", 13619 In = ".dropdown-item", 13620 wn = ".dropdown-toggle", 13621 An = "offset", 13622 Nn = "position", 13623 On = function () { 13624 function n(t, e) { 13625 var n = this;this._element = t, this._scrollElement = "BODY" === t.tagName ? window : t, this._config = this._getConfig(e), this._selector = this._config.target + " " + Tn + "," + this._config.target + " " + Sn + "," + this._config.target + " " + In, this._offsets = [], this._targets = [], this._activeTarget = null, this._scrollHeight = 0, g(this._scrollElement).on(pn.SCROLL, function (t) { 13626 return n._process(t); 13627 }), this.refresh(), this._process(); 13628 }var t = n.prototype;return t.refresh = function () { 13629 var e = this, 13630 t = this._scrollElement === this._scrollElement.window ? An : Nn, 13631 o = "auto" === this._config.method ? t : this._config.method, 13632 r = o === Nn ? this._getScrollTop() : 0;this._offsets = [], this._targets = [], this._scrollHeight = this._getScrollHeight(), [].slice.call(document.querySelectorAll(this._selector)).map(function (t) { 13633 var e, 13634 n = _.getSelectorFromElement(t);if (n && (e = document.querySelector(n)), e) { 13635 var i = e.getBoundingClientRect();if (i.width || i.height) return [g(e)[o]().top + r, n]; 13636 }return null; 13637 }).filter(function (t) { 13638 return t; 13639 }).sort(function (t, e) { 13640 return t[0] - e[0]; 13641 }).forEach(function (t) { 13642 e._offsets.push(t[0]), e._targets.push(t[1]); 13643 }); 13644 }, t.dispose = function () { 13645 g.removeData(this._element, fn), g(this._scrollElement).off(dn), this._element = null, this._scrollElement = null, this._config = null, this._selector = null, this._offsets = null, this._targets = null, this._activeTarget = null, this._scrollHeight = null; 13646 }, t._getConfig = function (t) { 13647 if ("string" != typeof (t = l({}, _n, {}, "object" == typeof t && t ? t : {})).target) { 13648 var e = g(t.target).attr("id");e || (e = _.getUID(un), g(t.target).attr("id", e)), t.target = "#" + e; 13649 }return _.typeCheckConfig(un, t, mn), t; 13650 }, t._getScrollTop = function () { 13651 return this._scrollElement === window ? this._scrollElement.pageYOffset : this._scrollElement.scrollTop; 13652 }, t._getScrollHeight = function () { 13653 return this._scrollElement.scrollHeight || Math.max(document.body.scrollHeight, document.documentElement.scrollHeight); 13654 }, t._getOffsetHeight = function () { 13655 return this._scrollElement === window ? window.innerHeight : this._scrollElement.getBoundingClientRect().height; 13656 }, t._process = function () { 13657 var t = this._getScrollTop() + this._config.offset, 13658 e = this._getScrollHeight(), 13659 n = this._config.offset + e - this._getOffsetHeight();if (this._scrollHeight !== e && this.refresh(), n <= t) { 13660 var i = this._targets[this._targets.length - 1];this._activeTarget !== i && this._activate(i); 13661 } else { 13662 if (this._activeTarget && t < this._offsets[0] && 0 < this._offsets[0]) return this._activeTarget = null, void this._clear();for (var o = this._offsets.length; o--;) { 13663 this._activeTarget !== this._targets[o] && t >= this._offsets[o] && ("undefined" == typeof this._offsets[o + 1] || t < this._offsets[o + 1]) && this._activate(this._targets[o]); 13664 } 13665 } 13666 }, t._activate = function (e) { 13667 this._activeTarget = e, this._clear();var t = this._selector.split(",").map(function (t) { 13668 return t + '[data-target="' + e + '"],' + t + '[href="' + e + '"]'; 13669 }), 13670 n = g([].slice.call(document.querySelectorAll(t.join(","))));n.hasClass(vn) ? (n.closest(Dn).find(wn).addClass(yn), n.addClass(yn)) : (n.addClass(yn), n.parents(Cn).prev(Tn + ", " + Sn).addClass(yn), n.parents(Cn).prev(bn).children(Tn).addClass(yn)), g(this._scrollElement).trigger(pn.ACTIVATE, { relatedTarget: e }); 13671 }, t._clear = function () { 13672 [].slice.call(document.querySelectorAll(this._selector)).filter(function (t) { 13673 return t.classList.contains(yn); 13674 }).forEach(function (t) { 13675 return t.classList.remove(yn); 13676 }); 13677 }, n._jQueryInterface = function (e) { 13678 return this.each(function () { 13679 var t = g(this).data(fn);if (t || (t = new n(this, "object" == typeof e && e), g(this).data(fn, t)), "string" == typeof e) { 13680 if ("undefined" == typeof t[e]) throw new TypeError('No method named "' + e + '"');t[e](); 13681 } 13682 }); 13683 }, s(n, null, [{ key: "VERSION", get: function () { 13684 return "4.4.1"; 13685 } }, { key: "Default", get: function () { 13686 return _n; 13687 } }]), n; 13688 }();g(window).on(pn.LOAD_DATA_API, function () { 13689 for (var t = [].slice.call(document.querySelectorAll(En)), e = t.length; e--;) { 13690 var n = g(t[e]);On._jQueryInterface.call(n, n.data()); 13691 } 13692 }), g.fn[un] = On._jQueryInterface, g.fn[un].Constructor = On, g.fn[un].noConflict = function () { 13693 return g.fn[un] = gn, On._jQueryInterface; 13694 };var kn = "bs.tab", 13695 Pn = "." + kn, 13696 Ln = g.fn.tab, 13697 jn = { HIDE: "hide" + Pn, HIDDEN: "hidden" + Pn, SHOW: "show" + Pn, SHOWN: "shown" + Pn, CLICK_DATA_API: "click" + Pn + ".data-api" }, 13698 Hn = "dropdown-menu", 13699 Rn = "active", 13700 xn = "disabled", 13701 Fn = "fade", 13702 Un = "show", 13703 Wn = ".dropdown", 13704 qn = ".nav, .list-group", 13705 Mn = ".active", 13706 Kn = "> li > .active", 13707 Qn = '[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]', 13708 Bn = ".dropdown-toggle", 13709 Vn = "> .dropdown-menu .active", 13710 Yn = function () { 13711 function i(t) { 13712 this._element = t; 13713 }var t = i.prototype;return t.show = function () { 13714 var n = this;if (!(this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE && g(this._element).hasClass(Rn) || g(this._element).hasClass(xn))) { 13715 var t, 13716 i, 13717 e = g(this._element).closest(qn)[0], 13718 o = _.getSelectorFromElement(this._element);if (e) { 13719 var r = "UL" === e.nodeName || "OL" === e.nodeName ? Kn : Mn;i = (i = g.makeArray(g(e).find(r)))[i.length - 1]; 13720 }var s = g.Event(jn.HIDE, { relatedTarget: this._element }), 13721 a = g.Event(jn.SHOW, { relatedTarget: i });if (i && g(i).trigger(s), g(this._element).trigger(a), !a.isDefaultPrevented() && !s.isDefaultPrevented()) { 13722 o && (t = document.querySelector(o)), this._activate(this._element, e);var l = function () { 13723 var t = g.Event(jn.HIDDEN, { relatedTarget: n._element }), 13724 e = g.Event(jn.SHOWN, { relatedTarget: i });g(i).trigger(t), g(n._element).trigger(e); 13725 };t ? this._activate(t, t.parentNode, l) : l(); 13726 } 13727 } 13728 }, t.dispose = function () { 13729 g.removeData(this._element, kn), this._element = null; 13730 }, t._activate = function (t, e, n) { 13731 function i() { 13732 return o._transitionComplete(t, r, n); 13733 }var o = this, 13734 r = (!e || "UL" !== e.nodeName && "OL" !== e.nodeName ? g(e).children(Mn) : g(e).find(Kn))[0], 13735 s = n && r && g(r).hasClass(Fn);if (r && s) { 13736 var a = _.getTransitionDurationFromElement(r);g(r).removeClass(Un).one(_.TRANSITION_END, i).emulateTransitionEnd(a); 13737 } else i(); 13738 }, t._transitionComplete = function (t, e, n) { 13739 if (e) { 13740 g(e).removeClass(Rn);var i = g(e.parentNode).find(Vn)[0];i && g(i).removeClass(Rn), "tab" === e.getAttribute("role") && e.setAttribute("aria-selected", !1); 13741 }if (g(t).addClass(Rn), "tab" === t.getAttribute("role") && t.setAttribute("aria-selected", !0), _.reflow(t), t.classList.contains(Fn) && t.classList.add(Un), t.parentNode && g(t.parentNode).hasClass(Hn)) { 13742 var o = g(t).closest(Wn)[0];if (o) { 13743 var r = [].slice.call(o.querySelectorAll(Bn));g(r).addClass(Rn); 13744 }t.setAttribute("aria-expanded", !0); 13745 }n && n(); 13746 }, i._jQueryInterface = function (n) { 13747 return this.each(function () { 13748 var t = g(this), 13749 e = t.data(kn);if (e || (e = new i(this), t.data(kn, e)), "string" == typeof n) { 13750 if ("undefined" == typeof e[n]) throw new TypeError('No method named "' + n + '"');e[n](); 13751 } 13752 }); 13753 }, s(i, null, [{ key: "VERSION", get: function () { 13754 return "4.4.1"; 13755 } }]), i; 13756 }();g(document).on(jn.CLICK_DATA_API, Qn, function (t) { 13757 t.preventDefault(), Yn._jQueryInterface.call(g(this), "show"); 13758 }), g.fn.tab = Yn._jQueryInterface, g.fn.tab.Constructor = Yn, g.fn.tab.noConflict = function () { 13759 return g.fn.tab = Ln, Yn._jQueryInterface; 13760 };var zn = "toast", 13761 Xn = "bs.toast", 13762 $n = "." + Xn, 13763 Gn = g.fn[zn], 13764 Jn = { CLICK_DISMISS: "click.dismiss" + $n, HIDE: "hide" + $n, HIDDEN: "hidden" + $n, SHOW: "show" + $n, SHOWN: "shown" + $n }, 13765 Zn = "fade", 13766 ti = "hide", 13767 ei = "show", 13768 ni = "showing", 13769 ii = { animation: "boolean", autohide: "boolean", delay: "number" }, 13770 oi = { animation: !0, autohide: !0, delay: 500 }, 13771 ri = '[data-dismiss="toast"]', 13772 si = function () { 13773 function i(t, e) { 13774 this._element = t, this._config = this._getConfig(e), this._timeout = null, this._setListeners(); 13775 }var t = i.prototype;return t.show = function () { 13776 var t = this, 13777 e = g.Event(Jn.SHOW);if (g(this._element).trigger(e), !e.isDefaultPrevented()) { 13778 this._config.animation && this._element.classList.add(Zn);var n = function () { 13779 t._element.classList.remove(ni), t._element.classList.add(ei), g(t._element).trigger(Jn.SHOWN), t._config.autohide && (t._timeout = setTimeout(function () { 13780 t.hide(); 13781 }, t._config.delay)); 13782 };if (this._element.classList.remove(ti), _.reflow(this._element), this._element.classList.add(ni), this._config.animation) { 13783 var i = _.getTransitionDurationFromElement(this._element);g(this._element).one(_.TRANSITION_END, n).emulateTransitionEnd(i); 13784 } else n(); 13785 } 13786 }, t.hide = function () { 13787 if (this._element.classList.contains(ei)) { 13788 var t = g.Event(Jn.HIDE);g(this._element).trigger(t), t.isDefaultPrevented() || this._close(); 13789 } 13790 }, t.dispose = function () { 13791 clearTimeout(this._timeout), this._timeout = null, this._element.classList.contains(ei) && this._element.classList.remove(ei), g(this._element).off(Jn.CLICK_DISMISS), g.removeData(this._element, Xn), this._element = null, this._config = null; 13792 }, t._getConfig = function (t) { 13793 return t = l({}, oi, {}, g(this._element).data(), {}, "object" == typeof t && t ? t : {}), _.typeCheckConfig(zn, t, this.constructor.DefaultType), t; 13794 }, t._setListeners = function () { 13795 var t = this;g(this._element).on(Jn.CLICK_DISMISS, ri, function () { 13796 return t.hide(); 13797 }); 13798 }, t._close = function () { 13799 function t() { 13800 e._element.classList.add(ti), g(e._element).trigger(Jn.HIDDEN); 13801 }var e = this;if (this._element.classList.remove(ei), this._config.animation) { 13802 var n = _.getTransitionDurationFromElement(this._element);g(this._element).one(_.TRANSITION_END, t).emulateTransitionEnd(n); 13803 } else t(); 13804 }, i._jQueryInterface = function (n) { 13805 return this.each(function () { 13806 var t = g(this), 13807 e = t.data(Xn);if (e || (e = new i(this, "object" == typeof n && n), t.data(Xn, e)), "string" == typeof n) { 13808 if ("undefined" == typeof e[n]) throw new TypeError('No method named "' + n + '"');e[n](this); 13809 } 13810 }); 13811 }, s(i, null, [{ key: "VERSION", get: function () { 13812 return "4.4.1"; 13813 } }, { key: "DefaultType", get: function () { 13814 return ii; 13815 } }, { key: "Default", get: function () { 13816 return oi; 13817 } }]), i; 13818 }();g.fn[zn] = si._jQueryInterface, g.fn[zn].Constructor = si, g.fn[zn].noConflict = function () { 13819 return g.fn[zn] = Gn, si._jQueryInterface; 13820 }, t.Alert = v, t.Button = H, t.Carousel = ut, t.Collapse = wt, t.Dropdown = ee, t.Modal = Te, t.Popover = hn, t.Scrollspy = On, t.Tab = Yn, t.Toast = si, t.Tooltip = Xe, t.Util = _, Object.defineProperty(t, "__esModule", { value: !0 }); 13821}); 13822//# sourceMappingURL=bootstrap.min.js.map 13823 13824/***/ }), 13825
vendor: 13,794 bytes, lines 13826-14253
13826/***/ "./node_modules/events/events.js": 13827/*!***************************************!*\ 13828 !*** ./node_modules/events/events.js ***! 13829 \***************************************/ 13830/*! no static exports found */ 13831/***/ (function(module, exports, __webpack_require__) { 13832 13833"use strict"; 13834// Copyright Joyent, Inc. and other Node contributors. 13835// 13836// Permission is hereby granted, free of charge, to any person obtaining a 13837// copy of this software and associated documentation files (the 13838// "Software"), to deal in the Software without restriction, including 13839// without limitation the rights to use, copy, modify, merge, publish, 13840// distribute, sublicense, and/or sell copies of the Software, and to permit 13841// persons to whom the Software is furnished to do so, subject to the 13842// following conditions: 13843// 13844// The above copyright notice and this permission notice shall be included 13845// in all copies or substantial portions of the Software. 13846// 13847// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 13848// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 13849// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN 13850// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, 13851// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 13852// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE 13853// USE OR OTHER DEALINGS IN THE SOFTWARE. 13854 13855 13856 13857var R = typeof Reflect === 'object' ? Reflect : null; 13858var ReflectApply = R && typeof R.apply === 'function' ? R.apply : function ReflectApply(target, receiver, args) { 13859 return Function.prototype.apply.call(target, receiver, args); 13860}; 13861 13862var ReflectOwnKeys; 13863if (R && typeof R.ownKeys === 'function') { 13864 ReflectOwnKeys = R.ownKeys; 13865} else if (Object.getOwnPropertySymbols) { 13866 ReflectOwnKeys = function ReflectOwnKeys(target) { 13867 return Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target)); 13868 }; 13869} else { 13870 ReflectOwnKeys = function ReflectOwnKeys(target) { 13871 return Object.getOwnPropertyNames(target); 13872 }; 13873} 13874 13875function ProcessEmitWarning(warning) { 13876 if (console && console.warn) console.warn(warning); 13877} 13878 13879var NumberIsNaN = Number.isNaN || function NumberIsNaN(value) { 13880 return value !== value; 13881}; 13882 13883function EventEmitter() { 13884 EventEmitter.init.call(this); 13885} 13886module.exports = EventEmitter; 13887 13888// Backwards-compat with node 0.10.x 13889EventEmitter.EventEmitter = EventEmitter; 13890 13891EventEmitter.prototype._events = undefined; 13892EventEmitter.prototype._eventsCount = 0; 13893EventEmitter.prototype._maxListeners = undefined; 13894 13895// By default EventEmitters will print a warning if more than 10 listeners are 13896// added to it. This is a useful default which helps finding memory leaks. 13897var defaultMaxListeners = 10; 13898 13899function checkListener(listener) { 13900 if (typeof listener !== 'function') { 13901 throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof listener); 13902 } 13903} 13904 13905Object.defineProperty(EventEmitter, 'defaultMaxListeners', { 13906 enumerable: true, 13907 get: function () { 13908 return defaultMaxListeners; 13909 }, 13910 set: function (arg) { 13911 if (typeof arg !== 'number' || arg < 0 || NumberIsNaN(arg)) { 13912 throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + arg + '.'); 13913 } 13914 defaultMaxListeners = arg; 13915 } 13916}); 13917 13918EventEmitter.init = function () { 13919 13920 if (this._events === undefined || this._events === Object.getPrototypeOf(this)._events) { 13921 this._events = Object.create(null); 13922 this._eventsCount = 0; 13923 } 13924 13925 this._maxListeners = this._maxListeners || undefined; 13926}; 13927 13928// Obviously not all Emitters should be limited to 10. This function allows 13929// that to be increased. Set to zero for unlimited. 13930EventEmitter.prototype.setMaxListeners = function setMaxListeners(n) { 13931 if (typeof n !== 'number' || n < 0 || NumberIsNaN(n)) { 13932 throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + n + '.'); 13933 } 13934 this._maxListeners = n; 13935 return this; 13936}; 13937 13938function _getMaxListeners(that) { 13939 if (that._maxListeners === undefined) return EventEmitter.defaultMaxListeners; 13940 return that._maxListeners; 13941} 13942 13943EventEmitter.prototype.getMaxListeners = function getMaxListeners() { 13944 return _getMaxListeners(this); 13945}; 13946 13947EventEmitter.prototype.emit = function emit(type) { 13948 var args = []; 13949 for (var i = 1; i < arguments.length; i++) args.push(arguments[i]); 13950 var doError = type === 'error'; 13951 13952 var events = this._events; 13953 if (events !== undefined) doError = doError && events.error === undefined;else if (!doError) return false; 13954 13955 // If there is no 'error' event listener then throw. 13956 if (doError) { 13957 var er; 13958 if (args.length > 0) er = args[0]; 13959 if (er instanceof Error) { 13960 // Note: The comments on the `throw` lines are intentional, they show 13961 // up in Node's output if this results in an unhandled exception. 13962 throw er; // Unhandled 'error' event 13963 } 13964 // At least give some kind of context to the user 13965 var err = new Error('Unhandled error.' + (er ? ' (' + er.message + ')' : '')); 13966 err.context = er; 13967 throw err; // Unhandled 'error' event 13968 } 13969 13970 var handler = events[type]; 13971 13972 if (handler === undefined) return false; 13973 13974 if (typeof handler === 'function') { 13975 ReflectApply(handler, this, args); 13976 } else { 13977 var len = handler.length; 13978 var listeners = arrayClone(handler, len); 13979 for (var i = 0; i < len; ++i) ReflectApply(listeners[i], this, args); 13980 } 13981 13982 return true; 13983}; 13984 13985function _addListener(target, type, listener, prepend) { 13986 var m; 13987 var events; 13988 var existing; 13989 13990 checkListener(listener); 13991 13992 events = target._events; 13993 if (events === undefined) { 13994 events = target._events = Object.create(null); 13995 target._eventsCount = 0; 13996 } else { 13997 // To avoid recursion in the case that type === "newListener"! Before 13998 // adding it to the listeners, first emit "newListener". 13999 if (events.newListener !== undefined) { 14000 target.emit('newListener', type, listener.listener ? listener.listener : listener); 14001 14002 // Re-assign `events` because a newListener handler could have caused the 14003 // this._events to be assigned to a new object 14004 events = target._events; 14005 } 14006 existing = events[type]; 14007 } 14008 14009 if (existing === undefined) { 14010 // Optimize the case of one listener. Don't need the extra array object. 14011 existing = events[type] = listener; 14012 ++target._eventsCount; 14013 } else { 14014 if (typeof existing === 'function') { 14015 // Adding the second element, need to change to array. 14016 existing = events[type] = prepend ? [listener, existing] : [existing, listener]; 14017 // If we've already got an array, just append. 14018 } else if (prepend) { 14019 existing.unshift(listener); 14020 } else { 14021 existing.push(listener); 14022 } 14023 14024 // Check for listener leak 14025 m = _getMaxListeners(target); 14026 if (m > 0 && existing.length > m && !existing.warned) { 14027 existing.warned = true; 14028 // No error code for this since it is a Warning 14029 // eslint-disable-next-line no-restricted-syntax 14030 var w = new Error('Possible EventEmitter memory leak detected. ' + existing.length + ' ' + String(type) + ' listeners ' + 'added. Use emitter.setMaxListeners() to ' + 'increase limit'); 14031 w.name = 'MaxListenersExceededWarning'; 14032 w.emitter = target; 14033 w.type = type; 14034 w.count = existing.length; 14035 ProcessEmitWarning(w); 14036 } 14037 } 14038 14039 return target; 14040} 14041 14042EventEmitter.prototype.addListener = function addListener(type, listener) { 14043 return _addListener(this, type, listener, false); 14044}; 14045 14046EventEmitter.prototype.on = EventEmitter.prototype.addListener; 14047 14048EventEmitter.prototype.prependListener = function prependListener(type, listener) { 14049 return _addListener(this, type, listener, true); 14050}; 14051 14052function onceWrapper() { 14053 if (!this.fired) { 14054 this.target.removeListener(this.type, this.wrapFn); 14055 this.fired = true; 14056 if (arguments.length === 0) return this.listener.call(this.target); 14057 return this.listener.apply(this.target, arguments); 14058 } 14059} 14060 14061function _onceWrap(target, type, listener) { 14062 var state = { fired: false, wrapFn: undefined, target: target, type: type, listener: listener }; 14063 var wrapped = onceWrapper.bind(state); 14064 wrapped.listener = listener; 14065 state.wrapFn = wrapped; 14066 return wrapped; 14067} 14068 14069EventEmitter.prototype.once = function once(type, listener) { 14070 checkListener(listener); 14071 this.on(type, _onceWrap(this, type, listener)); 14072 return this; 14073}; 14074 14075EventEmitter.prototype.prependOnceListener = function prependOnceListener(type, listener) { 14076 checkListener(listener); 14077 this.prependListener(type, _onceWrap(this, type, listener)); 14078 return this; 14079}; 14080 14081// Emits a 'removeListener' event if and only if the listener was removed. 14082EventEmitter.prototype.removeListener = function removeListener(type, listener) { 14083 var list, events, position, i, originalListener; 14084 14085 checkListener(listener); 14086 14087 events = this._events; 14088 if (events === undefined) return this; 14089 14090 list = events[type]; 14091 if (list === undefined) return this; 14092 14093 if (list === listener || list.listener === listener) { 14094 if (--this._eventsCount === 0) this._events = Object.create(null);else { 14095 delete events[type]; 14096 if (events.removeListener) this.emit('removeListener', type, list.listener || listener); 14097 } 14098 } else if (typeof list !== 'function') { 14099 position = -1; 14100 14101 for (i = list.length - 1; i >= 0; i--) { 14102 if (list[i] === listener || list[i].listener === listener) { 14103 originalListener = list[i].listener; 14104 position = i; 14105 break; 14106 } 14107 } 14108 14109 if (position < 0) return this; 14110 14111 if (position === 0) list.shift();else { 14112 spliceOne(list, position); 14113 } 14114 14115 if (list.length === 1) events[type] = list[0]; 14116 14117 if (events.removeListener !== undefined) this.emit('removeListener', type, originalListener || listener); 14118 } 14119 14120 return this; 14121}; 14122 14123EventEmitter.prototype.off = EventEmitter.prototype.removeListener; 14124 14125EventEmitter.prototype.removeAllListeners = function removeAllListeners(type) { 14126 var listeners, events, i; 14127 14128 events = this._events; 14129 if (events === undefined) return this; 14130 14131 // not listening for removeListener, no need to emit 14132 if (events.removeListener === undefined) { 14133 if (arguments.length === 0) { 14134 this._events = Object.create(null); 14135 this._eventsCount = 0; 14136 } else if (events[type] !== undefined) { 14137 if (--this._eventsCount === 0) this._events = Object.create(null);else delete events[type]; 14138 } 14139 return this; 14140 } 14141 14142 // emit removeListener for all listeners on all events 14143 if (arguments.length === 0) { 14144 var keys = Object.keys(events); 14145 var key; 14146 for (i = 0; i < keys.length; ++i) { 14147 key = keys[i]; 14148 if (key === 'removeListener') continue; 14149 this.removeAllListeners(key); 14150 } 14151 this.removeAllListeners('removeListener'); 14152 this._events = Object.create(null); 14153 this._eventsCount = 0; 14154 return this; 14155 } 14156 14157 listeners = events[type]; 14158 14159 if (typeof listeners === 'function') { 14160 this.removeListener(type, listeners); 14161 } else if (listeners !== undefined) { 14162 // LIFO order 14163 for (i = listeners.length - 1; i >= 0; i--) { 14164 this.removeListener(type, listeners[i]); 14165 } 14166 } 14167 14168 return this; 14169}; 14170 14171function _listeners(target, type, unwrap) { 14172 var events = target._events; 14173 14174 if (events === undefined) return []; 14175 14176 var evlistener = events[type]; 14177 if (evlistener === undefined) return []; 14178 14179 if (typeof evlistener === 'function') return unwrap ? [evlistener.listener || evlistener] : [evlistener]; 14180 14181 return unwrap ? unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length); 14182} 14183 14184EventEmitter.prototype.listeners = function listeners(type) { 14185 return _listeners(this, type, true); 14186}; 14187 14188EventEmitter.prototype.rawListeners = function rawListeners(type) { 14189 return _listeners(this, type, false); 14190}; 14191 14192EventEmitter.listenerCount = function (emitter, type) { 14193 if (typeof emitter.listenerCount === 'function') { 14194 return emitter.listenerCount(type); 14195 } else { 14196 return listenerCount.call(emitter, type); 14197 } 14198}; 14199 14200EventEmitter.prototype.listenerCount = listenerCount; 14201function listenerCount(type) { 14202 var events = this._events; 14203 14204 if (events !== undefined) { 14205 var evlistener = events[type]; 14206 14207 if (typeof evlistener === 'function') { 14208 return 1; 14209 } else if (evlistener !== undefined) { 14210 return evlistener.length; 14211 } 14212 } 14213 14214 return 0; 14215} 14216 14217EventEmitter.prototype.eventNames = function eventNames() { 14218 return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : []; 14219}; 14220 14221function arrayClone(arr, n) { 14222 var copy = new Array(n); 14223 for (var i = 0; i < n; ++i) copy[i] = arr[i]; 14224 return copy; 14225} 14226 14227function spliceOne(list, index) { 14228 for (; index + 1 < list.length; index++) list[index] = list[index + 1]; 14229 list.pop(); 14230} 14231 14232function unwrapListeners(arr) { 14233 var ret = new Array(arr.length); 14234 for (var i = 0; i < ret.length; ++i) { 14235 ret[i] = arr[i].listener || arr[i]; 14236 } 14237 return ret; 14238} 14239 14240/***/ }), 14241 14242/***/ "./node_modules/expose-loader/index.js?Tether!./node_modules/tether/dist/js/tether.js-exposed": 14243/*!*******************************************************************************************!*\ 14244 !*** ./node_modules/expose-loader?Tether!./node_modules/tether/dist/js/tether.js-exposed ***! 14245 \*******************************************************************************************/ 14246/*! no static exports found */ 14247/***/ (function(module, exports, __webpack_require__) { 14248 14249/* WEBPACK VAR INJECTION */(function(global) {module.exports = global["Tether"] = __webpack_require__(/*! -!./node_modules/babel-loader/lib!./tether.js */ "./node_modules/babel-loader/lib/index.js!./node_modules/tether/dist/js/tether.js"); 14250/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js"))) 14251 14252/***/ }), 14253
vendor: 19,464 bytes, lines 14254-14444
14254/***/ "./node_modules/flexibility/flexibility.js": 14255/*!*************************************************!*\ 14256 !*** ./node_modules/flexibility/flexibility.js ***! 14257 \*************************************************/ 14258/*! no static exports found */ 14259/***/ (function(module, exports, __webpack_require__) { 14260 14261var require;var require;!function (e) { 14262 if (true) module.exports = e();else { var t; } 14263}(function () { 14264 return function e(t, r, l) { 14265 function n(f, i) { 14266 if (!r[f]) { 14267 if (!t[f]) { 14268 var s = "function" == typeof require && require;if (!i && s) return require(f, !0);if (o) return o(f, !0);var a = new Error("Cannot find module '" + f + "'");throw a.code = "MODULE_NOT_FOUND", a; 14269 }var c = r[f] = { exports: {} };t[f][0].call(c.exports, function (e) { 14270 var r = t[f][1][e];return n(r ? r : e); 14271 }, c, c.exports, e, t, r, l); 14272 }return r[f].exports; 14273 }for (var o = "function" == typeof require && require, f = 0; f < l.length; f++) n(l[f]);return n; 14274 }({ 1: [function (e, t, r) { 14275 t.exports = function (e) { 14276 var t, 14277 r, 14278 l, 14279 n = -1;if (e.lines.length > 1 && "flex-start" === e.style.alignContent) for (t = 0; l = e.lines[++n];) l.crossStart = t, t += l.cross;else if (e.lines.length > 1 && "flex-end" === e.style.alignContent) for (t = e.flexStyle.crossSpace; l = e.lines[++n];) l.crossStart = t, t += l.cross;else if (e.lines.length > 1 && "center" === e.style.alignContent) for (t = e.flexStyle.crossSpace / 2; l = e.lines[++n];) l.crossStart = t, t += l.cross;else if (e.lines.length > 1 && "space-between" === e.style.alignContent) for (r = e.flexStyle.crossSpace / (e.lines.length - 1), t = 0; l = e.lines[++n];) l.crossStart = t, t += l.cross + r;else if (e.lines.length > 1 && "space-around" === e.style.alignContent) for (r = 2 * e.flexStyle.crossSpace / (2 * e.lines.length), t = r / 2; l = e.lines[++n];) l.crossStart = t, t += l.cross + r;else for (r = e.flexStyle.crossSpace / e.lines.length, t = e.flexStyle.crossInnerBefore; l = e.lines[++n];) l.crossStart = t, l.cross += r, t += l.cross; 14280 }; 14281 }, {}], 2: [function (e, t, r) { 14282 t.exports = function (e) { 14283 for (var t, r = -1; line = e.lines[++r];) for (t = -1; child = line.children[++t];) { 14284 var l = child.style.alignSelf;"auto" === l && (l = e.style.alignItems), "flex-start" === l ? child.flexStyle.crossStart = line.crossStart : "flex-end" === l ? child.flexStyle.crossStart = line.crossStart + line.cross - child.flexStyle.crossOuter : "center" === l ? 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); 14285 } 14286 }; 14287 }, {}], 3: [function (e, t, r) { 14288 t.exports = function l(e, l) { 14289 var t = "row" === l || "row-reverse" === l, 14290 r = e.mainAxis;if (r) { 14291 var n = t && "inline" === r || !t && "block" === r;n || (e.flexStyle = { main: e.flexStyle.cross, cross: e.flexStyle.main, mainOffset: e.flexStyle.crossOffset, crossOffset: e.flexStyle.mainOffset, mainBefore: e.flexStyle.crossBefore, mainAfter: e.flexStyle.crossAfter, crossBefore: e.flexStyle.mainBefore, crossAfter: e.flexStyle.mainAfter, mainInnerBefore: e.flexStyle.crossInnerBefore, mainInnerAfter: e.flexStyle.crossInnerAfter, crossInnerBefore: e.flexStyle.mainInnerBefore, crossInnerAfter: e.flexStyle.mainInnerAfter, mainBorderBefore: e.flexStyle.crossBorderBefore, mainBorderAfter: e.flexStyle.crossBorderAfter, crossBorderBefore: e.flexStyle.mainBorderBefore, crossBorderAfter: e.flexStyle.mainBorderAfter }); 14292 } else t ? e.flexStyle = { main: e.style.width, cross: e.style.height, mainOffset: e.style.offsetWidth, crossOffset: e.style.offsetHeight, mainBefore: e.style.marginLeft, mainAfter: e.style.marginRight, crossBefore: e.style.marginTop, crossAfter: e.style.marginBottom, mainInnerBefore: e.style.paddingLeft, mainInnerAfter: e.style.paddingRight, crossInnerBefore: e.style.paddingTop, crossInnerAfter: e.style.paddingBottom, mainBorderBefore: e.style.borderLeftWidth, mainBorderAfter: e.style.borderRightWidth, crossBorderBefore: e.style.borderTopWidth, crossBorderAfter: e.style.borderBottomWidth } : e.flexStyle = { main: e.style.height, cross: e.style.width, mainOffset: e.style.offsetHeight, crossOffset: e.style.offsetWidth, mainBefore: e.style.marginTop, mainAfter: e.style.marginBottom, crossBefore: e.style.marginLeft, crossAfter: e.style.marginRight, mainInnerBefore: e.style.paddingTop, mainInnerAfter: e.style.paddingBottom, crossInnerBefore: e.style.paddingLeft, crossInnerAfter: e.style.paddingRight, mainBorderBefore: e.style.borderTopWidth, mainBorderAfter: e.style.borderBottomWidth, crossBorderBefore: e.style.borderLeftWidth, crossBorderAfter: e.style.borderRightWidth }, "content-box" === e.style.boxSizing && ("number" == typeof e.flexStyle.main && (e.flexStyle.main += e.flexStyle.mainInnerBefore + e.flexStyle.mainInnerAfter + e.flexStyle.mainBorderBefore + e.flexStyle.mainBorderAfter), "number" == typeof e.flexStyle.cross && (e.flexStyle.cross += e.flexStyle.crossInnerBefore + e.flexStyle.crossInnerAfter + e.flexStyle.crossBorderBefore + e.flexStyle.crossBorderAfter));e.mainAxis = t ? "inline" : "block", e.crossAxis = t ? "block" : "inline", "number" == typeof e.style.flexBasis && (e.flexStyle.main = e.style.flexBasis + e.flexStyle.mainInnerBefore + e.flexStyle.mainInnerAfter + e.flexStyle.mainBorderBefore + e.flexStyle.mainBorderAfter), e.flexStyle.mainOuter = e.flexStyle.main, e.flexStyle.crossOuter = e.flexStyle.cross, "auto" === e.flexStyle.mainOuter && (e.flexStyle.mainOuter = e.flexStyle.mainOffset), "auto" === e.flexStyle.crossOuter && (e.flexStyle.crossOuter = e.flexStyle.crossOffset), "number" == typeof e.flexStyle.mainBefore && (e.flexStyle.mainOuter += e.flexStyle.mainBefore), "number" == typeof e.flexStyle.mainAfter && (e.flexStyle.mainOuter += e.flexStyle.mainAfter), "number" == typeof e.flexStyle.crossBefore && (e.flexStyle.crossOuter += e.flexStyle.crossBefore), "number" == typeof e.flexStyle.crossAfter && (e.flexStyle.crossOuter += e.flexStyle.crossAfter); 14293 }; 14294 }, {}], 4: [function (e, t, r) { 14295 var l = e("../reduce");t.exports = function (e) { 14296 if (e.mainSpace > 0) { 14297 var t = l(e.children, function (e, t) { 14298 return e + parseFloat(t.style.flexGrow); 14299 }, 0);t > 0 && (e.main = l(e.children, function (r, l) { 14300 return "auto" === l.flexStyle.main ? l.flexStyle.main = l.flexStyle.mainOffset + parseFloat(l.style.flexGrow) / t * e.mainSpace : l.flexStyle.main += parseFloat(l.style.flexGrow) / t * e.mainSpace, l.flexStyle.mainOuter = l.flexStyle.main + l.flexStyle.mainBefore + l.flexStyle.mainAfter, r + l.flexStyle.mainOuter; 14301 }, 0), e.mainSpace = 0); 14302 } 14303 }; 14304 }, { "../reduce": 12 }], 5: [function (e, t, r) { 14305 var l = e("../reduce");t.exports = function (e) { 14306 if (e.mainSpace < 0) { 14307 var t = l(e.children, function (e, t) { 14308 return e + parseFloat(t.style.flexShrink); 14309 }, 0);t > 0 && (e.main = l(e.children, function (r, l) { 14310 return l.flexStyle.main += parseFloat(l.style.flexShrink) / t * e.mainSpace, l.flexStyle.mainOuter = l.flexStyle.main + l.flexStyle.mainBefore + l.flexStyle.mainAfter, r + l.flexStyle.mainOuter; 14311 }, 0), e.mainSpace = 0); 14312 } 14313 }; 14314 }, { "../reduce": 12 }], 6: [function (e, t, r) { 14315 var l = e("../reduce");t.exports = function (e) { 14316 var t;e.lines = [t = { main: 0, cross: 0, children: [] }];for (var r, n = -1; r = e.children[++n];) "nowrap" === e.style.flexWrap || 0 === t.children.length || "auto" === e.flexStyle.main || e.flexStyle.main - e.flexStyle.mainInnerBefore - e.flexStyle.mainInnerAfter - e.flexStyle.mainBorderBefore - e.flexStyle.mainBorderAfter >= t.main + r.flexStyle.mainOuter ? (t.main += r.flexStyle.mainOuter, t.cross = Math.max(t.cross, r.flexStyle.crossOuter)) : e.lines.push(t = { main: r.flexStyle.mainOuter, cross: r.flexStyle.crossOuter, children: [] }), t.children.push(r);e.flexStyle.mainLines = l(e.lines, function (e, t) { 14317 return Math.max(e, t.main); 14318 }, 0), e.flexStyle.crossLines = l(e.lines, function (e, t) { 14319 return e + t.cross; 14320 }, 0), "auto" === e.flexStyle.main && (e.flexStyle.main = Math.max(e.flexStyle.mainOffset, e.flexStyle.mainLines + e.flexStyle.mainInnerBefore + e.flexStyle.mainInnerAfter + e.flexStyle.mainBorderBefore + e.flexStyle.mainBorderAfter)), "auto" === e.flexStyle.cross && (e.flexStyle.cross = Math.max(e.flexStyle.crossOffset, e.flexStyle.crossLines + e.flexStyle.crossInnerBefore + e.flexStyle.crossInnerAfter + e.flexStyle.crossBorderBefore + e.flexStyle.crossBorderAfter)), e.flexStyle.crossSpace = e.flexStyle.cross - e.flexStyle.crossInnerBefore - e.flexStyle.crossInnerAfter - e.flexStyle.crossBorderBefore - e.flexStyle.crossBorderAfter - e.flexStyle.crossLines, e.flexStyle.mainOuter = e.flexStyle.main + e.flexStyle.mainBefore + e.flexStyle.mainAfter, e.flexStyle.crossOuter = e.flexStyle.cross + e.flexStyle.crossBefore + e.flexStyle.crossAfter; 14321 }; 14322 }, { "../reduce": 12 }], 7: [function (e, t, r) { 14323 function l(t) { 14324 for (var r, l = -1; r = t.children[++l];) e("./flex-direction")(r, t.style.flexDirection);e("./flex-direction")(t, t.style.flexDirection), e("./order")(t), e("./flexbox-lines")(t), e("./align-content")(t), l = -1;for (var n; n = t.lines[++l];) n.mainSpace = t.flexStyle.main - t.flexStyle.mainInnerBefore - t.flexStyle.mainInnerAfter - t.flexStyle.mainBorderBefore - t.flexStyle.mainBorderAfter - n.main, e("./flex-grow")(n), e("./flex-shrink")(n), e("./margin-main")(n), e("./margin-cross")(n), e("./justify-content")(n, t.style.justifyContent, t);e("./align-items")(t); 14325 }t.exports = l; 14326 }, { "./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 (e, t, r) { 14327 t.exports = function (e, t, r) { 14328 var l, 14329 n, 14330 o, 14331 f = r.flexStyle.mainInnerBefore, 14332 i = -1;if ("flex-end" === t) for (l = e.mainSpace, l += f; o = e.children[++i];) o.flexStyle.mainStart = l, l += o.flexStyle.mainOuter;else if ("center" === t) for (l = e.mainSpace / 2, l += f; o = e.children[++i];) o.flexStyle.mainStart = l, l += o.flexStyle.mainOuter;else if ("space-between" === t) for (n = e.mainSpace / (e.children.length - 1), l = 0, l += f; o = e.children[++i];) o.flexStyle.mainStart = l, l += o.flexStyle.mainOuter + n;else if ("space-around" === t) for (n = 2 * e.mainSpace / (2 * e.children.length), l = n / 2, l += f; o = e.children[++i];) o.flexStyle.mainStart = l, l += o.flexStyle.mainOuter + n;else for (l = 0, l += f; o = e.children[++i];) o.flexStyle.mainStart = l, l += o.flexStyle.mainOuter; 14333 }; 14334 }, {}], 9: [function (e, t, r) { 14335 t.exports = function (e) { 14336 for (var t, r = -1; t = e.children[++r];) { 14337 var l = 0;"auto" === t.flexStyle.crossBefore && ++l, "auto" === t.flexStyle.crossAfter && ++l;var n = e.cross - t.flexStyle.crossOuter;"auto" === t.flexStyle.crossBefore && (t.flexStyle.crossBefore = n / l), "auto" === t.flexStyle.crossAfter && (t.flexStyle.crossAfter = n / l), "auto" === t.flexStyle.cross ? t.flexStyle.crossOuter = t.flexStyle.crossOffset + t.flexStyle.crossBefore + t.flexStyle.crossAfter : t.flexStyle.crossOuter = t.flexStyle.cross + t.flexStyle.crossBefore + t.flexStyle.crossAfter; 14338 } 14339 }; 14340 }, {}], 10: [function (e, t, r) { 14341 t.exports = function (e) { 14342 for (var t, r = 0, l = -1; t = e.children[++l];) "auto" === t.flexStyle.mainBefore && ++r, "auto" === t.flexStyle.mainAfter && ++r;if (r > 0) { 14343 for (l = -1; t = e.children[++l];) "auto" === t.flexStyle.mainBefore && (t.flexStyle.mainBefore = e.mainSpace / r), "auto" === t.flexStyle.mainAfter && (t.flexStyle.mainAfter = e.mainSpace / r), "auto" === t.flexStyle.main ? t.flexStyle.mainOuter = t.flexStyle.mainOffset + t.flexStyle.mainBefore + t.flexStyle.mainAfter : t.flexStyle.mainOuter = t.flexStyle.main + t.flexStyle.mainBefore + t.flexStyle.mainAfter;e.mainSpace = 0; 14344 } 14345 }; 14346 }, {}], 11: [function (e, t, r) { 14347 var l = /^(column|row)-reverse$/;t.exports = function (e) { 14348 e.children.sort(function (e, t) { 14349 return e.style.order - t.style.order || e.index - t.index; 14350 }), l.test(e.style.flexDirection) && e.children.reverse(); 14351 }; 14352 }, {}], 12: [function (e, t, r) { 14353 function l(e, t, r) { 14354 for (var l = e.length, n = -1; ++n < l;) n in e && (r = t(r, e[n], n));return r; 14355 }t.exports = l; 14356 }, {}], 13: [function (e, t, r) { 14357 function l(e) { 14358 i(f(e)); 14359 }var n = e("./read"), 14360 o = e("./write"), 14361 f = e("./readAll"), 14362 i = e("./writeAll");t.exports = l, t.exports.read = n, t.exports.write = o, t.exports.readAll = f, t.exports.writeAll = i; 14363 }, { "./read": 15, "./readAll": 16, "./write": 17, "./writeAll": 18 }], 14: [function (e, t, r) { 14364 function l(e, t, r) { 14365 var l = e[t], 14366 f = String(l).match(o);if (!f) { 14367 var a = t.match(s);if (a) { 14368 var c = e["border" + a[1] + "Style"];return "none" === c ? 0 : i[l] || 0; 14369 }return l; 14370 }var y = f[1], 14371 x = f[2];return "px" === x ? 1 * y : "cm" === x ? .3937 * y * 96 : "in" === x ? 96 * y : "mm" === x ? .3937 * y * 96 / 10 : "pc" === x ? 12 * y * 96 / 72 : "pt" === x ? 96 * y / 72 : "rem" === x ? 16 * y : n(l, r); 14372 }function n(e, t) { 14373 f.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:" + e + "!important", t.parentNode.insertBefore(f, t.nextSibling);var r = f.offsetWidth;return t.parentNode.removeChild(f), r; 14374 }t.exports = l;var o = /^([-+]?\d*\.?\d+)(%|[a-z]+)$/, 14375 f = document.createElement("div"), 14376 i = { medium: 4, none: 0, thick: 6, thin: 2 }, 14377 s = /^border(Bottom|Left|Right|Top)Width$/; 14378 }, {}], 15: [function (e, t, r) { 14379 function l(e) { 14380 var t = { 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" }, 14381 r = e instanceof Element;if (r) { 14382 var l = e.hasAttribute("data-style"), 14383 i = l ? e.getAttribute("data-style") : e.getAttribute("style") || "";l || e.setAttribute("data-style", i);var s = window.getComputedStyle && getComputedStyle(e) || {};f(t, s);var c = e.currentStyle || {};n(t, c), o(t, i);for (var y in t) t[y] = a(t, y, e);var x = e.getBoundingClientRect();t.offsetHeight = x.height || e.offsetHeight, t.offsetWidth = x.width || e.offsetWidth; 14384 }var S = { element: e, style: t };return S; 14385 }function n(e, t) { 14386 for (var r in e) { 14387 var l = r in t;if (l) e[r] = t[r];else { 14388 var n = r.replace(/[A-Z]/g, "-$&").toLowerCase(), 14389 o = n in t;o && (e[r] = t[n]); 14390 } 14391 }var f = "-js-display" in t;f && (e.display = t["-js-display"]); 14392 }function o(e, t) { 14393 for (var r; r = i.exec(t);) { 14394 var l = r[1].toLowerCase().replace(/-[a-z]/g, function (e) { 14395 return e.slice(1).toUpperCase(); 14396 });e[l] = r[2]; 14397 } 14398 }function f(e, t) { 14399 for (var r in e) { 14400 var l = r in t;l && !s.test(r) && (e[r] = t[r]); 14401 } 14402 }t.exports = l;var i = /([^\s:;]+)\s*:\s*([^;]+?)\s*(;|$)/g, 14403 s = /^(alignSelf|height|width)$/, 14404 a = e("./getComputedLength"); 14405 }, { "./getComputedLength": 14 }], 16: [function (e, t, r) { 14406 function l(e) { 14407 var t = [];return n(e, t), t; 14408 }function n(e, t) { 14409 for (var r, l = o(e), i = [], s = -1; r = e.childNodes[++s];) { 14410 var a = 3 === r.nodeType && !/^\s*$/.test(r.nodeValue);if (l && a) { 14411 var c = r;r = e.insertBefore(document.createElement("flex-item"), c), r.appendChild(c); 14412 }var y = r instanceof Element;if (y) { 14413 var x = n(r, t);if (l) { 14414 var S = r.style;S.display = "inline-block", S.position = "absolute", x.style = f(r).style, i.push(x); 14415 } 14416 } 14417 }var m = { element: e, children: i };return l && (m.style = f(e).style, t.push(m)), m; 14418 }function o(e) { 14419 var t = e instanceof Element, 14420 r = t && e.getAttribute("data-style"), 14421 l = t && e.currentStyle && e.currentStyle["-js-display"], 14422 n = i.test(r) || s.test(l);return n; 14423 }t.exports = l;var f = e("../read"), 14424 i = /(^|;)\s*display\s*:\s*(inline-)?flex\s*(;|$)/i, 14425 s = /^(inline-)?flex$/i; 14426 }, { "../read": 15 }], 17: [function (e, t, r) { 14427 function l(e) { 14428 o(e);var t = e.element.style, 14429 r = "inline" === e.mainAxis ? ["main", "cross"] : ["cross", "main"];t.boxSizing = "content-box", t.display = "block", t.position = "relative", t.width = n(e.flexStyle[r[0]] - e.flexStyle[r[0] + "InnerBefore"] - e.flexStyle[r[0] + "InnerAfter"] - e.flexStyle[r[0] + "BorderBefore"] - e.flexStyle[r[0] + "BorderAfter"]), t.height = n(e.flexStyle[r[1]] - e.flexStyle[r[1] + "InnerBefore"] - e.flexStyle[r[1] + "InnerAfter"] - e.flexStyle[r[1] + "BorderBefore"] - e.flexStyle[r[1] + "BorderAfter"]);for (var l, f = -1; l = e.children[++f];) { 14430 var i = l.element.style, 14431 s = "inline" === l.mainAxis ? ["main", "cross"] : ["cross", "main"];i.boxSizing = "content-box", i.display = "block", i.position = "absolute", "auto" !== l.flexStyle[s[0]] && (i.width = n(l.flexStyle[s[0]] - l.flexStyle[s[0] + "InnerBefore"] - l.flexStyle[s[0] + "InnerAfter"] - l.flexStyle[s[0] + "BorderBefore"] - l.flexStyle[s[0] + "BorderAfter"])), "auto" !== l.flexStyle[s[1]] && (i.height = n(l.flexStyle[s[1]] - l.flexStyle[s[1] + "InnerBefore"] - l.flexStyle[s[1] + "InnerAfter"] - l.flexStyle[s[1] + "BorderBefore"] - l.flexStyle[s[1] + "BorderAfter"])), i.top = n(l.flexStyle[s[1] + "Start"]), i.left = n(l.flexStyle[s[0] + "Start"]), i.marginTop = n(l.flexStyle[s[1] + "Before"]), i.marginRight = n(l.flexStyle[s[0] + "After"]), i.marginBottom = n(l.flexStyle[s[1] + "After"]), i.marginLeft = n(l.flexStyle[s[0] + "Before"]); 14432 } 14433 }function n(e) { 14434 return "string" == typeof e ? e : Math.max(e, 0) + "px"; 14435 }t.exports = l;var o = e("../flexbox"); 14436 }, { "../flexbox": 7 }], 18: [function (e, t, r) { 14437 function l(e) { 14438 for (var t, r = -1; t = e[++r];) n(t); 14439 }t.exports = l;var n = e("../write"); 14440 }, { "../write": 17 }] }, {}, [13])(13); 14441}); 14442 14443/***/ }), 14444
vendor: 11,458 bytes, lines 14445-14635
14445/***/ "./node_modules/jquery.uniform/dist/js/jquery.uniform.standalone.js": 14446/*!**************************************************************************!*\ 14447 !*** ./node_modules/jquery.uniform/dist/js/jquery.uniform.standalone.js ***! 14448 \**************************************************************************/ 14449/*! no static exports found */ 14450/***/ (function(module, exports) { 14451 14452!function (e, t, n) { 14453 "use strict"; 14454 function s(e) { 14455 var t = Array.prototype.slice.call(arguments, 1);return e.prop ? e.prop.apply(e, t) : e.attr.apply(e, t); 14456 }function a(e, t, n) { 14457 var s, a;for (s in n) n.hasOwnProperty(s) && (a = s.replace(/ |$/g, t.eventNamespace), e.bind(a, n[s])); 14458 }function i(e, t, n) { 14459 a(e, n, { focus: function () { 14460 t.addClass(n.focusClass); 14461 }, blur: function () { 14462 t.removeClass(n.focusClass), t.removeClass(n.activeClass); 14463 }, mouseenter: function () { 14464 t.addClass(n.hoverClass); 14465 }, mouseleave: function () { 14466 t.removeClass(n.hoverClass), t.removeClass(n.activeClass); 14467 }, "mousedown touchbegin": function () { 14468 e.is(":disabled") || t.addClass(n.activeClass); 14469 }, "mouseup touchend": function () { 14470 t.removeClass(n.activeClass); 14471 } }); 14472 }function r(e, t) { 14473 e.removeClass(t.hoverClass + " " + t.focusClass + " " + t.activeClass); 14474 }function l(e, t, n) { 14475 n ? e.addClass(t) : e.removeClass(t); 14476 }function u(e, t, n) { 14477 setTimeout(function () { 14478 var s = "checked", 14479 a = t.is(":" + s);t.attr("readonly") || (t.prop ? t.prop(s, a) : a ? t.attr(s, s) : t.removeAttr(s)), l(e, n.checkedClass, a); 14480 }, 1); 14481 }function o(e, t, n) { 14482 l(e, n.disabledClass, t.is(":disabled")); 14483 }function c(e, t, n) { 14484 switch (n) {case "after": 14485 return e.after(t), e.next();case "before": 14486 return e.before(t), e.prev();case "wrap": 14487 return e.wrap(t), e.parent();}return null; 14488 }function d(e, n, a) { 14489 var i, r, l;return a || (a = {}), a = t.extend({ bind: {}, divClass: null, divWrap: "wrap", spanClass: null, spanHtml: null, spanWrap: "wrap" }, a), i = t("<div />"), r = t("<span />"), n.autoHide && e.is(":hidden") && "none" === e.css("display") && i.hide(), a.divClass && i.addClass(a.divClass), n.wrapperClass && i.addClass(n.wrapperClass), a.spanClass && r.addClass(a.spanClass), l = s(e, "id"), n.useID && l && s(i, "id", n.idPrefix + "-" + l), a.spanHtml && r.html(a.spanHtml), i = c(e, i, a.divWrap), r = c(e, r, a.spanWrap), o(i, e, n), { div: i, span: r }; 14490 }function f(e, n) { 14491 var s;return n.wrapperClass ? (s = t("<span />").addClass(n.wrapperClass), s = c(e, s, "wrap")) : null; 14492 }function p() { 14493 var n, s, a, i;return i = "rgb(120,2,153)", s = t('<div style="width:0;height:0;color:' + i + '">'), t("body").append(s), a = s.get(0), n = e.getComputedStyle ? e.getComputedStyle(a, "").color : (a.currentStyle || a.style || {}).color, s.remove(), n.replace(/ /g, "") !== i; 14494 }function m(e) { 14495 return e ? t("<span />").text(e).html() : ""; 14496 }function v() { 14497 return navigator.cpuClass && !navigator.product; 14498 }function h() { 14499 return void 0 !== e.XMLHttpRequest; 14500 }function C(e) { 14501 var t;return !!e[0].multiple || (t = s(e, "size"), !(!t || t <= 1)); 14502 }function b() { 14503 return !1; 14504 }function y(e, t) { 14505 var n = "none";a(e, t, { "selectstart dragstart mousedown": b }), e.css({ MozUserSelect: n, msUserSelect: n, webkitUserSelect: n, userSelect: n }); 14506 }function w(e, n, s) { 14507 var a = t.map(e[0].files, function (e) { 14508 return e.name; 14509 }).join(", ");"" === a ? a = s.fileDefaultHtml : (a = a.split(/[\/\\]+/), a = a[a.length - 1]), n.text(a); 14510 }function g(e, t, n) { 14511 var s, a;for (s = [], e.each(function () { 14512 var e;for (e in t) Object.prototype.hasOwnProperty.call(t, e) && (s.push({ el: this, name: e, old: this.style[e] }), this.style[e] = t[e]); 14513 }), n(); s.length;) a = s.pop(), a.el.style[a.name] = a.old; 14514 }function k(e, t) { 14515 var n;n = e.parents(), n.push(e[0]), n = n.not(":visible"), g(n, { visibility: "hidden", display: "block", position: "absolute" }, t); 14516 }function H(e, t) { 14517 return function () { 14518 e.unwrap().unwrap().unbind(t.eventNamespace); 14519 }; 14520 }var x = !0, 14521 A = !1, 14522 W = [{ match: function (e) { 14523 return e.is("a, button, :submit, :reset, input[type='button']"); 14524 }, apply: function (t, n) { 14525 var l, u, c, f, p;return u = n.submitDefaultHtml, t.is(":reset") && (u = n.resetDefaultHtml), f = t.is("a, button") ? function () { 14526 return t.html() || u; 14527 } : function () { 14528 return m(s(t, "value")) || u; 14529 }, c = d(t, n, { divClass: n.buttonClass, spanHtml: f() }), l = c.div, i(t, l, n), p = !1, a(l, n, { "click touchend": function () { 14530 var n, a, i, r;return !p && !t.is(":disabled") && (p = !0, t[0].dispatchEvent ? (n = document.createEvent("MouseEvents"), n.initEvent("click", !0, !0), a = t[0].dispatchEvent(n), t.is("a") && a && (i = s(t, "target"), r = s(t, "href"), i && "_self" !== i ? e.open(r, i) : document.location.href = r)) : t.click(), void (p = !1)); 14531 } }), y(l, n), { remove: function () { 14532 return l.after(t), l.remove(), t.unbind(n.eventNamespace), t; 14533 }, update: function () { 14534 r(l, n), o(l, t, n), t.detach(), c.span.html(f()).append(t); 14535 } }; 14536 } }, { match: function (e) { 14537 return e.is(":checkbox"); 14538 }, apply: function (e, t) { 14539 var n, s, l;return n = d(e, t, { divClass: t.checkboxClass }), s = n.div, l = n.span, i(e, s, t), a(e, t, { "click touchend": function () { 14540 u(l, e, t); 14541 } }), u(l, e, t), { remove: H(e, t), update: function () { 14542 r(s, t), l.removeClass(t.checkedClass), u(l, e, t), o(s, e, t); 14543 } }; 14544 } }, { match: function (e) { 14545 return e.is(":file"); 14546 }, apply: function (e, n) { 14547 function l() { 14548 w(e, p, n); 14549 }var u, 14550 f, 14551 p, 14552 m, 14553 h = "undefined" != typeof e.attr("multiple");return u = d(e, n, { divClass: n.fileClass, spanClass: n.fileButtonClass, spanHtml: h ? n.filesButtonHtml : n.fileButtonHtml, spanWrap: "after" }), f = u.div, m = u.span, p = t("<span />").html(n.fileDefaultHtml), p.addClass(n.filenameClass), p = c(e, p, "after"), s(e, "size") || s(e, "size", f.width() / 10), i(e, f, n), l(), v() ? a(e, n, { click: function () { 14554 e.trigger("change"), setTimeout(l, 0); 14555 } }) : a(e, n, { change: l }), y(p, n), y(m, n), { remove: function () { 14556 return p.remove(), m.remove(), e.unwrap().unbind(n.eventNamespace); 14557 }, update: function () { 14558 r(f, n), w(e, p, n), o(f, e, n); 14559 } }; 14560 } }, { match: function (e) { 14561 if (e.is("input")) { 14562 var t = (" " + s(e, "type") + " ").toLowerCase(), 14563 n = " color date datetime datetime-local email month number password search tel text time url week ";return n.indexOf(t) >= 0; 14564 }return !1; 14565 }, apply: function (e, t) { 14566 var n, a;return n = s(e, "type"), e.addClass(t.inputClass), a = f(e, t), i(e, e, t), t.inputAddTypeAsClass && e.addClass(n), { remove: function () { 14567 e.removeClass(t.inputClass), t.inputAddTypeAsClass && e.removeClass(n), a && e.unwrap(); 14568 }, update: b }; 14569 } }, { match: function (e) { 14570 return e.is(":radio"); 14571 }, apply: function (e, n) { 14572 var l, c, f;return l = d(e, n, { divClass: n.radioClass }), c = l.div, f = l.span, i(e, c, n), a(e, n, { "click touchend": function () { 14573 void 0 !== e.attr("name") ? t.uniform.update(t(':radio[name="' + s(e, "name") + '"]')) : t.uniform.update(e); 14574 } }), u(f, e, n), { remove: H(e, n), update: function () { 14575 r(c, n), u(f, e, n), o(c, e, n); 14576 } }; 14577 } }, { match: function (e) { 14578 return !(!e.is("select") || C(e)); 14579 }, apply: function (e, n) { 14580 var s, l, u, c;return n.selectAutoWidth && k(e, function () { 14581 c = e.width(); 14582 }), s = d(e, n, { divClass: n.selectClass, spanHtml: (e.find(":selected:first") || e.find("option:first")).html(), spanWrap: "before" }), l = s.div, u = s.span, n.selectAutoWidth ? k(e, function () { 14583 g(t([u[0], l[0]]), { display: "block" }, function () { 14584 var e;e = u.outerWidth() - u.width(), l.width(c + e), u.width(c); 14585 }); 14586 }) : l.addClass("fixedWidth"), i(e, l, n), a(e, n, { change: function () { 14587 u.html(e.find(":selected").html()), l.removeClass(n.activeClass); 14588 }, "click touchend": function () { 14589 var t = e.find(":selected").html();u.html() !== t && e.trigger("change"); 14590 }, keyup: function () { 14591 u.html(e.find(":selected").html()); 14592 } }), y(u, n), { remove: function () { 14593 return u.remove(), e.unwrap().unbind(n.eventNamespace), e; 14594 }, update: function () { 14595 n.selectAutoWidth ? (t.uniform.restore(e), e.uniform(n)) : (r(l, n), e[0].selectedIndex = e[0].selectedIndex, u.html(e.find(":selected").html()), o(l, e, n)); 14596 } }; 14597 } }, { match: function (e) { 14598 return !(!e.is("select") || !C(e)); 14599 }, apply: function (e, t) { 14600 var n;return e.addClass(t.selectMultiClass), n = f(e, t), i(e, e, t), { remove: function () { 14601 e.removeClass(t.selectMultiClass), n && e.unwrap(); 14602 }, update: b }; 14603 } }, { match: function (e) { 14604 return e.is("textarea"); 14605 }, apply: function (e, t) { 14606 var n;return e.addClass(t.textareaClass), n = f(e, t), i(e, e, t), { remove: function () { 14607 e.removeClass(t.textareaClass), n && e.unwrap(); 14608 }, update: b }; 14609 } }];v() && !h() && (x = !1), t.uniform = { defaults: { activeClass: "active", autoHide: !0, buttonClass: "button", checkboxClass: "checker", checkedClass: "checked", disabledClass: "disabled", eventNamespace: ".uniform", fileButtonClass: "action", fileButtonHtml: "Choose File", filesButtonHtml: "Choose Files", fileClass: "uploader", fileDefaultHtml: "No file selected", filenameClass: "filename", focusClass: "focus", hoverClass: "hover", idPrefix: "uniform", inputAddTypeAsClass: !0, inputClass: "uniform-input", radioClass: "radio", resetDefaultHtml: "Reset", resetSelector: !1, selectAutoWidth: !0, selectClass: "selector", selectMultiClass: "uniform-multiselect", submitDefaultHtml: "Submit", textareaClass: "uniform", useID: !0, wrapperClass: null }, elements: [] }, t.fn.uniform = function (n) { 14610 var s = this;return n = t.extend({}, t.uniform.defaults, n), A || (A = !0, p() && (x = !1)), x ? (n.resetSelector && t(n.resetSelector).mouseup(function () { 14611 e.setTimeout(function () { 14612 t.uniform.update(s); 14613 }, 10); 14614 }), this.each(function () { 14615 var e, 14616 s, 14617 a, 14618 i = t(this);if (i.data("uniformed")) return void t.uniform.update(i);for (e = 0; e < W.length; e += 1) if (s = W[e], s.match(i, n)) return a = s.apply(i, n), i.data("uniformed", a), void t.uniform.elements.push(i.get(0)); 14619 })) : this; 14620 }, t.uniform.restore = t.fn.uniform.restore = function (e) { 14621 e === n && (e = t.uniform.elements), t(e).each(function () { 14622 var e, 14623 n, 14624 s = t(this);n = s.data("uniformed"), n && (n.remove(), e = t.inArray(this, t.uniform.elements), e >= 0 && t.uniform.elements.splice(e, 1), s.removeData("uniformed")); 14625 }); 14626 }, t.uniform.update = t.fn.uniform.update = function (e) { 14627 e === n && (e = t.uniform.elements), t(e).each(function () { 14628 var e, 14629 n = t(this);e = n.data("uniformed"), e && e.update(n, e.options); 14630 }); 14631 }; 14632}(this, jQuery); 14633 14634/***/ }), 14635
vendor: 88,906 bytes, lines 14636-17222
14636/***/ "./node_modules/popper.js/dist/esm/popper.js": 14637/*!***************************************************!*\ 14638 !*** ./node_modules/popper.js/dist/esm/popper.js ***! 14639 \***************************************************/ 14640/*! exports provided: default */ 14641/***/ (function(module, __webpack_exports__, __webpack_require__) { 14642 14643"use strict"; 14644__webpack_require__.r(__webpack_exports__); 14645/* WEBPACK VAR INJECTION */(function(global) {/**! 14646 * @fileOverview Kickass library to create and place poppers near their reference elements. 14647 * @version 1.16.0 14648 * @license 14649 * Copyright (c) 2016 Federico Zivolo and contributors 14650 * 14651 * Permission is hereby granted, free of charge, to any person obtaining a copy 14652 * of this software and associated documentation files (the "Software"), to deal 14653 * in the Software without restriction, including without limitation the rights 14654 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 14655 * copies of the Software, and to permit persons to whom the Software is 14656 * furnished to do so, subject to the following conditions: 14657 * 14658 * The above copyright notice and this permission notice shall be included in all 14659 * copies or substantial portions of the Software. 14660 * 14661 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14662 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 14663 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 14664 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 14665 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 14666 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 14667 * SOFTWARE. 14668 */ 14669var isBrowser=typeof window!=='undefined'&&typeof document!=='undefined'&&typeof navigator!=='undefined';var timeoutDuration=function(){var longerTimeoutBrowsers=['Edge','Trident','Firefox'];for(var i=0;i<longerTimeoutBrowsers.length;i+=1){if(isBrowser&&navigator.userAgent.indexOf(longerTimeoutBrowsers[i])>=0){return 1}} 14670return 0}();function microtaskDebounce(fn){var called=!1;return function(){if(called){return} 14671called=!0;window.Promise.resolve().then(function(){called=!1;fn()})}} 14672function taskDebounce(fn){var scheduled=!1;return function(){if(!scheduled){scheduled=!0;setTimeout(function(){scheduled=!1;fn()},timeoutDuration)}}} 14673var supportsMicroTasks=isBrowser&&window.Promise; 14674/** 14675* Create a debounced version of a method, that's asynchronously deferred 14676* but called in the minimum time possible. 14677* 14678* @method 14679* @memberof Popper.Utils 14680* @argument {Function} fn 14681* @returns {Function} 14682*/ 14683var debounce = supportsMicroTasks ? microtaskDebounce : taskDebounce; 14684 14685/** 14686 * Check if the given variable is a function 14687 * @method 14688 * @memberof Popper.Utils 14689 * @argument {Any} functionToCheck - variable to check 14690 * @returns {Boolean} answer to: is a function? 14691 */ 14692function isFunction(functionToCheck) { 14693 var getType = {}; 14694 return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]'; 14695} 14696 14697/** 14698 * Get CSS computed property of the given element 14699 * @method 14700 * @memberof Popper.Utils 14701 * @argument {Eement} element 14702 * @argument {String} property 14703 */ 14704function getStyleComputedProperty(element, property) { 14705 if (element.nodeType !== 1) { 14706 return []; 14707 } 14708 // NOTE: 1 DOM access here 14709 var window = element.ownerDocument.defaultView; 14710 var css = window.getComputedStyle(element, null); 14711 return property ? css[property] : css; 14712} 14713 14714/** 14715 * Returns the parentNode or the host of the element 14716 * @method 14717 * @memberof Popper.Utils 14718 * @argument {Element} element 14719 * @returns {Element} parent 14720 */ 14721function getParentNode(element) { 14722 if (element.nodeName === 'HTML') { 14723 return element; 14724 } 14725 return element.parentNode || element.host; 14726} 14727 14728/** 14729 * Returns the scrolling parent of the given element 14730 * @method 14731 * @memberof Popper.Utils 14732 * @argument {Element} element 14733 * @returns {Element} scroll parent 14734 */ 14735function getScrollParent(element) { 14736 // Return body, `getScroll` will take care to get the correct `scrollTop` from it 14737 if (!element) { 14738 return document.body; 14739 } 14740 14741 switch (element.nodeName) { 14742 case 'HTML': 14743 case 'BODY': 14744 return element.ownerDocument.body; 14745 case '#document': 14746 return element.body; 14747 } 14748 14749 // Firefox want us to check `-x` and `-y` variations as well 14750 14751 var _getStyleComputedProp = getStyleComputedProperty(element), 14752 overflow = _getStyleComputedProp.overflow, 14753 overflowX = _getStyleComputedProp.overflowX, 14754 overflowY = _getStyleComputedProp.overflowY; 14755 14756 if (/(auto|scroll|overlay)/.test(overflow + overflowY + overflowX)) { 14757 return element; 14758 } 14759 14760 return getScrollParent(getParentNode(element)); 14761} 14762 14763/** 14764 * Returns the reference node of the reference object, or the reference object itself. 14765 * @method 14766 * @memberof Popper.Utils 14767 * @param {Element|Object} reference - the reference element (the popper will be relative to this) 14768 * @returns {Element} parent 14769 */ 14770function getReferenceNode(reference) { 14771 return reference && reference.referenceNode ? reference.referenceNode : reference; 14772} 14773 14774var isIE11 = isBrowser && !!(window.MSInputMethodContext && document.documentMode); 14775var isIE10 = isBrowser && /MSIE 10/.test(navigator.userAgent); 14776 14777/** 14778 * Determines if the browser is Internet Explorer 14779 * @method 14780 * @memberof Popper.Utils 14781 * @param {Number} version to check 14782 * @returns {Boolean} isIE 14783 */ 14784function isIE(version) { 14785 if (version === 11) { 14786 return isIE11; 14787 } 14788 if (version === 10) { 14789 return isIE10; 14790 } 14791 return isIE11 || isIE10; 14792} 14793 14794/** 14795 * Returns the offset parent of the given element 14796 * @method 14797 * @memberof Popper.Utils 14798 * @argument {Element} element 14799 * @returns {Element} offset parent 14800 */ 14801function getOffsetParent(element) { 14802 if (!element) { 14803 return document.documentElement; 14804 } 14805 14806 var noOffsetParent = isIE(10) ? document.body : null; 14807 14808 // NOTE: 1 DOM access here 14809 var offsetParent = element.offsetParent || null; 14810 // Skip hidden elements which don't have an offsetParent 14811 while (offsetParent === noOffsetParent && element.nextElementSibling) { 14812 offsetParent = (element = element.nextElementSibling).offsetParent; 14813 } 14814 14815 var nodeName = offsetParent && offsetParent.nodeName; 14816 14817 if (!nodeName || nodeName === 'BODY' || nodeName === 'HTML') { 14818 return element ? element.ownerDocument.documentElement : document.documentElement; 14819 } 14820 14821 // .offsetParent will return the closest TH, TD or TABLE in case 14822 // no offsetParent is present, I hate this job... 14823 if (['TH', 'TD', 'TABLE'].indexOf(offsetParent.nodeName) !== -1 && getStyleComputedProperty(offsetParent, 'position') === 'static') { 14824 return getOffsetParent(offsetParent); 14825 } 14826 14827 return offsetParent; 14828} 14829 14830function isOffsetContainer(element) { 14831 var nodeName = element.nodeName; 14832 14833 if (nodeName === 'BODY') { 14834 return false; 14835 } 14836 return nodeName === 'HTML' || getOffsetParent(element.firstElementChild) === element; 14837} 14838 14839/** 14840 * Finds the root node (document, shadowDOM root) of the given element 14841 * @method 14842 * @memberof Popper.Utils 14843 * @argument {Element} node 14844 * @returns {Element} root node 14845 */ 14846function getRoot(node) { 14847 if (node.parentNode !== null) { 14848 return getRoot(node.parentNode); 14849 } 14850 14851 return node; 14852} 14853 14854/** 14855 * Finds the offset parent common to the two provided nodes 14856 * @method 14857 * @memberof Popper.Utils 14858 * @argument {Element} element1 14859 * @argument {Element} element2 14860 * @returns {Element} common offset parent 14861 */ 14862function findCommonOffsetParent(element1, element2) { 14863 // This check is needed to avoid errors in case one of the elements isn't defined for any reason 14864 if (!element1 || !element1.nodeType || !element2 || !element2.nodeType) { 14865 return document.documentElement; 14866 } 14867 14868 // Here we make sure to give as "start" the element that comes first in the DOM 14869 var order = element1.compareDocumentPosition(element2) & Node.DOCUMENT_POSITION_FOLLOWING; 14870 var start = order ? element1 : element2; 14871 var end = order ? element2 : element1; 14872 14873 // Get common ancestor container 14874 var range = document.createRange(); 14875 range.setStart(start, 0); 14876 range.setEnd(end, 0); 14877 var commonAncestorContainer = range.commonAncestorContainer; 14878 14879 // Both nodes are inside #document 14880 14881 if (element1 !== commonAncestorContainer && element2 !== commonAncestorContainer || start.contains(end)) { 14882 if (isOffsetContainer(commonAncestorContainer)) { 14883 return commonAncestorContainer; 14884 } 14885 14886 return getOffsetParent(commonAncestorContainer); 14887 } 14888 14889 // one of the nodes is inside shadowDOM, find which one 14890 var element1root = getRoot(element1); 14891 if (element1root.host) { 14892 return findCommonOffsetParent(element1root.host, element2); 14893 } else { 14894 return findCommonOffsetParent(element1, getRoot(element2).host); 14895 } 14896} 14897 14898/** 14899 * Gets the scroll value of the given element in the given side (top and left) 14900 * @method 14901 * @memberof Popper.Utils 14902 * @argument {Element} element 14903 * @argument {String} side `top` or `left` 14904 * @returns {number} amount of scrolled pixels 14905 */ 14906function getScroll(element) { 14907 var side = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'top'; 14908 14909 var upperSide = side === 'top' ? 'scrollTop' : 'scrollLeft'; 14910 var nodeName = element.nodeName; 14911 14912 if (nodeName === 'BODY' || nodeName === 'HTML') { 14913 var html = element.ownerDocument.documentElement; 14914 var scrollingElement = element.ownerDocument.scrollingElement || html; 14915 return scrollingElement[upperSide]; 14916 } 14917 14918 return element[upperSide]; 14919} 14920 14921/* 14922 * Sum or subtract the element scroll values (left and top) from a given rect object 14923 * @method 14924 * @memberof Popper.Utils 14925 * @param {Object} rect - Rect object you want to change 14926 * @param {HTMLElement} element - The element from the function reads the scroll values 14927 * @param {Boolean} subtract - set to true if you want to subtract the scroll values 14928 * @return {Object} rect - The modifier rect object 14929 */ 14930function includeScroll(rect, element) { 14931 var subtract = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; 14932 14933 var scrollTop = getScroll(element, 'top'); 14934 var scrollLeft = getScroll(element, 'left'); 14935 var modifier = subtract ? -1 : 1; 14936 rect.top += scrollTop * modifier; 14937 rect.bottom += scrollTop * modifier; 14938 rect.left += scrollLeft * modifier; 14939 rect.right += scrollLeft * modifier; 14940 return rect; 14941} 14942 14943/* 14944 * Helper to detect borders of a given element 14945 * @method 14946 * @memberof Popper.Utils 14947 * @param {CSSStyleDeclaration} styles 14948 * Result of `getStyleComputedProperty` on the given element 14949 * @param {String} axis - `x` or `y` 14950 * @return {number} borders - The borders size of the given axis 14951 */ 14952 14953function getBordersSize(styles, axis) { 14954 var sideA = axis === 'x' ? 'Left' : 'Top'; 14955 var sideB = sideA === 'Left' ? 'Right' : 'Bottom'; 14956 14957 return parseFloat(styles['border' + sideA + 'Width'], 10) + parseFloat(styles['border' + sideB + 'Width'], 10); 14958} 14959 14960function getSize(axis, body, html, computedStyle) { 14961 return Math.max(body['offset' + axis], body['scroll' + axis], html['client' + axis], html['offset' + axis], html['scroll' + axis], isIE(10) ? parseInt(html['offset' + axis]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Top' : 'Left')]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Bottom' : 'Right')]) : 0); 14962} 14963 14964function getWindowSizes(document) { 14965 var body = document.body; 14966 var html = document.documentElement; 14967 var computedStyle = isIE(10) && getComputedStyle(html); 14968 14969 return { 14970 height: getSize('Height', body, html, computedStyle), 14971 width: getSize('Width', body, html, computedStyle) 14972 }; 14973} 14974 14975var classCallCheck = function (instance, Constructor) { 14976 if (!(instance instanceof Constructor)) { 14977 throw new TypeError("Cannot call a class as a function"); 14978 } 14979}; 14980 14981var createClass = function () { 14982 function defineProperties(target, props) { 14983 for (var i = 0; i < props.length; i++) { 14984 var descriptor = props[i]; 14985 descriptor.enumerable = descriptor.enumerable || false; 14986 descriptor.configurable = true; 14987 if ("value" in descriptor) descriptor.writable = true; 14988 Object.defineProperty(target, descriptor.key, descriptor); 14989 } 14990 } 14991 14992 return function (Constructor, protoProps, staticProps) { 14993 if (protoProps) defineProperties(Constructor.prototype, protoProps); 14994 if (staticProps) defineProperties(Constructor, staticProps); 14995 return Constructor; 14996 }; 14997}(); 14998 14999var defineProperty = function (obj, key, value) { 15000 if (key in obj) { 15001 Object.defineProperty(obj, key, { 15002 value: value, 15003 enumerable: true, 15004 configurable: true, 15005 writable: true 15006 }); 15007 } else { 15008 obj[key] = value; 15009 } 15010 15011 return obj; 15012}; 15013 15014var _extends = Object.assign || function (target) { 15015 for (var i = 1; i < arguments.length; i++) { 15016 var source = arguments[i]; 15017 15018 for (var key in source) { 15019 if (Object.prototype.hasOwnProperty.call(source, key)) { 15020 target[key] = source[key]; 15021 } 15022 } 15023 } 15024 15025 return target; 15026}; 15027 15028/** 15029 * Given element offsets, generate an output similar to getBoundingClientRect 15030 * @method 15031 * @memberof Popper.Utils 15032 * @argument {Object} offsets 15033 * @returns {Object} ClientRect like output 15034 */ 15035function getClientRect(offsets) { 15036 return _extends({}, offsets, { 15037 right: offsets.left + offsets.width, 15038 bottom: offsets.top + offsets.height 15039 }); 15040} 15041 15042/** 15043 * Get bounding client rect of given element 15044 * @method 15045 * @memberof Popper.Utils 15046 * @param {HTMLElement} element 15047 * @return {Object} client rect 15048 */ 15049function getBoundingClientRect(element) { 15050 var rect = {}; 15051 15052 // IE10 10 FIX: Please, don't ask, the element isn't 15053 // considered in DOM in some circumstances... 15054 // This isn't reproducible in IE10 compatibility mode of IE11 15055 try { 15056 if (isIE(10)) { 15057 rect = element.getBoundingClientRect(); 15058 var scrollTop = getScroll(element, 'top'); 15059 var scrollLeft = getScroll(element, 'left'); 15060 rect.top += scrollTop; 15061 rect.left += scrollLeft; 15062 rect.bottom += scrollTop; 15063 rect.right += scrollLeft; 15064 } else { 15065 rect = element.getBoundingClientRect(); 15066 } 15067 } catch (e) {} 15068 15069 var result = { 15070 left: rect.left, 15071 top: rect.top, 15072 width: rect.right - rect.left, 15073 height: rect.bottom - rect.top 15074 }; 15075 15076 // subtract scrollbar size from sizes 15077 var sizes = element.nodeName === 'HTML' ? getWindowSizes(element.ownerDocument) : {}; 15078 var width = sizes.width || element.clientWidth || result.width; 15079 var height = sizes.height || element.clientHeight || result.height; 15080 15081 var horizScrollbar = element.offsetWidth - width; 15082 var vertScrollbar = element.offsetHeight - height; 15083 15084 // if an hypothetical scrollbar is detected, we must be sure it's not a `border` 15085 // we make this check conditional for performance reasons 15086 if (horizScrollbar || vertScrollbar) { 15087 var styles = getStyleComputedProperty(element); 15088 horizScrollbar -= getBordersSize(styles, 'x'); 15089 vertScrollbar -= getBordersSize(styles, 'y'); 15090 15091 result.width -= horizScrollbar; 15092 result.height -= vertScrollbar; 15093 } 15094 15095 return getClientRect(result); 15096} 15097 15098function getOffsetRectRelativeToArbitraryNode(children, parent) { 15099 var fixedPosition = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; 15100 15101 var isIE10 = isIE(10); 15102 var isHTML = parent.nodeName === 'HTML'; 15103 var childrenRect = getBoundingClientRect(children); 15104 var parentRect = getBoundingClientRect(parent); 15105 var scrollParent = getScrollParent(children); 15106 15107 var styles = getStyleComputedProperty(parent); 15108 var borderTopWidth = parseFloat(styles.borderTopWidth, 10); 15109 var borderLeftWidth = parseFloat(styles.borderLeftWidth, 10); 15110 15111 // In cases where the parent is fixed, we must ignore negative scroll in offset calc 15112 if (fixedPosition && isHTML) { 15113 parentRect.top = Math.max(parentRect.top, 0); 15114 parentRect.left = Math.max(parentRect.left, 0); 15115 } 15116 var offsets = getClientRect({ 15117 top: childrenRect.top - parentRect.top - borderTopWidth, 15118 left: childrenRect.left - parentRect.left - borderLeftWidth, 15119 width: childrenRect.width, 15120 height: childrenRect.height 15121 }); 15122 offsets.marginTop = 0; 15123 offsets.marginLeft = 0; 15124 15125 // Subtract margins of documentElement in case it's being used as parent 15126 // we do this only on HTML because it's the only element that behaves 15127 // differently when margins are applied to it. The margins are included in 15128 // the box of the documentElement, in the other cases not. 15129 if (!isIE10 && isHTML) { 15130 var marginTop = parseFloat(styles.marginTop, 10); 15131 var marginLeft = parseFloat(styles.marginLeft, 10); 15132 15133 offsets.top -= borderTopWidth - marginTop; 15134 offsets.bottom -= borderTopWidth - marginTop; 15135 offsets.left -= borderLeftWidth - marginLeft; 15136 offsets.right -= borderLeftWidth - marginLeft; 15137 15138 // Attach marginTop and marginLeft because in some circumstances we may need them 15139 offsets.marginTop = marginTop; 15140 offsets.marginLeft = marginLeft; 15141 } 15142 15143 if (isIE10 && !fixedPosition ? parent.contains(scrollParent) : parent === scrollParent && scrollParent.nodeName !== 'BODY') { 15144 offsets = includeScroll(offsets, parent); 15145 } 15146 15147 return offsets; 15148} 15149 15150function getViewportOffsetRectRelativeToArtbitraryNode(element) { 15151 var excludeScroll = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; 15152 15153 var html = element.ownerDocument.documentElement; 15154 var relativeOffset = getOffsetRectRelativeToArbitraryNode(element, html); 15155 var width = Math.max(html.clientWidth, window.innerWidth || 0); 15156 var height = Math.max(html.clientHeight, window.innerHeight || 0); 15157 15158 var scrollTop = !excludeScroll ? getScroll(html) : 0; 15159 var scrollLeft = !excludeScroll ? getScroll(html, 'left') : 0; 15160 15161 var offset = { 15162 top: scrollTop - relativeOffset.top + relativeOffset.marginTop, 15163 left: scrollLeft - relativeOffset.left + relativeOffset.marginLeft, 15164 width: width, 15165 height: height 15166 }; 15167 15168 return getClientRect(offset); 15169} 15170 15171/** 15172 * Check if the given element is fixed or is inside a fixed parent 15173 * @method 15174 * @memberof Popper.Utils 15175 * @argument {Element} element 15176 * @argument {Element} customContainer 15177 * @returns {Boolean} answer to "isFixed?" 15178 */ 15179function isFixed(element) { 15180 var nodeName = element.nodeName; 15181 if (nodeName === 'BODY' || nodeName === 'HTML') { 15182 return false; 15183 } 15184 if (getStyleComputedProperty(element, 'position') === 'fixed') { 15185 return true; 15186 } 15187 var parentNode = getParentNode(element); 15188 if (!parentNode) { 15189 return false; 15190 } 15191 return isFixed(parentNode); 15192} 15193 15194/** 15195 * Finds the first parent of an element that has a transformed property defined 15196 * @method 15197 * @memberof Popper.Utils 15198 * @argument {Element} element 15199 * @returns {Element} first transformed parent or documentElement 15200 */ 15201 15202function getFixedPositionOffsetParent(element) { 15203 // This check is needed to avoid errors in case one of the elements isn't defined for any reason 15204 if (!element || !element.parentElement || isIE()) { 15205 return document.documentElement; 15206 } 15207 var el = element.parentElement; 15208 while (el && getStyleComputedProperty(el, 'transform') === 'none') { 15209 el = el.parentElement; 15210 } 15211 return el || document.documentElement; 15212} 15213 15214/** 15215 * Computed the boundaries limits and return them 15216 * @method 15217 * @memberof Popper.Utils 15218 * @param {HTMLElement} popper 15219 * @param {HTMLElement} reference 15220 * @param {number} padding 15221 * @param {HTMLElement} boundariesElement - Element used to define the boundaries 15222 * @param {Boolean} fixedPosition - Is in fixed position mode 15223 * @returns {Object} Coordinates of the boundaries 15224 */ 15225function getBoundaries(popper, reference, padding, boundariesElement) { 15226 var fixedPosition = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false; 15227 15228 // NOTE: 1 DOM access here 15229 15230 var boundaries = { top: 0, left: 0 }; 15231 var offsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, getReferenceNode(reference)); 15232 15233 // Handle viewport case 15234 if (boundariesElement === 'viewport') { 15235 boundaries = getViewportOffsetRectRelativeToArtbitraryNode(offsetParent, fixedPosition); 15236 } else { 15237 // Handle other cases based on DOM element used as boundaries 15238 var boundariesNode = void 0; 15239 if (boundariesElement === 'scrollParent') { 15240 boundariesNode = getScrollParent(getParentNode(reference)); 15241 if (boundariesNode.nodeName === 'BODY') { 15242 boundariesNode = popper.ownerDocument.documentElement; 15243 } 15244 } else if (boundariesElement === 'window') { 15245 boundariesNode = popper.ownerDocument.documentElement; 15246 } else { 15247 boundariesNode = boundariesElement; 15248 } 15249 15250 var offsets = getOffsetRectRelativeToArbitraryNode(boundariesNode, offsetParent, fixedPosition); 15251 15252 // In case of HTML, we need a different computation 15253 if (boundariesNode.nodeName === 'HTML' && !isFixed(offsetParent)) { 15254 var _getWindowSizes = getWindowSizes(popper.ownerDocument), 15255 height = _getWindowSizes.height, 15256 width = _getWindowSizes.width; 15257 15258 boundaries.top += offsets.top - offsets.marginTop; 15259 boundaries.bottom = height + offsets.top; 15260 boundaries.left += offsets.left - offsets.marginLeft; 15261 boundaries.right = width + offsets.left; 15262 } else { 15263 // for all the other DOM elements, this one is good 15264 boundaries = offsets; 15265 } 15266 } 15267 15268 // Add paddings 15269 padding = padding || 0; 15270 var isPaddingNumber = typeof padding === 'number'; 15271 boundaries.left += isPaddingNumber ? padding : padding.left || 0; 15272 boundaries.top += isPaddingNumber ? padding : padding.top || 0; 15273 boundaries.right -= isPaddingNumber ? padding : padding.right || 0; 15274 boundaries.bottom -= isPaddingNumber ? padding : padding.bottom || 0; 15275 15276 return boundaries; 15277} 15278 15279function getArea(_ref) { 15280 var width = _ref.width, 15281 height = _ref.height; 15282 15283 return width * height; 15284} 15285 15286/** 15287 * Utility used to transform the `auto` placement to the placement with more 15288 * available space. 15289 * @method 15290 * @memberof Popper.Utils 15291 * @argument {Object} data - The data object generated by update method 15292 * @argument {Object} options - Modifiers configuration and options 15293 * @returns {Object} The data object, properly modified 15294 */ 15295function computeAutoPlacement(placement, refRect, popper, reference, boundariesElement) { 15296 var padding = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0; 15297 15298 if (placement.indexOf('auto') === -1) { 15299 return placement; 15300 } 15301 15302 var boundaries = getBoundaries(popper, reference, padding, boundariesElement); 15303 15304 var rects = { 15305 top: { 15306 width: boundaries.width, 15307 height: refRect.top - boundaries.top 15308 }, 15309 right: { 15310 width: boundaries.right - refRect.right, 15311 height: boundaries.height 15312 }, 15313 bottom: { 15314 width: boundaries.width, 15315 height: boundaries.bottom - refRect.bottom 15316 }, 15317 left: { 15318 width: refRect.left - boundaries.left, 15319 height: boundaries.height 15320 } 15321 }; 15322 15323 var sortedAreas = Object.keys(rects).map(function (key) { 15324 return _extends({ 15325 key: key 15326 }, rects[key], { 15327 area: getArea(rects[key]) 15328 }); 15329 }).sort(function (a, b) { 15330 return b.area - a.area; 15331 }); 15332 15333 var filteredAreas = sortedAreas.filter(function (_ref2) { 15334 var width = _ref2.width, 15335 height = _ref2.height; 15336 return width >= popper.clientWidth && height >= popper.clientHeight; 15337 }); 15338 15339 var computedPlacement = filteredAreas.length > 0 ? filteredAreas[0].key : sortedAreas[0].key; 15340 15341 var variation = placement.split('-')[1]; 15342 15343 return computedPlacement + (variation ? '-' + variation : ''); 15344} 15345 15346/** 15347 * Get offsets to the reference element 15348 * @method 15349 * @memberof Popper.Utils 15350 * @param {Object} state 15351 * @param {Element} popper - the popper element 15352 * @param {Element} reference - the reference element (the popper will be relative to this) 15353 * @param {Element} fixedPosition - is in fixed position mode 15354 * @returns {Object} An object containing the offsets which will be applied to the popper 15355 */ 15356function getReferenceOffsets(state, popper, reference) { 15357 var fixedPosition = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null; 15358 15359 var commonOffsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, getReferenceNode(reference)); 15360 return getOffsetRectRelativeToArbitraryNode(reference, commonOffsetParent, fixedPosition); 15361} 15362 15363/** 15364 * Get the outer sizes of the given element (offset size + margins) 15365 * @method 15366 * @memberof Popper.Utils 15367 * @argument {Element} element 15368 * @returns {Object} object containing width and height properties 15369 */ 15370function getOuterSizes(element) { 15371 var window = element.ownerDocument.defaultView; 15372 var styles = window.getComputedStyle(element); 15373 var x = parseFloat(styles.marginTop || 0) + parseFloat(styles.marginBottom || 0); 15374 var y = parseFloat(styles.marginLeft || 0) + parseFloat(styles.marginRight || 0); 15375 var result = { 15376 width: element.offsetWidth + y, 15377 height: element.offsetHeight + x 15378 }; 15379 return result; 15380} 15381 15382/** 15383 * Get the opposite placement of the given one 15384 * @method 15385 * @memberof Popper.Utils 15386 * @argument {String} placement 15387 * @returns {String} flipped placement 15388 */ 15389function getOppositePlacement(placement) { 15390 var hash = { left: 'right', right: 'left', bottom: 'top', top: 'bottom' }; 15391 return placement.replace(/left|right|bottom|top/g, function (matched) { 15392 return hash[matched]; 15393 }); 15394} 15395 15396/** 15397 * Get offsets to the popper 15398 * @method 15399 * @memberof Popper.Utils 15400 * @param {Object} position - CSS position the Popper will get applied 15401 * @param {HTMLElement} popper - the popper element 15402 * @param {Object} referenceOffsets - the reference offsets (the popper will be relative to this) 15403 * @param {String} placement - one of the valid placement options 15404 * @returns {Object} popperOffsets - An object containing the offsets which will be applied to the popper 15405 */ 15406function getPopperOffsets(popper, referenceOffsets, placement) { 15407 placement = placement.split('-')[0]; 15408 15409 // Get popper node sizes 15410 var popperRect = getOuterSizes(popper); 15411 15412 // Add position, width and height to our offsets object 15413 var popperOffsets = { 15414 width: popperRect.width, 15415 height: popperRect.height 15416 }; 15417 15418 // depending by the popper placement we have to compute its offsets slightly differently 15419 var isHoriz = ['right', 'left'].indexOf(placement) !== -1; 15420 var mainSide = isHoriz ? 'top' : 'left'; 15421 var secondarySide = isHoriz ? 'left' : 'top'; 15422 var measurement = isHoriz ? 'height' : 'width'; 15423 var secondaryMeasurement = !isHoriz ? 'height' : 'width'; 15424 15425 popperOffsets[mainSide] = referenceOffsets[mainSide] + referenceOffsets[measurement] / 2 - popperRect[measurement] / 2; 15426 if (placement === secondarySide) { 15427 popperOffsets[secondarySide] = referenceOffsets[secondarySide] - popperRect[secondaryMeasurement]; 15428 } else { 15429 popperOffsets[secondarySide] = referenceOffsets[getOppositePlacement(secondarySide)]; 15430 } 15431 15432 return popperOffsets; 15433} 15434 15435/** 15436 * Mimics the `find` method of Array 15437 * @method 15438 * @memberof Popper.Utils 15439 * @argument {Array} arr 15440 * @argument prop 15441 * @argument value 15442 * @returns index or -1 15443 */ 15444function find(arr, check) { 15445 // use native find if supported 15446 if (Array.prototype.find) { 15447 return arr.find(check); 15448 } 15449 15450 // use `filter` to obtain the same behavior of `find` 15451 return arr.filter(check)[0]; 15452} 15453 15454/** 15455 * Return the index of the matching object 15456 * @method 15457 * @memberof Popper.Utils 15458 * @argument {Array} arr 15459 * @argument prop 15460 * @argument value 15461 * @returns index or -1 15462 */ 15463function findIndex(arr, prop, value) { 15464 // use native findIndex if supported 15465 if (Array.prototype.findIndex) { 15466 return arr.findIndex(function (cur) { 15467 return cur[prop] === value; 15468 }); 15469 } 15470 15471 // use `find` + `indexOf` if `findIndex` isn't supported 15472 var match = find(arr, function (obj) { 15473 return obj[prop] === value; 15474 }); 15475 return arr.indexOf(match); 15476} 15477 15478/** 15479 * Loop trough the list of modifiers and run them in order, 15480 * each of them will then edit the data object. 15481 * @method 15482 * @memberof Popper.Utils 15483 * @param {dataObject} data 15484 * @param {Array} modifiers 15485 * @param {String} ends - Optional modifier name used as stopper 15486 * @returns {dataObject} 15487 */ 15488function runModifiers(modifiers, data, ends) { 15489 var modifiersToRun = ends === undefined ? modifiers : modifiers.slice(0, findIndex(modifiers, 'name', ends)); 15490 15491 modifiersToRun.forEach(function (modifier) { 15492 if (modifier['function']) { 15493 // eslint-disable-line dot-notation 15494 console.warn('`modifier.function` is deprecated, use `modifier.fn`!'); 15495 } 15496 var fn = modifier['function'] || modifier.fn; // eslint-disable-line dot-notation 15497 if (modifier.enabled && isFunction(fn)) { 15498 // Add properties to offsets to make them a complete clientRect object 15499 // we do this before each modifier to make sure the previous one doesn't 15500 // mess with these values 15501 data.offsets.popper = getClientRect(data.offsets.popper); 15502 data.offsets.reference = getClientRect(data.offsets.reference); 15503 15504 data = fn(data, modifier); 15505 } 15506 }); 15507 15508 return data; 15509} 15510 15511/** 15512 * Updates the position of the popper, computing the new offsets and applying 15513 * the new style.<br /> 15514 * Prefer `scheduleUpdate` over `update` because of performance reasons. 15515 * @method 15516 * @memberof Popper 15517 */ 15518function update() { 15519 // if popper is destroyed, don't perform any further update 15520 if (this.state.isDestroyed) { 15521 return; 15522 } 15523 15524 var data = { 15525 instance: this, 15526 styles: {}, 15527 arrowStyles: {}, 15528 attributes: {}, 15529 flipped: false, 15530 offsets: {} 15531 }; 15532 15533 // compute reference element offsets 15534 data.offsets.reference = getReferenceOffsets(this.state, this.popper, this.reference, this.options.positionFixed); 15535 15536 // compute auto placement, store placement inside the data object, 15537 // modifiers will be able to edit `placement` if needed 15538 // and refer to originalPlacement to know the original value 15539 data.placement = computeAutoPlacement(this.options.placement, data.offsets.reference, this.popper, this.reference, this.options.modifiers.flip.boundariesElement, this.options.modifiers.flip.padding); 15540 15541 // store the computed placement inside `originalPlacement` 15542 data.originalPlacement = data.placement; 15543 15544 data.positionFixed = this.options.positionFixed; 15545 15546 // compute the popper offsets 15547 data.offsets.popper = getPopperOffsets(this.popper, data.offsets.reference, data.placement); 15548 15549 data.offsets.popper.position = this.options.positionFixed ? 'fixed' : 'absolute'; 15550 15551 // run the modifiers 15552 data = runModifiers(this.modifiers, data); 15553 15554 // the first `update` will call `onCreate` callback 15555 // the other ones will call `onUpdate` callback 15556 if (!this.state.isCreated) { 15557 this.state.isCreated = true; 15558 this.options.onCreate(data); 15559 } else { 15560 this.options.onUpdate(data); 15561 } 15562} 15563 15564/** 15565 * Helper used to know if the given modifier is enabled. 15566 * @method 15567 * @memberof Popper.Utils 15568 * @returns {Boolean} 15569 */ 15570function isModifierEnabled(modifiers, modifierName) { 15571 return modifiers.some(function (_ref) { 15572 var name = _ref.name, 15573 enabled = _ref.enabled; 15574 return enabled && name === modifierName; 15575 }); 15576} 15577 15578/** 15579 * Get the prefixed supported property name 15580 * @method 15581 * @memberof Popper.Utils 15582 * @argument {String} property (camelCase) 15583 * @returns {String} prefixed property (camelCase or PascalCase, depending on the vendor prefix) 15584 */ 15585function getSupportedPropertyName(property) { 15586 var prefixes = [false, 'ms', 'Webkit', 'Moz', 'O']; 15587 var upperProp = property.charAt(0).toUpperCase() + property.slice(1); 15588 15589 for (var i = 0; i < prefixes.length; i++) { 15590 var prefix = prefixes[i]; 15591 var toCheck = prefix ? '' + prefix + upperProp : property; 15592 if (typeof document.body.style[toCheck] !== 'undefined') { 15593 return toCheck; 15594 } 15595 } 15596 return null; 15597} 15598 15599/** 15600 * Destroys the popper. 15601 * @method 15602 * @memberof Popper 15603 */ 15604function destroy() { 15605 this.state.isDestroyed = true; 15606 15607 // touch DOM only if `applyStyle` modifier is enabled 15608 if (isModifierEnabled(this.modifiers, 'applyStyle')) { 15609 this.popper.removeAttribute('x-placement'); 15610 this.popper.style.position = ''; 15611 this.popper.style.top = ''; 15612 this.popper.style.left = ''; 15613 this.popper.style.right = ''; 15614 this.popper.style.bottom = ''; 15615 this.popper.style.willChange = ''; 15616 this.popper.style[getSupportedPropertyName('transform')] = ''; 15617 } 15618 15619 this.disableEventListeners(); 15620 15621 // remove the popper if user explicitly asked for the deletion on destroy 15622 // do not use `remove` because IE11 doesn't support it 15623 if (this.options.removeOnDestroy) { 15624 this.popper.parentNode.removeChild(this.popper); 15625 } 15626 return this; 15627} 15628 15629/** 15630 * Get the window associated with the element 15631 * @argument {Element} element 15632 * @returns {Window} 15633 */ 15634function getWindow(element) { 15635 var ownerDocument = element.ownerDocument; 15636 return ownerDocument ? ownerDocument.defaultView : window; 15637} 15638 15639function attachToScrollParents(scrollParent, event, callback, scrollParents) { 15640 var isBody = scrollParent.nodeName === 'BODY'; 15641 var target = isBody ? scrollParent.ownerDocument.defaultView : scrollParent; 15642 target.addEventListener(event, callback, { passive: true }); 15643 15644 if (!isBody) { 15645 attachToScrollParents(getScrollParent(target.parentNode), event, callback, scrollParents); 15646 } 15647 scrollParents.push(target); 15648} 15649 15650/** 15651 * Setup needed event listeners used to update the popper position 15652 * @method 15653 * @memberof Popper.Utils 15654 * @private 15655 */ 15656function setupEventListeners(reference, options, state, updateBound) { 15657 // Resize event listener on window 15658 state.updateBound = updateBound; 15659 getWindow(reference).addEventListener('resize', state.updateBound, { passive: true }); 15660 15661 // Scroll event listener on scroll parents 15662 var scrollElement = getScrollParent(reference); 15663 attachToScrollParents(scrollElement, 'scroll', state.updateBound, state.scrollParents); 15664 state.scrollElement = scrollElement; 15665 state.eventsEnabled = true; 15666 15667 return state; 15668} 15669 15670/** 15671 * It will add resize/scroll events and start recalculating 15672 * position of the popper element when they are triggered. 15673 * @method 15674 * @memberof Popper 15675 */ 15676function enableEventListeners() { 15677 if (!this.state.eventsEnabled) { 15678 this.state = setupEventListeners(this.reference, this.options, this.state, this.scheduleUpdate); 15679 } 15680} 15681 15682/** 15683 * Remove event listeners used to update the popper position 15684 * @method 15685 * @memberof Popper.Utils 15686 * @private 15687 */ 15688function removeEventListeners(reference, state) { 15689 // Remove resize event listener on window 15690 getWindow(reference).removeEventListener('resize', state.updateBound); 15691 15692 // Remove scroll event listener on scroll parents 15693 state.scrollParents.forEach(function (target) { 15694 target.removeEventListener('scroll', state.updateBound); 15695 }); 15696 15697 // Reset state 15698 state.updateBound = null; 15699 state.scrollParents = []; 15700 state.scrollElement = null; 15701 state.eventsEnabled = false; 15702 return state; 15703} 15704 15705/** 15706 * It will remove resize/scroll events and won't recalculate popper position 15707 * when they are triggered. It also won't trigger `onUpdate` callback anymore, 15708 * unless you call `update` method manually. 15709 * @method 15710 * @memberof Popper 15711 */ 15712function disableEventListeners() { 15713 if (this.state.eventsEnabled) { 15714 cancelAnimationFrame(this.scheduleUpdate); 15715 this.state = removeEventListeners(this.reference, this.state); 15716 } 15717} 15718 15719/** 15720 * Tells if a given input is a number 15721 * @method 15722 * @memberof Popper.Utils 15723 * @param {*} input to check 15724 * @return {Boolean} 15725 */ 15726function isNumeric(n) { 15727 return n !== '' && !isNaN(parseFloat(n)) && isFinite(n); 15728} 15729 15730/** 15731 * Set the style to the given popper 15732 * @method 15733 * @memberof Popper.Utils 15734 * @argument {Element} element - Element to apply the style to 15735 * @argument {Object} styles 15736 * Object with a list of properties and values which will be applied to the element 15737 */ 15738function setStyles(element, styles) { 15739 Object.keys(styles).forEach(function (prop) { 15740 var unit = ''; 15741 // add unit if the value is numeric and is one of the following 15742 if (['width', 'height', 'top', 'right', 'bottom', 'left'].indexOf(prop) !== -1 && isNumeric(styles[prop])) { 15743 unit = 'px'; 15744 } 15745 element.style[prop] = styles[prop] + unit; 15746 }); 15747} 15748 15749/** 15750 * Set the attributes to the given popper 15751 * @method 15752 * @memberof Popper.Utils 15753 * @argument {Element} element - Element to apply the attributes to 15754 * @argument {Object} styles 15755 * Object with a list of properties and values which will be applied to the element 15756 */ 15757function setAttributes(element, attributes) { 15758 Object.keys(attributes).forEach(function (prop) { 15759 var value = attributes[prop]; 15760 if (value !== false) { 15761 element.setAttribute(prop, attributes[prop]); 15762 } else { 15763 element.removeAttribute(prop); 15764 } 15765 }); 15766} 15767 15768/** 15769 * @function 15770 * @memberof Modifiers 15771 * @argument {Object} data - The data object generated by `update` method 15772 * @argument {Object} data.styles - List of style properties - values to apply to popper element 15773 * @argument {Object} data.attributes - List of attribute properties - values to apply to popper element 15774 * @argument {Object} options - Modifiers configuration and options 15775 * @returns {Object} The same data object 15776 */ 15777function applyStyle(data) { 15778 // any property present in `data.styles` will be applied to the popper, 15779 // in this way we can make the 3rd party modifiers add custom styles to it 15780 // Be aware, modifiers could override the properties defined in the previous 15781 // lines of this modifier! 15782 setStyles(data.instance.popper, data.styles); 15783 15784 // any property present in `data.attributes` will be applied to the popper, 15785 // they will be set as HTML attributes of the element 15786 setAttributes(data.instance.popper, data.attributes); 15787 15788 // if arrowElement is defined and arrowStyles has some properties 15789 if (data.arrowElement && Object.keys(data.arrowStyles).length) { 15790 setStyles(data.arrowElement, data.arrowStyles); 15791 } 15792 15793 return data; 15794} 15795 15796/** 15797 * Set the x-placement attribute before everything else because it could be used 15798 * to add margins to the popper margins needs to be calculated to get the 15799 * correct popper offsets. 15800 * @method 15801 * @memberof Popper.modifiers 15802 * @param {HTMLElement} reference - The reference element used to position the popper 15803 * @param {HTMLElement} popper - The HTML element used as popper 15804 * @param {Object} options - Popper.js options 15805 */ 15806function applyStyleOnLoad(reference, popper, options, modifierOptions, state) { 15807 // compute reference element offsets 15808 var referenceOffsets = getReferenceOffsets(state, popper, reference, options.positionFixed); 15809 15810 // compute auto placement, store placement inside the data object, 15811 // modifiers will be able to edit `placement` if needed 15812 // and refer to originalPlacement to know the original value 15813 var placement = computeAutoPlacement(options.placement, referenceOffsets, popper, reference, options.modifiers.flip.boundariesElement, options.modifiers.flip.padding); 15814 15815 popper.setAttribute('x-placement', placement); 15816 15817 // Apply `position` to popper before anything else because 15818 // without the position applied we can't guarantee correct computations 15819 setStyles(popper, { position: options.positionFixed ? 'fixed' : 'absolute' }); 15820 15821 return options; 15822} 15823 15824/** 15825 * @function 15826 * @memberof Popper.Utils 15827 * @argument {Object} data - The data object generated by `update` method 15828 * @argument {Boolean} shouldRound - If the offsets should be rounded at all 15829 * @returns {Object} The popper's position offsets rounded 15830 * 15831 * The tale of pixel-perfect positioning. It's still not 100% perfect, but as 15832 * good as it can be within reason. 15833 * Discussion here: https://github.com/FezVrasta/popper.js/pull/715 15834 * 15835 * Low DPI screens cause a popper to be blurry if not using full pixels (Safari 15836 * as well on High DPI screens). 15837 * 15838 * Firefox prefers no rounding for positioning and does not have blurriness on 15839 * high DPI screens. 15840 * 15841 * Only horizontal placement and left/right values need to be considered. 15842 */ 15843function getRoundedOffsets(data, shouldRound) { 15844 var _data$offsets = data.offsets, 15845 popper = _data$offsets.popper, 15846 reference = _data$offsets.reference; 15847 var round = Math.round, 15848 floor = Math.floor; 15849 15850 var noRound = function noRound(v) { 15851 return v; 15852 }; 15853 15854 var referenceWidth = round(reference.width); 15855 var popperWidth = round(popper.width); 15856 15857 var isVertical = ['left', 'right'].indexOf(data.placement) !== -1; 15858 var isVariation = data.placement.indexOf('-') !== -1; 15859 var sameWidthParity = referenceWidth % 2 === popperWidth % 2; 15860 var bothOddWidth = referenceWidth % 2 === 1 && popperWidth % 2 === 1; 15861 15862 var horizontalToInteger = !shouldRound ? noRound : isVertical || isVariation || sameWidthParity ? round : floor; 15863 var verticalToInteger = !shouldRound ? noRound : round; 15864 15865 return { 15866 left: horizontalToInteger(bothOddWidth && !isVariation && shouldRound ? popper.left - 1 : popper.left), 15867 top: verticalToInteger(popper.top), 15868 bottom: verticalToInteger(popper.bottom), 15869 right: horizontalToInteger(popper.right) 15870 }; 15871} 15872 15873var isFirefox = isBrowser && /Firefox/i.test(navigator.userAgent); 15874 15875/** 15876 * @function 15877 * @memberof Modifiers 15878 * @argument {Object} data - The data object generated by `update` method 15879 * @argument {Object} options - Modifiers configuration and options 15880 * @returns {Object} The data object, properly modified 15881 */ 15882function computeStyle(data, options) { 15883 var x = options.x, 15884 y = options.y; 15885 var popper = data.offsets.popper; 15886 15887 // Remove this legacy support in Popper.js v2 15888 15889 var legacyGpuAccelerationOption = find(data.instance.modifiers, function (modifier) { 15890 return modifier.name === 'applyStyle'; 15891 }).gpuAcceleration; 15892 if (legacyGpuAccelerationOption !== undefined) { 15893 console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!'); 15894 } 15895 var gpuAcceleration = legacyGpuAccelerationOption !== undefined ? legacyGpuAccelerationOption : options.gpuAcceleration; 15896 15897 var offsetParent = getOffsetParent(data.instance.popper); 15898 var offsetParentRect = getBoundingClientRect(offsetParent); 15899 15900 // Styles 15901 var styles = { 15902 position: popper.position 15903 }; 15904 15905 var offsets = getRoundedOffsets(data, window.devicePixelRatio < 2 || !isFirefox); 15906 15907 var sideA = x === 'bottom' ? 'top' : 'bottom'; 15908 var sideB = y === 'right' ? 'left' : 'right'; 15909 15910 // if gpuAcceleration is set to `true` and transform is supported, 15911 // we use `translate3d` to apply the position to the popper we 15912 // automatically use the supported prefixed version if needed 15913 var prefixedProperty = getSupportedPropertyName('transform'); 15914 15915 // now, let's make a step back and look at this code closely (wtf?) 15916 // If the content of the popper grows once it's been positioned, it 15917 // may happen that the popper gets misplaced because of the new content 15918 // overflowing its reference element 15919 // To avoid this problem, we provide two options (x and y), which allow 15920 // the consumer to define the offset origin. 15921 // If we position a popper on top of a reference element, we can set 15922 // `x` to `top` to make the popper grow towards its top instead of 15923 // its bottom. 15924 var left = void 0, 15925 top = void 0; 15926 if (sideA === 'bottom') { 15927 // when offsetParent is <html> the positioning is relative to the bottom of the screen (excluding the scrollbar) 15928 // and not the bottom of the html element 15929 if (offsetParent.nodeName === 'HTML') { 15930 top = -offsetParent.clientHeight + offsets.bottom; 15931 } else { 15932 top = -offsetParentRect.height + offsets.bottom; 15933 } 15934 } else { 15935 top = offsets.top; 15936 } 15937 if (sideB === 'right') { 15938 if (offsetParent.nodeName === 'HTML') { 15939 left = -offsetParent.clientWidth + offsets.right; 15940 } else { 15941 left = -offsetParentRect.width + offsets.right; 15942 } 15943 } else { 15944 left = offsets.left; 15945 } 15946 if (gpuAcceleration && prefixedProperty) { 15947 styles[prefixedProperty] = 'translate3d(' + left + 'px, ' + top + 'px, 0)'; 15948 styles[sideA] = 0; 15949 styles[sideB] = 0; 15950 styles.willChange = 'transform'; 15951 } else { 15952 // othwerise, we use the standard `top`, `left`, `bottom` and `right` properties 15953 var invertTop = sideA === 'bottom' ? -1 : 1; 15954 var invertLeft = sideB === 'right' ? -1 : 1; 15955 styles[sideA] = top * invertTop; 15956 styles[sideB] = left * invertLeft; 15957 styles.willChange = sideA + ', ' + sideB; 15958 } 15959 15960 // Attributes 15961 var attributes = { 15962 'x-placement': data.placement 15963 }; 15964 15965 // Update `data` attributes, styles and arrowStyles 15966 data.attributes = _extends({}, attributes, data.attributes); 15967 data.styles = _extends({}, styles, data.styles); 15968 data.arrowStyles = _extends({}, data.offsets.arrow, data.arrowStyles); 15969 15970 return data; 15971} 15972 15973/** 15974 * Helper used to know if the given modifier depends from another one.<br /> 15975 * It checks if the needed modifier is listed and enabled. 15976 * @method 15977 * @memberof Popper.Utils 15978 * @param {Array} modifiers - list of modifiers 15979 * @param {String} requestingName - name of requesting modifier 15980 * @param {String} requestedName - name of requested modifier 15981 * @returns {Boolean} 15982 */ 15983function isModifierRequired(modifiers, requestingName, requestedName) { 15984 var requesting = find(modifiers, function (_ref) { 15985 var name = _ref.name; 15986 return name === requestingName; 15987 }); 15988 15989 var isRequired = !!requesting && modifiers.some(function (modifier) { 15990 return modifier.name === requestedName && modifier.enabled && modifier.order < requesting.order; 15991 }); 15992 15993 if (!isRequired) { 15994 var _requesting = '`' + requestingName + '`'; 15995 var requested = '`' + requestedName + '`'; 15996 console.warn(requested + ' modifier is required by ' + _requesting + ' modifier in order to work, be sure to include it before ' + _requesting + '!'); 15997 } 15998 return isRequired; 15999} 16000 16001/** 16002 * @function 16003 * @memberof Modifiers 16004 * @argument {Object} data - The data object generated by update method 16005 * @argument {Object} options - Modifiers configuration and options 16006 * @returns {Object} The data object, properly modified 16007 */ 16008function arrow(data, options) { 16009 var _data$offsets$arrow; 16010 16011 // arrow depends on keepTogether in order to work 16012 if (!isModifierRequired(data.instance.modifiers, 'arrow', 'keepTogether')) { 16013 return data; 16014 } 16015 16016 var arrowElement = options.element; 16017 16018 // if arrowElement is a string, suppose it's a CSS selector 16019 if (typeof arrowElement === 'string') { 16020 arrowElement = data.instance.popper.querySelector(arrowElement); 16021 16022 // if arrowElement is not found, don't run the modifier 16023 if (!arrowElement) { 16024 return data; 16025 } 16026 } else { 16027 // if the arrowElement isn't a query selector we must check that the 16028 // provided DOM node is child of its popper node 16029 if (!data.instance.popper.contains(arrowElement)) { 16030 console.warn('WARNING: `arrow.element` must be child of its popper element!'); 16031 return data; 16032 } 16033 } 16034 16035 var placement = data.placement.split('-')[0]; 16036 var _data$offsets = data.offsets, 16037 popper = _data$offsets.popper, 16038 reference = _data$offsets.reference; 16039 16040 var isVertical = ['left', 'right'].indexOf(placement) !== -1; 16041 16042 var len = isVertical ? 'height' : 'width'; 16043 var sideCapitalized = isVertical ? 'Top' : 'Left'; 16044 var side = sideCapitalized.toLowerCase(); 16045 var altSide = isVertical ? 'left' : 'top'; 16046 var opSide = isVertical ? 'bottom' : 'right'; 16047 var arrowElementSize = getOuterSizes(arrowElement)[len]; 16048 16049 // 16050 // extends keepTogether behavior making sure the popper and its 16051 // reference have enough pixels in conjunction 16052 // 16053 16054 // top/left side 16055 if (reference[opSide] - arrowElementSize < popper[side]) { 16056 data.offsets.popper[side] -= popper[side] - (reference[opSide] - arrowElementSize); 16057 } 16058 // bottom/right side 16059 if (reference[side] + arrowElementSize > popper[opSide]) { 16060 data.offsets.popper[side] += reference[side] + arrowElementSize - popper[opSide]; 16061 } 16062 data.offsets.popper = getClientRect(data.offsets.popper); 16063 16064 // compute center of the popper 16065 var center = reference[side] + reference[len] / 2 - arrowElementSize / 2; 16066 16067 // Compute the sideValue using the updated popper offsets 16068 // take popper margin in account because we don't have this info available 16069 var css = getStyleComputedProperty(data.instance.popper); 16070 var popperMarginSide = parseFloat(css['margin' + sideCapitalized], 10); 16071 var popperBorderSide = parseFloat(css['border' + sideCapitalized + 'Width'], 10); 16072 var sideValue = center - data.offsets.popper[side] - popperMarginSide - popperBorderSide; 16073 16074 // prevent arrowElement from being placed not contiguously to its popper 16075 sideValue = Math.max(Math.min(popper[len] - arrowElementSize, sideValue), 0); 16076 16077 data.arrowElement = arrowElement; 16078 data.offsets.arrow = (_data$offsets$arrow = {}, defineProperty(_data$offsets$arrow, side, Math.round(sideValue)), defineProperty(_data$offsets$arrow, altSide, ''), _data$offsets$arrow); 16079 16080 return data; 16081} 16082 16083/** 16084 * Get the opposite placement variation of the given one 16085 * @method 16086 * @memberof Popper.Utils 16087 * @argument {String} placement variation 16088 * @returns {String} flipped placement variation 16089 */ 16090function getOppositeVariation(variation) { 16091 if (variation === 'end') { 16092 return 'start'; 16093 } else if (variation === 'start') { 16094 return 'end'; 16095 } 16096 return variation; 16097} 16098 16099/** 16100 * List of accepted placements to use as values of the `placement` option.<br /> 16101 * Valid placements are: 16102 * - `auto` 16103 * - `top` 16104 * - `right` 16105 * - `bottom` 16106 * - `left` 16107 * 16108 * Each placement can have a variation from this list: 16109 * - `-start` 16110 * - `-end` 16111 * 16112 * Variations are interpreted easily if you think of them as the left to right 16113 * written languages. Horizontally (`top` and `bottom`), `start` is left and `end` 16114 * is right.<br /> 16115 * Vertically (`left` and `right`), `start` is top and `end` is bottom. 16116 * 16117 * Some valid examples are: 16118 * - `top-end` (on top of reference, right aligned) 16119 * - `right-start` (on right of reference, top aligned) 16120 * - `bottom` (on bottom, centered) 16121 * - `auto-end` (on the side with more space available, alignment depends by placement) 16122 * 16123 * @static 16124 * @type {Array} 16125 * @enum {String} 16126 * @readonly 16127 * @method placements 16128 * @memberof Popper 16129 */ 16130var placements = ['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']; 16131 16132// Get rid of `auto` `auto-start` and `auto-end` 16133var validPlacements = placements.slice(3); 16134 16135/** 16136 * Given an initial placement, returns all the subsequent placements 16137 * clockwise (or counter-clockwise). 16138 * 16139 * @method 16140 * @memberof Popper.Utils 16141 * @argument {String} placement - A valid placement (it accepts variations) 16142 * @argument {Boolean} counter - Set to true to walk the placements counterclockwise 16143 * @returns {Array} placements including their variations 16144 */ 16145function clockwise(placement) { 16146 var counter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; 16147 16148 var index = validPlacements.indexOf(placement); 16149 var arr = validPlacements.slice(index + 1).concat(validPlacements.slice(0, index)); 16150 return counter ? arr.reverse() : arr; 16151} 16152 16153var BEHAVIORS = { 16154 FLIP: 'flip', 16155 CLOCKWISE: 'clockwise', 16156 COUNTERCLOCKWISE: 'counterclockwise' 16157}; 16158 16159/** 16160 * @function 16161 * @memberof Modifiers 16162 * @argument {Object} data - The data object generated by update method 16163 * @argument {Object} options - Modifiers configuration and options 16164 * @returns {Object} The data object, properly modified 16165 */ 16166function flip(data, options) { 16167 // if `inner` modifier is enabled, we can't use the `flip` modifier 16168 if (isModifierEnabled(data.instance.modifiers, 'inner')) { 16169 return data; 16170 } 16171 16172 if (data.flipped && data.placement === data.originalPlacement) { 16173 // seems like flip is trying to loop, probably there's not enough space on any of the flippable sides 16174 return data; 16175 } 16176 16177 var boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, options.boundariesElement, data.positionFixed); 16178 16179 var placement = data.placement.split('-')[0]; 16180 var placementOpposite = getOppositePlacement(placement); 16181 var variation = data.placement.split('-')[1] || ''; 16182 16183 var flipOrder = []; 16184 16185 switch (options.behavior) { 16186 case BEHAVIORS.FLIP: 16187 flipOrder = [placement, placementOpposite]; 16188 break; 16189 case BEHAVIORS.CLOCKWISE: 16190 flipOrder = clockwise(placement); 16191 break; 16192 case BEHAVIORS.COUNTERCLOCKWISE: 16193 flipOrder = clockwise(placement, true); 16194 break; 16195 default: 16196 flipOrder = options.behavior; 16197 } 16198 16199 flipOrder.forEach(function (step, index) { 16200 if (placement !== step || flipOrder.length === index + 1) { 16201 return data; 16202 } 16203 16204 placement = data.placement.split('-')[0]; 16205 placementOpposite = getOppositePlacement(placement); 16206 16207 var popperOffsets = data.offsets.popper; 16208 var refOffsets = data.offsets.reference; 16209 16210 // using floor because the reference offsets may contain decimals we are not going to consider here 16211 var floor = Math.floor; 16212 var overlapsRef = placement === 'left' && floor(popperOffsets.right) > floor(refOffsets.left) || placement === 'right' && floor(popperOffsets.left) < floor(refOffsets.right) || placement === 'top' && floor(popperOffsets.bottom) > floor(refOffsets.top) || placement === 'bottom' && floor(popperOffsets.top) < floor(refOffsets.bottom); 16213 16214 var overflowsLeft = floor(popperOffsets.left) < floor(boundaries.left); 16215 var overflowsRight = floor(popperOffsets.right) > floor(boundaries.right); 16216 var overflowsTop = floor(popperOffsets.top) < floor(boundaries.top); 16217 var overflowsBottom = floor(popperOffsets.bottom) > floor(boundaries.bottom); 16218 16219 var overflowsBoundaries = placement === 'left' && overflowsLeft || placement === 'right' && overflowsRight || placement === 'top' && overflowsTop || placement === 'bottom' && overflowsBottom; 16220 16221 // flip the variation if required 16222 var isVertical = ['top', 'bottom'].indexOf(placement) !== -1; 16223 16224 // flips variation if reference element overflows boundaries 16225 var flippedVariationByRef = !!options.flipVariations && (isVertical && variation === 'start' && overflowsLeft || isVertical && variation === 'end' && overflowsRight || !isVertical && variation === 'start' && overflowsTop || !isVertical && variation === 'end' && overflowsBottom); 16226 16227 // flips variation if popper content overflows boundaries 16228 var flippedVariationByContent = !!options.flipVariationsByContent && (isVertical && variation === 'start' && overflowsRight || isVertical && variation === 'end' && overflowsLeft || !isVertical && variation === 'start' && overflowsBottom || !isVertical && variation === 'end' && overflowsTop); 16229 16230 var flippedVariation = flippedVariationByRef || flippedVariationByContent; 16231 16232 if (overlapsRef || overflowsBoundaries || flippedVariation) { 16233 // this boolean to detect any flip loop 16234 data.flipped = true; 16235 16236 if (overlapsRef || overflowsBoundaries) { 16237 placement = flipOrder[index + 1]; 16238 } 16239 16240 if (flippedVariation) { 16241 variation = getOppositeVariation(variation); 16242 } 16243 16244 data.placement = placement + (variation ? '-' + variation : ''); 16245 16246 // this object contains `position`, we want to preserve it along with 16247 // any additional property we may add in the future 16248 data.offsets.popper = _extends({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement)); 16249 16250 data = runModifiers(data.instance.modifiers, data, 'flip'); 16251 } 16252 }); 16253 return data; 16254} 16255 16256/** 16257 * @function 16258 * @memberof Modifiers 16259 * @argument {Object} data - The data object generated by update method 16260 * @argument {Object} options - Modifiers configuration and options 16261 * @returns {Object} The data object, properly modified 16262 */ 16263function keepTogether(data) { 16264 var _data$offsets = data.offsets, 16265 popper = _data$offsets.popper, 16266 reference = _data$offsets.reference; 16267 16268 var placement = data.placement.split('-')[0]; 16269 var floor = Math.floor; 16270 var isVertical = ['top', 'bottom'].indexOf(placement) !== -1; 16271 var side = isVertical ? 'right' : 'bottom'; 16272 var opSide = isVertical ? 'left' : 'top'; 16273 var measurement = isVertical ? 'width' : 'height'; 16274 16275 if (popper[side] < floor(reference[opSide])) { 16276 data.offsets.popper[opSide] = floor(reference[opSide]) - popper[measurement]; 16277 } 16278 if (popper[opSide] > floor(reference[side])) { 16279 data.offsets.popper[opSide] = floor(reference[side]); 16280 } 16281 16282 return data; 16283} 16284 16285/** 16286 * Converts a string containing value + unit into a px value number 16287 * @function 16288 * @memberof {modifiers~offset} 16289 * @private 16290 * @argument {String} str - Value + unit string 16291 * @argument {String} measurement - `height` or `width` 16292 * @argument {Object} popperOffsets 16293 * @argument {Object} referenceOffsets 16294 * @returns {Number|String} 16295 * Value in pixels, or original string if no values were extracted 16296 */ 16297function toValue(str, measurement, popperOffsets, referenceOffsets) { 16298 // separate value from unit 16299 var split = str.match(/((?:\-|\+)?\d*\.?\d*)(.*)/); 16300 var value = +split[1]; 16301 var unit = split[2]; 16302 16303 // If it's not a number it's an operator, I guess 16304 if (!value) { 16305 return str; 16306 } 16307 16308 if (unit.indexOf('%') === 0) { 16309 var element = void 0; 16310 switch (unit) { 16311 case '%p': 16312 element = popperOffsets; 16313 break; 16314 case '%': 16315 case '%r': 16316 default: 16317 element = referenceOffsets; 16318 } 16319 16320 var rect = getClientRect(element); 16321 return rect[measurement] / 100 * value; 16322 } else if (unit === 'vh' || unit === 'vw') { 16323 // if is a vh or vw, we calculate the size based on the viewport 16324 var size = void 0; 16325 if (unit === 'vh') { 16326 size = Math.max(document.documentElement.clientHeight, window.innerHeight || 0); 16327 } else { 16328 size = Math.max(document.documentElement.clientWidth, window.innerWidth || 0); 16329 } 16330 return size / 100 * value; 16331 } else { 16332 // if is an explicit pixel unit, we get rid of the unit and keep the value 16333 // if is an implicit unit, it's px, and we return just the value 16334 return value; 16335 } 16336} 16337 16338/** 16339 * Parse an `offset` string to extrapolate `x` and `y` numeric offsets. 16340 * @function 16341 * @memberof {modifiers~offset} 16342 * @private 16343 * @argument {String} offset 16344 * @argument {Object} popperOffsets 16345 * @argument {Object} referenceOffsets 16346 * @argument {String} basePlacement 16347 * @returns {Array} a two cells array with x and y offsets in numbers 16348 */ 16349function parseOffset(offset, popperOffsets, referenceOffsets, basePlacement) { 16350 var offsets = [0, 0]; 16351 16352 // Use height if placement is left or right and index is 0 otherwise use width 16353 // in this way the first offset will use an axis and the second one 16354 // will use the other one 16355 var useHeight = ['right', 'left'].indexOf(basePlacement) !== -1; 16356 16357 // Split the offset string to obtain a list of values and operands 16358 // The regex addresses values with the plus or minus sign in front (+10, -20, etc) 16359 var fragments = offset.split(/(\+|\-)/).map(function (frag) { 16360 return frag.trim(); 16361 }); 16362 16363 // Detect if the offset string contains a pair of values or a single one 16364 // they could be separated by comma or space 16365 var divider = fragments.indexOf(find(fragments, function (frag) { 16366 return frag.search(/,|\s/) !== -1; 16367 })); 16368 16369 if (fragments[divider] && fragments[divider].indexOf(',') === -1) { 16370 console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.'); 16371 } 16372 16373 // If divider is found, we divide the list of values and operands to divide 16374 // them by ofset X and Y. 16375 var splitRegex = /\s*,\s*|\s+/; 16376 var ops = divider !== -1 ? [fragments.slice(0, divider).concat([fragments[divider].split(splitRegex)[0]]), [fragments[divider].split(splitRegex)[1]].concat(fragments.slice(divider + 1))] : [fragments]; 16377 16378 // Convert the values with units to absolute pixels to allow our computations 16379 ops = ops.map(function (op, index) { 16380 // Most of the units rely on the orientation of the popper 16381 var measurement = (index === 1 ? !useHeight : useHeight) ? 'height' : 'width'; 16382 var mergeWithPrevious = false; 16383 return op 16384 // This aggregates any `+` or `-` sign that aren't considered operators 16385 // e.g.: 10 + +5 => [10, +, +5] 16386 .reduce(function (a, b) { 16387 if (a[a.length - 1] === '' && ['+', '-'].indexOf(b) !== -1) { 16388 a[a.length - 1] = b; 16389 mergeWithPrevious = true; 16390 return a; 16391 } else if (mergeWithPrevious) { 16392 a[a.length - 1] += b; 16393 mergeWithPrevious = false; 16394 return a; 16395 } else { 16396 return a.concat(b); 16397 } 16398 }, []) 16399 // Here we convert the string values into number values (in px) 16400 .map(function (str) { 16401 return toValue(str, measurement, popperOffsets, referenceOffsets); 16402 }); 16403 }); 16404 16405 // Loop trough the offsets arrays and execute the operations 16406 ops.forEach(function (op, index) { 16407 op.forEach(function (frag, index2) { 16408 if (isNumeric(frag)) { 16409 offsets[index] += frag * (op[index2 - 1] === '-' ? -1 : 1); 16410 } 16411 }); 16412 }); 16413 return offsets; 16414} 16415 16416/** 16417 * @function 16418 * @memberof Modifiers 16419 * @argument {Object} data - The data object generated by update method 16420 * @argument {Object} options - Modifiers configuration and options 16421 * @argument {Number|String} options.offset=0 16422 * The offset value as described in the modifier description 16423 * @returns {Object} The data object, properly modified 16424 */ 16425function offset(data, _ref) { 16426 var offset = _ref.offset; 16427 var placement = data.placement, 16428 _data$offsets = data.offsets, 16429 popper = _data$offsets.popper, 16430 reference = _data$offsets.reference; 16431 16432 var basePlacement = placement.split('-')[0]; 16433 16434 var offsets = void 0; 16435 if (isNumeric(+offset)) { 16436 offsets = [+offset, 0]; 16437 } else { 16438 offsets = parseOffset(offset, popper, reference, basePlacement); 16439 } 16440 16441 if (basePlacement === 'left') { 16442 popper.top += offsets[0]; 16443 popper.left -= offsets[1]; 16444 } else if (basePlacement === 'right') { 16445 popper.top += offsets[0]; 16446 popper.left += offsets[1]; 16447 } else if (basePlacement === 'top') { 16448 popper.left += offsets[0]; 16449 popper.top -= offsets[1]; 16450 } else if (basePlacement === 'bottom') { 16451 popper.left += offsets[0]; 16452 popper.top += offsets[1]; 16453 } 16454 16455 data.popper = popper; 16456 return data; 16457} 16458 16459/** 16460 * @function 16461 * @memberof Modifiers 16462 * @argument {Object} data - The data object generated by `update` method 16463 * @argument {Object} options - Modifiers configuration and options 16464 * @returns {Object} The data object, properly modified 16465 */ 16466function preventOverflow(data, options) { 16467 var boundariesElement = options.boundariesElement || getOffsetParent(data.instance.popper); 16468 16469 // If offsetParent is the reference element, we really want to 16470 // go one step up and use the next offsetParent as reference to 16471 // avoid to make this modifier completely useless and look like broken 16472 if (data.instance.reference === boundariesElement) { 16473 boundariesElement = getOffsetParent(boundariesElement); 16474 } 16475 16476 // NOTE: DOM access here 16477 // resets the popper's position so that the document size can be calculated excluding 16478 // the size of the popper element itself 16479 var transformProp = getSupportedPropertyName('transform'); 16480 var popperStyles = data.instance.popper.style; // assignment to help minification 16481 var top = popperStyles.top, 16482 left = popperStyles.left, 16483 transform = popperStyles[transformProp]; 16484 16485 popperStyles.top = ''; 16486 popperStyles.left = ''; 16487 popperStyles[transformProp] = ''; 16488 16489 var boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, boundariesElement, data.positionFixed); 16490 16491 // NOTE: DOM access here 16492 // restores the original style properties after the offsets have been computed 16493 popperStyles.top = top; 16494 popperStyles.left = left; 16495 popperStyles[transformProp] = transform; 16496 16497 options.boundaries = boundaries; 16498 16499 var order = options.priority; 16500 var popper = data.offsets.popper; 16501 16502 var check = { 16503 primary: function primary(placement) { 16504 var value = popper[placement]; 16505 if (popper[placement] < boundaries[placement] && !options.escapeWithReference) { 16506 value = Math.max(popper[placement], boundaries[placement]); 16507 } 16508 return defineProperty({}, placement, value); 16509 }, 16510 secondary: function secondary(placement) { 16511 var mainSide = placement === 'right' ? 'left' : 'top'; 16512 var value = popper[mainSide]; 16513 if (popper[placement] > boundaries[placement] && !options.escapeWithReference) { 16514 value = Math.min(popper[mainSide], boundaries[placement] - (placement === 'right' ? popper.width : popper.height)); 16515 } 16516 return defineProperty({}, mainSide, value); 16517 } 16518 }; 16519 16520 order.forEach(function (placement) { 16521 var side = ['left', 'top'].indexOf(placement) !== -1 ? 'primary' : 'secondary'; 16522 popper = _extends({}, popper, check[side](placement)); 16523 }); 16524 16525 data.offsets.popper = popper; 16526 16527 return data; 16528} 16529 16530/** 16531 * @function 16532 * @memberof Modifiers 16533 * @argument {Object} data - The data object generated by `update` method 16534 * @argument {Object} options - Modifiers configuration and options 16535 * @returns {Object} The data object, properly modified 16536 */ 16537function shift(data) { 16538 var placement = data.placement; 16539 var basePlacement = placement.split('-')[0]; 16540 var shiftvariation = placement.split('-')[1]; 16541 16542 // if shift shiftvariation is specified, run the modifier 16543 if (shiftvariation) { 16544 var _data$offsets = data.offsets, 16545 reference = _data$offsets.reference, 16546 popper = _data$offsets.popper; 16547 16548 var isVertical = ['bottom', 'top'].indexOf(basePlacement) !== -1; 16549 var side = isVertical ? 'left' : 'top'; 16550 var measurement = isVertical ? 'width' : 'height'; 16551 16552 var shiftOffsets = { 16553 start: defineProperty({}, side, reference[side]), 16554 end: defineProperty({}, side, reference[side] + reference[measurement] - popper[measurement]) 16555 }; 16556 16557 data.offsets.popper = _extends({}, popper, shiftOffsets[shiftvariation]); 16558 } 16559 16560 return data; 16561} 16562 16563/** 16564 * @function 16565 * @memberof Modifiers 16566 * @argument {Object} data - The data object generated by update method 16567 * @argument {Object} options - Modifiers configuration and options 16568 * @returns {Object} The data object, properly modified 16569 */ 16570function hide(data) { 16571 if (!isModifierRequired(data.instance.modifiers, 'hide', 'preventOverflow')) { 16572 return data; 16573 } 16574 16575 var refRect = data.offsets.reference; 16576 var bound = find(data.instance.modifiers, function (modifier) { 16577 return modifier.name === 'preventOverflow'; 16578 }).boundaries; 16579 16580 if (refRect.bottom < bound.top || refRect.left > bound.right || refRect.top > bound.bottom || refRect.right < bound.left) { 16581 // Avoid unnecessary DOM access if visibility hasn't changed 16582 if (data.hide === true) { 16583 return data; 16584 } 16585 16586 data.hide = true; 16587 data.attributes['x-out-of-boundaries'] = ''; 16588 } else { 16589 // Avoid unnecessary DOM access if visibility hasn't changed 16590 if (data.hide === false) { 16591 return data; 16592 } 16593 16594 data.hide = false; 16595 data.attributes['x-out-of-boundaries'] = false; 16596 } 16597 16598 return data; 16599} 16600 16601/** 16602 * @function 16603 * @memberof Modifiers 16604 * @argument {Object} data - The data object generated by `update` method 16605 * @argument {Object} options - Modifiers configuration and options 16606 * @returns {Object} The data object, properly modified 16607 */ 16608function inner(data) { 16609 var placement = data.placement; 16610 var basePlacement = placement.split('-')[0]; 16611 var _data$offsets = data.offsets, 16612 popper = _data$offsets.popper, 16613 reference = _data$offsets.reference; 16614 16615 var isHoriz = ['left', 'right'].indexOf(basePlacement) !== -1; 16616 16617 var subtractLength = ['top', 'left'].indexOf(basePlacement) === -1; 16618 16619 popper[isHoriz ? 'left' : 'top'] = reference[basePlacement] - (subtractLength ? popper[isHoriz ? 'width' : 'height'] : 0); 16620 16621 data.placement = getOppositePlacement(placement); 16622 data.offsets.popper = getClientRect(popper); 16623 16624 return data; 16625} 16626 16627/** 16628 * Modifier function, each modifier can have a function of this type assigned 16629 * to its `fn` property.<br /> 16630 * These functions will be called on each update, this means that you must 16631 * make sure they are performant enough to avoid performance bottlenecks. 16632 * 16633 * @function ModifierFn 16634 * @argument {dataObject} data - The data object generated by `update` method 16635 * @argument {Object} options - Modifiers configuration and options 16636 * @returns {dataObject} The data object, properly modified 16637 */ 16638 16639/** 16640 * Modifiers are plugins used to alter the behavior of your poppers.<br /> 16641 * Popper.js uses a set of 9 modifiers to provide all the basic functionalities 16642 * needed by the library. 16643 * 16644 * Usually you don't want to override the `order`, `fn` and `onLoad` props. 16645 * All the other properties are configurations that could be tweaked. 16646 * @namespace modifiers 16647 */ 16648var modifiers = { 16649 /** 16650 * Modifier used to shift the popper on the start or end of its reference 16651 * element.<br /> 16652 * It will read the variation of the `placement` property.<br /> 16653 * It can be one either `-end` or `-start`. 16654 * @memberof modifiers 16655 * @inner 16656 */ 16657 shift: { 16658 /** @prop {number} order=100 - Index used to define the order of execution */ 16659 order: 100, 16660 /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ 16661 enabled: true, 16662 /** @prop {ModifierFn} */ 16663 fn: shift 16664 }, 16665 16666 /** 16667 * The `offset` modifier can shift your popper on both its axis. 16668 * 16669 * It accepts the following units: 16670 * - `px` or unit-less, interpreted as pixels 16671 * - `%` or `%r`, percentage relative to the length of the reference element 16672 * - `%p`, percentage relative to the length of the popper element 16673 * - `vw`, CSS viewport width unit 16674 * - `vh`, CSS viewport height unit 16675 * 16676 * For length is intended the main axis relative to the placement of the popper.<br /> 16677 * This means that if the placement is `top` or `bottom`, the length will be the 16678 * `width`. In case of `left` or `right`, it will be the `height`. 16679 * 16680 * You can provide a single value (as `Number` or `String`), or a pair of values 16681 * as `String` divided by a comma or one (or more) white spaces.<br /> 16682 * The latter is a deprecated method because it leads to confusion and will be 16683 * removed in v2.<br /> 16684 * Additionally, it accepts additions and subtractions between different units. 16685 * Note that multiplications and divisions aren't supported. 16686 * 16687 * Valid examples are: 16688 * ``` 16689 * 10 16690 * '10%' 16691 * '10, 10' 16692 * '10%, 10' 16693 * '10 + 10%' 16694 * '10 - 5vh + 3%' 16695 * '-10px + 5vh, 5px - 6%' 16696 * ``` 16697 * > **NB**: If you desire to apply offsets to your poppers in a way that may make them overlap 16698 * > with their reference element, unfortunately, you will have to disable the `flip` modifier. 16699 * > You can read more on this at this [issue](https://github.com/FezVrasta/popper.js/issues/373). 16700 * 16701 * @memberof modifiers 16702 * @inner 16703 */ 16704 offset: { 16705 /** @prop {number} order=200 - Index used to define the order of execution */ 16706 order: 200, 16707 /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ 16708 enabled: true, 16709 /** @prop {ModifierFn} */ 16710 fn: offset, 16711 /** @prop {Number|String} offset=0 16712 * The offset value as described in the modifier description 16713 */ 16714 offset: 0 16715 }, 16716 16717 /** 16718 * Modifier used to prevent the popper from being positioned outside the boundary. 16719 * 16720 * A scenario exists where the reference itself is not within the boundaries.<br /> 16721 * We can say it has "escaped the boundaries" â or just "escaped".<br /> 16722 * In this case we need to decide whether the popper should either: 16723 * 16724 * - detach from the reference and remain "trapped" in the boundaries, or 16725 * - if it should ignore the boundary and "escape with its reference" 16726 * 16727 * When `escapeWithReference` is set to`true` and reference is completely 16728 * outside its boundaries, the popper will overflow (or completely leave) 16729 * the boundaries in order to remain attached to the edge of the reference. 16730 * 16731 * @memberof modifiers 16732 * @inner 16733 */ 16734 preventOverflow: { 16735 /** @prop {number} order=300 - Index used to define the order of execution */ 16736 order: 300, 16737 /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ 16738 enabled: true, 16739 /** @prop {ModifierFn} */ 16740 fn: preventOverflow, 16741 /** 16742 * @prop {Array} [priority=['left','right','top','bottom']] 16743 * Popper will try to prevent overflow following these priorities by default, 16744 * then, it could overflow on the left and on top of the `boundariesElement` 16745 */ 16746 priority: ['left', 'right', 'top', 'bottom'], 16747 /** 16748 * @prop {number} padding=5 16749 * Amount of pixel used to define a minimum distance between the boundaries 16750 * and the popper. This makes sure the popper always has a little padding 16751 * between the edges of its container 16752 */ 16753 padding: 5, 16754 /** 16755 * @prop {String|HTMLElement} boundariesElement='scrollParent' 16756 * Boundaries used by the modifier. Can be `scrollParent`, `window`, 16757 * `viewport` or any DOM element. 16758 */ 16759 boundariesElement: 'scrollParent' 16760 }, 16761 16762 /** 16763 * Modifier used to make sure the reference and its popper stay near each other 16764 * without leaving any gap between the two. Especially useful when the arrow is 16765 * enabled and you want to ensure that it points to its reference element. 16766 * It cares only about the first axis. You can still have poppers with margin 16767 * between the popper and its reference element. 16768 * @memberof modifiers 16769 * @inner 16770 */ 16771 keepTogether: { 16772 /** @prop {number} order=400 - Index used to define the order of execution */ 16773 order: 400, 16774 /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ 16775 enabled: true, 16776 /** @prop {ModifierFn} */ 16777 fn: keepTogether 16778 }, 16779 16780 /** 16781 * This modifier is used to move the `arrowElement` of the popper to make 16782 * sure it is positioned between the reference element and its popper element. 16783 * It will read the outer size of the `arrowElement` node to detect how many 16784 * pixels of conjunction are needed. 16785 * 16786 * It has no effect if no `arrowElement` is provided. 16787 * @memberof modifiers 16788 * @inner 16789 */ 16790 arrow: { 16791 /** @prop {number} order=500 - Index used to define the order of execution */ 16792 order: 500, 16793 /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ 16794 enabled: true, 16795 /** @prop {ModifierFn} */ 16796 fn: arrow, 16797 /** @prop {String|HTMLElement} element='[x-arrow]' - Selector or node used as arrow */ 16798 element: '[x-arrow]' 16799 }, 16800 16801 /** 16802 * Modifier used to flip the popper's placement when it starts to overlap its 16803 * reference element. 16804 * 16805 * Requires the `preventOverflow` modifier before it in order to work. 16806 * 16807 * **NOTE:** this modifier will interrupt the current update cycle and will 16808 * restart it if it detects the need to flip the placement. 16809 * @memberof modifiers 16810 * @inner 16811 */ 16812 flip: { 16813 /** @prop {number} order=600 - Index used to define the order of execution */ 16814 order: 600, 16815 /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ 16816 enabled: true, 16817 /** @prop {ModifierFn} */ 16818 fn: flip, 16819 /** 16820 * @prop {String|Array} behavior='flip' 16821 * The behavior used to change the popper's placement. It can be one of 16822 * `flip`, `clockwise`, `counterclockwise` or an array with a list of valid 16823 * placements (with optional variations) 16824 */ 16825 behavior: 'flip', 16826 /** 16827 * @prop {number} padding=5 16828 * The popper will flip if it hits the edges of the `boundariesElement` 16829 */ 16830 padding: 5, 16831 /** 16832 * @prop {String|HTMLElement} boundariesElement='viewport' 16833 * The element which will define the boundaries of the popper position. 16834 * The popper will never be placed outside of the defined boundaries 16835 * (except if `keepTogether` is enabled) 16836 */ 16837 boundariesElement: 'viewport', 16838 /** 16839 * @prop {Boolean} flipVariations=false 16840 * The popper will switch placement variation between `-start` and `-end` when 16841 * the reference element overlaps its boundaries. 16842 * 16843 * The original placement should have a set variation. 16844 */ 16845 flipVariations: false, 16846 /** 16847 * @prop {Boolean} flipVariationsByContent=false 16848 * The popper will switch placement variation between `-start` and `-end` when 16849 * the popper element overlaps its reference boundaries. 16850 * 16851 * The original placement should have a set variation. 16852 */ 16853 flipVariationsByContent: false 16854 }, 16855 16856 /** 16857 * Modifier used to make the popper flow toward the inner of the reference element. 16858 * By default, when this modifier is disabled, the popper will be placed outside 16859 * the reference element. 16860 * @memberof modifiers 16861 * @inner 16862 */ 16863 inner: { 16864 /** @prop {number} order=700 - Index used to define the order of execution */ 16865 order: 700, 16866 /** @prop {Boolean} enabled=false - Whether the modifier is enabled or not */ 16867 enabled: false, 16868 /** @prop {ModifierFn} */ 16869 fn: inner 16870 }, 16871 16872 /** 16873 * Modifier used to hide the popper when its reference element is outside of the 16874 * popper boundaries. It will set a `x-out-of-boundaries` attribute which can 16875 * be used to hide with a CSS selector the popper when its reference is 16876 * out of boundaries. 16877 * 16878 * Requires the `preventOverflow` modifier before it in order to work. 16879 * @memberof modifiers 16880 * @inner 16881 */ 16882 hide: { 16883 /** @prop {number} order=800 - Index used to define the order of execution */ 16884 order: 800, 16885 /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ 16886 enabled: true, 16887 /** @prop {ModifierFn} */ 16888 fn: hide 16889 }, 16890 16891 /** 16892 * Computes the style that will be applied to the popper element to gets 16893 * properly positioned. 16894 * 16895 * Note that this modifier will not touch the DOM, it just prepares the styles 16896 * so that `applyStyle` modifier can apply it. This separation is useful 16897 * in case you need to replace `applyStyle` with a custom implementation. 16898 * 16899 * This modifier has `850` as `order` value to maintain backward compatibility 16900 * with previous versions of Popper.js. Expect the modifiers ordering method 16901 * to change in future major versions of the library. 16902 * 16903 * @memberof modifiers 16904 * @inner 16905 */ 16906 computeStyle: { 16907 /** @prop {number} order=850 - Index used to define the order of execution */ 16908 order: 850, 16909 /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ 16910 enabled: true, 16911 /** @prop {ModifierFn} */ 16912 fn: computeStyle, 16913 /** 16914 * @prop {Boolean} gpuAcceleration=true 16915 * If true, it uses the CSS 3D transformation to position the popper. 16916 * Otherwise, it will use the `top` and `left` properties 16917 */ 16918 gpuAcceleration: true, 16919 /** 16920 * @prop {string} [x='bottom'] 16921 * Where to anchor the X axis (`bottom` or `top`). AKA X offset origin. 16922 * Change this if your popper should grow in a direction different from `bottom` 16923 */ 16924 x: 'bottom', 16925 /** 16926 * @prop {string} [x='left'] 16927 * Where to anchor the Y axis (`left` or `right`). AKA Y offset origin. 16928 * Change this if your popper should grow in a direction different from `right` 16929 */ 16930 y: 'right' 16931 }, 16932 16933 /** 16934 * Applies the computed styles to the popper element. 16935 * 16936 * All the DOM manipulations are limited to this modifier. This is useful in case 16937 * you want to integrate Popper.js inside a framework or view library and you 16938 * want to delegate all the DOM manipulations to it. 16939 * 16940 * Note that if you disable this modifier, you must make sure the popper element 16941 * has its position set to `absolute` before Popper.js can do its work! 16942 * 16943 * Just disable this modifier and define your own to achieve the desired effect. 16944 * 16945 * @memberof modifiers 16946 * @inner 16947 */ 16948 applyStyle: { 16949 /** @prop {number} order=900 - Index used to define the order of execution */ 16950 order: 900, 16951 /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ 16952 enabled: true, 16953 /** @prop {ModifierFn} */ 16954 fn: applyStyle, 16955 /** @prop {Function} */ 16956 onLoad: applyStyleOnLoad, 16957 /** 16958 * @deprecated since version 1.10.0, the property moved to `computeStyle` modifier 16959 * @prop {Boolean} gpuAcceleration=true 16960 * If true, it uses the CSS 3D transformation to position the popper. 16961 * Otherwise, it will use the `top` and `left` properties 16962 */ 16963 gpuAcceleration: undefined 16964 } 16965}; 16966 16967/** 16968 * The `dataObject` is an object containing all the information used by Popper.js. 16969 * This object is passed to modifiers and to the `onCreate` and `onUpdate` callbacks. 16970 * @name dataObject 16971 * @property {Object} data.instance The Popper.js instance 16972 * @property {String} data.placement Placement applied to popper 16973 * @property {String} data.originalPlacement Placement originally defined on init 16974 * @property {Boolean} data.flipped True if popper has been flipped by flip modifier 16975 * @property {Boolean} data.hide True if the reference element is out of boundaries, useful to know when to hide the popper 16976 * @property {HTMLElement} data.arrowElement Node used as arrow by arrow modifier 16977 * @property {Object} data.styles Any CSS property defined here will be applied to the popper. It expects the JavaScript nomenclature (eg. `marginBottom`) 16978 * @property {Object} data.arrowStyles Any CSS property defined here will be applied to the popper arrow. It expects the JavaScript nomenclature (eg. `marginBottom`) 16979 * @property {Object} data.boundaries Offsets of the popper boundaries 16980 * @property {Object} data.offsets The measurements of popper, reference and arrow elements 16981 * @property {Object} data.offsets.popper `top`, `left`, `width`, `height` values 16982 * @property {Object} data.offsets.reference `top`, `left`, `width`, `height` values 16983 * @property {Object} data.offsets.arrow] `top` and `left` offsets, only one of them will be different from 0 16984 */ 16985 16986/** 16987 * Default options provided to Popper.js constructor.<br /> 16988 * These can be overridden using the `options` argument of Popper.js.<br /> 16989 * To override an option, simply pass an object with the same 16990 * structure of the `options` object, as the 3rd argument. For example: 16991 * ``` 16992 * new Popper(ref, pop, { 16993 * modifiers: { 16994 * preventOverflow: { enabled: false } 16995 * } 16996 * }) 16997 * ``` 16998 * @type {Object} 16999 * @static 17000 * @memberof Popper 17001 */ 17002var Defaults = { 17003 /** 17004 * Popper's placement. 17005 * @prop {Popper.placements} placement='bottom' 17006 */ 17007 placement: 'bottom', 17008 17009 /** 17010 * Set this to true if you want popper to position it self in 'fixed' mode 17011 * @prop {Boolean} positionFixed=false 17012 */ 17013 positionFixed: false, 17014 17015 /** 17016 * Whether events (resize, scroll) are initially enabled. 17017 * @prop {Boolean} eventsEnabled=true 17018 */ 17019 eventsEnabled: true, 17020 17021 /** 17022 * Set to true if you want to automatically remove the popper when 17023 * you call the `destroy` method. 17024 * @prop {Boolean} removeOnDestroy=false 17025 */ 17026 removeOnDestroy: false, 17027 17028 /** 17029 * Callback called when the popper is created.<br /> 17030 * By default, it is set to no-op.<br /> 17031 * Access Popper.js instance with `data.instance`. 17032 * @prop {onCreate} 17033 */ 17034 onCreate: function onCreate() {}, 17035 17036 /** 17037 * Callback called when the popper is updated. This callback is not called 17038 * on the initialization/creation of the popper, but only on subsequent 17039 * updates.<br /> 17040 * By default, it is set to no-op.<br /> 17041 * Access Popper.js instance with `data.instance`. 17042 * @prop {onUpdate} 17043 */ 17044 onUpdate: function onUpdate() {}, 17045 17046 /** 17047 * List of modifiers used to modify the offsets before they are applied to the popper. 17048 * They provide most of the functionalities of Popper.js. 17049 * @prop {modifiers} 17050 */ 17051 modifiers: modifiers 17052}; 17053 17054/** 17055 * @callback onCreate 17056 * @param {dataObject} data 17057 */ 17058 17059/** 17060 * @callback onUpdate 17061 * @param {dataObject} data 17062 */ 17063 17064// Utils 17065// Methods 17066var Popper = function () { 17067 /** 17068 * Creates a new Popper.js instance. 17069 * @class Popper 17070 * @param {Element|referenceObject} reference - The reference element used to position the popper 17071 * @param {Element} popper - The HTML / XML element used as the popper 17072 * @param {Object} options - Your custom options to override the ones defined in [Defaults](#defaults) 17073 * @return {Object} instance - The generated Popper.js instance 17074 */ 17075 function Popper(reference, popper) { 17076 var _this = this; 17077 17078 var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; 17079 classCallCheck(this, Popper); 17080 17081 this.scheduleUpdate = function () { 17082 return requestAnimationFrame(_this.update); 17083 }; 17084 17085 // make update() debounced, so that it only runs at most once-per-tick 17086 this.update = debounce(this.update.bind(this)); 17087 17088 // with {} we create a new object with the options inside it 17089 this.options = _extends({}, Popper.Defaults, options); 17090 17091 // init state 17092 this.state = { 17093 isDestroyed: false, 17094 isCreated: false, 17095 scrollParents: [] 17096 }; 17097 17098 // get reference and popper elements (allow jQuery wrappers) 17099 this.reference = reference && reference.jquery ? reference[0] : reference; 17100 this.popper = popper && popper.jquery ? popper[0] : popper; 17101 17102 // Deep merge modifiers options 17103 this.options.modifiers = {}; 17104 Object.keys(_extends({}, Popper.Defaults.modifiers, options.modifiers)).forEach(function (name) { 17105 _this.options.modifiers[name] = _extends({}, Popper.Defaults.modifiers[name] || {}, options.modifiers ? options.modifiers[name] : {}); 17106 }); 17107 17108 // Refactoring modifiers' list (Object => Array) 17109 this.modifiers = Object.keys(this.options.modifiers).map(function (name) { 17110 return _extends({ 17111 name: name 17112 }, _this.options.modifiers[name]); 17113 }) 17114 // sort the modifiers by order 17115 .sort(function (a, b) { 17116 return a.order - b.order; 17117 }); 17118 17119 // modifiers have the ability to execute arbitrary code when Popper.js get inited 17120 // such code is executed in the same order of its modifier 17121 // they could add new properties to their options configuration 17122 // BE AWARE: don't add options to `options.modifiers.name` but to `modifierOptions`! 17123 this.modifiers.forEach(function (modifierOptions) { 17124 if (modifierOptions.enabled && isFunction(modifierOptions.onLoad)) { 17125 modifierOptions.onLoad(_this.reference, _this.popper, _this.options, modifierOptions, _this.state); 17126 } 17127 }); 17128 17129 // fire the first update to position the popper in the right place 17130 this.update(); 17131 17132 var eventsEnabled = this.options.eventsEnabled; 17133 if (eventsEnabled) { 17134 // setup event listeners, they will take care of update the position in specific situations 17135 this.enableEventListeners(); 17136 } 17137 17138 this.state.eventsEnabled = eventsEnabled; 17139 } 17140 17141 // We can't use class properties because they don't get listed in the 17142 // class prototype and break stuff like Sinon stubs 17143 17144 17145 createClass(Popper, [{ 17146 key: 'update', 17147 value: function update$$1() { 17148 return update.call(this); 17149 } 17150 }, { 17151 key: 'destroy', 17152 value: function destroy$$1() { 17153 return destroy.call(this); 17154 } 17155 }, { 17156 key: 'enableEventListeners', 17157 value: function enableEventListeners$$1() { 17158 return enableEventListeners.call(this); 17159 } 17160 }, { 17161 key: 'disableEventListeners', 17162 value: function disableEventListeners$$1() { 17163 return disableEventListeners.call(this); 17164 } 17165 17166 /** 17167 * Schedules an update. It will run on the next UI update available. 17168 * @method scheduleUpdate 17169 * @memberof Popper 17170 */ 17171 17172 /** 17173 * Collection of utilities useful when writing custom modifiers. 17174 * Starting from version 1.7, this method is available only if you 17175 * include `popper-utils.js` before `popper.js`. 17176 * 17177 * **DEPRECATION**: This way to access PopperUtils is deprecated 17178 * and will be removed in v2! Use the PopperUtils module directly instead. 17179 * Due to the high instability of the methods contained in Utils, we can't 17180 * guarantee them to follow semver. Use them at your own risk! 17181 * @static 17182 * @private 17183 * @type {Object} 17184 * @deprecated since version 1.8 17185 * @member Utils 17186 * @memberof Popper 17187 */ 17188 17189 }]); 17190 return Popper; 17191}(); 17192 17193/** 17194 * The `referenceObject` is an object that provides an interface compatible with Popper.js 17195 * and lets you use it as replacement of a real DOM node.<br /> 17196 * You can use this method to position a popper relatively to a set of coordinates 17197 * in case you don't have a DOM node to use as reference. 17198 * 17199 * ``` 17200 * new Popper(referenceObject, popperNode); 17201 * ``` 17202 * 17203 * NB: This feature isn't supported in Internet Explorer 10. 17204 * @name referenceObject 17205 * @property {Function} data.getBoundingClientRect 17206 * A function that returns a set of coordinates compatible with the native `getBoundingClientRect` method. 17207 * @property {number} data.clientWidth 17208 * An ES6 getter that will return the width of the virtual reference element. 17209 * @property {number} data.clientHeight 17210 * An ES6 getter that will return the height of the virtual reference element. 17211 */ 17212 17213Popper.Utils = (typeof window !== 'undefined' ? window : global).PopperUtils; 17214Popper.placements = placements; 17215Popper.Defaults = Defaults; 17216 17217/* harmony default export */ __webpack_exports__["default"] = (Popper); 17218//# sourceMappingURL=popper.js.map 17219/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js"))) 17220 17221/***/ }), 17222
vendor: 72,976 bytes, lines 17223-17513
17223/***/ "./node_modules/velocity-animate/velocity.js": 17224/*!***************************************************!*\ 17225 !*** ./node_modules/velocity-animate/velocity.js ***! 17226 \***************************************************/ 17227/*! no static exports found */ 17228/***/ (function(module, exports, __webpack_require__) { 17229 17230var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! VelocityJS.org (1.5.2). (C) 2014 Julian Shapiro. MIT @license: en.wikipedia.org/wiki/MIT_License */ 17231 17232/************************* 17233 Velocity jQuery Shim 17234 *************************/ 17235 17236/*! VelocityJS.org jQuery Shim (1.0.1). (C) 2014 The jQuery Foundation. MIT @license: en.wikipedia.org/wiki/MIT_License. */ 17237(function(window){"use strict";if(window.jQuery){return} 17238var $=function(selector,context){return new $.fn.init(selector,context)};$.isWindow=function(obj){return obj&&obj===obj.window};$.type=function(obj){if(!obj){return obj+""} 17239return typeof obj==="object"||typeof obj==="function"?class2type[toString.call(obj)]||"object":typeof obj};$.isArray=Array.isArray||function(obj){return $.type(obj)==="array"};function isArraylike(obj){var length=obj.length,type=$.type(obj);if(type==="function"||$.isWindow(obj)){return!1} 17240if(obj.nodeType===1&&length){return!0} 17241return type==="array"||length===0||typeof length==="number"&&length>0&&length-1 in obj} 17242$.isPlainObject=function(obj){var key;if(!obj||$.type(obj)!=="object"||obj.nodeType||$.isWindow(obj)){return!1} 17243try{if(obj.constructor&&!hasOwn.call(obj,"constructor")&&!hasOwn.call(obj.constructor.prototype,"isPrototypeOf")){return!1}}catch(e){return!1} 17244for(key in obj){} 17245return key===undefined||hasOwn.call(obj,key)};$.each=function(obj,callback,args){var value,i=0,length=obj.length,isArray=isArraylike(obj);if(args){if(isArray){for(;i<length;i++){value=callback.apply(obj[i],args);if(value===!1){break}}}else{for(i in obj){if(!obj.hasOwnProperty(i)){continue} 17246value=callback.apply(obj[i],args);if(value===!1){break}}}}else{if(isArray){for(;i<length;i++){value=callback.call(obj[i],i,obj[i]);if(value===!1){break}}}else{for(i in obj){if(!obj.hasOwnProperty(i)){continue} 17247value=callback.call(obj[i],i,obj[i]);if(value===!1){break}}}} 17248return obj};$.data=function(node,key,value){if(value===undefined){var getId=node[$.expando],store=getId&&cache[getId];if(key===undefined){return store}else if(store){if(key in store){return store[key]}}}else if(key!==undefined){var setId=node[$.expando]||(node[$.expando]=++$.uuid);cache[setId]=cache[setId]||{};cache[setId][key]=value;return value}};$.removeData=function(node,keys){var id=node[$.expando],store=id&&cache[id];if(store){if(!keys){delete cache[id]}else{$.each(keys,function(_,key){delete store[key]})}}};$.extend=function(){var src,copyIsArray,copy,name,options,clone,target=arguments[0]||{},i=1,length=arguments.length,deep=!1;if(typeof target==="boolean"){deep=target;target=arguments[i]||{};i++} 17249if(typeof target!=="object"&&$.type(target)!=="function"){target={}} 17250if(i===length){target=this;i--} 17251for(;i<length;i++){if(options=arguments[i]){for(name in options){if(!options.hasOwnProperty(name)){continue} 17252src=target[name];copy=options[name];if(target===copy){continue} 17253if(deep&©&&($.isPlainObject(copy)||(copyIsArray=$.isArray(copy)))){if(copyIsArray){copyIsArray=!1;clone=src&&$.isArray(src)?src:[]}else{clone=src&&$.isPlainObject(src)?src:{}} 17254target[name]=$.extend(deep,clone,copy)}else if(copy!==undefined){target[name]=copy}}}} 17255return target};$.queue=function(elem,type,data){function $makeArray(arr,results){var ret=results||[];if(arr){if(isArraylike(Object(arr))){(function(first,second){var len=+second.length,j=0,i=first.length;while(j<len){first[i++]=second[j++]} 17256if(len!==len){while(second[j]!==undefined){first[i++]=second[j++]}} 17257first.length=i;return first})(ret,typeof arr==="string"?[arr]:arr)}else{[].push.call(ret,arr)}} 17258return ret} 17259if(!elem){return} 17260type=(type||"fx")+"queue";var q=$.data(elem,type);if(!data){return q||[]} 17261if(!q||$.isArray(data)){q=$.data(elem,type,$makeArray(data))}else{q.push(data)} 17262return q};$.dequeue=function(elems,type){$.each(elems.nodeType?[elems]:elems,function(i,elem){type=type||"fx";var queue=$.queue(elem,type),fn=queue.shift();if(fn==="inprogress"){fn=queue.shift()} 17263if(fn){if(type==="fx"){queue.unshift("inprogress")} 17264fn.call(elem,function(){$.dequeue(elem,type)})}})};$.fn=$.prototype={init:function(selector){if(selector.nodeType){this[0]=selector;return this}else{throw new Error("Not a DOM node.")}},offset:function(){var box=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:box.top+(window.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:box.left+(window.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){function offsetParentFn(elem){var offsetParent=elem.offsetParent;while(offsetParent&&offsetParent.nodeName.toLowerCase()!=="html"&&offsetParent.style&&offsetParent.style.position.toLowerCase()==="static"){offsetParent=offsetParent.offsetParent} 17265return offsetParent||document} 17266var elem=this[0],offsetParent=offsetParentFn(elem),offset=this.offset(),parentOffset=/^(?:body|html)$/i.test(offsetParent.nodeName)?{top:0,left:0}:$(offsetParent).offset();offset.top-=parseFloat(elem.style.marginTop)||0;offset.left-=parseFloat(elem.style.marginLeft)||0;if(offsetParent.style){parentOffset.top+=parseFloat(offsetParent.style.borderTopWidth)||0;parentOffset.left+=parseFloat(offsetParent.style.borderLeftWidth)||0} 17267return{top:offset.top-parentOffset.top,left:offset.left-parentOffset.left}}};var cache={};$.expando="velocity"+new Date().getTime();$.uuid=0;var class2type={},hasOwn=class2type.hasOwnProperty,toString=class2type.toString;var types="Boolean Number String Function Array Date RegExp Object Error".split(" ");for(var i=0;i<types.length;i++){class2type["[object "+types[i]+"]"]=types[i].toLowerCase()} 17268$.fn.init.prototype=$.fn;window.Velocity={Utilities:$}})(window);(function(factory){"use strict";if(!0&&typeof module.exports==="object"){module.exports=factory()}else if(!0){!(__WEBPACK_AMD_DEFINE_FACTORY__=(factory),__WEBPACK_AMD_DEFINE_RESULT__=(typeof __WEBPACK_AMD_DEFINE_FACTORY__==='function'?(__WEBPACK_AMD_DEFINE_FACTORY__.call(exports,__webpack_require__,exports,module)):__WEBPACK_AMD_DEFINE_FACTORY__),__WEBPACK_AMD_DEFINE_RESULT__!==undefined&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}else{}})(function(){"use strict";return function(global,window,document,undefined){var IE=function(){if(document.documentMode){return document.documentMode}else{for(var i=7;i>4;i--){var div=document.createElement("div");div.innerHTML="<!--[if IE "+i+"]><span></span><![endif]-->";if(div.getElementsByTagName("span").length){div=null;return i}}} 17269return undefined}();var rAFShim=function(){var timeLast=0;return window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(callback){var timeCurrent=new Date().getTime(),timeDelta;timeDelta=Math.max(0,16-(timeCurrent-timeLast));timeLast=timeCurrent+timeDelta;return setTimeout(function(){callback(timeCurrent+timeDelta)},timeDelta)}}();var performance=function(){var perf=window.performance||{};if(typeof perf.now!=="function"){var nowOffset=perf.timing&&perf.timing.navigationStart?perf.timing.navigationStart:new Date().getTime();perf.now=function(){return new Date().getTime()-nowOffset}} 17270return perf}();function compactSparseArray(array){var index=-1,length=array?array.length:0,result=[];while(++index<length){var value=array[index];if(value){result.push(value)}} 17271return result} 17272var _slice=function(){var slice=Array.prototype.slice;try{slice.call(document.documentElement);return slice}catch(e){return function(begin,end){var len=this.length;if(typeof begin!=="number"){begin=0} 17273if(typeof end!=="number"){end=len} 17274if(this.slice){return slice.call(this,begin,end)} 17275var i,cloned=[],start=begin>=0?begin:Math.max(0,len+begin),upTo=end<0?len+end:Math.min(end,len),size=upTo-start;if(size>0){cloned=new Array(size);if(this.charAt){for(i=0;i<size;i++){cloned[i]=this.charAt(start+i)}}else{for(i=0;i<size;i++){cloned[i]=this[start+i]}}} 17276return cloned}}}();var _inArray=function(){if(Array.prototype.includes){return function(arr,val){return arr.includes(val)}} 17277if(Array.prototype.indexOf){return function(arr,val){return arr.indexOf(val)>=0}} 17278return function(arr,val){for(var i=0;i<arr.length;i++){if(arr[i]===val){return!0}} 17279return!1}};function sanitizeElements(elements){if(Type.isWrapped(elements)){elements=_slice.call(elements)}else if(Type.isNode(elements)){elements=[elements]} 17280return elements} 17281var Type={isNumber:function(variable){return typeof variable==="number"},isString:function(variable){return typeof variable==="string"},isArray:Array.isArray||function(variable){return Object.prototype.toString.call(variable)==="[object Array]"},isFunction:function(variable){return Object.prototype.toString.call(variable)==="[object Function]"},isNode:function(variable){return variable&&variable.nodeType},isWrapped:function(variable){return variable&&variable!==window&&Type.isNumber(variable.length)&&!Type.isString(variable)&&!Type.isFunction(variable)&&!Type.isNode(variable)&&(variable.length===0||Type.isNode(variable[0]))},isSVG:function(variable){return window.SVGElement&&variable instanceof window.SVGElement},isEmptyObject:function(variable){for(var name in variable){if(variable.hasOwnProperty(name)){return!1}} 17282return!0}};var $,isJQuery=!1;if(global.fn&&global.fn.jquery){$=global;isJQuery=!0}else{$=window.Velocity.Utilities} 17283if(IE<=8&&!isJQuery){throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.")}else if(IE<=7){jQuery.fn.velocity=jQuery.fn.animate;return} 17284var DURATION_DEFAULT=400,EASING_DEFAULT="swing";var Velocity={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(window.navigator.userAgent),isAndroid:/Android/i.test(window.navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(window.navigator.userAgent),isChrome:window.chrome,isFirefox:/Firefox/i.test(window.navigator.userAgent),prefixElement:document.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[],delayedElements:{count:0}},CSS:{},Utilities:$,Redirects:{},Easings:{},Promise:window.Promise,defaults:{queue:"",duration:DURATION_DEFAULT,easing:EASING_DEFAULT,begin:undefined,complete:undefined,progress:undefined,display:undefined,visibility:undefined,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0,promiseRejectEmpty:!0},init:function(element){$.data(element,"velocity",{isSVG:Type.isSVG(element),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:5,patch:2},debug:!1,timestamp:!0,pauseAll:function(queueName){var currentTime=new Date().getTime();$.each(Velocity.State.calls,function(i,activeCall){if(activeCall){if(queueName!==undefined&&(activeCall[2].queue!==queueName||activeCall[2].queue===!1)){return!0} 17285activeCall[5]={resume:!1}}});$.each(Velocity.State.delayedElements,function(k,element){if(!element){return} 17286pauseDelayOnElement(element,currentTime)})},resumeAll:function(queueName){var currentTime=new Date().getTime();$.each(Velocity.State.calls,function(i,activeCall){if(activeCall){if(queueName!==undefined&&(activeCall[2].queue!==queueName||activeCall[2].queue===!1)){return!0} 17287if(activeCall[5]){activeCall[5].resume=!0}}});$.each(Velocity.State.delayedElements,function(k,element){if(!element){return} 17288resumeDelayOnElement(element,currentTime)})}};if(window.pageYOffset!==undefined){Velocity.State.scrollAnchor=window;Velocity.State.scrollPropertyLeft="pageXOffset";Velocity.State.scrollPropertyTop="pageYOffset"}else{Velocity.State.scrollAnchor=document.documentElement||document.body.parentNode||document.body;Velocity.State.scrollPropertyLeft="scrollLeft";Velocity.State.scrollPropertyTop="scrollTop"} 17289function Data(element){var response=$.data(element,"velocity");return response===null?undefined:response} 17290function pauseDelayOnElement(element,currentTime){var data=Data(element);if(data&&data.delayTimer&&!data.delayPaused){data.delayRemaining=data.delay-currentTime+data.delayBegin;data.delayPaused=!0;clearTimeout(data.delayTimer.setTimeout)}} 17291function resumeDelayOnElement(element,currentTime){var data=Data(element);if(data&&data.delayTimer&&data.delayPaused){data.delayPaused=!1;data.delayTimer.setTimeout=setTimeout(data.delayTimer.next,data.delayRemaining)}} 17292function generateStep(steps){return function(p){return Math.round(p*steps)*(1/steps)}} 17293function generateBezier(mX1,mY1,mX2,mY2){var NEWTON_ITERATIONS=4,NEWTON_MIN_SLOPE=0.001,SUBDIVISION_PRECISION=0.0000001,SUBDIVISION_MAX_ITERATIONS=10,kSplineTableSize=11,kSampleStepSize=1.0/(kSplineTableSize-1.0),float32ArraySupported="Float32Array" in window;if(arguments.length!==4){return!1} 17294for(var i=0;i<4;++i){if(typeof arguments[i]!=="number"||isNaN(arguments[i])||!isFinite(arguments[i])){return!1}} 17295mX1=Math.min(mX1,1);mX2=Math.min(mX2,1);mX1=Math.max(mX1,0);mX2=Math.max(mX2,0);var mSampleValues=float32ArraySupported?new Float32Array(kSplineTableSize):new Array(kSplineTableSize);function A(aA1,aA2){return 1.0-3.0*aA2+3.0*aA1} 17296function B(aA1,aA2){return 3.0*aA2-6.0*aA1} 17297function C(aA1){return 3.0*aA1} 17298function calcBezier(aT,aA1,aA2){return((A(aA1,aA2)*aT+B(aA1,aA2))*aT+C(aA1))*aT} 17299function getSlope(aT,aA1,aA2){return 3.0*A(aA1,aA2)*aT*aT+2.0*B(aA1,aA2)*aT+C(aA1)} 17300function newtonRaphsonIterate(aX,aGuessT){for(var i=0;i<NEWTON_ITERATIONS;++i){var currentSlope=getSlope(aGuessT,mX1,mX2);if(currentSlope===0.0){return aGuessT} 17301var currentX=calcBezier(aGuessT,mX1,mX2)-aX;aGuessT-=currentX/currentSlope} 17302return aGuessT} 17303function calcSampleValues(){for(var i=0;i<kSplineTableSize;++i){mSampleValues[i]=calcBezier(i*kSampleStepSize,mX1,mX2)}} 17304function binarySubdivide(aX,aA,aB){var currentX,currentT,i=0;do{currentT=aA+(aB-aA)/2.0;currentX=calcBezier(currentT,mX1,mX2)-aX;if(currentX>0.0){aB=currentT}else{aA=currentT}}while(Math.abs(currentX)>SUBDIVISION_PRECISION&&++i<SUBDIVISION_MAX_ITERATIONS);return currentT} 17305function getTForX(aX){var intervalStart=0.0,currentSample=1,lastSample=kSplineTableSize-1;for(;currentSample!==lastSample&&mSampleValues[currentSample]<=aX;++currentSample){intervalStart+=kSampleStepSize} 17306--currentSample;var dist=(aX-mSampleValues[currentSample])/(mSampleValues[currentSample+1]-mSampleValues[currentSample]),guessForT=intervalStart+dist*kSampleStepSize,initialSlope=getSlope(guessForT,mX1,mX2);if(initialSlope>=NEWTON_MIN_SLOPE){return newtonRaphsonIterate(aX,guessForT)}else if(initialSlope===0.0){return guessForT}else{return binarySubdivide(aX,intervalStart,intervalStart+kSampleStepSize)}} 17307var _precomputed=!1;function precompute(){_precomputed=!0;if(mX1!==mY1||mX2!==mY2){calcSampleValues()}} 17308var f=function(aX){if(!_precomputed){precompute()} 17309if(mX1===mY1&&mX2===mY2){return aX} 17310if(aX===0){return 0} 17311if(aX===1){return 1} 17312return calcBezier(getTForX(aX),mY1,mY2)};f.getControlPoints=function(){return[{x:mX1,y:mY1},{x:mX2,y:mY2}]};var str="generateBezier("+[mX1,mY1,mX2,mY2]+")";f.toString=function(){return str};return f} 17313var generateSpringRK4=function(){function springAccelerationForState(state){return-state.tension*state.x-state.friction*state.v} 17314function springEvaluateStateWithDerivative(initialState,dt,derivative){var state={x:initialState.x+derivative.dx*dt,v:initialState.v+derivative.dv*dt,tension:initialState.tension,friction:initialState.friction};return{dx:state.v,dv:springAccelerationForState(state)}} 17315function springIntegrateState(state,dt){var a={dx:state.v,dv:springAccelerationForState(state)},b=springEvaluateStateWithDerivative(state,dt*0.5,a),c=springEvaluateStateWithDerivative(state,dt*0.5,b),d=springEvaluateStateWithDerivative(state,dt,c),dxdt=1.0/6.0*(a.dx+2.0*(b.dx+c.dx)+d.dx),dvdt=1.0/6.0*(a.dv+2.0*(b.dv+c.dv)+d.dv);state.x=state.x+dxdt*dt;state.v=state.v+dvdt*dt;return state} 17316return function springRK4Factory(tension,friction,duration){var initState={x:-1,v:0,tension:null,friction:null},path=[0],time_lapsed=0,tolerance=1/10000,DT=16/1000,have_duration,dt,last_state;tension=parseFloat(tension)||500;friction=parseFloat(friction)||20;duration=duration||null;initState.tension=tension;initState.friction=friction;have_duration=duration!==null;if(have_duration){time_lapsed=springRK4Factory(tension,friction);dt=time_lapsed/duration*DT}else{dt=DT} 17317while(!0){last_state=springIntegrateState(last_state||initState,dt);path.push(1+last_state.x);time_lapsed+=16;if(!(Math.abs(last_state.x)>tolerance&&Math.abs(last_state.v)>tolerance)){break}} 17318return!have_duration?time_lapsed:function(percentComplete){return path[percentComplete*(path.length-1)|0]}}}();Velocity.Easings={linear:function(p){return p},swing:function(p){return 0.5-Math.cos(p*Math.PI)/2},spring:function(p){return 1-Math.cos(p*4.5*Math.PI)*Math.exp(-p*6)}};$.each([["ease",[0.25,0.1,0.25,1.0]],["ease-in",[0.42,0.0,1.00,1.0]],["ease-out",[0.00,0.0,0.58,1.0]],["ease-in-out",[0.42,0.0,0.58,1.0]],["easeInSine",[0.47,0,0.745,0.715]],["easeOutSine",[0.39,0.575,0.565,1]],["easeInOutSine",[0.445,0.05,0.55,0.95]],["easeInQuad",[0.55,0.085,0.68,0.53]],["easeOutQuad",[0.25,0.46,0.45,0.94]],["easeInOutQuad",[0.455,0.03,0.515,0.955]],["easeInCubic",[0.55,0.055,0.675,0.19]],["easeOutCubic",[0.215,0.61,0.355,1]],["easeInOutCubic",[0.645,0.045,0.355,1]],["easeInQuart",[0.895,0.03,0.685,0.22]],["easeOutQuart",[0.165,0.84,0.44,1]],["easeInOutQuart",[0.77,0,0.175,1]],["easeInQuint",[0.755,0.05,0.855,0.06]],["easeOutQuint",[0.23,1,0.32,1]],["easeInOutQuint",[0.86,0,0.07,1]],["easeInExpo",[0.95,0.05,0.795,0.035]],["easeOutExpo",[0.19,1,0.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[0.6,0.04,0.98,0.335]],["easeOutCirc",[0.075,0.82,0.165,1]],["easeInOutCirc",[0.785,0.135,0.15,0.86]]],function(i,easingArray){Velocity.Easings[easingArray[0]]=generateBezier.apply(null,easingArray[1])});function getEasing(value,duration){var easing=value;if(Type.isString(value)){if(!Velocity.Easings[value]){easing=!1}}else if(Type.isArray(value)&&value.length===1){easing=generateStep.apply(null,value)}else if(Type.isArray(value)&&value.length===2){easing=generateSpringRK4.apply(null,value.concat([duration]))}else if(Type.isArray(value)&&value.length===4){easing=generateBezier.apply(null,value)}else{easing=!1} 17319if(easing===!1){if(Velocity.Easings[Velocity.defaults.easing]){easing=Velocity.defaults.easing}else{easing=EASING_DEFAULT}} 17320return easing} 17321var CSS=Velocity.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/ig},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"],units:["%","em","ex","ch","rem","vw","vh","vmin","vmax","cm","mm","Q","in","pc","pt","px","deg","grad","rad","turn","s","ms"],colorNames:{"aliceblue":"240,248,255","antiquewhite":"250,235,215","aquamarine":"127,255,212","aqua":"0,255,255","azure":"240,255,255","beige":"245,245,220","bisque":"255,228,196","black":"0,0,0","blanchedalmond":"255,235,205","blueviolet":"138,43,226","blue":"0,0,255","brown":"165,42,42","burlywood":"222,184,135","cadetblue":"95,158,160","chartreuse":"127,255,0","chocolate":"210,105,30","coral":"255,127,80","cornflowerblue":"100,149,237","cornsilk":"255,248,220","crimson":"220,20,60","cyan":"0,255,255","darkblue":"0,0,139","darkcyan":"0,139,139","darkgoldenrod":"184,134,11","darkgray":"169,169,169","darkgrey":"169,169,169","darkgreen":"0,100,0","darkkhaki":"189,183,107","darkmagenta":"139,0,139","darkolivegreen":"85,107,47","darkorange":"255,140,0","darkorchid":"153,50,204","darkred":"139,0,0","darksalmon":"233,150,122","darkseagreen":"143,188,143","darkslateblue":"72,61,139","darkslategray":"47,79,79","darkturquoise":"0,206,209","darkviolet":"148,0,211","deeppink":"255,20,147","deepskyblue":"0,191,255","dimgray":"105,105,105","dimgrey":"105,105,105","dodgerblue":"30,144,255","firebrick":"178,34,34","floralwhite":"255,250,240","forestgreen":"34,139,34","fuchsia":"255,0,255","gainsboro":"220,220,220","ghostwhite":"248,248,255","gold":"255,215,0","goldenrod":"218,165,32","gray":"128,128,128","grey":"128,128,128","greenyellow":"173,255,47","green":"0,128,0","honeydew":"240,255,240","hotpink":"255,105,180","indianred":"205,92,92","indigo":"75,0,130","ivory":"255,255,240","khaki":"240,230,140","lavenderblush":"255,240,245","lavender":"230,230,250","lawngreen":"124,252,0","lemonchiffon":"255,250,205","lightblue":"173,216,230","lightcoral":"240,128,128","lightcyan":"224,255,255","lightgoldenrodyellow":"250,250,210","lightgray":"211,211,211","lightgrey":"211,211,211","lightgreen":"144,238,144","lightpink":"255,182,193","lightsalmon":"255,160,122","lightseagreen":"32,178,170","lightskyblue":"135,206,250","lightslategray":"119,136,153","lightsteelblue":"176,196,222","lightyellow":"255,255,224","limegreen":"50,205,50","lime":"0,255,0","linen":"250,240,230","magenta":"255,0,255","maroon":"128,0,0","mediumaquamarine":"102,205,170","mediumblue":"0,0,205","mediumorchid":"186,85,211","mediumpurple":"147,112,219","mediumseagreen":"60,179,113","mediumslateblue":"123,104,238","mediumspringgreen":"0,250,154","mediumturquoise":"72,209,204","mediumvioletred":"199,21,133","midnightblue":"25,25,112","mintcream":"245,255,250","mistyrose":"255,228,225","moccasin":"255,228,181","navajowhite":"255,222,173","navy":"0,0,128","oldlace":"253,245,230","olivedrab":"107,142,35","olive":"128,128,0","orangered":"255,69,0","orange":"255,165,0","orchid":"218,112,214","palegoldenrod":"238,232,170","palegreen":"152,251,152","paleturquoise":"175,238,238","palevioletred":"219,112,147","papayawhip":"255,239,213","peachpuff":"255,218,185","peru":"205,133,63","pink":"255,192,203","plum":"221,160,221","powderblue":"176,224,230","purple":"128,0,128","red":"255,0,0","rosybrown":"188,143,143","royalblue":"65,105,225","saddlebrown":"139,69,19","salmon":"250,128,114","sandybrown":"244,164,96","seagreen":"46,139,87","seashell":"255,245,238","sienna":"160,82,45","silver":"192,192,192","skyblue":"135,206,235","slateblue":"106,90,205","slategray":"112,128,144","snow":"255,250,250","springgreen":"0,255,127","steelblue":"70,130,180","tan":"210,180,140","teal":"0,128,128","thistle":"216,191,216","tomato":"255,99,71","turquoise":"64,224,208","violet":"238,130,238","wheat":"245,222,179","whitesmoke":"245,245,245","white":"255,255,255","yellowgreen":"154,205,50","yellow":"255,255,0"}},Hooks:{templates:{"textShadow":["Color X Y Blur","black 0px 0px 0px"],"boxShadow":["Color X Y Blur Spread","black 0px 0px 0px 0px"],"clip":["Top Right Bottom Left","0px 0px 0px 0px"],"backgroundPosition":["X Y","0% 0%"],"transformOrigin":["X Y Z","50% 50% 0px"],"perspectiveOrigin":["X Y","50% 50%"]},registered:{},register:function(){for(var i=0;i<CSS.Lists.colors.length;i++){var rgbComponents=CSS.Lists.colors[i]==="color"?"0 0 0 1":"255 255 255 1";CSS.Hooks.templates[CSS.Lists.colors[i]]=["Red Green Blue Alpha",rgbComponents]} 17322var rootProperty,hookTemplate,hookNames;if(IE){for(rootProperty in CSS.Hooks.templates){if(!CSS.Hooks.templates.hasOwnProperty(rootProperty)){continue} 17323hookTemplate=CSS.Hooks.templates[rootProperty];hookNames=hookTemplate[0].split(" ");var defaultValues=hookTemplate[1].match(CSS.RegEx.valueSplit);if(hookNames[0]==="Color"){hookNames.push(hookNames.shift());defaultValues.push(defaultValues.shift());CSS.Hooks.templates[rootProperty]=[hookNames.join(" "),defaultValues.join(" ")]}}} 17324for(rootProperty in CSS.Hooks.templates){if(!CSS.Hooks.templates.hasOwnProperty(rootProperty)){continue} 17325hookTemplate=CSS.Hooks.templates[rootProperty];hookNames=hookTemplate[0].split(" ");for(var j in hookNames){if(!hookNames.hasOwnProperty(j)){continue} 17326var fullHookName=rootProperty+hookNames[j],hookPosition=j;CSS.Hooks.registered[fullHookName]=[rootProperty,hookPosition]}}},getRoot:function(property){var hookData=CSS.Hooks.registered[property];if(hookData){return hookData[0]}else{return property}},getUnit:function(str,start){var unit=(str.substr(start||0,5).match(/^[a-z%]+/)||[])[0]||"";if(unit&&_inArray(CSS.Lists.units,unit)){return unit} 17327return""},fixColors:function(str){return str.replace(/(rgba?\(\s*)?(\b[a-z]+\b)/g,function($0,$1,$2){if(CSS.Lists.colorNames.hasOwnProperty($2)){return($1?$1:"rgba(")+CSS.Lists.colorNames[$2]+($1?"":",1)")} 17328return $1+$2})},cleanRootPropertyValue:function(rootProperty,rootPropertyValue){if(CSS.RegEx.valueUnwrap.test(rootPropertyValue)){rootPropertyValue=rootPropertyValue.match(CSS.RegEx.valueUnwrap)[1]} 17329if(CSS.Values.isCSSNullValue(rootPropertyValue)){rootPropertyValue=CSS.Hooks.templates[rootProperty][1]} 17330return rootPropertyValue},extractValue:function(fullHookName,rootPropertyValue){var hookData=CSS.Hooks.registered[fullHookName];if(hookData){var hookRoot=hookData[0],hookPosition=hookData[1];rootPropertyValue=CSS.Hooks.cleanRootPropertyValue(hookRoot,rootPropertyValue);return rootPropertyValue.toString().match(CSS.RegEx.valueSplit)[hookPosition]}else{return rootPropertyValue}},injectValue:function(fullHookName,hookValue,rootPropertyValue){var hookData=CSS.Hooks.registered[fullHookName];if(hookData){var hookRoot=hookData[0],hookPosition=hookData[1],rootPropertyValueParts,rootPropertyValueUpdated;rootPropertyValue=CSS.Hooks.cleanRootPropertyValue(hookRoot,rootPropertyValue);rootPropertyValueParts=rootPropertyValue.toString().match(CSS.RegEx.valueSplit);rootPropertyValueParts[hookPosition]=hookValue;rootPropertyValueUpdated=rootPropertyValueParts.join(" ");return rootPropertyValueUpdated}else{return rootPropertyValue}}},Normalizations:{registered:{clip:function(type,element,propertyValue){switch(type){case "name":return"clip";case "extract":var extracted;if(CSS.RegEx.wrappedValueAlreadyExtracted.test(propertyValue)){extracted=propertyValue}else{extracted=propertyValue.toString().match(CSS.RegEx.valueUnwrap);extracted=extracted?extracted[1].replace(/,(\s+)?/g," "):propertyValue} 17331return extracted;case "inject":return"rect("+propertyValue+")"}},blur:function(type,element,propertyValue){switch(type){case "name":return Velocity.State.isFirefox?"filter":"-webkit-filter";case "extract":var extracted=parseFloat(propertyValue);if(!(extracted||extracted===0)){var blurComponent=propertyValue.toString().match(/blur\(([0-9]+[A-z]+)\)/i);if(blurComponent){extracted=blurComponent[1]}else{extracted=0}} 17332return extracted;case "inject":if(!parseFloat(propertyValue)){return"none"}else{return"blur("+propertyValue+")"}}},opacity:function(type,element,propertyValue){if(IE<=8){switch(type){case "name":return"filter";case "extract":var extracted=propertyValue.toString().match(/alpha\(opacity=(.*)\)/i);if(extracted){propertyValue=extracted[1]/100}else{propertyValue=1} 17333return propertyValue;case "inject":element.style.zoom=1;if(parseFloat(propertyValue)>=1){return""}else{return"alpha(opacity="+parseInt(parseFloat(propertyValue)*100,10)+")"}}}else{switch(type){case "name":return"opacity";case "extract":return propertyValue;case "inject":return propertyValue}}}},register:function(){if((!IE||IE>9)&&!Velocity.State.isGingerbread){CSS.Lists.transformsBase=CSS.Lists.transformsBase.concat(CSS.Lists.transforms3D)} 17334for(var i=0;i<CSS.Lists.transformsBase.length;i++){(function(){var transformName=CSS.Lists.transformsBase[i];CSS.Normalizations.registered[transformName]=function(type,element,propertyValue){switch(type){case "name":return"transform";case "extract":if(Data(element)===undefined||Data(element).transformCache[transformName]===undefined){return(/^scale/i.test(transformName)?1:0)} 17335return Data(element).transformCache[transformName].replace(/[()]/g,"");case "inject":var invalid=!1;switch(transformName.substr(0,transformName.length-1)){case "translate":invalid=!/(%|px|em|rem|vw|vh|\d)$/i.test(propertyValue);break;case "scal":case "scale":if(Velocity.State.isAndroid&&Data(element).transformCache[transformName]===undefined&&propertyValue<1){propertyValue=1} 17336invalid=!/(\d)$/i.test(propertyValue);break;case "skew":invalid=!/(deg|\d)$/i.test(propertyValue);break;case "rotate":invalid=!/(deg|\d)$/i.test(propertyValue);break} 17337if(!invalid){Data(element).transformCache[transformName]="("+propertyValue+")"} 17338return Data(element).transformCache[transformName]}}})()} 17339for(var j=0;j<CSS.Lists.colors.length;j++){(function(){var colorName=CSS.Lists.colors[j];CSS.Normalizations.registered[colorName]=function(type,element,propertyValue){switch(type){case "name":return colorName;case "extract":var extracted;if(CSS.RegEx.wrappedValueAlreadyExtracted.test(propertyValue)){extracted=propertyValue}else{var converted,colorNames={black:"rgb(0, 0, 0)",blue:"rgb(0, 0, 255)",gray:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",red:"rgb(255, 0, 0)",white:"rgb(255, 255, 255)"};if(/^[A-z]+$/i.test(propertyValue)){if(colorNames[propertyValue]!==undefined){converted=colorNames[propertyValue]}else{converted=colorNames.black}}else if(CSS.RegEx.isHex.test(propertyValue)){converted="rgb("+CSS.Values.hexToRgb(propertyValue).join(" ")+")"}else if(!/^rgba?\(/i.test(propertyValue)){converted=colorNames.black} 17340extracted=(converted||propertyValue).toString().match(CSS.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")} 17341if((!IE||IE>8)&&extracted.split(" ").length===3){extracted+=" 1"} 17342return extracted;case "inject":if(/^rgb/.test(propertyValue)){return propertyValue} 17343if(IE<=8){if(propertyValue.split(" ").length===4){propertyValue=propertyValue.split(/\s+/).slice(0,3).join(" ")}}else if(propertyValue.split(" ").length===3){propertyValue+=" 1"} 17344return(IE<=8?"rgb":"rgba")+"("+propertyValue.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")"}}})()} 17345function augmentDimension(name,element,wantInner){var isBorderBox=CSS.getPropertyValue(element,"boxSizing").toString().toLowerCase()==="border-box";if(isBorderBox===(wantInner||!1)){var i,value,augment=0,sides=name==="width"?["Left","Right"]:["Top","Bottom"],fields=["padding"+sides[0],"padding"+sides[1],"border"+sides[0]+"Width","border"+sides[1]+"Width"];for(i=0;i<fields.length;i++){value=parseFloat(CSS.getPropertyValue(element,fields[i]));if(!isNaN(value)){augment+=value}} 17346return wantInner?-augment:augment} 17347return 0} 17348function getDimension(name,wantInner){return function(type,element,propertyValue){switch(type){case "name":return name;case "extract":return parseFloat(propertyValue)+augmentDimension(name,element,wantInner);case "inject":return parseFloat(propertyValue)-augmentDimension(name,element,wantInner)+"px"}}} 17349CSS.Normalizations.registered.innerWidth=getDimension("width",!0);CSS.Normalizations.registered.innerHeight=getDimension("height",!0);CSS.Normalizations.registered.outerWidth=getDimension("width");CSS.Normalizations.registered.outerHeight=getDimension("height")}},Names:{camelCase:function(property){return property.replace(/-(\w)/g,function(match,subMatch){return subMatch.toUpperCase()})},SVGAttribute:function(property){var SVGAttributes="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";if(IE||Velocity.State.isAndroid&&!Velocity.State.isChrome){SVGAttributes+="|transform"} 17350return new RegExp("^("+SVGAttributes+")$","i").test(property)},prefixCheck:function(property){if(Velocity.State.prefixMatches[property]){return[Velocity.State.prefixMatches[property],!0]}else{var vendors=["","Webkit","Moz","ms","O"];for(var i=0,vendorsLength=vendors.length;i<vendorsLength;i++){var propertyPrefixed;if(i===0){propertyPrefixed=property}else{propertyPrefixed=vendors[i]+property.replace(/^\w/,function(match){return match.toUpperCase()})} 17351if(Type.isString(Velocity.State.prefixElement.style[propertyPrefixed])){Velocity.State.prefixMatches[property]=propertyPrefixed;return[propertyPrefixed,!0]}} 17352return[property,!1]}}},Values:{hexToRgb:function(hex){var shortformRegex=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,longformRegex=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,rgbParts;hex=hex.replace(shortformRegex,function(m,r,g,b){return r+r+g+g+b+b});rgbParts=longformRegex.exec(hex);return rgbParts?[parseInt(rgbParts[1],16),parseInt(rgbParts[2],16),parseInt(rgbParts[3],16)]:[0,0,0]},isCSSNullValue:function(value){return!value||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(value)},getUnitType:function(property){if(/^(rotate|skew)/i.test(property)){return"deg"}else if(/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(property)){return""}else{return"px"}},getDisplayType:function(element){var tagName=element&&element.tagName.toString().toLowerCase();if(/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(tagName)){return"inline"}else if(/^(li)$/i.test(tagName)){return"list-item"}else if(/^(tr)$/i.test(tagName)){return"table-row"}else if(/^(table)$/i.test(tagName)){return"table"}else if(/^(tbody)$/i.test(tagName)){return"table-row-group"}else{return"block"}},addClass:function(element,className){if(element){if(element.classList){element.classList.add(className)}else if(Type.isString(element.className)){element.className+=(element.className.length?" ":"")+className}else{var currentClass=element.getAttribute(IE<=7?"className":"class")||"";element.setAttribute("class",currentClass+(currentClass?" ":"")+className)}}},removeClass:function(element,className){if(element){if(element.classList){element.classList.remove(className)}else if(Type.isString(element.className)){element.className=element.className.toString().replace(new RegExp("(^|\\s)"+className.split(" ").join("|")+"(\\s|$)","gi")," ")}else{var currentClass=element.getAttribute(IE<=7?"className":"class")||"";element.setAttribute("class",currentClass.replace(new RegExp("(^|\s)"+className.split(" ").join("|")+"(\s|$)","gi")," "))}}}},getPropertyValue:function(element,property,rootPropertyValue,forceStyleLookup){function computePropertyValue(element,property){var computedValue=0;if(IE<=8){computedValue=$.css(element,property)}else{var toggleDisplay=!1;if(/^(width|height)$/.test(property)&&CSS.getPropertyValue(element,"display")===0){toggleDisplay=!0;CSS.setPropertyValue(element,"display",CSS.Values.getDisplayType(element))} 17353var revertDisplay=function(){if(toggleDisplay){CSS.setPropertyValue(element,"display","none")}};if(!forceStyleLookup){if(property==="height"&&CSS.getPropertyValue(element,"boxSizing").toString().toLowerCase()!=="border-box"){var contentBoxHeight=element.offsetHeight-(parseFloat(CSS.getPropertyValue(element,"borderTopWidth"))||0)-(parseFloat(CSS.getPropertyValue(element,"borderBottomWidth"))||0)-(parseFloat(CSS.getPropertyValue(element,"paddingTop"))||0)-(parseFloat(CSS.getPropertyValue(element,"paddingBottom"))||0);revertDisplay();return contentBoxHeight}else if(property==="width"&&CSS.getPropertyValue(element,"boxSizing").toString().toLowerCase()!=="border-box"){var contentBoxWidth=element.offsetWidth-(parseFloat(CSS.getPropertyValue(element,"borderLeftWidth"))||0)-(parseFloat(CSS.getPropertyValue(element,"borderRightWidth"))||0)-(parseFloat(CSS.getPropertyValue(element,"paddingLeft"))||0)-(parseFloat(CSS.getPropertyValue(element,"paddingRight"))||0);revertDisplay();return contentBoxWidth}} 17354var computedStyle;if(Data(element)===undefined){computedStyle=window.getComputedStyle(element,null)}else if(!Data(element).computedStyle){computedStyle=Data(element).computedStyle=window.getComputedStyle(element,null)}else{computedStyle=Data(element).computedStyle} 17355if(property==="borderColor"){property="borderTopColor"} 17356if(IE===9&&property==="filter"){computedValue=computedStyle.getPropertyValue(property)}else{computedValue=computedStyle[property]} 17357if(computedValue===""||computedValue===null){computedValue=element.style[property]} 17358revertDisplay()} 17359if(computedValue==="auto"&&/^(top|right|bottom|left)$/i.test(property)){var position=computePropertyValue(element,"position");if(position==="fixed"||position==="absolute"&&/top|left/i.test(property)){computedValue=$(element).position()[property]+"px"}} 17360return computedValue} 17361var propertyValue;if(CSS.Hooks.registered[property]){var hook=property,hookRoot=CSS.Hooks.getRoot(hook);if(rootPropertyValue===undefined){rootPropertyValue=CSS.getPropertyValue(element,CSS.Names.prefixCheck(hookRoot)[0])} 17362if(CSS.Normalizations.registered[hookRoot]){rootPropertyValue=CSS.Normalizations.registered[hookRoot]("extract",element,rootPropertyValue)} 17363propertyValue=CSS.Hooks.extractValue(hook,rootPropertyValue)}else if(CSS.Normalizations.registered[property]){var normalizedPropertyName,normalizedPropertyValue;normalizedPropertyName=CSS.Normalizations.registered[property]("name",element);if(normalizedPropertyName!=="transform"){normalizedPropertyValue=computePropertyValue(element,CSS.Names.prefixCheck(normalizedPropertyName)[0]);if(CSS.Values.isCSSNullValue(normalizedPropertyValue)&&CSS.Hooks.templates[property]){normalizedPropertyValue=CSS.Hooks.templates[property][1]}} 17364propertyValue=CSS.Normalizations.registered[property]("extract",element,normalizedPropertyValue)} 17365if(!/^[\d-]/.test(propertyValue)){var data=Data(element);if(data&&data.isSVG&&CSS.Names.SVGAttribute(property)){if(/^(height|width)$/i.test(property)){try{propertyValue=element.getBBox()[property]}catch(error){propertyValue=0}}else{propertyValue=element.getAttribute(property)}}else{propertyValue=computePropertyValue(element,CSS.Names.prefixCheck(property)[0])}} 17366if(CSS.Values.isCSSNullValue(propertyValue)){propertyValue=0} 17367if(Velocity.debug>=2){console.log("Get "+property+": "+propertyValue)} 17368return propertyValue},setPropertyValue:function(element,property,propertyValue,rootPropertyValue,scrollData){var propertyName=property;if(property==="scroll"){if(scrollData.container){scrollData.container["scroll"+scrollData.direction]=propertyValue}else{if(scrollData.direction==="Left"){window.scrollTo(propertyValue,scrollData.alternateValue)}else{window.scrollTo(scrollData.alternateValue,propertyValue)}}}else{if(CSS.Normalizations.registered[property]&&CSS.Normalizations.registered[property]("name",element)==="transform"){CSS.Normalizations.registered[property]("inject",element,propertyValue);propertyName="transform";propertyValue=Data(element).transformCache[property]}else{if(CSS.Hooks.registered[property]){var hookName=property,hookRoot=CSS.Hooks.getRoot(property);rootPropertyValue=rootPropertyValue||CSS.getPropertyValue(element,hookRoot);propertyValue=CSS.Hooks.injectValue(hookName,propertyValue,rootPropertyValue);property=hookRoot} 17369if(CSS.Normalizations.registered[property]){propertyValue=CSS.Normalizations.registered[property]("inject",element,propertyValue);property=CSS.Normalizations.registered[property]("name",element)} 17370propertyName=CSS.Names.prefixCheck(property)[0];if(IE<=8){try{element.style[propertyName]=propertyValue}catch(error){if(Velocity.debug){console.log("Browser does not support ["+propertyValue+"] for ["+propertyName+"]")}}}else{var data=Data(element);if(data&&data.isSVG&&CSS.Names.SVGAttribute(property)){element.setAttribute(property,propertyValue)}else{element.style[propertyName]=propertyValue}} 17371if(Velocity.debug>=2){console.log("Set "+property+" ("+propertyName+"): "+propertyValue)}}} 17372return[propertyName,propertyValue]},flushTransformCache:function(element){var transformString="",data=Data(element);if((IE||Velocity.State.isAndroid&&!Velocity.State.isChrome)&&data&&data.isSVG){var getTransformFloat=function(transformProperty){return parseFloat(CSS.getPropertyValue(element,transformProperty))};var SVGTransforms={translate:[getTransformFloat("translateX"),getTransformFloat("translateY")],skewX:[getTransformFloat("skewX")],skewY:[getTransformFloat("skewY")],scale:getTransformFloat("scale")!==1?[getTransformFloat("scale"),getTransformFloat("scale")]:[getTransformFloat("scaleX"),getTransformFloat("scaleY")],rotate:[getTransformFloat("rotateZ"),0,0]};$.each(Data(element).transformCache,function(transformName){if(/^translate/i.test(transformName)){transformName="translate"}else if(/^scale/i.test(transformName)){transformName="scale"}else if(/^rotate/i.test(transformName)){transformName="rotate"} 17373if(SVGTransforms[transformName]){transformString+=transformName+"("+SVGTransforms[transformName].join(" ")+")"+" ";delete SVGTransforms[transformName]}})}else{var transformValue,perspective;$.each(Data(element).transformCache,function(transformName){transformValue=Data(element).transformCache[transformName];if(transformName==="transformPerspective"){perspective=transformValue;return!0} 17374if(IE===9&&transformName==="rotateZ"){transformName="rotate"} 17375transformString+=transformName+transformValue+" "});if(perspective){transformString="perspective"+perspective+" "+transformString}} 17376CSS.setPropertyValue(element,"transform",transformString)}};CSS.Hooks.register();CSS.Normalizations.register();Velocity.hook=function(elements,arg2,arg3){var value;elements=sanitizeElements(elements);$.each(elements,function(i,element){if(Data(element)===undefined){Velocity.init(element)} 17377if(arg3===undefined){if(value===undefined){value=CSS.getPropertyValue(element,arg2)}}else{var adjustedSet=CSS.setPropertyValue(element,arg2,arg3);if(adjustedSet[0]==="transform"){Velocity.CSS.flushTransformCache(element)} 17378value=adjustedSet}});return value};var animate=function(){var opts;function getChain(){if(isUtility){return promiseData.promise||null}else{return elementsWrapped}} 17379var syntacticSugar=arguments[0]&&(arguments[0].p||$.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||Type.isString(arguments[0].properties)),isUtility,elementsWrapped,argumentIndex;var elements,propertiesMap,options;if(Type.isWrapped(this)){isUtility=!1;argumentIndex=0;elements=this;elementsWrapped=this}else{isUtility=!0;argumentIndex=1;elements=syntacticSugar?arguments[0].elements||arguments[0].e:arguments[0]} 17380var promiseData={promise:null,resolver:null,rejecter:null};if(isUtility&&Velocity.Promise){promiseData.promise=new Velocity.Promise(function(resolve,reject){promiseData.resolver=resolve;promiseData.rejecter=reject})} 17381if(syntacticSugar){propertiesMap=arguments[0].properties||arguments[0].p;options=arguments[0].options||arguments[0].o}else{propertiesMap=arguments[argumentIndex];options=arguments[argumentIndex+1]} 17382elements=sanitizeElements(elements);if(!elements){if(promiseData.promise){if(!propertiesMap||!options||options.promiseRejectEmpty!==!1){promiseData.rejecter()}else{promiseData.resolver()}} 17383return} 17384var elementsLength=elements.length,elementsIndex=0;if(!/^(stop|finish|finishAll|pause|resume)$/i.test(propertiesMap)&&!$.isPlainObject(options)){var startingArgumentPosition=argumentIndex+1;options={};for(var i=startingArgumentPosition;i<arguments.length;i++){if(!Type.isArray(arguments[i])&&(/^(fast|normal|slow)$/i.test(arguments[i])||/^\d/.test(arguments[i]))){options.duration=arguments[i]}else if(Type.isString(arguments[i])||Type.isArray(arguments[i])){options.easing=arguments[i]}else if(Type.isFunction(arguments[i])){options.complete=arguments[i]}}} 17385var action;switch(propertiesMap){case "scroll":action="scroll";break;case "reverse":action="reverse";break;case "pause":var currentTime=new Date().getTime();$.each(elements,function(i,element){pauseDelayOnElement(element,currentTime)});$.each(Velocity.State.calls,function(i,activeCall){var found=!1;if(activeCall){$.each(activeCall[1],function(k,activeElement){var queueName=options===undefined?"":options;if(queueName!==!0&&activeCall[2].queue!==queueName&&!(options===undefined&&activeCall[2].queue===!1)){return!0} 17386$.each(elements,function(l,element){if(element===activeElement){activeCall[5]={resume:!1};found=!0;return!1}});if(found){return!1}})}});return getChain();case "resume":$.each(elements,function(i,element){resumeDelayOnElement(element,currentTime)});$.each(Velocity.State.calls,function(i,activeCall){var found=!1;if(activeCall){$.each(activeCall[1],function(k,activeElement){var queueName=options===undefined?"":options;if(queueName!==!0&&activeCall[2].queue!==queueName&&!(options===undefined&&activeCall[2].queue===!1)){return!0} 17387if(!activeCall[5]){return!0} 17388$.each(elements,function(l,element){if(element===activeElement){activeCall[5].resume=!0;found=!0;return!1}});if(found){return!1}})}});return getChain();case "finish":case "finishAll":case "stop":$.each(elements,function(i,element){if(Data(element)&&Data(element).delayTimer){clearTimeout(Data(element).delayTimer.setTimeout);if(Data(element).delayTimer.next){Data(element).delayTimer.next()} 17389delete Data(element).delayTimer} 17390if(propertiesMap==="finishAll"&&(options===!0||Type.isString(options))){$.each($.queue(element,Type.isString(options)?options:""),function(_,item){if(Type.isFunction(item)){item()}});$.queue(element,Type.isString(options)?options:"",[])}});var callsToStop=[];$.each(Velocity.State.calls,function(i,activeCall){if(activeCall){$.each(activeCall[1],function(k,activeElement){var queueName=options===undefined?"":options;if(queueName!==!0&&activeCall[2].queue!==queueName&&!(options===undefined&&activeCall[2].queue===!1)){return!0} 17391$.each(elements,function(l,element){if(element===activeElement){if(options===!0||Type.isString(options)){$.each($.queue(element,Type.isString(options)?options:""),function(_,item){if(Type.isFunction(item)){item(null,!0)}});$.queue(element,Type.isString(options)?options:"",[])} 17392if(propertiesMap==="stop"){var data=Data(element);if(data&&data.tweensContainer&&(queueName===!0||queueName==="")){$.each(data.tweensContainer,function(m,activeTween){activeTween.endValue=activeTween.currentValue})} 17393callsToStop.push(i)}else if(propertiesMap==="finish"||propertiesMap==="finishAll"){activeCall[2].duration=1}}})})}});if(propertiesMap==="stop"){$.each(callsToStop,function(i,j){completeCall(j,!0)});if(promiseData.promise){promiseData.resolver(elements)}} 17394return getChain();default:if($.isPlainObject(propertiesMap)&&!Type.isEmptyObject(propertiesMap)){action="start"}else if(Type.isString(propertiesMap)&&Velocity.Redirects[propertiesMap]){opts=$.extend({},options);var durationOriginal=opts.duration,delayOriginal=opts.delay||0;if(opts.backwards===!0){elements=$.extend(!0,[],elements).reverse()} 17395$.each(elements,function(elementIndex,element){if(parseFloat(opts.stagger)){opts.delay=delayOriginal+parseFloat(opts.stagger)*elementIndex}else if(Type.isFunction(opts.stagger)){opts.delay=delayOriginal+opts.stagger.call(element,elementIndex,elementsLength)} 17396if(opts.drag){opts.duration=parseFloat(durationOriginal)||(/^(callout|transition)/.test(propertiesMap)?1000:DURATION_DEFAULT);opts.duration=Math.max(opts.duration*(opts.backwards?1-elementIndex/elementsLength:(elementIndex+1)/elementsLength),opts.duration*0.75,200)} 17397Velocity.Redirects[propertiesMap].call(element,element,opts||{},elementIndex,elementsLength,elements,promiseData.promise?promiseData:undefined)});return getChain()}else{var abortError="Velocity: First argument ("+propertiesMap+") was not a property map, a known action, or a registered redirect. Aborting.";if(promiseData.promise){promiseData.rejecter(new Error(abortError))}else if(window.console){console.log(abortError)} 17398return getChain()}} 17399var callUnitConversionData={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null};var call=[];function processElement(element,elementArrayIndex){var 17400opts=$.extend({},Velocity.defaults,options),tweensContainer={},elementUnitConversionData;if(Data(element)===undefined){Velocity.init(element)} 17401if(parseFloat(opts.delay)&&opts.queue!==!1){$.queue(element,opts.queue,function(next,clearQueue){if(clearQueue===!0){return!0} 17402Velocity.velocityQueueEntryFlag=!0;var callIndex=Velocity.State.delayedElements.count++;Velocity.State.delayedElements[callIndex]=element;var delayComplete=function(index){return function(){Velocity.State.delayedElements[index]=!1;next()}}(callIndex);Data(element).delayBegin=new Date().getTime();Data(element).delay=parseFloat(opts.delay);Data(element).delayTimer={setTimeout:setTimeout(next,parseFloat(opts.delay)),next:delayComplete}})} 17403switch(opts.duration.toString().toLowerCase()){case "fast":opts.duration=200;break;case "normal":opts.duration=DURATION_DEFAULT;break;case "slow":opts.duration=600;break;default:opts.duration=parseFloat(opts.duration)||1} 17404if(Velocity.mock!==!1){if(Velocity.mock===!0){opts.duration=opts.delay=1}else{opts.duration*=parseFloat(Velocity.mock)||1;opts.delay*=parseFloat(Velocity.mock)||1}} 17405opts.easing=getEasing(opts.easing,opts.duration);if(opts.begin&&!Type.isFunction(opts.begin)){opts.begin=null} 17406if(opts.progress&&!Type.isFunction(opts.progress)){opts.progress=null} 17407if(opts.complete&&!Type.isFunction(opts.complete)){opts.complete=null} 17408if(opts.display!==undefined&&opts.display!==null){opts.display=opts.display.toString().toLowerCase();if(opts.display==="auto"){opts.display=Velocity.CSS.Values.getDisplayType(element)}} 17409if(opts.visibility!==undefined&&opts.visibility!==null){opts.visibility=opts.visibility.toString().toLowerCase()} 17410opts.mobileHA=opts.mobileHA&&Velocity.State.isMobile&&!Velocity.State.isGingerbread;function buildQueue(next){var data,lastTweensContainer;if(opts.begin&&elementsIndex===0){try{opts.begin.call(elements,elements)}catch(error){setTimeout(function(){throw error},1)}} 17411if(action==="scroll"){var scrollDirection=/^x$/i.test(opts.axis)?"Left":"Top",scrollOffset=parseFloat(opts.offset)||0,scrollPositionCurrent,scrollPositionCurrentAlternate,scrollPositionEnd;if(opts.container){if(Type.isWrapped(opts.container)||Type.isNode(opts.container)){opts.container=opts.container[0]||opts.container;scrollPositionCurrent=opts.container["scroll"+scrollDirection];scrollPositionEnd=scrollPositionCurrent+$(element).position()[scrollDirection.toLowerCase()]+scrollOffset}else{opts.container=null}}else{scrollPositionCurrent=Velocity.State.scrollAnchor[Velocity.State["scrollProperty"+scrollDirection]];scrollPositionCurrentAlternate=Velocity.State.scrollAnchor[Velocity.State["scrollProperty"+(scrollDirection==="Left"?"Top":"Left")]];scrollPositionEnd=$(element).offset()[scrollDirection.toLowerCase()]+scrollOffset} 17412tweensContainer={scroll:{rootPropertyValue:!1,startValue:scrollPositionCurrent,currentValue:scrollPositionCurrent,endValue:scrollPositionEnd,unitType:"",easing:opts.easing,scrollData:{container:opts.container,direction:scrollDirection,alternateValue:scrollPositionCurrentAlternate}},element:element};if(Velocity.debug){console.log("tweensContainer (scroll): ",tweensContainer.scroll,element)}}else if(action==="reverse"){data=Data(element);if(!data){return} 17413if(!data.tweensContainer){$.dequeue(element,opts.queue);return}else{if(data.opts.display==="none"){data.opts.display="auto"} 17414if(data.opts.visibility==="hidden"){data.opts.visibility="visible"} 17415data.opts.loop=!1;data.opts.begin=null;data.opts.complete=null;if(!options.easing){delete opts.easing} 17416if(!options.duration){delete opts.duration} 17417opts=$.extend({},data.opts,opts);lastTweensContainer=$.extend(!0,{},data?data.tweensContainer:null);for(var lastTween in lastTweensContainer){if(lastTweensContainer.hasOwnProperty(lastTween)&&lastTween!=="element"){var lastStartValue=lastTweensContainer[lastTween].startValue;lastTweensContainer[lastTween].startValue=lastTweensContainer[lastTween].currentValue=lastTweensContainer[lastTween].endValue;lastTweensContainer[lastTween].endValue=lastStartValue;if(!Type.isEmptyObject(options)){lastTweensContainer[lastTween].easing=opts.easing} 17418if(Velocity.debug){console.log("reverse tweensContainer ("+lastTween+"): "+JSON.stringify(lastTweensContainer[lastTween]),element)}}} 17419tweensContainer=lastTweensContainer}}else if(action==="start"){data=Data(element);if(data&&data.tweensContainer&&data.isAnimating===!0){lastTweensContainer=data.tweensContainer} 17420var parsePropertyValue=function(valueData,skipResolvingEasing){var endValue,easing,startValue;if(Type.isFunction(valueData)){valueData=valueData.call(element,elementArrayIndex,elementsLength)} 17421if(Type.isArray(valueData)){endValue=valueData[0];if(!Type.isArray(valueData[1])&&/^[\d-]/.test(valueData[1])||Type.isFunction(valueData[1])||CSS.RegEx.isHex.test(valueData[1])){startValue=valueData[1]}else if(Type.isString(valueData[1])&&!CSS.RegEx.isHex.test(valueData[1])&&Velocity.Easings[valueData[1]]||Type.isArray(valueData[1])){easing=skipResolvingEasing?valueData[1]:getEasing(valueData[1],opts.duration);startValue=valueData[2]}else{startValue=valueData[1]||valueData[2]}}else{endValue=valueData} 17422if(!skipResolvingEasing){easing=easing||opts.easing} 17423if(Type.isFunction(endValue)){endValue=endValue.call(element,elementArrayIndex,elementsLength)} 17424if(Type.isFunction(startValue)){startValue=startValue.call(element,elementArrayIndex,elementsLength)} 17425return[endValue||0,easing,startValue]};var fixPropertyValue=function(property,valueData){var rootProperty=CSS.Hooks.getRoot(property),rootPropertyValue=!1,endValue=valueData[0],easing=valueData[1],startValue=valueData[2],pattern;if((!data||!data.isSVG)&&rootProperty!=="tween"&&CSS.Names.prefixCheck(rootProperty)[1]===!1&&CSS.Normalizations.registered[rootProperty]===undefined){if(Velocity.debug){console.log("Skipping ["+rootProperty+"] due to a lack of browser support.")} 17426return} 17427if((opts.display!==undefined&&opts.display!==null&&opts.display!=="none"||opts.visibility!==undefined&&opts.visibility!=="hidden")&&/opacity|filter/.test(property)&&!startValue&&endValue!==0){startValue=0} 17428if(opts._cacheValues&&lastTweensContainer&&lastTweensContainer[property]){if(startValue===undefined){startValue=lastTweensContainer[property].endValue+lastTweensContainer[property].unitType} 17429rootPropertyValue=data.rootPropertyValueCache[rootProperty]}else{if(CSS.Hooks.registered[property]){if(startValue===undefined){rootPropertyValue=CSS.getPropertyValue(element,rootProperty);startValue=CSS.getPropertyValue(element,property,rootPropertyValue)}else{rootPropertyValue=CSS.Hooks.templates[rootProperty][1]}}else if(startValue===undefined){startValue=CSS.getPropertyValue(element,property)}} 17430var separatedValue,endValueUnitType,startValueUnitType,operator=!1;var separateValue=function(property,value){var unitType,numericValue;numericValue=(value||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(match){unitType=match;return""});if(!unitType){unitType=CSS.Values.getUnitType(property)} 17431return[numericValue,unitType]};if(startValue!==endValue&&Type.isString(startValue)&&Type.isString(endValue)){pattern="";var iStart=0,iEnd=0,aStart=[],aEnd=[],inCalc=0,inRGB=0,inRGBA=0;startValue=CSS.Hooks.fixColors(startValue);endValue=CSS.Hooks.fixColors(endValue);while(iStart<startValue.length&&iEnd<endValue.length){var cStart=startValue[iStart],cEnd=endValue[iEnd];if(/[\d\.-]/.test(cStart)&&/[\d\.-]/.test(cEnd)){var tStart=cStart,tEnd=cEnd,dotStart=".",dotEnd=".";while(++iStart<startValue.length){cStart=startValue[iStart];if(cStart===dotStart){dotStart=".."}else if(!/\d/.test(cStart)){break} 17432tStart+=cStart} 17433while(++iEnd<endValue.length){cEnd=endValue[iEnd];if(cEnd===dotEnd){dotEnd=".."}else if(!/\d/.test(cEnd)){break} 17434tEnd+=cEnd} 17435var uStart=CSS.Hooks.getUnit(startValue,iStart),uEnd=CSS.Hooks.getUnit(endValue,iEnd);iStart+=uStart.length;iEnd+=uEnd.length;if(uStart===uEnd){if(tStart===tEnd){pattern+=tStart+uStart}else{pattern+="{"+aStart.length+(inRGB?"!":"")+"}"+uStart;aStart.push(parseFloat(tStart));aEnd.push(parseFloat(tEnd))}}else{var nStart=parseFloat(tStart),nEnd=parseFloat(tEnd);pattern+=(inCalc<5?"calc":"")+"("+(nStart?"{"+aStart.length+(inRGB?"!":"")+"}":"0")+uStart+" + "+(nEnd?"{"+(aStart.length+(nStart?1:0))+(inRGB?"!":"")+"}":"0")+uEnd+")";if(nStart){aStart.push(nStart);aEnd.push(0)} 17436if(nEnd){aStart.push(0);aEnd.push(nEnd)}}}else if(cStart===cEnd){pattern+=cStart;iStart++;iEnd++;if(inCalc===0&&cStart==="c"||inCalc===1&&cStart==="a"||inCalc===2&&cStart==="l"||inCalc===3&&cStart==="c"||inCalc>=4&&cStart==="("){inCalc++}else if(inCalc&&inCalc<5||inCalc>=4&&cStart===")"&&--inCalc<5){inCalc=0} 17437if(inRGB===0&&cStart==="r"||inRGB===1&&cStart==="g"||inRGB===2&&cStart==="b"||inRGB===3&&cStart==="a"||inRGB>=3&&cStart==="("){if(inRGB===3&&cStart==="a"){inRGBA=1} 17438inRGB++}else if(inRGBA&&cStart===","){if(++inRGBA>3){inRGB=inRGBA=0}}else if(inRGBA&&inRGB<(inRGBA?5:4)||inRGB>=(inRGBA?4:3)&&cStart===")"&&--inRGB<(inRGBA?5:4)){inRGB=inRGBA=0}}else{inCalc=0;break}} 17439if(iStart!==startValue.length||iEnd!==endValue.length){if(Velocity.debug){console.error("Trying to pattern match mis-matched strings [\""+endValue+"\", \""+startValue+"\"]")} 17440pattern=undefined} 17441if(pattern){if(aStart.length){if(Velocity.debug){console.log("Pattern found \""+pattern+"\" -> ",aStart,aEnd,"["+startValue+","+endValue+"]")} 17442startValue=aStart;endValue=aEnd;endValueUnitType=startValueUnitType=""}else{pattern=undefined}}} 17443if(!pattern){separatedValue=separateValue(property,startValue);startValue=separatedValue[0];startValueUnitType=separatedValue[1];separatedValue=separateValue(property,endValue);endValue=separatedValue[0].replace(/^([+-\/*])=/,function(match,subMatch){operator=subMatch;return""});endValueUnitType=separatedValue[1];startValue=parseFloat(startValue)||0;endValue=parseFloat(endValue)||0;if(endValueUnitType==="%"){if(/^(fontSize|lineHeight)$/.test(property)){endValue=endValue/100;endValueUnitType="em"}else if(/^scale/.test(property)){endValue=endValue/100;endValueUnitType=""}else if(/(Red|Green|Blue)$/i.test(property)){endValue=endValue/100*255;endValueUnitType=""}}} 17444var calculateUnitRatios=function(){var sameRatioIndicators={myParent:element.parentNode||document.body,position:CSS.getPropertyValue(element,"position"),fontSize:CSS.getPropertyValue(element,"fontSize")},samePercentRatio=sameRatioIndicators.position===callUnitConversionData.lastPosition&&sameRatioIndicators.myParent===callUnitConversionData.lastParent,sameEmRatio=sameRatioIndicators.fontSize===callUnitConversionData.lastFontSize;callUnitConversionData.lastParent=sameRatioIndicators.myParent;callUnitConversionData.lastPosition=sameRatioIndicators.position;callUnitConversionData.lastFontSize=sameRatioIndicators.fontSize;var measurement=100,unitRatios={};if(!sameEmRatio||!samePercentRatio){var dummy=data&&data.isSVG?document.createElementNS("http://www.w3.org/2000/svg","rect"):document.createElement("div");Velocity.init(dummy);sameRatioIndicators.myParent.appendChild(dummy);$.each(["overflow","overflowX","overflowY"],function(i,property){Velocity.CSS.setPropertyValue(dummy,property,"hidden")});Velocity.CSS.setPropertyValue(dummy,"position",sameRatioIndicators.position);Velocity.CSS.setPropertyValue(dummy,"fontSize",sameRatioIndicators.fontSize);Velocity.CSS.setPropertyValue(dummy,"boxSizing","content-box");$.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(i,property){Velocity.CSS.setPropertyValue(dummy,property,measurement+"%")});Velocity.CSS.setPropertyValue(dummy,"paddingLeft",measurement+"em");unitRatios.percentToPxWidth=callUnitConversionData.lastPercentToPxWidth=(parseFloat(CSS.getPropertyValue(dummy,"width",null,!0))||1)/measurement;unitRatios.percentToPxHeight=callUnitConversionData.lastPercentToPxHeight=(parseFloat(CSS.getPropertyValue(dummy,"height",null,!0))||1)/measurement;unitRatios.emToPx=callUnitConversionData.lastEmToPx=(parseFloat(CSS.getPropertyValue(dummy,"paddingLeft"))||1)/measurement;sameRatioIndicators.myParent.removeChild(dummy)}else{unitRatios.emToPx=callUnitConversionData.lastEmToPx;unitRatios.percentToPxWidth=callUnitConversionData.lastPercentToPxWidth;unitRatios.percentToPxHeight=callUnitConversionData.lastPercentToPxHeight} 17445if(callUnitConversionData.remToPx===null){callUnitConversionData.remToPx=parseFloat(CSS.getPropertyValue(document.body,"fontSize"))||16} 17446if(callUnitConversionData.vwToPx===null){callUnitConversionData.vwToPx=parseFloat(window.innerWidth)/100;callUnitConversionData.vhToPx=parseFloat(window.innerHeight)/100} 17447unitRatios.remToPx=callUnitConversionData.remToPx;unitRatios.vwToPx=callUnitConversionData.vwToPx;unitRatios.vhToPx=callUnitConversionData.vhToPx;if(Velocity.debug>=1){console.log("Unit ratios: "+JSON.stringify(unitRatios),element)} 17448return unitRatios};if(/[\/*]/.test(operator)){endValueUnitType=startValueUnitType}else if(startValueUnitType!==endValueUnitType&&startValue!==0){if(endValue===0){endValueUnitType=startValueUnitType}else{elementUnitConversionData=elementUnitConversionData||calculateUnitRatios();var axis=/margin|padding|left|right|width|text|word|letter/i.test(property)||/X$/.test(property)||property==="x"?"x":"y";switch(startValueUnitType){case "%":startValue*=axis==="x"?elementUnitConversionData.percentToPxWidth:elementUnitConversionData.percentToPxHeight;break;case "px":break;default:startValue*=elementUnitConversionData[startValueUnitType+"ToPx"]} 17449switch(endValueUnitType){case "%":startValue*=1/(axis==="x"?elementUnitConversionData.percentToPxWidth:elementUnitConversionData.percentToPxHeight);break;case "px":break;default:startValue*=1/elementUnitConversionData[endValueUnitType+"ToPx"]}}} 17450switch(operator){case "+":endValue=startValue+endValue;break;case "-":endValue=startValue-endValue;break;case "*":endValue=startValue*endValue;break;case "/":endValue=startValue/endValue;break} 17451tweensContainer[property]={rootPropertyValue:rootPropertyValue,startValue:startValue,currentValue:startValue,endValue:endValue,unitType:endValueUnitType,easing:easing};if(pattern){tweensContainer[property].pattern=pattern} 17452if(Velocity.debug){console.log("tweensContainer ("+property+"): "+JSON.stringify(tweensContainer[property]),element)}};for(var property in propertiesMap){if(!propertiesMap.hasOwnProperty(property)){continue} 17453var propertyName=CSS.Names.camelCase(property),valueData=parsePropertyValue(propertiesMap[property]);if(_inArray(CSS.Lists.colors,propertyName)){var endValue=valueData[0],easing=valueData[1],startValue=valueData[2];if(CSS.RegEx.isHex.test(endValue)){var colorComponents=["Red","Green","Blue"],endValueRGB=CSS.Values.hexToRgb(endValue),startValueRGB=startValue?CSS.Values.hexToRgb(startValue):undefined;for(var i=0;i<colorComponents.length;i++){var dataArray=[endValueRGB[i]];if(easing){dataArray.push(easing)} 17454if(startValueRGB!==undefined){dataArray.push(startValueRGB[i])} 17455fixPropertyValue(propertyName+colorComponents[i],dataArray)} 17456continue}} 17457fixPropertyValue(propertyName,valueData)} 17458tweensContainer.element=element} 17459if(tweensContainer.element){CSS.Values.addClass(element,"velocity-animating");call.push(tweensContainer);data=Data(element);if(data){if(opts.queue===""){data.tweensContainer=tweensContainer;data.opts=opts} 17460data.isAnimating=!0} 17461if(elementsIndex===elementsLength-1){Velocity.State.calls.push([call,elements,opts,null,promiseData.resolver,null,0]);if(Velocity.State.isTicking===!1){Velocity.State.isTicking=!0;tick()}}else{elementsIndex++}}} 17462if(opts.queue===!1){if(opts.delay){var callIndex=Velocity.State.delayedElements.count++;Velocity.State.delayedElements[callIndex]=element;var delayComplete=function(index){return function(){Velocity.State.delayedElements[index]=!1;buildQueue()}}(callIndex);Data(element).delayBegin=new Date().getTime();Data(element).delay=parseFloat(opts.delay);Data(element).delayTimer={setTimeout:setTimeout(buildQueue,parseFloat(opts.delay)),next:delayComplete}}else{buildQueue()}}else{$.queue(element,opts.queue,function(next,clearQueue){if(clearQueue===!0){if(promiseData.promise){promiseData.resolver(elements)} 17463return!0} 17464Velocity.velocityQueueEntryFlag=!0;buildQueue(next)})} 17465if((opts.queue===""||opts.queue==="fx")&&$.queue(element)[0]!=="inprogress"){$.dequeue(element)}} 17466$.each(elements,function(i,element){if(Type.isNode(element)){processElement(element,i)}});opts=$.extend({},Velocity.defaults,options);opts.loop=parseInt(opts.loop,10);var reverseCallsCount=opts.loop*2-1;if(opts.loop){for(var x=0;x<reverseCallsCount;x++){var reverseOptions={delay:opts.delay,progress:opts.progress};if(x===reverseCallsCount-1){reverseOptions.display=opts.display;reverseOptions.visibility=opts.visibility;reverseOptions.complete=opts.complete} 17467animate(elements,"reverse",reverseOptions)}} 17468return getChain()};Velocity=$.extend(animate,Velocity);Velocity.animate=animate;var ticker=window.requestAnimationFrame||rAFShim;if(!Velocity.State.isMobile&&document.hidden!==undefined){var updateTicker=function(){if(document.hidden){ticker=function(callback){return setTimeout(function(){callback(!0)},16)};tick()}else{ticker=window.requestAnimationFrame||rAFShim}};updateTicker();document.addEventListener("visibilitychange",updateTicker)} 17469function tick(timestamp){if(timestamp){var timeCurrent=Velocity.timestamp&×tamp!==!0?timestamp:performance.now();var callsLength=Velocity.State.calls.length;if(callsLength>10000){Velocity.State.calls=compactSparseArray(Velocity.State.calls);callsLength=Velocity.State.calls.length} 17470for(var i=0;i<callsLength;i++){if(!Velocity.State.calls[i]){continue} 17471var callContainer=Velocity.State.calls[i],call=callContainer[0],opts=callContainer[2],timeStart=callContainer[3],firstTick=!timeStart,tweenDummyValue=null,pauseObject=callContainer[5],millisecondsEllapsed=callContainer[6];if(!timeStart){timeStart=Velocity.State.calls[i][3]=timeCurrent-16} 17472if(pauseObject){if(pauseObject.resume===!0){timeStart=callContainer[3]=Math.round(timeCurrent-millisecondsEllapsed-16);callContainer[5]=null}else{continue}} 17473millisecondsEllapsed=callContainer[6]=timeCurrent-timeStart;var percentComplete=Math.min(millisecondsEllapsed/opts.duration,1);for(var j=0,callLength=call.length;j<callLength;j++){var tweensContainer=call[j],element=tweensContainer.element;if(!Data(element)){continue} 17474var transformPropertyExists=!1;if(opts.display!==undefined&&opts.display!==null&&opts.display!=="none"){if(opts.display==="flex"){var flexValues=["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"];$.each(flexValues,function(i,flexValue){CSS.setPropertyValue(element,"display",flexValue)})} 17475CSS.setPropertyValue(element,"display",opts.display)} 17476if(opts.visibility!==undefined&&opts.visibility!=="hidden"){CSS.setPropertyValue(element,"visibility",opts.visibility)} 17477for(var property in tweensContainer){if(tweensContainer.hasOwnProperty(property)&&property!=="element"){var tween=tweensContainer[property],currentValue,easing=Type.isString(tween.easing)?Velocity.Easings[tween.easing]:tween.easing;if(Type.isString(tween.pattern)){var patternReplace=percentComplete===1?function($0,index,round){var result=tween.endValue[index];return round?Math.round(result):result}:function($0,index,round){var startValue=tween.startValue[index],tweenDelta=tween.endValue[index]-startValue,result=startValue+tweenDelta*easing(percentComplete,opts,tweenDelta);return round?Math.round(result):result};currentValue=tween.pattern.replace(/{(\d+)(!)?}/g,patternReplace)}else if(percentComplete===1){currentValue=tween.endValue}else{var tweenDelta=tween.endValue-tween.startValue;currentValue=tween.startValue+tweenDelta*easing(percentComplete,opts,tweenDelta)} 17478if(!firstTick&¤tValue===tween.currentValue){continue} 17479tween.currentValue=currentValue;if(property==="tween"){tweenDummyValue=currentValue}else{var hookRoot;if(CSS.Hooks.registered[property]){hookRoot=CSS.Hooks.getRoot(property);var rootPropertyValueCache=Data(element).rootPropertyValueCache[hookRoot];if(rootPropertyValueCache){tween.rootPropertyValue=rootPropertyValueCache}} 17480var adjustedSetData=CSS.setPropertyValue(element,property,tween.currentValue+(IE<9&&parseFloat(currentValue)===0?"":tween.unitType),tween.rootPropertyValue,tween.scrollData);if(CSS.Hooks.registered[property]){if(CSS.Normalizations.registered[hookRoot]){Data(element).rootPropertyValueCache[hookRoot]=CSS.Normalizations.registered[hookRoot]("extract",null,adjustedSetData[1])}else{Data(element).rootPropertyValueCache[hookRoot]=adjustedSetData[1]}} 17481if(adjustedSetData[0]==="transform"){transformPropertyExists=!0}}}} 17482if(opts.mobileHA){if(Data(element).transformCache.translate3d===undefined){Data(element).transformCache.translate3d="(0px, 0px, 0px)";transformPropertyExists=!0}} 17483if(transformPropertyExists){CSS.flushTransformCache(element)}} 17484if(opts.display!==undefined&&opts.display!=="none"){Velocity.State.calls[i][2].display=!1} 17485if(opts.visibility!==undefined&&opts.visibility!=="hidden"){Velocity.State.calls[i][2].visibility=!1} 17486if(opts.progress){opts.progress.call(callContainer[1],callContainer[1],percentComplete,Math.max(0,timeStart+opts.duration-timeCurrent),timeStart,tweenDummyValue)} 17487if(percentComplete===1){completeCall(i)}}} 17488if(Velocity.State.isTicking){ticker(tick)}} 17489function completeCall(callIndex,isStopped){if(!Velocity.State.calls[callIndex]){return!1} 17490var call=Velocity.State.calls[callIndex][0],elements=Velocity.State.calls[callIndex][1],opts=Velocity.State.calls[callIndex][2],resolver=Velocity.State.calls[callIndex][4];var remainingCallsExist=!1;for(var i=0,callLength=call.length;i<callLength;i++){var element=call[i].element;if(!isStopped&&!opts.loop){if(opts.display==="none"){CSS.setPropertyValue(element,"display",opts.display)} 17491if(opts.visibility==="hidden"){CSS.setPropertyValue(element,"visibility",opts.visibility)}} 17492var data=Data(element);if(opts.loop!==!0&&($.queue(element)[1]===undefined||!/\.velocityQueueEntryFlag/i.test($.queue(element)[1]))){if(data){data.isAnimating=!1;data.rootPropertyValueCache={};var transformHAPropertyExists=!1;$.each(CSS.Lists.transforms3D,function(i,transformName){var defaultValue=/^scale/.test(transformName)?1:0,currentValue=data.transformCache[transformName];if(data.transformCache[transformName]!==undefined&&new RegExp("^\\("+defaultValue+"[^.]").test(currentValue)){transformHAPropertyExists=!0;delete data.transformCache[transformName]}});if(opts.mobileHA){transformHAPropertyExists=!0;delete data.transformCache.translate3d} 17493if(transformHAPropertyExists){CSS.flushTransformCache(element)} 17494CSS.Values.removeClass(element,"velocity-animating")}} 17495if(!isStopped&&opts.complete&&!opts.loop&&i===callLength-1){try{opts.complete.call(elements,elements)}catch(error){setTimeout(function(){throw error},1)}} 17496if(resolver&&opts.loop!==!0){resolver(elements)} 17497if(data&&opts.loop===!0&&!isStopped){$.each(data.tweensContainer,function(propertyName,tweenContainer){if(/^rotate/.test(propertyName)&&(parseFloat(tweenContainer.startValue)-parseFloat(tweenContainer.endValue))%360===0){var oldStartValue=tweenContainer.startValue;tweenContainer.startValue=tweenContainer.endValue;tweenContainer.endValue=oldStartValue} 17498if(/^backgroundPosition/.test(propertyName)&&parseFloat(tweenContainer.endValue)===100&&tweenContainer.unitType==="%"){tweenContainer.endValue=0;tweenContainer.startValue=100}});Velocity(element,"reverse",{loop:!0,delay:opts.delay})} 17499if(opts.queue!==!1){$.dequeue(element,opts.queue)}} 17500Velocity.State.calls[callIndex]=!1;for(var j=0,callsLength=Velocity.State.calls.length;j<callsLength;j++){if(Velocity.State.calls[j]!==!1){remainingCallsExist=!0;break}} 17501if(remainingCallsExist===!1){Velocity.State.isTicking=!1;delete Velocity.State.calls;Velocity.State.calls=[]}} 17502global.Velocity=Velocity;if(global!==window){global.fn.velocity=animate;global.fn.velocity.defaults=Velocity.defaults} 17503$.each(["Down","Up"],function(i,direction){Velocity.Redirects["slide"+direction]=function(element,options,elementsIndex,elementsSize,elements,promiseData){var opts=$.extend({},options),begin=opts.begin,complete=opts.complete,inlineValues={},computedValues={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""};if(opts.display===undefined){opts.display=direction==="Down"?Velocity.CSS.Values.getDisplayType(element)==="inline"?"inline-block":"block":"none"} 17504opts.begin=function(){if(elementsIndex===0&&begin){begin.call(elements,elements)} 17505for(var property in computedValues){if(!computedValues.hasOwnProperty(property)){continue} 17506inlineValues[property]=element.style[property];var propertyValue=CSS.getPropertyValue(element,property);computedValues[property]=direction==="Down"?[propertyValue,0]:[0,propertyValue]} 17507inlineValues.overflow=element.style.overflow;element.style.overflow="hidden"};opts.complete=function(){for(var property in inlineValues){if(inlineValues.hasOwnProperty(property)){element.style[property]=inlineValues[property]}} 17508if(elementsIndex===elementsSize-1){if(complete){complete.call(elements,elements)} 17509if(promiseData){promiseData.resolver(elements)}}};Velocity(element,computedValues,opts)}});$.each(["In","Out"],function(i,direction){Velocity.Redirects["fade"+direction]=function(element,options,elementsIndex,elementsSize,elements,promiseData){var opts=$.extend({},options),complete=opts.complete,propertiesMap={opacity:direction==="In"?1:0};if(elementsIndex!==0){opts.begin=null} 17510if(elementsIndex!==elementsSize-1){opts.complete=null}else{opts.complete=function(){if(complete){complete.call(elements,elements)} 17511if(promiseData){promiseData.resolver(elements)}}} 17512if(opts.display===undefined){opts.display=direction==="In"?"auto":"none"} 17513Velocity(this,propertiesMap,opts)}});return Velocity}(window.jQuery||window.Zepto||window,window,window?window.document:undefined)})}),
vendor: 361 bytes, lines 17513-17519
17513"./node_modules/webpack/buildin/global.js": 17514/*!***********************************!*\ 17515 !*** (webpack)/buildin/global.js ***! 17516 \***********************************/ 17517/*! no static exports found */ 17518(function(module,exports){var g;g=function(){return this}();try{g=g||new Function("return this")()}catch(e){if(typeof window==="object")g=window} 17519module.exports=g})
17519,0: 17520/*!********************************************!*\ 17521 !*** multi ./js/theme.js ./css/theme.scss ***! 17522 \********************************************/ 17523/*! no static exports found */ 17524(function(module,exports,__webpack_require__){__webpack_require__(/*! ./js/theme.js */"./js/theme.js");module.exports=__webpack_require__(/*! ./css/theme.scss */"./css/theme.scss")}),"jquery": 17525/*!*************************!*\ 17526 !*** external "jQuery" ***! 17527 \*************************/ 17528/*! no static exports found */ 17529(function(module,exports){module.exports=jQuery}),"prestashop": 17530/*!*****************************!*\ 17531 !*** external "prestashop" ***! 17532 \*****************************/ 17533/*! no static exports found */ 17534(function(module,exports){module.exports=prestashop})});/** 17535* 2010-2019 Webkul. 17536* 17537* NOTICE OF LICENSE 17538* 17539* All right is reserved, 17540* Please go through this link for complete license : https://store.webkul.com/license.html 17541* 17542* DISCLAIMER 17543* 17544* Do not edit or add to this file if you wish to upgrade this module to newer 17545* versions in the future. If you wish to customize this module for your 17546* needs please refer to https://store.webkul.com/customisation-guidelines/ for more information. 17547* 17548* @author Webkul IN <[email protected]> 17549* @copyright 2010-2019 Webkul IN 17550* @license https://store.webkul.com/license.html 17551*/ 17552var WK_COMPARE_PRODUCTS;$(document).ready(function(){$('#wk_cmp_badge_div').height(0);$('#wk_cmp_count').height(0);$('#wk_cmp_badge_div').animate({width:badgeSize+'px'},{duration:200,queue:!1});$('#wk_cmp_badge_div').animate({height:badgeSize+'px'},{duration:200,queue:!1});$('#wk_cmp_badge_div').animate({padding:((badgeSize-12)/2)+'px 10px'},{duration:200,queue:!1});$('#wk_cmp_count').text(badgeCount);WK_COMPARE_PRODUCTS={fn:{rippleBadge:function(response){$(".ripple").remove();var buttonWidth=$("#wk_cmp_badge_div").width(),buttonHeight=$("#wk_cmp_badge_div").height();$("#wk_cmp_badge_div").before("<span class='ripple'></span>");if(buttonWidth>=buttonHeight){buttonHeight=buttonWidth}else{buttonWidth=buttonHeight} 17553$(".ripple").addClass("rippleEffect");$(".ripple").one('webkitAnimationEnd oanimationend msAnimationEnd animationend',function(e){$('#wk_cmp_count').css('color','transparent');$('#wk_cmp_count').text(response.msg);$("#wk_cmp_badge_div").css('width',"auto");var autoWidth=$('#wk_cmp_badge_div').width();$('#wk_cmp_badge_div').width(badgeSize).animate({'width':(autoWidth+30)},500,function(){$('#wk_cmp_count').css('color',badgeTextColor)});setTimeout(function(){$('#wk_cmp_badge_div').animate({'width':badgeSize+'px'},500);$('#wk_cmp_count').text(response.products.length)},4000)})},callAjax:function(requestUrl,requestData,callback=function(){},elem,dataType="json"){$.ajax({type:"POST",url:requestUrl,data:requestData,dataType:dataType,success:function(response){callback(response,elem)},error:function(error,exception){console.log(error.status);console.log(exception)}})},addCompareClick:function(btn){var idProduct=$(btn).attr('data-product-id');WK_COMPARE_PRODUCTS.fn.callAjax(addToCompareUrl,{ajax:1,action:'addToCompare',id_product:idProduct},function(response,elem){elem='.wk_compare_'+idProduct;WK_COMPARE_PRODUCTS.fn.rippleBadge(response);if(response.status=='ok'){$(elem).removeClass('btn-primary').addClass('btn-danger');$(elem).children('i').text('clear');$(elem).removeAttr('onclick');$(elem).off('click');$(elem).attr('title',wkCmpRemoveTitle);$(elem).on('click',function(){WK_COMPARE_PRODUCTS.fn.removeCompareClick(elem)});$(elem).removeClass('wk_cmp_compare_delete_btn').addClass('wk_cmp_compare_btn');$(elem).removeClass('wk_cmp_add_compare').addClass('wk_cmp_remove_compare');$(elem).children('.wk_cmp_add_compare_title').text(wkCmpRemoveTitle)}},btn)},removeCompareClick:function(btn){var idProduct=$(btn).attr('data-product-id');WK_COMPARE_PRODUCTS.fn.callAjax(addToCompareUrl,{ajax:1,action:'removeFromCompare',id_product:idProduct},function(response,elem){elem='.wk_compare_'+idProduct;WK_COMPARE_PRODUCTS.fn.rippleBadge(response);if(response.status=='ok'){$(elem).removeClass('btn-danger').addClass('btn-primary');$(elem).children('i').text('compare_arrows');$(elem).removeAttr('onclick');$(elem).off('click');$(elem).on('click',function(){WK_COMPARE_PRODUCTS.fn.addCompareClick(elem)});$(elem).attr('title',wkCmpAddTitle);$(elem).removeClass('wk_cmp_remove_compare').addClass('wk_cmp_add_compare');$(elem).children('.wk_cmp_add_compare_title').text(wkCmpAddTitle);$(".wk_cmp_product_td_"+idProduct).fadeOut(500,function(){$('#wk_cmp_product_wrapper').parent().html(response.template)})}},btn)},highlightDifferences:function(tableBgColor){$('#wk_cmp_feat_header').fadeIn(300);$('#wk_cmp_comb_header').fadeIn(300);$('.wk_cmp_similiar_comparison').fadeIn(300);$('.wk_cmp_different_comparison').fadeIn(300);$('.wk_cmp_similiar_comparison').css('background',tableBgColor);$('.wk_cmp_different_comparison').css('background',highLightColor);$('#wk_cmp_hl_diff').addClass('active');$('#wk_cmp_hl_same, #wk_cmp_rm_diff, #wk_cmp_rm_same').removeClass('active')},highlightSimiliar:function(tableBgColor){$('.wk_cmp_similiar_comparison').fadeIn(300);$('.wk_cmp_different_comparison').fadeIn(300);$('.wk_cmp_similiar_comparison').css('background',highLightColor);$('.wk_cmp_different_comparison').css('background',tableBgColor);$('#wk_cmp_hl_same').addClass('active');$('#wk_cmp_hl_diff, #wk_cmp_rm_diff, #wk_cmp_rm_same').removeClass('active')},removeDifferences:function(tableBgColor){$('.wk_cmp_different_comparison').css('background',tableBgColor);$('.wk_cmp_similiar_comparison').css('background',tableBgColor);$('.wk_cmp_similiar_comparison').fadeIn(300);$('.wk_cmp_different_comparison').fadeOut(300);if($('.wk_cmp_feat_same').length==0){$('#wk_cmp_feat_header').fadeOut(300)}else{$('#wk_cmp_feat_header').fadeIn(300)} 17554if($('.wk_cmp_attr_same').length==0){$('#wk_cmp_comb_header').fadeOut(300)}else{$('#wk_cmp_comb_header').fadeIn(300)} 17555$('#wk_cmp_rm_diff').addClass('active');$('#wk_cmp_hl_same, #wk_cmp_hl_diff, #wk_cmp_rm_same').removeClass('active')},removeSimiliar:function(tableBgColor){$('.wk_cmp_different_comparison').css('background',tableBgColor);$('.wk_cmp_similiar_comparison').css('background',tableBgColor);if($('.wk_cmp_feat_diff').length==0){$('#wk_cmp_feat_header').fadeOut(300)}else{$('#wk_cmp_feat_header').fadeIn(300)} 17556if($('.wk_cmp_attr_diff').length==0){$('#wk_cmp_comb_header').fadeOut(300)}else{$('#wk_cmp_comb_header').fadeIn(300)} 17557$('.wk_cmp_similiar_comparison').fadeOut(300);$('.wk_cmp_different_comparison').fadeIn(300);$('#wk_cmp_rm_same').addClass('active');$('#wk_cmp_hl_same, #wk_cmp_rm_diff, #wk_cmp_hl_diff').removeClass('active')}}};$('#wk_cmp_badge_div').on('click',function(){WK_COMPARE_PRODUCTS.fn.callAjax(addToCompareUrl,{ajax:1,action:'getCompareProducts'},function(response,elem){console.log(response);if(response.status=='ok'){$('#wk_cmp_modal_body').html(response.template);$('#wk_compare_product_modal').modal()}},this)})});var addCompareAction=function(elem){WK_COMPARE_PRODUCTS.fn.addCompareClick(elem)} 17558var removeCompareAction=function(elem){WK_COMPARE_PRODUCTS.fn.removeCompareClick(elem)} 17559var highlightDifferencesAction=function(tableColor){WK_COMPARE_PRODUCTS.fn.highlightDifferences(tableColor)} 17560var highlightSimiliarAction=function(tableColor){WK_COMPARE_PRODUCTS.fn.highlightSimiliar(tableColor)} 17561var removeDifferencesAction=function(tableColor){WK_COMPARE_PRODUCTS.fn.removeDifferences(tableColor)} 17562var removeSimiliarAction=function(tableColor){WK_COMPARE_PRODUCTS.fn.removeSimiliar(tableColor)};/*! For license information please see front.js.LICENSE.txt */ 17563(()=>{var e={267:()=>{},379:e=>{"use strict";var t=[];function r(e){for(var r=-1,n=0;n<t.length;n++)if(t[n].identifier===e){r=n;break}return r}function n(e,n){for(var a={},o=[],i=0;i<e.length;i++){var c=e[i],u=n.base?c[0]+n.base:c[0],l=a[u]||0,d="".concat(u," ").concat(l);a[u]=l+1;var p=r(d),f={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==p)t[p].references++,t[p].updater(f);else{var v=s(f,n);n.byIndex=i,t.splice(i,0,{identifier:d,updater:v,references:1})}o.push(d)}return o}function s(e,t){var r=t.domAPI(t);return r.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;r.update(e=t)}else r.remove()}}e.exports=function(e,s){var a=n(e=e||[],s=s||{});return function(e){e=e||[];for(var o=0;o<a.length;o++){var i=r(a[o]);t[i].references--}for(var c=n(e,s),u=0;u<a.length;u++){var l=r(a[u]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}a=c}}},569:e=>{"use strict";var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);
17563if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},565:(e,t,r)=>{"use strict";e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},795:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(r){!function(e,t,r){var n="";r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {"));var s=void 0!==r.layer;s&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,s&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var a=r.sourceMap;a&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.nc=void 0,(()=>{"use strict";var e=r(379),t=r.n(e),n=r(795),s=r.n(n),a=r(569),o=r.n(a),i=r(565),c=r.n(i),u=r(216),l=r.n(u),d=r(589),p=r.n(d),f=r(267),v=r.n(f),m={};m.styleTagTransform=p(),m.setAttributes=c(),m.insert=o().bind(null,"head"),m.domAPI=s(),m.insertStyleElement=l(),t()(v(),m),v()&&v().locals&&v().locals,$(window).ready((()=>{const e=$(".blockreassurance_product img.svg, .blockreassurance img.svg").map((function(){return $(this).attr("src")})).toArray();e.filter(((t,r)=>e.indexOf(t)===r)).forEach((function(e){const t=$(`.blockreassurance_product img.svg.invisible[src="${e}"], .blockreassurance img.svg.invisible[src="${e}"]`);0!==t.length&&$.ajax({url:e,type:"GET",success(r){if($.isXMLDoc(r)){let n=$(r).find("svg");n=n.attr("data-img-url",e),n=n.removeAttr("xmlns:a"),n.find("path[fill]").attr("fill",window.psr_icon_color),n.find("path:not([fill])").css("fill",window.psr_icon_color),t.each((function(){const e=$(this).attr("id"),t=$(this).attr("class");let r=n.clone();r=void 0!==e?r.attr("id",e):r,r=void 0!==t?r.attr("class",`${t} replaced-svg`):r.attr("class"," replaced-svg"),r.removeClass("invisible"),$(this).replaceWith(r)}))}}})}))}))})()})();$(document).ready(function(){$('.form-fields').append('<input type="hidden" id="captcha-box" value="" name="g-recaptcha-response">')});/*! 17564 * Creative Elements - live Theme & Page Builder 17565 * Copyright 2019-2023 WebshopWorks.com & Elementor.com 17566 */ 17567!function(e){var r={};function o(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=e,o.c=r,o.d=function(t,n,e){o.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(n,t){if(1&t&&(n=o(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var e=Object.create(null);if(o.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var r in n)o.d(e,r,function(t){return n[t]}.bind(null,r));return e},o.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(n,"a",n),n},o.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},o.p="",o(o.s=753)}([function(t,n){t.exports=function(t){return t&&t.__esModule?t:{default:t}}},function(t,n,e){t.exports=e(148)},function(t,n){t.exports=function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}},function(t,n,e){var o=e(1);function r(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),o(t,r.key,r)}}t.exports=function(t,n,e){return n&&r(t.prototype,n),e&&r(t,e),t}},function(t,n,e){var r=e(123),o=e(118);t.exports=function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=r(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&o(t,n)}},function(t,n,e){var o=e(93),i=e(14),u=e(131),c=e(163);t.exports=function(e){var r=u();return function(){var t,n=i(e);return t=r?(t=i(this).constructor,o(n,arguments,t)):n.apply(this,arguments),c(this,t)}}},function(t,n){t=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=t)},function(t,n,e){function d(t,n,e){var r,o,i,u=t&d.F,c=t&d.G,s=t&d.S,f=t&d.P,a=t&d.B,l=t&d.W,p=c?y:y[n]||(y[n]={}),h=p[S],v=c?g:s?g[n]:(g[n]||{})[S];for(r in e=c?n:e)(o=!u&&v&&void 0!==v[r])&&b(p,r)||(i=(o?v:e)[r],p[r]=c&&"function"!=typeof v[r]?e[r]:a&&o?m(i,g):l&&v[r]==i?function(r){function t(t,n,e){if(this instanceof r){switch(arguments.length){case 0:return new r;case 1:return new r(t);case 2:return new r(t,n)}return new r(t,n,e)}return r.apply(this,arguments)}return t[S]=r[S],t}(i):f&&"function"==typeof i?m(Function.call,i):i,f&&((p.virtual||(p.virtual={}))[r]=i,t&d.R&&h&&!h[r]&&x(h,r,i)))}var g=e(8),y=e(6),m=e(30),x=e(24),b=e(19),S="prototype";d.F=1,d.G=2,d.S=4,d.P=8,d.B=16,d.W=32,d.U=64,d.R=128,t.exports=d},function(t,n){t=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,e){var r=e(71)("wks"),o=e(51),i=e(8).Symbol,u="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=r},function(t,n,e){var r=e(63)("wks"),o=e(64),i=e(15).Symbol,u="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=r},function(t,n,e){var r=e(9);t.exports=function(t){if(r(t))return t;throw TypeError(t+" is not an object!")}},function(t,n,e){t.exports=!e(20)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(n,t,e){var r=e(150),o=e(112);function i(t){return n.exports=i=o?r:function(t){return t.__proto__||r(t)},i(t)}n.exports=i},function(t,n){t=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},function(t,n,e){var r=e(12),o=e(111),i=e(69),u=Object.defineProperty;n.f=e(13)?Object.defineProperty:function(t,n,e){if(r(t),n=i(n,!0),r(e),o)try{return u(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){"use strict";var r=e(32),o=e(119)(5),i="find",u=!0;i in[]&&Array(1)[i](function(){u=!1}),r(r.P+r.F*u,"Array",{find:function(t){return o(this,t,1<arguments.length?arguments[1]:void 0)}}),e(78)(i)},function(t,n,e){var r=e(26);t.exports=function(t){if(r(t))return t;throw TypeError(t+" is not an object!")}},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,e){var r=e(104),o=e(56);t.exports=function(t){return r(o(t))}},function(r,t,n){var o=n(137),i=n(195),u=n(198);function c(t,n,e){return"undefined"!=typeof Reflect&&i?r.exports=c=i:r.exports=c=function(t,n,e){var t=u(t,n);if(t)return t=o(t,n),t.get?t.get.call(e):t.value},c(t,n,e||t)}r.exports=c},function(t,n,e){t.exports=e(199)},function(t,n,e){var r=e(16),o=e(43);t.exports=e(13)?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){t.exports=!e(28)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,e){var r=e(44),o=e(91);t.exports=e(25)?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,e){var r=e(44).f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||e(25)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(t){return""}}})},function(t,n,e){var i=e(42);t.exports=function(r,o,t){if(i(r),void 0===o)return r;switch(t){case 1:return function(t){return r.call(o,t)};case 2:return function(t,n){return r.call(o,t,n)};case 3:return function(t,n,e){return r.call(o,t,n,e)}}return function(){return r.apply(o,arguments)}}},function(t,n,e){var r=e(56);t.exports=function(t){return Object(r(t))}},function(t,n,e){function h(t,n,e){var r,o,i,u=t&h.F,c=t&h.G,s=t&h.P,f=t&h.B,a=c?v:t&h.S?v[n]||(v[n]={}):(v[n]||{})[x],l=c?d:d[n]||(d[n]={}),p=l[x]||(l[x]={});for(r in e=c?n:e)o=((i=!u&&a&&void 0!==a[r])?a:e)[r],i=f&&i?m(o,v):s&&"function"==typeof o?m(Function.call,o):o,a&&y(a,r,o,t&h.U),l[r]!=o&&g(l,r,i),s&&p[r]!=o&&(p[r]=o)}var v=e(15),d=e(45),g=e(27),y=e(33),m=e(58),x="prototype";v.core=d,h.F=1,h.G=2,h.S=4,h.P=8,h.B=16,h.W=32,h.U=64,h.R=128,t.exports=h},function(t,n,e){var i=e(15),u=e(27),c=e(54),s=e(64)("src"),r=e(126
17567),o="toString",f=(""+r).split(o);e(45).inspectSource=function(t){return r.call(t)},(t.exports=function(t,n,e,r){var o="function"==typeof e;o&&!c(e,"name")&&u(e,"name",n),t[n]!==e&&(o&&!c(e,s)&&u(e,s,t[n]?""+t[n]:f.join(String(n))),t===i?t[n]=e:r?t[n]?t[n]=e:u(t,n,e):(delete t[n],u(t,n,e)))})(Function.prototype,o,function(){return"function"==typeof this&&this[s]||r.call(this)})},function(t,n){t.exports={}},,function(t,n){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n,e){var r=e(113),o=e(73);t.exports=Object.keys||function(t){return r(t,o)}},,function(n,t,e){var r=e(138),o=e(105);function i(t){return n.exports=i="function"==typeof o&&"symbol"==typeof r?function(t){return typeof t}:function(t){return t&&"function"==typeof o&&t.constructor===o&&t!==o.prototype?"symbol":typeof t},i(t)}n.exports=i},function(t,n,e){var r=e(50),o=Math.min;t.exports=function(t){return 0<t?o(r(t),9007199254740991):0}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,e){var r=e(18),o=e(116),i=e(108),u=Object.defineProperty;n.f=e(25)?Object.defineProperty:function(t,n,e){if(r(t),n=i(n,!0),r(e),o)try{return u(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n){t=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=t)},function(t,n){t.exports=!0},function(t,n,e){function r(){}var o=e(12),i=e(128),u=e(73),c=e(70)("IE_PROTO"),s="prototype",f=function(){var t=e(92)("iframe"),n=u.length;for(t.style.display="none",e(129).appendChild(t),t.src="javascript:",(t=t.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),f=t.F;n--;)delete f[s][u[n]];return f()};t.exports=Object.create||function(t,n){var e;return null!==t?(r[s]=o(t),e=new r,r[s]=null,e[c]=t):e=f(),void 0===n?e:i(e,n)}},function(t,n){n.f={}.propertyIsEnumerable},function(t,n){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(0<t?r:e)(t)}},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},function(t,n,e){var r=e(16).f,o=e(19),i=e(10)("toStringTag");t.exports=function(t,n,e){t&&!o(t=e?t:t.prototype,i)&&r(t,i,{configurable:!0,value:n})}},,function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){var r=e(48),o=e(43),i=e(21),u=e(69),c=e(19),s=e(111),f=Object.getOwnPropertyDescriptor;n.f=e(13)?f:function(t,n){if(t=i(t),n=u(n,!0),s)try{return f(t,n)}catch(t){}if(c(t,n))return o(!r.f.call(t,n),t[n])}},function(t,n){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,e){"use strict";var r=e(165)(!0);e(94)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(t=r(t,n),this._i+=t.length,{value:t,done:!1})})},function(t,n,e){var i=e(79);t.exports=function(r,o,t){if(i(r),void 0===o)return r;switch(t){case 1:return function(t){return r.call(o,t)};case 2:return function(t,n){return r.call(o,t,n)};case 3:return function(t,n,e){return r.call(o,t,n,e)}}return function(){return r.apply(o,arguments)}}},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n,e){e(167);for(var r=e(8),o=e(24),i=e(34),u=e(10)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),s=0;s<c.length;s++){var f=c[s],a=r[f],a=a&&a.prototype;a&&!a[u]&&o(a,u,f),i[f]=i.Array}},,,function(t,n,e){var r=e(45),o=e(15),i="__core-js_shared__",u=o[i]||(o[i]={});(t.exports=function(t,n){return u[t]||(u[t]=void 0!==n?n:{})})("versions",[]).push({version:r.version,mode:e(100)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},,,function(t,n,e){var r=e(72),o=Math.min;t.exports=function(t){return 0<t?o(r(t),9007199254740991):0}},function(t,n,e){"use strict";var l=e(120),y=e(18),m=e(143),x=e(109),b=e(41),S=e(89),p=e(83),r=e(28),w=Math.min,h=[].push,u="split",_="length",E="lastIndex",O=4294967295,j=!r(function(){RegExp(O,"y")});e(90)("split",2,function(o,i,v,d){var g="c"=="abbc"[u](/(b)*/)[1]||4!="test"[u](/(?:)/,-1)[_]||2!="ab"[u](/(?:ab)*/)[_]||4!="."[u](/(.?)(.?)/)[_]||1<"."[u](/()()/)[_]||""[u](/.?/)[_]?function(t,n){var e=String(this);if(void 0===t&&0===n)return[];if(!l(t))return v.call(e,t,n);
vendor: 10,033 bytes, line 17567
17567for(var r,o,i,u=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),s=0,f=void 0===n?O:n>>>0,a=new RegExp(t.source,c+"g");(r=p.call(a,e))&&!(s<(o=a[E])&&(u.push(e.slice(s,r.index)),1<r[_]&&r.index<e[_]&&h.apply(u,r.slice(1)),i=r[0][_],s=o,u[_]>=f));)a[E]===r.index&&a[E]++;return s===e[_]?!i&&a.test("")||u.push(""):u.push(e.slice(s)),u[_]>f?u.slice(0,f):u}:"0"[u](void 0,0)[_]?function(t,n){return void 0===t&&0===n?[]:v.call(this,t,n)}:v;return[function(t,n){var e=o(this),r=null==t?void 0:t[i];return void 0!==r?r.call(t,e,n):g.call(String(e),t,n)},function(t,n){var e=d(g,t,this,n,g!==v);if(e.done)return e.value;var e=y(t),r=String(this),t=m(e,RegExp),o=e.unicode,i=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(j?"y":"g"),u=new t(j?e:"^(?:"+e.source+")",i),c=void 0===n?O:n>>>0;if(0==c)return[];if(0===r.length)return null===S(u,r)?[r]:[];for(var s=0,f=0,a=[];f<r.length;){u.lastIndex=j?f:0;var l,p=S(u,j?r:r.slice(f));if(null===p||(l=w(b(u.lastIndex+(j?0:f)),r.length))===s)f=x(r,f,o);else{if(a.push(r.slice(s,f)),a.length===c)return a;for(var h=1;h<=p.length-1;h++)if(a.push(p[h]),a.length===c)return a;f=s=l}}return a.push(r.slice(s)),a}]})},function(t,n,e){var o=e(9);t.exports=function(t,n){if(!o(t))return t;var e,r;if(n&&"function"==typeof(e=t.toString)&&!o(r=e.call(t))||"function"==typeof(e=t.valueOf)&&!o(r=e.call(t))||!n&&"function"==typeof(e=t.toString)&&!o(r=e.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},function(t,n,e){var r=e(71)("keys"),o=e(51);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,n,e){var r=e(6),o=e(8),i="__core-js_shared__",u=o[i]||(o[i]={});(t.exports=function(t,n){return u[t]||(u[t]=void 0!==n?n:{})})("versions",[]).push({version:r.version,mode:e(46)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(0<t?r:e)(t)}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,e){n.f=e(10)},function(t,n,e){var r=e(8),o=e(6),i=e(46),u=e(74),c=e(16).f;t.exports=function(t){var n=o.Symbol||(o.Symbol=!i&&r.Symbol||{});"_"==t.charAt(0)||t in n||c(n,t,{value:u.f(t)})}},,function(t,n,e){function r(t){c(t,o,{value:{i:"O"+ ++s,w:{}}})}var o=e(51)("meta"),i=e(9),u=e(19),c=e(16).f,s=0,f=Object.isExtensible||function(){return!0},a=!e(20)(function(){return f(Object.preventExtensions({}))}),l=t.exports={KEY:o,NEED:!1,fastKey:function(t,n){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!u(t,o)){if(!f(t))return"F";if(!n)return"E";r(t)}return t[o].i},getWeak:function(t,n){if(!u(t,o)){if(!f(t))return!0;if(!n)return!1;r(t)}return t[o].w},onFreeze:function(t){return a&&l.NEED&&f(t)&&!u(t,o)&&r(t),t}}},function(t,n,e){var r=e(11)("unscopables"),o=Array.prototype;null==o[r]&&e(27)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,e){var r=e(19),o=e(31),i=e(70)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,e){var r=e(36);t.exports=function(t){return Object(r(t))}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,e){"use strict";var r,o,u=e(110),c=RegExp.prototype.exec,s=String.prototype.replace,e=c,f="lastIndex",a=(r=/a/,o=/b*/g,c.call(r,"a"),c.call(o,"a"),0!==r[f]||0!==o[f]),l=void 0!==/()??/.exec("")[1];t.exports=e=a||l?function(t){var n,e,r,o,i=this;return l&&(e=new RegExp("^"+i.source+"$(?!\\s)",u.call(i))),a&&(n=i[f]),r=c.call(i,t),a&&r&&(i[f]=i.global?r.index+r[0].length:n),l&&r&&1<r.length&&s.call(r[0],e,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)}),r}:e},function(t,n,e){var o=e(7),i=e(6),u=e(20);t.exports=function(t,n){var e=(i.Object||{})[t]||Object[t],r={};r[t]=n(e),o(o.S+o.F*u(function(){e(1)}),"Object",r)}},,function(t,n,e){var l=e(30),p=e(133),h=e(134),v=e(12),d=e(67),g=e(114),y={},m={};(n=t.exports=function(t,n,e,r,o){var i,u,c,s,o=o?function(){return t}:g(t),f=l(e,r,n?2:1),a=0;if("function"!=typeof o)throw TypeError(t+" is not iterable!");if(h(o)){for(i=d(t.length);a<i;a++)if((s=n?f(v(u=t[a])[0],u[1]):f(t[a]))===y||s===m)return s}else for(c=o.call(t);!(u=c.next()).done;)if((s=p(c,f,u.value,n))===y||s===m)return s}).BREAK=y,n.RETURN=m},,function(t,n,e){t.exports=e(24)},function(t,n,e){"use strict";var r=e(103),o=RegExp.prototype.exec;t.exports=function(t,n){var e=t.exec;if("function"==typeof e){e=e.call(t,n);if("object"!=typeof e)throw new TypeError("RegExp exec method returned something other than an Object or null");return e}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,n)}},function(t,n,e){"use strict";e(182);var r,s=e(33),f=e(27),a=e(28),l=e(36),p=e(11),h=e(83),v=p("species"),d=!a(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),g=(r=(e=/(?:)/).exec,e.exec=function(){return r.apply(this,arguments)},2===(e="ab".split(e)).length&&"a"===e[0]&&"b"===e[1]);t.exports=function(e,t,n){var i,r,o=p(e),u=!a(function(){var t={};return t[o]=function(){return 7},7!=""[e](t)}),c=u?!a(function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[v]=function(){return n}),n[o](""),!t}):void 0;u&&c&&("replace"!==e||d)&&("split"!==e||g)||(i=/./[o],n=(c=n(l,o,""[e],function(t,n,e,r,o){return n.exec===h?u&&!o?{done:!0,value:i.call(n,e,r)}:{done:!0,value:t.call(e,n,r)}:{done:!1}}))[0],r=c[1],s(String.prototype,e,n),f(RegExp.prototype,o,2==t?function(t,n){return r.call(t,this,n)}:function(t){return r.call(t,this)}))}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,e){var r=e(9),o=e(8).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,n,e){t.exports=e(160)},function(t,n,e){"use strict";function y(){return this}var m=e(46),x=e(7),b=e(88),S=e(24),w=e(34),_=e(166),E=e(52),O=e(80),j=e(10)("iterator"),M=!([].keys&&"next"in[].keys()),P="values";t.exports=function(t,n,e,r,o,i,u){_(e,n,r);function c(t){if(!M&&t in p)return p[t];switch(t){case"keys":case P:return function(){return new e(this,t)}}return function(){return new e(this,t)}}var s,f,r=n+" Iterator",a=o==P,l=!1,p=t.prototype,h=p[j]||p["@@iterator"]||o&&p[o],v=h||c(o),d=o?a?c("entries"):v:void 0,g="Array"==n&&p.entries||h;if(g&&(g=O(g.call(new t)))!==Object.prototype&&g.next&&(E(g,r,!0),m||"function"==typeof g[j]||S(g,j,y)),a&&h&&h.name!==P&&(l=!0,v=function(){return h.call(this)}),m&&!u||!M&&!l&&p[j]||S(p,j,v),w[n]=v,w[r]=y,o)if(s={values:a?v:c(P),keys:i?v:c("keys"),entries:d},u)for(f in s)f in p||b(p,f,s[f]);else x(x.P+x.F*(M||l),n,s);return s}},function(t,n,e){var r=e(59);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){var r=e(102),o=e(36);t.exports=function(t){return r(o(t))}},function(t,n,e){"use strict";var r=e(103),o={};o[e(11)("toStringTag")]="z",o+""!="[object z]"&&e(33)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(t,n,e){var r=e(26),o=e(15).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},,function(t,n){t.exports=!1},function(t,n,e){var r=e(113),o=e(73).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,n,e){var r=e(37);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n,e){var r=e(37),o=e(11)("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(t){var n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,n){try{return t[n]}catch(t){}}(t=Object(t),o))?n:i?r(t):"Object"==(n=r(t))&&"function"==typeof t.callee?"Arguments":n}},function(t,n,e){var r=e(59);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n,e){t.exports=e(169)},function(t,n){},function(t,n,e){var r=e(59),o=e(10)("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(t){var n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,n){try{return t[n]}catch(t){}}(t=Object(t),o))?n:i?r(t):"Object"==(n=r(t))&&"function"==typeof t.callee?"Arguments":n}},function(t,n,e){var o=e(26);t.exports=function(t,n){if(!o(t))return t;var e,r;if(n&&"function"==typeof(e=t.toString)&&!o(r=e.call(t))||"function"==typeof(e=t.valueOf)&&!o(r=e.call(t))||!n&&"function"==typeof(e=t.toString)&&!o(r=e.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},function(t,n,e){"use strict";var r=e(181)(!0);t.exports=function(t,n,e){return n+(e?r(t,n).length:1)}},function(t,n,e){"use strict";var r=e(18);t.exports=function(){var t=r(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},function(t,n,e){t.exports=!e(13)&&!e(20)(function(){return 7!=Object.defineProperty(e(92)("div"),"a",{get:function(){return 7}}).a})},function(t,n,e){t.exports=e(153)},function(t,n,e){var u=e(19),c=e(21),s=e(158)(!1),f=e(70)("IE_PROTO");t.exports=function(t,n){var e,r=c(t),o=0,i=[];for(e in r)e!=f&&u(r,e)&&i.push(e);for(;n.length>o;)!u(r,e=n[o++])||~s(i,e)||i.push(e);return i}},function(t,n,e){var r=e(107),o=e(10)("iterator"),i=e(34);t.exports=e(6).getIteratorMethod=function(t){if(null!=t)return t[o]||t["@@iterator"]||i[r(t)]}},,function(t,n,e){t.exports=!e(25)&&!e(28)(function(){return 7!=Object.defineProperty(e(98)("div"),"a",{get:function(){return 7}}).a})},,function(e,t,n){var r=n(112);function o(t,n){return e.exports=o=r||function(t,n){return t.__proto__=n,t},o(t,n)}
17567e.exports=o},function(t,n,e){var x=e(58),b=e(102),S=e(81),w=e(41),r=e(140);t.exports=function(l,t){var p=1==l,h=2==l,v=3==l,d=4==l,g=6==l,y=5==l||g,m=t||r;return function(t,n,e){for(var r,o,i=S(t),u=b(i),c=x(n,e,3),s=w(u.length),f=0,a=p?m(t,s):h?m(t,0):void 0;f<s;f++)if((y||f in u)&&(o=c(r=u[f],f,i),l))if(p)a[f]=o;else if(o)switch(l){case 3:return!0;case 5:return r;case 6:return f;case 2:a.push(r)}else if(d)return!1;return g?-1:v||d?d:a}}},function(t,n,e){var r=e(26),o=e(37),i=e(11)("match");t.exports=function(t){var n;return r(t)&&(void 0!==(n=t[i])?!!n:"RegExp"==o(t))}},function(t,n,e){var r=e(9);t.exports=function(t,n){if(r(t)&&t._t===n)return t;throw TypeError("Incompatible receiver, "+n+" required!")}},function(t,n){t.exports={}},function(t,n,e){t.exports=e(156)},function(t,n,e){var o=e(24);t.exports=function(t,n,e){for(var r in n)e&&t[r]?t[r]=n[r]:o(t,r,n[r]);return t}},function(t,n){t.exports=function(t,n,e,r){if(!(t instanceof n)||void 0!==r&&r in t)throw TypeError(e+": incorrect invocation!");return t}},function(t,n,e){t.exports=e(63)("native-function-to-string",Function.toString)},function(t,n,e){var r=e(63)("keys"),o=e(64);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,n,e){var u=e(16),c=e(12),s=e(38);t.exports=e(13)?Object.defineProperties:function(t,n){c(t);for(var e,r=s(n),o=r.length,i=0;i<o;)u.f(t,e=r[i++],n[e]);return t}},function(t,n,e){e=e(8).document;t.exports=e&&e.documentElement},function(t,n){t.exports=function(t,n,e){var r=void 0===e;switch(n.length){case 0:return r?t():t.call(e);case 1:return r?t(n[0]):t.call(e,n[0]);case 2:return r?t(n[0],n[1]):t.call(e,n[0],n[1]);case 3:return r?t(n[0],n[1],n[2]):t.call(e,n[0],n[1],n[2]);case 4:return r?t(n[0],n[1],n[2],n[3]):t.call(e,n[0],n[1],n[2],n[3])}return t.apply(e,n)}},function(t,n,e){var r=e(93);t.exports=function(){if("undefined"==typeof Reflect||!r)return!1;if(r.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(r(Date,[],function(){})),!0}catch(t){return!1}}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,e){var o=e(12);t.exports=function(n,t,e,r){try{return r?t(o(e)[0],e[1]):t(e)}catch(t){r=n.return;throw void 0!==r&&o(r.call(n)),t}}},function(t,n,e){var r=e(34),o=e(10)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},,function(t,n,e){t.exports=e(243)},function(t,n,e){t.exports=e(193)},function(t,n,e){t.exports=e(164)},function(D,R,t){"use strict";function r(t){var n=P[t]=x(w[O]);return n._k=t,n}function e(t,n){d(t);for(var e,r=H(n=g(n)),o=0,i=r.length;o<i;)F(t,e=r[o++],n[e]);return t}function n(t){var n=tt.call(this,t=y(t,!0));return!(this===L&&s(P,t)&&!s(T,t))&&(!(n||!s(this,t)||!s(P,t)||s(this,j)&&this[j][t])||n)}function o(t,n){var e;if(t=g(t),n=y(n,!0),t!==L||!s(P,n)||s(T,n))return!(e=Y(t,n))||!s(P,n)||s(t,j)&&t[j][n]||(e.enumerable=!0),e}function i(t){for(var n,e=X(g(t)),r=[],o=0;e.length>
vendor: 4,105 bytes, line 17567
17567o;)s(P,n=e[o++])||n==j||n==$||r.push(n);return r}function u(t){for(var n,e=t===L,r=X(e?T:g(t)),o=[],i=0;r.length>i;)!s(P,n=r[i++])||e&&!s(L,n)||o.push(P[n]);return o}var c=t(8),s=t(19),f=t(13),a=t(7),N=t(88),$=t(77).KEY,l=t(20),p=t(71),h=t(52),G=t(51),v=t(10),V=t(74),q=t(75),H=t(170),W=t(95),d=t(12),Q=t(9),U=t(31),g=t(21),y=t(69),m=t(43),x=t(47),z=t(171),B=t(55),b=t(82),J=t(16),K=t(38),Y=B.f,S=J.f,X=z.f,w=c.Symbol,_=c.JSON,E=_&&_.stringify,O="prototype",j=v("_hidden"),Z=v("toPrimitive"),tt={}.propertyIsEnumerable,M=p("symbol-registry"),P=p("symbols"),T=p("op-symbols"),L=Object[O],p="function"==typeof w&&!!b.f,k=c.QObject,C=!k||!k[O]||!k[O].findChild,A=f&&l(function(){return 7!=x(S({},"a",{get:function(){return S(this,"a",{value:7}).a}})).a})?function(t,n,e){var r=Y(L,n);r&&delete L[n],S(t,n,e),r&&t!==L&&S(L,n,r)}:S,I=p&&"symbol"==typeof w.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof w},F=function(t,n,e){return t===L&&F(T,n,e),d(t),n=y(n,!0),d(e),s(P,n)?(e.enumerable?(s(t,j)&&t[j][n]&&(t[j][n]=!1),e=x(e,{enumerable:m(0,!1)})):(s(t,j)||S(t,j,m(1,{})),t[j][n]=!0),A(t,n,e)):S(t,n,e)};p||(N((w=function(){if(this instanceof w)throw TypeError("Symbol is not a constructor!");var n=G(0<arguments.length?arguments[0]:void 0),e=function(t){this===L&&e.call(T,t),s(this,j)&&s(this[j],n)&&(this[j][n]=!1),A(this,n,m(1,t))};return f&&C&&A(L,n,{configurable:!0,set:e}),r(n)})[O],"toString",function(){return this._k}),B.f=o,J.f=F,t(101).f=z.f=i,t(48).f=n,b.f=u,f&&!t(46)&&N(L,"propertyIsEnumerable",n,!0),V.f=function(t){return r(v(t))}),a(a.G+a.W+a.F*!p,{Symbol:w});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;nt.length>et;)v(nt[et++]);for(var rt=K(v.store),ot=0;rt.length>ot;)q(rt[ot++]);a(a.S+a.F*!p,"Symbol",{for:function(t){return s(M,t+="")?M[t]:M[t]=w(t)},keyFor:function(t){if(!I(t))throw TypeError(t+" is not a symbol!");for(var n in M)if(M[n]===t)return n},useSetter:function(){C=!0},useSimple:function(){C=!1}}),a(a.S+a.F*!p,"Object",{create:function(t,n){return void 0===n?x(t):e(x(t),n)},defineProperty:F,defineProperties:e,getOwnPropertyDescriptor:o,getOwnPropertyNames:i,getOwnPropertySymbols:u});k=l(function(){b.f(1)});a(a.S+a.F*k,"Object",{getOwnPropertySymbols:function(t){return b.f(U(t))}}),_&&a(a.S+a.F*(!p||l(function(){var t=w();return"[null]"!=E([t])||"{}"!=E({a:t})||"{}"!=E(Object(t))})),"JSON",{stringify:function(t){for(var n,e,r=[t],o=1;o<arguments.length;)r.push(arguments[o++]);if(e=n=r[1],(Q(n)||void 0!==t)&&!I(t))return W(n)||(n=function(t,n){if("function"==typeof e&&(n=e.call(this,t,n)),!I(n))return n}),r[1]=n,E.apply(_,r)}}),w[O][Z]||t(24)(w[O],Z,w[O].valueOf),h(w,"Symbol"),h(Math,"Math",!0),h(c.JSON,"JSON",!0)},function(t,n,e){var r=e(141);t.exports=function(t,n){return new(r(t))(n)}},function(t,n,e){var r=e(26),o=e(142),i=e(11)("species");t.exports=function(t){var n;return o(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!o(n.prototype)||(n=void 0),r(n)&&null===(n=n[i])&&(n=void 0)),void 0===n?Array:n}},function(t,n,e){var r=e(37);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){var r=e(18),o=e(79),i=e(11)("species");t.exports=function(t,n){var t=r(t).constructor;return void 0===t||null==(t=r(t)[i])?n:o(t)}},function(t,n,e){var x=e(30),b=e(104),S=e(31),w=e(67),r=e(236);t.exports=function(l,t){var p=1==l,h=2==l,v=3==l,d=4==l,g=6==l,y=5==l||g,m=t||r;return function(t,n,e){for(var r,o,i=S(t),u=b(i),c=x(n,e,3),s=w(u.length),f=0,a=p?m(t,s):h?m(t,0):void 0;f<s;f++)if((y||f in u)&&(o=c(r=u[f],f,i),l))if(p)a[f]=o;else if(o)switch(l){case 3:return!0;case 5:return r;case 6:return f;case 2:a.push(r)}else if(d)return!1;return g?-1:v||d?d:a}}},,function(t,n,e){var s=e(96),f=e(41),a=e(186);t.exports=function(c){return function(t,n,e){var r,o=s(t),i=f(o.length),u=a(e,i);if(c&&n!=n){for(;u<i;)if((r=o[u++])!=r)return!0}else for(;u<i;u++)if((c||u in o)&&o[u]===n)return c||u||0;return!c&&-1}}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleStr
17567ing,toString,valueOf".split(",")},function(t,n,e){e(149);var r=e(6).Object;t.exports=function(t,n,e){return r.defineProperty(t,n,e)}},function(t,n,e){var r=e(7);r(r.S+r.F*!e(13),"Object",{defineProperty:e(16).f})},function(t,n,e){t.exports=e(151)},function(t,n,e){e(152),t.exports=e(6).Object.getPrototypeOf},function(t,n,e){var r=e(31),o=e(80);e(84)("getPrototypeOf",function(){return function(t){return o(r(t))}})},function(t,n,e){e(154),t.exports=e(6).Object.setPrototypeOf},function(t,n,e){var r=e(7);r(r.S,"Object",{setPrototypeOf:e(155).set})},function(t,n,o){function i(t,n){if(r(t),!e(n)&&null!==n)throw TypeError(n+": can't set as prototype!")}var e=o(9),r=o(12);t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=o(30)(Function.call,o(55).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},function(t,n,e){e(157);var r=e(6).Object;t.exports=function(t,n){return r.create(t,n)}},function(t,n,e){var r=e(7);r(r.S,"Object",{create:e(47)})},function(t,n,e){var s=e(21),f=e(67),a=e(159);t.exports=function(c){return function(t,n,e){var r,o=s(t),i=f(o.length),u=a(e,i);if(c&&n!=n){for(;u<i;)if((r=o[u++])!=r)return!0}else for(;u<i;u++)if((c||u in o)&&o[u]===n)return c||u||0;return!c&&-1}}},function(t,n,e){var r=e(72),o=Math.max,i=Math.min;t.exports=function(t,n){return(t=r(t))<0?o(t+n,0):i(t,n)}},function(t,n,e){e(161),t.exports=e(6).Reflect.construct},function(t,n,e){var r=e(7),o=e(47),i=e(42),u=e(12),c=e(9),s=e(20),f=e(162),a=(e(8).Reflect||{}).construct,l=s(function(){function t(){}return!(a(function(){},[],t)instanceof t)}),p=!s(function(){a(function(){})});r(r.S+r.F*(l||p),"Reflect",{construct:function(t,n){i(t),u(n);var e=arguments.length<3?t:i(arguments[2]);if(p&&!l)return a(t,n,e);if(t==e){switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3])}var r=[null];return r.push.apply(r,n),new(f.apply(t,r))}r=e.prototype,e=o(c(r)?r:Object.prototype),r=Function.apply.call(t,e,n);return c(r)?r:e}})},function(t,n,e){"use strict";var r=e(42),o=e(9),a=e(130),l=[].slice,p={};t.exports=Function.bind||function(u){var c=r(this),s=l.call(arguments,1),f=function(){var t=s.concat(l.call(arguments));if(this instanceof f){var n=c,e=t.length,r=t;if(!(e in p)){for(var o=[],i=0;i<e;i++)o[i]="a["+i+"]";p[e]=Function("F,a","return new F("+o.join(",")+")")}return p[e](n,r)}return a(c,t,u)};return o(c.prototype)&&(f.prototype=c.prototype),f}},function(t,n,e){var r=e(40),o=e(49);t.exports=function(t,n){return!n||"object"!==r(n)&&"function"!=typeof n?o(t):n}},function(t,n,e){e(57),e(60),t.exports=e(74).f("iterator")},function(t,n,e){var i=e(72),u=e(56);t.exports=function(o){return function(t,n){var e,t=String(u(t)),n=i(n),r=t.length;return n<0||r<=n?o?"":void 0:(e=t.charCodeAt(n))<55296||56319<e||n+1===r||(r=t.charCodeAt(n+1))<56320||57343<r?o?t.charAt(n):e:o?t.slice(n,n+2):r-56320+(e-55296<<10)+65536}}},function(t,n,e){"use strict";var r=e(47),o=e(43),i=e(52),u={};e(24)(u,e(10)("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(u,{next:o(1,e)}),i(t,n+" Iterator")}},function(t,n,e){"use strict";var r=e(168),o=e(132),i=e(34),u=e(21);t.exports=e(94)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,o(1)):o(0,"keys"==n?e:"values"==n?t[e]:[e,t[e]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,n){t.exports=function(){}},function(t,n,e){e(139),e(106),e(172),e(173),t.exports=e(6).Symbol},function(t,n,e){var c=e(38),s=e(82),f=e(48);t.exports=function(t){var n=c(t),e=s.f;if(e)for(var r,o=e(t),i=f.f,u=0;o.length>u;)i.call(t,r=o[u++])&&n.push(r);return n}},function(t,n,e){var r=e(21),o=e(101).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){if(!u||"[object Window]"!=i.call(t))return o(r(t));try{return o(t)}catch(t){return u.slice()}}},function(t,n,e){e(75)("asyncIterator")},function(t,n,e){e(75)("observable")},,function(t,n){t.exports="\t\n\v\f\r  áá ââââââ
ââââââ¯âã\u2028\u2029\ufeff"},,,function(t,n,e){"use strict";var r=e(78),o=e(258),i=e(122),u=e(96);t.exports=e(259)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,o(1)):o(0,"keys"==n?e:"values"==n?t[e]:[e,t[e]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,n,e){var r=e(44).f,o=e(54),i=e(11)("toStringTag");
17567t.exports=function(t,n,e){t&&!o(t=e?t:t.prototype,i)&&r(t,i,{configurable:!0,value:n})}},,function(t,n,e){var i=e(50),u=e(36);t.exports=function(o){return function(t,n){var e,t=String(u(t)),n=i(n),r=t.length;return n<0||r<=n?o?"":void 0:(e=t.charCodeAt(n))<55296||56319<e||n+1===r||(r=t.charCodeAt(n+1))<56320||57343<r?o?t.charAt(n):e:o?t.slice(n,n+2):r-56320+(e-55296<<10)+65536}}},function(t,n,e){"use strict";var r=e(83);e(32)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},,,,function(t,n,e){var r=e(50),o=Math.max,i=Math.min;t.exports=function(t,n){return(t=r(t))<0?o(t+n,0):i(t,n)}},,function(t,n,e){var r=e(209),o=e(147);t.exports=Object.keys||function(t){return r(t,o)}},,,,,function(t,n,e){e(194);var r=e(6).Object;t.exports=function(t,n){return r.getOwnPropertyDescriptor(t,n)}},function(t,n,e){var r=e(21),o=e(55).f;e(84)("getOwnPropertyDescriptor",function(){return function(t,n){return o(r(t),n)}})},function(t,n,e){t.exports=e(196)},function(t,n,e){e(197),t.exports=e(6).Reflect.get},function(t,n,e){var i=e(55),u=e(80),c=e(19),r=e(7),s=e(9),f=e(12);r(r.S,"Reflect",{get:function t(n,e){var r,o=arguments.length<3?n:arguments[2];return f(n)===o?n[e]:(r=i.f(n,e))?c(r,"value")?r.value:void 0!==r.get?r.get.call(o):void 0:s(r=u(n))?t(r,e,o):void 0}})},function(t,n,e){var r=e(14);t.exports=function(t,n){for(;!Object.prototype.hasOwnProperty.call(t,n)&&null!==(t=r(t)););return t}},function(t,n,e){e(200),t.exports=e(6).Object.keys},function(t,n,e){var r=e(31),o=e(38);e(84)("keys",function(){return function(t){return o(r(t))}})},,,,,,function(t,n,e){"use strict";var r=e(32),o=e(146)(!0);r(r.P,"Array",{includes:function(t){return o(this,t,1<arguments.length?arguments[1]:void 0)}}),e(78)("includes")},,,function(t,n,e){var u=e(54),c=e(96),s=e(146)(!1),f=e(127)("IE_PROTO");t.exports=function(t,n){var e,r=c(t),o=0,i=[];for(e in r)e!=f&&u(r,e)&&i.push(e);for(;n.length>o;)!u(r,e=n[o++])||~s(i,e)||i.push(e);return i}},function(t,n,e){"use strict";var r=e(0),o=(e(1)(n,"__esModule",{value:!0}),n.default=void 0,r(e(40))),i=r(e(2)),u=r(e(3));n.default=function(){function n(t){(0,i.default)(this,n),this.args=t}return(0,u.default)(n,[{key:"requireArgument",value:function(t){if(!(1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.args).hasOwnProperty(t))throw Error("".concat(t," is required."))}},{key:"requireArgumentType",value:function(t,n){var e=2<arguments.length&&void 0!==arguments[2]?arguments[2]:this.args;if(this.requireArgument(t,e),(0,o.default)(e[t])!==n)throw Error("".concat(t," invalid type: ").concat(n,"."))}},{key:"requireArgumentInstance",value:function(t,n){var e=2<arguments.length&&void 0!==arguments[2]?arguments[2]:this.args;if(this.requireArgument(t,e),!(e[t]instanceof n))throw Error("".concat(t," invalid instance."))}},{key:"requireArgumentConstructor",value:function(t,n){var e=2<arguments.length&&void 0!==arguments[2]?arguments[2]:this.args;if(this.requireArgument(t,e),e[t].constructor!==n)throw Error("".concat(t," invalid constructor type."))}}]),n}()},,,,function(t,n,e){"use strict";var l=e(8),p=e(7),h=e(77),v=e(20),d=e(24),g=e(124),y=e(86),m=e(125),x=e(9),b=e(52),S=e(16).f,w=e(144)(0),_=e(13);t.exports=function(e,t,n,r,o,i){var u=l[e],c=u,s=o?"set":"add",f=c&&c.prototype,a={};return _&&"function"==typeof c&&(i||f.forEach&&!v(function(){(new c).entries().next()}))?(c=t(function(t,n){m(t,c,e,"_c"),t._c=new u,null!=n&&y(n,o,t[s],t)}),w("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(e){var r="add"==e||"set"==e;e in f&&(!i||"clear"!=e)&&d(c.prototype,e,function(t,n){if(m(this,c,e),!r&&i&&!x(t))return"get"==e&&void 0;t=this._c[e](0===t?0:t,n);return r?this:t})}),i||S(c.prototype,"size",{get:function(){return this._c.size}})):(c=r.getConstructor(t,e,o,s),g(c.prototype,n),h.NEED=!0),b(c,e),a[e]=c,p(p.G+p.W+p.F,a),i||r.setStrong(c,e,o),c}},function(t,n,e){"use strict";var r=e(7);t.exports=function(t){r(r.S,t,{of:function(){for(var t=arguments.length,n=new Array(t);t--;)n[t]=arguments[t];return new this(n)}})}},function(t,n,e){"use strict";var r=e(7),u=e(42),c=e(30),s=e(86);t.exports=function(t){r(r.S,t,{from:function(t){var n,e,r,o,i=arguments[1];return u(this),(n=void 0!==i)&&u(i),null==t?new this:(e=[],n?(r=0,o=c(i,arguments[2],2),s(t,!1,function(t){e.push(o(t,r++))})):s(t,!1,e.push,e),new this(e))}})}},,,,,,,,,,,,,,,function(t,n,e){"use strict";var r=e(32),o=e(232),i="includes";r(r.P+r.F*e(233)(i),"String",{includes:function(t){return!!~o(this,t,i).indexOf(t,1<arguments.length?arguments[1]:void 0)}})},function(t,n,e){var r=e(120),o=e(36);t.exports=function(t,n,e){if(r(n))throw TypeError("String#"+e+" doesn't accept regex!");return String(o(t))}},function(t,n,e){var r=e(11)("match");t.exports=function(n){var e=/./;try{"/./"[n](e)}catch(t){try{return e[r]=!1,!"/./"[n](e)}catch(t){}}return!0}},,,function(t,n,e){var r=e(237);t.exports=function(t,n){return new(r(t))(n)}},function(t,n,e){var r=e(9),o=e(95),i=e(10)("species");t.exports=function(t){var n;return o(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!o(n.prototype)||(n=void 0),r(n)&&null===(n=n[i])&&(n=void 0)),void 0===n?Array:n}},,function(t,n,e){for(var r=e(178),o=e(188),i=e(33),u=e(15),c=e(27),s=e(122),e=e(11),f=e("iterator"),a=e("toStringTag"),l=s.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=o(p),v=0;v<h.length;v++){var d,g=h[v],y=p[g],m=u[g],x=m&&m.prototype;if(x&&(x[f]||c(x,f,l),x[a]||c(x,a,g),s[g]=l,y))for(d in r)x[d]||i(x,d,r[d],!0)}},function(t,n,e){function r(){}var o=e(18),i=e(261),u=e(147),c=e(127)("IE_PROTO"),s="prototype",f=function(){var t=e(98)("iframe"),n=u.length;for(t.style.display="none",e(241).appendChild(t),t.src="javascript:",(t=t.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),f=t.F;n--;)delete f[s][u[n]];return f()};t.exports=Object.create||function(t,n){var e;return null!==t?(r[s]=o(t),e=new r,r[s]=null,e[c]=t):e=f(),void 0===n?e:i(e,n)}},function(t,n,e){e=e(15).document;t.exports=e&&e.documentElement},,function(t,n,e){e(244),t.exports=e(6).parseInt},function(t,n,e){var r=e(7),e=e(245);r(r.G+r.F*(parseInt!=e),{parseInt:e})},function(t,n,e){var r=e(8).parseInt,o=e(246).trim,e=e(175),i=/^[-+]?0[xX]/;t.exports=8!==r(e+"08")||22!==r(e+"0x16")?function(t,n){t=o(String(t),3);return r(t,n>>>0||(i.test(t)?16:10))}:r},function(t,n,e){function r(t,n,e){var r={},o=u(function(){return!!c[t]()||"âÂ
"!="âÂ
"[t]()}),n=r[t]=o?n(a):c[t];e&&(r[e]=n),i(i.P+i.F*o,"String",r)}var i=e(7),o=e(56),u=e(20),c=e(175),e="["+c+"]",s=RegExp("^"+e+e+"*"),f=RegExp(e+e+"*$"),a=r.trim=function(t,n){return t=String(o(t)),1&n&&(t=t.replace(s,"")),t=2&n?t.replace(f,""):t};t.exports=r},,,function(t,n,e){"use strict";var r=e(8),o=e(6),i=e(16),u=e(13),c=e(10)("species");t.exports=function(t){t=("function"==typeof o[t]?o:r)[t];u&&t&&!t[c]&&i.f(t,c,{configurable:!0,get:function(){return this}})}},,,,,,,,,function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,e){"use strict";function y(){return this}var m=e(100),x=e(32),b=e(33),S=e(27),w=e(122),_=e(260),E=e(179),O=e(262),j=e(11)("iterator"),M=!([].keys&&"next"in[].keys()),P="values";t.exports=function(t,n,e,r,o,i,u){_(e,n,r);function c(t){if(!M&&t in p)return p[t];switch(t){case"keys":case P:return function(){return new e(this,t)}}return function(){return new e(this,t)}}var s,f,r=n+" Iterator",a=o==P,l=!1,p=t.prototype,h=p[j]||p["@@iterator"]||o&&p[o],v=h||c(o),d=o?a?c("entries"):v:void 0,g="Array"==n&&p.entries||h;if(g&&(g=O(g.call(new t)))!==Object.prototype&&g.next&&(E(g,r,!0),m||"function"==typeof g[j]||S(g,j,y)),a&&h&&h.name!==P&&(l=!0,v=function(){return h.call(this)}),m&&!u||!M&&!l&&p[j]||S(p,j,v),w[n]=v,w[r]=y,o)if(s={values:a?v:c(P),keys:i?v:c("keys"),entries:d},u)for(f in s)f in p||b(p,f,s[f]);else x(x.P+x.F*(M||l),n,s);return s}},function(t,n,e){"use strict";var r=e(240),o=e(91),i=e(179),u={};e(27)(u,e(11)("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(u,{next:o(1,e)}),i(t,n+" Iterator")}},function(t,n,e){var u=e(44),c=e(18),s=e(188);t.exports=e(25)?Object.defineProperties:function(t,n){c(t);for(var e,r=s(n),o=r.length,i=0;i<o;)u.f(t,e=r[i++],n[e]);return t}},function(t,n,e){var r=e(54),o=e(81),i=e(127)("IE_PROTO"),u=Object.prototype;
17567t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(n,t,e){var r=e(123),o=e(346),i=e(14),u=e(118),c=e(355),s=e(356);function f(t){var e="function"==typeof o?new o:void 0;return n.exports=f=function(t){if(null===t||!c(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return s(t,arguments,i(this).constructor)}return n.prototype=r(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),u(n,t)},f(t)}n.exports=f},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,n,e){t.exports=e(347)},function(t,n,e){e(106),e(57),e(60),e(348),e(350),e(353),e(354),t.exports=e(6).Map},function(t,n,e){"use strict";var r=e(349),o=e(121);t.exports=e(214)("Map",function(t){return function(){return t(this,0<arguments.length?arguments[0]:void 0)}},{get:function(t){t=r.getEntry(o(this,"Map"),t);return t&&t.v},set:function(t,n){return r.def(o(this,"Map"),0===t?0:t,n)}},r,!0)},function(t,n,e){"use strict";function u(t,n){var e,r=v(n);if("F"!==r)return t._i[r];for(e=t._f;e;e=e.n)if(e.k==n)return e}var c=e(16).f,s=e(47),f=e(124),a=e(30),l=e(125),p=e(86),r=e(94),o=e(132),i=e(249),h=e(13),v=e(77).fastKey,d=e(121),g=h?"_s":"size";t.exports={getConstructor:function(t,o,e,r){var i=t(function(t,n){l(t,i,o,"_i"),t._t=o,t._i=s(null),t._f=void 0,t._l=void 0,t[g]=0,null!=n&&p(n,e,t[r],t)});return f(i.prototype,{clear:function(){for(var t=d(this,o),n=t._i,e=t._f;e;e=e.n)e.r=!0,e.p&&(e.p=e.p.n=void 0),delete n[e.i];t._f=t._l=void 0,t[g]=0},delete:function(t){var n,e,r=d(this,o),t=u(r,t);return t&&(n=t.n,e=t.p,delete r._i[t.i],t.r=!0,e&&(e.n=n),n&&(n.p=e),r._f==t&&(r._f=n),r._l==t&&(r._l=e),r[g]--),!!t},forEach:function(t){d(this,o);for(var n,e=a(t,1<arguments.length?arguments[1]:void 0,3);n=n?n.n:this._f;)for(e(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!u(d(this,o),t)}}),h&&c(i.prototype,"size",{get:function(){return d(this,o)[g]}}),i},def:function(t,n,e){var r,o=u(t,n);return o?o.v=e:(t._l=o={i:r=v(n,!0),k:n,v:e,p:n=t._l,n:void 0,r:!1},t._f||(t._f=o),n&&(n.n=o),t[g]++,"F"!==r&&(t._i[r]=o)),t},getEntry:u,setStrong:function(t,e,n){r(t,e,function(t,n){this._t=d(t,e),this._k=n,this._l=void 0},function(){for(var t=this,n=t._k,e=t._l;e&&e.r;)e=e.p;return t._t&&(t._l=e=e?e.n:t._t._f)?o(0,"keys"==n?e.k:"values"==n?e.v:[e.k,e.v]):(t._t=void 0,o(1))},n?"entries":"values",!n,!0),i(e)}}},function(t,n,e){var r=e(7);r(r.P+r.R,"Map",{toJSON:e(351)("Map")})},function(t,n,e){var r=e(107),o=e(352);t.exports=function(t){return function(){if(r(this)!=t)throw TypeError(t+"#toJSON isn't generic");return o(this)}}},function(t,n,e){var r=e(86);t.exports=function(t,n){var e=[];return r(t,!1,e.push,e,n),e}},function(t,n,e){e(215)("Map")},function(t,n,e){e(216)("Map")},function(t,n){t.exports=function(t){return-1!==Function.toString.call(t).indexOf("[native code]")}},function(r,t,n){var o=n(93),i=n(118),u=n(131);function c(t,n,e){return u()?r.exports=c=o:r.exports=c=function(t,n,e){var r=[null];r.push.apply(r,n);n=new(Function.bind.apply(t,r));return e&&i(n,e.prototype),n},c.apply(null,arguments)}r.exports=c},function(t,n,e){"use strict";function r(){var o,i=jQuery,t=arguments,u=this,r={};this.getItems=function(t,n){var e;return n?(e=(n=n.split(".")).splice(0,1),n.length?t[e]?this.getItems(t[e],n.join(".")):void 0:t[e]):t},this.getSettings=function(t){return this.getItems(o,t)},this.setSettings=function(t,n,e){if(e=e||o,"object"===(0,c.default)(t))return i.extend(e,t),u;var t=t.split("."),r=t.splice(0,1);return t.length?(e[r]||(e[r]={}),u.setSettings(t.join("."),n,e[r])):(e[r]=n,u)},this.getErrorMessage=function(t,n){t="forceMethodImplementation"===t?"The method '".concat(n,"' must to be implemented in the inheritor child."):"An error occurs";return t},this.forceMethodImplementation=function(t){throw new Error(this.getErrorMessage("forceMethodImplementation",t))},this.on=function(t,n){return"object"===(0,c.default)(t)?i.each(t,function(t){u.on(t,this)}):t.split(" ").forEach(function(t){r[t]||(r[t]=[]),r[t].push(n)}),u},this.off=function(t,n){return r[t]&&(n?-1!==(n=r[t].indexOf(n))&&(delete r[t][n],r[t]=r[t].filter(function(t){return t})):delete r[t]),u},this.trigger=function(t){var n="on"+t[0].toUpperCase()+t.slice(1),e=Array.prototype.slice.call(arguments,1
17567),n=(u[n]&&u[n].apply(u,e),r[t]);return n&&i.each(n,function(t,n){n.apply(u,e)}),u},u.__construct.apply(u,t),i.each(u,function(t){var n=u[t];"function"==typeof n&&(u[t]=function(){return n.apply(u,arguments)})}),o=u.getDefaultSettings(),(t=t[0])&&i.extend(!0,o,t),u.trigger("init")}var o=e(0),i=o(e(123)),c=(e(29),o(e(40)));e(68);r.prototype.__construct=function(){},r.prototype.getDefaultSettings=function(){return{}},r.prototype.getConstructorID=function(){return this.constructor.name},r.extend=function(t){function n(){return r.apply(this,arguments)}var e=jQuery,r=this;return e.extend(n,r),((n.prototype=(0,i.default)(e.extend({},r.prototype,t))).constructor=n).__super__=r.prototype,n},t.exports=r},function(t,n,e){"use strict";e=e(0)(e(357));t.exports=e.default.extend({elements:null,getDefaultElements:function(){return{}},bindEvents:function(){},onInit:function(){this.initElements(),this.bindEvents()},initElements:function(){this.elements=this.getDefaultElements()}})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,n,e){"use strict";var r=e(0),o=(e(1)(n,"__esModule",{value:!0}),n.default=void 0,e(17),r(e(2))),i=r(e(3)),u=r(e(22)),c=r(e(14)),s=r(e(4)),f=r(e(5)),r=function(t){(0,s.default)(e,t);var n=(0,f.default)(e);function e(){return(0,o.default)(this,e),n.apply(this,arguments)}return(0,i.default)(e,[{key:"getDefaultSettings",value:function(){return{selectors:{elements:".elementor-element",nestedDocumentElements:".elementor .elementor-element"},classes:{editMode:"elementor-edit-mode"}}}},{key:"getDefaultElements",value:function(){var t=this.getSettings("selectors");return{$elements:this.$element.find(t.elements).not(this.$element.find(t.nestedDocumentElements))}}},{key:"getDocumentSettings",value:function(t){var n,e;return this.isEdit?(n={},e=elementor.settings.page.model,jQuery.each(e.getActiveControls(),function(t){n[t]=e.attributes[t]})):n=this.$element.data("elementor-settings")||{},this.getItems(n,t)}},{key:"runElementsHandlers",value:function(){this.elements.$elements.each(function(t,n){return ceFrontend.elementsHandler.runReadyTrigger(n)})}},{key:"onInit",value:function(){var t=this;this.$element=this.getSettings("$element"),(0,u.default)((0,c.default)(e.prototype),"onInit",this).call(this),this.isEdit=this.$element.hasClass(this.getSettings("classes.editMode")),this.isEdit?elementor.on("document:loaded",function(){elementor.settings.page.model.on("change",t.onSettingsChange.bind(t))}):this.runElementsHandlers()}},{key:"onSettingsChange",value:function(){}}]),e}(elementorModules.ViewModule);n.default=r},,function(t,n,e){"use strict";var r=e(0),o=(e(1)(n,"__esModule",{value:!0}),n.default=void 0,r(e(357))),i=r(e(358)),u=r(e(210)),c=r(e(577)),r=r(e(578)),e=window.elementorModules={Module:o.default,ViewModule:i.default,ArgsObject:u.default,ForceMethodImplementation:r.default,utils:{Masonry:c.default}};n.default=e},function(t,n,e){"use strict";var r=e(0),s=r(e(136)),r=r(e(358));t.exports=r.default.extend({getDefaultSettings:function(){return{container:null,items:null,columnsCount:3,verticalSpaceBetween:30}},getDefaultElements:function(){return{$container:jQuery(this.getSettings("container")),$items:jQuery(this.getSettings("items"))}},run:function(){var o=[],i=this.elements.$container.position().top,u=this.getSettings(),c=u.columnsCount;i+=(0,s.default)(this.elements.$container.css("margin-top"),10),this.elements.$items.each(function(t){var n=Math.floor(t/c),e=jQuery(this),r=e[0].getBoundingClientRect().height+u.verticalSpaceBetween;n?(t=e.position().top-i-o[n=t%c],t-=(0,s.default)(e.css("margin-top"),10),e.css("margin-top",(t*=-1)+"px"),o[n]+=r):o.push(r)})}})},function(t,n,e){"use strict";var r=e(0),o=(e(1)(n,"__esModule",{value:!0}),n.default=n.ForceMethodImplementation=void 0,e(206),e(231),e(579),e(68),r(e(2))),i=r(e(49)),u=r(e(4)),c=r(e(5)),s=function(t){(0,u.default)(e,t);var n=(0,c.default)(e);function e(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return(0,o.default)(this,e),t=n.call(this,"".concat(t.isStatic?"static ":"").concat(t.fullName,"() should be implemented, please provide '").concat(t.functionName||t.fullName,"' functionality.")),Error.captureStackTrace((0,i.default)(t),e),t}return e}((0,r(e(294)).default)(Error));n.ForceMethodImplementation=s;n.default=function(){var t=Error().stack.split("\n")[2].trim(),t=t.startsWith("at new")?"constructor":t.split(" ")[1],n={};throw n.functionName=t,n.fullName=t,n.functionName.includes(".")?(t=n.functionName.split("."),n.className=t[0],n.functionName=t[1]):n.isStatic=!0,new s(n)}},function(t,n,e){"use strict";var r=e(32),o=e(41),i=e(232),u="startsWith",c=""[u];r(r.P+r.F*e(233)(u),"String",{startsWith:function(t){var n=i(this,t,u),e=o(Math.min(1<arguments.length?arguments[1]:void 0,n.length)),t=String(t);return c?c.call(n,t,e):n.slice(e,e+t.length)===t}})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,n,e){"use strict";var r=e(0),o=r(e(576)),i=r(e(574)),u=r(e(754)),r=r(e(755));o.default.frontend={Document:i.default,tools:{StretchElement:u.default},handlers:{Base:r.default}}},function(t,n,e){"use strict";
17567t.exports=elementorModules.ViewModule.extend({getDefaultSettings:function(){return{element:null,direction:ceFrontend.config.is_rtl?"right":"left",selectors:{container:window}}},getDefaultElements:function(){return{$element:jQuery(this.getSettings("element"))}},stretch:function(){if(this.elements.$element.length){var t=this.getSettings("selectors.container");try{n=jQuery(t)}catch(t){}n&&n.length||(n=jQuery(this.getDefaultSettings().selectors.container)),this.reset();var n,t=this.elements.$element,e=n.outerWidth(),r=t.offset().left,o="fixed"===t.css("position"),i=o?0:r,r=(window!==n[0]&&(n=n.offset().left,o&&(i=n),n<r&&(i=r-n)),o||(i=-(i=ceFrontend.config.is_rtl?e-(t.outerWidth()+i):i)),{});r.width=e+"px",r[this.getSettings("direction")]=i+"px",t.css(r)}},reset:function(){var t={width:""};t[this.getSettings("direction")]="",this.elements.$element.css(t)}})},function(t,n,e){"use strict";var r=e(0),o=(e(239),e(178),e(97),e(68),r(e(23)));e(17),t.exports=elementorModules.ViewModule.extend({$element:null,editorListeners:null,onElementChange:null,onEditSettingsChange:null,onGeneralSettingsChange:null,onPageSettingsChange:null,isEdit:null,__construct:function(t){this.$element=t.$element,this.isEdit=this.$element.hasClass("elementor-element-edit-mode"),this.isEdit&&this.addEditorListeners()},findElement:function(t){var n=this.$element;return n.find(t).filter(function(){return jQuery(this).closest(".elementor-element").is(n)})},getUniqueHandlerID:function(t,n){return(t=t||this.getModelCID())+(n=n||this.$element).attr("data-element_type")+this.getConstructorID()},initEditorListeners:function(){var t,n,e=this;e.editorListeners=[{event:"element:destroy",to:elementor.channels.data,callback:function(t){t.cid===e.getModelCID()&&e.onDestroy()}}],e.onElementChange&&(n="change","global"!==(t=e.getWidgetType()||e.getElementType())&&(n+=":"+t),e.editorListeners.push({event:n,to:elementor.channels.editor,callback:function(t,n){e.getUniqueHandlerID(n.model.cid,n.$el)===e.getUniqueHandlerID()&&e.onElementChange(t.model.get("name"),t,n)}})),e.onEditSettingsChange&&e.editorListeners.push({event:"change:editSettings",to:elementor.channels.editor,callback:function(t,n){n.model.cid===e.getModelCID()&&e.onEditSettingsChange((0,o.default)(t.changed)[0])}}),["page","general"].forEach(function(t){var n="on"+t[0].toUpperCase()+t.slice(1)+"SettingsChange";e[n]&&e.editorListeners.push({event:"change",to:elementor.settings[t].model,callback:function(t){e[n](t.changed)}})})},getEditorListeners:function(){return this.editorListeners||this.initEditorListeners(),this.editorListeners},addEditorListeners:function(){var n=this.getUniqueHandlerID();this.getEditorListeners().forEach(function(t){ceFrontend.addListenerOnce(n,t.event,t.callback,t.to)})},removeEditorListeners:function(){var n=this.getUniqueHandlerID();this.getEditorListeners().forEach(function(t){ceFrontend.removeListeners(n,t.event,null,t.to)})},getElementType:function(){return this.$element.data("element_type")},getWidgetType:function(){var t=this.$element.data("widget_type");if(t)return t.split(".")[0]},getID:function(){return this.$element.data("id")},getModelCID:function(){return this.$element.data("model-cid")},getElementSettings:function(t){var e,n,r,o={},i=this.getModelCID();return this.isEdit&&i?(i=ceFrontend.config.elements.data[i],n=(e=i.attributes).widgetType||e.elType,e.isInner&&(n="inner-"+n),(r=ceFrontend.config.elements.keys[n])||(r=ceFrontend.config.elements.keys[n]=[],jQuery.each(i.controls,function(t,n){n.frontend_available&&r.push(t)})),jQuery.each(i.getActiveControls(),function(t){var n;-1!==r.indexOf(t)&&((n=e[t])&&n.toJSON&&(n=n.toJSON()),o[t]=n)})):o=this.$element.data("settings")||{},this.getItems(o,t)},getEditSettings:function(t){var n={};return this.isEdit&&(n=ceFrontend.config.elements.editSettings[this.getModelCID()].attributes),this.getItems(n,t)},getCurrentDeviceSetting:function(t){return ceFrontend.getCurrentDeviceSetting(this.getElementSettings(),t)},onDestroy:function(){this.isEdit&&this.removeEditorListeners(),this.unbindEvents&&this.unbindEvents()}})}]);/*! dialogs-manager v4.7.6 | (c) Kobi Zaltzberg | https://github.com/kobizz/dialogs-manager/blob/master/LICENSE.txt 17568 2020-02-11 15:22 */ 17569!function(a,b){"use strict";var c={widgetsTypes:{},createWidgetType:function(b,d,e){e||(e=this.Widget);var f=function(){e.apply(this,arguments)},g=f.prototype=new e(b);return g.types=g.types.concat([b]),a.extend(g,d),g.constructor=f,f.extend=function(a,b){return c.createWidgetType(a,b,f)},f},addWidgetType:function(a,b,c){return b&&b.prototype instanceof this.Widget?this.widgetsTypes[a]=b:this.widgetsTypes[a]=this.createWidgetType(a,b,c)},getWidgetType:function(a){return this.widgetsTypes[a]}};c.Instance=function(){var b=this,d={},e={},f=function(){d.body=a("body")},g=function(b){var c={classPrefix:"dialog",effects:{show:"fadeIn",hide:"fadeOut"}};a.extend(e,c,b)};this.createWidget=function(a,d){var e=c.getWidgetType(a),f=new e(a);return d=d||{},f.init(b,d),f}
17569,this.getSettings=function(a){return a?e[a]:Object.create(e)},this.init=function(a){return g(a),f(),b},b.init()},c.Widget=function(b){var d=this,e={},f={},g={},h=0,i=["refreshPosition"],j=function(){var a=[g.window];g.iframe&&a.push(jQuery(g.iframe[0].contentWindow)),a.forEach(function(a){e.hide.onEscKeyPress&&a.on("keyup",v),e.hide.onOutsideClick&&a[0].addEventListener("click",p,!0),e.hide.onOutsideContextMenu&&a[0].addEventListener("contextmenu",p,!0),e.position.autoRefresh&&a.on("resize",d.refreshPosition)}),(e.hide.onClick||e.hide.onBackgroundClick)&&g.widget.on("click",n)},k=function(b,c){var d=e.effects[b],f=g.widget;if(a.isFunction(d))d.apply(f,c);else{if(!f[d])throw"Reference Error: The effect "+d+" not found";f[d].apply(f,c)}},l=function(){var b=i.concat(d.getClosureMethods());a.each(b,function(){var a=this,b=d[a];d[a]=function(){b.apply(d,arguments)}})},m=function(a){if(a.my){var b=/left|right/,c=/([+-]\d+)?$/,d=g.iframe.offset(),e=g.iframe[0].contentWindow,f=a.my.split(" "),h=[];1===f.length&&(b.test(f[0])?f.push("center"):f.unshift("center")),f.forEach(function(a,b){var f=a.replace(c,function(a){return a=+a||0,a+=b?d.top-e.scrollY:d.left-e.scrollX,a>=0&&(a="+"+a),a});h.push(f)}),a.my=h.join(" ")}},n=function(b){if(!t(b)){if(e.hide.onClick){if(a(b.target).closest(e.selectors.preventClose).length)return}else if(b.target!==this)return;d.hide()}},o=function(b){return!!e.hide.ignore&&!!a(b.target).closest(e.hide.ignore).length},p=function(b){t(b)||a(b.target).closest(g.widget).length||o(b)||d.hide()},q=function(){d.addElement("widget"),d.addElement("header"),d.addElement("message"),d.addElement("window",window),d.addElement("body",document.body),d.addElement("container",e.container),e.iframe&&d.addElement("iframe",e.iframe),e.closeButton&&d.addElement("closeButton",'<div><i class="'+e.closeButtonClass+'"></i></div>');var b=d.getSettings("id");b&&d.setID(b);var c=[];a.each(d.types,function(){c.push(e.classes.globalPrefix+"-type-"+this)}),c.push(d.getSettings("className")),g.widget.addClass(c.join(" "))},r=function(c,f){var g=a.extend(!0,{},c.getSettings());e={headerMessage:"",message:"",effects:g.effects,classes:{globalPrefix:g.classPrefix,prefix:g.classPrefix+"-"+b,preventScroll:g.classPrefix+"-prevent-scroll"},selectors:{preventClose:"."+g.classPrefix+"-prevent-close"},container:"body",preventScroll:!1,iframe:null,closeButton:!1,closeButtonClass:g.classPrefix+"-close-button-icon",position:{element:"widget",my:"center",at:"center",enable:!0,autoRefresh:!1},hide:{auto:!1,autoDelay:5e3,onClick:!1,onOutsideClick:!0,onOutsideContextMenu:!1,onBackgroundClick:!0,onEscKeyPress:!0,ignore:""}},a.extend(!0,e,d.getDefaultSettings(),f),s()},s=function(){a.each(e,function(a){var b=a.match(/^on([A-Z].*)/);b&&(b=b[1].charAt(0).toLowerCase()+b[1].slice(1),d.on(b,this))})},t=function(a){return"click"===a.type&&2===a.button},u=function(a){return a.replace(/([a-z])([A-Z])/g,function(){return arguments[1]+"-"+arguments[2].toLowerCase()})},v=function(a){var b=27,c=a.which;b===c&&d.hide()},w=function(){var a=[g.window];g.iframe&&a.push(jQuery(g.iframe[0].contentWindow)),a.forEach(function(a){e.hide.onEscKeyPress&&a.off("keyup",v),e.hide.onOutsideClick&&a[0].removeEventListener("click",p,!0),e.hide.onOutsideContextMenu&&a[0].removeEventListener("contextmenu",p,!0),e.position.autoRefresh&&a.off("resize",d.refreshPosition)}),(e.hide.onClick||e.hide.onBackgroundClick)&&g.widget.off("click",n)};this.addElement=function(b,c,d){var f=g[b]=a(c||"<div>"),h=u(b);return d=d?d+" ":"",d+=e.classes.globalPrefix+"-"+h,d+=" "+e.classes.prefix+"-"+h,f.addClass(d),f},this.destroy=function(){return w(),g.widget.remove(),d.trigger("destroy"),d},this.getElements=function(a){return a?g[a]:g},this.getSettings=function(a){var b=Object.create(e);return a?b[a]:b},this.hide=function(){if(d.isVisible())return clearTimeout(h),k("hide",arguments),w(),e.preventScroll&&d.getElements("body").removeClass(e.classes.preventScroll),d.trigger("hide"),d},this.init=function(a,b){if(!(a instanceof c.Instance))throw"The "+d.widgetName+" must to be initialized from an instance of DialogsManager.Instance";return l(),d.trigger("init",b),r(a,b),q(),d.buildWidget(),d.attachEvents(),d.trigger("ready"),d},this.isVisible=function(){return g.widget.is(":visible")},this.on=function(b,c){if("object"==typeof b)return a.each(b,function(a){d.on(a,this)}),d;var e=b.split(" ");return e.forEach(function(a){f[a]||(f[a]=[]),f[a].push(c)}),d},this.off=function(a,b){if(!f[a])return d;if(!b)return delete f[a],d;var c=f[a].indexOf(b);return-1!==c&&f[a].splice(c,1),d},this.refreshPosition=function(){if(e.position.enable){var b=a.extend({},e.position);g[b.of]&&(b.of=g[b.of]),b.of||(b.of=window),e.iframe&&m(b),g[b.element].position(b)}},this.setID=function(a){return g.widget.attr("id",a),d},this.setHeaderMessage=function(a){return d.getElements("header").html(a),d},this.setMessage=function(a){return g.message.html(a),d},this.setSettings=function(b,c){return jQuery.isPlainObject(c)?a.extend(!0,e[b],c):e[b]=c,d},this.show=function(){return clearTimeout(h),g.widget.appendTo(g.container).hide(),k("show",arguments),d.refreshPosition(),e.hide.auto&&(h=setTimeout(d.hide,e.hide.autoDelay)),j(),e.preventScroll&&d.getElements("body").addClass(e.classes.preventScroll),d.trigger("show"),d},this.trigger=function(b,c){var e="on"+b[0].toUpperCase()+b.slice(1);d[e]&&d[e](c);var g=f[b];if(g)return a.each(g,function(a,b){b.call(d,c)}),d}},c.Widget.prototype.types=[],c.Widget.prototype.buildWidget=function(){var a=this.getElements(),b=this.getSettings();a.widget.append(a.header,a.message),this.setHeaderMessage(b.headerMessage),this.setMessage(b.message),this.get
17569Settings("closeButton")&&a.widget.prepend(a.closeButton)},c.Widget.prototype.attachEvents=function(){var a=this;a.getSettings("closeButton")&&a.getElements("closeButton").on("click",function(){a.hide()})},c.Widget.prototype.getDefaultSettings=function(){return{}},c.Widget.prototype.getClosureMethods=function(){return[]},c.Widget.prototype.onHide=function(){},c.Widget.prototype.onShow=function(){},c.Widget.prototype.onInit=function(){},c.Widget.prototype.onReady=function(){},c.widgetsTypes.simple=c.Widget,c.addWidgetType("buttons",{activeKeyUp:function(a){var b=9;a.which===b&&a.preventDefault(),this.hotKeys[a.which]&&this.hotKeys[a.which](this)},activeKeyDown:function(a){if(this.focusedButton){var b=9;if(a.which===b){a.preventDefault();var c,d=this.focusedButton.index();a.shiftKey?(c=d-1,c<0&&(c=this.buttons.length-1)):(c=d+1,c>=this.buttons.length&&(c=0)),this.focusedButton=this.buttons[c].focus()}}},addButton:function(b){var c=this,d=c.getSettings(),e=jQuery.extend(d.button,b),f=b.classes?b.classes+" ":"";f+=d.classes.globalPrefix+"-button";var g=c.addElement(b.name,a("<"+e.tag+">").text(b.text),f);c.buttons.push(g);var h=function(){d.hide.onButtonClick&&c.hide(),a.isFunction(b.callback)&&b.callback.call(this,c)};return g.on("click",h),b.hotKey&&(this.hotKeys[b.hotKey]=h),this.getElements("buttonsWrapper").append(g),b.focus&&(this.focusedButton=g),c},bindHotKeys:function(){this.getElements("window").on({keyup:this.activeKeyUp,keydown:this.activeKeyDown})},buildWidget:function(){c.Widget.prototype.buildWidget.apply(this,arguments);var a=this.addElement("buttonsWrapper");this.getElements("widget").append(a)},getClosureMethods:function(){return["activeKeyUp","activeKeyDown"]},getDefaultSettings:function(){return{hide:{onButtonClick:!0},button:{tag:"button"}}},onHide:function(){this.unbindHotKeys()},onInit:function(){this.buttons=[],this.hotKeys={},this.focusedButton=null},onShow:function(){this.bindHotKeys(),this.focusedButton||(this.focusedButton=this.buttons[0]),this.focusedButton&&this.focusedButton.focus()},unbindHotKeys:function(){this.getElements("window").off({keyup:this.activeKeyUp,keydown:this.activeKeyDown})}}),c.addWidgetType("lightbox",c.getWidgetType("buttons").extend("lightbox",{getDefaultSettings:function(){var b=c.getWidgetType("buttons").prototype.getDefaultSettings.apply(this,arguments);return a.extend(!0,b,{contentWidth:"auto",contentHeight:"auto",position:{element:"widgetContent",of:"widget",autoRefresh:!0}})},buildWidget:function(){c.getWidgetType("buttons").prototype.buildWidget.apply(this,arguments);var a=this.addElement("widgetContent"),b=this.getElements();a.append(b.header,b.message,b.buttonsWrapper),b.widget.html(a),b.closeButton&&a.prepend(b.closeButton)},onReady:function(){var a=this.getElements(),b=this.getSettings();"auto"!==b.contentWidth&&a.message.width(b.contentWidth),"auto"!==b.contentHeight&&a.message.height(b.contentHeight)}})),c.addWidgetType("confirm",c.getWidgetType("lightbox").extend("confirm",{onReady:function(){c.getWidgetType("lightbox").prototype.onReady.apply(this,arguments);var a=this.getSettings("strings"),b="cancel"===this.getSettings("defaultOption");this.addButton({name:"cancel",text:a.cancel,callback:function(a){a.trigger("cancel")},focus:b}),this.addButton({name:"ok",text:a.confirm,callback:function(a){a.trigger("confirm")},focus:!b})},getDefaultSettings:function(){var a=c.getWidgetType("lightbox").prototype.getDefaultSettings.apply(this,arguments);return a.strings={confirm:"OK",cancel:"Cancel"},a.defaultOption="cancel",a}})),c.addWidgetType("alert",c.getWidgetType("lightbox").extend("alert",{onReady:function(){c.getWidgetType("lightbox").prototype.onReady.apply(this,arguments);var a=this.getSettings("strings");this.addButton({name:"ok",text:a.confirm,callback:function(a){a.trigger("confirm")}})},getDefaultSettings:function(){var a=c.getWidgetType("lightbox").prototype.getDefaultSettings.apply(this,arguments);return a.strings={confirm:"OK"},a}})),b.DialogsManager=c}("undefined"!=typeof jQuery?jQuery:"function"==typeof require&&require("jquery"),"undefined"!=typeof module?module.exports:window);!function(){"use strict";function Waypoint(options){if(!options)throw new Error("No options passed to Waypoint constructor");if(!options.element)throw new Error("No element option passed to Waypoint constructor");if(!options.handler)throw new Error("No handler option passed to Waypoint constructor");
vendor: 11,655 bytes, line 17569
17569this.key="waypoint-"+keyCounter,this.options=Waypoint.Adapter.extend({},Waypoint.defaults,options),this.element=this.options.element,this.adapter=new Waypoint.Adapter(this.element),this.callback=options.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=Waypoint.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=Waypoint.Context.findOrCreateByElement(this.options.context),Waypoint.offsetAliases[this.options.offset]&&(this.options.offset=Waypoint.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),allWaypoints[this.key]=this,keyCounter+=1}var keyCounter=0,allWaypoints={};Waypoint.prototype.queueTrigger=function(direction){this.group.queueTrigger(this,direction)},Waypoint.prototype.trigger=function(args){this.enabled&&this.callback&&this.callback.apply(this,args)},Waypoint.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete allWaypoints[this.key]},Waypoint.prototype.disable=function(){return this.enabled=!1,this},Waypoint.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},Waypoint.prototype.next=function(){return this.group.next(this)},Waypoint.prototype.previous=function(){return this.group.previous(this)},Waypoint.invokeAll=function(method){var allWaypointsArray=[];for(var waypointKey in allWaypoints)allWaypointsArray.push(allWaypoints[waypointKey]);for(var i=0,end=allWaypointsArray.length;i<end;i++)allWaypointsArray[i][method]()},Waypoint.destroyAll=function(){Waypoint.invokeAll("destroy")},Waypoint.disableAll=function(){Waypoint.invokeAll("disable")},Waypoint.enableAll=function(){Waypoint.Context.refreshAll();for(var waypointKey in allWaypoints)allWaypoints[waypointKey].enabled=!0;return this},Waypoint.refreshAll=function(){Waypoint.Context.refreshAll()},Waypoint.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},Waypoint.viewportWidth=function(){return document.documentElement.clientWidth},Waypoint.adapters=[],Waypoint.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},Waypoint.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=Waypoint}(),function(){"use strict";function requestAnimationFrameShim(callback){window.setTimeout(callback,1e3/60)}function Context(element){this.element=element,this.Adapter=Waypoint.Adapter,this.adapter=new this.Adapter(element),this.key="waypoint-context-"+keyCounter,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},element.waypointContextKey=this.key,contexts[element.waypointContextKey]=this,keyCounter+=1,Waypoint.windowContext||(Waypoint.windowContext=!0,Waypoint.windowContext=new Context(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var keyCounter=0,contexts={},Waypoint=window.Waypoint,oldWindowLoad=window.onload;Context.prototype.add=function(waypoint){var axis=waypoint.options.horizontal?"horizontal":"vertical";this.waypoints[axis][waypoint.key]=waypoint,this.refresh()},Context.prototype.checkEmpty=function(){var horizontalEmpty=this.Adapter.isEmptyObject(this.waypoints.horizontal),verticalEmpty=this.Adapter.isEmptyObject(this.waypoints.vertical),isWindow=this.element==this.element.window;horizontalEmpty&&verticalEmpty&&!isWindow&&(this.adapter.off(".waypoints"),delete contexts[this.key])},Context.prototype.createThrottledResizeHandler=function(){function resizeHandler(){self.handleResize(),self.didResize=!1}var self=this;this.adapter.on("resize.waypoints",function(){self.didResize||(self.didResize=!0,Waypoint.requestAnimationFrame(resizeHandler))})},Context.prototype.createThrottledScrollHandler=function(){function scrollHandler(){self.handleScroll(),self.didScroll=!1}var self=this;this.adapter.on("scroll.waypoints",function(){self.didScroll&&!Waypoint.isTouch||(self.didScroll=!0,Waypoint.requestAnimationFrame(scrollHandler))})},Context.prototype.handleResize=function(){Waypoint.Context.refreshAll()},Context.prototype.handleScroll=function(){var triggeredGroups={},axes={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var axisKey in axes){var axis=axes[axisKey],isForward=axis.newScroll>axis.oldScroll,direction=isForward?axis.forward:axis.backward;for(var waypointKey in this.waypoints[axisKey]){var waypoint=this.waypoints[axisKey][waypointKey];if(null!==waypoint.triggerPoint){var wasBeforeTriggerPoint=axis.oldScroll<waypoint.triggerPoint,nowAfterTriggerPoint=axis.newScroll>=waypoint.triggerPoint,crossedForward=wasBeforeTriggerPoint&&nowAfterTriggerPoint,crossedBackward=!wasBeforeTriggerPoint&&!nowAfterTriggerPoint;(crossedForward||crossedBackward)&&(waypoint.queueTrigger(direction),triggeredGroups[waypoint.group.id]=waypoint.group)}}}for(var groupKey in triggeredGroups)triggeredGroups[groupKey].flushTriggers();this.oldScroll={x:axes.horizontal.newScroll,y:axes.vertical.newScroll}},Context.prototype.innerHeight=function(){return this.element==this.element.window?Waypoint.viewportHeight():this.adapter.innerHeight()},Context.prototype.remove=function(waypoint){delete this.waypoints[waypoint.axis][waypoint.key],this.checkEmpty()},Context.prototype.innerWidth=function(){return this.element==this.element.window?Waypoint.viewportWidth():this.adapter.innerWidth()},Context.prototype.destroy=function(){var allWaypoints=[];for(var axis in this.waypoints)for(var waypointKey in this.waypoints[axis])allWaypoints.push(this.waypoints[axis][waypointKey]);for(var i=0,end=allWaypoints.length;i<end;i++)allWaypoints[i].destroy()},Context.prototype.refresh=function(){var axes,isWindow=this.element==this.element.window,contextOffset=isWindow?void 0:this.adapter.offset(),triggeredGroups={};this.handleScroll(),axes={horizontal:{contextOffset:isWindow?0:contextOffset.left,contextScroll:isWindow?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:isWindow?0:contextOffset.top,contextScroll:isWindow?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};for(var axisKey in axes){var axis=axes[axisKey];for(var waypointKey in this.waypoints[axisKey]){var contextModifier,wasBeforeScroll,nowAfterScroll,triggeredBackward,triggeredForward,waypoint=this.waypoints[axisKey][waypointKey],adjustment=waypoint.options.offset,oldTriggerPoint=waypoint.triggerPoint,elementOffset=0,freshWaypoint=null==oldTriggerPoint;waypoint.element!==waypoint.element.window&&(elementOffset=waypoint.adapter.offset()[axis.offsetProp]),"function"==typeof adjustment?adjustment=adjustment.apply(waypoint):"string"==typeof adjustment&&(adjustment=parseFloat(adjustment),waypoint.options.offset.indexOf("%")>-1&&(adjustment=Math.ceil(axis.contextDimension*adjustment/100))),contextModifier=axis.contextScroll-axis.contextOffset,waypoint.triggerPoint=Math.floor(elementOffset+contextModifier-adjustment),wasBeforeScroll=oldTriggerPoint<axis.oldScroll,nowAfterScroll=waypoint.triggerPoint>=axis.oldScroll,triggeredBackward=wasBeforeScroll&&nowAfterScroll,triggeredForward=!wasBeforeScroll&&!nowAfterScroll,!freshWaypoint&&triggeredBackward?(waypoint.queueTrigger(axis.backward),triggeredGroups[waypoint.group.id]=waypoint.group):!freshWaypoint&&triggeredForward?(waypoint.queueTrigger(axis.forward),triggeredGroups[waypoint.group.id]=waypoint.group):freshWaypoint&&axis.oldScroll>=waypoint.triggerPoint&&(waypoint.queueTrigger(axis.forward),triggeredGroups[waypoint.group.id]=waypoint.group)}}return Waypoint.requestAnimationFrame(function(){for(var groupKey in triggeredGroups)triggeredGroups[groupKey].flushTriggers()}),this},Context.findOrCreateByElement=function(element){return Context.findByElement(element)||new Context(element)},Context.refreshAll=function(){for(var contextId in contexts)contexts[contextId].refresh()},Context.findByElement=function(element){return contexts[element.waypointContextKey]},window.onload=function(){oldWindowLoad&&oldWindowLoad(),Context.refreshAll()},Waypoint.requestAnimationFrame=function(callback){var requestFn=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||requestAnimationFrameShim;requestFn.call(window,callback)},Waypoint.Context=Context}(),function(){"use strict";function byTriggerPoint(a,b){return a.triggerPoint-b.triggerPoint}function byReverseTriggerPoint(a,b){return b.triggerPoint-a.triggerPoint}function Group(options){this.name=options.name,this.axis=options.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),groups[this.axis][this.name]=this}var groups={vertical:{},horizontal:{}},Waypoint=window.Waypoint;Group.prototype.add=function(waypoint){this.waypoints.push(waypoint)},Group.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},Group.prototype.flushTriggers=function(){for(var direction in this.triggerQueues){var waypoints=this.triggerQueues[direction],reverse="up"===direction||"left"===direction;waypoints.sort(reverse?byReverseTriggerPoint:byTriggerPoint);for(var i=0,end=waypoints.length;i<end;i+=1){var waypoint=waypoints[i];(waypoint.options.continuous||i===waypoints.length-1)&&waypoint.trigger([direction])}}this.clearTriggerQueues()},Group.prototype.next=function(waypoint){this.waypoints.sort(byTriggerPoint);var index=Waypoint.Adapter.inArray(waypoint,this.waypoints),isLast=index===this.waypoints.length-1;return isLast?null:this.waypoints[index+1]},Group.prototype.previous=function(waypoint){this.waypoints.sort(byTriggerPoint);var index=Waypoint.Adapter.inArray(waypoint,this.waypoints);return index?this.waypoints[index-1]:null},Group.prototype.queueTrigger=function(waypoint,direction){this.triggerQueues[direction].push(waypoint)},Group.prototype.remove=function(waypoint){var index=Waypoint.Adapter.inArray(waypoint,this.waypoints);index>-1&&this.waypoints.splice(index,1)},Group.prototype.first=function(){return this.waypoints[0]},Group.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},Group.findOrCreate=function(options){return groups[options.axis][options.name]||new Group(options)},Waypoint.Group=Group}(),function(){"use strict";function JQueryAdapter(element){this.$element=$(element)}var $=window.jQuery,Waypoint=window.Waypoint;$.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(i,method){JQueryAdapter.prototype[method]=function(){var args=Array.prototype.slice.call(arguments);return this.$element[method].apply(this.$element,args)}}),$.each(["extend","inArray","isEmptyObject"],function(i,method){JQueryAdapter[method]=$[method]}),Waypoint.adapters.push({name:"jquery",Adapter:JQueryAdapter}),Waypoint.Adapter=JQueryAdapter}(),function(){"use strict";function createExtension(framework){return function(){var waypoints=[],overrides=arguments[0];return framework.isFunction(arguments[0])&&(overrides=framework.extend({},arguments[1]),overrides.handler=arguments[0]),this.each(function(){var options=framework.extend({},overrides,{element:this});"string"==typeof options.context&&(options.context=framework(this).closest(options.context)[0]),wayp
17569oints.push(new Waypoint(options))}),waypoints}}var Waypoint=window.Waypoint;window.jQuery&&(window.jQuery.fn.elementorWaypoint=createExtension(window.jQuery)),window.Zepto&&(window.Zepto.fn.elementorWaypoint=createExtension(window.Zepto))}();!function(C){function i(t,o){function i(t,o,s){var e={},i=t[0].style;s.forEach(function(t){e[t]=void 0!==i[t]?i[t]:""}),t.data("css-backup-"+o,e)}function n(t,o,s){var e=getComputedStyle(t[0]),i=parseFloat(e[o]),n="height"===o?["top","bottom"]:["left","right"],t=[];return"border-box"!==e.boxSizing&&t.push("border","padding"),s&&t.push("margin"),t.forEach(function(o){n.forEach(function(t){i+=parseFloat(e[o+"-"+t])})}),i}var r,a,e=!1,c=!1,s=!1,f=pageYOffset,p={},d={to:"top",offset:0,effectsOffset:0,parent:!1,classes:{sticky:"sticky",stickyActive:"sticky-active",stickyEffects:"sticky-effects",spacer:"sticky-spacer"}},l=function(t,o){return t.data("css-backup-"+o)},m=function(){i(r,"unsticky",["position","width","margin-top","margin-bottom","top","bottom"]);var t={position:"fixed",width:n(r,"width"),marginTop:0,marginBottom:0};t[a.to]=a.offset,t["top"===a.to?"bottom":"top"]="",r.css(t).addClass(a.classes.stickyActive)},u=function(){r.css(l(r,"unsticky")).removeClass(a.classes.stickyActive)},y=function(t){var o=p.$window.scrollTop(),s=n(t,"height"),e=innerHeight,t=t.offset().top-o,o=t-e;return{top:{fromTop:t,fromBottom:o},bottom:{fromTop:t+s,fromBottom:o+s}}},h=function(){p.$spacer=r.clone().addClass(a.classes.spacer).css({visibility:"hidden",transition:"none",animation:"none"}),r.after(p.$spacer),m(),e=!0,r.find("input[checked]").prop("checked",!0),r.trigger("sticky:stick")},k=function(){u(),p.$spacer.remove(),e=!1,r.trigger("sticky:unstick")},g=function(){var t,o,s=y(r),e="top"===a.to;c?(e?s.top.fromTop>a.offset:s.bottom.fromBottom<-a.offset)&&(p.$parent.css(l(p.$parent,"childNotFollowing")),r.css(l(r,"notFollowing")),c=!1):(t=y(p.$parent),o=getComputedStyle(p.$parent[0]),o=parseFloat(o[e?"borderBottomWidth":"borderTopWidth"]),t=e?t.bottom.fromTop-o:t.top.fromBottom+o,(e?t<=s.bottom.fromTop:t>=s.top.fromBottom)&&(i(p.$parent,"childNotFollowing",["position"]),p.$parent.css("position","relative"),i(r,"notFollowing",["position","top","bottom"]),(o={position:"absolute"})[a.to]="",o["top"===a.to?"bottom":"top"]=0,r.css(o),c=!0))},v=function(t){s&&-t<a.effectsOffset?(r.removeClass(a.classes.stickyEffects),s=!1):!s&&-t>=a.effectsOffset&&(r.addClass(a.classes.stickyEffects),s=!0)},w=function(){var t,o,s=a.offset;e?(t=y(p.$spacer),t="top"===a.to?t.top.fromTop-s:-t.bottom.fromBottom-s,a.parent&&g(),0<t&&k()):(o=y(r),(t="top"===a.to?o.top.fromTop-s:-o.bottom.fromBottom-s)<=0&&(h(),a.parent&&g())),v(t)},b=function(){var t;e&&a.autoHide&&(t=a.autoHideOffset.size*("vh"===a.autoHideOffset.unit?C(window).height()/100:1),pageYOffset>=t&&pageYOffset>f+10&&!r.find(".elementor-cart--shown").length&&r.off("transitionend.ceSticky").css({transition:"transform "+a.autoHideDuration.size+"s",transform:"translateY(calc(-100% - "+a.offset+"px))"}).addClass(a.classes.stickyHide),(pageYOffset<t||pageYOffset<f-10)&&r.removeClass(a.classes.stickyHide).css("transform","").one("transitionend.ceSticky",function(){r.css("transition","")}),f=pageYOffset),w()},$=function(){e&&(u(),m(),a.parent&&(c=!1,g()))};this.destroy=function(){e&&k(),p.$window.off("scroll",b).off("resize",$),r.removeClass(a.classes.sticky).css("transform","").off("transitionend.ceSticky").removeClass(a.classes.stickyHide)},a=jQuery.extend(!0,d,o),r=C(t).addClass(a.classes.sticky),p.$window=C(window),a.parent&&("parent"===a.parent?p.$parent=r.parent():p.$parent=r.closest(a.parent)),p.$window.on({scroll:b,resize:$}),w()}C.fn.sticky=function(s){var e="string"==typeof s;return this.each(function(){var t=C(this);if(e){var o=t.data("sticky");if(!o)throw Error("Trying to perform the `"+s+"` method prior to initialization");if(!o[s])throw ReferenceError("Method `"+s+"` not found in sticky instance");o[s].apply(o,Array.prototype.slice.call(arguments,1)),"destroy"===s&&t.removeData("sticky")}else t.data("sticky",new i(this,s))}),this},window.Sticky=i}(jQuery);!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).Swiper=t()}(this,function(){"use strict";function l(e){for(var t=0;t<e.length;t+=1)this[t]=e[t];return this.length=e.length,this}var c="undefined"==typeof document?{body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},location:{hash:""}}:document,U="undefined"==typeof window?{document:c,navigator:{userAgent:""},location:{},history:{},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){}}:window;function E(e,t){var a=[],i=0;if(e&&!t&&e instanceof l)return e;if(e)if("string"==typeof e){var s,n,r=e.trim();if(0<=r.indexOf("<")&&0<=r.indexOf(">")){var o="div";for(0===r.indexOf("<li")&&(o="ul"),0===r.indexOf("<tr")&&(o="tbody"),0!==r.indexOf("<td")&&0!==r.indexOf("<th")||(o="tr"),0===r.indexOf("<tbody")&&(o="table"),0===r.indexOf("<option")&&(o="select"),(n=c.createElement(o)).innerHTML=r,i=0;i<n.childNodes.length;i+=1)a.push(n.childNodes[i])}else for(s=t||"#"!==e[0]||e.match(/[ .<>:~]/)?(t||c).querySelectorAll(e.trim()):[c.getElementById(e.trim().split("#")[1])],i=0;i<s.length;i+=1)s[i]&&a.push(s[i])}else if(e.nodeType||e===U||e===c)a.push(e);else if(0<e.length&&e[0].nodeType)for(i=0;i<e.length;i+=1)a.push(e[i]);return new l(a)}function n(e){for(var t=[],a=0;a<e.length;
17569a+=1)-1===t.indexOf(e[a])&&t.push(e[a]);return t}E.fn=l.prototype,E.Class=l,E.Dom7=l;function e(e){var t=this;t.params=e=void 0===e?{}:e,t.eventsListeners={},t.params&&t.params.on&&Object.keys(t.params.on).forEach(function(e){t.on(e,t.params.on[e])})}var O={addClass:function(e){if(void 0!==e)for(var t=e.split(" "),a=0;a<t.length;a+=1)for(var i=0;i<this.length;i+=1)void 0!==this[i]&&void 0!==this[i].classList&&this[i].classList.add(t[a]);return this},removeClass:function(e){for(var t=e.split(" "),a=0;a<t.length;a+=1)for(var i=0;i<this.length;i+=1)void 0!==this[i]&&void 0!==this[i].classList&&this[i].classList.remove(t[a]);return this},hasClass:function(e){return!!this[0]&&this[0].classList.contains(e)},toggleClass:function(e){for(var t=e.split(" "),a=0;a<t.length;a+=1)for(var i=0;i<this.length;i+=1)void 0!==this[i]&&void 0!==this[i].classList&&this[i].classList.toggle(t[a]);return this},attr:function(e,t){var a=arguments;if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var i=0;i<this.length;i+=1)if(2===a.length)this[i].setAttribute(e,t);else for(var s in e)this[i][s]=e[s],this[i].setAttribute(s,e[s]);return this},removeAttr:function(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this},data:function(e,t){var a;if(void 0!==t){for(var i=0;i<this.length;i+=1)(a=this[i]).dom7ElementDataStorage||(a.dom7ElementDataStorage={}),a.dom7ElementDataStorage[e]=t;return this}if(a=this[0]){if(a.dom7ElementDataStorage&&e in a.dom7ElementDataStorage)return a.dom7ElementDataStorage[e];var s=a.getAttribute("data-"+e);return s?s:void 0}},transform:function(e){for(var t=0;t<this.length;t+=1){var a=this[t].style;a.webkitTransform=e,a.transform=e}return this},transition:function(e){"string"!=typeof e&&(e+="ms");for(var t=0;t<this.length;t+=1){var a=this[t].style;a.webkitTransitionDuration=e,a.transitionDuration=e}return this},on:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var a=e[0],n=e[1],r=e[2],i=e[3];function s(e){var t=e.target;if(t){var a=e.target.dom7EventData||[];if(a.indexOf(e)<0&&a.unshift(e),E(t).is(n))r.apply(t,a);else for(var i=E(t).parents(),s=0;s<i.length;s+=1)E(i[s]).is(n)&&r.apply(i[s],a)}}function o(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),r.apply(this,t)}"function"==typeof e[1]&&(a=e[0],r=e[1],i=e[2],n=void 0);for(var l,i=i||!1,d=a.split(" "),p=0;p<this.length;p+=1){var c=this[p];if(n)for(l=0;l<d.length;l+=1){var u=d[l];c.dom7LiveListeners||(c.dom7LiveListeners={}),c.dom7LiveListeners[u]||(c.dom7LiveListeners[u]=[]),c.dom7LiveListeners[u].push({listener:r,proxyListener:s}),c.addEventListener(u,s,i)}else for(l=0;l<d.length;l+=1){var h=d[l];c.dom7Listeners||(c.dom7Listeners={}),c.dom7Listeners[h]||(c.dom7Listeners[h]=[]),c.dom7Listeners[h].push({listener:r,proxyListener:o}),c.addEventListener(h,o,i)}}return this},off:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var a=e[0],i=e[1],s=e[2],n=e[3],r=("function"==typeof e[1]&&(a=e[0],s=e[1],n=e[2],i=void 0),n=n||!1,a.split(" ")),o=0;o<r.length;o+=1)for(var l=r[o],d=0;d<this.length;d+=1){var p=this[d],c=void 0;if(!i&&p.dom7Listeners?c=p.dom7Listeners[l]:i&&p.dom7LiveListeners&&(c=p.dom7LiveListeners[l]),c&&c.length)for(var u=c.length-1;0<=u;--u){var h=c[u];(s&&h.listener===s||s&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===s||!s)&&(p.removeEventListener(l,h.proxyListener,n),c.splice(u,1))}}return this},trigger:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var a=e[0].split(" "),i=e[1],s=0;s<a.length;s+=1)for(var n=a[s],r=0;r<this.length;r+=1){var o=this[r],l=void 0;try{l=new U.CustomEvent(n,{detail:i,bubbles:!0,cancelable:!0})}catch(e){(l=c.createEvent("Event")).initEvent(n,!0,!0),l.detail=i}o.dom7EventData=e.filter(function(e,t){return 0<t}),o.dispatchEvent(l),o.dom7EventData=[],delete o.dom7EventData}return this},transitionEnd:function(t){var a,i=["webkitTransitionEnd","transitionend"],s=this;function n(e){if(e.target===this)for(t.call(this,e),a=0;a<i.length;a+=1)s.off(i[a],n)}if(t)for(a=0;a<i.length;a+=1)s.on(i[a],n);return this},outerWidth:function(e){return 0<this.length?e?(e=this.styles(),this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+
17569parseFloat(e.getPropertyValue("margin-left"))):this[0].offsetWidth:null},outerHeight:function(e){return 0<this.length?e?(e=this.styles(),this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))):this[0].offsetHeight:null},offset:function(){var e,t,a,i,s;return 0<this.length?(e=(s=this[0]).getBoundingClientRect(),a=c.body,t=s.clientTop||a.clientTop||0,a=s.clientLeft||a.clientLeft||0,i=s===U?U.scrollY:s.scrollTop,s=s===U?U.scrollX:s.scrollLeft,{top:e.top+i-t,left:e.left+s-a}):null},css:function(e,t){var a;if(1===arguments.length){if("string"!=typeof e){for(a=0;a<this.length;a+=1)for(var i in e)this[a].style[i]=e[i];return this}if(this[0])return U.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e)for(a=0;a<this.length;a+=1)this[a].style[e]=t;return this},each:function(e){if(e)for(var t=0;t<this.length;t+=1)if(!1===e.call(this[t],t,this[t]))return this;return this},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:void 0;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this},text:function(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this},is:function(e){var t,a,i=this[0];if(i&&void 0!==e)if("string"==typeof e){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);for(t=E(e),a=0;a<t.length;a+=1)if(t[a]===i)return!0}else{if(e===c)return i===c;if(e===U)return i===U;if(e.nodeType||e instanceof l)for(t=e.nodeType?[e]:e,a=0;a<t.length;a+=1)if(t[a]===i)return!0}return!1},index:function(){var e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}},eq:function(e){if(void 0===e)return this;var t=this.length;return t-1<e?new l([]):e<0?(t=t+e)<0?new l([]):new l([this[t]]):new l([this[e]])},append:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var a=0;a<e.length;a+=1)for(var i=e[a],s=0;s<this.length;s+=1)if("string"==typeof i){var n=c.createElement("div");for(n.innerHTML=i;n.firstChild;)this[s].appendChild(n.firstChild)}else if(i instanceof l)for(var r=0;r<i.length;r+=1)this[s].appendChild(i[r]);else this[s].appendChild(i);return this},prepend:function(e){for(var t,a=0;a<this.length;a+=1)if("string"==typeof e){var i=c.createElement("div");for(i.innerHTML=e,t=i.childNodes.length-1;0<=t;--t)this[a].insertBefore(i.childNodes[t],this[a].childNodes[0])}else if(e instanceof l)for(t=0;t<e.length;t+=1)this[a].insertBefore(e[t],this[a].childNodes[0]);else this[a].insertBefore(e,this[a].childNodes[0]);return this},next:function(e){return 0<this.length?e?this[0].nextElementSibling&&E(this[0].nextElementSibling).is(e)?new l([this[0].nextElementSibling]):new l([]):this[0].nextElementSibling?new l([this[0].nextElementSibling]):new l([]):new l([])},nextAll:function(e){var t=[],a=this[0];if(!a)return new l([]);for(;a.nextElementSibling;){var i=a.nextElementSibling;(!e||E(i).is(e))&&t.push(i),a=i}return new l(t)},prev:function(e){var t;return 0<this.length?(t=this[0],e?t.previousElementSibling&&E(t.previousElementSibling).is(e)?new l([t.previousElementSibling]):new l([]):t.previousElementSibling?new l([t.previousElementSibling]):new l([])):new l([])},prevAll:function(e){var t=[],a=this[0];if(!a)return new l([]);for(;a.previousElementSibling;){var i=a.previousElementSibling;(!e||E(i).is(e))&&t.push(i),a=i}return new l(t)},parent:function(e){for(var t=[],a=0;a<this.length;a+=1)null===this[a].parentNode||e&&!E(this[a].parentNode).is(e)||t.push(this[a].parentNode);return E(n(t))},parents:function(e){for(var t=[],a=0;a<this.length;a+=1)for(var i=this[a].parentNode;i;)e&&!E(i).is(e)||t.push(i),i=i.parentNode;return E(n(t))},closest:function(e){var t=this;return void 0===e?new l([]):t.is(e)?t:t.parents(e).eq(0)},find:function(e){for(var t=[],a=0;a<this.length;a+=1)for(var i=this[a].querySelectorAll(e),s=0;s<i.length;s+=1)t.push(i[s]);return new l(t)},children:function(e){for(var t=[],a=0;a<this.length;a+=1)for(var i=this[a].childNodes,s=0;s<i.length;s+=1)e?1===i[s].nodeType&&E(i[s]).is(e)&&t.push(i[s]):1===i[s].nodeType&&t.push(i[s]);return new l(n(t))},filter:function(e){for(var t=[],a=0;a<this.length;
17569a+=1)e.call(this[a],a,this[a])&&t.push(this[a]);return new l(t)},remove:function(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this},add:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var a=0;a<e.length;a+=1)for(var i=E(e[a]),s=0;s<i.length;s+=1)this[this.length]=i[s],this.length+=1;return this},styles:function(){return this[0]?U.getComputedStyle(this[0],null):{}}},_=(Object.keys(O).forEach(function(e){E.fn[e]=E.fn[e]||O[e]}),{deleteProps:function(e){var t=e;Object.keys(t).forEach(function(e){try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}})},nextTick:function(e,t){return void 0===t&&(t=0),setTimeout(e,t)},now:function(){return Date.now()},getTranslate:function(e,t){void 0===t&&(t="x");var a,i,s,e=U.getComputedStyle(e,null);return U.WebKitCSSMatrix?(6<(i=e.transform||e.webkitTransform).split(",").length&&(i=i.split(", ").map(function(e){return e.replace(",",".")}).join(", ")),s=new U.WebKitCSSMatrix("none"===i?"":i)):a=(s=e.MozTransform||e.OTransform||e.MsTransform||e.msTransform||e.transform||e.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===t&&(i=U.WebKitCSSMatrix?s.m41:16===a.length?parseFloat(a[12]):parseFloat(a[4])),(i="y"===t?U.WebKitCSSMatrix?s.m42:16===a.length?parseFloat(a[13]):parseFloat(a[5]):i)||0},parseUrlQuery:function(e){var t,a,i,s,n={},e=e||U.location.href;if("string"==typeof e&&e.length)for(s=(a=(e=-1<e.indexOf("?")?e.replace(/\S*\?/,""):"").split("&").filter(function(e){return""!==e})).length,t=0;t<s;t+=1)i=a[t].replace(/#\S+/g,"").split("="),n[decodeURIComponent(i[0])]=void 0===i[1]?void 0:decodeURIComponent(i[1])||"";return n},isObject:function(e){return"object"==typeof e&&null!==e&&e.constructor&&e.constructor===Object},extend:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var a=Object(e[0]),i=1;i<e.length;i+=1){var s=e[i];if(null!=s)for(var n=Object.keys(Object(s)),r=0,o=n.length;r<o;r+=1){var l=n[r],d=Object.getOwnPropertyDescriptor(s,l);void 0!==d&&d.enumerable&&(_.isObject(a[l])&&_.isObject(s[l])?_.extend(a[l],s[l]):!_.isObject(a[l])&&_.isObject(s[l])?(a[l]={},_.extend(a[l],s[l])):a[l]=s[l])}}return a}}),y={touch:U.Modernizr&&!0===U.Modernizr.touch||!!(0<U.navigator.maxTouchPoints||"ontouchstart"in U||U.DocumentTouch&&c instanceof U.DocumentTouch),pointerEvents:!!U.PointerEvent&&"maxTouchPoints"in U.navigator&&0<U.navigator.maxTouchPoints,observer:"MutationObserver"in U||"WebkitMutationObserver"in U,passiveListener:function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});U.addEventListener("testPassiveListener",null,t)}catch(e){}return e}(),gestures:"ongesturestart"in U},t={components:{configurable:!0}};e.prototype.on=function(e,t,a){var i,s=this;return"function"==typeof t&&(i=a?"unshift":"push",e.split(" ").forEach(function(e){s.eventsListeners[e]||(s.eventsListeners[e]=[]),s.eventsListeners[e][i](t)})),s},e.prototype.once=function(a,i,e){var s=this;return"function"!=typeof i?s:(n.f7proxy=i,s.on(a,n,e));function n(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];s.off(a,n),n.f7proxy&&delete n.f7proxy,i.apply(s,e)}},e.prototype.off=function(e,i){var s=this;return s.eventsListeners&&e.split(" ").forEach(function(a){void 0===i?s.eventsListeners[a]=[]:s.eventsListeners[a]&&s.eventsListeners[a].length&&s.eventsListeners[a].forEach(function(e,t){(e===i||e.f7proxy&&e.f7proxy===i)&&s.eventsListeners[a].splice(t,1)})}),s},e.prototype.emit=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var a,i,s,n=this;return n.eventsListeners&&(s="string"==typeof e[0]||Array.isArray(e[0])?(a=e[0],i=e.slice(1,e.length),n):(a=e[0].events,i=e[0].data,e[0].context||n),(Array.isArray(a)?a:a.split(" ")).forEach(function(e){var t;n.eventsListeners&&n.eventsListeners[e]&&(t=[],n.eventsListeners[e].forEach(function(e){t.push(e)}),t.forEach(function(e){e.apply(s,i)}))})),n},e.prototype.useModulesParams=function(t){var a=this;a.modules&&Object.keys(a.modules).forEach(function(e){e=a.modules[e];e.params&&_.extend(t,e.params)})},e.prototype.useModules=function(t){void 0===t&&(t={});var i=this;
17569i.modules&&Object.keys(i.modules).forEach(function(e){var a=i.modules[e],e=t[e]||{};a.instance&&Object.keys(a.instance).forEach(function(e){var t=a.instance[e];i[e]="function"==typeof t?t.bind(i):t}),a.on&&i.on&&Object.keys(a.on).forEach(function(e){i.on(e,a.on[e])}),a.create&&a.create.bind(i)(e)})},t.components.set=function(e){this.use&&this.use(e)},e.installModule=function(t){for(var e=[],a=arguments.length-1;0<a--;)e[a]=arguments[a+1];var i=this,s=(i.prototype.modules||(i.prototype.modules={}),t.name||Object.keys(i.prototype.modules).length+"_"+_.now());return(i.prototype.modules[s]=t).proto&&Object.keys(t.proto).forEach(function(e){i.prototype[e]=t.proto[e]}),t.static&&Object.keys(t.static).forEach(function(e){i[e]=t.static[e]}),t.install&&t.install.apply(i,e),i},e.use=function(e){for(var t=[],a=arguments.length-1;0<a--;)t[a]=arguments[a+1];var i=this;return Array.isArray(e)?(e.forEach(function(e){return i.installModule(e)}),i):i.installModule.apply(i,[e].concat(t))},Object.defineProperties(e,t);t={updateSize:function(){var e=this,t=e.$el,a=void 0!==e.params.width?e.params.width:t[0].clientWidth,i=void 0!==e.params.height?e.params.height:t[0].clientHeight;0===a&&e.isHorizontal()||0===i&&e.isVertical()||(a=a-parseInt(t.css("padding-left"),10)-parseInt(t.css("padding-right"),10),i=i-parseInt(t.css("padding-top"),10)-parseInt(t.css("padding-bottom"),10),_.extend(e,{width:a,height:i,size:e.isHorizontal()?a:i}))},updateSlides:function(){var e=this,t=e.params,a=e.$wrapperEl,i=e.size,s=e.rtlTranslate,G=e.wrongRTL,H=((h=e.virtual&&t.virtual.enabled)?e.virtual:e).slides.length,n=a.children("."+e.params.slideClass),r=(h?e.virtual.slides:n).length,o=[],l=[],d=[];function p(e){return!t.cssMode||e!==n.length-1}var c=t.slidesOffsetBefore,u=("function"==typeof c&&(c=t.slidesOffsetBefore.call(e)),t.slidesOffsetAfter),h=("function"==typeof u&&(u=t.slidesOffsetAfter.call(e)),e.snapGrid.length),B=e.snapGrid.length,m=t.spaceBetween,v=-c,f=0,g=0;if(void 0!==i){"string"==typeof m&&0<=m.indexOf("%")&&(m=parseFloat(m.replace("%",""))/100*i),e.virtualSize=-m,s?n.css({marginLeft:"",marginTop:""}):n.css({marginRight:"",marginBottom:""}),1<t.slidesPerColumn&&(b=Math.floor(r/t.slidesPerColumn)===r/e.params.slidesPerColumn?r:Math.ceil(r/t.slidesPerColumn)*t.slidesPerColumn,"auto"!==t.slidesPerView&&"row"===t.slidesPerColumnFill&&(b=Math.max(b,t.slidesPerView*t.slidesPerColumn)));for(var b,N,V,w,X,y=t.slidesPerColumn,Y=b/y,F=Math.floor(r/t.slidesPerColumn),x=0;x<r;x+=1){z=0;var T,E,S,C,M,P,z,k,$,L,W,R,q,I=n.eq(x);1<t.slidesPerColumn&&(P=M=C=void 0,"row"===t.slidesPerColumnFill&&1<t.slidesPerGroup?(S=Math.floor(x/(t.slidesPerGroup*t.slidesPerColumn)),T=x-t.slidesPerColumn*t.slidesPerGroup*S,E=0===S?t.slidesPerGroup:Math.min(Math.ceil((r-S*y*t.slidesPerGroup)/y),t.slidesPerGroup),M=T-(P=Math.floor(T/E))*E+S*t.slidesPerGroup,I.css({"-webkit-box-ordinal-group":C=M+P*b/y,"-moz-box-ordinal-group":C,"-ms-flex-order":C,"-webkit-order":C,order:C})):"column"===t.slidesPerColumnFill?(P=x-(M=Math.floor(x/y))*y,(F<M||M===F&&P===y-1)&&y<=(P+=1)&&(P=0,M+=1)):M=x-(P=Math.floor(x/Y))*Y,I.css("margin-"+(e.isHorizontal()?"top":"left"),0!==P&&t.spaceBetween&&t.spaceBetween+"px")),"none"!==I.css("display")&&("auto"===t.slidesPerView?(T=U.getComputedStyle(I[0],null),E=I[0].style.transform,S=I[0].style.webkitTransform,E&&(I[0].style.transform="none"),S&&(I[0].style.webkitTransform="none"),z=t.roundLengths?e.isHorizontal()?I.outerWidth(!0):I.outerHeight(!0):e.isHorizontal()?(C=parseFloat(T.getPropertyValue("width")),M=parseFloat(T.getPropertyValue("padding-left")),P=parseFloat(T.getPropertyValue("padding-right")),$=parseFloat(T.getPropertyValue("margin-left")),L=parseFloat(T.getPropertyValue("margin-right")),(k=T.getPropertyValue("box-sizing"))&&"border-box"===k?C+$+L:C+M+P+$+L):(k=parseFloat(T.getPropertyValue("height")),$=parseFloat(T.getPropertyValue("padding-top")),L=parseFloat(T.getPropertyValue("padding-bottom")),W=parseFloat(T.getPropertyValue("margin-top")),R=parseFloat(T.getPropertyValue("margin-bottom")),(q=T.getPropertyValue("box-sizing"))&&"border-box"===q?k+W+R:k+$+L+W+R),E&&(I[0].style.transform=E),S&&(I[0].style.webkitTransform=S),t.roundLengths&&(z=Math.floor(z))):(z=(i-(t.slidesPerView-1)*m)/t.slidesPerView,t.roundLengths&&(z=Math.floor(z)),n[x]&&(e.isHorizontal()?n[x].style.width=z+"px":n[x].style.height=z+"px")),n[x]&&(n[x].swiperSlideSize=z),d.push(z),t.centeredSlides?(v=v+z/2+f/2+m,0===f&&0!==x&&(v=v-i/2-m),0===x&&(v=v-i/2-m),Math.abs(v)<.001&&(v=0),t.roundLengths&&(v=Math.floor(v)),g%t.slidesPerGroup==0&&o.push(v),l.push(v)):(t.roundLengths&&(v=Math.floor(v)),(g-Math.min(e.params.slidesPerGroupSkip,g))%e.params.slidesPerGroup==0&&o.push(v),l.push(v),v=v+z+m),e.virtualSize+=z+m,f=z,g+=1)}if(e.virtualSize=Math.max(e.virtualSize,i)+u,s&&G&&("slide"===t.effect||"coverflow"===t.effect)&&a.css({width:e.virtualSize+t.spaceBetween+"px"}),t.setWrapperSize&&(e.isHorizontal()?a.css({width:e.virtualSize+t.spaceBetween+"px"}):a.css({height:e.virtualSize+t.spaceBetween+"px"})),1<t.slidesPerColumn&&(e.virtualSize=(z+t.spaceBetween)*b,e.virtualSize=Math.ceil(e.virtualSize/t.slidesPerColumn)-t.spaceBetween,e.isHorizontal()?a.css({width:e.virtualSize+t.spaceBetween+"px"}):a.css({height:e.virtualSize+t.spaceBetween+"px"}),t.centeredSlides)){for(var D=[],O=0;O<o.length;O+=1){var j=o[O];t.roundLengths&&(j=Math.floor(j)),o[O]<e.virtualSize+o[0]&&D.push(j)}o=D}if(!t.centeredSlides){D=[];for(var A=0;A<o.length;A+=1){var K=o[A];t.roundLengths&&(K=Math.floor(K)),o[A]<=e.virtualSize-i&&D.push(K)}o=D,1<Math.floor(e.virtualSize-i)-Math.floor(o[o.length-1])&&o.push(e.virtualSize-i)}0===o.length&&(o=[0]),0!==t.spaceBetween&&(e.isHorizontal()?s?n.filter(p).css({marginLeft:m+"px"}):n.filter(p).css({marginRight:m+"px"}):n.filter(p).css({marginBottom:m+"px"}
17569)),t.centeredSlides&&t.centeredSlidesBounds&&(N=0,d.forEach(function(e){N+=e+(t.spaceBetween||0)}),V=(N-=t.spaceBetween)-i,o=o.map(function(e){return e<0?-c:V<e?V+u:e})),t.centerInsufficientSlides&&(w=0,d.forEach(function(e){w+=e+(t.spaceBetween||0)}),(w-=t.spaceBetween)<i&&(X=(i-w)/2,o.forEach(function(e,t){o[t]=e-X}),l.forEach(function(e,t){l[t]=e+X}))),_.extend(e,{slides:n,snapGrid:o,slidesGrid:l,slidesSizesGrid:d}),r!==H&&e.emit("slidesLengthChange"),o.length!==h&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),l.length!==B&&e.emit("slidesGridLengthChange"),(t.watchSlidesProgress||t.watchSlidesVisibility)&&e.updateSlidesOffset()}},updateAutoHeight:function(e){var t,a,i=this,s=[],n=0;if("number"==typeof e?i.setTransition(e):!0===e&&i.setTransition(i.params.speed),"auto"!==i.params.slidesPerView&&1<i.params.slidesPerView)if(i.params.centeredSlides)s.push.apply(s,i.visibleSlides);else for(t=0;t<Math.ceil(i.params.slidesPerView);t+=1){var r=i.activeIndex+t;if(r>i.slides.length)break;s.push(i.slides.eq(r)[0])}else s.push(i.slides.eq(i.activeIndex)[0]);for(t=0;t<s.length;t+=1)void 0!==s[t]&&(n=n<(a=s[t].offsetHeight)?a:n);n&&i.$wrapperEl.css("height",n+"px")},updateSlidesOffset:function(){for(var e=this.slides,t=0;t<e.length;t+=1)e[t].swiperSlideOffset=this.isHorizontal()?e[t].offsetLeft:e[t].offsetTop},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);var t=this,a=t.params,i=t.slides,s=t.rtlTranslate;if(0!==i.length){void 0===i[0].swiperSlideOffset&&t.updateSlidesOffset();var n=s?e:-e;i.removeClass(a.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(var r=0;r<i.length;r+=1){var o,l,d=i[r],p=(n+(a.centeredSlides?t.minTranslate():0)-d.swiperSlideOffset)/(d.swiperSlideSize+a.spaceBetween);(a.watchSlidesVisibility||a.centeredSlides&&a.autoHeight)&&(l=(o=-(n-d.swiperSlideOffset))+t.slidesSizesGrid[r],(0<=o&&o<t.size-1||1<l&&l<=t.size||o<=0&&l>=t.size)&&(t.visibleSlides.push(d),t.visibleSlidesIndexes.push(r),i.eq(r).addClass(a.slideVisibleClass))),d.progress=s?-p:p}t.visibleSlides=E(t.visibleSlides)}},updateProgress:function(e){var t=this,a=(void 0===e&&(a=t.rtlTranslate?-1:1,e=t&&t.translate&&t.translate*a||0),t.params),i=t.maxTranslate()-t.minTranslate(),s=t.progress,n=t.isBeginning,r=n,o=l=t.isEnd,l=0==i?n=!(s=0):(n=(s=(e-t.minTranslate())/i)<=0,1<=s);_.extend(t,{progress:s,isBeginning:n,isEnd:l}),(a.watchSlidesProgress||a.watchSlidesVisibility||a.centeredSlides&&a.autoHeight)&&t.updateSlidesProgress(e),n&&!r&&t.emit("reachBeginning toEdge"),l&&!o&&t.emit("reachEnd toEdge"),(r&&!n||o&&!l)&&t.emit("fromEdge"),t.emit("progress",s)},updateSlidesClasses:function(){var e=(r=this).slides,t=r.params,a=r.$wrapperEl,i=r.activeIndex,s=r.realIndex,n=r.virtual&&t.virtual.enabled,r=(e.removeClass(t.slideActiveClass+" "+t.slideNextClass+" "+t.slidePrevClass+" "+t.slideDuplicateActiveClass+" "+t.slideDuplicateNextClass+" "+t.slideDuplicatePrevClass),(n=n?r.$wrapperEl.find("."+t.slideClass+'[data-swiper-slide-index="'+i+'"]'):e.eq(i)).addClass(t.slideActiveClass),t.loop&&(n.hasClass(t.slideDuplicateClass)?a.children("."+t.slideClass+":not(."+t.slideDuplicateClass+')[data-swiper-slide-index="'+s+'"]'):a.children("."+t.slideClass+"."+t.slideDuplicateClass+'[data-swiper-slide-index="'+s+'"]')).addClass(t.slideDuplicateActiveClass),n.nextAll("."+t.slideClass).eq(0).addClass(t.slideNextClass)),i=(t.loop&&0===r.length&&(r=e.eq(0)).addClass(t.slideNextClass),n.prevAll("."+t.slideClass).eq(0).addClass(t.slidePrevClass));t.loop&&0===i.length&&(i=e.eq(-1)).addClass(t.slidePrevClass),t.loop&&((r.hasClass(t.slideDuplicateClass)?a.children("."+t.slideClass+":not(."+t.slideDuplicateClass+')[data-swiper-slide-index="'+r.attr("data-swiper-slide-index")+'"]'):a.children("."+t.slideClass+"."+t.slideDuplicateClass+'[data-swiper-slide-index="'+r.attr("data-swiper-slide-index")+'"]')).addClass(t.slideDuplicateNextClass),(i.hasClass(t.slideDuplicateClass)?a.children("."+t.slideClass+":not(."+t.slideDuplicateClass+')[data-swiper-slide-index="'+i.attr("data-swiper-slide-index")+'"]'):a.children("."+t.slideClass+"."+t.slideDuplicateClass+'[data-swiper-slide-index="'+i.attr("data-swiper-slide-index")+'"]')).addClass(t.slideDuplicatePrevClass))},updateActiveIndex:function(e){var t=this,a=t.rtlTranslate?t.translate:-t.translate,i=t.slidesGrid,s=t.snapGrid,n=t.params,r=t.activeIndex,o=t.realIndex,l=t.snap
17569Index,d=e;if(void 0===d){for(var p=0;p<i.length;p+=1)void 0!==i[p+1]?a>=i[p]&&a<i[p+1]-(i[p+1]-i[p])/2?d=p:a>=i[p]&&a<i[p+1]&&(d=p+1):a>=i[p]&&(d=p);n.normalizeSlideIndex&&(d<0||void 0===d)&&(d=0)}(e=0<=s.indexOf(a)?s.indexOf(a):(e=Math.min(n.slidesPerGroupSkip,d))+Math.floor((d-e)/n.slidesPerGroup))>=s.length&&(e=s.length-1),d===r?e!==l&&(t.snapIndex=e,t.emit("snapIndexChange")):(n=parseInt(t.slides.eq(d).attr("data-swiper-slide-index")||d,10),_.extend(t,{snapIndex:e,realIndex:n,previousIndex:r,activeIndex:d}),t.emit("activeIndexChange"),t.emit("snapIndexChange"),o!==n&&t.emit("realIndexChange"),(t.initialized||t.runCallbacksOnInit)&&t.emit("slideChange"))},updateClickedSlide:function(e){var t=this,a=t.params,i=E(e.target).closest("."+a.slideClass)[0],s=!1;if(i)for(var n=0;n<t.slides.length;n+=1)t.slides[n]===i&&(s=!0);i&&s?(t.clickedSlide=i,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(E(i).attr("data-swiper-slide-index"),10):t.clickedIndex=E(i).index(),a.slideToClickedSlide&&void 0!==t.clickedIndex&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()):(t.clickedSlide=void 0,t.clickedIndex=void 0)}};var A={getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");var t=this.params,a=this.rtlTranslate,i=this.translate,s=this.$wrapperEl;return t.virtualTranslate?a?-i:i:t.cssMode?i:(t=_.getTranslate(s[0],e),(t=a?-t:t)||0)},setTranslate:function(e,t){var a=this,i=a.rtlTranslate,s=a.params,n=a.$wrapperEl,r=a.wrapperEl,o=a.progress,l=0,d=0;a.isHorizontal()?l=i?-e:e:d=e,s.roundLengths&&(l=Math.floor(l),d=Math.floor(d)),s.cssMode?r[a.isHorizontal()?"scrollLeft":"scrollTop"]=a.isHorizontal()?-l:-d:s.virtualTranslate||n.transform("translate3d("+l+"px, "+d+"px, 0px)"),a.previousTranslate=a.translate,a.translate=a.isHorizontal()?l:d,(r=0==(i=a.maxTranslate()-a.minTranslate())?0:(e-a.minTranslate())/i)!==o&&a.updateProgress(e),a.emit("setTranslate",a.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,a,i,s){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===a&&(a=!0),void 0===i&&(i=!0);var n=this,r=n.params,o=n.wrapperEl;if(n.animating&&r.preventInteractionOnTransition)return!1;var l=n.minTranslate(),d=n.maxTranslate(),l=i&&l<e?l:i&&e<d?d:e;return n.updateProgress(l),r.cssMode?(i=n.isHorizontal(),0!==t&&o.scrollTo?o.scrollTo(((d={})[i?"left":"top"]=-l,d.behavior="smooth",d)):o[i?"scrollLeft":"scrollTop"]=-l):0===t?(n.setTransition(0),n.setTranslate(l),a&&(n.emit("beforeTransitionStart",t,s),n.emit("transitionEnd"))):(n.setTransition(t),n.setTranslate(l),a&&(n.emit("beforeTransitionStart",t,s),n.emit("transitionStart")),n.animating||(n.animating=!0,n.onTranslateToWrapperTransitionEnd||(n.onTranslateToWrapperTransitionEnd=function(e){n&&!n.destroyed&&e.target===this&&(n.$wrapperEl[0].removeEventListener("transitionend",n.onTranslateToWrapperTransitionEnd),n.$wrapperEl[0].removeEventListener("webkitTransitionEnd",n.onTranslateToWrapperTransitionEnd),n.onTranslateToWrapperTransitionEnd=null,delete n.onTranslateToWrapperTransitionEnd,a&&n.emit("transitionEnd"))}),n.$wrapperEl[0].addEventListener("transitionend",n.onTranslateToWrapperTransitionEnd),n.$wrapperEl[0].addEventListener("webkitTransitionEnd",n.onTranslateToWrapperTransitionEnd))),!0}};var G={setTransition:function(e,t){this.params.cssMode||this.$wrapperEl.transition(e),this.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);var a=this,i=a.activeIndex,s=a.params,n=a.previousIndex;s.cssMode||(s.autoHeight&&a.updateAutoHeight(),s=(s=t)||(n<i?"next":i<n?"prev":"reset"),a.emit("transitionStart"),e&&i!==n&&("reset"===s?a.emit("slideResetTransitionStart"):(a.emit("slideChangeTransitionStart"),"next"===s?a.emit("slideNextTransitionStart"):a.emit("slidePrevTransitionStart"))))},transitionEnd:function(e,t){void 0===e&&(e=!0);var a=this,i=a.activeIndex,s=a.previousIndex,n=a.params;a.animating=!1,n.cssMode||(a.setTransition(0),n=(n=t)||(s<i?"next":i<s?"prev":"reset"),a.emit("transitionEnd"),e&&i!==s&&("reset"===n?a.emit("slideResetTransitionEnd"):(a.emit("slideChangeTransitionEnd"),"next"===n?a.emit
17569("slideNextTransitionEnd"):a.emit("slidePrevTransitionEnd"))))}};var H={slideTo:function(e,t,a,i){void 0===t&&(t=this.params.speed),void 0===a&&(a=!0);var s=this,n=e=void 0===e?0:e,e=(n<0&&(n=0),s.params),r=s.snapGrid,o=s.slidesGrid,l=s.previousIndex,d=s.activeIndex,p=s.rtlTranslate,c=s.wrapperEl;if(s.animating&&e.preventInteractionOnTransition)return!1;var u,h=Math.min(s.params.slidesPerGroupSkip,n),m=((h=h+Math.floor((n-h)/s.params.slidesPerGroup))>=r.length&&(h=r.length-1),(d||e.initialSlide||0)===(l||0)&&a&&s.emit("beforeSlideChangeStart"),-r[h]);if(s.updateProgress(m),e.normalizeSlideIndex)for(var v=0;v<o.length;v+=1)-Math.floor(100*m)>=Math.floor(100*o[v])&&(n=v);if(s.initialized&&n!==d){if(!s.allowSlideNext&&m<s.translate&&m<s.minTranslate())return!1;if(!s.allowSlidePrev&&m>s.translate&&m>s.maxTranslate()&&(d||0)!==n)return!1}return u=d<n?"next":n<d?"prev":"reset",p&&-m===s.translate||!p&&m===s.translate?(s.updateActiveIndex(n),e.autoHeight&&s.updateAutoHeight(),s.updateSlidesClasses(),"slide"!==e.effect&&s.setTranslate(m),"reset"!==u&&(s.transitionStart(a,u),s.transitionEnd(a,u)),!1):(e.cssMode?(l=s.isHorizontal(),0!==t&&c.scrollTo?c.scrollTo(((r={})[l?"left":"top"]=-m,r.behavior="smooth",r)):c[l?"scrollLeft":"scrollTop"]=-m):0===t?(s.setTransition(0),s.setTranslate(m),s.updateActiveIndex(n),s.updateSlidesClasses(),s.emit("beforeTransitionStart",t,i),s.transitionStart(a,u),s.transitionEnd(a,u)):(s.setTransition(t),s.setTranslate(m),s.updateActiveIndex(n),s.updateSlidesClasses(),s.emit("beforeTransitionStart",t,i),s.transitionStart(a,u),s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(e){s&&!s.destroyed&&e.target===this&&(s.$wrapperEl[0].removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.$wrapperEl[0].removeEventListener("webkitTransitionEnd",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(a,u))}),s.$wrapperEl[0].addEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.$wrapperEl[0].addEventListener("webkitTransitionEnd",s.onSlideToWrapperTransitionEnd))),!0)},slideToLoop:function(e,t,a,i){return void 0===t&&(t=this.params.speed),e=void 0===e?0:e,this.params.loop&&(e+=this.loopedSlides),this.slideTo(e,t,a=void 0===a?!0:a,i)},slideNext:function(e,t,a){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var i=this,s=i.params,n=i.animating,r=i.activeIndex<s.slidesPerGroupSkip?1:s.slidesPerGroup;if(s.loop){if(n)return!1;i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft}return i.slideTo(i.activeIndex+r,e,t,a)},slidePrev:function(e,t,a){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var i=this,s=i.params,n=i.animating,r=i.snapGrid,o=i.slidesGrid,l=i.rtlTranslate;if(s.loop){if(n)return!1;i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft}function d(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}var p,c=d(l?i.translate:-i.translate),n=r.map(d),u=(o.map(d),r[n.indexOf(c)],r[n.indexOf(c)-1]);return void 0===u&&s.cssMode&&r.forEach(function(e){!u&&e<=c&&(u=e)}),void 0!==u&&(p=o.indexOf(u))<0&&(p=i.activeIndex-1),i.slideTo(p,e,t,a)},slideReset:function(e,t,a){return void 0===e&&(e=this.params.speed),this.slideTo(this.activeIndex,e,t=void 0===t?!0:t,a)},slideToClosest:function(e,t,a,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),void 0===i&&(i=.5);var s,n=this,r=n.activeIndex,o=(o=Math.min(n.params.slidesPerGroupSkip,r))+Math.floor((r-o)/n.params.slidesPerGroup),l=n.rtlTranslate?n.translate:-n.translate;return l>=n.snapGrid[o]?(s=n.snapGrid[o],(n.snapGrid[o+1]-s)*i<l-s&&(r+=n.params.slidesPerGroup)):l-(s=n.snapGrid[o-1]
17569)<=(n.snapGrid[o]-s)*i&&(r-=n.params.slidesPerGroup),r=Math.max(r,0),r=Math.min(r,n.slidesGrid.length-1),n.slideTo(r,e,t,a)},slideToClickedSlide:function(){var e,t=this,a=t.params,i=t.$wrapperEl,s="auto"===a.slidesPerView?t.slidesPerViewDynamic():a.slidesPerView,n=t.clickedIndex;a.loop?t.animating||(e=parseInt(E(t.clickedSlide).attr("data-swiper-slide-index"),10),a.centeredSlides?n<t.loopedSlides-s/2||n>t.slides.length-t.loopedSlides+s/2?(t.loopFix(),n=i.children("."+a.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+a.slideDuplicateClass+")").eq(0).index(),_.nextTick(function(){t.slideTo(n)})):t.slideTo(n):n>t.slides.length-s?(t.loopFix(),n=i.children("."+a.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+a.slideDuplicateClass+")").eq(0).index(),_.nextTick(function(){t.slideTo(n)})):t.slideTo(n)):t.slideTo(n)}};var B={loopCreate:function(){var i=this,e=i.params,t=i.$wrapperEl,s=(t.children("."+e.slideClass+"."+e.slideDuplicateClass).remove(),t.children("."+e.slideClass));if(e.loopFillGroupWithBlank){var a=e.slidesPerGroup-s.length%e.slidesPerGroup;if(a!==e.slidesPerGroup){for(var n=0;n<a;n+=1){var r=E(c.createElement("div")).addClass(e.slideClass+" "+e.slideBlankClass);t.append(r)}s=t.children("."+e.slideClass)}}"auto"!==e.slidesPerView||e.loopedSlides||(e.loopedSlides=s.length),i.loopedSlides=Math.ceil(parseFloat(e.loopedSlides||e.slidesPerView,10)),i.loopedSlides+=e.loopAdditionalSlides,i.loopedSlides>s.length&&(i.loopedSlides=s.length);var o=[],l=[];s.each(function(e,t){var a=E(t);e<i.loopedSlides&&l.push(t),e<s.length&&e>=s.length-i.loopedSlides&&o.push(t),a.attr("data-swiper-slide-index",e)});for(var d=0;d<l.length;d+=1)t.append(E(l[d].cloneNode(!0)).addClass(e.slideDuplicateClass));for(var p=o.length-1;0<=p;--p)t.prepend(E(o[p].cloneNode(!0)).addClass(e.slideDuplicateClass))},loopFix:function(){var e=this,t=(e.emit("beforeLoopFix"),e.activeIndex),a=e.slides,i=e.loopedSlides,s=e.allowSlidePrev,n=e.allowSlideNext,r=e.snapGrid,o=e.rtlTranslate;e.allowSlidePrev=!0,e.allowSlideNext=!0;var l,r=-r[t]-e.getTranslate();t<i?(l=a.length-3*i+t,e.slideTo(l+=i,0,!1,!0)&&0!=r&&e.setTranslate((o?-e.translate:e.translate)-r)):t>=a.length-i&&(l=-a.length+t+i,e.slideTo(l+=i,0,!1,!0)&&0!=r&&e.setTranslate((o?-e.translate:e.translate)-r)),e.allowSlidePrev=s,e.allowSlideNext=n,e.emit("loopFix")},loopDestroy:function(){var e=this.$wrapperEl,t=this.params,a=this.slides;e.children("."+t.slideClass+"."+t.slideDuplicateClass+",."+t.slideClass+"."+t.slideBlankClass).remove(),a.removeAttr("data-swiper-slide-index")}};var N={setGrabCursor:function(e){var t=this;y.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode||((t=t.el).style.cursor="move",t.style.cursor=e?"-webkit-grabbing":"-webkit-grab",t.style.cursor=e?"-moz-grabbin":"-moz-grab",t.style.cursor=e?"grabbing":"grab")},unsetGrabCursor:function(){y.touch||this.params.watchOverflow&&this.isLocked||this.params.cssMode||(this.el.style.cursor="")}};var a,i,s,r,o,V={appendSlide:function(e){var t=this,a=t.$wrapperEl,i=t.params;if(i.loop&&t.loopDestroy(),"object"==typeof e&&"length"in e)for(var s=0;s<e.length;s+=1)e[s]&&a.append(e[s]);else a.append(e);i.loop&&t.loopCreate(),i.observer&&y.observer||t.update()},prependSlide:function(e){var t=this,a=t.params,i=t.$wrapperEl,s=t.activeIndex,n=(a.loop&&t.loopDestroy(),s+1);if("object"==typeof e&&"length"in e){for(var r=0;r<e.length;r+=1)e[r]&&i.prepend(e[r]);n=s+e.length}else i.prepend(e);a.loop&&t.loopCreate(),a.observer&&y.observer||t.update(),t.slideTo(n,0,!1)},addSlide:function(e,t){var a=this,i=a.$wrapperEl,s=a.params,n=a.activeIndex,r=(s.loop&&(n-=a.loopedSlides,a.loopDestroy(),a.slides=i.children("."+s.slideClass)),a.slides.length);if(e<=0)a.prependSlide(t);else if(r<=e)a.appendSlide(t);else{for(var o=e<n?n+1:n,l=[],d=r-1;e<=d;--d){var p=a.slides.eq(d);p.remove(),l.unshift(p)}if("object"==typeof t&&"length"in t){for(var c=0;c<t.length;c+=1)t[c]&&i.append(t[c]);o=e<n?n+t.length:n}else i.append(t);for(var u=0;u<l.length;u+=1)i.append(l[u]);s.loop&&a.loopCreate(),s.observer&&y.observer||a.update(),s.loop?a.slideTo(o+a.loopedSlides,0,!1):a.slideTo(o,0,!1)}},removeSlide:function(e){var t,a=this,i=a.params,s=a.$wrapperEl,n=a.activeIndex,r=(i.loop&&(n-=a.loopedSlides,a.loopDestroy(),a.slides=s.children("."+i.slideClass)),n);if("object"==typeof e&&"length"in e){for(var o=0;o<e.length;o+=1)t=e[o],a.slides[t]&&a.slides.eq(t).remove(),t<r&&--r;r=Math.max(r,0)}else a.slides[t=e]&&a.slides.eq(t).remove(),t<r&&--r,r=Math.max(r,0);i.loop&&a.loopCreate(),i.observer&&y.observer||a.update(),i.loop?a.slideTo(r+a.loopedSlides,0,!1):a.slideTo(r,0,!1)},removeAllSlides:function(){for(var e=[],t=0;t<this.slides.length;t+=1)e.push(t);this.removeSlide(e)}},d=(a=U.navigator.platform,i=U.navigator.userAgent,s={ios:!1,android:!1,androidChrome:!1,desktop:!1,iphone:!1,ipod:!1,ipad:!1,edge:!1,ie:!1,firefox:!1,macos:!1,windows:!1,cordova:!(!U.cordova&&!U.phonegap),phonegap:!(!U.cordova&&!U.phonegap),electron:!1},v=U.screen.width,f=U.screen.height,b=i.match(/(Android);?[\s\/]+([\d.]+)?/),T=i.match(/(iPad).*OS\s([\d_]+)/),D=i.match(/(iPod)(.*OS\s([\d_]+))?/),x=!T&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),u=0<=i.indexOf("MSIE ")||0<=i.indexOf("Trident/"),R=0<=i.indexOf("Edge/"),q=0<=i.indexOf("Gecko/")&&0<=i.indexOf("Firefox/"),r="Win32"===a,o=0<=i.toLowerCase().indexOf("electron"),a="MacIntel"===a,!T&&a&&y.touch&&(1024===v&&1366===f||834===v&&1194===f||834===v&&1112===f||768===v&&1024===f)&&(T=i.match(/(Version)\/([\d.]+)/),a=!1),s.ie=u,s.edge=R,s.firefox=q,b&&!r&&(s.os="android",s.osVersion=b[2],s.android=!0,s.androidChrome=0<=i.toLowerCase().indexOf("chrome")),(T||x||D)&&(s.os="ios",s.ios=!0),x&&!D&&(s.osVersion=x[2].replace(/_/g,"."),s.iphone=!0),T&&(s.osVersion=T[2].replace(/_/g,"."),s.ipad=!0),D&&(s.osVersion=D[3]?D[3].replace(/_/g,"."):null,s.ipod=!0),s.ios&&s.osVersion&&0<=i.indexOf("Version/")&&"10"===s.osVersion.split(".")[0]&&(s.osVersion=i.toLowerCase().split("version/")[1].split(" ")[0]),s.webView=!(!(x||T||D)||!i.match(/.*AppleWeb
17569Kit(?!.*Safari)/i)&&!U.navigator.standalone)||U.matchMedia&&U.matchMedia("(display-mode: standalone)").matches,s.webview=s.webView,s.standalone=s.webView,s.desktop=!(s.ios||s.android)||o,s.desktop&&(s.electron=o,s.macos=a,s.windows=r,s.macos&&(s.os="macos"),s.windows&&(s.os="windows")),s.pixelRatio=U.devicePixelRatio||1,s);function p(){var e,t,a=this,i=a.params,s=a.el;s&&0===s.offsetWidth||(i.breakpoints&&a.setBreakpoint(),s=a.allowSlideNext,e=a.allowSlidePrev,t=a.snapGrid,a.allowSlideNext=!0,a.allowSlidePrev=!0,a.updateSize(),a.updateSlides(),a.updateSlidesClasses(),("auto"===i.slidesPerView||1<i.slidesPerView)&&a.isEnd&&!a.params.centeredSlides?a.slideTo(a.slides.length-1,0,!1,!0):a.slideTo(a.activeIndex,0,!1,!0),a.autoplay&&a.autoplay.running&&a.autoplay.paused&&a.autoplay.run(),a.allowSlidePrev=e,a.allowSlideNext=s,a.params.watchOverflow&&t!==a.snapGrid&&a.checkOverflow())}var X=!1;function Y(){}var u,F={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,preventInteractionOnTransition:!1,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,slidesPerGroupSkip:0,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0},h={update:t,translate:A,transition:G,slide:H,loop:B,grabCursor:N,manipulation:V,events:{attachEvents:function(){var e,t=this,a=t.params,i=t.touchEvents,s=t.el,n=t.wrapperEl,r=(t.onTouchStart=function(e){var t,a,i,s,n,r=this,o=r.touchEventsData,l=r.params,d=r.touches;r.animating&&l.preventInteractionOnTransition||(t=E((e=(e=e).originalEvent?e.originalEvent:e).target),"wrapper"===l.touchEventsTarget&&!t.closest(r.wrapperEl).length||(o.isTouchEvent="touchstart"===e.type,!o.isTouchEvent&&"which"in e&&3===e.which||!o.isTouchEvent&&"button"in e&&0<e.button||o.isTouched&&o.isMoved||(l.noSwiping&&t.closest(l.noSwipingSelector||"."+l.noSwipingClass)[0]?r.allowClick=!0:l.swipeHandler&&!t.closest(l.swipeHandler)[0]||(d.currentX=("touchstart"===e.type?e.targetTouches[0]:e).pageX,d.currentY=("touchstart"===e.type?e.targetTouches[0]:e).pageY,a=d.currentX,i=d.currentY,s=l.edgeSwipeDetection||l.iOSEdgeSwipeDetection,n=l.edgeSwipeThreshold||l.iOSEdgeSwipeThreshold,s&&(a<=n||a>=U.screen.width-n)||(_.extend(o,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),d.startX=a,d.startY=i,o.touchStartTime=_.now(),r.allowClick=!0,r.updateSize(),r.swipeDirection=void 0,0<l.threshold&&(o.allowThresholdMove=!1),"touchstart"!==e.type&&(s=!0,t.is(o.formElements)&&(s=!1),c.activeElement&&E(c.activeElement).is(o.formElements)&&c.activeElement!==t[0]&&c.activeElement.blur(),n=s&&r.allowTouchMove&&l.touchStartPreventDefault,(l.touchStartForcePreventDefault||n)&&e.preventDefault()),r.emit("touchStart",e))))))}.bind(t),t.onTouchMove=function(e){var t=this,a=t.touchEventsData,i=t.params,s=t.touches,n=t.rtlTranslate;if(e.originalEvent&&(e=e.originalEvent),a.isTouched){if(!a.isTouchEvent||"mousemove"!==e.type){var r="touchmove"===e.type&&e.targetTouches&&(e.targetTouches[0]||e.changedTouches[0]),o=("touchmove"===e.type?r:e).pageX,r=("touchmove"===e.type?r:e).pageY;if(e.preventedByNestedSwiper)s.startX=o,s.startY=r;else if(t.allowTouchMove){if(a.isTouchEvent&&i.touchReleaseOnEdges&&!i.loop)if(t.isVertical()){if(r<s.startY&&t.translate<=t.maxTranslate()||r>s.startY&&t.translate>=t.minTranslate())return a.isTouched=!1,void(a.isMoved=!1)}else if(o<s.startX&&t.translate<=t.maxTranslate()||o>s.startX&&t.translate>=t.minTranslate())return;if(a.isTouchEvent&&c.activeElement&&e.target===c.activeElement&&E(e.target).is(a.formElements))a.isMoved=!0,t.allowClick=!1;else if(a.allowTouchCallbacks&&t.emit("touchMove",e),!(e.targetTouches&&1<e.targetTouches.length)){s.currentX=o,s.currentY=r;var l=s.currentX-s.startX,d=s.currentY-s.startY;if(!(t.params.threshold&&Math.sqrt(Math.pow(l,2)+Math.pow(d,2))<t.params.threshold))if(void 0===a.isScrolling&&(t.isHorizontal()&&s.currentY===s.startY||t.isVertical()&&s.currentX===s.startX?a.isScrolling=!1:25<=l*l+d*d&&
17569(p=180*Math.atan2(Math.abs(d),Math.abs(l))/Math.PI,a.isScrolling=t.isHorizontal()?p>i.touchAngle:90-p>i.touchAngle)),a.isScrolling&&t.emit("touchMoveOpposite",e),void 0!==a.startMoving||s.currentX===s.startX&&s.currentY===s.startY||(a.startMoving=!0),a.isScrolling)a.isTouched=!1;else if(a.startMoving){t.allowClick=!1,i.cssMode||e.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&e.stopPropagation(),a.isMoved||(i.loop&&t.loopFix(),a.startTranslate=t.getTranslate(),t.setTransition(0),t.animating&&t.$wrapperEl.trigger("webkitTransitionEnd transitionend"),a.allowMomentumBounce=!1,!i.grabCursor||!0!==t.allowSlideNext&&!0!==t.allowSlidePrev||t.setGrabCursor(!0),t.emit("sliderFirstMove",e)),t.emit("sliderMove",e),a.isMoved=!0;var p=t.isHorizontal()?l:d,l=(s.diff=p,p*=i.touchRatio,t.swipeDirection=0<(p=n?-p:p)?"prev":"next",a.currentTranslate=p+a.startTranslate,!0),d=i.resistanceRatio;if(i.touchReleaseOnEdges&&(d=0),0<p&&a.currentTranslate>t.minTranslate()?(l=!1,i.resistance&&(a.currentTranslate=t.minTranslate()-1+Math.pow(-t.minTranslate()+a.startTranslate+p,d))):p<0&&a.currentTranslate<t.maxTranslate()&&(l=!1,i.resistance&&(a.currentTranslate=t.maxTranslate()+1-Math.pow(t.maxTranslate()-a.startTranslate-p,d))),l&&(e.preventedByNestedSwiper=!0),!t.allowSlideNext&&"next"===t.swipeDirection&&a.currentTranslate<a.startTranslate&&(a.currentTranslate=a.startTranslate),!t.allowSlidePrev&&"prev"===t.swipeDirection&&a.currentTranslate>a.startTranslate&&(a.currentTranslate=a.startTranslate),0<i.threshold){if(!(Math.abs(p)>i.threshold||a.allowThresholdMove))return void(a.currentTranslate=a.startTranslate);
17569if(!a.allowThresholdMove)return a.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,a.currentTranslate=a.startTranslate,void(s.diff=t.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY)}i.followFinger&&!i.cssMode&&((i.freeMode||i.watchSlidesProgress||i.watchSlidesVisibility)&&(t.updateActiveIndex(),t.updateSlidesClasses()),i.freeMode&&(0===a.velocities.length&&a.velocities.push({position:s[t.isHorizontal()?"startX":"startY"],time:a.touchStartTime}),a.velocities.push({position:s[t.isHorizontal()?"currentX":"currentY"],time:_.now()})),t.updateProgress(a.currentTranslate),t.setTranslate(a.currentTranslate))}}}else t.allowClick=!1,a.isTouched&&(_.extend(s,{startX:o,startY:r,currentX:o,currentY:r}),a.touchStartTime=_.now())}}else a.startMoving&&a.isScrolling&&t.emit("touchMoveOpposite",e)}.bind(t),t.onTouchEnd=function(e){var t=this,a=t.touchEventsData,i=t.params,s=t.touches,n=t.rtlTranslate,r=t.$wrapperEl,o=t.slidesGrid,l=t.snapGrid;if(e.originalEvent&&(e=e.originalEvent),a.allowTouchCallbacks&&t.emit("touchEnd",e),a.allowTouchCallbacks=!1,a.isTouched){i.grabCursor&&a.isMoved&&a.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);var d,p=_.now(),c=p-a.touchStartTime;if(t.allowClick?(t.updateClickedSlide(e),t.emit("tap click",e),c<300&&p-a.lastClickTime<300&&t.emit("doubleTap doubleClick",e)):t.main&&t.main.thumbs.update(),a.lastClickTime=_.now(),_.nextTick(function(){t.destroyed||(t.allowClick=!0)}),a.isTouched&&a.isMoved&&t.swipeDirection&&0!==s.diff&&a.currentTranslate!==a.startTranslate){if(a.isTouched=!1,a.isMoved=!1,a.startMoving=!1,d=i.followFinger?n?t.translate:-t.translate:-a.currentTranslate,!i.cssMode)if(i.freeMode)if(d<-t.minTranslate())t.slideTo(t.activeIndex);else if(d>-t.maxTranslate())t.slides.length<l.length?t.slideTo(l.length-1):t.slideTo(t.slides.length-1);else{if(i.freeModeMomentum){1<a.velocities.length?(p=a.velocities.pop(),s=a.velocities.pop(),m=p.position-s.position,s=p.time-s.time,t.velocity=m/s,t.velocity/=2,Math.abs(t.velocity)<i.freeModeMinimumVelocity&&(t.velocity=0),(150<s||300<_.now()-p.time)&&(t.velocity=0)):t.velocity=0,t.velocity*=i.freeModeMomentumVelocityRatio,a.velocities.length=0;var u,h,m=1e3*i.freeModeMomentumRatio,s=t.velocity*m,v=t.translate+s,p=(n&&(v=-v),!1),s=20*Math.abs(t.velocity)*i.freeModeMomentumBounceRatio;if(v<t.maxTranslate())i.freeModeMomentumBounce?(v+t.maxTranslate()<-s&&(v=t.maxTranslate()-s),u=t.maxTranslate(),a.allowMomentumBounce=p=!0):v=t.maxTranslate(),i.loop&&i.centeredSlides&&(h=!0);else if(v>t.minTranslate())i.freeModeMomentumBounce?(v-t.minTranslate()>s&&(v=t.minTranslate()+s),u=t.minTranslate(),a.allowMomentumBounce=p=!0):v=t.minTranslate(),i.loop&&i.centeredSlides&&(h=!0);else if(i.freeModeSticky){for(var f,g=0;g<l.length;g+=1)if(l[g]>-v){f=g;break}v=-(v=Math.abs(l[f]-v)<Math.abs(l[f-1]-v)||"next"===t.swipeDirection?l[f]:l[f-1])}if(h&&t.once("transitionEnd",function(){t.loopFix()}),0!==t.velocity)m=n?Math.abs((-v-t.translate)/t.velocity):Math.abs((v-t.translate)/t.velocity),i.freeModeSticky&&(m=(s=Math.abs((n?-v:v)-t.translate))<(h=t.slidesSizesGrid[t.activeIndex])?i.speed:s<2*h?1.5*i.speed:2.5*i.speed);else if(i.freeModeSticky)return void t.slideToClosest();i.freeModeMomentumBounce&&p?(t.updateProgress(u),t.setTransition(m),t.setTranslate(v),t.transitionStart(!0,t.swipeDirection),t.animating=!0,r.transitionEnd(function(){t&&!t.destroyed&&a.allowMomentumBounce&&(t.emit("momentumBounce"),t.setTransition(i.speed),t.setTranslate(u),r.transitionEnd(function(){t&&!t.destroyed&&t.transitionEnd()}))})):t.velocity?(t.updateProgress(v),t.setTransition(m),t.setTranslate(v),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,r.transitionEnd(function(){t&&!t.destroyed&&t.transitionEnd()}))):t.updateProgress(v),t.updateActiveIndex(),t.updateSlidesClasses()}else if(i.freeModeSticky)return void t.slideToClosest();(!i.freeModeMomentum||c>=i.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}else{for(var b=0,w=t.slidesSizesGrid[0],y=0;y<o.length;y+=y<i.slidesPerGroupSkip?1:i.slidesPerGroup){var x=y<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;void 0!==o[y+x]?d>=o[y]&&d<o[y+x]&&(w=o[(b=y)+x]-o[y]):d>=o[y]&&(b=y,w=o[o.length-1]-o[o.length-2])}n=(d-o[b])/w,s=b<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;c>i.longSwipesMs?i.longSwipes?("next"===t.swipeDirection&&(n>=i.longSwipesRatio?t.slideTo(b+s):t.slideTo(b)),"prev"===t.swipeDirection&&(n>1-i.longSwipesRatio?t.slideTo(b+s):t.slideTo(b))):t.slideTo(t.activeIndex):i.shortSwipes?t.navigation&&(e.target===t.navigation.nextEl||e.target===t.navigation.prevEl)?e.target===t.navigation.nextEl?t.slideTo(b+s):t.slideTo(b):("next"===t.swipeDirection&&t.slideTo(b+s),"prev"===t.swipeDirection&&t.slideTo(b)):t.slideTo(t.activeIndex)}}else a.isTouched=!1,a.isMoved=!1,a.startMoving=!1}else a.isMoved&&i.grabCursor&&t.setGrabCursor(!1),a.isMoved=!1,a.startMoving=!1}.bind(t),a.cssMode&&(t.onScroll=function(){var e=this,t=e.wrapperEl;e.previousTranslate=e.translate,e.translate=e.isHorizontal()?-t.scrollLeft:-t.scrollTop,-0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses(),(t=0==(t=e.maxTranslate()-e.minTranslate())?0:(e.translate-e.minTranslate())/t)!==e.progress&&e.updateProgress(e.translate),e.emit("setTranslate",e.translate,!1)}.bind(t)),t.onClick=function(e){this.allowClick||(this.params.preventClicks&&e.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}.bind(t),!!a.nested);!y.touch&&y.pointerEvents?(s.addEventListener(i.start,t.onTouchStart,!1),c.addEventListener(i.move,t.onTouchMove,r),c.addEventListener(i.end,t.onTouchEnd,!1)):(y.touch&&(e=!("touchstart"!==i.start||!y.passiveListener||!a.passiveListeners)&&{passive:!0,capture:!1},s.addEventListener(i.start,t.onTouchStart,e),s.addEventListener(i.move,t.onTouchMove,y.passiveListener?{passive:!1,capture:r}:r),s.addEventListener(i.end,t.onTouchEnd,e),i.cancel&&s.addEventListener(i.cancel,t.onTouchEnd,e),X||(c.addEventListener("touchstart",Y),X=!0)),(a.simulateTouch&&!d.ios&&!d.android||a.simulateTouch&&!y.touch&&d.ios)&&(s.addEventListener("mousedown",t.onTouchStart,!1),c.addEventListener("mousemove",t.onTouchMove,r),c.addEventListener("mouseup",t.onTouchEnd,!1))),(a.preventClicks||a.preventClicksPropagation)&&s.addEventListener("click",t.onClick,!0),a.cssMode&&n.addEventListener("scroll",t.onScroll),a.updateOnWindowResize?t.on(d.ios||d.android?"resize orientationchange observerUpdate":"resize observerUpdate",p,!0):t.on("observerUpdate",p,!0)},detachEvents:function(){var e,t=this,a=t.params,i=t.touchEvents,s=t.el,n=t.wrapperEl,r=!!a.nested;!y.touch&&y.pointerEvents?(s.removeEventListener(i.start,t.onTouchStart,!1),c.removeEventListener(i.move,t.onTouchMove,r),c.removeEventListener(i.end,t.onTouchEnd,!1)):(y.touch&&(e=!("onTouchStart"!==i.start||!y.passiveListener||!a.passiveListeners)&&{passive:!0,capture:!1},s.removeEventListener(i.start,t.onTouchStart,e),s.removeEventListener(i.move,t.onTouchMove,r),s.removeEventListener(i.end,t.onTouchEnd,e),i.cancel&&s.removeEventListener(i.cancel,t.onTouchEnd,e)),(a.simulateTouch&&!d.ios&&!d.android||a.simulateTouch&&!y.touch&&d.ios)&&(s.removeEventListener("mousedown",t.onTouchStart,!1),c.removeEventListener("mousemove",t.onTouchMove,r),c.removeEventListener("mouseup",t.onTouchEnd,!1))),(a.preventClicks||a.preventClicksPropagation)&&s.removeEventListener("click",t.onClick,!0),a.cssMode&&n.removeEventListener("scroll",t.onScroll),t.off(d.ios||d.android?"resize orientationchange observerUpdate":"resize observerUpdate",p)}},breakpoints:{setBreakpoint:function(){var e,a,t,i,s=this,n=s.activeIndex,r=s.initialized,o=s.loopedSlides,l=(void 0===o&&(o=0),s.params),d=s.$el,p=l.breakpoints;
17569p&&0!==Object.keys(p).length&&(e=s.getBreakpoint(p))&&s.currentBreakpoint!==e&&((a=e in p?p[e]:void 0)&&["slidesPerView","spaceBetween","slidesPerGroup","slidesPerGroupSkip","slidesPerColumn"].forEach(function(e){var t=a[e];void 0!==t&&(a[e]="slidesPerView"!==e||"AUTO"!==t&&"auto"!==t?"slidesPerView"===e?parseFloat(t):parseInt(t,10):"auto")}),p=a||s.originalParams,t=1<l.slidesPerColumn,i=1<p.slidesPerColumn,t&&!i?d.removeClass(l.containerModifierClass+"multirow "+l.containerModifierClass+"multirow-column"):!t&&i&&(d.addClass(l.containerModifierClass+"multirow"),"column"===p.slidesPerColumnFill&&d.addClass(l.containerModifierClass+"multirow-column")),t=p.direction&&p.direction!==l.direction,i=l.loop&&(p.slidesPerView!==l.slidesPerView||t),t&&r&&s.changeDirection(),_.extend(s.params,p),_.extend(s,{allowTouchMove:s.params.allowTouchMove,allowSlideNext:s.params.allowSlideNext,allowSlidePrev:s.params.allowSlidePrev}),s.currentBreakpoint=e,i&&r&&(s.loopDestroy(),s.loopCreate(),s.updateSlides(),s.slideTo(n-o+s.loopedSlides,0,!1)),s.emit("breakpoint",p))},getBreakpoint:function(e){if(e){var t=!1,a=Object.keys(e).map(function(e){var t;return"string"==typeof e&&0===e.indexOf("@")?(t=parseFloat(e.substr(1)),{value:U.innerHeight*t,point:e}):{value:e,point:e}});a.sort(function(e,t){return parseInt(e.value,10)-parseInt(t.value,10)});for(var i=0;i<a.length;i+=1){var s=a[i],n=s.point;s.value<=U.innerWidth&&(t=n)}return t||"max"}}},checkOverflow:{checkOverflow:function(){var e=this,t=e.params,a=e.isLocked,i=0<e.slides.length&&t.slidesOffsetBefore+t.spaceBetween*(e.slides.length-1)+e.slides[0].offsetWidth*e.slides.length;t.slidesOffsetBefore&&t.slidesOffsetAfter&&i?e.isLocked=i<=e.size:e.isLocked=1===e.snapGrid.length,e.allowSlideNext=!e.isLocked,e.allowSlidePrev=!e.isLocked,a!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock"),a&&a!==e.isLocked&&(e.isEnd=!1,e.navigation.update())}},classes:{addClasses:function(){var t=this.classNames,a=this.params,e=this.rtl,i=this.$el,s=[];s.push("initialized"),s.push(a.direction),a.freeMode&&s.push("free-mode"),a.autoHeight&&s.push("autoheight"),e&&s.push("rtl"),1<a.slidesPerColumn&&(s.push("multirow"),"column"===a.slidesPerColumnFill&&s.push("multirow-column")),d.android&&s.push("android"),d.ios&&s.push("ios"),a.cssMode&&s.push("css-mode"),s.forEach(function(e){t.push(a.containerModifierClass+e)}),i.addClass(t.join(" "))},removeClasses:function(){var e=this.$el,t=this.classNames;e.removeClass(t.join(" "))}},images:{loadImage:function(e,t,a,i,s,n){function r(){n&&n()}(!e.complete||!s)&&t?((e=new U.Image).onload=r,e.onerror=r,i&&(e.sizes=i),a&&(e.srcset=a),t&&(e.src=t)):r()},preloadImages:function(){var e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(var a=0;a<e.imagesToLoad.length;a+=1){var i=e.imagesToLoad[a];e.loadImage(i,i.currentSrc||i.getAttribute("src"),i.srcset||i.getAttribute("srcset"),i.sizes||i.getAttribute("sizes"),!0,t)}}}},W={},m=function(d){function p(){for(var a,e=[],t=arguments.length;t--;)e[t]=arguments[t];a=(a=1===e.length&&e[0].constructor&&e[0].constructor===Object?e[0]:(n=e[0],e[1]))||{},a=_.extend({},a),n&&!a.el&&(a.el=n),d.call(this,a),Object.keys(h).forEach(function(t){Object.keys(h[t]).forEach(function(e){p.prototype[e]||(p.prototype[e]=h[t][e])})});var i,s,n,r=this,o=(void 0===r.modules&&(r.modules={}),Object.keys(r.modules).forEach(function(e){var t,e=r.modules[e];e.params&&(t=Object.keys(e.params)[0],"object"==typeof(e=e.params[t])&&null!==e&&t in a&&"enabled"in e&&(!0===a[t]&&(a[t]={enabled:!0}),"object"!=typeof a[t]||"enabled"in a[t]||(a[t].enabled=!0),a[t]||(a[t]={enabled:!1})))}),_.extend({},F)),l=(r.useModulesParams(o),r.params=_.extend({},o,W,a),r.originalParams=_.extend({},r.params),r.passedParams=_.extend({},a),(r.$=E)(r.params.el));if(n=l[0])return 1<l.length?(i=[],l.each(function(e,t){t=_.extend({},a,{el:t});i.push(new p(t))}),i):(n.swiper=r,l.data("swiper",r),n&&n.shadowRoot&&n.shadowRoot.querySelector?(s=E(n.shadowRoot.querySelector("."+r.params.wrapperClass))).children=function(e){return l.children(e)}:s=l.children("."+r.params.wrapperClass),_.extend(r,{$el:l,el:n,$wrapperEl:s,wrapperEl:s[0],classNames:[],slides:E(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===r.params.direction},isVertical:function(){return"vertical"===r.params.direction},rtl:"rtl"===n.dir.toLowerCase()||"rtl"===l.css("direction"),rtlTranslate:"horizontal"===r.params.direction&&("rtl"===n.dir.toLowerCase()||"rtl"===l.css("direction")),wrongRTL:"-webkit-box"===s.css("display"),activeIndex:0,realIndex:0,isBeg
vendor: 4,165 bytes, line 17569
17569inning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:r.params.allowSlideNext,allowSlidePrev:r.params.allowSlidePrev,touchEvents:(o=["touchstart","touchmove","touchend","touchcancel"],n=y.pointerEvents?["pointerdown","pointermove","pointerup"]:["mousedown","mousemove","mouseup"],r.touchEventsTouch={start:o[0],move:o[1],end:o[2],cancel:o[3]},r.touchEventsDesktop={start:n[0],move:n[1],end:n[2]},y.touch||!r.params.simulateTouch?r.touchEventsTouch:r.touchEventsDesktop),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video, label",lastClickTime:_.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:r.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),r.useModules(),r.params.init&&r.init(),r)}d&&(p.__proto__=d);var e={extendedDefaults:{configurable:!0},defaults:{configurable:!0},Class:{configurable:!0},$:{configurable:!0}};return((p.prototype=Object.create(d&&d.prototype)).constructor=p).prototype.slidesPerViewDynamic=function(){var e=this,t=e.params,a=e.slides,i=e.slidesGrid,s=e.size,n=e.activeIndex,r=1;if(t.centeredSlides){for(var o,l=a[n].swiperSlideSize,d=n+1;d<a.length;d+=1)a[d]&&!o&&(r+=1,s<(l+=a[d].swiperSlideSize)&&(o=!0));for(var p=n-1;0<=p;--p)a[p]&&!o&&(r+=1,s<(l+=a[p].swiperSlideSize)&&(o=!0))}else for(var c=n+1;c<a.length;c+=1)i[c]-i[n]<s&&(r+=1);return r},p.prototype.update=function(){var e,t,a=this;function i(){var e=a.rtlTranslate?-1*a.translate:a.translate,e=Math.min(Math.max(e,a.maxTranslate()),a.minTranslate());a.setTranslate(e),a.updateActiveIndex(),a.updateSlidesClasses()}a&&!a.destroyed&&(e=a.snapGrid,(t=a.params).breakpoints&&a.setBreakpoint(),a.updateSize(),a.updateSlides(),a.updateProgress(),a.updateSlidesClasses(),a.params.freeMode?(i(),a.params.autoHeight&&a.updateAutoHeight()):(("auto"===a.params.slidesPerView||1<a.params.slidesPerView)&&a.isEnd&&!a.params.centeredSlides?a.slideTo(a.slides.length-1,0,!1,!0):a.slideTo(a.activeIndex,0,!1,!0))||i(),t.watchOverflow&&e!==a.snapGrid&&a.checkOverflow(),a.emit("update"))},p.prototype.changeDirection=function(a,e){void 0===e&&(e=!0);var t=this,i=t.params.direction;return(a=a||("horizontal"===i?"vertical":"horizontal"))===i||"horizontal"!==a&&"vertical"!==a||(t.$el.removeClass(""+t.params.containerModifierClass+i).addClass(""+t.params.containerModifierClass+a),t.params.direction=a,t.slides.each(function(e,t){"vertical"===a?t.style.width="":t.style.height=""}),t.emit("changeDirection"),e&&t.update()),t},p.prototype.init=function(){var e=this;e.initialized||(e.emit("beforeInit"),e.params.breakpoints&&e.setBreakpoint(),e.addClasses(),e.params.loop&&e.loopCreate(),e.updateSize(),e.updateSlides(),e.params.watchOverflow&&e.checkOverflow(),e.params.grabCursor&&e.setGrabCursor(),e.params.preloadImages&&e.preloadImages(),e.params.loop?e.slideTo(e.params.initialSlide+e.loopedSlides,0,e.params.runCallbacksOnInit):e.slideTo(e.params.initialSlide,0,e.params.runCallbacksOnInit),e.attachEvents(),e.initialized=!0,e.emit("init"))},p.prototype.destroy=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);var a=this,i=a.params,s=a.$el,n=a.$wrapperEl,r=a.slides;return void 0===a.params||a.destroyed||(a.emit("beforeDestroy"),a.initialized=!1,a.detachEvents(),i.loop&&a.loopDestroy(),t&&(a.removeClasses(),s.removeAttr("style"),n.removeAttr("style"),r&&r.length&&r.removeClass([i.slideVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),a.emit("destroy"),Object.keys(a.eventsListeners).forEach(function(e){a.off(e)}),!1!==e&&(a.$el[0].swiper=null,a.$el.data("swiper",null),_.deleteProps(a)),a.destroyed=!0),null},p.extendDefaults=function(e){_.extend(W,e)},e.extendedDefaults.get=function(){return W},e.defaults.get=function(){return F},e.Class.get=function(){return d},e.$.get=function(){return E}
17569,Object.defineProperties(p,e),p}(e),v={name:"device",proto:{device:d},static:{device:d}},f={name:"support",proto:{support:y},static:{support:y}},S={isEdge:!!U.navigator.userAgent.match(/Edge/g),isSafari:0<=(u=U.navigator.userAgent.toLowerCase()).indexOf("safari")&&u.indexOf("chrome")<0&&u.indexOf("android")<0,isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(U.navigator.userAgent)},R={name:"browser",proto:{browser:S},static:{browser:S}},q={name:"resize",create:function(){var e=this;_.extend(e,{resize:{resizeHandler:function(){e&&!e.destroyed&&e.initialized&&(e.emit("beforeResize"),e.emit("resize"))},orientationChangeHandler:function(){e&&!e.destroyed&&e.initialized&&e.emit("orientationchange")}}})},on:{init:function(){U.addEventListener("resize",this.resize.resizeHandler),U.addEventListener("orientationchange",this.resize.orientationChangeHandler)},destroy:function(){U.removeEventListener("resize",this.resize.resizeHandler),U.removeEventListener("orientationchange",this.resize.orientationChangeHandler)}}},g={func:U.MutationObserver||U.WebkitMutationObserver,attach:function(e,t){void 0===t&&(t={});var a=this,i=new g.func(function(e){var t;1===e.length?a.emit("observerUpdate",e[0]):(t=function(){a.emit("observerUpdate",e[0])},U.requestAnimationFrame?U.requestAnimationFrame(t):U.setTimeout(t,0))});i.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),a.observer.observers.push(i)},init:function(){var e=this;if(y.observer&&e.params.observer){if(e.params.observeParents)for(var t=e.$el.parents(),a=0;a<t.length;a+=1)e.observer.attach(t[a]);e.observer.attach(e.$el[0],{childList:e.params.observeSlideChildren}),e.observer.attach(e.$wrapperEl[0],{attributes:!1})}},destroy:function(){this.observer.observers.forEach(function(e){e.disconnect()}),this.observer.observers=[]}},b={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function(){_.extend(this,{observer:{init:g.init.bind(this),attach:g.attach.bind(this),destroy:g.destroy.bind(this),observers:[]}})},on:{init:function(){this.observer.init()},destroy:function(){this.observer.destroy()}}},w={update:function(e){var t,a=this,i=a.params,s=i.slidesPerView,n=i.slidesPerGroup,i=i.centeredSlides,r=a.params.virtual,o=r.addSlidesBefore,r=r.addSlidesAfter,l=a.virtual,d=l.from,p=l.to,c=l.slides,u=l.slidesGrid,h=l.renderSlide,l=l.offset,m=(a.updateActiveIndex(),a.activeIndex||0),v=a.rtlTranslate?"right":a.isHorizontal()?"left":"top",i=i?(t=Math.floor(s/2)+n+o,Math.floor(s/2)+n+r):(t=s+(n-1)+o,n+r),f=Math.max((m||0)-i,0),g=Math.min((m||0)+t,c.length-1),s=(a.slidesGrid[f]||0)-(a.slidesGrid[0]||0);function b(){a.updateSlides(),a.updateProgress(),a.updateSlidesClasses(),a.lazy&&a.params.lazy.enabled&&a.lazy.load()}if(_.extend(a.virtual,{from:f,to:g,offset:s,slidesGrid:a.slidesGrid}),d!==f||p!==g||e)if(a.params.virtual.renderExternal)a.params.virtual.renderExternal.call(a,{offset:s,from:f,to:g,slides:function(){for(var e=[],t=f;t<=g;t+=1)e.push(c[t]);return e}()}),b();else{var w=[],y=[];if(e)a.$wrapperEl.find("."+a.params.slideClass).remove();else for(var x=d;x<=p;x+=1)(x<f||g<x)&&a.$wrapperEl.find("."+a.params.slideClass+'[data-swiper-slide-index="'+x+'"]').remove();for(var T=0;T<c.length;T+=1)f<=T&&T<=g&&(void 0===p||e?y.push(T):(p<T&&y.push(T),T<d&&w.push(T)));y.forEach(function(e){a.$wrapperEl.append(h(c[e],e))}),w.sort(function(e,t){return t-e}).forEach(function(e){a.$wrapperEl.prepend(h(c[e],e))}),a.$wrapperEl.children(".swiper-slide").css(v,s+"px"),b()}else a.slidesGrid!==u&&s!==l&&a.slides.css(v,s+"px"),a.updateProgress()},renderSlide:function(e,t){var a=this,i=a.params.virtual;if(i.cache&&a.virtual.cache[t])return a.virtual.cache[t];e=i.renderSlide?E(i.renderSlide.call(a,e,t)):E('<div class="'+a.params.slideClass+'" data-swiper-slide-index="'+t+'">'+e+"</div>");return e.attr("data-swiper-slide-index")||e.attr("data-swiper-slide-index",t),i.cache&&(a.virtual.cache[t]=e),e},appendSlide:function(e){if("object"==typeof e&&"length"in e)for(var t=0;t<e.length;t+=1)e[t]&&this.virtual.slides.push(e[t]);else this.virtual.slides.push(e);this.virtual.update(!0)},prependSlide:function(e){var i,s,t=this,a=t.activeIndex,n=a+1,r=1;if(Array.isArray(e)){for(var o=0;o<e.length;o+=1)e[o]&&t.virtual.slides.unshift(e[o]);n=a+e.length,r=e.length}else t.virtual.slides.unshift(e);t.params.virtual.cache&&(i=t.virtual.cache,s={}
17569,Object.keys(i).forEach(function(e){var t=i[e],a=t.attr("data-swiper-slide-index");a&&t.attr("data-swiper-slide-index",parseInt(a,10)+1),s[parseInt(e,10)+r]=t}),t.virtual.cache=s),t.virtual.update(!0),t.slideTo(n,0)},removeSlide:function(e){var t=this;if(null!=e){var a=t.activeIndex;if(Array.isArray(e))for(var i=e.length-1;0<=i;--i)t.virtual.slides.splice(e[i],1),t.params.virtual.cache&&delete t.virtual.cache[e[i]],e[i]<a&&--a,a=Math.max(a,0);else t.virtual.slides.splice(e,1),t.params.virtual.cache&&delete t.virtual.cache[e],e<a&&--a,a=Math.max(a,0);t.virtual.update(!0),t.slideTo(a,0)}},removeAllSlides:function(){var e=this;e.virtual.slides=[],e.params.virtual.cache&&(e.virtual.cache={}),e.virtual.update(!0),e.slideTo(0,0)}},x={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create:function(){var e=this;_.extend(e,{virtual:{update:w.update.bind(e),appendSlide:w.appendSlide.bind(e),prependSlide:w.prependSlide.bind(e),removeSlide:w.removeSlide.bind(e),removeAllSlides:w.removeAllSlides.bind(e),renderSlide:w.renderSlide.bind(e),slides:e.params.virtual.slides,cache:{}}})},on:{beforeInit:function(){var e,t=this;t.params.virtual.enabled&&(t.classNames.push(t.params.containerModifierClass+"virtual"),_.extend(t.params,e={watchSlidesProgress:!0}),_.extend(t.originalParams,e),t.params.initialSlide||t.virtual.update(
17569))},setTranslate:function(){this.params.virtual.enabled&&this.virtual.update()}}},j={handle:function(e){var t=this,a=t.rtlTranslate,i=(e=e.originalEvent?e.originalEvent:e).keyCode||e.charCode;if(!t.allowSlideNext&&(t.isHorizontal()&&39===i||t.isVertical()&&40===i||34===i))return!1;if(!t.allowSlidePrev&&(t.isHorizontal()&&37===i||t.isVertical()&&38===i||33===i))return!1;if(!(e.shiftKey||e.altKey||e.ctrlKey||e.metaKey||c.activeElement&&c.activeElement.nodeName&&("input"===c.activeElement.nodeName.toLowerCase()||"textarea"===c.activeElement.nodeName.toLowerCase()))){if(t.params.keyboard.onlyInViewport&&(33===i||34===i||37===i||39===i||38===i||40===i)){var s=!1;if(0<t.$el.parents("."+t.params.slideClass).length&&0===t.$el.parents("."+t.params.slideActiveClass).length)return;for(var n=U.innerWidth,r=U.innerHeight,o=t.$el.offset(),l=(a&&(o.left-=t.$el[0].scrollLeft),[[o.left,o.top],[o.left+t.width,o.top],[o.left,o.top+t.height],[o.left+t.width,o.top+t.height]]),d=0;d<l.length;d+=1){var p=l[d];0<=p[0]&&p[0]<=n&&0<=p[1]&&p[1]<=r&&(s=!0)}if(!s)return}t.isHorizontal()?(33!==i&&34!==i&&37!==i&&39!==i||(e.preventDefault?e.preventDefault():e.returnValue=!1),(34!==i&&39!==i||a)&&(33!==i&&37!==i||!a)||t.slideNext(),(33!==i&&37!==i||a)&&(34!==i&&39!==i||!a)||t.slidePrev()):(33!==i&&34!==i&&38!==i&&40!==i||(e.preventDefault?e.preventDefault():e.returnValue=!1),34!==i&&40!==i||t.slideNext(),33!==i&&38!==i||t.slidePrev()),t.emit("keyPress",i)}},enable:function(){this.keyboard.enabled||(E(c).on("keydown",this.keyboard.handle),this.keyboard.enabled=!0)},disable:function(){this.keyboard.enabled&&(E(c).off("keydown",this.keyboard.handle),this.keyboard.enabled=!1)}},T={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create:function(){_.extend(this,{keyboard:{enabled:!1,enable:j.enable.bind(this),disable:j.disable.bind(this),handle:j.handle.bind(this)}})},on:{init:function(){this.params.keyboard.enabled&&this.keyboard.enable()},destroy:function(){this.keyboard.enabled&&this.keyboard.disable()}}};var C={lastScrollTime:_.now(),lastEventBeforeSnap:void 0,recentWheelEvents:[],event:function(){return-1<U.navigator.userAgent.indexOf("firefox")?"DOMMouseScroll":((a=(t="onwheel")in c)||((e=c.createElement("div")).setAttribute(t,"return;"),a="function"==typeof e[t]),(a=!a&&c.implementation&&c.implementation.hasFeature&&!0!==c.implementation.hasFeature("","")?c.implementation.hasFeature("Events.wheel","3.0"):a)?"wheel":"mousewheel");var e,t,a},normalize:function(e){var t=0,a=0,i=0,s=0;return"detail"in e&&(a=e.detail),"wheelDelta"in e&&(a=-e.wheelDelta/120),"wheelDeltaY"in e&&(a=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=a,a=0),i=10*t,s=10*a,"deltaY"in e&&(s=e.deltaY),"deltaX"in e&&(i=e.deltaX),e.shiftKey&&!i&&(i=s,s=0),(i||s)&&e.deltaMode&&(1===e.deltaMode?(i*=40,s*=40):(i*=800,s*=800)),{spinX:t=i&&!t?i<1?-1:1:t,spinY:a=s&&!a?s<1?-1:1:a,pixelX:i,pixelY:s}},handleMouseEnter:function(){this.mouseEntered=!0},handleMouseLeave:function(){this.mouseEntered=!1},handle:function(e){var t=e,a=this,i=a.params.mousewheel,s=(a.params.cssMode&&t.preventDefault(),a.$el);if("container"!==a.params.mousewheel.eventsTarged&&(s=E(a.params.mousewheel.eventsTarged)),!a.mouseEntered&&!s[0].contains(t.target)&&!i.releaseOnEdges)return!0;t.originalEvent&&(t=t.originalEvent);var s=0,n=a.rtlTranslate?-1:1,r=C.normalize(t);if(i.forceToAxis)if(a.isHorizontal()){if(!(Math.abs(r.pixelX)>Math.abs(r.pixelY)))return!0;s=r.pixelX*n}else{if(!(Math.abs(r.pixelY)>Math.abs(r.pixelX)))return!0;s=r.pixelY}else s=Math.abs(r.pixelX)>Math.abs(r.pixelY)?-r.pixelX*n:-r.pixelY;if(0===s)return!0;if(i.invert&&(s=-s),a.params.freeMode){var o={time:_.now(),delta:Math.abs(s),direction:Math.sign(s)},n=a.mousewheel.lastEventBeforeSnap,r=n&&o.time<n.time+500&&o.delta<=n.delta&&o.direction===n.direction;if(!r){a.mousewheel.lastEventBeforeSnap=void 0,a.params.loop&&a.loopFix();var l,d,n=a.getTranslate()+s*i.sensitivity,i=a.isBeginning,p=a.isEnd;if((n=n>=a.minTranslate()?a.minTranslate():n)<=a.maxTranslate()&&(n=a.maxTranslate()),a.setTransition(0),a.setTranslate(n),a.updateProgress(),a.updateActiveIndex(),a.updateSlidesClasses(),(!i&&a.isBeginning||!p&&a.isEnd)&&a.updateSlidesClasses(),a.params.freeModeSticky&&(clearTimeout(a.mousewheel.timeout),a.mousewheel.timeout=void 0,15<=(l=a.mousewheel.recentWheelEvents).length&&l.shift(),i=l.length?l[l.length-1]:void 0,p=l[0],l.push(o),i&&(o.delta>i.delta||o.direction!==i.direction)?l.splice(0):15<=l.length&&o.time-p.time<500&&1<=p.delta-o.delta&&o.delta<=6&&(
17569d=0<s?.8:.2,a.mousewheel.lastEventBeforeSnap=o,l.splice(0),a.mousewheel.timeout=_.nextTick(function(){a.slideToClosest(a.params.speed,!0,void 0,d)},0)),a.mousewheel.timeout||(a.mousewheel.timeout=_.nextTick(function(){a.mousewheel.lastEventBeforeSnap=o,l.splice(0),a.slideToClosest(a.params.speed,!0,void 0,.5)},500))),r||a.emit("scroll",t),a.params.autoplay&&a.params.autoplayDisableOnInteraction&&a.autoplay.stop(),n===a.minTranslate()||n===a.maxTranslate())return!0}}else{i={time:_.now(),delta:Math.abs(s),direction:Math.sign(s),raw:e},p=a.mousewheel.recentWheelEvents,r=(2<=p.length&&p.shift(),p.length?p[p.length-1]:void 0);if(p.push(i),(!r||i.direction!==r.direction||i.delta>r.delta)&&a.mousewheel.animateSlider(i),a.mousewheel.releaseScroll(i))return!0}return t.preventDefault?t.preventDefault():t.returnValue=!1,!1},animateSlider:function(e){var t=this;return 6<=e.delta&&_.now()-t.mousewheel.lastScrollTime<60||(e.direction<0?t.isEnd&&!t.params.loop||t.animating||(t.slideNext(),t.emit("scroll",e.raw)):t.isBeginning&&!t.params.loop||t.animating||(t.slidePrev(),t.emit("scroll",e.raw)),t.mousewheel.lastScrollTime=(new U.Date).getTime(),!1)},releaseScroll:function(e){var t=this,a=t.params.mousewheel;if(e.direction<0){if(t.isEnd&&!t.params.loop&&a.releaseOnEdges)return!0}else if(t.isBeginning&&!t.params.loop&&a.releaseOnEdges)return!0;return!1},enable:function(){var e=this,t=C.event();if(e.params.cssMode)e.wrapperEl.removeEventListener(t,e.mousewheel.handle);else{if(!t)return!1;if(e.mousewheel.enabled)return!1;var a=e.$el;(a="container"!==e.params.mousewheel.eventsTarged?E(e.params.mousewheel.eventsTarged):a).on("mouseenter",e.mousewheel.handleMouseEnter),a.on("mouseleave",e.mousewheel.handleMouseLeave),a.on(t,e.mousewheel.handle),e.mousewheel.enabled=!0}return!0},disable:function(){var e=this,t=C.event();if(e.params.cssMode)e.wrapperEl.addEventListener(t,e.mousewheel.handle);else{if(!t)return!1;if(!e.mousewheel.enabled)return!1;var a=e.$el;(a="container"!==e.params.mousewheel.eventsTarged?E(e.params.mousewheel.eventsTarged):a).off(t,e.mousewheel.handle),e.mousewheel.enabled=!1}return!0}},M={update:function(){var e,t,a=this,i=a.params.navigation;a.params.loop||(e=(t=a.navigation).$nextEl,(t=t.$prevEl)&&0<t.length&&(a.isBeginning?t.addClass(i.disabledClass):t.removeClass(i.disabledClass),t[a.params.watchOverflow&&a.isLocked?"addClass":"removeClass"](i.lockClass)),e&&0<e.length&&(a.isEnd?e.addClass(i.disabledClass):e.removeClass(i.disabledClass),e[a.params.watchOverflow&&a.isLocked?"addClass":"removeClass"](i.lockClass)))},onPrevClick:function(e){e.preventDefault(),this.isBeginning&&!this.params.loop||this.slidePrev()},onNextClick:function(e){e.preventDefault(),this.isEnd&&!this.params.loop||this.slideNext()},init:function(){var e,t,a=this,i=a.params.navigation;(i.nextEl||i.prevEl)&&(i.nextEl&&(e=E(i.nextEl),a.params.uniqueNavElements&&"string"==typeof i.nextEl&&1<e.length&&1===a.$el.find(i.nextEl).length&&(e=a.$el.find(i.nextEl))),i.prevEl&&(t=E(i.prevEl),a.params.uniqueNavElements&&"string"==typeof i.prevEl&&1<t.length&&1===a.$el.find(i.prevEl).length&&(t=a.$el.find(i.prevEl))),e&&0<e.length&&e.on("click",a.navigation.onNextClick),t&&0<t.length&&t.on("click",a.navigation.onPrevClick),_.extend(a.navigation,{$nextEl:e,nextEl:e&&e[0],$prevEl:t,prevEl:t&&t[0]}))},destroy:function(){var e=this,t=e.navigation,a=t.$nextEl,t=t.$prevEl;a&&a.length&&(a.off("click",e.navigation.onNextClick),a.removeClass(e.params.navigation.disabledClass)),t&&t.length&&(t.off("click",e.navigation.onPrevClick),t.removeClass(e.params.navigation.disabledClass))}},P={update:function(){var e=this,t=e.rtl,i=e.params.pagination;if(i.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var s,a=(e.virtual&&e.params.virtual.enabled?e.virtual:e).slides.length,n=e.pagination.$el,r=e.params.loop?Math.ceil((a-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?((s=Math.ceil((e.activeIndex-e.loopedSlides)/e.params.slidesPerGroup))>a-1-2*e.loopedSlides&&(s-=a-2*e.loopedSlides),r-1<s&&(s-=r),s<0&&"bullets"!==e.params.paginationType&&(s=r+s)):s=void 0!==e.snapIndex?e.snap
17569Index:e.activeIndex||0,"bullets"===i.type&&e.pagination.bullets&&0<e.pagination.bullets.length){var o,l,d,p=e.pagination.bullets;if(i.dynamicBullets&&(e.pagination.bulletSize=p.eq(0)[e.isHorizontal()?"outerWidth":"outerHeight"](!0),n.css(e.isHorizontal()?"width":"height",e.pagination.bulletSize*(i.dynamicMainBullets+4)+"px"),1<i.dynamicMainBullets&&void 0!==e.previousIndex&&(e.pagination.dynamicBulletIndex+=s-e.previousIndex,e.pagination.dynamicBulletIndex>i.dynamicMainBullets-1?e.pagination.dynamicBulletIndex=i.dynamicMainBullets-1:e.pagination.dynamicBulletIndex<0&&(e.pagination.dynamicBulletIndex=0)),o=s-e.pagination.dynamicBulletIndex,d=((l=o+(Math.min(p.length,i.dynamicMainBullets)-1))+o)/2),p.removeClass(i.bulletActiveClass+" "+i.bulletActiveClass+"-next "+i.bulletActiveClass+"-next-next "+i.bulletActiveClass+"-prev "+i.bulletActiveClass+"-prev-prev "+i.bulletActiveClass+"-main"),1<n.length)p.each(function(e,t){var t=E(t),a=t.index();a===s&&t.addClass(i.bulletActiveClass),i.dynamicBullets&&(o<=a&&a<=l&&t.addClass(i.bulletActiveClass+"-main"),a===o&&t.prev().addClass(i.bulletActiveClass+"-prev").prev().addClass(i.bulletActiveClass+"-prev-prev"),a===l&&t.next().addClass(i.bulletActiveClass+"-next").next().addClass(i.bulletActiveClass+"-next-next"))});else{var a=p.eq(s),c=a.index();if(a.addClass(i.bulletActiveClass),i.dynamicBullets){for(var a=p.eq(o),u=p.eq(l),h=o;h<=l;h+=1)p.eq(h).addClass(i.bulletActiveClass+"-main");if(e.params.loop)if(c>=p.length-i.dynamicMainBullets){for(var m=i.dynamicMainBullets;0<=m;--m)p.eq(p.length-m).addClass(i.bulletActiveClass+"-main");p.eq(p.length-i.dynamicMainBullets-1).addClass(i.bulletActiveClass+"-prev")}else a.prev().addClass(i.bulletActiveClass+"-prev").prev().addClass(i.bulletActiveClass+"-prev-prev"),u.next().addClass(i.bulletActiveClass+"-next").next().addClass(i.bulletActiveClass+"-next-next");else a.prev().addClass(i.bulletActiveClass+"-prev").prev().addClass(i.bulletActiveClass+"-prev-prev"),u.next().addClass(i.bulletActiveClass+"-next").next().addClass(i.bulletActiveClass+"-next-next")}}i.dynamicBullets&&(c=Math.min(p.length,i.dynamicMainBullets+4),a=(e.pagination.bulletSize*c-e.pagination.bulletSize)/2-d*e.pagination.bulletSize,u=t?"right":"left",p.css(e.isHorizontal()?u:"top",a+"px"))}"fraction"===i.type&&(n.find("."+i.currentClass).text(i.formatFractionCurrent(s+1)),n.find("."+i.totalClass).text(i.formatFractionTotal(r))),"progressbar"===i.type&&(c=i.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical",d=(s+1)/r,u=t=1,"horizontal"===c?t=d:u=d,n.find("."+i.progressbarFillClass).transform("translate3d(0,0,0) scaleX("+t+") scaleY("+u+")").transition(e.params.speed)),"custom"===i.type&&i.renderCustom?(n.html(i.renderCustom(e,s+1,r)),e.emit("paginationRender",e,n[0])):e.emit("paginationUpdate",e,n[0]),n[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](i.lockClass)}},render:function(){var e=this,t=e.params.pagination;if(t.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var a=(e.virtual&&e.params.virtual.enabled?e.virtual:e).slides.length,i=e.pagination.$el,s="";if("bullets"===t.type){for(var n=e.params.loop?Math.ceil((a-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length,r=0;r<n;r+=1)t.renderBullet?s+=t.renderBullet.call(e,r,t.bulletClass):s+="<"+t.bulletElement+' class="'+t.bulletClass+'"></'+t.bulletElement+">";i.html(s),e.pagination.bullets=i.find("."+t.bulletClass)}"fraction"===t.type&&(s=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):'<span class="'+t.currentClass+'"></span> / <span class="'+t.totalClass+'"></span>',i.html(s)),"progressbar"===t.type&&(s=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):'<span class="'+t.progressbarFillClass+'"></span>',i.html(s)),"custom"!==t.type&&e.emit("paginationRender",e.pagination.$el[0])}},init:function(){var e,t=this,a=t.params.pagination;!a.el||0!==(e=E(a.el)).length&&(t.params.uniqueNavElements&&"string"==typeof a.el&&1<e.length&&1===t.$el.find(a.el).length&&(e=t.$el.find(a.el)),"bullets"===a.type&&a.clickable&&e.addClass(a.clickableClass),e.addClass(a.modifierClass+a.type),"bullets"===a.type&&a.dynamicBullets&&(e.addClass(""+a.modifierClass+a.type+"-dynamic"),t.pagination.dynamicBulletIndex=0,a.dynamicMainBullets<1&&(a.dynamicMainBullets=1)),"progressbar"===a.type&&a.progressbarOpposite&&e.addClass(a.progressbarOppositeClass),a.clickable&&e.on("click","."+a.bulletClass,function(e){e.preventDefault();e=E(this).index()*t.params.slidesPerGroup;t.params.loop&&(e+=t.loopedSlides),t.slideTo(e)}),_.extend(t.pagination,{$el:e,el:e[0]}))},destroy:function(){var e,t=this,a=t.params.pagination;a.el&&t.pagination.el&&t.pagination.$el&&0!==t.pagination.$el.length&&((e=t.pagination.$el).removeClass(a.hiddenClass),e.removeClass(a.modifierClass+a.type),t.pagination.bullets&&t.pagination.bullets.removeClass(a.bulletActiveClass),a.clickable&&e.off("click","."+a.bulletClass))}},z={setTranslate:function(){var e,t,a,i,s,n,r,o,l=this;l.params.scrollbar.el&&l.scrollbar.el&&(n=l.scrollbar,e=l.rtlTranslate,o=l.progress,t=n.dragSize,a=n.trackSize,i=n.$dragEl,s=n.$el,n=l.params.scrollbar,o=(a-(r=t))*o,e?0<(o=-o)?(r=t-o,o=0):a<-o+t&&(r=a+o):o<0?(r=t+o,o=0):a<o+t&&(r=a-o),l.isH
17569orizontal()?(i.transform("translate3d("+o+"px, 0, 0)"),i[0].style.width=r+"px"):(i.transform("translate3d(0px, "+o+"px, 0)"),i[0].style.height=r+"px"),n.hide&&(clearTimeout(l.scrollbar.timeout),s[0].style.opacity=1,l.scrollbar.timeout=setTimeout(function(){s[0].style.opacity=0,s.transition(400)},1e3)))},setTransition:function(e){this.params.scrollbar.el&&this.scrollbar.el&&this.scrollbar.$dragEl.transition(e)},updateSize:function(){var e,t,a,i,s,n,r,o=this;o.params.scrollbar.el&&o.scrollbar.el&&(t=(e=o.scrollbar).$dragEl,a=e.$el,t[0].style.width="",t[0].style.height="",i=o.isHorizontal()?a[0].offsetWidth:a[0].offsetHeight,n=(s=o.size/o.virtualSize)*(i/o.size),r="auto"===o.params.scrollbar.dragSize?i*s:parseInt(o.params.scrollbar.dragSize,10),o.isHorizontal()?t[0].style.width=r+"px":t[0].style.height=r+"px",a[0].style.display=1<=s?"none":"",o.params.scrollbar.hide&&(a[0].style.opacity=0),_.extend(e,{trackSize:i,divider:s,moveDivider:n,dragSize:r}),e.$el[o.params.watchOverflow&&o.isLocked?"addClass":"removeClass"](o.params.scrollbar.lockClass))},getPointerPosition:function(e){return this.isHorizontal()?("touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0]:e).clientX:("touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0]:e).clientY},setDragPosition:function(e){var t=this,a=t.scrollbar,i=t.rtlTranslate,s=a.$el,n=a.dragSize,r=a.trackSize,o=a.dragStartPos,a=(a.getPointerPosition(e)-s.offset()[t.isHorizontal()?"left":"top"]-(null!==o?o:n/2))/(r-n),e=(a=Math.max(Math.min(a,1),0),i&&(a=1-a),t.minTranslate()+(t.maxTranslate()-t.minTranslate())*a);t.updateProgress(e),t.setTranslate(e),t.updateActiveIndex(),t.updateSlidesClasses()},onDragStart:function(e){var t=this,a=t.params.scrollbar,i=t.scrollbar,s=t.$wrapperEl,n=i.$el,r=i.$dragEl;t.scrollbar.isTouched=!0,t.scrollbar.dragStartPos=e.target===r[0]||e.target===r?i.getPointerPosition(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),s.transition(100),r.transition(100),i.setDragPosition(e),clearTimeout(t.scrollbar.dragTimeout),n.transition(0),a.hide&&n.css("opacity",1),t.params.cssMode&&t.$wrapperEl.css("scroll-snap-type","none"),t.emit("scrollbarDragStart",e)},onDragMove:function(e){var t=this.scrollbar,a=this.$wrapperEl,i=t.$el,s=t.$dragEl;this.scrollbar.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,t.setDragPosition(e),a.transition(0),i.transition(0),s.transition(0),this.emit("scrollbarDragMove",e))},onDragEnd:function(e){var t=this,a=t.params.scrollbar,i=t.scrollbar,s=t.$wrapperEl,n=i.$el;t.scrollbar.isTouched&&(t.scrollbar.isTouched=!1,t.params.cssMode&&(t.$wrapperEl.css("scroll-snap-type",""),s.transition("")),a.hide&&(clearTimeout(t.scrollbar.dragTimeout),t.scrollbar.dragTimeout=_.nextTick(function(){n.css("opacity",0),n.transition(400)},1e3)),t.emit("scrollbarDragEnd",e),a.snapOnRelease&&t.slideToClosest())},enableDraggable:function(){var e,t,a,i,s,n=this;n.params.scrollbar.el&&(a=n.scrollbar,e=n.touchEventsTouch,t=n.touchEventsDesktop,s=n.params,a=a.$el[0],i=!(!y.passiveListener||!s.passiveListeners)&&{passive:!1,capture:!1},s=!(!y.passiveListener||!s.passiveListeners)&&{passive:!0,capture:!1},y.touch?(a.addEventListener(e.start,n.scrollbar.onDragStart,i),a.addEventListener(e.move,n.scrollbar.onDragMove,i),a.addEventListener(e.end,n.scrollbar.onDragEnd,s)):(a.addEventListener(t.start,n.scrollbar.onDragStart,i),c.addEventListener(t.move,n.scrollbar.onDragMove,i),c.addEventListener(t.end,n.scrollbar.onDragEnd,s)))},disableDraggable:function(){var e,t,a,i,s,n=this;n.params.scrollbar.el&&(a=n.scrollbar,e=n.touchEventsTouch,t=n.touchEventsDesktop,s=n.params,a=a.$el[0],i=!(!y.passiveListener||!s.passiveListeners)&&{passive:!1,capture:!1},s=!(!y.passiveListener||!s.passiveListeners)&&{passive:!0,capture:!1},y.touch?(a.removeEventListener(e.start,n.scrollbar.onDragStart,i),a.removeEventListener(e.move,n.scrollbar.onDragMove,i),a.removeEventListener(e.end,n.scrollbar.onDragEnd,s)):(a.removeEventListener(t.start,n.scrollbar.onDragStart,i),c.removeEventListener(t.move,n.scrollbar.onDragMove,i),c.removeEventListener(t.end,n.scrollbar.onDragEnd,s)))},init:function(){var e,t,a,i,s=this;
vendor: 7,598 bytes, line 17569
17569s.params.scrollbar.el&&(e=s.scrollbar,i=s.$el,a=E((t=s.params.scrollbar).el),0===(i=(a=s.params.uniqueNavElements&&"string"==typeof t.el&&1<a.length&&1===i.find(t.el).length?i.find(t.el):a).find("."+s.params.scrollbar.dragClass)).length&&(i=E('<div class="'+s.params.scrollbar.dragClass+'"></div>'),a.append(i)),_.extend(e,{$el:a,el:a[0],$dragEl:i,dragEl:i[0]}),t.draggable&&e.enableDraggable())},destroy:function(){this.scrollbar.disableDraggable()}},K={setTransform:function(e,t){var a=this.rtl,e=E(e),a=a?-1:1,i=e.attr("data-swiper-parallax")||"0",s=e.attr("data-swiper-parallax-x"),n=e.attr("data-swiper-parallax-y"),r=e.attr("data-swiper-parallax-scale"),o=e.attr("data-swiper-parallax-opacity");s||n?(s=s||"0",n=n||"0"):this.isHorizontal()?(s=i,n="0"):(n=i,s="0"),s=0<=s.indexOf("%")?parseInt(s,10)*t*a+"%":s*t*a+"px",n=0<=n.indexOf("%")?parseInt(n,10)*t+"%":n*t+"px",null!=o&&(i=o-(o-1)*(1-Math.abs(t)),e[0].style.opacity=i),null==r?e.transform("translate3d("+s+", "+n+", 0px)"):(a=r-(r-1)*(1-Math.abs(t)),e.transform("translate3d("+s+", "+n+", 0px) scale("+a+")"))},setTranslate:function(){var i=this,e=i.$el,t=i.slides,s=i.progress,n=i.snapGrid;e.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(function(e,t){i.parallax.setTransform(t,s)}),t.each(function(e,t){var a=t.progress;1<i.params.slidesPerGroup&&"auto"!==i.params.slidesPerView&&(a+=Math.ceil(e/2)-s*(n.length-1)),a=Math.min(Math.max(a,-1),1),E(t).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(function(e,t){i.parallax.setTransform(t,a)})})},setTransition:function(i){void 0===i&&(i=this.params.speed);this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(function(e,t){var t=E(t),a=parseInt(t.attr("data-swiper-parallax-duration"),10)||i;0===i&&(a=0),t.transition(a)})}},Z={getDistanceBetweenTouches:function(e){if(e.targetTouches.length<2)return 1;var t=e.targetTouches[0].pageX,a=e.targetTouches[0].pageY,i=e.targetTouches[1].pageX,e=e.targetTouches[1].pageY;return Math.sqrt(Math.pow(i-t,2)+Math.pow(e-a,2))},onGestureStart:function(e){var t=this,a=t.params.zoom,i=t.zoom,s=i.gesture;if(i.fakeGestureTouched=!1,i.fakeGestureMoved=!1,!y.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;i.fakeGestureTouched=!0,s.scaleStart=Z.getDistanceBetweenTouches(e)}s.$slideEl&&s.$slideEl.length||(s.$slideEl=E(e.target).closest("."+t.params.slideClass),0===s.$slideEl.length&&(s.$slideEl=t.slides.eq(t.activeIndex)),s.$imageEl=s.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),s.$imageWrapEl=s.$imageEl.parent("."+a.containerClass),s.maxRatio=s.$imageWrapEl.attr("data-swiper-zoom")||a.maxRatio,0!==s.$imageWrapEl.length)?(s.$imageEl.transition(0),t.zoom.isScaling=!0):s.$imageEl=void 0},onGestureChange:function(e){var t=this.params.zoom,a=this.zoom,i=a.gesture;if(!y.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;a.fakeGestureMoved=!0,i.scaleMove=Z.getDistanceBetweenTouches(e)}i.$imageEl&&0!==i.$imageEl.length&&(a.scale=y.gestures?e.scale*a.currentScale:i.scaleMove/i.scaleStart*a.currentScale,a.scale>i.maxRatio&&(a.scale=i.maxRatio-1+Math.pow(a.scale-i.maxRatio+1,.5)),a.scale<t.minRatio&&(a.scale=t.minRatio+1-Math.pow(t.minRatio-a.scale+1,.5)),i.$imageEl.transform("translate3d(0,0,0) scale("+a.scale+")"))},onGestureEnd:function(e){var t=this.params.zoom,a=this.zoom,i=a.gesture;if(!y.gestures){if(!a.fakeGestureTouched||!a.fakeGestureMoved)return;if("touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2&&!d.android)return;a.fakeGestureTouched=!1,a.fakeGestureMoved=!1}i.$imageEl&&0!==i.$imageEl.length&&(a.scale=Math.max(Math.min(a.scale,i.maxRatio),t.minRatio),i.$imageEl.transition(this.params.speed).transform("translate3d(0,0,0) scale("+a.scale+")"),a.currentScale=a.scale,a.isScaling=!1,1===a.scale&&(i.$slideEl=void 0))},onTouchStart:function(e){var t=this.zoom,a=t.gesture,t=t.image;a.$imageEl&&0!==a.$imageEl.length&&!t.isTouched&&(d.android&&e.preventDefault(),t.isTouched=!0,t.touchesStart.x=("touchstart"===e.type?e.targetTouches[0]:e).pageX,t.touchesStart.y=("touchstart"===e.type?e.targetTouches[0]:e).pageY)},onTouchMove:function(e){var t=this,a=t.zoom,i=a.gesture,s=a.image,n=a.velocity;if(i.$imageEl&&0!==i.$imageEl.length&&(t.allowClick=!1,s.isTouched&&i.$slideEl)){s.isMoved||(s.width=i.$imageEl[0].offsetWidth,s.height=i.$imageEl[0].offsetHeight,s.startX=_.getTranslate(i.$imageWrapEl[0],"x")||0,s.startY=_.getTranslate(i.$imageWrapEl[0],"y")||0,i.slideWidth=i.$slideEl[0].offsetWidth,i.slideHeight=i.$slideEl[0].offsetHeight,i.$imageWrapEl.transition(0),t.rtl&&(s.startX=-s.startX,s.startY=-s.startY));var r=s.width*a.scale,o=s.height*a.scale;if(!(r<i.slideWidth&&o<i.slideHeight)){if(s.minX=Math.min(i.slideWidth/2-r/2,0),s.maxX=-s.minX,s.minY=Math.min(i.slideHeight/2-o/2,0),s.maxY=-s.minY,s.touchesCurrent.x=("touchmove"===e.type?e.targetTouches[0]:e).pageX,s.touchesCurrent.y=("touchmove"===e.type?e.targetTouches[0]:e).pageY,!s.isMoved&&!a.isScaling){if(t.isHorizontal()&&(Math.floor(s.minX)===Math.floor(s.startX)&&s.touchesCurrent.x<s.touchesStart.x||Math.floor(s.maxX)===Math.floor(s.startX)&&s.touchesCurrent.x>s.touchesStart.x))return void(s.isTouched=!1);if(!t.isHorizontal()&&(Math.floor(s.minY)===Math.floor(s.startY)&&s.touchesCurrent.y<s.touchesStart.y||Math.floor(s.maxY)===Math.floor(s.startY)&&s.touchesCurrent.y>s.touchesStart.y))return void(s.isTouched=!1)}e.preventDefault(),e.stopPropagation(),s.isMoved=!0,s.currentX=s.touchesCurrent.x-s.touchesStart.x+s.startX,s.currentY=s.touchesCurrent.y-s.touchesStart.y+s.startY,s.currentX<s.minX&&(s.currentX=s.minX+1-Math.pow(s.minX-s.currentX+1,.8)),s.currentX>s.maxX&&(s.currentX=s.maxX-1+Math.pow(s.currentX-s.maxX+1,.8)),s.currentY<s.minY&&(s.currentY=s.minY+1-Math.pow(s.minY-s.currentY+1,.8)),s.currentY>s.maxY&&(s.currentY=s.maxY-1+Math.pow(s.currentY-s.maxY+1,.8)),n.prevPositionX||(n.prevPositionX=s.touchesCurrent.x),n.prevPositionY||(n.prevPositionY=s.touchesCurrent.y),n.prevTime||(n.prevTime=Date.now()),n.x=(s.touchesCurrent.x-n.prevPositionX)/(Date.now()-n.prevTime)/2,n.y=(s.touchesCurrent.y-n.prevPositionY)/(Date.now()-n.prevTime)/2,Math.abs(s.touchesCurrent.x-n.prevPositionX)<2&&(n.x=0),Math.abs(s.touchesCurrent.y-n.prevPositionY)<2&&(n.y=0),n.prevPositionX=s.touchesCurrent.x,n.prevPositionY=s.touchesCurrent.y,n.prevTime=Date.now(),i.$imageWrapEl.transform("translate3d("+s.currentX+"px, "+s.currentY+"px,0)")}}},onTouchEnd:function(){var e,t,a,i,s=this.zoom,n=s.gesture,r=s.image,o=s.velocity;n.$imageEl&&0!==n.$imageEl.length&&(r.isTouched&&r.isMoved?(r.isTouched=!1,r.isMoved=!1,e=o.x*(a=300),e=r.currentX+e,t=o.y*(i=300),t=r.currentY+t,0!==o.x&&(a=Math.abs((e-r.currentX)/o.x)),0!==o.y&&(i=Math.abs((t-r.currentY)/o.y)),o=Math.max(a,i),r.currentX=e,r.currentY=t,a=r.width*s.scale,i=r.height*s.scale,r.minX=Math.min(n.slideWidth/2-a/2,0),r.maxX=-r.minX,r.minY=Math.min(n.slideHeight/2-i/2,0),r.maxY=-r.minY,r.currentX=Math.max(Math.min(r.currentX,r.maxX),r.minX),r.currentY=Math.max(Math.min(r.currentY,r.maxY),r.minY),n.$imageWrapEl.transition(o).transform("translate3d("+r.currentX+"px, "+r.currentY+"px,0)")):(r.isTouched=!1,r.isMoved=!1))},onTransitionEnd:function(){var e=this.zoom,t=e.gesture;t.$slideEl&&this.previousIndex!==this.activeIndex&&(t.$imageEl.transform("translate3d(0,
175690,0) scale(1)"),t.$imageWrapEl.transform("translate3d(0,0,0)"),e.scale=1,e.currentScale=1,t.$slideEl=void 0,t.$imageEl=void 0,t.$imageWrapEl=void 0)},toggle:function(e){var t=this.zoom;t.scale&&1!==t.scale?t.out():t.in(e)},in:function(e){var t,a,i,s,n=this.zoom,r=this.params.zoom,o=n.gesture,l=n.image;o.$slideEl||(o.$slideEl=this.slides.eq(this.activeIndex),o.$imageEl=o.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),o.$imageWrapEl=o.$imageEl.parent("."+r.containerClass)),o.$imageEl&&0!==o.$imageEl.length&&(o.$slideEl.addClass(""+r.zoomedSlideClass),l=void 0===l.touchesStart.x&&e?(s=("touchend"===e.type?e.changedTouches[0]:e).pageX,("touchend"===e.type?e.changedTouches[0]:e).pageY):(s=l.touchesStart.x,l.touchesStart.y),n.scale=o.$imageWrapEl.attr("data-swiper-zoom")||r.maxRatio,n.currentScale=o.$imageWrapEl.attr("data-swiper-zoom")||r.maxRatio,e?(r=o.$slideEl[0].offsetWidth,e=o.$slideEl[0].offsetHeight,s=o.$slideEl.offset().left+r/2-s,l=o.$slideEl.offset().top+e/2-l,i=o.$imageEl[0].offsetWidth,a=o.$imageEl[0].offsetHeight,i=i*n.scale,a=a*n.scale,r=Math.min(r/2-i/2,0),i=Math.min(e/2-a/2,0),(e=-r)<(a=(a=s*n.scale)<r?r:a)&&(a=e),(s=-i)<(t=(t=l*n.scale)<i?i:t)&&(t=s)):t=a=0,o.$imageWrapEl.transition(300).transform("translate3d("+a+"px, "+t+"px,0)"),o.$imageEl.transition(300).transform("translate3d(0,0,0) scale("+n.scale+")"))},out:function(){var e=this.zoom,t=this.params.zoom,a=e.gesture;a.$slideEl||(a.$slideEl=this.slides.eq(this.activeIndex),a.$imageEl=a.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),a.$imageWrapEl=a.$imageEl.parent("."+t.containerClass)),a.$imageEl&&0!==a.$imageEl.length&&(e.scale=1,e.currentScale=1,a.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),a.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),a.$slideEl.removeClass(""+t.zoomedSlideClass),a.$slideEl=void 0)},enable:function(){var e,t,a,i=this,s=i.zoom;s.enabled||(s.enabled=!0,e=!("touchstart"!==i.touchEvents.start||!y.passiveListener||!i.params.passiveListeners)&&{passive:!0,capture:!1},t=!y.passiveListener||{passive:!1,capture:!0},a="."+i.params.slideClass,y.gestures?(i.$wrapperEl.on("gesturestart",a,s.onGestureStart,e),i.$wrapperEl.on("gesturechange",a,s.onGestureChange,e),i.$wrapperEl.on("gestureend",a,s.onGestureEnd,e)):"touchstart"===i.touchEvents.start&&(i.$wrapperEl.on(i.touchEvents.start,a,s.onGestureStart,e),i.$wrapperEl.on(i.touchEvents.move,a,s.onGestureChange,t),i.$wrapperEl.on(i.touchEvents.end,a,s.onGestureEnd,e),i.touchEvents.cancel&&i.$wrapperEl.on(i.touchEvents.cancel,a,s.onGestureEnd,e)),i.$wrapperEl.on(i.touchEvents.move,"."+i.params.zoom.containerClass,s.onTouchMove,t))},disable:function(){var e,t,a,i=this,s=i.zoom;s.enabled&&(i.zoom.enabled=!1,e=!("touchstart"!==i.touchEvents.start||!y.passiveListener||!i.params.passiveListeners)&&{passive:!0,capture:!1},t=!y.passiveListener||{passive:!1,capture:!0},a="."+i.params.slideClass,y.gestures?(i.$wrapperEl.off("gesturestart",a,s.onGestureStart,e),i.$wrapperEl.off("gesturechange",a,s.onGestureChange,e),i.$wrapperEl.off("gestureend",a,s.onGestureEnd,e)):"touchstart"===i.touchEvents.start&&(i.$wrapperEl.off(i.touchEvents.start,a,s.onGestureStart,e),i.$wrapperEl.off(i.touchEvents.move,a,s.onGestureChange,t),i.$wrapperEl.off(i.touchEvents.end,a,s.onGestureEnd,e),i.touchEvents.cancel&&i.$wrapperEl.off(i.touchEvents.cancel,a,s.onGestureEnd,e)),i.$wrapperEl.off(i.touchEvents.move,"."+i.params.zoom.containerClass,s.onTouchMove,t))}},Q={loadInSlide:function(e,o){void 0===o&&(o=!0);var l,d=this,p=d.params.lazy;void 0!==e&&0!==d.slides.length&&(e=(l=d.virtual&&d.params.virtual.enabled?d.$wrapperEl.children("."+d.params.slideClass+'[data-swiper-slide-index="'+e+'"]'):d.slides.eq(e)).find("."+p.elementClass+":not(."+p.loadedClass+"):not(."+p.loadingClass+")"),0!==(e=!l.hasClass(p.elementClass)||l.hasClass(p.loadedClass)||l.hasClass(p.loadingClass)?e:e.add(l[0])).length&&e.each(function(e,t){var a=E(t),i=(a.addClass(p.loadingClass),a.attr("data-background")),s=a.attr("data-src"),n=a.attr("data-srcset"),r=a.attr("data-sizes");d.loadImage(a[0],s||i,n,r,!1,function(){var e,t;null==d||!d||d&&!d.params||d.destroyed||(i?(a.css("background-image",'url("'+i+'")'),a.removeAttr("data-background")):(n&&(a.attr("srcset",n
17569),a.removeAttr("data-srcset")),r&&(a.attr("sizes",r),a.removeAttr("data-sizes")),s&&(a.attr("src",s),a.removeAttr("data-src"))),a.addClass(p.loadedClass).removeClass(p.loadingClass),l.find("."+p.preloaderClass).remove(),d.params.loop&&o&&(e=l.attr("data-swiper-slide-index"),l.hasClass(d.params.slideDuplicateClass)?(t=d.$wrapperEl.children('[data-swiper-slide-index="'+e+'"]:not(.'+d.params.slideDuplicateClass+")"),d.lazy.loadInSlide(t.index(),!1)):(t=d.$wrapperEl.children("."+d.params.slideDuplicateClass+'[data-swiper-slide-index="'+e+'"]'),d.lazy.loadInSlide(t.index(),!1))),d.emit("lazyImageReady",l[0],a[0]),d.params.autoHeight&&d.updateAutoHeight())}),d.emit("lazyImageLoad",l[0],a[0])}))},load:function(){var a=this,t=a.$wrapperEl,i=a.params,s=a.slides,e=a.activeIndex,n=a.virtual&&i.virtual.enabled,r=i.lazy,o=i.slidesPerView;function l(e){if(n){if(t.children("."+i.slideClass+'[data-swiper-slide-index="'+e+'"]').length)return 1}else if(s[e])return 1}function d(e){return n?E(e).attr("data-swiper-slide-index"):E(e).index()}if("auto"===o&&(o=0),a.lazy.initialImageLoaded||(a.lazy.initialImageLoaded=!0),a.params.watchSlidesVisibility)t.children("."+i.slideVisibleClass).each(function(e,t){t=n?E(t).attr("data-swiper-slide-index"):E(t).index();a.lazy.loadInSlide(t)});else if(1<o)for(var p=e;p<e+o;p+=1)l(p)&&a.lazy.loadInSlide(p);else a.lazy.loadInSlide(e);if(r.loadPrevNext)if(1<o||r.loadPrevNextAmount&&1<r.loadPrevNextAmount){for(var r=r.loadPrevNextAmount,c=o,u=Math.min(e+c+Math.max(r,c),s.length),c=Math.max(e-Math.max(c,r),0),h=e+o;h<u;h+=1)l(h)&&a.lazy.loadInSlide(h);for(var m=c;m<e;m+=1)l(m)&&a.lazy.loadInSlide(m)}else{r=t.children("."+i.slideNextClass),c=(0<r.length&&a.lazy.loadInSlide(d(r)),t.children("."+i.slidePrevClass));0<c.length&&a.lazy.loadInSlide(d(c))}}},k={LinearSpline:function(e,t){var a,i,s,n,r,o=function(e,t){for(i=-1,a=e.length;1<a-i;)e[s=a+i>>1]<=t?i=s:a=s;return a};return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(r=o(this.x,e),n=r-1,(e-this.x[n])*(this.y[r]-this.y[n])/(this.x[r]-this.x[n])+this.y[n]):0},this},getInterpolateFunction:function(e){var t=this;t.controller.spline||(t.controller.spline=t.params.loop?new k.LinearSpline(t.slidesGrid,e.slidesGrid):new k.LinearSpline(t.snapGrid,e.snapGrid))},setTranslate:function(e,t){var a,i,s=this,n=s.controller.control;function r(e){var t=s.rtlTranslate?-s.translate:s.translate;"slide"===s.params.controller.by&&(s.controller.getInterpolateFunction(e),i=-s.controller.spline.interpolate(-t)),i&&"container"!==s.params.controller.by||(a=(e.maxTranslate()-e.minTranslate())/(s.maxTranslate()-s.minTranslate()),i=(t-s.minTranslate())*a+e.minTranslate()),s.params.controller.inverse&&(i=e.maxTranslate()-i),e.updateProgress(i),e.setTranslate(i,s),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(n))for(var o=0;o<n.length;o+=1)n[o]!==t&&n[o]instanceof m&&r(n[o]);else n instanceof m&&t!==n&&r(n)},setTransition:function(t,e){var a,i=this,s=i.controller.control;function n(e){e.setTransition(t,i),0!==t&&(e.transitionStart(),e.params.autoHeight&&_.nextTick(function(){e.updateAutoHeight()}),e.$wrapperEl.transitionEnd(function(){s&&(e.params.loop&&"slide"===i.params.controller.by&&e.loopFix(),e.transitionEnd())}))}if(Array.isArray(s))for(a=0;a<s.length;a+=1)s[a]!==e&&s[a]instanceof m&&n(s[a]);else s instanceof m&&e!==s&&n(s)}},J={makeElFocusable:function(e){return e.attr("tabIndex","0"),e},addElRole:function(e,t){return e.attr("role",t),e},addElLabel:function(e,t){return e.attr("aria-label",t),e},disableEl:function(e){return e.attr("aria-disabled",!0),e},enableEl:function(e){return e.attr("aria-disabled",!1),e},onEnterKey:function(e){var t=this,a=t.params.a11y;13===e.keyCode&&(e=E(e.target),t.navigation&&t.navigation.$nextEl&&e.is(t.navigation.$nextEl)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?t.a11y.notify(a.lastSlideMessage):t.a11y.notify(a.nextSlideMessage)),t.navigation&&t.navigation.$prevEl&&e.is(t.navigation.$prevEl)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?t.a11y.notify(a.firstSlideMessage):t.a11y.notify(a.prevSlideMessage)),t.pagination&&e.is("."+t.params.pagination.bulletClass)&&e[0].click())},notify:function(e){var t=this.a11y.liveRegion;0!==t.length&&(t.html(""),t.html(e))},updateNavigation:function(){var e,t,a=this;!a.params.loop&&a.navigation&&(e=(t=a.navigation).$nextEl,(t=t.$prevEl)&&0<t.length&&(a.isBeginning?a.a11y.disableEl(t):a.a11y.enableEl(t)),e&&0<e.length&&(a.isEnd?a.a11y.disableEl(e):a.a11y.enableEl(e)))},updatePagination:function(){var a=this,i=a.params.a11y;a.pagination&&a.params.pagination.clickable&&a.pagination.bullets&&a.pagination.bullets.length&&a.pagination.bullets.each(function(e,t){t=E(t);a.a11y.makeElFocusable(t),a.a11y.addElRole(t,"button"),a.a11y.addElLabel(t,i.paginationBulletMessage.replace(/{{index}}/,t.index()+1))})}
17569,init:function(){var e,t,a=this,i=(a.$el.append(a.a11y.liveRegion),a.params.a11y);a.navigation&&a.navigation.$nextEl&&(e=a.navigation.$nextEl),a.navigation&&a.navigation.$prevEl&&(t=a.navigation.$prevEl),e&&(a.a11y.makeElFocusable(e),a.a11y.addElRole(e,"button"),a.a11y.addElLabel(e,i.nextSlideMessage),e.on("keydown",a.a11y.onEnterKey)),t&&(a.a11y.makeElFocusable(t),a.a11y.addElRole(t,"button"),a.a11y.addElLabel(t,i.prevSlideMessage),t.on("keydown",a.a11y.onEnterKey)),a.pagination&&a.params.pagination.clickable&&a.pagination.bullets&&a.pagination.bullets.length&&a.pagination.$el.on("keydown","."+a.params.pagination.bulletClass,a.a11y.onEnterKey)},destroy:function(){var e,t,a=this;a.a11y.liveRegion&&0<a.a11y.liveRegion.length&&a.a11y.liveRegion.remove(),a.navigation&&a.navigation.$nextEl&&(e=a.navigation.$nextEl),a.navigation&&a.navigation.$prevEl&&(t=a.navigation.$prevEl),e&&e.off("keydown",a.a11y.onEnterKey),t&&t.off("keydown",a.a11y.onEnterKey),a.pagination&&a.params.pagination.clickable&&a.pagination.bullets&&a.pagination.bullets.length&&a.pagination.$el.off("keydown","."+a.params.pagination.bulletClass,a.a11y.onEnterKey)}},$={init:function(){var e,t=this;t.params.history&&(U.history&&U.history.pushState?((e=t.history).initialized=!0,e.paths=$.getPathValues(),(e.paths.key||e.paths.value)&&(e.scrollToSlide(0,e.paths.value,t.params.runCallbacksOnInit),t.params.history.replaceState||U.addEventListener("popstate",t.history.setHistoryPopState))):(t.params.history.enabled=!1,t.params.hashNavigation.enabled=!0))},destroy:function(){this.params.history.replaceState||U.removeEventListener("popstate",this.history.setHistoryPopState)},setHistoryPopState:function(){this.history.paths=$.getPathValues(),this.history.scrollToSlide(this.params.speed,this.history.paths.value,!1)},getPathValues:function(){var e=U.location.pathname.slice(1).split("/").filter(function(e){return""!==e}),t=e.length;return{key:e[t-2],value:e[t-1]}},setHistory:function(e,t){this.history.initialized&&this.params.history.enabled&&(t=this.slides.eq(t),t=$.slugify(t.attr("data-history")),U.location.pathname.includes(e)||(t=e+"/"+t),(e=U.history.state)&&e.value===t||(this.params.history.replaceState?U.history.replaceState({value:t},null,t):U.history.pushState({value:t},null,t)))},slugify:function(e){return e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(e,t,a){var i=this;if(t)for(var s=0,n=i.slides.length;s<n;s+=1){var r=i.slides.eq(s);$.slugify(r.attr("data-history"))!==t||r.hasClass(i.params.slideDuplicateClass)||(r=r.index(),i.slideTo(r,e,a))}else i.slideTo(0,e,a)}},L={onHashCange:function(){var e=this,t=c.location.hash.replace("#","");t!==e.slides.eq(e.activeIndex).attr("data-hash")&&void 0!==(t=e.$wrapperEl.children("."+e.params.slideClass+'[data-hash="'+t+'"]').index())&&e.slideTo(t)},setHash:function(){var e=this;e.hashNavigation.initialized&&e.params.hashNavigation.enabled&&(e.params.hashNavigation.replaceState&&U.history&&U.history.replaceState?U.history.replaceState(null,null,"#"+e.slides.eq(e.activeIndex).attr("data-hash")||""):(e=(e=e.slides.eq(e.activeIndex)).attr("data-hash")||e.attr("data-history"),c.location.hash=e||""))},init:function(){var e=this;if(!(!e.params.hashNavigation.enabled||e.params.history&&e.params.history.enabled)){e.hashNavigation.initialized=!0;var t=c.location.hash.replace("#","");if(t)for(var a=0,i=e.slides.length;a<i;a+=1){var s=e.slides.eq(a);(s.attr("data-hash")||s.attr("data-history"))!==t||s.hasClass(e.params.slideDuplicateClass)||(s=s.index(),e.slideTo(s,0,e.params.runCallbacksOnInit,!0))}e.params.hashNavigation.watchState&&E(U).on("hashchange",e.hashNavigation.onHashCange)}},destroy:function(){this.params.hashNavigation.watchState&&E(U).off("hashchange",this.hashNavigation.onHashCange)}},I={run:function(){var e=this,t=e.slides.eq(e.activeIndex),a=e.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(a=t.attr("data-swiper-autoplay")||e.params.autoplay.delay),clearTimeout(e.autoplay.timeout),e.autoplay.timeout=_.nextTick(function(){e.params.autoplay.reverseDirection?e.params.loop?(e.loopFix(),e.slidePrev(e.params.speed,!0,
17569!0),e.emit("autoplay")):e.isBeginning?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(e.slides.length-1,e.params.speed,!0,!0),e.emit("autoplay")):(e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.params.loop?(e.loopFix(),e.slideNext(e.params.speed,!0,!0),e.emit("autoplay")):e.isEnd?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(0,e.params.speed,!0,!0),e.emit("autoplay")):(e.slideNext(e.params.speed,!0,!0),e.emit("autoplay")),e.params.cssMode&&e.autoplay.running&&e.autoplay.run()},a)},start:function(){var e=this;return void 0===e.autoplay.timeout&&(!e.autoplay.running&&(e.autoplay.running=!0,e.emit("autoplayStart"),e.autoplay.run(),!0))},stop:function(){var e=this;return!!e.autoplay.running&&(void 0!==e.autoplay.timeout&&(e.autoplay.timeout&&(clearTimeout(e.autoplay.timeout),e.autoplay.timeout=void 0),e.autoplay.running=!1,e.emit("autoplayStop"),!0))},pause:function(e){var t=this;t.autoplay.running&&!t.autoplay.paused&&(t.autoplay.timeout&&clearTimeout(t.autoplay.timeout),t.autoplay.paused=!0,0!==e&&t.params.autoplay.waitForTransition?(t.$wrapperEl[0].addEventListener("transitionend",t.autoplay.onTransitionEnd),t.$wrapperEl[0].addEventListener("webkitTransitionEnd",t.autoplay.onTransitionEnd)):(t.autoplay.paused=!1,t.autoplay.run()))}},ee={setTranslate:function(){for(var e=this,t=e.slides,a=0;a<t.length;a+=1){var i=e.slides.eq(a),s=-i[0].swiperSlideOffset,n=(e.params.virtualTranslate||(s-=e.translate),0),r=(e.isHorizontal()||(n=s,s=0),e.params.fadeEffect.crossFade?Math.max(1-Math.abs(i[0].progress),0):1+Math.min(Math.max(i[0].progress,-1),0));i.css({opacity:r}).transform("translate3d("+s+"px, "+n+"px, 0px)")}},setTransition:function(e){var a,i=this,t=i.slides,s=i.$wrapperEl;t.transition(e),i.params.virtualTranslate&&0!==e&&(a=!1,t.transitionEnd(function(){if(!a&&i&&!i.destroyed){a=!0,i.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],t=0;t<e.length;t+=1)s.trigger(e[t])}}))}},te={setTranslate:function(){var e,t=this,a=t.$el,i=t.$wrapperEl,s=t.slides,n=t.width,r=t.height,o=t.rtlTranslate,l=t.size,d=t.params.cubeEffect,p=t.isHorizontal(),c=t.virtual&&t.params.virtual.enabled,u=0;d.shadow&&(p?(0===(e=i.find(".swiper-cube-shadow")).length&&(e=E('<div class="swiper-cube-shadow"></div>'),i.append(e)),e.css({height:n+"px"})):0===(e=a.find(".swiper-cube-shadow")).length&&(e=E('<div class="swiper-cube-shadow"></div>'),a.append(e)));for(var h,m=0;m<s.length;m+=1){var v=s.eq(m),f=m,g=90*(f=c?parseInt(v.attr("data-swiper-slide-index"),10):f),b=Math.floor(g/360),w=(o&&(g=-g,b=Math.floor(-g/360)),Math.max(Math.min(v[0].progress,1),-1)),y=0,x=0,T=0,b=(f%4==0?(y=4*-b*l,T=0):(f-1)%4==0?(y=0,T=4*-b*l):(f-2)%4==0?(y=l+4*b*l,T=l):(f-3)%4==0&&(y=-l,T=3*l+4*l*b),o&&(y=-y),p||(x=y,y=0),"rotateX("+(p?0:-g)+"deg) rotateY("+(p?g:0)+"deg) translate3d("+y+"px, "+x+"px, "+T+"px)");w<=1&&-1<w&&(u=o?90*-f-90*w:90*f+90*w),v.transform(b),d.slideShadows&&(g=p?v.find(".swiper-slide-shadow-left"):v.find(".swiper-slide-shadow-top"),y=p?v.find(".swiper-slide-shadow-right"):v.find(".swiper-slide-shadow-bottom"),0===g.length&&(g=E('<div class="swiper-slide-shadow-'+(p?"left":"top")+'"></div>'),v.append(g)),0===y.length&&(y=E('<div class="swiper-slide-shadow-'+(p?"right":"bottom")+'"></div>'),v.append(y)),g.length&&(g[0].style.opacity=Math.max(-w,0)),y.length&&(y[0].style.opacity=Math.max(w,0)))}i.css({"-webkit-transform-origin":"50% 50% -"+l/2+"px","-moz-transform-origin":"50% 50% -"+l/2+"px","-ms-transform-origin":"50% 50% -"+l/2+"px","transform-origin":"50% 50% -"+l/2+"px"}),d.shadow&&(p?e.transform("translate3d(0px, "+(n/2+d.shadowOffset)+"px, "+-n/2+"px) rotateX(90deg) rotateZ(0deg) scale("+d.shadowScale+")"):(a=Math.abs(u)-90*Math.floor(Math.abs(u)/90),n=1.5-(Math.sin(2*a*Math.PI/360)/2+Math.cos(2*a*Math.PI/360)/2),a=d.shadowScale,n=d.shadowScale/n,h=d.shadowOffset,e.transform("scale3d("+a+", 1, "+n+") translate3d(0px, "+(r/2+h)+"px, "+-r/2/n+"px) rotateX(-90deg)"))),i.transform("translate3d(0px,0,"+(S.isSafari||S.isUiWebView?-l/2:0)+"px) rotateX("+(t.isHorizontal()?0:u)+"deg) rotateY("+(t.isHorizontal()?-u:0)+"deg)")},setTransition:function(e){var t=this.$el;this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),this.params.cubeEffect.shadow&&!this.isHorizontal()&&t.find(".swiper-cube-shadow").transition(e)}},ae={setTranslate:function(){for(var e=this,t=e.slides,a=e.rtlTranslate,i=0;i<t.length;i+=1){var s,n,r=t.eq(i),o=r[0].progress,l=(e.params.flipEffect.limitRotation&&(o=Math.max(Math.min(r[0].progress,
175691),-1)),r[0].swiperSlideOffset),d=-180*o,p=0,l=-l,c=0;e.isHorizontal()?a&&(d=-d):(c=l,p=-d,d=l=0),r[0].style.zIndex=-Math.abs(Math.round(o))+t.length,e.params.flipEffect.slideShadows&&(s=e.isHorizontal()?r.find(".swiper-slide-shadow-left"):r.find(".swiper-slide-shadow-top"),n=e.isHorizontal()?r.find(".swiper-slide-shadow-right"):r.find(".swiper-slide-shadow-bottom"),0===s.length&&(s=E('<div class="swiper-slide-shadow-'+(e.isHorizontal()?"left":"top")+'"></div>'),r.append(s)),0===n.length&&(n=E('<div class="swiper-slide-shadow-'+(e.isHorizontal()?"right":"bottom")+'"></div>'),r.append(n)),s.length&&(s[0].style.opacity=Math.max(-o,0)),n.length&&(n[0].style.opacity=Math.max(o,0))),r.transform("translate3d("+l+"px, "+c+"px, 0px) rotateX("+p+"deg) rotateY("+d+"deg)")}},setTransition:function(e){var a,i=this,t=i.slides,s=i.activeIndex,n=i.$wrapperEl;t.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),i.params.virtualTranslate&&0!==e&&(a=!1,t.eq(s).transitionEnd(function(){if(!a&&i&&!i.destroyed){a=!0,i.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],t=0;t<e.length;t+=1)n.trigger(e[t])}}))}},ie={setTranslate:function(){for(var e=this,t=e.width,a=e.height,i=e.slides,s=e.$wrapperEl,n=e.slidesSizesGrid,r=e.params.coverflowEffect,o=e.isHorizontal(),e=e.translate,l=o?t/2-e:a/2-e,d=o?r.rotate:-r.rotate,p=r.depth,c=0,u=i.length;c<u;c+=1){var h=i.eq(c),m=n[c],v=(l-h[0].swiperSlideOffset-m/2)/m*r.modifier,f=o?d*v:0,g=o?0:d*v,b=-p*Math.abs(v),w=r.stretch,m=("string"==typeof w&&-1!==w.indexOf("%")&&(w=parseFloat(r.stretch)/100*m),o?0:w*v),w=o?w*v:0,w=(Math.abs(w)<.001&&(w=0),Math.abs(m)<.001&&(m=0),Math.abs(b)<.001&&(b=0),Math.abs(f)<.001&&(f=0),"translate3d("+w+"px,"+m+"px,"+b+"px) rotateX("+(g=Math.abs(g)<.001?0:g)+"deg) rotateY("+f+"deg)");h.transform(w),h[0].style.zIndex=1-Math.abs(Math.round(v)),r.slideShadows&&(m=o?h.find(".swiper-slide-shadow-left"):h.find(".swiper-slide-shadow-top"),b=o?h.find(".swiper-slide-shadow-right"):h.find(".swiper-slide-shadow-bottom"),0===m.length&&(m=E('<div class="swiper-slide-shadow-'+(o?"left":"top")+'"></div>'),h.append(m)),0===b.length&&(b=E('<div class="swiper-slide-shadow-'+(o?"right":"bottom")+'"></div>'),h.append(b)),m.length&&(m[0].style.opacity=0<v?v:0),b.length&&(b[0].style.opacity=0<-v?-v:0))}(y.pointerEvents||y.prefixedPointerEvents)&&(s[0].style.perspectiveOrigin=l+"px 50%")},setTransition:function(e){this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}},se={init:function(){var e=this,t=e.params.thumbs,a=e.constructor;t.swiper instanceof a?(e.thumbs.swiper=t.swiper,_.extend(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),_.extend(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):_.isObject(t.swiper)&&(e.thumbs.swiper=new a(_.extend({},t.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),e.thumbs.swiperCreated=!0),e.thumbs.swiper.$el.addClass(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",e.thumbs.onThumbClick)},onThumbClick:function(){var e,t,a,i=this,s=i.thumbs.swiper;s&&(e=s.clickedIndex,(a=s.clickedSlide)&&E(a).hasClass(i.params.thumbs.slideThumbActiveClass)||null!=e&&(a=s.params.loop?parseInt(E(s.clickedSlide).attr("data-swiper-slide-index"),10):e,i.params.loop&&(s=i.activeIndex,i.slides.eq(s).hasClass(i.params.slideDuplicateClass)&&(i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft,s=i.activeIndex),e=i.slides.eq(s).prevAll('[data-swiper-slide-index="'+a+'"]').eq(0).index(),t=i.slides.eq(s).nextAll('[data-swiper-slide-index="'+a+'"]').eq(0).index(),a=void 0===e||void 0!==t&&t-s<s-e?t:e),i.slideTo(a)))},update:function(e){var t,a,i,s,n=this,r=n.thumbs.swiper;r&&(t="auto"===r.params.slidesPerView?r.slidesPerViewDynamic():r.params.slidesPerView,n.realIndex!==r.realIndex&&(a=r.activeIndex,s=r.params.loop?(r.slides.eq(a).hasClass(r.params.slideDuplicateClass)&&(r.loopFix(),r._clientLeft=r.$
vendor: 17,763 bytes, lines 17569-17573
17569wrapperEl[0].clientLeft,a=r.activeIndex),i=r.slides.eq(a).prevAll('[data-swiper-slide-index="'+n.realIndex+'"]').eq(0).index(),s=r.slides.eq(a).nextAll('[data-swiper-slide-index="'+n.realIndex+'"]').eq(0).index(),void 0===i?s:void 0===s?i:s-a==a-i?a:s-a<a-i?s:i):n.realIndex,r.visibleSlidesIndexes&&r.visibleSlidesIndexes.indexOf(s)<0&&(r.params.centeredSlides?s=a<s?s-Math.floor(t/2)+1:s+Math.floor(t/2)-1:a<s&&(s=s-t+1),r.slideTo(s,e?0:void 0))),setTimeout(function(){var e=1,t=n.params.thumbs.slideThumbActiveClass;if(1<n.params.slidesPerView&&!n.params.centeredSlides&&(e=n.params.slidesPerView),n.params.thumbs.multipleActiveThumbs||(e=1),e=Math.floor(e),r.slides.removeClass(t),r.params.loop||r.params.virtual&&r.params.virtual.enabled)for(var a=0;a<e;a+=1)r.$wrapperEl.children('[data-swiper-slide-index="'+(n.realIndex+a)+'"]').addClass(t);else for(var i=0;i<e;i+=1)r.slides.eq(n.realIndex+i).addClass(t)}))}},D=[v,f,R,q,b,x,T,{name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create:function(){var e=this;_.extend(e,{mousewheel:{enabled:!1,enable:C.enable.bind(e),disable:C.disable.bind(e),handle:C.handle.bind(e),handleMouseEnter:C.handleMouseEnter.bind(e),handleMouseLeave:C.handleMouseLeave.bind(e),animateSlider:C.animateSlider.bind(e),releaseScroll:C.releaseScroll.bind(e),lastScrollTime:_.now(),lastEventBeforeSnap:void 0,recentWheelEvents:[]}})},on:{init:function(){var e=this;!e.params.mousewheel.enabled&&e.params.cssMode&&e.mousewheel.disable(),e.params.mousewheel.enabled&&e.mousewheel.enable()},destroy:function(){this.params.cssMode&&this.mousewheel.enable(),this.mousewheel.enabled&&this.mousewheel.disable()}}},{name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){var e=this;_.extend(e,{navigation:{init:M.init.bind(e),update:M.update.bind(e),destroy:M.destroy.bind(e),onNextClick:M.onNextClick.bind(e),onPrevClick:M.onPrevClick.bind(e)}})},on:{init:function(){this.navigation.init(),this.navigation.update()},toEdge:function(){this.navigation.update()},fromEdge:function(){this.navigation.update()},destroy:function(){this.navigation.destroy()},click:function(e){var t,a=this,i=a.navigation,s=i.$nextEl,i=i.$prevEl;!a.params.navigation.hideOnClick||E(e.target).is(i)||E(e.target).is(s)||(s?t=s.hasClass(a.params.navigation.hiddenClass):i&&(t=i.hasClass(a.params.navigation.hiddenClass)),!0===t?a.emit("navigationShow",a):a.emit("navigationHide",a),s&&s.toggleClass(a.params.navigation.hiddenClass),i&&i.toggleClass(a.params.navigation.hiddenClass))}}},{name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:function(e){return e},formatFractionTotal:function(e){return e},bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create:function(){var e=this;_.extend(e,{pagination:{init:P.init.bind(e),render:P.render.bind(e),update:P.update.bind(e),destroy:P.destroy.bind(e),dynamicBulletIndex:0}})},on:{init:function(){this.pagination.init(),this.pagination.render(),this.pagination.update()},activeIndexChange:function(){!this.params.loop&&void 0!==this.snapIndex||this.pagination.update()},snapIndexChange:function(){this.params.loop||this.pagination.update()},slidesLengthChange:function(){this.params.loop&&(this.pagination.render(),this.pagination.update())},snapGridLengthChange:function(){this.params.loop||(this.pagination.render(),this.pagination.update())},destroy:function(){this.pagination.destroy()},click:function(e){var t=this;t.params.pagination.el&&t.params.pagination.hideOnClick&&0<t.pagination.$el.length&&!E(e.target).hasClass(t.params.pagination.bulletClass)&&(!0===t.pagination.$el.hasClass(t.params.pagination.hiddenClass)?t.emit("paginationShow",t):t.emit("paginationHide",t),t.pagination.$el.toggleClass(t.params.pagination.hiddenClass))}}},{name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create:function(){var e=this;_.extend(e,{scrollbar:{init:z.init.bind(e),destroy:z.destroy.bind(e),updateSize:z.updateSize.bind(e),setTranslate:z.setTranslate.bind(e),setTransition:z.setTransition.bind(e),enableDraggable:z.enableDraggable.bind(e),disableDraggable:z.disableDraggable.bind(e),setDragPosition:z.setDragPosition.bind(e),getPointerPosition:z.getPointerPosition.bind(e),onDragStart:z.onDragStart.bind(e),onDragMove:z.onDragMove.bind(e),onDragEnd:z.onDragEnd.bind(e),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init:function(){this.scrollbar.init(),this.scrollbar.updateSize(),this.scrollbar.setTranslate()},update:function(){this.scrollbar.updateSize()},resize:function(){this.scrollbar.updateSize()},observerUpdate:function(){this.scrollbar.updateSize()},setTranslate:function(){this.scrollbar.setTranslate()},setTransition:function(e){this.scrollbar.setTransition(e)},destroy:function(){this.scrollbar.destroy()}}},{name:"parallax",params:{parallax:{enabled:!1}},create:function(){_.extend(this,{parallax:{setTransform:K.setTransform.bind(this),setTranslate:K.setTranslate.bind(this),setTransition:K.setTransition.bind(this)}})},on:{beforeInit:function(){this.params.parallax.enabled&&(this.params.watchSlidesProgress=!0,this.originalParams.watchSlidesProgress=!0)},init:function(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTranslate:function(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTransition:function(e){this.params.parallax.enabled&&this.parallax.setTransition(e)}}},{name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create:function(){var i=this,t={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}},s=("onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach(function(e){t[e]=Z[e].bind(i)}),_.extend(i,{zoom:t}),1);Object.defineProperty(i.zoom,"scale",{get:function(){return s},set:function(e){var t,a;s!==e&&(t=i.zoom.gesture.$imageEl?i.zoom.gesture.$imageEl[0]:void 0,a=i.zoom.gesture.$slideEl?i.zoom.gesture.$slideEl[0]:void 0,i.emit("zoomChange",e,t,a)),s=e}})},on:{init:function(){this.params.zoom.enabled&&this.zoom.enable()},destroy:function(){this.zoom.disable()},touchStart:function(e){this.zoom.enabled&&this.zoom.onTouchStart(e)},touchEnd:function(e){this.zoom.enabled&&this.zoom.onTouchEnd(e)},doubleTap:function(e){this.params.zoom.enabled&&this.zoom.enabled&&this.params.zoom.toggle&&this.zoom.toggle(e)},transitionEnd:function(){this.zoom.enabled&&this.params.zoom.enabled&&this.zoom.onTransitionEnd()},slideChange:function(){this.zoom.enabled&&this.params.zoom.enabled&&this.params.cssMode&&this.zoom.onTransitionEnd()}}},{name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create:function(){_.extend(this,{lazy:{initialImageLoaded:!1,load:Q.load.bind(this),loadInSlide:Q.loadInSlide.bind(this)}})},on:{beforeInit:function(){this.params.lazy.enabled&&this.params.preloadImages&&(this.params.preloadImages=!1)},init:function(){this.params.lazy.enabled&&!this.params.loop&&0===this.params.initialSlide&&this.lazy.load()},scroll:function(){this.params.freeMode&&!this.params.freeModeSticky&&this.lazy.load()},resize:function(){this.params.lazy.enabled&&this.lazy.load()},scrollbarDragMove:function(){this.params.lazy.enabled&&this.lazy.load()},transitionStart:function(){var e=this;e.params.lazy.enabled&&(e.params.lazy.loadOnTransitionStart||!e.params.lazy.loadOnTransitionStart&&!e.lazy.initialImageLoaded)&&e.lazy.load()},transitionEnd:function(){this.params.lazy.enabled&&!this.params.lazy.loadOnTransitionStart&&this.lazy.load()},slideChange:function(){this.params.lazy.enabled&&this.params.cssMode&&this.lazy.load()}}},{name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){var e=this;_.extend(e,{controller:{control:e.params.controller.control,getInterpolateFunction:k.getInterpolateFunction.bind(e),setTranslate:k.setTranslate.bind(e),setTransition:k.setTransition.bind(e)}})},on:{update:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},resize:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},observerUpdate:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},setTranslate:function(e,t){this.controller.control&&this.controller.setTranslate(e,t)},setTransition:function(e,t){this.controller.control&&this.controller.setTransition(e,t)}}},{name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}"}},create:function(){var t=this;_.extend(t,{a11y:{liveRegion:E('<span class="'+t.params.a11y.notificationClass+'" aria-live="assertive" aria-atomic="true"></span>')}}),Object.keys(J).forEach(function(e){t.a11y[e]=J[e].bind(t)})},on:{init:function(){this.params.a11y.enabled&&(this.a11y.init(),this.a11y.updateNavigation())},toEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},fromEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},paginationUpdate:function(){this.params.a11y.enabled&&this.a11y.updatePagination()},destroy:function(){this.params.a11y.enabled&&this.a11y.destroy()}}},{name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create:function(){var e=this;_.extend(e,{history:{init:$.init.bind(e),setHistory:$.setHistory.bind(e),setHistoryPopState:$.setHistoryPopState.bind(e),scrollToSlide:$.scrollToSlide.bind(e),destroy:$.destroy.bind(e)}})},on:{init:function(){this.params.history.enabled&&this.history.init()},destroy:function(){this.params.history.enabled&&this.history.destroy()},transitionEnd:function(){this.history.initialized&&this.history.setHistory(this.params.history.key,this.activeIndex)},slideChange:function(){var e=this;e.history.initialized&&e.params.cssMode&&e.history.setHistory(e.params.history.key,e.activeIndex)}}},{name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){var e=this;_.extend(e,{hashNavigation:{initialized:!1,init:L.init.bind(e),destroy:L.destroy.bind(e),setHash:L.setHash.bind(e),onHashCange:L.onHashCange.bind(e)}})},on:{init:function(){this.params.hashNavigation.enabled&&this.hashNavigation.init()},destroy:function(){this.params.hashNavigation.enabled&&this.hashNavigation.destroy()},transitionEnd:function(){this.hashNavigation.initialized&&this.hashNavigation.setHash()},slideChange:function(){this.hashNavigation.initialized&&this.params.cssMode&&this.hashNavigation.setHash()}}},{name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function(){var t=this;_.extend(t,{autoplay:{running:!1,paused:!1,run:I.run.bind(t),start:I.start.bind(t),stop:I.stop.bind(t),pause:I.pause.bind(t),onVisibilityChange:function(){"hidden"===document.visibilityState&&t.autoplay.running&&t.autoplay.pause(),"visible"===document.visibilityState&&t.autoplay.paused&&(t.autoplay.run(),t.autoplay.paused=!1)},onTransitionEnd:function(e){t&&!t.destroyed&&t.$wrapperEl&&e.target===this&&(t.$wrapperEl[0].removeEventListener("transitionend",t.autoplay.onTransitionEnd),t.$wrapperEl[0].removeEventListener("webkitTransitionEnd",t.autoplay.onTransitionEnd),t.autoplay.paused=!1,t.autoplay.running?t.autoplay.run():t.autoplay.stop())}}})},on:{init:function(){this.params.autoplay.enabled&&(this.autoplay.start(),document.addEventListener("visibilitychange",this.autoplay.onVisibilityChange))},beforeTransitionStart:function(e,t){this.autoplay.running&&(t||!this.params.autoplay.disableOnInteraction?this.autoplay.pause(e):this.autoplay.stop())},sliderFirstMove:function(){this.autoplay.running&&(this.params.autoplay.disableOnInteraction?this.autoplay.stop():this.autoplay.pause())},touchEnd:function(){this.params.cssMode&&this.autoplay.paused&&!this.params.autoplay.disableOnInteraction&&this.autoplay.run()},destroy:function(){this.autoplay.running&&this.autoplay.stop(),document.removeEventListener("visibilitychange",this.autoplay.onVisibilityChange)}}},{name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){_.extend(this,{fadeEffect:{setTranslate:ee.setTranslate.bind(this),setTransition:ee.setTransition.bind(this)}})},on:{beforeInit:function(){var e,t=this;"fade"===t.params.effect&&(t.classNames.push(t.params.containerModifierClass+"fade"),_.extend(t.params,e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0}),_.extend(t.originalParams,e))},setTranslate:function(){"fade"===this.params.effect&&this.fadeEffect.setTranslate()},setTransition:function(e){"fade"===this.params.effect&&this.fadeEffect.setTransition(e)}}},{name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){_.extend(this,{cubeEffect:{setTranslate:te.setTranslate.bind(this),setTransition:te.setTransition.bind(this)}})},on:{beforeInit:function(){var e,t=this;"cube"===t.params.effect&&(t.classNames.push(t.params.containerModifierClass+"cube"),t.classNames.push(t.params.containerModifierClass+"3d"),_.extend(t.params,e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0}),_.extend(t.originalParams,e))},setTranslate:function(){"cube"===this.params.effect&&this.cubeEffect.setTranslate()},setTransition:function(e){"cube"===this.params.effect&&this.cubeEffect.setTransition(e)}}},{name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){_.extend(this,{flipEffect:{setTranslate:ae.setTranslate.bind(this),setTransition:ae.setTransition.bind(this)}})},on:{beforeInit:function(){var e,t=this;"flip"===t.params.effect&&(t.classNames.push(t.params.containerModifierClass+"flip"),t.classNames.push(t.params.containerModifierClass+"3d"),_.extend(t.params,e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0}),_.extend(t.originalParams,e))},setTranslate:function(){"flip"===this.params.effect&&this.flipEffect.setTranslate()},setTransition:function(e){"flip"===this.params.effect&&this.flipEffect.setTransition(e)}}},{name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create:function(){_.extend(this,{coverflowEffect:{setTranslate:ie.setTranslate.bind(this),setTransition:ie.setTransition.bind(this)}})},on:{beforeInit:function(){var e=this;"coverflow"===e.params.effect&&(e.classNames.push(e.params.containerModifierClass+"coverflow"),e.classNames.push(e.params.containerModifierClass+"3d"),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)},setTranslate:function(){"coverflow"===this.params.effect&&this.coverflowEffect.setTranslate()},setTransition:function(e){"coverflow"===this.params.effect&&this.coverflowEffect.setTransition(e)}}},{name:"thumbs",params:{thumbs:{multipleActiveThumbs:!0,swiper:null,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){_.extend(this,{thumbs:{swiper:null,init:se.init.bind(this),update:se.update.bind(this),onThumbClick:se.onThumbClick.bind(this)}})},on:{beforeInit:function(){var e=this.params.thumbs;e&&e.swiper&&(this.thumbs.init(),this.thumbs.update(!0))},slideChange:function(){this.thumbs.swiper&&this.thumbs.update()},update:function(){this.thumbs.swiper&&this.thumbs.update()},resize:function(){this.thumbs.swiper&&this.thumbs.update()},observerUpdate:function(){this.thumbs.swiper&&this.thumbs.update()},setTransition:function(e){var t=this.thumbs.swiper;t&&t.setTransition(e)},beforeDestroy:function(){var e=this.thumbs.swiper;e&&this.thumbs.swiperCreated&&e&&e.destroy()}}}];return void 0===m.use&&(m.use=m.Class.use,m.installModule=m.Class.installModule),m.use(D),m});/*! 17570 * Creative Elements - live Theme & Page Builder 17571 * Copyright 2019-2023 WebshopWorks.com & Elementor.com 17572 */ 17573!function(n){var i={};function o(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};
17573return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.m=n,o.c=i,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(n,i,function(e){return t[e]}.bind(null,i));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=636)}([function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){e.exports=n(148)},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){var o=n(1);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),o(e,i.key,i)}}e.exports=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}},function(e,t,n){var i=n(123),o=n(118);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=i(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}},function(e,t,n){var o=n(93),r=n(14),s=n(131),a=n(163);e.exports=function(n){var i=s();return function(){var e,t=r(n);return e=i?(e=r(this).constructor,o(t,arguments,e)):t.apply(this,arguments),a(this,e)}}},function(e,t){e=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=e)},function(e,t,n){function m(e,t,n){var i,o,r,s=e&m.F,a=e&m.G,l=e&m.S,c=e&m.P,u=e&m.B,d=e&m.W,f=a?v:v[t]||(v[t]={}),h=f[_],p=a?g:l?g[t]:(g[t]||{})[_];for(i in n=a?t:n)(o=!s&&p&&void 0!==p[i])&&w(f,i)||(r=(o?p:n)[i],f[i]=a&&"function"!=typeof p[i]?n[i]:u&&o?y(r,g):d&&p[i]==r?function(i){function e(e,t,n){if(this instanceof i){switch(arguments.length){case 0:return new i;case 1:return new i(e);case 2:return new i(e,t)}return new i(e,t,n)}return i.apply(this,arguments)}return e[_]=i[_],e}(r):c&&"function"==typeof r?y(Function.call,r):r,c&&((f.virtual||(f.virtual={}))[i]=r,e&m.R&&h&&!h[i]&&b(h,i,r)))}var g=n(8),v=n(6),y=n(30),b=n(24),w=n(19),_="prototype";m.F=1,m.G=2,m.S=4,m.P=8,m.B=16,m.W=32,m.U=64,m.R=128,e.exports=m},function(e,t){e=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var i=n(71)("wks"),o=n(51),r=n(8).Symbol,s="function"==typeof r;(e.exports=function(e){return i[e]||(i[e]=s&&r[e]||(s?r:o)("Symbol."+e))}).store=i},function(e,t,n){var i=n(63)("wks"),o=n(64),r=n(15).Symbol,s="function"==typeof r;(e.exports=function(e){return i[e]||(i[e]=s&&r[e]||(s?r:o)("Symbol."+e))}).store=i},function(e,t,n){var i=n(9);e.exports=function(e){if(i(e))return e;throw TypeError(e+" is not an object!")}},function(e,t,n){e.exports=!n(20)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var i=n(150),o=n(112);function r(e){return t.exports=r=o?i:function(e){return e.__proto__||i(e)},r(e)}t.exports=r},function(e,t){e=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(e,t,n){var i=n(12),o=n(111),r=n(69),s=Object.defineProperty;t.f=n(13)?Object.defineProperty:function(e,t,n){if(i(e),t=r(t,!0),i(n),o)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){"use strict";var i=n(32),o=n(119)(5),r="find",s=!0;r in[]&&Array(1)[r](function(){s=!1}),i(i.P+i.F*s,"Array",{find:function(e){return o(this,e,1<arguments.length?arguments[1]:void 0)}}),n(78)(r)},function(e,t,n){var i=n(26);e.exports=function(e){if(i(e))return e;throw TypeError(e+" is not an object!")}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var i=n(104),o=n(56);e.exports=function(e){return i(o(e))}},function(i,e,t){var o=t(137),r=t(195),s=t(198);function a(e,t,n){return"undefined"!=typeof Reflect&&r?i.exports=a=r:i.exports=a=function(e,t,n){var e=s(e,t);if(e)return e=o(e,t),e.get?e.get.call(n):e.value},a(e,t,n||e)}i.exports=a},function(e,t,n){e.exports=n(199)},function(e,t,n){var i=n(16),o=n(43);e.exports=n(13)?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){e.exports=!n(28)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var i=n(44),o=n(91);e.exports=n(25)?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(t,e){function n(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=n=function(e){return typeof e}:t.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.exports=n},function(e,t,n){var r=n(42);e.exports=function(i,o,e){if(r(i),void 0===o)return i;switch(e){case 1:return function(e){return i.call(o,e)};case 2:return function(e,t){return i.call(o,e,t)};case 3:return function(e,t,n){return i.call(o,e,t,n)}}return function(){return i.apply(o,arguments)}}},function(e,t,n){var i=n(56);e.exports=function(e){return Object(i(e))}},function(e,t,n){function h(e,t,n){var i,o,r,s=e&h.F,a=e&h.G,l=e&h.P,c=e&h.B,u=a?p:e&h.S?p[t]||(p[t]={}):(p[t]||{})[b],d=a?m:m[t]||(m[t]={}),f=d[b]||(d[b]={});for(i in n=a?t:n)o=((r=!s&&u&&void 0!==u[i])?u:n)[i],r=c&&r?y(o,p):l&&"function"==typeof o?y(Function.call,o):o,u&&v(u,i,o,e&h.U),d[i]!=o&&g(d,i,r),l&&f[i]!=o&&(f[i]=o)}var p=n(15),m=n(45),g=n(27),v=n(33),y=n(58),b="prototype";p.core=m,h.F=1,h.G=2,h.S=4,h.P=8,h.B=16,h.W=32,h.U=64,h.R=128,e.exports=h},function(e,t,n){var r=n(15),s=n(27),a=n(54),l=n(64)("src"),i=n(126),o="toString",c=(""+i).split(o);n(45).inspectSource=function(e){return i.call(e)},(e.exports=function(e,t,n,i){var o="function"==typeof n;o&&!a(n,"name")&&s(n,"name",t),e[t]!==n&&(o&&!a(n,l)&&s(n,l,e[t]?""+e[t]:c.join(String(t))),e===r?e[t]=n:i?e[t]?e[t]=n:s(e,t,n):(delete e[t],s(e,t,n
17573)))})(Function.prototype,o,function(){return"function"==typeof this&&this[l]||i.call(this)})},function(e,t){e.exports={}},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var i=n(113),o=n(73);e.exports=Object.keys||function(e){return i(e,o)}},,function(t,e,n){var i=n(138),o=n(105);function r(e){return t.exports=r="function"==typeof o&&"symbol"==typeof i?function(e){return typeof e}:function(e){return e&&"function"==typeof o&&e.constructor===o&&e!==o.prototype?"symbol":typeof e},r(e)}t.exports=r},function(e,t,n){var i=n(50),o=Math.min;e.exports=function(e){return 0<e?o(i(e),9007199254740991):0}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var i=n(18),o=n(116),r=n(108),s=Object.defineProperty;t.f=n(25)?Object.defineProperty:function(e,t,n){if(i(e),t=r(t,!0),i(n),o)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t){e=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=e)},function(e,t){e.exports=!0},function(e,t,n){function i(){}var o=n(12),r=n(128),s=n(73),a=n(70)("IE_PROTO"),l="prototype",c=function(){var e=n(92)("iframe"),t=s.length;for(e.style.display="none",n(129).appendChild(e),e.src="javascript:",(e=e.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;t--;)delete c[l][s[t]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(i[l]=o(e),n=new i,i[l]=null,n[a]=e):n=c(),void 0===t?n:r(n,t)}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?i:n)(e)}},function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},function(e,t,n){var i=n(16).f,o=n(19),r=n(10)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,r)&&i(e,r,{configurable:!0,value:t})}},function(e,t,n){"use strict";var S=n(18),k=n(81),x=n(41),$=n(50),E=n(109),C=n(89),M=Math.max,T=Math.min,F=Math.floor,P=/\$([$&`']|\d\d?|<[^>]*>)/g,I=/\$([$&`']|\d\d?)/g;n(90)("replace",2,function(o,r,w,_){return[function(e,t){var n=o(this),i=null==e?void 0:e[r];return void 0!==i?i.call(e,n,t):w.call(String(n),e,t)},function(e,t){var n=_(w,e,this,t);if(n.done)return n.value;for(var i,o=S(e),r=String(this),s="function"==typeof t,a=(s||(t=String(t)),o.global),l=(a&&(i=o.unicode,o.lastIndex=0),[]);null!==(h=C(o,r))&&(l.push(h),a);)""===String(h[0])&&(o.lastIndex=E(r,x(o.lastIndex),i));for(var c,u="",d=0,f=0;f<l.length;f++){for(var h=l[f],p=String(h[0]),m=M(T($(h.index),r.length),0),g=[],v=1;v<h.length;v++)g.push(void 0===(c=h[v])?c:String(c));var y=h.groups,b=s?(b=[p].concat(g,m,r),void 0!==y&&b.push(y),String(t.apply(void 0,b))):function(r,s,a,l,c,e){var u=a+r.length,d=l.length,t=I;void 0!==c&&(c=k(c),t=P);return w.call(e,t,function(e,t){var n;switch(t.charAt(0)){case"$":return"$";case"&":return r;case"`":return s.slice(0,a);case"'":return s.slice(u);case"<":n=c[t.slice(1,-1)];break;default:var i,o=+t;if(0==o)return e;if(d<o)return 0!==(i=F(o/10))&&i<=d?void 0===l[i-1]?t.charAt(1):l[i-1]+t.charAt(1):e;n=l[o-1]}return void 0===n?"":n})}(p,r,m,g,y,t);d<=m&&(u+=r.slice(d,m)+b,d=m+p.length)}return u+r.slice(d)}]})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var i=n(48),o=n(43),r=n(21),s=n(69),a=n(19),l=n(111),c=Object.getOwnPropertyDescriptor;t.f=n(13)?c:function(e,t){if(e=r(e),t=s(t,!0),l)try{return c(e,t)}catch(e){}if(a(e,t))return o(!i.f.call(e,t),e[t])}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";var i=n(165)(!0);n(94)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e=this._t,t=this._i;return t>=e.length?{value:void 0,done:!0}:(e=i(e,t),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){var r=n(79);e.exports=function(i,o,e){if(r(i),void 0===o)return i;switch(e){case 1:return function(e){return i.call(o,e)};case 2:return function(e,t){return i.call(o,e,t)};case 3:return function(e,t,n){return i.call(o,e,t,n)}}return function(){return i.apply(o,arguments)}}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){n(167);for(var i=n(8),o=n(24),r=n(34),s=n(10)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<a.length;l++){var c=a[l],u=i[c],u=u&&u.prototype;u&&!u[s]&&o(u,s,c),r[c]=r.Array}},,,function(e,t,n){var i=n(45),o=n(15),r="__core-js_shared__",s=o[r]||(o[r]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n(100)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},,,function(e,t,n){var i=n(72),o=Math.min;e.exports=function(e){return 0<e?o(i(e),9007199254740991):0}},function(e,t,n){"use strict";var d=n(120),v=n(18),y=n(143),b=n(109),w=n(41),_=n(89),f=n(83),i=n(28),S=Math.min,h=[].push,s="split",k="length",x="lastIndex",$=4294967295,E=!i(function(){RegExp($,"y")});n(90)("split",2,function(o,r,p,m){var g="c"=="abbc"[s](/(b)*/)[1]||4!="test"[s](/(?:)/,-1)[k]||2!="ab"[s](/(?:ab)*/)[k]||4!="."[s](/(.?)(.?)/)[k]||1<"."[s](/()()/)[k]||""[s](/.?/)[k]?function(e,t){var n=String(this);if(void 0===e&&0===t)return[];if(!d(e))return p.call(n,e,t);for(var i,o,r,s=[],a=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),l=0,c=void 0===t?$:t>>>0,u=new RegExp(e.source,a+"g");
vendor: 5,629 bytes, line 17573
17573(i=f.call(u,n))&&!(l<(o=u[x])&&(s.push(n.slice(l,i.index)),1<i[k]&&i.index<n[k]&&h.apply(s,i.slice(1)),r=i[0][k],l=o,s[k]>=c));)u[x]===i.index&&u[x]++;return l===n[k]?!r&&u.test("")||s.push(""):s.push(n.slice(l)),s[k]>c?s.slice(0,c):s}:"0"[s](void 0,0)[k]?function(e,t){return void 0===e&&0===t?[]:p.call(this,e,t)}:p;return[function(e,t){var n=o(this),i=null==e?void 0:e[r];return void 0!==i?i.call(e,n,t):g.call(String(n),e,t)},function(e,t){var n=m(g,e,this,t,g!==p);if(n.done)return n.value;var n=v(e),i=String(this),e=y(n,RegExp),o=n.unicode,r=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(E?"y":"g"),s=new e(E?n:"^(?:"+n.source+")",r),a=void 0===t?$:t>>>0;if(0==a)return[];if(0===i.length)return null===_(s,i)?[i]:[];for(var l=0,c=0,u=[];c<i.length;){s.lastIndex=E?c:0;var d,f=_(s,E?i:i.slice(c));if(null===f||(d=S(w(s.lastIndex+(E?0:c)),i.length))===l)c=b(i,c,o);else{if(u.push(i.slice(l,c)),u.length===a)return u;for(var h=1;h<=f.length-1;h++)if(u.push(f[h]),u.length===a)return u;c=l=d}}return u.push(i.slice(l)),u}]})},function(e,t,n){var o=n(9);e.exports=function(e,t){if(!o(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!o(i=n.call(e))||"function"==typeof(n=e.valueOf)&&!o(i=n.call(e))||!t&&"function"==typeof(n=e.toString)&&!o(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var i=n(71)("keys"),o=n(51);e.exports=function(e){return i[e]||(i[e]=o(e))}},function(e,t,n){var i=n(6),o=n(8),r="__core-js_shared__",s=o[r]||(o[r]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n(46)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?i:n)(e)}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){t.f=n(10)},function(e,t,n){var i=n(8),o=n(6),r=n(46),s=n(74),a=n(16).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=!r&&i.Symbol||{});"_"==e.charAt(0)||e in t||a(t,e,{value:s.f(e)})}},,function(e,t,n){function i(e){a(e,o,{value:{i:"O"+ ++l,w:{}}})}var o=n(51)("meta"),r=n(9),s=n(19),a=n(16).f,l=0,c=Object.isExtensible||function(){return!0},u=!n(20)(function(){return c(Object.preventExtensions({}))}),d=e.exports={KEY:o,NEED:!1,fastKey:function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,o)){if(!c(e))return"F";if(!t)return"E";i(e)}return e[o].i},getWeak:function(e,t){if(!s(e,o)){if(!c(e))return!0;if(!t)return!1;i(e)}return e[o].w},onFreeze:function(e){return u&&d.NEED&&c(e)&&!s(e,o)&&i(e),e}}},function(e,t,n){var i=n(11)("unscopables"),o=Array.prototype;null==o[i]&&n(27)(o,i,{}),e.exports=function(e){o[i][e]=!0}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var i=n(19),o=n(31),r=n(70)("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),i(e,r)?e[r]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},function(e,t,n){var i=n(36);e.exports=function(e){return Object(i(e))}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){"use strict";var i,o,s=n(110),a=RegExp.prototype.exec,l=String.prototype.replace,n=a,c="lastIndex",u=(i=/a/,o=/b*/g,a.call(i,"a"),a.call(o,"a"),0!==i[c]||0!==o[c]),d=void 0!==/()??/.exec("")[1];e.exports=n=u||d?function(e){var t,n,i,o,r=this;return d&&(n=new RegExp("^"+r.source+"$(?!\\s)",s.call(r))),u&&(t=r[c]),i=a.call(r,e),u&&i&&(r[c]=r.global?i.index+i[0].length:t),d&&i&&1<i.length&&l.call(i[0],n,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)}),i}:n},function(e,t,n){var o=n(7),r=n(6),s=n(20);e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],i={};i[e]=t(n),o(o.S+o.F*s(function(){n(1)}),"Object",i)}},,function(e,t,n){var d=n(30),f=n(133),h=n(134),p=n(12),m=n(67),g=n(114),v={},y={};(t=e.exports=function(e,t,n,i,o){var r,s,a,l,o=o?function(){return e}:g(e),c=d(n,i,t?2:1),u=0;if("function"!=typeof o)throw TypeError(e+" is not iterable!");if(h(o)){for(r=m(e.length);u<r;u++)if((l=t?c(p(s=e[u])[0],s[1]):c(e[u]))===v||l===y)return l}else for(a=o.call(e);!(s=a.next()).done;)if((l=f(a,c,s.value,t))===v||l===y)return l}).BREAK=v,t.RETURN=y},,function(e,t,n){e.exports=n(24)},function(e,t,n){"use strict";var i=n(103),o=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"==typeof n){n=n.call(e,t);if("object"!=typeof n)throw new TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==i(e))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},function(e,t,n){"use strict";n(182);var i,l=n(33),c=n(27),u=n(28),d=n(36),f=n(11),h=n(83),p=f("species"),m=!u(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),g=(i=(n=/(?:)/).exec,n.exec=function(){return i.apply(this,arguments)},2===(n="ab".split(n)).length&&"a"===n[0]&&"b"===n[1]);e.exports=function(n,e,t){var r,i,o=f(n),s=!u(function(){var e={};return e[o]=function(){return 7},7!=""[n](e)}),a=s?!u(function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},"split"===n&&(t.constructor={},t.constructor[p]=function(){return t}),t[o](""),!e}):void 0;s&&a&&("replace"!==n||m)&&("split"!==n||g)||(r=/./[o],t=(a=t(d,o,""[n],function(e,t,n,i,o){return t.exec===h?s&&!o?{done:!0,value:r.call(t,n,i)}:{done:!0,value:e.call(n,t,i)}:{done:!1}}
17573))[0],i=a[1],l(String.prototype,n,t),c(RegExp.prototype,o,2==e?function(e,t){return i.call(e,this,t)}:function(e){return i.call(e,this)}))}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var i=n(9),o=n(8).document,r=i(o)&&i(o.createElement);e.exports=function(e){return r?o.createElement(e):{}}},function(e,t,n){e.exports=n(160)},function(e,t,n){"use strict";function v(){return this}var y=n(46),b=n(7),w=n(88),_=n(24),S=n(34),k=n(166),x=n(52),$=n(80),E=n(10)("iterator"),C=!([].keys&&"next"in[].keys()),M="values";e.exports=function(e,t,n,i,o,r,s){k(n,t,i);function a(e){if(!C&&e in f)return f[e];switch(e){case"keys":case M:return function(){return new n(this,e)}}return function(){return new n(this,e)}}var l,c,i=t+" Iterator",u=o==M,d=!1,f=e.prototype,h=f[E]||f["@@iterator"]||o&&f[o],p=h||a(o),m=o?u?a("entries"):p:void 0,g="Array"==t&&f.entries||h;if(g&&(g=$(g.call(new e)))!==Object.prototype&&g.next&&(x(g,i,!0),y||"function"==typeof g[E]||_(g,E,v)),u&&h&&h.name!==M&&(d=!0,p=function(){return h.call(this)}),y&&!s||!C&&!d&&f[E]||_(f,E,p),S[t]=p,S[i]=v,o)if(l={values:u?p:a(M),keys:r?p:a("keys"),entries:m},s)for(c in l)c in f||w(f,c,l[c]);else b(b.P+b.F*(C||d),t,l);return l}},function(e,t,n){var i=n(59);e.exports=Array.isArray||function(e){return"Array"==i(e)}},function(e,t,n){var i=n(102),o=n(36);e.exports=function(e){return i(o(e))}},function(e,t,n){"use strict";var i=n(103),o={};o[n(11)("toStringTag")]="z",o+""!="[object z]"&&n(33)(Object.prototype,"toString",function(){return"[object "+i(this)+"]"},!0)},function(e,t,n){var i=n(26),o=n(15).document,r=i(o)&&i(o.createElement);e.exports=function(e){return r?o.createElement(e):{}}},function(e,t,n){"use strict";var u=n(18),d=n(41),f=n(109),h=n(89);n(90)("match",1,function(i,o,l,c){return[function(e){var t=i(this),n=null==e?void 0:e[o];return void 0!==n?n.call(e,t):new RegExp(e)[o](String(t))},function(e){var t=c(l,e,this);if(t.done)return t.value;var n=u(e),i=String(this);if(!n.global)return h(n,i);for(var o=n.unicode,r=[],s=n.lastIndex=0;null!==(a=h(n,i));){var a=String(a[0]);""===(r[s]=a)&&(n.lastIndex=f(i,d(n.lastIndex),o)),s++}return 0===s?null:r}]})},function(e,t){e.exports=!1},function(e,t,n){var i=n(113),o=n(73).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,o)}},function(e,t,n){var i=n(37);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},function(e,t,n){var i=n(37),o=n(11)("toStringTag"),r="Arguments"==i(function(){return arguments}());e.exports=function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,t){try{return e[t]}catch(e){}}(e=Object(e),o))?t:r?i(e):"Object"==(t=i(e))&&"function"==typeof e.callee?"Arguments":t}},function(e,t,n){var i=n(59);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},function(e,t,n){e.exports=n(169)},function(e,t){},function(e,t,n){var i=n(59),o=n(10)("toStringTag"),r="Arguments"==i(function(){return arguments}());e.exports=function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,t){try{return e[t]}catch(e){}}(e=Object(e),o))?t:r?i(e):"Object"==(t=i(e))&&"function"==typeof e.callee?"Arguments":t}},function(e,t,n){var o=n(26);e.exports=function(e,t){if(!o(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!o(i=n.call(e))||"function"==typeof(n=e.valueOf)&&!o(i=n.call(e))||!t&&"function"==typeof(n=e.toString)&&!o(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){"use strict";var i=n(181)(!0);e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},function(e,t,n){"use strict";var i=n(18);e.exports=function(){var e=i(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){e.exports=!n(13)&&!n(20)(function(){return 7!=Object.defineProperty(n(92)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){e.exports=n(153)},function(e,t,n){var s=n(19),a=n(21),l=n(158)(!1),c=n(70)("IE_PROTO");e.exports=function(e,t){var n,i=a(e),o=0,r=[];for(n in i)n!=c&&s(i,n)&&r.push(n);for(;t.length>
17573o;)!s(i,n=t[o++])||~l(r,n)||r.push(n);return r}},function(e,t,n){var i=n(107),o=n(10)("iterator"),r=n(34);e.exports=n(6).getIteratorMethod=function(e){if(null!=e)return e[o]||e["@@iterator"]||r[i(e)]}},function(e,t,n){e.exports=n(254)},function(e,t,n){e.exports=!n(25)&&!n(28)(function(){return 7!=Object.defineProperty(n(98)("div"),"a",{get:function(){return 7}}).a})},,function(n,e,t){var i=t(112);function o(e,t){return n.exports=o=i||function(e,t){return e.__proto__=t,e},o(e,t)}n.exports=o},function(e,t,n){var b=n(58),w=n(102),_=n(81),S=n(41),i=n(140);e.exports=function(d,e){var f=1==d,h=2==d,p=3==d,m=4==d,g=6==d,v=5==d||g,y=e||i;return function(e,t,n){for(var i,o,r=_(e),s=w(r),a=b(t,n,3),l=S(s.length),c=0,u=f?y(e,l):h?y(e,0):void 0;c<l;c++)if((v||c in s)&&(o=a(i=s[c],c,r),d))if(f)u[c]=o;else if(o)switch(d){case 3:return!0;case 5:return i;case 6:return c;case 2:u.push(i)}else if(m)return!1;return g?-1:p||m?m:u}}},function(e,t,n){var i=n(26),o=n(37),r=n(11)("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[r])?!!t:"RegExp"==o(e))}},,,function(e,t,n){e.exports=n(156)},function(e,t,n){var o=n(24);e.exports=function(e,t,n){for(var i in t)n&&e[i]?e[i]=t[i]:o(e,i,t[i]);return e}},function(e,t){e.exports=function(e,t,n,i){if(!(e instanceof t)||void 0!==i&&i in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){e.exports=n(63)("native-function-to-string",Function.toString)},,function(e,t,n){var s=n(16),a=n(12),l=n(38);e.exports=n(13)?Object.defineProperties:function(e,t){a(e);for(var n,i=l(t),o=i.length,r=0;r<o;)s.f(e,n=i[r++],t[n]);return e}},function(e,t,n){n=n(8).document;e.exports=n&&n.documentElement},function(e,t){e.exports=function(e,t,n){var i=void 0===n;switch(t.length){case 0:return i?e():e.call(n);case 1:return i?e(t[0]):e.call(n,t[0]);case 2:return i?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return i?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return i?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){var i=n(93);e.exports=function(){if("undefined"==typeof Reflect||!i)return!1;if(i.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(i(Date,[],function(){})),!0}catch(e){return!1}}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var o=n(12);e.exports=function(t,e,n,i){try{return i?e(o(n)[0],n[1]):e(n)}catch(e){i=t.return;throw void 0!==i&&o(i.call(t)),e}}},function(e,t,n){var i=n(34),o=n(10)("iterator"),r=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||r[o]===e)}},,function(e,t,n){e.exports=n(243)},function(e,t,n){e.exports=n(193)},function(e,t,n){e.exports=n(164)},function(A,B,e){"use strict";function i(e){var t=M[e]=b(S[$]);return t._k=e,t}function n(e,t){m(e);for(var n,i=W(t=g(t)),o=0,r=i.length;o<r;)j(e,n=i[o++],t[n]);return e}function t(e){var t=ee.call(this,e=v(e,!0));return!(this===F&&l(M,e)&&!l(T,e))&&(!(t||!l(this,e)||!l(M,e)||l(this,E)&&this[E][e])||t)}function o(e,t){var n;if(e=g(e),t=v(t,!0),e!==F||!l(M,t)||l(T,t))return!(n=Z(e,t))||!l(M,t)||l(e,E)&&e[E][t]||(n.enumerable=!0),n}function r(e){for(var t,n=K(g(e)),i=[],o=0;n.length>o;)l(M,t=n[o++])||t==E||t==V||i.push(t);return i}function s(e){for(var t,n=e===F,i=K(n?T:g(e)),o=[],r=0;i.length>r;)!l(M,t=i[r++])||n&&!l(F,t)||o.push(M[t]);return o}var a=e(8),l=e(19),c=e(13),u=e(7),L=e(88),V=e(77).KEY,d=e(20),f=e(71),h=e(52),R=e(51),p=e(10),H=e(74),z=e(75),W=e(170),Q=e(95),m=e(12),N=e(9),q=e(31),g=e(21),v=e(69),y=e(43),b=e(47),U=e(171),X=e(55),w=e(82),G=e(16),Y=e(38),Z=X.f,_=G.f,K=U.f,S=a.Symbol,k=a.JSON,x=k&&k.stringify,$="prototype",E=p("_hidden"),J=p("toPrimitive"),ee={}.propertyIsEnumerable,C=f("symbol-registry"),M=f("symbols"),T=f("op-symbol
17573s"),F=Object[$],f="function"==typeof S&&!!w.f,P=a.QObject,I=!P||!P[$]||!P[$].findChild,O=c&&d(function(){return 7!=b(_({},"a",{get:function(){return _(this,"a",{value:7}).a}})).a})?function(e,t,n){var i=Z(F,t);i&&delete F[t],_(e,t,n),i&&e!==F&&_(F,t,i)}:_,D=f&&"symbol"==typeof S.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof S},j=function(e,t,n){return e===F&&j(T,t,n),m(e),t=v(t,!0),m(n),l(M,t)?(n.enumerable?(l(e,E)&&e[E][t]&&(e[E][t]=!1),n=b(n,{enumerable:y(0,!1)})):(l(e,E)||_(e,E,y(1,{})),e[E][t]=!0),O(e,t,n)):_(e,t,n)};f||(L((S=function(){if(this instanceof S)throw TypeError("Symbol is not a constructor!");var t=R(0<arguments.length?arguments[0]:void 0),n=function(e){this===F&&n.call(T,e),l(this,E)&&l(this[E],t)&&(this[E][t]=!1),O(this,t,y(1,e))};return c&&I&&O(F,t,{configurable:!0,set:n}),i(t)})[$],"toString",function(){return this._k}),X.f=o,G.f=j,e(101).f=U.f=r,e(48).f=t,w.f=s,c&&!e(46)&&L(F,"propertyIsEnumerable",t,!0),H.f=function(e){return i(p(e))}),u(u.G+u.W+u.F*!f,{Symbol:S});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)p(te[ne++]);for(var ie=Y(p.store),oe=0;ie.length>oe;)z(ie[oe++]);u(u.S+u.F*!f,"Symbol",{for:function(e){return l(C,e+="")?C[e]:C[e]=S(e)},keyFor:function(e){if(!D(e))throw TypeError(e+" is not a symbol!");for(var t in C)if(C[t]===e)return t},useSetter:function(){I=!0},useSimple:function(){I=!1}}),u(u.S+u.F*!f,"Object",{create:function(e,t){return void 0===t?b(e):n(b(e),t)},defineProperty:j,defineProperties:n,getOwnPropertyDescriptor:o,getOwnPropertyNames:r,getOwnPropertySymbols:s});P=d(function(){w.f(1)});u(u.S+u.F*P,"Object",{getOwnPropertySymbols:function(e){return w.f(q(e))}}),k&&u(u.S+u.F*(!f||d(function(){var e=S();return"[null]"!=x([e])||"{}"!=x({a:e})||"{}"!=x(Object(e))})),"JSON",{stringify:function(e){for(var t,n,i=[e],o=1;o<arguments.length;)i.push(arguments[o++]);if(n=t=i[1],(N(t)||void 0!==e)&&!D(e))return Q(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!D(t))return t}),i[1]=t,x.apply(k,i)}}),S[$][J]||e(24)(S[$],J,S[$].valueOf),h(S,"Symbol"),h(Math,"Math",!0),h(a.JSON,"JSON",!0)},function(e,t,n){var i=n(141);e.exports=function(e,t){return new(i(e))(t)}},function(e,t,n){var i=n(26),o=n(142),r=n(11)("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=void 0),i(t)&&null===(t=t[r])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){var i=n(37);e.exports=Array.isArray||function(e){return"Array"==i(e)}},function(e,t,n){var i=n(18),o=n(79),r=n(11)("species");e.exports=function(e,t){var e=i(e).constructor;return void 0===e||null==(e=i(e)[r])?t:o(e)}},,,function(e,t,n){var l=n(96),c=n(41),u=n(186);e.exports=function(a){return function(e,t,n){var i,o=l(e),r=c(o.length),s=u(n,r);if(a&&t!=t){for(;s<r;)if((i=o[s++])!=i)return!0}else for(;s<r;s++)if((a||s in o)&&o[s]===t)return a||s||0;return!a&&-1}}},,function(e,t,n){n(149);var i=n(6).Object;e.exports=function(e,t,n){return i.defineProperty(e,t,n)}},function(e,t,n){var i=n(7);i(i.S+i.F*!n(13),"Object",{defineProperty:n(16).f})},function(e,t,n){e.exports=n(151)},function(e,t,n){n(152),e.exports=n(6).Object.getPrototypeOf},function(e,t,n){var i=n(31),o=n(80);n(84)("getPrototypeOf",function(){return function(e){return o(i(e))}})},function(e,t,n){n(154),e.exports=n(6).Object.setPrototypeOf},function(e,t,n){var i=n(7);i(i.S,"Object",{setPrototypeOf:n(155).set})},function(e,t,o){function r(e,t){if(i(e),!n(t)&&null!==t)throw TypeError(t+": can't set as prototype!")}var n=o(9),i=o(12);e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,n,i){try{(i=o(30)(Function.call,o(55).f(Object.prototype,"__proto__").set,2))(e,[]),n=!(e instanceof Array)}catch(e){n=!0}return function(e,t){return r(e,t),n?e.__proto__=t:i(e,t),e}}({},!1):void 0),check:r}},function(e,t,n){n(157);var i=n(6).Object;e.exports=function(e,t){return i.create(e,t)}},function(e,t,n){var i=n(7);i(i.S,"Object",{create:n(47)})},function(e,t,n){var l=n(21),c=n(67),u=n(159);e.exports=function(a){return function(e,t,n){var i,o=l(e),r=c(o.length),s=u(n,r);if(a&&t!=t){for(;s<r;)if((i=o[s++])!=i)return!0}else for(;s<r;s++)if((a||s in o)&&o[s]===t)return a||s||0;return!a&&-1}}},function(e,t,n){var i=n(72),o=Math.max,r=Math.min;e.exports=function(e,t){return(e=i(e))<0?o(e+t,0):r(e,t)}},function(e,t,n){n(161),e.exports=n(6).Reflect.construct},function(e,t,n){var i=n(7),o=n(47),r=n(42),s=n(12),a=n(9),l=n(20),c=n(162),u=(n(8).Reflect||{}).construct,d=l(function(){function e(){}return!(u(function(){},[],e)instanceof e)}),f=!l(function(){u(function(){})});i(i.S+i.F*(d||f),"Reflect",{construct:function(e,t){r(e),s(t);var n=arguments.length<3?e:r(arguments[2]);if(f&&!d)return u(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var i=[null];return i.push.apply(i,t),new(c.apply(e,i))}i=n.prototype,n=o(a(i)?i:Object.prototype),i=Function.apply.call(e,n,t);return a(i)?i:n}})},function(e,t,n){"use strict";var i=n(42),o=n(9),u=n(130),d=[].slice,f={};e.exports=Function.bind||function(s){var a=i(this),l=d.call(arguments,1
17573),c=function(){var e=l.concat(d.call(arguments));if(this instanceof c){var t=a,n=e.length,i=e;if(!(n in f)){for(var o=[],r=0;r<n;r++)o[r]="a["+r+"]";f[n]=Function("F,a","return new F("+o.join(",")+")")}return f[n](t,i)}return u(a,e,s)};return o(a.prototype)&&(c.prototype=a.prototype),c}},function(e,t,n){var i=n(40),o=n(49);e.exports=function(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?o(e):t}},function(e,t,n){n(57),n(60),e.exports=n(74).f("iterator")},function(e,t,n){var r=n(72),s=n(56);e.exports=function(o){return function(e,t){var n,e=String(s(e)),t=r(t),i=e.length;return t<0||i<=t?o?"":void 0:(n=e.charCodeAt(t))<55296||56319<n||t+1===i||(i=e.charCodeAt(t+1))<56320||57343<i?o?e.charAt(t):n:o?e.slice(t,t+2):i-56320+(n-55296<<10)+65536}}},function(e,t,n){"use strict";var i=n(47),o=n(43),r=n(52),s={};n(24)(s,n(10)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=i(s,{next:o(1,n)}),r(e,t+" Iterator")}},function(e,t,n){"use strict";var i=n(168),o=n(132),r=n(34),s=n(21);e.exports=n(94)(Array,"Array",function(e,t){this._t=s(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),r.Arguments=r.Array,i("keys"),i("values"),i("entries")},function(e,t){e.exports=function(){}},function(e,t,n){n(139),n(106),n(172),n(173),e.exports=n(6).Symbol},function(e,t,n){var a=n(38),l=n(82),c=n(48);e.exports=function(e){var t=a(e),n=l.f;if(n)for(var i,o=n(e),r=c.f,s=0;o.length>s;)r.call(e,i=o[s++])&&t.push(i);return t}},function(e,t,n){var i=n(21),o=n(101).f,r={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){if(!s||"[object Window]"!=r.call(e))return o(i(e));try{return o(e)}catch(e){return s.slice()}}},function(e,t,n){n(75)("asyncIterator")},function(e,t,n){n(75)("observable")},function(e,t,n){var l=n(13),c=n(38),u=n(21),d=n(48).f;e.exports=function(a){return function(e){for(var t,n=u(e),i=c(n),o=i.length,r=0,s=[];r<o;)t=i[r++],l&&!d.call(n,t)||s.push(a?[t,n[t]]:n[t]);return s}}},function(e,t){e.exports="\t\n\v\f\r  áá ââââââ
ââââââ¯âã\u2028\u2029\ufeff"},,,,,,function(e,t,n){var r=n(50),s=n(36);e.exports=function(o){return function(e,t){var n,e=String(s(e)),t=r(t),i=e.length;return t<0||i<=t?o?"":void 0:(n=e.charCodeAt(t))<55296||56319<n||t+1===i||(i=e.charCodeAt(t+1))<56320||57343<i?o?e.charAt(t):n:o?e.slice(t,t+2):i-56320+(n-55296<<10)+65536}}},function(e,t,n){"use strict";var i=n(83);n(32)({target:"RegExp",proto:!0,forced:i!==/./.exec},{exec:i})},function(e,t,n){e.exports=n(273)},,function(e,t,n){var r=n(10)("iterator"),s=!1;try{var i=[7][r]();i.return=function(){s=!0},Array.from(i,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!s)return!1;var n=!1;try{var i=[7],o=i[r]();o.next=function(){return{done:n=!0}},i[r]=function(){return o},e(i)}catch(e){}return n}},function(e,t,n){var i=n(50),o=Math.max,r=Math.min;e.exports=function(e,t){return(e=i(e))<0?o(e+t,0):r(e,t)}},function(e,t,n){"use strict";n(282);function i(e){n(33)(RegExp.prototype,a,e,!0)}var o=n(18),r=n(110),s=n(25),a="toString",l=/./[a];n(28)(function(){return"/a/b"!=l.call({source:"a",flags:"b"})})?i(function(){var e=o(this);return"/".concat(e.source,"/","flags"in e?e.flags:!s&&e instanceof RegExp?r.call(e):void 0)}):l.name!=a&&i(function(){return l.call(this)})},,,,,,function(e,t,n){n(194);var i=n(6).Object;e.exports=function(e,t){return i.getOwnPropertyDescriptor(e,t)}},function(e,t,n){var i=n(21),o=n(55).f;n(84)("getOwnPropertyDescriptor",function(){return function(e,t){return o(i(e),t)}})},function(e,t,n){e.exports=n(196)},function(e,t,n){n(197),e.exports=n(6).Reflect.get},function(e,t,n){var r=n(55),s=n(80),a=n(19),i=n(7),l=n(9),c=n(12);i(i.S,"Reflect",{get:function e(t,n){var i,o=arguments.length<3?t:arguments[2];return c(t)===o?t[n]:(i=r.f(t,n))?a(i,"value")?i.value:void 0!==i.get?i.get.call(o):void 0:l(i=s(t))?e(i,n,o):void 0}})},function(e,t,n){var i=n(14);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=i(e)););return e}},function(e,t,n){n(200),e.exports=n(6).Object.keys},function(e,t,n){var i=n(31),o=n(38);n(84)("keys",function(){return function(e){return o(i(e))}})},,,,,,function(e,t,n){"use strict";var i=n(32),o=n(146)(!0);i(i.P,"Array",{includes:function(e){return o(this,e,1<arguments.length?arguments[1]:void 0)}}),n(78)("includes")},function(e,t,n){"use strict";
17573n(1)(t,"__esModule",{value:!0}),t.default=void 0;n=navigator.userAgent,n={webkit:-1!==n.indexOf("AppleWebKit"),firefox:-1!==n.indexOf("Firefox"),ie:/Trident|MSIE/.test(n),edge:-1!==n.indexOf("Edge"),mac:-1!==n.indexOf("Macintosh")};t.default=n},,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var i=n(32),o=n(232),r="includes";i(i.P+i.F*n(233)(r),"String",{includes:function(e){return!!~o(this,e,r).indexOf(e,1<arguments.length?arguments[1]:void 0)}})},function(e,t,n){var i=n(120),o=n(36);e.exports=function(e,t,n){if(i(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(e))}},function(e,t,n){var i=n(11)("match");e.exports=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[i]=!1,!"/./"[t](n)}catch(e){}}return!0}},,,,,,,,,,function(e,t,n){n(244),e.exports=n(6).parseInt},function(e,t,n){var i=n(7),n=n(245);i(i.G+i.F*(parseInt!=n),{parseInt:n})},function(e,t,n){var i=n(8).parseInt,o=n(246).trim,n=n(175),r=/^[-+]?0[xX]/;e.exports=8!==i(n+"08")||22!==i(n+"0x16")?function(e,t){e=o(String(e),3);return i(e,t>>>0||(r.test(e)?16:10))}:i},function(e,t,n){function i(e,t,n){var i={},o=s(function(){return!!a[e]()||"âÂ
"!="âÂ
"[e]()}),t=i[e]=o?t(u):a[e];n&&(i[n]=t),r(r.P+r.F*o,"String",i)}var r=n(7),o=n(56),s=n(20),a=n(175),n="["+a+"]",l=RegExp("^"+n+n+"*"),c=RegExp(n+n+"*$"),u=i.trim=function(e,t){return e=String(o(e)),1&t&&(e=e.replace(l,"")),e=2&t?e.replace(c,""):e};e.exports=i},function(e,t,n){e.exports=n(310)},function(e,t,n){"use strict";var o=n(42);function i(e){var n,i;this.promise=new e(function(e,t){if(void 0!==n||void 0!==i)throw TypeError("Bad Promise constructor");n=e,i=t}),this.resolve=o(n),this.reject=o(i)}e.exports.f=function(e){return new i(e)}},function(e,t,n){"use strict";var i=n(8),o=n(6),r=n(16),s=n(13),a=n(10)("species");e.exports=function(e){e=("function"==typeof o[e]?o:i)[e];s&&e&&!e[a]&&r.f(e,a,{configurable:!0,get:function(){return this}})}},,,,,function(e,t,n){n(255),e.exports=n(6).Object.values},function(e,t,n){var i=n(7),o=n(174)(!1);i(i.S,"Object",{values:function(e){return o(e)}})},,,,,,,,,function(e,t,n){"use strict";var i=n(32),o=n(119)(6),r="findIndex",s=!0;r in[]&&Array(1)[r](function(){s=!1}),i(i.P+i.F*s,"Array",{findIndex:function(e){return o(this,e,1<arguments.length?arguments[1]:void 0)}}),n(78)(r)},,,,function(e,t,n){var i=n(12),o=n(42),r=n(10)("species");e.exports=function(e,t){var e=i(e).constructor;return void 0===e||null==(e=i(e)[r])?t:o(e)}},function(e,t,n){function i(){var e,t=+this;v.hasOwnProperty(t)&&(e=v[t],delete v[t],e())}function o(e){i.call(e.data)}var r,s=n(30),a=n(130),l=n(129),c=n(92),u=n(8),d=u.process,f=u.setImmediate,h=u.clearImmediate,p=u.MessageChannel,m=u.Dispatch,g=0,v={},y="onreadystatechange";f&&h||(f=function(e){for(var t=[],n=1;n<arguments.length;)t.push(arguments[n++]);return v[++g]=function(){a("function"==typeof e?e:Function(e),t)},r(g),g},h=function(e){delete v[e]},"process"==n(59)(d)?r=function(e){d.nextTick(s(i,e,1))}:m&&m.now?r=function(e){m.now(s(i,e,1))}:p?(p=(n=new p).port2,n.port1.onmessage=o,r=s(p.postMessage,p,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(r=function(e){u.postMessage(e+"","*")},u.addEventListener("message",o,!1)):r=y in c("script")?function(e){l.appendChild(c("script"))[y]=function(){l.removeChild(this),i.call(e)}}:function(e){setTimeout(s(i,e,1),0)}),e.exports={set:f,clear:h}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,n){var i=n(12),o=n(9),r=n(248);e.exports=function(e,t){if(i(e),o(t)&&t.constructor===e)return t;e=r.f(e);return(0,e.resolve)(t),e.promise}},,function(e,t,n){var n=n(6),i=n.JSON||(n.JSON={stringify:JSON.stringify});e.exports=function(e){return i.stringify.apply(i,arguments)}},,,,,,,,,function(e,t,n){n(25)&&"g"!=/./g.flags&&n(44).f(RegExp.prototype,"flags",{configurable:!0,get:n(110)})},,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){e.exports=n(306)},function(e,t,n){n(307);var i=n(6).Object;e.exports=function(e,t){return i.defineProperties(e,t)}},function(e,t,n){var i=n(7);i(i.S+i.F*!n(13),"Object",{defineProperties:n(128)})},,,function(e,t,n){n(106),n(57),n(60),n(311),n(314),n(315),e.exports=n(6).Promise},function(j,A,n){"use strict";function i(){}var t,o,r,s,a=n(46),f=n(8),l=n(30),e=n(107),c=n(7),u=n(9),d=n(42),h=n(125),p=n(86),m=n(268),g=n(269).set,v=n(312)(),y=n(248),b=n(270),w=n(313),_=n(271),S="Promise",k=f.TypeError,x=f.process,$=x&&x.versions,E=$&&$.v8||"",C=f[S],M="process"==e(x),T=o=y.f,$=!!function(){try{var e=C.resolve(1),t=(e.constructor={})[n(10)("species")]=function(e){e(i,i)};return(M||"function"==typeof PromiseRejectionEvent)&&e.then(i)instanceof t&&0!==E.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(e){}}(),F=function(e){var t;return!(!u(e)||"function"!=typeof(t=e.then))&&t},P=function(d,n){var i;d._n||(d._n=!0,i=d._c,v(function(){for(var o,c=d._v,u=1==d._s,e=0,t=function(e){var t,n,i,o,r=u?e.ok:e.fail,s=e.resolve,a=e.reject,l=e.domain;try{r?(u||(2==d._h&&(o=d,g.call(f,function(){var e;M?x.emit("rejectionHandled",o):(e=f.onrejectionhandled)&&e({promise:o,reason:o._v})})),d._h=1),!0===r?t=c:(l&&l.enter(),t=r(c),l&&(l.exit(),i=!0)),t===e.promise?a(k("Promise-chain cycle")):(n=F(t))?n.call(t,s,a):s(t)):a(c)}catch(e){l&&!i&&l.exit(),a(e)}};i.length>e;)t(i[e++]);
17573d._c=[],d._n=!1,n&&!d._h&&(o=d,g.call(f,function(){var e,t,n=o._v,i=I(o);if(i&&(e=b(function(){M?x.emit("unhandledRejection",n,o):(t=f.onunhandledrejection)?t({promise:o,reason:n}):(t=f.console)&&t.error&&t.error("Unhandled promise rejection",n)}),o._h=M||I(o)?2:1),o._a=void 0,i&&e.e)throw e.v}))}))},I=function(e){return 1!==e._h&&0===(e._a||e._c).length},O=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),P(t,!0))},D=function(e){var n,i=this;if(!i._d){i._d=!0,i=i._w||i;try{if(i===e)throw k("Promise can't be resolved itself");(n=F(e))?v(function(){var t={_w:i,_d:!1};try{n.call(e,l(D,t,1),l(O,t,1))}catch(e){O.call(t,e)}}):(i._v=e,i._s=1,P(i,!1))}catch(e){O.call({_w:i,_d:!1},e)}}};$||(C=function(e){h(this,C,S,"_h"),d(e),t.call(this);try{e(l(D,this,1),l(O,this,1))}catch(e){O.call(this,e)}},(t=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(124)(C.prototype,{then:function(e,t){var n=T(m(this,C));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=M?x.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&P(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),r=function(){var e=new t;this.promise=e,this.resolve=l(D,e,1),this.reject=l(O,e,1)},y.f=T=function(e){return e===C||e===s?new r:o(e)}),c(c.G+c.W+c.F*!$,{Promise:C}),n(52)(C,S),n(249)(S),s=n(6)[S],c(c.S+c.F*!$,S,{reject:function(e){var t=T(this);return(0,t.reject)(e),t.promise}}),c(c.S+c.F*(a||!$),S,{resolve:function(e){return _(a&&this===s?C:this,e)}}),c(c.S+c.F*!($&&n(185)(function(e){C.all(e).catch(i)})),S,{all:function(e){var s=this,t=T(s),a=t.resolve,l=t.reject,n=b(function(){var i=[],o=0,r=1;p(e,!1,function(e){var t=o++,n=!1;i.push(void 0),r++,s.resolve(e).then(function(e){n||(n=!0,i[t]=e,--r||a(i))},l)}),--r||a(i)});return n.e&&l(n.v),t.promise},race:function(e){var t=this,n=T(t),i=n.reject,o=b(function(){p(e,!1,function(e){t.resolve(e).then(n.resolve,i)})});return o.e&&i(o.v),n.promise}})},function(e,t,n){var a=n(8),l=n(269).set,c=a.MutationObserver||a.WebKitMutationObserver,u=a.process,d=a.Promise,f="process"==n(59)(u);e.exports=function(){function e(){var e,t;for(f&&(e=u.domain)&&e.exit();n;){t=n.fn,n=n.next;try{t()}catch(e){throw n?o():i=void 0,e}}i=void 0,e&&e.enter()}var n,i,t,o,r,s;return o=f?function(){u.nextTick(e)}:!c||a.navigator&&a.navigator.standalone?d&&d.resolve?(t=d.resolve(void 0),function(){t.then(e)}):function(){l.call(a,e)}:(r=!0,s=document.createTextNode(""),new c(e).observe(s,{characterData:!0}),function(){s.data=r=!r}),function(e){e={fn:e,next:void 0};i&&(i.next=e),n||(n=e,o()),i=e}}},function(e,t,n){n=n(8).navigator;e.exports=n&&n.userAgent||""},function(e,t,n){"use strict";var i=n(7),o=n(6),r=n(8),s=n(268),a=n(271);i(i.P+i.R,"Promise",{finally:function(t){var n=s(this,o.Promise||r.Promise),e="function"==typeof t;return this.then(e?function(e){return a(n,t()).then(function(){return e})}:t,e?function(e){return a(n,t()).then(function(){throw e})}:t)}})},function(e,t,n){"use strict";var i=n(7),o=n(248),r=n(270);i(i.S,"Promise",{try:function(e){var t=o.f(this),e=r(e);return(e.e?t.reject:t.resolve)(e.v),t.promise}})},,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var l=n(0)(n(136));e.exports=function(){var o,n=Array.prototype.slice,a={actions:{},filters:{}};function i(e,t,n,i){var o,r,s;if(a[e][t])if(n)if(o=a[e][t],i)for(s=o.length;s--;)(r=o[s]).callback===n&&r.context===i&&o.splice(s,1);else for(s=o.length;s--;)o[s].callback===n&&o.splice(s,1);else a[e][t]=[]}function r(e,t,n,i,o){i={callback:n,priority:i,context:o},o=a[e][t];if(o){var r=!1;if(jQuery.each(o,function(){if(this.callback===n)return!(r=!0)}),r)return;o.push(i),o=function(e){for(var t,n,i,o=1,r=e.length;o<r;o++){for(t=e[o],n=o;(i=e[n-1])&&i.priority>t.priority;)e[n]=e[n-1],--n;e[n]=t}return e}(o)}else o=[i];a[e][t]=o}function s(e,t,n){var i,o,r=a[e][t];if(!r)return"filters"===e&&n[0];if(o=r.length,"filters"===e)for(i=0;i<o;i++)n[0]=r[i].callback.apply(r[i].context,n);else for(i=0;i<o;i++)r[i].callback.apply(r[i].context,n);return"filters"!==e||n[0]}return o={removeFilter:function(e,t){return"string"==typeof e&&i("filters",e,t),o},applyFilters:function(){var e=n.call(arguments),t=e.shift();return"string"==typeof t?s("filters",t,e):o},addFilter:function(e,t,n,i){return"string"==typeof e&&"function"==typeof t&&r("filters",e,t,n=(0,l.default)(n||10,10),i),o},removeAction:function(e,t){return"string"==typeof e&&i("actions",e,t),o},doAction:function(){var e=n.call(arguments),t=e.shift();return"string"==typeof t&&s("actions",t,e),o},addAction:function(e,t,n,i){return"string"==typeof e&&"function"==typeof t&&r("actions",e,t,n=(0,l.default)(n||10,10),i),o}}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";
17573var i=n(0),o=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i(n(2))),r=i(n(3)),i=function(){function e(){(0,o.default)(this,e)}return(0,r.default)(e,null,[{key:"scrollObserver",value:function(r){var s=0,e={root:r.root||null,rootMargin:r.offset||"0px",threshold:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,t=[];if(0<e&&e<=100)for(var n=100/e,i=0;i<=100;i+=n)t.push(i/100);else t.push(0);return t}(r.sensitivity)};return new IntersectionObserver(function(e,t){var n=e[0].boundingClientRect.y,i=e[0].isIntersecting,o=n<s?"down":"up",e=Math.abs(parseFloat((100*e[0].intersectionRatio).toFixed(2)));r.callback({sensitivity:r.sensitivity,isInViewport:i,scrollPercentage:e,intersectionScrollDirection:o}),s=n},e)}},{key:"getElementViewportPercentage",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=e[0].getBoundingClientRect(),i=t.start||0,t=t.end||0,i=window.innerHeight*i/100,t=window.innerHeight*t/100,o=n.top-window.innerHeight,n=n.top+i+e.height(),e=Math.max(0,Math.min((0-o+i)/(n-o+t),1));return parseFloat((100*e).toFixed(2))}},{key:"getPageScrollPercentage",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.start||0,e=e.end||0,n=(1<arguments.length?arguments[1]:void 0)||document.documentElement.scrollHeight-document.documentElement.clientHeight,t=n*t/100;return(document.documentElement.scrollTop+document.body.scrollTop+t)/(n+t+n*e/100)*100}}]),e}();t.default=i},function(e,t,n){"use strict";var i=n(0),s=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i(n(2))),o=i(n(3)),a=i(n(163)),l=i(n(49)),c=i(n(14)),u=i(n(22)),d=i(n(4)),f=i(n(35)),h=i(n(398)),i=function(e){function r(){var e,t;(0,s.default)(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return t=(0,a.default)(this,(e=(0,c.default)(r)).call.apply(e,[this].concat(i))),(0,f.default)((0,l.default)(t),"onInsideViewport",function(){t.run(),t.animationFrameRequest=requestAnimationFrame(t.onInsideViewport)}),t}return(0,d.default)(r,e),(0,o.default)(r,[{key:"__construct",value:function(e){this.motionFX=e.motionFX,this.intersectionObservers||this.setElementInViewportObserver()}},{key:"setElementInViewportObserver",value:function(){var t=this;this.intersectionObserver=h.default.scrollObserver({callback:function(e){e.isInViewport?t.onInsideViewport():t.removeAnimationFrameRequest()}}),this.intersectionObserver.observe(this.motionFX.elements.$parent[0])}},{key:"runCallback",value:function(){this.getSettings("callback").apply(void 0,arguments)}},{key:"removeIntersectionObserver",value:function(){this.intersectionObserver&&this.intersectionObserver.unobserve(this.motionFX.elements.$parent[0])}},{key:"removeAnimationFrameRequest",value:function(){this.animationFrameRequest&&cancelAnimationFrame(this.animationFrameRequest)}},{key:"destroy",value:function(){this.removeAnimationFrameRequest(),this.removeIntersectionObserver()}},{key:"onInit",value:function(){(0,u.default)((0,c.default)(r.prototype),"onInit",this).call(this)}}]),r}(elementorModules.ViewModule);t.default=i},function(e,t,n){"use strict";var i=n(0),u=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i(n(29))),r=i(n(2)),s=i(n(3)),a=i(n(163)),l=i(n(14)),c=i(n(22)),d=i(n(4)),f=i(n(401)),o=function(e){function o(){return(0,r.default)(this,o),(0,a.default)(this,(0,l.default)(o).apply(this,arguments))}return(0,d.default)(o,e),(0,s.default)(o,[{key:"__construct",value:function(){for(var e,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];(e=(0,c.default)((0,l.default)(o.prototype),"__construct",this)).call.apply(e,[this].concat(n)),this.toggle=ceFrontend.debounce(this.toggle,200)}},{key:"bindEvents",value:function(){ceFrontend.elements.$window.on("resize",this.toggle)}},{key:"unbindEvents",value:function(){ceFrontend.elements.$window.off("resize",this.toggle)}},{key:"initEffects",value:function(){this.effects={translateY:{interaction:"scroll",actions:["translateY"]},translateX:{interaction:"scroll",actions:["translateX"]},rotateZ:{interaction:"scroll",actions:["rotateZ"]},scale:{interaction:"scroll",actions:["scale"]},opacity:{interaction:"scroll",actions:["opacity"]},blur:{interaction:"scroll",actions:["blur"]},mouseTrack:{interaction:"mouseMove",actions:["translateXY"]},tilt:{interaction:"mouseMove",actions:["tilt"]}}}},{key:"prepareOptions",value:function(s){var e,a=this,l=this.getElementSettings(),t="motion_fx"===s?"element":"background",c={},n=(jQuery.each(l,function(e,t){var i,o,n,r=new RegExp("^"+s+"_(.+?)_effect"),e=e.match(r);e&&t&&(i={},o=e[1],jQuery.each(l,function(e,t){var n=new RegExp(s+"_"+o+"_(.+)"),e=e.match(n);e&&"effect"!==e[1]&&("object"===(0,u.default)(t)&&(t=Object.keys(t.sizes).length?t.sizes:t.size),i[e[1]]=t)}),r=a.effects[o],n=r.interaction,c[n]||(c[n]={}),r.actions.forEach(function(e){return c[n][e]=i}))}),this.$element),i=this.getElementType(),i=("element"==t&&"section"!==i&&(n=(e=n).find("> "+("column"===i?".elementor-column-wrap":".elementor-widget-container"))),{type:t,interactions:c,$element:n,$dimensionsElement:e,refreshDimensions:this.isEdit,range:l[s+"_range"],classes:{element:"elementor-motion-effects-element",parent:"elementor-motion-effects-parent",backgroundType:"elementor-motion-effects-element-type-background",container:"elementor-motion-effects-container",layer:"elementor-motion-effects-layer",perspective:"elementor-motion-effects-perspective"}});return i.range||"fixed"!==this.getCurrentDeviceSetting("_position")||(i.range="page"),"fixed"===this.getCurrentDeviceSetting("_position")&&(i.isFixedPosition=!0),"background"==t&&"column"===this.getElementType()&&(i.addBackgroun
17573dLayerTo=" > .elementor-element-populated"),i}},{key:"activate",value:function(e){var t=this.prepareOptions(e);jQuery.isEmptyObject(t.interactions)||(this[e]=new f.default(t))}},{key:"deactivate",value:function(e){this[e]&&(this[e].destroy(),delete this[e])}},{key:"toggle",value:function(){var n=this,i=ceFrontend.getCurrentDeviceMode(),o=this.getElementSettings();["motion_fx","background_motion_fx"].forEach(function(e){var t=o[e+"_devices"];(!t||-1!==t.indexOf(i))&&(o[e+"_motion_fx_scrolling"]||o[e+"_motion_fx_mouse"])?n[e]?n.refreshInstance(e):n.activate(e):n.deactivate(e)})}},{key:"refreshInstance",value:function(e){var t=this[e];t&&(e=this.prepareOptions(e),t.setSettings(e),t.refresh())}},{key:"onInit",value:function(){(0,c.default)((0,l.default)(o.prototype),"onInit",this).call(this),this.initEffects(),this.toggle()}},{key:"onElementChange",value:function(e){var t,n=this;/motion_fx_((scrolling)|(mouse)|(devices))$/.test(e)?this.toggle():((t=e.match(".*?motion_fx"))&&(t=t[0],this.refreshInstance(t),this[t]||this.activate(t)),/^_position/.test(e)&&["motion_fx","background_motion_fx"].forEach(function(e){n.refreshInstance(e)}))}},{key:"onDestroy",value:function(){var t=this;(0,c.default)((0,l.default)(o.prototype),"onDestroy",this).call(this),["motion_fx","background_motion_fx"].forEach(function(e){t.deactivate(e)})}}]),o}(elementorModules.frontend.handlers.Base);t.default=function(e){ceFrontend.elementsHandler.addHandler(o,{$element:e})}},function(e,t,n){"use strict";var i=n(0),o=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i(n(2))),r=i(n(3)),s=i(n(163)),a=i(n(14)),l=i(n(22)),c=i(n(4)),u=i(n(402)),d=i(n(403)),f=i(n(404)),i=function(e){function t(){return(0,o.default)(this,t),(0,s.default)(this,(0,a.default)(t).apply(this,arguments))}return(0,c.default)(t,e),(0,r.default)(t,[{key:"getDefaultSettings",value:function(){return{type:"element",$element:null,$dimensionsElement:null,addBackgroundLayerTo:null,interactions:{},refreshDimensions:!1,range:"viewport",classes:{element:"motion-fx-element",parent:"motion-fx-parent",backgroundType:"motion-fx-element-type-background",container:"motion-fx-container",layer:"motion-fx-layer",perspective:"motion-fx-perspective"}}}},{key:"bindEvents",value:function(){this.onWindowResize=this.onWindowResize.bind(this),ceFrontend.elements.$window.on("resize",this.onWindowResize)}},{key:"unbindEvents",value:function(){ceFrontend.elements.$window.off("resize",this.onWindowResize)}},{key:"addBackgroundLayer",value:function(){var e=this.getSettings();this.elements.$motionFXContainer=jQuery("<div>",{class:e.classes.container}),this.elements.$motionFXLayer=jQuery("<div>",{class:e.classes.layer}
17573),this.updateBackgroundLayerSize(),this.elements.$motionFXContainer.prepend(this.elements.$motionFXLayer),(e.addBackgroundLayerTo?this.$element.find(e.addBackgroundLayerTo):this.$element).prepend(this.elements.$motionFXContainer)}},{key:"removeBackgroundLayer",value:function(){this.elements.$motionFXContainer.remove()}},{key:"updateBackgroundLayerSize",value:function(){var e=this.getSettings(),t={x:0,y:0},n=e.interactions.mouseMove,e=e.interactions.scroll;n&&n.translateXY&&(t.x=10*n.translateXY.speed,t.y=10*n.translateXY.speed),e&&(e.translateX&&(t.x=10*e.translateX.speed),e.translateY&&(t.y=10*e.translateY.speed)),this.elements.$motionFXLayer.css({width:100+t.x+"%",height:100+t.y+"%"})}},{key:"defineDimensions",value:function(){var e=this.getSettings("$dimensionsElement")||this.$element,t=e.offset(),e={elementHeight:e.outerHeight(),elementWidth:e.outerWidth(),elementTop:t.top,elementLeft:t.left};e.elementRange=e.elementHeight+innerHeight,this.setSettings("dimensions",e),"background"===this.getSettings("type")&&this.defineBackgroundLayerDimensions()}},{key:"defineBackgroundLayerDimensions",value:function(){var e=this.getSettings("dimensions");e.layerHeight=this.elements.$motionFXLayer.height(),e.layerWidth=this.elements.$motionFXLayer.width(),e.movableX=e.layerWidth-e.elementWidth,e.movableY=e.layerHeight-e.elementHeight,this.setSettings("dimensions",e)}},{key:"initInteractionsTypes",value:function(){this.interactionsTypes={scroll:u.default,mouseMove:d.default}}},{key:"prepareSpecialActions",value:function(){var e=this.getSettings(),t=!(!e.interactions.mouseMove||!e.interactions.mouseMove.tilt);this.elements.$parent.toggleClass(e.classes.perspective,t)}},{key:"cleanSpecialActions",value:function(){var e=this.getSettings();this.elements.$parent.removeClass(e.classes.perspective)}},{key:"runInteractions",value:function(){var o=this,e=this.getSettings();this.prepareSpecialActions(),jQuery.each(e.interactions,function(e,n){o.interactions[e]=new o.interactionsTypes[e]({motionFX:o,callback:function(){for(var e=arguments.length,i=new Array(e),t=0;t<e;t++)i[t]=arguments[t];jQuery.each(n,function(e,t){var n;return(n=o.actions).runAction.apply(n,[e,t].concat(i))})}}),o.interactions[e].run()})}},{key:"destroyInteractions",value:function(){this.cleanSpecialActions(),jQuery.each(this.interactions,function(e,t){return t.destroy()}),this.interactions={}}},{key:"refresh",value:function(){this.actions.setSettings(this.getSettings()),"background"===this.getSettings("type")&&(this.updateBackgroun
17573dLayerSize(),this.defineBackgroundLayerDimensions()),this.actions.refresh(),this.destroyInteractions(),this.runInteractions()}},{key:"destroy",value:function(){this.destroyInteractions(),this.actions.refresh();var e=this.getSettings();this.$element.removeClass(e.classes.element),this.elements.$parent.removeClass(e.classes.parent),"background"===e.type&&(this.$element.removeClass(e.classes.backgroundType),this.removeBackgroundLayer())}},{key:"onInit",value:function(){(0,l.default)((0,a.default)(t.prototype),"onInit",this).call(this);var e=this.getSettings();this.$element=e.$element,this.elements.$parent=this.$element.parent(),this.$element.addClass(e.classes.element),this.elements.$parent=this.$element.parent(),this.elements.$parent.addClass(e.classes.parent),"background"===e.type&&(this.$element.addClass(e.classes.backgroundType),this.addBackgroundLayer()),this.defineDimensions(),e.$targetElement="element"===e.type?this.$element:this.elements.$motionFXLayer,this.interactions={},this.actions=new f.default(e),this.initInteractionsTypes(),this.runInteractions()}},{key:"onWindowResize",value:function(){this.defineDimensions()}}]),t}(elementorModules.ViewModule);t.default=i},function(e,t,n){"use strict";var i=n(0),o=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i(n(2))),r=i(n(3)),s=i(n(163)),a=i(n(14)),l=i(n(4)),c=i(n(399)),u=i(n(398)),i=function(e){function t(){return(0,o.default)(this,t),(0,s.default)(this,(0,a.default)(t).apply(this,arguments))}return(0,l.default)(t,e),(0,r.default)(t,[{key:"run",value:function(){if(pageYOffset===this.windowScrollTop)return!1;this.onScrollMovement(),this.windowScrollTop=pageYOffset}},{key:"onScrollMovement",value:function(){this.updateMotionFxDimensions(),this.updateAnimation()}},{key:"updateMotionFxDimensions",value:function(){this.motionFX.getSettings().refreshDimensions&&this.motionFX.defineDimensions()}},{key:"updateAnimation",value:function(){var e="page"===this.motionFX.getSettings("range")?u.default.getPageScrollPercentage():this.motionFX.getSettings("isFixedPosition")?u.default.getPageScrollPercentage({},window.innerHeight):u.default.getElementViewportPercentage(this.motionFX.elements.$parent);this.runCallback(e)}}]),t}(c.default);t.default=i},function(e,t,n){"use strict";var i=n(0),o=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i(n(2))),r=i(n(3)),s=i(n(163)),a=i(n(14)),l=i(n(22)),c=i(n(4)),u=function(e){function n(){return(0,o.default)(this,n),(0,s.default)(this,(0,a.default)(n).apply(this,arguments))}return(0,c.default)(n,e),(0,r.default)(n,[{key:"bindEvents",value:function(){n.mouseTracked||(ceFrontend.elements.$window.on("mousemove",n.updateMousePosition),n.mouseTracked=!0)}},{key:"run",value:function(){var e=n.mousePosition,t=this.oldMousePosition;t.x===e.x&&t.y===e.y||(this.oldMousePosition={x:e.x,y:e.y},t=100/innerWidth*e.x,e=100/innerHeight*e.y,this.runCallback(t,e))}},{key:"onInit",value:function(){this.oldMousePosition={},(0,l.default)((0,a.default)(n.prototype),"onInit",this).call(this)}}]),n}(i(n(399)).default);(t.default=u).mousePosition={},u.updateMousePosition=function(e){u.mousePosition={x:e.clientX,y:e.clientY}}},function(e,t,n){"use strict";var i=n(0),o=(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i(n(2))),r=i(n(3)),s=i(n(163)),a=i(n(14)),l=i(n(4)),i=function(e){function t(){return(0,o.default)(this,t),(0,s.default)(this,(0,a.default)(t).apply(this,arguments))}return(0,l.default)(t,e),(0,r.default)(t,[{key:"getMovePointFromPassedPercents",value:function(e,t){return+(t/e*100).toFixed(2)}},{key:"getEffectValueFromMovePoint",value:function(e,t){return e*t/100}},{key:"getStep",value:function(e,t){return"element"===this.getSettings("type")?this.getElementStep(e,t):this.getBackgroundStep(e,t)}},{key:"getElementStep",value:function(e,t){return-(e-50)*t.speed}},{key:"getBackgroundStep",value:function(e,t){t=this.getSettings("dimensions.movable"+t.axis.toUpperCase());return-this.getEffectValueFromMovePoint(t,e)}},{key:"getDirectionMovePoint",value:function(e,t,n){var i;return e<n.start?"out-in"===t?i=0:"in-out"===t?i=100:(i=this.getMovePointFromPassedPercents(n.start,e),"in-out-in"===t&&(i=100-i)):e<n.end?"in-out-in"===t?i=0:"out-in-out"===t?i=100:(i=this.getMovePointFromPassedPercents(n.end-n.start,e-n.start),"in-out"===t&&(i=100-i)):"in-out"===t?i=0:"out-in"===t?i=100:(i=this.getMovePointFromPassedPercents(100-n.end,100-e),"in-out-in"===t&&(i=100-i)),i}},{key:"translateX",value:function(e,t){e.axis="x",e.unit="px",this.transform("translateX",t,e)}},{key:"translateY",value:function(e,t){e.axis="y",e.unit="px",this.transform("translateY",t,e)}},{key:"translateXY",value:function(e,t,n){this.translateX(e,t),this.translateY(e,n)}},{key:"tilt",value:function(e,t,n){e={speed:e.speed/10,direction:e.direction};this.rotateX(e,n),this.rotateY(e,100-t)}},{key:"rotateX",value:function(e,t){e.axis="x",e.unit="deg",this.transform("rotateX",t,e)}},{key:"rotateY",value:function(e,t){e.axis="y",e.unit="deg",this.transform("rotateY",t,e)}},{key:"rotateZ",value:function(e,t){e.unit="deg",this.transform("rotateZ",t,e)}},{key:"scale",value:function(e,t){t=this.getDirectionMovePoint(t,e.direction,e.range);this.updateRulePart("transform","scale",1+e.speed*t/1e3)}},{key:"transform",value:function(e,t,n){n.direction&&(t=100-t),this.updateRulePart("transform",e,this.get
17573Step(t,n)+n.unit)}},{key:"opacity",value:function(e,t){t=this.getDirectionMovePoint(t,e.direction,e.range),e=e.level/10,e=1-e+this.getEffectValueFromMovePoint(e,t);this.$element.css({opacity:e,"will-change":"opacity"})}},{key:"blur",value:function(e,t){t=this.getDirectionMovePoint(t,e.direction,e.range),e=e.level-this.getEffectValueFromMovePoint(e.level,t);this.updateRulePart("filter","blur",e+"px")}},{key:"updateRulePart",value:function(e,t,n){this.rulesVariables[e]||(this.rulesVariables[e]={}),this.rulesVariables[e][t]||(this.rulesVariables[e][t]=!0,this.updateRule(e));e="--".concat(t);this.$element[0].style.setProperty(e,n)}},{key:"updateRule",value:function(e){var t="";jQuery.each(this.rulesVariables[e],function(e){t+="".concat(e,"(var(--").concat(e,"))")}),this.$element.css(e,t)}},{key:"runAction",value:function(e,t,n){t.affectedRange&&(t.affectedRange.start>n&&(n=t.affectedRange.start),t.affectedRange.end<n&&(n=t.affectedRange.end));for(var i=arguments.length,o=new Array(3<i?i-3:0),r=3;r<i;r++)o[r-3]=arguments[r];this[e].apply(this,[t,n].concat(o))}},{key:"refresh",value:function(){this.rulesVariables={},this.$element.css({transform:"",filter:"",opacity:"","will-change":""})}},{key:"onInit",value:function(){this.$element=this.getSettings("$targetElement"),this.refresh()}}]),t}(elementorModules.Module);t.default=i},function(e,t,n){"use strict";var i=elementorModules.frontend.handlers.Base.extend({bindEvents:function(){ceFrontend.addListenerOnce(this.getUniqueHandlerID()+"sticky","resize",this.run)},unbindEvents:function(){ceFrontend.removeListeners(this.getUniqueHandlerID()+"sticky","resize",this.run)},isActive:function(){return void 0!==this.$element.data("sticky")},activate:function(){var e=this.getElementSettings(),t={to:e.sticky,offset:e.sticky_offset,effectsOffset:e.sticky_effects_offset,autoHide:e.sticky_auto_hide,autoHideOffset:e.sticky_auto_hide_offset||{size:0},autoHideDuration:e.sticky_auto_hide_duration||{size:0},classes:{sticky:"elementor-sticky",stickyActive:"elementor-sticky--active elementor-section--handles-inside",stickyEffects:"elementor-sticky--effects",stickyHide:"ce-sticky--hide",spacer:"elementor-sticky__spacer"}};e.sticky_parent&&(t.parent=".elementor-widget-wrap"),this.$element.sticky(t)},deactivate:function(){this.isActive()&&this.$element.sticky("destroy")},run:function(e){var t;this.getElementSettings("sticky")?(t=ceFrontend.getCurrentDeviceMode(),-1!==this.getElementSettings("sticky_on").indexOf(t)?!0===e?this.reactivate():this.isActive()||this.activate():this.deactivate()):this.deactivate()},reactivate:function(){this.deactivate(),this.activate()},onElementChange:function(e){-1!==["sticky","sticky_on"].indexOf(e)&&this.run(!0),-1!==["sticky_offset","sticky_effects_offset","sticky_parent","sticky_auto_hide","sticky_auto_hide_offset","sticky_auto_hide_duration"].indexOf(e)&&this.reactivate()},onInit:function(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.run()},onDestroy:function(){elementorModules.frontend.handlers.Base.prototype.onDestroy.apply(this,arguments),this.deactivate()}});e.exports=function(e){new i({$element:e})}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var i=n(0),o=(n(1)(t,"__esModule",{value:!0}),t.default=void 0,i(n(183))),s=i(n(23)),r=i(n(2)),a=i(n(3)),l=i(n(4)),c=i(n(5)),i=function(e){(0,l.default)(n,e);var t=(0,c.default)(n);function n(){return(0,r.default)(this,n),t.apply(this,arguments)}return(0,a.default)(n,[{key:"get",value:function(t,e){e=e||{};try{o=e.session?sessionStorage:localStorage}catch(e){return t?void 0:{}}var n=o.getItem("elementor"),i=((n=n?JSON.parse(n):{}).__expiration||(n.__expiration={}),n.__expiration),o=[],r=(t?i[t]&&(o=[t]):o=(0,s.default)(i),!1);return o.forEach(function(e){new Date(i[e])<new Date&&(delete n[e],delete i[e],r=!0)}),r&&this.save(n,e.session),t?n[t]:n}},{key:"set",value:function(e,t,n){var i=this.get(null,n=n||{});i[e]=t,n.lifetimeInSeconds&&((t=new Date).setTime(t.getTime()+1e3*n.lifetimeInSeconds),i.__expiration[e]=t.getTime()),this.save(i,n.session)}},{key:"save",value:function(e,t){var n;try{n=t?sessionStorage:localStorage}catch(e){return}n.setItem("elementor",(0,o.default)(e))}}]),n}(elementorModules.Module);t.default=i},,,,,function(e,t,n){"use strict";
17573var i=n(0),o=(n(1)(t,"__esModule",{value:!0}),t.default=void 0,n(17),i(n(2))),r=i(n(3)),s=i(n(22)),a=i(n(14)),l=i(n(4)),c=i(n(5)),i=function(e){(0,l.default)(n,e);var t=(0,c.default)(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,r.default)(n,[{key:"getDefaultSettings",value:function(){return{selectors:{elements:".elementor-element",nestedDocumentElements:".elementor .elementor-element"},classes:{editMode:"elementor-edit-mode"}}}},{key:"getDefaultElements",value:function(){var e=this.getSettings("selectors");return{$elements:this.$element.find(e.elements).not(this.$element.find(e.nestedDocumentElements))}}},{key:"getDocumentSettings",value:function(e){var t,n;return this.isEdit?(t={},n=elementor.settings.page.model,jQuery.each(n.getActiveControls(),function(e){t[e]=n.attributes[e]})):t=this.$element.data("elementor-settings")||{},this.getItems(t,e)}},{key:"runElementsHandlers",value:function(){this.elements.$elements.each(function(e,t){return ceFrontend.elementsHandler.runReadyTrigger(t)})}},{key:"onInit",value:function(){var e=this;this.$element=this.getSettings("$element"),(0,s.default)((0,a.default)(n.prototype),"onInit",this).call(this),this.isEdit=this.$element.hasClass(this.getSettings("classes.editMode")),this.isEdit?elementor.on("document:loaded",function(){elementor.settings.page.model.on("change",e.onSettingsChange.bind(e))}):this.runElementsHandlers()}},{key:"onSettingsChange",value:function(){}}]),n}(elementorModules.ViewModule);t.default=i},function(e,t,n){"use strict";var i=n(0),r=(n(1)(t,"__esModule",{value:!0}),t.default=void 0,i(n(2))),s=i(n(3)),a=i(n(22)),l=i(n(14)),c=i(n(4)),u=i(n(5)),i=function(e){(0,c.default)(o,e);var t=(0,u.default)(o);function o(){return(0,r.default)(this,o),t.apply(this,arguments)}return(0,s.default)(o,[{key:"getDefaultSettings",value:function(){return{selectors:{tabTitle:".elementor-tab-title",tabContent:".elementor-tab-content"},classes:{active:"elementor-active"},showTabFn:"show",hideTabFn:"hide",toggleSelf:!0,hidePrevious:!0,autoExpand:!0}}},{key:"getDefaultElements",value:function(){var e=this.getSettings("selectors");return{$tabTitles:this.findElement(e.tabTitle),$tabContents:this.findElement(e.tabContent)}}},{key:"activateDefaultTab",value:function(){var e,t=this.getSettings();t.autoExpand&&("editor"!==t.autoExpand||this.isEdit)&&(e=this.getEditSettings("activeItemIndex")||1,t={showTabFn:t.showTabFn,hideTabFn:t.hideTabFn},this.setSettings({showTabFn:"show",hideTabFn:"hide"}),this.changeActiveTab(e),this.setSettings(t))}},{key:"deactivateActiveTab",value:function(e){var t=this.getSettings(),n=t.classes.active,e=e?'[data-tab="'+e+'"]':"."+n,i=this.elements.$tabTitles.filter(e),e=this.elements.$tabContents.filter(e);i.add(e).removeClass(n),e[t.hideTabFn]()}},{key:"activateTab",value:function(e){var t=this.getSettings(),n=t.classes.active,i=this.elements.$tabTitles.filter('[data-tab="'+e+'"]'),e=this.elements.$tabContents.filter('[data-tab="'+e+'"]');i.add(e).addClass(n),e[t.showTabFn]()}},{key:"isActiveTab",value:function(e){return this.elements.$tabTitles.filter('[data-tab="'+e+'"]').hasClass(this.getSettings("classes.active"))}},{key:"bindEvents",value:function(){var t=this;this.elements.$tabTitles.on({keydown:function(e){"Enter"===e.key&&(e.preventDefault(),t.changeActiveTab(e.currentTarget.getAttribute("data-tab")))},click:function(e){e.preventDefault(),t.changeActiveTab(e.currentTarget.getAttribute("data-tab"))}})}},{key:"onInit",value:function(){for(var e,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];(e=(0,a.default)((0,l.default)(o.prototype),"onInit",this)).call.apply(e,[this].concat(n)),this.activateDefaultTab()}},{key:"onEditSettingsChange",value:function(e){"activeItemIndex"===e&&this.activateDefaultTab()}},{key:"changeActiveTab",value:function(e){var t=this.isActiveTab(e),n=this.getSettings();!n.toggleSelf&&t||!n.hidePrevious||this.deactivateActiveTab(),!n.hidePrevious&&t&&this.deactivateActiveTab(e),t||this.activateTab(e)}}]),o}(elementorModules.frontend.handlers.Base);t.default=i},,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";
17573var i=n(0),o=(n(1)(t,"__esModule",{value:!0}),t.default=void 0,n(99),i(n(2))),r=i(n(3)),s=i(n(4)),a=i(n(5)),i=function(e){(0,s.default)(n,e);var t=(0,a.default)(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,r.default)(n,[{key:"getDefaultSettings",value:function(){return{isInserted:!1,selectors:{firstScript:"script:first"}}}},{key:"getDefaultElements",value:function(){return{$firstScript:jQuery(this.getSettings("selectors.firstScript"))}}},{key:"insertAPI",value:function(){this.elements.$firstScript.before(jQuery("<script>",{src:this.getApiURL()})),this.setSettings("isInserted",!0)}},{key:"getVideoIDFromURL",value:function(e){e=e.match(this.getURLRegex());return e&&e[1]}},{key:"onApiReady",value:function(e){var t=this;this.getSettings("isInserted")||this.insertAPI(),this.isApiLoaded()?e(this.getApiObject()):setTimeout(function(){t.onApiReady(e)},350)}}]),n}(elementorModules.ViewModule);t.default=i},function(e,t,n){"use strict";var i=n(0),o=(n(1)(t,"__esModule",{value:!0}),t.default=void 0,n(17),i(n(2))),r=i(n(3)),s=i(n(22)),a=i(n(14)),l=i(n(4)),c=i(n(5)),i=function(e){(0,l.default)(n,e);var t=(0,c.default)(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,r.default)(n,[{key:"getDefaultSettings",value:function(){return{classes:{swiperContainer:"elementor-background-slideshow swiper-container",swiperWrapper:"swiper-wrapper",swiperSlide:"elementor-background-slideshow__slide swiper-slide",swiperSlideInner:"elementor-background-slideshow__slide__image",kenBurns:"elementor-ken-burns",kenBurnsActive:"elementor-ken-burns--active",kenBurnsIn:"elementor-ken-burns--in",kenBurnsOut:"elementor-ken-burns--out"}}}},{key:"getDefaultElements",value:function(){var e=this.getSettings("classes"),t={$slider:this.$element.find("."+e.swiperContainer)};return t.$mainSwiperSlides=t.$slider.find("."+e.swiperSlide),t}},{key:"getSwiperOptions",value:function(){var e=this,t=this.getElementSettings(),n={grabCursor:!1,slidesPerView:1,slidesPerGroup:1,loop:"yes"===t.background_slideshow_loop,speed:t.background_slideshow_transition_duration,autoplay:{delay:t.background_slideshow_slide_duration,stopOnLastSlide:!t.background_slideshow_loop},handleElementorBreakpoints:!0,on:{slideChange:function(){e.handleKenBurns()}}};switch("yes"===t.background_slideshow_loop&&(n.loopedSlides=this.getSlidesCount()),t.background_slideshow_slide_transition){case"fade":n.effect="fade",n.fadeEffect={crossFade:!0};break;case"slide_down":n.autoplay.reverseDirection=!0;case"slide_up":n.direction="vertical"}return n}},{key:"getInitialSlide",value:function(){var e=this.getEditSettings();return e.activeItemIndex?e.activeItemIndex-1:0}},{key:"handleKenBurns",value:function(){var e;this.getElementSettings().background_slideshow_ken_burns&&(e=this.getSettings(),this.$activeImageBg&&this.$activeImageBg.removeClass(e.classes.kenBurnsActive),this.activeItemIndex=this.swiper?this.swiper.activeIndex:this.getInitialSlide(),this.swiper?this.$activeImageBg=jQuery(this.swiper.slides[this.activeItemIndex]).children("."+e.classes.swiperSlideInner):this.$activeImageBg=jQuery(this.elements.$mainSwiperSlides[0]).children("."+e.classes.swiperSlideInner),this.$activeImageBg.addClass(e.classes.kenBurnsActive))}},{key:"getSlidesCount",value:function(){return this.elements.$slides.length}},{key:"buildSwiperElements",value:function(){var n=this,i=this.getSettings("classes"),e=this.getElementSettings(),t="slide_left"===e.background_slideshow_slide_transition?"ltr":"rtl",t=jQuery("<div>",{class:i.swiperContainer,dir:t}),o=jQuery("<div>",{class:i.swiperWrapper}),r=e.background_slideshow_ken_burns,s=i.swiperSlideInner;r&&(s+=" "+i.kenBurns,r="in"===e.background_slideshow_ken_burns_zoom_direction?"kenBurnsIn":"kenBurnsOut",s+=" "+i[r]),this.elements.$slides=jQuery(),e.background_slideshow_gallery.forEach(function(e){var e=e.image.url&&e.image.url.indexOf("://")<0?prestashop.urls.base_url+e.image.url:e.image.url,t=jQuery("<div>",{class:i.swiperSlide}),e=jQuery("<div>",{class:s,style:'background-image: url("'+e+'");'});t.append(e),o.append(t),n.elements.$slides=n.elements.$slides.add(t)}
17573),t.append(o),this.$element.prepend(t),this.elements.$backgroundSlideShowContainer=t}},{key:"initSlider",value:function(){this.getSlidesCount()<=1||(this.swiper=new Swiper(this.elements.$backgroundSlideShowContainer,this.getSwiperOptions()),this.elements.$backgroundSlideShowContainer.data("swiper",this.swiper),this.handleKenBurns())}},{key:"activate",value:function(){this.buildSwiperElements(),this.initSlider()}},{key:"deactivate",value:function(){this.swiper&&(this.swiper.destroy(),this.elements.$backgroundSlideShowContainer.remove())}},{key:"run",value:function(){"slideshow"===this.getElementSettings("background_background")?this.activate():this.deactivate()}},{key:"onInit",value:function(){(0,s.default)((0,a.default)(n.prototype),"onInit",this).call(this),this.getElementSettings("background_slideshow_gallery")&&this.run()}},{key:"onDestroy",value:function(){(0,s.default)((0,a.default)(n.prototype),"onDestroy",this).call(this),this.deactivate()}},{key:"onElementChange",value:function(e){"background_background"===e&&this.run()}}]),n}(elementorModules.frontend.handlers.Base);t.default=i},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var i=n(0),s=(n(17),n(53),i(n(2))),a=i(n(3)),l=i(n(4)),c=i(n(5)),u=i(n(637)),d=i(n(569)),f=i(n(207)),h=i(n(638)),p=i(n(639)),m=i(n(640)),g=i(n(641)),v=n(341),y=n(642),b=n(659),w=n(660),i=function(e){(0,l.default)(r,e);var o=(0,c.default)(r);function r(){var e;(0,s.default)(this,r);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=o.call.apply(o,[this].concat(n))).config=ceFrontendConfig,e}return(0,a.default)(r,[{key:"getDefaultSettings",value:function(){return{selectors:{elementor:".elementor",adminBar:"#wpadminbar"},classes:{ie:"elementor-msie"}}}},{key:"getDefaultElements",value:function(){var e={window:window,$window:jQuery(window),$document:jQuery(document),$head:jQuery(document.head),$body:jQuery(document.body),$deviceMode:jQuery("<span>",{id:"elementor-device-mode",class:"elementor-screen-only"})};return e.$body.append(e.$deviceMode),e}},{key:"bindEvents",value:function(){var e=this;this.elements.$window.on("resize",function(){return e.setDeviceModeData()})}},{key:"getElements",value:function(e){return this.getItems(this.elements,e)}},{key:"getPageSettings",value:function(e){var t=this.isEditMode()?elementor.settings.page.model.attributes:this.config.settings.page;return this.getItems(t,e)}},{key:"getGeneralSettings",value:function(e){var t=this.isEditMode()?elementor.settings.general.model.attributes:this.config.settings.general;return this.getItems(t,e)}},{key:"getCurrentDeviceMode",value:function(){return getComputedStyle(this.elements.$deviceMode[0],":after").content.replace(/"/g,"")}},{key:"getDeviceSetting",value:function(e,t,n){for(var i=["desktop","tablet","mobile"],o=i.indexOf(e);0<o;){var r=t[n+"_"+i[o]];if(r)return r;o--}return t[n]}},{key:"getCurrentDeviceSetting",value:function(e,t){return this.getDeviceSetting(ceFrontend.getCurrentDeviceMode(),e,t)}},{key:"isEditMode",value:function(){return this.config.environmentMode.edit}},{key:"isWPPreviewMode",value:function(){return this.config.environmentMode.wpPreview}},{key:"initDialogsManager",value:function(){var e;this.getDialogsManager=function(){return e=e||new DialogsManager.Instance}}},{key:"initOnReadyComponents",value:function(){var e=this;this.utils={youtube:new h.default,vimeo:new p.default,anchors:new b,lightbox:new w,urlActions:new m.default,swiper:g.default},this.elementsHandler=new y(jQuery),this.isEditMode()?elementor.once("document:loaded",function(){return e.onDocumentLoaded()}):this.onDocumentLoaded()}},{key:"initOnReadyElements",value:function(){}},{key:"addIeCompatibility",value:function(){var e="string"==typeof document.createElement("div").style.grid;!f.default.ie&&e||(this.elements.$body.addClass(this.getSettings("classes.ie")),e='<link rel="stylesheet" id="elementor-frontend-css-msie" href="'+this.config.urls.assets+"css/frontend-msie.min.css?"+this.config.version+'" type="text/css">',this.elements.$body.append(e))}},{key:"setDeviceModeData",value:function(){this.elements.$body.attr("data-elementor-device-mode",this.getCurrentDeviceMode())}},{key:"addListenerOnce",value:function(e,t,n,i){i=i||this.elements.$window,this.isEditMode()?(this.removeListeners(e,t,i),i instanceof jQuery?i.on(t+"."+e,n):i.on(t,n,e)):i.on(t,n)}},{key:"removeListeners",value:function(e,t,n,i){(i=i||this.elements.$window)instanceof jQuery?i.off(t+"."+e,n):i.off(t,n,e)}},{key:"debounce",value:function(i,o){var r;return function(){var e=this,t=arguments,n=!r;clearTimeout(r),r=setTimeout(function(){r=null,i.apply(e,t)},o),n&&i.apply(e,t)}}}
17573,{key:"waypoint",value:function(e,t,n){function i(){var e=this.element||this,e=t.apply(e,arguments);return n.triggerOnce&&this.destroy&&this.destroy(),e}n=jQuery.extend({offset:"100%",triggerOnce:!0},n);return e.elementorWaypoint?e.elementorWaypoint(i,n):e.waypoint(i,n)}},{key:"muteMigrationTraces",value:function(){jQuery.migrateMute=!0,jQuery.migrateTrace=!1}},{key:"init",value:function(){this.hooks=new v,this.storage=new d.default,this.addIeCompatibility(),this.setDeviceModeData(),this.initDialogsManager(),this.isEditMode()&&this.muteMigrationTraces(),this.modules={linkActions:{addAction:function(){return ceFrontend.utils.urlActions.addAction.apply(ceFrontend.utils.urlActions,arguments)}}},this.elements.$window.trigger("elementor/frontend/init"),this.initOnReadyElements(),this.initOnReadyComponents()}},{key:"onDocumentLoaded",value:function(){this.documentsManager=new u.default,this.trigger("components:init")}},{key:"Module",get:function(){return this.isEditMode()&&parent.elementorCommon.helpers.hardDeprecated("ceFrontend.Module","2.5.0","elementorModules.frontend.handlers.Base"),elementorModules.frontend.handlers.Base}}]),r}(elementorModules.ViewModule);window.ceFrontend=new i,ceFrontend.isEditMode()||jQuery(function(){return ceFrontend.init()})},function(e,t,n){"use strict";var i=n(0),s=(n(1)(t,"__esModule",{value:!0}),t.default=void 0,i(n(2))),a=i(n(3)),l=i(n(4)),c=i(n(5)),u=i(n(574)),i=function(e){(0,l.default)(r,e);var o=(0,c.default)(r);function r(){var e;(0,s.default)(this,r);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=o.call.apply(o,[this].concat(n))).documents={},e.initDocumentClasses(),e.attachDocumentsClasses(),e}return(0,a.default)(r,[{key:"getDefaultSettings",value:function(){return{selectors:{document:".elementor"}}}},{key:"getDefaultElements",value:function(){var e=this.getSettings("selectors");return{$documents:jQuery(e.document)}}},{key:"initDocumentClasses",value:function(){this.documentClasses={base:u.default},ceFrontend.hooks.doAction("elementor/frontend/documents-manager/init-classes",this)}},{key:"addDocumentClass",value:function(e,t){this.documentClasses[e]=t}},{key:"attachDocumentsClasses",value:function(){var n=this;this.elements.$documents.each(function(e,t){return n.attachDocumentClass(jQuery(t))})}},{key:"attachDocumentClass",value:function(e){var t=e.data(),n=t.elementorId,t=t.elementorType,t=this.documentClasses[t]||this.documentClasses.base;this.documents[n]=new t({$element:e,id:n})}}]),r}(elementorModules.ViewModule);t.default=i},function(e,t,n){"use strict";var i=n(0),o=(n(1)(t,"__esModule",{value:!0}),t.default=void 0,i(n(2))),r=i(n(3)),s=i(n(4)),a=i(n(5)),i=function(e){(0,s.default)(n,e);var t=(0,a.default)(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,r.default)(n,[{key:"getApiURL",value:function(){return"https://www.youtube.com/iframe_api"}},{key:"getURLRegex",value:function(){return/^(?:https?:\/\/)?(?:www\.)?(?:m\.)?(?:youtu\.be\/|youtube\.com\/(?:(?:watch)?\?(?:.*&)?vi?=|(?:embed|v|vi|user)\/))([^?&"'>]+)/}},{key:"isApiLoaded",value:function(){return window.YT&&YT.loaded}},{key:"getApiObject",value:function(){return YT}}]),n}(i(n(595)).default);t.default=i},function(e,t,n){"use strict";var i=n(0),o=(n(1)(t,"__esModule",{value:!0}),t.default=void 0,i(n(2))),r=i(n(3)),s=i(n(4)),a=i(n(5)),i=function(e){(0,s.default)(n,e);var t=(0,a.default)(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,r.default)(n,[{key:"getApiURL",value:function(){return"https://player.vimeo.com/api/player.js"}},{key:"getURLRegex",value:function(){return/^(?:https?:\/\/)?(?:www|player\.)?(?:vimeo\.com\/)?(?:video\/)?(\d+)([^?&#"'>]?)/}},{key:"isApiLoaded",value:function(){return window.Vimeo}},{key:"getApiObject",value:function(){return Vimeo}}]),n}(i(n(595)).default);t.default=i},function(e,t,n){"use strict";var i=n(0),o=(n(1)(t,"__esModule",{value:!0}),t.default=void 0,i(n(183)),n(99),i(n(2))),r=i(n(3)),s=i(n(22)),a=i(n(14)),l=i(n(4)),c=i(n(5)),i=function(e){(0,l.default)(n,e);var t=(0,c.default)(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,r.default)(n,[{key:"getDefaultSettings",value:function(){return{selectors:{links:'a[href^="#ce-action"]'}}}},{key:"bindEvents",value:function(){ceFrontend.elements.$document.on("click",this.get
17573Settings("selectors.links"),this.runLinkAction.bind(this))}},{key:"initActions",value:function(){this.actions={lightbox:function(e){e.id?ceFrontend.utils.lightbox.openSlideshow(e.id,e.url):ceFrontend.utils.lightbox.showModal(e)},closeLightbox:function(){var e=ceFrontend.utils.lightbox.getModal();e.isVisible()&&e.hide()},carousel:function(e,t){var t=function(e,t){var n=(e=e.getBoundingClientRect()).left+e.width/2,i=e.top+e.height/2,o={d:1/0,elem:null};return $(t||document.body).find(".swiper-container").each(function(){var e=this.getBoundingClientRect(),e=Math.hypot(Math.max(e.left-n,0,n-e.right),Math.max(e.top-i,0,i-e.bottom));e<o.d&&(o.d=e,o.elem=this)}),o.elem}(t&&t.currentTarget||document.activeElement,e.selector),n=t&&t.swiper;if(n)switch(e.action){case"next":n.slideNext();break;case"prev":n.slidePrev();break;case"goto":n.slideTo(e.goto-1);break;case"play":n.autoplay.running||n.autoplay.start(),n.autoplay.paused&&n.run();break;case"pause":n.autoplay.pause()}},quickview:function(e,t){e=e.id_product?{idProduct:e.id_product,idProductAttribute:e.id_product_attribute||0}:$(t&&t.currentTarget||document.activeElement).closest("[data-id-product]").data()||{idProduct:$("#product input[id=product_page_product_id]:first").val()};e.idProduct&&(ceFrontend.utils.urlActions.actions.closeLightbox(),prestashop.emit("clickQuickView",{dataset:e}))},addToCart:function(e,t){var t=$(t&&t.currentTarget||document.activeElement).closest("[data-id-product]").data(),n=e.id_product||t&&t.idProduct;n?$.post(prestashop.urls.pages.cart,{add:1,action:"update",id_product:n,token:prestashop.static_token},null,"json").then(function(e){prestashop.emit("updateCart",{reason:{idProduct:e.id_product||n,idProductAttribute:e.id_product_attribute,idCustomization:e.id_customization,linkAction:"add-to-cart",cart:e.cart},resp:e})}).fail(function(e){prestashop.emit("handleError",{eventType:"addProductToCart",resp:e})}):$('form[id="add-to-cart-or-refresh"] [data-button-action="add-to-cart"]:first').click(),ceFrontend.utils.urlActions.actions.closeLightbox()},buyNow:function(t){var n=prestashop._events.updateCart;delete prestashop._events.updateCart,prestashop.once("updateCart",function(e){e.resp&&e.resp.success?location.href=prestashop.urls.pages[t.redirect||"order"]:(prestashop._events.updateCart=n,prestashop.emit("updateCart",e))}),ceFrontend.utils.urlActions.actions.addToCart(t)}}}},{key:"addAction",value:function(e,t){this.actions[e]=t}},{key:"runAction",value:function(e){e=e.match(/#ce-action=(\w+)({.*)/);if(e){var t=this.actions[e[1]];if(t){for(var e=JSON.parse(e[2]),n=arguments.length,i=new Array(1<n?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];t.apply(void 0,[e].concat(i))}}}},{key:"runLinkAction",value:function(e){e.preventDefault(),this.runAction(jQuery(e.currentTarget).attr("href"),e)}},{key:"runHashAction",value:function(){location.hash&&this.runAction(location.hash)}},{key:"createActionHash",value:function(e,t){return"#ce-action="+e+JSON.stringify(t)}},{key:"onInit",value:function(){(0,s.default)((0,a.default)(n.prototype),"onInit",this).call(this),this.initActions(),ceFrontend.on("components:init",this.runHashAction.bind(this))}}]),n}(elementorModules.ViewModule);t.default=i},function(e,t,n){"use strict";var i=n(0),s=(n(1)(t,"__esModule",{value:!0}),t.default=void 0,n(264),i(n(136))),a=i(n(23)),l=i(n(115)),o=i(n(2)),r=i(n(3)),c=window.Swiper,i=function(){function n(e,t){return(0,o.default)(this,n),this.config=t,this.config.breakpoints&&this.config.handleElementorBreakpoints&&this.adjustConfig(),new c(e,this.config)}return(0,r.default)(n,[{key:"adjustConfig",value:function(){var i=this,o=ceFrontend.config.breakpoints,r=(0,l.default)(o);(0,a.default)(this.config.breakpoints).forEach(function(e){var t,n=(0,s.default)(e);t=n===o.md||n+1===o.md?o.xs:(t=r.findIndex(function(e){return n===e||n+1===e}),r[t-1]),i.config.breakpoints[t]=i.config.breakpoints[e],i.config.breakpoints[e]={slidesPerView:i.config.slidesPerView,slidesPerGroup:i.config.slidesPerGroup||1,spaceBetween:i.config.spaceBetween,autoplay:i.config.autoplay,loop:i.config.loop}})}}]),n}();t.default=i,window.Swiper=i},function(e,t,i){"use strict";var n=i(0),o=n(i(643)),s=n(i(644)),a=n(i(645)),l=n(i(646)),c=n(i(647)),u=n(i(648)),d=n(i(649)),f=n(i(650)),h=n(i(651)),p=n(i(652)),m=n(i(657)),g=n(i(658)),v=n(i(400)),y=i(662),b=i(664),w=i(666);e.exports=function(n){var e=this,t={section:p.default,column:m.default,"accordion.default":o.default,"alert.default":s.default,"counter.default":a.default,"progress.default":l.default,"tabs.default":c.default,"toggle.default":u.default,"video.default":d.default,"image-carousel.default":f.default,"product-carou
17573sel.default":f.default,"testimonial-carousel.default":f.default,"trustedshops-reviews.default":f.default,"text-editor.default":h.default,"ajax-search.default":i(665),"animated-headline.default":i(663),"countdown.default":y,"product-sale-countdown.default":y,"nav-menu.default":b,"language-selector.default":b,"currency-selector.default":b,"sign-in.default":b,"contact-form.default":w,"email-subscription.default":w,"shopping-cart.default":i(667),"product-images.default":i(669)},r={};this.initHandlers=function(){ceFrontend.hooks.addAction("frontend/element_ready/global",g.default),ceFrontend.hooks.addAction("frontend/element_ready/global",v.default),n.each(t,function(e,t){ceFrontend.hooks.addAction("frontend/element_ready/"+e,t)}),ceFrontend.hooks.addAction("frontend/element_ready/section",i(405)),ceFrontend.hooks.addAction("frontend/element_ready/widget",i(405))},this.addHandler=function(e,t){var n,i=t.$element.data("model-cid"),o=(i&&(n=e.prototype.getConstructorID(),r[i]||(r[i]={}),(o=r[i][n])&&o.onDestroy()),new e(t));i&&(r[i][n]=o)},this.getHandlers=function(e){return e?t[e]:t},this.runReadyTrigger=function(e){var e=jQuery(e),t=e.attr("data-element_type");t&&(ceFrontend.hooks.doAction("frontend/element_ready/global",e,n),ceFrontend.hooks.doAction("frontend/element_ready/"+t,e,n),"widget"===t&&ceFrontend.hooks.doAction("frontend/element_ready/"+e.attr("data-widget_type"),e,n))},e.initHandlers()}},function(e,t,n){"use strict";var i=n(0),o=(n(1)(t,"__esModule",{value:!0}),t.default=void 0,i(n(575)));t.default=function(e){ceFrontend.elementsHandler.addHandler(o.default,{$element:e,showTabFn:"slideDown",hideTabFn:"slideUp"})}},function(e,t,n){"use strict";var i=n(0),o=(n(1)(t,"__esModule",{value:!0}),t.default=void 0,n(17),i(n(2))),r=i(n(3)),s=i(n(4)),a=i(n(5)),l=function(e){(0,s.default)(n,e);var t=(0,a.default)(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,r.default)(n,[{key:"getDefaultSettings",value:function(){return{selectors:{dismissButton:".elementor-alert-dismiss"}}}},{key:"getDefaultElements",value:function(){var e=this.getSettings("selectors");return{$dismissButton:this.$element.find(e.dismissButton)}}},{key:"bindEvents",value:function(){this.elements.$dismissButton.on("click",this.onDismissButtonClick.bind(this))}},{key:"onDismissButtonClick",value:function(){this.$element.fadeOut()}}]),n}(elementorModules.frontend.handlers.Base);t.default=function(e){ceFrontend.elementsHandler.addHandler(l,{$element:e})}},function(e,t,n){"use strict";var i=n(0),o=(n(1)(t,"__esModule",{value:!0}),t.default=void 0,n(187),n(97),n(99),n(17),i(n(2))),r=i(n(3)),s=i(n(22)),a=i(n(14)),l=i(n(4)),c=i(n(5)),u=function(e){(0,l.default)(i,e);var t=(0,c.default)(i);function i(){return(0,o.default)(this,i),t.apply(this,arguments)}return(0,r.default)(i,[{key:"getDefaultSettings",value:function(){return{selectors:{counterNumber:".elementor-counter-number"}}}},{key:"getDefaultElements",value:function(){var e=this.getSettings("selectors");return{$counterNumber:this.$element.find(e.counterNumber)}}},{key:"onInit",value:function(){var n=this;(0,s.default)((0,a.default)(i.prototype),"onInit",this).call(this),ceFrontend.waypoint(this.elements.$counterNumber,function(){var e=n.elements.$counterNumber.data(),t=e.toValue.toString().match(/\.(.*)/);t&&(e.rounding=t[1].length),n.elements.$counterNumber.numerator(e)})}}]),i}(elementorModules.frontend.handlers.Base);t.default=function(e){ceFrontend.elementsHandler.addHandler(u,{$element:e})}},function(e,t,n){"use strict";var i=n(0),o=(n(1)(t,"__esModule",{value:!0}),t.default=void 0,n(17),i(n(2))),r=i(n(3)),s=i(n(22)),a=i(n(14)),l=i(n(4)),c=i(n(5)),u=function(e){(0,l.default)(n,e);var t=(0,c.default)(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,r.default)(n,[{key:"getDefaultSettings",value:function(){return{selectors:{progressNumber:".elementor-progress-bar"}}}},{key:"getDefaultElements",value:function(){var e=this.getSettings("selectors");return{$progressNumber:this.$element.find(e.progressNumber)}}},{key:"onInit",value:function(){var t=this;(0,s.default)((0,a.default)(n.prototype),"onInit",this).call(this),ceFrontend.waypoint(this.elements.$progressNumber,function(){var e=t.elements.$progressNumber;e.css("width",e.data("max")+"%")})}}]),n}(elementorModules.frontend.handlers.Base);t.default=function(e){ceFrontend.elementsHandler.addHandler(u,{$element:e})}},function(e,t,n){"use strict";
17573var i=n(0),o=(n(1)(t,"__esModule",{value:!0}),t.default=void 0,i(n(575)));t.default=function(e){ceFrontend.elementsHandler.addHandler(o.default,{$element:e,toggleSelf:!1})}},function(e,t,n){"use strict";var i=n(0),o=(n(1)(t,"__esModule",{value:!0}),t.default=void 0,i(n(575)));t.default=function(e){ceFrontend.elementsHandler.addHandler(o.default,{$element:e,showTabFn:"slideDown",hideTabFn:"slideUp",hidePrevious:!1,autoExpand:"editor"})}},function(e,t,n){"use strict";var i=n(0),o=(n(1)(t,"__esModule",{value:!0}),t.default=void 0,n(206),n(231),n(53),n(17),i(n(2))),r=i(n(3)),s=i(n(4)),a=i(n(5)),l=function(e){(0,s.default)(n,e);var t=(0,a.default)(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,r.default)(n,[{key:"getDefaultSettings",value:function(){return{selectors:{imageOverlay:".elementor-custom-embed-image-overlay",video:".elementor-video",videoIframe:".elementor-video-iframe"}}}},{key:"getDefaultElements",value:function(){var e=this.getSettings("selectors");return{$imageOverlay:this.$element.find(e.imageOverlay),$video:this.$element.find(e.video),$videoIframe:this.$element.find(e.videoIframe)}}},{key:"getLightBox",value:function(){return ceFrontend.utils.lightbox}},{key:"handleVideo",value:function(){this.getElementSettings("lightbox")||(this.elements.$imageOverlay.remove(),this.playVideo())}},{key:"playVideo",value:function(){var e,t,n;this.elements.$video.length?this.elements.$video[0].play():((t=(e=this.elements.$videoIframe).data("lazy-load"))&&e.attr("src",t),t=e[0].src.replace("&autoplay=0",""),e[0].src=t+"&autoplay=1",e[0].src.includes("vimeo.com")&&(t=e[0].src,n=/#t=[^&]*/.exec(t),e[0].src=t.slice(0,n.index)+t.slice(n.index+n[0].length)+n[0]))}},{key:"animateVideo",value:function(){this.getLightBox().setEntranceAnimation(this.getCurrentDeviceSetting("lightbox_content_animation"))}},{key:"handleAspectRatio",value:function(){this.getLightBox().setVideoAspectRatio(this.getElementSettings("aspect_ratio"))}},{key:"bindEvents",value:function(){this.elements.$imageOverlay.on("click",this.handleVideo.bind(this))}},{key:"onElementChange",value:function(e){var t;0===e.indexOf("lightbox_content_animation")?this.animateVideo():(t=this.getElementSettings("lightbox"),"lightbox"!==e||t?"aspect_ratio"===e&&t&&this.handleAspectRatio():this.getLightBox().getModal().hide())}}]),n}(elementorModules.frontend.handlers.Base);t.default=function(e){ceFrontend.elementsHandler.addHandler(l,{$element:e})}},function(e,t,n){"use strict";var i=n(0),o=(n(1)(t,"__esModule",{value:!0}),t.default=void 0,n(17),i(n(2))),r=i(n(3)),a=i(n(22)),l=i(n(14)),c=i(n(4)),u=i(n(5)),s=function(e){(0,c.default)(s,e);var t=(0,u.default)(s);function s(){return(0,o.default)(this,s),t.apply(this,arguments)}return(0,r.default)(s,[{key:"getDefaultSettings",value:function(){return{selectors:{carousel:".elementor-carousel-wrapper",slideContent:".swiper-slide"}}}},{key:"getDefaultElements",value:function(){var e=this.getSettings("selectors"),t={$carousel:this.$element.find(e.carousel)};return t.$swiperSlides=t.$carousel.find(e.slideContent),t}},{key:"getSlidesCount",value:function(){return this.elements.$swiperSlides.length}},{key:"getSwiperSettings",value:function(){var e=this.getElementSettings(),t="yes"===e.variable_width,n=+e.slides_to_show||e.default_slides_count,i=1===n,o=!i&&e.default_slides_count-1||1,r=ceFrontend.config.breakpoints,s=e[this.spaceBetweenKey]&&e[this.spaceBetweenKey]||{},a=parseInt(this.elements.$swiperSlides.css("fontSize")),l={delay:e.autoplay_speed,disableOnInteraction:"yes"===e.pause_on_interaction},s={touchThreshold:100,slidesPerView:t?"auto":n,spaceBetween:(s.size||0)*("em"===s.unit?a:1),centeredSlides:"yes"===e.center_mode,autoplay:$.extend({enabled:!this.isEdit&&"yes"===e.autoplay},l),loop:"yes"===e.infinite&&(t||this.slidesCount>n),speed:e.speed,handleElementorBreakpoints:!0,breakpoints:{}},l=(s.breakpoints[r.lg]={slidesPerView:t?"auto":+e.slides_to_show_tablet||o,slidesPerGroup:+e.slides_to_scroll_tablet||1,centeredSlides:"yes"===e.center_mode_tablet,autoplay:$.extend({enabled:!this.isEdit&&"yes"===e.autoplay_tablet},l),loop:"yes"===e.infinite_tablet&&(t||this.slidesCount>(+e.slides_to_show_tablet||o))},s.breakpoints[r.md]={slidesPerView:t?"auto":+e.slides_to_show_mobile||1,slidesPerGroup:+e.slides_to_scroll_mobile||1,centeredSlides:"yes"===e.center_mode_mobile,autoplay:$.extend({enabled:!this.isEdit&&"yes"===e.autoplay_mobile},l),loop:"yes"===e.infinite_mobile&&(t||this.slidesCount>(+e.slides_to_show_mobile||1))},i?(s.effect=e.effect,"fade"===e.effect&&(s.fadeEffect={crossFade:!0})):s.slidesPerGroup=+e.slides_to_scroll||1,e[this.spaceBetweenKey+"_tablet"]&&"number"==typeof e[this.spaceBetweenKey+"_tablet"].size&&(n=e[this.spaceBetweenKey+"_tablet"],s.breakpoints[r.lg].spaceBetween=n.size*("em"===n.unit?a:1)),e[this.spaceBetweenKey+"_mobile"]&&"number"==typeof e[this.spaceBetweenKey+"_mobile"].size&&(o=e[this.spaceBetweenKey+"_mobile"],s.breakpoints[r.md].spaceBetween=o.size*("em"===o.unit?a:1)),"arrows"===e.navigation||"both"===e.navigation),t="dots"===e.navigation||"both"===e.navigation;return l&&(s.navigation={prevEl:".elementor-swiper-button-prev",nextEl:".elementor-swiper-button-next"}),t&&(s.pagination={el:".swiper-pagination",type:"bullets",clickable:!0}),s}},{key:"updateSpaceBetween",value:function(){var e=this.swiper.params,t=ceFrontend.getCurrentDeviceSetting(this.getElementSettings(),this.spaceBetweenKey)||{};e.spaceBetween=(t.size||0)*("em"===t.unit?parseInt(this.elements.$swiperSlides.css("fontSize")):1),this.swiper.update(
17573)}},{key:"onInit",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];(r=(0,a.default)((0,l.default)(s.prototype),"onInit",this)).call.apply(r,[this].concat(n));var o,r=this.getElementSettings();this.elements.$swiperSlides.length&&(this.slidesCount=this.elements.$swiperSlides.length,o=this.$element.data("widget_type").split(".")[0],this.spaceBetweenKey={"image-carousel":"image_spacing_custom","product-carousel":"product_spacing_custom","trustedshops-reviews":"reviews_spacing"}[o]||"space_between",this.swiper=new Swiper(this.elements.$carousel,this.getSwiperSettings()),this.elements.$carousel.data("swiper",this.swiper),"yes"===r.pause_on_hover&&this.elements.$carousel.on({mouseenter:function(){e.swiper.autoplay.stop()},mouseleave:function(){e.swiper.autoplay.start()}}))}},{key:"onElementChange",value:function(e){0===e.indexOf(this.spaceBetweenKey)?this.updateSpaceBetween():~["arrows_position","image_height"].indexOf(e)&&this.swiper.update()}},{key:"onEditSettingsChange",value:function(e){"activeItemIndex"===e&&this.swiper&&this.swiper.slideToLoop(this.getEditSettings("activeItemIndex")-1)}}]),s}(elementorModules.frontend.handlers.Base);t.default=function(e){ceFrontend.elementsHandler.addHandler(s,{$element:e})}},function(e,t,n){"use strict";var i=n(0),r=(n(1)(t,"__esModule",{value:!0}),t.default=void 0,n(99),n(53),n(17),i(n(2))),s=i(n(3)),a=i(n(22)),l=i(n(14)),c=i(n(4)),u=i(n(5)),o=function(e){(0,c.default)(o,e);var t=(0,u.default)(o);function o(){return(0,r.default)(this,o),t.apply(this,arguments)}return(0,s.default)(o,[{key:"getDefaultSettings",value:function(){return{selectors:{paragraph:"p:first"},classes:{dropCap:"elementor-drop-cap",dropCapLetter:"elementor-drop-cap-letter"}}}},{key:"getDefaultElements",value:function(){var e=this.getSettings("selectors"),t=this.getSettings("classes"),n=jQuery("<span>",{class:t.dropCap}),t=jQuery("<span>",{class:t.dropCapLetter});return n.append(t),{$paragraph:this.$element.find(e.paragraph),$dropCap:n,$dropCapLetter:t}}},{key:"wrapDropCap",value:function(){var e,t,n,i;this.getElementSettings("drop_cap")?(e=this.elements.$paragraph).length&&(n=(t=e.html().replace(/ /g," ")).match(/^ *([^ ] ?)/))&&"<"!==(i=(n=n[1]).trim())&&(this.dropCapLetter=n,this.elements.$dropCapLetter.text(i),i=t.slice(n.length).replace(/^ */,function(e){return new Array(e.length+1).join(" ")}),e.html(i).prepend(this.elements.$dropCap)):this.dropCapLetter&&(this.elements.$dropCap.remove(),this.elements.$paragraph.prepend(this.dropCapLetter),this.dropCapLetter="")}},{key:"onInit",value:function(){for(var e,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];(e=(0,a.default)((0,l.default)(o.prototype),"onInit",this)).call.apply(e,[this].concat(n)),this.wrapDropCap()}},{key:"onElementChange",value:function(e){"drop_cap"===e&&this.wrapDropCap()}}]),o}(elementorModules.frontend.handlers.Base);t.default=function(e){ceFrontend.elementsHandler.addHandler(o,{$element:e})}},function(e,t,n){"use strict";var i=n(0),o=(n(1)(t,"__esModule",{value:!0}),t.default=void 0,i(n(596))),r=i(n(653)),s=i(n(654)),a=i(n(655)),l=i(n(656));t.default=function(e){(ceFrontend.isEditMode()||e.hasClass("elementor-section-stretched"))&&ceFrontend.elementsHandler.addHandler(a.default,{$element:e}),ceFrontend.isEditMode()&&(ceFrontend.elementsHandler.addHandler(l.default,{$element:e}),ceFrontend.elementsHandler.addHandler(s.default,{$element:e})),ceFrontend.elementsHandler.addHandler(r.default,{$element:e}),ceFrontend.elementsHandler.addHandler(o.default,{$element:e})}},function(e,t,n){"use strict";var i=n(0),r=(n(1)(t,"__esModule",{value:!0}),t.default=void 0,n(99),n(68),n(17),i(n(2))),s=i(n(3)),a=i(n(22)),l=i(n(14)),c=i(n(4)),u=i(n(5)),i=function(e){(0,c.default)(o,e);var t=(0,u.default)(o);function o(){return(0,r.default)(this,o),t.apply(this,arguments)}return(0,s.default)(o,[{key:"getDefaultSettings",value:function(){return{selectors:{backgroundVideoContainer:".elementor-background-video-container",backgroundVideoEmbed:".elementor-background-video-embed",backgroundVideoHosted:".elementor-background-video-hosted"}}}},{key:"getDefaultElements",value:function(){var e=this.getSettings("selectors"),t={$backgroundVideoContainer:this.$element.find(e.backgroundVideoContainer)};return t.$backgroundVideoEmbed=t.$backgroundVideoContainer.children(e.backgroundVideoEmbed),t.$backgroundVideoHosted=t.$backgroundVideoContainer.children(e.backgroundVideoHosted),t}},{key:"calcVideosSize",value:function(e){var t="16:9",e=("vimeo"===this.videoType&&(t=e[0].width+":"+e[0].height),this.elements.$backgroundVideoContainer.outerWidth()),n=this.elements.$backgroundVideoContainer.outerHeight(),t=t.split(":"),t=t[0]/t[1],i=t<e/n;return{width:i?e:n*t,height:i?e/t:n}}},{key:"changeVideoSize",value:function(){var e,t;"hosted"!==this.videoType&&!this.player||("youtube"===this.videoType?e=jQuery(this.player.getIframe()):"vimeo"===this.videoType?e=jQuery(this.player.element):"hosted"===this.videoType&&(e=this.elements.$backgroundVideoHosted),e&&(t=this.calcVideosSize(e),e.width(t.width).height(t.height)))}},{key:"startVideoLoop",value:function(e){var t,n,i,o=this;this.player.getIframe().contentWindow&&(n=(t=this.getElementSettings()).background_video_start||0,i=t.background_video_end,t.background_play_once&&!e?this.player.stopVideo():(this.player.seekTo(n),i&&setTimeout(function(){o.startVideoLoop(!1)},1e3*(i-n+1))))}},{key:"prepareVimeoVideo",value:function(e,t){var n=this,i=this.getElementSettings(),t=(i.background_video_start,{id:t,width:this.elements.$backgroundVideoContainer.outerWidth().width,autoplay:!0,loop:!i.background_play_once,transparent:!1,background:!0,muted:!0}
17573);this.player=new e.Player(this.elements.$backgroundVideoContainer,t),this.handleVimeoStartEndTimes(i),this.player.ready().then(function(){jQuery(n.player.element).addClass("elementor-background-video-embed"),n.changeVideoSize()})}},{key:"handleVimeoStartEndTimes",value:function(n){var i=this;n.background_video_start&&this.player.on("play",function(e){0===e.seconds&&i.player.setCurrentTime(n.background_video_start)}),this.player.on("timeupdate",function(t){n.background_video_end&&n.background_video_end<t.seconds&&(n.background_play_once?i.player.pause():i.player.setCurrentTime(n.background_video_start)),i.player.getDuration().then(function(e){n.background_video_start&&!n.background_video_end&&t.seconds>e-.5&&i.player.setCurrentTime(n.background_video_start)})})}},{key:"prepareYTVideo",value:function(t,e){var n=this,i=this.elements.$backgroundVideoContainer,o=this.getElementSettings(),r=t.PlayerState.PLAYING;window.chrome&&(r=t.PlayerState.UNSTARTED),i.addClass("elementor-loading elementor-invisible"),this.player=new t.Player(this.elements.$backgroundVideoEmbed[0],{videoId:e,events:{onReady:function(){n.player.mute(),n.changeVideoSize(),n.startVideoLoop(!0),n.player.playVideo()},onStateChange:function(e){switch(e.data){case r:i.removeClass("elementor-invisible elementor-loading");break;case t.PlayerState.ENDED:n.player.seekTo(o.background_video_start||0),o.background_play_once&&n.player.destroy()}}},playerVars:{controls:0,rel:0,playsinline:1}})}},{key:"activate",value:function(){var t,e,n,i=this,o=this.getElementSettings("background_video_link"),r=this.getElementSettings("background_play_once");-1!==o.indexOf("vimeo.com")?(this.videoType="vimeo",this.apiProvider=ceFrontend.utils.vimeo):o.match(/^(?:https?:\/\/)?(?:www\.)?(?:m\.)?(?:youtu\.be\/|youtube\.com)/)&&(this.videoType="youtube",this.apiProvider=ceFrontend.utils.youtube),this.apiProvider?(t=this.apiProvider.getVideoIDFromURL(o),this.apiProvider.onApiReady(function(e){"youtube"===i.videoType&&i.prepareYTVideo(e,t),"vimeo"===i.videoType&&i.prepareVimeoVideo(e,t)})):(this.videoType="hosted",e=this.getElementSettings("background_video_start"),n=this.getElementSettings("background_video_end"),(e||n)&&(o+="#t="+(e||0)+(n?","+n:"")),this.elements.$backgroundVideoHosted.attr("src",o).one("canplay",this.changeVideoSize.bind(this)),r&&this.elements.$backgroundVideoHosted.on("ended",function(){i.elements.$backgroundVideoHosted.hide()})),ceFrontend.elements.$window.on("resize",this.changeVideoSize)}},{key:"deactivate",value:function(){"youtube"===this.videoType&&this.player.getIframe()||"vimeo"===this.videoType?this.player.destroy():this.elements.$backgroundVideoHosted.removeAttr("src").off("ended"),ceFrontend.elements.$window.off("resize",this.changeVideoSize)}},{key:"run",value:function(){var e=this.getElementSettings();!e.background_play_on_mobile&&"mobile"===ceFrontend.getCurrentDeviceMode()||("video"===e.background_background&&e.background_video_link?this.activate():this.deactivate())}},{key:"onInit",value:function(){for(var e,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];(e=(0,a.default)((0,l.default)(o.prototype),"onInit",this)).call.apply(e,[this].concat(n)),this.changeVideoSize=this.changeVideoSize.bind(this),this.run()}},{key:"onElementChange",value:function(e){"background_background"===e&&this.run()}}]),o}(elementorModules.frontend.handlers.Base);t.default=i},function(e,t,n){"use strict";var i=n(0),o=(n(1)(t,"__esModule",{value:!0}),t.default=void 0,n(17),i(n(2))),r=i(n(3)),s=i(n(4)),a=i(n(5)),i=function(e){(0,s.default)(n,e);var t=(0,a.default)(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,r.default)(n,[{key:"isFirstSection",value:function(){return this.$element.is(".elementor-edit-mode .elementor-top-section:first")}},{key:"isOverflowHidden",value:function(){return"hidden"===this.$element.css("overflow")}},{key:"getOffset",value:function(){if("body"===elementor.config.document.container)return this.$element.offset().top;var e=jQuery(elementor.config.document.container);return this.$element.offset().top-e.offset().top}},{key:"setHandlesPosition",value:function(){var e,t,n=elementor.documents.getCurrent();n&&n.container.isEditable()&&(((n=this.isOverflowHidden())||this.isFirstSection())&&(n=n?0:this.getOffset(),e=this.$element.find("> .elementor-element-overlay > .elementor-editor-section-settings"),t="elementor-section--handles-inside",n<25||this.$element.closest('[data-elementor-type^="product-"]').length?(this.$element.addClass(t),n<-5?e.css("top",-n):e.css("top","")):this.$element.removeClass(t)))}},{key:"onInit",value:function(){this.setHandlesPosition(),this.$element.on("mouseenter",this.setHandlesPosition.bind(this))}}]),n}(elementorModules.frontend.handlers.Base);t.default=i},function(e,t,n){"use strict";
17573var i=n(0),r=(n(1)(t,"__esModule",{value:!0}),t.default=void 0,i(n(2))),s=i(n(3)),a=i(n(22)),l=i(n(14)),c=i(n(4)),u=i(n(5)),i=function(e){(0,c.default)(o,e);var t=(0,u.default)(o);function o(){return(0,r.default)(this,o),t.apply(this,arguments)}return(0,s.default)(o,[{key:"bindEvents",value:function(){var e=this.getUniqueHandlerID();ceFrontend.addListenerOnce(e,"resize",this.stretch),ceFrontend.addListenerOnce(e,"sticky:stick",this.stretch,this.$element),ceFrontend.addListenerOnce(e,"sticky:unstick",this.stretch,this.$element)}},{key:"unbindEvents",value:function(){ceFrontend.removeListeners(this.getUniqueHandlerID(),"resize",this.stretch)}},{key:"initStretch",value:function(){this.stretch=this.stretch.bind(this),this.stretchElement=new elementorModules.frontend.tools.StretchElement({element:this.$element,selectors:{container:this.getStretchContainer()}})}},{key:"getStretchContainer",value:function(){return ceFrontend.getGeneralSettings("elementor_stretched_section_container")||document.body}},{key:"stretch",value:function(){this.getElementSettings("stretch_section")&&this.stretchElement.stretch()}},{key:"onInit",value:function(){var e;this.initStretch();for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];(e=(0,a.default)((0,l.default)(o.prototype),"onInit",this)).call.apply(e,[this].concat(n)),this.stretch()}},{key:"onElementChange",value:function(e){"stretch_section"===e&&(this.getElementSettings("stretch_section")?this.stretch():this.stretchElement.reset())}},{key:"onGeneralSettingsChange",value:function(e){"elementor_stretched_section_container"in e&&(this.stretchElement.setSettings("selectors.container",this.getStretchContainer()),this.stretch())}}]),o}(elementorModules.frontend.handlers.Base);t.default=i},function(e,t,n){"use strict";var i=n(0),o=(n(1)(t,"__esModule",{value:!0}),t.default=void 0,n(99),n(53),n(17),i(n(2))),s=i(n(3)),a=i(n(22)),l=i(n(14)),c=i(n(4)),u=i(n(5)),i=function(e){(0,c.default)(r,e);var t=(0,u.default)(r);function r(){return(0,o.default)(this,r),t.apply(this,arguments)}return(0,s.default)(r,[{key:"getDefaultSettings",value:function(){return{selectors:{container:"> .elementor-shape-%s"},svgURL:ceFrontend.config.urls.assets+"img/shapes/"}}},{key:"getDefaultElements",value:function(){var e={},t=this.getSettings("selectors");return e.$topContainer=this.$element.find(t.container.replace("%s","top")),e.$bottomContainer=this.$element.find(t.container.replace("%s","bottom")),e}},{key:"getSvgURL",value:function(e,t){var n=this.getSettings("svgURL")+t+".svg";return elementor.config.additional_shapes&&e in elementor.config.additional_shapes&&(n=elementor.config.additional_shapes[e],-1<t.indexOf("-negative")&&(n=n.replace(".svg","-negative.svg"))),n}},{key:"buildSVG",value:function(e){var t,n="shape_divider_"+e,i=this.getElementSettings(n),o=this.elements["$"+e+"Container"];o.attr("data-shape",i),i?(t=i,this.getElementSettings(n+"_negative")&&(t+="-negative"),n=this.getSvgURL(i,t),jQuery.get(n,function(e){o.empty().append(e.childNodes[0])}),this.setNegative(e)):o.empty()}},{key:"setNegative",value:function(e){this.elements["$"+e+"Container"].attr("data-negative",!!this.getElementSettings("shape_divider_"+e+"_negative"))}},{key:"onInit",value:function(){for(var e,t=this,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];(e=(0,a.default)((0,l.default)(r.prototype),"onInit",this)).call.apply(e,[this].concat(i)),["top","bottom"].forEach(function(e){t.getElementSettings("shape_divider_"+e)&&t.buildSVG(e)})}},{key:"onElementChange",value:function(e){var t=e.match(/^shape_divider_(top|bottom)$/);t?this.buildSVG(t[1]):(t=e.match(/^shape_divider_(top|bottom)_negative$/))&&(this.buildSVG(t[1]),this.setNegative(t[1]))}}]),r}(elementorModules.frontend.handlers.Base);t.default=i},function(e,t,n){"use strict";var i=n(0),o=(n(1)(t,"__esModule",{value:!0}),t.default=void 0,i(n(596)));t.default=function(e){ceFrontend.elementsHandler.addHandler(o.default,{$element:e})}},function(e,t,n){"use strict";var i=n(0),o=(n(1)(t,"__esModule",{value:!0}),t.default=void 0,i(n(2))),s=i(n(3)),a=i(n(22)),l=i(n(14)),c=i(n(4)),u=i(n(5)),r=function(e){(0,c.default)(r,e);var t=(0,u.default)(r);function r(){return(0,o.default)(this,r),t.apply(this,arguments)}return(0,s.default)(r,[{key:"getWidgetType",value:function(){return"global"}},{key:"animate",value:function(){var e,t=this.$element,n=this.getAnimation();"none"===n?t.removeClass("elementor-invisible"):(e=(e=this.getElementSettings())._animation_delay||e.animation_delay||0,t.addClass("elementor-invisible").removeClass(n),this.currentAnimation&&t.removeClass(this.currentAnimation),this.currentAnimation=n,setTimeout(function(){t.removeClass("elementor-invisible").addClass("animated "+n)},e))}},{key:"getAnimation",value:function(){return this.getCurrentDeviceSetting("animation")||this.getCurrentDeviceSetting("_animation")}},{key:"onInit",value:function(){for(var e,t=this,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];(e=(0,a.default)((0,l.default)(r.prototype),"onInit",this)).call.apply(e,[this].concat(i)),this.getAnimation()&&ceFrontend.waypoint(this.$element,function(){return t.animate()})}},{key:"onElementChange",value:function(e){/^_?animation/.test(e)&&this.animate()}}]),r}(elementorModules.frontend.handlers.Base);t.default=function(e){ceFrontend.elementsHandler.addHandler(r,{$element:e})}},function(e,t,n){"use strict";e.exports=elementorModules.ViewModule.extend({getDefaultSettings:function(){return{scrollDuration:500,selectors:{links:'a[href*="#"]',targets:".elementor-element, .elementor-menu-anchor",scrollable:"html, body"}}},getDefaultElements:function(){return{$scrollable:jQuery(this.getSettings("selectors").scrollable)}},bindEvents:function(){ceFrontend.elements.$document.on("click",this.get
17573Settings("selectors.links"),this.handleAnchorLinks)},handleAnchorLinks:function(e){var t,n=e.currentTarget,i=location.pathname===n.pathname,o=location.hostname===n.hostname;if(o&&i&&!(n.hash.length<2)){try{t=jQuery(n.hash).filter(this.getSettings("selectors.targets"))}catch(e){return}t.length&&(o=t.offset().top,0<(i=jQuery(".elementor-section.elementor-sticky--active:visible")).length&&(o-=Math.max.apply(null,i.map(function(){return jQuery(this).outerHeight()}).get())),e.preventDefault(),o=ceFrontend.hooks.applyFilters("frontend/handlers/menu_anchor/scroll_top_distance",o),this.elements.$scrollable.animate({scrollTop:o},this.getSettings("scrollDuration"),"linear"))}},onInit:function(){elementorModules.ViewModule.prototype.onInit.apply(this,arguments),this.bindEvents()}})},function(t,e,n){"use strict";var i=n(0),r=(n(99),n(17),n(53),i(n(661)));t.exports=elementorModules.ViewModule.extend({oldAspectRatio:null,oldAnimation:null,swiper:null,player:null,getDefaultSettings:function(){return{classes:{aspectRatio:"elementor-aspect-ratio-%s",item:"elementor-lightbox-item",image:"elementor-lightbox-image",videoContainer:"elementor-video-container",videoWrapper:"elementor-fit-aspect-ratio",playButton:"elementor-custom-embed-play",playButtonIcon:"fa",playing:"elementor-playing",hidden:"elementor-hidden",invisible:"elementor-invisible",preventClose:"elementor-lightbox-prevent-close",slideshow:{container:"swiper-container",slidesWrapper:"swiper-wrapper",prevButton:"elementor-swiper-button elementor-swiper-button-prev",nextButton:"elementor-swiper-button elementor-swiper-button-next",prevButtonIcon:"ceicon-chevron-left",nextButtonIcon:"ceicon-chevron-right",slide:"swiper-slide",header:"elementor-slideshow__header",footer:"elementor-slideshow__footer",title:"elementor-slideshow__title",description:"elementor-slideshow__description",counter:"elementor-slideshow__counter",iconExpand:"ceicon-frame-expand",iconShrink:"ceicon-frame-minimize",iconZoomIn:"ceicon-zoom-in-bold",iconZoomOut:"ceicon-zoom-out-bold",hideUiVisibility:"elementor-slideshow--ui-hidden",fullscreenMode:"elementor-slideshow--fullscreen-mode",zoomMode:"elementor-slideshow--zoom-mode"}},selectors:{links:"a, [data-elementor-lightbox]",slideshow:{activeSlide:".swiper-slide-active",prevSlide:".swiper-slide-prev",nextSlide:".swiper-slide-next"}},modalOptions:{id:"elementor-lightbox",entranceAnimation:"zoomIn",videoAspectRatio:169,position:{enable:!1}}}},getModal:function(){return t.exports.modal||this.initModal(),t.exports.modal},initModal:function(){var e=t.exports.modal=ceFrontend.getDialogsManager().createWidget("lightbox",{className:"elementor-lightbox",closeButton:!0,closeButtonClass:"ceicon-close",selectors:{preventClose:"."+this.getSettings("classes.preventClose")},hide:{onClick:!0}});e.on("hide",function(){e.setMessage("")})},showModal:function(e){var t=this,n=t.getDefaultSettings().modalOptions,i=(t.id=e.id,t.setSettings("modalOptions",jQuery.extend(n,e.modalOptions)),t.getModal());switch(i.setID(t.getSettings("modalOptions.id")),i.onShow=function(){DialogsManager.getWidgetType("lightbox").prototype.onShow.apply(i,arguments),t.setEntranceAnimation()},i.onHide=function(){DialogsManager.getWidgetType("lightbox").prototype.onHide.apply(i,arguments),i.getElements("message").removeClass("animated"),r.default.isFullscreen&&t.deactivateFullscreen()},e.type){case"video":t.setVideoContent(e);break;case"image":var o=[{image:e.url,index:0,title:e.title,description:e.description}];e.slideshow={slides:o,swiper:{loop:!1,pagination:!1}};case"slideshow":t.setSlideshowContent(e.slideshow);break;default:t.setHTMLContent(e.html)}i.show()},setHTMLContent:function(e){this.getModal().setMessage(e)},setVideoContent:function(e){var t,n=jQuery,i=this.getSettings("classes"),o=n("<div>",{class:"".concat(i.videoContainer," ").concat(i.preventClose)}),i=n("<div>",{class:i.videoWrapper}),r=this.getModal(),s=(t="hosted"===e.videoType?(t=n.extend({src:e.url,autoplay:""},e.videoParams),n("<video>",t)):n("<iframe>",{src:e.url.replace("&autoplay=0","")+"&autoplay=1",allowfullscreen:1}),o.append(i),i.append(t),r.setMessage(o),this.setVideoAspectRatio(),r.onHide);r.onHide=function(){s(),r.getElements("message").removeClass("elementor-fit-aspect-ratio")}},getSlideshowHeader:function(){var e=jQuery,t="yes"===ceFrontend.getGeneralSettings("elementor_lightbox_enable_counter"),n="yes"===ceFrontend.getGeneralSettings("elementor_lightbox_enable_fullscreen"),i="yes"===ceFrontend.getGeneralSettings("elementor_lightbox_enable_zoom"),o=this.getSettings("classes"),r=o.slideshow,s=this.elements;if(t||n||i)return s.$header=e("<header>",{class:r.header+" "+o.preventClose}),t&&(s.$counter=e("<span>",{class:r.counter}),s.$header.append(s.$counter)),n&&(s.$iconExpand=e("<i>",{class:r.iconExpand}).append(e("<span>"),e("<span>")),s.$iconExpand.on("click",this.toggleFullscreen),s.$header.append(s.$iconExpand)),i&&(s.$iconZoom=e("<i>",{class:r.iconZoomIn}),s.$iconZoom.on("click",this.toggleZoomMode),s.$header.append(s.$iconZoom)),s.$header},toggleFullscreen:function(){r.default.isFullscreen?this.deactivateFullscreen():r.default.isEnabled&&this.activateFullscreen()},toggleZoomMode:function(){1!==this.swiper.zoom.scale?this.deactivateZoom():this.activateZoom()},activateFullscreen:function(){var e=this.getSettings("classes");r.default.request(this.elements.$container.parents(".dialog-widget")[0]),this.elements.$iconExpand.removeClass(e.slideshow.iconExpand).addClass(e.slideshow.iconShrink),this.elements.$container.addClass(e.slideshow.fullscreenMode)},deactivateFullscreen:function(){var e=this.getSettings("classes");r.default.exit(),this.elements.$iconExpand.removeClass(e.slideshow.iconShrink).addClass(e.slideshow.iconExpand),this.elements.$container.removeClass(e.slideshow.fullscreenMode)},activateZoom:function(){var e=this.swiper,t=this.elements,n=this.getSettings("classes");e.zoom.in(),e.allowSlideNext=!1,e.allowSlidePrev=!1,e.allowTouchMove=!1,t.$container.addClass(n.slideshow.zoomMode),t.$iconZoom.removeClass(n.slideshow.iconZoomIn).addClass(n.slideshow.iconZoomOut)},deactivateZoom:function(){var e=this.swiper,t=this.elements,n=this.getSettings("classes");e.zoom.out(),e.allowSlideNext=!0,e.allowSlidePrev=!0,e.allowTouchMove=!0,t.$container.removeClass(n.slideshow.zoomMode),t.$iconZoom.removeClass(n.slideshow.iconZoomOut).addClass(n.slideshow.iconZoomIn)},getSlideshowFooter:function(){var e=jQuery,t=this.getSettings("classes"),n=e("<footer>",{class:t.slideshow.footer+" "+t.preventClose}),i=e("<div>",{class:t.slideshow.title}),e=e("<div>",{class:t.slideshow.description});return n.append(i,e),n},setSlideshowContent:function(t){var n,i,o=this,r=jQuery,s=1===t.slides.length,e=""!==ceFrontend.getGeneralSettings("elementor_lightbox_title_src"),a=""!==ceFrontend.getGeneralSettings("elementor_lightbox_description_src"),l=e||a,c=this.getSettings("classes"),u=c.slideshow,d=r("<div>",{class:u.container}),f=r("<div>",{class:u.slidesWrapper}
17573),e=(t.slides.forEach(function(e){var t,n=u.slide+" "+c.item,n=(e.video&&(n+=" "+c.video),r("<div>",{class:n}));e.video?(n.attr("data-elementor-slideshow-video",e.video),t=r("<div>",{class:c.playButton}).html(r("<i>",{class:c.playButtonIcon})),n.append(t)):(t=r("<div>",{class:"swiper-zoom-container"}),e=r("<img>",{class:c.image+" "+c.preventClose,src:e.image,"data-title":e.title,"data-description":e.description}),t.append(e),n.append(t)),f.append(n)}),this.elements.$container=d,this.elements.$header=this.getSlideshowHeader(),d.prepend(this.elements.$header).append(f),s||(n=r("<div>",{class:u.prevButton+" "+c.preventClose}).html(r("<i>",{class:u.prevButtonIcon})),i=r("<div>",{class:u.nextButton+" "+c.preventClose}).html(r("<i>",{class:u.nextButtonIcon})),d.append(n,i)),l&&(this.elements.$footer=this.getSlideshowFooter(),d.append(this.elements.$footer)),this.setSettings("hideUiTimeout",""),d.on("click mousemove keypress",function(){clearTimeout(o.getSettings("hideUiTimeout")),d.removeClass(u.hideUiVisibility),o.setSettings("hideUiTimeout",setTimeout(function(){d.addClass(u.hideUiVisibility)},3500))}),this.getModal()),h=(e.setMessage(d),e.onShow);e.onShow=function(){h();var e={pagination:{el:"."+u.counter,type:"fraction"},on:{slideChangeTransitionEnd:o.onSlideChange},zoom:!0,spaceBetween:100,grabCursor:!0,runCallbacksOnInit:!1,loop:!0,keyboard:!0,handleElementorBreakpoints:!0};s||(e.navigation={prevEl:n,nextEl:i}),t.swiper&&r.extend(e,t.swiper),o.swiper=new Swiper(d,e),d.data("swiper",o.swiper),o.setVideoAspectRatio(),o.playSlideVideo(),l&&o.updateFooterText()}},setVideoAspectRatio:function(e){e=e||this.getSettings("modalOptions.videoAspectRatio");var t=this.getModal().getElements("widgetContent"),n=this.oldAspectRatio,i=this.getSettings("classes.aspectRatio");this.oldAspectRatio=e,n&&t.removeClass(i.replace("%s",n)),e&&t.addClass(i.replace("%s",e))},getSlide:function(e){return jQuery(this.swiper.slides).filter(this.getSettings("selectors.slideshow."+e+"Slide"))},updateFooterText:function(){var e,t,n,i;this.elements.$footer&&(i=this.getSettings("classes"),e=(t=this.getSlide("active").find(".elementor-lightbox-image")).data("title"),t=t.data("description"),n=this.elements.$footer.find("."+i.slideshow.title),i=this.elements.$footer.find("."+i.slideshow.description),n.text(e||""),i.text(t||""))},playSlideVideo:function(){var e,t,n,i,o,r,s,a=this,l=this.getSlide("active"),c=l.data("elementor-slideshow-video");c&&(e=this.getSettings("classes"),t=jQuery("<div>",{class:e.videoContainer+" "+e.invisible}),n=jQuery("<div>",{class:e.videoWrapper}),i=l.children("."+e.playButton),t.append(n),l.append(t),-1!==c.indexOf("vimeo.com")?(o="vimeo",r=ceFrontend.utils.vimeo):c.match(/^(?:https?:\/\/)?(?:www\.)?(?:m\.)?(?:youtu\.be\/|youtube\.com)/)&&(o="youtube",r=ceFrontend.utils.youtube),s=r.getVideoIDFromURL(c),r.onApiReady(function(e){"youtube"===o?a.prepareYTVideo(e,s,t,n,i):"vimeo"===o&&a.prepareVimeoVideo(e,s,t,n,i)}),i.addClass(e.playing).removeClass(e.hidden))},prepareYTVideo:function(e,t,n,i,o){var r=this,s=this.getSettings("classes"),a=jQuery("<div>"),l=e.PlayerState.PLAYING;i.append(a),window.chrome&&(l=e.PlayerState.UNSTARTED),n.addClass("elementor-loading "+s.invisible),this.player=new e.Player(a[0],{videoId:t,events:{onReady:function(){o.addClass(s.hidden),n.removeClass(s.invisible),r.player.playVideo()},onStateChange:function(e){e.data===l&&n.removeClass("elementor-loading "+s.invisible)}},playerVars:{controls:0,rel:0}})},prepareVimeoVideo:function(e,t,n,i,o){var r=this.getSettings("classes");this.player=new e.Player(i,{id:t,autoplay:!0,transparent:!1,playsinline:!1}),this.player.ready().then(function(){o.addClass(r.hidden),n.removeClass(r.invisible)})},setEntranceAnimation:function(e){e=e||ceFrontend.getCurrentDeviceSetting(this.getSettings("modalOptions"),"entranceAnimation");var t=this.getModal().getElements("message");this.oldAnimation&&t.removeClass(this.oldAnimation),(this.oldAnimation=e)&&t.addClass("animated "+e)},isLightboxLink:function(e){if("A"===e.tagName&&(e.hasAttribute("download")||!/^[^?]+\.(png|jpe?g|gif|svg|webp)(\?.*)?$/i.test(e.href)))return!1;var t=ceFrontend.getGeneralSettings("elementor_global_image_lightbox"),e=e.dataset.elementorOpenLightbox;return"yes"===e||t&&"no"!==e},getLightBoxImageAttribute:function(e,t){var n=ceFrontend.getGeneralSettings("elementor_lightbox_"+t+"_src");switch(n){case"title":case"alt":return $(e).find("img").prop(n)||"";case"caption":return $(e).closest("figure").find("figcaption").text()||($(e).closest('[class*="widget-product"]').length?$(e).find("img").prop("alt"):"")}return""},openSlideshow:function(i,n){var o=jQuery(this.getSettings("selectors.links")).filter(function(e,t){var n=jQuery(t);return i===t.dataset.elementorLightboxSlideshow&&!n.parent(".swiper-slide-duplicate").length&&!n.parents(".slick-cloned").length}),r=this,s=[],a=0;o.each(function(){var e=this.dataset.elementorLightboxVideo,t=this.dataset.elementorLightboxIndex,t=(void 0===t&&(t=o.index(this)),(n===this.href||e&&n===e)&&(a=t),{image:this.href,index:t,title:r.getLightBoxImageAttribute(this,"title"),description:r.getLightBoxImageAttribute(this,"description")});e&&(t.video=e),s.push(t)}),s.sort(function(e,t){return e.index-t.index}),this.showModal({type:"slideshow",id:i,modalOptions:{id:"elementor-lightbox-slideshow-"+i},slideshow:{slides:s,swiper:{initialSlide:+a}}})},openLink:function(e){var t,n=e.currentTarget,i=jQuery(e.target),o=ceFrontend.isEditMode(),i=!!i.closest(".elementor-edit-area").length;this.isLightboxLink(n)?(e.preventDefault(),o&&!elementor.getPreferences("lightbox_in_editor")||(t={},(t=n.dataset.elementorLightbox?JSON.parse(n.dataset.elementorLightbox):t).type&&"slideshow"!==t.type?this.showModal(t):n.dataset.elementorLightboxSlideshow?this.openSlideshow(n.dataset.elementorLightboxSlideshow,n.href):this.showModal({type:"image",id:t="single-img",url:n.href,title:n.dataset.elementorLightboxTitle,de
17573scription:n.dataset.elementorLightboxDescription,modalOptions:{id:"elementor-lightbox-slideshow-"+t}}))):o&&i&&e.preventDefault()},bindEvents:function(){ceFrontend.elements.$document.on("click",this.getSettings("selectors.links"),this.openLink)},onSlideChange:function(){this.getSlide("prev").add(this.getSlide("next")).add(this.getSlide("active")).find("."+this.getSettings("classes.videoWrapper")).remove(),this.playSlideVideo(),this.updateFooterText()}})},function(e,t,n){"use strict";var s,o,i,r=n(0),a=r(n(305)),l=r(n(247));s="undefined"!=typeof window&&void 0!==window.document?window.document:{},r=e.exports,o=function(){for(var e,t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],n=0,i=t.length,o={};n<i;n++)if((e=t[n])&&e[1]in s){for(var r=e.length,n=0;n<r;n++)o[t[0][n]]=e[n];return o}return!1}(),i={change:o.fullscreenchange,error:o.fullscreenerror},n={request:function(i){return new l.default(function(e,t){var n=function(){this.off("change",n),e()}.bind(this);this.on("change",n),i=i||s.documentElement,l.default.resolve(i[o.requestFullscreen]()).catch(t)}.bind(this))},exit:function(){return new l.default(function(e,t){var n;this.isFullscreen?(n=function(){this.off("change",n),e()}.bind(this),this.on("change",n),l.default.resolve(s[o.exitFullscreen]()).catch(t)):e()}.bind(this))},toggle:function(e){return this.isFullscreen?this.exit():this.request(e)},onchange:function(e){this.on("change",e)},onerror:function(e){this.on("error",e)},on:function(e,t){e=i[e];e&&s.addEventListener(e,t,!1)},off:function(e,t){e=i[e];e&&s.removeEventListener(e,t,!1)},raw:o},o?((0,a.default)(n,{isFullscreen:{get:function(){return Boolean(s[o.fullscreenElement])}},element:{enumerable:!0,get:function(){return s[o.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return Boolean(s[o.fullscreenEnabled])}}}),r?e.exports=n:window.screenfull=n):r?e.exports={isEnabled:!1}:window.screenfull={isEnabled:!1}},function(e,t){"use strict";var n=elementorModules.frontend.handlers.Base.extend({cache:null,cacheElements:function(){var e=this.$element.find(".elementor-countdown-wrapper");this.cache={$countDown:e,timeInterval:null,elements:{$countdown:e.find(".elementor-countdown-wrapper"),$daysSpan:e.find(".elementor-countdown-days"),$hoursSpan:e.find(".elementor-countdown-hours"),$minutesSpan:e.find(".elementor-countdown-minutes"),$secondsSpan:e.find(".elementor-countdown-seconds"),$expireMessage:e.parent().find(".elementor-countdown-expire--message")},data:{id:this.$element.data("id"),endTime:new Date(1e3*e.data("date")),actions:e.data("expire-actions"),evergreenInterval:e.data("evergreen-interval")}}},onInit:function(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.cacheElements(),0<this.cache.data.evergreenInterval&&(this.cache.data.endTime=this.getEvergreenDate()),this.initializeClock()},updateClock:function(){var n=this,e=this.getTimeRemaining(this.cache.data.endTime);jQuery.each(e.parts,function(e){var e=n.cache.elements["$"+e+"Span"],t=this.toString();1===t.length&&(t=0+t),e.length&&e.text(t)}),e.total<=0&&(clearInterval(this.cache.timeInterval),this.runActions())},initializeClock:function(){var e=this;this.updateClock(),this.cache.timeInterval=setInterval(function(){e.updateClock()},1e3)},runActions:function(){var t=this;t.$element.trigger("countdown_expire",t.$element),this.cache.data.actions&&this.cache.data.actions.forEach(function(e){switch(e.type){case"hide":t.cache.$countDown.hide();break;case"redirect":e.redirect_url&&(window.location.href=e.redirect_url);break;case"message":t.cache.elements.$expireMessage.show()}})},getTimeRemaining:function(e){var e=e-new Date,t=Math.floor(e/1e3%60),n=Math.floor(e/1e3/60%60),i=Math.floor(e/36e5%24),o=Math.floor(e/864e5);return(o<0||i<0||n<0)&&(t=n=i=o=0),{total:e,parts:{days:o,hours:i,minutes:n,seconds:t}}},getEvergreenDate:function(){function e(){var e=new Date;return t.cache.data.endTime=e.setSeconds(e.getSeconds()+i),localStorage.setItem(o,t.cache.data.endTime),localStorage.setItem(r,i),t.cache.data.endTime}var t=this,n=this.cache.data.id,i=this.cache.data.evergreenInterval,o=n+"-evergreen_due_date",r=n+"-evergreen_interval",n={dueDate:localStorage.getItem(o),interval:localStorage.getItem(r)};return null===n.dueDate&&null===n.interval||null!==n.dueDate&&i!==parseInt(n.interval,10)?e():0<n.dueDate&&parseInt(n.interval,10)===i?n.dueDate:void 0}});e.exports=function(e){new n({$element:e})}},function(e,t){"use strict";var n=elementorModules.frontend.handlers.Base.extend({svgPaths:{circle:["M325,18C228.7-8.3,118.5,8.3,78,21C22.4,38.4,4.6,54.6,5.6,77.6c1.4,32.4,52.2,54,142.6,63.7 c66.2,7.1,212.2,7.5,273.5-8.3c64.4-16.6,104.3-57.6,33.8-98.2C386.7-4.9,179.4-1.4,126.3,20.7"],underline_zigzag:["M9.3,127.3c49.3-3,150.7-7.6,199.7-7.4c121.9,0.4,189.9,0.4,282.3,7.2C380.1,129.6,181.2,130.6,70,139 c82.6-2.9,254.2-1,335.9,1.3c-56,1.4-137.2-0.3-197.1,9"],x:["M497.4,23.9C301.6,40,155.9,80.6,4,144.4","M14.1,27.6c204.5,20.3,393.8,74,467.3,111.7"],strikethrough:["M3,75h493.5"],curly:["M3,146.1c17.1-8.8,33.5-17.8,51.4-17.8c15.6,0,17.1,18.1,30.2,18.1c22.9,0,36-18.6,53.9-18.6 c17.1,0,21.3,18.5,37.5,18.5c21.3,0,31.8-18.6,49-18.6c22.1,0,18.8,18.8,36.8,18.8c18.8,0,37.5-18.6,49-18.6c20.4,0,17.1,19,36.8,19 c22.9,0,36.8-20.6,54.7-18.6c17.7,1.4,7.1,19.5,33.5,18.8c17.1,0,47.2-6.5,61.1-15.6"],diagonal:["M13.5,15.5c131,13.7,289.3,55.5,475,125.5"],double:["M8.4,143.1c14.2-8,97.6-8.8,200.6-9.2c122.3-0.4,287.5,7.2,287.5,7.2","M8,19.4c72.3-5.3,162-7.8,216-7.8c54,0,136.2,0,267,7.8"],double_underline:["M5,125.4c30.5-3.8,137.9-7.6,177.3-7.6c117.2,0,252.2,4.7,312.7,7.6","M26.9,143.8c55.1-6.1,126-6.3,162.2-6.1c46.5,0.2,203.9,3.2,268.9,6.4"],underline:["M7.7,145.6C109,125,299.9,116.2,401,121.3c42.1,2.2,87.6,11.8,87.3,25.7"]},getDefaultSettings:function(){var e={animationDelay:2500,lettersDelay:50,typeLettersDelay:150,selectionDuration:500,revealDuration:600,revealAnimationDelay:1500};return e.typeAnimationDelay=e.selectionDuration+800,e.selectors={headline:".elementor-headline",dynamicWrapper:".elementor-headline-dynamic-wrapper"},e.classes={dynamicText:"elementor-headline-dynamic-text",dynamicLetter:"elementor-headline-dynamic-letter",textActive:"elementor-headline-text-active",textInactive:"elementor-headline-text-inactive",letters:"elementor-headline-letters",animationIn:"elementor-headline-animation-in",typeSelected:"elementor-headline-typing-selected"},e},getDefaultElements:function(){var e=this.getSettings("selectors");return{$headline:this.$element.find(e.headline),$dynamicWrapper:this.$element.find(e.dynamicWrapper)}},getNextWord:function(e){return e.is(":last-child")?e.parent().children().eq(0):e.next()},switchWord:function(e,t){e.removeClass("elementor-headline-text-active").addClass("elementor-headline-text-inactive"),t.removeClass("elementor-headline-text-inactive").addClass("elementor-headline-text-active"),this.setDynamicWrapperWidth(t)},singleLetters:function(){var i=this.getSettings("classes");this.elements.$dynamicText.each(function(){var t=jQuery(this),e=t.text().split(""),n=t.hasClass(i.textActive);
17573t.empty(),e.forEach(function(e){e=jQuery("<span>",{class:i.dynamicLetter}).text(e);n&&e.addClass(i.animationIn),t.append(e)}),t.css("opacity",1)})},showLetter:function(e,t,n,i){var o=this,r=this.getSettings("classes");e.addClass(r.animationIn),e.is(":last-child")?n||setTimeout(function(){o.hideWord(t)},o.getSettings("animationDelay")):setTimeout(function(){o.showLetter(e.next(),t,n,i)},i)},hideLetter:function(e,t,n,i){var o=this,r=this.getSettings();e.removeClass(r.classes.animationIn),e.is(":last-child")?n&&setTimeout(function(){o.hideWord(o.getNextWord(t))},o.getSettings("animationDelay")):setTimeout(function(){o.hideLetter(e.next(),t,n,i)},i)},showWord:function(e,t){var n=this,i=n.getSettings(),o=n.getElementSettings("animation_type");"typing"===o?(n.showLetter(e.find("."+i.classes.dynamicLetter).eq(0),e,!1,t),e.addClass(i.classes.textActive).removeClass(i.classes.textInactive)):"clip"===o&&n.elements.$dynamicWrapper.animate({width:e.width()+10},i.revealDuration,function(){setTimeout(function(){n.hideWord(e)},i.revealAnimationDelay)})},hideWord:function(e){var t,n=this,i=n.getSettings(),o=i.classes,r="."+o.dynamicLetter,s=n.getElementSettings("animation_type"),a=n.getNextWord(e);"typing"===s?(n.elements.$dynamicWrapper.addClass(o.typeSelected),setTimeout(function(){n.elements.$dynamicWrapper.removeClass(o.typeSelected),e.addClass(i.classes.textInactive).removeClass(o.textActive).children(r).removeClass(o.animationIn)},i.selectionDuration),setTimeout(function(){n.showWord(a,i.typeLettersDelay)},i.typeAnimationDelay)):n.elements.$headline.hasClass(o.letters)?(t=e.children(r).length>=a.children(r).length,n.hideLetter(e.find(r).eq(0),e,t,i.lettersDelay),n.showLetter(a.find(r).eq(0),a,t,i.lettersDelay),n.setDynamicWrapperWidth(a)):"clip"===s?n.elements.$dynamicWrapper.animate({width:"2px"},i.revealDuration,function(){n.switchWord(e,a),n.showWord(a)}):(n.switchWord(e,a),setTimeout(function(){n.hideWord(a)},i.animationDelay))},setDynamicWrapperWidth:function(e){var t=this.getElementSettings("animation_type");"clip"!==t&&"typing"!==t&&this.elements.$dynamicWrapper.css("width",e.width())},animateHeadline:function(){var t,e=this,n=e.getElementSettings("animation_type"),i=e.elements.$dynamicWrapper;"clip"===n?i.width(i.width()+10):"typing"!==n&&(t=0,e.elements.$dynamicText.each(function(){var e=jQuery(this).width();t<e&&(t=e)}),i.css("width",t)),setTimeout(function(){e.hideWord(e.elements.$dynamicText.eq(0))},e.getSettings("animationDelay"))},getSvgPaths:function(e){var e=this.svgPaths[e],t=jQuery();return e.forEach(function(e){t=t.add(jQuery("<path>",{d:e}))}),t},fillWords:function(){var e,t=this.getElementSettings(),n=this.getSettings("classes"),i=this.elements.$dynamicWrapper;"rotate"===t.headline_style?(t.rotating_text||"").split("\n").forEach(function(e,t){e=jQuery("<span>",{class:n.dynamicText}).html(e.replace(/ /g," "));t||e.addClass(n.textActive),i.append(e)}):(e=jQuery("<span>",{class:n.dynamicText+" "+n.textActive}).text(t.highlighted_text),t=jQuery("<svg>",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 150",preserveAspectRatio:"none"}).html(this.getSvgPaths(t.marker)),i.append(e,t[0].outerHTML)),this.elements.$dynamicText=i.children("."+n.dynamicText)},rotateHeadline:function(){var e=this.getSettings();this.elements.$headline.hasClass(e.classes.letters)&&this.singleLetters(),this.animateHeadline()},initHeadline:function(){"rotate"===this.getElementSettings("headline_style")&&this.rotateHeadline()},onInit:function(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.fillWords(),this.initHeadline()}});e.exports=function(e){new n({$element:e})}},function(e,t){"use strict";jQuery.fn.smartmenus&&(jQuery.SmartMenus.prototype.isCSSOn=function(){return!0});var n=elementorModules.frontend.handlers.Base.extend({stretchElement:null,getDefaultSettings:function(){return{selectors:{menu:".elementor-nav",anchorLink:".elementor-nav--main .elementor-item-anchor",mainMenu:".elementor-nav__container.elementor-nav--main",dropdownMenu:".elementor-nav__container.elementor-nav--dropdown",menuToggle:".elementor-menu-toggle"}}},getDefaultElements:function(){var e=this.getSettings("selectors"),t={};return t.$menu=this.$element.find(e.menu),t.$anchorLink=this.$element.find(e.anchorLink),t.$mainMenu=this.$element.find(e.mainMenu),t.$dropdownMenu=this.$element.find(e.dropdownMenu),t.$dropdownMenuFinalItems=t.$dropdownMenu.find(".menu-item:not(.menu-item-has-children) > a"),t.$menuToggle=this.$element.find(e.menuToggle),t},bindEvents:function(){this.elements.$menu.length&&(this.elements.$menuToggle.on("click",this.toggleMenu.bind(this)),this.getElementSettings("full_width")&&this.elements.$dropdownMenuFinalItems.on("click",this.toggleMenu.bind(this,!1)),ceFrontend.addListenerOnce(this.$element.data("model-cid"),"resize",this.stretch
17573Menu))},initStretchElement:function(){this.stretchElement=new elementorModules.frontend.tools.StretchElement({element:this.elements.$dropdownMenu})},toggleMenu:function(e){var t=this.elements.$menuToggle.hasClass("elementor-active");this.elements.$menuToggle.attr("aria-expanded",e="boolean"!=typeof e?!t:e),this.elements.$dropdownMenu.attr("aria-hidden",!e),this.elements.$menuToggle.toggleClass("elementor-active",e),e&&this.getElementSettings("full_width")&&this.stretchElement.stretch()},followMenuAnchors:function(){var e=this;e.elements.$anchorLink.each(function(){location.pathname===this.pathname&&""!==this.hash&&e.followMenuAnchor(jQuery(this))})},followMenuAnchor:function(t){var e,n=t[0].hash,i=-300;try{e=jQuery(decodeURIComponent(n))}catch(e){return}e.length&&(e.hasClass("elementor-menu-anchor")||(n=jQuery(window).height()/2,i=-e.outerHeight()+n),ceFrontend.waypoint(e,function(e){"down"===e?t.addClass("elementor-item-active"):t.removeClass("elementor-item-active")},{offset:"50%",triggerOnce:!1}),ceFrontend.waypoint(e,function(e){"down"===e?t.removeClass("elementor-item-active"):t.addClass("elementor-item-active")},{offset:i,triggerOnce:!1}))},stretchMenu:function(){this.getElementSettings("full_width")?(this.stretchElement.stretch(),this.elements.$dropdownMenu.css("top",this.elements.$menuToggle.outerHeight())):this.stretchElement.reset()},onInit:function(){var e,t,n;elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.elements.$menu.length&&(e=this.getElementSettings("align_submenu"),t="click"===this.getElementSettings("show_submenu_on"),this.elements.$menu.smartmenus({subIndicators:!1,subMenusMaxWidth:"1000px",noMouseOver:t,rightToLeftSubMenus:e?"right"===e:ceFrontend.config.is_rtl}),t&&this.elements.$mainMenu.filter(".elementor-langs, .elementor-currencies, .elementor-sign-in").children().on("click","a.elementor-item.has-submenu.highlighted",function(e){this.elements.$menu.smartmenus("menuHide",jQuery(e.currentTarget).next()),e.currentTarget.blur(),e.preventDefault()}.bind(this)),"accordion"===this.getElementSettings("animation_dropdown")&&(n=this.elements.$dropdownMenu.children().on("click.ce","a.has-submenu",function(){var e=jQuery(this.parentNode).siblings().children("a.highlighted").next();e.length&&n.smartmenus("menuHide",e)})),this.initStretchElement(),this.stretchMenu(),ceFrontend.isEditMode()||this.followMenuAnchors())},onElementChange:function(e){"full_width"===e&&this.stretchMenu()}});e.exports=function(e){new n({$element:e})}},function(e,t){"use strict";var n=elementorModules.frontend.handlers.Base.extend({getDefaultSettings:function(){return{selectors:{wrapper:".elementor-search",container:".elementor-search__container",icon:".elementor-search__icon",input:".elementor-search__input",clear:".elementor-search__clear",toggle:".elementor-search__toggle",submit:".elementor-search__submit",closeButton:".dialog-close-button"},classes:{isFocus:"elementor-search--focus",isTopbar:"elementor-search--topbar",lightbox:"elementor-lightbox"}}},getDefaultElements:function(){var e=this.getSettings("selectors"),t={};return t.$wrapper=this.$element.find(e.wrapper),t.$container=this.$element.find(e.container),t.$input=this.$element.find(e.input),t.$clear=this.$element.find(e.clear),t.$icon=this.$element.find(e.icon),t.$toggle=this.$element.find(e.toggle),t.$submit=this.$element.find(e.submit),t.$closeButton=this.$element.find(e.closeButton),t},bindEvents:function(){var t=this.elements.$container,e=this.elements.$closeButton,n=this.elements.$input,i=this.elements.$clear,o=this.elements.$wrapper,r=this.elements.$icon,s=this.getElementSettings("skin"),a=this.getSettings("classes");n.one("focus",$.proxy(this,"loadAutocomplete")),i.on("click",function(){n.val("").triggerHandler("keydown"),i.css({visibility:"",pointerEvents:""})}),n.on("input",function(){var e=!n.val();i.css({visibility:e?"":"visible",pointerEvents:e?"":"all"})}),"topbar"===s?(this.elements.$toggle.on("click",function(){t.toggleClass(a.isTopbar).toggleClass(a.lightbox),n.focus()}),e.on("click",function(){t.removeClass(a.isTopbar).removeClass(a.lightbox)}
17573),ceFrontend.elements.$document.keyup(function(e){27===e.keyCode&&t.hasClass(a.isTopbar)&&t.click()}).on("click",function(e){t.hasClass(a.isTopbar)&&!$(e.target).closest(o).length&&t.removeClass(a.isTopbar).removeClass(a.lightbox)})):n.on({focus:function(){o.addClass(a.isFocus)},blur:function(){o.removeClass(a.isFocus)}}),"minimal"===s&&r.on("click",function(){o.addClass(a.isFocus),n.focus()})},loadAutocomplete:function(){var e=window.baseDir||prestashop.urls.base_url,t=$.ui?$.ui.autocomplete?"":"jquery.ui.autocomplete":"jquery-ui";t?($('<link rel="stylesheet">').attr({href:e+"js/jquery/ui/themes/base/minified/"+t+".min.css"}).appendTo(document.head),"jquery-ui"==t&&$('<link rel="stylesheet">').attr({href:e+"js/jquery/ui/themes/base/minified/jquery.ui.theme.min.css"}).appendTo(document.head),$.ajax({url:e+"js/jquery/ui/"+t+".min.js",cache:!0,dataType:"script",success:$.proxy(this,"initAutocomplete")})):this.initAutocomplete()},initAutocomplete:function(){$.fn.ceAjaxSearch||$.widget("ww.ceAjaxSearch",$.ui.autocomplete,{_create:function(){this._super(),this.menu.element.addClass("elementor-search__products"),this.element.on("focus"+this.eventNamespace,$.proxy(this,"_openOnFocus")),$(document).on("click"+this.eventNamespace,$.proxy(this,"_closeOnDocumentClick")),this._off(this.element,"blur"),this.menu.element.outerHeight=function(){return window.event&&"mouseover"===event.type?1/0:$.fn.outerHeight.apply(this,arguments)}},_openOnFocus:function(e){this.menu.element.show(),this._resizeMenu(),this.menu.element.position($.extend({of:this.element},this.options.position))},_closeOnDocumentClick:function(e){$(e.target).closest(this.options.appendTo).length||this._close()},search:function(e,t){e=null!=e?e:this._value(),this._super(e,t),e.length<this.options.minLength&&this.menu.element.empty()},_renderItem:function(e,t){var n=this.options.elementSettings,i=t.cover&&t.cover.small.url||prestashop.urls.img_prod_url+prestashop.language.iso_code+"-default-small_default.jpg";return $('<li class="elementor-search__product">').html('<a class="elementor-search__product-link" href="'+encodeURI(t.url)+'">'+(n.show_image?'<img class="elementor-search__product-image" src="'+encodeURI(i)+'" alt="'+t.name.replace(/"/g,""")+'">':"")+'<div class="elementor-search__product-details"><div class="elementor-search__product-name">'+t.name+"</div>"+(n.show_category?'<div class="elementor-search__product-category">'+t.category_name+"</div>":"")+(n.show_description?'<div class="elementor-search__product-description">'+(t.description_short||"").replace(/<\/?\w+.*?>/g,"")+"</div>":"")+(n.show_price?'<div class="elementor-search__product-price">'+(t.has_discount?"<del>"+t.regular_price+"</del> ":"")+t.price+"</div>":"")+"</div></a>").appendTo(e)},_resizeMenu:function(){this._super(),this.options.position.my="left top+"+this.menu.element.css("margin-top"),setTimeout(function(){this.menu.element.css({maxHeight:"calc(100vh - "+(this.menu.element.offset().top-$(window).scrollTop())+"px)",overflowY:"auto",WebkitOverflowScrolling:"touch"})}.bind(this),1)}});var i=this.elements.$wrapper.prop("action"),o=this.elements.$input.prop("name");this.elements.$input.ceAjaxSearch({appendTo:"topbar"===this.getElementSettings("skin")?this.elements.$container:this.elements.$wrapper,minLength:3,elementSettings:this.getElementSettings(),source:function(e,t){var n={ajax:!0,resultsPerPage:this.options.elementSettings.list_limit||10};n[o]=e.term,$.post(i,n,null,"json").then(function(e){t(e.products)}).fail(t)},select:function(e,t){location.href===t.item.url||ceFrontend.isEditMode()||(location.href=t.item.url)}})}});e.exports=function(e){new n({$element:e})}},function(e,t){"use strict";var n,i=((n={constructor:function(e){this.$element=e,this.settings={selectors:{form:"form",submitButton:'[type="submit"]'}},this.elements={},this.elements.$form=this.$element.find(this.settings.selectors.form),this.elements.$submitButton=this.elements.$form.find(this.settings.selectors.submitButton),this.bindEvents()},bindEvents:function(){this.elements.$form.on("submit",$.proxy(this,"handleSubmit"))},beforeSend:function(){var e=this.elements.$form;e.animate({opacity:"0.45"},500).addClass("elementor-form-waiting"),e.find(".elementor-message").remove(),e.find(".elementor-error").removeClass("elementor-error"),e.find("div.elementor-field-group").removeClass("error").find("span.elementor-form-help-inline").remove().end().find(":input").attr("aria-invalid","false"),this.elements.$submitButton.attr("disabled","disabled").find("> span").prepend('<span class="elementor-button-text elementor-form-spinner"><i class="ceicon-loading ceicon-animation-spin"></i> </span>')},getFormData:function(){var e=new FormData(this.elements.$form[0]);return e.append(this.elements.$submitButton[0].name,this.elements.$submitButton[0].value),e},onSuccess:function(e,t){var n,i=this.elements.$form,o="before"===i.data("msg")?"prepe
17573nd":"append";this.elements.$submitButton.removeAttr("disabled").find(".elementor-form-spinner").remove(),i.animate({opacity:"1"},100).removeClass("elementor-form-waiting"),e.success?(n=i.data("success")||e.success,i.trigger("submit_success",e),i.trigger("form_destruct",e),i.trigger("reset"),i[o]('<div class="elementor-message elementor-message-success" role="alert">'+n+"</div>")):(n=i.data("error")||e.errors&&e.errors.join("<br>")||"Unknown error",i[o]('<div class="elementor-message elementor-message-danger" role="alert">'+n+"</div>"))},onError:function(e,t){var n=this.elements.$form;n.append('<div class="elementor-message elementor-message-danger" role="alert">'+t+"</div>"),this.elements.$submitButton.html(this.elements.$submitButton.text()).removeAttr("disabled"),n.animate({opacity:"1"},100).removeClass("elementor-form-waiting"),n.trigger("error")},handleSubmit:function(e){var t=this.elements.$form;if(e.preventDefault(),t.hasClass("elementor-form-waiting"))return!1;this.beforeSend(),$.ajax({url:t.attr("action"),type:"POST",dataType:"json",data:this.getFormData(),processData:!1,contentType:!1,success:$.proxy(this,"onSuccess"),error:$.proxy(this,"onError")})}}).constructor.prototype=n).constructor;e.exports=function(e,t){new i(e)}},function(e,t){"use strict";var r=elementorModules.frontend.handlers.Base.extend({getDefaultSettings:function(){return{selectors:{container:".elementor-cart__container",toggle:".elementor-cart__toggle .elementor-button",closeButton:".elementor-cart__close-button"},classes:{isShown:"elementor-cart--shown",lightbox:"elementor-lightbox",isHidden:"elementor-cart-hidden"}}},getDefaultElements:function(){var e=this.getSettings("selectors"),t={};return t.$container=this.$element.find(e.container),t.$toggle=this.$element.find(e.toggle),t.$closeButton=this.$element.find(e.closeButton),t},bindEvents:function(){var n=this,u=jQuery,i=n.elements.$container,e=n.elements.$closeButton,o=this.getSettings("classes");n.elements.$toggle.on("click",function(e){n.elements.$toggle.hasClass(o.isHidden)||(e.preventDefault(),i.toggleClass(o.isShown))}),i.on("click",function(e){i.hasClass(o.isShown)&&i[0]===e.target&&i.removeClass(o.isShown)}),e.on("click",function(){i.removeClass(o.isShown)}),ceFrontend.elements.$document.keyup(function(e){27===e.keyCode&&i.hasClass(o.isShown)&&i.click()}),i.on("click",".elementor-cart__product-remove a",function(e){var t=u(this).data();t.linkAction="delete-from-cart",u(this).closest(".elementor-cart__product").addClass("ce-disabled"),e.preventDefault(),u.ajax({url:this.href,method:"POST",dataType:"json",data:{ajax:1,action:"update"}}).then(function(e){prestashop.emit("updateCart",{reason:t,resp:e})}).fail(function(e){prestashop.emit("handleError",{eventType:"updateProductInCart",resp:e,cartAction:t.linkAction})})}),prestashop.on("updateCart",function(e){var t,a,l,c;e&&e.resp&&e.resp.cart&&(t=e.resp.cart,a=i.find(".elementor-cart__products").data("gift"),l=u(),n.getElementSettings("action_show_modal")&&"add-to-cart"===e.reason.linkAction&&!e.resp.hasError&&(r.xhr&&r.xhr.abort(),r.xhr=u.post(n.getElementSettings("modal_url"),{ajax:!0,action:"addToCartModal",id_product:e.reason.idProduct,id_product_attribute:e.reason.idProductAttribute,id_customization:e.reason.idCustomization},function(e){u("#blockcart-modal").remove(),u(document.body).append(e.modal).children("#blockcart-modal").modal()},"json")),n.elements.$toggle.find(".elementor-button-text").html(t.subtotals.products.value),n.elements.$toggle.find(".elementor-button-icon").attr("data-counter",t.products_count).data("counter",t.products_count),c=n.getElementSettings("remove_item_icon")||{},t.products.forEach(function(e){var t,n=u('<div class="elementor-cart__product"><div class="elementor-cart__product-image"></div><div class="elementor-cart__product-name"><div class="elementor-cart__product-attrs"></div></div><div class="elementor-cart__product-price"></div>'+(c.value?'<i class="elementor-cart__product-remove '+c.value+'"></i>':"")+"</div>"),i=n.find(".elementor-cart__product-attrs"),o=e.cover||prestashop.urls.no_picture_image;if(e.embedded_attributes&&e.embedded_attributes.id_image)for(var r=e.embedded_attributes.id_image.split("-").pop(),s=0;s<e.images.length;s++)if(r==e.images[s].id_image){o=e.images[s];break}for(t in u("<img>").appendTo(n.find(".elementor-cart__product-image")).attr({src:o.bySize.cart_default&&o.bySize.cart_default.url||o.small.url,alt:o.legend}),u("<a>").prependTo(n.find(".elementor-cart__product-name")).attr("href",e.url).html(e.name),e.attributes)u('<div class="elementor-cart__product-attr">').html('<span class="elementor-cart__product-attr-label">'+t+':</span> <span class="elementor-cart__product-attr-value">'+e.attributes[t]+"</span>").appendTo(i);e.customizations&&e.customizations.forEach(function(e){e.fields.forEach(function(e){u('<div class="elementor-cart__product-attr">').html('<span class="elementor-cart__product-attr-label">'+e.label+':</span> <span class="elementor-cart__product-attr-value">'+("image"===e.type?u("<img>").attr("src",e.image.small.url)[0].outerHTML:e.text)+"</span>").appendTo(i)})}),n.find(".elementor-cart__product-price").html('<span class="elementor-cart__product-quantity">'+e.quantity+"</span> × "+(e.is_gift?a:e.price)+" ").append(e.has_discount?u("<del>").html(e.regular_price):[]),u("<a>").appendTo(n.find(".elementor-cart__product-remove")).attr({href:e.remove_from_cart_url,rel:"nofollow","data-id-product":e.id_product,"data-id-product-attribute":e.id_product_attribute,"data-id-customization":e.id_customization}).data({idProduct:e.id_product,idProductAttribute:e.id_product_attribute,idCustomization:e.id_customization}),l.push(n[0])}),i.find(".elementor-cart__products").empty().append(l),i.find(".elementor-cart__empty-message").toggleClass("elementor-hidden",!!t.products_count),i.find(".elementor-cart__summary").html('<div class="elementor-cart__summary-label">'+t.summary_string+'</div><div class="elementor-cart__summary-value">'+t.subtotals.products.value+'</div><span class="elementor-cart__summary-label">'+t.subtotals.shipping.label+'</span><span class="elementor-cart__summary-value">'+t.subtotals.shipping.value+'</span><strong class="elementor-cart__summary-label">'+t.totals.total.label+'</strong><strong class="elementor-cart__summary-value">'+t.totals.total.value+"</strong>"),i.find(".elementor-alert-warning").toggleClass("elementor-hidden",!t.minimalPurchaseRequired).html('<span class="elementor-alert-description">'+t.minimalPurchaseRequired+"</span>"),i.find(".elementor-button--checkout").toggleClass("ce-disabled",t.minimalPurchaseRequired||!t.products_count),!n.getElementSettings("action_open_cart")||"add-to-cart"!==e.reason.linkAction||e.resp.hasError||n.elements.$container.hasClass(o.isShown)||n.elements.$toggle.triggerHandler("click"))})}});e.exports=function(e){new r({$element:e})}},function(e,t){"use strict";e.exports=elementorModules.frontend.handlers.Base.extend({getDefaultSettings:function(){return{selectors:{mainSwiper:".elementor-main-swiper",swiperSlide:".swiper-slide"},slidesPerView:{desktop:3,tablet:2,mobile:1}}},getDefaultElements:function(){var e=this.getSettings("selectors"),t={$mainSwiper:this.$element.find(e.mainSwiper)};return t.$mainSwiperSlides=t.$mainSwiper.find(e.swiperSlide),t},getSlidesCount:function(){return this.elements.$mainSwiperSlides.length},getInitialSlide:function(){var e=this.getEditSettings();return e.activeItemIndex?e.activeItemIndex-1:0},getEffect:function(){return this.getElementSettings("effect")},getDeviceSlidesPerView:function(e){var t="slides_per_view"+("desktop"===e?"":"_"+e);return Math.min(this.getSlidesCount(),+this.getElementSettings(t)||this.get
17573Settings("slidesPerView")[e])},getSlidesPerView:function(e){return"slide"===this.getEffect()?this.getDeviceSlidesPerView(e):1},getDesktopSlidesPerView:function(){return this.getSlidesPerView("desktop")},getTabletSlidesPerView:function(){return this.getSlidesPerView("tablet")},getMobileSlidesPerView:function(){return this.getSlidesPerView("mobile")},getDeviceSlidesToScroll:function(e){e="slides_to_scroll"+("desktop"===e?"":"_"+e);return Math.min(this.getSlidesCount(),+this.getElementSettings(e)||1)},getSlidesToScroll:function(e){return"slide"===this.getEffect()?this.getDeviceSlidesToScroll(e):1},getDesktopSlidesToScroll:function(){return this.getSlidesToScroll("desktop")},getTabletSlidesToScroll:function(){return this.getSlidesToScroll("tablet")},getMobileSlidesToScroll:function(){return this.getSlidesToScroll("mobile")},getSpaceBetween:function(e){var t="space_between";return e&&"desktop"!==e&&(t+="_"+e),(this.getElementSettings(t)||{size:0}).size},getSwiperOptions:function(){var e,t,n=this.getElementSettings(),i=("progress"===n.pagination&&(n.pagination="progressbar"),{grabCursor:!0,initialSlide:this.getInitialSlide(),centeredSlides:n.centered_slides,slidesPerView:this.getDesktopSlidesPerView(),slidesPerGroup:this.getDesktopSlidesToScroll(),spaceBetween:this.getSpaceBetween(),loop:"yes"===n.loop,speed:n.speed,effect:this.getEffect(),preventClicksPropagation:!1,slideToClickedSlide:!0,handleElementorBreakpoints:!0});return n.show_arrows&&(i.navigation={prevEl:".elementor-swiper-button-prev",nextEl:".elementor-swiper-button-next"}),n.pagination&&(i.pagination={el:".swiper-pagination",type:n.pagination,clickable:!0}),"cube"!==this.getEffect()&&((e={})[(t=ceFrontend.config.breakpoints).lg-1]={slidesPerView:this.getTabletSlidesPerView(),slidesPerGroup:this.getTabletSlidesToScroll(),spaceBetween:this.getSpaceBetween("tablet")},e[t.md-1]={slidesPerView:this.getMobileSlidesPerView(),slidesPerGroup:this.getMobileSlidesToScroll(),spaceBetween:this.getSpaceBetween("mobile")},i.breakpoints=e),!this.isEdit&&n.autoplay&&(i.autoplay={delay:n.autoplay_speed,disableOnInteraction:!!n.pause_on_interaction}),i},updateSpaceBetween:function(e,t){var t=t.match("space_between_(.*)"),t=t?t[1]:"desktop",n=this.getSpaceBetween(t),i=ceFrontend.config.breakpoints;"desktop"!==t?(i={tablet:i.lg-1,mobile:i.md-1},e.params.breakpoints[i[t]].spaceBetween=n):e.originalParams.spaceBetween=n,e.params.spaceBetween=n,e.update()},onInit:function(){var e=this,t=(elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.getElementSettings());this.swipers={},this.getSlidesCount()<=1||(this.swipers.main=new Swiper(this.elements.$mainSwiper,this.getSwiperOptions()),this.elements.$mainSwiper.data("swiper",this.swipers.main),t.pause_on_hover&&this.elements.$mainSwiper.on({mouseenter:function(){e.swipers.main.autoplay.stop()},mouseleave:function(){e.swipers.main.autoplay.start()}}))},onElementChange:function(e){this.getSlidesCount()<=1||(0===e.indexOf("width")&&this.swipers.main.update(),0===e.indexOf("space_between")&&this.updateSpaceBetween(this.swipers.main,e))},onEditSettingsChange:function(e){this.getSlidesCount()<=1||"activeItemIndex"===e&&this.swipers.main.slideToLoop(this.getEditSettings("activeItemIndex")-1)}})},function(e,t,n){"use strict";var i=n(668),o=i.extend({slideshowSpecialElementSettings:["slides_per_view","slides_per_view_tablet","slides_per_view_mobile"],isSlideshow:function(){return"slideshow"===this.getElementSettings("skin")},getDefaultSettings:function(){var e=i.prototype.getDefaultSettings.apply(this,arguments);return this.isSlideshow()&&(e.selectors.thumbsSwiper=".elementor-thumbnails-swiper",e.slidesPerView={desktop:5,tablet:4,mobile:3}),e},getElementSettings:function(e){return-1!==this.slideshowSpecialElementSettings.indexOf(e)&&this.isSlideshow()&&(e="slideshow_"+e),i.prototype.getElementSettings.call(this,e)},getDefaultElements:function(){var e=this.getSettings("selectors"),t=i.prototype.getDefaultElements.apply(this,arguments);return this.isSlideshow()&&(t.$thumbsSwiper=this.$element.find(e.thumbsSwiper)),t},getSlidesPerView:function(e){return this.isSlideshow()?1:"coverflow"===this.getEffect()?this.getDeviceSlidesPerView(e):i.prototype.getSlidesPerView.apply(this,arguments)},getThumbSpaceBetween:function(e){var t="thumb_space_between";return e&&"desktop"!==e&&(t+="_"+e),this.getElementSettings(t).size||0},getSwiperOptions:function(){var e=i.prototype.getSwiperOptions.apply(this,arguments);return this.isSlideshow()&&(e.loopedSlides=this.getSlidesCount(),delete e.pagination,delete e.breakpoints),e},onInit:function(){var e,t,n,i,o,r;elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.swipers={}
17573,this.getSlidesCount()&&(e=this.getSwiperOptions(),this.isSlideshow()&&(t=this.getElementSettings(),n={},o=ceFrontend.config.breakpoints,i=this.getSettings("slidesPerView"),n[o.lg-1]={slidesPerView:+t.slides_per_view_tablet||i.tablet,spaceBetween:this.getThumbSpaceBetween("tablet")},n[o.md-1]={slidesPerView:+t.slides_per_view_mobile||i.mobile,spaceBetween:this.getThumbSpaceBetween("mobile")},o={slidesPerView:+t.slides_per_view||i.desktop,initialSlide:this.getInitialSlide(),slideToClickedSlide:!0,spaceBetween:this.getThumbSpaceBetween(),threshold:2,watchSlidesVisibility:!0,watchSlidesProgress:!0,breakpoints:n,direction:"bottom"===t.position?"horizontal":"vertical"},r=this.swipers.thumbs=new Swiper(this.elements.$thumbsSwiper,o),e.thumbs={swiper:this.swipers.thumbs,slideThumbActiveClass:"swiper-slide-active"},e.on={slideChange:function(){setTimeout(function(){var e=$(r.slides).filter(".swiper-slide-active");r.slides.removeClass("swiper-slide-prev swiper-slide-next"),e.prevAll().addClass("swiper-slide-prev"),e.nextAll().addClass("swiper-slide-next")})},sliderFirstMove:function(){this.zoom.out(),this.$el.addClass("ce-swiper-dragging")},touchEnd:function(){this.$el.removeClass("ce-swiper-dragging")}},this.elements.$mainSwiper.on("mouseenter.ceZoom",".swiper-zoom-container",this.onZoomIn.bind(this)).on("mouseleave.ceZoom",".swiper-zoom-container",this.onZoomOut.bind(this))),this.swipers.main=new Swiper(this.elements.$mainSwiper,e),this.swipers.thumbs&&(this.swipers.thumbs.main=this.swipers.main))},onZoomIn:function(){var e=this.swipers.main.touchEventsData;e.isMoved||Date.now()-e.touchStartTime<200||(this.swipers.main.zoom.in(),this.elements.$mainSwiper.on("mousemove.ceZoom",".swiper-zoom-container img",function(e){var t=this.parentNode.getBoundingClientRect(),n=(100*(e.clientX-t.left)/t.width).toFixed(3),e=(100*(e.clientY-t.top)/t.height).toFixed(3);this.style.transformOrigin=n+"% "+e+"%",this.style.transitionDuration="0s"}))},onZoomOut:function(){this.swipers.main.zoom.out(),this.elements.$mainSwiper.off("mousemove.ceZoom")},onElementChange:function(e){this.getSlidesCount()<=1||(this.isSlideshow()?(0===e.indexOf("width")&&(this.swipers.main.update(),this.swipers.thumbs.update()),0===e.indexOf("space_between")&&this.updateSpaceBetween(this.swipers.thumbs,e)):i.prototype.onElementChange.apply(this,arguments))}});e.exports=function(e){new o({$element:e})}}]),prestashop.on("updateCart",function(e){if(e.resp&&e.resp.hasError)return window.WishlistEventBus&&WishlistEventBus.$emit("showToast",{detail:{type:"error",message:e.resp.errors.join(" ")}})||alert(e.resp.errors.join("\n"));e.resp&&e.resp.success&&((e=$("#add-to-cart-or-refresh > [name=id_product][value="+e.resp.id_product+"]")[0])&&ceFrontend.refreshProduct(e.form))}),ceFrontend.refreshProduct=function(i,e){var t=window.elementor&&elementor.config.document.urls.permalink||prestashop.urls.pages.product,n=new FormData(i);n.set("refresh","product"),e&&n.set("quickview",e),n.set("quantity_wanted",n.get("qty")),n.delete("qty"),this.refreshProduct.xhr&&4!==this.refreshProduct.xhr.readyState&&this.refreshProduct.xhr.abort(),this.refreshProduct.xhr=$.ajax(t+"&action=refresh&id_product="+n.get("id_product"),{type:"POST",data:n,processData:!1,contentType:!1,dataType:"json",success:function(e){var t=$(e.product_content),n=[".elementor-widget-product-quantity",".elementor-widget-product-description",".elementor-widget-product-description-short",".elementor-widget-product-carousel",".elementor-widget-product-grid",".elementor-widget-product-box"].join();t.find(".elementor-widget:not("+n+") >
17573 .elementor-widget-container").each(function(){var e=$(this.parentNode).data("id"),e=$(".elementor-element-"+e+" > .elementor-widget-container")[0];e&&($(e).replaceWith(this),ceFrontend.elementsHandler.runReadyTrigger(this.parentNode))}),$(i.elements.qty).attr("min",e.product_minimal_quantity).each(function(){this.value<e.product_minimal_quantity&&(this.value=e.product_minimal_quantity)}),+e.is_quick_view||prestashop.emit("updatedProduct",e)}})},$("html").on("click.ce",".elementor-nav-tabs a",function(e){var i;e.preventDefault(),~this.className.indexOf("elementor-item-active")||(e=$(this.parentNode).index(),e=$(this).closest(".elementor-container").find("> .elementor-row > .elementor-column").eq(e),i=ceFrontend.isEditMode(),$(this).closest(".elementor-nav").find(".elementor-item-active").removeClass("elementor-item-active"),$(this).addClass("elementor-item-active"),e.addClass("elementor-active").siblings().removeClass("elementor-active"),e.find(".animated").addBack(".animated").each(function(){var e=$(this),t=i?elementor.helpers.getModelById(e.data("id")).get("settings").attributes:e.data("settings")||{},n=e.hasClass("elementor-widget")?"_animation":"animation";e.addClass("elementor-invisible").removeClass(ceFrontend.getCurrentDeviceSetting(t,n)),setTimeout(function(){e.removeClass([t[n+"_mobile"]||"",t[n+"_tablet"]||"",t[n]||""].join(" "))}),setTimeout(function(){e.removeClass("elementor-invisible").addClass(ceFrontend.getCurrentDeviceSetting(t,n))},t[n+"_delay"]||0)}))}).on("keydown.ce",".elementor-field[name=qty]",function(e){13!==e.keyCode||parseInt(this.value,10)>=parseInt(this.min,10)||e.preventDefault()}).on("keyup.ce",".elementor-field[name=qty]",function(e){13===e.keyCode&&parseInt(this.value,10)>=parseInt(this.min,10)&&(this.blur(),ceFrontend.utils.urlActions.actions.closeLightbox())}).on("click.ce",".ce-add-to-wishlist",function(e){if(e.preventDefault(),!window.WishlistEventBus)return alert("Please install & enable the Wishlist module!");if(!prestashop.customer.is_logged)return WishlistEventBus.$emit("showLogin");var t,n=$(this);n.hasClass("elementor-active")?(t=productsAlreadyTagged.find(function(e){return e.id_product==n.data("productId")&&e.id_product_attribute==n.data("productAttributeId")}))&&$.post(this.href,{action:"deleteProductFromWishlist",params:{idWishList:t.id_wishlist,id_product:t.id_product,id_product_attribute:t.id_product_attribute}},function(e){$(".ce-add-to-wishlist[data-product-id="+t.id_product+"][data-product-attribute-id="+t.id_product_attribute+"]").removeClass("elementor-active").find("i").attr("class","ceicon-heart-o"),productsAlreadyTagged=productsAlreadyTagged.filter(function(e){return e.id_product!=t.id_product&&e.id_product_attribute!=t.id_product_attribute}),WishlistEventBus.$emit("showToast",{detail:{type:e.success?"success":"error",message:e.message}})},"json"):WishlistEventBus.$emit("showAddToWishList",{detail:{forceOpen:!0,productId:n.data("productId"),productAttributeId:n.data("productAttributeId")}})}).on("click.ce","[data-link-action=quickview]",function(e){e.preventDefault(),e.stopPropagation(),ceFrontend.utils.urlActions.actions.quickview({id_product:$(this).closest("[data-id-product]").data("idProduct")})}).on("click.ce-comments",'a[href="#product-comments-list-header"]',function(e){var t,n=$("#product-comments-list-header"),i=n.closest(".elementor-section-tabbed");i.length&&(t=i.find("> .elementor-container > .elementor-row > .elementor-column").toArray().find(function(e){return $(e).find(n).length}),i.find("> .elementor-container > .elementor-nav-tabs a").eq($(t).index()).click()),$("html, body").animate({scrollTop:$(i[0]||n[0]).offset().top},500,"swing",$(this).hasClass("elementor-button--post-comment")?function(){$(".post-product-comment").click()}:void 0),e.preventDefault()}).on("change.ce",'[form="add-to-cart-or-refresh"]',function(e){ceFrontend.refreshProduct(this.form,$(this).closest("#ce-product-quick-view").length)}).on("input.ce",'[form="add-to-cart-or-refresh"][name=qty]',function(){clearTimeout(ceFrontend.refreshProduct.timeout),""!==this.value&&(ceFrontend.refreshProduct.timeout=setTimeout(function(){ceFrontend.refreshProduct(this.form,$(this).closest("#ce-product-quick-view").length)}.bind(this),200))}),$(function(){$("#js-product-list-header").attr("id","product-list-header"),ceFrontend.config.productQuickView&&
17573(delete prestashop._events.clickQuickView,prestashop.on("clickQuickView",function e(t){e.xhr&&e.xhr.abort(),(e.xhr=$.post(prestashop.urls.pages.product,{ajax:1,action:"quickview",id_product:t.dataset.idProduct,id_product_attribute:t.dataset.idProductAttribute,id_ce_theme:ceFrontend.config.productQuickView},null,"json")).then(function(e){var t=ceFrontend.utils.lightbox,e=$(e.quickview_html),n=e.filter(".elementor").data("elementorSettings"),i=t.getModal(),o=i.getElements();o.message.removeClass(["zoomIn",n.entrance_animation||"",n.entrance_animation_tablet||"",n.entrance_animation_mobile||""].join(" ")).addClass(ceFrontend.getCurrentDeviceSetting(n,"entrance_animation")),$('[form="add-to-cart-or-refresh"]').attr("form","ce-add-to-cart-or-refresh"),$("#add-to-cart-or-refresh").attr("id","ce-add-to-cart-or-refresh"),t.showModal({modalOptions:{id:"ce-product-quick-view"},html:e}),i.off("hide").on("hide",function(){$('[form="ce-add-to-cart-or-refresh"]').attr("form","add-to-cart-or-refresh"),$("#ce-add-to-cart-or-refresh").attr("id","add-to-cart-or-refresh"),setTimeout(function(){o.closeButton.prependTo(o.widgetContent),o.message.removeClass([n.entrance_animation||"",n.entrance_animation_tablet||"",n.entrance_animation_mobile||""].join(" ")),i.setMessage("")},400)}),o.message.addClass("elementor-lightbox-prevent-close").prepend("outside"===n.close_button_position?null:o.closeButton).find(".elementor-widget").each(function(){ceFrontend.elementsHandler.runReadyTrigger(this)})}).fail(function(e){prestashop.emit("handleError",{eventType:"clickQuickView",resp:e})})})),window.WishlistEventBus&&WishlistEventBus.$on("addedToWishlist",function(e){var t=productsAlreadyTagged[productsAlreadyTagged.length-1];$(".ce-add-to-wishlist[data-product-id="+t.id_product+"][data-product-attribute-id="+t.id_product_attribute+"]").addClass("elementor-active").find("i").attr("class","ceicon-heart")})});/*! 17574 * imagesLoaded PACKAGED v4.3.5 17575 * JavaScript is all like "You images are done yet or what?" 17576 * MIT License 17577 */ 17578!function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var i=this._events=this._events||{},n=i[e]=i[e]||[];return n.indexOf(t)==-1&&n.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var i=this._onceEvents=this._onceEvents||{},n=i[e]=i[e]||{};return n[t]=!0,this}},t.off=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var n=i.indexOf(t);return n!=-1&&i.splice(n,1),this}},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];for(var n=this._onceEvents&&this._onceEvents[e],o=0;o<i.length;o++){var r=i[o],s=n&&n[r];s&&(this.off(e,r),delete n[r]),r.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e}),function(e,t){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(i){return t(e,i)}):"object"==typeof module&&module.exports?module.exports=t(e,require("ev-emitter")):e.imagesLoaded=t(e,e.EvEmitter)}("undefined"!=typeof window?window:this,function(e,t){function i(e,t){for(var i in t)e[i]=t[i];return e}function n(e){if(Array.isArray(e))return e;var t="object"==typeof e&&"number"==typeof e.length;return t?d.call(e):[e]}function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);var s=e;return"string"==typeof e&&(s=document.querySelectorAll(e)),s?(this.elements=n(s),this.options=i({},this.options),"function"==typeof t?r=t:i(this.options,t),r&&this.on("always",r),this.getImages(),h&&(this.jqDeferred=new h.Deferred),void setTimeout(this.check.bind(this))):void a.error("Bad element for imagesLoaded "+(s||e))}function r(e){this.img=e}function s(e,t){this.url=e,this.element=t,this.img=new Image}var h=e.jQuery,a=e.console,d=Array.prototype.slice;o.prototype=Object.create(t.prototype),o.prototype.options={},o.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},o.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),this.options.background===!0&&this.addElementBackgroun
vendor: 4,288 bytes, lines 17578-17585
17578dImages(e);var t=e.nodeType;if(t&&u[t]){for(var i=e.querySelectorAll("img"),n=0;n<i.length;n++){var o=i[n];this.addImage(o)}if("string"==typeof this.options.background){var r=e.querySelectorAll(this.options.background);for(n=0;n<r.length;n++){var s=r[n];this.addElementBackgroundImages(s)}}}};var u={1:!0,9:!0,11:!0};return o.prototype.addElementBackgroundImages=function(e){var t=getComputedStyle(e);if(t)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(t.backgroundImage);null!==n;){var o=n&&n[2];o&&this.addBackground(o,e),n=i.exec(t.backgroundImage)}},o.prototype.addImage=function(e){var t=new r(e);this.images.push(t)},o.prototype.addBackground=function(e,t){var i=new s(e,t);this.images.push(i)},o.prototype.check=function(){function e(e,i,n){setTimeout(function(){t.progress(e,i,n)})}var t=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(t){t.once("progress",e),t.check()}):void this.complete()},o.prototype.progress=function(e,t,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&a&&a.log("progress: "+i,e,t)},o.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred){var t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},r.prototype=Object.create(t.prototype),r.prototype.check=function(){var e=this.getIsImageComplete();return e?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},r.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},r.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.img,t])},r.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},r.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},r.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},r.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype=Object.create(r.prototype),s.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url;var e=this.getIsImageComplete();e&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},s.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},o.makeJQueryPlugin=function(t){t=t||e.jQuery,t&&(h=t,h.fn.imagesLoaded=function(e,t){var i=new o(this,e,t);return i.jqDeferred.promise(h(this))})},o.makeJQueryPlugin(),o});/*! 17579 * Masonry PACKAGED v4.2.1 17580 * Cascading grid layout library 17581 * https://masonry.desandro.com 17582 * MIT License 17583 * by David DeSandro 17584 */ 17585!function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,r,a){function h(t,e,n){var o,r="$()."+i+'("'+e+'")';return t.each(function(t,h){var u=a.data(h,i);if(!u)return void s(i+" not initialized. Cannot call methods, i.e. "+r);var d=u[e];if(!d||"_"==e.charAt(0))return void s(r+" is not a valid method");var l=d.apply(u,n);o=void 0===o?l:o}),void 0!==o?o:t}function u(t,e){t.each(function(t,n){var o=a.data(n,i);o?(o.option(e),o._init()):(o=new r(n,e),a.data(n,i,o))})}a=a||e||t.jQuery,a&&(r.prototype.option||(r.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){var e=o.call(arguments,1
vendor: 3,731 bytes, line 17585
17585);return h(this,t,e)}return u(this,t),this},n(a))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var o=Array.prototype.slice,r=t.console,s="undefined"==typeof r?function(){}:function(t){r.error(t)};return n(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;o<i.length;o++){var r=i[o],s=n&&n[r];s&&(this.off(t,r),delete n[r]),r.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("get-size/get-size",[],function(){return e()}):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function t(t){var e=parseFloat(t),i=-1==t.indexOf("%")&&!isNaN(e);return i&&e}function e(){}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;u>e;e++){var i=h[e];t[i]=0}return t}function n(t){var e=getComputedStyle(t);return e||a("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),e}function o(){if(!d){d=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var o=n(e);r.isBoxSizeOuter=s=200==t(o.width),i.removeChild(e)}}function r(e){if(o(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var r=n(e);if("none"==r.display)return i();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var d=a.isBorderBox="border-box"==r.boxSizing,l=0;u>l;l++){var c=h[l],f=r[c],m=parseFloat(f);a[c]=isNaN(m)?0:m}var p=a.paddingLeft+a.paddingRight,g=a.paddingTop+a.paddingBottom,y=a.marginLeft+a.marginRight,v=a.marginTop+a.marginBottom,_=a.borderLeftWidth+a.borderRightWidth,z=a.borderTopWidth+a.borderBottomWidth,E=d&&s,b=t(r.width);b!==!1&&(a.width=b+(E?0:p+_));var x=t(r.height);return x!==!1&&(a.height=x+(E?0:g+z)),a.innerWidth=a.width-(p+_),a.innerHeight=a.height-(g+z),a.outerWidth=a.width+y,a.outerHeight=a.height+v,a}}var s,a="undefined"==typeof console?e:function(t){console.error(t)},h=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],u=h.length,d=!1;return r}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i],o=n+"MatchesSelector";if(t[o])return o}}();return function(e,i){return e[t](i)}}),function(t,e){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["de
17585sandro-matches-selector/matches-selector"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("desandro-matches-selector")):t.fizzyUIUtils=e(t,t.matchesSelector)}(window,function(t,e){var i={};i.extend=function(t,e){for(var i in e)t[i]=e[i];return t},i.modulo=function(t,e){return(t%e+e)%e},i.makeArray=function(t){var e=[];if(Array.isArray(t))e=t;else if(t&&"object"==typeof t&&"number"==typeof t.length)for(var i=0;i<t.length;i++)e.push(t[i]);else e.push(t);return e},i.removeFrom=function(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)},i.getParent=function(t,i){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,n){t=i.makeArray(t);var o=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!n)return void o.push(t);e(t,n)&&o.push(t);for(var i=t.querySelectorAll(n),r=0;r<i.length;r++)o.push(i[r])}}),o},i.debounceMethod=function(t,e,i){var n=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){var t=this[o];t&&clearTimeout(t);var e=arguments,r=this;this[o]=setTimeout(function(){n.apply(r,e),delete r[o]},i||100)}},i.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var n=t.console;return i.htmlInit=function(e,o){i.docReady(function(){var r=i.toDashed(o),s="data-"+r,a=document.querySelectorAll("["+s+"]"),h=document.querySelectorAll(".js-"+r),u=i.makeArray(a).concat(i.makeArray(h)),d=s+"-options",l=t.jQuery;u.forEach(function(t){var i,r=t.getAttribute(s)||t.getAttribute(d);try{i=r&&JSON.parse(r)}catch(a){return void(n&&n.error("Error parsing "+s+" on "+t.className+": "+a))}var h=new e(t,i);l&&l.data(t,o,h)})})},i}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("get-size")):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))}(window,function(t,e){"use strict";function i(t){for(var e in t)return!1;return e=null,!0}function n(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}function o(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}var r=document.documentElement.style,s="string"==typeof r.transition?"transition":"WebkitTransition",a="string"==typeof r.transform?"transform":"WebkitTransform",h={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[s],u={transform:a,transition:s,transitionDuration:s+"Duration",transitionProperty:s+"Property",transitionDelay:s+"Delay"},d=n.prototype=Object.create(t.prototype);d.constructor=n,d._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},d.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},d.getSize=function(){this.size=e(this.element)},d.css=function(t){var e=this.element.style;for(var i in t){var n=u[i]||i;e[n]=t[i]}},d.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),n=t[e?"left":"right"],o=t[i?"top":"bottom"],r=this.layout.size,s=-1!=n.indexOf("%")?parseFloat(n)/100*r.width:parseInt(n,10),a=-1!=o.indexOf("%")?parseFloat(o)/100*r.height:parseInt(o,10);s=isNaN(s)?0:s,a=isNaN(a)?0:a,s-=e?r.paddingLeft:r.paddingRight,a-=i?r.paddingTop:r.paddingBottom,this.position.x=s,this.position.y=a},d.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),o=i?"paddingLeft":"paddingRight",r=i?"left":"right",s=i?"right":"left",a=this.position.x+t[o];e[r]=this.getXValue(a),e[s]="";var h=n?"paddingTop":"paddingBottom",u=n?"top":"bottom",d=n?"bottom":"top",l=this.position.y+t[h];e[u]=this.getYValue(l),e[d]="",this.css(e),this.emitEvent("layout",[this])},d.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},d.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},d._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,o=parseInt(t,10),r=parseInt(e,10),s=o===this.position.x&&r===this.position.y;if(this.setPosition(t,e),s&&!this.isTransitioning)return void this.layoutPosition();var a=t-i,h=e-n,u={};u.transform=this.getTranslate(a,h),this.transition({to:u,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},d.getTranslate=function(t,e){var i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop");return t=i?t:-t,e=n?e:-e,"translate3d("+t+"px, "+e+"px, 0)"},d.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},d.moveTo=d._transitionTo,d.setPosition=function(t,e){this.position.x=parseInt(t,10),this.position.y=parseInt(e,10
vendor: 14,210 bytes, line 17585
17585)},d._nonTransition=function(t){this.css(t.to),t.isCleaning&&this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)},d.transition=function(t){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(t);var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);var n=this.element.offsetHeight;n=null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0};var l="opacity,"+o(a);d.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t="number"==typeof t?t+"ms":t,this.css({transitionProperty:l,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(h,this,!1)}},d.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},d.onotransitionend=function(t){this.ontransitionend(t)};var c={"-webkit-transform":"transform"};d.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,n=c[t.propertyName]||t.propertyName;if(delete e.ingProperties[n],i(e.ingProperties)&&this.disableTransition(),n in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[n]),n in e.onEnd){var o=e.onEnd[n];o.call(this),delete e.onEnd[n]}this.emitEvent("transitionEnd",[this])}},d.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(h,this,!1),this.isTransitioning=!1},d._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var f={transitionProperty:"",transitionDuration:"",transitionDelay:""};return d.removeTransitionStyles=function(){this.css(f)},d.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},d.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},d.remove=function(){return s&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},d.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("visibleStyle");e[i]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},d.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},d.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},d.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("hiddenStyle");e[i]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},d.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},d.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},n}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,n,o,r){return e(t,i,n,o,r)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):t.Outlayer=e(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window,function(t,e,i,n,o){"use strict";function r(t,e){var i=n.getQueryElement(t);if(!i)return void(h&&h.error("Bad element for "+this.constructor.namespace+": "+(i||t)));this.element=i,u&&(this.$element=u(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e);var o=++l;this.element.outlayerGUID=o,c[o]=this,this._create();var r=this._getOption("initLayout");r&&this.layout()}function s(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e}function a(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),i=e&&e[1],n=e&&e[2];if(!i.length)return 0;i=parseFloat(i);var o=m[n]||1;return i*o}var h=t.console,u=t.jQuery,d=function(){},l=0,c={};r.namespace="outlayer",r.Item=o,r.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var f=r.prototype;n.extend(f,e.prototype),f.option=function(t){n.extend(this.options,t)},f._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},r.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},f._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle);var t=this._getOption("resize");t&&this.bindResize()},f.reloadItems=function(){this.items=this._itemize(this.element.children)},f._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0;o<e.length;o++){var r=e[o],s=new i(r,this);n.push(s)}return n},f._filterFindItemElements=function(t){return n.filterFindElements(t,this.options.itemSelector)},f.getItemElements=function(){return this.items.map(function(t){return t.element})},f.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},f._init=f.layout,f._resetLayout=function(){this.getSize()},f.getSize=function(){this.size=i(this.element)},f._getMeasurement=function(t,e){var n,o=this.options[t];o?("string"==typeof o?n=this.element.querySelector(o):o instanceof HTMLElement&&(n=o),this[t]=n?i(n)[e]:o):this[t]=0},f.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},f._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},f._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){var i=[];t.forEach(function(t){var n=this._getItemLayoutPosition(t);n.item=t,n.isInstant=e||t.isLayoutInstant,i.push(n)},this),this._processLayoutQueue(i)}},f._getItemLayoutPosition=function(){return{x:0,y:0}},f._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},f.updateStagger=function(){var t=this.options.stagger;return null===t||void 0===t?void(this.stagger=0):(this.stagger=a(t),this.stagger)},f._positionItem=function(t,e,i,n,o){n?t.goTo(e,i):(t.stagger(o*this.stagger),t.moveTo(e,i))},f._postLayout=function(){this.resizeContainer()},f.resizeContainer=function(){var t=this._getOption("resizeContainer");if(t){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},f._getContainerSize=d,f._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},f._emitCompleteOnItems=function(t,e){function i(){o.dispatchEvent(t+"Complete",null,[e])}function n(){s++,s==r&&i()}var o=this,r=e.length;if(!e||!r)return void i();var s=0;e.forEach(function(e){e.once(t,n)})},f.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),u)if(this.$element=this.$element||u(this.element),e){var o=u.Event(e);o.type=t,this.$element.trigger(o,i)}else this.$element.trigger(t,i)},f.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},f.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},f.stamp=function(t){t=this._find(t),t&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},f.unstamp=function(t){t=this._find(t),t&&t.forEach(function(t){n.removeFrom(this.stamps,t),this.unignore(t)},this)},f._find=function(t){return t?("string"==typeof t&&(t=this.element.querySelectorAll(t)),t=n.makeArray(t)):void 0},f._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},f._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},f._manageStamp=d,f._getElementOffset=function(t){var e=t.getBoundingClientRect(),n=this._boundingRect,o=i(t),r={left:e.left-n.left-o.marginLeft,top:e.top-n.top-o.marginTop,right:n.right-e.right-o.marginRight,bottom:n.bottom-e.bottom-o.marginBottom};return r},f.handleEvent=n.handleEvent,f.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},f.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},f.onresize=function(){this.resize()},n.debounceMethod(r,"onresize",100),f.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},f.needsResizeLayout=function(){var t=i(this.element),e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},f.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},f.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},f.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},f.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.reveal()})}},f.hide=function(t){if(this._emitCompleteOnItems("hide",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.hide()})}},f.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},f.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},f.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},f.getItems=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){var i=this.getItem(t);i&&e.push(i)},this),e},f.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach(function(t){t.remove(),n.removeFrom(this.items,t)},this)},f.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize();var e=this.element.outlayerGUID;delete c[e],delete this.element.outlayerGUID,u&&u.removeData(this.element,this.constructor.namespace)},r.data=function(t){t=n.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&c[e]},r.create=function(t,e){var i=s(r);return i.defaults=n.extend({},r.defaults),n.extend(i.defaults,e),i.compatOptions=n.extend({},r.compatOptions),i.namespace=t,i.data=r.data,i.Item=s(o),n.htmlInit(i,t),u&&u.bridget&&u.bridget(t,i),i};var m={ms:1,s:1e3};return r.Item=o,r}),function(t,e){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("get-size")):t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,e){var i=t.create("masonry");i.compatOptions.fitWidth="isFitWidth";var n=i.prototype;return n._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},n.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}var n=this.columnWidth+=this.gutter,o=this.containerWidth+this.gutter,r=o/n,s=n-o%n,a=s&&1>s?"round":"floor";r=Math[a](r),this.cols=Math.max(r,1)},n.getContainerWidth=function(){var t=this._getOption("fitWidth"),i=t?this.element.parentNode:this.element,n=e(i);this.containerWidth=n&&n.innerWidth},n._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=e&&1>e?"round":"ceil",n=Math[i](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var o=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",r=this[o](n,t),s={x:this.columnWidth*r.col,y:r.y},a=r.y+t.size.outerHeight,h=n+r.col,u=r.col;h>u;u++)this.colYs[u]=a;return s},n._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return{col:e.indexOf(i),y:i}},n._getTopColGroup=function(t){if(2>t)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;i>n;n++)e[n]=this._getColGroupY(n,t);return e},n._getColGroupY=function(t,e){if(2>e)return this.colYs[t];var i=this.colYs.slice(t,t+e);return Math.max.apply(Math,i)},n._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,n=t>1&&i+t>this.cols;i=n?0:i;var o=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=o?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},n._manageStamp=function(t){var i=e(t),n=this._getElementOffset(t),o=this._getOption("originLeft"),r=o?n.left:n.right,s=r+i.outerWidth,a=Math.floor(r/this.columnWidth);a=Math.max(0,a);var h=Math.floor(s/this.columnWidth);h-=s%this.columnWidth?0:1,h=Math.min(this.cols-1,h);for(var u=this._getOption("originTop"),d=(u?n.top:n.bottom)+i.outerHeight,l=a;h>=l;l++)this.colYs[l]=Math.max(d,this.colYs[l])},n._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},n._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},n.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i});
17585var $grid=$('#blog_list_1-7').masonry({itemSelector:'.blog-grid',columnWidth:'.blog-grid',percentPosition:!0});$grid.imagesLoaded().progress(function(){$grid.masonry('layout')});/** 17586 * NOTICE OF LICENSE 17587 * 17588 * This source file is subject to the Academic Free License version 3.0
17589 * that is bundled with this package in the file LICENSE.md. 17590 * It is also available through the world-wide-web at this URL: 17591 * https://opensource.org/licenses/AFL-3.0 17592 * If you did not receive a copy of the license and are unable to 17593 * obtain it through the world-wide-web, please send an email 17594 * to [email protected] so we can send you a copy immediately. 17595 * 17596 * @author NetReviews SAS <[email protected]> 17597 * @copyright 2012-2023 NetReviews SAS 17598 * @license NetReviews 17599 * @version Release: $Revision: 8.0.0 17600 * @date 07/09/2023 17601 * International Registered Trademark & Property of NetReviews SAS 17602 */ 17603!function(e,t,i){"use strict";"function"==typeof define&&define.amd?define(i):"undefined"!=typeof module&&module.exports?module.exports=i():t.exports?t.exports=i():t[e]=i()}("Fingerprint2",this,function(){"use strict";var e=function(t){if(!(this instanceof e))return new e(t);var i={swfContainerId:"fingerprintjs2",swfPath:"flash/compiled/FontList.swf",detectScreenOrientation:!0,sortPluginsFor:[/palemoon/i],userDefinedFonts:[]};this.options=this.extend(t,i),this.nativeForEach=Array.prototype.forEach,this.nativeMap=Array.prototype.map};return e.prototype={extend:function(e,t){if(null==e)return t;for(var i in e)null!=e[i]&&t[i]!==e[i]&&(t[i]=e[i]);return t},get:function(e){var t=this,i={data:[],push:function(e){var i=e.key,a=e.value;"function"==typeof t.options.preprocessor&&(a=t.options.preprocessor(i,a)),this.data.push({key:i,value:a})}};i=this.userAgentKey(i),i=this.languageKey(i),i=this.colorDepthKey(i),i=this.pixelRatioKey(i),i=this.hardwareConcurrencyKey(i),i=this.screenResolutionKey(i),i=this.availableScreenResolutionKey(i),i=this.timezoneOffsetKey(i),i=this.sessionStorageKey(i),i=this.localStorageKey(i),i=this.indexedDbKey(i),i=this.addBehaviorKey(i),i=this.openDatabaseKey(i),i=this.cpuClassKey(i),i=this.platformKey(i),i=this.doNotTrackKey(i),i=this.pluginsKey(i),i=this.canvasKey(i),i=this.webglKey(i),i=this.adBlockKey(i),i=this.hasLiedLanguagesKey(i),i=this.hasLiedResolutionKey(i),i=this.hasLiedOsKey(i),i=this.hasLiedBrowserKey(i),i=this.touchSupportKey(i),i=this.customEntropyFunction(i),this.fontsKey(i,function(i){var a=[];t.each(i.data,function(e){var t=e.value;"undefined"!=typeof e.value.join&&(t=e.value.join(";")),a.push(t)});var r=t.x64hash128(a.join("~~~"),31);return e(r,i.data)})},customEntropyFunction:function(e){return"function"==typeof this.options.customFunction&&e.push({key:"custom",value:this.options.customFunction()}),e},userAgentKey:function(e){return this.options.excludeUserAgent||e.push({key:"user_agent",value:this.getUserAgent()}),e},getUserAgent:function(){return navigator.userAgent},languageKey:function(e){return this.options.excludeLanguage||e.push({key:"language",value:navigator.language||navigator.userLanguage||navigator.browserLanguage||navigator.systemLanguage||""}),e},colorDepthKey:function(e){return this.options.excludeColorDepth||e.push({key:"color_depth",value:screen.colorDepth||-1}),e},pixelRatioKey:function(e){return this.options.excludePixelRatio||e.push({key:"pixel_ratio",value:this.getPixelRatio()}),e},getPixelRatio:function(){return window.devicePixelRatio||""},screenResolutionKey:function(e){return this.options.excludeScreenResolution?e:this.getScreenResolution(e)},getScreenResolution:function(e){var t;return t=this.options.detectScreenOrientation&&screen.height>screen.width?[screen.height,screen.width]:[screen.width,screen.height],"undefined"!=typeof t&&e.push({key:"resolution",value:t}),e},availableScreenResolutionKey:function(e){return this.options.excludeAvailableScreenResolution?e:this.getAvailableScreenResolution(e)},getAvailableScreenResolution:function(e){var t;return screen.availWidth&&screen.availHeight&&(t=this.options.detectScreenOrientation?screen.availHeight>screen.availWidth?[screen.availHeight,screen.availWidth]:[screen.availWidth,screen.availHeight]:[screen.availHeight,screen.availWidth]),"undefined"!=typeof t&&e.push({key:"available_resolution",value:t}),e},timezoneOffsetKey:function(e){return this.options.excludeTimezoneOffset||e.push({key:"timezone_offset",value:(new Date).getTimezoneOffset()}),e},sessionStorageKey:function(e){return!this.options.excludeSessionStorage&&this.hasSessionStorage()&&e.push({key:"session_storage",value:1}),e},localStorageKey:function(e){return!this.options.excludeSessionStorage&&this.hasLocalStorage()&&e.push({key:"local_storage",value:1}),e},indexedDbKey:function(e){return!this.options.excludeIndexedDB&&this.hasIndexedDB()&&e.push({key:"indexed_db",value:1}),e},addBehaviorKey:function(e){return document.body&&!this.options.excludeAddBehavior&&document.body.addBehavior&&e.push({key:"add_behavior",value:1}),e}
vendor: 2,911 bytes, line 17603
17603,openDatabaseKey:function(e){return!this.options.excludeOpenDatabase&&window.openDatabase&&e.push({key:"open_database",value:1}),e},cpuClassKey:function(e){return this.options.excludeCpuClass||e.push({key:"cpu_class",value:this.getNavigatorCpuClass()}),e},platformKey:function(e){return this.options.excludePlatform||e.push({key:"navigator_platform",value:this.getNavigatorPlatform()}),e},doNotTrackKey:function(e){return this.options.excludeDoNotTrack||e.push({key:"do_not_track",value:this.getDoNotTrack()}),e},canvasKey:function(e){return!this.options.excludeCanvas&&this.isCanvasSupported()&&e.push({key:"canvas",value:this.getCanvasFp()}),e},webglKey:function(e){return this.options.excludeWebGL?e:this.isWebGlSupported()?(e.push({key:"webgl",value:this.getWebglFp()}),e):e},adBlockKey:function(e){return this.options.excludeAdBlock||e.push({key:"adblock",value:this.getAdBlock()}),e},hasLiedLanguagesKey:function(e){return this.options.excludeHasLiedLanguages||e.push({key:"has_lied_languages",value:this.getHasLiedLanguages()}),e},hasLiedResolutionKey:function(e){return this.options.excludeHasLiedResolution||e.push({key:"has_lied_resolution",value:this.getHasLiedResolution()}),e},hasLiedOsKey:function(e){return this.options.excludeHasLiedOs||e.push({key:"has_lied_os",value:this.getHasLiedOs()}),e},hasLiedBrowserKey:function(e){return this.options.excludeHasLiedBrowser||e.push({key:"has_lied_browser",value:this.getHasLiedBrowser()}),e},fontsKey:function(e,t){return this.options.excludeJsFonts?this.flashFontsKey(e,t):this.jsFontsKey(e,t)},flashFontsKey:function(e,t){return this.options.excludeFlashFonts?t(e):this.hasSwfObjectLoaded()&&this.hasMinFlashInstalled()?"undefined"==typeof this.options.swfPath?t(e):void this.loadSwfAndDetectFonts(function(i){e.push({key:"swf_fonts",value:i.join(";")}),t(e)}):t(e)},jsFontsKey:function(e,t){var i=this;return setTimeout(function(){var a=["monospace","sans-serif","serif"],r=["Andale Mono","Arial","Arial Black","Arial Hebrew","Arial MT","Arial Narrow","Arial Rounded MT Bold","Arial Unicode MS","Bitstream Vera Sans Mono","Book Antiqua","Bookman Old Style","Calibri","Cambria","Cambria Math","Century","Century Gothic","Century Schoolbook","Comic Sans","Comic Sans MS","Consolas","Courier","Courier New","Garamond","Geneva","Georgia","Helvetica","Helvetica Neue","Impact","Lucida Bright","Lucida Calligraphy","Lucida Console","Lucida Fax","LUCIDA GRANDE","Lucida Handwriting","Lucida Sans","Lucida Sans Typewriter","Lucida Sans Unicode","Microsoft Sans Serif","Monaco","Monotype Corsiva","MS Gothic","MS Outlook","MS PGothic","MS Reference Sans Serif","MS Sans Serif","MS Serif","MYRIAD","MYRIAD PRO","Palatino","Palatino Linotype","Segoe Print","Segoe Script","Segoe UI","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Tahoma","Times","Times New Roman","Times New Roman PS","Trebuchet MS","Verdana","Wingdings","Wingdings 2","Wingdings 3"],n
vendor: 6,129 bytes, line 17603
17603=["Abadi MT Condensed Light","Academy Engraved LET","ADOBE CASLON PRO","Adobe Garamond","ADOBE GARAMOND PRO","Agency FB","Aharoni","Albertus Extra Bold","Albertus Medium","Algerian","Amazone BT","American Typewriter","American Typewriter Condensed","AmerType Md BT","Andalus","Angsana New","AngsanaUPC","Antique Olive","Aparajita","Apple Chancery","Apple Color Emoji","Apple SD Gothic Neo","Arabic Typesetting","ARCHER","ARNO PRO","Arrus BT","Aurora Cn BT","AvantGarde Bk BT","AvantGarde Md BT","AVENIR","Ayuthaya","Bandy","Bangla Sangam MN","Bank Gothic","BankGothic Md BT","Baskerville","Baskerville Old Face","Batang","BatangChe","Bauer Bodoni","Bauhaus 93","Bazooka","Bell MT","Bembo","Benguiat Bk BT","Berlin Sans FB","Berlin Sans FB Demi","Bernard MT Condensed","BernhardFashion BT","BernhardMod BT","Big Caslon","BinnerD","Blackadder ITC","BlairMdITC TT","Bodoni 72","Bodoni 72 Oldstyle","Bodoni 72 Smallcaps","Bodoni MT","Bodoni MT Black","Bodoni MT Condensed","Bodoni MT Poster Compressed","Bookshelf Symbol 7","Boulder","Bradley Hand","Bradley Hand ITC","Bremen Bd BT","Britannic Bold","Broadway","Browallia New","BrowalliaUPC","Brush Script MT","Californian FB","Calisto MT","Calligrapher","Candara","CaslonOpnface BT","Castellar","Centaur","Cezanne","CG Omega","CG Times","Chalkboard","Chalkboard SE","Chalkduster","Charlesworth","Charter Bd BT","Charter BT","Chaucer","ChelthmITC Bk BT","Chiller","Clarendon","Clarendon Condensed","CloisterBlack BT","Cochin","Colonna MT","Constantia","Cooper Black","Copperplate","Copperplate Gothic","Copperplate Gothic Bold","Copperplate Gothic Light","CopperplGoth Bd BT","Corbel","Cordia New","CordiaUPC","Cornerstone","Coronet","Cuckoo","Curlz MT","DaunPenh","Dauphin","David","DB LCD Temp","DELICIOUS","Denmark","DFKai-SB","Didot","DilleniaUPC","DIN","DokChampa","Dotum","DotumChe","Ebrima","Edwardian Script ITC","Elephant","English 111 Vivace BT","Engravers MT","EngraversGothic BT","Eras Bold ITC","Eras Demi ITC","Eras Light ITC","Eras Medium ITC","EucrosiaUPC","Euphemia","Euphemia UCAS","EUROSTILE","Exotc350 Bd BT","FangSong","Felix Titling","Fixedsys","FONTIN","Footlight MT Light","Forte","FrankRuehl","Fransiscan","Freefrm721 Blk BT","FreesiaUPC","Freestyle Script","French Script MT","FrnkGothITC Bk BT","Fruitger","FRUTIGER","Futura","Futura Bk BT","Futura Lt BT","Futura Md BT","Futura ZBlk BT","FuturaBlack BT","Gabriola","Galliard BT","Gautami","Geeza Pro","Geometr231 BT","Geometr231 Hv BT","Geometr231 Lt BT","GeoSlab 703 Lt BT","GeoSlab 703 XBd BT","Gigi","Gill Sans","Gill Sans MT","Gill Sans MT Condensed","Gill Sans MT Ext Condensed Bold","Gill Sans Ultra Bold","Gill Sans Ultra Bold Condensed","Gisha","Gloucester MT Extra Condensed","GOTHAM","GOTHAM BOLD","Goudy Old Style","Goudy Stout","GoudyHandtooled BT","GoudyOLSt BT","Gujarati Sangam MN","Gulim","GulimChe","Gungsuh","GungsuhChe","Gurmukhi MN","Haettenschweiler","Harlow Solid Italic","Harrington","Heather","Heiti SC","Heiti TC","HELV","Herald","High Tower Text","Hiragino Kaku Gothic ProN","Hiragino Mincho ProN","Hoefler Text","Humanst 521 Cn BT","Humanst521 BT","Humanst521 Lt BT","Imprint MT Shadow","Incised901 Bd BT","Incised901 BT","Incised901 Lt BT","INCONSOLATA","Informal Roman","Informal011 BT","INTERSTATE","IrisUPC","Iskoola Pota","JasmineUPC","Jazz LET","Jenson","Jester","Jokerman","Juice ITC","Kabel Bk BT","Kabel Ult BT","Kailasa","KaiTi","Kalinga","Kannada Sangam MN","Kartika","Kaufmann Bd BT","Kaufmann BT","Khmer UI","KodchiangUPC","Kokila","Korinna BT","Kristen ITC","Krungthep","Kunstler Script","Lao UI","Latha","Leelawadee","Letter Gothic","Levenim MT","LilyUPC","Lithograph","Lithograph Light","Long Island","Lydian BT","Magneto","Maiandra GD","Malayalam Sangam MN","Malgun Gothic","Mangal","Marigold","Marion","Marker Felt","Market","Marlett","Matisse ITC","Matura MT Script Capitals","Meiryo","Meiryo UI","Microsoft Himalaya","Microsoft JhengHei","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Tai Le","Microsoft Uighur","Microsoft YaHei","Microsoft Yi Baiti","MingLiU","MingLiU_HKSCS","MingLiU_HKSCS-ExtB","MingLiU-ExtB","Minion","Minion Pro","Miriam","Miriam Fixed","Mistral","Modern","Modern No. 20","Mona Lisa Solid ITC TT","Mongolian Baiti","MONO","MoolBoran","Mrs Eaves","MS LineDraw","MS Mincho","MS PMincho","MS Reference Specialty","MS UI Gothic","MT Extra","MUSEO","MV Boli","Nadeem","Narkisim","NEVIS","News Gothic","News GothicMT","NewsGoth BT","Niagara Engraved","Niagara Solid","Noteworthy","NSimSun","Nyala","OCR A Extended","Old Century","Old English Text MT","Onyx","Onyx BT","OPTIMA","Oriya Sangam MN","OSAKA","OzHandicraft BT","Palace Script MT","Papyrus","Parchment","Party LET","Pegasus","Perpetua","Perpetua Titling MT","PetitaBold","Pickwick","Plantagenet Cherokee","Playbill","PMingLiU","PMingLiU-ExtB","Poor Richard","Poster","PosterBodoni BT","PRINCETOWN LET","Pristina","PTBarnum BT","Pythagoras","Raavi","Rage Italic","Ravie","Ribbon131 Bd BT","Rockwell","Rockwell Condensed","Rockwell Extra Bold","Rod","Roman","Sakkal Majalla","Santa Fe LET","Savoye LET","Sceptre","Script","Script MT Bold","SCRIPTINA","Serifa","Serifa BT","Serifa Th BT","ShelleyVolante BT","Sherwood","Shonar Bangla","Showcard Gothic","Shruti","Signboard","SILKSCREEN","SimHei","Simplified Arabic","Simplified Arabic Fixed","SimSun","SimSun-ExtB","Sinhala Sangam MN","Sketch Rockwell","Skia","Small Fonts","Snap ITC","Snell Roundhand","Socket","Souvenir Lt BT","Staccato222 BT","Steamer","Stencil","Storybook","Styllo","Subway","Swis721 BlkEx BT","Swiss911 XCm BT","Sylfaen","Synchro LET","System","Tamil Sangam MN","Technical","Teletype","Telugu Sangam MN","Tempus Sans ITC","Terminal","Thonburi","Traditional Arabic","Trajan","TRAJAN PRO","Tristan","Tubular","Tunga","Tw Cen MT","Tw Cen MT Condensed","Tw Cen MT Condensed Extra Bold","TypoUpright BT","Unicorn","Univers","Univers CE 55 Medium","Univers Condensed","Utsaah","Vagabond","Vani","Vijaya","Viner Hand ITC","VisualUI","Vivaldi","Vladimir Script","Vrinda","Westminster","WHITNEY","Wide Latin","ZapfEllipt BT","ZapfHumnst BT","ZapfHumnst Dm BT","Zapfino","Zurich BlkEx BT","Zurich Ex BT","ZWAdobeF"];
vendor: 1,138 bytes, line 17603
17603i.options.extendedJsFonts&&(r=r.concat(n)),r=r.concat(i.options.userDefinedFonts);var o="mmmmmmmmmmlli",s="72px",l=document.getElementsByTagName("body")[0],h=document.createElement("div"),u=document.createElement("div"),c={},d={},g=function(){var e=document.createElement("span");return e.style.position="absolute",e.style.left="-9999px",e.style.fontSize=s,e.style.lineHeight="normal",e.innerHTML=o,e},p=function(e,t){var i=g();return i.style.fontFamily="'"+e+"',"+t,i},f=function(){for(var e=[],t=0,i=a.length;t<i;t++){var r=g();r.style.fontFamily=a[t],h.appendChild(r),e.push(r)}return e},m=function(){for(var e={},t=0,i=r.length;t<i;t++){for(var n=[],o=0,s=a.length;o<s;o++){var l=p(r[t],a[o]);u.appendChild(l),n.push(l)}e[r[t]]=n}return e},T=function(e){for(var t=!1,i=0;i<a.length;i++)if(t=e[i].offsetWidth!==c[a[i]]||e[i].offsetHeight!==d[a[i]])return t;return t},S=f();l.appendChild(h);for(var x=0,v=a.length;x<v;x++)c[a[x]]=S[x].offsetWidth,d[a[x]]=S[x].offsetHeight;var E=m();l.appendChild(u);for(var M=[],A=0,y=r.length;A<y;A++)T(E[r[A]])&&M.push(r[A]);l.removeChild(u),l.removeChild(h),e.push({key:"js_fonts",value:M}),t(e)},1)
vendor: 15,533 bytes, line 17603
17603},pluginsKey:function(e){return this.options.excludePlugins||(this.isIE()?this.options.excludeIEPlugins||e.push({key:"ie_plugins",value:this.getIEPlugins()}):e.push({key:"regular_plugins",value:this.getRegularPlugins()})),e},getRegularPlugins:function(){for(var e=[],t=0,i=navigator.plugins.length;t<i;t++)e.push(navigator.plugins[t]);return this.pluginsShouldBeSorted()&&(e=e.sort(function(e,t){return e.name>t.name?1:e.name<t.name?-1:0})),this.map(e,function(e){var t=this.map(e,function(e){return[e.type,e.suffixes].join("~")}).join(",");return[e.name,e.description,t].join("::")},this)},getIEPlugins:function(){var e=[];if(Object.getOwnPropertyDescriptor&&Object.getOwnPropertyDescriptor(window,"ActiveXObject")||"ActiveXObject"in window){var t=["AcroPDF.PDF","Adodb.Stream","AgControl.AgControl","DevalVRXCtrl.DevalVRXCtrl.1","MacromediaFlashPaper.MacromediaFlashPaper","Msxml2.DOMDocument","Msxml2.XMLHTTP","PDF.PdfCtrl","QuickTime.QuickTime","QuickTimeCheckObject.QuickTimeCheck.1","RealPlayer","RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)","RealVideo.RealVideo(tm) ActiveX Control (32-bit)","Scripting.Dictionary","SWCtl.SWCtl","Shell.UIHelper","ShockwaveFlash.ShockwaveFlash","Skype.Detection","TDCCtl.TDCCtl","WMPlayer.OCX","rmocx.RealPlayer G2 Control","rmocx.RealPlayer G2 Control.1"];e=this.map(t,function(e){try{return new ActiveXObject(e),e}catch(t){return null}})}return navigator.plugins&&(e=e.concat(this.getRegularPlugins())),e},pluginsShouldBeSorted:function(){for(var e=!1,t=0,i=this.options.sortPluginsFor.length;t<i;t++){var a=this.options.sortPluginsFor[t];if(navigator.userAgent.match(a)){e=!0;break}}return e},touchSupportKey:function(e){return this.options.excludeTouchSupport||e.push({key:"touch_support",value:this.getTouchSupport()}),e},hardwareConcurrencyKey:function(e){return this.options.excludeHardwareConcurrency||e.push({key:"hardware_concurrency",value:this.getHardwareConcurrency()}),e},hasSessionStorage:function(){try{return!!window.sessionStorage}catch(e){return!0}},hasLocalStorage:function(){try{return!!window.localStorage}catch(e){return!0}},hasIndexedDB:function(){try{return!!window.indexedDB}catch(e){return!0}},getHardwareConcurrency:function(){return navigator.hardwareConcurrency?navigator.hardwareConcurrency:"unknown"},getNavigatorCpuClass:function(){return navigator.cpuClass?navigator.cpuClass:"unknown"},getNavigatorPlatform:function(){return navigator.platform?navigator.platform:"unknown"},getDoNotTrack:function(){return navigator.doNotTrack?navigator.doNotTrack:navigator.msDoNotTrack?navigator.msDoNotTrack:window.doNotTrack?window.doNotTrack:"unknown"},getTouchSupport:function(){var e=0,t=!1;"undefined"!=typeof navigator.maxTouchPoints?e=navigator.maxTouchPoints:"undefined"!=typeof navigator.msMaxTouchPoints&&(e=navigator.msMaxTouchPoints);try{document.createEvent("TouchEvent"),t=!0}catch(i){}var a="ontouchstart"in window;return[e,t,a]},getCanvasFp:function(){var e=[],t=document.createElement("canvas");t.width=2e3,t.height=200,t.style.display="inline";var i=t.getContext("2d");return i.rect(0,0,10,10),i.rect(2,2,6,6),e.push("canvas winding:"+(i.isPointInPath(5,5,"evenodd")===!1?"yes":"no")),i.textBaseline="alphabetic",i.fillStyle="#f60",i.fillRect(125,1,62,20),i.fillStyle="#069",this.options.dontUseFakeFontInCanvas?i.font="11pt Arial":i.font="11pt no-real-font-123",i.fillText("Cwm fjordbank glyphs vext quiz, \ud83d\ude03",2,15),i.fillStyle="rgba(102, 204, 0, 0.2)",i.font="18pt Arial",i.fillText("Cwm fjordbank glyphs vext quiz, \ud83d\ude03",4,45),i.globalCompositeOperation="multiply",i.fillStyle="rgb(255,0,255)",i.beginPath(),i.arc(50,50,50,0,2*Math.PI,!0),i.closePath(),i.fill(),i.fillStyle="rgb(0,255,255)",i.beginPath(),i.arc(100,50,50,0,2*Math.PI,!0),i.closePath(),i.fill(),i.fillStyle="rgb(255,255,0)",i.beginPath(),i.arc(75,100,50,0,2*Math.PI,!0),i.closePath(),i.fill(),i.fillStyle="rgb(255,0,255)",i.arc(75,75,75,0,2*Math.PI,!0),i.arc(75,75,25,0,2*Math.PI,!0),i.fill("evenodd"),e.push("canvas fp:"+t.toDataURL()),e.join("~")},getWebglFp:function(){var e,t=function(t){return e.clearColor(0,0,0,1),e.enable(e.DEPTH_TEST),e.depthFunc(e.LEQUAL),e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT),"["+t[0]+", "+t[1]+"]"},i=function(e){var t,i=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic");return i?(t=e.getParameter(i.MAX_TEXTURE_MAX_ANISOTROPY_EXT),0===t&&(t=2),t):null};if(e=this.getWebglCanvas(),!e)return null;var a=[],r="attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}",n="precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}",o=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,o);var s=new Float32Array([-.2,-.9,0,.4,-.26,0,0,.732134444,0]);e.bufferData(e.ARRAY_BUFFER,s,e.STATIC_DRAW),o.itemSize=3,o.numItems=3;var l=e.createProgram(),h=e.createShader(e.VERTEX_SHADER);e.shaderSource(h,r),e.compileShader(h);var u=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(u,n),e.compileShader(u),e.attachShader(l,h),e.attachShader(l,u),e.linkProgram(l),e.useProgram(l),l.vertexPosAttrib=e.getAttribLocation(l,"attrVertex"),l.offsetUniform=e.getUniformLocation(l,"uniformOffset"),e.enableVertexAttribArray(l.vertexPosArray),e.vertexAttribPointer(l.vertexPosAttrib,o.itemSize,e.FLOAT,!1,0,0),e.uniform2f(l.offsetUniform,1,1),e.drawArrays(e.TRIANGLE_STRIP,0,o.numItems),null!=e.canvas&&a.push(e.canvas.toDataURL()),a.push("extensions:"+e.getSupportedExtensions().join(";")),a.push("webgl aliased line width range:"+t(e.getParameter(e.ALIASED_LINE_WIDTH_RANGE))),a.push("webgl aliased point size range:"+t(e.getParameter(e.ALIASED_POINT_SIZE_RANGE))),a.push("webgl alpha bits:"+e.getParameter(e.ALPHA_BITS)),a.push("webgl antialiasing:"+(e.getContextAttributes().antialias?"yes":"no")),a.push("webgl blue bits:"+e.getParameter(e.BLUE_BITS)),a.push("webgl depth bits:"+e.getParameter(e.DEPTH_BITS)),a.push("webgl green bits:"+e.getParameter(e.GREEN_BITS)),a.push("webgl max anisotropy:"+i(e)),a.push("webgl max combined texture image units:"+e.getParameter(e.MAX_COMBINED_TEXTURE_IMAGE_UNITS)),a.push("webgl max cube map texture size:"+e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE)),a.push("webgl max fragment uniform vectors:"+e.getParameter(e.MAX_FRAGMENT_UNIFORM_VECTORS)),a.push("webgl max render buffer size:"+e.getParameter(e.MAX_RENDERBUFFER_SIZE)),a.push("webgl max texture image units:"+e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS)),a.push("webgl max texture size:"+e.getParameter(e.MAX_TEXTURE_SIZE)),a.push("webgl max varying vectors:"+e.getParameter(e.MAX_VARYING_VECTORS)),a.push("webgl max vertex attribs:"+e.getParameter(e.MAX_VERTEX_ATTRIBS)),a.push("webgl max vertex texture image units:"+e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS)),a.push("webgl max vertex uniform vectors:"+e.getParameter(e.MAX_VERTEX_UNIFORM_VECTORS)),a.push("webgl max viewport dims:"+t(e.getParameter(e.MAX_VIEWPORT_DIMS))),a.push("webgl red bits:"+e.getParameter(e.RED_BITS)),a.push("webgl renderer:"+e.getParameter(e.RENDERER)),a.push("webgl shading language version:"+e.getParameter(e.SHADING_LANGUAGE_VERSION)),a.push("webgl stencil bits:"+e.getParameter(e.STENCIL_BITS)),a.push("webgl vendor:"+e.getParameter(e.VENDOR)),a.push("webgl version:"+e.getParameter(e.VERSION));try{var c=e.getExtension("WEBGL_debug_renderer_info");c&&(a.push("webgl unmasked vendor:"+e.getParameter(c.UNMASKED_VENDOR_WEBGL)),a.push("webgl unmasked renderer:"+e.getParameter(c.UNMASKED_RENDERER_WEBGL)))}catch(d){}return e.getShaderPrecisionFormat?(a.push("webgl vertex shader high float precision:"+e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.HIGH_FLOAT).precision),a.push("webgl vertex shader high float precision rangeMin:"+e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.HIGH_FLOAT).rangeMin),a.push("webgl vertex shader high float precision rangeMax:"+e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.HIGH_FLOAT).rangeMax),a.push("webgl vertex shader medium float precision:"+e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.MEDIUM_FLOAT).precision),a.push("webgl vertex shader medium float precision rangeMin:"+e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.MEDIUM_FLOAT).rangeMin),a.push("webgl vertex shader medium float precision rangeMax:"+e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.MEDIUM_FLOAT).rangeMax),a.push("webgl vertex shader low float precision:"+e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.LOW_FLOAT).precision),a.push("webgl vertex shader low float precision rangeMin:"+e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.LOW_FLOAT).rangeMin),a.push("webgl vertex shader low float precision rangeMax:"+e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.LOW_FLOAT).rangeMax),a.push("webgl fragment shader high float precision:"+e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT).precision),a.push("webgl fragment shader high float precision rangeMin:"+e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT).rangeMin),a.push("webgl fragment shader high float precision rangeMax:"+e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT).rangeMax),a.push("webgl fragment shader medium float precision:"+e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.MEDIUM_FLOAT).precision),a.push("webgl fragment shader medium float precision rangeMin:"+e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.MEDIUM_FLOAT).rangeMin),a.push("webgl fragment shader medium float precision rangeMax:"+e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.MEDIUM_FLOAT).rangeMax),a.push("webgl fragment shader low float precision:"+e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.LOW_FLOAT).precision),a.push("webgl fragment shader low float precision rangeMin:"+e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.LOW_FLOAT).rangeMin),a.push("webgl fragment shader low float precision rangeMax:"+e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.LOW_FLOAT).rangeMax),a.push("webgl vertex shader high int precision:"+e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.HIGH_INT).precision),a.push("webgl vertex shader high int precision rangeMin:"+e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.HIGH_INT).rangeMin),a.push("webgl vertex shader high int precision rangeMax:"+e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.HIGH_INT).rangeMax),a.push("webgl vertex shader medium int precision:"+e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.MEDIUM_INT).precision),a.push("webgl vertex shader medium int precision rangeMin:"+e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.MEDIUM_INT).rangeMin),a.push("webgl vertex shader medium int precision rangeMax:"+e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.MEDIUM_INT).rangeMax),a.push("webgl vertex shader low int precision:"+e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.LOW_INT).precision),a.push("webgl vertex shader low int precision rangeMin:"+e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.LOW_INT).rangeMin),a.push("webgl vertex shader low int precision rangeMax:"+e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.LOW_INT).rangeMax),a.push("webgl fragment shader high int precision:"+e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_INT).precision),a.push("webgl fragment shader high int precision rangeMin:"+e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_INT).rangeMin),a.push("webgl fragment shader high int precision rangeMax:"+e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_INT).rangeMax),a.push("webgl fragment shader medium int precision:"+e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.MEDIUM_INT).precision),a.push("webgl fragment shader medium int precision rangeMin:"+e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.MEDIUM_INT).rangeMin),a.push("webgl fragment shader medium int precision rangeMax:"+e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.MEDIUM_INT).rangeMax),a.push("webgl fragment shader low int precision:"+e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.LOW_INT).precision),a.push("webgl fragment shader low int precision rangeMin:"+e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.LOW_INT).rangeMin),a.push("webgl fragment shader low int precision rangeMax:"+e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.LOW_INT).rangeMax),a.join("~")):a.join("~")},getAdBlock:function(){var e=document.createElement("div");e.innerHTML=" ",e.className="adsbox";var t=!1;try{document.body.appendChild(e),t=0===document.getElementsByClassName("adsbox")[0].offsetHeight,document.body.removeChild(e)}catch(i){t=!1}return t},getHasLiedLanguages:function(){if("undefined"!=typeof navigator.languages)try{var e=navigator.languages[0].substr(0,2);if(e!==navigator.language.substr(0,2))return!0}catch(t){return!0}return!1},getHasLiedResolution:function(){return screen.width<screen.availWidth||screen.height<screen.availHeight},getHasLiedOs:function(){var e,t=navigator.userAgent.toLowerCase(),i=navigator.oscpu,a=navigator.platform.toLowerCase();e=t.indexOf("windows phone")>=0?"Windows Phone":t.indexOf("win")>=0?"Windows":t.indexOf("android")>=0?"Android":t.indexOf("linux")>=0?"Linux":t.indexOf("iphone")>=0||t.indexOf("ipad")>=0?"iOS":t.indexOf("mac")>=0?"Mac":"Other";var r;if(r="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0,r&&"Windows Phone"!==e&&"Android"!==e&&"iOS"!==e&&"Other"!==e)return!0;if("undefined"!=typeof i){if(i=i.toLowerCase(),i.indexOf("win")>=0&&"Windows"!==e&&"Windows Phone"!==e)return!0;if(i.indexOf("linux")>=0&&"Linux"!==e&&"Android"!==e)return!0;if(i.indexOf("mac")>=0&&"Mac"!==e&&"iOS"!==e)return!0;if(0===i.indexOf("win")&&0===i.indexOf("linux")&&i.indexOf("mac")>=0&&"other"!==e)return!0}return a.indexOf("win")>=0&&"Windows"!==e&&"Windows Phone"!==e||((a.indexOf("linux")>=0||a.indexOf("android")>=0||a.indexOf("pike")>=0)&&"Linux"!==e&&"Android"!==e||((a.indexOf("mac")>=0||a.indexOf("ipad")>=0||a.indexOf("ipod")>=0||a.indexOf("iphone")>=0)&&"Mac"!==e&&"iOS"!==e||(0===a.indexOf("win")&&0===a.indexOf("linux")&&a.indexOf("mac")>=0&&"other"!==e||"undefined"==typeof navigator.plugins&&"Windows"!==e&&"Windows Phone"!==e)))},getHasLiedBrowser:function(){var e,t=navigator.userAgent.toLowerCase(),i=navigator.productSub;if(e=t.indexOf("firefox")>=0?"Firefox":t.indexOf("opera")>=0||t.indexOf("opr")>=0?"Opera":t.indexOf("chrome")>=0?"Chrome":t.indexOf("safari")>=0?"Safari":t.indexOf("trident")>=0?"Internet Explorer":"Other",("Chrome"===e||"Safari"===e||"Opera"===e)&&"20030107"!==i)return!0;var a=eval.toString().length;if(37===a&&"Safari"!==e&&"Firefox"!==e&&"Other"!==e)return!0;if(39===a&&"Internet Explorer"!==e&&"Other"!==e)return!0;if(33===a&&"Chrome"!==e&&"Opera"!==e&&"Other"!==e)return!0;var r;try{throw"a"}catch(n){try{n.toSource(),r=!0}catch(o){r=!1}}return!(!r||"Firefox"===e||"Other"===e)},isCanvasSupported:function(){var e=document.createElement("canvas");return!(!e.getContext||!e.getContext("2d"))},isWebGlSupported:function(){if(!this.isCanvasSupported())return!1;var e,t=document.createElement("canvas");try{e=t.getContext&&(t.getContext("webgl")||t.getContext("experimental-webgl"))}catch(i){e=!1}return!!window.WebGLRenderingContext&&!!e},isIE:function(){return"Microsoft Internet Explorer"===navigator.appName||!("Netscape"!==navigator.appName||!/Trident/.test(navigator.userAgent))},hasSwfObjectLoaded:function(){return"undefined"!=typeof window.swfobject},hasMinFlashInstalled:function(){return swfobject.hasFlashPlayerVersion("9.0.0")},addFlashDivNode:function(){var e=document.createElement("div");e.setAttribute("id",this.options.swfContainerId),document.body.appendChild(e)},
17603loadSwfAndDetectFonts:function(e){var t="___fp_swf_loaded";window[t]=function(t){e(t)};var i=this.options.swfContainerId;this.addFlashDivNode();var a={onReady:t},r={allowScriptAccess:"always",menu:"false"};swfobject.embedSWF(this.options.swfPath,i,"1","1","9.0.0",!1,a,r,{})},getWebglCanvas:function(){var e=document.createElement("canvas"),t=null;try{t=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(i){}return t||(t=null),t},each:function(e,t,i){if(null!==e)if(this.nativeForEach&&e.forEach===this.nativeForEach)e.forEach(t,i);else if(e.length===+e.length){for(var a=0,r=e.length;a<r;a++)if(t.call(i,e[a],a,e)==={})return}else for(var n in e)if(e.hasOwnProperty(n)&&t.call(i,e[n],n,e)==={})return},map:function(e,t,i){var a=[];return null==e?a:this.nativeMap&&e.map===this.nativeMap?e.map(t,i):(this.each(e,function(e,r,n){a[a.length]=t.call(i,e,r,n)}),a)},x64Add:function(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var i=[0,0,0,0];return i[3]+=e[3]+t[3],i[2]+=i[3]>>>16,i[3]&=65535,i[2]+=e[2]+t[2],i[1]+=i[2]>>>16,i[2]&=65535,i[1]+=e[1]+t[1],i[0]+=i[1]>>>16,i[1]&=65535,i[0]+=e[0]+t[0],i[0]&=65535,[i[0]<<16|i[1],i[2]<<16|i[3]]},x64Multiply:function(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var i=[0,0,0,0];return i[3]+=e[3]*t[3],i[2]+=i[3]>>>16,i[3]&=65535,i[2]+=e[2]*t[3],i[1]+=i[2]>>>16,i[2]&=65535,i[2]+=e[3]*t[2],i[1]+=i[2]>>>16,i[2]&=65535,i[1]+=e[1]*t[3],i[0]+=i[1]>>>16,i[1]&=65535,i[1]+=e[2]*t[2],i[0]+=i[1]>>>16,i[1]&=65535,i[1]+=e[3]*t[1],i[0]+=i[1]>>>16,i[1]&=65535,i[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],i[0]&=65535,[i[0]<<16|i[1],i[2]<<16|i[3]]},x64Rotl:function(e,t){return t%=64,32===t?[e[1],e[0]]:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t|e[0]>>>32-t]:(t-=32,[e[1]<<t|e[0]>>>32-t,e[0]<<t|e[1]>>>32-t])},x64LeftShift:function(e,t){return t%=64,0===t?e:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t]:[e[1]<<t-32,0]},x64Xor:function(e,t){return[e[0]^t[0],e[1]^t[1]]},x64Fmix:function(e){return e=this.x64Xor(e,[0,e[0]>>>1]),e=this.x64Multiply(e,[4283543511,3981806797]),e=this.x64Xor(e,[0,e[0]>>>1]),e=this.x64Multiply(e,[3301882366,444984403]),e=this.x64Xor(e,[0,e[0]>>>1])},x64hash128:function(e,t){e=e||"",t=t||0;for(var i=e.length%16,a=e.length-i,r=[0,t],n=[0,t],o=[0,0],s=[0,0],l=[2277735313,289559509],h=[1291169091,658871167],u=0;u<a;u+=16)o=[255&e.charCodeAt(u+4)|(255&e.charCodeAt(u+5))<<8|(255&e.charCodeAt(u+6))<<16|(255&e.charCodeAt(u+7))<<24,255&e.charCodeAt(u)|(255&e.charCodeAt(u+1))<<8|(255&e.charCodeAt(u+2))<<16|(255&e.charCodeAt(u+3))<<24],s=[255&e.charCodeAt(u+12)|(255&e.charCodeAt(u+13))<<8|(255&e.charCodeAt(u+14))<<16|(255&e.charCodeAt(u+15))<<24,255&e.charCodeAt(u+8)|(255&e.charCodeAt(u+9))<<8|(255&e.charCodeAt(u+10))<<16|(255&e.charCodeAt(u+11))<<24],o=this.x64Multiply(o,l),o=this.x64Rotl(o,31),o=this.x64Multiply(o,h),r=this.x64Xor(r,o),r=this.x64Rotl(r,27),r=this.x64Add(r,n),r=this.x64Add(this.x64Multiply(r,[0,5]),[0,1390208809]),s=this.x64Multiply(s,h),s=this.x64Rotl(s,33),s=this.x64Multiply(s,l),n=this.x64Xor(n,s),n=this.x64Rotl(n,31),n=this.x64Add(n,r),n=this.x64Add(this.x64Multiply(n,[0,5]),[0,944331445]);switch(o=[0,0],s=[0,0],i){case 15:s=this.x64Xor(s,this.x64LeftShift([0,e.charCodeAt(u+14)],48));case 14:s=this.x64Xor(s,this.x64LeftShift([0,e.charCodeAt(u+13)],40));case 13:s=this.x64Xor(s,this.x64LeftShift([0,e.charCodeAt(u+12)],32));case 12:s=this.x64Xor(s,this.x64LeftShift([0,e.charCodeAt(u+11)],24));case 11:s=this.x64Xor(s,this.x64LeftShift([0,e.charCodeAt(u+10)],16));case 10:s=this.x64Xor(s,this.x64LeftShift([0,e.charCodeAt(u+9)],8));case 9:s=this.x64Xor(s,[0,e.charCodeAt(u+8)]),s=this.x64Multiply(s,h),s=this.x64Rotl(s,33),s=this.x64Multiply(s,l),n=this.x64Xor(n,s);case 8:o=this.x64Xor(o,this.x64LeftShift([0,e.charCodeAt(u+7)],56));case 7:o=this.x64Xor(o,this.x64LeftShift([0,e.charCodeAt(u+6)],48));case 6:o=this.x64Xor(o,this.x64LeftShift([0,e.charCodeAt(u+5)],40));case 5:o=this.x64Xor(o,this.x64LeftShift([0,e.charCodeAt(u+4)],32));case 4:o=this.x64Xor(o,this.x64LeftShift([0,e.charCodeAt(u+3)],24));case 3:o=this.x64Xor(o,this.x64LeftShift([0,e.charCodeAt(u+2)],16));case 2:o=this.x64Xor(o,this.x64LeftShift([0,e.charCodeAt(u+1)],8));case 1:o=this.x64Xor(o,[0,e.charCodeAt(u)]),o=this.x64Multiply(o,l),o=this.x64Rotl(o,31),o=this.x64Multiply(o,h),r=this.x64Xor(r,o)}return r=this.x64Xor(r,[0,e.length]),n=this.x64Xor(n,[0,e.length]),r=this.x64Add(r,n),n=this.x64Add(n,r),r=this.x64Fmix(r),n=this.x64Fmix(n),r=this.x64Add(r,n),n=this.x64Add(n,r),("00000000"+(r[0]>>>0).toString(16)).slice(-8)+("00000000"+(r[1]>>>0).toString(16)).slice(-8)+("00000000"+(n[0]>>>0).toString(16)).slice(-8)+("00000000"+(n[1]>>>0).toString(16)).slice(-8)}},e.VERSION="1.5.1",e});var jQueryIsLoaded=!1;try{if(typeof jQuery==='undefined') 17604jQueryIsLoaded=!1;else jQueryIsLoaded=!0}catch(err){jQueryIsLoaded=!1} 17605if(!jQueryIsLoaded){loadScript("https://www.avis-verifies.com/review/js/jquery-1.8.2.min.js")} 17606if(typeof window.avisVerifies==='undefined'){window.avisVerifies={}} 17607if(typeof jQuery!=='undefined'){function av_widget_click(){if($('.netreviews_tab').length){if($('#netreviews_tab').length){$("#netreviews_tab").click();$('html,body').animate({scrollTop:$("#netreviews_tab").offset().top},'slow')}else{var tagclassname_av=$('.netreviews_tab').attr('id');$("a[href='#"+tagclassname_av+"']").click();$('html,body').animate({scrollTop:$("a[href='#"+tagclassname_av+"']").offset().top},'slow')}}else{$("a[href='#netreviews_reviews_tab']").click();$('html,body').animate({scrollTop:$("#netreviews_reviews_tab").offset().top},'slow')}} 17608function netreviewsFilter(filter_option){var current_page=parseInt($("#netreviews_rating_section").attr("data-current-page"));var sortbynote=parseInt($("#netreviews_rating_section").attr("data-sortbynote"));var current_option_filter=$("#netreviews_rating_section").attr("data-current-option");$(".sortbynote").hide();if(filter_option!='more'){if(filter_option>0){sortbynote=filter_option;current_option_filter='horodate_DESC';$("#netreviews_rating_section").attr("data-sortbynote",filter_option);$("#netreviews_rating_section").attr("data-current-option",'horodate_DESC');$(".netreviews_all_reviews").show();$('#netreviews_reviews_filter option:selected').removeAttr('selected');$(".sortbynote").show().prop('selected',!0)}else{sortbynote=0;$('.netreviews_stats_stars_big').css('opacity','1');$("#netreviews_rating_section").attr("data-sortbynote",0);current_option_filter=$("#netreviews_reviews_filter").val();$("#netreviews_rating_section").attr("data-current-option",current_option_filter)} 17609current_page=1;$("#netreviews_rating_section").attr("data-current-page",1)}else{current_page=current_page+1;$("#netreviews_rating_section").attr("data-current-page",current_page)} 17610$.ajax({url:$("#netreviews_rating_section").attr("data-url-ajax")+"netreviews/ajax-load.php",type:"POST",data:{id_product:$("#netreviews_rating_section").attr("data-productid"),nom_group:$("#netreviews_rating_section").attr("data-group-name"),id_shop:$("#netreviews_rating_section").attr("data-idshop"),reviews_max_pages:parseInt($("#netreviews_rating_section").attr("data-max-page")),current_page:current_page,sortbynote:sortbynote,current_option_filter:current_option_filter,filter_option:filter_option},beforeSend:function(){if(filter_option!='more'){$('.loader_av').addClass("avisVerifiesAjaxImage")}
17610else{$('.netreviews_button').addClass("active")} 17611$('.netreviews_all_reviews').click(function(){$(this).delay(800).hide();$(".sortinitial").prop('selected',!0);$('.netreviews_stats_stars_big').css('opacity','1')})},success:function(html){$('.netreviews_reviews_section').replaceWith(html);window.avisVerifies.avLoadCookies()},error:function(jqXHR,textStatus,errorThrown){alert('something went wrong...')}})} 17612function manageAnimations(){$('#netreviews_informations_label').click(function(){if(!$('#netreviews_informations').hasClass('netreviews_active_info')){$('#netreviews_informations').addClass("netreviews_active_info");$('#netreviews_informations').fadeIn()}else{$('#netreviews_informations').removeClass("netreviews_active_info");$('#netreviews_informations').fadeOut()}});$('#netreviews_informations').click(function(){if($('#netreviews_informations').hasClass('netreviews_active_info')){$('#netreviews_informations').removeClass("netreviews_active_info");$('#netreviews_informations').fadeOut()}})} 17613$(document).ready(function(){manageAnimations();avhelpfulExec=!1;avInitialFingerPrint='';avHelpfulCookie={};avMessagesCookie={};avHelpfulErrorMessage=$("#avHelpfulErrorMessage").val();avHelpfulSuccessMessage=$("#avHelpfulSuccessMessage").val();avHelpfulIdwebsite=$("#av_idwebsite").val();avHelpfulURL=$("#avHelpfulURL").val();voteButtons=document.getElementsByClassName("netreviewsVote");window.avisVerifies.avLoadCookies();if($("#netreviews_reviews_tab").width()<481){$("#netreviews_reviews_tab").addClass("nrResponsive")} 17614$('.netreviews_stats_stars_big').click(function(){$('.netreviews_all_reviews').css('display','flex');$('.netreviews_stats_stars_big').css('opacity','0.2');$(this).css('opacity','1')});if($('.netreviews_tab').length){var av_tag=$("a[href='#"+$('.netreviews_tab').attr('id')+"']").text();if(av_tag==""){$("a[href='#"+$('.netreviews_tab').attr('id')+"']").hide()}} 17615if($('#checkboxNetreviewsConsent')){if($('#checkboxNetreviewsConsent')){$('#checkboxNetreviewsConsent').insertBefore('#conditions-to-approve')} 17616if($('#HOOK_PAYMENT')){$('#checkboxNetreviewsConsent').insertBefore('#HOOK_PAYMENT')}} 17617if(storageAvailable('sessionStorage')){console.log('session Storage available');if($('#checkboxNetreviewsConsent #checkbox').length==1){sessionStorage.setItem('netreviews_consent_collect_reviews','no');sessionStorage.setItem('netreviews_id_shop',$('#netreviews-id-shop').val());sessionStorage.setItem('netreviews_url_ajax',$("#netreviews-url-for-ajax").val());sessionStorage.setItem('netreviews_group_name',$('#netreviews-group-name').val());sessionStorage.setItem('netreviews_id_customer',$('#netreviews-id-customer').val());sessionStorage.setItem('netreviews_version_prestashop',$('#netreviews-version-presta').val());$('#checkboxNetreviewsConsent #checkbox').click(function(){if($('#checkboxNetreviewsConsent #checkbox').is(":checked")){sessionStorage.setItem('netreviews_consent_collect_reviews','yes')} 17618if(!$('#checkboxNetreviewsConsent #checkbox').is(":checked")){sessionStorage.setItem('netreviews_consent_collect_reviews','no')}})} 17619var prestaVersion=sessionStorage.getItem('netreviews_version_prestashop');if(prestaVersion){if(prestaVersion>='1.7'){var button=$('#payment-confirmation button')}else if(prestaVersion>='1.6'&&prestaVersion<'1.7'){var button=$('#cart_navigation button')}else if(prestaVersion>='1.5'&&prestaVersion<'1.6'){var button=$('#cart_navigation input')} 17620if(button){button.click(function(){var collect_consent=sessionStorage.getItem('netreviews_consent_collect_reviews');var idShop=sessionStorage.getItem('netreviews_id_shop');var url=sessionStorage.getItem('netreviews_url_ajax');var groupName=sessionStorage.getItem('netreviews_group_name');var idCustomer=sessionStorage.getItem('netreviews_id_customer');$.ajax({url:url,type:"POST",data:{collect_consent:collect_consent,ajax:!0,idShop:idShop,groupName:groupName,idCustomer:idCustomer},success:function(response){console.log(response);sessionStorage.removeItem('netreviews_consent_collect_reviews');sessionStorage.removeItem('netreviews_id_shop');sessionStorage.removeItem('netreviews_url_ajax');sessionStorage.removeItem('netreviews_group_name');sessionStorage.removeItem('netreviews_id_customer');sessionStorage.removeItem('netreviews_version_prestashop')},error:function(jqXHR,textStatus,errorThrown){alert(errorThrown)}})})}}}else{console.log('session Storage not available for us')} 17621if($('.NETREVIEWS_PRODUCT_STARS')){$('.NETREVIEWS_PRODUCT_STARS').css('text-align','left')} 17622$("div.product-container div.skeepers_product__stars").on("click",function(){av_widget_click()})});function storageAvailable(type){var storage;try{storage=window[type];var x='__storage_test__';storage.setItem(x,x);storage.removeItem(x);return!0}catch(e){return e instanceof DOMException&&(e.code===22||e.code===1014||e.name==='QuotaExceededError'||e.name==='NS_ERROR_DOM_QUOTA_REACHED')&&(storage&&storage.length!==0)}} 17623function switchCommentsVisibility(review_number,type){$('div[review_number='+review_number+']').toggle();$('a#display'+review_number+'[review_number='+review_number+']').toggleClass("active");$('a#hide'+review_number+'[review_number='+review_number+']').toggleClass("active");avMessagesCookie[review_number]={};avMessagesCookie[review_number].type=type;console.log(avMessagesCookie);var cookie_string_comment="netreviews_comment="+JSON.stringify(avMessagesCookie);document.cookie=cookie_string_comment}} 17624window.avisVerifies.avLoadCookies=function(){avLoadCookie();avLoadCookie_comment();avDisplayVotes();avDisplayExchangemessages()} 17625function avHelpfulClick(idProduct,vote,sign){if(avhelpfulExec){return!1} 17626avhelpfulExec=!0;var link=document.getElementById(idProduct+'_'+vote);var linkIsActive=avHasClass(link,'active');if(!linkIsActive){avColorButton(idProduct,vote);avShowMessage(idProduct,avHelpfulSuccessMessage,'success')}else{avUnColorButtons(idProduct);avShowMessage(idProduct,'','')}
17627new Fingerprint2().get(function(result,components){avLoadCookie();if(!linkIsActive){avCallHelpfulWebservice('create',idProduct,vote,sign,result)}else{avCallHelpfulWebservice('delete',idProduct,vote,sign,result)}})} 17628function avCallHelpfulWebservice(method,idProduct,vote,sign,fingerPrint){var existingVote=getExistingVote(idProduct);if(typeof existingVote.fingerPrint!="undefined"&&existingVote.fingerPrint!=""){fingerPrint=existingVote.fingerPrint} 17629var http=new XMLHttpRequest();var params="method="+method+"&idWebsite="+avHelpfulIdwebsite+"&idProduct="+idProduct+"&isHelpful="+vote+"&fingerPrint="+fingerPrint+"&sign="+sign;http.open("POST",avHelpfulURL,!0);http.setRequestHeader("Content-type","application/x-www-form-urlencoded");http.onreadystatechange=function(){if(http.readyState==4&&http.status==200){try{var obj=JSON.parse(http.responseText);if(typeof obj.success!=="undefined"){if(obj.success=='1'){if(obj.method=='create'){avHelpfulCookie[obj.idProduct]={};avHelpfulCookie[obj.idProduct].vote=obj.isHelpful;avHelpfulCookie[obj.idProduct].fingerPrint=obj.fingerPrint;avSaveCookie()} 17630if(obj.method=='delete'){if(typeof avHelpfulCookie[obj.idProduct]!=="undefined"){delete avHelpfulCookie[obj.idProduct];avSaveCookie()}}} 17631if(obj.success=='0'){avUnColorButtons(obj.idProduct);avShowMessage(obj.idProduct,avHelpfulErrorMessage,'error');console.log('[NetReviews] Error '+obj.errorCode+' : '+obj.errorMessage)}}}catch(e){console.error("Parsing error:",e);avUnColorButtons(idProduct);avShowMessage(idProduct,avHelpfulErrorMessage,'error');console.log('[NetReviews] Unknown error.')}} 17632avhelpfulExec=!1} 17633http.send(params)} 17634function avColorButton(idProduct,isHelpful){var link=document.getElementById(idProduct+'_'+isHelpful);var linkIsActive=avHasClass(link,'active');if(!linkIsActive){link.classList.add("active")} 17635if(isHelpful=='0'){var otherLink=document.getElementById(idProduct+'_1')}else{var otherLink=document.getElementById(idProduct+'_0')} 17636otherLink.classList.remove("active")} 17637function avUnColorButtons(idProduct){var link_yes=document.getElementById(idProduct+'_1');var link_no=document.getElementById(idProduct+'_0');link_yes.classList.remove("active");link_no.classList.remove("active")} 17638function avShowMessage(idProduct,message,type){var p=document.getElementById(idProduct+'_msg');if(typeof p!=="undefined"&&p!="null"){p.innerHTML=message;if(message!=""){p.style.display='block'} 17639if(message==""){p.style.display='none'} 17640if(type=='success'){p.style.color='#0c9c5b'} 17641if(type=='error'){p.style.color='#bf2525'}}} 17642function avHasClass(element,cls){return(' '+element.className+' ').indexOf(' '+cls+' ')>-1} 17643function avLoadCookie(){var name="netreviews_helpful=";var decodedCookie=decodeURIComponent(document.cookie);var ca=decodedCookie.split(';');avHelpfulCookie={};for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' '){c=c.substring(1)} 17644if(c.indexOf(name)==0){avHelpfulCookie=JSON.parse(c.substring(name.length,c.length))}}} 17645function avLoadCookie_comment(){var name="netreviews_comment=";var decodedCookie=decodeURIComponent(document.cookie);var ca=decodedCookie.split(';');avMessagesCookie={};for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' '){c=c.substring(1)} 17646if(c.indexOf(name)==0){avMessagesCookie=JSON.parse(c.substring(name.length,c.length))}}} 17647function avSaveCookie(){var expiration_date=new Date();expiration_date.setFullYear(expiration_date.getFullYear()+1);var cookie_value=JSON.stringify(avHelpfulCookie);var cookie_string="netreviews_helpful="+cookie_value+"; path=/; expires="+expiration_date.toUTCString();document.cookie=cookie_string} 17648function avDisplayVotes(){var voteButtons=document.getElementsByClassName("netreviewsVote");for(var i=0;i<voteButtons.length;i++){var idProduct=voteButtons[i].getAttribute("data-review-id");if(typeof idProduct!=="undefined"&&idProduct!=""){var existingVote=getExistingVote(idProduct);if(typeof existingVote.vote!="undefined"){avColorButton(idProduct,existingVote.vote)}}}} 17649function avDisplayExchangemessages(){var commentstatus=document.getElementsByClassName("netreviews_button_comment");for(var i=0;i<commentstatus.length;i++){var reviewnumber=commentstatus[i].getAttribute("review_number");if(typeof reviewnumber!=="undefined"&&reviewnumber&&avMessagesCookie[reviewnumber]!=="undefined"&&avMessagesCookie[reviewnumber]){if(avMessagesCookie[reviewnumber].type==1){$('a#display'+reviewnumber).removeClass("active");$('a#hide'+reviewnumber).addClass("active");$('div[review_number='+reviewnumber+']').show()}}}} 17650function getExistingVote(idProduct){if(typeof avHelpfulCookie[idProduct]!=="undefined") 17651return avHelpfulCookie[idProduct];else return{}} 17652function loadScript(url,callback){var script=document.createElement("script") 17653script.type="text/javascript";if(script.readyState){script.onreadystatechange=function(){if(script.readyState=="loaded"||script.readyState=="complete"){script.onreadystatechange=null;callback()}}}else{script.onload=function(){callback()}} 17654script.src=url;document.getElementsByTagName("head")[0].appendChild(script)}(function($avjq){"use strict";(function _init(){addListeners();document.addEventListener('keydown',nrKeyboardEvent)})();function addListeners(){document.addEventListener('click',function(event){if(event.target.className==='netreviews_image_thumb'){var targetElement=event.target||event.srcElement;openModal(targetElement)}})} 17655function Carousel(parent,currentItem,count){var vm=this;vm.element=parent;vm.current=currentItem;vm.count=count;
17655vm.arrPrev=document.createTextNode('â¹');vm.arrNext=document.createTextNode('âº');vm.cPrevClass='carousel-prev';vm.cNextClass='carousel-next';vm.arrowClass='carousel-arrow';vm.crslClass='netreviews_media_part';vm.showPrev=showPrev;vm.showNext=showNext;vm.showArrows=showArrows;function showPrev(){if(vm.current===0){vm.current=vm.count-1}else{vm.current=vm.current-1} 17656updateModal(vm.element.querySelectorAll('.'+vm.crslClass+' > li > a')[vm.current])} 17657function showNext(){if(vm.current===vm.count-1){vm.current=0}else{vm.current=vm.current+1} 17658updateModal(vm.element.querySelectorAll('.'+vm.crslClass+' > li > a')[vm.current])} 17659function showArrows(){var modal=document.getElementById('netreviews_media_modal');var buttonPrev=document.createElement('a');buttonPrev.appendChild(vm.arrPrev);buttonPrev.classList.add(vm.cPrevClass);buttonPrev.classList.add(vm.arrowClass);buttonPrev.id='netreviews_media_prev';var buttonNext=document.createElement('a');buttonNext.appendChild(vm.arrNext);buttonNext.classList.add(vm.cNextClass);buttonNext.classList.add(vm.arrowClass);buttonNext.id='netreviews_media_next';buttonPrev.addEventListener('click',vm.showPrev);buttonNext.addEventListener('click',vm.showNext);var browserheight=$avjq(window).height();buttonPrev.style.top=((browserheight-75)/2)+'px';buttonNext.style.top=((browserheight-75)/2)+'px';modal.appendChild(buttonPrev);modal.appendChild(buttonNext)}} 17660function indexInParent(node){var children=node.parentNode.childNodes;var num=0;for(var i=0;i<children.length;i++){if(children[i]===node){return num} 17661if(children[i].nodeType===1){num++}}} 17662function nrKeyboardEvent(e){e=e||window.event;var buttonPrev=document.getElementById('netreviews_media_prev');var buttonNext=document.getElementById('netreviews_media_next');var buttonClose=document.getElementById('netreviews_media_close');switch(e.keyCode){case 37:if(typeof buttonPrev!=='undefined'&&buttonPrev!==null){buttonPrev.click()} 17663break;case 39:if(typeof buttonNext!=='undefined'&&buttonNext!==null){buttonNext.click()} 17664break;case 27:if(typeof buttonClose!=='undefined'&&buttonClose!==null){buttonClose.click()} 17665break}} 17666function openModal(event){var identifier=event;var closeButton=document.getElementById("netreviews_media_close");var dataType=identifier.getAttribute('data-type');var dataSrc=identifier.getAttribute('data-src');var modal=document.getElementById('netreviews_media_modal');var parent=identifier.parentNode.parentNode;var count=identifier.parentNode.parentNode.querySelectorAll('li').length;var current=indexInParent(identifier.parentNode);var loader=document.createElement('div');loader.id='loader';loader.className='loader-image';modal.appendChild(loader);if(count>1){var carousel=new Carousel(parent,current,count);carousel.showArrows()} 17667closeButton.addEventListener("click",closeModal);fillModal(modal,dataType,dataSrc)} 17668function fillModal(modal,dataType,dataSrc){var modalContent=document.getElementById('netreviews_media_content');if(dataType==='image'){var newImg=new Image();newImg.onload=function(){modalContent.innerHTML="<img id='netreviews_media_image' src='"+dataSrc+"'/>";resizeMedia('netreviews_media_image',newImg.height,newImg.width);modal.style.display='block'};newImg.src=dataSrc}else if(dataType==='video'){modalContent.innerHTML="<iframe id='netreviews_media_video' src='"+dataSrc+"'/>";resizeMedia('netreviews_media_video','500','800');modal.style.display='block'}} 17669function updateModal(item){var dataSrc=item.getAttribute('data-src');var dataType=item.getAttribute('data-type');var modal=document.getElementById('netreviews_media_modal');fillModal(modal,dataType,dataSrc)} 17670function closeModal(){var iframeNetreviews=document.getElementById('netreviews_media_iframe');var modal=document.getElementById('netreviews_media_modal');var modalContent=document.getElementById('netreviews_media_content');modalContent.innerHTML='';removeArrows();removeLoader();modal.style.display='none';if(iframeNetreviews){iframeNetreviews.setAttribute('src','')}} 17671function removeArrows(){var arrows=document.getElementsByClassName('carousel-arrow');var modal=document.getElementById('netreviews_media_modal');var arrayFromArrows=[];for(var j=0;j<arrows.length;j++){arrayFromArrows.push(arrows[j])} 17672arrayFromArrows.forEach(function(element){modal.removeChild(element)})} 17673function removeLoader(){var modal=document.getElementById('netreviews_media_modal');var loader=document.getElementById('loader');modal.removeChild(loader)} 17674function resizeMedia(blocId,initialImgHeight,initialImgWidth){var desiredWidth;var desiredHeight;var displayRatio=0.8;var ratio=initialImgHeight/initialImgWidth;var browserwidth=$avjq(window).width();var browserheight=$avjq(window).height();if(initialImgWidth>initialImgHeight){desiredWidth=browserwidth*displayRatio;desiredHeight=(browserwidth*ratio)*displayRatio;if(desiredHeight>browserheight){desiredHeight=browserheight*displayRatio;desiredWidth=(browserheight/ratio)*displayRatio}}else{desiredHeight=browserheight*displayRatio;desiredWidth=(browserheight/ratio)*displayRatio;if(desiredWidth>browserwidth){desiredWidth=browserwidth*displayRatio;desiredHeight=(browserwidth*ratio)*displayRatio}} 17675if(initialImgWidth<desiredWidth&&initialImgHeight<desiredHeight){desiredWidth=initialImgWidth;
17675desiredHeight=initialImgHeight} 17676document.getElementById(blocId).style.width=desiredWidth+'px';document.getElementById(blocId).style.height=desiredHeight+'px';document.getElementById(blocId).style.left=((browserwidth-desiredWidth)/2)+'px';document.getElementById(blocId).style.top=((browserheight-desiredHeight)/2)+'px'}})(jQuery);window.FontAwesomeKitConfig={"asyncLoading":{"enabled":!0},"autoA11y":{"enabled":!0},"baseUrl":"https://ka-f.fontawesome.com","baseUrlKit":"https://kit.fontawesome.com","detectConflictsUntil":null,"iconUploads":{},"id":83317600,"license":"free","method":"css","minify":{"enabled":!0},"token":"fd565dd76c","v4FontFaceShim":{"enabled":!0},"v4shim":{"enabled":!0},"version":"5.15.4"};!function(t){"function"==typeof define&&define.amd?define("kit-loader",t):t()}((function(){"use strict";function t(e){return(t="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})(e)}function e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function n(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function r(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?n(Object(o),!0).forEach((function(n){e(t,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var c,a=t[Symbol.iterator]();!(r=(c=a.next()).done)&&(n.push(c.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function c(t,e){var n=e&&e.addOn||"",r=e&&e.baseFilename||t.license+n,o=e&&e.minify?".min":"",i=e&&e.fileSuffix||t.method,c=e&&e.subdir||t.method;return t.baseUrl+"/releases/"+("latest"===t.version?"latest":"v".concat(t.version))+"/"+c+"/"+r+o+"."+i}function a(t){return t.baseUrlKit+"/"+t.token+"/"+t.id+"/kit-upload.css"}function u(t,e){var n=e||["fa"],r="."+Array.prototype.join.call(n,",."),o=t.querySelectorAll(r);Array.prototype.forEach.call(o,(function(e){var n=e.getAttribute("title");e.setAttribute("aria-hidden","true");var r=!e.nextElementSibling||!e.nextElementSibling.classList.contains("sr-only");if(n&&r){var o=t.createElement("span");o.innerHTML=n,o.classList.add("sr-only"),e.parentNode.insertBefore(o,e.nextSibling)}}))}var f,s=function(){},d="undefined"!=typeof global&&void 0!==global.process&&"function"==typeof global.process.emit,l="undefined"==typeof setImmediate?setTimeout:setImmediate,h=[];function m(){for(var t=0;t<h.length;t++)h[t][0](h[t][1]);h=[],f=!1}function p(t,e){h.push([t,e]),f||(f=!0,l(m,0))}function y(t){var e=t.owner,n=e._state,r=e._data,o=t[n],i=t.then;if("function"==typeof o){n="fulfilled";try{r=o(r)}catch(t){w(i,t)}}b(i,r)||("fulfilled"===n&&v(i,r),"rejected"===n&&w(i,r))}function b(e,n){var r;try{if(e===n)throw new TypeError("A promises callback cannot return that same promise.");if(n&&("function"==typeof n||"object"===t(n))){var o=n.then;if("function"==typeof o)return o.call(n,(function(t){r||(r=!0,n===t?g(e,t):v(e,t))}),(function(t){r||(r=!0,w(e,t))})),!0}}catch(t){return r||w(e,t),!0}return!1}function v(t,e){t!==e&&b(t,e)||g(t,e)}function g(t,e){"pending"===t._state&&(t._state="settled",t._data=e,p(S,t))}function w(t,e){"pending"===t._state&&(t._state="settled",t._data=e,p(O,t))}
17676function A(t){t._then=t._then.forEach(y)}function S(t){t._state="fulfilled",A(t)}function O(t){t._state="rejected",A(t),!t._handled&&d&&global.process.emit("unhandledRejection",t._data,t)}function j(t){global.process.emit("rejectionHandled",t)}function E(t){if("function"!=typeof t)throw new TypeError("Promise resolver "+t+" is not a function");if(this instanceof E==!1)throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this._then=[],function(t,e){function n(t){w(e,t)}try{t((function(t){v(e,t)}),n)}catch(t){n(t)}}(t,this)}E.prototype={constructor:E,_state:"pending",_then:null,_data:void 0,_handled:!1,then:function(t,e){var n={owner:this,then:new this.constructor(s),fulfilled:t,rejected:e};return!e&&!t||this._handled||(this._handled=!0,"rejected"===this._state&&d&&p(j,this)),"fulfilled"===this._state||"rejected"===this._state?p(y,n):this._then.push(n),n.then},catch:function(t){return this.then(null,t)}},E.all=function(t){if(!Array.isArray(t))throw new TypeError("You must pass an array to Promise.all().");return new E((function(e,n){var r=[],o=0;function i(t){return o++,function(n){r[t]=n,--o||e(r)}}for(var c,a=0;a<t.length;a++)(c=t[a])&&"function"==typeof c.then?c.then(i(a),n):r[a]=c;o||e(r)}))},E.race=function(t){if(!Array.isArray(t))throw new TypeError("You must pass an array to Promise.race().");return new E((function(e,n){for(var r,o=0;o<t.length;o++)(r=t[o])&&"function"==typeof r.then?r.then(e,n):e(r)}))},E.resolve=function(e){return e&&"object"===t(e)&&e.constructor===E?e:new E((function(t){t(e)}))}
17676,E.reject=function(t){return new E((function(e,n){n(t)}))};var _="function"==typeof Promise?Promise:E;function P(t,e){var n=e.fetch,r=e.XMLHttpRequest,o=e.token,i=t;return"URLSearchParams"in window?(i=new URL(t)).searchParams.set("token",o):i=i+"?token="+encodeURIComponent(o),i=i.toString(),new _((function(t,e){if("function"==typeof n)n(i,{mode:"cors",cache:"default"}).then((function(t){if(t.ok)return t.text();throw new Error("")})).then((function(e){t(e)})).catch(e);else if("function"==typeof r){var o=new r;o.addEventListener("loadend",(function(){this.responseText?t(this.responseText):e(new Error(""))}));["abort","error","timeout"].map((function(t){o.addEventListener(t,(function(){e(new Error(""))}))})),o.open("GET",i),o.send()}else{e(new Error(""))}}))}function C(t,e,n){var r=t;return[[/(url\("?)\.\.\/\.\.\/\.\./g,function(t,n){return"".concat(n).concat(e)}],[/(url\("?)\.\.\/webfonts/g,function(t,r){return"".concat(r).concat(e,"/releases/v").concat(n,"/webfonts")}],[/(url\("?)https:\/\/kit-free([^.])*\.fontawesome\.com/g,function(t,n){return"".concat(n).concat(e)}
17676]].forEach((function(t){var e=o(t,2),n=e[0],i=e[1];r=r.replace(n,i)})),r}function F(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},o=e.document||o,i=u.bind(u,o,["fa","fab","fas","far","fal","fad","fak"]),f=Object.keys(t.iconUploads||{}).length>0;t.autoA11y.enabled&&n(i);var s=[{id:"fa-main",addOn:void 0}];t.v4shim.enabled&&s.push({id:"fa-v4-shims",addOn:"-v4-shims"}),t.v4FontFaceShim.enabled&&s.push({id:"fa-v4-font-face",addOn:"-v4-font-face"}),f&&s.push({id:"fa-kit-upload",customCss:!0});var d=s.map((function(n){return new _((function(o,i){P(n.customCss?a(t):c(t,{addOn:n.addOn,minify:t.minify.enabled}),e).then((function(i){o(U(i,r(r({},e),{},{baseUrl:t.baseUrl,version:t.version,id:n.id,contentFilter:function(t,e){return C(t,e.baseUrl,e.version)}})))})).catch(i)}))}));return _.all(d)}function U(t,e){var n=e.contentFilter||function(t,e){return t},r=document.createElement("style"),o=document.createTextNode(n(t,e));return r.appendChild(o),r.media="all",e.id&&r.setAttribute("id",e.id),e&&e.detectingConflicts&&e.detectionIgnoreAttr&&r.setAttributeNode(document.createAttribute(e.detectionIgnoreAttr)),r}function k(t,e){e.autoA11y=t.autoA11y.enabled,"pro"===t.license&&(e.autoFetchSvg=!0,e.fetchSvgFrom=t.baseUrl+"/releases/"+("latest"===t.version?"latest":"v".concat(t.version))+"/svgs",e.fetchUploadedSvgFrom=t.uploadsUrl);var n=[];return t.v4shim.enabled&&n.push(new _((function(n,o){P(c(t,{addOn:"-v4-shims",minify:t.minify.enabled}),e).then((function(t){n(I(t,r(r({},e),{},{id:"fa-v4-shims"})))})).catch(o)}))),n.push(new _((function(n,o){P(c(t,{minify:t.minify.enabled}),e).then((function(t){var o=I(t,r(r({},e),{},{id:"fa-main"}));n(function(t,e){var n=e&&void 0!==e.autoFetchSvg?e.autoFetchSvg:void 0,r=e&&void 0!==e.autoA11y?e.autoA11y:void 0;void 0!==r&&t.setAttribute("data-auto-a11y",r?"true":"false");n&&(t.setAttributeNode(document.createAttribute("data-auto-fetch-svg")),t.setAttribute("data-fetch-svg-from",e.fetchSvgFrom),t.setAttribute("data-fetch-uploaded-svg-from",e.fetchUploadedSvgFrom));return t}(o,e))})).catch(o)}))),_.all(n)}function I(t,e){var n=document.createElement("SCRIPT"),r=document.createTextNode(t);return n.appendChild(r),n.referrerPolicy="strict-origin",e.id&&n.setAttribute("id",e.id),e&&e.detectingConflicts&&e.detectionIgnoreAttr&&n.setAttributeNode(document.createAttribute(e.detectionIgnoreAttr)),n}function L(t){var e,n=[],r=document,o=r.documentElement.doScroll,i=(o?/^loaded|^c/:/^loaded|^i|^c/).test(r.readyState);i||r.addEventListener("DOMContentLoaded",e=function(){for(r.removeEventListener("DOMContentLoaded",e),i=1;e=n.shift();)e()}),i?setTimeout(t,0):n.push(t)}function T(t){"undefined"!=typeof MutationObserver&&new MutationObserver(t).observe(document,{childList:!0,subtree:!0})}try{if(window.FontAwesomeKitConfig){var x=window.FontAwesomeKitConfig,M={detectingConflicts:x.detectConflictsUntil&&new Date<=new Date(x.detectConflictsUntil),detectionIgnoreAttr:"data-fa-detection-ignore",fetch:window.fetch,token:x.token,XMLHttpRequest:window.XMLHttpRequest,document:document},D=document.currentScript,N=D?D.parentElement:document.head;(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"js"===t.method?k(t,e):"css"===t.method?F(t,e,(function(t){L(t),T(t)})):void 0})(x,M).then((function(t){t.map((function(t){try{N.insertBefore(t,D?D.nextSibling:null)}catch(e){N.appendChild(t)}})),M.detectingConflicts&&D&&L((function(){D.setAttributeNode(document.createAttribute(M.detectionIgnoreAttr));var t=function(t,e){var n=document.createElement("script");return e&&e.detectionIgnoreAttr&&n.setAttributeNode(document.createAttribute(e.detectionIgnoreAttr)),n.src=c(t,{baseFilename:"conflict-detection",fileSuffix:"js",subdir:"js",minify:t.minify.enabled}),n}(x,M);document.body.appendChild(t)}))})).catch((function(t){console.error("".concat("Font Awesome Kit:"," ").concat(t))}))}}catch(t){console.error("".concat("Font Awesome Kit:"," ").concat(t))}}));/* 17677* 2007-2015 PrestaShop 17678* 17679* NOTICE OF LICENSE 17680* 17681* This source file is subject to the Academic Free License (AFL 3.0)
17682* that is bundled with this package in the file LICENSE.txt. 17683* It is also available through the world-wide-web at this URL: 17684* http://opensource.org/licenses/afl-3.0.php 17685* If you did not receive a copy of the license and are unable to 17686* obtain it through the world-wide-web, please send an email 17687* to [email protected] so we can send you a copy immediately. 17688* 17689* DISCLAIMER 17690* 17691* Do not edit or add to this file if you wish to upgrade PrestaShop to newer 17692* versions in the future. If you wish to customize PrestaShop for your 17693* needs please refer to http://www.prestashop.com for more information. 17694* 17695* @author PrestaShop SA <[email protected]> 17696* @copyright 2007-2019 PrestaShop SA 17697* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) 17698* International Registered Trademark & Property of PrestaShop SA 17699*/ 17700var wishlistProductsIds=[];var ajaxWhish={overrideButtonsInThePage:function(){$(".allert_note").hide();$(document).on('mouseenter','.wish_link, .wrap_allert',function(){$(this).find(".allert_note").show()});$(document).on('mouseleave','.wish_link, .wrap_allert',function(){$(this).find(".allert_note").hide()});$(document).off('click','.open_wishlist_popup').on('click','.open_wishlist_popup',function(e){e.preventDefault();var idProduct=parseInt($(this).data('id-product'));var idProductAttribute=parseInt($(this).data('id-product-attribute'));$("#wish_p").val(idProduct);$("#wish_pat").val(idProductAttribute);$.fancybox.open([{autoScale:!0,minHeight:30,href:'#wishlist_popup_form'}])});$(document).off('click','.popup_button_wishlist').on('click','.popup_button_wishlist',function(e){e.preventDefault();var idProduct=parseInt($("#wish_p").val());var idProductAttribute=parseInt($("#wish_pat").val());var id_wishlist=parseInt($("#wishlist_select_popup").val());WishlistCart('ws_wishlist_block_list','add',idProduct,idProductAttribute,1,id_wishlist)})},wishlistBuyProduct:function(id_product,id_product_attribute,id_quantity,button,static_token){if(ps_ws_version=='advansedwishlistis16'){ajaxCart.add(id_product,id_product_attribute,!1,button,id_quantity)}else{$.post("index.php?controller=cart&update=1&id_product="+id_product+"&id_product_attribute="+id_product_attribute+"&qty="+id_quantity+"&token="+static_token+"&op=up",function(){prestashop.emit('updateCart',{reason:'update'})});$(".ws_added_alert").removeClass("hidden")} 17701var id_wishlist=parseInt($("#table_wishlist").data("id-wishlist"))},displayNewProducts:function(idProduct,idCombination,data){var product=jQuery.parseJSON(data);if($('#ws_wishlist_block_list dl.products').length==0){$('.wishlist_block_no_products').before('<dl class="products"></dl>');$('.wishlist_block_no_products').hide()} 17702var content='<dt id="ws_blockwishlist_product_'+idProduct+'" class="wl_block_product">';content+='<div class="wl_block_product_info">';content+='<a class="cart_block_product_name" href="'+product.ws_link+'">'+product.name+'</a>';content+='</div>';content+='<a class="ajax_cart_block_remove_link" href="javascript:;" onclick="javascript:WishlistCart(\'ws_wishlist_block_list\', \'delete\', '+idProduct+', '+idCombination+', 0);" title="" rel="nofollow">';if(product.ws_version=='advansedwishlistis17'){content+='<i class="material-icons">delete_forever</i>'}else{content+='<i class="icon icon-remove"></i>'} 17703content+='</a></dt>';$('#ws_wishlist_block_list dl.products').append(content)},displayNewProductsFull:function(idProduct,idCombination,data){var product=jQuery.parseJSON(data);if($('#ws_wishlist_block_list dl.products').length==0){$('.wishlist_block_no_products').before('<dl class="products"></dl>');$('.wishlist_block_no_products').hide()} 17704var content='<dt id="ws_blockwishlist_product_'+idProduct+'" class="wl_block_product">';content+='<div class="wl_block_product_info">';content+='<a href="'+product.ws_link+'" title="'+product.name+'">';content+='<img src="'+product.ws_img_link+'" alt="'+product.name+'" />';content+='</a>';content+='<div class="wl_product_info">';content+='<a class="cart_block_product_name" href="'+product.ws_link+'">'+product.name+'</a>';content+='<span class="ws_price">'+product.ws_price+'</span>';
17704content+='</div>';content+='<input type="text" class="wl_cart_product_qty" data-id-product-attribute="'+idCombination+'" data-id-product="'+idProduct+'" id="quantity_'+idProduct+'_'+idCombination+'" value="1" />';content+='<a class="btn btn-primary exclusive wishlist_add_to_cart" href="'+product.ws_cart_link+'" rel="nofollow" title="Add to cart">';content+='<span>Add to cart</span>';content+='</a>';content+='</div>';content+='<a class="ajax_cart_block_remove_link" href="javascript:;" onclick="javascript:WishlistCart(\'ws_wishlist_block_list\', \'delete\', '+idProduct+', '+idCombination+', 0);" title="" rel="nofollow">';if(product.ws_version=='advansedwishlistis17'){content+='<i class="material-icons">delete_forever</i>'}else{content+='<i class="icon icon-remove"></i>'} 17705content+='</a></dt>';$('#ws_wishlist_block_list dl.products').append(content)},hideOldProducts:function(idProduct,idCombination){$('#ws_blockwishlist_product_'+idProduct).remove()},count_wish:function(){var wishlist_count=$(".wishlist_count").html();wishlist_count=parseInt(wishlist_count)+1;$(".wishlist_count").html(wishlist_count);$("#login_wish").find(".allert_note").slideDown().delay('1300').slideUp()}} 17706$(document).ready(function(){ajaxWhish.overrideButtonsInThePage();wishlistRefreshStatus();$(document).on('change','select[name=wishlists]',function(){WishlistChangeDefault('ws_wishlist_block_list',$(this).val())});$(document).on('change','.wishlist_group_actions',function(){var id_wishlist=$("#table_wishlist").data("id-wishlist");var g_action=$(this).val();$('.wishlist_group_chb:checked').each(function(){var idProduct=parseInt($(this).data("id-product"));var idProductAttribute=parseInt($(this).data("id-pa"));var available=$(this).data("available");var tt_qty=parseInt($('#quantity_'+idProduct+'_'+idProductAttribute).val());var tt_prior=$('#priority_'+idProduct+'_'+idProductAttribute).val();if(g_action=='1'){WishlistProductManage('wlp_bought','delete',id_wishlist,idProduct,idProductAttribute,tt_qty,tt_prior)} 17707if(g_action=='2'&&available=='a'){var this_btn=$("#wishlist_add_to_cart_"+idProduct);ajaxWhish.wishlistBuyProduct(idProduct,idProductAttribute,tt_qty,this_btn,static_token)}});$(this).val('0')});if(single_mode&&($("#mywishlist").length>0)){WishlistManage('block-order-detail',idDefaultWishlist)} 17708$(document).on('click','.add_to_ws_wishlist',function(e){var id_product=parseInt($(this).attr('data-id-product'));var id_product_attribute=parseInt($(this).attr('data-id-product-attribute'));WishlistCart('advansedwishlist_cart_block','add',id_product,id_product_attribute,1,idDefaultWishlist);if(ps_ws_version=='advansedwishlistis17'){WlRemoveProductFromCart(id_product,id_product_attribute)}else{var ids=$(this).attr('data-ids');deleteProductFromSummary(ids)}});$(document).off('click','.wishlist_add_to_cart').on('click','.wishlist_add_to_cart',function(e){e.preventDefault();var idProduct=parseInt($(this).data('id-product'));var idProductAttribute=parseInt($(this).data('id-product-attribute'));var idCombination=0;var quantity=parseInt($("#quantity_"+idProduct+"_"+idProductAttribute).val());ajaxWhish.wishlistBuyProduct(idProduct,idProductAttribute,quantity,this,static_token)});$(document).off('change','.wl_cart_product_qty').on('change','.wl_cart_product_qty',function(e){e.preventDefault();var idProduct=parseInt($(this).data('id-product'));var idProductAttribute=parseInt($(this).data('id-product-attribute'));var idCombination=0;var quantity=parseInt($(this).val());var id_wishlist=parseInt($("#advansedwishlist_cart_block").data('id-wishlist'));$.ajax({type:'GET',async:!0,url:advansedwishlist_ajax_controller_url+'?rand='+new Date().getTime(),headers:{"cache-control":"no-cache"},data:'action=updateQtyFromCart&id_wishlist='+id_wishlist+'&id_product='+idProduct+'&id_product_attribute='+idProductAttribute+'&quantity='+quantity,cache:!1,success:function(data){nb_products=0;$("[class^='wl_cart_product_qty']").each(function(index,element){nb_products+=parseInt(element.value)});$(".wishlist_count").html(nb_products)}})});$('.wishlist').each(function(){current=$(this);$(this).children('.wishlist_button_list').popover({html:!0,content:function(){return current.children('.popover-content').html()}})})});function WlRemoveProductFromCart(id_product,id_product_attribute){$.post("index.php?controller=cart&delete=1&id_product="+id_product+"&id_product_attribute="+id_product_attribute+"&token="+static_token+"",function(){prestashop.emit('updateCart',{reason:'update'})})} 17709function WishlistCart(id,action,id_product,id_product_attribute,qty,id_wishlist){var t_quantity=1 17710if($('#quantity_wanted').length>0){t_quantity=$('#quantity_wanted').val()} 17711if(!id_product_attribute){id_product_attribute=0} 17712$.ajax({type:'GET',url:advansedwishlist_ajax_controller_url,headers:{"cache-control":"no-cache"},async:!0,cache:!1,data:'action='+action+'&id_product='+id_product+'&quantity='+t_quantity+'&token='+static_token+'&id_product_attribute='+id_product_attribute+'&id_wishlist='+id_wishlist,success:function(data){if(action=='add'){if(isLogged==!0){wishlistProductsIdsAdd(id_product);wishlistRefreshStatus();if(!!$.prototype.fancybox) 17713$.fancybox.open([{type:'inline',autoScale:!0,minHeight:30,content:'<p class="fancybox-error">'+added_to_wishlist+'</p>'}],{padding:0});else alert(added_to_wishlist);$("#wishlist_button_block").html('<a href="#" id="wishlist_button" class="checked addToWishlist wishlistProd_'+id_product+'" rel="'+id_product+'" onclick="WishlistCart(\'ws_wishlist_block_list\', \'delete\', \''+id_product+'\', \''+id_product_attribute+'\', 1, \''+id_wishlist+'\'); return false;">'+wishlist_btn_icon+added_to_wishlist_btn+'</a>');if(id=='ws_wishlist_block_list'){$(".wishlistProd_"+id_product).parent().html('<a href="#" class="checked addToWishlist wishlistProd_'+id_product+'" rel="'+id_product+'" onclick="WishlistCart(\'ws_wishlist_block_list\', \'delete\', \''+id_product+'\', \''+id_product_attribute+'\', 1, \''+id_wishlist+'\'); return false;"">'+wishlist_btn_icon+added_to_wishlist_btn+'</a>')} 17714if(id_wishlist==idDefaultWishlist){ajaxWhish.count_wish()}}else{if(!!$.prototype.fancybox) 17715$.fancybox.open([{type:'inline',autoScale:!0,minHeight:30,content:'<p class="fancybox-error">'+loggin_required+'</p>'}],{padding:0});else alert(loggin_required)}} 17716if(action=='delete'){wishlistProductsIdsRemove(id_product);wishlistRefreshStatus();$("#wishlist_button_block").html('<a href="#" id="wishlist_button" class="addToWishlist wishlistProd_'+id_product+'" rel="'+id_product+'" onclick="WishlistCart(\'ws_wishlist_block_list\', \'add\', \''+id_product+'\', \''+id_product_attribute+'\', 1, \''+id_wishlist+'\'); return false;">'+wishlist_btn_icon+add_to_wishlist_btn+'</a>');if(id=='ws_wishlist_block_list'){$(".wishlistProd_"+id_product).parent().html('<a href="#" class="addToWishlist wishlistProd_'+id_product+'" rel="'+id_product+'" onclick="WishlistCart(\'ws_wishlist_block_list\', \'add\', \''+id_product+'\', \''+id_product_attribute+'\', 1, \''+id_wishlist+'\'); return false;"">'+wishlist_btn_icon+add_to_wishlist_btn+'</a>')} 17717if(id_wishlist==idDefaultWishlist){var old_count=parseInt($(".wishlist_count").html())-1;$(".wishlist_count").html(old_count)}} 17718if(($('#'+id).length!=0)&&(id_wishlist==idDefaultWishlist)){$('#'+id).slideUp('normal');if(action=='add'){if(id=='advansedwishlist_cart_block'){ajaxWhish.displayNewProductsFull(id_product,id_product_attribute,data)}else{ajaxWhish.displayNewProducts(id_product,id_product_attribute,data)}} 17719if(action=='delete'){ajaxWhish.hideOldProducts(id_product,id_product_attribute)} 17720$('#'+id).slideDown('normal')}}})} 17721function WishlistChangeDefault(id,id_wishlist){$.ajax({type:'GET',url:baseDir+'modules/advansedwishlist/cart.php?rand='+new Date().getTime(),headers:{"cache-control":"no-cache"},async:!0,data:'id_wishlist='+id_wishlist+'&token='+static_token,cache:!1,success:function(data){$('#'+id).slideUp('normal');document.getElementById(id).innerHTML=data;$('#'+id).slideDown('normal')}})} 17722function WishlistAddProductCart(token,id_product,id_product_attribute,id_quantity){if($('#'+id_quantity).val()<=0) 17723return(!1);$.ajax({type:'GET',url:baseDir+'modules/advansedwishlist/buywishlistproduct.php?rand='+new Date().getTime(),headers:{"cache-control":"no-cache"},data:'token='+token+'&static_token='+static_token+'&id_product='+id_product+'&id_product_attribute='+id_product_attribute,async:!0,cache:!1,success:function(data){if(data){if(!!$.prototype.fancybox) 17724$.fancybox.open([{type:'inline',autoScale:!0,minHeight:30,content:'<p class="fancybox-error">'+data+'</p>'}],{padding:0});else alert(data)}else $('#'+id_quantity).val($('#'+id_quantity).val()-1)}});return(!0)} 17725function WishlistManage(id,id_wishlist){$.ajax({type:'GET',async:!0,url:advansedwishlist_controller_url+'?rand='+new Date().getTime(),headers:{"cache-control":"no-cache"},data:'id_wishlist='+id_wishlist+'&refresh='+!1,cache:!1,success:function(data){$('#'+id).hide();document.getElementById(id).innerHTML=data;$('#'+id).fadeIn('slow');$('.wishlist_change_button').each(function(index){$(this).change(function(){wishlistProductChange($('option:selected',this).attr('data-id-product'),$('option:selected',this).attr('data-id-product-attribute'),$('option:selected',this).attr('data-id-old-wishlist'),$('option:selected',this).attr('data-id-new-wishlist'))})})}})} 17726function WishlistProductManage(id,action,id_wishlist,id_product,id_product_attribute,quantity,priority){$.ajax({type:'GET',async:!0,url:advansedwishlist_controller_url+'?rand='+new Date().getTime(),headers:{"cache-control":"no-cache"},data:'action='+action+'&id_wishlist='+id_wishlist+'&id_product='+id_product+'&id_product_attribute='+id_product_attribute+'&quantity='+quantity+'&priority='+priority+'&refresh='+!0,cache:!1,success:function(data){if(action=='delete'){$('#wlp_'+id_product+'_'+id_product_attribute).fadeOut('fast');var wishlist_count=$(".wishlist_count").html();wishlist_count=wishlist_count-quantity;$(".wishlist_count").html(wishlist_count);$("#wishlist_"+id_wishlist).children('td').eq(1).html(wishlist_count)}
17726else if(action=='update'){$('#wlp_'+id_product+'_'+id_product_attribute).fadeOut('fast');$('#wlp_'+id_product+'_'+id_product_attribute).fadeIn('fast');nb_products=0;$("[id^='quantity']").each(function(index,element){nb_products+=parseInt(element.value)});$("#wishlist_"+id_wishlist).children('td').eq(1).html(nb_products);$(".wishlist_count").html(nb_products)}}})} 17727function WishlistDelete(id,id_wishlist,msg){var res=confirm(msg);if(res==!1) 17728return(!1);if(typeof mywishlist_url=='undefined') 17729return(!1);$.ajax({type:'GET',async:!0,dataType:"json",url:mywishlist_url,headers:{"cache-control":"no-cache"},cache:!1,data:{rand:new Date().getTime(),deleted:1,myajax:1,id_wishlist:id_wishlist,action:'deletelist'},success:function(data){var mywishlist_siblings_count=$('#'+id).siblings().length;$('#'+id).fadeOut('slow').remove();$("#block-order-detail").html('');if(mywishlist_siblings_count==0) 17730$("#block-history").remove();if(data.id_default){var td_default=$("#wishlist_"+data.id_default+" > .wishlist_default");$("#wishlist_"+data.id_default+" > .wishlist_default > a").remove();td_default.append('<p class="is_wish_list_default"><i class="icon icon-check-square"></i></p>')}}})} 17731function WishlistDefault(id,id_wishlist){if(typeof mywishlist_url=='undefined') 17732return(!1);$.ajax({type:'GET',async:!0,url:mywishlist_url,headers:{"cache-control":"no-cache"},cache:!1,data:{rand:new Date().getTime(),'default':1,id_wishlist:id_wishlist,myajax:1,action:'setdefault'},success:function(data){var old_default_id=$(".is_wish_list_default").parents("tr").attr("id");var td_check=$(".is_wish_list_default").parent();if(ps_ws_version=='advansedwishlistis17'){var iconSquare='<i class="material-icons">check_box_outline_blank</i>';var iconCheckSquare='<i class="material-icons">assignment_turned_in</i>'}else{var iconSquare='<i class="icon icon-square"></i>';var iconCheckSquare='<i class="icon icon-check-square"></i>'} 17733$(".is_wish_list_default").remove();td_check.append('<a href="#" onclick="javascript:event.preventDefault();(WishlistDefault(\''+old_default_id+'\', \''+old_default_id.replace("wishlist_","")+'\'));">'+iconSquare+'</a>');var td_default=$("#"+id+" > .wishlist_default");$("#"+id+" > .wishlist_default > a").remove();td_default.append('<p class="is_wish_list_default">'+iconCheckSquare+'</p>')}})} 17734function WishlistVisibility(bought_class,id_button){if($('#hide'+id_button).is(':hidden')){$('.'+bought_class).slideDown('fast');$('#show'+id_button).hide();$('#hide'+id_button).css('display','block')}else{$('.'+bought_class).slideUp('fast');$('#hide'+id_button).hide();$('#show'+id_button).css('display','block')}} 17735function WishlistSend(id,id_wishlist,id_email){$.post(advansedwishlist_ajax_controller_url,{token:static_token,action:'sendWL',id_wishlist:id_wishlist,email1:$('#'+id_email+'1').val(),email2:$('#'+id_email+'2').val(),email3:$('#'+id_email+'3').val(),email4:$('#'+id_email+'4').val(),email5:$('#'+id_email+'5').val(),},function(data){if(data){if(!!$.prototype.fancybox) 17736$.fancybox.open([{type:'inline',autoScale:!0,minHeight:30,content:'<p class="fancybox-error">'+data+'</p>'}],{padding:0});else alert(data)}else WishlistVisibility(id,'hideSendWishlist')})} 17737function wishlistProductsIdsAdd(id){if($.inArray(parseInt(id),wishlistProductsIds)==-1) 17738wishlistProductsIds.push(parseInt(id))} 17739function wishlistProductsIdsRemove(id){wishlistProductsIds.splice($.inArray(parseInt(id),wishlistProductsIds),1)} 17740function wishlistRefreshStatus(){$('.addToWishlist').each(function(){if($.inArray(parseInt($(this).prop('rel')),wishlistProductsIds)!=-1) 17741$(this).addClass('checked');else $(this).removeClass('checked')})} 17742function wishlistProductChange(id_product,id_product_attribute,id_old_wishlist,id_new_wishlist){if(typeof mywishlist_url=='undefined') 17743return(!1);var quantity=$('#quantity_'+id_product+'_'+id_product_attribute).val();$.ajax({type:'GET',url:mywishlist_url,headers:{"cache-control":"no-cache"},async:!0,cache:!1,dataType:"json",data:{id_product:id_product,id_product_attribute:id_product_attribute,quantity:quantity,priority:$('#priority_'+id_product+'_'+id_product_attribute).val(),id_old_wishlist:id_old_wishlist,id_new_wishlist:id_new_wishlist,myajax:1,action:'productchangewishlist'},success:function(data){console.log(data);console.log(data.msg);if(data.success==!0){$('#wlp_'+id_product+'_'+id_product_attribute).fadeOut('slow');$('#wishlist_'+id_old_wishlist+' td:nth-child(2)').text($('#wishlist_'+id_old_wishlist+' td:nth-child(2)').text()-quantity);$('#wishlist_'+id_new_wishlist+' td:nth-child(2)').text(+$('#wishlist_'+id_new_wishlist+' td:nth-child(2)').text()+ +quantity)}else{if(!!$.prototype.fancybox) 17744$.fancybox.open([{type:'inline',autoScale:!0,minHeight:30,content:'<p class="fancybox-error">
17744'+data.error+'</p>'}],{padding:0})}}})};/** 17745* 2013-2018 MADEF IT 17746* 17747* NOTICE OF LICENSE 17748* 17749* This source file is subject to the Academic Free License (AFL 3.0) 17750* that is bundled with this package in the file LICENSE.txt. 17751* It is also available through the world-wide-web at this URL: 17752* http://opensource.org/licenses/afl-3.0.php 17753* If you did not receive a copy of the license and are unable to 17754* obtain it through the world-wide-web, please send an email 17755* to [email protected] so we can send you a copy immediately. 17756* 17757* DISCLAIMER 17758* 17759* Do not edit or add to this file if you wish to upgrade PrestaShop to newer 17760* versions in the future. If you wish to customize PrestaShop for your 17761* needs please refer to http://www.prestashop.com for more information. 17762* 17763* @author MADEF IT <[email protected]> 17764* @copyright 2013-2018 SASU MADEF IT 17765* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) 17766* International Registered Trademark & Property of PrestaShop SA 17767* 17768* Don't forget to prefix your containers with your own identifier 17769* to avoid any conflicts with others containers. 17770*/ 17771$(function(){return;var mcIdProduct;if(typeof prestashop!='undefined'){var ajaxCartShowModal=prestashop.blockcart.showModal;prestashop.blockcart.showModal=function(popin){var newPopin=$('<div>'+popin+'</div>');newPopin.find('.modal-body').append(prestashop.blockcart.mcCrosssell);ajaxCartShowModal(newPopin.html())} 17772prestashop.on('updateCart',function(event){$.ajax({url:MC_AJAX_CALL,dataType:'json',data:{id:event.reason.idProduct,idCombination:event.reason.idProductAttribute,id_lang:MC_ID_LANG},success:function(data){prestashop.blockcart.mcCrosssell=data.crosssell}})}) 17773return} 17774if(typeof ajaxCart=='undefined'){ajaxCart=prestashop.blockcart} 17775var ajaxCartUpdateCartOrig=ajaxCart.updateCart;var lastCart=!1;$('.cart_quantity_down, .cart_quantity_up').click(function(){lastCart=!1});if(MC_FORCE_RELOADING_CART){ajaxCart.refresh()} 17776ajaxCart.updateCart=function(jsonData){ajaxCartUpdateCartOrig(jsonData);if(MC_USE_NATIVE_POPIN){ajaxCart.analyseJson(jsonData,function(data){jQuery('#layer_cart .crossseling').html(data.crosssell)});return} 17777ajaxCart.analyseJson(jsonData,function(data){$('.js-modal-crossselling').remove();var popin=$(data.popin);popin.find('.js-modal-crossselling__close').click(function(){$('.js-modal-crossselling').remove();$('body').removeClass('js-no-scroll')});$('body').append(popin);$('body').addClass('js-no-scroll')})} 17778var ajaxCartUpdateLayerOrig=ajaxCart.updateLayer;ajaxCart.updateLayer=function(jsonData){if(!MC_USE_NATIVE_POPIN){return!1} 17779ajaxCartUpdateLayerOrig(jsonData)} 17780ajaxCart.analyseJson=function(jsonData,callback){if(lastCart!==!1){var product=!1;var quantity=!1;if(lastCart.productTotal>0){var total=jsonData.productTotal-lastCart.productTotal}else{var total=jsonData.productTotal} 17781if(lastCart.products.length<jsonData.products.length){if(lastCart.products.length==0){$.each(jsonData.products,function(j,newProducts){product=newProducts;quantity=newProducts.quantity;return})}else{$.each(jsonData.products,function(j,newProducts){var found=!1;$.each(lastCart.products,function(i,oldProducts){if(newProducts.id==oldProducts.id&&newProducts.idAddressDelivery==oldProducts.idAddressDelivery&&newProducts.idCombination==oldProducts.idCombination&&newProducts.customizedDatas.toString()==oldProducts.customizedDatas.toString()){found=!0;return}});if(!found){product=newProducts;quantity=newProducts.quantity;return} 17782if(product!==!1){return}})}}else if(parseInt(lastCart.nbTotalProducts)<parseInt(jsonData.nbTotalProducts)&&MC_DISPLAY_WHEN_PRODUCTS_EXISTS){$.each(lastCart.products,function(i,oldProducts){$.each(jsonData.products,function(j,newProducts){if(newProducts.id==oldProducts.id&&newProducts.idAddressDelivery==oldProducts.idAddressDelivery&&newProducts.idCombination==oldProducts.idCombination&&newProducts.customizedDatas.toString()==oldProducts.customizedDatas.toString()&&newProducts.quantity>oldProducts.quantity){product=newProducts;quantity=newProducts.quantity-oldProducts.quantity;return}});if(product!==!1){return}})} 17783if(product!==!1){$.ajax({url:MC_AJAX_CALL,dataType:'json',data:{id:product.id,idCombination:product.idCombination,customizedDatas:product.customizedDatas,quantity:quantity,total:total,id_lang:MC_ID_LANG},success:function(data){callback(data)}})}} 17784lastCart=jsonData}});jQuery(function(){var isVisible=!1;var interval=setInterval(function(){if($('.js-modalcrossselling, #layer_cart .crossseling, #blockcart-modal .modal-body').is(':visible')){if(!isVisible){if($('#blockcart-modal .modal-body').length&&!$('.js-modalcrossselling').length){$('#blockcart-modal .modal-body > .row').after($('<div class="js-modalcrossselling" />'))} 17785isVisible=!0;loadModalCrossSelling()}}else{isVisible=!1}},200)});var loadModalCrossSelling=function(){$.ajax({url:MC_AJAX_CALL,dataType:'json',data:{id_lang:MC_ID_LANG},success:function(data){$('.js-modalcrossselling, #layer_cart .crossseling').html(data.crosssell)}})};/** 17786 * NOTICE OF LICENSE 17787 * 17788 * This source file is subject to a commercial license from SAS Comptoir du Code 17789 * Use, copy, modification or distribution of this source file without written 17790 * license agreement from the SAS Comptoir du Code is strictly forbidden. 17791 * In order to obtain a license, please contact us: [email protected] 17792 * 17793 * @package cdc_googletagmanager 17794 * @author Vincent - Comptoir du Code 17795 * @copyright Copyright(c) 2015-2016 SAS Comptoir du Code 17796 * @license Commercial license 17797 * 17798 * Project Name : Google Tag Manager Enhanced Ecommerce (UA) Tracking 17799 * Created By : Comptoir du Code 17800 * Created On : 2016-06-02 17801 * Support : https://addons.prestashop.com/contact-community.php?id_product=23806 17802 */ 17803var cdcGtm={addToCart:function(product_id,attribute_id,qtity,addedFromProductPage,callerElement){if(product_id){cdcGtm.pushProductToDatalayer(product_id,attribute_id,qtity,'add')}},removeFromCart:function(product_id,attribute_id,qtity){if(product_id){cdcGtm.pushProductToDatalayer(product_id,attribute_id,qtity,'remove')}},pushProductToDatalayer:function(product_id,attribute_id,qtity,action){attribute_id=attribute_id||0;qtity=qtity||1;var cdcgtmreq=new XMLHttpRequest();cdcgtmreq.onreadystatechange=function(){if(cdcgtmreq.readyState==XMLHttpRequest.DONE){if(cdcgtmreq.status==200){var datalayerJs=cdcgtmreq.responseText;try{let datalayerCartAction=JSON.parse(datalayerJs);dataLayer=dataLayer||[];dataLayer.push(datalayerCartAction)}catch(e){console.log("[CDCGTM] error while parsing json")}}}};cdcgtmreq.open("GET",ajaxGetProductUrl+"&id="+product_id+"&id_attribute="+attribute_id+"&action="+action+"&qtity="+qtity,!0);cdcgtmreq.setRequestHeader('X-Requested-With','XMLHttpRequest');cdcgtmreq.send()}} 17804if(typeof(ajaxCart)!='undefined'){var ajaxCartAddFunc=ajaxCart.add;ajaxCart.add=function(idProduct,idCombination,addedFromProductPage,callerElement,quantity,wishlist){ajaxCartAddFunc(idProduct,idCombination,addedFromProductPage,callerElement,quantity,wishlist);cdcGtm.addToCart(idProduct,idCombination,quantity,addedFromProductPage,callerElement)} 17805var ajaxCartRemoveFunc=ajaxCart.remove;ajaxCart.remove=function(idProduct,idCombination,customizationId,idAddressDelivery){ajaxCartRemoveFunc(idProduct,idCombination,customizationId,idAddressDelivery);cdcGtm.removeFromCart(idProduct,idCombination)}}else if(typeof(prestashop)!='undefined'){$(document).ready(function(){prestashop.on('updateCart',function(event){var refreshURL=$('.blockcart').data('refresh-url');var requestData={};console.log(event);if(event&&event.reason){requestData={id_product_attribute:event.reason.idProductAttribute,id_product:event.reason.idProduct,action:event.reason.linkAction};if(requestData.action=='add-to-cart'){cdcGtm.addToCart(requestData.id_product,requestData.id_product_attribute,1,null,null)}else if(requestData.action=='delete-from-cart'){cdcGtm.removeFromCart(requestData.id_product,requestData.id_product_attribute,1)}}})})} 17806var deleteProductFromSummary=(function(id){var original_deleteProductFromSummary=deleteProductFromSummary;return function(id){var productId=0;var productAttributeId=0;var ids=0;ids=id.split('_');productId=parseInt(ids[0]);if(typeof(ids[1])!=='undefined'){productAttributeId=parseInt(ids[1])} 17807var cart_qtity=parseInt($('input[name=quantity_'+id+']').val());cdcGtm.removeFromCart(productId,productAttributeId,cart_qtity);original_deleteProductFromSummary(id)}})();var downQuantity=(function(id,qty){var original_downQuantity=downQuantity;return function(id,qty){var productId=0;var productAttributeId=0;var ids=0;ids=id.split('_');productId=parseInt(ids[0]);if(typeof(ids[1])!=='undefined'){productAttributeId=parseInt(ids[1])} 17808var val=$('input[name=quantity_'+id+']').val();var newVal=val;if(typeof(qty)=='undefined'||!qty){new_qty=1;newVal=val-1}else if(qty<0) 17809new_qty=-qty;if(newVal>0){cdcGtm.removeFromCart(productId,productAttributeId,new_qty)} 17810original_downQuantity(id,qty)}})();$(document).ready(function(){if($('body#index').length){if(home_besoin_q1){let q1_id='';
17810JSON.parse(home_besoin_q1).forEach(function(q1,index){if(index==0){q1_id=q1.id} 17811$('.home-besoin-q1').append(new Option(q1.question,q1.id,!1,!1))});JSON.parse(home_besoin_q2).forEach(function(q2,index){var hide='d-none';if(q1_id==q2.id_question){hide=''} 17812$(".home-besoin-q2").append('<option class='+hide+' value='+q2.id+' data-question='+q2.id_question+' data-url='+q2.url+'>'+q2.reponse+'</option>');$(".home-besoin-link").attr('href',$(".home-besoin-q2 option:selected").attr('data-url'))});$(".home-besoin-q1").change(function(){q1_id=$(".home-besoin-q1").val();var select_first=0;$(".home-besoin-q2 option").each(function(index){if(q1_id==$(this).attr('data-question')){if(select_first==0){select_first=1;$(".home-besoin-link").attr('href',$(this).attr('data-url'));$(this).prop('selected',!0)} 17813$(this).removeClass('d-none')}else{$(this).addClass('d-none')}})});$(".home-besoin-q2").change(function(){$(".home-besoin-link").attr('href',$(".home-besoin-q2 option:selected").attr('data-url'))})} 17814$('body#index .home-promos .product-list-wrapper').slick({slidesToShow:4,slidesToScroll:4,adaptiveHeight:!1,infinite:!0,draggable:!1,dots:!0,arrows:!0,responsive:[{breakpoint:768,settings:{slidesToShow:1,slidesToScroll:1}}],})} 17815$('.prestablog-listing-home #blog_list_1-7').slick({slidesToShow:3,slidesToScroll:1,adaptiveHeight:!1,infinite:!0,draggable:!1,dots:!0,arrows:!0,responsive:[{breakpoint:768,settings:{slidesToShow:1,slidesToScroll:1,}}],});if($('body#product').length){prestashop.on('updatedProduct',function(event){if(event.id_product_attribute&&event.reference&&event.product_has_combinations){$('.wp-product-left-ctn .product-reference span').html('Réf: '+event.reference)}});$(".qty-input").click(function(){if($(this).hasClass('qty-plus')){$(this).parent().find('.input-group').toggleClass("flexbox")}else{$(".qty-input").removeClass('active');$(this).addClass('active');$('input#quantity_wanted').val($(this).attr('data-qty'))}});$(".product-variants select").chosen({width:"100%",});$(".nav-link.accessoires").click(function(){setTimeout(function(){$('body#product #collapseAccessories .product-accessories .product-list-wrapper').slick({slidesToShow:3,slidesToScroll:3,adaptiveHeight:!1,infinite:!0,draggable:!1,dots:!0,arrows:!0,responsive:[{breakpoint:768,settings:{slidesToShow:1,slidesToScroll:1}}],});$('body#product .product-accessories .product-list-wrapper').unbind()},2000)})} 17816if($('body#category .subcategories-wrapper').length){$('body#category .subcategories-wrapper').slick({slidesToShow:7,slidesToScroll:7,adaptiveHeight:!1,infinite:!0,draggable:!1,dots:!0,arrows:!0,responsive:[{breakpoint:768,settings:{slidesToShow:2,slidesToScroll:2}}],})} 17817if($('body#category .wp-destockage ').length){$('body#category .wp-destockage .product-list-wrapper').slick({slidesToShow:2,slidesToScroll:2,adaptiveHeight:!1,infinite:!0,draggable:!1,dots:!0,arrows:!0,responsive:[{breakpoint:768,settings:{slidesToShow:1,slidesToScroll:1}}],})} 17818if($('body#checkout').length){if($('.personal-form-full form .has-error').length){$(".personal-form-full").removeClass('personal-form-full-hidden');$('html, body').animate({scrollTop:$(".personal-form.personal-form-full").offset().top},1000)} 17819$(".wp-creation").click(function(e){e.preventDefault();$(".personal-form-full .email input").val($('#mail').val()) 17820$(".personal-form-full").removeClass('personal-form-full-hidden');$('html, body').animate({scrollTop:$(".personal-form.personal-form-full").offset().top},1000)});$("#checkout-addresses-step h5, #checkout-delivery-step h5, #checkout-payment-step h5").click(function(){if($('#checkout-personal-information-step.-current').length){$('#checkout-personal-information-step').removeClass('-current');$('#checkout-personal-information-step').addClass('-reachable -unreachable');$(this).parents('.wp-checkout-step').addClass('-current');$(this).parents('.wp-checkout-step').removeClass('-reachable -unreachable')}});$("#payment-confirmation button").click(function(e){if($('.payment-options input:checked').attr('data-module-name')=='cmcicpaiement'){e.stopPropagation();e.preventDefault();$('#cmcicpaiement_form').submit()}})} 17821if($('body#checkout').length){$('#checkout-personal-information-step #customer-form .birthday + .optin .custom-checkbox-wrapper label').html('Recevoir la newsletter actualités Expert-CHR');var news=$('#checkout-personal-information-step #customer-form .newsletter').detach();$('#checkout-personal-information-step #customer-form .birthday + .optin').before(news)} 17822if($('body#authentication').length){$('#authentication #customer-form .birthday + .optin .custom-checkbox-wrapper label').html('Recevoir la newsletter actualités Expert-CHR');var news=$('#authentication #customer-form .newsletter').detach();$('#authentication #customer-form .birthday + .optin').before(news)} 17823if($(window).width()<769){$('body#index .home-bestsellers .product-list-wrapper').slick({slidesToShow:4,slidesToScroll:4,adaptiveHeight:!1,infinite:!0,draggable:!1,dots:!0,arrows:!0,responsive:[{breakpoint:768,settings:{slidesToShow:1,slidesToScroll:1}}],});if($('body#category .PM_ASBlockOutput .card-header').length){$("body#category .PM_ASBlockOutput .card-header").click(function(){$('html,body').toggleClass('noscroll');$('html,body').animate({scrollTop:0},'fast')})} 17824if($('body#category .home-bestsellers ').length){$('body#category .home-bestsellers .product-list-wrapper').slick({slidesToShow:1,slidesToScroll:1,adaptiveHeight:!1,infinite:!0,draggable:!1,dots:!0,arrows:!0,})} 17825if($('body#category .wp-product-promotions ').length){$('body#category .wp-product-promotions .product-list-wrapper').slick({slidesToShow:1,slidesToScroll:1,adaptiveHeight:!1,infinite:!0,draggable:!1,dots:!0,arrows:!0,})} 17826$(".mobile-header-version .cart-preview .cart-header .cart-link").click(function(e){e.preventDefault();$('.blockcart.cart-preview').addClass('active')});$(".mobile-header-version .cart-preview .st-menu-close").click(function(e){e.preventDefault();$('.blockcart.cart-preview').removeClass('active')});if($('body#cart .featured-products ').length){$('body#cart .featured-products .product-list-wrapper').slick({slidesToShow:1,slidesToScroll:1,adaptiveHeight:!1,infinite:!0,draggable:!1,dots:!0,arrows:!0,})} 17827if($('body#product').length){var photos=$('#product .wp-product .wp-product-left .wp-product-left-infos .photo').detach();$('.wp-product-left-ctn.avis').append(photos);var panier=$('#product .wp-product .wp-product-right').detach();$('#product .wp-product .wp-product-left .wp-product-left-infos').append(panier)}}else{$('.header-tel').attr('href','/nous-contacter')} 17828$(".sticky-search").click(function(e){e.preventDefault();$('.search-widget').toggleClass('sticky')});prestashop.on('updateCart',function(){setTimeout(function(){$('#header .wp-sticky a
vendor: 16,384 bytes, lines 17828-17832
17828span.cart-products-count').html($('.cart-preview .cart-header .cart-products-count').html())},3000)})});$(document).ajaxStop(function(){$('#amegamenu .anav-top .amenu-item.sous-menu .adropdown .left .category-title a').hover(function(){$('#amegamenu .anav-top .amenu-item.sous-menu .adropdown .middle .aitem').hide();$('#amegamenu .anav-top .amenu-item.sous-menu .adropdown .left .category-title a').removeClass('active');$(this).addClass('active');let href=$(this).attr('href');$('#amegamenu .anav-top .amenu-item.sous-menu .adropdown .middle a').each(function(index){if($(this).attr('href')==href){$(this).parents('.aitem').show()}})},function(){});if($('#blockcart-modal .product-accessories ').length){$('#blockcart-modal .product-accessories .product-list-wrapper').slick({slidesToShow:2,slidesToScroll:2,adaptiveHeight:!1,infinite:!0,draggable:!1,dots:!0,arrows:!0,responsive:[{breakpoint:768,settings:{slidesToShow:1,slidesToScroll:1,}}],})} 17829if($('body#product').length){$(".product-variants select").chosen({width:"100%",})} 17830if($(window).width()<769){if($('body#category').length){$(".PM_ASCriterionsGroupTitle").click(function(){$(this).next().toggle();$(this).toggleClass('active')});$('.PM_ASMobileMode').append('<div class="wp-search-mobile-result">Voir les résultats</div>');$(".wp-search-mobile-result ").click(function(){$('html,body').removeClass('noscroll');$('.PM_ASBlockTitle').trigger('click')});$(".PM_ASMobileVisible .PM_ASCriterionsGroup input[type=checkbox], .PM_ASMobileVisible .PM_ASCriterionsGroup input[type=radio]").each(function(index){if($(this).is(':checked')){if($(this).parents('.PM_ASCriterionsGroupOuter').is(":hidden")){$(this).parents('.PM_ASCriterionsGroupOuter').toggle()}}})} 17831$('.st-menu .category-tree > ul').append('<li><a href="/promotions"><span>Promotions</span></a></li>')} 17832$('a[href*="#"]').not('[href="#"]').not('[href="#0"]').click(function(event){if(location.pathname.replace(/^\//,'')==this.pathname.replace(/^\//,'')&&location.hostname==this.hostname){var target=$(this.hash);target=target.length?target:$('[name='+this.hash.slice(1)+']');if(target.length){event.preventDefault();$('html, body').animate({scrollTop:target.offset().top},1000,function(){var $target=$(target);$target.focus();if($target.is(":focus")){return!1}else{$target.attr('tabindex','-1');$target.focus()}})}}});$(".header-tel").hover(function(){$(".horaires-top").show()},function(){$(".horaires-top").hide()})});(function(){var t,e,s,i,n=function(t,e){return function(){return t.apply(e,arguments)}},r=function(t,e){function s(){this.constructor=t}for(var i in e)o.call(e,i)&&(t[i]=e[i]);return s.prototype=e.prototype,t.prototype=new s,t.__super__=e.prototype,t},o={}.hasOwnProperty;(i=function(){function t(){this.options_index=0,this.parsed=[]}return t.prototype.add_node=function(t){return"OPTGROUP"===t.nodeName.toUpperCase()?this.add_group(t):this.add_option(t)},t.prototype.add_group=function(t){var e,s,i,n,r,o;for(e=this.parsed.length,this.parsed.push({array_index:e,group:!0,label:t.label,title:t.title?t.title:void 0,children:0,disabled:t.disabled,classes:t.className}),o=[],s=0,i=(r=t.childNodes).length;s<i;s++)n=r[s],o.push(this.add_option(n,e,t.disabled));return o},t.prototype.add_option=function(t,e,s){if("OPTION"===t.nodeName.toUpperCase())return""!==t.text?(null!=e&&(this.parsed[e].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:t.value,text:t.text,html:t.innerHTML,title:t.title?t.title:void 0,selected:t.selected,disabled:!0===s?s:t.disabled,group_array_index:e,group_label:null!=e?this.parsed[e].label:null,classes:t.className,style:t.style.cssText})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1},t}()).select_to_array=function(t){var e,s,n,r,o;for(r=new i,s=0,n=(o=t.childNodes).length;s<n;s++)e=o[s],r.add_node(e);return r.parsed},e=function(){function t(e,s){this.form_field=e,this.options=null!=s?s:{},this.label_click_handler=n(this.label_click_handler,this),t.browser_is_supported()&&(this.is_multiple=this.form_field.multiple,this.set_default_text(),this.set_default_values(),this.setup(),this.set_up_html(),this.register_observers(),this.on_ready())}return t.prototype.set_default_values=function(){return this.click_test_action=function(t){return function(e){return t.test_active_click(e)}}(this),this.activate_action=function(t){return function(e){return t.activate_field(e)}}(this),this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.is_rtl=this.options.rtl||/\bchosen-rtl\b/.test(this.form_field.className),this.allow_single_deselect=null!=this.options.allow_single_deselect&&null!=this.form_field.options[0]&&""===this.form_field.options[0].text&&this.options.allow_single_deselect,this.disable_search_threshold=this.options.disable_search_threshold||0,this.disable_search=this.options.disable_search||!1,this.enable_split_word_search=null==this.options.enable_split_word_search||this.options.enable_split_word_search,this.group_search=null==this.options.group_search||this.options.group_search,this.search_contains=this.options.search_contains||!1,this.single_backstroke_delete=null==this.options.single_backstroke_delete||this.options.single_backstroke_delete,this.max_selected_options=this.options.max_selected_options||Infinity,this.inherit_select_classes=this.options.inherit_select_classes||!1,this.display_selected_options=null==this.options.display_selected_options||this.options.display_selected_options,this.display_disabled_options=null==this.options.display_disabled_options||this.options.display_disabled_options,this.include_group_label_in_selected=this.options.include_group_label_in_selected||!1,this.max_shown_results=this.options.max_shown_results||Number.POSITIVE_INFINITY,this.case_sensitive_search=this.options.case_sensitive_search||!1,this.hide_results_on_select=null==this.options.hide_results_on_select||this.options.hide_results_on_select},t.prototype.set_default_text=function(){return this.form_field.getAttribute("data-placeholder")?this.default_text=this.form_field.getAttribute("data-placeholder"):this.is_multiple?this.default_text=this.options.placeholder_text_multiple||this.options.placeholder_text||t.default_multiple_text:this.default_text=this.options.placeholder_text_single||this.options.placeholder_text||t.default_single_text,this.default_text=this.escape_html(this.default_text),this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||t.default_no_result_text},t.prototype.choice_label=function(t){return this.include_group_label_in_selected&&null!=t.group_label?"<b class='group-name'>"+this.escape_html(t.group_label)+"</b>"+t.html:t.html},t.prototype.mouse_enter=function(){return this.mouse_on_container=!0},t.prototype.mouse_leave=function(){return this.mouse_on_container=!1},t.prototype.input_focus=function(t){if(this.is_multiple){if(!this.active_field)return setTimeout(function(t){return function(){return t.container_mousedown()}}(this),50)}else if(!this.active_field)return this.activate_field()},t.prototype.input_blur=function(t){if(!this.mouse_on_container)return this.active_field=!1,setTimeout(function(t){return function(){return t.blur_test()}}(this),100)},t.prototype.label_click_handler=function(t){return this.is_multiple?this.container_mousedown(t):this.activate_field()},t.prototype.results_option_build=function(t){var e,s,i,n,r,o,h;for(e="",h=0,n=0,r=(o=this.results_data).length;n<r&&(s=o[n],i="",""!==(i=s.group?this.result_add_group(s):this.result_add_option(s))&&(h++,e+=i),(null!=t?t.first:void 0)&&(s.selected&&this.is_multiple?this.choice_build(s):s.selected&&!this.is_multiple&&this.single_set_selected_text(this.choice_label(s))),!(h>=this.max_shown_results));n++);return e},t.prototype.result_add_option=function(t){var e,s;return t.search_match&&this.include_option_in_results(t)?(e=[],t.disabled||t.selected&&this.is_multiple||e.push("active-result"),!t.disabled||t.selected&&this.is_multiple||e.push("disabled-result"),t.selected&&e.push("result-selected"),null!=t.group_array_index&&e.push("group-option"),""!==t.classes&&e.push(t.classes),s=document.createElement("li"),s.className=e.join(" "),t.style&&(s.style.cssText=t.style),s.setAttribute("data-option-array-index",t.array_index),s.innerHTML=t.highlighted_html||t.html,t.title&&(s.title=t.title),this.outerHTML(s)):""},t.prototype.result_add_group=function(t){var e,s;return(t.search_match||t.group_match)&&t.active_options>0?((e=[]).push("group-result"),t.classes&&e.push(t.classes),s=document.createElement("li"),s.className=e.join(" "),s.innerHTML=t.highlighted_html||this.escape_html(t.label),t.title&&(s.title=t.title),this.outerHTML(s)):""},t.prototype.results_update_field=function(){if(this.set_default_text(),this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.results_build(),this.results_showing)return this.winnow_results()},t.prototype.reset_single_select_options=function(){var t,e,s,i,n;for(n=[],t=0,e=(s=this.results_data).length;t<e;t++)(i=s[t]).selected?n.push(i.selected=!1):n.push(void 0);return n},t.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show()},t.prototype.results_search=function(t){return this.results_showing?this.winnow_results():this.results_show()},t.prototype.winnow_results=function(t){var e,s,i,n,r,o,h,l,c,_,a,u,d,p,f;for(this.no_results_clear(),_=0,e=(h=this.get_search_text()).replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),c=this.get_search_regex(e),i=0,n=(l=this.results_data).length;i<n;i++)(r=l[i]).search_match=!1,a=null,u=null,r.highlighted_html="",this.include_option_in_results(r)&&(r.group&&(r.group_match=!1,r.active_options=0),null!=r.group_array_index&&this.results_data[r.group_array_index]&&(0===(a=this.results_data[r.group_array_index]).active_options&&a.search_match&&(_+=1),a.active_options+=1),f=r.group?r.label:r.text,r.group&&!this.group_search||(u=this.search_string_match(f,c),r.search_match=null!=u,r.search_match&&!r.group&&(_+=1),r.search_match?(h.length&&(d=u.index,o=f.slice(0,d),s=f.slice(d,d+h.length),p=f.slice(d+h.length),r.highlighted_html=this.escape_html(o)+"<em>"+this.escape_html(s)+"</em>"+this.escape_html(p)),null!=a&&(a.group_match=!0)):null!=r.group_array_index&&this.results_data[r.group_array_index].search_match&&(r.search_match=!0)));return this.result_clear_highlight(),_<1&&h.length?(this.update_results_content(""),this.no_results(h)):(this.update_results_content(this.results_option_build()),(null!=t?t.skip_highlight:void 0)?void 0:this.winnow_results_set_highlight())},t.prototype.get_search_regex=function(t){var e,s;return s=this.search_contains?t:"(^|\\s|\\b)"+t+"[^\\s]*",this.enable_split_word_search||this.search_contains||(s="^"+s),e=this.case_sensitive_search?"":"i",new RegExp(s,e)},t.prototype.search_string_match=function(t,e){var s;return s=e.exec(t),!this.search_contains&&(null!=s?s[1]:void 0)&&(s.index+=1),s},t.prototype.choices_count=function(){var t,e,s;if(null!=this.selected_option_count)return this.selected_option_count;for(this.selected_option_count=0,t=0,e=(s=this.form_field.options).length;t<e;t++)s[t].selected&&(this.selected_option_count+=1);return this.selected_option_count},t.prototype.choices_click=function(t){if(t.preventDefault(),this.activate_field(),!this.results_showing&&!this.is_disabled)return this.results_show()},t.prototype.keydown_checker=function(t){var e,s;switch(s=null!=(e=t.which)?e:t.keyCode,this.search_field_scale(),8!==s&&this.pending_backstroke&&this.clear_backstroke(),s){case 8:this.backstroke_length=this.get_search_field_value().length;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(t),this.mouse_on_container=!1;break;case 13:case 27:this.results_showing&&t.preventDefault();break;case 32:this.disable_search&&t.preventDefault();break;case 38:t.preventDefault(),this.keyup_arrow();break;case 40:t.preventDefault(),this.keydown_arrow()}},t.prototype.keyup_checker=function(t){var e,s;switch(s=null!=(e=t.which)?e:t.keyCode,this.search_field_scale(),s){case 8:this.is_multiple&&this.backstroke_length<1&&this.choices_count()>0?this.keydown_backstroke():this.pending_backstroke||(this.result_clear_highlight(),this.results_search());break;case 13:t.preventDefault(),this.results_showing&&this.result_select(t);break;case 27:this.results_showing&&this.results_hide();break;case 9:case 16:case 17:case 18:case 38:case 40:case 91:break;default:this.results_search()}},t.prototype.clipboard_event_checker=function(t){if(!this.is_disabled)return setTimeout(function(t){return function(){return t.results_search()}}(this),50)},t.prototype.container_width=function(){return null!=this.options.width?this.options.width:this.form_field.offsetWidth+"px"},t.prototype.include_option_in_results=function(t){return!(this.is_multiple&&!this.display_selected_options&&t.selected)&&(!(!this.display_disabled_options&&t.disabled)&&!t.empty)},t.prototype.search_results_touchstart=function(t){return this.touch_started=!0,this.search_results_mouseover(t)},t.prototype.search_results_touchmove=function(t){return this.touch_started=!1,this.search_results_mouseout(t)},t.prototype.search_results_touchend=function(t){if(this.touch_started)return this.search_results_mouseup(t)},t.prototype.outerHTML=function(t){var e;return t.outerHTML?t.outerHTML:((e=document.createElement("div")).appendChild(t),e.innerHTML)},t.prototype.get_single_html=function(){return'<a class="chosen-single chosen-default">\n <span>'+this.default_text+'</span>\n <div><b></b></div>\n</a>\n<div class="chosen-drop">\n <div class="chosen-search">\n <input class="chosen-search-input" type="text" autocomplete="off" />\n </div>\n <ul class="chosen-results"></ul>\n</div>'},t.prototype.get_multi_html=function(){return'<ul class="chosen-choices">\n <li class="search-field">\n <input class="chosen-search-input" type="text" autocomplete="off" value="'+this.default_text+'" />\n </li>\n</ul>\n<div class="chosen-drop">\n <ul class="chosen-results"></ul>\n</div>'},t.prototype.get_no_results_html=function(t){return'<li class="no-results">\n '+this.results_none_found+" <span>"+this.escape_html(t)+"</span>\n</li>"},t.browser_is_supported=function(){return"Microsoft Internet Explorer"===window.navigator.appName?document.documentMode>=8:!(/iP(od|hone)/i.test(window.navigator.userAgent)||/IEMobile/i.test(window.navigator.userAgent)||/Windows Phone/i.test(window.navigator.userAgent)||/BlackBerry/i.test(window.navigator.userAgent)||/BB10/i.test(window.navigator.userAgent)||/Android.*Mobile/i.test(window.navigator.userAgent))},t.default_multiple_text="Select Some Options",t.default_single_text="Select an Option",t.default_no_result_text="No results match",t}(),(t=jQuery).fn.extend({chosen:function(i){return e.browser_is_supported()?this.each(function(e){var n,r;r=(n=t(this)).data("chosen"),"destroy"!==i?r instanceof s||n.data("chosen",new s(this,i)):r instanceof s&&r.destroy()}):this}}),s=function(s){function n(){return n.__super__.constructor.apply(this,arguments)}return r(n,e),n.prototype.setup=function(){return this.form_field_jq=t(this.form_field),this.current_selectedIndex=this.form_field.selectedIndex},n.prototype.set_up_html=function(){var e,s;return(e=["chosen-container"]).push("chosen-container-"+(this.is_multiple?"multi":"single")),this.inherit_select_classes&&this.form_field.className&&e.push(this.form_field.className),this.is_rtl&&e.push("chosen-rtl"),s={"class":e.join(" "),title:this.form_field.title},this.form_field.id.length&&(s.id=this.form_field.id.replace(/[^\w]/g,"_")+"_chosen"),this.container=t("<div />",s),this.container.width(this.container_width()),this.is_multiple?this.container.html(this.get_multi_html()):this.container.html(this.get_single_html()),this.form_field_jq.hide().after(this.container),this.dropdown=this.container.find("div.chosen-drop").first(),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chosen-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chosen-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.
17832chosen-search").first(),this.selected_item=this.container.find(".chosen-single").first()),this.results_build(),this.set_tab_index(),this.set_label_behavior()},n.prototype.on_ready=function(){return this.form_field_jq.trigger("chosen:ready",{chosen:this})},n.prototype.register_observers=function(){return this.container.on("touchstart.chosen",function(t){return function(e){t.container_mousedown(e)}}(this)),this.container.on("touchend.chosen",function(t){return function(e){t.container_mouseup(e)}}(this)),this.container.on("mousedown.chosen",function(t){return function(e){t.container_mousedown(e)}}(this)),this.container.on("mouseup.chosen",function(t){return function(e){t.container_mouseup(e)}}(this)),this.container.on("mouseenter.chosen",function(t){return function(e){t.mouse_enter(e)}}(this)),this.container.on("mouseleave.chosen",function(t){return function(e){t.mouse_leave(e)}}(this)),this.search_results.on("mouseup.chosen",function(t){return function(e){t.search_results_mouseup(e)}}(this)),this.search_results.on("mouseover.chosen",function(t){return function(e){t.search_results_mouseover(e)}}(this)),this.search_results.on("mouseout.chosen",function(t){return function(e){t.search_results_mouseout(e)}}(this)),this.search_results.on("mousewheel.chosen DOMMouseScroll.chosen",function(t){return function(e){t.search_results_mousewheel(e)}}(this)),this.search_results.on("touchstart.chosen",function(t){return function(e){t.search_results_touchstart(e)}}(this)),this.search_results.on("touchmove.chosen",function(t){return function(e){t.search_results_touchmove(e)}}(this)),this.search_results.on("touchend.chosen",function(t){return function(e){t.search_results_touchend(e)}}(this)),this.form_field_jq.on("chosen:updated.chosen",function(t){return function(e){t.results_update_field(e)}}(this)),this.form_field_jq.on("chosen:activate.chosen",function(t){return function(e){t.activate_field(e)}}(this)),this.form_field_jq.on("chosen:open.chosen",function(t){return function(e){t.container_mousedown(e)}}(this)),this.form_field_jq.on("chosen:close.chosen",function(t){return function(e){t.close_field(e)}}(this)),this.search_field.on("blur.chosen",function(t){return function(e){t.input_blur(e)}}(this)),this.search_field.on("keyup.chosen",function(t){return function(e){t.keyup_checker(e)}}(this)),this.search_field.on("keydown.chosen",function(t){return function(e){t.keydown_checker(e)}}(this)),this.search_field.on("focus.chosen",function(t){return function(e){t.input_focus(e)}}(this)),this.search_field.on("cut.chosen",function(t){return function(e){t.clipboard_event_checker(e)}}(this)),this.search_field.on("paste.chosen",function(t){return function(e){t.clipboard_event_checker(e)}}(this)),this.is_multiple?this.search_choices.on("click.chosen",function(t){return function(e){t.choices_click(e)}}(this)):this.container.on("click.chosen",function(t){t.preventDefault()})},n.prototype.destroy=function(){return t(this.container[0].ownerDocument).off("click.chosen",this.click_test_action),this.form_field_label.length>0&&this.form_field_label.off("click.chosen"),this.search_field[0].tabIndex&&(this.form_field_jq[0].tabIndex=this.search_field[0].tabIndex),this.container.remove(),this.form_field_jq.removeData("chosen"),this.form_field_jq.show()},n.prototype.search_field_disabled=function(){return this.is_disabled=this.form_field.disabled||this.form_field_jq.parents("fieldset").is(":disabled"),this.container.toggleClass("chosen-disabled",this.is_disabled),this.search_field[0].disabled=this.is_disabled,this.is_multiple||this.selected_item.off("focus.chosen",this.activate_field),this.is_disabled?this.close_field():this.is_multiple?void 0:this.selected_item.on("focus.chosen",this.activate_field)},n.prototype.container_mousedown=function(e){var s;if(!this.is_disabled)return!e||"mousedown"!==(s=e.type)&&"touchstart"!==s||this.results_showing||e.preventDefault(),null!=e&&t(e.target).hasClass("search-choice-close")?void 0:(this.active_field?this.is_multiple||!e||t(e.target)[0]!==this.selected_item[0]&&!t(e.target).parents("a.chosen-single").length||(e.preventDefault(),this.results_toggle(
vendor: 11,043 bytes, lines 17832-17835
17832)):(this.is_multiple&&this.search_field.val(""),t(this.container[0].ownerDocument).on("click.chosen",this.click_test_action),this.results_show()),this.activate_field())},n.prototype.container_mouseup=function(t){if("ABBR"===t.target.nodeName&&!this.is_disabled)return this.results_reset(t)},n.prototype.search_results_mousewheel=function(t){var e;if(t.originalEvent&&(e=t.originalEvent.deltaY||-t.originalEvent.wheelDelta||t.originalEvent.detail),null!=e)return t.preventDefault(),"DOMMouseScroll"===t.type&&(e*=40),this.search_results.scrollTop(e+this.search_results.scrollTop())},n.prototype.blur_test=function(t){if(!this.active_field&&this.container.hasClass("chosen-container-active"))return this.close_field()},n.prototype.close_field=function(){return t(this.container[0].ownerDocument).off("click.chosen",this.click_test_action),this.active_field=!1,this.results_hide(),this.container.removeClass("chosen-container-active"),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale(),this.search_field.blur()},n.prototype.activate_field=function(){if(!this.is_disabled)return this.container.addClass("chosen-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},n.prototype.test_active_click=function(e){var s;return(s=t(e.target).closest(".chosen-container")).length&&this.container[0]===s[0]?this.active_field=!0:this.close_field()},n.prototype.results_build=function(){return this.parsing=!0,this.selected_option_count=null,this.results_data=i.select_to_array(this.form_field),this.is_multiple?this.search_choices.find("li.search-choice").remove():(this.single_set_selected_text(),this.disable_search||this.form_field.options.length<=this.disable_search_threshold?(this.search_field[0].readOnly=!0,this.container.addClass("chosen-container-single-nosearch")):(this.search_field[0].readOnly=!1,this.container.removeClass("chosen-container-single-nosearch"))),this.update_results_content(this.results_option_build({first:!0})),this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.parsing=!1},n.prototype.result_do_highlight=function(t){var e,s,i,n,r;if(t.length){if(this.result_clear_highlight(),this.result_highlight=t,this.result_highlight.addClass("highlighted"),i=parseInt(this.search_results.css("maxHeight"),10),r=this.search_results.scrollTop(),n=i+r,s=this.result_highlight.position().top+this.search_results.scrollTop(),(e=s+this.result_highlight.outerHeight())>=n)return this.search_results.scrollTop(e-i>0?e-i:0);if(s<r)return this.search_results.scrollTop(s)}},n.prototype.result_clear_highlight=function(){return this.result_highlight&&this.result_highlight.removeClass("highlighted"),this.result_highlight=null},n.prototype.results_show=function(){return this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.container.addClass("chosen-with-drop"),this.results_showing=!0,this.search_field.focus(),this.search_field.val(this.get_search_field_value()),this.winnow_results(),this.form_field_jq.trigger("chosen:showing_dropdown",{chosen:this}))},n.prototype.update_results_content=function(t){return this.search_results.html(t)},n.prototype.results_hide=function(){return this.results_showing&&(this.result_clear_highlight(),this.container.removeClass("chosen-with-drop"),this.form_field_jq.trigger("chosen:hiding_dropdown",{chosen:this})),this.results_showing=!1},n.prototype.set_tab_index=function(t){var e;if(this.form_field.tabIndex)return e=this.form_field.tabIndex,this.form_field.tabIndex=-1,this.search_field[0].tabIndex=e},n.prototype.set_label_behavior=function(){if(this.form_field_label=this.form_field_jq.parents("label"),!this.form_field_label.length&&this.form_field.id.length&&(this.form_field_label=t("label[for='"+this.form_field.id+"']")),this.form_field_label.length>0)return this.form_field_label.on("click.chosen",this.label_click_handler)},n.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices_count()<1&&!this.active_field?(this.search_field.val(this.default_text),this.search_field.addClass("default")):(this.search_field.val(""),this.search_field.removeClass("default"))},n.prototype.search_results_mouseup=function(e){var s;if((s=t(e.target).hasClass("active-result")?t(e.target):t(e.target).parents(".active-result").first()).length)return this.result_highlight=s,this.result_select(e),this.search_field.focus()},n.prototype.search_results_mouseover=function(e){var s;if(s=t(e.target).hasClass("active-result")?t(e.target):t(e.target).parents(".active-result").first())return this.result_do_highlight(s)},n.prototype.search_results_mouseout=function(e){if(t(e.target).hasClass("active-result")||t(e.target).parents(".active-result").first())return this.result_clear_highlight()},n.prototype.choice_build=function(e){var s,i;return s=t("<li />",{"class":"search-choice"}).html("<span>"+this.choice_label(e)+"</span>"),e.disabled?s.addClass("search-choice-disabled"):((i=t("<a />",{"class":"search-choice-close","data-option-array-index":e.array_index})).on("click.chosen",function(t){return function(e){return t.choice_destroy_link_click(e)}}(this)),s.append(i)),this.search_container.before(s)},n.prototype.choice_destroy_link_click=function(e){if(e.preventDefault(),e.stopPropagation(),!this.is_disabled)return this.choice_destroy(t(e.target))},n.prototype.choice_destroy=function(t){if(this.result_deselect(t[0].getAttribute("data-option-array-index")))return this.active_field?this.search_field.focus():this.show_search_field_default(),this.is_multiple&&this.choices_count()>0&&this.get_search_field_value().length<1&&this.results_hide(),t.parents("li").first().remove(),this.search_field_scale()},n.prototype.results_reset=function(){if(this.reset_single_select_options(),this.form_field.options[0].selected=!0,this.single_set_selected_text(),this.show_search_field_default(),this.results_reset_cleanup(),this.trigger_form_field_change(),this.active_field)return this.results_hide()},n.prototype.results_reset_cleanup=function(){return this.current_selectedIndex=this.form_field.selectedIndex,this.selected_item.find("abbr").remove()},n.prototype.result_select=function(t){var e,s;if(this.result_highlight)return e=this.result_highlight,this.result_clear_highlight(),this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.is_multiple?e.removeClass("active-result"):this.reset_single_select_options(),e.addClass("result-selected"),s=this.results_data[e[0].getAttribute("data-option-array-index")],s.selected=!0,this.form_field.options[s.options_index].selected=!0,this.selected_option_count=null,this.is_multiple?this.choice_build(s):this.single_set_selected_text(this.choice_label(s)),this.is_multiple&&(!this.hide_results_on_select||t.metaKey||t.ctrlKey)?t.metaKey||t.ctrlKey?this.winnow_results({skip_highlight:!0}):(this.search_field.val(""),this.winnow_results()):(this.results_hide(),this.show_search_field_default()),(this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex)&&this.trigger_form_field_change({selected:this.form_field.options[s.options_index].value}),this.current_selectedIndex=this.form_field.selectedIndex,t.preventDefault(),this.search_field_scale())},n.prototype.single_set_selected_text=function(t){return null==t&&(t=this.default_text),t===this.default_text?this.selected_item.addClass("chosen-default"):(this.single_deselect_control_build(),this.selected_item.removeClass("chosen-default")),this.selected_item.find("span").html(t)},n.prototype.result_deselect=function(t){var e;return e=this.results_data[t],!this.form_field.options[e.options_index].disabled&&(e.selected=!1,this.form_field.options[e.options_index].selected=!1,this.selected_option_count=null,this.result_clear_highlight(),this.results_showing&&this.winnow_results(),this.trigger_form_field_change({deselected:this.form_field.options[e.options_index].value}),this.search_field_scale(),!0)},n.prototype.single_deselect_control_build=function(){if(this.allow_single_deselect)return this.selected_item.find("abbr").length||this.selected_item.find("span").first().after('<abbr class="search-choice-close"></abbr>'),this.selected_item.addClass("chosen-single-with-deselect")},n.prototype.get_search_field_value=function(){return this.search_field.val()},n.prototype.get_search_text=function(){return t.trim(this.get_search_field_value())},n.prototype.escape_html=function(e){return t("<div/>").text(e).html()},n.prototype.winnow_results_set_highlight=function(){var t,e;if(e=this.is_multiple?[]:this.search_results.find(".result-selected.active-result"),null!=(t=e.length?e.first():this.search_results.find(".active-result").first()))return this.result_do_highlight(t)},n.prototype.no_results=function(t){var e;return e=this.get_no_results_html(t),this.search_results.append(e),this.form_field_jq.trigger("chosen:no_results",{chosen:this})},n.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},n.prototype.keydown_arrow=function(){var t;return this.results_showing&&this.result_highlight?(t=this.result_highlight.nextAll("li.active-result").first())?this.result_do_highlight(t):void 0:this.results_show()},n.prototype.keyup_arrow=function(){var t;return this.results_showing||this.is_multiple?this.result_highlight?(t=this.result_highlight.prevAll("li.active-result")).length?this.result_do_highlight(t.first()):(this.choices_count()>0&&this.results_hide(),this.result_clear_highlight()):void 0:this.results_show()},n.prototype.keydown_backstroke=function(){var t;return this.pending_backstroke?(this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke()):(t=this.search_container.siblings("li.search-choice").last()).length&&!t.hasClass("search-choice-disabled")?(this.pending_backstroke=t,this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addClass("search-choice-focus")):void 0},n.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null},n.prototype.search_field_scale=function(){var e,s,i,n,r,o,h;if(this.is_multiple){for(r={position:"absolute",left:"-1000px",top:"-1000px",display:"none",whiteSpace:"pre"},s=0,i=(o=["fontSize","fontStyle","fontWeight","fontFamily","lineHeight","textTransform","letterSpacing"]).length;s<i;s++)r[n=o[s]]=this.search_field.css(n);return(e=t("<div />").css(r)).text(this.get_search_field_value()),t("body").append(e),h=e.width()+25,e.remove(),this.container.is(":visible")&&(h=Math.min(this.container.outerWidth()-10,h)),this.search_field.width(h)}},n.prototype.trigger_form_field_change=function(t){return this.form_field_jq.trigger("input",t),this.form_field_jq.trigger("change",t)},n}()}).call(this);/** 17833 * Image Select (Version 1.8) 17834 * 17835 * Image Select is an extention to the Chosen, a Select Box Enhancer for
17836 * jQuery and Prototype, full source at https://github.com/harvesthq/chosen 17837 * 17838 * This plugin extension was designed as a humanized UI element for social networking 17839 * sites that need to faciliate relations between people. Research shows that people 17840 * are extremely sensitvie to photos of others, so we needed to revamp the traditional 17841 * UI elements to make them more intuitive and human. 17842 * 17843 * Hope you find it helpful, and get back if you have any feedback/improvements. 17844 * 17845 * @author Adnan M.Sagar, PhD <[email protected]> 17846 * @copyright 2002-2015 Web Semantics, Inc. (http://websemantics.ca) & AlterSpark Corp. (http://www.alterspark.com) 17847 * @license http://www.opensource.org/licenses/mit-license.php MIT 17848 * @link http://websemantics.ca 17849 * @package websemantics/image-select 17850 */ 17851(function($){var fn_template='<img class="{class_name}" src="{url}" />' 17852function prependTemplate(element,option,template,rtl,multiple,cls){var src=$(option).data('img-src') 17853if(src!=undefined&&src>''){element=$(element) 17854text=$(option).text() 17855multiple=(multiple!=undefined)?multiple:!0 17856cls=cls||(multiple?'chose-image':'chose-image-small') 17857cls=rtl?cls+' rtl':cls 17858template=template.replace('{url}',src).replace('{class_name}',cls).replace('{text}',text) 17859element.empty() 17860if(rtl&&multiple){element.append(template)}else{element.prepend(template)}}} 17861function getSelectedOptions(chosen){var items=[] 17862var options=$(chosen.form_field).find('option:selected')||[] 17863var spans=(chosen.is_multiple)?$(chosen.container).find('.chosen-choices span'):$(chosen.container).find('.chosen-single span') 17864for(var i=0;i<options.length;i++) 17865for(var j=0;j<spans.length;j++) 17866if($(spans[j]).text()==$(options[i]).text()) 17867items.push({span:spans[j],option:options[i]}) 17868return items} 17869var fn_chosen=$.fn.chosen 17870$.fn.extend({chosen:function(params){params=params||{} 17871var ret=fn_chosen.apply(this,arguments) 17872this.each(function(){var $this=$(this),chosen=$this.data('chosen') 17873$this.on("chosen:hiding_dropdown",function(e,chosen){var options=getSelectedOptions(chosen.chosen) 17874var rtl=chosen.chosen.is_rtl 17875var multiple=chosen.chosen.is_multiple 17876var html_template=params.html_template||(rtl&&multiple?'{text}'+fn_template:fn_template+'{text}') 17877for(var i=0;i<options.length;i++){prependTemplate(options[i].span,options[i].option,html_template,rtl,multiple)}}) 17878$this.on("chosen:showing_dropdown",function showing_dropdown(evt,chosen){var chosen=chosen.chosen 17879var options=chosen.form_field.options||[] 17880var rtl=chosen.is_rtl 17881var html_template=params.html_template||(rtl?'{text}'+fn_template:fn_template+'{text}') 17882var lis=$(chosen.container).find('.chosen-drop ul li:not(:has(img))') 17883for(var i=0;i<lis.length;i++){var li=lis[i] 17884var option=$(options[i]) 17885var idx=$(li).attr('data-option-array-index') 17886if(idx){option=options[chosen.results_data[idx].options_index] 17887prependTemplate(li,option,html_template,rtl,!0,'chose-image-list')}}}) 17888$this.on("chosen:ready",function change(e,chosen){$this.trigger('chosen:hiding_dropdown',chosen)}) 17889$this.on("chosen:updated",function change(e){$this.trigger('chosen:hiding_dropdown',{chosen:chosen})}) 17890$this.on('chosen:filter',function(evt,chosen){$this.trigger('chosen:showing_dropdown',{chosen:chosen.chosen})}) 17891if(typeof chosen!='undefined'){$this.trigger('chosen:hiding_dropdown',{chosen:chosen})}}) 17892return $(this)}})})(jQuery);$(document).ready(function(){$('body').off('click','[data-button-action="add-to-quote"]');$('body').on('click','[data-button-action="add-to-quote"]',function(event){var postdata={ajax:1,action:'btn-add-cartdevis',devis:1};$.ajax({type:'POST',url:link_controller,data:postdata,success:function(r){}});$(this).addClass('bt-devis-listing-click');event.preventDefault();var $btn=$(this);var psAjaxCart=!1;if(typeof(varPSAjaxCart)!=='undefined'&&varPSAjaxCart){psAjaxCart=varPSAjaxCart} 17893if($('#quantity_wanted').val()>$('[data-stock]').data('stock')&&$('[data-allow-oosp]').data('allow-oosp').length===0){$btn.attr('disabled','disabled')}else{var _ret=(function(){if($btn.hasClass('bt-devis-listing-miniature')){var $form=$(".product-actions").find('form');var query='token='+$btn.attr('token')+'&id_product='+$btn.attr('data-id-product')+'&add=1&action=update"e=true&qty=1&devis=1';var actionURL=$btn.attr('data-url')}else{var $form=$(".product-actions").find('form');var query=$form.serialize()+'&add=1&action=update"e=true&devis=1';var actionURL=$form.attr('action');var $quantityInput=$form.find('input[min]');if($('input#quantity_wanted').val()==0){$('input#quantity_wanted').val(1)}
17894let isQuantityInputValid=function($input){var validInput=!0;$input.each(function(index,input){let $input=$(input);let minimalValue=parseInt($input.attr('min'),10);if(minimalValue&&$input.val()<minimalValue){onInvalidQuantity($input);validInput=!1}});return validInput};let onInvalidQuantity=function($input){$input.parents('.product-add-to-cart').first().find('.product-minimal-quantity').addClass('error');$input.parent().find('label').addClass('error')};if(!isQuantityInputValid($quantityInput)){onInvalidQuantity($quantityInput);return{v:undefined}}} 17895$btn.removeClass('added').addClass('disabled');$.post(actionURL,query,null,'json').then(function(resp){prestashop.emit('updateCart',{reason:{idProduct:resp.id_product,idProductAttribute:resp.id_product_attribute,idCustomization:resp.id_customization,linkAction:'add-to-cart',cart:resp.cart},resp:resp});if(resp.success){$btn.addClass('added');if(!psAjaxCart){window.location.href=prestashop.urls.pages.cart+'?action=show'}} 17896if(resp.hasError){$('.js-modal-message-text').text(resp.errors[0]);$('.js-modal-message').modal('show')}}).fail(function(resp){prestashop.emit('handleError',{eventType:'addProductToCart',resp:resp})})})();if(typeof _ret==='object')return _ret.v}});$(document).on("click",'.change-mode-devis',function(event){if($(this).hasClass('panier')){var change=1}else{var change=0} 17897var postdata={ajax:1,action:'change-mode-devis',change:change};$.ajax({type:'GET',url:link_controller,data:postdata,success:function(r){window.location=r}})});$(".transformdevis-link").click(function(e){$('.loader').addClass('show');$('.mesdevis-table').addClass('pending');event.preventDefault();var postdata={ajax:1,action:'ajaxtranformdevis',order:$(this).attr('data-id')};$.ajax({type:'GET',url:link_controller,data:postdata,success:function(r){window.location=r}})});if($('#checkout').length){if(transformdevis==1){}else{if(mode_devis==1){$('#checkout #checkout-payment-step h5').html('<span class="step-number">5</span>Validation')}}}});/*! jQuery UI - v1.10.3 - 2013-05-03 17898* http://jqueryui.com 17899* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.ui.effect.js, jquery.ui.accordion.js, jquery.ui.autocomplete.js, jquery.ui.button.js, jquery.ui.datepicker.js, jquery.ui.dialog.js, jquery.ui.effect-blind.js, jquery.ui.effect-bounce.js, jquery.ui.effect-clip.js, jquery.ui.effect-drop.js, jquery.ui.effect-explode.js, jquery.ui.effect-fade.js, jquery.ui.effect-fold.js, jquery.ui.effect-highlight.js, jquery.ui.effect-pulsate.js, jquery.ui.effect-scale.js, jquery.ui.effect-shake.js, jquery.ui.effect-slide.js, jquery.ui.effect-transfer.js, jquery.ui.menu.js, jquery.ui.position.js, jquery.ui.progressbar.js, jquery.ui.slider.js, jquery.ui.spinner.js, jquery.ui.tabs.js, jquery.ui.tooltip.js 17900* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */ 17901!function(a,b){function e(b,c){var d,e,g,h=b.nodeName.toLowerCase();return"area"===h?(d=b.parentNode,e=d.name,!(!b.href||!e||"map"!==d.nodeName.toLowerCase())&&(g=a("img[usemap=#"+e+"]")[0],!!g&&f(g))):(/input|select|textarea|button|object/.test(h)?!b.disabled:"a"===h?b.href||c:c)&&f(b)}function f(b){return a.expr.filters.visible(b)&&!a(b).parents().addBack().filter(function(){return"hidden"===a.css(this,"visibility")}).length}var c=0,d=/^ui-id-\d+$/;a.ui=a.ui||{},a.extend(a.ui,{version:"1.10.3",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),a.fn.extend({focus:function(b){return function(c,d){return"number"==typeof c?this.each(function(){var b=this;setTimeout(function(){a(b).focus(),d&&d.call(b)},c)}):b.apply(this,arguments)}}(a.fn.focus),scrollParent:function(){var b;return b=a.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.css(this,"position"))&&/(auto|scroll)/.test(a.css(this,"overflow")+a.css(this,"overflow-y")+a.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(a.css(this,"overflow")+a.css(this,"overflow-y")+a.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!b.length?a(document):b},zIndex:function(c){if(c!==b)return this.css("zIndex",c);if(this.length)for(var e,f,d=a(this[0]);d.length&&d[0]!==document;){if(e=d.css("position"),("absolute"===e||"relative"===e||"fixed"===e)&&(f=parseInt(d.css("zIndex"),10),!isNaN(f)&&0!==f))return f;d=d.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++c)})},removeUniqueId:function(){return this.each(function(){d.test(this.id
vendor: 11,445 bytes, line 17901
17901)&&a(this).removeAttr("id")})}}),a.extend(a.expr[":"],{data:a.expr.createPseudo?a.expr.createPseudo(function(b){return function(c){return!!a.data(c,b)}}):function(b,c,d){return!!a.data(b,d[3])},focusable:function(b){return e(b,!isNaN(a.attr(b,"tabindex")))},tabbable:function(b){var c=a.attr(b,"tabindex"),d=isNaN(c);return(d||c>=0)&&e(b,!d)}}),a("<a>").outerWidth(1).jquery||a.each(["Width","Height"],function(c,d){function h(b,c,d,f){return a.each(e,function(){c-=parseFloat(a.css(b,"padding"+this))||0,d&&(c-=parseFloat(a.css(b,"border"+this+"Width"))||0),f&&(c-=parseFloat(a.css(b,"margin"+this))||0)}),c}var e="Width"===d?["Left","Right"]:["Top","Bottom"],f=d.toLowerCase(),g={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+d]=function(c){return c===b?g["inner"+d].call(this):this.each(function(){a(this).css(f,h(this,c)+"px")})},a.fn["outer"+d]=function(b,c){return"number"!=typeof b?g["outer"+d].call(this,b):this.each(function(){a(this).css(f,h(this,b,!0,c)+"px")})}}),a.fn.addBack||(a.fn.addBack=function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}),a("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(a.fn.removeData=function(b){return function(c){return arguments.length?b.call(this,a.camelCase(c)):b.call(this)}}(a.fn.removeData)),a.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),a.support.selectstart="onselectstart"in document.createElement("div"),a.fn.extend({disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),a.extend(a.ui,{plugin:{add:function(b,c,d){var e,f=a.ui[b].prototype;for(e in d)f.plugins[e]=f.plugins[e]||[],f.plugins[e].push([c,d[e]])},call:function(a,b,c){var d,e=a.plugins[b];if(e&&a.element[0].parentNode&&11!==a.element[0].parentNode.nodeType)for(d=0;d<e.length;d++)a.options[e[d][0]]&&e[d][1].apply(a.element,c)}},hasScroll:function(b,c){if("hidden"===a(b).css("overflow"))return!1;var d=c&&"left"===c?"scrollLeft":"scrollTop",e=!1;return b[d]>0||(b[d]=1,e=b[d]>0,b[d]=0,e)}})}(jQuery),function(a,b){var c=0,d=Array.prototype.slice,e=a.cleanData;a.cleanData=function(b){for(var d,c=0;null!=(d=b[c]);c++)try{a(d).triggerHandler("remove")}catch(a){}e(b)},a.widget=function(b,c,d){var e,f,g,h,i={},j=b.split(".")[0];b=b.split(".")[1],e=j+"-"+b,d||(d=c,c=a.Widget),a.expr[":"][e.toLowerCase()]=function(b){return!!a.data(b,e)},a[j]=a[j]||{},f=a[j][b],g=a[j][b]=function(a,b){return this._createWidget?void(arguments.length&&this._createWidget(a,b)):new g(a,b)},a.extend(g,f,{version:d.version,_proto:a.extend({},d),_childConstructors:[]}),h=new c,h.options=a.widget.extend({},h.options),a.each(d,function(b,d){return a.isFunction(d)?void(i[b]=function(){var a=function(){return c.prototype[b].apply(this,arguments)},e=function(a){return c.prototype[b].apply(this,a)};return function(){var f,b=this._super,c=this._superApply;return this._super=a,this._superApply=e,f=d.apply(this,arguments),this._super=b,this._superApply=c,f}}()):void(i[b]=d)}),g.prototype=a.widget.extend(h,{widgetEventPrefix:f?h.widgetEventPrefix:b},i,{constructor:g,namespace:j,widgetName:b,widgetFullName:e}),f?(a.each(f._childConstructors,function(b,c){var d=c.prototype;a.widget(d.namespace+"."+d.widgetName,g,c._proto)}),delete f._childConstructors):c._childConstructors.push(g),a.widget.bridge(b,g)},a.widget.extend=function(c){for(var h,i,e=d.call(arguments,1),f=0,g=e.length;f<g;f++)for(h in e[f])i=e[f][h],e[f].hasOwnProperty(h)&&i!==b&&(a.isPlainObject(i)?c[h]=a.isPlainObject(c[h])?a.widget.extend({},c[h],i):a.widget.extend({},i):c[h]=i);return c},a.widget.bridge=function(c,e){var f=e.prototype.widgetFullName||c;a.fn[c]=function(g){var h="string"==typeof g,i=d.call(arguments,1),j=this;return g=!h&&i.length?a.widget.extend.apply(null,[g].concat(i)):g,h?this.each(function(){var d,e=a.data(this,f);return e?a.isFunction(e[g])&&"_"!==g.charAt(0)?(d=e[g].apply(e,i),d!==e&&d!==b?(j=d&&d.jquery?j.pushStack(d.get()):d,!1):void 0):a.error("no such method '"+g+"' for "+c+" widget instance"):a.error("cannot call methods on "+c+" prior to initialization; attempted to call method '"+g+"'")}):this.each(function(){var b=a.data(this,f);b?b.option(g||{})._init():a.data(this,f,new e(g,this))}),j}},a.Widget=function(){},a.Widget._childConstructors=[],a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(b,d){d=a(d||this.defaultElement||this)[0],this.element=a(d),this.uuid=c++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=a.widget.extend({},this.options,this._getCreateOptions(),b),this.bindings=a(),this.hoverable=a(),this.focusable=a(),d!==this&&(a.data(d,this.widgetFullName,this),this._on(!0,this.element,{remove:function(a){a.target===d&&this.destroy()}}),this.document=a(d.style?d.ownerDocument:d.document||d),this.window=a(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:a.noop,_getCreateEventData:a.noop,_create:a.noop,_init:a.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(a.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:a.noop,widget:function(){return this.element},option:function(c,d){var f,g,h,e=c;if(0===arguments.length)return a.widget.extend({},this.options);if("string"==typeof c)if(e={},f=c.split("."),c=f.shift(),f.length){for(g=e[c]=a.widget.extend({},this.options[c]),h=0;h<f.length-1;h++)g[f[h]]=g[f[h]]||{},g=g[f[h]];if(c=f.pop(),d===b)return g[c]===b?null:g[c];g[c]=d}else{if(d===b)return this.options[c]===b?null:this.options[c];e[c]=d}return this._setOptions(e),this},_setOptions:function(a){var b;for(b in a)this._setOption(b,a[b]);return this},_setOption:function(a,b){return this.options[a]=b,"disabled"===a&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!b).attr("aria-disabled",b),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(b,c,d){var e,f=this;"boolean"!=typeof b&&(d=c,c=b,b=!1),d?(c=e=a(c),this.bindings=this.bindings.add(c)):(d=c,c=this.element,e=this.widget()),a.each(d,function(d,g){function h(){if(b||f.options.disabled!==!0&&!a(this).hasClass("ui-state-disabled"))return("string"==typeof g?f[g]:g).apply(f,arguments)}"string"!=typeof g&&(h.guid=g.guid=g.guid||h.guid||a.guid++);var i=d.match(/^(\w+)\s*(.*)$/),j=i[1]+f.eventNamespace,k=i[2];k?e.delegate(k,j,h):c.bind(j,h)})},_off:function(a,b){b=(b||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,a.unbind(b).undelegate(b)},_delay:function(a,b){function c(){return("string"==typeof a?d[a]:a).apply(d,arguments)}var d=this;return setTimeout(c,b||0)},_hoverable:function(b){this.hoverable=this.hoverable.add(b),this._on(b,{mouseenter:function(b){a(b.currentTarget).addClass("ui-state-hover")},mouseleave:function(b){a(b.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(b){this.focusable=this.focusable.add(b),this._on(b,{focusin:function(b){a(b.currentTarget).addClass("ui-state-focus")},focusout:function(b){a(b.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(b,c,d){var e,f,g=this.options[b];if(d=d||{},c=a.Event(c),c.type=(b===this.widgetEventPrefix?b:this.widgetEventPrefix+b).toLowerCase(),c.target=this.element[0],f=c.originalEvent)for(e in f)e in c||(c[e]=f[e]);return this.element.trigger(c,d),!(a.isFunction(g)&&g.apply(this.element[0],[c].concat(d))===!1||c.isDefaultPrevented())}},a.each({show:"fadeIn",hide:"fadeOut"},function(b,c){a.Widget.prototype["_"+b]=function(d,e,f){"string"==typeof e&&(e={effect:e});var g,h=e?e===!0||"number"==typeof e?c:e.effect||c:b;e=e||{},"number"==typeof e&&(e={duration:e}),g=!a.isEmptyObject(e),e.complete=f,e.delay&&d.delay(e.delay),g&&a.effects&&a.effects.effect[h]?d[b](e):h!==b&&d[h]?d[h](e.duration,e.easing,f):d.queue(function(c){a(this)[b](),f&&f.call(d[0]),c()})}})}(jQuery),function(a,b){var c=!1;a(document).mouseup(function(){c=!1}),a.widget("ui.mouse",{version:"1.10.3",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var b=this;this.element.bind("mousedown."+this.widgetName,function(a){return b._mouseDown(a)}).bind("click."+this.widgetName,function(c){if(!0===a.data(c.target,b.widgetName+".preventClickEvent"))return a.removeData(c.target,b.widgetName+".preventClickEvent"),c.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(b){if(!c){this._mouseStarted&&this._mouseUp(b),this._mouseDownEvent=b;var d=this,e=1===b.which,f=!("string"!=typeof this.options.cancel||!b.target.nodeName)&&a(b.target).closest(this.options.cancel).length;return!(e&&!f&&this._mouseCapture(b))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){d.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(b)&&this._mouseDelayMet(b)&&(this._mouseStarted=this._mouseStart(b)!==!1,!this._mouseStarted)?(b.preventDefault(),!0):(!0===a.data(b.target,this.widgetName+".preventClickEvent")&&a.removeData(b.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(a){return d._mouseMove(a)},this._mouseUpDelegate=function(a){return d._mouseUp(a)},a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),b.preventDefault(),c=!0,!0))}},_mouseMove:function(b){return a.ui.ie&&(!document.documentMode||document.documentMode<9)&&!b.button?this._mouseUp(b):this._mouseStarted?(this._mouseDrag(b),b.preventDefault()):(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,b)!==!1,this._mouseStarted?this._mouseDrag(b):this._mouseUp(b)),!this._mouseStarted)},_mouseUp:function(b){return a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,b.target===this._mouseDownEvent.target&&a.data(b.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(b)),!1},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}(jQuery),function(a,b){a.widget("ui.draggable",a.ui.mouse,{version:"1.10.3",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,
vendor: 20,944 bytes, line 17901
17901containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"!==this.options.helper||/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},_destroy:function(){this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy()},_mouseCapture:function(b){var c=this.options;return!(this.helper||c.disabled||a(b.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(b),!!this.handle&&(a(c.iframeFix===!0?"iframe":c.iframeFix).each(function(){a("<div class='ui-draggable-iframeFix' style='background: #fff;'></div>").css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(a(this).offset()).appendTo("body")}),!0))},_mouseStart:function(b){var c=this.options;return this.helper=this._createHelper(b),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),a.ui.ddmanager&&(a.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offsetParent=this.helper.offsetParent(),this.offsetParentCssPosition=this.offsetParent.css("position"),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},this.offset.scroll=!1,a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(b),this.originalPageX=b.pageX,this.originalPageY=b.pageY,c.cursorAt&&this._adjustOffsetFromHelper(c.cursorAt),this._setContainment(),this._trigger("start",b)===!1?(this._clear(),!1):(this._cacheHelperProportions(),a.ui.ddmanager&&!c.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b),this._mouseDrag(b,!0),a.ui.ddmanager&&a.ui.ddmanager.dragStart(this,b),!0)},_mouseDrag:function(b,c){if("fixed"===this.offsetParentCssPosition&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(b),this.positionAbs=this._convertPositionTo("absolute"),!c){var d=this._uiHash();if(this._trigger("drag",b,d)===!1)return this._mouseUp({}),!1;this.position=d.position}return this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),a.ui.ddmanager&&a.ui.ddmanager.drag(this,b),!1},_mouseStop:function(b){var c=this,d=!1;return a.ui.ddmanager&&!this.options.dropBehaviour&&(d=a.ui.ddmanager.drop(this,b)),this.dropped&&(d=this.dropped,this.dropped=!1),!("original"===this.options.helper&&!a.contains(this.element[0].ownerDocument,this.element[0]))&&("invalid"===this.options.revert&&!d||"valid"===this.options.revert&&d||this.options.revert===!0||a.isFunction(this.options.revert)&&this.options.revert.call(this.element,d)?a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){c._trigger("stop",b)!==!1&&c._clear()}):this._trigger("stop",b)!==!1&&this._clear(),!1)},_mouseUp:function(b){return a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),a.ui.ddmanager&&a.ui.ddmanager.dragStop(this,b),a.ui.mouse.prototype._mouseUp.call(this,b)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(b){return!this.options.handle||!!a(b.target).closest(this.element.find(this.options.handle)).length},_createHelper:function(b){var c=this.options,d=a.isFunction(c.helper)?a(c.helper.apply(this.element[0],[b])):"clone"===c.helper?this.element.clone().removeAttr("id"):this.element;return d.parents("body").length||d.appendTo("parent"===c.appendTo?this.element[0].parentNode:c.appendTo),d[0]===this.element[0]||/(fixed|absolute)/.test(d.css("position"))||d.css("position","absolute"),d},_adjustOffsetFromHelper:function(b){"string"==typeof b&&(b=b.split(" ")),a.isArray(b)&&(b={left:+b[0],top:+b[1]||0}),"left"in b&&(this.offset.click.left=b.left+this.margins.left),"right"in b&&(this.offset.click.left=this.helperProportions.width-b.right+this.margins.left),"top"in b&&(this.offset.click.top=b.top+this.margins.top),"bottom"in b&&(this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top)},_getParentOffset:function(){var b=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&a.contains(this.scrollParent[0],this.offsetParent[0])&&(b.left+=this.scrollParent.scrollLeft(),b.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&a.ui.ie)&&(b={top:0,left:0}),{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var a=this.element.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var b,c,d,e=this.options;return e.containment?"window"===e.containment?void(this.containment=[a(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,a(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,a(window).scrollLeft()+a(window).width()-this.helperProportions.width-this.margins.left,a(window).scrollTop()+(a(window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):"document"===e.containment?void(this.containment=[0,0,a(document).width()-this.helperProportions.width-this.margins.left,(a(document).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):e.containment.constructor===Array?void(this.containment=e.containment):("parent"===e.containment&&(e.containment=this.helper[0].parentNode),c=a(e.containment),d=c[0],void(d&&(b="hidden"!==c.css("overflow"),this.containment=[(parseInt(c.css("borderLeftWidth"),10)||0)+(parseInt(c.css("paddingLeft"),10)||0),(parseInt(c.css("borderTopWidth"),10)||0)+(parseInt(c.css("paddingTop"),10)||0),(b?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(c.css("borderRightWidth"),10)||0)-(parseInt(c.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(b?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(c.css("borderBottomWidth"),10)||0)-(parseInt(c.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=c))):void(this.containment=null)},_convertPositionTo:function(b,c){c||(c=this.position);var d="absolute"===b?1:-1,e="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&a.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent;return this.offset.scroll||(this.offset.scroll={top:e.scrollTop(),left:e.scrollLeft()}),{top:c.top+this.offset.relative.top*d+this.offset.parent.top*d-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top)*d,left:c.left+this.offset.relative.left*d+this.offset.parent.left*d-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)*d}},_generatePosition:function(b){var c,d,e,f,g=this.options,h="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&a.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,i=b.pageX,j=b.pageY;return this.offset.scroll||(this.offset.scroll={top:h.scrollTop(),left:h.scrollLeft()}),this.originalPosition&&(this.containment&&(this.relative_container?(d=this.relative_container.offset(),c=[this.containment[0]+d.left,this.containment[1]+d.top,this.containment[2]+d.left,this.containment[3]+d.top]):c=this.containment,b.pageX-this.offset.click.left<c[0]&&(i=c[0]+this.offset.click.left),b.pageY-this.offset.click.top<c[1]&&(j=c[1]+this.offset.click.top),b.pageX-this.offset.click.left>c[2]&&(i=c[2]+this.offset.click.left),b.pageY-this.offset.click.top>c[3]&&(j=c[3]+this.offset.click.top)),g.grid&&(e=g.grid[1]?this.originalPageY+Math.round((j-this.originalPageY)/g.grid[1])*g.grid[1]:this.originalPageY,j=c?e-this.offset.click.top>=c[1]||e-this.offset.click.top>c[3]?e:e-this.offset.click.top>=c[1]?e-g.grid[1]:e+g.grid[1]:e,f=g.grid[0]?this.originalPageX+Math.round((i-this.originalPageX)/g.grid[0])*g.grid[0]:this.originalPageX,i=c?f-this.offset.click.left>=c[0]||f-this.offset.click.left>c[2]?f:f-this.offset.click.left>=c[0]?f-g.grid[0]:f+g.grid[0]:f)),{top:j-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top),left:i-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1},_trigger:function(b,c,d){return d=d||this._uiHash(),a.ui.plugin.call(this,b,[c,d]),"drag"===b&&(this.positionAbs=this._convertPositionTo("absolute")),a.Widget.prototype._trigger.call(this,b,c,d)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),a.ui.plugin.add("draggable","connectToSortable",{start:function(b,c){var d=a(this).data("ui-draggable"),e=d.options,f=a.extend({},c,{item:d.element});d.sortables=[],a(e.connectToSortable).each(function(){var c=a.data(this,"ui-sortable");c&&!c.options.disabled&&(d.sortables.push({instance:c,shouldRevert:c.options.revert}),c.refreshPositions(),c._trigger("activate",b,f))})},stop:function(b,c){var d=a(this).data("ui-draggable"),e=a.extend({},c,{item:d.element});a.each(d.sortables,function(){this.instance.isOver?(this.instance.isOver=0,d.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=this.shouldRevert),this.instance._mouseStop(b),this.instance.options.helper=this.instance.options._helper,"original"===d.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",b,e))})},drag:function(b,c){var d=a(this).data("ui-draggable"),e=this;a.each(d.sortables,function(){var f=!1,g=this;this.instance.positionAbs=d.positionAbs,this.instance.helperProportions=d.helperProportions,this.instance.offset.click=d.offset.click,this.instance._intersectsWith(this.instance.containerCache)&&(f=!0,a.each(d.sortables,function(){return this.instance.positionAbs=d.positionAbs,this.instance.helperProportions=d.helperProportions,this.instance.offset.click=d.offset.click,this!==g&&this.instance._intersectsWith(this.instance.containerCache)&&a.contains(g.instance.element[0],this.instance.element[0])&&(f=!1),f})),f?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=a(e).clone().removeAttr("id").appendTo(this.instance.element).data("ui-sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return c.helper[0]},b.target=this.instance.currentItem[0],this.instance._mouseCapture(b,!0),this.instance._mouseStart(b,!0,!0),this.instance.offset.click.top=d.offset.click.top,this.instance.offset.click.left=d.offset.click.left,this.instance.offset.parent.left-=d.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=d.offset.parent.top-this.instance.offset.parent.top,d._trigger("toSortable",b),d.dropped=this.instance.element,d.currentItem=d.element,this.instance.fromOutside=d),this.instance.currentItem&&this.instance._mouseDrag(b)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",b,this.instance._uiHash(this.instance)),this.instance._mouseStop(b,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),d._trigger("fromSortable",b),d.dropped=!1)})}}),a.ui.plugin.add("draggable","cursor",{start:function(){var b=a("body"),c=a(this).data("ui-draggable").options;b.css("cursor")&&(c._cursor=b.css("cursor")),b.css("cursor",c.cursor)},stop:function(){var b=a(this).data("ui-draggable").options;b._cursor&&a("body").css("cursor",b._cursor)}}),a.ui.plugin.add("draggable","opacity",{start:function(b,c){var d=a(c.helper),e=a(this).data("ui-draggable").options;d.css("opacity")&&(e._opacity=d.css("opacity")),d.css("opacity",e.opacity)},stop:function(b,c){var d=a(this).data("ui-draggable").options;d._opacity&&a(c.helper).css("opacity",d._opacity)}}),a.ui.plugin.add("draggable","scroll",{start:function(){var b=a(this).data("ui-draggable");b.scrollParent[0]!==document&&"HTML"!==b.scrollParent[0].tagName&&(b.overflowOffset=b.scrollParent.offset())},drag:function(b){var c=a(this).data("ui-draggable"),d=c.options,e=!1;c.scrollParent[0]!==document&&"HTML"!==c.scrollParent[0].tagName?(d.axis&&"x"===d.axis||(c.overflowOffset.top+c.scrollParent[0].offsetHeight-b.pageY<d.scrollSensitivity?c.scrollParent[0].scrollTop=e=c.scrollParent[0].scrollTop+d.scrollSpeed:b.pageY-c.overflowOffset.top<d.scrollSensitivity&&(c.scrollParent[0].scrollTop=e=c.scrollParent[0].scrollTop-d.scrollSpeed)),d.axis&&"y"===d.axis||(c.overflowOffset.left+c.scrollParent[0].offsetWidth-b.pageX<d.scrollSensitivity?c.scrollParent[0].scrollLeft=e=c.scrollParent[0].scrollLeft+d.scrollSpeed:b.pageX-c.overflowOffset.left<d.scrollSensitivity&&(c.scrollParent[0].scrollLeft=e=c.scrollParent[0].scrollLeft-d.scrollSpeed))):(d.axis&&"x"===d.axis||(b.pageY-a(document).scrollTop()<d.scrollSensitivity?e=a(document).scrollTop(a(document).scrollTop()-d.scrollSpeed):a(window).height()-(b.pageY-a(document).scrollTop())<d.scrollSensitivity&&(e=a(document).scrollTop(a(document).scrollTop()+d.scrollSpeed))),d.axis&&"y"===d.axis||(b.pageX-a(document).scrollLeft()<d.scrollSensitivity?e=a(document).scrollLeft(a(document).scrollLeft()-d.scrollSpeed):a(window).width()-(b.pageX-a(document).scrollLeft())<d.scrollSensitivity&&(e=a(document).scrollLeft(a(document).scrollLeft()+d.scrollSpeed)))),e!==!1&&a.ui.ddmanager&&!d.dropBehaviour&&a.ui.ddmanager.prepareOffsets(c,b)}}),a.ui.plugin.add("draggable","snap",{start:function(){var b=a(this).data("ui-draggable"),c=b.options;b.snapElements=[],a(c.snap.constructor!==String?c.snap.items||":data(ui-draggable)":c.snap).each(function(){var c=a(this),d=c.offset();this!==b.element[0]&&b.snapElements.push({item:this,width:c.outerWidth(),height:c.outerHeight(),top:d.top,left:d.left})})},drag:function(b,c){var d,e,f,g,h,i,j,k,l,m,n=a(this).data("ui-draggable"),o=n.options,p=o.snapTolerance,q=c.offset.left,r=q+n.helperProportions.width,s=c.offset.top,t=s+n.helperProportions.height;for(l=n.snapElements.length-1;l>=0;l--)h=n.snapElements[l].left,i=h+n.snapElements[l].width,j=n.snapElements[l].top,k=j+n.snapElements[l].height,r<h-p||q>i+p||t<j-p||s>k+p||!a.contains(n.snapElements[l].item.ownerDocument,n.snapElements[l].item)?(n.snapElements[l].snapping&&n.options.snap.release&&n.options.snap.release.call(n.element,b,a.extend(n._uiHash(),{snapItem:n.snapElements[l].item})),n.snapElements[l].snapping=!1):("inner"!==o.snapMode&&(d=Math.abs(j-t)<=p,e=Math.abs(k-s)<=p,f=Math.abs(h-r)<=p,g=Math.abs(i-q)<=p,d&&(c.position.top=n._convertPositionTo("relative",{top:j-n.helperProportions.height,left:0}).top-n.margins.top),e&&(c.position.top=n._convertPositionTo("relative",{top:k,left:0}).top-n.margins.top),f&&(c.position.left=n._convertPositionTo("relative",{top:0,left:h-n.helperProportions.width}).left-n.margins.left),g&&(c.position.left=n._convertPositionTo("relative",{top:0,left:i}).left-n.margins.left)),m=d||e||f||g,"outer"!==o.snapMode&&(d=Math.abs(j-s)<=p,e=Math.abs(k-t)<=p,f=Math.abs(h-q)<=p,g=Math.abs(i-r)<=p,d&&(c.position.top=n._convertPositionTo("relative",{top:j,left:0}).top-n.margins.top),e&&(c.position.top=n._convertPositionTo("relative",{top:k-n.helperProportions.height,left:0}).top-n.margins.top),f&&(c.position.left=n._convertPositionTo("relative",{top:0,left:h}).left-n.margins.left),g&&(c.position.left=n._convertPositionTo("relative",{top:0,left:i-n.helperProportions.width}).left-n.margins.left)),!n.snapElements[l].snapping&&(d||e||f||g||m)&&n.options.snap.snap&&n.options.snap.snap.call(n.element,b,a.extend(n._uiHash(),{snapItem:n.snapElements[l].item})),n.snapElements[l].snapping=d||e||f||g||m)}}),a.ui.plugin.add("draggable","stack",{start:function(){var b,c=this.data("ui-draggable").options,d=a.makeArray(a(c.stack)).sort(function(b,c){return(parseInt(a(b).css("zIndex"),10)||0)-(parseInt(a(c).css("zIndex"),10)||0)});d.length&&(b=parseInt(a(d[0]).css("zIndex"),10)||0,a(d).each(function(c){a(this).css("zIndex",b+c)}),this.css("zIndex",b+d.length))}}),a.ui.plugin.add("draggable","zIndex",{start:function(b,c){var d=a(c.helper),e=a(this).data("ui-draggable").options;d.css("zIndex")&&(e._zIndex=d.css("zIndex")),d.css("zIndex",e.zIndex)},stop:function(b,c){var d=a(this).data("ui-draggable").options;d._zIndex&&a(c.helper).css("zIndex",d._zIndex)}})}(jQuery),function(a,b){function c(a,b,c){return a>b&&a<b+c}a.widget("ui.droppable",{version:"1.10.3",widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var b=this.options,c=b.accept;this.isover=!1,this.isout=!0,this.accept=a.isFunction(c)?c:function(a){return a.is(c)},this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight},a.ui.ddmanager.droppables[b.scope]=a.ui.ddmanager.droppables[b.scope]||[],a.ui.ddmanager.droppables[b.scope].push(this),b.addClasses&&this.element.addClass("ui-droppable")},_destroy:function(){for(var b=0,c=a.ui.ddmanager.droppables[this.options.scope];b<c.length;b++)c[b]===this&&c.splice(b,1);this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(b,c){"accept"===b&&(this.accept=a.isFunction(c)?c:function(a){return a.is(c)}),a.Widget.prototype._setOption.apply(this,arguments)},_activate:function(b){var c=a.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),c&&this._trigger("activate",b,this.ui(c))},_deactivate:function(b){var c=a.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),c&&this._trigger("deactivate",b,this.ui(c))},_over:function(b){var c=a.ui.ddmanager.current;c&&(c.currentItem||c.element)[0]!==this.element[0]&&this.accept.call(this.element[0],c.currentItem||c.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",b,this.ui(c)))},_out:function(b){var c=a.ui.ddmanager.current;c&&(c.currentItem||c.element)[0]!==this.element[0]&&this.accept.call(this.element[0],c.currentItem||c.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",b,this.ui(c)))},_drop:function(b,c){var d=c||a.ui.ddmanager.current,e=!1;return!(!d||(d.currentItem||d.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var b=a.data(this,"ui-droppable");if(b.options.greedy&&!b.options.disabled&&b.options.scope===d.options.scope&&b.accept.call(b.element[0],d.currentItem||d.element)&&a.ui.intersect(d,a.extend(b,{offset:b.element.offset()}),b.options.tolerance))return e=!0,!1}),!e&&(!!this.accept.call(this.element[0],d.currentItem||d.element)&&(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",b,this.ui(d)),this.element)))},ui:function(a){return{draggable:a.currentItem||a.element,helper:
vendor: 26,274 bytes, line 17901
17901a.helper,position:a.position,offset:a.positionAbs}}}),a.ui.intersect=function(a,b,d){if(!b.offset)return!1;var e,f,g=(a.positionAbs||a.position.absolute).left,h=g+a.helperProportions.width,i=(a.positionAbs||a.position.absolute).top,j=i+a.helperProportions.height,k=b.offset.left,l=k+b.proportions.width,m=b.offset.top,n=m+b.proportions.height;switch(d){case"fit":return k<=g&&h<=l&&m<=i&&j<=n;case"intersect":return k<g+a.helperProportions.width/2&&h-a.helperProportions.width/2<l&&m<i+a.helperProportions.height/2&&j-a.helperProportions.height/2<n;case"pointer":return e=(a.positionAbs||a.position.absolute).left+(a.clickOffset||a.offset.click).left,f=(a.positionAbs||a.position.absolute).top+(a.clickOffset||a.offset.click).top,c(f,m,b.proportions.height)&&c(e,k,b.proportions.width);case"touch":return(i>=m&&i<=n||j>=m&&j<=n||i<m&&j>n)&&(g>=k&&g<=l||h>=k&&h<=l||g<k&&h>l);default:return!1}},a.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(b,c){var d,e,f=a.ui.ddmanager.droppables[b.options.scope]||[],g=c?c.type:null,h=(b.currentItem||b.element).find(":data(ui-droppable)").addBack();a:for(d=0;d<f.length;d++)if(!(f[d].options.disabled||b&&!f[d].accept.call(f[d].element[0],b.currentItem||b.element))){for(e=0;e<h.length;e++)if(h[e]===f[d].element[0]){f[d].proportions.height=0;continue a}f[d].visible="none"!==f[d].element.css("display"),f[d].visible&&("mousedown"===g&&f[d]._activate.call(f[d],c),f[d].offset=f[d].element.offset(),f[d].proportions={width:f[d].element[0].offsetWidth,height:f[d].element[0].offsetHeight})}},drop:function(b,c){var d=!1;return a.each((a.ui.ddmanager.droppables[b.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&a.ui.intersect(b,this,this.options.tolerance)&&(d=this._drop.call(this,c)||d),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],b.currentItem||b.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,c)))}),d},dragStart:function(b,c){b.element.parentsUntil("body").bind("scroll.droppable",function(){b.options.refreshPositions||a.ui.ddmanager.prepareOffsets(b,c)})},drag:function(b,c){b.options.refreshPositions&&a.ui.ddmanager.prepareOffsets(b,c),a.each(a.ui.ddmanager.droppables[b.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var d,e,f,g=a.ui.intersect(b,this,this.options.tolerance),h=!g&&this.isover?"isout":g&&!this.isover?"isover":null;h&&(this.options.greedy&&(e=this.options.scope,f=this.element.parents(":data(ui-droppable)").filter(function(){return a.data(this,"ui-droppable").options.scope===e}),f.length&&(d=a.data(f[0],"ui-droppable"),d.greedyChild="isover"===h)),d&&"isover"===h&&(d.isover=!1,d.isout=!0,d._out.call(d,c)),this[h]=!0,this["isout"===h?"isover":"isout"]=!1,this["isover"===h?"_over":"_out"].call(this,c),d&&"isout"===h&&(d.isout=!1,d.isover=!0,d._over.call(d,c)))}})},dragStop:function(b,c){b.element.parentsUntil("body").unbind("scroll.droppable"),b.options.refreshPositions||a.ui.ddmanager.prepareOffsets(b,c)}}}(jQuery),function(a,b){function c(a){return parseInt(a,10)||0}function d(a){return!isNaN(parseInt(a,10))}a.widget("ui.resizable",a.ui.mouse,{version:"1.10.3",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_create:function(){var b,c,d,e,f,g=this,h=this.options;if(this.element.addClass("ui-resizable"),a.extend(this,{_aspectRatio:!!h.aspectRatio,aspectRatio:h.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:h.helper||h.ghost||h.animate?h.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)&&(this.element.wrap(a("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.data("ui-resizable")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=h.handles||(a(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),b=this.handles.split(","),this.handles={},c=0;c<b.length;c++)d=a.trim(b[c]),f="ui-resizable-"+d,e=a("<div class='ui-resizable-handle "+f+"'></div>"),e.css({zIndex:h.zIndex}),"se"===d&&e.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[d]=".ui-resizable-"+d,this.element.append(e);this._renderAxis=function(b){var c,d,e,f;b=b||this.element;for(c in this.handles)this.handles[c].constructor===String&&(this.handles[c]=a(this.handles[c],this.element).show()),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)&&(d=a(this.handles[c],this.element),f=/sw|ne|nw|se|n|s/.test(c)?d.outerHeight():d.outerWidth(),e=["padding",/ne|nw|n/.test(c)?"Top":/se|sw|s/.test(c)?"Bottom":/^e$/.test(c)?"Right":"Left"].join(""),b.css(e,f),this._proportionallyResize()),a(this.handles[c]).length},this._renderAxis(this.element),this._handles=a(".ui-resizable-handle",this.element).disableSelection(),this._handles.mouseover(function(){g.resizing||(this.className&&(e=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),g.axis=e&&e[1]?e[1]:"se")}),h.autoHide&&(this._handles.hide(),a(this.element).addClass("ui-resizable-autohide").mouseenter(function(){h.disabled||(a(this).removeClass("ui-resizable-autohide"),g._handles.show())}).mouseleave(function(){h.disabled||g.resizing||(a(this).addClass("ui-resizable-autohide"),g._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var b,c=function(b){a(b).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(c(this.element),b=this.element,this.originalElement.css({position:b.css("position"),width:b.outerWidth(),height:b.outerHeight(),top:b.css("top"),left:b.css("left")}).insertAfter(b),b.remove()),this.originalElement.css("resize",this.originalResizeStyle),c(this.originalElement),this},_mouseCapture:function(b){var c,d,e=!1;for(c in this.handles)d=a(this.handles[c])[0],(d===b.target||a.contains(d,b.target))&&(e=!0);return!this.options.disabled&&e},_mouseStart:function(b){var d,e,f,g=this.options,h=this.element.position(),i=this.element;return this.resizing=!0,/absolute/.test(i.css("position"))?i.css({position:"absolute",top:i.css("top"),left:i.css("left")}):i.is(".ui-draggable")&&i.css({position:"absolute",top:h.top,left:h.left}),this._renderProxy(),d=c(this.helper.css("left")),e=c(this.helper.css("top")),g.containment&&(d+=a(g.containment).scrollLeft()||0,e+=a(g.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:d,top:e},this.size=this._helper?{width:i.outerWidth(),height:i.outerHeight()}:{width:i.width(),height:i.height()},this.originalSize=this._helper?{width:i.outerWidth(),height:i.outerHeight()}:{width:i.width(),height:i.height()},this.originalPosition={left:d,top:e},this.sizeDiff={width:i.outerWidth()-i.width(),height:i.outerHeight()-i.height()},this.originalMousePosition={left:b.pageX,top:b.pageY},this.aspectRatio="number"==typeof g.aspectRatio?g.aspectRatio:this.originalSize.width/this.originalSize.height||1,f=a(".ui-resizable-"+this.axis).css("cursor"),a("body").css("cursor","auto"===f?this.axis+"-resize":f),i.addClass("ui-resizable-resizing"),this._propagate("start",b),!0},_mouseDrag:function(b){var c,d=this.helper,e={},f=this.originalMousePosition,g=this.axis,h=this.position.top,i=this.position.left,j=this.size.width,k=this.size.height,l=b.pageX-f.left||0,m=b.pageY-f.top||0,n=this._change[g];return!!n&&(c=n.apply(this,[b,l,m]),this._updateVirtualBoundaries(b.shiftKey),(this._aspectRatio||b.shiftKey)&&(c=this._updateRatio(c,b)),c=this._respectSize(c,b),this._updateCache(c),this._propagate("resize",b),this.position.top!==h&&(e.top=this.position.top+"px"),this.position.left!==i&&(e.left=this.position.left+"px"),this.size.width!==j&&(e.width=this.size.width+"px"),this.size.height!==k&&(e.height=this.size.height+"px"),d.css(e),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),a.isEmptyObject(e)||this._trigger("resize",b,this.ui()),!1)},_mouseStop:function(b){this.resizing=!1;var c,d,e,f,g,h,i,j=this.options,k=this;return this._helper&&(c=this._proportionallyResizeElements,d=c.length&&/textarea/i.test(c[0].nodeName),e=d&&a.ui.hasScroll(c[0],"left")?0:k.sizeDiff.height,f=d?0:k.sizeDiff.width,g={width:k.helper.width()-f,height:k.helper.height()-e},h=parseInt(k.element.css("left"),10)+(k.position.left-k.originalPosition.left)||null,i=parseInt(k.element.css("top"),10)+(k.position.top-k.originalPosition.top)||null,j.animate||this.element.css(a.extend(g,{top:i,left:h})),k.helper.height(k.size.height),k.helper.width(k.size.width),this._helper&&!j.animate&&this._proportionallyResize()),a("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",b),this._helper&&this.helper.remove(),!1},_updateVirtualBoundaries:function(a){var b,c,e,f,g,h=this.options;g={minWidth:d(h.minWidth)?h.minWidth:0,maxWidth:d(h.maxWidth)?h.maxWidth:1/0,minHeight:d(h.minHeight)?h.minHeight:0,maxHeight:d(h.maxHeight)?h.maxHeight:1/0},(this._aspectRatio||a)&&(b=g.minHeight*this.aspectRatio,e=g.minWidth/this.aspectRatio,c=g.maxHeight*this.aspectRatio,f=g.maxWidth/this.aspectRatio,b>g.minWidth&&(g.minWidth=b),e>g.minHeight&&(g.minHeight=e),c<g.maxWidth&&(g.maxWidth=c),f<g.maxHeight&&(g.maxHeight=f)),this._vBoundaries=g},_updateCache:function(a){this.offset=this.helper.offset(),d(a.left)&&(this.position.left=a.left),d(a.top)&&(this.position.top=a.top),d(a.height)&&(this.size.height=a.height),d(a.width)&&(this.size.width=a.width)},_updateRatio:function(a){var b=this.position,c=this.size,e=this.axis;return d(a.height)?a.width=a.height*this.aspectRatio:d(a.width)&&(a.height=a.width/this.aspectRatio),"sw"===e&&(a.left=b.left+(c.width-a.width),a.top=null),"nw"===e&&(a.top=b.top+(c.height-a.height),a.left=b.left+(c.width-a.width)),a},_respectSize:function(a){var b=this._vBoundaries,c=this.axis,e=d(a.width)&&b.maxWidth&&b.maxWidth<a.width,f=d(a.height)&&b.maxHeight&&b.maxHeight<a.height,g=d(a.width)&&b.minWidth&&b.minWidth>a.width,h=d(a.height)&&b.minHeight&&b.minHeight>a.height,i=this.originalPosition.left+this.originalSize.width,j=this.position.top+this.size.height,k=/sw|nw|w/.test(c),l=/nw|ne|n/.test(c);return g&&(a.width=b.minWidth),h&&(a.height=b.minHeight),e&&(a.width=b.maxWidth),f&&(a.height=b.maxHeight),g&&k&&(a.left=i-b.minWidth),e&&k&&(a.left=i-b.maxWidth),h&&l&&(a.top=j-b.minHeight),f&&l&&(a.top=j-b.maxHeight),a.width||a.height||a.left||!a.top?a.width||a.height||a.top||!a.left||(a.left=null):a.top=null,a},_proportionallyResize:function(){if(this._proportionallyResizeElements.length){var a,b,c,d,e,f=this.helper||this.element;for(a=0;a<this._proportionallyResizeElements.length;a++){if(e=this._proportionallyResizeElements[a],!this.borderDif)for(this.borderDif=[],c=[e.css("borderTopWidth"),e.css("borderRightWidth"),e.css("borderBottomWidth"),e.css("borderLeftWidth")],d=[e.css("paddingTop"),e.css("paddingRight"),e.css("paddingBottom"),e.css("paddingLeft")],b=0;b<c.length;b++)this.borderDif[b]=(parseInt(c[b],10)||0)+(parseInt(d[b],10)||0);e.css({height:f.height()-this.borderDif[0]-this.borderDif[2]||0,width:f.width()-this.borderDif[1]-this.borderDif[3]||0})}}},_renderProxy:function(){var b=this.element,c=this.options;this.elementOffset=b.offset(),this._helper?(this.helper=this.helper||a("<div style='overflow:hidden;'></div>"),this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++c.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(a,b){return{width:this.originalSize.width+b}},w:function(a,b){var c=this.originalSize,d=this.originalPosition;return{left:d.left+b,width:c.width-b}},n:function(a,b,c){var d=this.originalSize,e=this.originalPosition;return{top:e.top+c,height:d.height-c}},s:function(a,b,c){return{height:this.originalSize.height+c}},se:function(b,c,d){return a.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[b,c,d]))},sw:function(b,c,d){return a.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[b,c,d]))},ne:function(b,c,d){return a.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[b,c,d]))},nw:function(b,c,d){return a.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[b,c,d]))}},_propagate:function(b,c){a.ui.plugin.call(this,b,[c,this.ui()]),"resize"!==b&&this._trigger(b,c,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),a.ui.plugin.add("resizable","animate",{stop:function(b){var c=a(this).data("ui-resizable"),d=c.options,e=c._proportionallyResizeElements,f=e.length&&/textarea/i.test(e[0].nodeName),g=f&&a.ui.hasScroll(e[0],"left")?0:c.sizeDiff.height,h=f?0:c.sizeDiff.width,i={width:c.size.width-h,height:c.size.height-g},j=parseInt(c.element.css("left"),10)+(c.position.left-c.originalPosition.left)||null,k=parseInt(c.element.css("top"),10)+(c.position.top-c.originalPosition.top)||null;c.element.animate(a.extend(i,k&&j?{top:k,left:j}:{}),{duration:d.animateDuration,easing:d.animateEasing,step:function(){var d={width:parseInt(c.element.css("width"),10),height:parseInt(c.element.css("height"),10),top:parseInt(c.element.css("top"),10),left:parseInt(c.element.css("left"),10)};e&&e.length&&a(e[0]).css({width:d.width,height:d.height}),c._updateCache(d),c._propagate("resize",b)}})}}),a.ui.plugin.add("resizable","containment",{start:function(){var b,d,e,f,g,h,i,j=a(this).data("ui-resizable"),k=j.options,l=j.element,m=k.containment,n=m instanceof a?m.get(0):/parent/.test(m)?l.parent().get(0):m;n&&(j.containerElement=a(n),/document/.test(m)||m===document?(j.containerOffset={left:0,top:0},j.containerPosition={left:0,top:0},j.parentData={element:a(document),left:0,top:0,width:a(document).width(),height:a(document).height()||document.body.parentNode.scrollHeight}):(b=a(n),d=[],a(["Top","Right","Left","Bottom"]).each(function(a,e){d[a]=c(b.css("padding"+e))}),j.containerOffset=b.offset(),j.containerPosition=b.position(),j.containerSize={height:b.innerHeight()-d[3],width:b.innerWidth()-d[1]},e=j.containerOffset,f=j.containerSize.height,g=j.containerSize.width,h=a.ui.hasScroll(n,"left")?n.scrollWidth:g,i=a.ui.hasScroll(n)?n.scrollHeight:f,j.parentData={element:n,left:e.left,top:e.top,width:h,height:i}))},resize:function(b){var c,d,e,f,g=a(this).data("ui-resizable"),h=g.options,i=g.containerOffset,j=g.position,k=g._aspectRatio||b.shiftKey,l={top:0,left:0},m=g.containerElement;m[0]!==document&&/static/.test(m.css("position"))&&(l=i),j.left<(g._helper?i.left:0)&&(g.size.width=g.size.width+(g._helper?g.position.left-i.left:g.position.left-l.left),k&&(g.size.height=g.size.width/g.aspectRatio),g.position.left=h.helper?i.left:0),j.top<(g._helper?i.top:0)&&(g.size.height=g.size.height+(g._helper?g.position.top-i.top:g.position.top),k&&(g.size.width=g.size.height*g.aspectRatio),g.position.top=g._helper?i.top:0),g.offset.left=g.parentData.left+g.position.left,g.offset.top=g.parentData.top+g.position.top,c=Math.abs((g._helper?g.offset.left-l.left:g.offset.left-l.left)+g.sizeDiff.width),d=Math.abs((g._helper?g.offset.top-l.top:g.offset.top-i.top)+g.sizeDiff.height),e=g.containerElement.get(0)===g.element.parent().get(0),f=/relative|absolute/.test(g.containerElement.css("position")),e&&f&&(c-=g.parentData.left),c+g.size.width>=g.parentData.width&&(g.size.width=g.parentData.width-c,k&&(g.size.height=g.size.width/g.aspectRatio)),d+g.size.height>=g.parentData.height&&(g.size.height=g.parentData.height-d,k&&(g.size.width=g.size.height*g.aspectRatio))},stop:function(){var b=a(this).data("ui-resizable"),c=b.options,d=b.containerOffset,e=b.containerPosition,f=b.containerElement,g=a(b.helper),h=g.offset(),i=g.outerWidth()-b.sizeDiff.width,j=g.outerHeight()-b.sizeDiff.height;b._helper&&!c.animate&&/relative/.test(f.css("position"))&&a(this).css({left:h.left-e.left-d.left,width:i,height:j}),b._helper&&!c.animate&&/static/.test(f.css("position"))&&a(this).css({left:h.left-e.left-d.left,width:i,height:j})}}),a.ui.plugin.add("resizable","alsoResize",{start:function(){var b=a(this).data("ui-resizable"),c=b.options,d=function(b){a(b).each(function(){var b=a(this);b.data("ui-resizable-alsoresize",{width:parseInt(b.width(),10),height:parseInt(b.height(),10),left:parseInt(b.css("left"),10),top:parseInt(b.css("top"),10)})})};"object"!=typeof c.alsoResize||c.alsoResize.parentNode?d(c.alsoResize):c.alsoResize.length?(c.alsoResize=c.alsoResize[0],d(c.alsoResize)):a.each(c.alsoResize,function(a){d(a)})},resize:function(b,c){var d=a(this).data("ui-resizable"),e=d.options,f=d.originalSize,g=d.originalPosition,h={height:d.size.height-f.height||0,width:d.size.width-f.width||0,top:d.position.top-g.top||0,left:d.position.left-g.left||0},i=function(b,d){a(b).each(function(){var b=a(this),e=a(this).data("ui-resizable-alsoresize"),f={},g=d&&d.length?d:b.parents(c.originalElement[0]).length?["width","height"]:["width","height","top","left"];a.each(g,function(a,b){var c=(e[b]||0)+(h[b]||0);c&&c>=0&&(f[b]=c||null)}),b.css(f)})};"object"!=typeof e.alsoResize||e.alsoResize.nodeType?i(e.alsoResize):a.each(e.alsoResize,function(a,b){i(a,b)})},stop:function(){a(this).removeData("resizable-alsoresize")}}),a.ui.plugin.add("resizable","ghost",{start:function(){var b=a(this).data("ui-resizable"),c=b.options,d=b.size;b.ghost=b.originalElement.clone(),b.ghost.css({opacity:.25,display:"block",position:"relative",height:d.height,width:d.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof c.ghost?c.ghost:""),b.ghost.appendTo(b.helper)},resize:function(){var b=a(this).data("ui-resizable");b.ghost&&b.ghost.css({position:"relative",height:b.size.height,width:b.size.width})},stop:function(){var b=a(this).data("ui-resizable");b.ghost&&b.helper&&b.helper.get(0).removeChild(b.ghost.get(0))}}),a.ui.plugin.add("resizable","grid",{resize:function(){var b=a(this).data("ui-resizable"),c=b.options,d=b.size,e=b.originalSize,f=b.originalPosition,g=b.axis,h="number"==typeof c.grid?[c.grid,c.grid]:c.grid,i=h[0]||1,j=h[1]||1,k=Math.round((d.width-e.width)/i)*i,l=Math.round((d.height-e.height)/j)*j,m=e.width+k,n=e.height+l,o=c.maxWidth&&c.maxWidth<m,p=c.maxHeight&&c.maxHeight<n,q=c.minWidth&&c.minWidth>m,r=c.minHeight&&c.minHeight>n;c.grid=h,q&&(m+=i),r&&(n+=j),o&&(m-=i),p&&(n-=j),/^(se|s|e)$/.test(g)?(b.size.width=m,b.size.height=n):/^(ne)$/.test(g)?(b.size.width=m,b.size.height=n,b.position.top=f.top-l):/^(sw)$/.test(g)?(b.size.width=m,b.size.height=n,b.position.left=f.left-k):(b.size.width=m,b.size.height=n,b.position.top=f.top-l,b.position.left=f.left-k)}})}(jQuery),function(a,b){a.widget("ui.selectable",a.ui.mouse,{version:"1.10.3",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var b,c=this;this.element.addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){b=a(c.options.filter,c.element[0]),b.addClass("ui-selectee"),b.each(function(){var b=a(this),c=b.offset();a.data(this,"selectable-item",{element:this,$element:b,left:c.left,top:c.top,right:c.left+b.outerWidth(),bottom:c.top+b.outerHeight(),startselected:!1,selected:b.hasClass("ui-selected"),selecting:b.hasClass("ui-selecting"),unselecting:b.hasClass("ui-unselecting")})})},this.refresh(),this.selectees=b.addClass("ui-selectee"),this._mouseInit(),this.helper=a("<div class='ui-selectable-helper'></div>")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled"),this._mouseDestroy()},_mouseStart:function(b){var c=this,d=this.options;this.opos=[b.pageX,b.pageY],this.options.disabled||(this.selectees=a(d.filter,this.element[0]),this._trigger("start",b),a(d.appendTo).append(this.helper),this.helper.css({left:b.pageX,top:b.pageY,width:0,height:0}),d.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var d=a.data(this,"selectable-item");d.startselected=!0,b.metaKey||b.ctrlKey||(d.$element.removeClass("ui-selected"),d.selected=!1,d.$element.addClass("ui-unselecting"),d.unselecting=!0,c._trigger("unselecting",b,{unselecting:d.element}))}),a(b.target).parents().addBack().each(function(){var d,e=a.data(this,"selectable-item");if(e)return d=!b.metaKey&&!b.ctrlKey||!e.$element.hasClass("ui-selected"),e.$element.removeClass(d?"ui-unselecting":"ui-selected").addClass(d?"ui-selecting":"ui-unselecting"),e.unselecting=!d,e.selecting=d,e.selected=d,d?c._trigger("selecting",b,{selecting:e.element}):c._trigger("unselecting",b,{unselecting:e.element}),!1}))},_mouseDrag:function(b){if(this.dragged=!0,!this.options.disabled){var c,d=this,e=this.options,f=this.opos[0],g=this.opos[1],h=b.pageX,i=b.pageY;return f>h&&(c=h,h=f,f=c),g>i&&(c=i,i=g,g=c),this.helper.css({left:f,top:g,width:h-f,height:i-g}),this.selectees.each(function(){var c=a.data(this,"selectable-item"),j=!1;c&&c.element!==d.element[0]&&("touch"===e.tolerance?j=!(c.left>h||c.right<f||c.top>i||c.bottom<g):"fit"===e.tolerance&&(j=c.left>f&&c.right<h&&c.top>g&&c.bottom<i),j?(c.selected&&(c.$element.removeClass("ui-selected"),c.selected=!1),c.unselecting&&(c.$element.removeClass("ui-unselecting"),c.unselecting=!1),c.selecting||(c.$element.addClass("ui-selecting"),c.selecting=!0,d._trigger("selecting",b,{selecting:c.element}))):(c.selecting&&((b.metaKey||b.ctrlKey)&&c.startselected?(c.$element.removeClass("ui-selecting"),c.selecting=!1,c.$element.addClass("ui-selected"),c.selected=!0):(c.$element.removeClass("ui-selecting"),c.selecting=!1,c.startselected&&(c.$element.addClass("ui-unselecting"),c.unselecting=!0),d._trigger("unselecting",b,{unselecting:c.element}))),c.selected&&(b.metaKey||b.ctrlKey||c.startselected||(c.$element.removeClass("ui-selected"),c.selected=!1,c.$element.addClass("ui-unselecting"),c.unselecting=!0,d._trigger("unselecting",b,{unselecting:c.element})))))}),!1}},_mouseStop:function(b){var c=this;return this.dragged=!1,a(".ui-unselecting",this.element[0]).each(function(){var d=a.data(this,"selectable-item");d.$element.removeClass("ui-unselecting"),d.unselecting=!1,d.startselected=!1,c._trigger("unselected",b,{unselected:d.element})}),a(".ui-selecting",this.element[0]).each(function(){var d=a.data(this,"selectable-item");d.$element.removeClass("ui-selecting").addClass("ui-selected"),d.selecting=!1,d.selected=!0,d.startselected=!0,c._trigger("selected",b,{selected:d.element})}),this._trigger("stop",b),this.helper.remove(),!1}})}(jQuery),function(a,b){function c(a,b,c){return a>b&&a<b+c}function d(a){return/left|right/.test(a.css("float"))||/inline|table-cell/.test(a.css("display"))}a.widget("ui.sortable",a.ui.mouse,{version:"1.10.3",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_create:function(){var a=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=!!this.items.length&&("x"===a.axis||d(this.items[0].item)),this.offset=this.element.offset(),this._mouseInit(),this.ready=!0},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled"),this._mouseDestroy();for(var a=this.items.length-1;a>=0;a--)this.items[a].item.removeData(this.widgetName+"-item");return this},_setOption:function(b,c){"disabled"===b?(this.options[b]=c,this.widget().toggleClass("ui-sortable-disabled",!!c)):a.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(b,c){var d=null,e=!1,f=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(b),a(b.target).parents().each(function(){if(a.data(this,f.widgetName+"-item")===f)return d=a(this),!1}),a.data(b.target,f.widgetName+"-item")===f&&(d=a(b.target)),!!d&&(!(this.options.handle&&!c&&(a(this.options.handle,d).find("*").addBack().each(function(){this===b.target&&(e=!0)}),!e))&&(this.currentItem=d,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(b,c,d){var e,f,g=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(b),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left
vendor: 7,762 bytes, line 17901
17901:this.offset.left-this.margins.left},a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(b),this.originalPageX=b.pageX,this.originalPageY=b.pageY,g.cursorAt&&this._adjustOffsetFromHelper(g.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),g.containment&&this._setContainment(),g.cursor&&"auto"!==g.cursor&&(f=this.document.find("body"),this.storedCursor=f.css("cursor"),f.css("cursor",g.cursor),this.storedStylesheet=a("<style>*{ cursor: "+g.cursor+" !important; }</style>").appendTo(f)),g.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",g.opacity)),g.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",g.zIndex)),this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",b,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!d)for(e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("activate",b,this._uiHash(this));return a.ui.ddmanager&&(a.ui.ddmanager.current=this),a.ui.ddmanager&&!g.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(b),!0},_mouseDrag:function(b){var c,d,e,f,g=this.options,h=!1;for(this.position=this._generatePosition(b),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-b.pageY<g.scrollSensitivity?this.scrollParent[0].scrollTop=h=this.scrollParent[0].scrollTop+g.scrollSpeed:b.pageY-this.overflowOffset.top<g.scrollSensitivity&&(this.scrollParent[0].scrollTop=h=this.scrollParent[0].scrollTop-g.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-b.pageX<g.scrollSensitivity?this.scrollParent[0].scrollLeft=h=this.scrollParent[0].scrollLeft+g.scrollSpeed:b.pageX-this.overflowOffset.left<g.scrollSensitivity&&(this.scrollParent[0].scrollLeft=h=this.scrollParent[0].scrollLeft-g.scrollSpeed)):(b.pageY-a(document).scrollTop()<g.scrollSensitivity?h=a(document).scrollTop(a(document).scrollTop()-g.scrollSpeed):a(window).height()-(b.pageY-a(document).scrollTop())<g.scrollSensitivity&&(h=a(document).scrollTop(a(document).scrollTop()+g.scrollSpeed)),b.pageX-a(document).scrollLeft()<g.scrollSensitivity?h=a(document).scrollLeft(a(document).scrollLeft()-g.scrollSpeed):a(window).width()-(b.pageX-a(document).scrollLeft())<g.scrollSensitivity&&(h=a(document).scrollLeft(a(document).scrollLeft()+g.scrollSpeed))),h!==!1&&a.ui.ddmanager&&!g.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),c=this.items.length-1;c>=0;c--)if(d=this.items[c],e=d.item[0],f=this._intersectsWithPointer(d),f&&d.instance===this.currentContainer&&!(e===this.currentItem[0]||this.placeholder[1===f?"next":"prev"]()[0]===e||a.contains(this.placeholder[0],e)||"semi-dynamic"===this.options.type&&a.contains(this.element[0],e))){if(this.direction=1===f?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(d))break;this._rearrange(b,d),this._trigger("change",b,this._uiHash());break}return this._contactContainers(b),a.ui.ddmanager&&a.ui.ddmanager.drag(this,b),this._trigger("sort",b,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(b,c){if(b){if(a.ui.ddmanager&&!this.options.dropBehaviour&&a.ui.ddmanager.drop(this,b),this.options.revert){var d=this,e=this.placeholder.offset(),f=this.options.axis,g={};f&&"x"!==f||(g.left=e.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollLeft)),f&&"y"!==f||(g.top=e.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,a(this.helper).animate(g,parseInt(this.options.revert,10)||500,function(){d._clear(b)})}else this._clear(b,c);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),"original"===this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var b=this.containers.length-1;b>=0;b--)this.containers[b]._trigger("deactivate",null,this._uiHash(this)),this.containers[b].containerCache.over&&(this.containers[b]._trigger("out",null,this._uiHash(this)),this.containers[b].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),a.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?a(this.domPosition.prev).after(this.currentItem):a(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(b){var c=this._getItemsAsjQuery(b&&b.connected),d=[];return b=b||{},a(c).each(function(){var c=(a(b.item||this).attr(b.attribute||"id")||"").match(b.expression||/(.+)[\-=_](.+)/);c&&d.push((b.key||c[1]+"[]")+"="+(b.key&&b.expression?c[1]:c[2]))}),!d.length&&b.key&&d.push(b.key+"="),d.join("&")},toArray:function(b){var c=this._getItemsAsjQuery(b&&b.connected),d=[];return b=b||{},c.each(function(){d.push(a(b.item||this).attr(b.attribute||"id")||"")}),d},_intersectsWith:function(a){var b=this.positionAbs.left,c=b+this.helperProportions.width,d=this.positionAbs.top,e=d+this.helperProportions.height,f=a.left,g=f+a.width,h=a.top,i=h+a.height,j=this.offset.click.top,k=this.offset.click.left,l="x"===this.options.axis||d+j>h&&d+j<i,m="y"===this.options.axis||b+k>f&&b+k<g,n=l&&m;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>a[this.floating?"width":"height"]?n:f<b+this.helperProportions.width/2&&c-this.helperProportions.width/2<g&&h<d+this.helperProportions.height/2&&e-this.helperProportions.height/2<i},_intersectsWithPointer:function(a){var b="x"===this.options.axis||c(this.positionAbs.top+this.offset.click.top,a.top,a.height),d="y"===this.options.axis||c(this.positionAbs.left+this.offset.click.left,a.left,a.width),e=b&&d,f=this._getDragVerticalDirection(),g=this._getDragHorizontalDirection();return!!e&&(this.floating?g&&"right"===g||"down"===f?2:1:f&&("down"===f?2:1))},_intersectsWithSides:function(a){var b=c(this.positionAbs.top+this.offset.click.top,a.top+a.height/2,a.height),d=c(this.positionAbs.left+this.offset.click.left,a.left+a.width/2,a.width),e=this._getDragVerticalDirection(),f=this._getDragHorizontalDirection();return this.floating&&f?"right"===f&&d||"left"===f&&!d:e&&("down"===e&&b||"up"===e&&!b)},_getDragVerticalDirection:function(){var a=this.positionAbs.top-this.lastPositionAbs.top;return 0!==a&&(a>0?"down":"up")},_getDragHorizontalDirection:function(){var a=this.positionAbs.left-this.lastPositionAbs.left;return 0!==a&&(a>0?"right":"left")},refresh:function(a){return this._refreshItems(a),this.refreshPositions(),this},_connectWith:function(){var a=this.options;
vendor: 2,144 bytes, line 17901
17901return a.connectWith.constructor===String?[a.connectWith]:a.connectWith},_getItemsAsjQuery:function(b){var c,d,e,f,g=[],h=[],i=this._connectWith();if(i&&b)for(c=i.length-1;c>=0;c--)for(e=a(i[c]),d=e.length-1;d>=0;d--)f=a.data(e[d],this.widgetFullName),f&&f!==this&&!f.options.disabled&&h.push([a.isFunction(f.options.items)?f.options.items.call(f.element):a(f.options.items,f.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),f]);for(h.push([a.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):a(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),c=h.length-1;c>=0;c--)h[c][0].each(function(){g.push(this)});return a(g)},_removeCurrentsFromItems:function(){var b=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=a.grep(this.items,function(a){for(var c=0;c<b.length;c++)if(b[c]===a.item[0])return!1;return!0})},_refreshItems:function(b){this.items=[],this.containers=[this];var c,d,e,f,g,h,i,j,k=this.items,l=[[a.isFunction(this.options.items)?this.options.items.call(this.element[0],b,{item:this.currentItem}):a(this.options.items,this.element),this]],m=this._connectWith();if(m&&this.ready)for(c=m.length-1;c>=0;c--)for(e=a(m[c]),d=e.length-1;d>=0;d--)f=a.data(e[d],this.widgetFullName),f&&f!==this&&!f.options.disabled&&(l.push([a.isFunction(f.options.items)?f.options.items.call(f.element[0],b,{item:this.currentItem}):a(f.options.items,f.element),f]),this.containers.push(f));for(c=l.length-1;c>=0;c--)for(g=l[c][1],h=l[c][0],d=0,j=h.length;d<j;d++)i=a(h[d]),i.data(this.widgetName+"-item",g),k.push({item:i,instance:g,width:0,height:0,left:0,top:0})},refreshPositions:function(b){this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());var c,d,e,f;for(c=this.items.length-1;c>=0;c--)d=this.items[c],d.instance!==this.currentContainer&&this.currentContainer&&d.item[0]!==this.currentItem[0]||(e=this.options.toleranceElement?a(this.options.toleranceElement,d.item):d.item,b||(d.width=e.outerWidth(),d.height=e.outerHeight()),f=e.offset(),d.left=f.left,d.top=f.top);
vendor: 1,122 bytes, line 17901
17901if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(c=this.containers.length-1;c>=0;c--)f=this.containers[c].element.offset(),this.containers[c].containerCache.left=f.left,this.containers[c].containerCache.top=f.top,this.containers[c].containerCache.width=this.containers[c].element.outerWidth(),this.containers[c].containerCache.height=this.containers[c].element.outerHeight();return this},_createPlaceholder:function(b){b=b||this;var c,d=b.options;d.placeholder&&d.placeholder.constructor!==String||(c=d.placeholder,d.placeholder={element:function(){var d=b.currentItem[0].nodeName.toLowerCase(),e=a("<"+d+">",b.document[0]).addClass(c||b.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return"tr"===d?b.currentItem.children().each(function(){a("<td> </td>",b.document[0]).attr("colspan",a(this).attr("colspan")||1).appendTo(e)}):"img"===d&&e.attr("src",b.currentItem.attr("src")),c||e.css("visibility","hidden"),e},update:function(a,e){c&&!d.forcePlaceholderSize||(e.height()||e.height(b.currentItem.innerHe
vendor: 5,242 bytes, line 17901
17901ight()-parseInt(b.currentItem.css("paddingTop")||0,10)-parseInt(b.currentItem.css("paddingBottom")||0,10)),e.width()||e.width(b.currentItem.innerWidth()-parseInt(b.currentItem.css("paddingLeft")||0,10)-parseInt(b.currentItem.css("paddingRight")||0,10)))}}),b.placeholder=a(d.placeholder.element.call(b.element,b.currentItem)),b.currentItem.after(b.placeholder),d.placeholder.update(b,b.placeholder)},_contactContainers:function(b){var e,f,g,h,i,j,k,l,m,n,o=null,p=null;for(e=this.containers.length-1;e>=0;e--)if(!a.contains(this.currentItem[0],this.containers[e].element[0]))if(this._intersectsWith(this.containers[e].containerCache)){if(o&&a.contains(this.containers[e].element[0],o.element[0]))continue;o=this.containers[e],p=e}else this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",b,this._uiHash(this)),this.containers[e].containerCache.over=0);if(o)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",b,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(g=1e4,h=null,n=o.floating||d(this.currentItem),i=n?"left":"top",j=n?"width":"height",k=this.positionAbs[i]+this.offset.click[i],f=this.items.length-1;f>=0;f--)a.contains(this.containers[p].element[0],this.items[f].item[0])&&this.items[f].item[0]!==this.currentItem[0]&&(n&&!c(this.positionAbs.top+this.offset.click.top,this.items[f].top,this.items[f].height)||(l=this.items[f].item.offset()[i],m=!1,Math.abs(l-k)>Math.abs(l+this.items[f][j]-k)&&(m=!0,l+=this.items[f][j]),Math.abs(l-k)<g&&(g=Math.abs(l-k),h=this.items[f],this.direction=m?"up":"down")));if(!h&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[p])return;h?this._rearrange(b,h,null,!0):this._rearrange(b,null,this.containers[p].element,!0),this._trigger("change",b,this._uiHash()),this.containers[p]._trigger("change",b,this._uiHash(this)),this.currentContainer=this.containers[p],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[p]._trigger("over",b,this._uiHash(this)),this.containers[p].containerCache.over=1}},_createHelper:function(b){var c=this.options,d=a.isFunction(c.helper)?a(c.helper.apply(this.element[0],[b,this.currentItem])):"clone"===c.helper?this.currentItem.clone():this.currentItem;return d.parents("body").length||a("parent"!==c.appendTo?c.appendTo:this.currentItem[0].parentNode)[0].appendChild(d[0]),d[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),d[0].style.width&&!c.forceHelperSize||d.width(this.currentItem.width()),d[0].style.height&&!c.forceHelperSize||d.height(this.currentItem.height()),d},_adjustOffsetFromHelper:function(b){"string"==typeof b&&(b=b.split(" ")),a.isArray(b)&&(b={left:+b[0],top:+b[1]||0}),"left"in b&&(this.offset.click.left=b.left+this.margins.left),"right"in b&&(this.offset.click.left=this.helperProportions.width-b.right+this.margins.left),"top"in b&&(this.offset.click.top=b.top+this.margins.top),"bottom"in b&&(this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&a.contains(this.scrollParent[0],this.offsetParent[0])&&(b.left+=this.scrollParent.scrollLeft(),b.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&a.ui.ie)&&(b={top:0,left:0}),{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var a=this.currentItem.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var b,c,d,e=this.options;"parent"===e.containment&&(e.containment=this.helper[0].parentNode),"document"!==e.containment&&"window"!==e.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a("document"===e.containment?document:window).width()-this.helperProportions.width-this.margins.left,(a("document"===e.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(e.containment)||(b=a(e.containment)[0],c=a(e.containment).offset(),d="hidden"!==a(b).css("overflow"),this.containment=[c.left+(parseInt(a(b).css("borderLeftWidth"),10)||0)+(parseInt(a(b).css("paddingLeft"),10)||0)-this.margins.left,c.top+(parseInt(a(b).css("borderTopWidth"),
vendor: 2,235 bytes, line 17901
1790110)||0)+(parseInt(a(b).css("paddingTop"),10)||0)-this.margins.top,c.left+(d?Math.max(b.scrollWidth,b.offsetWidth):b.offsetWidth)-(parseInt(a(b).css("borderLeftWidth"),10)||0)-(parseInt(a(b).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,c.top+(d?Math.max(b.scrollHeight,b.offsetHeight):b.offsetHeight)-(parseInt(a(b).css("borderTopWidth"),10)||0)-(parseInt(a(b).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(b,c){c||(c=this.position);var d="absolute"===b?1:-1,e="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&a.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,f=/(html|body)/i.test(e[0].tagName);return{top:c.top+this.offset.relative.top*d+this.offset.parent.top*d-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():f?0:e.scrollTop())*d,left:c.left+this.offset.relative.left*d+this.offset.parent.left*d-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():f?0:e.scrollLeft())*d}},_generatePosition:function(b){var c,d,e=this.options,f=b.pageX,g=b.pageY,h="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&a.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,i=/(html|body)/i.test(h[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==document&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(b.pageX-this.offset.click.left<this.containment[0]&&(f=this.containment[0]+this.offset.click.left),b.pageY-this.offset.click.top<this.containment[1]&&(g=this.containment[1]+this.offset.click.top),b.pageX-this.offset.click.left>this.containment[2]&&(f=this.containment[2]+this.offset.click.left),b.pageY-this.offset.click.top>this.containment[3]&&(g=this.containment[3]+this.offset.click.top)),e.grid&&(c=this.originalPageY+Math.round((g-this.originalPageY)/e.grid[1])*e.grid[1],g=this.containment?c-this.offset.click.top>=this.containment[1]&&c-this.offset.click.top<=this.containment[3]?c:c-this.offset.click.top>=this.containment[1]?c-e.grid[1]:c+e.grid[1]:c,d=this.originalPageX+Math.round((f-this.originalPageX)/e.grid[
vendor: 5,015 bytes, line 17901
179010])*e.grid[0],f=this.containment?d-this.offset.click.left>=this.containment[0]&&d-this.offset.click.left<=this.containment[2]?d:d-this.offset.click.left>=this.containment[0]?d-e.grid[0]:d+e.grid[0]:d)),{top:g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():i?0:h.scrollTop()),left:f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():i?0:h.scrollLeft())}},_rearrange:function(a,b,c,d){c?c[0].appendChild(this.placeholder[0]):b.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?b.item[0]:b.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var e=this.counter;this._delay(function(){e===this.counter&&this.refreshPositions(!d)})},_clear:function(a,b){this.reverting=!1;var c,d=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(c in this._storedCSS)"auto"!==this._storedCSS[c]&&"static"!==this._storedCSS[c]||(this._storedCSS[c]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!b&&d.push(function(a){this._trigger("receive",a,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||b||d.push(function(a){this._trigger("update",a,this._uiHash())}),this!==this.currentContainer&&(b||(d.push(function(a){this._trigger("remove",a,this._uiHash())}),d.push(function(a){return function(b){a._trigger("receive",b,this._uiHash(this))}}.call(this,this.currentContainer)),d.push(function(a){return function(b){a._trigger("update",b,this._uiHash(this))}}.call(this,this.currentContainer)))),c=this.containers.length-1;c>=0;c--)b||d.push(function(a){return function(b){a._trigger("deactivate",b,this._uiHash(this))}}.call(this,this.containers[c])),this.containers[c].containerCache.over&&(d.push(function(a){return function(b){a._trigger("out",b,this._uiHash(this))}}.call(this,this.containers[c])),this.containers[c].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,this.cancelHelperRemoval){if(!b){for(this._trigger("beforeStop",a,this._uiHash()),c=0;c<d.length;c++)d[c].call(this,a);this._trigger("stop",a,this._uiHash())}return this.fromOutside=!1,!1}if(b||this._trigger("beforeStop",a,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null,!b){for(c=0;c<d.length;c++)d[c].call(this,a);this._trigger("stop",a,this._uiHash())}return this.fromOutside=!1,!0},_trigger:function(){a.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(b){var c=b||this;return{helper:c.helper,placeholder:c.placeholder||a([]),position:c.position,originalPosition:c.originalPosition,offset:c.positionAbs,item:c.currentItem,sender:b?b.element:null}}})}(jQuery),function(a,b){var c="ui-effects-";a.effects={effect:{}},function(a,b){function m(a,b,c){var d=h[b.type]||{};return null==a?c||!b.def?null:b.def:(a=d.floor?~~a:parseFloat(a),isNaN(a)?b.def:d.mod?(a+d.mod)%d.mod:0>a?0:d.max<a?d.max:a)}function n(b){var c=f(),d=c._rgba=[];return b=b.toLowerCase(),l(e,function(a,e){var f,h=e.re.exec(b),i=h&&e.parse(h),j=e.space||"rgba";if(i)return f=c[j](i),c[g[j].cache]=f[g[j].cache],d=c._rgba=f._rgba,!1}),d.length?("0,0,0,0"===d.join()&&a.extend(d,k.transparent),c):k[b]}function o(a,b,c){return c=(c+1)%1,6*c<1?a+(b-a)*c*6:2*c<1?b:3*c<2?a+(b-a)*(2/3-c)*6:a}var k,c="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",d=/^([\-+])=\s*(\d+\.?\d*)/,e=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(a){return[a[1],a[2],a[3],a[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(a){return[2.55*a[1],2.55*a[2],2.55*a[3],a[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(a){return[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(a){return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(a){return[a[1],a[2]/100,a[3]/100,a[4]]}}],f=a.Color=function(b,c,d,e){return new a.Color.fn.parse(b,c,d,e)},g={rgba:{props:{red:{idx:0,type:"byte"}
vendor: 8,568 bytes, line 17901
17901,green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},h={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},i=f.support={},j=a("<p>")[0],l=a.each;j.style.cssText="background-color:rgba(1,1,1,.5)",i.rgba=j.style.backgroundColor.indexOf("rgba")>-1,l(g,function(a,b){b.cache="_"+a,b.props.alpha={idx:3,type:"percent",def:1}}),f.fn=a.extend(f.prototype,{parse:function(c,d,e,h){if(c===b)return this._rgba=[null,null,null,null],this;(c.jquery||c.nodeType)&&(c=a(c).css(d),d=b);var i=this,j=a.type(c),o=this._rgba=[];return d!==b&&(c=[c,d,e,h],j="array"),"string"===j?this.parse(n(c)||k._default):"array"===j?(l(g.rgba.props,function(a,b){o[b.idx]=m(c[b.idx],b)}),this):"object"===j?(c instanceof f?l(g,function(a,b){c[b.cache]&&(i[b.cache]=c[b.cache].slice())}):l(g,function(b,d){var e=d.cache;l(d.props,function(a,b){if(!i[e]&&d.to){if("alpha"===a||null==c[a])return;i[e]=d.to(i._rgba)}i[e][b.idx]=m(c[a],b,!0)}),i[e]&&a.inArray(null,i[e].slice(0,3))<0&&(i[e][3]=1,d.from&&(i._rgba=d.from(i[e])))}),this):void 0},is:function(a){var b=f(a),c=!0,d=this;return l(g,function(a,e){var f,g=b[e.cache];return g&&(f=d[e.cache]||e.to&&e.to(d._rgba)||[],l(e.props,function(a,b){if(null!=g[b.idx])return c=g[b.idx]===f[b.idx]})),c}),c},_space:function(){var a=[],b=this;return l(g,function(c,d){b[d.cache]&&a.push(c)}),a.pop()},transition:function(a,b){var c=f(a),d=c._space(),e=g[d],i=0===this.alpha()?f("transparent"):this,j=i[e.cache]||e.to(i._rgba),k=j.slice();return c=c[e.cache],l(e.props,function(a,d){var e=d.idx,f=j[e],g=c[e],i=h[d.type]||{};null!==g&&(null===f?k[e]=g:(i.mod&&(g-f>i.mod/2?f+=i.mod:f-g>i.mod/2&&(f-=i.mod)),k[e]=m((g-f)*b+f,d)))}),this[d](k)},blend:function(b){if(1===this._rgba[3])return this;var c=this._rgba.slice(),d=c.pop(),e=f(b)._rgba;return f(a.map(c,function(a,b){return(1-d)*e[b]+d*a}))},toRgbaString:function(){var b="rgba(",c=a.map(this._rgba,function(a,b){return null==a?b>2?1:0:a});return 1===c[3]&&(c.pop(),b="rgb("),b+c.join()+")"},toHslaString:function(){var b="hsla(",c=a.map(this.hsla(),function(a,b){return null==a&&(a=b>2?1:0),b&&b<3&&(a=Math.round(100*a)+"%"),a});return 1===c[3]&&(c.pop(),b="hsl("),b+c.join()+")"},toHexString:function(b){var c=this._rgba.slice(),d=c.pop();return b&&c.push(~~(255*d)),"#"+a.map(c,function(a){return a=(a||0).toString(16),1===a.length?"0"+a:a}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),f.fn.parse.prototype=f.fn,g.hsla.to=function(a){if(null==a[0]||null==a[1]||null==a[2])return[null,null,null,a[3]];var k,l,b=a[0]/255,c=a[1]/255,d=a[2]/255,e=a[3],f=Math.max(b,c,d),g=Math.min(b,c,d),h=f-g,i=f+g,j=.5*i;return k=g===f?0:b===f?60*(c-d)/h+360:c===f?60*(d-b)/h+120:60*(b-c)/h+240,l=0===h?0:j<=.5?h/i:h/(2-i),[Math.round(k)%360,l,j,null==e?1:e]},g.hsla.from=function(a){if(null==a[0]||null==a[1]||null==a[2])return[null,null,null,a[3]];var b=a[0]/360,c=a[1],d=a[2],e=a[3],f=d<=.5?d*(1+c):d+c-d*c,g=2*d-f;return[Math.round(255*o(g,f,b+1/3)),Math.round(255*o(g,f,b)),Math.round(255*o(g,f,b-1/3)),e]},l(g,function(c,e){var g=e.props,h=e.cache,i=e.to,j=e.from;f.fn[c]=function(c){if(i&&!this[h]&&(this[h]=i(this._rgba)),c===b)return this[h].slice();var d,e=a.type(c),k="array"===e||"object"===e?c:arguments,n=this[h].slice();return l(g,function(a,b){var c=k["object"===e?a:b.idx];null==c&&(c=n[b.idx]),n[b.idx]=m(c,b)}),j?(d=f(j(n)),d[h]=n,d):f(n)},l(g,function(b,e){f.fn[b]||(f.fn[b]=function(f){var k,g=a.type(f),h="alpha"===b?this._hsla?"hsla":"rgba":c,i=this[h](),j=i[e.idx];return"undefined"===g?j:("function"===g&&(f=f.call(this,j),g=a.type(f)),null==f&&e.empty?this:("string"===g&&(k=d.exec(f),k&&(f=j+parseFloat(k[2])*("+"===k[1]?1:-1))),i[e.idx]=f,this[h](i)))})})}),f.hook=function(b){var c=b.split(" ");l(c,function(b,c){a.cssHooks[c]={set:function(b,d){var e,g,h="";if("transparent"!==d&&("string"!==a.type(d)||(e=n(d)))){if(d=f(e||d),!i.rgba&&1!==d._rgba[3]){for(g="backgroundColor"===c?b.parentNode:b;(""===h||"transparent"===h)&&g&&g.style;)try{h=a.css(g,"backgroundColor"),g=g.parentNode}catch(a){}d=d.blend(h&&"transparent"!==h?h:"_default")}d=d.toRgbaString()}try{b.style[c]=d}catch(a){}}},a.fx.step[c]=function(b){b.colorInit||(b.start=f(b.elem,c),b.end=f(b.end),b.colorInit=!0),a.cssHooks[c].set(b.elem,b.start.transition(b.end,b.pos))}})},f.hook(c),a.cssHooks.borderColor={expand:function(a){var b={};return l(["Top","Right","Bottom","Left"],function(c,d){b["border"+d+"Color"]=a}),b}},k=a.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(jQuery),function(){function e(b){var c,d,e=b.ownerDocument.defaultView?b.ownerDocument.defaultView.getComputedStyle(b,null):b.currentStyle,f={};if(e&&e.length&&e[0]&&e[e[0]])for(d=e.length;d--;)c=e[d],"string"==typeof e[c]&&(f[a.camelCase(c)]=e[c]);else for(c in e)"string"==typeof e[c]&&(f[c]=e[c]);return f}function f(b,c){var f,g,e={};for(f in c)g=c[f],b[f]!==g&&(d[f]||!a.fx.step[f]&&isNaN(parseFloat(g))||(e[f]=g));return e}var c=["add","remove","toggle"],d={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};a.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(b,c){a.fx.step[c]=function(a){("none"!==a.end&&!a.setAttr||1===a.pos&&!a.setAttr)&&(jQuery.style(a.elem,c,a.end),a.setAttr=!0)}}),a.fn.addBack||(a.fn.addBack=function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}),a.effects.animateClass=function(b,d,g,h){var i=a.speed(d,g,h);return this.queue(function(){var h,d=a(this),g=d.attr("class")||"",j=i.children?d.find("*").addBack():d;j=j.map(function(){var b=a(this);return{el:b,start:e(this)}}),h=function(){a.each(c,function(a,c){b[c]&&d[c+"Class"](b[c])})},h(),j=j.map(function(){return this.end=e(this.el[0]),this.diff=f(this.start,this.end),this}),d.attr("class",g),j=j.map(function(){var b=this,c=a.Deferred(),d=a.extend({},i,{queue:!1,complete:function(){c.resolve(b)}});return this.el.animate(this.diff,d),c.promise()}),a.when.apply(a,j.get()).done(function(){h(),a.each(arguments,function(){var b=this.el;a.each(this.diff,function(a){b.css(a,"")})}),i.complete.call(d[0])})})},a.fn.extend({addClass:function(b){return function(c,d,e,f){return d?a.effects.animateClass.call(this,{add:c},d,e,f):b.apply(this,arguments)}}(a.fn.addClass),removeClass:function(b){return function(c,d,e,f){return arguments.length>1?a.effects.animateClass.call(this,{remove:c},d,e,f):b.apply(this,arguments)}}(a.fn.removeClass),toggleClass:function(c){return function(d,e,f,g,h){return"boolean"==typeof e||e===b?f?a.effects.animateClass.call(this,e?{add:d}:{remove:d},f,g,h):c.apply(this,arguments):a.effects.animateClass.call(this,{toggle:d},e,f,g)}}(a.fn.toggleClass),switchClass:function(b,c,d,e,f){return a.effects.animateClass.call(this,{add:c,remove:b},d,e,f)}})}(),function(){function d(b,c,d,e){return a.isPlainObject(b)&&(c=b,b=b.effect),b={effect:b},null==c&&(c={}),a.isFunction(c)&&(e=c,d=null,c={}),("number"==typeof c||a.fx.speeds[c])&&(e=d,d=c,c={}),a.isFunction(d)&&(e=d,d=null),c&&a.extend(b,c),d=d||c.duration,b.duration=a.fx.off?0:"number"==typeof d?d:d in a.fx.speeds?a.fx.speeds[d]:a.fx.speeds._default,b.complete=e||c.complete,b}function e(b){return!(b&&"number"!=typeof b&&!a.fx.speeds[b])||("string"==typeof b&&!a.effects.effect[b]||(!!a.isFunction(b)||"object"==typeof b&&!b.effect))}a.extend(a.effects,{version:"1.10.3",save:function(a,b){for(var d=0;d<b.length;d++)null!==b[d]&&a.data(c+b[d],a[0].style[b[d]])},restore:function(a,d){var e,f;for(f=0;f<d.length;f++)null!==d[f]&&(e=a.data(c+d[f]),e===b&&(e=""),a.css(d[f],e))},setMode:function(a,b){return"toggle"===b&&(b=a.is(":hidden")?"show":"hide"),b},getBaseline:function(a,b){var c,d;switch(a[0]){case"top":c=0;break;case"middle":c=.5;break;case"bottom":c=1;break;default:c=a[0]/b.height}switch(a[1]){case"left":d=0;break;case"center":d=.5;break;case"right":d=1;break;default:d=a[1]/b.width}return{x:d,y:c}},createWrapper:function(b){if(b.parent().is(".ui-effects-wrapper"))return b.parent();var c={width:b.outerWidth(!0),height:b.outerHeight(!0),float:b.css("float")},d=a("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}
vendor: 4,367 bytes, line 17901
17901),e={width:b.width(),height:b.height()},f=document.activeElement;try{f.id}catch(a){f=document.body}return b.wrap(d),(b[0]===f||a.contains(b[0],f))&&a(f).focus(),d=b.parent(),"static"===b.css("position")?(d.css({position:"relative"}),b.css({position:"relative"})):(a.extend(c,{position:b.css("position"),zIndex:b.css("z-index")}),a.each(["top","left","bottom","right"],function(a,d){c[d]=b.css(d),isNaN(parseInt(c[d],10))&&(c[d]="auto")}),b.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),b.css(e),d.css(c).show()},removeWrapper:function(b){var c=document.activeElement;return b.parent().is(".ui-effects-wrapper")&&(b.parent().replaceWith(b),(b[0]===c||a.contains(b[0],c))&&a(c).focus()),b},setTransition:function(b,c,d,e){return e=e||{},a.each(c,function(a,c){var f=b.cssUnit(c);f[0]>0&&(e[c]=f[0]*d+f[1])}),e}}),a.fn.extend({effect:function(){function g(c){function h(){a.isFunction(e)&&e.call(d[0]),a.isFunction(c)&&c()}var d=a(this),e=b.complete,g=b.mode;(d.is(":hidden")?"hide"===g:"show"===g)?(d[g](),h()):f.call(d[0],b,h)}var b=d.apply(this,arguments),c=b.mode,e=b.queue,f=a.effects.effect[b.effect];return a.fx.off||!f?c?this[c](b.duration,b.complete):this.each(function(){b.complete&&b.complete.call(this)}):e===!1?this.each(g):this.queue(e||"fx",g)},show:function(a){return function(b){if(e(b))return a.apply(this,arguments);var c=d.apply(this,arguments);return c.mode="show",this.effect.call(this,c)}}(a.fn.show),hide:function(a){return function(b){if(e(b))return a.apply(this,arguments);var c=d.apply(this,arguments);return c.mode="hide",this.effect.call(this,c)}}(a.fn.hide),toggle:function(a){return function(b){if(e(b)||"boolean"==typeof b)return a.apply(this,arguments);var c=d.apply(this,arguments);return c.mode="toggle",this.effect.call(this,c)}}(a.fn.toggle),cssUnit:function(b){var c=this.css(b),d=[];return a.each(["em","px","%","pt"],function(a,b){c.indexOf(b)>0&&(d=[parseFloat(c),b])}),d}})}(),function(){var b={};a.each(["Quad","Cubic","Quart","Quint","Expo"],function(a,c){b[c]=function(b){return Math.pow(b,a+2)}}),a.extend(b,{Sine:function(a){return 1-Math.cos(a*Math.PI/2)},Circ:function(a){return 1-Math.sqrt(1-a*a)},Elastic:function(a){return 0===a||1===a?a:-Math.pow(2,8*(a-1))*Math.sin((80*(a-1)-7.5)*Math.PI/15)},Back:function(a){return a*a*(3*a-2)},Bounce:function(a){for(var b,c=4;a<((b=Math.pow(2,--c))-1)/11;);return 1/Math.pow(4,3-c)-7.5625*Math.pow((3*b-2)/22-a,2)}}),a.each(b,function(b,c){a.easing["easeIn"+b]=c,a.easing["easeOut"+b]=function(a){return 1-c(1-a)},a.easing["easeInOut"+b]=function(a){return a<.5?c(2*a)/2:1-c(a*-2+2)/2}})}()}(jQuery),function(a,b){var c=0,d={},e={};d.height=d.paddingTop=d.paddingBottom=d.borderTopWidth=d.borderBottomWidth="hide",e.height=e.paddingTop=e.paddingBottom=e.borderTopWidth=e.borderBottomWidth="show",a.widget("ui.accordion",{version:"1.10.3",options:{active:0,animate:{},collapsible:!1,event:"click",header:"> li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},_create:function(){var b=this.options;this.prevShow=this.prevHide=a(),this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist"),b.collapsible||b.active!==!1&&null!=b.active||(b.active=0),this._processPanels(),b.active<0&&(b.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():a(),content:this.active.length?this.active.next():a()}},_createIcons:function(){var b=this.options.icons;b&&(a("<span>").addClass("ui-accordion-header-icon ui-icon "+b.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(b.header).addClass(b.activeHeader),this.headers.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var a;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").each(function(){/^ui-accordion/.test(this.id
vendor: 16,460 bytes, line 17901
17901)&&this.removeAttribute("id")}),this._destroyIcons(),a=this.headers.next().css("display","").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")}),"content"!==this.options.heightStyle&&a.css("height","")},_setOption:function(a,b){return"active"===a?void this._activate(b):("event"===a&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(b)),this._super(a,b),"collapsible"!==a||b||this.options.active!==!1||this._activate(0),"icons"===a&&(this._destroyIcons(),b&&this._createIcons()),void("disabled"===a&&this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!b)))},_keydown:function(b){if(!b.altKey&&!b.ctrlKey){var c=a.ui.keyCode,d=this.headers.length,e=this.headers.index(b.target),f=!1;switch(b.keyCode){case c.RIGHT:case c.DOWN:f=this.headers[(e+1)%d];break;case c.LEFT:case c.UP:f=this.headers[(e-1+d)%d];break;case c.SPACE:case c.ENTER:this._eventHandler(b);break;case c.HOME:f=this.headers[0];break;case c.END:f=this.headers[d-1]}f&&(a(b.target).attr("tabIndex",-1),a(f).attr("tabIndex",0),f.focus(),b.preventDefault())}},_panelKeyDown:function(b){b.keyCode===a.ui.keyCode.UP&&b.ctrlKey&&a(b.currentTarget).prev().focus()},refresh:function(){var b=this.options;this._processPanels(),b.active===!1&&b.collapsible===!0||!this.headers.length?(b.active=!1,this.active=a()):b.active===!1?this._activate(0):this.active.length&&!a.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(b.active=!1,this.active=a()):this._activate(Math.max(0,b.active-1)):b.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){this.headers=this.element.find(this.options.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all"),this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").filter(":not(.ui-accordion-content-active)").hide()},_refresh:function(){var b,d=this.options,e=d.heightStyle,f=this.element.parent(),g=this.accordionId="ui-accordion-"+(this.element.attr("id")||++c);this.active=this._findActive(d.active).addClass("ui-accordion-header-active ui-state-active ui-corner-top").removeClass("ui-corner-all"),this.active.next().addClass("ui-accordion-content-active").show(),this.headers.attr("role","tab").each(function(b){var c=a(this),d=c.attr("id"),e=c.next(),f=e.attr("id");d||(d=g+"-header-"+b,c.attr("id",d)),f||(f=g+"-panel-"+b,e.attr("id",f)),c.attr("aria-controls",f),e.attr("aria-labelledby",d)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false",tabIndex:-1}).next().attr({"aria-expanded":"false","aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true",tabIndex:0}).next().attr({"aria-expanded":"true","aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(d.event),"fill"===e?(b=f.height(),this.element.siblings(":visible").each(function(){var c=a(this),d=c.css("position");"absolute"!==d&&"fixed"!==d&&(b-=c.outerHeight(!0))}),this.headers.each(function(){b-=a(this).outerHeight(!0)}),this.headers.next().each(function(){a(this).height(Math.max(0,b-a(this).innerHeight()+a(this).height()))}).css("overflow","auto")):"auto"===e&&(b=0,this.headers.next().each(function(){b=Math.max(b,a(this).css("height","").height())}).height(b))},_activate:function(b){var c=this._findActive(b)[0];c!==this.active[0]&&(c=c||this.active[0],this._eventHandler({target:c,currentTarget:c,preventDefault:a.noop}))},_findActive:function(b){return"number"==typeof b?this.headers.eq(b):a()},_setupEvents:function(b){var c={keydown:"_keydown"};b&&a.each(b.split(" "),function(a,b){c[b]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,c),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(b){var c=this.options,d=this.active,e=a(b.currentTarget),f=e[0]===d[0],g=f&&c.collapsible,h=g?a():e.next(),i=d.next(),j={oldHeader:d,oldPanel:i,newHeader:g?a():e,newPanel:h};b.preventDefault(),f&&!c.collapsible||this._trigger("beforeActivate",b,j)===!1||(c.active=!g&&this.headers.index(e),this.active=f?a():e,this._toggle(j),d.removeClass("ui-accordion-header-active ui-state-active"),c.icons&&d.children(".ui-accordion-header-icon").removeClass(c.icons.activeHeader).addClass(c.icons.header),f||(e.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),c.icons&&e.children(".ui-accordion-header-icon").removeClass(c.icons.header).addClass(c.icons.activeHeader),e.next().addClass("ui-accordion-content-active")))},_toggle:function(b){var c=b.newPanel,d=this.prevShow.length?this.prevShow:b.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=c,this.prevHide=d,this.options.animate?this._animate(c,d,b):(d.hide(),c.show(),this._toggleComplete(b)),d.attr({"aria-expanded":"false","aria-hidden":"true"}),d.prev().attr("aria-selected","false"),c.length&&d.length?d.prev().attr("tabIndex",-1):c.length&&this.headers.filter(function(){return 0===a(this).attr("tabIndex")}).attr("tabIndex",-1),c.attr({"aria-expanded":"true","aria-hidden":"false"}).prev().attr({"aria-selected":"true",tabIndex:0})},_animate:function(a,b,c){var f,g,h,i=this,j=0,k=a.length&&(!b.length||a.index()<b.index()),l=this.options.animate||{},m=k&&l.down||l,n=function(){i._toggleComplete(c)};return"number"==typeof m&&(h=m),"string"==typeof m&&(g=m),g=g||m.easing||l.easing,h=h||m.duration||l.duration,b.length?a.length?(f=a.show().outerHeight(),b.animate(d,{duration:h,easing:g,step:function(a,b){b.now=Math.round(a)}}),void a.hide().animate(e,{duration:h,easing:g,complete:n,step:function(a,c){c.now=Math.round(a),"height"!==c.prop?j+=c.now:"content"!==i.options.heightStyle&&(c.now=Math.round(f-b.outerHeight()-j),j=0)}})):b.animate(d,h,g,n):a.animate(e,h,g,n)},_toggleComplete:function(a){var b=a.oldPanel;b.removeClass("ui-accordion-content-active").prev().removeClass("ui-corner-top").addClass("ui-corner-all"),b.length&&(b.parent()[0].className=b.parent()[0].className),this._trigger("activate",null,a)}})}(jQuery),function(a,b){var c=0;a.widget("ui.autocomplete",{version:"1.10.3",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},pending:0,_create:function(){var b,c,d,e=this.element[0].nodeName.toLowerCase(),f="textarea"===e,g="input"===e;this.isMultiLine=!!f||!g&&this.element.prop("isContentEditable"),this.valueMethod=this.element[f||g?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(e){if(this.element.prop("readOnly"))return b=!0,d=!0,void(c=!0);b=!1,d=!1,c=!1;var f=a.ui.keyCode;switch(e.keyCode){case f.PAGE_UP:b=!0,this._move("previousPage",e);break;case f.PAGE_DOWN:b=!0,this._move("nextPage",e);break;case f.UP:b=!0,this._keyEvent("previous",e);break;case f.DOWN:b=!0,this._keyEvent("next",e);break;case f.ENTER:case f.NUMPAD_ENTER:this.menu.active&&(b=!0,e.preventDefault(),this.menu.select(e));break;case f.TAB:this.menu.active&&this.menu.select(e);break;case f.ESCAPE:this.menu.element.is(":visible")&&(this._value(this.term),this.close(e),e.preventDefault());break;default:c=!0,this._searchTimeout(e)}},keypress:function(d){if(b)return b=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||d.preventDefault());if(!c){var e=a.ui.keyCode;switch(d.keyCode){case e.PAGE_UP:this._move("previousPage",d);break;case e.PAGE_DOWN:this._move("nextPage",d);break;case e.UP:this._keyEvent("previous",d);break;case e.DOWN:this._keyEvent("next",d)}}},input:function(a){return d?(d=!1,void a.preventDefault()):void this._searchTimeout(a)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(a){return this.cancelBlur?void delete this.cancelBlur:(clearTimeout(this.searching),this.close(a),void this._change(a))}}),this._initSource(),this.menu=a("<ul>").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({role:null}).hide().data("ui-menu"),this._on(this.menu.element,{mousedown:function(b){b.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur});var c=this.menu.element[0];a(b.target).closest(".ui-menu-item").length||this._delay(function(){var b=this;this.document.one("mousedown",function(d){d.target===b.element[0]||d.target===c||a.contains(c,d.target)||b.close()})})},menufocus:function(b,c){if(this.isNewMenu&&(this.isNewMenu=!1,b.originalEvent&&/^mouse/.test(b.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",function(){a(b.target).trigger(b.originalEvent)});var d=c.item.data("ui-autocomplete-item");!1!==this._trigger("focus",b,{item:d})?b.originalEvent&&/^key/.test(b.originalEvent.type)&&this._value(d.value):this.liveRegion.text(d.value)},menuselect:function(a,b){var c=b.item.data("ui-autocomplete-item"),d=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=d,this._delay(function(){this.previous=d,this.selectedItem=c})),!1!==this._trigger("select",a,{item:c})&&this._value(c.value),this.term=this._value(),this.close(a),this.selectedItem=c}}),this.liveRegion=a("<span>",{role:"status","aria-live":"polite"}).addClass("ui-helper-hidden-accessible").insertBefore(this.element),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(a,b){this._super(a,b),"source"===a&&this._initSource(),"appendTo"===a&&this.menu.element.appendTo(this._appendTo()),"disabled"===a&&b&&this.xhr&&this.xhr.abort()},_appendTo:function(){var b=this.options.appendTo;return b&&(b=b.jquery||b.nodeType?a(b):this.document.find(b).eq(0)),b||(b=this.element.closest(".ui-front")),b.length||(b=this.document[0].body),b},_initSource:function(){var b,c,d=this;a.isArray(this.options.source)?(b=this.options.source,this.source=function(c,d){d(a.ui.autocomplete.filter(b,c.term))}):"string"==typeof this.options.source?(c=this.options.source,this.source=function(b,e){d.xhr&&d.xhr.abort(),d.xhr=a.ajax({url:c,data:b,dataType:"json",success:function(a){e(a)},error:function(){e([])}})}):this.source=this.options.source},_searchTimeout:function(a){clearTimeout(this.searching),this.searching=this._delay(function(){this.term!==this._value()&&(this.selectedItem=null,this.search(null,a))},this.options.delay)},search:function(a,b){return a=null!=a?a:this._value(),this.term=this._value(),a.length<this.options.minLength?this.close(b):this._trigger("search",b)!==!1?this._search(a):void 0},_search:function(a){this.pending++,this.element.addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:a},this._response())},_response:function(){var a=this,b=++c;return function(d){b===c&&a.__response(d),a.pending--,a.pending||a.element.removeClass("ui-autocomplete-loading")}},__response:function(a){a&&(a=this._normalize(a)),this._trigger("response",null,{content:a}),!this.options.disabled&&a&&a.length&&!this.cancelSearch?(this._suggest(a),this._trigger("open")):this._close()},close:function(a){this.cancelSearch=!0,this._close(a)},_close:function(a){this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",a))},_change:function(a){this.previous!==this._value()&&this._trigger("change",a,{item:this.selectedItem})},_normalize:function(b){return b.length&&b[0].label&&b[0].value?b:a.map(b,function(b){return"string"==typeof b?{label:b,value:b}:a.extend({label:b.label||b.value,value:b.value||b.label},b)})},_suggest:function(b){var c=this.menu.element.empty();this._renderMenu(c,b),this.isNewMenu=!0,this.menu.refresh(),c.show(),this._resizeMenu(),c.position(a.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next()},_resizeMenu:function(){var a=this.menu.element;a.outerWidth(Math.max(a.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(b,c){var d=this;a.each(c,function(a,c){d._renderItemData(b,c)})},_renderItemData:function(a,b){return this._renderItem(a,b).data("ui-autocomplete-item",b)},_renderItem:function(b,c){return a("<li>").append(a("<a>").text(c.label)).appendTo(b)},_move:function(a,b){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(a)||this.menu.isLastItem()&&/^next/.test(a)?(this._value(this.term),void this.menu.blur()):void this.menu[a](b):void this.search(null,b)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(a,b){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(a,b),b.preventDefault())}}),a.extend(a.ui.autocomplete,{escapeRegex:function(a){return a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(b,c){var d=new RegExp(a.ui.autocomplete.escapeRegex(c),"i");return a.grep(b,function(a){return d.test(a.label||a.value||a)})}}),a.widget("ui.autocomplete",a.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(a){return a+(a>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(a){var b;this._superApply(arguments),this.options.disabled||this.cancelSearch||(b=a&&a.length?this.options.messages.results(a.length):this.options.messages.noResults,this.liveRegion.text(b))}})}(jQuery),function(a,b){var c,d,e,f,g="ui-button ui-widget ui-state-default ui-corner-all",h="ui-state-hover ui-state-active ",i="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",j=function(){var b=a(this);setTimeout(function(){b.find(":ui-button").button("refresh")},1)},k=function(b){var c=b.name,d=b.form,e=a([]);return c&&(c=c.replace(/'/g,"\\'"),e=d?a(d).find("[name='"+c+"']"):a("[name='"+c+"']",b.ownerDocument).filter(function(){return!this.form})),e};a.widget("ui.button",{version:"1.10.3",defaultElement:"<button>",options:{disabled:null,text:!0,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset"+this.eventNamespace).bind("reset"+this.eventNamespace,j),"boolean"!=typeof this.options.disabled?this.options.disabled=!!this.element.prop("disabled"):this.element.prop("disabled",this.options.disabled),this._determineButtonType(),this.hasTitle=!!this.buttonElement.attr("title");var b=this,h=this.options,i="checkbox"===this.type||"radio"===this.type,l=i?"":"ui-state-active",m="ui-state-focus";null===h.label&&(h.label="input"===this.type?this.buttonElement.val():this.buttonElement.html()),this._hoverable(this.buttonElement),this.buttonElement.addClass(g).attr("role","button").bind("mouseenter"+this.eventNamespace,function(){h.disabled||this===c&&a(this).addClass("ui-state-active")}).bind("mouseleave"+this.eventNamespace,function(){h.disabled||a(this).removeClass(l)}).bind("click"+this.eventNamespace,function(a){h.disabled&&(a.preventDefault(),a.stopImmediatePropagation())}),this.element.bind("focus"+this.eventNamespace,function(){b.buttonElement.addClass(m)}).bind("blur"+this.eventNamespace,function(){b.buttonElement.removeClass(m)}),i&&(this.element.bind("change"+this.eventNamespace,function(){f||b.refresh()}),this.buttonElement.bind("mousedown"+this.eventNamespace,function(a){h.disabled||(f=!1,d=a.pageX,e=a.pageY)}).bind("mouseup"+this.eventNamespace,function(a){h.disabled||d===a.pageX&&e===a.pageY||(f=!0)})),"checkbox"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){if(h.disabled||f)return!1}):"radio"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){if(h.disabled||f)return!1;a(this).addClass("ui-state-active"),b.buttonElement.attr("aria-pressed","true");var c=b.element[0];k(c).not(c).map(function(){return a(this).button("widget")[0]}
17901).removeClass("ui-state-active").attr("aria-pressed","false")}):(this.buttonElement.bind("mousedown"+this.eventNamespace,function(){return!h.disabled&&(a(this).addClass("ui-state-active"),c=this,void b.document.one("mouseup",function(){c=null}))}).bind("mouseup"+this.eventNamespace,function(){return!h.disabled&&void a(this).removeClass("ui-state-active")}).bind("keydown"+this.eventNamespace,function(b){return!h.disabled&&void(b.keyCode!==a.ui.keyCode.SPACE&&b.keyCode!==a.ui.keyCode.ENTER||a(this).addClass("ui-state-active"))}).bind("keyup"+this.eventNamespace+" blur"+this.eventNamespace,function(){a(this).removeClass("ui-state-active")}),this.buttonElement.is("a")&&this.buttonElement.keyup(function(b){b.keyCode===a.ui.keyCode.SPACE&&a(this).click()})),this._setOption("disabled",h.disabled),this._resetButton()},_determineButtonType:function(){var a,b,c;this.element.is("[type=checkbox]")?this.type="checkbox":this.element.is("[type=radio]")?this.type="radio":this.element.is("input")?this.type="input":this.type="button","checkbox"===this.type||"radio"===this.type?(a=this.element.parents().last(),b="label[for='"+this.element.attr("id")+"']",this.buttonElement=a.find(b),this.buttonElement.length||(a=a.length?a.siblings():this.element.siblings(),this.buttonElement=a.filter(b),this.buttonElement.length||(this.buttonElement=a.find(b))),this.element.addClass("ui-helper-hidden-accessible"),c=this.element.is(":checked"),c&&this.buttonElement.addClass("ui-state-active"),this.buttonElement.prop("aria-pressed",c)):this.buttonElement=this.element},widget:function(){return this.buttonElement},_destroy:function(){this.element.removeClass("ui-helper-hidden-accessible"),this.buttonElement.removeClass(g+" "+h+" "+i).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html()),this.hasTitle||this.buttonElement.removeAttr("title")},_setOption:function(a,b){return this._super(a,b),"disabled"===a?void(b?this.element.prop("disabled",!0):this.element.prop("disabled",!1)):void this._resetButton()},refresh:function(){var b=this.element.is("input, button")?this.element.is(":disabled"):this.element.hasClass("ui-button-disabled");b!==this.options.disabled&&this._setOption("disabled",b),"radio"===this.type?k(this.element[0]).each(function(){a(this).is(":checked")?a(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true"):a(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")}):"checkbox"===this.type&&(this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false"))},_resetButton:function(){if("input"===this.type)return void(this.options.label&&this.element.val(this.options.label));var b=this.buttonElement.removeClass(i),c=a("<span></span>",this.document[0]).addClass("ui-button-text").html(this.options.label).appendTo(b.empty()).text(),d=this.options.icons,e=d.primary&&d.secondary,f=[];d.primary||d.secondary?(this.options.text&&f.push("ui-button-text-icon"+(e?"s":d.primary?"-primary":"-secondary")),d.primary&&b.prepend("<span class='ui-button-icon-primary ui-icon "+d.primary+"'></span>"),d.secondary&&b.append("<span class='ui-button-icon-secondary ui-icon "+d.secondary+"'></span>"),this.options.text||(f.push(e?"ui-button-icons-only":"ui-button-icon-only"),this.hasTitle||b.attr("title",a.trim(c)))):f.push("ui-button-text-only"),b.addClass(f.join(" "))}}),a.widget("ui.buttonset",{version:"1.10.3",options:{items:"button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(a,b){"disabled"===a&&this.buttons.button("option",a,b),this._super(a,b)},refresh:function(){var b="rtl"===this.element.css("direction");this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(b?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(b?"ui-corner-left":"ui-corner-right").end().end()},_destroy:function(){this.element.removeClass("ui-buttonset"),this.buttons.map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy")}})}(jQuery),function(a,b){function e(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
17901ay","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},a.extend(this._defaults,this.regional[""]),this.dpDiv=f(a("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function f(b){var c="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return b.delegate(c,"mouseout",function(){a(this).removeClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&a(this).removeClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&a(this).removeClass("ui-datepicker-next-hover")}).delegate(c,"mouseover",function(){a.datepicker._isDisabledDatepicker(d.inline?b.parent()[0]:d.input[0])||(a(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),a(this).addClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&a(this).addClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&a(this).addClass("ui-datepicker-next-hover"))})}function g(b,c){a.extend(b,c);for(var d in c)null==c[d]&&(b[d]=c[d]);return b}a.extend(a.ui,{datepicker:{version:"1.10.3"}});var d,c="datepicker";a.extend(e.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){return g(this._defaults,a||{}),this},_attachDatepicker:function(b,c){var d,e,f;d=b.nodeName.toLowerCase(),e="div"===d||"span"===d,b.id||(this.uuid+=1,b.id="dp"+this.uuid),f=this._newInst(a(b),e),f.settings=a.extend({},c||{}),"input"===d?this._connectDatepicker(b,f):e&&this._inlineDatepicker(b,f)},_newInst:function(b,c){var d=b[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:d,input:b,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:c,dpDiv:c?f(a("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(b,d){var e=a(b);d.append=a([]),d.trigger=a([]),e.hasClass(this.markerClassName)||(this._attachments(e,d),e.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp),this._autoSize(d),a.data(b,c,d),d.settings.disabled&&this._disableDatepicker(b))},_attachments:function(b,c){var d,e,f,g=this._get(c,"appendText"),h=this._get(c,"isRTL");c.append&&c.append.remove(),g&&(c.append=a("<span class='"+this._appendClass+"'>"+g+"</span>"),b[h?"before":"after"](c.append)),b.unbind("focus",this._showDatepicker),c.trigger&&c.trigger.remove(),d=this._get(c,"showOn"),"focus"!==d&&"both"!==d||b.focus(this._showDatepicker),"button"!==d&&"both"!==d||(e=this._get(c,"buttonText"),f=this._get(c,"buttonImage"),c.trigger=a(this._get(c,"buttonImageOnly")?a("<img/>").addClass(this._triggerClass).attr({src:f,alt:e,title:e}):a("<button type='button'></button>").addClass(this._triggerClass).html(f?a("<img/>").attr({src:f,alt:e,title:e}):e)),b[h?"before":"after"](c.trigger),c.trigger.click(function(){return a.datepicker._datepickerShowing&&a.datepicker._lastInput===b[0]?a.datepicker._hideDatepicker():a.datepicker._datepickerShowing&&a.datepicker._lastInput!==b[0]?(a.datepicker._hideDatepicker(),a.datepicker._showDatepicker(b[0])):a.datepicker._showDatepicker(b[0]),!1}))}
vendor: 7,339 bytes, line 17901
17901,_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b,c,d,e,f=new Date(2009,11,20),g=this._get(a,"dateFormat");g.match(/[DM]/)&&(b=function(a){for(c=0,d=0,e=0;e<a.length;e++)a[e].length>c&&(c=a[e].length,d=e);return d},f.setMonth(b(this._get(a,g.match(/MM/)?"monthNames":"monthNamesShort"))),f.setDate(b(this._get(a,g.match(/DD/)?"dayNames":"dayNamesShort"))+20-f.getDay())),a.input.attr("size",this._formatDate(a,f).length)}},_inlineDatepicker:function(b,d){var e=a(b);e.hasClass(this.markerClassName)||(e.addClass(this.markerClassName).append(d.dpDiv),a.data(b,c,d),this._setDate(d,this._getDefaultDate(d),!0),this._updateDatepicker(d),this._updateAlternate(d),d.settings.disabled&&this._disableDatepicker(b),d.dpDiv.css("display","block"))},_dialogDatepicker:function(b,d,e,f,h){var i,j,k,l,m,n=this._dialogInst;return n||(this.uuid+=1,i="dp"+this.uuid,this._dialogInput=a("<input type='text' id='"+i+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.keydown(this._doKeyDown),a("body").append(this._dialogInput),n=this._dialogInst=this._newInst(this._dialogInput,!1),n.settings={},a.data(this._dialogInput[0],c,n)),g(n.settings,f||{}),d=d&&d.constructor===Date?this._formatDate(n,d):d,this._dialogInput.val(d),this._pos=h?h.length?h:[h.pageX,h.pageY]:null,this._pos||(j=document.documentElement.clientWidth,k=document.documentElement.clientHeight,l=document.documentElement.scrollLeft||document.body.scrollLeft,m=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[j/2-100+l,k/2-150+m]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),n.settings.onSelect=e,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),a.blockUI&&a.blockUI(this.dpDiv),a.data(this._dialogInput[0],c,n),this},_destroyDatepicker:function(b){var d,e=a(b),f=a.data(b,c);e.hasClass(this.markerClassName)&&(d=b.nodeName.toLowerCase(),a.removeData(b,c),"input"===d?(f.append.remove(),f.trigger.remove(),e.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):"div"!==d&&"span"!==d||e.removeClass(this.markerClassName).empty())},_enableDatepicker:function(b){var d,e,f=a(b),g=a.data(b,c);f.hasClass(this.markerClassName)&&(d=b.nodeName.toLowerCase(),"input"===d?(b.disabled=!1,g.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==d&&"span"!==d||(e=f.children("."+this._inlineClass),e.children().removeClass("ui-state-disabled"),e.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=a.map(this._disabledInputs,function(a){return a===b?null:a}))},_disableDatepicker:function(b){var d,e,f=a(b),g=a.data(b,c);f.hasClass(this.markerClassName)&&(d=b.nodeName.toLowerCase(),"input"===d?(b.disabled=!0,g.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==d&&"span"!==d||(e=f.children("."+this._inlineClass),e.children().addClass("ui-state-disabled"),e.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=a.map(this._disabledInputs,function(a){return a===b?null:a}),this._disabledInputs[this._disabledInputs.length]=b)},_isDisabledDatepicker:function(a){if(!a)return!1;for(var b=0;b<this._disabledInputs.length;b++)if(this._disabledInputs[b]===a)return!0;return!1},_getInst:function(b){try{return a.data(b,c)}catch(a){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(c,d,e){var f,h,i,j,k=this._getInst(c);return 2===arguments.length&&"string"==typeof d?"defaults"===d?a.extend({},a.datepicker._defaults):k?"all"===d?a.extend({},k.settings):this._get(k,d):null:(f=d||{},"string"==typeof d&&(f={},f[d]=e),void(k&&(this._curInst===k&&this._hideDatepicker(),h=this._getDateDatepicker(c,!0),i=this._getMinMaxDate(k,"min"),j=this._getMinMaxDate(k,"max"),g(k.settings,f),null!==i&&f.dateFormat!==b&&f.minDate===b&&(k.settings.minDate=this._formatDate(k,i)),null!==j&&f.dateFormat!==b&&f.maxDate===b&&(k.settings.maxDate=this._formatDate(k,j)),"disabled"in f&&(f.disabled?this._disableDatepicker(c):this._enableDatepicker(c)),this._attachments(a(c),k),this._autoSize(k),this._setDate(k,h),this._updateAlternate(k),this._updateDatepicker(k))))},_changeDatepicker:function(a,b,c){this._optionDatepicker(a,b,c)},_refreshDatepicker:function(a){var b=this._getInst(a);b&&this._updateDatepicker(b)},_setDateDatepicker:function(a,b){var c=this._getInst(a);c&&(this._setDate(c,b),this._updateDatepicker(c),this._updateAlternate(c))},_getDateDatepicker:function(a,b){var c=this._getInst(a);return c&&!c.inline&&this._setDateFromField(c,b),c?this._getDate(c):null},_doKeyDown:function(b){var c,d,e,f=a.datepicker._getInst(b.target),g=!0,h=f.dpDiv.is(".ui-datepicker-rtl");if(f._keyEvent=!0,a.datepicker._datepickerShowing)switch(b.keyCode){case 9:a.datepicker._hideDatepicker(),g=!1;break;case 13:return e=a("td."+a.datepicker._dayOverClass+":not(."+a.datepicker._currentClass+")",f.dpDiv),e[0]&&a.datepicker._selectDay(b.target,f.selectedMonth,f.selectedYear,e[0]),c=a.datepicker._get(f,"onSelect"),c?(d=a.datepicker._formatDate(f),c.apply(f.input?f.input[0]:null,[d,f])):a.datepicker._hideDatepicker(),!1;case 27:a.datepicker._hideDatepicker();break;case 33:a.datepicker._adjustDate(b.target,b.ctrlKey?-a.datepicker._get(f,"stepBigMonths"):-a.datepicker._get(f,"stepMonths"),"M");break;case 34:a.datepicker._adjustDate(b.target,b.ctrlKey?+a.datepicker._get(f,"stepBigMonths"):+a.datepicker._get(f,"stepMonths"),"M");break;case 35:(b.ctrlKey||b.metaKey)&&a.datepicker._clearDate(b.target),g=b.ctrlKey||b.metaKey;break;case 36:(b.ctrlKey||b.metaKey)&&a.datepicker._gotoToday(b.target),g=b.ctrlKey||b.metaKey;break;case 37:(b.ctrlKey||b.metaKey)&&a.datepicker._adjustDate(b.target,h?1:-1,"D"),g=b.ctrlKey||b.metaKey,b.originalEvent.altKey&&a.datepicker._adjustDate(b.target,b.ctrlKey?-a.datepicker._get(f,"stepBigMonths"):-a.datepicker._get(f,"stepMonths"),"M");break;case 38:(b.ctrlKey||b.metaKey)&&a.datepicker._adjustDate(b.target,-7,"D"),g=b.ctrlKey||b.metaKey;break;case 39:(b.ctrlKey||b.metaKey)&&a.datepicker._adjustDate(b.target,h?-1:1,"D"),g=b.ctrlKey||b.metaKey,b.originalEvent.altKey&&a.datepicker._adjustDate(b.target,b.ctrlKey?+a.datepicker._get(f,"stepBigMonths"):+a.datepicker._get(f,"stepMonths"),"M");break;case 40:(b.ctrlKey||b.metaKey)&&a.datepicker._adjustDate(b.target,7,"D"),g=b.ctrlKey||b.metaKey;break;default:g=!1}else 36===b.keyCode&&b.ctrlKey?a.datepicker._showDatepicker(this):g=!1;g&&(b.preventDefault(),b.stopPropagation())},_doKeyPress:function(b){var c,d,e=a.datepicker._getInst(b.target);if(a.datepicker._get(e,"constrainInput"))return c=a.datepicker._possibleChars(a.datepicker._get(e,"dateFormat")),d=String.fromCharCode(null==b.charCode?b.keyCode:b.charCode),b.ctrlKey||b.metaKey||d<" "||!c||c.indexOf(d)>-1},_doKeyUp:function(b){var c,d=a.datepicker._getInst(b.target);if(d.input.val()!==d.lastVal)try{c=a.datepicker.parseDate(a.datepicker._get(d,"dateFormat"),d.input?d.input.val():null,a.datepicker._getFormatConfig(d)),c&&(a.datepicker._setDateFromField(d),a.datepicker._updateAlternate(d),a.datepicker._updateDatepicker(d
vendor: 6,333 bytes, line 17901
17901))}catch(a){}return!0},_showDatepicker:function(b){if(b=b.target||b,"input"!==b.nodeName.toLowerCase()&&(b=a("input",b.parentNode)[0]),!a.datepicker._isDisabledDatepicker(b)&&a.datepicker._lastInput!==b){var c,d,e,f,h,i,j;c=a.datepicker._getInst(b),a.datepicker._curInst&&a.datepicker._curInst!==c&&(a.datepicker._curInst.dpDiv.stop(!0,!0),c&&a.datepicker._datepickerShowing&&a.datepicker._hideDatepicker(a.datepicker._curInst.input[0])),d=a.datepicker._get(c,"beforeShow"),e=d?d.apply(b,[b,c]):{},e!==!1&&(g(c.settings,e),c.lastVal=null,a.datepicker._lastInput=b,a.datepicker._setDateFromField(c),a.datepicker._inDialog&&(b.value=""),a.datepicker._pos||(a.datepicker._pos=a.datepicker._findPos(b),a.datepicker._pos[1]+=b.offsetHeight),f=!1,a(b).parents().each(function(){return f|="fixed"===a(this).css("position"),!f}),h={left:a.datepicker._pos[0],top:a.datepicker._pos[1]},a.datepicker._pos=null,c.dpDiv.empty(),c.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),a.datepicker._updateDatepicker(c),h=a.datepicker._checkOffset(c,h,f),c.dpDiv.css({position:a.datepicker._inDialog&&a.blockUI?"static":f?"fixed":"absolute",display:"none",left:h.left+"px",top:h.top+"px"}),c.inline||(i=a.datepicker._get(c,"showAnim"),j=a.datepicker._get(c,"duration"),c.dpDiv.zIndex(a(b).zIndex()+1),a.datepicker._datepickerShowing=!0,a.effects&&a.effects.effect[i]?c.dpDiv.show(i,a.datepicker._get(c,"showOptions"),j):c.dpDiv[i||"show"](i?j:null),a.datepicker._shouldFocusInput(c)&&c.input.focus(),a.datepicker._curInst=c))}},_updateDatepicker:function(b){this.maxRows=4,d=b,b.dpDiv.empty().append(this._generateHTML(b)),this._attachHandlers(b),b.dpDiv.find("."+this._dayOverClass+" a").mouseover();var c,e=this._getNumberOfMonths(b),f=e[1],g=17;b.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),f>1&&b.dpDiv.addClass("ui-datepicker-multi-"+f).css("width",g*f+"em"),b.dpDiv[(1!==e[0]||1!==e[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),b.dpDiv[(this._get(b,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),b===a.datepicker._curInst&&a.datepicker._datepickerShowing&&a.datepicker._shouldFocusInput(b)&&b.input.focus(),b.yearshtml&&(c=b.yearshtml,setTimeout(function(){c===b.yearshtml&&b.yearshtml&&b.dpDiv.find("select.ui-datepicker-year:first").replaceWith(b.yearshtml),c=b.yearshtml=null},0))},_shouldFocusInput:function(a){return a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&!a.input.is(":focus")},_checkOffset:function(b,c,d){var e=b.dpDiv.outerWidth(),f=b.dpDiv.outerHeight(),g=b.input?b.input.outerWidth():0,h=b.input?b.input.outerHeight():0,i=document.documentElement.clientWidth+(d?0:a(document).scrollLeft()),j=document.documentElement.clientHeight+(d?0:a(document).scrollTop());return c.left-=this._get(b,"isRTL")?e-g:0,c.left-=d&&c.left===b.input.offset().left?a(document).scrollLeft():0,c.top-=d&&c.top===b.input.offset().top+h?a(document).scrollTop():0,c.left-=Math.min(c.left,c.left+e>i&&i>e?Math.abs(c.left+e-i):0),c.top-=Math.min(c.top,c.top+f>j&&j>f?Math.abs(f+h):0),c},_findPos:function(b){for(var c,d=this._getInst(b),e=this._get(d,"isRTL");b&&("hidden"===b.type||1!==b.nodeType||a.expr.filters.hidden(b));)b=b[e?"previousSibling":"nextSibling"];return c=a(b).offset(),[c.left,c.top]},_hideDatepicker:function(b){var d,e,f,g,h=this._curInst;!h||b&&h!==a.data(b,c)||this._datepickerShowing&&(d=this._get(h,"showAnim"),e=this._get(h,"duration"),f=function(){a.datepicker._tidyDialog(h)},a.effects&&(a.effects.effect[d]||a.effects[d])?h.dpDiv.hide(d,a.datepicker._get(h,"showOptions"),e,f):h.dpDiv["slideDown"===d?"slideUp":"fadeIn"===d?"fadeOut":"hide"](d?e:null,f),d||f(),this._datepickerShowing=!1,g=this._get(h,"onClose"),g&&g.apply(h.input?h.input[0]:null,[h.input?h.input.val():"",h]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),a.blockUI&&(a.unblockUI(),a("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(b){if(a.datepicker._curInst){var c=a(b.target),d=a.datepicker._getInst(c[0]);(c[0].id===a.datepicker._mainDivId||0!==c.parents("#"+a.datepicker._mainDivId).length||c.hasClass(a.datepicker.markerClassName)||c.closest("."+a.datepicker._triggerClass).length||!a.datepicker._datepickerShowing||a.datepicker._inDialog&&a.blockUI)&&(!c.hasClass(a.datepicker.markerClassName)||a.datepicker._curInst===d)||a.datepicker._hideDatepicker()}},_adjustDate:function(b,c,d){var e=a(b),f=this._getInst(e[0]);this._isDisabledDatepicker(e[0])||(this._adjustInstDate(f,c+("M"===d?this._get(f,"showCurrentAtPos"):0),d),this._updateDatepicker(f))},_gotoToday:function(b){var c,d=a(b),e=this._getInst(d[0]);this._get(e,"gotoCurrent")&&e.currentDay?(e.selectedDay=e.currentDay,e.drawMonth=e.selectedMonth=e.currentMonth,e.drawYear=e.selectedYear=e.currentYear):(c=new Date,e.selectedDay=c.getDate(),e.drawMonth=e.selectedMonth=c.getMonth(),e.drawYear=e.selectedYear=c.getFullYear()),this._notifyChange(e),this._adjustDate(d)},_selectMonthYear:function(b,c,d){var e=a(b),f=this._getInst(e[0]);f["selected"+("M"===d?"Month":"Year")]=f["draw"+("M"===d?"Month":"Year")]=parseInt(c.options[c.selectedIndex].value,10),this._notifyChange(f),this._adjustDate(e)},_selectDay:function(b,c,d,e){var f,g=a(b);a(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(g[0])||(f=this._getInst(g[0]),f.selectedDay=f.currentDay=a("a",e).html(),f.selectedMonth=f.currentMonth=c,f.selectedYear=f.currentYear=d,this._selectDate(b,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear)))},_clearDate:function(b){var c=a(b);this._selectDate(c,"")},_selectDate:function(b,c){var d,e=a(b),f=this._getInst(e[0]);c=null!=c?c:this._formatDate(f),f.input&&f.input.val(c),this._updateAlternate(f),d=this._get(f,"onSelect"),d?d.apply(f.input?f.input[0]:null,[c,f]):f.input&&f.input.trigger("change"),f.inline?this._updateDatepicker(f):(this._hideDatepicker(),this._lastInput=f.input[0],"object"!=typeof f.input[0]&&f.input.focus(),this._lastInput=null)},_updateAlternate:function(b){var c,d,e,f=this._get(b,"altField");f&&(c=this._get(b,"altFormat")||this._get(b,"dateFormat"),d=this._getDate(b),e=this.formatDate(c,d,this._getFormatConfig(b)),a(f).each(function(){a(this).val(e)}))}
vendor: 14,341 bytes, line 17901
17901,noWeekends:function(a){var b=a.getDay();return[b>0&&b<6,""]},iso8601Week:function(a){var b,c=new Date(a.getTime());return c.setDate(c.getDate()+4-(c.getDay()||7)),b=c.getTime(),c.setMonth(0),c.setDate(1),Math.floor(Math.round((b-c)/864e5)/7)+1},parseDate:function(b,c,d){if(null==b||null==c)throw"Invalid arguments";if(c="object"==typeof c?c.toString():c+"",""===c)return null;var e,f,g,t,h=0,i=(d?d.shortYearCutoff:null)||this._defaults.shortYearCutoff,j="string"!=typeof i?i:(new Date).getFullYear()%100+parseInt(i,10),k=(d?d.dayNamesShort:null)||this._defaults.dayNamesShort,l=(d?d.dayNames:null)||this._defaults.dayNames,m=(d?d.monthNamesShort:null)||this._defaults.monthNamesShort,n=(d?d.monthNames:null)||this._defaults.monthNames,o=-1,p=-1,q=-1,r=-1,s=!1,u=function(a){var c=e+1<b.length&&b.charAt(e+1)===a;return c&&e++,c},v=function(a){var b=u(a),d="@"===a?14:"!"===a?20:"y"===a&&b?4:"o"===a?3:2,e=new RegExp("^\\d{1,"+d+"}"),f=c.substring(h).match(e);if(!f)throw"Missing number at position "+h;return h+=f[0].length,parseInt(f[0],10)},w=function(b,d,e){var f=-1,g=a.map(u(b)?e:d,function(a,b){return[[b,a]]}).sort(function(a,b){return-(a[1].length-b[1].length)});if(a.each(g,function(a,b){var d=b[1];if(c.substr(h,d.length).toLowerCase()===d.toLowerCase())return f=b[0],h+=d.length,!1}),f!==-1)return f+1;throw"Unknown name at position "+h},x=function(){if(c.charAt(h)!==b.charAt(e))throw"Unexpected literal at position "+h;h++};for(e=0;e<b.length;e++)if(s)"'"!==b.charAt(e)||u("'")?x():s=!1;else switch(b.charAt(e)){case"d":q=v("d");break;case"D":w("D",k,l);break;case"o":r=v("o");break;case"m":p=v("m");break;case"M":p=w("M",m,n);break;case"y":o=v("y");break;case"@":t=new Date(v("@")),o=t.getFullYear(),p=t.getMonth()+1,q=t.getDate();break;case"!":t=new Date((v("!")-this._ticksTo1970)/1e4),o=t.getFullYear(),p=t.getMonth()+1,q=t.getDate();break;case"'":u("'")?x():s=!0;break;default:x()}if(h<c.length&&(g=c.substr(h),!/^\s+/.test(g)))throw"Extra/unparsed characters found in date: "+g;if(o===-1?o=(new Date).getFullYear():o<100&&(o+=(new Date).getFullYear()-(new Date).getFullYear()%100+(o<=j?0:-100)),r>-1)for(p=1,q=r;;){if(f=this._getDaysInMonth(o,p-1),q<=f)break;p++,q-=f}if(t=this._daylightSavingAdjust(new Date(o,p-1,q)),t.getFullYear()!==o||t.getMonth()+1!==p||t.getDate()!==q)throw"Invalid date";return t},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(a,b,c){if(!b)return"";var d,e=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,f=(c?c.dayNames:null)||this._defaults.dayNames,g=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,h=(c?c.monthNames:null)||this._defaults.monthNames,i=function(b){var c=d+1<a.length&&a.charAt(d+1)===b;return c&&d++,c},j=function(a,b,c){var d=""+b;if(i(a))for(;d.length<c;)d="0"+d;return d},k=function(a,b,c,d){return i(a)?d[b]:c[b]},l="",m=!1;if(b)for(d=0;d<a.length;d++)if(m)"'"!==a.charAt(d)||i("'")?l+=a.charAt(d):m=!1;else switch(a.charAt(d)){case"d":l+=j("d",b.getDate(),2);break;case"D":l+=k("D",b.getDay(),e,f);break;case"o":l+=j("o",Math.round((new Date(b.getFullYear(),b.getMonth(),b.getDate()).getTime()-new Date(b.getFullYear(),0,0).getTime())/864e5),3);break;case"m":l+=j("m",b.getMonth()+1,2);break;case"M":l+=k("M",b.getMonth(),g,h);break;case"y":l+=i("y")?b.getFullYear():(b.getYear()%100<10?"0":"")+b.getYear()%100;break;case"@":l+=b.getTime();break;case"!":l+=1e4*b.getTime()+this._ticksTo1970;break;case"'":i("'")?l+="'":m=!0;break;default:l+=a.charAt(d)}return l},_possibleChars:function(a){var b,c="",d=!1,e=function(c){var d=b+1<a.length&&a.charAt(b+1)===c;return d&&b++,d};for(b=0;b<a.length;b++)if(d)"'"!==a.charAt(b)||e("'")?c+=a.charAt(b):d=!1;else switch(a.charAt(b)){case"d":case"m":case"y":case"@":c+="0123456789";break;case"D":case"M":return null;case"'":e("'")?c+="'":d=!0;break;default:c+=a.charAt(b)}return c},_get:function(a,c){return a.settings[c]!==b?a.settings[c]:this._defaults[c]},_setDateFromField:function(a,b){if(a.input.val()!==a.lastVal){var c=this._get(a,"dateFormat"),d=a.lastVal=a.input?a.input.val():null,e=this._getDefaultDate(a),f=e,g=this._getFormatConfig(a);try{f=this.parseDate(c,d,g)||e}catch(a){d=b?"":d}a.selectedDay=f.getDate(),a.drawMonth=a.selectedMonth=f.getMonth(),a.drawYear=a.selectedYear=f.getFullYear(),a.currentDay=d?f.getDate():0,a.currentMonth=d?f.getMonth():0,a.currentYear=d?f.getFullYear():0,this._adjustInstDate(a)}},_getDefaultDate:function(a){return this._restrictMinMax(a,this._determineDate(a,this._get(a,"defaultDate"),new Date))},_determineDate:function(b,c,d){var e=function(a){var b=new Date;return b.setDate(b.getDate()+a),b},f=function(c){try{return a.datepicker.parseDate(a.datepicker._get(b,"dateFormat"),c,a.datepicker._getFormatConfig(b))}catch(a){}for(var d=(c.toLowerCase().match(/^c/)?a.datepicker._getDate(b):null)||new Date,e=d.getFullYear(),f=d.getMonth(),g=d.getDate(),h=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,i=h.exec(c);i;){switch(i[2]||"d"){case"d":case"D":g+=parseInt(i[1],10);break;case"w":case"W":g+=7*parseInt(i[1],10);break;case"m":case"M":f+=parseInt(i[1],10),g=Math.min(g,a.datepicker._getDaysInMonth(e,f));break;case"y":case"Y":e+=parseInt(i[1],10),g=Math.min(g,a.datepicker._getDaysInMonth(e,f))}i=h.exec(c)}return new Date(e,f,g)},g=null==c||""===c?d:"string"==typeof c?f(c):"number"==typeof c?isNaN(c)?d:e(c):new Date(c.getTime());return g=g&&"Invalid Date"===g.toString()?d:g,g&&(g.setHours(0),g.setMinutes(0),g.setSeconds(0),g.setMilliseconds(0)),this._daylightSavingAdjust(g)},_daylightSavingAdjust:function(a){return a?(a.setHours(a.getHours()>12?a.getHours()+2:0),a):null},_setDate:function(a,b,c){var d=!b,e=a.selectedMonth,f=a.selectedYear,g=this._restrictMinMax(a,this._determineDate(a,b,new Date));a.selectedDay=a.currentDay=g.getDate(),a.drawMonth=a.selectedMonth=a.currentMonth=g.getMonth(),a.drawYear=a.selectedYear=a.currentYear=g.getFullYear(),e===a.selectedMonth&&f===a.selectedYear||c||this._notifyChange(a),this._adjustInstDate(a),a.input&&a.input.val(d?"":this._formatDate(a))},_getDate:function(a){var b=!a.currentYear||a.input&&""===a.input.val()?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return b},_attachHandlers:function(b){var c=this._get(b,"stepMonths"),d="#"+b.id.replace(/\\\\/g,"\\");b.dpDiv.find("[data-handler]").map(function(){var b={prev:function(){a.datepicker._adjustDate(d,-c,"M")},next:function(){a.datepicker._adjustDate(d,+c,"M")},hide:function(){a.datepicker._hideDatepicker()},today:function(){a.datepicker._gotoToday(d)},selectDay:function(){return a.datepicker._selectDay(d,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return a.datepicker._selectMonthYear(d,this,"M"),!1},selectYear:function(){return a.datepicker._selectMonthYear(d,this,"Y"),!1}};a(this).bind(this.getAttribute("data-event"),b[this.getAttribute("data-handler")])})},_generateHTML:function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O=new Date,P=this._daylightSavingAdjust(new Date(O.getFullYear(),O.getMonth(),O.getDate())),Q=this._get(a,"isRTL"),R=this._get(a,"showButtonPanel"),S=this._get(a,"hideIfNoPrevNext"),T=this._get(a,"navigationAsDateFormat"),U=this._getNumberOfMonths(a),V=this._get(a,"showCurrentAtPos"),W=this._get(a,"stepMonths"),X=1!==U[0]||1!==U[1],Y=this._daylightSavingAdjust(a.currentDay?new Date(a.currentYear,a.currentMonth,a.currentDay):new Date(9999,9,9)),Z=this._getMinMaxDate(a,"min"),$=this._getMinMaxDate(a,"max"),_=a.drawMonth-V,aa=a.drawYear;if(_<0&&(_+=12,aa--),$)for(b=this._daylightSavingAdjust(new Date($.getFullYear(),$.getMonth()-U[0]*U[1]+1,$.getDate())),b=Z&&b<Z?Z:b;this._daylightSavingAdjust(new Date(aa,_,1))>b;)_--,_<0&&(_=11,aa--);for(a.drawMonth=_,a.drawYear=aa,c=this._get(a,"prevText"),c=T?this.formatDate(c,this._daylightSavingAdjust(new Date(aa,_-W,1)),this._getFormatConfig(a)):c,d=this._canAdjustMonth(a,-1,aa,_)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+c+"'><span class='ui-icon ui-icon-circle-triangle-"+(Q?"e":"w")+"'>"+c+"</span></a>":S?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+c+"'><span class='ui-icon ui-icon-circle-triangle-"+(Q?"e":"w")+"'>"+c+"</span></a>",e=this._get(a,"nextText"),e=T?this.formatDate(e,this._daylightSavingAdjust(new Date(aa,_+W,1)),this._getFormatConfig(a)):e,f=this._canAdjustMonth(a,1,aa,_)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+e+"'><span class='ui-icon ui-icon-circle-triangle-"+(Q?"w":"e")+"'>"+e+"</span></a>":S?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+e+"'><span class='ui-icon ui-icon-circle-triangle-"+(Q?"w":"e")+"'>"+e+"</span></a>",g=this._get(a,"currentText"),h=this._get(a,"gotoCurrent")&&a.currentDay?Y:P,g=T?this.formatDate(g,h,this._getFormatConfig(a)):g,i=a.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(a,"closeText")+"</button>",j=R?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(Q?i:"")+(this._isInRange(a,h)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+g+"</button>":"")+(Q?"":i)+"</div>":"",k=parseInt(this._get(a,"firstDay"),10),k=isNaN(k)?0:k,l=this._get(a,"showWeek"),m=this._get(a,"dayNames"),n=this._get(a,"dayNamesMin"),o=this._get(a,"monthNames"),p=this._get(a,"monthNamesShort"),q=this._get(a,"beforeShowDay"),r=this._get(a,"showOtherMonths"),s=this._get(a,"selectOtherMonths"),t=this._getDefaultDate(a),u="",w=0;w<U[0];w++){for(x="",this.maxRows=4,y=0;y<U[1];y++){if(z=this._daylightSavingAdjust(new Date(aa,_,a.selectedDay)),A=" ui-corner-all",B="",X){if(B+="<div class='ui-datepicker-group",U[1]>1)switch(y){case 0:B+=" ui-datepicker-group-first",A=" ui-corner-"+(Q?"right":"left");break;case U[1]-1:B+=" ui-datepicker-group-last",A=" ui-corner-"+(Q?"left":"right");break;default:B+=" ui-datepicker-group-middle",A=""}B+="'>"}for(B+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+A+"'>"+(/all|left/.test(A)&&0===w?Q?f:d:"")+(/all|right/.test(A)&&0===w?Q?d:f:"")+this._generateMonthYearHeader(a,_,aa,Z,$,w>0||y>0,o,p)+"</div><table class='ui-datepicker-calendar'><thead><tr>",C=l?"<th class='ui-datepicker-week-col'>"+this._get(a,"weekHeader")+"</th>":"",v=0;v<7;v++)D=(v+k)%7,C+="<th"+((v+k+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+m[D]+"'>"+n[D]+"</span></th>";for(B+=C+"</tr></thead><tbody>",E=this._getDaysInMonth(aa,_),aa===a.selectedYear&&_===a.selectedMonth&&(a.selectedDay=Math.min(a.selectedDay,E)),F=(this._getFirstDayOfMonth(aa,_)-k+7)%7,G=Math.ceil((F+E)/7),H=X&&this.maxRows>G?this.maxRows:G,this.maxRows=H,I=this._daylightSavingAdjust(new Date(aa,_,1-F)),J=0;J<H;J++){for(B+="<tr>",K=l?"<td class='ui-datepicker-week-col'>"+this._get(a,"calculateWeek")(I)+"</td>":"",v=0;v<7;v++)L=q?q.apply(a.input?a.input[0]:null,[I]):[!0,""],M=I.getMonth()!==_,N=M&&!s||!L[0]||Z&&I<Z||$&&I>$,K+="<td class='"+((v+k+6)%7>=5?" ui-datepicker-week-end":"")+(M?" ui-datepicker-other-month":"")+(I.getTime()===z.getTime()&&_===a.selectedMonth&&a._keyEvent||t.getTime()===I.getTime()&&t.getTime()===z.getTime()?" "+this._dayOverClass:"")+(N?" "+this._unselectableClass+" ui-state-disabled":"")+(M&&!r?"":" "+L[1]+(I.getTime()===Y.getTime()?" "+this._currentClass:"")+(I.getTime()===P.getTime()?" ui-datepicker-today":""))+"'"+(M&&!r||!L[2]?"":" title='"+L[2].replace(/'/g,"'")+"'")+(N?"":" data-handler='selectDay' data-event='click' data-month='"+I.getMonth()+"' data-year='"+I.getFullYear()+"'")+">"+(M&&!r?" ":N?"<span class='ui-state-default'>"+I.getDate()+"</span>":"<a class='ui-state-default"+(I.getTime()===P.getTime()?" ui-state-highlight":"")+(I.getTime()===Y.getTime()?" ui-state-active":"")+(M?" ui-priority-secondary":"")+"' href='#'>"+I.getDate()+"</a>")+"</td>",I.setDate(I.getDate()+1),I=this._daylightSavingAdjust(I);B+=K+"</tr>"}_++,_>11&&(_=0,aa++),B+="</tbody></table>"+(X?"</div>"+(U[0]>0&&y===U[1]-1?"<div class='ui-datepicker-row-break'></div>":""):""),x+=B}u+=x}return u+=j,a._keyEvent=!1,u},_generateMonthYearHeader:function(a,b,c,d,e,f,g,h){var i,j,k,l,m,n,o,p,q=this._get(a,"changeMonth"),r=this._get(a,"changeYear"),s=this._get(a,"showMonthAfterYear"),t="<div class='ui-datepicker-title'>",u="";if(f||!q)u+="<span class='ui-datepicker-month'>"+g[b]+"</span>";else{for(i=d&&d.getFullYear()===c,j=e&&e.getFullYear()===c,u+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",k=0;k<12;k++)(!i||k>=d.getMonth())&&(!j||k<=e.getMonth())&&(u+="<option value='"+k+"'"+(k===b?" selected='selected'":"")+">"+h[k]+"</option>");u+="</select>"}if(s||(t+=u+(!f&&q&&r?"":" ")),!a.yearshtml)if(a.yearshtml="",f||!r)t+="<span class='ui-datepicker-year'>"+c+"</span>";else{for(l=this._get(a,"yearRange").split(":"),m=(new Date).getFullYear(),n=function(a){var b=a.match(/c[+\-].*/)?c+parseInt(a.substring(1),10):a.match(/[+\-].*/)?m+parseInt(a,10):parseInt(a,10);return isNaN(b)?m:b},o=n(l[0]),p=Math.max(o,n(l[1]||"")),o=d?Math.max(o,d.getFullYear()):o,p=e?Math.min(p,e.getFullYear()):p,a.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";o<=p;o++)a.yearshtml+="<option value='"+o+"'"+(o===c?" selected='selected'":"")+">"+o+"</option>";a.yearshtml+="</select>",t+=a.yearshtml,a.yearshtml=null}return t+=this._get(a,"yearSuffix"),s&&(t+=(!f&&q&&r?"":" ")+u),t+="</div>"},_adjustInstDate:function(a,b,c){var d=a.drawYear+("Y"===c?b:0),e=a.drawMonth+("M"===c?b:0),f=Math.min(a.selectedDay,this._getDaysInMonth(d,e))+("D"===c?b:0),g=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(d,e,f)));a.selectedDay=g.getDate(),a.drawMonth=a.selectedMonth=g.getMonth(),a.drawYear=a.selectedYear=g.getFullYear(),"M"!==c&&"Y"!==c||this._notifyChange(a)},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,"min"),d=this._getMinMaxDate(a,"max"),e=c&&b<c?c:b;return d&&e>d?d:e}
vendor: 21,179 bytes, line 17901
17901,_notifyChange:function(a){var b=this._get(a,"onChangeMonthYear");b&&b.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){var b=this._get(a,"numberOfMonths");return null==b?[1,1]:"number"==typeof b?[1,b]:b},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:function(a,b){return 32-this._daylightSavingAdjust(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return new Date(a,b,1).getDay()},_canAdjustMonth:function(a,b,c,d){var e=this._getNumberOfMonths(a),f=this._daylightSavingAdjust(new Date(c,d+(b<0?b:e[0]*e[1]),1));return b<0&&f.setDate(this._getDaysInMonth(f.getFullYear(),f.getMonth())),this._isInRange(a,f)},_isInRange:function(a,b){var c,d,e=this._getMinMaxDate(a,"min"),f=this._getMinMaxDate(a,"max"),g=null,h=null,i=this._get(a,"yearRange");return i&&(c=i.split(":"),d=(new Date).getFullYear(),g=parseInt(c[0],10),h=parseInt(c[1],10),c[0].match(/[+\-].*/)&&(g+=d),c[1].match(/[+\-].*/)&&(h+=d)),(!e||b.getTime()>=e.getTime())&&(!f||b.getTime()<=f.getTime())&&(!g||b.getFullYear()>=g)&&(!h||b.getFullYear()<=h)},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff");return b="string"!=typeof b?b:(new Date).getFullYear()%100+parseInt(b,10),{shortYearCutoff:b,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,c,d){b||(a.currentDay=a.selectedDay,a.currentMonth=a.selectedMonth,a.currentYear=a.selectedYear);var e=b?"object"==typeof b?b:this._daylightSavingAdjust(new Date(d,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),e,this._getFormatConfig(a))}}),a.fn.datepicker=function(b){if(!this.length)return this;a.datepicker.initialized||(a(document).mousedown(a.datepicker._checkExternalClick),a.datepicker.initialized=!0),0===a("#"+a.datepicker._mainDivId).length&&a("body").append(a.datepicker.dpDiv);var c=Array.prototype.slice.call(arguments,1);return"string"!=typeof b||"isDisabled"!==b&&"getDate"!==b&&"widget"!==b?"option"===b&&2===arguments.length&&"string"==typeof arguments[1]?a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this[0]].concat(c)):this.each(function(){"string"==typeof b?a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this].concat(c)):a.datepicker._attachDatepicker(this,b)}):a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this[0]].concat(c))},a.datepicker=new e,a.datepicker.initialized=!1,a.datepicker.uuid=(new Date).getTime(),a.datepicker.version="1.10.3"}(jQuery),function(a,b){var c={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},d={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0};a.widget("ui.dialog",{version:"1.10.3",options:{appendTo:"body",autoOpen:!0,buttons:[],closeOnEscape:!0,closeText:"close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(b){var c=a(this).css(b).offset().top;c<0&&a(this).css("top",b.top-c)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),this.options.title=this.options.title||this.originalTitle,this._createWrapper(),this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(this.uiDialog),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&a.fn.draggable&&this._makeDraggable(),this.options.resizable&&a.fn.resizable&&this._makeResizable(),this._isOpen=!1},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var b=this.options.appendTo;return b&&(b.jquery||b.nodeType)?a(b):this.document.find(b||"body").eq(0)},_destroy:function(){var a,b=this.originalPosition;this._destroyOverlay(),this.element.removeUniqueId().removeClass("ui-dialog-content ui-widget-content").css(this.originalCss).detach(),this.uiDialog.stop(!0,!0).remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),a=b.parent.children().eq(b.index),a.length&&a[0]!==this.element[0]?a.before(this.element):b.parent.append(this.element)},widget:function(){return this.uiDialog},disable:a.noop,enable:a.noop,close:function(b){var c=this;this._isOpen&&this._trigger("beforeClose",b)!==!1&&(this._isOpen=!1,this._destroyOverlay(),this.opener.filter(":focusable").focus().length||a(this.document[0].activeElement).blur(),this._hide(this.uiDialog,this.options.hide,function(){c._trigger("close",b)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(a,b){var c=!!this.uiDialog.nextAll(":visible").insertBefore(this.uiDialog).length;return c&&!b&&this._trigger("focus",a),c},open:function(){var b=this;return this._isOpen?void(this._moveToTop()&&this._focusTabbable()):(this._isOpen=!0,this.opener=a(this.document[0].activeElement),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this._show(this.uiDialog,this.options.show,function(){b._focusTabbable(),b._trigger("focus")}),void this._trigger("open"))},_focusTabbable:function(){var a=this.element.find("[autofocus]");a.length||(a=this.element.find(":tabbable")),a.length||(a=this.uiDialogButtonPane.find(":tabbable")),a.length||(a=this.uiDialogTitlebarClose.filter(":tabbable")),a.length||(a=this.uiDialog),a.eq(0).focus()},_keepFocus:function(b){function c(){var b=this.document[0].activeElement,c=this.uiDialog[0]===b||a.contains(this.uiDialog[0],b);c||this._focusTabbable()}b.preventDefault(),c.call(this),this._delay(c)},_createWrapper:function(){this.uiDialog=a("<div>").addClass("ui-dialog ui-widget ui-widget-content ui-corner-all ui-front "+this.options.dialogClass).hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._on(this.uiDialog,{keydown:function(b){if(this.options.closeOnEscape&&!b.isDefaultPrevented()&&b.keyCode&&b.keyCode===a.ui.keyCode.ESCAPE)return b.preventDefault(),void this.close(b);if(b.keyCode===a.ui.keyCode.TAB){var c=this.uiDialog.find(":tabbable"),d=c.filter(":first"),e=c.filter(":last");b.target!==e[0]&&b.target!==this.uiDialog[0]||b.shiftKey?b.target!==d[0]&&b.target!==this.uiDialog[0]||!b.shiftKey||(e.focus(1),b.preventDefault()):(d.focus(1),b.preventDefault())}},mousedown:function(a){this._moveToTop(a)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var b;this.uiDialogTitlebar=a("<div>").addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(this.uiDialog),this._on(this.uiDialogTitlebar,{mousedown:function(b){a(b.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.focus()}}),this.uiDialogTitlebarClose=a("<button></button>").button({label:this.options.closeText,icons:{primary:"ui-icon-closethick"},text:!1}).addClass("ui-dialog-titlebar-close").appendTo(this.uiDialogTitlebar),this._on(this.uiDialogTitlebarClose,{click:function(a){a.preventDefault(),this.close(a)}}),b=a("<span>").uniqueId().addClass("ui-dialog-title").prependTo(this.uiDialogTitlebar),this._title(b),this.uiDialog.attr({"aria-labelledby":b.attr("id")})},_title:function(a){this.options.title||a.html(" "),a.text(this.options.title)},_createButtonPane:function(){this.uiDialogButtonPane=a("<div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),this.uiButtonSet=a("<div>").addClass("ui-dialog-buttonset").appendTo(this.uiDialogButtonPane),this._createButtons()},_createButtons:function(){var b=this,c=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),a.isEmptyObject(c)||a.isArray(c)&&!c.length?void this.uiDialog.removeClass("ui-dialog-buttons"):(a.each(c,function(c,d){var e,f;d=a.isFunction(d)?{click:d,text:c}:d,d=a.extend({type:"button"},d),e=d.click,d.click=function(){e.apply(b.element[0],arguments)},f={icons:d.icons,text:d.showText},delete d.icons,delete d.showText,a("<button></button>",d).button(f).appendTo(b.uiButtonSet)}),this.uiDialog.addClass("ui-dialog-buttons"),void this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){function d(a){return{position:a.position,offset:a.offset}}var b=this,c=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(c,e){a(this).addClass("ui-dialog-dragging"),b._blockFrames(),b._trigger("dragStart",c,d(e))},drag:function(a,c){b._trigger("drag",a,d(c))},stop:function(e,f){c.position=[f.position.left-b.document.scrollLeft(),f.position.top-b.document.scrollTop()],a(this).removeClass("ui-dialog-dragging"),b._unblockFrames(),b._trigger("dragStop",e,d(f))}})},_makeResizable:function(){function g(a){return{originalPosition:a.originalPosition,originalSize:a.originalSize,position:a.position,size:a.size}}var b=this,c=this.options,d=c.resizable,e=this.uiDialog.css("position"),f="string"==typeof d?d:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:c.maxWidth,maxHeight:c.maxHeight,minWidth:c.minWidth,minHeight:this._minHeight(),handles:f,start:function(c,d){a(this).addClass("ui-dialog-resizing"),b._blockFrames(),b._trigger("resizeStart",c,g(d))},resize:function(a,c){b._trigger("resize",a,g(c))},stop:function(d,e){c.height=a(this).height(),c.width=a(this).width(),a(this).removeClass("ui-dialog-resizing"),b._unblockFrames(),b._trigger("resizeStop",d,g(e))}}).css("position",e)},_minHeight:function(){var a=this.options;return"auto"===a.height?a.minHeight:Math.min(a.minHeight,a.height)},_position:function(){var a=this.uiDialog.is(":visible");a||this.uiDialog.show(),this.uiDialog.position(this.options.position),a||this.uiDialog.hide()},_setOptions:function(b){var e=this,f=!1,g={};a.each(b,function(a,b){e._setOption(a,b),a in c&&(f=!0),a in d&&(g[a]=b)}),f&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",g)},_setOption:function(a,b){var c,d,e=this.uiDialog;"dialogClass"===a&&e.removeClass(this.options.dialogClass).addClass(b),"disabled"!==a&&(this._super(a,b),"appendTo"===a&&this.uiDialog.appendTo(this._appendTo()),"buttons"===a&&this._createButtons(),"closeText"===a&&this.uiDialogTitlebarClose.button({label:""+b}),"draggable"===a&&(c=e.is(":data(ui-draggable)"),c&&!b&&e.draggable("destroy"),!c&&b&&this._makeDraggable()),"position"===a&&this._position(),"resizable"===a&&(d=e.is(":data(ui-resizable)"),d&&!b&&e.resizable("destroy"),d&&"string"==typeof b&&e.resizable("option","handles",b),d||b===!1||this._makeResizable()),"title"===a&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var a,b,c,d=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),d.minWidth>d.width&&(d.width=d.minWidth),a=this.uiDialog.css({height:"auto",width:d.width}).outerHeight(),b=Math.max(0,d.minHeight-a),c="number"==typeof d.maxHeight?Math.max(0,d.maxHeight-a):"none","auto"===d.height?this.element.css({minHeight:b,maxHeight:c,height:"auto"}):this.element.height(Math.max(0,d.height-a)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var b=a(this);return a("<div>").css({position:"absolute",width:b.outerWidth(),height:b.outerHeight()}).appendTo(b.parent()).offset(b.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(b){return!!a(b.target).closest(".ui-dialog").length||!!a(b.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var b=this,c=this.widgetFullName;a.ui.dialog.overlayInstances||this._delay(function(){a.ui.dialog.overlayInstances&&this.document.bind("focusin.dialog",function(d){b._allowInteraction(d)||(d.preventDefault(),a(".ui-dialog:visible:last .ui-dialog-content").data(c)._focusTabbable())})}),this.overlay=a("<div>").addClass("ui-widget-overlay ui-front").appendTo(this._appendTo()),this._on(this.overlay,{mousedown:"_keepFocus"}),a.ui.dialog.overlayInstances++}},_destroyOverlay:function(){this.options.modal&&this.overlay&&(a.ui.dialog.overlayInstances--,a.ui.dialog.overlayInstances||this.document.unbind("focusin.dialog"),this.overlay.remove(),this.overlay=null)}}),a.ui.dialog.overlayInstances=0,a.uiBackCompat!==!1&&a.widget("ui.dialog",a.ui.dialog,{_position:function(){var e,b=this.options.position,c=[],d=[0,0];b?(("string"==typeof b||"object"==typeof b&&"0"in b)&&(c=b.split?b.split(" "):[b[0],b[1]],1===c.length&&(c[1]=c[0]),a.each(["left","top"],function(a,b){+c[a]===c[a]&&(d[a]=c[a],c[a]=b)}),b={my:c[0]+(d[0]<0?d[0]:"+"+d[0])+" "+c[1]+(d[1]<0?d[1]:"+"+d[1]),at:c.join(" ")}),b=a.extend({},a.ui.dialog.prototype.options.position,b)):b=a.ui.dialog.prototype.options.position,e=this.uiDialog.is(":visible"),e||this.uiDialog.show(),this.uiDialog.position(b),e||this.uiDialog.hide()}})}(jQuery),function(a,b){var c=/up|down|vertical/,d=/up|left|vertical|horizontal/;a.effects.effect.blind=function(b,e){var p,q,r,f=a(this),g=["position","top","bottom","left","right","height","width"],h=a.effects.setMode(f,b.mode||"hide"),i=b.direction||"up",j=c.test(i),k=j?"height":"width",l=j?"top":"left",m=d.test(i),n={},o="show"===h;f.parent().is(".ui-effects-wrapper")?a.effects.save(f.parent(),g):a.effects.save(f,g),f.show(),p=a.effects.createWrapper(f).css({overflow:"hidden"}),q=p[k](),r=parseFloat(p.css(l))||0,n[k]=o?q:0,m||(f.css(j?"bottom":"right",0).css(j?"top":"left","auto").css({position:"absolute"}),n[l]=o?r:q+r),o&&(p.css(k,0),m||p.css(l,r+q)),p.animate(n,{duration:b.duration,easing:b.easing,queue:!1,complete:function(){"hide"===h&&f.hide(),a.effects.restore(f,g),a.effects.removeWrapper(f),e()}})}}(jQuery),function(a,b){a.effects.effect.bounce=function(b,c){var q,r,s,d=a(this),e=["position","top","bottom","left","right","height","width"],f=a.effects.setMode(d,b.mode||"effect"),g="hide"===f,h="show"===f,i=b.direction||"up",j=b.distance,k=b.times||5,l=2*k+(h||g?1:0),m=b.duration/l,n=b.easing,o="up"===i||"down"===i?"top":"left",p="up"===i||"left"===i,t=d.queue(),u=t.length;for((h||g)&&e.push("opacity"),a.effects.save(d,e),d.show(),a.effects.createWrapper(d),j||(j=d["top"===o?"outerHeight":"outerWidth"]()/3),h&&(s={opacity:1},s[o]=0,d.css("opacity",0).css(o,p?2*-j:2*j).animate(s,m,n)),g&&(j/=Math.pow(2,k-1)),s={},s[o]=0,q=0;q<k;q++)r={},r[o]=(p?"-=":"+=")+j,d.animate(r,m,n).animate(s,m,n),j=g?2*j:j/2;g&&(r={opacity:0},r[o]=(p?"-=":"+=")+j,d.animate(r,m,n)),d.queue(function(){g&&d.hide(),a.effects.restore(d,e),a.effects.removeWrapper(d),c()}),u>1&&t.splice.apply(t,[1,0].concat(t.splice(u,l+1))),d.dequeue()}}(jQuery),function(a,b){a.effects.effect.clip=function(b,c){var m,n,o,d=a(this),e=["position","top","bottom","left","right","height","width"],f=a.effects.setMode(d,b.mode||"hide"),g="show"===f,h=b.direction||"vertical",i="vertical"===h,j=i?"height":"width",k=i?"top":"left",l={};a.effects.save(d,e),d.show(),m=a.effects.createWrapper(d).css({overflow:"hidden"}),n="IMG"===d[0].tagName?m:d,o=n[j](),g&&(n.css(j,0),n.css(k,o/2)),l[j]=g?o:0,l[k]=g?0:o/2,n.animate(l,{queue:!1,duration:b.duration,easing:b.easing,complete:function(){g||d.hide(),a.effects.restore(d,e),a.effects.removeWrapper(d),c()}})}}(jQuery),function(a,b){a.effects.effect.drop=function(b,c){var l,d=a(this),e=["position","top","bottom","left","right","opacity","height","width"],f=a.effects.setMode(d,b.mode||"hide"),g="show"===f,h=b.direction||"left",i="up"===h||"down"===h?"top":"left",j="up"===h||"left"===h?"pos":"neg",k={opacity:g?1:0};a.effects.save(d,e),d.show(),a.effects.createWrapper(d),l=b.distance||d["top"===i?"outerHeight":"outerWidth"](!0)/2,g&&d.css("opacity",0).css(i,"pos"===j?-l:l),k[i]=(g?"pos"===j?"+=":"-=":"pos"===j?"-=":"+=")+l,d.animate(k,{queue:!1,duration:b.duration,easing:b.easing,complete:function(){"hide"===f&&d.hide(),a.effects.restore(d,e),a.effects.removeWrapper(d),c()}})}}(jQuery),function(a,b){a.effects.effect.explode=function(b,c){function s(){l.push(this),l.length===d*e&&t()}function t(){f.css({visibility:"visible"}),a(l).remove(),h||f.hide(),c()}var m,n,o,p,q,r,d=b.pieces?Math.round(Math.sqrt(b.pieces)):3,e=d,f=a(this),g=a.effects.setMode(f,b.mode||"hide"),h="show"===g,i=f.show().css("visibility","hidden").offset(),j=Math.ceil(f.outerWidth()/e),k=Math.ceil(f.outerHeight()/d),l=[];for(m=0;m<d;m++)for(p=i.top+m*k,r=m-(d-1)/2,n=0;n<e;n++)o=i.left+n*j,q=n-(e-1)/2,f.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-n*j,top:-m*k}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:j,height:k,left:o+(h?q*j:0),top:p+(h?r*k:0),opacity:h?0:1}).animate({left:o+(h?0:q*j),top:p+(h?0:r*k),opacity:h?1:0},b.duration||500,b.easing,s)}}(jQuery),function(a,b){a.effects.effect.fade=function(b,c){var d=a(this),e=a.effects.setMode(d,b.mode||"toggle");d.animate({opacity:e},{queue:!1,duration:b.duration,easing:b.easing,complete:c})}}(jQuery),function(a,b){a.effects.effect.fold=function(b,c){var o,p,d=a(this),e=["position","top","bottom","left","right","height","width"],f=a.effects.setMode(d,b.mode||"hide"),g="show"===f,h="hide"===f,i=b.size||15,j=/([0-9]+)%/.exec(i),k=!!b.horizFirst,l=g!==k,m=l?["width","height"]:["height","width"],n=b.duration/2,q={},r={};a.effects.save(d,e),d.show(),o=a.effects.createWrapper(d).css({overflow:"hidden"}),p=l?[o.width(),o.height()]:[o.height(),o.width()],j&&(i=parseInt(j[1],10)/100*p[h?0:1]),g&&o.css(k?{height:0,width:i}:{height:i,width:0}),q[m[0]]=g?p[0]:i,r[m[1]]=g?p[1]:0,o.animate(q,n,b.easing).animate(r,n,b.easing,function(){h&&d.hide(),a.effects.restore(d,e),a.effects.removeWrapper(d),c()})}}(jQuery),function(a,b){a.effects.effect.highlight=function(b,c){var d=a(this),e=["backgroundImage","backgroundColor","opacity"],f=a.effects.setMode(d,b.mode||"show"),g={backgroundColor:d.css("backgroundColor")};"hide"===f&&(g.opacity=0),a.effects.save(d,e),d.show().css({backgroundImage:"none",backgroundColor:b.color||"#ffff99"}).animate(g,{queue:!1,duration:b.duration,easing:b.easing,complete:function(){"hide"===f&&d.hide(),a.effects.restore(d,e),c()}})}}(jQuery),function(a,b){a.effects.effect.pulsate=function(b,c){var n,d=a(this),e=a.effects.setMode(d,b.mode||"show"),f="show"===e,g="hide"===e,h=f||"hide"===e,i=2*(b.times||5)+(h?1:0),j=b.duration/i,k=0,l=d.queue(),m=l.length;for(!f&&d.is(":visible")||(d.css("opacity",0).show(),k=1),n=1;n<i;n++)d.animate({opacity:k},j,b.easing),k=1-k;d.animate({opacity:k},j,b.easing),d.queue(function(){g&&d.hide(),c()}),m>1&&l.splice.apply(l,[1,0].concat(l.splice(m,i+1))),d.dequeue()}}(jQuery),function(a,b){a.effects.effect.puff=function(b,c){var d=a(this),e=a.effects.setMode(d,b.mode||"hide"),f="hide"===e,g=parseInt(b.percent,10)||150,h=g/100,i={height:d.height(),width:d.width(),outerHeight:d.outerHeight(),outerWidth:d.outerWidth()};a.extend(b,{effect:"scale",queue:!1,fade:!0,mode:e,complete:c,percent:f?g:100,from:f?i:{height:i.height*h,width:i.width*h,outerHeight:i.outerHeight*h,outerWidth:i.outerWidth*h}}),d.effect(b)},a.effects.effect.scale=function(b,c){var d=a(this),e=a.extend(!0,{},b),f=a.effects.setMode(d,b.mode||"effect"),g=parseInt(b.percent,10)||(0===parseInt(b.percent,10)?0:"hide"===f?0:100),h=b.direction||"both",i=b.origin,j={height:d.height(),width:d.width(),outerHeight:d.outerHeight(),outerWidth:d.outerWidth()},k={y:"horizontal"!==h?g/100:1,x:"vertical"!==h?g/100:1};e.effect="size",e.queue=!1,e.complete=c,"effect"!==f&&(e.origin=i||["middle","center"],e.restore=!0),e.from=b.from||("show"===f?{height:0,width:0,outerHeight:0,outerWidth:0}:j),e.to={height:j.height*k.y,width:j.width*k.x,outerHeight:j.outerHeight*k.y,outerWidth:j.outerWidth*k.x},e.fade&&("show"===f&&(e.from.opacity=0,e.to.opacity=1),"hide"===f&&(e.from.opacity=1,e.to.opacity=0)),d.effect(e)},a.effects.effect.size=function(b,c){var d,e,f,g=a(this),h=["position","top","bottom","left","right","width","height","overflow","opacity"],i=["position","top","bottom","left","right","overflow","opacity"],j=["width","height","overflow"],k=["fontSize"],l=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],m=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],n=a.effects.setMode(g,b.mode||"effect"),o=b.restore||"effect"!==n,p=b.scale||"both",q=b.origin||["middle","center"],r=g.css("position"),s=o?h:i,t={height:0,width:0,outerHeight:0,outerWidth:0};
vendor: 2,236 bytes, line 17901
17901"show"===n&&g.show(),d={height:g.height(),width:g.width(),outerHeight:g.outerHeight(),outerWidth:g.outerWidth()},"toggle"===b.mode&&"show"===n?(g.from=b.to||t,g.to=b.from||d):(g.from=b.from||("show"===n?t:d),g.to=b.to||("hide"===n?t:d)),f={from:{y:g.from.height/d.height,x:g.from.width/d.width},to:{y:g.to.height/d.height,x:g.to.width/d.width}},"box"!==p&&"both"!==p||(f.from.y!==f.to.y&&(s=s.concat(l),g.from=a.effects.setTransition(g,l,f.from.y,g.from),g.to=a.effects.setTransition(g,l,f.to.y,g.to)),f.from.x!==f.to.x&&(s=s.concat(m),g.from=a.effects.setTransition(g,m,f.from.x,g.from),g.to=a.effects.setTransition(g,m,f.to.x,g.to))),"content"!==p&&"both"!==p||f.from.y!==f.to.y&&(s=s.concat(k).concat(j),g.from=a.effects.setTransition(g,k,f.from.y,g.from),g.to=a.effects.setTransition(g,k,f.to.y,g.to)),a.effects.save(g,s),g.show(),a.effects.createWrapper(g),g.css("overflow","hidden").css(g.from),q&&(e=a.effects.getBaseline(q,d),g.from.top=(d.outerHeight-g.outerHeight())*e.y,g.from.left=(d.outerWidth-g.outerWidth())*e.x,g.to.top=(d.outerHeight-g.to.outerHeight)*e.y,g.to.left=(d.outerWidth-g.to.outerWidth)*e.x),g.css(g.from),"content"!==p&&"both"!==p||(l=l.concat(["marginTop","marginBottom"]).concat(k),m=m.concat(["marginLeft","marginRight"]),j=h.concat(l).concat(m),g.find("*[width]").each(function(){var c=a(this),d={height:c.height(),width:c.width(),outerHeight:c.outerHeight(),outerWidth:c.outerWidth()};o&&a.effects.save(c,j),c.from={height:d.height*f.from.y,width:d.width*f.from.x,outerHeight:d.outerHeight*f.from.y,outerWidth:d.outerWidth*f.from.x},c.to={height:d.height*f.to.y,width:d.width*f.to.x,outerHeight:d.height*f.to.y,outerWidth:d.width*f.to.x},f.from.y!==f.to.y&&(c.from=a.effects.setTransition(c,l,f.from.y,c.from),c.to=a.effects.setTransition(c,l,f.to.y,c.to)),f.from.x!==f.to.x&&(c.from=a.effects.setTransition(c,m,f.from.x,c.from),c.to=a.effects.setTransition(c,m,f.to.x,c.to)),c.css(c.from),c.animate(c.to,b.duration,b.easing,function(){o&&a.effects.restore(c,j)})})),g.animate(g.to,{queue:!1,duration:b.duration,easing:b.easing,complete:function(){0===g.to.opacity&&g.css("opacity",g.from.opacity),"hide"===n&&g.hide(),a.effects.restore(g,s),o||("static"===r?g.css({position:"relative",top:g.to.top,left
vendor: 36,361 bytes, line 17901
17901:g.to.left}):a.each(["top","left"],function(a,b){g.css(b,function(b,c){var d=parseInt(c,10),e=a?g.to.left:g.to.top;return"auto"===c?e+"px":d+e+"px"})})),a.effects.removeWrapper(g),c()}})}}(jQuery),function(a,b){a.effects.effect.shake=function(b,c){var q,d=a(this),e=["position","top","bottom","left","right","height","width"],f=a.effects.setMode(d,b.mode||"effect"),g=b.direction||"left",h=b.distance||20,i=b.times||3,j=2*i+1,k=Math.round(b.duration/j),l="up"===g||"down"===g?"top":"left",m="up"===g||"left"===g,n={},o={},p={},r=d.queue(),s=r.length;for(a.effects.save(d,e),d.show(),a.effects.createWrapper(d),n[l]=(m?"-=":"+=")+h,o[l]=(m?"+=":"-=")+2*h,p[l]=(m?"-=":"+=")+2*h,d.animate(n,k,b.easing),q=1;q<i;q++)d.animate(o,k,b.easing).animate(p,k,b.easing);d.animate(o,k,b.easing).animate(n,k/2,b.easing).queue(function(){"hide"===f&&d.hide(),a.effects.restore(d,e),a.effects.removeWrapper(d),c()}),s>1&&r.splice.apply(r,[1,0].concat(r.splice(s,j+1))),d.dequeue()}}(jQuery),function(a,b){a.effects.effect.slide=function(b,c){var k,d=a(this),e=["position","top","bottom","left","right","width","height"],f=a.effects.setMode(d,b.mode||"show"),g="show"===f,h=b.direction||"left",i="up"===h||"down"===h?"top":"left",j="up"===h||"left"===h,l={};a.effects.save(d,e),d.show(),k=b.distance||d["top"===i?"outerHeight":"outerWidth"](!0),a.effects.createWrapper(d).css({overflow:"hidden"}),g&&d.css(i,j?isNaN(k)?"-"+k:-k:k),l[i]=(g?j?"+=":"-=":j?"-=":"+=")+k,d.animate(l,{queue:!1,duration:b.duration,easing:b.easing,complete:function(){"hide"===f&&d.hide(),a.effects.restore(d,e),a.effects.removeWrapper(d),c()}})}}(jQuery),function(a,b){a.effects.effect.transfer=function(b,c){var d=a(this),e=a(b.to),f="fixed"===e.css("position"),g=a("body"),h=f?g.scrollTop():0,i=f?g.scrollLeft():0,j=e.offset(),k={top:j.top-h,left:j.left-i,height:e.innerHeight(),width:e.innerWidth()},l=d.offset(),m=a("<div class='ui-effects-transfer'></div>").appendTo(document.body).addClass(b.className).css({top:l.top-h,left:l.left-i,height:d.innerHeight(),width:d.innerWidth(),position:f?"fixed":"absolute"}).animate(k,b.duration,b.easing,function(){m.remove(),c()})}}(jQuery),function(a,b){a.widget("ui.menu",{version:"1.10.3",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,a.proxy(function(a){this.options.disabled&&a.preventDefault()},this)),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item > a":function(a){a.preventDefault()},"click .ui-state-disabled > a":function(a){a.preventDefault()},"click .ui-menu-item:has(a)":function(b){var c=a(b.target).closest(".ui-menu-item");!this.mouseHandled&&c.not(".ui-state-disabled").length&&(this.mouseHandled=!0,this.select(b),c.has(".ui-menu").length?this.expand(b):this.element.is(":focus")||(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(b){var c=a(b.currentTarget);c.siblings().children(".ui-state-active").removeClass("ui-state-active"),this.focus(b,c)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(a,b){var c=this.active||this.element.children(".ui-menu-item").eq(0);b||this.focus(a,c)},blur:function(b){this._delay(function(){a.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(b)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(b){a(b.target).closest(".ui-menu").length||this.collapseAll(b),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var b=a(this);b.data("ui-menu-submenu-carat")&&b.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(b){function i(a){return a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}var c,d,e,f,g,h=!0;switch(b.keyCode){case a.ui.keyCode.PAGE_UP:this.previousPage(b);break;case a.ui.keyCode.PAGE_DOWN:this.nextPage(b);break;case a.ui.keyCode.HOME:this._move("first","first",b);break;case a.ui.keyCode.END:this._move("last","last",b);break;case a.ui.keyCode.UP:this.previous(b);break;case a.ui.keyCode.DOWN:this.next(b);break;case a.ui.keyCode.LEFT:this.collapse(b);break;case a.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(b);break;case a.ui.keyCode.ENTER:case a.ui.keyCode.SPACE:this._activate(b);break;case a.ui.keyCode.ESCAPE:this.collapse(b);break;default:h=!1,d=this.previousFilter||"",e=String.fromCharCode(b.keyCode),f=!1,clearTimeout(this.filterTimer),e===d?f=!0:e=d+e,g=new RegExp("^"+i(e),"i"),c=this.activeMenu.children(".ui-menu-item").filter(function(){return g.test(a(this).children("a").text())}),c=f&&c.index(this.active.next())!==-1?this.active.nextAll(".ui-menu-item"):c,c.length||(e=String.fromCharCode(b.keyCode),g=new RegExp("^"+i(e),"i"),c=this.activeMenu.children(".ui-menu-item").filter(function(){return g.test(a(this).children("a").text())})),c.length?(this.focus(b,c),c.length>1?(this.previousFilter=e,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter):delete this.previousFilter}h&&b.preventDefault()},_activate:function(a){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true']").length?this.expand(a):this.select(a))},refresh:function(){var b,c=this.options.icons.submenu,d=this.element.find(this.options.menus);d.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var b=a(this),d=b.prev("a"),e=a("<span>").addClass("ui-menu-icon ui-icon "+c).data("ui-menu-submenu-carat",!0);d.attr("aria-haspopup","true").prepend(e),b.attr("aria-labelledby",d.attr("id"))}),b=d.add(this.element),b.children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()}),b.children(":not(.ui-menu-item)").each(function(){var b=a(this);/[^\-\u2014\u2013\s]/.test(b.text())||b.addClass("ui-widget-content ui-menu-divider")}),b.children(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!a.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(a,b){"icons"===a&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(b.submenu),this._super(a,b)},focus:function(a,b){var c,d;this.blur(a,a&&"focus"===a.type),this._scrollIntoView(b),this.active=b.first(),d=this.active.children("a").addClass("ui-state-focus"),this.options.role&&this.element.attr("aria-activedescendant",d.attr("id")),this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active"),a&&"keydown"===a.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),c=b.children(".ui-menu"),c.length&&/^mouse/.test(a.type)&&this._startOpening(c),this.activeMenu=b.parent(),this._trigger("focus",a,{item:b})},_scrollIntoView:function(b){var c,d,e,f,g,h;this._hasScroll()&&(c=parseFloat(a.css(this.activeMenu[0],"borderTopWidth"))||0,d=parseFloat(a.css(this.activeMenu[0],"paddingTop"))||0,e=b.offset().top-this.activeMenu.offset().top-c-d,f=this.activeMenu.scrollTop(),g=this.activeMenu.height(),h=b.height(),e<0?this.activeMenu.scrollTop(f+e):e+h>g&&this.activeMenu.scrollTop(f+e-g+h))},blur:function(a,b){b||clearTimeout(this.timer),this.active&&(this.active.children("a").removeClass("ui-state-focus"),this.active=null,this._trigger("blur",a,{item:this.active}))},_startOpening:function(a){clearTimeout(this.timer),"true"===a.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(a)},this.delay))},_open:function(b){var c=a.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(b.parents(".ui-menu")).hide().attr("aria-hidden","true"),b.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(c)},collapseAll:function(b,c){clearTimeout(this.timer),this.timer=this._delay(function(){var d=c?this.element:a(b&&b.target).closest(this.element.find(".ui-menu"));d.length||(d=this.element),this._close(d),this.blur(b),this.activeMenu=d},this.delay)},_close:function(a){a||(a=this.active?this.active.parent():this.element),a.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(a){var b=this.active&&this.active.parent().closest(".ui-menu-item",this.element);b&&b.length&&(this._close(),this.focus(a,b))},expand:function(a){var b=this.active&&this.active.children(".ui-menu ").children(".ui-menu-item").first();b&&b.length&&(this._open(b.parent()),this._delay(function(){this.focus(a,b)}))},next:function(a){this._move("next","first",a)},previous:function(a){this._move("prev","last",a)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(a,b,c){var d;this.active&&(d="first"===a||"last"===a?this.active["first"===a?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[a+"All"](".ui-menu-item").eq(0)),d&&d.length&&this.active||(d=this.activeMenu.children(".ui-menu-item")[b]()),this.focus(c,d)},nextPage:function(b){var c,d,e;return this.active?void(this.isLastItem()||(this._hasScroll()?(d=this.active.offset().top,e=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return c=a(this),c.offset().top-d-e<0}),this.focus(b,c)):this.focus(b,this.activeMenu.children(".ui-menu-item")[this.active?"last":"first"]()))):void this.next(b)},previousPage:function(b){var c,d,e;return this.active?void(this.isFirstItem()||(this._hasScroll()?(d=this.active.offset().top,e=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return c=a(this),c.offset().top-d+e>0}),this.focus(b,c)):this.focus(b,this.activeMenu.children(".ui-menu-item").first()))):void this.next(b)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(b){this.active=this.active||a(b.target).closest(".ui-menu-item");var c={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(b,!0),this._trigger("select",b,c)}})}(jQuery),function(a,b){function m(a,b,c){return[parseFloat(a[0])*(k.test(a[0])?b/100:1),parseFloat(a[1])*(k.test(a[1])?c/100:1)]}function n(b,c){return parseInt(a.css(b,c),10)||0}function o(b){var c=b[0];return 9===c.nodeType?{width:b.width(),height:b.height(),offset:{top:0,left:0}}:a.isWindow(c)?{width:b.width(),height:b.height(),offset:{top:b.scrollTop(),left:b.scrollLeft()}}:c.preventDefault?{width:0,height:0,offset:{top:c.pageY,left:c.pageX}}:{width:b.outerWidth(),height:b.outerHeight(),offset:b.offset()}}a.ui=a.ui||{};var c,d=Math.max,e=Math.abs,f=Math.round,g=/left|center|right/,h=/top|center|bottom/,i=/[\+\-]\d+(\.[\d]+)?%?/,j=/^\w+/,k=/%$/,l=a.fn.position;a.position={scrollbarWidth:function(){if(c!==b)return c;var d,e,f=a("<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),g=f.children()[0];return a("body").append(f),d=g.offsetWidth,f.css("overflow","scroll"),e=g.offsetWidth,d===e&&(e=f[0].clientWidth),f.remove(),c=d-e},getScrollInfo:function(b){var c=b.isWindow?"":b.element.css("overflow-x"),d=b.isWindow?"":b.element.css("overflow-y"),e="scroll"===c||"auto"===c&&b.width<b.element[0].scrollWidth,f="scroll"===d||"auto"===d&&b.height<b.element[0].scrollHeight;return{width:f?a.position.scrollbarWidth():0,height:e?a.position.scrollbarWidth():0}},getWithinInfo:function(b){var c=a(b||window),d=a.isWindow(c[0]);return{element:c,isWindow:d,offset:c.offset()||{left:0,top:0},scrollLeft:c.scrollLeft(),scrollTop:c.scrollTop(),width:d?c.width():c.outerWidth(),height:d?c.height():c.outerHeight()}}},a.fn.position=function(b){if(!b||!b.of)return l.apply(this,arguments);b=a.extend({},b);var c,k,p,q,r,s,t=a(b.of),u=a.position.getWithinInfo(b.within),v=a.position.getScrollInfo(u),w=(b.collision||"flip").split(" "),x={};return s=o(t),t[0].preventDefault&&(b.at="left top"),k=s.width,p=s.height,q=s.offset,r=a.extend({},q),a.each(["my","at"],function(){var c,d,a=(b[this]||"").split(" ");1===a.length&&(a=g.test(a[0])?a.concat(["center"]):h.test(a[0])?["center"].concat(a):["center","center"]),a[0]=g.test(a[0])?a[0]:"center",a[1]=h.test(a[1])?a[1]:"center",c=i.exec(a[0]),d=i.exec(a[1]),x[this]=[c?c[0]:0,d?d[0]:0],b[this]=[j.exec(a[0])[0],j.exec(a[1])[0]]}),1===w.length&&(w[1]=w[0]),"right"===b.at[0]?r.left+=k:"center"===b.at[0]&&(r.left+=k/2),"bottom"===b.at[1]?r.top+=p:"center"===b.at[1]&&(r.top+=p/2),c=m(x.at,k,p),r.left+=c[0],r.top+=c[1],this.each(function(){var g,h,i=a(this),j=i.outerWidth(),l=i.outerHeight(),o=n(this,"marginLeft"),s=n(this,"marginTop"),y=j+o+n(this,"marginRight")+v.width,z=l+s+n(this,"marginBottom")+v.height,A=a.extend({},r),B=m(x.my,i.outerWidth(),i.outerHeight());"right"===b.my[0]?A.left-=j:"center"===b.my[0]&&(A.left-=j/2),"bottom"===b.my[1]?A.top-=l:"center"===b.my[1]&&(A.top-=l/2),A.left+=B[0],A.top+=B[1],a.support.offsetFractions||(A.left=f(A.left),A.top=f(A.top)),g={marginLeft:o,marginTop:s},a.each(["left","top"],function(d,e){a.ui.position[w[d]]&&a.ui.position[w[d]][e](A,{targetWidth:k,targetHeight:p,elemWidth:j,elemHeight:l,collisionPosition:g,collisionWidth:y,collisionHeight:z,offset:[c[0]+B[0],c[1]+B[1]],my:b.my,at:b.at,within:u,elem:i})}),b.using&&(h=function(a){var c=q.left-A.left,f=c+k-j,g=q.top-A.top,h=g+p-l,m={target:{element:t,left:q.left,top:q.top,width:k,height:p},element:{element:i,left:A.left,top:A.top,width:j,height:l},horizontal:f<0?"left":c>0?"right":"center",vertical:h<0?"top":g>0?"bottom":"middle"};k<j&&e(c+f)<k&&(m.horizontal="center"),p<l&&e(g+h)<p&&(m.vertical="middle"),d(e(c),e(f))>d(e(g),e(h))?m.important="horizontal":m.important="vertical",b.using.call(this,a,m)}),i.offset(a.extend(A,{using:h}))})},a.ui.position={fit:{left:function(a,b){var j,c=b.within,e=c.isWindow?c.scrollLeft:c.offset.left,f=c.width,g=a.left-b.collisionPosition.marginLeft,h=e-g,i=g+b.collisionWidth-f-e;b.collisionWidth>f?h>0&&i<=0?(j=a.left+h+b.collisionWidth-f-e,a.left+=h-j):i>0&&h<=0?a.left=e:h>i?a.left=e+f-b.collisionWidth:a.left=e:h>0?a.left+=h:i>0?a.left-=i:a.left=d(a.left-g,a.left)},top:function(a,b){var j,c=b.within,e=c.isWindow?c.scrollTop:c.offset.top,f=b.within.height,g=a.top-b.collisionPosition.marginTop,h=e-g,i=g+b.collisionHeight-f-e;b.collisionHeight>f?h>0&&i<=0?(j=a.top+h+b.collisionHeight-f-e,a.top+=h-j):i>0&&h<=0?a.top=e:h>i?a.top=e+f-b.collisionHeight:a.top=e:h>0?a.top+=h:i>0?a.top-=i:a.top=d(a.top-g,a.top)}},flip:{left:function(a,b){var n,o,c=b.within,d=c.offset.left+c.scrollLeft,f=c.width,g=c.isWindow?c.scrollLeft:c.offset.left,h=a.left-b.collisionPosition.marginLeft,i=h-g,j=h+b.collisionWidth-f-g,k="left"===b.my[0]?-b.elemWidth:"right"===b.my[0]?b.elemWidth:0,l="left"===b.at[0]?b.targetWidth:"right"===b.at[0]?-b.targetWidth:0,m=-2*b.offset[0];i<0?(n=a.left+k+l+m+b.collisionWidth-f-d,(n<0||n<e(i))&&(a.left+=k+l+m)):j>0&&(o=a.left-b.collisionPosition.marginLeft+k+l+m-g,(o>0||e(o)<j)&&(a.left+=k+l+m))},top:function(a,b){var o,p,c=b.within,d=c.offset.top+c.scrollTop,f=c.height,g=c.isWindow?c.scrollTop:c.offset.top,h=a.top-b.collisionPosition.marginTop,i=h-g,j=h+b.collisionHeight-f-g,k="top"===b.my[1],l=k?-b.elemHeight:"bottom"===b.my[1]?b.elemHeight:0,m="top"===b.at[1]?b.targetHeight:"bottom"===b.at[1]?-b.targetHeight:0,n=-2*b.offset[1];i<0?(p=a.top+l+m+n+b.collisionHeight-f-d,a.top+l+m+n>i&&(p<0||p<e(i))&&(a.top+=l+m+n)):j>0&&(o=a.top-b.collisionPosition.marginTop+l+m+n-g,a.top+l+m+n>j&&(o>0||e(o)<j)&&(a.top+=l+m+n))}},flipfit:{left:function(){a.ui.position.flip.left.apply(this,arguments),a.ui.position.fit.left.apply(this,arguments)},top:function(){a.ui.position.flip.top.apply(this,arguments),a.ui.position.fit.top.apply(this,arguments)}}},function(){var b,c,d,e,f,g=document.getElementsByTagName("body")[0],h=document.createElement("div");b=document.createElement(g?"div":"body"),d={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},g&&a.extend(d,{position:"absolute",left:"-1000px",top:"-1000px"});for(f in d)b.style[f]=d[f];b.appendChild(h),c=g||document.documentElement,c.insertBefore(b,c.firstChild),h.style.cssText="position: absolute; left: 10.7432222px;",e=a(h).offset().left,a.support.offsetFractions=e>10&&e<11,b.innerHTML="",c.removeChild(b)}()}(jQuery),function(a,b){a.widget("ui.progressbar",{version:"1.10.3",options:{max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min}),this.valueDiv=a("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element),this._refreshValue()},_destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.valueDiv.remove()},value:function(a){return a===b?this.options.value:(this.options.value=this._constrainedValue(a),void this._refreshValue())},_constrainedValue:function(a){return a===b&&(a=this.options.value),this.indeterminate=a===!1,"number"!=typeof a&&(a=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,a))},_setOptions:function(a){var b=a.value;delete a.value,this._super(a),this.options.value=this._constrainedValue(b),this._refreshValue()},_setOption:function(a,b){"max"===a&&(b=Math.max(this.min,b)),this._super(a,b)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var b=this.options.value,c=this._percentage();this.valueDiv.toggle(this.indeterminate||b>this.min).toggleClass("ui-corner-right",b===this.options.max).width(c.toFixed(0)+"%"),this.element.toggleClass("ui-progressbar-indeterminate",this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=a("<div class='ui-progressbar-overlay'></div>").appendTo(this.valueDiv))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":b}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==b&&(this.oldValue=b,this._trigger("change")),b===this.options.max&&this._trigger("complete")}})}(jQuery),function(a,b){var c=5;a.widget("ui.slider",a.ui.mouse,{version:"1.10.3",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"),this._refresh(),this._setOption("disabled",this.options.disabled),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var b,c,d=this.options,e=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),f="<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>",g=[];for(c=d.values&&d.values.length||1,e.length>c&&(e.slice(c).remove(),e=e.slice(0,c)),b=e.length;b<c;b++)g.push(f);this.handles=e.add(a(g.join("")).appendTo(this.element)),this.handle=this.handles.eq(0),this.handles.each(function(b){a(this).data("ui-slider-handle-index",b)})},_createRange:function(){var b=this.options,c="";b.range?(b.range===!0&&(b.values?b.values.length&&2!==b.values.length?b.values=[b.values[0],b.values[0]]:a.isArray(b.values)&&(b.values=b.values.slice(0)):b.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?this.range.removeClass("ui-slider-range-min ui-slider-range-max").css({left:"",bottom:""}):(this.range=a("<div></div>").appendTo(this.element),c="ui-slider-range ui-widget-header ui-corner-all"),this.range.addClass(c+("min"===b.range||"max"===b.range?" ui-slider-range-"+b.range:""))):this.range=a([])},_setupEvents:function(){var a=this.handles.add(this.range).filter("a");this._off(a),this._on(a,this._handleEvents),this._hoverable(a),this._focusable(a)},_destroy:function(){this.handles.remove(),this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all"),this._mouseDestroy()},_mouseCapture:function(b){var c,d,e,f,g,h,i,j,k=this,l=this.options;return!l.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),c={x:b.pageX,y:b.pageY},d=this._normValueFromMouse(c),e=this._valueMax()-this._valueMin()+1,this.handles.each(function(b){var c=Math.abs(d-k.values(b));(e>c||e===c&&(b===k._lastChangedValue||k.values(b)===l.min))&&(e=c,f=a(this),g=b)}),h=this._start(b,g),h!==!1&&(this._mouseSliding=!0,this._handleIndex=g,f.addClass("ui-state-active").focus(),i=f.offset(),j=!a(b.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=j?{left:0,top:0}:{left:b.pageX-i.left-f.width()/2,top:b.pageY-i.top-f.height()/2-(parseInt(f.css("borderTopWidth"),10)||0)-(parseInt(f.css("borderBottomWidth"),10)||0)+(parseInt(f.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(b,g,d),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(a){var b={x:a.pageX,y:a.pageY},c=this._normValueFromMouse(b);return this._slide(a,this._handleIndex,c),!1},_mouseStop:function(a){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(a,this._handleIndex),this._change(a,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(a){var b,c,d,e,f;return"horizontal"===this.orientation?(b=this.elementSize.width,c=a.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(b=this.elementSize.height,c=a.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),d=c/b,d>1&&(d=1),d<0&&(d=0),"vertical"===this.orientation&&(d=1-d),e=this._valueMax()-this._valueMin(),f=this._valueMin()+d*e,this._trimAlignValue(f)},_start:function(a,b){var c={handle:this.handles[b],value:this.value()};return this.options.values&&this.options.values.length&&(c.value=this.values(b),c.values=this.values()),this._trigger("start",a,c)},_slide:function(a,b,c){var d,e,f;this.options.values&&this.options.values.length?(d=this.values(b?0:1),2===this.options.values.length&&this.options.range===!0&&(0===b&&c>d||1===b&&c<d)&&(c=d),c!==this.values(b)&&(e=this.values(),e[b]=c,f=this._trigger("slide",a,{handle:this.handles[b],value:c,values:e}),d=this.values(b?0:1),f!==!1&&this.values(b,c,!0))):c!==this.value()&&(f=this._trigger("slide",a,{handle:this.handles[b],value:c}),f!==!1&&this.value(c))},_stop:function(a,b){var c={handle:this.handles[b],value:this.value()};this.options.values&&this.options.values.length&&(c.value=this.values(b),c.values=this.values()),this._trigger("stop",a,c)},_change:function(a,b){if(!this._keySliding&&!this._mouseSliding){var c={handle:this.handles[b],value:this.value()};this.options.values&&this.options.values.length&&(c.value=this.values(b),c.values=this.values()),this._lastChangedValue=b,this._trigger("change",a,c)}},value:function(a){return arguments.length?(this.options.value=this._trimAlignValue(a),this._refreshValue(),void this._change(null,0)):this._value()},values:function(b,c){var d,e,f;if(arguments.length>1)return this.options.values[b]=this._trimAlignValue(c),this._refreshValue(),void this._change(null,b);if(!arguments.length)return this._values();if(!a.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(b):this.value();for(d=this.options.values,e=arguments[0],f=0;f<d.length;f+=1)d[f]=this._trimAlignValue(e[f]),this._change(null,f);this._refreshValue()},_setOption:function(b,c){var d,e=0;switch("range"===b&&this.options.range===!0&&("min"===c?(this.options.value=this._values(0),this.options.values=null):"max"===c&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),a.isArray(this.options.values)&&(e=this.options.values.length),a.Widget.prototype._setOption.apply(this,arguments),b){case"orientation":this._detectOrientation(),this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation),this._refreshValue();break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),d=0;d<e;d+=1)this._change(null,d);this._animateOff=!1;break;case"min":case"max":this._animateOff=!0,this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_value:function(){var a=this.options.value;return a=this._trimAlignValue(a)},_values:function(a){var b,c,d;if(arguments.length)return b=this.options.values[a],b=this._trimAlignValue(b);if(this.options.values&&this.options.values.length){for(c=this.options.values.slice(),d=0;d<c.length;d+=1)c[d]=this._trimAlignValue(c[d]);return c}return[]},_trimAlignValue:function(a){if(a<=this._valueMin())return this._valueMin();if(a>=this._valueMax())return this._valueMax();var b=this.options.step>0?this.options.step:1,c=(a-this._valueMin())%b,d=a-c;return 2*Math.abs(c)>=b&&(d+=c>0?b:-b),parseFloat(d.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var b,c,d,e,f,g=this.options.range,h=this.options,i=this,j=!this._animateOff&&h.animate,k={};this.options.values&&this.options.values.length?this.handles.each(function(d){c=(i.values(d)-i._valueMin())/(i._valueMax()-i._valueMin())*100,k["horizontal"===i.orientation?"left":"bottom"]=c+"%",a(this).stop(1,1)[j?"animate":"css"](k,h.animate),i.options.range===!0&&("horizontal"===i.orientation?(0===d&&i.range.stop(1,1)[j?"animate":"css"]({left:c+"%"},h.animate),1===d&&i.range[j?"animate":"css"]({width:c-b+"%"},{queue:!1,duration:h.animate})):(0===d&&i.range.stop(1,1)[j?"animate":"css"]({bottom:c+"%"},h.animate),1===d&&i.range[j?"animate":"css"]({height:c-b+"%"},{queue:!1,duration:h.animate}))),b=c}):(d=this.value(),e=this._valueMin(),f=this._valueMax(),c=f!==e?(d-e)/(f-e)*100:0,k["horizontal"===this.orientation?"left":"bottom"]=c+"%",this.handle.stop(1,1)[j?"animate":"css"](k,h.animate),"min"===g&&"horizontal"===this.orientation&&this.range.stop(1,1)[j?"animate":"css"]({width:c+"%"},h.animate),"max"===g&&"horizontal"===this.orientation&&this.range[j?"animate":"css"]({width:100-c+"%"},{queue:!1,duration:h.animate}),"min"===g&&"vertical"===this.orientation&&this.range.stop(1,1)[j?"animate":"css"]({height:c+"%"},h.animate),"max"===g&&"vertical"===this.orientation&&this.range[j?"animate":"css"]({height:100-c+"%"},{queue:!1,duration:h.animate}))},_handleEvents:{keydown:function(b){var d,e,f,g,h=a(b.target).data("ui-slider-handle-index");switch(b.keyCode){case a.ui.keyCode.HOME:case a.ui.keyCode.END:case a.ui.keyCode.PAGE_UP:case a.ui.keyCode.PAGE_DOWN:case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(b.preventDefault(),!this._keySliding&&(this._keySliding=!0,a(b.target).addClass("ui-state-active"),d=this._start(b,h),d===!1))return}switch(g=this.options.step,e=f=this.options.values&&this.options.values.length?this.values(h):this.value(),b.keyCode){case a.ui.keyCode.HOME:f=this._valueMin();break;case a.ui.keyCode.END:f=this._valueMax();break;case a.ui.keyCode.PAGE_UP:f=this._trimAlignValue(e+(this._valueMax()-this._valueMin())/c);break;case a.ui.keyCode.PAGE_DOWN:f=this._trimAlignValue(e-(this._valueMax()-this._valueMin())/c);break;case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:if(e===this._valueMax())return;f=this._trimAlignValue(e+g);break;case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(e===this._valueMin())return;f=this._trimAlignValue(e-g)}this._slide(b,h,f)},click:function(a){a.preventDefault()},keyup:function(b){var c=a(b.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(b,c),this._change(b,c),a(b.target).removeClass("ui-state-active"))}}})}(jQuery),function(a){function b(a){return function(){var b=this.element.val();a.apply(this,arguments),this._refresh(),b!==this.element.val()&&this._trigger("change")}}a.widget("ui.spinner",{version:"1.10.3",defaultElement:"<input>",widgetEventPrefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var b={},c=this.element;return a.each(["min","max","step"],function(a,d){var e=c.attr(d);void 0!==e&&e.length&&(b[d]=e)}),b},_events:{keydown:function(a){this._start(a)&&this._keydown(a)&&a.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(a){return this.cancelBlur?void delete this.cancelBlur:(this._stop(),this._refresh(),void(this.previous!==this.element.val()&&this._trigger("change",a)))},mousewheel:function(a,b){if(b){if(!this.spinning&&!this._start(a))return!1;this._spin((b>0?1:-1)*this.options.step,a),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(a)},100),a.preventDefault()}},"mousedown .ui-spinner-button":function(b){function d(){var a=this.element[0]===this.document[0].activeElement;a||(this.element.focus(),this.previous=c,this._delay(function(){this.previous=c}))}var c;c=this.element[0]===this.document[0].activeElement?this.previous:this.element.val(),b.preventDefault(),d.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,d.call(this)}),this._start(b)!==!1&&this._repeat(null,a(b.currentTarget).hasClass("ui-spinner-up")?1:-1,b)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(b){if(a(b.currentTarget).hasClass("ui-state-active"))return this._start(b)!==!1&&void this._repeat(null,a(b.currentTarget).hasClass("ui-spinner-up")?1:-1,b)},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var a=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr("role","spinbutton"),this.buttons=a.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all"),this.buttons.height()>Math.ceil(.5*a.height())&&a.height()>0&&a.height(a.height()),this.options.disabled&&this.disable()},_keydown:function(b){var c=this.options,d=a.ui.keyCode;switch(b.keyCode){case d.UP:return this._repeat(null,1,b),!0;case d.DOWN:return this._repeat(null,-1,b),!0;case d.PAGE_UP:return this._repeat(null,c.page,b),!0;case d.PAGE_DOWN:return this._repeat(null,-c.page,b),!0}return!1},_uiSpinnerHtml:function(){return"<span class='ui-spinner ui-widget ui-widget-content ui-corner-all'></span>"},_buttonHtml:function(){return"<a class='ui-spinner-button ui-spinner-up ui-corner-tr'><span class='ui-icon "+this.options.icons.up+"'>▲</span></a><a class='ui-spinner-button ui-spinner-down ui-corner-br'><span class='ui-icon "+this.options.icons.down+"'>▼</span></a>"},_start:function(a){return!(!this.spinning&&this._trigger("start",a)===!1)&&(this.counter||(this.counter=1),this.spinning=!0,!0)},_repeat:function(a,b,c){a=a||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,b,c)},a),this._spin(b*this.options.step,c)},_spin:function(a,b){var c=this.value()||0;this.counter||(this.counter=1),c=this._adjustValue(c+a*this._increment(this.counter)),this.spinning&&this._trigger("spin",b,{value:c})===!1||(this._value(c),this.counter++)},_increment:function(b){var c=this.options.incremental;return c?a.isFunction(c)?c(b):Math.floor(b*b*b/5e4-b*b/500+17*b/200+1):1},_precision:function(){var a=this._precisionOf(this.options.step);return null!==this.options.min&&(a=Math.max(a,this._precisionOf(this.options.min))),a},_precisionOf:function(a){var b=a.toString(),c=b.indexOf(".");return c===-1?0:b.length-c-1},_adjustValue:function(a){var b,c,d=this.options;return b=null!==d.min?d.min:0,c=a-b,c=Math.round(c/d.step)*d.step,a=b+c,a=parseFloat(a.toFixed(this._precision())),null!==d.max&&a>d.max?d.max:null!==d.min&&a<d.min?d.min:a},_stop:function(a){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",a))},_setOption:function(a,b){if("culture"===a||"numberFormat"===a){var c=this._parse(this.element.val());return this.options[a]=b,void this.element.val(this._format(c))}"max"!==a&&"min"!==a&&"step"!==a||"string"==typeof b&&(b=this._parse(b)),"icons"===a&&(this.buttons.first().find(".ui-icon").removeClass(this.options.icons.up).addClass(b.up),this.buttons.last().find(".ui-icon").removeClass(this.options.icons.down).addClass(b.down)),this._super(a,b),"disabled"===a&&(b?(this.element.prop("disabled",!0),this.buttons.button("disable")):(this.element.prop("disabled",!1),this.buttons.button("enable")))},_setOptions:b(function(a){this._super(a),this._value(this.element.val())}),_parse:function(a){return"string"==typeof a&&""!==a&&(a=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(a,10,this.options.culture):+a),""===a||isNaN(a)?null:a},_format:function(a){return""===a?"":window.Globalize&&this.options.numberFormat?Globalize.format(a,this.options.numberFormat,this.options.culture):a},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},_value:function(a,b){var c;""!==a&&(c=this._parse(a),null!==c&&(b||(c=this._adjustValue(c)),a=this._format(c))),this.element.val(a),this._refresh()},_destroy:function(){this.element.removeClass("ui-spinner-input").prop("disabled",!1).removeAttr("autocomplete").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:b(function(a){this._stepUp(a)}),_stepUp:function(a){this._start()&&(this._spin((a||1)*this.options.step),this._stop())},stepDown:b(function(a){this._stepDown(a)}),_stepDown:function(a){this._start()&&(this._spin((a||1)*-this.options.step),this._stop())},pageUp:b(function(a){this._stepUp((a||1)*this.options.page)}),pageDown:b(function(a){this._stepDown((a||1)*this.options.page)}),value:function(a){return arguments.length?void b(this._value).call(this,a):this._parse(this.element.val())},widget:function(){return this.uiSpinner}}
vendor: 10,571 bytes, line 17901
17901)}(jQuery),function(a,b){function e(){return++c}function f(a){return a.hash.length>1&&decodeURIComponent(a.href.replace(d,""))===decodeURIComponent(location.href.replace(d,""))}var c=0,d=/#.*$/;a.widget("ui.tabs",{version:"1.10.3",delay:300,options:{active:null,collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_create:function(){var b=this,c=this.options;this.running=!1,this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",c.collapsible).delegate(".ui-tabs-nav > li","mousedown"+this.eventNamespace,function(b){a(this).is(".ui-state-disabled")&&b.preventDefault()}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){a(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this._processTabs(),c.active=this._initialActive(),a.isArray(c.disabled)&&(c.disabled=a.unique(c.disabled.concat(a.map(this.tabs.filter(".ui-state-disabled"),function(a){return b.tabs.index(a)}))).sort()),this.options.active!==!1&&this.anchors.length?this.active=this._findActive(c.active):this.active=a(),this._refresh(),this.active.length&&this.load(c.active)},_initialActive:function(){var b=this.options.active,c=this.options.collapsible,d=location.hash.substring(1);return null===b&&(d&&this.tabs.each(function(c,e){if(a(e).attr("aria-controls")===d)return b=c,!1}),null===b&&(b=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),null!==b&&b!==-1||(b=!!this.tabs.length&&0)),b!==!1&&(b=this.tabs.index(this.tabs.eq(b)),b===-1&&(b=!c&&0)),!c&&b===!1&&this.anchors.length&&(b=0),b},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):a()}},_tabKeydown:function(b){var c=a(this.document[0].activeElement).closest("li"),d=this.tabs.index(c),e=!0;if(!this._handlePageNav(b)){switch(b.keyCode){case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:d++;break;case a.ui.keyCode.UP:case a.ui.keyCode.LEFT:e=!1,d--;break;case a.ui.keyCode.END:d=this.anchors.length-1;break;case a.ui.keyCode.HOME:d=0;break;case a.ui.keyCode.SPACE:return b.preventDefault(),clearTimeout(this.activating),void this._activate(d);case a.ui.keyCode.ENTER:return b.preventDefault(),clearTimeout(this.activating),void this._activate(d!==this.options.active&&d);default:return}b.preventDefault(),clearTimeout(this.activating),d=this._focusNextTab(d,e),b.ctrlKey||(c.attr("aria-selected","false"),this.tabs.eq(d).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",d)},this.delay))}},_panelKeydown:function(b){this._handlePageNav(b)||b.ctrlKey&&b.keyCode===a.ui.keyCode.UP&&(b.preventDefault(),this.active.focus())},_handlePageNav:function(b){return b.altKey&&b.keyCode===a.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):b.altKey&&b.keyCode===a.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(b,c){function e(){return b>d&&(b=0),b<0&&(b=d),b}for(var d=this.tabs.length-1;a.inArray(e(),this.options.disabled)!==-1;)b=c?b+1:b-1;return b},_focusNextTab:function(a,b){return a=this._findNextTab(a,b),this.tabs.eq(a).focus(),a},_setOption:function(a,b){return"active"===a?void this._activate(b):"disabled"===a?void this._setupDisabled(b):(this._super(a,b),"collapsible"===a&&(this.element.toggleClass("ui-tabs-collapsible",b),b||this.options.active!==!1||this._activate(0)),"event"===a&&this._setupEvents(b),void("heightStyle"===a&&this._setupHeightStyle(b)))},_tabId:function(a){return a.attr("aria-controls")||"ui-tabs-"+e()},_sanitizeSelector:function(a){return a?a.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var b=this.options,c=this.tablist.children(":has(a[href])");b.disabled=a.map(c.filter(".ui-state-disabled"),function(a){return c.index(a)}),this._processTabs(),b.active!==!1&&this.anchors.length?this.active.length&&!a.contains(this.tablist[0],this.active[0])?this.tabs.length===b.disabled.length?(b.active=!1,this.active=a()):this._activate(this._findNextTab(Math.max(0,b.active-1),!1)):b.active=this.tabs.index(this.active):(b.active=!1,this.active=a()),this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-expanded":"false","aria-hidden":"true"}),this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-expanded":"true","aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var b=this;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist"),this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1}),this.anchors=this.tabs.map(function(){return a("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1}),this.panels=a(),this.anchors.each(function(c,d){var e,g,h,i=a(d).uniqueId().attr("id"),j=a(d).closest("li"),k=j.attr("aria-controls");f(d)?(e=d.hash,g=b.element.find(b._sanitizeSelector(e))):(h=b._tabId(j),e="#"+h,g=b.element.find(e),g.length||(g=b._createPanel(h),g.insertAfter(b.panels[c-1]||b.tablist)),g.attr("aria-live","polite")),g.length&&(b.panels=b.panels.add(g)),k&&j.data("ui-tabs-aria-controls",k),j.attr({"aria-controls":e.substring(1),"aria-labelledby":i}),g.attr("aria-labelledby",i)}),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel")},_getList:function(){return this.element.find("ol,ul").eq(0)},_createPanel:function(b){return a("<div>").attr("id",b).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(b){a.isArray(b)&&(b.length?b.length===this.anchors.length&&(b=!0):b=!1);for(var d,c=0;d=this.tabs[c];c++)b===!0||a.inArray(c,b)!==-1?a(d).addClass("ui-state-disabled").attr("aria-disabled","true"):a(d).removeClass("ui-state-disabled").removeAttr("aria-disabled");this.options.disabled=b},_setupEvents:function(b){var c={click:function(a){a.preventDefault()}};b&&a.each(b.split(" "),function(a,b){c[b]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(this.anchors,c),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(b){var c,d=this.element.parent();"fill"===b?(c=d.height(),c-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var b=a(this),d=b.css("position");"absolute"!==d&&"fixed"!==d&&(c-=b.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){c-=a(this).outerHeight(!0)}),this.panels.each(function(){a(this).height(Math.max(0,c-a(this).innerHeight()+a(this).height()))}).css("overflow","auto")):"auto"===b&&(c=0,this.panels.each(function(){c=Math.max(c,a(this).height("").height())}).height(c))},_eventHandler:function(b){var c=this.options,d=this.active,e=a(b.currentTarget),f=e.closest("li"),g=f[0]===d[0],h=g&&c.collapsible,i=h?a():this._getPanelForTab(f),j=d.length?this._getPanelForTab(d):a(),k={oldTab:d,oldPanel:j,newTab:h?a():f,newPanel:i};b.preventDefault(),f.hasClass("ui-state-disabled")||f.hasClass("ui-tabs-loading")||this.running||g&&!c.collapsible||this._trigger("beforeActivate",b,k)===!1||(c.active=!h&&this.tabs.index(f),this.active=g?a():f,this.xhr&&this.xhr.abort(),j.length||i.length||a.error("jQuery UI Tabs: Mismatching fragment identifier."),i.length&&this.load(this.tabs.index(f),b),this._toggle(b,k))},_toggle:function(b,c){function g(){d.running=!1,d._trigger("activate",b,c)}function h(){c.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),e.length&&d.options.show?d._show(e,d.options.show,g):(e.show(),g())}var d=this,e=c.newPanel,f=c.oldPanel;this.running=!0,f.length&&this.options.hide?this._hide(f,this.options.hide,function(){c.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),h()}):(c.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),f.hide(),h()),f.attr({"aria-expanded":"false","aria-hidden":"true"}),c.oldTab.attr("aria-selected","false"),e.length&&f.length?c.oldTab.attr("tabIndex",-1):e.length&&this.tabs.filter(function(){return 0===a(this).attr("tabIndex")}).attr("tabIndex",-1),e.attr({"aria-expanded":"true","aria-hidden":"false"}),c.newTab.attr({"aria-selected":"true",tabIndex:0})},_activate:function(b){var c,d=this._findActive(b);d[0]!==this.active[0]&&(d.length||(d=this.active),c=d.find(".ui-tabs-anchor")[0],this._eventHandler({target:c,currentTarget:c,preventDefault:a.noop}))},_findActive:function(b){return b===!1?a():this.tabs.eq(b)},_getIndex:function(a){return"string"==typeof a&&(a=this.anchors.index(this.anchors.filter("[href$='"+a+"']"))),a},_destroy:function(){this.xhr&&this.xhr.abort(),this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible"),this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role"),this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){a.data(this,"ui-tabs-destroy")?a(this).remove():a(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")}),this.tabs.each(function(){var b=a(this),c=b.data("ui-tabs-aria-controls");c?b.attr("aria-controls",c).removeData("ui-tabs-aria-controls"):b.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(c){var d=this.options.disabled;d!==!1&&(c===b?d=!1:(c=this._getIndex(c),d=a.isArray(d)?a.map(d,function(a){return a!==c?a:null}):a.map(this.tabs,function(a,b){return b!==c?b:null})),this._setupDisabled(d))},disable:function(c){var d=this.options.disabled;if(d!==!0){if(c===b)d=!0;else{if(c=this._getIndex(c),a.inArray(c,d)!==-1)return;
17901d=a.isArray(d)?a.merge([c],d).sort():[c]}this._setupDisabled(d)}},load:function(b,c){b=this._getIndex(b);var d=this,e=this.tabs.eq(b),g=e.find(".ui-tabs-anchor"),h=this._getPanelForTab(e),i={tab:e,panel:h};f(g[0])||(this.xhr=a.ajax(this._ajaxSettings(g,c,i)),this.xhr&&"canceled"!==this.xhr.statusText&&(e.addClass("ui-tabs-loading"),h.attr("aria-busy","true"),this.xhr.success(function(a){setTimeout(function(){h.html(a),d._trigger("load",c,i)},1)}).complete(function(a,b){setTimeout(function(){"abort"===b&&d.panels.stop(!1,!0),e.removeClass("ui-tabs-loading"),h.removeAttr("aria-busy"),a===d.xhr&&delete d.xhr},1)})))},_ajaxSettings:function(b,c,d){var e=this;return{url:b.attr("href"),beforeSend:function(b,f){return e._trigger("beforeLoad",c,a.extend({jqXHR:b,ajaxSettings:f},d))}}},_getPanelForTab:function(b){var c=a(b).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+c))}})}(jQuery),function(a){function c(b,c){var d=(b.attr("aria-describedby")||"").split(/\s+/);d.push(c),b.data("ui-tooltip-id",c).attr("aria-describedby",a.trim(d.join(" ")))}function d(b){var c=b.data("ui-tooltip-id"),d=(b.attr("aria-describedby")||"").split(/\s+/),e=a.inArray(c,d);e!==-1&&d.splice(e,1),b.removeData("ui-tooltip-id"),d=a.trim(d.join(" ")),d?b.attr("aria-describedby",d):b.removeAttr("aria-describedby")}var b=0;a.widget("ui.tooltip",{version:"1.10.3",options:{content:function(){var b=a(this).attr("title")||"";return a("<a>").text(b).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,tooltipClass:null,track:!1,close:null,open:null},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.options.disabled&&this._disable()},_setOption:function(b,c){var d=this;return"disabled"===b?(this[c?"_disable":"_enable"](),void(this.options[b]=c)):(this._super(b,c),void("content"===b&&a.each(this.tooltips,function(a,b){d._updateContent(b)})))},_disable:function(){var b=this;a.each(this.tooltips,function(c,d){var e=a.Event("blur");e.target=e.currentTarget=d[0],b.close(e,!0)}),this.element.find(this.options.items).addBack().each(function(){var b=a(this);b.is("[title]")&&b.data("ui-tooltip-title",b.attr("title")).attr("title","")})},_enable:function(){this.element.find(this.options.items).addBack().each(function(){var b=a(this);b.data("ui-tooltip-title")&&b.attr("title",b.data("ui-tooltip-title"))})},open:function(b){var c=this,d=a(b?b.target:this.element).closest(this.options.items);d.length&&!d.data("ui-tooltip-id")&&(d.attr("title")&&d.data("ui-tooltip-title",d.attr("title")),d.data("ui-tooltip-open",!0),b&&"mouseover"===b.type&&d.parents().each(function(){var d,b=a(this);b.data("ui-tooltip-open")&&(d=a.Event("blur"),d.target=d.currentTarget=this,c.close(d,!0)),b.attr("title")&&(b.uniqueId(),c.parents[this.id]={element:this,title:b.attr("title")},b.attr("title",""))}),this._updateContent(d,b))},_updateContent:function(a,b){var c,d=this.options.content,e=this,f=b?b.type:null;return"string"==typeof d?this._open(b,a,d):(c=d.call(a[0],function(c){a.data("ui-tooltip-open")&&e._delay(function(){b&&(b.type=f),this._open(b,a,c)})}),void(c&&this._open(b,a,c)))},_open:function(b,d,e){function j(a){i.of=a,f.is(":hidden")||f.position(i)}var f,g,h,i=a.extend({},this.options.position);if(e){if(f=this._find(d),f.length)return void f.find(".ui-tooltip-content").html(e);d.is("[title]")&&(b&&"mouseover"===b.type?d.attr("title",""):d.removeAttr("title")),f=this._tooltip(d),c(d,f.attr("id")),f.find(".ui-tooltip-content").html(e),this.options.track&&b&&/^mouse/.test(b.type)?(this._on(this.document,{mousemove:j}),j(b)):f.position(a.extend({of:d},this.options.position)),f.hide(),this._show(f,this.options.show),this.options.show&&this.options.show.delay&&(h=this.delayedShow=setInterval(function(){f.is(":visible")&&(j(i.of),clearInterval(h))},a.fx.interval)),this._trigger("open",b,{tooltip:f}),g={keyup:function(b){if(b.keyCode===a.ui.keyCode.ESCAPE){var c=a.Event(b);c.currentTarget=d[0],this.close(c,!0)}},remove:function(){this._removeTooltip(f)}},b&&"mouseover"!==b.type||(g.mouseleave="close"),b&&"focusin"!==b.type||(g.focusout="close"),this._on(!0,d,g)}},close:function(b){var c=this,e=a(b?b.currentTarget:this.element),f=this._find(e);this.closing||(clearInterval(this.delayedShow),e.data("ui-tooltip-title")&&e.attr("title",e.data("ui-tooltip-title")),d(e),f.stop(!0),this._hide(f,this.options.hide,function(){c._removeTooltip(a(this))}),e.removeData("ui-tooltip-open"),this._off(e,"mouseleave focusout keyup"),e[0]!==this.element[0]&&this._off(e,"remove"),this._off(this.document,"mousemove"),b&&"mouseleave"===b.type&&a.each(this.parents,function(b,d){a(d.element).attr("title",d.title),delete c.parents[b]}),this.closing=!0,this._trigger("close",b,{tooltip:f}),this.closing=!1)},_tooltip:function(c){var d="ui-tooltip-"+b++,e=a("<div>").attr({id:d,role:"tooltip"}).addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||""));return a("<div>").addClass("ui-tooltip-content").appendTo(e),e.appendTo(this.document[0].body),this.tooltips[d]=c,e},_find:function(b){var c=b.data("ui-tooltip-id");return c?a("#"+c):a()},_removeTooltip:function(a){a.remove(),delete this.tooltips[a.attr("id")]},_destroy:function(){var b=this;a.each(this.tooltips,function(c,d){var e=a.Event("blur");e.target=e.currentTarget=d[0],b.close(e,!0),a("#"+c).remove(),d.data("ui-tooltip-title")&&(d.attr("title",d.data("ui-tooltip-title")),d.removeData("ui-tooltip-title"))})}})}(jQuery);/*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */ 17902(function(r,G,f,v){var J=f("html"),n=f(r),p=f(G),b=f.fancybox=function(){b.open.apply(this,arguments)},I=navigator.userAgent.match(/msie/i),B=null,s=G.createTouch!==v,t=function(a){return a&&a.hasOwnProperty&&a instanceof f},q=function(a){return a&&"string"===f.type(a)},E=function(a){return q(a)&&0<a.indexOf("%")},l=function(a,d){var e=parseInt(a,10)||0;d&&E(a)&&(e*=b.getViewport()[d]/100);return Math.ceil(e)},w=function(a,b){return l(a,b)+"px"};f.extend(b,{version:"2.1.5",defaults:{padding:15,margin:20,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,pixelRatio:1,autoSize:!0,autoHeight:!1,autoWidth:!1,autoResize:!0,autoCenter:!s,fitToView:!0,aspectRatio:!1,topRatio:0.5,leftRatio:0.5,scrolling:"auto",wrapCSS:"",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3E3,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancyBox":!0}},iframe:{scrolling:"auto",preload:!0},swf:{wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"},keys:{next:{13:"left",34:"up",39:"left",40:"up"},prev:{8:"right",33:"down",37:"right",38:"down"},close:[27],play:[32],toggle:[70]},direction:{next:"left",prev:"right"},scrollOutside:!0,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',image:'<img class="fancybox-image" src="{href}" alt="" />',iframe:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen'+(I?' allowtransparency="true"':"")+"></iframe>",error:'<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',closeBtn:'<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>',next:'<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',prev:'<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:f.noop,beforeLoad:f.noop,afterLoad:f.noop,beforeShow:f.noop,afterShow:f.noop,beforeChange:f.noop,beforeClose:f.noop,afterClose:f.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,
vendor: 16,714 bytes, line 17902
17902skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(a,d){if(a&&(f.isPlainObject(d)||(d={}),!1!==b.close(!0)))return f.isArray(a)||(a=t(a)?f(a).get():[a]),f.each(a,function(e,c){var k={},g,h,j,m,l;"object"===f.type(c)&&(c.nodeType&&(c=f(c)),t(c)?(k={href:c.data("fancybox-href")||c.attr("href"),title:c.data("fancybox-title")||c.attr("title"),isDom:!0,element:c},f.metadata&&f.extend(!0,k,c.metadata())):k=c);g=d.href||k.href||(q(c)?c:null);h=d.title!==v?d.title:k.title||"";m=(j=d.content||k.content)?"html":d.type||k.type;!m&&k.isDom&&(m=c.data("fancybox-type"),m||(m=(m=c.prop("class").match(/fancybox\.(\w+)/))?m[1]:null));q(g)&&(m||(b.isImage(g)?m="image":b.isSWF(g)?m="swf":"#"===g.charAt(0)?m="inline":q(c)&&(m="html",j=c)),"ajax"===m&&(l=g.split(/\s+/,2),g=l.shift(),l=l.shift()));j||("inline"===m?g?j=f(q(g)?g.replace(/.*(?=#[^\s]+$)/,""):g):k.isDom&&(j=c):"html"===m?j=g:!m&&(!g&&k.isDom)&&(m="inline",j=c));f.extend(k,{href:g,type:m,content:j,title:h,selector:l});a[e]=k}),b.opts=f.extend(!0,{},b.defaults,d),d.keys!==v&&(b.opts.keys=d.keys?f.extend({},b.defaults.keys,d.keys):!1),b.group=a,b._start(b.opts.index)},cancel:function(){var a=b.coming;a&&!1!==b.trigger("onCancel")&&(b.hideLoading(),b.ajaxLoad&&b.ajaxLoad.abort(),b.ajaxLoad=null,b.imgPreload&&(b.imgPreload.onload=b.imgPreload.onerror=null),a.wrap&&a.wrap.stop(!0,!0).trigger("onReset").remove(),b.coming=null,b.current||b._afterZoomOut(a))},close:function(a){b.cancel();!1!==b.trigger("beforeClose")&&(b.unbindEvents(),b.isActive&&(!b.isOpen||!0===a?(f(".fancybox-wrap").stop(!0).trigger("onReset").remove(),b._afterZoomOut()):(b.isOpen=b.isOpened=!1,b.isClosing=!0,f(".fancybox-item, .fancybox-nav").remove(),b.wrap.stop(!0,!0).removeClass("fancybox-opened"),b.transitions[b.current.closeMethod]())))},play:function(a){var d=function(){clearTimeout(b.player.timer)},e=function(){d();b.current&&b.player.isActive&&(b.player.timer=setTimeout(b.next,b.current.playSpeed))},c=function(){d();p.unbind(".player");b.player.isActive=!1;b.trigger("onPlayEnd")};if(!0===a||!b.player.isActive&&!1!==a){if(b.current&&(b.current.loop||b.current.index<b.group.length-1))b.player.isActive=!0,p.bind({"onCancel.player beforeClose.player":c,"onUpdate.player":e,"beforeLoad.player":d}),e(),b.trigger("onPlayStart")}else c()},next:function(a){var d=b.current;d&&(q(a)||(a=d.direction.next),b.jumpto(d.index+1,a,"next"))},prev:function(a){var d=b.current;d&&(q(a)||(a=d.direction.prev),b.jumpto(d.index-1,a,"prev"))},jumpto:function(a,d,e){var c=b.current;c&&(a=l(a),b.direction=d||c.direction[a>=c.index?"next":"prev"],b.router=e||"jumpto",c.loop&&(0>a&&(a=c.group.length+a%c.group.length),a%=c.group.length),c.group[a]!==v&&(b.cancel(),b._start(a)))},reposition:function(a,d){var e=b.current,c=e?e.wrap:null,k;c&&(k=b._getPosition(d),a&&"scroll"===a.type?(delete k.position,c.stop(!0,!0).animate(k,200)):(c.css(k),e.pos=f.extend({},e.dim,k)))},update:function(a){var d=a&&a.type,e=!d||"orientationchange"===d;e&&(clearTimeout(B),B=null);b.isOpen&&!B&&(B=setTimeout(function(){var c=b.current;c&&!b.isClosing&&(b.wrap.removeClass("fancybox-tmp"),(e||"load"===d||"resize"===d&&c.autoResize)&&b._setDimension(),"scroll"===d&&c.canShrink||b.reposition(a),b.trigger("onUpdate"),B=null)},e&&!s?0:300))},toggle:function(a){b.isOpen&&(b.current.fitToView="boolean"===f.type(a)?a:!b.current.fitToView,s&&(b.wrap.removeAttr("style").addClass("fancybox-tmp"),b.trigger("onUpdate")),b.update())},hideLoading:function(){p.unbind(".loading");f("#fancybox-loading").remove()},showLoading:function(){var a,d;b.hideLoading();a=f('<div id="fancybox-loading"><div></div></div>').click(b.cancel).appendTo("body");p.bind("keydown.loading",function(a){if(27===(a.which||a.keyCode))a.preventDefault(),b.cancel()});b.defaults.fixed||(d=b.getViewport(),a.css({position:"absolute",top:0.5*d.h+d.y,left:0.5*d.w+d.x}))},getViewport:function(){var a=b.current&&b.current.locked||!1,d={x:n.scrollLeft(),y:n.scrollTop()};a?(d.w=a[0].clientWidth,d.h=a[0].clientHeight):(d.w=s&&r.innerWidth?r.innerWidth:n.width(),d.h=s&&r.innerHeight?r.innerHeight:n.height());return d},unbindEvents:function(){b.wrap&&t(b.wrap)&&b.wrap.unbind(".fb");p.unbind(".fb");n.unbind(".fb")},bindEvents:function(){var a=b.current,d;a&&(n.bind("orientationchange.fb"+(s?"":" resize.fb")+(a.autoCenter&&!a.locked?" scroll.fb":""),b.update),(d=a.keys)&&p.bind("keydown.fb",function(e){var c=e.which||e.keyCode,k=e.target||e.srcElement;if(27===c&&b.coming)return!1;!e.ctrlKey&&(!e.altKey&&!e.shiftKey&&!e.metaKey&&(!k||!k.type&&!f(k).is("[contenteditable]")))&&f.each(d,function(d,k){if(1<a.group.length&&k[c]!==v)return b[d](k[c]),e.preventDefault(),!1;if(-1<f.inArray(c,k))return b[d](),e.preventDefault(),!1})}),f.fn.mousewheel&&a.mouseWheel&&b.wrap.bind("mousewheel.fb",function(d,c,k,g){for(var h=f(d.target||null),j=!1;h.length&&!j&&!h.is(".fancybox-skin")&&!h.is(".fancybox-wrap");)j=h[0]&&!(h[0].style.overflow&&"hidden"===h[0].style.overflow)&&(h[0].clientWidth&&h[0].scrollWidth>h[0].clientWidth||h[0].clientHeight&&h[0].scrollHeight>h[0].clientHeight),h=f(h).parent();if(0!==c&&!j&&1<b.group.length&&!a.canShrink){if(0<g||0<k)b.prev(0<g?"down":"left");else if(0>g||0>k)b.next(0>g?"up":"right");d.preventDefault()}}))},trigger:function(a,d){var e,c=d||b.coming||b.current;if(c){f.isFunction(c[a])&&(e=c[a].apply(c,Array.prototype.slice.call(arguments,1)));if(!1===e)return!1;c.helpers&&f.each(c.helpers,function(d,e){if(e&&b.helpers[d]&&f.isFunction(b.helpers[d][a]))b.helpers[d][a](f.extend(!0,{},b.helpers[d].defaults,e),c)});p.trigger(a)}},isImage:function(a){return q(a)&&a.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(a){return q(a)&&a.match(/\.(swf)((\?|#).*)?$/i)},_start:function(a){var d={},e,c;a=l(a);e=b.group[a]||null;if(!e)return!1;d=f.extend(!0,{},b.opts,e);e=d.margin;c=d.padding;"number"===f.type(e)&&(d.margin=[e,e,e,e]);"number"===f.type(c)&&(d.padding=[c,c,c,c]);d.modal&&f.extend(!0,d,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}});d.autoSize&&(d.autoWidth=d.autoHeight=!0);"auto"===d.width&&(d.autoWidth=!0);"auto"===d.height&&(d.autoHeight=!0);d.group=b.group;d.index=a;b.coming=d;if(!1===b.trigger("beforeLoad"))b.coming=null;else{c=d.type;e=d.href;if(!c)return b.coming=null,b.current&&b.router&&"jumpto"!==b.router?(b.current.index=a,b[b.router](b.direction)):!1;b.isActive=!0;if("image"===c||"swf"===c)d.autoHeight=d.autoWidth=!1,d.scrolling="visible";"image"===c&&(d.aspectRatio=!0);"iframe"===c&&s&&(d.scrolling="scroll");d.wrap=f(d.tpl.wrap).addClass("fancybox-"+(s?"mobile":"desktop")+" fancybox-type-"+c+" fancybox-tmp "+d.wrapCSS).appendTo(d.parent||"body");f.extend(d,{skin:f(".fancybox-skin",d.wrap),outer:f(".fancybox-outer",d.wrap),inner:f(".fancybox-inner",d.wrap)});f.each(["Top","Right","Bottom","Left"],function(a,b){d.skin.css("padding"+b,w(d.padding[a]))});b.trigger("onReady");if("inline"===c||"html"===c){if(!d.content||!d.content.length)return b._error("content")}else if(!e)return b._error("href");"image"===c?b._loadImage():"ajax"===c?b._loadAjax():"iframe"===c?b._loadIframe():b._afterLoad()}},_error:function(a){f.extend(b.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:a,content:b.coming.tpl.error});b._afterLoad()},_loadImage:function(){var a=b.imgPreload=new Image;a.onload=function(){this.onload=this.onerror=null;b.coming.width=this.width/b.opts.pixelRatio;b.coming.height=this.height/b.opts.pixelRatio;b._afterLoad()};a.onerror=function(){this.onload=this.onerror=null;b._error("image")};a.src=b.coming.href;!0!==a.complete&&b.showLoading()},_loadAjax:function(){var a=b.coming;b.showLoading();b.ajaxLoad=f.ajax(f.extend({},a.ajax,{url:a.href,error:function(a,e){b.coming&&"abort"!==e?b._error("ajax",a):b.hideLoading()},success:function(d,e){"success"===e&&(a.content=d,b._afterLoad())}}))},_loadIframe:function(){var a=b.coming,d=f(a.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",s?"auto":a.iframe.scrolling).attr("src",a.href);f(a.wrap).bind("onReset",function(){try{f(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(a){}});a.iframe.preload&&(b.showLoading(),d.one("load",function(){f(this).data("ready",1);s||f(this).bind("load.fb",b.update);f(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show();b._afterLoad()}));a.content=d.appendTo(a.inner);a.iframe.preload||b._afterLoad()},_preloadImages:function(){var a=b.group,d=b.current,e=a.length,c=d.preload?Math.min(d.preload,e-1):0,f,g;for(g=1;g<=c;g+=1)f=a[(d.index+g)%e],"image"===f.type&&f.href&&((new Image).src=f.href)},_afterLoad:function(){var a=b.coming,d=b.current,e,c,k,g,h;b.hideLoading();if(a&&!1!==b.isActive)if(!1===b.trigger("afterLoad",a,d))a.wrap.stop(!0).trigger("onReset").remove(),b.coming=null;else{d&&(b.trigger("beforeChange",d),d.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove());b.unbindEvents();e=a.content;c=a.type;k=a.scrolling;f.extend(b,{wrap:a.wrap,skin:a.skin,outer:a.outer,inner:a.inner,current:a,previous:d});g=a.href;switch(c){case "inline":case "ajax":case "html":a.selector?e=f("<div>").html(e).find(a.selector):t(e)&&(e.data("fancybox-placeholder")||e.data("fancybox-placeholder",f('<div class="fancybox-placeholder"></div>').insertAfter(e).hide()),e=e.show().detach(),a.wrap.bind("onReset",function(){f(this).find(e).length&&e.hide().replaceAll(e.data("fancybox-placeholder")).data("fancybox-placeholder",!1)}));break;case "image":e=a.tpl.image.replace("{href}",g);break;case "swf":e='<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="'+g+'"></param>',h="",f.each(a.swf,function(a,b){e+='<param name="'+a+'" value="'+b+'"></param>';h+=" "+a+'="'+b+'"'}),e+='<embed src="'+g+'" type="application/x-shockwave-flash" width="100%" height="100%"'+h+"></embed></object>"}(!t(e)||!e.parent().is(a.inner))&&a.inner.append(e);b.trigger("beforeShow");a.inner.css("overflow","yes"===k?"scroll":"no"===k?"hidden":k);b._setDimension();b.reposition();b.isOpen=!1;b.coming=null;b.bindEvents();if(b.isOpened){if(d.prevMethod)b.transitions[d.prevMethod]()}else f(".fancybox-wrap").not(a.wrap).stop(!0).trigger("onReset").remove();b.transitions[b.isOpened?a.nextMethod:a.openMethod]();b._preloadImages()}},_setDimension:function(){var a=b.getViewport(),d=0,e=!1,c=!1,e=b.wrap,k=b.skin,g=b.inner,h=b.current,c=h.width,j=h.height,m=h.minWidth,u=h.minHeight,n=h.maxWidth,p=h.maxHeight,s=h.scrolling,q=h.scrollOutside?h.scrollbarWidth:0,x=h.margin,y=l(x[1]+x[3]),r=l(x[0]+x[2]),v,z,t,C,A,F,B,D,H;e.add(k).add(g).width("auto").height("auto").removeClass("fancybox-tmp");x=l(k.outerWidth(!0)-k.width());v=l(k.outerHeight(!0)-k.height());z=y+x;t=r+v;C=E(c)?(a.w-z)*l(c)/100:c;A=E(j)?(a.h-t)*l(j)/100:j;if("iframe"===h.type){if(H=h.content,h.autoHeight&&1===H.data("ready"))try{H[0].contentWindow.document.location&&(g.width(C).height(9999),F=H.contents().find("body"),q&&F.css("overflow-x","hidden"),A=F.outerHeight(!0))}catch(G){}}else if(h.autoWidth||h.autoHeight)g.addClass("fancybox-tmp"),h.autoWidth||g.width(C),h.autoHeight||g.height(A),h.autoWidth&&(C=g.width()),h.autoHeight&&(A=g.height()),g.removeClass("fancybox-tmp");c=l(C);j=l(A);D=C/A;m=l(E(m)?l(m,"w")-z:m);n=l(E(n)?l(n,"w")-z:n);u=l(E(u)?l(u,"h")-t:u);p=l(E(p)?l(p,"h")-t:p);F=n;B=p;h.fitToView&&(n=Math.min(a.w-z,n),p=Math.min(a.h-t,p));z=a.w-y;r=a.h-r;h.aspectRatio?(c>n&&(c=n,j=l(c/D)),j>p&&(j=p,c=l(j*D)),c<m&&(c=m,j=l(c/D)),j<u&&(j=u,c=l(j*D))):(c=Math.max(m,Math.min(c,n)),h.autoHeight&&"iframe"!==h.type&&(g.width(c),j=g.height()),j=Math.max(u,Math.min(j,p)));if(h.fitToView)if(g.width(c).height(j),e.width(c+x),a=e.width(),y=e.height(),h.aspectRatio)for(;(a>z||y>r)&&(c>m&&j>u)&&!(19<d++);)j=Math.max(u,Math.min(p,j-10)),c=l(j*D),c<m&&(c=m,j=l(c/D)),c>n&&(c=n,j=l(c/D)),g.width(c).height(j),e.width(c+x),a=e.width(),y=e.height();else c=Math.max(m,Math.min(c,c-(a-z))),j=Math.max(u,Math.min(j,j-(y-r)));q&&("auto"===s&&j<A&&c+x+q<z)&&(c+=q);g.width(c).height(j);e.width(c+x);a=e.width();y=e.height();e=(a>z||y>r)&&c>m&&j>u;c=h.aspectRatio?c<F&&j<B&&c<C&&j<A:(c<F||j<B)&&(c<C||j<A);f.extend(h,{dim:{width:w(a),height:w(y)},origWidth:C,origHeight:A,canShrink:e,canExpand:c,wPadding:x,hPadding:v,wrapSpace:y-k.outerHeight(!0),skinSpace:k.height()-j});!H&&(h.autoHeight&&j>u&&j<p&&!c)&&g.height("auto")},_getPosition:function(a){var d=b.current,e=b.getViewport(),c=d.margin,f=b.wrap.width()+c[1]+c[3],g=b.wrap.height()+c[0]+c[2],c={position:"absolute",top:c[0],left:c[3]};d.autoCenter&&d.fixed&&!a&&g<=e.h&&f<=e.w?c.position="fixed":d.locked||(c.top+=e.y,c.left+=e.x);c.top=w(Math.max(c.top,c.top+(e.h-g)*d.topRatio));c.left=w(Math.max(c.left,c.left+(e.w-f)*d.leftRatio));return c},_afterZoomIn:function(){var a=b.current;a&&(b.isOpen=b.isOpened=!0,b.wrap.css("overflow","visible").addClass("fancybox-opened"),b.update(),(a.closeClick||a.nextClick&&1<b.group.length)&&b.inner.css("cursor","pointer").bind("click.fb",function(d){!f(d.target).is("a")&&!f(d.target).parent().is("a")&&(d.preventDefault(),b[a.closeClick?"close":"next"]())}),a.closeBtn&&f(a.tpl.closeBtn).appendTo(b.skin).bind("click.fb",function(a){a.preventDefault();b.close()}),a.arrows&&1<b.group.length&&((a.loop||0<a.index)&&f(a.tpl.prev).appendTo(b.outer).bind("click.fb",b.prev),(a.loop||a.index<b.group.length-1)&&f(a.tpl.next).appendTo(b.outer).bind("click.fb",b.next)),b.trigger("afterShow"),!a.loop&&a.index===a.group.length-1?b.play(!1):b.opts.autoPlay&&!b.player.isActive&&(b.opts.autoPlay=!1,b.play()))},_afterZoomOut:function(a){a=a||b.current;f(".fancybox-wrap").trigger("onReset").remove();f.extend(b,{group:{},opts:{},router:!1,current:null,isActive:!1,isOpened:!1,isOpen:!1,isClosing:!1,wrap:null,skin:null,outer:null,inner:null});b.trigger("afterClose",a)}});b.transitions={getOrigPosition:function(){var a=b.current,d=a.element,e=a.orig,c={},f=50,g=50,h=a.hPadding,j=a.wPadding,m=b.getViewport();!e&&(a.isDom&&d.is(":visible"))&&(e=d.find("img:first"),e.length||(e=d));t(e)?(c=e.offset(),e.is("img")&&(f=e.outerWidth(),g=e.outerHeight())):(c.top=m.y+(m.h-g)*a.topRatio,c.left=m.x+(m.w-f)*a.leftRatio);if("fixed"===b.wrap.css("position")||a.locked)c.top-=m.y,c.left-=m.x;return c={top:w(c.top-h*a.topRatio),left:w(c.left-j*a.leftRatio),width:w(f+j),height:w(g+h)}},step:function(a,d){var e,c,f=d.prop;c=b.current;var g=c.wrapSpace,h=c.skinSpace;if("width"===f||"height"===f)e=d.end===d.start?1:(a-d.start)/(d.end-d.start),b.isClosing&&(e=1-e),c="width"===f?c.wPadding:c.hPadding,c=a-c,b.skin[f](l("width"===f?c:c-g*e)),b.inner[f](l("width"===f?c:c-g*e-h*e))},zoomIn:function(){var a=b.current,d=a.pos,e=a.openEffect,c="elastic"===e,k=f.extend({opacity:1},d);delete k.position;c?(d=this.getOrigPosition(),a.openOpacity&&(d.opacity=0.1)):"fade"===e&&(d.opacity=0.1);b.wrap.css(d).animate(k,{duration:"none"===e?0:a.openSpeed,easing:a.openEasing,step:c?this.step:null,complete:b._afterZoomIn})},zoomOut:function(){var a=b.current,d=a.closeEffect,e="elastic"===d,c={opacity:0.1};e&&(c=this.getOrigPosition(),a.closeOpacity&&(c.opacity=0.1));b.wrap.animate(c,{duration:"none"===d?0:a.closeSpeed,easing:a.closeEasing,step:e?this.step:null,complete:b._afterZoomOut})},changeIn:function(){var a=b.current,d=a.nextEffect,e=a.pos,c={opacity:1},f=b.direction,g;e.opacity=0.1;"elastic"===d&&(g="down"===f||"up"===f?"top":"left","down"===f||"right"===f?(e[g]=w(l(e[g])-200),c[g]="+=200px"):(e[g]=w(l(e[g])+200),c[g]="-=200px"));"none"===d?b._afterZoomIn():b.wrap.css(e).animate(c,{duration:a.nextSpeed,easing:a.nextEasing,complete:b._afterZoomIn})},changeOut:function(){var a=b.previous,d=a.prevEffect,e={opacity:0.1},c=b.direction;"elastic"===d&&(e["down"===c||"up"===c?"top":"left"]=("up"===c||"left"===c?"-":"+")+"=200px");a.wrap.animate(e,{duration:"none"===d?0:a.prevSpeed,easing:a.prevEasing,complete:function(){f(this).trigger("onReset").remove()}})}};b.helpers.overlay={defaults:{closeClick:!0,speedOut:200,showEarly:!0,css:{},locked:!s,fixed:!0},overlay:null,fixed:!1,el:f("html"),create:function(a){a=f.extend({},this.defaults,a);this.overlay&&this.close();this.overlay=f('<div class="fancybox-overlay"></div>').appendTo(b.coming?b.coming.parent:a.parent);this.fixed=!1;a.fixed&&b.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(a){var d=this;a=f.extend({},this.defaults,a);this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(a);this.fixed||(n.bind("resize.overlay",f.proxy(this.update,this)),this.update());
17902a.closeClick&&this.overlay.bind("click.overlay",function(a){if(f(a.target).hasClass("fancybox-overlay"))return b.isActive?b.close():d.close(),!1});this.overlay.css(a.css).show()},close:function(){var a,b;n.unbind("resize.overlay");this.el.hasClass("fancybox-lock")&&(f(".fancybox-margin").removeClass("fancybox-margin"),a=n.scrollTop(),b=n.scrollLeft(),this.el.removeClass("fancybox-lock"),n.scrollTop(a).scrollLeft(b));f(".fancybox-overlay").remove().hide();f.extend(this,{overlay:null,fixed:!1})},update:function(){var a="100%",b;this.overlay.width(a).height("100%");I?(b=Math.max(G.documentElement.offsetWidth,G.body.offsetWidth),p.width()>b&&(a=p.width())):p.width()>n.width()&&(a=p.width());this.overlay.width(a).height(p.height())},onReady:function(a,b){var e=this.overlay;f(".fancybox-overlay").stop(!0,!0);e||this.create(a);a.locked&&(this.fixed&&b.fixed)&&(e||(this.margin=p.height()>n.height()?f("html").css("margin-right").replace("px",""):!1),b.locked=this.overlay.append(b.wrap),b.fixed=!1);!0===a.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(a,b){var e,c;b.locked&&(!1!==this.margin&&(f("*").filter(function(){return"fixed"===f(this).css("position")&&!f(this).hasClass("fancybox-overlay")&&!f(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin")),e=n.scrollTop(),c=n.scrollLeft(),this.el.addClass("fancybox-lock"),n.scrollTop(e).scrollLeft(c));this.open(a)},onUpdate:function(){this.fixed||this.update()},afterClose:function(a){this.overlay&&!b.coming&&this.overlay.fadeOut(a.speedOut,f.proxy(this.close,this))}};b.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(a){var d=b.current,e=d.title,c=a.type;f.isFunction(e)&&(e=e.call(d.element,d));if(q(e)&&""!==f.trim(e)){d=f('<div class="fancybox-title fancybox-title-'+c+'-wrap">'+e+"</div>");switch(c){case "inside":c=b.skin;break;case "outside":c=b.wrap;break;case "over":c=b.inner;break;default:c=b.skin,d.appendTo("body"),I&&d.width(d.width()),d.wrapInner('<span class="child"></span>'),b.current.margin[2]+=Math.abs(l(d.css("margin-bottom")))}d["top"===a.position?"prependTo":"appendTo"](c)}}};f.fn.fancybox=function(a){var d,e=f(this),c=this.selector||"",k=function(g){var h=f(this).blur(),j=d,k,l;!g.ctrlKey&&(!g.altKey&&!g.shiftKey&&!g.metaKey)&&!h.is(".fancybox-wrap")&&(k=a.groupAttr||"data-fancybox-group",l=h.attr(k),l||(k="rel",l=h.get(0)[k]),l&&(""!==l&&"nofollow"!==l)&&(h=c.length?f(c):e,h=h.filter("["+k+'="'+l+'"]'),j=h.index(this)),a.index=j,!1!==b.o
17902pen(h,a)&&g.preventDefault())};a=a||{};d=a.index||0;!c||!1===a.live?e.unbind("click.fb-start").bind("click.fb-start",k):p.undelegate(c,"click.fb-start").delegate(c+":not('.fancybox-item, .fancybox-nav')","click.fb-start",k);this.filter("[data-fancybox-start=1]").trigger("click");return this};p.ready(function(){var a,d;f.scrollbarWidth===v&&(f.scrollbarWidth=function(){var a=f('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body"),b=a.children(),b=b.innerWidth()-b.height(99).innerWidth();a.remove();return b});if(f.support.fixedPosition===v){a=f.support;d=f('<div style="position:fixed;top:20px;"></div>').appendTo("body");var e=20===d[0].offsetTop||15===d[0].offsetTop;d.remove();a.fixedPosition=e}f.extend(b.defaults,{scrollbarWidth:f.scrollbarWidth(),fixed:f.support.fixedPosition,parent:f("body")});a=f(r).width();J.addClass("fancybox-lock-test");d=f(r).width();J.removeClass("fancybox-lock-test");f("<style type='text/css'>.fancybox-margin{margin-right:"+(d-a)+"px;}</style>").appendTo("head")})})(window,document,jQuery);/* 17903 * 2007-2017 PrestaShop 17904 * 17905 * NOTICE OF LICENSE 17906 * 17907 * This source file is subject to the Academic Free License (AFL 3.0) 17908 * that is bundled with this package in the file LICENSE.txt. 17909 * It is also available through the world-wide-web at this URL: 17910 * http://opensource.org/licenses/afl-3.0.php 17911 * If you did not receive a copy of the license and are unable to 17912 * obtain it through the world-wide-web, please send an email 17913 * to [email protected] so we can send you a copy immediately. 17914 * 17915 * DISCLAIMER 17916 * 17917 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer 17918 * versions in the future. If you wish to customize PrestaShop for your 17919 * needs please refer to http://www.prestashop.com for more information. 17920 * 17921 * @author PrestaShop SA <[email protected]> 17922 * @copyright 2007-2017 PrestaShop SA 17923 * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) 17924 * International Registered Trademark & Property of PrestaShop SA 17925 */ 17926$(document).ready(function(){function ajaxGetProduct(id,attribute){$.ajax({type:'POST',url:pixel_fc,dataType:'json',data:{action:'GetProduct',ajax:!0,id_product:id,id_attribute:attribute,},success:function(data){var iso_code=prestashop.currency.iso_code,amount=data.price_amount;fbq('track','AddToCart',{value:amount,currency:iso_code})},error:function(err){}})} 17927prestashop.on('updateCart',function(params){if(typeof(params)!=='undefined'&&typeof(prestashop.cart)!=='undefined'){var iso_code=prestashop.currency.iso_code,products=prestashop.cart.products,my_id=params.reason.idProduct,my_attribute=params.reason.idProductAttribute,my_link=params.reason.linkAction;if(my_link!='delete-from-cart'){var search_product=$.grep(products,function(e){return e.id_product==my_id&&e.id_product_attribute==my_attribute});if(products.length!=0){var amount=search_product[0].price_wt;fbq('track','AddToCart',{value:amount,currency:iso_code,content_ids:my_id,content_type:"product"})}}}})});$(window).load(function(){prestashop.blockcart=prestashop.blockcart||{};var showModal=prestashop.blockcart.showModal||function(modal){var $body=$('body');$body.append(modal);$body.one('click','#blockcart-modal',function(event){if(event.target.id==='blockcart-modal'){$(event.target).remove()}})};var psAjaxCart=!1;if(typeof(varPSAjaxCart)!=='undefined'&&varPSAjaxCart){psAjaxCart=varPSAjaxCart} 17928prestashop.on('updateCart',function(event){var refreshURL=$('.blockcart').data('refresh-url');var requestData={};if(event&&event.reason&&event.reason.idProduct){requestData={id_product_attribute:event.reason.idProductAttribute,id_product:event.reason.idProduct,action:event.reason.linkAction,devis:event.reason.devis}} 17929$.post(refreshURL,requestData).then(function(resp){$('.blockcart .cart-header').replaceWith($(resp.preview).find('.blockcart .cart-header'));$('.blockcart .cart-dropdown-wrapper').replaceWith($(resp.preview).find('.blockcart .cart-dropdown-wrapper'));$('[data-sticky-cart]').html($('[data-sticky-cart-source]').html());if(typeof(varSidebarCart)!=='undefined'&&varSidebarCart&&psAjaxCart){$('#js-cart-sidebar').html($('[data-shopping-cart-source]').html());$.each($('#js-cart-sidebar input[name="product-sidebar-quantity-spin"]'),function(index,spinner){$(spinner).makeTouchSpin();$(spinner).on('change',function(){$(spinner).trigger('focusout')})});if(resp.modal){$('html').addClass('st-effect-right st-menu-open');setTimeout(function(){if(prestashop.page.page_name=='product'){prestashop.emit('updateProduct',{})}},500)}}else{if(psAjaxCart&&resp.modal){showModal(resp.modal)}} 17930$('.js-ajax-add-to-cart').removeClass('disabled');$('[data-button-action="add-to-cart"]').removeClass('disabled');$('.js-cart-update-voucher, .js-cart-update-quantity').fadeOut()}).fail(function(resp){prestashop.emit('handleError',{eventType:'updateShoppingCart',resp:resp})})})});/*! selectize.js - v0.12.6 | https://github.com/selectize/selectize.js | Apache License (v2) */
vendor: 13,324 bytes, lines 17930-17931
17930 17931!function(a,b){"function"==typeof define&&define.amd?define("sifter",b):"object"==typeof exports?module.exports=b():a.Sifter=b()}(this,function(){var a=function(a,b){this.items=a,this.settings=b||{diacritics:!0}};a.prototype.tokenize=function(a){if(!(a=e(String(a||"").toLowerCase()))||!a.length)return[];var b,c,d,g,i=[],j=a.split(/ +/);for(b=0,c=j.length;b<c;b++){if(d=f(j[b]),this.settings.diacritics)for(g in h)h.hasOwnProperty(g)&&(d=d.replace(new RegExp(g,"g"),h[g]));i.push({string:j[b],regex:new RegExp(d,"i")})}return i},a.prototype.iterator=function(a,b){var c;c=g(a)?Array.prototype.forEach||function(a){for(var b=0,c=this.length;b<c;b++)a(this[b],b,this)}:function(a){for(var b in this)this.hasOwnProperty(b)&&a(this[b],b,this)},c.apply(a,[b])},a.prototype.getScoreFunction=function(a,b){var c,e,f,g,h;c=this,a=c.prepareSearch(a,b),f=a.tokens,e=a.options.fields,g=f.length,h=a.options.nesting;var i=function(a,b){var c,d;return a?(a=String(a||""),-1===(d=a.search(b.regex))?0:(c=b.string.length/a.length,0===d&&(c+=.5),c)):0},j=function(){var a=e.length;return a?1===a?function(a,b){return i(d(b,e[0],h),a)}:function(b,c){for(var f=0,g=0;f<a;f++)g+=i(d(c,e[f],h),b);return g/a}:function(){return 0}}();return g?1===g?function(a){return j(f[0],a)}:"and"===a.options.conjunction?function(a){for(var b,c=0,d=0;c<g;c++){if((b=j(f[c],a))<=0)return 0;d+=b}return d/g}:function(a){for(var b=0,c=0;b<g;b++)c+=j(f[b],a);return c/g}:function(){return 0}},a.prototype.getSortFunction=function(a,c){var e,f,g,h,i,j,k,l,m,n,o;if(g=this,a=g.prepareSearch(a,c),o=!a.query&&c.sort_empty||c.sort,m=function(a,b){return"$score"===a?b.score:d(g.items[b.id],a,c.nesting)},i=[],o)for(e=0,f=o.length;e<f;e++)(a.query||"$score"!==o[e].field)&&i.push(o[e]);if(a.query){for(n=!0,e=0,f=i.length;e<f;e++)if("$score"===i[e].field){n=!1;break}n&&i.unshift({field:"$score",direction:"desc"})}else for(e=0,f=i.length;e<f;e++)if("$score"===i[e].field){i.splice(e,1);break}for(l=[],e=0,f=i.length;e<f;e++)l.push("desc"===i[e].direction?-1:1);return j=i.length,j?1===j?(h=i[0].field,k=l[0],function(a,c){return k*b(m(h,a),m(h,c))}):function(a,c){var d,e,f;for(d=0;d<j;d++)if(f=i[d].field,e=l[d]*b(m(f,a),m(f,c)))return e;return 0}:null},a.prototype.prepareSearch=function(a,b){if("object"==typeof a)return a;b=c({},b);var d=b.fields,e=b.sort,f=b.sort_empty;return d&&!g(d)&&(b.fields=[d]),e&&!g(e)&&(b.sort=[e]),f&&!g(f)&&(b.sort_empty=[f]),{options:b,query:String(a||"").toLowerCase(),tokens:this.tokenize(a),total:0,items:[]}},a.prototype.search=function(a,b){var c,d,e,f,g=this;return d=this.prepareSearch(a,b),b=d.options,a=d.query,f=b.score||g.getScoreFunction(d),a.length?g.iterator(g.items,function(a,e){c=f(a),(!1===b.filter||c>0)&&d.items.push({score:c,id:e})}):g.iterator(g.items,function(a,b){d.items.push({score:1,id:b})}),e=g.getSortFunction(d,b),e&&d.items.sort(e),d.total=d.items.length,"number"==typeof b.limit&&(d.items=d.items.slice(0,b.limit)),d};var b=function(a,b){return"number"==typeof a&&"number"==typeof b?a>b?1:a<b?-1:0:(a=i(String(a||"")),b=i(String(b||"")),a>b?1:b>a?-1:0)},c=function(a,b){var c,d,e,f;for(c=1,d=arguments.length;c<d;c++)if(f=arguments[c])for(e in f)f.hasOwnProperty(e)&&(a[e]=f[e]);return a},d=function(a,b,c){if(a&&b){if(!c)return a[b];for(var d=b.split(".");d.length&&(a=a[d.shift()]););return a}},e=function(a){return(a+"").replace(/^\s+|\s+$|/g,"")},f=function(a){return(a+"").replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")},g=Array.isArray||"undefined"!=typeof $&&$.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)},h={a:"[aá¸á¸ÄÄÃâÇÇȺⱥȦȧẠạÃäÃà ÃáÄÄÃÃ£Ã Ã¥Ä ÄÃÄ Ä]",b:"[bâ¢Î²ÎB฿ðá]",c:"[cÄÄÄÄÄÄÄÄCÌcÌÃçá¸á¸È»È¼ÆÆÉá´ï¼£ï½]",d:"[dÄÄá¸á¸á¸á¸á¸á¸á¸á¸á¸á¸ÄÄD̦d̦ÆÉÆÉÆÆáµá¶á¶È¡á´ Dï½Ã°]",e:"[eÃéÃèÃêá¸á¸ÄÄÄÄẼẽá¸á¸áººáº»ÄÄÃëÄÄȨȩÄÄá¶ÉÉÈÈ áº¾áº¿á»á»á»á» á»á»á¸á¸á¸á¸á¸á¸ÈÈẸẹá»á»â±¸á´ï¼¥ï½ ÉÇÆÆÎµ]",f:"[fÆÆá¸á¸]",g:"[gÉ¢â²Ç¤Ç¥ÄÄÄÄĢģÆÉ Ä Ä¡]",h:"[hĤĥĦħḨḩáºáºá¸¤á¸¥á¸¢á¸£É¦Ê°Ç¶Æ]",i:"[iÃÃÃìĬÄÃîÇÇÃïḮḯĨĩĮįĪīá»á»ÈÈÈÈá»á»á¸¬á¸ÆÉ¨É¨Ìáµ»á¶Ä°iIıɪIï½]",j:"[jȷĴĵÉÉÊÉʲ]",k:"[kÆÆêêḰḱǨǩḲḳḴḵκϰâ]",l:"[lÅÅĽľĻļĹĺḶḷḸḹḼḽḺḻĿÅȽÆâ± ⱡⱢɫɬᶠÉÈ´ÊLï½]",n:"[nÅÅǸǹÅÅÃñá¹á¹ Å Åá¹á¹á¹á¹á¹á¹NÌnÌÆÉ²È Æáµ°á¶É³ÈµÉ´ï¼®ï½ÅÅ]",o:"[oÃøÃöÃóÃòÃôÇÇÅÅÅÅȮȯá»á»ÆÉµÆ Æ¡á»á»ÅÅÃõǪǫÈÈÕÖ ]",p:"[pá¹á¹á¹á¹â±£áµ½Æ¤Æ¥áµ±]",q:"[qêêÊ ÉÉêêqÌ]",r:"[rÅÅÉÉÅÅÅÅá¹á¹ÈÈÈÈá¹á¹â±¤É½]",s:"[sÅÅṠṡṢṣê¨ê©ÅÅÅ Å¡ÅÅÈÈSÌsÌ]",t:"[tÅ¤Å¥á¹ªá¹«Å¢Å£á¹¬á¹Æ®ÊÈÈṰṱṮṯƬÆ]",u:"[uŬÅÉÊỤụÃüÃúÃùÃûÇÇŰűŬů¯Æ°á»¦á»§ÅªÅ«Å¨Å©Å²Å³ÈÈâª]",v:"[vṼṽṾṿƲÊêêâ±±Ê]",w:"[wáºáºáºáºÅ´Åµáºáº áºáºáºáº]",x:"[xáºáºáºáºÏ]",y:"[yÃýỲỳŶŷŸÿỸỹáºáºá»´á»µÉÉÆ³Æ´]",z:"[zŹźáºáºÅ½Å¾Å»Å¼áºáºáºáºÆµÆ¶]"},i=function(){var a,b,c,d,e="",f={};for(c in h)if(h.hasOwnProperty(c))for(d=h[c].substring(2,h[c].length-1),e+=d,a=0,b=d.length;a<b;a++)f[d.charAt(a)]=c;var g=new RegExp("["+e+"]","g");return function(a){return a.replace(g,function(a){return f[a]}).toLowerCase()}}();return a}),function(a,b){"function"==typeof define&&define.amd?define("microplugin",b):"object"==typeof exports?module.exports=b():a.MicroPlugin=b()}(this,function(){var a={};a.mixin=function(a){a.plugins={},a.prototype.initializePlugins=function(a){var c,d,e,f=this,g=[];if(f.plugins={names:[],settings:{},requested:{},loaded:{}},b.isArray(a))for(c=0,d=a.length;c<d;c++)"string"==typeof a[c]?g.push(a[c]):(f.plugins.settings[a[c].name]=a[c].options,g.push(a[c].name));else if(a)for(e in a)a.hasOwnProperty(e)&&(f.plugins.settings[e]=a[e],g.push(e));for(;g.length;)f.require(g.shift())},a.prototype.loadPlugin=function(b){var c=this,d=c.plugins,e=a.plugins[b];if(!a.plugins.hasOwnProperty(b))throw new Error('Unable to find "'+b+'" plugin');d.requested[b]=!0,d.loaded[b]=e.fn.apply(c,[c.plugins.settings[b]||{}]),d.names.push(b)},a.prototype.require=function(a){var b=this,c=b.plugins;if(!b.plugins.loaded.hasOwnProperty(a)){if(c.requested[a])throw new Error('Plugin has circular dependency ("'+a+'")');b.loadPlugin(a)}return c.loaded[a]},a.define=function(b,c){a.plugins[b]={name:b,fn:c}}};var b={isArray:Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)}};return a}),function(a,b){"function"==typeof define&&define.amd?define("selectize",["jquery","sifter","microplugin"],b):"object"==typeof exports?module.exports=b(require("jquery"),require("sifter"),require("microplugin")):a.Selectize=b(a.jQuery,a.Sifter,a.MicroPlugin)}(this,function(a,b,c){"use strict";var d=function(a,b){if("string"!=typeof b||b.length){var c="string"==typeof b?new RegExp(b,"i"):b,d=function(a){var b=0;if(3===a.nodeType){var e=a.data.search(c);if(e>=0&&a.data.length>0){var f=a.data.match(c),g=document.createElement("span");g.className="highlight";var h=a.splitText(e),i=(h.splitText(f[0].length),h.cloneNode(!0));g.appendChild(i),h.parentNode.replaceChild(g,h),b=1}}else if(1===a.nodeType&&a.childNodes&&!/(script|style)/i.test(a.tagName)&&("highlight"!==a.className||"SPAN"!==a.tagName))for(var j=0;j<a.childNodes.length;++j)j+=d(a.childNodes[j]);return b};return a.each(function(){d(this)})}};a.fn.removeHighlight=function(){return this.find("span.highlight").each(function(){this.parentNode.firstChild.nodeName;var a=this.parentNode;a.replaceChild(this.firstChild,this),a.normalize()}).end()};var e=function(){};e.prototype={on:function(a,b){this._events=this._events||{},this._events[a]=this._events[a]||[],this._events[a].push(b)},off:function(a,b){var c=arguments.length;return 0===c?delete this._events:1===c?delete this._events[a]:(this._events=this._events||{},void(a in this._events!=!1&&this._events[a].splice(this._events[a].indexOf(b),1)))},trigger:function(a){if(this._events=this._events||{},a in this._events!=!1)for(var b=0;b<this._events[a].length;b++)this._events[a][b].apply(this,Array.prototype.slice.call(arguments,1))}},e.mixin=function(a){for(var b=["on","off","trigger"],c=0;c<b.length;c++)a.prototype[b[c]]=e.prototype[b[c]]};var f=/Mac/.test(navigator.userAgent),g=f?91:17,h=f?18:17,i=!/android/i.test(window.navigator.userAgent)&&!!document.createElement("input").validity,j=function(a){return void 0!==a},k=function(a){return void 0===a||null===a?null:"boolean"==typeof a?a?"1":"0":a+""},l=function(a){return(a+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")},m={};m.before=function(a,b,c){var d=a[b];a[b]=function(){return c.apply(a,arguments),d.apply(a,arguments)}},m.after=function(a,b,c){var d=a[b];a[b]=function(){var b=d.apply(a,arguments);return c.apply(a,arguments),b}};var n=function(a){var b=!1;return function(){b||(b=!0,a.apply(this,arguments))}},o=function(a,b){var c;return function(){var d=this,e=arguments;window.clearTimeout(c),c=window.setTimeout(function(){a.apply(d,e)},b)}},p=function(a,b,c){var d,e=a.trigger,f={};a.trigger=function(){var c=arguments[0];if(-1===b.indexOf(c))return e.apply(a,arguments);f[c]=arguments},c.apply(a,[]),a.trigger=e;for(d in f)f.hasOwnProperty(d)&&e.apply(a,f[d])},q=function(a,b,c,d){a.on(b,c,function(b){for(var c=b.target;c&&c.parentNode!==a[0];)c=c.parentNode;return b.currentTarget=c,d.apply(this,[b])})},r=function(a){var b={};if("selectionStart"in a)b.start=a.selectionStart,b.length=a.selectionEnd-b.start;else if(document.selection){a.focus();var c=document.selection.createRange(),d=document.selection.createRange().text.length;c.moveStart("character",-a.value.length),b.start=c.text.length-d,b.length=d}return b},s=function(a,b,c){var d,e,f={};if(c)for(d=0,e=c.length;d<e;d++)f[c[d]]=a.css(c[d]);else f=a.css();b.css(f)},t=function(b,c){return b?(w.$testInput||(w.$testInput=a("<span />").css({position:"absolute",top:-99999,left:-99999,width:"auto",padding:0,whiteSpace:"pre"}).appendTo("body")),w.$testInput.text(b),s(c,w.$testInput,["letterSpacing","fontSize","fontFamily","fontWeight","textTransform"]),w.$testInput.width()):0},u=function(a){var b=null,c=function(c,d){var e,f,g,h,i,j,k,l;c=c||window.event||{},d=d||{},c.metaKey||c.altKey||(d.force||!1!==a.data("grow"))&&(e=a.val(),c.type&&"keydown"===c.type.toLowerCase()&&(f=c.keyCode,g=f>=48&&f<=57||f>=65&&f<=90||f>=96&&f<=111||f>=186&&f<=222||32===f,46===f||8===f?(l=r(a[0]),l.length?e=e.substring(0,l.start)+e.substring(l.start+l.length):8===f&&l.start?e=e.substring(0,l.start-1)+e.substring(l.start+1):46===f&&void 0!==l.start&&(e=e.substring(0,l.start)+e.substring(l.start+1))):g&&(j=c.shiftKey,k=String.fromCharCode(c.keyCode),k=j?k.toUpperCase():k.toLowerCase(),e+=k)),h=a.attr("placeholder"),!e&&h&&(e=h),(i=t(e,a)+4)!==b&&(b=i,a.width(i),a.triggerHandler("resize")))};a.on("keydown keyup update blur",c),c()},v=function(a){var b=document.createElement("div");return b.appendChild(a.cloneNode(!0)),b.innerHTML},w=function(c,d){var e,f,g,h,i=this;h=c[0],h.selectize=i;var j=window.getComputedStyle&&window.getComputedStyle(h,null);if(g=j?j.getPropertyValue("direction"):h.currentStyle&&h.currentStyle.direction,g=g||c.parents("[dir]:first").attr("dir")||"",a.extend(i,{order:0,settings:d,$input:c,tabIndex:c.attr("tabindex")||"",tagType:"select"===h.tagName.toLowerCase()?1:2,rtl:/rtl/i.test(g),eventNS:".selectize"+ ++w.count,highlightedValue:null,isBlurring:!1,isOpen:!1,isDisabled:!1,isRequired:c.is("[required]"),isInvalid:!1,isLocked:!1,isFocused:!1,isInputHidden:!1,isSetup:!1,isShiftDown:!1,isCmdDown:!1,isCtrlDown:!1,ignoreFocus:!1,ignoreBlur:!1,ignoreHover:!1,hasOptions:!1,currentResults:null,lastValue:"",caretPos:0,loading:0,loadedSearches:{},$activeOption:null,$activeItems:[],optgroups:{},options:{},userOptions:{},items:[],renderCache:{},onSearchChange:null===d.loadThrottle?i.onSearchChange:o(i.onSearchChange,d.loadThrottle)}),i.sifter=new b(this.options,{diacritics:d.diacritics}),i.settings.options){for(e=0,f=i.settings.options.length;e<f;e++)i.registerOption(i.settings.options[e]);delete i.settings.options}if(i.settings.optgroups){for(e=0,f=i.settings.optgroups.length;e<f;e++)i.registerOptionGroup(i.settings.optgroups[e]);delete i.settings.optgroups}i.settings.mode=i.settings.mode||(1===i.settings.maxItems?"single":"multi"),"boolean"!=typeof i.settings.hideSelected&&(i.settings.hideSelected="multi"===i.settings.mode),i.initializePlugins(i.settings.plugins),i.setupCallbacks(),i.setupTemplates(),i.setup()};return e.mixin(w),void 0!==c?c.mixin(w):function(a,b){b||(b={});console.error("Selectize: "+a),b.explanation&&(console.group&&console.group(),console.error(b.explanation),console.group&&console.groupEnd())}("Dependency MicroPlugin is missing",{explanation:'Make sure you either: (1) are using the "standalone" version of Selectize, or (2) require MicroPlugin before you load Selectize.'}),a.extend(w.prototype,{setup:function(){var b,c,d,e,j,k,l,m,n,o,p=this,r=p.settings,s=p.eventNS,t=a(window),v=a(document),w=p.$input;if(l=p.settings.mode,m=w.attr("class")||"",b=a("<div>").addClass(r.wrapperClass).addClass(m).addClass(l),c=a("<div>").addClass(r.inputClass).addClass("items").appendTo(b),d=a('<input type="text" autocomplete="off" />').appendTo(c).attr("tabindex",w.is(":disabled")?"-1":p.tabIndex),
vendor: 4,534 bytes, line 17931
17931k=a(r.dropdownParent||b),e=a("<div>").addClass(r.dropdownClass).addClass(l).hide().appendTo(k),j=a("<div>").addClass(r.dropdownContentClass).appendTo(e),(o=w.attr("id"))&&(d.attr("id",o+"-selectized"),a("label[for='"+o+"']").attr("for",o+"-selectized")),p.settings.copyClassesToDropdown&&e.addClass(m),b.css({width:w[0].style.width}),p.plugins.names.length&&(n="plugin-"+p.plugins.names.join(" plugin-"),b.addClass(n),e.addClass(n)),(null===r.maxItems||r.maxItems>1)&&1===p.tagType&&w.attr("multiple","multiple"),p.settings.placeholder&&d.attr("placeholder",r.placeholder),!p.settings.splitOn&&p.settings.delimiter){var x=p.settings.delimiter.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");p.settings.splitOn=new RegExp("\\s*"+x+"+\\s*")}w.attr("autocorrect")&&d.attr("autocorrect",w.attr("autocorrect")),w.attr("autocapitalize")&&d.attr("autocapitalize",w.attr("autocapitalize")),d[0].type=w[0].type,p.$wrapper=b,p.$control=c,p.$control_input=d,p.$dropdown=e,p.$dropdown_content=j,e.on("mouseenter mousedown click","[data-disabled]>[data-selectable]",function(a){a.stopImmediatePropagation()}),e.on("mouseenter","[data-selectable]",function(){return p.onOptionHover.apply(p,arguments)}),e.on("mousedown click","[data-selectable]",function(){return p.onOptionSelect.apply(p,arguments)}),q(c,"mousedown","*:not(input)",function(){return p.onItemSelect.apply(p,arguments)}),u(d),c.on({mousedown:function(){return p.onMouseDown.apply(p,arguments)},click:function(){return p.onClick.apply(p,arguments)}}),d.on({mousedown:function(a){a.stopPropagation()},keydown:function(){return p.onKeyDown.apply(p,arguments)},keyup:function(){return p.onKeyUp.apply(p,arguments)},keypress:function(){return p.onKeyPress.apply(p,arguments)},resize:function(){p.positionDropdown.apply(p,[])},blur:function(){return p.onBlur.apply(p,arguments)},focus:function(){return p.ignoreBlur=!1,p.onFocus.apply(p,arguments)},paste:function(){return p.onPaste.apply(p,arguments)}}),v.on("keydown"+s,function(a){p.isCmdDown=a[f?"metaKey":"ctrlKey"],p.isCtrlDown=a[f?"altKey":"ctrlKey"],p.isShiftDown=a.shiftKey}),v.on("keyup"+s,function(a){a.keyCode===h&&(p.isCtrlDown=!1),16===a.keyCode&&(p.isShiftDown=!1),a.keyCode===g&&(p.isCmdDown=!1)}),v.on("mousedown"+s,function(a){if(p.isFocused){if(a.target===p.$dropdown[0]||a.target.parentNode===p.$dropdown[0])return!1;p.$control.has(a.target).length||a.target===p.$control[0]||p.blur(a.target)}}),t.on(["scroll"+s,"resize"+s].join(" "),function(){p.isOpen&&p.positionDropdown.apply(p,arguments)}),t.on("mousemove"+s,function(){p.ignoreHover=!1}),this.revertSettings={$children:w.children().detach(),tabindex:w.attr("tabindex")},w.attr("tabindex",-1).hide().after(p.$wrapper),a.isArray(r.items)&&(p.setValue(r.items),delete r.items),i&&w.on("invalid"+s,function(a){a.preventDefault(),p.isInvalid=!0,p.refreshState()}),p.updateOriginalInput(),p.refreshItems(),p.refreshState(),p.updatePlaceholder(),p.isSetup=!0,w.is(":disabled")&&p.disable(),p.on("change",this.onChange),w.data("selectize",p),w.addClass("selectized"),p.trigger("initialize"),!0===r.preload&&p.onSearchChange("")},setupTemplates:function(){var b=this,c=b.settings.labelField,d=b.settings.optgroupLabelField,e={optgroup:function(a){return'<div class="optgroup">'+a.html+"</div>"},optgroup_header:function(a,b){return'<div class="optgroup-header">'+b(a[d])+"</div>"},option:function(a,b){return'<div class="option">'+b(a[c])+"</div>"},item:function(a,b){return'<div class="item">'+b(a[c])+"</div>"},option_create:function(a,b){return'<div class="create">Add <strong>'+b(a.input)+"</strong>…</div>"}};b.settings.render=a.extend({},e,b.settings.render)},setupCallbacks:function(){var a,b,c={initialize:"onInitialize",change:"onChange",item_add:"onItemAdd",item_remove:"onItemRemove",clear:"onClear",option_add:"onOptionAdd",option_remove:"onOptionRemove",option_clear:"onOptionClear",optgroup_add:"onOptionGroupAdd",optgroup_remove:"onOptionGroupRemove",optgroup_clear:"onOptionGroupClear",dropdown_open:"onDropdownOpen",dropdown_close:"onDropdownClose",type:"onType",load:"onLoad",focus:"onFocus",blur:"onBlur"};for(a in c)c.hasOwnProperty(a)&&(b=this.settings[c[a]])&&this.on(a,b)},onClick:function(a){var b=this;b.isFocused&&b.isOpen||(b.focus(),a.preventDefault())},onMouseDown:function(b){var c=this,d=b.isDefaultPrevented();a(b.target);if(c.isFocused){if(b.target!==c.$control_input[0])return"single"===c.settings.mode?c.isOpen?c.close():c.open():d||c.setActiveItem(null),!1}else d||window.setTimeout(function(){c.focus()},0)},onChange:function(){this.
vendor: 1,064 bytes, line 17931
17931settings.triggerChangeEvent&&this.$input.trigger("change")},onPaste:function(b){var c=this;if(c.isFull()||c.isInputHidden||c.isLocked)return void b.preventDefault();c.settings.splitOn&&setTimeout(function(){var b=c.$control_input.val();if(b.match(c.settings.splitOn))for(var d=a.trim(b).split(c.settings.splitOn),e=0,f=d.length;e<f;e++)c.createItem(d[e])},0)},onKeyPress:function(a){if(this.isLocked)return a&&a.preventDefault();var b=String.fromCharCode(a.keyCode||a.which);return this.settings.create&&"multi"===this.settings.mode&&b===this.settings.delimiter?(this.createItem(),a.preventDefault(),!1):void 0},onKeyDown:function(a){var b=(a.target,this.$control_input[0],this);if(b.isLocked)return void(9!==a.keyCode&&a.preventDefault());switch(a.keyCode){case 65:if(b.isCmdDown)return void b.selectAll();break;case 27:return void(b.isOpen&&(a.preventDefault(),a.stopPropagation(),b.close()));case 78:if(!a.ctrlKey||a.altKey)break;case 40:if(!b.isOpen&&b.hasOptions)b.open();else if(b.$activeOption){b.ignoreHover=!0;var c=b.getAdjacentOption(b.$activeOption,1);
17931c.length&&b.setActiveOption(c,!0,!0)}return void a.preventDefault();case 80:if(!a.ctrlKey||a.altKey)break;case 38:if(b.$activeOption){b.ignoreHover=!0;var d=b.getAdjacentOption(b.$activeOption,-1);d.length&&b.setActiveOption(d,!0,!0)}return void a.preventDefault();case 13:return b.isOpen&&b.$activeOption&&b.onOptionSelect({currentTarget:b.$activeOption}),void a.preventDefault(
vendor: 11,300 bytes, line 17931
17931);case 37:return void b.advanceSelection(-1,a);case 39:return void b.advanceSelection(1,a);case 9:return b.settings.selectOnTab&&b.isOpen&&b.$activeOption&&(b.onOptionSelect({currentTarget:b.$activeOption}),b.isFull()||a.preventDefault()),void(b.settings.create&&b.createItem()&&a.preventDefault());case 8:case 46:return void b.deleteSelection(a)}return!b.isFull()&&!b.isInputHidden||(f?a.metaKey:a.ctrlKey)?void 0:void a.preventDefault()},onKeyUp:function(a){var b=this;if(b.isLocked)return a&&a.preventDefault();var c=b.$control_input.val()||"";b.lastValue!==c&&(b.lastValue=c,b.onSearchChange(c),b.refreshOptions(),b.trigger("type",c))},onSearchChange:function(a){var b=this,c=b.settings.load;c&&(b.loadedSearches.hasOwnProperty(a)||(b.loadedSearches[a]=!0,b.load(function(d){c.apply(b,[a,d])})))},onFocus:function(a){var b=this,c=b.isFocused;if(b.isDisabled)return b.blur(),a&&a.preventDefault(),!1;b.ignoreFocus||(b.isFocused=!0,"focus"===b.settings.preload&&b.onSearchChange(""),c||b.trigger("focus"),b.$activeItems.length||(b.showInput(),b.setActiveItem(null),b.refreshOptions(!!b.settings.openOnFocus)),b.refreshState())},onBlur:function(a,b){var c=this;if(c.isFocused&&(c.isFocused=!1,!c.ignoreFocus)){if(!c.ignoreBlur&&document.activeElement===c.$dropdown_content[0])return c.ignoreBlur=!0,void c.onFocus(a);var d=function(){c.close(),c.setTextboxValue(""),c.setActiveItem(null),c.setActiveOption(null),c.setCaret(c.items.length),c.refreshState(),b&&b.focus&&b.focus(),c.isBlurring=!1,c.ignoreFocus=!1,c.trigger("blur")};c.isBlurring=!0,c.ignoreFocus=!0,c.settings.create&&c.settings.createOnBlur?c.createItem(null,!1,d):d()}},onOptionHover:function(a){this.ignoreHover||this.setActiveOption(a.currentTarget,!1)},onOptionSelect:function(b){var c,d,e=this;b.preventDefault&&(b.preventDefault(),b.stopPropagation()),d=a(b.currentTarget),d.hasClass("create")?e.createItem(null,function(){e.settings.closeAfterSelect&&e.close()}):void 0!==(c=d.attr("data-value"))&&(e.lastQuery=null,e.setTextboxValue(""),e.addItem(c),e.settings.closeAfterSelect?e.close():!e.settings.hideSelected&&b.type&&/mouse/.test(b.type)&&e.setActiveOption(e.getOption(c)))},onItemSelect:function(a){var b=this;b.isLocked||"multi"===b.settings.mode&&(a.preventDefault(),b.setActiveItem(a.currentTarget,a))},load:function(a){var b=this,c=b.$wrapper.addClass(b.settings.loadingClass);b.loading++,a.apply(b,[function(a){b.loading=Math.max(b.loading-1,0),a&&a.length&&(b.addOption(a),b.refreshOptions(b.isFocused&&!b.isInputHidden)),b.loading||c.removeClass(b.settings.loadingClass),b.trigger("load",a)}])},setTextboxValue:function(a){var b=this.$control_input;b.val()!==a&&(b.val(a).triggerHandler("update"),this.lastValue=a)},getValue:function(){return 1===this.tagType&&this.$input.attr("multiple")?this.items:this.items.join(this.settings.delimiter)},setValue:function(a,b){p(this,b?[]:["change"],function(){this.clear(b),this.addItems(a,b)})},setActiveItem:function(b,c){var d,e,f,g,h,i,j,k,l=this;if("single"!==l.settings.mode){if(b=a(b),!b.length)return a(l.$activeItems).removeClass("active"),l.$activeItems=[],void(l.isFocused&&l.showInput());if("mousedown"===(d=c&&c.type.toLowerCase())&&l.isShiftDown&&l.$activeItems.length){for(k=l.$control.children(".active:last"),g=Array.prototype.indexOf.apply(l.$control[0].childNodes,[k[0]]),h=Array.prototype.indexOf.apply(l.$control[0].childNodes,[b[0]]),g>h&&(j=g,g=h,h=j),e=g;e<=h;e++)i=l.$control[0].childNodes[e],-1===l.$activeItems.indexOf(i)&&(a(i).addClass("active"),l.$activeItems.push(i));c.preventDefault()}else"mousedown"===d&&l.isCtrlDown||"keydown"===d&&this.isShiftDown?b.hasClass("active")?(f=l.$activeItems.indexOf(b[0]),l.$activeItems.splice(f,1),b.removeClass("active")):l.$activeItems.push(b.addClass("active")[0]):(a(l.$activeItems).removeClass("active"),l.$activeItems=[b.addClass("active")[0]]);l.hideInput(),this.isFocused||l.focus()}},setActiveOption:function(b,c,d){var e,f,g,h,i,k=this;k.$activeOption&&k.$activeOption.removeClass("active"),k.$activeOption=null,b=a(b),b.length&&(k.$activeOption=b.addClass("active"),!c&&j(c)||(e=k.$dropdown_content.height(),f=k.$activeOption.outerHeight(!0),c=k.$dropdown_content.scrollTop()||0,g=k.$activeOption.offset().top-k.$dropdown_content.offset().top+c,h=g,i=g-e+f,g+f>e+c?k.$dropdown_content.stop().animate({scrollTop:i},d?k.settings.scrollDuration:0):g<c&&k.$dropdown_content.stop().animate({scrollTop:h},d?k.settings.scrollDuration:0)))},selectAll:function(){var a=this;"single"!==a.settings.mode&&(a.$activeItems=Array.prototype.slice.apply(a.$control.children(":not(input)").addClass("active")),a.$activeItems.length&&(a.hideInput(),a.close()),a.focus())},hideInput:function(){var a=this;a.setTextboxValue(""),a.$control_input.css({opacity:0,position:"absolute",left:a.rtl?1e4:-1e4}),a.isInputHidden=!0},showInput:function(){this.$control_input.css({opacity:1,position:"relative",left:0}),this.isInputHidden=!1},focus:function(){var a=this;a.isDisabled||(a.ignoreFocus=!0,a.$control_input[0].focus(),window.setTimeout(function(){a.ignoreFocus=!1,a.onFocus()},0))},blur:function(a){this.$control_input[0].blur(),this.onBlur(null,a)},getScoreFunction:function(a){return this.sifter.getScoreFunction(a,this.getSearchOptions())},getSearchOptions:function(){var a=this.settings,b=a.sortField;return"string"==typeof b&&(b=[{field:b}]),{fields:a.searchField,conjunction:a.searchConjunction,sort:b,nesting:a.nesting}},search:function(b){var c,d,e,f=this,g=f.settings,h=this.getSearchOptions();if(g.score&&"function"!=typeof(e=f.settings.score.apply(this,[b])))throw new Error('Selectize "score" setting must be a function that returns a function');if(b!==f.lastQuery?(f.lastQuery=b,d=f.sifter.search(b,a.extend(h,{score:e})),f.currentResults=d):d=a.extend(!0,{},f.currentResults),g.hideSelected)for(c=d.items.length-1;c>=0;c--)-1!==f.items.indexOf(k(d.items[c].id))&&d.items.splice(c,1);return d},refreshOptions:function(b){var c,e,f,g,h,i,j,l,m,n,o,p,q,r,s,t;void 0===b&&(b=!0);var u=this,w=a.trim(u.$control_input.val()),x=u.search(w),y=u.$dropdown_content,z=u.$activeOption&&k(u.$activeOption.attr("data-value"));for(g=x.items.length,"number"==typeof u.settings.maxOptions&&(g=Math.min(g,u.settings.maxOptions)),h={},i=[],c=0;c<g;c++)for(j=u.options[x.items[c].id],l=u.render("option",j),m=j[u.settings.optgroupField]||"",n=a.isArray(m)?m:[m],e=0,f=n&&n.length;e<f;e++)m=n[e],u.optgroups.hasOwnProperty(m)||(m=""),h.hasOwnProperty(m)||(h[m]=document.createDocumentFragment(),i.push(m)),h[m].appendChild(l);for(this.settings.lockOptgroupOrder&&i.sort(function(a,b){return(u.optgroups[a].$order||0)-(u.optgroups[b].$order||0)}),o=document.createDocumentFragment(),c=0,g=i.length;c<g;c++)m=i[c],u.optgroups.hasOwnProperty(m)&&h[m].childNodes.length?(p=document.createDocumentFragment(),p.appendChild(u.render("optgroup_header",u.optgroups[m])),p.appendChild(h[m]),o.appendChild(u.render("optgroup",a.extend({},u.optgroups[m],{html:v(p),dom:p})))):o.appendChild(h[m]);if(y.html(o),u.settings.highlight&&(y.removeHighlight(),x.query.length&&x.tokens.length))for(c=0,g=x.tokens.length;c<g;c++)d(y,x.tokens[c].regex);if(!u.settings.hideSelected)for(c=0,g=u.items.length;c<g;c++)u.getOption(u.items[c]).addClass("selected");q=u.canCreate(w),q&&(y.prepend(u.render("option_create",{input:w})),t=a(y[0].childNodes[0])),u.hasOptions=x.items.length>0||q,u.hasOptions?(x.items.length>0?(s=z&&u.getOption(z),s&&s.length?r=s:"single"===u.settings.mode&&u.items.length&&(r=u.getOption(u.items[0])),r&&r.length||(r=t&&!u.settings.addPrecedence?u.getAdjacentOption(t,1):y.find("[data-selectable]:first"))):r=t,u.setActiveOption(r),b&&!u.isOpen&&u.open()):(u.setActiveOption(null),b&&u.isOpen&&u.close())},addOption:function(b){var c,d,e,f=this;if(a.isArray(b))for(c=0,d=b.length;c<d;c++)f.addOption(b[c]);else(e=f.registerOption(b))&&(f.userOptions[e]=!0,f.lastQuery=null,f.trigger("option_add",e,b))},registerOption:function(a){var b=k(a[this.settings.valueField]);return void 0!==b&&null!==b&&!this.options.hasOwnProperty(b)&&(a.$order=a.$order||++this.order,this.options[b]=a,b)},registerOptionGroup:function(a){var b=k(a[this.settings.optgroupValueField]);return!!b&&(a.$order=a.$order||++this.order,this.optgroups[b]=a,b)},addOptionGroup:function(a,b){b[this.settings.optgroupValueField]=a,(a=this.registerOptionGroup(b))&&this.trigger("optgroup_add",a,b)},removeOptionGroup:function(a){this.optgroups.hasOwnProperty(a)&&(delete this.optgroups[a],this.renderCache={},this.trigger("optgroup_remove",a))},clearOptionGroups:function(){this.optgroups={},this.renderCache={},this.trigger("optgroup_clear")},updateOption:function(b,c){var d,e,f,g,h,i,j,l=this;if(b=k(b),f=k(c[l.settings.valueField]),null!==b&&l.options.hasOwnProperty(b)){if("string"!=typeof f)throw new Error("Value must be set in option data");j=l.options[b].$order,f!==b&&(delete l.options[b],-1!==(g=l.items.indexOf(b))&&l.items.splice(g,1,f)),c.$order=c.$order||j,l.options[f]=c,h=l.renderCache.item,i=l.renderCache.option,h&&(delete h[b],delete h[f]),i&&(delete i[b],delete i[f]),-1!==l.items.indexOf(f)&&(d=l.getItem(b),e=a(l.render("item",c)),d.hasClass("active")&&e.addClass("active"),d.replaceWith(e)),l.lastQuery=null,l.isOpen&&l.refreshOptions(!1)}},removeOption:function(a,b){var c=this;a=k(a);var d=c.renderCache.item,e=c.renderCache.option;d&&delete d[a],e&&delete e[a],delete c.userOptions[a],delete c.options[a],c.lastQuery=null,c.trigger("option_remove",a),c.removeItem(a,b)},clearOptions:function(){var b=this;b.loadedSearches={},b.userOptions={},b.renderCache={};var c=b.options;a.each(b.options,function(a,d){-1==b.items.indexOf(a)&&delete c[a]}),b.options=b.sifter.items=c,b.lastQuery=null,b.trigger("option_clear")},getOption:function(a){return this.getElementWithValue(a,this.$dropdown_content.find("[data-selectable]"))},getAdjacentOption:function(b,c){var d=this.$dropdown.find("[data-selectable]"),e=d.index(b)+c;return e>=0&&e<d.length?d.eq(e):a()},getElementWithValue:function(b,c){if(void 0!==(b=k(b))&&null!==b)for(var d=0,e=c.length;d<e;d++)if(c[d].getAttribute("data-value")===b)return a(c[d]);return a()},getItem:function(a){return this.getElementWithValue(a,this.$control.children())},addItems:function(b,c){this.buffer=document.createDocumentFragment();for(var d=this.$control[0].childNodes,e=0;e<d.length;e++)this.buffer.appendChild(d[e]);for(var f=a.isArray(b)?b:[b],e=0,g=f.length;e<g;e++)this.isPending=e<g-1,this.addItem(f[e],c);var h=this.$control[0];h.insertBefore(this.buffer,h.firstChild),this.buffer=null},addItem:function(b,c){p(this,c?[]:["change"],function(){var d,e,f,g,h,i=this,j=i.settings.mode;if(b=k(b),-1!==i.items.indexOf(b))return void("single"===j&&i.close());i.options.hasOwnProperty(b)&&("single"===j&&i.clear(c),"multi"===j&&i.isFull()||(d=a(i.render("item",i.options[b])),h=i.isFull(),i.items.splice(i.caretPos,0,b),i.insertAtCaret(d),(!i.isPending||!h&&i.isFull())&&i.refreshState(),i.isSetup&&(f=i.$dropdown_content.find("[data-selectable]"),i.isPending||(e=i.getOption(b),g=i.getAdjacentOption(e,1).attr("data-value"),i.refreshOptions(i.isFocused&&"single"!==j),g&&i.setActiveOption(i.getOption(g))),!f.length||i.isFull()?i.close():i.isPending||i.positionDropdown(),i.updatePlaceholder(),i.trigger("item_add",b,d),i.isPending||i.updateOriginalInput({silent:c}))))})},removeItem:function(b,c
vendor: 12,750 bytes, line 17931
17931,d){var e,f,g,h=this;e=b instanceof a?b:h.getItem(b),b=k(e.attr("data-value")),-1!==(f=h.items.indexOf(b))&&(e.remove(),e.hasClass("active")&&(g=h.$activeItems.indexOf(e[0]),h.$activeItems.splice(g,1)),h.items.splice(f,1),h.lastQuery=null,!h.settings.persist&&h.userOptions.hasOwnProperty(b)&&h.removeOption(b,c),f<h.caretPos&&h.setCaret(h.caretPos-1),h.refreshState(),h.updatePlaceholder(),h.updateOriginalInput({silent:c,event:d}),h.positionDropdown(),h.trigger("item_remove",b,e))},createItem:function(b,c){var d=this,e=d.caretPos;b=b||a.trim(d.$control_input.val()||"");var f=arguments[arguments.length-1];if("function"!=typeof f&&(f=function(){}),"boolean"!=typeof c&&(c=!0),!d.canCreate(b))return f(),!1;d.lock();var g="function"==typeof d.settings.create?this.settings.create:function(a){var b={};return b[d.settings.labelField]=a,b[d.settings.valueField]=a,b},h=n(function(a){if(d.unlock(),!a||"object"!=typeof a)return f();var b=k(a[d.settings.valueField]);if("string"!=typeof b)return f();d.setTextboxValue(""),d.addOption(a),d.setCaret(e),d.addItem(b),d.refreshOptions(c&&"single"!==d.settings.mode),f(a)}),i=g.apply(this,[b,h]);return void 0!==i&&h(i),!0},refreshItems:function(){this.lastQuery=null,this.isSetup&&this.addItem(this.items),this.refreshState(),this.updateOriginalInput()},refreshState:function(){this.refreshValidityState(),this.refreshClasses()},refreshValidityState:function(){if(!this.isRequired)return!1;var a=!this.items.length;this.isInvalid=a,this.$control_input.prop("required",a),this.$input.prop("required",!a)},refreshClasses:function(){var b=this,c=b.isFull(),d=b.isLocked;b.$wrapper.toggleClass("rtl",b.rtl),b.$control.toggleClass("focus",b.isFocused).toggleClass("disabled",b.isDisabled).toggleClass("required",b.isRequired).toggleClass("invalid",b.isInvalid).toggleClass("locked",d).toggleClass("full",c).toggleClass("not-full",!c).toggleClass("input-active",b.isFocused&&!b.isInputHidden).toggleClass("dropdown-active",b.isOpen).toggleClass("has-options",!a.isEmptyObject(b.options)).toggleClass("has-items",b.items.length>0),b.$control_input.data("grow",!c&&!d)},isFull:function(){return null!==this.settings.maxItems&&this.items.length>=this.settings.maxItems},updateOriginalInput:function(a){var b,c,d,e,f=this;if(a=a||{},1===f.tagType){for(d=[],b=0,c=f.items.length;b<c;b++)e=f.options[f.items[b]][f.settings.labelField]||"",d.push('<option value="'+l(f.items[b])+'" selected="selected">'+l(e)+"</option>");d.length||this.$input.attr("multiple")||d.push('<option value="" selected="selected"></option>'),f.$input.html(d.join(""))}else f.$input.val(f.getValue()),f.$input.attr("value",f.$input.val());f.isSetup&&(a.silent||f.trigger("change",f.$input.val(),event))},updatePlaceholder:function(){if(this.settings.placeholder){var a=this.$control_input;this.items.length?a.removeAttr("placeholder"):a.attr("placeholder",this.settings.placeholder),a.triggerHandler("update",{force:!0})}},open:function(){var a=this;a.isLocked||a.isOpen||"multi"===a.settings.mode&&a.isFull()||(a.focus(),a.isOpen=!0,a.refreshState(),a.$dropdown.css({visibility:"hidden",display:"block"}),a.positionDropdown(),a.$dropdown.css({visibility:"visible"}),a.trigger("dropdown_open",a.$dropdown))},close:function(){var a=this,b=a.isOpen;"single"===a.settings.mode&&a.items.length&&(a.hideInput(),a.isBlurring||a.$control_input.blur()),a.isOpen=!1,a.$dropdown.hide(),a.setActiveOption(null),a.refreshState(),b&&a.trigger("dropdown_close",a.$dropdown)},positionDropdown:function(){var a=this.$control,b="body"===this.settings.dropdownParent?a.offset():a.position();b.top+=a.outerHeight(!0),this.$dropdown.css({width:a[0].getBoundingClientRect().width,top:b.top,left:b.left})},clear:function(a){var b=this;b.items.length&&(b.$control.children(":not(input)").remove(),b.items=[],b.lastQuery=null,b.setCaret(0),b.setActiveItem(null),b.updatePlaceholder(),b.updateOriginalInput({silent:a}),b.refreshState(),b.showInput(),b.trigger("clear"))},insertAtCaret:function(a){var b=Math.min(this.caretPos,this.items.length),c=a[0],d=this.buffer||this.$control[0];0===b?d.insertBefore(c,d.firstChild):d.insertBefore(c,d.childNodes[b]),this.setCaret(b+1)},deleteSelection:function(b){var c,d,e,f,g,h,i,j,k,l=this;if(e=b&&8===b.keyCode?-1:1,f=r(l.$control_input[0]),l.$activeOption&&!l.settings.hideSelected&&(i=l.getAdjacentOption(l.$activeOption,-1).attr("data-value")),g=[],l.$activeItems.length){for(k=l.$control.children(".active:"+(e>0?"last":"first")),h=l.$control.children(":not(input)").index(k),e>0&&h++,c=0,d=l.$activeItems.length;c<d;c++)g.push(a(l.$activeItems[c]).attr("data-value"));b&&(b.preventDefault(),b.stopPropagation())}else(l.isFocused||"single"===l.settings.mode)&&l.items.length&&(e<0&&0===f.start&&0===f.length?g.push(l.items[l.caretPos-1]):e>0&&f.start===l.$control_input.val().length&&g.push(l.items[l.caretPos]));if(!g.length||"function"==typeof l.settings.onDelete&&!1===l.settings.onDelete.apply(l,[g]))return!1;for(void 0!==h&&l.setCaret(h);g.length;)l.removeItem(g.pop(),void 0,b);return l.showInput(),l.positionDropdown(),l.refreshOptions(!0),i&&(j=l.getOption(i),j.length&&l.setActiveOption(j)),!0},advanceSelection:function(a,b){var c,d,e,f,g,h=this;0!==a&&(h.rtl&&(a*=-1),c=a>0?"last":"first",d=r(h.$control_input[0]),h.isFocused&&!h.isInputHidden?(f=h.$control_input.val().length,(a<0?0===d.start&&0===d.length:d.start===f)&&!f&&h.advanceCaret(a,b)):(g=h.$control.children(".active:"+c),g.length&&(e=h.$control.children(":not(input)").index(g),h.setActiveItem(null),h.setCaret(a>0?e+1:e))))},advanceCaret:function(a,b){var c,d,e=this;0!==a&&(c=a>0?"next":"prev",e.isShiftDown?(d=e.$control_input[c](),d.length&&(e.hideInput(),e.setActiveItem(d),b&&b.preventDefault())):e.setCaret(e.caretPos+a))},setCaret:function(b){var c=this;if(b="single"===c.settings.mode?c.items.length:Math.max(0,Math.min(c.items.length,b)),!c.isPending){var d,e,f,g;for(f=c.$control.children(":not(input)"),d=0,e=f.length;d<e;d++)g=a(f[d]).detach(),d<b?c.$control_input.before(g):c.$control.append(g)}c.caretPos=b},lock:function(){this.close(),this.isLocked=!0,this.refreshState()},unlock:function(){this.isLocked=!1,this.refreshState()},disable:function(){var a=this;a.$input.prop("disabled",!0),a.$control_input.prop("disabled",!0).prop("tabindex",-1),a.isDisabled=!0,a.lock()},enable:function(){var a=this;a.$input.prop("disabled",!1),a.$control_input.prop("disabled",!1).prop("tabindex",a.tabIndex),a.isDisabled=!1,a.unlock()},destroy:function(){var b=this,c=b.eventNS,d=b.revertSettings;b.trigger("destroy"),b.off(),b.$wrapper.remove(),b.$dropdown.remove(),b.$input.html("").append(d.$children).removeAttr("tabindex").removeClass("selectized").attr({tabindex:d.tabindex}).show(),b.$control_input.removeData("grow"),b.$input.removeData("selectize"),0==--w.count&&w.$testInput&&(w.$testInput.remove(),w.$testInput=void 0),a(window).off(c),a(document).off(c),a(document.body).off(c),delete b.$input[0].selectize},render:function(b,c){var d,e,f="",g=!1,h=this;return"option"!==b&&"item"!==b||(d=k(c[h.settings.valueField]),g=!!d),g&&(j(h.renderCache[b])||(h.renderCache[b]={}),h.renderCache[b].hasOwnProperty(d))?h.renderCache[b][d]:(f=a(h.settings.render[b].apply(this,[c,l])),"option"===b||"option_create"===b?c[h.settings.disabledField]||f.attr("data-selectable",""):"optgroup"===b&&(e=c[h.settings.optgroupValueField]||"",f.attr("data-group",e),c[h.settings.disabledField]&&f.attr("data-disabled","")),"option"!==b&&"item"!==b||f.attr("data-value",d||""),g&&(h.renderCache[b][d]=f[0]),f[0])},clearCache:function(a){var b=this;void 0===a?b.renderCache={}:delete b.renderCache[a]},canCreate:function(a){var b=this;if(!b.settings.create)return!1;var c=b.settings.createFilter;return a.length&&("function"!=typeof c||c.apply(b,[a]))&&("string"!=typeof c||new RegExp(c).test(a))&&(!(c instanceof RegExp)||c.test(a))}}),w.count=0,w.defaults={options:[],optgroups:[],plugins:[],delimiter:",",splitOn:null,persist:!0,diacritics:!0,create:!1,createOnBlur:!1,createFilter:null,highlight:!0,openOnFocus:!0,maxOptions:1e3,maxItems:null,hideSelected:null,addPrecedence:!1,selectOnTab:!1,preload:!1,allowEmptyOption:!1,closeAfterSelect:!1,triggerChangeEvent:!0,scrollDuration:60,loadThrottle:300,loadingClass:"loading",dataAttr:"data-data",optgroupField:"optgroup",valueField:"value",labelField:"text",disabledField:"disabled",optgroupLabelField:"label",optgroupValueField:"value",lockOptgroupOrder:!1,sortField:"$order",searchField:["text"],searchConjunction:"and",mode:null,wrapperClass:"selectize-control",inputClass:"selectize-input",dropdownClass:"selectize-dropdown",dropdownContentClass:"selectize-dropdown-content",dropdownParent:null,copyClassesToDropdown:!0,render:{}},a.fn.selectize=function(b){var c=a.fn.selectize.defaults,d=a.extend({},c,b),e=d.dataAttr,f=d.labelField,g=d.valueField,h=d.disabledField,i=d.optgroupField,j=d.optgroupLabelField,l=d.optgroupValueField,m=function(b,c){var h,i,j,k,l=b.attr(e);if(l)for(c.options=JSON.parse(l),h=0,i=c.options.length;h<i;h++)c.items.push(c.options[h][g]);else{var m=a.trim(b.val()||"");if(!d.allowEmptyOption&&!m.length)return;for(j=m.split(d.delimiter),h=0,i=j.length;h<i;h++)k={},k[f]=j[h],k[g]=j[h],c.options.push(k);c.items=j}},n=function(b,c){var m,n,o,p,q=c.options,r={},s=function(a){var b=e&&a.attr(e);return"string"==typeof b&&b.length?JSON.parse(b):null},t=function(b,e){b=a(b);var j=k(b.val());if(j||d.allowEmptyOption)if(r.hasOwnProperty(j)){if(e){var l=r[j][i];l?a.isArray(l)?l.push(e):r[j][i]=[l,e]:r[j][i]=e}}else{var m=s(b)||{};m[f]=m[f]||b.text(),m[g]=m[g]||j,m[h]=m[h]||b.prop("disabled"),m[i]=m[i]||e,r[j]=m,q.push(m),b.is(":selected")&&c.items.push(j)}};for(c.maxItems=b.attr("multiple")?null:1,p=b.children(),m=0,n=p.length;m<n;m++)o=p[m].tagName.toLowerCase(),"optgroup"===o?function(b){var d,e,f,g,i;for(b=a(b),f=b.attr("label"),f&&(g=s(b)||{},g[j]=f,g[l]=f,g[h]=b.prop("disabled"),c.optgroups.push(g)),i=a("option",b),d=0,e=i.length;d<e;d++)t(i[d],f)}(p[m]):"option"===o&&t(p[m])};return this.each(function(){if(!this.selectize){var e=a(this),f=this.tagName.toLowerCase(),g=e.attr("placeholder")||e.attr("data-placeholder");g||d.allowEmptyOption||(g=e.children('option[value=""]').text());var h={placeholder:g,options:[],optgroups:[],items:[]};"select"===f?n(e,h):m(e,h),new w(e,a.extend(!0,{},c,h,b))}})},a.fn.selectize.defaults=w.defaults,a.fn.selectize.support={validity:i},w.define("drag_drop",function(b){if(!a.fn.sortable)throw new Error('The "drag_drop" plugin requires jQuery UI "sortable".');if("multi"===this.settings.mode){var c=this;c.lock=function(){var a=c.lock;return function(){var b=c.$control.data("sortable");return b&&b.disable(),a.apply(c,arguments)}}(),c.unlock=function(){var a=c.unlock;return function(){var b=c.$control.data("sortable");return b&&b.enable(),a.apply(c,arguments)}}(),c.setup=function(){var b=c.setup;return function(){b.apply(this,arguments);var d=c.$control.sortable({items:"[data-value]",forcePlaceholderSize:!0,disabled:c.isLocked,start:function(a,b){b.placeholder.css("width",b.helper.css("width")),d.css({overflow:"visible"})},stop:function(){d.css({overflow:"hidden"});var b=c.$activeItems?c.$activeItems.slice():null,e=[];d.children("[data-value]").each(function(){e.push(a(this).attr("data-value"))}),c.setValue(e),c.setActiveItem(b)}})}}()}}),w.define("dropdown_header",function(b){var c=this;b=a.extend({title:"Untitled",headerClass:"selectize-dropdown-header",titleRowClass:"selectize-dropdown-header-title",labelClass:"selectize-dropdown-header-label",closeClass:"selectize-dropdown-header-close",html:function(a){return'<div class="'+a.headerClass+'"><div class="'+a.titleRowClass+'"><span class="'+a.labelClass+'">'+a.title+'</span><a href="javascript:void(0)" class="'+a.closeClass+'">×</a></div></div>'}},b),c.setup=function(){var d=c.setup;return function(){d.apply(c,arguments),c.$dropdown_header=a(b.html(b)),c.$dropdown.prepend(c.$dropdown_header)}}()}),w.define("optgroup_columns",function(b){var c=this;b=a.extend({equalizeWidth:!0,equalizeHeight:!0},b),this.getAdjacentOption=function(b,c){var d=b.closest("[data-group]").find("[data-selectable]"),e=d.index(b)+c;return e>=0&&e<d.length?d.eq(e):a()},this.onKeyDown=function(){var a=c.onKeyDown;return function(b){var d,e,f,g;return!this.isOpen||37!==b.keyCode&&39!==b.keyCode?a.apply(this,arguments):(c.ignoreHover=!0,g=this.$activeOption.closest("[data-group]"),d=g.find("[data-selectable]").index(this.$activeOption),g=37===b.keyCode?g.prev("[data-group]"):g.next("[data-group]"),f=g.find("[data-selectable]"),e=f.eq(Math.min(f.length-1,d)),void(e.length&&this.setActiveOption(e)))}}();var d=function(){var a,b=d.width,c=document;return void 0===b&&(a=c.createElement("div"),a.innerHTML='<div style="width:50px;height:50px;position:absolute;
17931left:-50px;top:-50px;overflow:auto;"><div style="width:1px;height:100px;"></div></div>',a=a.firstChild,c.body.appendChild(a),b=d.width=a.offsetWidth-a.clientWidth,c.body.removeChild(a)),b},e=function(){var e,f,g,h,i,j,k;if(k=a("[data-group]",c.$dropdown_content),(f=k.length)&&c.$dropdown_content.width()){if(b.equalizeHeight){for(g=0,e=0;e<f;e++)g=Math.max(g,k.eq(e).height());k.css({height:g})}b.equalizeWidth&&(j=c.$dropdown_content.innerWidth()-d(),h=Math.round(j/f),k.css({width:h}),f>1&&(i=j-h*(f-1),k.eq(f-1).css({width:i})))}};(b.equalizeHeight||b.equalizeWidth)&&(m.after(this,"positionDropdown",e),m.after(this,"refreshOptions",e))}),w.define("remove_button",function(b){b=a.extend({label:"×",title:"Remove",className:"remove",append:!0},b);if("single"===this.settings.mode)return void function(b,c){c.className="remove-single";var d=b,e='<a href="javascript:void(0)" class="'+c.className+'" tabindex="-1" title="'+l(c.title)+'">'+c.label+"</a>",f=function(b,c){return a("<span>").append(b).append(c)};b.setup=function(){var g=d.setup;return function(){if(c.append){var h=a(d.$input.context).attr("id"),i=(a("#"+h),d.settings.render.item);d.settings.render.item=function(a){return f(i.apply(b,arguments),e)}}g.apply(b,arguments),b.$control.on("click","."+c.className,function(a){a.preventDefault(),d.isLocked||d.clear()})}}()}(this,b);!function(b,c){var d=b,e='<a href="javascript:void(0)" class="'+c.className+'" tabindex="-1" title="'+l(c.title)+'">'+c.label+"</a>",f=function(a,b){var c=a.search(/(<\/[^>]+>\s*)$/);return a.substring(0,c)+b+a.substring(c)};b.setup=function(){var g=d.setup;return function(){if(c.append){var h=d.settings.render.item;d.settings.render.item=function(a){return f(h.apply(b,arguments),e)}}g.apply(b,arguments),b.$control.on("click","."+c.className,function(b){if(b.preventDefault(),!d.isLocked){var c=a(b.currentTarget).parent();d.setActiveItem(c),d.deleteSelection()&&d.setCaret(d.items.length)}})}}()}(this,b)}),w.define("restore_on_backspace",function(a){var b=this;a.text=a.text||function(a){return a[this.settings.labelField]},this.onKeyDown=function(){var c=b.onKeyDown;return function(b){var d,e;return 8===b.keyCode&&""===this.$control_input.val()&&!this.$activeItems.length&&(d=this.caretPos-1)>=0&&d<this.items.length?(e=this.options[this.items[d]],this.deleteSelection(b)&&(this.setTextboxValue(a.text.apply(this,[e])),this.refreshOptions(!0)),void b.preventDefault()):c.apply(this,arguments)}}()}),w});(function(b){b.support.touch="ontouchend" in document;if(!b.support.touch){return}var c=b.ui.mouse.prototype,e=c._mouseInit,a;function d(g,h){if(g.originalEvent.touches.length>1){return}g.preventDefault();var i=g.originalEvent.changedTouches[0],f=document.createEvent("MouseEvents");f.initMouseEvent(h,!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null);g.target.dispatchEvent(f)}c._touchStart=function(g){var f=this;if(a||!f._mouseCapture(g.originalEvent.changedTouches[0])){return}a=!0;f._touchMoved=!1;d(g,"mouseover");d(g,"mousemove");d(g,"mousedown")};c._touchMove=function(f){if(!a){return}this._touchMoved=!0;d(f,"mousemove")};c._touchEnd=function(f){if(!a){return}d(f,"mouseup");d(f,"mouseout");if(!this._touchMoved){d(f,"click")}a=!1};c._mouseInit=function(){var f=this;f.element.bind("touchstart",b.proxy(f,"_touchStart")).bind("touchmove",b.proxy(f,"_touchMove")).bind("touchend",b.proxy(f,"_touchEnd"));e.call(f)}})(jQuery);/*! Copyright 2012, Ben Lin (http://dreamerslab.com/) 17932 * Licensed under the MIT License (LICENSE.txt). 17933 * 17934 * Version: 1.0.16 17935 * 17936 * Requires: jQuery >= 1.2.3 17937 */ 17938(function(a){if(typeof define==="function"&&define.amd){define(["jquery"],a)}else{a(jQuery)}}(function(a){a.fn.addBack=a.fn.addBack||a.fn.andSelf;a.fn.extend({actual:function(b,l){if(!this[b]){throw'$.actual => The jQuery method "'+b+'" you called does not exist'}var f={absolute:!1,clone:!1,includeMargin:!1,display:"block"};var i=a.extend(f,l);var e=this.eq(0);var h,j;if(i.clone===!0){h=function(){var m="position: absolute !important; top: -1000 !important; ";e=e.clone().attr("style",m).appendTo("body")};j=function(){e.remove()}}else{var g=[];var d="";var c;h=function(){c=e.parents().addBack().filter(":hidden");d+="visibility: hidden !important; display: "+i.display+" !important; ";if(i.absolute===!0){d+="position: absolute !important; "}c.each(function(){var m=a(this);var n=m.attr("style");g.push(n);m.attr("style",n?n+";"+d:d)})};j=function(){c.each(function(m){var o=a(this);var n=g[m];if(n===undefined){o.removeAttr("style")}else{o.attr("style",n)}})}}h();var k=/(outer)/.test(b)?e[b](i.includeMargin):e[b]();j();return k}})}));/*! 17939 * jQuery Form Plugin 17940 * version: 2.73 (03-MAY-2011) 17941 * @requires jQuery v1.3.2 or later 17942 * 17943 * Examples and documentation at: http://malsup.com/jquery/form/ 17944 * Dual licensed under the MIT and GPL licenses: 17945 * http://www.opensource.org/licenses/mit-license.php 17946 * http://www.gnu.org/licenses/gpl.html 17947 */ 17948;(function($){$.fn.ajaxSubmit=function(options){if(!this.length){log('ajaxSubmit: ski
17948pping submit process - no element selected');return this} 17949if(typeof options=='function'){options={success:options}} 17950var action=this.attr('action');var url=(typeof action==='string')?$.trim(action):'';if(url){url=(url.match(/^([^#]+)/)||[])[1]} 17951url=url||window.location.href||'';options=$.extend(!0,{url:url,success:$.ajaxSettings.success,type:this[0].getAttribute('method')||'GET',iframeSrc:/^https/i.test(window.location.href||'')?'javascript:false':'about:blank'},options);var veto={};this.trigger('form-pre-serialize',[this,options,veto]);if(veto.veto){log('ajaxSubmit: submit vetoed via form-pre-serialize trigger');return this} 17952if(options.beforeSerialize&&options.beforeSerialize(this,options)===!1){log('ajaxSubmit: submit aborted via beforeSerialize callback');return this} 17953var n,v,a=this.formToArray(options.semantic);if(options.data){options.extraData=options.data;for(n in options.data){if(options.data[n]instanceof Array){for(var k in options.data[n]){a.push({name:n,value:options.data[n][k]})}}else{v=options.data[n];v=$.isFunction(v)?v():v;a.push({name:n,value:v})}}} 17954if(options.beforeSubmit&&options.beforeSubmit(a,this,options)===!1){log('ajaxSubmit: submit aborted via beforeSubmit callback');return this} 17955this.trigger('form-submit-validate',[a,this,options,veto]);if(veto.veto){log('ajaxSubmit: submit vetoed via form-submit-validate trigger');return this} 17956var q=$.param(a);if(options.type.toUpperCase()=='GET'){options.url+=(options.url.indexOf('?')>=0?'&':'?')+q;options.data=null}else{options.data=q} 17957var $form=this,callbacks=[];if(options.resetForm){callbacks.push(function(){$form.resetForm()})} 17958if(options.clearForm){callbacks.push(function(){$form.clearForm()})} 17959if(!options.dataType&&options.target){var oldSuccess=options.success||function(){};callbacks.push(function(data){var fn=options.replaceTarget?'replaceWith':'html';$(options.target)[fn](data).each(oldSuccess,arguments)})}else if(options.success){callbacks.push(options.success)} 17960options.success=function(data,status,xhr){var context=options.context||options;for(var i=0,max=callbacks.length;i<max;i++){callbacks[i].apply(context,[data,status,xhr||$form,$form])}};var fileInputs=$('input:file',this).length>0;var mp='multipart/form-data';var multipart=($form.attr('enctype')==mp||$form.attr('encoding')==mp);if(options.iframe!==!1&&(fileInputs||options.iframe||multipart)){if(options.closeKeepAlive){$.get(options.closeKeepAlive,fileUpload)}else{fileUpload()}}else{$.ajax(options)} 17961this.trigger('form-submit-notify',[this,options]);return this;function fileUpload(){var form=$form[0];if($(':input[name=submit],:input[id=submit]',form).length){alert('Error: Form elements must not have name or id of "submit".');return} 17962var s=$.extend(!0,{},$.ajaxSettings,options);s.context=s.context||s;var id='jqFormIO'+(new Date().getTime()),fn='_'+id;var $io=$('<iframe id="'+id+'" name="'+id+'" src="'+s.iframeSrc+'" />');var io=$io[0];$io.css({position:'absolute',top:'-1000px',left:'-1000px'});var xhr={aborted:0,responseText:null,responseXML:null,status:0,statusText:'n/a',getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(status){var e=(status==='timeout'?'timeout':'aborted');log('aborting upload... '+e);this.aborted=1;$io.attr('src',s.iframeSrc);xhr.error=e;s.error&&s.error.call(s.context,xhr,e,e);g&&$.event.trigger("ajaxError",[xhr,s,e]);s.complete&&s.complete.call(s.context,xhr,e)}};var g=s.global;if(g&&!$.active++){$.event.trigger("ajaxStart")} 17963if(g){$.event.trigger("ajaxSend",[xhr,s])} 17964if(s.beforeSend&&s.beforeSend.call(s.context,xhr,s)===!1){if(s.global){$.active--} 17965return} 17966if(xhr.aborted){return} 17967var timedOut=0,timeoutHandle;var sub=form.clk;if(sub){var n=sub.name;if(n&&!sub.disabled){s.extraData=s.extraData||{};s.extraData[n]=sub.value;if(sub.type=="image"){s.extraData[n+'.x']=form.clk_x;s.extraData[n+'.y']=form.clk_y}}} 17968function doSubmit(){var t=$form.attr('target'),a=$form.attr('action');form.setAttribute('target',id);if(form.getAttribute('method')!='POST'){form.setAttribute('method','POST')} 17969if(form.getAttribute('action')!=s.url){form.setAttribute('action',s.url)} 17970if(!s.skipEncodingOverride){$form.attr({encoding:'multipart/form-data',enctype:'multipart/form-data'})} 17971if(s.timeout){timeoutHandle=setTimeout(function(){timedOut=!0;cb(!0)},s.timeout)} 17972var extraInputs=[];try{if(s.extraData){for(var n in s.extraData){extraInputs.push($('<input type="hidden" name="'+n+'" value="'+s.extraData[n]+'" />').appendTo(form)[0])}} 17973$io.appendTo('body');io.attachEvent?io.attachEvent('onload',cb):io.addEventListener('load',cb,!1);form.submit()}finally{form.setAttribute('action',a);if(t){form.setAttribute('target',t)}else{$form.removeAttr('target')} 17974$(extraInputs).remove()}} 17975if(s.forceSync){doSubmit()}else{setTimeout(doSubmit,10)} 17976var data,doc,domCheckCount=50,callbackProcessed;function cb(e){if(xhr.aborted||callbackProcessed){return} 17977if(e===!0&&xhr){xhr.abort('timeout');return} 17978var doc=io.contentWindow?io.contentWindow.document:io.contentDocument?io.contentDocument:io.document;if(!doc||doc.location.href==s.iframeSrc){if(!timedOut) 17979return} 17980io.detachEvent?io.detachEvent('onload',cb):io.removeEventListener('load',cb,!1);var ok=!0;try{if(timedOut){throw 'timeout'} 17981var isXml=s.dataType=='xml'||doc.XMLDocument||$.isXMLDoc(doc);log('isXml='+isXml);if(!isXml&&window.opera&&(doc.body==null||doc.body.innerHTML=='')){if(--domCheckCount){log('requeing onLoad callback, DOM not available');setTimeout(cb,250);return}} 17982xhr.responseText=doc.body?doc.body.innerHTML:doc.documentElement?doc.documentElement.innerHTML:null;xhr.responseXML=doc.XMLDocument?doc.XMLDocument:doc;if(isXml) 17983s.dataType='xml';xhr.getResponseHeader=function(header){var headers={'content-type':s.dataType};return headers[header]};var scr=/(json|script|text)/.test(s.dataType);if(scr||s.textarea){var ta=doc.getElementsByTagName('textarea')[0];if(ta){xhr.responseText=ta.value}else if(scr){var pre=doc.getElementsByTagName('pre')[0];var b=doc.getElementsByTagName('body')[0];if(pre){xhr.responseText=pre.textContent}else if(b){xhr.responseText=b.innerHTML}}}else if(s.dataType=='xml'&&!xhr.responseXML&&xhr.responseText!=null){xhr.responseXML=toXml(xhr.responseText)} 17984data=httpData(xhr,s.dataType,s)}catch(e){log('error caught:',e);ok=!1;xhr.error=e;s.error&&s.error.call(s.context,xhr,'error',e);g&&$.event.trigger("ajaxError",[xhr,s,e])} 17985if(xhr.aborted){log('upload aborted');ok=!1} 17986if(ok){s.success&&s.success.call(s.context,data,'success',xhr);g&&$.event.trigger("ajaxSuccess",[xhr,s])} 17987g&&$.event.trigger("ajaxComplete",[xhr,s]);if(g&&!--$.active){$.event.trigger("ajaxStop")} 17988s.complete&&s.complete.call(s.context,xhr,ok?'success':'error');callbackProcessed=!0;if(s.timeout) 17989clearTimeout(timeoutHandle);setTimeout(function(){$io.removeData('form-plugin-onload');$io.remove();xhr.responseXML=null},100)} 17990var toXml=$.parseXML||function(s,doc){if(window.ActiveXObject){doc=new ActiveXObject('Microsoft.XMLDOM');doc.async='false';doc.loadXML(s)}else{doc=(new DOMParser()).parseFromString(s,'text/xml')} 17991return(doc&&doc.documentElement&&doc.documentElement.nodeName!='parsererror')?doc:null};var parseJSON=$.parseJSON||function(s){return window['eval']('('+s+')')};var httpData=function(xhr,type,s){var ct=xhr.getResponseHeader('content-type')||'',xml=type==='xml'||!type&&ct.indexOf('xml')>=0,data=xml?xhr.responseXML:xhr.responseText;if(xml&&data.documentElement.nodeName==='parsererror'){$.error&&$.error('parsererror')} 17992if(s&&s.dataFilter){data=s.dataFilter(data,type)} 17993if(typeof data==='string'){if(type==='json'||!type&&ct.indexOf('json')>=0){data=parseJSON(data)}else if(type==="script"||!type&&ct.indexOf("javascript")>=0){$.globalEval(data)}} 17994return data}}};$.fn.ajaxForm=function(options){if(this.length===0){var o={s:this.selector,c:this.context};if(!$.isReady&&o.s){log('DOM not ready, queuing ajaxForm');$(function(){$(o.s,o.c).ajaxForm(options)});return this} 17995log('terminating; zero elements found by selector'+($.isReady?'':' (DOM not ready)'));return this} 17996return this.ajaxFormUnbind().bind('submit.form-plugin',function(e){if(!e.isDefaultPrevented()){e.preventDefault();$(this).ajaxSubmit(options)}}).bind('click.form-plugin',function(e){var target=e.target;var $el=$(target);if(!($el.is(":submit,input:image"))){var t=$el.closest(':submit');if(t.length==0){return} 17997target=t[0]} 17998var form=this;form.clk=target;if(target.type=='image'){if(e.offsetX!=undefined){form.clk_x=e.offsetX;form.clk_y=e.offsetY}else if(typeof $.fn.offset=='function'){var offset=$el.offset();form.clk_x=e.pageX-offset.left;form.clk_y=e.pageY-offset.top}else{form.clk_x=e.pageX-target.offsetLeft;form.clk_y=e.pageY-target.offsetTop}} 17999setTimeout(function(){form.clk=form.clk_x=form.clk_y=null},100)})};$.fn.ajaxFormUnbind=function(){return this.unbind('submit.form-plugin click.form-plugin')};$.fn.formToArray=function(semantic){var a=[];if(this.length===0){return a} 18000var form=this[0];var els=semantic?form.getElementsByTagName('*'):form.elements;if(!els){return a} 18001var i,j,n,v,el,max,jmax;for(i=0,max=els.length;i<max;i++){el=els[i];n=el.name;if(!n){continue} 18002if(semantic&&form.clk&&el.type=="image"){if(!el.disabled&&form.clk==el){a.push({name:n,value:$(el).val()});a.push({name:n+'.x',value:form.clk_x},{name:n+'.y',value:form.clk_y})} 18003continue} 18004v=$.fieldValue(el,!0);if(v&&v.constructor==Array){for(j=0,jmax=v.length;j<jmax;j++){a.push({name:n,value:v[j]})}}else if(v!==null&&typeof v!='undefined'){a.push({name:n,value:v})}} 18005if(!semantic&&form.clk){var $input=$(form.clk),input=$input[0];n=input.name;if(n&&!input.disabled&&input.type=='image'){a.push({name:n,value:$input.val()});a.push({name:n+'.x',value:form.clk_x},{name:n+'.y',value:form.clk_y})}} 18006return a};
18006$.fn.formSerialize=function(semantic){return $.param(this.formToArray(semantic))};$.fn.fieldSerialize=function(successful){var a=[];this.each(function(){var n=this.name;if(!n){return} 18007var v=$.fieldValue(this,ful);if(v&&v.constructor==Array){for(var i=0,max=v.length;i<max;i++){a.push({name:n,value:v[i]})}}else if(v!==null&&typeof v!='undefined'){a.push({name:this.name,value:v})}});return $.param(a)};$.fn.fieldValue=function(successful){for(var val=[],i=0,max=this.length;i<max;i++){var el=this[i];var v=$.fieldValue(el,successful);if(v===null||typeof v=='undefined'||(v.constructor==Array&&!v.length)){continue} 18008v.constructor==Array?$.merge(val,v):val.push(v)} 18009return val};$.fieldValue=function(el,successful){var n=el.name,t=el.type,tag=el.tagName.toLowerCase();if(successful===undefined){successful=!0} 18010if(successful&&(!n||el.disabled||t=='reset'||t=='button'||(t=='checkbox'||t=='radio')&&!el.checked||(t=='submit'||t=='image')&&el.form&&el.form.clk!=el||tag=='select'&&el.selectedIndex==-1)){return null} 18011if(tag=='select'){var index=el.selectedIndex;if(index<0){return null} 18012var a=[],ops=el.options;var one=(t=='select-one');var max=(one?index+1:ops.length);for(var i=(one?index:0);i<max;i++){var op=ops[i];if(op.selected){var v=op.value;if(!v){v=(op.attributes&&op.attributes.value&&!(op.attributes.value.specified))?op.text:op.value} 18013if(one){return v} 18014a.push(v)}} 18015return a} 18016return $(el).val()};$.fn.clearForm=function(){return this.each(function(){$('input,select,textarea',this).clearFields()})};$.fn.clearFields=$.fn.clearInputs=function(){return this.each(function(){var t=this.type,tag=this.tagName.toLowerCase();if(t=='text'||t=='password'||tag=='textarea'){this.value=''}else if(t=='checkbox'||t=='radio'){this.checked=!1}else if(tag=='select'){this.selectedIndex=-1}})};$.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=='function'||(typeof this.reset=='object'&&!this.reset.nodeType)){this.reset()}})};$.fn.enable=function(b){if(b===undefined){b=!0} 18017return this.each(function(){this.disabled=!b})};$.fn.selected=function(select){if(select===undefined){select=!0} 18018return this.each(function(){var t=this.type;if(t=='checkbox'||t=='radio'){this.checked=select}else if(this.tagName.toLowerCase()=='option'){var $sel=$(this).parent('select');if(select&&$sel[0]&&$sel[0].type=='select-one'){$sel.find('option').selected(!1)} 18019this.selected=select}})};function log(){if($.fn.ajaxSubmit.debug){var msg='[jquery.form] '+Array.prototype.join.call(arguments,'');if(window.console&&window.console.log){window.console.log(msg)}else if(window.opera&&window.opera.postError){window.opera.postError(msg)}}}})($);var as4Plugin={locationName:!1,lastIdSearch:!1,localCache:!1,localCacheKey:'',waitingLayers:new Array(),params:new Array(),extraParams:new Array(),persistentParam
18019s:new Array(),visibleCriterionsGroupsHash:'',fromBackForwardEvent:!1,localStorageAvailable:null,blurEffect:!0,previousOnPopState:null,initDone:!1,getSearchResultsSelector:function(idSearch){return(as4Plugin.getParamValue(idSearch,'search_results_selector')!=''?as4Plugin.getParamValue(idSearch,'search_results_selector'):'#content-wrapper')},getObjectValueByKey:function(obj,key){if(obj.length){for(var k in obj){if(obj[k].name==key){return obj[k].value}}} 18020return null},getParamValue:function(idSearch,varName){if(typeof(as4Plugin.params[idSearch][varName])!='undefined'){return as4Plugin.params[idSearch][varName]} 18021return!1},setParamValue:function(idSearch,varName,varValue){as4Plugin.params[idSearch][varName]=varValue},getPersistentParamValue:function(idSearch,varName){if(typeof(as4Plugin.persistentParams[idSearch])=='undefined'){as4Plugin.persistentParams[idSearch]=new Array()} 18022if(typeof(as4Plugin.persistentParams[idSearch][varName])!='undefined'){return as4Plugin.persistentParams[idSearch][varName]} 18023return!1},setPersistentParamValue:function(idSearch,varName,varValue){if(typeof(as4Plugin.persistentParam
18023s[idSearch])=='undefined'){as4Plugin.persistentParams[idSearch]=new Array()} 18024as4Plugin.persistentParams[idSearch][varName]=varValue},getASFormOptionsCompleteCallBack:function(arg1){as4Plugin.fromBackForwardEvent=!1},getASFormOptions:function(idSearch){return{beforeSubmit:as4Plugin.showAsRequest,success:as4Plugin.showAsResponse,complete:as4Plugin.getASFormOptionsCompleteCallBack,localCache:as4Plugin.localCache,localCacheKey:as4Plugin.localCacheKey,cacheTTL:2,dataType:'json',data:{ajaxMode:1,productFilterListData:as4Plugin.getParamValue(idSearch,'as4_productFilterListData'),productFilterListSource:as4Plugin.getParamValue(idSearch,'as4_productFilterListSource'),with_product:1},type:"GET"}},getASFormDynamicCriterionOptions:function(idSearch){return{beforeSubmit:as4Plugin.showAsRequest,success:as4Plugin.showAsResponse,localCache:as4Plugin.localCache,localCacheKey:as4Plugin.localCacheKey,cacheTTL:2,dataType:'json',mode:'abort',port:'asSearch',data:{with_product:0,ajaxMode:1,productFilterListData:as4Plugin.getParamValue(idSearch,'as4_productFilterListData'),productFilterListSource:as4Plugin.getParamValue(idSearch,'as4_productFilterListSource')},type:"GET"}},setExtraParameters:function(ajaxData,nextExtraParams){if(nextExtraParams==null){return} 18025for(var i=0;i<nextExtraParams.length;i++){tmpParameter=nextExtraParams[i].substring(1).split('=');extraParameterKey=tmpParameter.shift();if(extraParameterKey){extraParameterValue=tmpParameter.join('=');ajaxData.push({name:extraParameterKey,value:extraParameterValue,});as4Plugin.extraParams.push({name:extraParameterKey,value:extraParameterValue,})}}},showAsRequest:function(formData,jqForm,options){var idSearch=$(jqForm).find('input[name=id_search]').val();if(typeof(idSearch)=='undefined'&&typeof(history.state)!='undefined'&&history.state!=null&&typeof(history.state.id_search)!='undefined'&&!isNaN(history.state.id_search)){idSearch=history.state.id_search} 18026if(isNaN(idSearch)&&as4Plugin.lastIdSearch!=!1&&!isNaN(as4Plugin.lastIdSearch)){idSearch=as4Plugin.lastIdSearch} 18027if(isNaN(idSearch)){idSearch=parseInt(as4Plugin.getObjectValueByKey(formData,'id_search'))} 18028if(!isNaN(idSearch)){withProduct=parseInt(as4Plugin.getObjectValueByKey(formData,'with_product'));as4Plugin.lastIdSearch=idSearch;as4Plugin.setLayer('#PM_ASBlockOutput_'+idSearch);if(withProduct){as4Plugin.setLayer(as4Plugin.getSearchResultsSelector(idSearch));var centerColumnCssClasses=as4Plugin.getParamValue(idSearch,'centerColumnCssClasses');if(typeof(centerColumnCssClasses)!='undefined'&¢erColumnCssClasses!=null&¢erColumnCssClasses.length>0){$(as4Plugin.getSearchResultsSelector(idSearch)).addClass(centerColumnCssClasses)}}} 18029return!0},scrollTop:function(idSearch,context,forceScroll){if(as4Plugin.getParamValue(idSearch,'scrollTopActive')==!0||forceScroll===!0){pm_scrollTopSelector=as4Plugin.getSearchResultsSelector(idSearch);if(typeof($(pm_scrollTopSelector))!='undefined'&&$(pm_scrollTopSelector).size()>0){$('html, body').animate({scrollTop:$(pm_scrollTopSelector).offset().top},500)}}},setResultsContents:function(id_search,htmlResults,context,withProduct){$(document).trigger('as4-Before-Set-Results-Contents',[id_search,context]);var keepCategoryInformation=as4Plugin.getParamValue(id_search,'keep_category_information');var searchResultsSelector=as4Plugin.getSearchResultsSelector(id_search);as4Plugin.initSliders();if(!keepCategoryInformation){$('#main .block-category').remove()} 18030var destinationElement=$('body '+searchResultsSelector);if($(destinationElement).size()>0){$(searchResultsSelector).css('height','auto')} 18031as4Plugin.removeLayer();$(document).trigger('as4-After-Set-Results-Contents',[id_search,context])},showAsResponse:function(responseText,statusText,xhr,$form){if(typeof(responseText.redirect_to_url)!='undefined'&&responseText.redirect_to_url!=''){window.location=responseText.redirect_to_url;return} 18032if(responseText.rendered_products_top==null){responseText.rendered_products_top=function(){return $(this)}} 18033var withProduct=!0;if(responseText.rendered_products==null){withProduct=!1;responseText.without_products=!0;responseText.rendered_products=function(){return $(this)}}else{responseText.without_products=!1} 18034if(responseText.rendered_products_bottom==null){responseText.rendered_products_bottom=function(){return $(this)}} 18035if(typeof($form)=='undefined'){$form=$('#PM_ASForm_'+history.state.id_search)} 18036var id_search=$form.find('input[name=id_search]').val();var step_search=as4Plugin.getParamValue(id_search,'stepSearch');var hookName=as4Plugin.getParamValue(id_search,'hookName');var searchResultsSelector=as4Plugin.getSearchResultsSelector(id_search);if($('#js-product-list').size()==0&&withProduct){if(hookName=='home'){$('#PM_ASBlockOutput_'+responseText.id_search).parent().find('*:not([id="PM_ASBlockOutput_'+responseText.id_search+'"])').remove();$('#PM_ASBlockOutput_'+responseText.id_search).after('<section id="products"><div id="js-product-list-top" /><div id="js-product-list" /><div id="js-product-list-bottom" /></section>')}else{$(searchResultsSelector).find('*:not([id="PM_ASBlockOutput_'+responseText.id_search+'"])').remove();$(searchResultsSelector).prepend('<section id="products"><div id="js-product-list-top" /><div id="js-product-list" /><div id="js-product-list-bottom" /></section>')}} 18037if((typeof(responseText.remind_selection)!='undefined'&&(responseText.remind_selection==3||responseText.remind_selection==1))){if(withProduct&&$('#js-active-search-filters').size()==0&&$('#js-product-list-top').size()>0){$('#js-product-list-top').parent().prepend('<div id="js-active-search-filters"></div>')}}else{$('#js-active-search-filters').remove()} 18038prestashop.emit('updateProductList',responseText);$('#PM_ASBlockOutput_'+responseText.id_search).replaceWith(responseText.rendered_facets);as4Plugin.initMobileStyles(responseText.id_search);$('.PM_ASSelectionsDropDown').each(function(){if($('li.PM_ASSelectionsSelectedCriterion',$(this)).size()==0){$(this).hide()}});if(typeof(responseText.current_url)!='undefined'&&responseText.current_url!=''){as4Plugin.pushStateNewURL(responseText.current_url)} 18039if(typeof(responseText.html_block)!='undefined'&&responseText.html_block!=''&&responseText.html_block!=null){var htmlBlock=responseText.html_block;step_search=!1}else if(step_search==1){var next_id_criterion_group=$form.find('input[name="next_id_criterion_group"]').val();var htmlBlock=responseText.html_criteria_block;as4Plugin.setNextIdCriterionGroup(id_search,responseText.next_id_criterion_group)} 18040if(htmlBlock){if(hookName=='top'||hookName=='displayNavFullWidth'){if(step_search==1){var htmlBlockSelection=responseText.html_selection_block;if(htmlBlockSelection){$('#PM_ASBlock_'+id_search+' .PM_ASSelectionsBlock').html(htmlBlockSelection)} 18041$('#PM_ASCriterionsGroup_'+id_search+'_'+next_id_criterion_group).html(htmlBlock)}else{$('#PM_ASBlockOutput_'+id_search).html(htmlBlock)}}else{if(step_search==1){var htmlBlockSelection=responseText.html_selection_block;if(htmlBlockSelection){$('#PM_ASBlock_'+id_search+' .PM_ASSelectionsBlock').html(htmlBlockSelection)} 18042$('#PM_ASCriterionsGroup_'+id_search+'_'+next_id_criterion_group).html(htmlBlock)}else{$('#PM_ASBlockOutput_'+id_search).html(htmlBlock)}}} 18043as4Plugin.setResultsContents(id_search,'','showAsResponse',withProduct)},runSearch:function(id_search,search_method){if(search_method==1){setTimeout(function(){$('#PM_ASForm_'+id_search).ajaxSubmit(as4Plugin.getASFormOptions(id_search))},1)}else if(search_method==2){setTimeout(function(){$('#PM_ASForm_'+id_search).ajaxSubmit(as4Plugin.getASFormDynamicCriterionOptions(id_search))},1)}},nextStep:function(id_search,search_method){setTimeout(function(){if(search_method==2){$('#PM_ASForm_'+id_search).ajaxSubmit(as4Plugin.getASFormDynamicCriterionOptions(id_search))}else{$('#PM_ASForm_'+id_search).ajaxSubmit(as4Plugin.getASFormOptions(id_search))}},1)},getAsAjaxUrl:function(curUrl){var destUrl=curUrl;var asPathReg=new RegExp("("+ASPath+")","g");if(!destUrl.match(asPathReg)){var asQuery=curUrl.substring(curUrl.
18043indexOf("?",0));if(ASSearchUrl.indexOf("?",0)!=-1&&asQuery.indexOf("?",0)==0){destUrl=ASSearchUrl+'&'+asQuery.substring(1,asQuery.length)}else{if(typeof(asQuery[0])!='undefined'&&asQuery[0]=='?'){if(asQuery.indexOf("?",1)!=-1){asQuery=asQuery.substring(0,asQuery.indexOf("?",1))+'&'+asQuery.substring(asQuery.indexOf("?",1)+1,asQuery.length)}} 18044destUrl=ASSearchUrl+asQuery}} 18045return destUrl},getFormSerialized:function(id_search){return $('#PM_ASForm_'+id_search).serialize()},getFormSerializedArray:function(id_search){return $('#PM_ASForm_'+id_search).serializeArray()},addBestSalesOptions:function(id_search){if(as4Plugin.getParamValue(id_search,'addBestSalesOption')==!0){$(document).ready(function(){$('#selectPrductSort, #selectProductSort, .selectPrductSort').each(function(){$('option[value^="sales:"]',this).remove();if($('option[value^="sales:"]',this).size()==0){if(as4Plugin.getParamValue(id_search,'orderBy')=='sales'){$('option:selected',this).removeAttr('selected').prop('selected',!1)} 18046if(as4Plugin.getParamValue(id_search,'orderBy')=='sales'&&as4Plugin.getParamValue(id_search,'orderWay')=='asc'){$(this).append('<option value="sales:asc" selected="selected">'+as4_orderBySalesAsc+'</option>')}else{$(this).append('<option value="sales:asc">'+as4_orderBySalesAsc+'</option>')} 18047if(as4Plugin.getParamValue(id_search,'orderBy')=='sales'&&as4Plugin.getParamValue(id_search,'orderWay')=='desc'){$(this).append('<option value="sales:desc" selected="selected">'+as4_orderBySalesDesc+'</option>')}else{$(this).append('<option value="sales:desc">'+as4_orderBySalesDesc+'</option>')}}})})}},getIdSearchFromItem:function(item){if($(item).parents('.PM_ASBlockOutput').size()>0){return $(item).parents('.PM_ASBlockOutput').data('id-search')}else if($(item).parents('#PM_ASearchResults').size()>0){return $(item).parents('#PM_ASearchResults').data('id-search')}else if($(item).parents('[data-id-search]').size()>0){return $(item).parents('[data-id-search]').data('id-search')} 18048return!1},initMobileStyles:function(idSearch){if(typeof(prestashop)=='object'&&prestashop.responsive.mobile==!0){$('.PM_ASBlockOutput').addClass('PM_ASMobileMode');if(!isNaN(idSearch)){$('#PM_ASBlockOutput_'+idSearch).addClass('PM_ASMobileVisible')}}else if(typeof(prestashop)=='object'&&prestashop.responsive.mobile==!1){$('.PM_ASBlockOutput').removeClass('PM_ASMobileMode')}},initSearchEngine:function(){if(as4Plugin.initDone){return} 18049as4Plugin.initDone=!0;$(document).on('click','.PM_ASBlockOutput .card-header',function(e){e.preventDefault();if(typeof(prestashop)=='object'&&prestashop.responsive.mobile==!0){$(this).parents('.PM_ASBlockOutput').toggleClass('PM_ASMobileVisible')}});$(document).on('click','.PM_ASBlockOutput .PM_ASResetSearch',function(e){e.preventDefault();id_search=as4Plugin.getIdSearchFromItem(this);$(document).trigger('as4-Search-Reset',[id_search]);location.href=as4Plugin.getParamValue(id_search,'resetURL')});$(document).on('click','.PM_ASSelectionsBlock .PM_ASSelectionsDropDownShowLink',function(e){e.preventDefault();$(this).toggleClass('PM_ASSelectionsBlockOpened');$(this).next('.PM_ASSelectionsDropDownMenu').slideToggle('fast')});$('.PM_ASSelectionsDropDown').each(function(){if($('li.PM_ASSelectionsSelectedCriterion',$(this)).size()==0){$(this).hide()}});$(document).on('click','.PM_ASBlockOutput .PM_ASLabelCheckbox',function(e){e.preventDefault();$('input#'+$(this).attr('for')).trigger('click')});$(document).on('click','.PM_ASBlockOutput .PM_ASCriterionEnable .PM_ASCriterionLink',function(e){e.preventDefault();if($(this).parents('li').hasClass('PM_ASCriterionDisable')){return} 18050id_search=as4Plugin.getIdSearchFromItem(this);id_criterion_group=$(this).data('id-criterion-group');if(typeof(id_criterion_group)!='undefined'&&as4Plugin.getParamValue(id_search,'seo_criterion_groups')!=''&&as4Plugin.getParamValue(id_search,'seo_criterion_groups').length>0){if($.inArray(id_criterion_group,as4Plugin.getParamValue(id_search,'seo_criterion_groups').split(','))!=-1){return}} 18051if(!$(this).hasClass('PM_ASCriterionLinkSelected')){$(this).next('input').removeAttr('disabled');$(this).addClass('PM_ASCriterionLinkSelected')}else{$(this).next('input').attr('disabled','disabled');$(this).removeClass('PM_ASCriterionLinkSelected')} 18052$(document).trigger('as4-Criterion-Change',[id_search,id_criterion_group,$(this).next('input').val(),$.trim($(this).text()==''?$(this).attr('title'):$(this).text()),'link'])});$(document).on('click','.PM_ASBlockOutput .PM_ASCriterionStepEnable .PM_ASCriterionLink',function(e){e.preventDefault();if($(this).parents('li').hasClass('PM_ASCriterionDisable')){return} 18053id_search=as4Plugin.getIdSearchFromItem(this);id_criterion_group=$(this).data('id-criterion-group');if(typeof(id_criterion_group)!='undefined'&&as4Plugin.getParamValue(id_search,'seo_criterion_groups')!=''&&as4Plugin.getParamValue(id_search,'seo_criterion_groups').length>0){if($.inArray(id_criterion_group,as4Plugin.getParamValue(id_search,'seo_criterion_groups').split(','))!=-1){return}} 18054if(!$(this).hasClass('PM_ASCriterionLinkSelected')){$(this).next('input').removeAttr('disabled');$(this).addClass('PM_ASCriterionLinkSelected')}else{$(this).next('input').attr('disabled','disabled');$(this).removeClass('PM_ASCriterionLinkSelected')} 18055$(document).trigger('as4-Criterion-Change',[id_search,id_criterion_group,$(this).next('input').val(),$.trim($(this).text()==''?$(this).attr('title'):$(this).text()),'link'])});$('body').on('change','#search_filters select, .PM_ASBlockOutput .PM_ASCriterionGroupSelect',function(e){e.preventDefault();e.stopImmediatePropagation();id_search=as4Plugin.getIdSearchFromItem(this);id_criterion_group=$(this).data('id-criterion-group');
18055$(document).trigger('as4-Criterion-Change',[id_search,id_criterion_group,$(this).val(),$.trim($(this).find('option:selected').text()),'select'])});$(document).on('click','.PM_ASBlockOutput .PM_ASCriterionCheckbox',function(e){id_search=as4Plugin.getIdSearchFromItem(this);id_criterion_group=$(this).data('id-criterion-group');$(document).trigger('as4-Criterion-Change',[id_search,id_criterion_group,$(this).val(),$.trim($('label[for="as4c_'+$(this).attr('data-id-criterion-group')+'_'+$(this).val()+'"]').text()),'checkbox'])});$(document).on('change','.PM_ASCriterionsGroup input[type=number]',function(e){e.preventDefault();id_search=as4Plugin.getIdSearchFromItem(this);id_criterion_group=$(this).data('id-criterion-group');search_method=as4Plugin.getParamValue(id_search,'searchMethod');step_search=as4Plugin.getParamValue(id_search,'stepSearch');min=parseFloat($('#PM_ASInputCritRange'+id_search+'_'+id_criterion_group+'_min').val());max=parseFloat($('#PM_ASInputCritRange'+id_search+'_'+id_criterion_group+'_max').val());if(min=="NaN"||max=="NaN"){return!1} 18056newInputValue=(min<=max?min:max)+"~"+(max>=min?max:min);$('#PM_ASInputCritRange'+id_search+'_'+id_criterion_group).val(newInputValue);if(step_search==1){as4Plugin.nextStep(id_search,$('#PM_ASInputCritRange'+id_search+'_'+id_criterion_group),null,search_method)}else{if(search_method==1){$('#PM_ASForm_'+id_search+'').ajaxSubmit(as4Plugin.getASFormOptions(id_search))} 18057if(search_method==2){$('#PM_ASForm_'+id_search+'').ajaxSubmit(as4Plugin.getASFormDynamicCriterionOptions(id_search))}} 18058$(document).trigger('as4-Criterion-Change',[id_search,id_criterion_group,null,null,'range'])});$(document).on('click','.PM_ASBlockOutput .PM_ASResetGroup',function(e){e.preventDefault();id_search=as4Plugin.getIdSearchFromItem(this);id_criterion_group=$(this).attr('rel');search_method=as4Plugin.getParamValue(id_search,'searchMethod');$(document).trigger('as4-Criterion-Group-Reset',[id_search,id_criterion_group]);$('#PM_ASForm_'+id_search+' input[name=reset_group]').val(id_criterion_group);if(search_method==3){as4Plugin.nextStep(id_search,search_method)}else{as4Plugin.runSearch(id_search,search_method)}});$(document).on('click','.PM_ASBlockOutput .PM_ASSkipGroup',function(e){e.preventDefault();id_search=as4Plugin.getIdSearchFromItem(this);id_criterion_group=$(this).attr('rel');search_method=as4Plugin.getParamValue(id_search,'searchMethod');$('#PM_ASForm_'+id_search+' [name="as4c['+id_criterion_group+'][]"]').prop('disabled',!0);$('#PM_ASForm_'+id_search+' [name="as4c['+id_criterion_group+'][]"][value="-1"]').prop('disabled',!1);$(document).trigger('as4-Criterion-Group-Skip',[id_search,id_criterion_group,search_method]);as4Plugin.nextStep(id_search,search_method)});$(document).on('click','.PM_ASBlockOutput .PM_ASShowCriterionsGroupHidden a',function(e){e.preventDefault();var id_search=as4Plugin.getIdSearchFromItem(this);var e=$(this);var hideState=$(e).parent('.PM_ASShowCriterionsGroupHidden').next('.PM_ASCriterionsGroupHidden:hidden').size();$.ajax({type:"GET",url:ASSearchUrl,cache:!1,data:('setHideCriterionStatus=1&id_search='+id_search+'&state='+hideState+'&productFilterListData='+as4Plugin.getParamValue(id_search,'as4_productFilterListData')+'&productFilterListSource='+as4Plugin.getParamValue(id_search,'as4_productFilterListSource')),success:function(responseText){if(hideState==0){$(e).parent().removeClass('PM_ASShowCriterionsGroupHiddenOpen')}else{$(e).parent().addClass('PM_ASShowCriterionsGroupHiddenOpen')} 18059$(e).parent('.PM_ASShowCriterionsGroupHidden').nextAll('.PM_ASCriterionsGroupHidden').slideToggle('fast');as4Plugin.searchResponseCallback(id_search)}})});$(document).on('mousedown','.PM_ASNotMulticriteria',function(e){e.preventDefault();if($(this).parents('li').hasClass('PM_ASCriterionDisable')){return} 18060if($(this).attr('type')=='checkbox'){if(!$(this).attr('checked')){var curIndex=$(this).parent('li').index();$(this).parent('li').parent('ul').find('li:not(:eq('+curIndex+')) > input[type=checkbox]').removeAttr('checked')}}else{if(!$(this).hasClass('PM_ASCriterionLinkSelected')){var curIndex=$(this).parent('li').index();$(this).parent('li').parent('ul').find('li:eq('+curIndex+') > input[type=hidden]').attr('disabled','');$(this).parent('li').parent('ul').find('li:not(:eq('+curIndex+')) > input[type=hidden]').attr('disabled','disabled');$(this).parent('li').parent('ul').find('li > a').removeClass('PM_ASCriterionLinkSelected')}}});$(document).on('click','.PM_ASSelectionsRemoveLink',function(e){e.preventDefault();var id_search=as4Plugin.getIdSearchFromItem(this);$(this).next('input').attr('disabled','disabled');$(this).parents('form').ajaxSubmit(as4Plugin.getASFormOptions(id_search))});$(document).on('click','.PM_ASBlockOutput .PM_ASCriterionHideToggleClick a',function(e){e.preventDefault();$(this).parents('.PM_ASCriterions').find('.PM_ASCriterionHide').slideToggle('fast');$(this).parents('.PM_ASCriterions').find('.PM_ASCriterionGroupColor.color_to_pick_list li.PM_ASCriterionHide, .PM_ASCriterionGroupImage li.PM_ASCriterionHide').css('display','inline-block');$(this).children('.PM_ASHide, .PM_ASShow').toggle()});$(document).on('click','.PM_ASBlockOutput .PM_ASCriterionOpenClose',function(e){e.preventDefault();id_category=$(this).data('id-category');id_search=as4Plugin.getIdSearchFromItem(this);event_type='open';if($(this).hasClass('PM_ASCriterionClose')){event_type='open';$(this).removeClass('PM_ASCriterionClose').addClass('PM_ASCriterionOpen')}else if($(this).hasClass('PM_ASCriterionOpen')){event_type='close';$(this).removeClass('PM_ASCriterionOpen').addClass('PM_ASCriterionClose')} 18061as4Plugin.closeNestedCategories(event_type,id_category,!0)});$(document).on('click','.PM_ASBlockOutput .PM_ASCriterionLevelChoose',function(e){e.preventDefault();id_criterion=$(this).data('id-criterion');id_criterion_group=$(this).data('id-criterion-group');id_search=as4Plugin.getIdSearchFromItem(this);currentCategoryLevelItem=$('#PM_ASCriterionGroupSelect_'+id_search+'_'+id_criterion_group);currentSelectedCategory=$('option[value="'+id_criterion+'"]',currentCategoryLevelItem);if(currentSelectedCategory.size()>0&¤tSelectedCategory.prop('selected')==!0){$('option:selected',currentCategoryLevelItem).prop('selected',!1);currentCategoryLevelItem.trigger('change')}else{$('option:selected',currentCategoryLevelItem).prop('selected',!1);currentSelectedCategory.prop('selected',!0);currentCategoryLevelItem.trigger('change')}});$(document).on('click','.PM_ASSubmitSearch',function(e){e.preventDefault();var id_search=as4Plugin.getIdSearchFromItem(this);$(this).parents('form').ajaxSubmit(as4Plugin.getASFormOptions(id_search))});as4Plugin.removeOldEvents()},closeNestedCategories:function(eventType,idCategory,onlyShowNextLevel){if(!isNaN(idCategory)){$('#PM_ASBlock_'+id_search+' .PM_ASCriterionLevel[data-id-p
18061arent="'+idCategory+'"]').each(function(){if(eventType=='close'){$('.PM_ASCriterionOpenClose',this).removeClass('PM_ASCriterionOpen').addClass('PM_ASCriterionClose');$(this).slideUp()}else{if(onlyShowNextLevel){$(this).slideDown()}} 18062nestedCategoryId=$('.PM_ASCriterionOpenClose',this).data('id-category');as4Plugin.closeNestedCategories(event_type,nestedCategoryId,!1)})}},removeOldEvents:function(){$('body').off('change','#search_filters select');$(document).off('change','#search_filters select')},initSearchFromResults:function(id_search,search_method,step_search){$(document).trigger('as4-Before-Init-Search-Results',[id_search,search_method,step_search]);as4Plugin.removeOldEvents();$(document).trigger('as4-After-Init-Search-Results',[id_search,search_method,step_search]);as4Plugin.searchResponseCallback(id_search)},initSliders:function(){$('.PM_ASCritRange').each(function(){sliderItem=$(this);id_search=as4Plugin.getIdSearchFromItem(sliderItem);sliderItem.slider({range:!0,min:$(this).data('min'),max:$(this).data('max'),step:$(this).data('step'),values:$(this).data('values'),disabled:$(this).data('disabled'),slide:function(event,ui){id_search=$(this).data('id-search');as4Plugin.assignRangeValues($(this),id_search,ui)},stop:function(event,ui){id_search=$(this).data('id-search');search_method=as4Plugin.getParamValue(id_search,'searchMethod');step_search=as4Plugin.getParamValue(id_search,'stepSearch');as4Plugin.assignRangeValues($(this),id_search,ui);if(step_search==1){as4Plugin.nextStep(id_search,$('#PM_ASInputCritRange'+id_search+'_'+$(this).data('id-criterion-group')),null,search_method)}else{if(search_method==1){$('#PM_ASForm_'+id_search).ajaxSubmit(as4Plugin.getASFormOptions(id_search))} 18063if(search_method==2){$('#PM_ASForm_'+id_search).ajaxSubmit(as4Plugin.getASFormDynamicCriterionOptions(id_search))}}}})})},assignRangeValues:function(slider,id_search,ui){slideMinValue=Math.round(ui.values[0]*100)/100;slideMaxValue=Math.round(ui.values[1]*100)/100;if(typeof(slider.data('currency-format'))!='undefined'&&slider.data('currency-format')!=null&&slider.data('currency-format').length>0){$('#PM_ASCritRangeValue'+id_search+'_'+slider.data('id-criterion-group')).html(as4Plugin.formatCurrency(slider.data('currency-format'),slideMinValue)+' - '+as4Plugin.formatCurrency(slider.data('currency-format'),slideMaxValue))}else{$('#PM_ASCritRangeValue'+id_search+'_'+slider.data('id-criterion-group')).html(slider.data('left-range-sign')+slideMinValue+slider.data('right-range-sign')+' - '+slider.data('left-range-sign')+slideMaxValue+slider.data('right-range-sign'))} 18064$('#PM_ASInputCritRange'+id_search+'_'+slider.data('id-criterion-group')).val(''+slideMinValue+'~'+slideMaxValue)},initSearchBlock:function(id_search,search_method,step_search){$(document).trigger('as4-Before-Init-Search-Block',[id_search,search_method,step_search]);as4Plugin.initSliders();$('.PM_ASCriterionHideToggleLink').click(function(e){e.preventDefault();return});$('.PM_ASBlockOutput .PM_ASCriterionsToggleHover').hoverIntent(function(e){if(typeof(e.toElement)!='undefined'&&($(e.toElement).is('.PM_ASResetGroup')||$(e.toElement).is('.PM_ASSkipGroup'))){e.preventDefault();return} 18065$(this).addClass('PM_ASCriterionGroupToggleHover');$(this).find('.PM_ASCriterionHide').stop().slideDown('fast');$(this).find('.PM_ASCriterionGroupColor.color_to_pick_list li.PM_ASCriterionHide').css('display','inline-block');$(this).find('.PM_ASCriterionGroupImage li.PM_ASCriterionHide').css('display','inline-block')},function(){$(this).removeClass('PM_ASCriterionGroupToggleHover');$(this).find('.PM_ASCriterionHide').stop().slideUp('fast',function(){$(this).parents('.PM_ASCriterions').removeClass('PM_ASCriterionGroupToggleHover')});$(this).find('.PM_ASCriterionGroupColor.color_to_pick_list li.PM_ASCriterionHide').css('display','none');$(this).find('.PM_ASCriterionGroupImage li.PM_ASCriterionHide').css('display','none')});as4Plugin.removeOldEvents();if(search_method==2){$('#PM_ASForm_'+id_search).ajaxForm(as4Plugin.getASFormOptions(id_search))} 18066$(document).trigger('as4-After-Init-Search-Block',[id_search,search_method,step_search]);as4Plugin.searchResponseCallback(id_search)},setNextIdCriterionGroup:function(id_search,next_id_criterion_group){var input_next_id_criterion_group=$('#PM_ASBlock_'+id_search).find('input[name="next_id_criterion_group"]');if(next_id_criterion_group!=0){$(input_next_id_criterion_group).val(next_id_criterion_group)}else {$(input_next_id_criterion_group).val('')}},cleanAjaxDuplicateParams:function(destUrl,params){var hasDuplicateValues=!0;var paramsSplit=params.split('&');var destUrlSplit=destUrl.split('&');var i=0;
18066while(hasDuplicateValues){hasDuplicateValues=!1;var paramsListDestUrl=new Array();$.each(destUrlSplit,function(index,value){if(typeof(value)!='undefined'){if($.inArray(value,paramsSplit)!=-1||$.inArray(value,paramsListDestUrl)!=-1){destUrlSplit.splice(index,1);hasDuplicateValues=!0}else{paramsListDestUrl.push(value)}}});i++;if(i==10)break} 18067return destUrlSplit.join('&')},moveFormContainerForSEOPages:function(){if(typeof($('div#PM_ASFormContainerHidden'))!='undefined'&&$('div#PM_ASFormContainerHidden').size()>0){var element_parent=$('div#PM_ASFormContainerHidden').parent().parent();if(typeof(element_parent)!='undefined'&&$(element).size()>0){var element=$('div#PM_ASFormContainerHidden').detach();$(element_parent).append(element)}}},searchResponseCallback:function(id_search){as4Plugin.removeOldEvents();$(document).trigger('as4-Before-Response-Callback');if($('#PM_ASearchResults').size()>0){if(typeof initAp4CartLink=='function'){initAp4CartLink()} 18068if(typeof(ajaxCart)!='undefined'){ajaxCart.overrideButtonsInThePage()} 18069if(typeof(modalAjaxCart)!='undefined'){modalAjaxCart.overrideButtonsInThePage()} 18070if(typeof(display)!='undefined'&&display instanceof Function){var view='grid';if($.totalStorage instanceof Function){viewFromLocalStorage=$.totalStorage('display');if(typeof(viewFromLocalStorage)!='undefined'&&viewFromLocalStorage){view=viewFromLocalStorage}} 18071try{if(view&&view!='grid'){display(view)}}catch(e){} 18072if(typeof(blockHover)!='undefined'&&blockHover instanceof Function){blockHover()} 18073$('#grid').click(function(e){e.preventDefault();try{display('grid')}catch(e){}});$('#list').click(function(e){e.preventDefault();try{display('list')}catch(e){}})}} 18074as4Plugin.addBestSalesOptions(id_search);$(document).ready(function(){$(".PM_ASBlockOutput select.chosen:visible, .PM_ASBlockOutput select.as4-select:visible").each(function(){selectizePlugins=[];if($(this).prop('multiple')){selectizePlugins=['remove_button']} 18075$(this).selectize({plugins:selectizePlugins,hideSelected:!0,copyClassesToDropdown:!1,closeAfterSelect:!0,allowEmptyOption:!0,triggerChangeEvent:!1,onChange:function(value,event){if(typeof event=='object'&&value!=null){if(event.type=='keydown'&&!value.length){if(event.keyCode==8){this.open();return}}} 18076this.$input.trigger('change')},})});if(typeof(reloadProductComparison)!='undefined'){reloadProductComparison()} 18077if(typeof(compareButtonsStatusRefresh)!='undefined'&&typeof(comparedProductsIds)!='undefined'){compareButtonsStatusRefresh()} 18078if(typeof(totalCompareButtons)!='undefined'){totalCompareButtons()} 18079if(typeof(iqit_lazy_load)!="undefined"&&iqit_lazy_load!==null&&iqit_lazy_load){$("ul.product_list img.lazy").lazyload({threshold:200,skip_invisible:!1})}});$(document).trigger('as4-After-Response-Callback')},pushNewState:function(idSearch,fromInit){if(fromInit==!0&&as4Plugin.getPersistentParamValue(idSearch,'pushInitStateDone')==!1){as4Plugin.setPersistentParamValue(idSearch,'pushInitStateDone',!0)}else if(fromInit==!0&&as4Plugin.getPersistentParamValue(idSearch,'pushInitStateDone')){return} 18080formOptionsObject=as4Plugin.getASFormOptions(idSearch);for(paramKey in as4Plugin.extraParams){formOptionsObject.data[as4Plugin.extraParams[paramKey].name]=as4Plugin.extraParams[paramKey].value} 18081as4Plugin.extraParams=new Array();history.replaceState({id_search:idSearch,formOptionsData:formOptionsObject.data,formSerializedArray:as4Plugin.getFormSerializedArray(idSearch),stateFromInit:fromInit,},null,null)},pushStateNewURL:function(url){if(document.location!=url){history.pushState(null,null,url)}},isSafari:function(){safariRegexp=new RegExp('^(?!.*(?:Chrome|Edge)).*Safari');return(safariRegexp.test(navigator.userAgent)==!0)},setLayer:function(pmAjaxSpinnerTarget){if(as4Plugin.blurEffect){$(pmAjaxSpinnerTarget).addClass('as4-loader-blur')} 18082$(pmAjaxSpinnerTarget).append('<div class="as4-loader"></div>');$(pmAjaxSpinnerTarget).find('.as4-loader').each(function(){$(this).css('top',-$(pmAjaxSpinnerTarget).outerHeight()/2)})},removeLayer:function(pmAjaxSpinnerTarget){$('.as4-loader-blur').removeClass('as4-loader-blur');$('.as4-loader').remove()},sendGAEvent:function(eventCategory,eventAction,eventLabel){if(typeof ga!=='undefined'){ga('send','event',{eventCategory:eventCategory,eventAction:eventAction,eventLabel:eventLabel})}},isLocalStorageAvailable:function(){if(as4Plugin.localStorageAvailable==null){var vTest='as4Test';try{localStorage.setItem(vTest,vTest);localStorage.removeItem(vTest);as4Plugin.localStorageAvailable=!0;as4Plugin.clearExpiredLocalStorage()}catch(e){as4Plugin.localStorageAvailable=!1}} 18083return as4Plugin.localStorageAvailable},clearExpiredLocalStorage:function(){for(var i=0;i<localStorage.length;i++){cacheKey=localStorage.key(i);if(cacheKey.includes('advancedsearch4')&&!cacheKey.includes('cachettl')){ttl=localStorage.getItem(cacheKey+'cachettl');if(ttl&&ttl<+new Date()){localStorage.removeItem(cacheKey);localStorage.removeItem(cacheKey+'cachettl')}}}},formatCurrency:function(mask,value){if(!mask||isNaN(+value)){return value} 18084var isNegative,result,decimal,group,posLeadZero,posTrailZero,posSeparator,part,szSep,integer,len=mask.length,start=mask.search(/[0-9\-\+#]/),prefix=start>0?mask.substring(0,start):'',str=mask.split('').reverse().join(''),end=str.search(/[0-9\-\+#]/),offset=len-end,substr=mask.substring(offset,offset+1),indx=offset+((substr==='.'||(substr===','))?1:0),suffix=end>0?mask.substring(indx,len):'';mask=mask.substring(start,indx);value=mask.charAt(0)==='-'?-value:+value;isNegative=value<0?value=-value:0;result=mask.match(/[^\d\-\+#]/g);decimal=(result&&result[result.length-1])||'.';group=(result&&result[1]&&result[0])||',';mask=mask.split(decimal);value=value.toFixed(mask[1]&&mask[1].length);value=+(value)+'';posTrailZero=mask[1]&&mask[1].lastIndexOf('0');part=value.split('.');if(!part[1]||(part[1]&&part[1].length<=posTrailZero)){value=(+value).toFixed(posTrailZero+1)} 18085szSep=mask[0].split(group);mask[0]=szSep.join('');posLeadZero=mask[0]&&mask[0].indexOf('0');if(posLeadZero>-1){while(part[0].length<(mask[0].length-posLeadZero)){part[0]='0'+part[0]}}else if(+part[0]===0){part[0]=''} 18086value=value.split('.');value[0]=part[0];posSeparator=(szSep[1]&&szSep[szSep.length-1].length);if(posSeparator){integer=value[0];str='';offset=integer.length%posSeparator;len=integer.length;for(indx=0;indx<len;indx++){str+=integer.charAt(indx);if(!((indx-offset+1)%posSeparator)&&indx<len-posSeparator){str+=group}} 18087value[0]=str} 18088value[1]=(mask[1]&&value[1])?decimal+value[1]:'';result=value.join('');if(result==='0'||result===''){isNegative=!1} 18089return prefix+((isNegative?'-':'')+result)+suffix}}; 18090/*! 18091 * hoverIntent v1.8.0 // 2014.06.29 // jQuery v1.9.1+ 18092 * http://cherne.net/brian/resources/jquery.hoverIntent.html 18093 * 18094 * You may use hoverIntent under the terms of the MIT license. Basically that 18095 * means you are free to use hoverIntent as long as this header is left intact. 18096 * Copyright 2007, 2014 Brian Cherne 18097 */ 18098(function($){$.fn.hoverIntent=function(handlerIn,handlerOut,selector){var cfg={interval:100,sensitivity:6,timeout:0};if(typeof handlerIn==="object"){cfg=$.extend(cfg,handlerIn)}else{if($.isFunction(handlerOut)){cfg=$.extend(cfg,{over:handlerIn,out:handlerOut,selector:selector})}else{cfg=$.extend(cfg,{over:handlerIn,out:handlerIn,selector:handlerOut})}}var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if(Math.sqrt((pX-cX)*(pX-cX)+(pY-cY)*(pY-cY))<cfg.sensitivity){$(ob).off("mousemove.hoverIntent",track);ob.hoverIntent_s=!0;return cfg.over.apply(ob,[ev])}else{pX=cX;pY=cY;ob.hoverIntent_t=setTimeout(function(){compare(ev,ob)},cfg.interval)}};var delay=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);ob.hoverIntent_s=!1;return cfg.out.apply(ob,[ev])};var handleHover=function(e){var ev=$.extend({},e);var ob=this;if(ob.hoverIntent_t){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t)}if(e.type==="mouseenter"){pX=ev.pageX;pY=ev.pageY;$(ob).on("mousemove.hoverIntent",track);if(!ob.hoverIntent_s){ob.hoverIntent_t=setTimeout(function(){compare(ev,ob)},cfg.interval)}}else{$(ob).off("mousemove.hoverIntent",track);if(ob.hoverIntent_s){ob.hoverIntent_t=setTimeout(function(){delay(ev,ob)},cfg.timeout)}}};return this.on({"mouseenter.hoverIntent":handleHover,"mouseleave.hoverIntent":handleHover},cfg.selector)}})(jQuery);(function($,window){var genCacheKey=function(options){var url=options.url.replace(/jQuery.*/,'');if(options.cache===!1){url=url.replace(/([?&])_=[^&]*/,'')} 18099if(options.data){return(as4Plugin.localCacheKey||'')+(options.cacheKey||url+'?'+options.data+options.type)}else{return(as4Plugin.localCacheKey||'')+(options.cacheKey||url+options.type+(options.data||''))}};$.ajaxPrefilter(function(options){var storage=(options.localCache===!0)?window.localStorage:options.localCache,hourstl=options.cacheTTL||5,cacheKey=genCacheKey(options),cacheValid=options.isCacheValid,ttl,value;if(!storage||(storage&&!as4Plugin.isLocalStorageAvailable())){return} 18100ttl=storage.getItem(cacheKey+'cachettl');if(cacheValid&&typeof cacheValid==='function'&&!cacheValid()){storage.removeItem(cacheKey)} 18101if(ttl&&ttl<+new Date()){storage.removeItem(cacheKey);storage.removeItem(cacheKey+'cachettl');ttl=0} 18102value=storage.getItem(cacheKey);if(!value){if(options.success){options.realsuccess=options.success} 18103options.success=function(data){var strdata=data;if(this.dataType.toLowerCase().indexOf('json')===0)strdata=JSON.stringify(data);try{storage.setItem(cacheKey,strdata)}catch(e){storage.removeItem(cacheKey);storage.removeItem(cacheKey+'cachettl')} 18104if(options.realsuccess)options.realsuccess(data)};if(!ttl){storage.setItem(cacheKey+'cachettl',+new Date()+1000*60*60*hourstl)}}});$.ajaxTransport("+*",function(options){if(options.localCache){var cacheKey=genCacheKey(options),storage=(options.localCache===!0)?window.localStorage:options.localCache,value=(storage)?storage.getItem(cacheKey):!1;if(value){if(options.dataType.toLowerCase().indexOf('json')===0)value=JSON.parse(value);return{send:function(headers,completeCallback){var response={};response[options.dataType]=value;completeCallback(200,'success',response,'')},abort:function(){console.log("Aborted ajax transport for json cache.")}}}}})})(jQuery,window);window.onload=function(){setTimeout(function(){window.onpopstate=function(event){if(typeof(event.state)!='undefined'&&event.state!=null&&typeof(event.state.id_search)!='undefined'&&!isNaN(event.state.id_search)){if(typeof(event.state.stateFromInit)!='undefined'&&event.state.stateFromInit&&as4Plugin.isSafari()){if(!isNaN(as4Plugin.previousOnPopState)&&as4Plugin.previousOnPopState!=null&&as4Plugin.previousOnPopState>0){as4Plugin.previousOnPopState=null;location.reload()}else{as4Plugin.previousOnPopState=null} 18105return} 18106as4Plugin.fromBackForwardEvent=!0;formOptionsObject=as4Plugin.getASFormOptions(event.state.id_search);
18106formOptionsObject.data=$.param(event.state.formSerializedArray)+'&'+$.param(event.state.formOptionsData);formOptionsObject.url=$('#PM_ASForm_'+event.state.id_search).attr('action');formOptionsObject.form=$('#PM_ASForm_'+event.state.id_search);$.ajax(formOptionsObject);as4Plugin.previousOnPopState=event.state.id_search}else{if(typeof(prestashop)!='object'){if(!isNaN(as4Plugin.previousOnPopState)&&as4Plugin.previousOnPopState!=null&&as4Plugin.previousOnPopState>0){as4Plugin.previousOnPopState=null;location.reload()}else{as4Plugin.previousOnPopState=null}}}}},500)};$(document).on('as4-After-Init-Search-Block',function(e,idSearch,searchMethod,stepSearch){if(typeof(prestashop)=='object'){if(!as4Plugin.fromBackForwardEvent){as4Plugin.pushNewState(idSearch,!0)}}});$(document).on('as4-Before-Set-Results-Contents',function(e,idSearch,context){if(!as4Plugin.fromBackForwardEvent){as4Plugin.pushNewState(idSearch)} 18107eventLabel=[];availableCriterionsGroups=as4Plugin.getParamValue(idSearch,'availableCriterionsGroups');$.each(as4Plugin.getParamValue(idSearch,'selectedCriterions'),function(idCriterionGroup,selectedCriterions){$.each(selectedCriterions,function(index2,selectedCriterion){eventLabel.push(availableCriterionsGroups[idCriterionGroup]+': '+selectedCriterion.value)})});as4Plugin.sendGAEvent('Advanced Search','Show Results',eventLabel.join(', '))});$(document).on('as4-Criterion-Change',function(e,idSearch,idCriterionGroup,idCriterion,criterionName,groupType){step_search=as4Plugin.getParamValue(idSearch,'stepSearch');search_method=as4Plugin.getParamValue(idSearch,'searchMethod');availableCriterionsGroups=as4Plugin.getParamValue(idSearch,'availableCriterionsGroups');as4Plugin.sendGAEvent('Advanced Search','Criterion Selected',availableCriterionsGroups[idCriterionGroup]+': '+criterionName) 18108if(step_search==1){as4Plugin.nextStep(idSearch,search_method)}else{as4Plugin.runSearch(idSearch,search_method)}});if(typeof(prestashop)=='object'){prestashop.on('responsive update',function(event){as4Plugin.initMobileStyles()});prestashop.on('updateProductList',function(event){if(typeof(as4Plugin)=='object'&&typeof(event.id_search)!='undefined'&&!isNaN(event.id_search)){scrollTopActive=as4Plugin.getParamValue(event.id_search,'scrollTopActive');if(!scrollTopActive){if(typeof(event.without_products)=='undefined'){as4Plugin.scrollTop(event.id_search,'updateProductList',(scrollTopActive==!1))}}else{if(typeof(event.without_products)=='undefined'){as4Plugin.scrollTop(event.id_search,'updateProductList',(scrollTopActive==!1))}else{if(!event.without_products){as4Plugin.scrollTop(event.id_search,'updateProductList',(event.without_products==!1))}}}} 18109if(typeof(as4Plugin)=='object'){setTimeout(function(){var currentUrlParams=window.location.href.substring(window.location.href.indexOf('?',0));var orderRegexp=new RegExp(/[?&]order=\w+\.\w+\.\w+/);if(currentUrlParams.match(orderRegexp)){var matchedOrder=currentUrlParams.match(orderRegexp)[0];var cleanedMatchedOrder=matchedOrder.substr(matchedOrder.indexOf('=',0)+1);if(cleanedMatchedOrder.length>0){$('.PM_ASForm input[name="orderby"]').prop('disabled',!1);$('.PM_ASForm input[name="orderby"]').val(cleanedMatchedOrder)}}},100)}})};(function(){$(document).ready(function(){window.onload=function(){if(window.addEventListener){window.addEventListener("DOMMouseScroll",mouse_wheel,!1)} 18110window.onmousewheel=document.onmousewheel=mouse_wheel};var mouse_wheel=function(event){if(!1===!!event)event=window.event;direction=((event.wheelDelta)?event.wheelDelta/120:event.detail/-3)||!1};$(".gomakoil_faq_page .questions").click(function(e){e.preventDefault();var answer_page_link=$(this).find(".icon_fag");var answer_block=$(this).next();if($(this).hasClass('as_url')){location.href=answer_page_link.attr('href');return!1} 18111if($(this).hasClass('active')){$(this).removeClass('active');answer_page_link.hide()}else{$(this).addClass('active');answer_page_link.fadeIn()} 18112answer_block.slideToggle("slow")});var link_to_full_question_icon="a.icon_fag";$(link_to_full_question_icon).click(function(event){event.stopPropagation()});
18112var faqs_search_input="#search_faqs_input";var faqs_search_input_group="#search_faqs_input_group";var faqs_search_loader=faqs_search_input_group+" .loader";var faqs_search_preview_container="#mpm_faqs_search_preview_container";var search_timeout;$(document).on("input",faqs_search_input,function(){if(search_timeout){clearTimeout(search_timeout)} 18113var base_path=$("#search_faqs_container").data("base-path");var search_query=$(this).val();if(search_query.length<1){$(faqs_search_preview_container).html("").hide();$(faqs_search_loader).hide();return!1} 18114$(faqs_search_loader).show();search_timeout=setTimeout(function(){$.ajax({type:"POST",url:base_path+'index.php?rand='+new Date().getTime(),dataType:'json',async:!0,cache:!1,data:{ajax:!0,token:"",controller:'AjaxForm',fc:'module',module:'faqs',action:'getSearchPreview',search_query:search_query,id_shop:$('input[name="id_shop"]').val(),id_lang:$('input[name="id_lang"]').val()},success:function(response){$(faqs_search_preview_container).html(response.template).show()},error:function(){},complete:function(){$(faqs_search_loader).hide()}})},1000)});$(document).on("focus",faqs_search_input,function(event){event.preventDefault();$(faqs_search_input_group).addClass("search-faqs-input-focused")});$(document).on("blur",faqs_search_input,function(event){event.preventDefault();$(faqs_search_input_group).removeClass("search-faqs-input-focused")});$(document).mouseup(function(e){if(!$(faqs_search_input_group).is(e.target)&&$(faqs_search_input_group).has(e.target).length===0){$(faqs_search_preview_container).html("").hide();$(faqs_search_loader).hide()}});var asked_by_user_icon=".questions.change_item .m-user-1";var asked_by_user_popup_msg=".questions.change_item .user-assoc-popup";$(asked_by_user_icon).hover(function(){$(this).siblings(asked_by_user_popup_msg).show()},function(){$(this).siblings(asked_by_user_popup_msg).hide()});positionPopupDialogue();$(window).resize(function(){positionPopupDialogue()})});function positionPopupDialogue(){var asked_by_user_popup_msg=".questions.change_item .user-assoc-popup";var faqs_block_width=$(".gomakoil_faq_page").outerWidth();var popup_dialogue_width=$(asked_by_user_popup_msg).outerWidth()+15;if($(window).width()<=(faqs_block_width+popup_dialogue_width)){$(asked_by_user_popup_msg).addClass("display-right")}else{$(asked_by_user_popup_msg).removeClass("display-right")}}})();function searchFags(val,url){if(val.length>0){location=url+val}};var close_notification_button_id="#mpm_faqs_notification_close_button";var reset_trigger="#mpm_faqs_notification_reset_button";var faqsForm={overlay:{id:"#mpm_faqs_form_overlay"},container:{id:"#mpm_faqs_form_container"},close_button:{id:"#mpm_faqs_form_close_button"},submit_button:{id:"#mpm_faqs_form_submit_button"},input_fields:{name_customer:{form_group_id:"#name_customer_form_group"},email_customer:{form_group_id:"#email_customer_form_group"},category_question:{form_group_id:"#category_question_form_group"},question_customer:{form_group_id:"#question_customer_form_group"},captcha_res:{form_group_id:"#captcha_res_form_group"},focused_input_id:"mpm-faqs-focused-input",invalid_input_id:"mpm-faqs-validation-error",invalid_input_message_block_id:"mpm-faqs-form-validation-message"},consent_checkbox:"#mpm_faqs_form_container #consent_checkbox",recaptcha_block:"#mpm_faqs_form_container .g-recaptcha",open:function(){var basePath=$('input[name="basePath"]').val();var overlay=this.overlay.id;var container=this.container.id;var id_shop=$('input[name="id_shop"]').val();var id_lang=$('input[name="id_lang"]').val();var id_product=$('input[name="id_product"]').val();$.ajax({type:"POST",url:basePath+'index.php?rand='+new Date().getTime(),dataType:'json',async:!0,cache:!1,data:{ajax:!0,token:"",controller:'AjaxForm',fc:'module',module:'faqs',action:'showForm',id_shop:id_shop,id_lang:id_lang,},success:function(json){if(json.form){$("body").prepend(json.form);faqsForm.scroll(1);stylizeSelect();$(overlay).fadeIn(300);$(container).fadeIn(300)}},})},close:function(){var overlay=this.overlay.id;var container=this.container.id;$(overlay).fadeOut(300);$(container).fadeOut(300);setTimeout(function(){$(overlay).remove();$(container).remove()},700)},send:function(){if($(faqsForm.consent_checkbox).length&&!$(faqsForm.consent_checkbox).is(":checked")){return!1} 18115var basePath=$('input[name="basePath"]').val();var thisObject=$(this);if(thisObject.data("requestRunning")){return} 18116thisObject.data("requestRunning",!0);$.ajax({type:"POST",url:basePath+'index.php?rand='+new Date().getTime(),dataType:'json',async:!0,cache:!1,data:{ajax:!0,token:"",controller:'AjaxForm',fc:'module',module:'faqs',action:'send',id_shop:$('input[name="id_shop"]').val(),id_lang:$('input[name="id_lang"]').val(),id_product:$('input[name="id_product"]').val(),name:$('input[name="name_customer"]').val(),email:$('input[name="email_customer"]').val(),captcha:$('input[name="captcha_res"]').val(),category:$('select[name="category_question"]').val(),question:$('textarea[name="question_customer"]').val(),},success:function(json){if(json.error_field){var form_input_names=["name_customer","email_customer","question_customer","captcha_res"];var error_field=json.error_field;var error_message=json.error_message;if(form_input_names.indexOf(error_field)!==-1){faqsForm.input_fields.validationError(error_field,error_message)}}else if(json.form){$(faqsForm.container.id).replaceWith(json.form);$(faqsForm.container.id).fadeIn(300);faqsForm.scroll(1)}},complete:function(){thisObject.data("requestRunning",!1)}})},scroll:function(show){if($(this.container.id).length>0){$(this.container.id).css('margin-top','0px');var top=$(document).scrollTop();var height_window=$(window).outerHeight();var height_form=$(this.container.id).outerHeight();var margin=(height_window-height_form)/2;var form_offset=$(this.container.id).offset().top;if(show&&margin<11){margin=11} 18117if(margin>10){var margin_top=margin+top;$(this.container.id).css('top',margin_top+'px')}else{if(direction>=0){if(top<form_offset){$(this.container.id).css({top:(top+10)})}} 18118if(direction<0){if(top>(height_form+10-height_window)){$(this.container.id).css({top:(top-(height_form-height_window+10))})}}}}},reset:function(){this.close();this.open()},getConsentForProcessingData:function(){var validated=!0;if($(faqsForm.consent_checkbox).length&&!$(faqsForm.recaptcha_block).length){validated=$(faqsForm.consent_checkbox).is(":checked")}else if($(faqsForm.recaptcha_block).length&&!$(faqsForm.consent_checkbox).length){validated=grecaptcha.getResponse()!=0}else if($(faqsForm.recaptcha_block).length&&$(faqsForm.consent_checkbox).length){validated=$(faqsForm.consent_checkbox).is(":checked")&&grecaptcha.getResponse()!=0} 18119if(validated){$(faqsForm.submit_button.id).attr("disabled",!1);$(faqsForm.submit_button.id).removeClass("disabled-submit-btn")}else{$(faqsForm.submit_button.id).attr("disabled",!0);$(faqsForm.submit_button.id).addClass("disabled-submit-btn")}}};faqsForm.input_fields.focus=function(input_field_name){$(faqsForm.container.id+" .form-group").removeClass(this.focused_input_id);$(this[input_field_name].form_group_id).addClass(this.focused_input_id)};faqsForm.input_fields.blur=function(input_field_name,eventRelatedTargetId){if(eventRelatedTargetId=="mpm_faqs_form_submit_button"){$(faqsForm.submit_button.id).trigger("click")} 18120$(this[input_field_name].form_group_id).removeClass(this.focused_input_id+" "+this.invalid_input_id)};faqsForm.input_fields.validationError=function(error_field_name,error_message){$(faqsForm.container.id+" .form-group").removeClass(this.focused_input_id+" "+this.invalid_input_id);$(this[error_field_name].form_group_id+" .form-control").focus();$(this[error_field_name].form_group_id).removeClass(this.focused_input_id).addClass(this.invalid_input_id);$(this[error_field_name].form_group_id+" ."+this.invalid_input_message_block_id).text(error_message)};faqsForm.closeTriggers=[faqsForm.close_button.id,faqsForm.overlay.id,close_notification_button_id];$(document).ready(function(){$(document).on("focus",faqsForm.container.id+" .form-control",function(e){e.preventDefault();faqsForm.input_fields.focus($(this).attr("name"))});$(document).on("blur",faqsForm.container.id+" .form-control",function(e){e.preventDefault();var eventRelatedTargetId="";if(e.relatedTarget&&e.relatedTarget.id){eventRelatedTargetId=e.relatedTarget.id} 18121faqsForm.input_fields.blur($(this).attr("name"),eventRelatedTargetId)});$(document).keydown(function(e){var key=e.keyCode;if(key===13&&e.target.localName!=="textarea"){$(faqsForm.submit_button.id).trigger("click")}else if(key===27){$(faqsForm.close_button.id).trigger("click")}});$(document).on('click',faqsForm.closeTriggers.join(", "),function(){faqsForm.close()});$(document).on('click','.button-ask-question',function(){faqsForm.open()});$(document).on('click',faqsForm.submit_button.id,function(e){e.preventDefault();faqsForm.send()});$(document).on("click",reset_trigger,function(){faqsForm.reset()});$(document).scroll(function(){faqsForm.scroll(0)});$(document).on("click","#module-faqs-display",function(){if($('#mpm_faqs_select_wrapper .content').find('.list').is(':visible')){$('#mpm_faqs_select_wrapper .content').find('.list').hide();$('#mpm_faqs_select_wrapper .content').css({"border-radius":"0 3px 3px 0"});$("#category_question_form_group .input-group-addon").css({"border-radius":"3px 0 0 3px"});$(faqsForm.container.id+" .form-group").removeClass("mpm-faqs-focused-input")}});$(document).on('click','#mpm_faqs_select_wrapper .content',function(e){e.stopPropagation();if($(e.target).parent().hasClass('list')){return!1} 18122if($(this).find('.list').is(':visible')){$(this).find('.list').hide();$(this).css({"border-radius":"0 3px 3px 0"});$("#category_question_form_group .input-group-addon").css({"border-radius":"3px 0 0 3px"});$(faqsForm.container.id+" .form-group").removeClass("mpm-faqs-focused-input")}else{$(this).find('.list').show();$(this).css({"border-radius":"0 3px 0 0"});$("#category_question_form_group .input-group-addon").css({"border-radius":"3px 0 0 0"});$(faqsForm.container.id+" .form-group").removeClass("mpm-faqs-focused-input");$("#category_question_form_group").addClass("mpm-faqs-focused-input")}});$(document).on("click","#mpm_faqs_select_wrapper .content .list span",function(e){var chosen_option_val=$(this).data("value");if(chosen_option_val!="0"){$("#mpm_faqs_select_wrapper .content").css({"color":"#232323"})}else{$("#mpm_faqs_select_wrapper .content").css({"color":"#c1c2d1"})}});$(document).on('click','#mpm_faqs_select_wrapper .content .list span',function(){var parent=$(this).parents('#mpm_faqs_select_wrapper');parent.find('select').val($(this).attr('data-value'));parent.find('.selected').html($(this).text());parent.find('select').change();parent.find('.list').hide();$("#category_question_form_group .input-group-addon").css({"border-radius":"3px 0 0 3px"})});$(document).on('change','#mpm_faqs_select_wrapper select',function(){var selected=$(this).parent().find('.selected');var currentText=$.trim(selected.text());var selectedText=$.trim($(this).find('option[value='+$(this).val()+']').text());if(selectedText!==currentText){selected.html(selectedText)}});faqsForm.getConsentForProcessingData();$(document).on("click change",faqsForm.consent_checkbox,function(){faqsForm.getConsentForProcessingData()})});function stylizeSelect(){$.each($('#mpm_faqs_select_wrapper'),function(value){if($(this).find('.content').length>0){return} 18123$(this).css('max-width',($(this).find('select').width()+35)+'px');var current_value=$(this).find('select').val();var span=$('<span class="content"><span class="list"></span></span>');var selected='';$.each($(this).find('select option'),function(key,value){if($(this).attr('value')==current_value){selected='<span class="selected">'+$(this).text()+'</span>'}
18124span.find('.list').append('<span data-value="'+$(this).attr('value')+'">'+$(this).text()+'</span>')});span.prepend(selected);$(this).append(span)})} 18125function checkIfRecaptchaIsVerified(){faqsForm.getConsentForProcessingData()};document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".category-block p").forEach(function(paragraph){const lineHeight=parseInt(window.getComputedStyle(paragraph).lineHeight);const maxHeight=lineHeight*5;if(paragraph.scrollHeight>maxHeight){paragraph.style.maxHeight=maxHeight+"px";paragraph.style.overflow="hidden";paragraph.style.position="relative";paragraph.style.transition="max-height 0.3s ease";paragraph.style.display="block";paragraph.classList.add("clamped");const btn=document.createElement("span");btn.innerText="Lire +";btn.className="read-more-btn";paragraph.after(btn);btn.addEventListener("click",function(event){event.stopPropagation();event.preventDefault();if(paragraph.classList.contains("clamped")){paragraph.style.maxHeight=paragraph.scrollHeight+"px";paragraph.classList.remove("clamped");btn.innerText="Lire -"}else{paragraph.style.maxHeight=maxHeight+"px";paragraph.classList.add("clamped");btn.innerText="Lire +"}})}})});document.addEventListener("DOMContentLoaded",function(){const faqItems=document.querySelectorAll('.faq-container li');const plusIcon=`<svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="M12 5v14m-7-7h14" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`;const minusIcon=`<svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="M5 12h14" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`;faqItems.forEach(item=>{const question=item.querySelector('h2');const answer=item.querySelector('div');const iconContainer=document.createElement('span');iconContainer.innerHTML=plusIcon;iconContainer.style.marginRight="8px";question.prepend(iconContainer);answer.style.maxHeight="0px";answer.style.overflow="hidden";answer.style.transition="max-height 0.3s ease-out"});const firstItem=faqItems[0];if(firstItem){firstItem.classList.add("active");const firstQuestion=firstItem.querySelector('h2');const firstAnswer=firstItem.querySelector('div');const firstIconContainer=firstQuestion.querySelector('span');firstAnswer.style.maxHeight=firstAnswer.scrollHeight+"px";firstIconContainer.innerHTML=minusIcon} 18126faqItems.forEach(item=>{const question=item.querySelector('h2');const answer=item.querySelector('div');const iconContainer=question.querySelector('span');question.addEventListener('click',function(){if(item.classList.contains("active")){answer.style.maxHeight="0px";iconContainer.innerHTML=plusIcon;item.classList.remove("active")}else{faqItems.forEach(i=>{i.classList.remove("active");i.querySelector('div').style.maxHeight="0px";i.querySelector('h2 span').innerHTML=plusIcon});answer.style.maxHeight=answer.scrollHeight+"px";iconContainer.innerHTML=minusIcon;item.classList.add("active")}})})});/** 18127 * @module Advanced search (AmbJoliSearch) 18128 * @file ambjolisearch.php 18129 * @subject script principal pour gestion du module (install/config/hook) 18130 * @copyright Copyright (c) 2013-2019 Ambris Informatique SARL 18131 * @license Commercial license 18132 * Support by mail: [email protected] 18133 **/ 18134var _gaq=_gaq||[];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;g.src=("https:"==location.protocol?"//ssl":"//www")+".google-analytics.com/ga.js";s.parentNode.insertBefore(g,s)}(document,"script"));if(!window.console){window.console={log:function(){}}}(function($){var compat_jQ=(function(){try{return amb_jQ}catch(err){return $}})();(function($){var joli_settings={display_manufacturer:!0,display_category:!0,};var customizeRender=function(){var __superRenderItem=$.ui.autocomplete.prototype._renderItem;var __superRenderMenu=$.ui.autocomplete.prototype._renderMenu;$.widget('ambjolisearch.ambSearchAutocomplete',$.ui.autocomplete,{_renderItem:function(ul,item){if(item.data){if(this.options.customRender){return $("<li></li>").data("item.autocomplete",item).addClass((item.title?'jolisearch-container':'')).addClass(item.data&&item.data.type?item.data.type:'').append(item.title?$("<span>").addClass("jolisearch-title").html(item.title):'').append($("<a></a>").attr('href',(item.data&&item.data.link?item.data.link:""))[this.options.html?"html":"text"](item.label).addClass(item.data?item.data.type:"")).appendTo(ul)}else{return __superRenderItem.call(this,ul,item)}}else{return $("<li></li>").data("item.autocomplete",item).html(item.value).appendTo(ul)}},_renderMenu:function(ul,items){$(ul).addClass('ui-jolisearch');$(ul).addClass(jolisearch.classes);$(ul).removeAttr('style');return __superRenderMenu.call(this,ul,items)}})};var matchAccents=function(s){var accents={a:new Array('à ','á','â','ã','ä','Ã¥','æ','Ã','Ã','Ã','Ã','Ã','à ','Ã'),e:new Array('é','è','ê','ë','Ã','Ã','Ã','Ã'),i:new Array('ì','Ã','î','ï','Ã','Ã','Ã','Ã'),o:new Array('ò','ó','ô','õ','ö','ø','Ã','Ã','Ã','Ã','Ã','Ã'),u:new Array('ù','ú','û','ü','Ã','Ã','Ã','Ã'),n:new Array('ñ','Ã'),c:new Array('ç','Ã')};for(var key in accents){var reg="["+key;var search_term="("+key;for(var letterindex=0;letterindex<accents[key].length;letterindex++){reg+=accents[key][letterindex];search_term+='|'+accents[key][letterindex]} 18135reg+="]";search_term+=")";var regexp=new RegExp(search_term,"g");$('#term').append("--> "+reg+" - "+search_term+" --> ");s=s.replace(regexp,reg);$('#term').append(s+"\n")} 18136return s},builder={'product':function(item,filter,firstOfItsKind){var img=$('<img src="'+item.img+'">').addClass("jolisearch-image"),prod=$('<span>').addClass('jolisearch-name').html(filter(item.pname)),supplier=item.supname?$('<span>').addClass('jolisearch-pre').html(filter(item.supname)):undefined,manuf=item.mname&&joli_settings.display_manufacturer?$('<span>').addClass('jolisearch-pre').html(filter(item.mname)):undefined,cat=item.cname&&joli_settings.display_category?$('<span>').addClass('jolisearch-post').html(filter(item.cname)):undefined,features=item.feats?$('<span>
18136').addClass('jolisearch-features').html(filter(item.feats)):undefined,prc=item.price?$('<div>').addClass('jolisearch-post-right').html(item.price):undefined,dummy=$('<div>').addClass('jolisearch-item product').append(img).append($('<div>').addClass("jolisearch-description "+item.type).append(supplier).append(manuf).append(prod).append(features).append(cat)).append(prc);return{data:item,value:item.pname,label:dummy.html(),title:firstOfItsKind}},'manufacturer':function(item,filter,firstOfItsKind){var img=$('<img src="'+item.img+'">').addClass("jolisearch-image"),prod=$('<span>').addClass('jolisearch-name').html(filter(item.man_name)),results=$('<span>').addClass('jolisearch-results').html(filter(item.man_results)) 18137dummy=$('<div>').addClass('jolisearch-item manufacturer').append(img).append($('<div>').addClass("jolisearch-description "+item.type).append(prod).append(results));return{data:item,value:item.man_name,label:dummy.html(),title:firstOfItsKind}},'category':function(item,filter,firstOfItsKind){var img=$('<img src="'+item.img+'">').addClass("jolisearch-image"),prod=$('<span>').addClass('jolisearch-name').html(filter(item.cat_name)),results=$('<span>').addClass('jolisearch-results').html(filter(item.cat_results)) 18138dummy=$('<div>').addClass('jolisearch-item category').append(img).append($('<div>').addClass("jolisearch-description "+item.type).append(prod).append(results));return{data:item,value:item.cat_name,label:dummy.html(),title:firstOfItsKind}},'no-results-found':function(item,filter,firstOfItsKind){var message=$('<span>').addClass('jolisearch-post').html(firstOfItsKind),dummy=$('<div>').addClass('jolisearch-item no-results-found').append($('<div>').addClass("jolisearch-description "+item.type).append(message));return{value:'',data:item,label:dummy.html()}},'more-results':function(item,filter,firstOfItsKind){var message=$('<span>').addClass('jolisearch-post').html(firstOfItsKind),dummy=$('<div>').addClass('jolisearch-item no-results-found').append($('<div>').addClass("jolisearch-additionnal "+item.type).append(message));return{value:'',data:item,label:dummy.html()}}},filterClosure=function(term){var matcher=new RegExp("("+matchAccents($.ui.autocomplete.escapeRegex(term))+")","gi");return function(data){if(data) 18139return data.replace(matcher,'<strong>$1</strong>');return''}},filterHtmlClosure=function(term){var matcher=new RegExp("("+matchAccents($.ui.autocomplete.escapeRegex(term))+")","gi");return function(data){if(data){var $data=$(data);$data.find('.product-name, .product-category, .product-manufacturer, .category-name, .manufacturer-name').each(function(idx,elt){$(elt).html($(elt).text().replace(matcher,'<strong>$1</strong>'))});return $('<div/>').append($data).html()} 18140return''}},sourceClosure=function(that){return function(request,response){var filter=filterClosure(request.term),filterHtml=filterHtmlClosure(request.term);$.ajax({url:that.attr('data-autocomplete'),dataType:"json",data:{s:request.term,ajax:!0,id_lang:that.attr('data-lang'),maxRows:that.attr('data-autocomplete-max')||10},success:function(data){var lastType=undefined;if(data&&data.use_rendered_products){response([filterHtml(data.rendered_products)])}else{response($.map(data.products,function(item){item.type=item.type.replace(/\_/gi,'-');var firstOfItsKind=(lastType!==item.type);lastType=item.type;if(item.type=="no-results-found"){if(that.attr('data-ga-acc')!=0){_gaq.push(["_setAccount",that.attr('data-ga-acc')]);_gaq.push(['_trackPageview','/notfound?search_query='+request.term+'&fast_search=fs'])}} 18141return builder[item.type](item,filter,(firstOfItsKind?that.attr('data-'+item.type):!1))}))}},error:function(xhr,textStatus,errorThrown){console.log("error: "+errorThrown)}})}};$('document').ready(function(){if(typeof(jolisearch)!='undefined'){joli_settings.display_manufacturer=jolisearch.display_manufacturer;joli_settings.display_category=jolisearch.display_category;
18141input=$('.jolisearch').find('input') 18142if(input.length==0){input=$('input[name=s]')} 18143if(input.length==0){input=$('input[name=search_query]')} 18144input.attr('data-autocomplete-mode',jolisearch.use_autocomplete).attr('data-autocomplete',jolisearch.amb_joli_search_action).attr('data-lang',jolisearch.id_lang).attr('data-manufacturer',jolisearch.l_manufacturers).attr('data-product',jolisearch.l_products).attr('data-category',jolisearch.l_categories).attr('data-minwordlen',jolisearch.minwordlen).attr('data-no-results-found',jolisearch.l_no_results_found).attr('data-more-results',jolisearch.l_more_results).attr('autocomplete','off');input.closest('form').attr('action',jolisearch.amb_joli_search_action);$form=input.closest('form');$controller=input.closest('form').find('input[name=controller]');if($controller.val()!='jolisearch'){$controller.remove();$form.find('input[name=fc]').remove();$form.closest('form').find('input[name=module]').remove()} 18145if(jolisearch.amb_joli_search_action.indexOf('fc=')>=0){request=jolisearch.amb_joli_search_action.split('?');parameters=$.each(request[1].split('&'),function(i,value){param=value.split('=');$form.append($('<input>').attr('type','hidden').attr('name',param[0]).val(param[1]));$form.attr('method','post')});$form.attr('action',request[0])} 18146$('#search_widget').attr('data-search-controller-url','');if($.fn.version>='2'){var searchbarAutocomplete=$('*:data(prestashop-psBlockSearchAutocomplete)');if(searchbarAutocomplete.length){searchbarAutocomplete.off('.psBlockSearchAutocomplete0');searchbarAutocomplete.off('.psBlockSearchAutocomplete2');searchbarAutocomplete.psBlockSearchAutocomplete('destroy')} 18147var scAutocomplete=$('input[name=s]:data(sc)');if(scAutocomplete.length&&typeof $.fn.autoComplete!=='undefined'){scAutocomplete.autoComplete('destroy')}}else{var searchbarAutocomplete=$('input[name=s]');searchbarAutocomplete.each(function(i,elt){var e=$(elt);if(e.data('prestashop-psBlockSearchAutocomplete')||e.data('prestashopPsBlockSearchAutocomplete')){e.off('.psBlockSearchAutocomplete0');e.off('.psBlockSearchAutocomplete2');e.psBlockSearchAutocomplete('destroy')} 18148if(e.data('sc')&&typeof $.fn.autoComplete!=='undefined'){e.autoComplete('destroy')}})}} 18149var responders=$('*:input[type=text][data-autocomplete]');customizeRender();responders.each(function(){var that=$(this);var mode=that.data('autocomplete-mode');if(mode==2||(mode==1&&window.matchMedia("(min-width: 767px)").matches)){that.ambSearchAutocomplete({source:sourceClosure(that),minLength:that.data('minwordlen'),max:10,width:500,delay:500,selectFirst:!1,scroll:!1,html:!0,customRender:!0,classes:{'ui-autocomplete':('ui-jolisearch'+' '+jolisearch.classes)},position:(that.data('position')!==undefined?that.data('position'):jolisearch.position),select:function(e,ui){if
18149(ui.item.data) 18150document.location.href=ui.item.data.link;else return!1},search:function(event,ui){$('.ui-autocomplete.ui-jolisearch').css('width','auto');var position=(that.data('position')!==undefined?that.data('position'):jolisearch.position);if(window.matchMedia("(max-width: 576px)").matches) 18151that.ambSearchAutocomplete("option","position",{my:'center top',at:'center bottom'});else that.ambSearchAutocomplete("option","position",position);return!0}});that.on('focus',function(){that.ambSearchAutocomplete('search',that.val())})}})})})(compat_jQ)})(jQuery)
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.